zhihao-ui-react 1.0.0 → 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,2 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let c=require("antd"),l=require("classnames");l=s(l,1);let u=require("react/jsx-runtime"),d=require("react"),f=require("@ant-design/icons"),p=require("ol"),m=require("plyr");m=s(m,1);let h=require("mpegts.js");h=s(h,1);let g=require("dayjs");g=s(g,1);var _=`--`;function v({danger:e,plain:t,type:n}){return e?`danger`:n===`text`?`text`:n===`link`?`link`:n===`primary`&&t?`primary-outline`:n===`primary`?`primary`:`default`}function y({autoInsertSpace:e=!1,children:t,className:n,p16:r=!1,plain:i=!1,size:a=`middle`,type:o=`default`,...s}){let d=a===`extraSmall`?`small`:a,f=a===`extraSmall`?`extra-small`:a,p=v({danger:s.danger,plain:i,type:o});return(0,u.jsx)(c.Button,{...s,autoInsertSpace:e,className:(0,l.default)(`zh-button`,`zh-button--variant-${p}`,`zh-button--size-${f}`,r&&`zh-button--p16`,n),size:d,type:i?`default`:o,children:t})}function b({children:e,className:t,template:n=``,...r}){return(0,u.jsx)(`fieldset`,{...r,className:(0,l.default)(`zh-button-group`,n===`operation-fix-button`&&`operation-fix-button`,t),children:e})}var x=[],S=c.Cascader;function C(e,t=!0){let n=[];function r(e,i=``){let a=i&&t?`${i}/${e.label}`:e.label;n.push({...e,label:a}),e.children?.forEach(e=>r(e,a))}return e.forEach(e=>r(e)),n}function w(e){let t=new Map;return e.forEach(e=>t.set(e.value,e)),Array.from(t.values())}var T=(0,d.forwardRef)(function({changeOnSelect:e,className:t,forceSearch:n=!0,handleOptionsFunction:r,initialOptions:i=x,initialValue:a,multiple:o=!1,noDataText:s=`暂无数据`,onChange:c,pageSize:l=10,placeholder:f=`输入关键字搜索名称`,requestFunction:p,value:m,...h},g){let[_,v]=(0,d.useState)(m??a),[y,b]=(0,d.useState)(i),[T,E]=(0,d.useState)(()=>C(i)),[D,O]=(0,d.useState)(1),[k,A]=(0,d.useState)(!1),j=(0,d.useCallback)(e=>{let t=e??_;return o?T.filter(e=>(t||[]).includes(e.value)):T.find(e=>e.value===t)},[o,T,_]),M=(0,d.useCallback)(async e=>{if(!n&&!e)return;let t=(await p(D,l,e)).list?.map(r)??[],i=k?t:w(t);A(!1),b(i),E(C(i))},[n,r,D,l,p,k]),N=(0,d.useCallback)(()=>{v(a),O(1),b(i),E(C(i))},[i,a]),P=(0,d.useCallback)(e=>{let t=Array.isArray(e)?e.at(-1):e;v(t),c?.(t,j(t))},[j,c]),ee=(0,d.useCallback)(e=>{e&&M()},[M]);(0,d.useImperativeHandle)(g,()=>({get cascderOptions(){return y},get options(){return T},getSelectedOption:j,handleRequestParamsChanged:A,remoteMethod:M,reset:N}),[y,j,T,M,N]);let te=(0,d.useMemo)(()=>{if(_!=null)return Array.isArray(_)?_:[_]},[_]);return(0,u.jsx)(S,{...h,allowClear:h.allowClear??!0,changeOnSelect:e,className:t,multiple:o,notFoundContent:s,onChange:P,onDropdownVisibleChange:ee,options:y,placeholder:f,value:te})});function E(e){return e.toString().padStart(2,`0`)}function D(e,t=!1){if(!e)return;let n=e instanceof Date?e:new Date(e);if(!Number.isNaN(n.getTime()))return`${`${n.getFullYear()}-${E(n.getMonth()+1)}-${E(n.getDate())}`}T${t?`23:59:59`:`00:00:00`}`}function O(e){return Array.isArray(e)?[D(e[0])??``,D(e[1],!0)??``]:D(e??void 0)}function k(e){return Array.isArray(e)&&e.length>=2?[e[0],e[1]]:void 0}function A(e){return e.getTime()>Date.now()}function j({className:e,disabledDate:t,disabledDateAfterToday:n=!1,onChange:r,type:i=`date`,value:a,...o}){let s=(0,d.useCallback)((e,t)=>{let n=k(t);r?.(n?O(n):void 0)},[r]),f=(0,d.useCallback)((e,t)=>{let n=Array.isArray(t)?t[0]:t;r?.(O(n))},[r]),p={className:(0,l.default)(`zh-date-picker`,e),disabledDate:n?e=>A(new Date(String(e))):t};return i===`daterange`?(0,u.jsx)(c.DatePicker.RangePicker,{...o,...p,onChange:s}):(0,u.jsx)(c.DatePicker,{...o,...p,onChange:f})}var M={lg:4,md:2,sm:2,xl:4,xs:1},N=(0,d.createContext)({breakPoint:`xl`,cols:4,gap:16});function P(e){return e<768?`xs`:e<992?`sm`:e<1200?`md`:e<1920?`lg`:`xl`}function ee(){let[e,t]=(0,d.useState)(()=>typeof window>`u`?`xl`:P(window.innerWidth));return(0,d.useEffect)(()=>{let e=()=>t(P(window.innerWidth));return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e}function te(e,t){return typeof e==`number`?e:e[t]}function ne(e){return Array.isArray(e)?{columnGap:e[0],css:`${e[1]}px ${e[0]}px`}:{columnGap:e,css:`${e}px`}}function re(e,t){return{offset:e[t]?.offset??e.offset??0,span:e[t]?.span??e.span??1}}function ie(e){return(0,d.isValidElement)(e)?e.type.displayName===`GridItem`:!1}function ae(e,t,n,r){let i=d.Children.toArray(e),a=i.find(e=>ie(e)&&e.props.suffix),o=a&&ie(a)?re(a.props,t).offset+re(a.props,t).span:0,s=r*n-o,c=0,l=-1;return i.forEach((e,n)=>{if(!ie(e)||e.props.suffix||l!==-1)return;let{offset:r,span:i}=re(e.props,t);c+=r+i,c>s&&(l=n)}),l===-1?i:i.map((e,t)=>!ie(e)||e.props.suffix||t<l?e:(0,d.cloneElement)(e,{hidden:!0}))}function oe({children:e,className:t,collapsed:n=!1,collapsedRows:r=1,cols:i=M,gap:a=16,style:o,...s}){let c=ee(),f=te(i,c),p=ne(a),m=n?ae(e,c,f,r):e,h=(0,d.useMemo)(()=>({breakPoint:c,cols:f,gap:p.columnGap}),[c,f,p.columnGap]),g=(0,d.useMemo)(()=>({display:`grid`,gridGap:p.css,gridTemplateColumns:`repeat(${f}, minmax(0, 1fr))`,...o}),[f,p.css,o]);return(0,u.jsx)(N.Provider,{value:h,children:(0,u.jsx)(`div`,{...s,className:(0,l.default)(`zh-grid`,t),style:g,children:m})})}function F({children:e,className:t,hidden:n=!1,offset:r=0,span:i=1,style:a,suffix:o=!1,...s}){let c=(0,d.useContext)(N),f=re({...s,offset:r,span:i,suffix:o},c.breakPoint),p=Math.min(f.span+f.offset,c.cols),m=(0,d.useMemo)(()=>{let e=o?{gridColumnEnd:`span ${f.span+f.offset}`,gridColumnStart:c.cols-f.span-f.offset+1}:{gridColumn:`span ${p} / span ${p}`};return f.offset!==0&&(e.marginLeft=`calc(((100% + ${c.gap}px) / ${f.span+f.offset}) * ${f.offset})`),n&&(e.display=`none`),e},[p,n,c.cols,c.gap,f.offset,f.span,o]),h=(0,d.useMemo)(()=>({...m,...a}),[m,a]);return(0,u.jsx)(`div`,{...s,className:(0,l.default)(`zh-grid-item`,t),hidden:n,style:h,children:e})}F.displayName=`GridItem`;function se({children:e,className:t,...n}){return(0,u.jsx)(`div`,{...n,className:(0,l.default)(`zh-multi-grid`,t),children:e})}var ce=(0,d.createContext)({infoDirection:`horizontal`,labelWidth:`70px`});function le({children:e,cols:t=4,contentWidth:n,gap:r=16,infoDirection:i=`horizontal`,labelWidth:a=`70px`,...o}){let s=(0,d.useMemo)(()=>({contentWidth:n,infoDirection:i,labelWidth:a}),[n,i,a]);return(0,u.jsx)(ce.Provider,{value:s,children:(0,u.jsx)(oe,{...o,cols:t,gap:r,children:e})})}function ue(e){if(!(e==null||e===``))return typeof e==`number`||!Number.isNaN(Number(e))?`${e}px`:String(e)}function de(e,t){return e==null||e===``?t:e}function fe(e,t){if(!t)return e;let n=e.lastIndexOf(`.`);return`${t}${n===-1?``:e.slice(n)}`}function pe(e){return typeof e==`function`?e():e}function me({children:e,className:t,colon:n=!1,defaultValue:r=`--`,fetchFileById:i,fileId:a,infoDirection:o,label:s,labelClassName:p,labelRender:m,labelWidth:h,onClick:g,rewriteFileName:_,showFileName:v=!0,span:y=1,value:b,valueClassName:x,valueNode:S,valueRender:C,...w}){let T=(0,d.useContext)(ce),E=o??T.infoDirection,D=h??T.labelWidth,[O,k]=(0,d.useState)(),A=de(b,r),j=!!(g&&b),M=!!(!b&&a),N=(0,d.useMemo)(()=>({width:E===`horizontal`?ue(D):void 0}),[E,D]),P=(0,d.useCallback)(e=>{e.preventDefault(),g?.(b??void 0)},[g,b]);(0,d.useEffect)(()=>{let e=!0;if(!(!M||!a||!i))return i(a).then(t=>{e&&k(t)}),()=>{e=!1}},[i,a,M]);let ee=O?.name?fe(O.name,_):``;return(0,u.jsx)(F,{label:s,span:y,children:(0,u.jsxs)(`div`,{...w,className:(0,l.default)(`zh-base-item`,E,t),children:[(0,u.jsx)(`div`,{className:(0,l.default)(`zh-base-item-label`,E,p),style:N,children:m?pe(m):`${s??``}${n?`:`:``}`}),(0,u.jsx)(`div`,{className:(0,l.default)(`zh-base-item-value`,x),children:e??S??(j?(0,u.jsx)(c.Typography.Link,{href:`#`,className:`zh-base-item--value--link`,onClick:P,children:b}):null)??(M?(0,u.jsxs)(`div`,{className:`zh-base-item--value--file`,children:[v?(0,u.jsxs)(`span`,{className:`zh-base-item--file-name`,children:[(0,u.jsx)(f.FileOutlined,{className:`zh-base-item--file-icon`}),ee]}):null,(0,u.jsx)(c.Typography.Link,{className:(0,l.default)(v&&`ml-8`),href:O?.path,target:`_blank`,children:`查看/下载`})]}):null)??(C?pe(C):null)??A})]})})}var he=[];function ge(e){return(0,u.jsxs)(`div`,{className:`detail-header__info-pair`,children:[(0,u.jsx)(`div`,{className:`detail-header__info-label`,children:e.label}),(0,u.jsx)(`div`,{className:`detail-header__info-value`,children:e.value??`--`})]},`${e.label}-${e.value??`empty`}`)}function _e({children:e,className:t,extraInfo:n,leftInfos:r=he,menu:i,rightInfos:a=he,rightInfosNode:o,stateDesc:s,stateMeta:c,title:d,...f}){let p=s??c?.intro;return(0,u.jsxs)(`div`,{...f,className:(0,l.default)(`zh-detail-header-card`,t),children:[i?(0,u.jsx)(`div`,{className:`zh-detail-header-menu`,children:i}):null,(0,u.jsxs)(`div`,{className:`zh-detail-header`,children:[(0,u.jsxs)(`div`,{className:`zh-detail-header__left`,children:[(0,u.jsx)(`div`,{className:`zh-detail-header__title`,children:d}),n,r.map(ge)]}),e,o??(0,u.jsxs)(`div`,{className:`zh-detail-header__right`,children:[a.map(ge),p?(0,u.jsx)(`div`,{className:(0,l.default)(`zh-detail-header__state`,c?.state),children:p}):null]})]})]})}function ve(e){return e==null||e===``?`--`:e}function ye({className:e,ellipsis:t=!1,tip:n,title:r,value:i,valueNode:a,...o}){return(0,u.jsxs)(`div`,{...o,className:(0,l.default)(`zh-info-pair`,e),children:[(0,u.jsxs)(`div`,{className:`zh-info-pair__title`,children:[r,n?(0,u.jsx)(`div`,{className:`zh-info-pair__tip`,children:n}):null]}),(0,u.jsx)(`div`,{className:(0,l.default)(`zh-info-pair__value`,t&&`ellipsis`),children:a??ve(i)})]})}function be(e){return(0,u.jsx)(ye,{...e,className:[`zh-detail-sub-title`,e.className].filter(Boolean).join(` `)})}var xe={extraLarge:`920px`,large:`800px`,middle:`600px`,small:`400px`};function I({cancelButtonText:e=`取消`,children:t,className:n,closeOnClickModal:r=!1,confirmButtonDisabled:i=!1,confirmButtonText:a=`确定`,footerNode:o,headerNode:s,modelValue:f,onClose:p,onOpenChange:m,onSubmit:h,open:g,size:_=`middle`,subTitle:v,title:b,width:x,...S}){let C=g??f??!0,w=x??xe[_],T=(0,d.useCallback)(()=>{m?.(!1),p?.()},[p,m]),E=(0,d.useCallback)(()=>h?.(),[h]),D=(0,d.useMemo)(()=>s??(b||v?(0,u.jsxs)(`div`,{className:`zh-dialog__header`,children:[b?(0,u.jsx)(`div`,{className:`zh-dialog__title`,children:b}):null,v?(0,u.jsx)(`div`,{className:`zh-dialog__sub-title`,children:v}):null]}):null),[s,v,b]),O=(0,d.useMemo)(()=>o??(0,u.jsxs)(`div`,{className:`zh-dialog__footer`,children:[(0,u.jsx)(y,{"aria-label":e,onClick:T,children:e}),(0,u.jsx)(y,{"aria-label":a,disabled:i,onClick:E,type:`primary`,children:a})]}),[e,i,a,o,T,E]),k=(0,d.useMemo)(()=>({closable:r}),[r]);return(0,u.jsx)(c.Modal,{...S,centered:!0,className:(0,l.default)(`zh-dialog`,n),footer:O,mask:k,onCancel:T,open:C,title:D,width:w,children:t})}var L=function(e){return e.AUTOCOMPLETE=`autocomplete`,e.FORMAT=`format`,e.INDEX=`index`,e.SELECTION=`selection`,e.TEXT=`text`,e}({}),Se=`$ZH_DIV$`,Ce=[],we=0;function Te(){return we+=1,`key_${Date.now()}_${we}_${Math.random().toString(36).slice(2,11)}`}function Ee(e){return e.map(e=>({...e}))}function De(e,t,n){let r=t.isSameData?n[0]||{}:e;if(t.formatter){let e=t.type===L.FORMAT?t.formatter(r):t.formatter(String(r[t.prop]??``));return t.showFormatter?t.showFormatter(e):e}return r[t.prop]||`--`}var Oe=(0,d.forwardRef)(function({addColumnText:e=`增列`,addRowText:t=`增行`,beforeAddRow:n,canOnlyEditNewlyColumnHeader:r=!1,columns:i=Ce,customAddColumn:a=!0,customAddRow:o=!0,data:s,defaultMinWidth:l=120,isEdit:p=!1,maxColLength:m=10,maxRowLength:h=50,onChange:g,operationNode:_,operationOption:v,rawData:y,rowKey:b=`id`,slots:x},S){let[C,w]=(0,d.useState)(()=>Ee(y??s??[])),[T,E]=(0,d.useState)(i),D=(0,d.useMemo)(()=>({addColumnText:e,addRowText:t,customAddColumn:a,customAddRow:o,isShow:!0,width:150,...v}),[e,t,a,o,v]),O=(0,d.useCallback)(e=>{w(e),g?.(e)},[g]),k=(0,d.useCallback)((e,t,n)=>{O(C.map((r,i)=>i===e?{...r,[t]:n}:r))},[C,O]),A=(0,d.useCallback)((e,t)=>{E(n=>n.map((n,r)=>r===e?{...n,label:t}:n))},[]),j=(0,d.useCallback)((e,t)=>{E(t=>t.filter((t,n)=>n!==e)),O(C.map(e=>{let n={...e};return delete n[t.prop],n}))},[C,O]),M=(0,d.useCallback)(()=>{if(C.length===h){c.message.warning(`最多添加${h}行`);return}let e={[b]:Te()};if(n){let t=n(C);e={...t,[b]:t[b]??Te()}}O([...C,e])},[n,C,h,b,O]),N=(0,d.useCallback)(()=>{if(T.filter(e=>e.isAdd).length>=m){c.message.warning(`最多添加${m}列`);return}let e=String(Date.now());E(t=>[...t,{headerMaxlength:15,isAdd:!0,isEditHeader:!0,isNewlyColumn:!0,label:``,maxlength:15,minWidth:150,prop:e}])},[T,m]),P=(0,d.useCallback)(e=>O(C.filter((t,n)=>n!==e)),[C,O]),ee=(0,d.useCallback)((e,t,n)=>e.slot&&x?.[e.slot]?x[e.slot]({$index:n,row:t}):e.type===L.AUTOCOMPLETE?(0,u.jsx)(c.AutoComplete,{onChange:t=>k(n,e.prop,t),options:(e.completeList??[]).map(e=>({value:e})),placeholder:e.placeholder??`请输入`,value:String(t[e.prop]??``)}):e.type===L.FORMAT&&e.formatter?(0,u.jsx)(`span`,{children:De(t,e,C)}):(0,u.jsx)(c.Input,{maxLength:e.maxlength??20,onChange:t=>k(n,e.prop,t.target.value),placeholder:e.placeholder??`请输入`,showCount:e.showWordLimit,value:String(t[e.prop]??``)}),[C,x,k]),te=(0,d.useMemo)(()=>{let e=T.map((e,t)=>({align:e.align,dataIndex:e.prop,fixed:e.fixed,key:e.key??e.prop,render:(t,n,r)=>p&&e.type!==L.TEXT&&!n.disabled?ee(e,n,r):e.slot&&x?.[e.slot]?x[e.slot]({$index:r,row:n}):De(n,e,C),title:()=>e.headerRender?e.headerRender({$index:t,column:e}):p&&e.isEditHeader&&(r&&e.isNewlyColumn||!r)?(0,u.jsxs)(`div`,{className:`zh-diy-data-table__header-edit`,children:[(0,u.jsx)(c.Input,{maxLength:e.headerMaxlength??20,onChange:e=>A(t,e.target.value),placeholder:`请输入表头`,value:e.label}),e.isAdd?(0,u.jsx)(c.Button,{"aria-label":`删除列`,icon:(0,u.jsx)(f.CloseOutlined,{}),onClick:()=>j(t,e),type:`text`}):null]}):(0,u.jsx)(`span`,{className:e.required?`is-required-label`:void 0,children:e.label}),width:e.width??e.minWidth??l}));return!p||D.isShow===!1?e:[...e,{fixed:`right`,key:`operation`,render:(e,t,n)=>(0,u.jsx)(`div`,{className:`zh-diy-data-table__operation`,children:_?.({$index:n,row:t})??(C.length>1&&!t.disabled?(0,u.jsx)(c.Button,{"aria-label":`删除行`,icon:(0,u.jsx)(f.CloseOutlined,{}),onClick:()=>P(n),type:`text`}):null)}),title:()=>(0,u.jsxs)(`div`,{className:`zh-diy-data-table__operation-header`,children:[D.customAddRow?(0,u.jsx)(c.Button,{"aria-label":D.addRowText,icon:(0,u.jsx)(f.PlusOutlined,{}),onClick:M,type:`link`,children:D.addRowText}):null,D.customAddColumn?(0,u.jsx)(c.Button,{"aria-label":D.addColumnText,icon:(0,u.jsx)(f.PlusOutlined,{}),onClick:N,type:`link`,children:D.addColumnText}):null]}),width:D.width}]},[N,M,r,T,C,l,j,P,D,p,_,ee,x,A]),ne=(0,d.useCallback)(async(e=!0)=>{if(e){let e=new Set;for(let t of T){if(t.required&&C.some(e=>!e[t.prop])){c.message.warning(t.requiredMessage||`${t.label}不能为空`);return}if(t.label){if(e.has(t.label)){c.message.warning(`所有列的表头不可重复`);return}e.add(t.label)}}}let t=Ee(C);return t.forEach((e,n)=>{T.forEach((r,i)=>{if(r.isSameData&&n!==0&&(e[r.prop]=t[0][r.prop]),!(r.varidate&&r.varidate(e[r.prop],e,n)!==!0)){if(r.isAdd){let t=e[r.prop];delete e[r.prop],e[`${r.label}${Se}${i}`]=t}r.formatter&&r.type===L.FORMAT&&(e[r.prop]=r.formatter(e))}})}),{columns:T,data:t}},[T,C]);return(0,d.useImperativeHandle)(S,()=>({formRef:null,getColumns:()=>T,getData:ne,initData:(e,t)=>{let n=Ee(e.length?e:[{[b]:Te()}]);n.forEach(e=>{e[b]||(e[b]=Te())}),O(n),E(t.filter(e=>e.type!==L.INDEX&&e.type!==L.SELECTION))},onAddColumn:N,onAddRow:M,resetColumns:(e,t=!1)=>{E(n=>t?e:[...e,...n.filter(e=>e.isAdd)])},updateColumn:(e,t)=>{E(n=>n.map((n,r)=>r===e?t:n))}}),[N,M,T,ne,b,O]),(0,u.jsx)(c.Form,{className:`zh-diy-data-table`,children:(0,u.jsx)(c.Table,{className:`zh-diy-data-table__table`,columns:te,dataSource:C,pagination:!1,rowKey:b})})});function ke(e){return e==null||e===``?`--`:e}function Ae({className:e,ellipsis:t=!1,tip:n,title:r,value:i,valueNode:a,...o}){return(0,u.jsxs)(`div`,{...o,className:(0,l.default)(`zh-edit-info-pair`,e),children:[(0,u.jsxs)(`div`,{className:`zh-edit-info-pair__title`,children:[r,n?(0,u.jsx)(`div`,{className:`zh-edit-info-pair__tip`,children:n}):null]}),(0,u.jsx)(`div`,{className:(0,l.default)(`zh-edit-info-pair__value`,t&&`ellipsis`),children:a??ke(i)})]})}var je=(0,u.jsx)(f.CloseOutlined,{});function Me({canDelete:e=!1,className:t,downLoadUrl:n=``,fileId:r=0,fileName:i=`--`,onDeleteFile:a,title:o=``,...s}){let p=(0,d.useCallback)(()=>{e&&a?.(r)},[e,r,a]);return(0,u.jsxs)(`div`,{...s,className:(0,l.default)(`zh-file-wrapper`,t),children:[o?(0,u.jsx)(`div`,{className:`zh-file-wrapper__header`,children:o}):null,(0,u.jsxs)(`div`,{className:`zh-file-wrapper__main`,children:[(0,u.jsxs)(`div`,{className:`zh-file-wrapper__file`,children:[(0,u.jsx)(`div`,{className:`zh-file-wrapper__file-type`,children:(0,u.jsx)(f.FileOutlined,{})}),(0,u.jsx)(`div`,{className:`zh-file-wrapper__file-name`,children:i})]}),(0,u.jsx)(c.Typography.Link,{className:`zh-file-wrapper__download`,download:`download`,href:n,children:`查看/下载`}),e?(0,u.jsx)(c.Button,{"aria-label":`删除文件`,className:`zh-file-wrapper__delete`,icon:je,onClick:p,type:`text`}):null]})]})}function Ne(e,t,n){if(e===``)return e;let r=Number(e);return Number.isNaN(r)?e:n!==void 0&&r>=Number(n)?String(n):t!==void 0&&r<=Number(t)?String(t):e}function Pe({className:e,max:t,min:n,onBlur:r,onChange:i,size:a=`default`,value:o,...s}){let f=a==="default"?`middle`:a,p=(0,d.useCallback)(e=>{let a=Ne(e.target.value,n,t);a!==e.target.value&&i?.(a),r?.(e)},[t,n,r,i]),m=(0,d.useCallback)(e=>i?.(e.target.value),[i]);return(0,u.jsx)(`div`,{className:(0,l.default)(`zh-input`,e),"data-testid":`zh-input`,children:(0,u.jsx)(c.Input,{...s,onBlur:p,onChange:m,size:f,value:o})})}function Fe(e,{integer:t=0,maxLength:n=0,precision:r=0}={}){let i=e?.toString()??``;if(r===0)i=i.replace(/[^\d]/g,``),i=i.replace(/^0\d+/g,`0`),t!==0&&(i=i.slice(0,t));else{i=i.replace(/[^\-\d.]/g,``),i=i.replace(/^[^\-\d]/g,``),i=i.replace(/\.{2}/g,`.`),i=i.replace(/^0(\d+)/g,`$1`);let[e=``,n]=i.split(`.`),a=t===0?e:e.slice(0,t);i=n===void 0?a:`${a}.${n.slice(0,r)}`}return n!==0&&(i=i.slice(0,n)),i===``?``:i.includes(`.`)?i:Number(i)}function Ie({className:e,integer:t,max:n,maxLength:r,min:i,onBlur:a,onChange:o,precision:s,value:f,...p}){let m=(0,d.useCallback)(e=>{o?.(Fe(e,{integer:t,maxLength:r,precision:s}))},[t,r,o,s]),h=(0,d.useCallback)(e=>{f!==``&&f!==void 0&&(n!==void 0&&Number(f)>Number(n)&&o?.(String(n)),i!==void 0&&Number(f)<Number(i)&&o?.(String(i))),a?.(e)},[n,i,a,o,f]),g=(0,d.useCallback)(e=>m(e.target.value),[m]);return(0,u.jsx)(`div`,{className:(0,l.default)(`zh-input-number`,e),children:(0,u.jsx)(c.Input,{...p,onBlur:h,onChange:g,value:f})})}function Le({className:e,spinProps:t,...n}){return(0,u.jsx)(`output`,{...n,"aria-label":`loading`,className:(0,l.default)(`zh-loading`,e),children:(0,u.jsx)(`div`,{className:`zh-loading__wrap`,children:(0,u.jsx)(c.Spin,{...t})})})}function Re(e,t){return e>t?1:e<t?-1:0}function ze(e,t,n){if(e[0]<=t)return 0;let r=e.length;if(t<=e[r-1])return r-1;if(typeof n==`function`){for(let i=1;i<r;++i){let r=e[i];if(r===t)return i;if(r<t)return n(t,e[i-1],r)>0?i-1:i}return r-1}if(n>0){for(let n=1;n<r;++n)if(e[n]<t)return n-1;return r-1}if(n<0){for(let n=1;n<r;++n)if(e[n]<=t)return n;return r-1}for(let n=1;n<r;++n){if(e[n]==t)return n;if(e[n]<t)return e[n-1]-t<t-e[n]?n-1:n}return r-1}function Be(e,t){let n=Array.isArray(t)?t:[t],r=n.length;for(let t=0;t<r;t++)e[e.length]=n[t]}function Ve(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function He(e,t,n){let r=t||Re;return e.every(function(t,i){if(i===0)return!0;let a=r(e[i-1],t);return!(a>0||n&&a===0)})}var Ue=`ol-hidden`,We=`ol-unselectable`,Ge=`ol-control`,Ke=`ol-collapsed`;new RegExp([`^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)`,`(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)`,`(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)`,`(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?`,`(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))`,`(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))`,`?\\s*([-,\\"\\'\\sa-z0-9]+?)\\s*$`].join(``),`i`);var qe=typeof navigator<`u`&&navigator.userAgent!==void 0?navigator.userAgent.toLowerCase():``;qe.includes(`safari`)&&!qe.includes(`chrom`)&&(qe.includes(`version/15.4`)||/cpu (os|iphone os) 15_4 like mac os x/.test(qe)),qe.includes(`webkit`)&&qe.includes(`edge`),qe.includes(`macintosh`);var Je=typeof WorkerGlobalScope<`u`&&typeof OffscreenCanvas<`u`&&self instanceof WorkerGlobalScope,Ye=typeof Image<`u`&&Image.prototype.decode;(function(){let e=!1;try{let t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener(`_`,null,t),window.removeEventListener(`_`,null,t)}catch{}return e})();function Xe(e,t,n,r){let i;return i=n&&n.length?n.shift():Je?new class extends OffscreenCanvas{style={}}(e??300,t??150):document.createElement(`canvas`),e&&(i.width=e),t&&(i.height=t),i.getContext(`2d`,r)}var Ze;function Qe(){return Ze||=Xe(1,1),Ze}function $e(e){let t=e.canvas;t.width=1,t.height=1,e.clearRect(0,0,1,1)}function et(e,t){let n=t.parentNode;n&&n.replaceChild(e,t)}function tt(e){for(;e.lastChild;)e.lastChild.remove()}function nt(){return new Proxy({childNodes:[],appendChild:function(e){return this.childNodes.push(e),e},remove:function(){},removeChild:function(e){let t=this.childNodes.indexOf(e);if(t===-1)throw Error(`Node to remove was not found`);return this.childNodes.splice(t,1),e},insertBefore:function(e,t){let n=this.childNodes.indexOf(t);if(n===-1)throw Error(`Reference node not found`);return this.childNodes.splice(n,0,e),e},style:{}},{get(e,t,n){return t===`firstElementChild`?e.childNodes.length>0?e.childNodes[0]:null:Reflect.get(e,t,n)}})}function rt(e){return typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas}var R={CHANGE:`change`,ERROR:`error`,BLUR:`blur`,CLEAR:`clear`,CONTEXTMENU:`contextmenu`,CLICK:`click`,DBLCLICK:`dblclick`,DRAGENTER:`dragenter`,DRAGOVER:`dragover`,DROP:`drop`,FOCUS:`focus`,KEYDOWN:`keydown`,KEYPRESS:`keypress`,LOAD:`load`,RESIZE:`resize`,TOUCHMOVE:`touchmove`,WHEEL:`wheel`};function it(){}function at(e){let t,n,r;return function(){let i=Array.prototype.slice.call(arguments);return(!n||this!==r||!Ve(i,n))&&(r=this,n=i,t=e.apply(this,arguments)),t}}function ot(e){function t(){let t;try{t=e()}catch(e){return Promise.reject(e)}return t instanceof Promise?t:Promise.resolve(t)}return t()}var st={POSTRENDER:`postrender`,MOVESTART:`movestart`,MOVEEND:`moveend`,LOADSTART:`loadstart`,LOADEND:`loadend`},ct={PROPERTYCHANGE:`propertychange`};function lt(e){for(let t in e)delete e[t]}function ut(e){let t;for(t in e)return!1;return!t}function dt(e,t,n,r,i){if(i){let i=n;n=function(a){return e.removeEventListener(t,n),i.call(r??this,a)}}else r&&r!==e&&(n=n.bind(r));let a={target:e,type:t,listener:n};return e.addEventListener(t,n),a}function ft(e,t,n,r){return dt(e,t,n,r,!0)}function z(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),lt(e))}var pt=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}},mt=class{constructor(e){this.propagationStopped,this.defaultPrevented,this.type=e,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}},ht=class extends pt{constructor(e){super(),this.eventTarget_=e,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(e,t){if(!e||!t)return;let n=this.listeners_||={},r=n[e]||(n[e]=[]);r.includes(t)||r.push(t)}dispatchEvent(e){let t=typeof e==`string`,n=t?e:e.type,r=this.listeners_&&this.listeners_[n];if(!r)return;let i=t?new mt(e):e;i.target||=this.eventTarget_||this;let a=this.dispatching_||={},o=this.pendingRemovals_||={};n in a||(a[n]=0,o[n]=0),++a[n];let s;for(let e=0,t=r.length;e<t;++e)if(s=`handleEvent`in r[e]?r[e].handleEvent(i):r[e].call(this,i),s===!1||i.propagationStopped){s=!1;break}if(--a[n]===0){let e=o[n];for(delete o[n];e--;)this.removeEventListener(n,it);delete a[n]}return s}disposeInternal(){this.listeners_&&lt(this.listeners_)}getListeners(e){return this.listeners_&&this.listeners_[e]||void 0}hasListener(e){return this.listeners_?e?e in this.listeners_:Object.keys(this.listeners_).length>0:!1}removeEventListener(e,t){if(!this.listeners_)return;let n=this.listeners_[e];if(!n)return;let r=n.indexOf(t);r!==-1&&(this.pendingRemovals_&&e in this.pendingRemovals_?(n[r]=it,++this.pendingRemovals_[e]):(n.splice(r,1),n.length===0&&delete this.listeners_[e]))}},gt=class extends ht{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(R.CHANGE)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){let n=e.length,r=Array(n);for(let i=0;i<n;++i)r[i]=dt(this,e[i],t);return r}return dt(this,e,t)}onceInternal(e,t){let n;if(Array.isArray(e)){let r=e.length;n=Array(r);for(let i=0;i<r;++i)n[i]=ft(this,e[i],t)}else n=ft(this,e,t);return t.ol_key=n,n}unInternal(e,t){let n=t.ol_key;if(n)_t(n);else if(Array.isArray(e))for(let n=0,r=e.length;n<r;++n)this.removeEventListener(e[n],t);else this.removeEventListener(e,t)}};gt.prototype.on,gt.prototype.once,gt.prototype.un;function _t(e){if(Array.isArray(e))for(let t=0,n=e.length;t<n;++t)z(e[t]);else z(e)}function B(){throw Error(`Unimplemented abstract method.`)}var vt=0;function V(e){return e.ol_uid||=String(++vt)}var yt=class extends mt{constructor(e,t,n){super(e),this.key=t,this.oldValue=n}},bt=class extends gt{constructor(e){super(),this.on,this.once,this.un,V(this),this.values_=null,e!==void 0&&this.setProperties(e)}get(e){let t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,t){let n;n=`change:${e}`,this.hasListener(n)&&this.dispatchEvent(new yt(n,e,t)),n=ct.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new yt(n,e,t))}addChangeListener(e,t){this.addEventListener(`change:${e}`,t)}removeChangeListener(e,t){this.removeEventListener(`change:${e}`,t)}set(e,t,n){let r=this.values_||={};if(n)r[e]=t;else{let n=r[e];r[e]=t,n!==t&&this.notify(e,n)}}setProperties(e,t){for(let n in e)this.set(n,e[n],t)}applyProperties(e){e.values_&&Object.assign(this.values_||={},e.values_)}unset(e,t){if(this.values_&&e in this.values_){let n=this.values_[e];delete this.values_[e],ut(this.values_)&&(this.values_=null),t||this.notify(e,n)}}},xt=class extends bt{constructor(e){super();let t=e.element;t&&!e.target&&!t.style.pointerEvents&&(t.style.pointerEvents=`auto`),this.element=t||null,this.target_=null,this.map_=null,this.listenerKeys=[],e.render&&(this.render=e.render),e.target&&this.setTarget(e.target)}disposeInternal(){this.element?.remove(),super.disposeInternal()}getMap(){return this.map_}setMap(e){this.map_&&this.element?.remove();for(let e=0,t=this.listenerKeys.length;e<t;++e)z(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=e,e){let t=this.target_??e.getOverlayContainerStopEvent();this.element&&t.appendChild(this.element),this.render!==it&&this.listenerKeys.push(dt(e,st.POSTRENDER,this.render,this)),e.render()}}render(e){}setTarget(e){this.target_=typeof e==`string`?document.getElementById(e):e}},St=class extends xt{constructor(e){e||={},super({element:document.createElement(`div`),render:e.render,target:e.target}),this.ulElement_=document.createElement(`ul`),this.collapsed_=e.collapsed===void 0?!0:e.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=e.collapsible!==void 0,this.collapsible_=e.collapsible===void 0?!0:e.collapsible,this.collapsible_||(this.collapsed_=!1),this.attributions_=e.attributions;let t=e.className===void 0?`ol-attribution`:e.className,n=e.tipLabel===void 0?`Attributions`:e.tipLabel,r=e.expandClassName===void 0?t+`-expand`:e.expandClassName,i=e.collapseLabel===void 0?`›`:e.collapseLabel,a=e.collapseClassName===void 0?t+`-collapse`:e.collapseClassName;typeof i==`string`?(this.collapseLabel_=document.createElement(`span`),this.collapseLabel_.textContent=i,this.collapseLabel_.className=a):this.collapseLabel_=i;let o=e.label===void 0?`i`:e.label;typeof o==`string`?(this.label_=document.createElement(`span`),this.label_.textContent=o,this.label_.className=r):this.label_=o;let s=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement(`button`),this.toggleButton_.setAttribute(`type`,`button`),this.toggleButton_.setAttribute(`aria-expanded`,String(!this.collapsed_)),this.toggleButton_.title=n,this.toggleButton_.appendChild(s),this.toggleButton_.addEventListener(R.CLICK,this.handleClick_.bind(this),!1);let c=t+` `+We+` `+Ge+(this.collapsed_&&this.collapsible_?` `+Ke:``)+(this.collapsible_?``:` ol-uncollapsible`),l=this.element;l.className=c,l.appendChild(this.toggleButton_),l.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(e){let t=this.getMap().getAllLayers(),n=new Set(t.flatMap(t=>t.getAttributions(e)));if(this.attributions_!==void 0&&(Array.isArray(this.attributions_)?this.attributions_.forEach(e=>n.add(e)):n.add(this.attributions_)),!this.overrideCollapsible_){let e=!t.some(e=>e.getSource()?.getAttributionsCollapsible()===!1);this.setCollapsible(e)}return Array.from(n)}async updateElement_(e){if(!e){this.renderedVisible_&&=(this.element.style.display=`none`,!1);return}let t=await Promise.all(this.collectSourceAttributions_(e).map(e=>ot(()=>e))),n=t.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?``:`none`,this.renderedVisible_=n),!Ve(t,this.renderedAttributions_)){tt(this.ulElement_);for(let e=0,n=t.length;e<n;++e){let n=document.createElement(`li`);n.innerHTML=t[e],this.ulElement_.appendChild(n)}this.renderedAttributions_=t}}handleClick_(e){e.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(Ke),this.collapsed_?et(this.collapseLabel_,this.label_):et(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute(`aria-expanded`,String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(e){this.collapsible_!==e&&(this.collapsible_=e,this.element.classList.toggle(`ol-uncollapsible`),this.userCollapsed_&&this.handleToggle_())}setCollapsed(e){this.userCollapsed_=e,!(!this.collapsible_||this.collapsed_===e)&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(e){this.updateElement_(e.frameState)}},Ct={ADD:`add`,REMOVE:`remove`},wt={LENGTH:`length`},Tt=class extends mt{constructor(e,t,n){super(e),this.element=t,this.index=n}},Et=class extends bt{constructor(e,t){if(super(),this.on,this.once,this.un,t||={},this.unique_=!!t.unique,this.array_=e??[],this.unique_)for(let e=1,t=this.array_.length;e<t;++e)this.assertUnique_(this.array_[e],e);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(e){for(let t=0,n=e.length;t<n;++t)this.push(e[t]);return this}forEach(e){let t=this.array_;for(let n=0,r=t.length;n<r;++n)e(t[n],n,t)}getArray(){return this.array_}item(e){return this.array_[e]}getLength(){return this.get(wt.LENGTH)}insertAt(e,t){if(e<0||e>this.getLength())throw Error(`Index out of bounds: `+e);this.unique_&&this.assertUnique_(t),this.array_.splice(e,0,t),this.updateLength_(),this.dispatchEvent(new Tt(Ct.ADD,t,e))}pop(){return this.removeAt(this.getLength()-1)}push(e){let t=this.getLength();return this.insertAt(t,e),this.getLength()}remove(e){let t=this.array_;for(let n=0,r=t.length;n<r;++n)if(t[n]===e)return this.removeAt(n)}removeAt(e){if(e<0||e>=this.getLength())return;let t=this.array_[e];return this.array_.splice(e,1),this.updateLength_(),this.dispatchEvent(new Tt(Ct.REMOVE,t,e)),t}setAt(e,t){if(e>=this.getLength()){this.insertAt(e,t);return}if(e<0)throw Error(`Index out of bounds: `+e);this.unique_&&this.assertUnique_(t,e);let n=this.array_[e];this.array_[e]=t,this.dispatchEvent(new Tt(Ct.REMOVE,n,e)),this.dispatchEvent(new Tt(Ct.ADD,t,e))}updateLength_(){this.set(wt.LENGTH,this.array_.length)}assertUnique_(e,t){let n=this.array_;for(let r=0,i=n.length;r<i;++r)if(n[r]===e&&r!==t)throw Error(`Duplicate item added to a unique collection`)}};function Dt(e){return e**3}function Ot(e){return 1-Dt(1-e)}function kt(e){return 3*e*e-2*e*e*e}var At=class extends xt{constructor(e){e||={},super({element:document.createElement(`div`),render:e.render,target:e.target});let t=e.className===void 0?`ol-rotate`:e.className,n=e.label===void 0?`⇧`:e.label,r=e.compassClassName===void 0?`ol-compass`:e.compassClassName;this.label_=null,typeof n==`string`?(this.label_=document.createElement(`span`),this.label_.className=r,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(r));let i=e.tipLabel?e.tipLabel:`Reset rotation`,a=document.createElement(`button`);a.className=t+`-reset`,a.setAttribute(`type`,`button`),a.title=i,a.appendChild(this.label_),a.addEventListener(R.CLICK,this.handleClick_.bind(this),!1);let o=t+` `+We+` `+Ge,s=this.element;s.className=o,s.appendChild(a),this.callResetNorth_=e.resetNorth?e.resetNorth:void 0,this.duration_=e.duration===void 0?250:e.duration,this.autoHide_=e.autoHide===void 0?!0:e.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(Ue)}handleClick_(e){e.preventDefault(),this.callResetNorth_===void 0?this.resetNorth_():this.callResetNorth_()}resetNorth_(){let e=this.getMap().getView();if(!e)return;let t=e.getRotation();t!==void 0&&(this.duration_>0&&t%(2*Math.PI)!=0?e.animate({rotation:0,duration:this.duration_,easing:Ot}):e.setRotation(0))}render(e){let t=e.frameState;if(!t)return;let n=t.viewState.rotation;if(n!=this.rotation_){let e=`rotate(`+n+`rad)`;if(this.autoHide_){let e=this.element.classList.contains(Ue);!e&&n===0?this.element.classList.add(Ue):e&&n!==0&&this.element.classList.remove(Ue)}this.label_.style.transform=e}this.rotation_=n}},jt=class extends xt{constructor(e){e||={},super({element:document.createElement(`div`),target:e.target});let t=e.className===void 0?`ol-zoom`:e.className,n=e.delta===void 0?1:e.delta,r=e.zoomInClassName===void 0?t+`-in`:e.zoomInClassName,i=e.zoomOutClassName===void 0?t+`-out`:e.zoomOutClassName,a=e.zoomInLabel===void 0?`+`:e.zoomInLabel,o=e.zoomOutLabel===void 0?`–`:e.zoomOutLabel,s=e.zoomInTipLabel===void 0?`Zoom in`:e.zoomInTipLabel,c=e.zoomOutTipLabel===void 0?`Zoom out`:e.zoomOutTipLabel,l=document.createElement(`button`);l.className=r,l.setAttribute(`type`,`button`),l.title=s,l.appendChild(typeof a==`string`?document.createTextNode(a):a),l.addEventListener(R.CLICK,this.handleClick_.bind(this,n),!1);let u=document.createElement(`button`);u.className=i,u.setAttribute(`type`,`button`),u.title=c,u.appendChild(typeof o==`string`?document.createTextNode(o):o),u.addEventListener(R.CLICK,this.handleClick_.bind(this,-n),!1);let d=t+` `+We+` `+Ge,f=this.element;f.className=d,f.appendChild(l),f.appendChild(u),this.duration_=e.duration===void 0?250:e.duration}handleClick_(e,t){t.preventDefault(),this.zoomByDelta_(e)}zoomByDelta_(e){let t=this.getMap().getView();if(!t)return;let n=t.getZoom();if(n!==void 0){let r=t.getConstrainedZoom(n+e);this.duration_>0?(t.getAnimating()&&t.cancelAnimations(),t.animate({zoom:r,duration:this.duration_,easing:Ot})):t.setZoom(r)}}};function Mt(e){e||={};let t=new Et;return(e.zoom===void 0||e.zoom)&&t.push(new jt(e.zoomOptions)),(e.rotate===void 0||e.rotate)&&t.push(new At(e.rotateOptions)),(e.attribution===void 0||e.attribution)&&t.push(new St(e.attributionOptions)),t}var H={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function Nt(e){let t=zt();for(let n=0,r=e.length;n<r;++n)Kt(t,e[n]);return t}function Pt(e,t,n){return Bt(Math.min.apply(null,e),Math.min.apply(null,t),Math.max.apply(null,e),Math.max.apply(null,t),n)}function Ft(e,t,n){let r,i;return r=t<e[0]?e[0]-t:e[2]<t?t-e[2]:0,i=n<e[1]?e[1]-n:e[3]<n?n-e[3]:0,r*r+i*i}function It(e,t){return Lt(e,t[0],t[1])}function Lt(e,t,n){return e[0]<=t&&t<=e[2]&&e[1]<=n&&n<=e[3]}function Rt(e,t){let n=e[0],r=e[1],i=e[2],a=e[3],o=t[0],s=t[1],c=H.UNKNOWN;return o<n?c|=H.LEFT:o>i&&(c|=H.RIGHT),s<r?c|=H.BELOW:s>a&&(c|=H.ABOVE),c===H.UNKNOWN&&(c=H.INTERSECTING),c}function zt(){return[1/0,1/0,-1/0,-1/0]}function Bt(e,t,n,r,i){return i?(i[0]=e,i[1]=t,i[2]=n,i[3]=r,i):[e,t,n,r]}function Vt(e){return Bt(1/0,1/0,-1/0,-1/0,e)}function Ht(e,t){let n=e[0],r=e[1];return Bt(n,r,n,r,t)}function Ut(e,t,n,r,i){return qt(Vt(i),e,t,n,r)}function Wt(e,t){return e[0]==t[0]&&e[2]==t[2]&&e[1]==t[1]&&e[3]==t[3]}function Gt(e,t){return t[0]<e[0]&&(e[0]=t[0]),t[2]>e[2]&&(e[2]=t[2]),t[1]<e[1]&&(e[1]=t[1]),t[3]>e[3]&&(e[3]=t[3]),e}function Kt(e,t){t[0]<e[0]&&(e[0]=t[0]),t[0]>e[2]&&(e[2]=t[0]),t[1]<e[1]&&(e[1]=t[1]),t[1]>e[3]&&(e[3]=t[1])}function qt(e,t,n,r,i){for(;n<r;n+=i)Jt(e,t[n],t[n+1]);return e}function Jt(e,t,n){e[0]=Math.min(e[0],t),e[1]=Math.min(e[1],n),e[2]=Math.max(e[2],t),e[3]=Math.max(e[3],n)}function Yt(e,t){let n;return n=t(Zt(e)),n||(n=t(Qt(e)),n)||(n=t(on(e)),n)||(n=t(an(e)),n)?n:!1}function Xt(e){let t=0;return cn(e)||(t=W(e)*U(e)),t}function Zt(e){return[e[0],e[1]]}function Qt(e){return[e[2],e[1]]}function $t(e){return[(e[0]+e[2])/2,(e[1]+e[3])/2]}function en(e,t){let n;if(t===`bottom-left`)n=Zt(e);else if(t===`bottom-right`)n=Qt(e);else if(t===`top-left`)n=an(e);else if(t===`top-right`)n=on(e);else throw Error(`Invalid corner`);return n}function tn(e,t,n,r,i){let[a,o,s,c,l,u,d,f]=nn(e,t,n,r);return Bt(Math.min(a,s,l,d),Math.min(o,c,u,f),Math.max(a,s,l,d),Math.max(o,c,u,f),i)}function nn(e,t,n,r){let i=t*r[0]/2,a=t*r[1]/2,o=Math.cos(n),s=Math.sin(n),c=i*o,l=i*s,u=a*o,d=a*s,f=e[0],p=e[1];return[f-c+d,p-l-u,f-c-d,p-l+u,f+c-d,p+l+u,f+c+d,p+l-u,f-c+d,p-l-u]}function U(e){return e[3]-e[1]}function rn(e,t,n){let r=n||zt();return sn(e,t)?(e[0]>t[0]?r[0]=e[0]:r[0]=t[0],e[1]>t[1]?r[1]=e[1]:r[1]=t[1],e[2]<t[2]?r[2]=e[2]:r[2]=t[2],e[3]<t[3]?r[3]=e[3]:r[3]=t[3]):Vt(r),r}function an(e){return[e[0],e[3]]}function on(e){return[e[2],e[3]]}function W(e){return e[2]-e[0]}function sn(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function cn(e){return e[2]<e[0]||e[3]<e[1]}function ln(e,t){return t?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):e}function un(e,t,n){let r=!1,i=Rt(e,t),a=Rt(e,n);if(i===H.INTERSECTING||a===H.INTERSECTING)r=!0;else{let o=e[0],s=e[1],c=e[2],l=e[3],u=t[0],d=t[1],f=n[0],p=n[1],m=(p-d)/(f-u),h,g;a&H.ABOVE&&!(i&H.ABOVE)&&(h=f-(p-l)/m,r=h>=o&&h<=c),!r&&a&H.RIGHT&&!(i&H.RIGHT)&&(g=p-(f-c)*m,r=g>=s&&g<=l),!r&&a&H.BELOW&&!(i&H.BELOW)&&(h=f-(p-s)/m,r=h>=o&&h<=c),!r&&a&H.LEFT&&!(i&H.LEFT)&&(g=p-(f-o)*m,r=g>=s&&g<=l)}return r}function dn(e,t,n,r){if(cn(e))return Vt(n);let i=[];if(r>1){let t=e[2]-e[0],n=e[3]-e[1];for(let a=0;a<r;++a)i.push(e[0]+t*a/r,e[1],e[2],e[1]+n*a/r,e[2]-t*a/r,e[3],e[0],e[3]-n*a/r)}else i=[e[0],e[1],e[2],e[1],e[2],e[3],e[0],e[3]];t(i,i,2);let a=[],o=[];for(let e=0,t=i.length;e<t;e+=2)a.push(i[e]),o.push(i[e+1]);return Pt(a,o,n)}function fn(e,t){let n=t.getExtent(),r=$t(e);if(t.canWrapX()&&(r[0]<n[0]||r[0]>=n[2])){let t=W(n),i=Math.floor((r[0]-n[0])/t)*t;e[0]-=i,e[2]-=i}return e}function pn(e,t,n){if(t.canWrapX()){let r=t.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[r[0],e[1],r[2],e[3]]];fn(e,t);let i=W(r);if(W(e)>i&&!n)return[[r[0],e[1],r[2],e[3]]];if(e[0]<r[0])return[[e[0]+i,e[1],r[2],e[3]],[r[0],e[1],e[2],e[3]]];if(e[2]>r[2])return[[e[0],e[1],r[2],e[3]],[r[0],e[1],e[2]-i,e[3]]]}return[e]}function G(e,t,n){return Math.min(Math.max(e,t),n)}function mn(e,t,n,r,i,a){let o=i-n,s=a-r;if(o!==0||s!==0){let c=((e-n)*o+(t-r)*s)/(o*o+s*s);c>1?(n=i,r=a):c>0&&(n+=o*c,r+=s*c)}return hn(e,t,n,r)}function hn(e,t,n,r){let i=n-e,a=r-t;return i*i+a*a}function gn(e){let t=e.length;for(let n=0;n<t;n++){let r=n,i=Math.abs(e[n][n]);for(let a=n+1;a<t;a++){let t=Math.abs(e[a][n]);t>i&&(i=t,r=a)}if(i===0)return null;let a=e[r];e[r]=e[n],e[n]=a;for(let r=n+1;r<t;r++){let i=-e[r][n]/e[n][n];for(let a=n;a<t+1;a++)n==a?e[r][a]=0:e[r][a]+=i*e[n][a]}}let n=Array(t);for(let r=t-1;r>=0;r--){n[r]=e[r][t]/e[r][r];for(let i=r-1;i>=0;i--)e[i][t]-=e[i][r]*n[r]}return n}function _n(e){return e*180/Math.PI}function vn(e){return e*Math.PI/180}function yn(e,t){let n=e%t;return n*t<0?n+t:n}function bn(e,t,n){return e+n*(t-e)}function xn(e,t){let n=10**t;return Math.round(e*n)/n}function Sn(e,t){return Math.floor(xn(e,t))}function Cn(e,t){return Math.ceil(xn(e,t))}function wn(e,t,n){if(e>=t&&e<n)return e;let r=n-t;return((e-t)%r+r)%r+t}function Tn(e,t){return e[0]+=+t[0],e[1]+=+t[1],e}function En(e,t){let n=!0;for(let r=e.length-1;r>=0;--r)if(e[r]!=t[r]){n=!1;break}return n}function Dn(e,t){let n=Math.cos(t),r=Math.sin(t),i=e[0]*n-e[1]*r,a=e[1]*n+e[0]*r;return e[0]=i,e[1]=a,e}var On={info:1,warn:2,error:3,none:4},kn=On.info;function An(...e){kn>On.warn||console.warn(...e)}var jn={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937},Mn=class{constructor(e){this.code_=e.code,this.units_=e.units,this.extent_=e.extent===void 0?null:e.extent,this.worldExtent_=e.worldExtent===void 0?null:e.worldExtent,this.axisOrientation_=e.axisOrientation===void 0?`enu`:e.axisOrientation,this.global_=e.global===void 0?!1:e.global,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=e.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=e.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||jn[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(e){this.global_=e,this.canWrapX_=!!(e&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(e){this.defaultTileGrid_=e}setExtent(e){this.extent_=e,this.canWrapX_=!!(this.global_&&e)}setWorldExtent(e){this.worldExtent_=e}setGetPointResolution(e){this.getPointResolutionFunc_=e}getPointResolutionFunc(){return this.getPointResolutionFunc_}},Nn=6378137,Pn=Math.PI*Nn,Fn=[-Pn,-Pn,Pn,Pn],In=[-180,-85,180,85],Ln=Nn*Math.log(Math.tan(Math.PI/2)),Rn=class extends Mn{constructor(e){super({code:e,units:`m`,extent:Fn,global:!0,worldExtent:In,getPointResolution:function(e,t){return e/Math.cosh(t[1]/Nn)}})}},zn=[new Rn(`EPSG:3857`),new Rn(`EPSG:102100`),new Rn(`EPSG:102113`),new Rn(`EPSG:900913`),new Rn(`http://www.opengis.net/def/crs/EPSG/0/3857`),new Rn(`http://www.opengis.net/gml/srs/epsg.xml#3857`)];function Bn(e,t,n,r){let i=e.length;n=n>1?n:2,r??=n,t===void 0&&(t=n>2?e.slice():Array(i));for(let n=0;n<i;n+=r){t[n]=Pn*e[n]/180;let r=Nn*Math.log(Math.tan(Math.PI*(+e[n+1]+90)/360));r>Ln?r=Ln:r<-Ln&&(r=-Ln),t[n+1]=r}return t}function Vn(e,t,n,r){let i=e.length;n=n>1?n:2,r??=n,t===void 0&&(t=n>2?e.slice():Array(i));for(let n=0;n<i;n+=r)t[n]=180*e[n]/Pn,t[n+1]=360*Math.atan(Math.exp(e[n+1]/Nn))/Math.PI-90;return t}var Hn=6378137,Un=[-180,-90,180,90],Wn=Math.PI*Hn/180,Gn=class extends Mn{constructor(e,t){super({code:e,units:`degrees`,extent:Un,axisOrientation:t,global:!0,metersPerUnit:Wn,worldExtent:Un})}},Kn=[new Gn(`CRS:84`),new Gn(`EPSG:4326`,`neu`),new Gn(`urn:ogc:def:crs:OGC:1.3:CRS84`),new Gn(`urn:ogc:def:crs:OGC:2:84`),new Gn(`http://www.opengis.net/def/crs/OGC/1.3/CRS84`),new Gn(`http://www.opengis.net/gml/srs/epsg.xml#4326`,`neu`),new Gn(`http://www.opengis.net/def/crs/EPSG/0/4326`,`neu`)],qn={};function Jn(e){return qn[e]||qn[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,`EPSG:$3`)]||null}function Yn(e,t){qn[e]=t}var Xn={};function Zn(e,t,n){let r=e.getCode(),i=t.getCode();r in Xn||(Xn[r]={}),Xn[r][i]=n}function Qn(e,t){return e in Xn&&t in Xn[e]?Xn[e][t]:null}var $n=.9996,K=.00669438,er=K*K,tr=er*K,nr=K/(1-K),rr=Math.sqrt(1-K),ir=(1-rr)/(1+rr),ar=ir*ir,or=ar*ir,sr=or*ir,cr=sr*ir,lr=1-K/4-3*er/64-5*tr/256,ur=.002514607064228144,dr=26390466021299826e-22,fr=35*tr/3072,pr=3/2*ir-27/32*or+269/512*cr,mr=21/16*ar-55/32*sr,hr=151/96*or-417/128*cr,gr=1097/512*sr,_r=6378137;function vr(e,t,n){let r=e-5e5,i=(n.north?t:t-1e7)/$n/(_r*lr),a=i+pr*Math.sin(2*i)+mr*Math.sin(4*i)+hr*Math.sin(6*i)+gr*Math.sin(8*i),o=Math.sin(a),s=o*o,c=Math.cos(a),l=o/c,u=l*l,d=u*u,f=1-K*s,p=_r/Math.sqrt(1-K*s),m=(1-K)/f,h=nr*c**2,g=h*h,_=r/(p*$n),v=_*_,y=v*_,b=y*_,x=b*_,S=x*_,C=a-l/m*(v/2-b/24*(5+3*u+10*h-4*g-9*nr))+S/720*(61+90*u+298*h+45*d-252*nr-3*g),w=(_-y/6*(1+2*u+h)+x/120*(5-2*h+28*u-3*g+8*nr+24*d))/c;return w=wn(w+vn(wr(n.number)),-Math.PI,Math.PI),[_n(w),_n(C)]}var yr=-80,br=84,xr=-180,Sr=180;function Cr(e,t,n){e=wn(e,xr,Sr),t<yr?t=yr:t>br&&(t=br);let r=vn(t),i=Math.sin(r),a=Math.cos(r),o=i/a,s=o*o,c=s*s,l=vn(e),u=vn(wr(n.number)),d=_r/Math.sqrt(1-K*i**2),f=nr*a**2,p=a*wn(l-u,-Math.PI,Math.PI),m=p*p,h=m*p,g=h*p,_=g*p,v=_*p,y=_r*(lr*r-ur*Math.sin(2*r)+dr*Math.sin(4*r)-fr*Math.sin(6*r)),b=$n*d*(p+h/6*(1-s+f)+_/120*(5-18*s+c+72*f-58*nr))+5e5,x=$n*(y+d*o*(m/2+g/24*(5-s+9*f+4*f**2)+v/720*(61-58*s+c+600*f-330*nr)));return n.north||(x+=1e7),[b,x]}function wr(e){return(e-1)*6-180+3}var Tr=[/^EPSG:(\d+)$/,/^urn:ogc:def:crs:EPSG::(\d+)$/,/^http:\/\/www\.opengis\.net\/def\/crs\/EPSG\/0\/(\d+)$/];function Er(e){let t=0;for(let n of Tr){let r=e.match(n);if(r){t=parseInt(r[1]);break}}if(!t)return null;let n=0,r=!1;return t>32700&&t<32761?n=t-32700:t>32600&&t<32661&&(r=!0,n=t-32600),n?{number:n,north:r}:null}function Dr(e,t){return function(n,r,i,a){let o=n.length;i=i>1?i:2,a??=i,r||=i>2?n.slice():Array(o);for(let i=0;i<o;i+=a){let a=n[i],o=n[i+1],s=e(a,o,t);r[i]=s[0],r[i+1]=s[1]}return r}}function Or(e){return Er(e)?new Mn({code:e,units:`m`}):null}function kr(e){let t=Er(e.getCode());return t?{forward:Dr(Cr,t),inverse:Dr(vr,t)}:null}function Ar(e,t,n){n||=6371008.8;let r=vn(e[1]),i=vn(t[1]),a=(i-r)/2,o=vn(t[0]-e[0])/2,s=Math.sin(a)*Math.sin(a)+Math.sin(o)*Math.sin(o)*Math.cos(r)*Math.cos(i);return 2*n*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))}var jr=[kr],Mr=[Or],Nr=!0;function Pr(e){Nr=!(e===void 0||e)}function Fr(e,t){if(t!==void 0){for(let n=0,r=e.length;n<r;++n)t[n]=e[n];t=t}else t=e.slice();return t}function Ir(e){Yn(e.getCode(),e),Zn(e,e,Fr)}function Lr(e){e.forEach(Ir)}function q(e){if(typeof e!=`string`)return e;let t=Jn(e);if(t)return t;for(let t of Mr){let n=t(e);if(n)return n}return null}function Rr(e,t,n,r){e=q(e);let i,a=e.getPointResolutionFunc();if(a){if(i=a(t,n),r&&r!==e.getUnits()){let t=e.getMetersPerUnit();t&&(i=i*t/jn[r])}}else{let a=e.getUnits();if(a==`degrees`&&!r||r==`degrees`)i=t;else{let o=Kr(e,q(`EPSG:4326`));if(!o&&a!==`degrees`)i=t*e.getMetersPerUnit();else{let e=[n[0]-t/2,n[1],n[0]+t/2,n[1],n[0],n[1]-t/2,n[0],n[1]+t/2];e=o(e,e,2),i=(Ar(e.slice(0,2),e.slice(2,4))+Ar(e.slice(4,6),e.slice(6,8)))/2}let s=r?jn[r]:e.getMetersPerUnit();s!==void 0&&(i/=s)}}return i}function zr(e){Lr(e),e.forEach(function(t){e.forEach(function(e){t!==e&&Zn(t,e,Fr)})})}function Br(e,t,n,r){e.forEach(function(e){t.forEach(function(t){Zn(e,t,n),Zn(t,e,r)})})}function Vr(e,t){return e?typeof e==`string`?q(e):e:q(t)}function Hr(e){return(function(t,n,r,i){let a=t.length;r=r===void 0?2:r,i??=r,n=n===void 0?Array(a):n;for(let o=0;o<a;o+=i){let a=e(t.slice(o,o+r)),s=a.length;for(let e=0,r=i;e<r;++e)n[o+e]=e>=s?t[o+e]:a[e]}return n})}function Ur(e,t){return Pr(),Yr(e,`EPSG:4326`,t===void 0?`EPSG:3857`:t)}function Wr(e,t){let n=Yr(e,t===void 0?`EPSG:3857`:t,`EPSG:4326`),r=n[0];return(r<-180||r>180)&&(n[0]=yn(r+180,360)-180),n}function Gr(e,t){if(e===t)return!0;let n=e.getUnits()===t.getUnits();return(e.getCode()===t.getCode()||Kr(e,t)===Fr)&&n}function Kr(e,t){let n=e.getCode(),r=t.getCode(),i=Qn(n,r);if(i)return i;let a=null,o=null;for(let n of jr)a||=n(e),o||=n(t);if(!a&&!o)return null;let s=`EPSG:4326`;if(!o){let e=Qn(s,r);e&&(i=qr(a.inverse,e))}else if(a)i=qr(a.inverse,o.forward);else{let e=Qn(n,s);e&&(i=qr(e,o.forward))}return i&&(Ir(e),Ir(t),Zn(e,t,i)),i}function qr(e,t){return function(n,r,i,a){return r=e(n,r,i,a),t(r,r,i,a)}}function Jr(e,t){return Kr(q(e),q(t))}function Yr(e,t,n){let r=Jr(t,n);if(!r){let e=q(t).getCode(),r=q(n).getCode();throw Error(`No transform available between ${e} and ${r}`)}return r(e,void 0,e.length)}function Xr(e,t,n,r){return dn(e,Jr(t,n),void 0,r)}var J=null;function Zr(){return J}function Qr(e,t){return J?Yr(e,t,J):e}function $r(e,t){return J?Yr(e,J,t):(Nr&&!En(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(Nr=!1,An(`Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.`)),e)}function ei(e,t){return J?Xr(e,t,J):e}function ti(e,t){return J?Xr(e,J,t):e}function ni(){zr(zn),zr(Kn),Br(Kn,zn,Bn,Vn)}ni();var Y={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function X(e,t){if(!e)throw Error(t)}var ri={ANIMATING:0,INTERACTING:1},Z={CENTER:`center`,RESOLUTION:`resolution`,ROTATION:`rotation`};function ii(e,t,n){return(function(r,i,a,o,s){if(!r)return;if(!i&&!t)return r;let c=t?0:a[0]*i,l=t?0:a[1]*i,u=s?s[0]:0,d=s?s[1]:0,f=e[0]+c/2+u,p=e[2]-c/2+u,m=e[1]+l/2+d,h=e[3]-l/2+d;f>p&&(f=(p+f)/2,p=f),m>h&&(m=(h+m)/2,h=m);let g=G(r[0],f,p),_=G(r[1],m,h);if(o&&n&&i){let e=30*i;g+=-e*Math.log(1+Math.max(0,f-r[0])/e)+e*Math.log(1+Math.max(0,r[0]-p)/e),_+=-e*Math.log(1+Math.max(0,m-r[1])/e)+e*Math.log(1+Math.max(0,r[1]-h)/e)}return[g,_]})}function ai(e){return e}function oi(){return[1,0,0,1,0,0]}function Q(e,t){let n=t[0],r=t[1];return t[0]=e[0]*n+e[2]*r+e[4],t[1]=e[1]*n+e[3]*r+e[5],t}function si(e,t,n,r,i,a,o,s){let c=Math.sin(a),l=Math.cos(a);return e[0]=r*l,e[1]=i*c,e[2]=-r*c,e[3]=i*l,e[4]=o*r*l-s*r*c+t,e[5]=o*i*c+s*i*l+n,e}function ci(e,t){let n=li(t);X(n!==0,`Transformation matrix cannot be inverted`);let r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5];return e[0]=o/n,e[1]=-i/n,e[2]=-a/n,e[3]=r/n,e[4]=(a*c-o*s)/n,e[5]=-(r*c-i*s)/n,e}function li(e){return e[0]*e[3]-e[1]*e[2]}var ui=[1e5,1e5,1e5,1e5,2,2];function di(e){return`matrix(`+e.join(`, `)+`)`}function fi(e){return e.substring(7,e.length-1).split(`,`).map(parseFloat)}function pi(e,t){let n=fi(e),r=fi(t);for(let e=0;e<6;++e)if(Math.round((n[e]-r[e])*ui[e])!==0)return!1;return!0}function mi(e,t,n,r,i,a,o){a||=[],o||=2;let s=0;for(let c=t;c<n;c+=r){let t=e[c],n=e[c+1];a[s++]=i[0]*t+i[2]*n+i[4],a[s++]=i[1]*t+i[3]*n+i[5];for(let t=2;t<o;t++)a[s++]=e[c+t]}return a&&a.length!=s&&(a.length=s),a}function hi(e,t,n,r,i,a,o){o||=[];let s=Math.cos(i),c=Math.sin(i),l=a[0],u=a[1],d=0;for(let i=t;i<n;i+=r){let t=e[i]-l,n=e[i+1]-u;o[d++]=l+t*s-n*c,o[d++]=u+t*c+n*s;for(let t=i+2;t<i+r;++t)o[d++]=e[t]}return o&&o.length!=d&&(o.length=d),o}function gi(e,t,n,r,i,a,o,s){s||=[];let c=o[0],l=o[1],u=0;for(let o=t;o<n;o+=r){let t=e[o]-c,n=e[o+1]-l;s[u++]=c+i*t,s[u++]=l+a*n;for(let t=o+2;t<o+r;++t)s[u++]=e[t]}return s&&s.length!=u&&(s.length=u),s}function _i(e,t,n,r,i,a,o){o||=[];let s=0;for(let c=t;c<n;c+=r){o[s++]=e[c]+i,o[s++]=e[c+1]+a;for(let t=c+2;t<c+r;++t)o[s++]=e[t]}return o&&o.length!=s&&(o.length=s),o}var vi=oi(),yi=[NaN,NaN],bi=class extends bt{constructor(){super(),this.extent_=zt(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=at((e,t,n)=>{if(!n)return this.getSimplifiedGeometry(t);let r=this.clone();return r.applyTransform(n),r.getSimplifiedGeometry(t)})}simplifyTransformed(e,t){return this.simplifyTransformedInternal(this.getRevision(),e,t)}clone(){return B()}closestPointXY(e,t,n,r){return B()}containsXY(e,t){return this.closestPointXY(e,t,yi,Number.MIN_VALUE)===0}getClosestPoint(e,t){return t||=[NaN,NaN],this.closestPointXY(e[0],e[1],t,1/0),t}intersectsCoordinate(e){return this.containsXY(e[0],e[1])}computeExtent(e){return B()}getExtent(e){if(this.extentRevision_!=this.getRevision()){let e=this.computeExtent(this.extent_);(isNaN(e[0])||isNaN(e[1]))&&Vt(e),this.extentRevision_=this.getRevision()}return ln(this.extent_,e)}rotate(e,t){B()}scale(e,t,n){B()}simplify(e){return this.getSimplifiedGeometry(e*e)}getSimplifiedGeometry(e){return B()}getType(){return B()}applyTransform(e){B()}intersectsExtent(e){return B()}translate(e,t){B()}transform(e,t){let n=q(e),r=n.getUnits()==`tile-pixels`?function(e,r,i){let a=n.getExtent(),o=n.getWorldExtent(),s=U(o)/U(a);si(vi,o[0],o[3],s,-s,0,0,0);let c=mi(e,0,e.length,i,vi,r),l=Jr(n,t);return l?l(c,c,i):c}:Jr(n,t);return this.applyTransform(r),this}},xi=class extends bi{constructor(){super(),this.layout=`XY`,this.stride=2,this.flatCoordinates}computeExtent(e){return Ut(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,e)}getCoordinates(){return B()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(e){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),e<0||this.simplifiedGeometryMaxMinSquaredTolerance!==0&&e<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;let t=this.getSimplifiedGeometryInternal(e);return t.getFlatCoordinates().length<this.flatCoordinates.length?t:(this.simplifiedGeometryMaxMinSquaredTolerance=e,this)}getSimplifiedGeometryInternal(e){return this}getStride(){return this.stride}setFlatCoordinates(e,t){this.stride=Ci(e),this.layout=e,this.flatCoordinates=t}setCoordinates(e,t){B()}setLayout(e,t,n){let r;if(e)r=Ci(e);else{for(let e=0;e<n;++e){if(t.length===0){this.layout=`XY`,this.stride=2;return}t=t[0]}r=t.length,e=Si(r)}this.layout=e,this.stride=r}applyTransform(e){this.flatCoordinates&&(e(this.flatCoordinates,this.flatCoordinates,this.layout.startsWith(`XYZ`)?3:2,this.stride),this.changed())}rotate(e,t){let n=this.getFlatCoordinates();if(n){let r=this.getStride();hi(n,0,n.length,r,e,t,n),this.changed()}}scale(e,t,n){t===void 0&&(t=e),n||=$t(this.getExtent());let r=this.getFlatCoordinates();if(r){let i=this.getStride();gi(r,0,r.length,i,e,t,n,r),this.changed()}}translate(e,t){let n=this.getFlatCoordinates();if(n){let r=this.getStride();_i(n,0,n.length,r,e,t,n),this.changed()}}};function Si(e){let t;return e==2?t=`XY`:e==3?t=`XYZ`:e==4&&(t=`XYZM`),t}function Ci(e){let t;return e==`XY`?t=2:e==`XYZ`||e==`XYM`?t=3:e==`XYZM`&&(t=4),t}function wi(e,t,n,r){let i=0,a=e[n-r],o=e[n-r+1],s=0,c=0;for(;t<n;t+=r){let n=e[t]-a,r=e[t+1]-o;i+=c*n-s*r,s=n,c=r}return i/2}function Ti(e,t,n,r){let i=0;for(let a=0,o=n.length;a<o;++a){let o=n[a];i+=wi(e,t,o,r),t=o}return i}function Ei(e,t,n,r,i,a,o){let s=e[t],c=e[t+1],l=e[n]-s,u=e[n+1]-c,d;if(l===0&&u===0)d=t;else{let f=((i-s)*l+(a-c)*u)/(l*l+u*u);if(f>1)d=n;else if(f>0){for(let i=0;i<r;++i)o[i]=bn(e[t+i],e[n+i],f);o.length=r;return}else d=t}for(let t=0;t<r;++t)o[t]=e[d+t];o.length=r}function Di(e,t,n,r,i){let a=e[t],o=e[t+1];for(t+=r;t<n;t+=r){let n=e[t],r=e[t+1],s=hn(a,o,n,r);s>i&&(i=s),a=n,o=r}return i}function Oi(e,t,n,r,i){for(let a=0,o=n.length;a<o;++a){let o=n[a];i=Di(e,t,o,r,i),t=o}return i}function ki(e,t,n,r,i,a,o,s,c,l,u){if(t==n)return l;let d,f;if(i===0){if(f=hn(o,s,e[t],e[t+1]),f<l){for(d=0;d<r;++d)c[d]=e[t+d];return c.length=r,f}return l}u||=[NaN,NaN];let p=t+r;for(;p<n;)if(Ei(e,p-r,p,r,o,s,u),f=hn(o,s,u[0],u[1]),f<l){for(l=f,d=0;d<r;++d)c[d]=u[d];c.length=r,p+=r}else p+=r*Math.max((Math.sqrt(f)-Math.sqrt(l))/i|0,1);if(a&&(Ei(e,n-r,t,r,o,s,u),f=hn(o,s,u[0],u[1]),f<l)){for(l=f,d=0;d<r;++d)c[d]=u[d];c.length=r}return l}function Ai(e,t,n,r,i,a,o,s,c,l,u){u||=[NaN,NaN];for(let d=0,f=n.length;d<f;++d){let f=n[d];l=ki(e,t,f,r,i,a,o,s,c,l,u),t=f}return l}function ji(e,t,n,r){for(let r=0,i=n.length;r<i;++r)e[t++]=n[r];return t}function Mi(e,t,n,r){for(let i=0,a=n.length;i<a;++i){let a=n[i];for(let n=0;n<r;++n)e[t++]=a[n]}return t}function Ni(e,t,n,r,i){i||=[];let a=0;for(let o=0,s=n.length;o<s;++o){let s=Mi(e,t,n[o],r);i[a++]=s,t=s}return i.length=a,i}function Pi(e,t,n,r,i){i=i===void 0?[]:i;let a=0;for(let o=t;o<n;o+=r)i[a++]=e.slice(o,o+r);return i.length=a,i}function Fi(e,t,n,r,i){i=i===void 0?[]:i;let a=0;for(let o=0,s=n.length;o<s;++o){let s=n[o];i[a++]=Pi(e,t,s,r,i[a]),t=s}return i.length=a,i}function Ii(e,t,n,r,i,a,o){let s=(n-t)/r;if(s<3){for(;t<n;t+=r)a[o++]=e[t],a[o++]=e[t+1];return o}let c=Array(s);c[0]=1,c[s-1]=1;let l=[t,n-r],u=0;for(;l.length>0;){let n=l.pop(),a=l.pop(),o=0,s=e[a],d=e[a+1],f=e[n],p=e[n+1];for(let t=a+r;t<n;t+=r){let n=e[t],r=e[t+1],i=mn(n,r,s,d,f,p);i>o&&(u=t,o=i)}o>i&&(c[(u-t)/r]=1,a+r<u&&l.push(a,u),u+r<n&&l.push(u,n))}for(let n=0;n<s;++n)c[n]&&(a[o++]=e[t+n*r],a[o++]=e[t+n*r+1]);return o}function Li(e,t){return t*Math.round(e/t)}function Ri(e,t,n,r,i,a,o){if(t==n)return o;let s=Li(e[t],i),c=Li(e[t+1],i);t+=r,a[o++]=s,a[o++]=c;let l,u;do if(l=Li(e[t],i),u=Li(e[t+1],i),t+=r,t==n)return a[o++]=l,a[o++]=u,o;while(l==s&&u==c);for(;t<n;){let n=Li(e[t],i),d=Li(e[t+1],i);if(t+=r,n==l&&d==u)continue;let f=l-s,p=u-c,m=n-s,h=d-c;if(f*h==p*m&&(f<0&&m<f||f==m||f>0&&m>f)&&(p<0&&h<p||p==h||p>0&&h>p)){l=n,u=d;continue}a[o++]=l,a[o++]=u,s=l,c=u,l=n,u=d}return a[o++]=l,a[o++]=u,o}function zi(e,t,n,r,i,a,o,s){for(let c=0,l=n.length;c<l;++c){let l=n[c];o=Ri(e,t,l,r,i,a,o),s.push(o),t=l}return o}var Bi=class e extends xi{constructor(e,t){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,t!==void 0&&!Array.isArray(e[0])?this.setFlatCoordinates(t,e):this.setCoordinates(e,t)}clone(){return new e(this.flatCoordinates.slice(),this.layout)}closestPointXY(e,t,n,r){return r<Ft(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Di(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),ki(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,e,t,n,r))}getArea(){return wi(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return Pi(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){let n=[];return n.length=Ii(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,n,0),new e(n,`XY`)}getType(){return`LinearRing`}intersectsExtent(e){return!1}setCoordinates(e,t){this.setLayout(t,e,1),this.flatCoordinates||=[],this.flatCoordinates.length=Mi(this.flatCoordinates,0,e,this.stride),this.changed()}},Vi=class e extends xi{constructor(e,t){super(),this.setCoordinates(e,t)}clone(){let t=new e(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(e,t,n,r){let i=this.flatCoordinates,a=hn(e,t,i[0],i[1]);if(a<r){let e=this.stride;for(let t=0;t<e;++t)n[t]=i[t];return n.length=e,a}return r}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(e){return Ht(this.flatCoordinates,e)}getType(){return`Point`}intersectsExtent(e){return Lt(e,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(e,t){this.setLayout(t,e,0),this.flatCoordinates||=[],this.flatCoordinates.length=ji(this.flatCoordinates,0,e,this.stride),this.changed()}};function Hi(e,t,n,r,i){return!Yt(i,function(i){return!Ui(e,t,n,r,i[0],i[1])})}function Ui(e,t,n,r,i,a){let o=0,s=e[n-r],c=e[n-r+1];for(;t<n;t+=r){let n=e[t],r=e[t+1];c<=a?r>a&&(n-s)*(a-c)-(i-s)*(r-c)>0&&o++:r<=a&&(n-s)*(a-c)-(i-s)*(r-c)<0&&o--,s=n,c=r}return o!==0}function Wi(e,t,n,r,i,a){if(n.length===0||!Ui(e,t,n[0],r,i,a))return!1;for(let t=1,o=n.length;t<o;++t)if(Ui(e,n[t-1],n[t],r,i,a))return!1;return!0}function Gi(e,t,n,r,i,a,o){let s,c,l,u,d,f,p,m=i[a+1],h=[];for(let i=0,a=n.length;i<a;++i){let a=n[i];for(u=e[a-r],f=e[a-r+1],s=t;s<a;s+=r)d=e[s],p=e[s+1],(m<=f&&p<=m||f<=m&&m<=p)&&(l=(m-f)/(p-f)*(d-u)+u,h.push(l)),u=d,f=p}let g=NaN,_=-1/0;for(h.sort(Re),u=h[0],s=1,c=h.length;s<c;++s){d=h[s];let i=Math.abs(d-u);i>_&&(l=(u+d)/2,Wi(e,t,n,r,l,m)&&(g=l,_=i)),u=d}return isNaN(g)&&(g=i[a]),o?(o.push(g,m,_),o):[g,m,_]}function Ki(e,t,n,r,i){let a;for(t+=r;t<n;t+=r)if(a=i(e.slice(t-r,t),e.slice(t,t+r)),a)return a;return!1}function qi(e,t,n,r,i,a){return a??=qt(zt(),e,t,n,r),sn(i,a)?a[0]>=i[0]&&a[2]<=i[2]||a[1]>=i[1]&&a[3]<=i[3]?!0:Ki(e,t,n,r,function(e,t){return un(i,e,t)}):!1}function Ji(e,t,n,r,i){return!!(qi(e,t,n,r,i)||Ui(e,t,n,r,i[0],i[1])||Ui(e,t,n,r,i[0],i[3])||Ui(e,t,n,r,i[2],i[1])||Ui(e,t,n,r,i[2],i[3]))}function Yi(e,t,n,r,i){if(!Ji(e,t,n[0],r,i))return!1;if(n.length===1)return!0;for(let t=1,a=n.length;t<a;++t)if(Hi(e,n[t-1],n[t],r,i)&&!qi(e,n[t-1],n[t],r,i))return!1;return!0}function Xi(e,t,n,r){for(;t<n-r;){for(let i=0;i<r;++i){let a=e[t+i];e[t+i]=e[n-r+i],e[n-r+i]=a}t+=r,n-=r}}function Zi(e,t,n,r){let i=0,a=e[n-r],o=e[n-r+1];for(;t<n;t+=r){let n=e[t],r=e[t+1];i+=(n-a)*(r+o),a=n,o=r}return i===0?void 0:i>0}function Qi(e,t,n,r,i){i=i===void 0?!1:i;for(let a=0,o=n.length;a<o;++a){let o=n[a],s=Zi(e,t,o,r);if(a===0){if(i&&s||!i&&!s)return!1}else if(i&&!s||!i&&s)return!1;t=o}return!0}function $i(e,t,n,r,i){i=i===void 0?!1:i;for(let a=0,o=n.length;a<o;++a){let o=n[a],s=Zi(e,t,o,r);(a===0?i&&s||!i&&!s:i&&!s||!i&&s)&&Xi(e,t,o,r),t=o}return t}var ea=class e extends xi{constructor(e,t,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,t!==void 0&&n?(this.setFlatCoordinates(t,e),this.ends_=n):this.setCoordinates(e,t)}appendLinearRing(e){this.flatCoordinates?Be(this.flatCoordinates,e.getFlatCoordinates()):this.flatCoordinates=e.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){let t=new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(e,t,n,r){return r<Ft(this.getExtent(),e,t)?r:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(Oi(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),Ai(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,e,t,n,r))}containsXY(e,t){return Wi(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,t)}getArea(){return Ti(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(e){let t;return e===void 0?t=this.flatCoordinates:(t=this.getOrientedFlatCoordinates().slice(),$i(t,0,this.ends_,this.stride,e)),Fi(t,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){let e=$t(this.getExtent());this.flatInteriorPoint_=Gi(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new Vi(this.getFlatInteriorPoint(),`XYM`)}getLinearRingCount(){return this.ends_.length}getLinearRing(e){return e<0||this.ends_.length<=e?null:new Bi(this.flatCoordinates.slice(e===0?0:this.ends_[e-1],this.ends_[e]),this.layout)}getLinearRings(){let e=this.layout,t=this.flatCoordinates,n=this.ends_,r=[],i=0;for(let a=0,o=n.length;a<o;++a){let o=n[a],s=new Bi(t.slice(i,o),e);r.push(s),i=o}return r}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){let e=this.flatCoordinates;Qi(e,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=e:(this.orientedFlatCoordinates_=e.slice(),this.orientedFlatCoordinates_.length=$i(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){let n=[],r=[];return n.length=zi(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),n,0,r),new e(n,`XY`,r)}getType(){return`Polygon`}intersectsExtent(e){return Yi(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,e)}setCoordinates(e,t){this.setLayout(t,e,2),this.flatCoordinates||=[];let n=Ni(this.flatCoordinates,0,e,this.stride,this.ends_);this.flatCoordinates.length=n.length===0?0:n[n.length-1],this.changed()}};function ta(e){if(cn(e))throw Error(`Cannot create polygon from empty extent`);let t=e[0],n=e[1],r=e[2],i=e[3],a=[t,n,t,i,r,i,r,n,t,n];return new ea(a,`XY`,[a.length])}function na(e,t,n,r){let i=W(t)/n[0],a=U(t)/n[1];return r?Math.min(e,Math.max(i,a)):Math.min(e,Math.min(i,a))}function ra(e,t,n){let r=Math.min(e,t);return r*=Math.log(1+50*Math.max(0,e/t-1))/50+1,n&&(r=Math.max(r,n),r/=Math.log(1+50*Math.max(0,n/e-1))/50+1),G(r,n/2,t*2)}function ia(e,t,n,r){return t=t===void 0?!0:t,(function(i,a,o,s){if(i!==void 0){let c=e[0],l=e[e.length-1],u=n?na(c,n,o,r):c;if(s)return t?ra(i,u,l):G(i,l,u);let d=Math.floor(ze(e,Math.min(u,i),a));return e[d]>u&&d<e.length-1?e[d+1]:e[d]}})}function aa(e,t,n,r,i,a){return r=r===void 0?!0:r,n=n===void 0?0:n,(function(o,s,c,l){if(o!==void 0){let u=i?na(t,i,c,a):t;if(l)return r?ra(o,u,n):G(o,n,u);let d=1e-9,f=Math.ceil(Math.log(t/u)/Math.log(e)-d),p=-s*(.5-d)+.5,m=Math.floor(Math.log(t/Math.min(u,o))/Math.log(e)+p);return G(t/e**+Math.max(f,m),n,u)}})}function oa(e,t,n,r,i){return n=n===void 0?!0:n,(function(a,o,s,c){if(a!==void 0){let o=r?na(e,r,s,i):e;return!n||!c?G(a,t,o):ra(a,o,t)}})}function sa(e){if(e!==void 0)return 0}function ca(e){if(e!==void 0)return e}function la(e){let t=2*Math.PI/e;return(function(e,n){if(n)return e;if(e!==void 0)return e=Math.floor(e/t+.5)*t,e})}function ua(e){let t=e===void 0?vn(5):e;return(function(e,n){return n||e===void 0?e:Math.abs(e)<=t?0:e})}var da=0,fa=class extends bt{constructor(e){super(),this.on,this.once,this.un,e=Object.assign({},e),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=Vr(e.projection,`EPSG:3857`),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,e.projection&&Pr(),e.center&&=$r(e.center,this.projection_),e.extent&&=ti(e.extent,this.projection_),this.applyOptions_(e)}applyOptions_(e){let t=Object.assign({},e);for(let e in Z)delete t[e];this.setProperties(t,!0);let n=ha(e);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=e.resolutions,this.padding_=e.padding,this.minZoom_=n.minZoom;let r=ma(e),i=n.constraint,a=ga(e);this.constraints_={center:r,resolution:i,rotation:a},this.setRotation(e.rotation===void 0?0:e.rotation),this.setCenterInternal(e.center===void 0?null:e.center),e.resolution===void 0?e.zoom!==void 0&&this.setZoom(e.zoom):this.setResolution(e.resolution)}get padding(){return this.padding_}set padding(e){let t=this.padding_;this.padding_=e;let n=this.getCenterInternal();if(n){let r=e||[0,0,0,0];t||=[0,0,0,0];let i=this.getResolution(),a=i/2*(r[3]-t[3]+t[1]-r[1]),o=i/2*(r[0]-t[0]+t[2]-r[2]);this.setCenterInternal([n[0]+a,n[1]-o])}}getUpdatedOptions_(e){let t=this.getProperties();return t.resolution===void 0?t.zoom=this.getZoom():t.resolution=this.getResolution(),t.center=this.getCenterInternal(),t.rotation=this.getRotation(),Object.assign({},t,e)}animate(e){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);let t=Array(arguments.length);for(let e=0;e<t.length;++e){let n=arguments[e];n.center&&(n=Object.assign({},n),n.center=$r(n.center,this.getProjection())),n.anchor&&(n=Object.assign({},n),n.anchor=$r(n.anchor,this.getProjection())),t[e]=n}this.animateInternal.apply(this,t)}animateInternal(e){let t=arguments.length,n;t>1&&typeof arguments[t-1]==`function`&&(n=arguments[t-1],--t);let r=0;for(;r<t&&!this.isDef();++r){let e=arguments[r];e.center&&this.setCenterInternal(e.center),e.zoom===void 0?e.resolution&&this.setResolution(e.resolution):this.setZoom(e.zoom),e.rotation!==void 0&&this.setRotation(e.rotation)}if(r===t){n&&pa(n,!0);return}let i=Date.now(),a=this.targetCenter_.slice(),o=this.targetResolution_,s=this.targetRotation_,c=[];for(;r<t;++r){let e=arguments[r],t={start:i,complete:!1,anchor:e.anchor,duration:e.duration===void 0?1e3:e.duration,easing:e.easing||kt,callback:n};if(e.center&&(t.sourceCenter=a,t.targetCenter=e.center.slice(),a=t.targetCenter),e.zoom===void 0?e.resolution&&(t.sourceResolution=o,t.targetResolution=e.resolution,o=t.targetResolution):(t.sourceResolution=o,t.targetResolution=this.getResolutionForZoom(e.zoom),o=t.targetResolution),e.rotation!==void 0){t.sourceRotation=s;let n=yn(e.rotation-s+Math.PI,2*Math.PI)-Math.PI;t.targetRotation=s+n,s=t.targetRotation}_a(t)?t.complete=!0:i+=t.duration,c.push(t)}this.animations_.push(c),this.setHint(ri.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[ri.ANIMATING]>0}getInteracting(){return this.hints_[ri.INTERACTING]>0}cancelAnimations(){this.setHint(ri.ANIMATING,-this.hints_[ri.ANIMATING]);let e;for(let t=0,n=this.animations_.length;t<n;++t){let n=this.animations_[t];if(n[0].callback&&pa(n[0].callback,!1),!e)for(let t=0,r=n.length;t<r;++t){let r=n[t];if(!r.complete){e=r.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=e,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(this.updateAnimationKey_!==void 0&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;let e=Date.now(),t=!1;for(let n=this.animations_.length-1;n>=0;--n){let r=this.animations_[n],i=!0;for(let n=0,a=r.length;n<a;++n){let a=r[n];if(a.complete)continue;let o=e-a.start,s=a.duration>0?o/a.duration:1;s>=1?(a.complete=!0,s=1):i=!1;let c=a.easing(s);if(a.sourceCenter){let e=a.sourceCenter[0],t=a.sourceCenter[1],n=a.targetCenter[0],r=a.targetCenter[1];this.nextCenter_=a.targetCenter;let i=e+c*(n-e),o=t+c*(r-t);this.targetCenter_=[i,o]}if(a.sourceResolution&&a.targetResolution){let e=c===1?a.targetResolution:a.sourceResolution+c*(a.targetResolution-a.sourceResolution);if(a.anchor){let t=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(e,0,t,!0);this.targetCenter_=this.calculateCenterZoom(n,a.anchor)}this.nextResolution_=a.targetResolution,this.targetResolution_=e,this.applyTargetState_(!0)}if(a.sourceRotation!==void 0&&a.targetRotation!==void 0){let e=c===1?yn(a.targetRotation+Math.PI,2*Math.PI)-Math.PI:a.sourceRotation+c*(a.targetRotation-a.sourceRotation);if(a.anchor){let t=this.constraints_.rotation(e,!0);this.targetCenter_=this.calculateCenterRotate(t,a.anchor)}this.nextRotation_=a.targetRotation,this.targetRotation_=e}if(this.applyTargetState_(!0),t=!0,!a.complete)break}if(i){this.animations_[n]=null,this.setHint(ri.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;let e=r[0].callback;e&&pa(e,!0)}}this.animations_=this.animations_.filter(Boolean),t&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(e,t){let n,r=this.getCenterInternal();return r!==void 0&&(n=[r[0]-t[0],r[1]-t[1]],Dn(n,e-this.getRotation()),Tn(n,t)),n}calculateCenterZoom(e,t){let n,r=this.getCenterInternal(),i=this.getResolution();return r!==void 0&&i!==void 0&&(n=[t[0]-e*(t[0]-r[0])/i,t[1]-e*(t[1]-r[1])/i]),n}getViewportSize_(e){let t=this.viewportSize_;if(e){let n=t[0],r=t[1];return[Math.abs(n*Math.cos(e))+Math.abs(r*Math.sin(e)),Math.abs(n*Math.sin(e))+Math.abs(r*Math.cos(e))]}return t}setViewportSize(e){this.viewportSize_=Array.isArray(e)?e.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){let e=this.getCenterInternal();return e&&Qr(e,this.getProjection())}getCenterInternal(){return this.get(Z.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get(`constrainResolution`)}getHints(e){return e===void 0?this.hints_.slice():(e[0]=this.hints_[0],e[1]=this.hints_[1],e)}calculateExtent(e){return ei(this.calculateExtentInternal(e),this.getProjection())}calculateExtentInternal(e){e||=this.getViewportSizeMinusPadding_();let t=this.getCenterInternal();X(t,`The view center is not defined`);let n=this.getResolution();X(n!==void 0,`The view resolution is not defined`);let r=this.getRotation();return X(r!==void 0,`The view rotation is not defined`),tn(t,n,r,e)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(e){this.applyOptions_(this.getUpdatedOptions_({maxZoom:e}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(e){this.applyOptions_(this.getUpdatedOptions_({minZoom:e}))}setConstrainResolution(e){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:e}))}getProjection(){return this.projection_}getResolution(){return this.get(Z.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(e,t){return this.getResolutionForExtentInternal(ti(e,this.getProjection()),t)}getResolutionForExtentInternal(e,t){t||=this.getViewportSizeMinusPadding_();let n=W(e)/t[0],r=U(e)/t[1];return Math.max(n,r)}getResolutionForValueFunction(e){e||=2;let t=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(t/n)/Math.log(e);return(function(n){return t/e**+(n*r)})}getRotation(){return this.get(Z.ROTATION)}getValueForResolutionFunction(e){let t=Math.log(e||2),n=this.getConstrainedResolution(this.maxResolution_),r=this.minResolution_,i=Math.log(n/r)/t;return(function(e){return Math.log(n/e)/t/i})}getViewportSizeMinusPadding_(e){let t=this.getViewportSize_(e),n=this.padding_;return n&&(t=[t[0]-n[1]-n[3],t[1]-n[0]-n[2]]),t}getState(){let e=this.getProjection(),t=this.getResolution(),n=this.getRotation(),r=this.getCenterInternal(),i=this.padding_;if(i){let e=this.getViewportSizeMinusPadding_();r=va(r,this.getViewportSize_(),[e[0]/2+i[3],e[1]/2+i[0]],t,n)}return{center:r.slice(0),projection:e===void 0?null:e,resolution:t,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let e,t=this.getResolution();return t!==void 0&&(e=this.getZoomForResolution(t)),e}getZoomForResolution(e){let t=this.minZoom_||0,n,r;if(this.resolutions_){let i=ze(this.resolutions_,e,1);t=i,n=this.resolutions_[i],r=i==this.resolutions_.length-1?2:n/this.resolutions_[i+1]}else n=this.maxResolution_,r=this.zoomFactor_;return t+Math.log(n/e)/Math.log(r)}getResolutionForZoom(e){if(this.resolutions_?.length){if(this.resolutions_.length===1)return this.resolutions_[0];let t=G(Math.floor(e),0,this.resolutions_.length-2),n=this.resolutions_[t]/this.resolutions_[t+1];return this.resolutions_[t]/n**+G(e-t,0,1)}return this.maxResolution_/this.zoomFactor_**+(e-this.minZoom_)}fit(e,t){let n;if(X(Array.isArray(e)||typeof e.getSimplifiedGeometry==`function`,"Invalid extent or geometry provided as `geometry`"),Array.isArray(e))X(!cn(e),"Cannot fit empty extent provided as `geometry`"),n=ta(ti(e,this.getProjection()));else if(e.getType()===`Circle`){let t=ti(e.getExtent(),this.getProjection());n=ta(t),n.rotate(this.getRotation(),$t(t))}else{let t=Zr();n=t?e.clone().transform(t,this.getProjection()):e}this.fitInternal(n,t)}rotatedExtentForGeometry(e){let t=this.getRotation(),n=Math.cos(t),r=Math.sin(-t),i=e.getFlatCoordinates(),a=e.getStride(),o=1/0,s=1/0,c=-1/0,l=-1/0;for(let e=0,t=i.length;e<t;e+=a){let t=i[e]*n-i[e+1]*r,a=i[e]*r+i[e+1]*n;o=Math.min(o,t),s=Math.min(s,a),c=Math.max(c,t),l=Math.max(l,a)}return[o,s,c,l]}fitInternal(e,t){t||={};let n=t.size;n||=this.getViewportSizeMinusPadding_();let r=t.padding===void 0?[0,0,0,0]:t.padding,i=t.nearest===void 0?!1:t.nearest,a;a=t.minResolution===void 0?t.maxZoom===void 0?0:this.getResolutionForZoom(t.maxZoom):t.minResolution;let o=this.rotatedExtentForGeometry(e),s=this.getResolutionForExtentInternal(o,[n[0]-r[1]-r[3],n[1]-r[0]-r[2]]);s=isNaN(s)?a:Math.max(s,a),s=this.getConstrainedResolution(s,+!i);let c=this.getRotation(),l=Math.sin(c),u=Math.cos(c),d=$t(o);d[0]+=(r[1]-r[3])/2*s,d[1]+=(r[0]-r[2])/2*s;let f=d[0]*u-d[1]*l,p=d[1]*u+d[0]*l,m=this.getConstrainedCenter([f,p],s),h=t.callback?t.callback:it;t.duration===void 0?(this.targetResolution_=s,this.targetCenter_=m,this.applyTargetState_(!1,!0),pa(h,!0)):this.animateInternal({resolution:s,center:m,duration:t.duration,easing:t.easing},h)}centerOn(e,t,n){this.centerOnInternal($r(e,this.getProjection()),t,n)}centerOnInternal(e,t,n){this.setCenterInternal(va(e,t,n,this.getResolution(),this.getRotation()))}calculateCenterShift(e,t,n,r){let i,a=this.padding_;if(a&&e){let o=this.getViewportSizeMinusPadding_(-n),s=va(e,r,[o[0]/2+a[3],o[1]/2+a[0]],t,n);i=[e[0]-s[0],e[1]-s[1]]}return i}isDef(){return!!this.getCenterInternal()&&this.getResolution()!==void 0}adjustCenter(e){let t=Qr(this.targetCenter_,this.getProjection());this.setCenter([t[0]+e[0],t[1]+e[1]])}adjustCenterInternal(e){let t=this.targetCenter_;this.setCenterInternal([t[0]+e[0],t[1]+e[1]])}adjustResolution(e,t){t&&=$r(t,this.getProjection()),this.adjustResolutionInternal(e,t)}adjustResolutionInternal(e,t){let n=this.getAnimating()||this.getInteracting(),r=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(this.targetResolution_*e,0,r,n);t&&(this.targetCenter_=this.calculateCenterZoom(i,t)),this.targetResolution_*=e,this.applyTargetState_()}adjustZoom(e,t){this.adjustResolution(this.zoomFactor_**+-e,t)}adjustRotation(e,t){t&&=$r(t,this.getProjection()),this.adjustRotationInternal(e,t)}adjustRotationInternal(e,t){let n=this.getAnimating()||this.getInteracting(),r=this.constraints_.rotation(this.targetRotation_+e,n);t&&(this.targetCenter_=this.calculateCenterRotate(r,t)),this.targetRotation_+=e,this.applyTargetState_()}setCenter(e){this.setCenterInternal(e&&$r(e,this.getProjection()))}setCenterInternal(e){this.targetCenter_=e,this.applyTargetState_()}setHint(e,t){return this.hints_[e]+=t,this.changed(),this.hints_[e]}setResolution(e){this.targetResolution_=e,this.applyTargetState_()}setRotation(e){this.targetRotation_=e,this.applyTargetState_()}setZoom(e){this.setResolution(this.getResolutionForZoom(e))}applyTargetState_(e,t){let n=this.getAnimating()||this.getInteracting()||t,r=this.constraints_.rotation(this.targetRotation_,n),i=this.getViewportSize_(r),a=this.constraints_.resolution(this.targetResolution_,0,i,n),o=this.constraints_.center(this.targetCenter_,a,i,n,this.calculateCenterShift(this.targetCenter_,a,r,i));this.get(Z.ROTATION)!==r&&this.set(Z.ROTATION,r),this.get(Z.RESOLUTION)!==a&&(this.set(Z.RESOLUTION,a),this.set(`zoom`,this.getZoom(),!0)),(!o||!this.get(Z.CENTER)||!En(this.get(Z.CENTER),o))&&this.set(Z.CENTER,o),this.getAnimating()&&!e&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(e,t,n){e=e===void 0?200:e;let r=t||0,i=this.constraints_.rotation(this.targetRotation_),a=this.getViewportSize_(i),o=this.constraints_.resolution(this.targetResolution_,r,a),s=this.constraints_.center(this.targetCenter_,o,a,!1,this.calculateCenterShift(this.targetCenter_,o,i,a));if(e===0&&!this.cancelAnchor_){this.targetResolution_=o,this.targetRotation_=i,this.targetCenter_=s,this.applyTargetState_();return}n||=e===0?this.cancelAnchor_:void 0,this.cancelAnchor_=void 0,(this.getResolution()!==o||this.getRotation()!==i||!this.getCenterInternal()||!En(this.getCenterInternal(),s))&&(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:i,center:s,resolution:o,duration:e,easing:Ot,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(ri.INTERACTING,1)}endInteraction(e,t,n){n&&=$r(n,this.getProjection()),this.endInteractionInternal(e,t,n)}endInteractionInternal(e,t,n){this.getInteracting()&&(this.setHint(ri.INTERACTING,-1),this.resolveConstraints(e,t,n))}getConstrainedCenter(e,t){let n=this.getViewportSize_(this.getRotation());return this.constraints_.center(e,t||this.getResolution(),n)}getConstrainedZoom(e,t){let n=this.getResolutionForZoom(e);return this.getZoomForResolution(this.getConstrainedResolution(n,t))}getConstrainedResolution(e,t){t||=0;let n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(e,t,n)}};function pa(e,t){setTimeout(function(){e(t)},0)}function ma(e){if(e.extent!==void 0){let t=e.smoothExtentConstraint===void 0?!0:e.smoothExtentConstraint;return ii(e.extent,e.constrainOnlyCenter,t)}let t=Vr(e.projection,`EPSG:3857`);if(e.multiWorld!==!0&&t.isGlobal()){let e=t.getExtent().slice();return e[0]=-1/0,e[2]=1/0,ii(e,!1,!1)}return ai}function ha(e){let t,n,r,i=e.minZoom===void 0?da:e.minZoom,a=e.maxZoom===void 0?28:e.maxZoom,o=e.zoomFactor===void 0?2:e.zoomFactor,s=e.multiWorld===void 0?!1:e.multiWorld,c=e.smoothResolutionConstraint===void 0?!0:e.smoothResolutionConstraint,l=e.showFullExtent===void 0?!1:e.showFullExtent,u=Vr(e.projection,`EPSG:3857`),d=u.getExtent(),f=e.constrainOnlyCenter,p=e.extent;if(!s&&!p&&u.isGlobal()&&(f=!1,p=d),e.resolutions!==void 0){let o=e.resolutions;n=o[i],r=o[a]===void 0?o[o.length-1]:o[a],t=e.constrainResolution?ia(o,c,!f&&p,l):oa(n,r,c,!f&&p,l)}else{let s=(d?Math.max(W(d),U(d)):360*jn.degrees/u.getMetersPerUnit())/256/2**da,m=s/2**(28-da);n=e.maxResolution,n===void 0?n=s/o**+i:i=0,r=e.minResolution,r===void 0&&(r=e.maxZoom===void 0?m:e.maxResolution===void 0?s/o**+a:n/o**+a),a=i+Math.floor(Math.log(n/r)/Math.log(o)),r=n/o**+(a-i),t=e.constrainResolution?aa(o,n,r,c,!f&&p,l):oa(n,r,c,!f&&p,l)}return{constraint:t,maxResolution:n,minResolution:r,minZoom:i,zoomFactor:o}}function ga(e){if(e.enableRotation===void 0||e.enableRotation){let t=e.constrainRotation;return t===void 0||t===!0?ua():t===!1?ca:typeof t==`number`?la(t):ca}return sa}function _a(e){return!(e.sourceCenter&&e.targetCenter&&!En(e.sourceCenter,e.targetCenter)||e.sourceResolution!==e.targetResolution||e.sourceRotation!==e.targetRotation)}function va(e,t,n,r,i){let a=Math.cos(-i),o=Math.sin(-i),s=e[0]*a-e[1]*o,c=e[1]*a+e[0]*o;return s+=(t[0]/2-n[0])*r,c+=(n[1]-t[1]/2)*r,o=-o,[s*a-c*o,c*a+s*o]}var $={OPACITY:`opacity`,VISIBLE:`visible`,EXTENT:`extent`,Z_INDEX:`zIndex`,MAX_RESOLUTION:`maxResolution`,MIN_RESOLUTION:`minResolution`,MAX_ZOOM:`maxZoom`,MIN_ZOOM:`minZoom`,SOURCE:`source`,MAP:`map`},ya=class extends bt{constructor(e){super(),this.on,this.once,this.un,this.background_=e.background;let t=Object.assign({},e);typeof e.properties==`object`&&(delete t.properties,Object.assign(t,e.properties)),t[$.OPACITY]=e.opacity===void 0?1:e.opacity,X(typeof t[$.OPACITY]==`number`,`Layer opacity must be a number`),t[$.VISIBLE]=e.visible===void 0?!0:e.visible,t[$.Z_INDEX]=e.zIndex,t[$.MAX_RESOLUTION]=e.maxResolution===void 0?1/0:e.maxResolution,t[$.MIN_RESOLUTION]=e.minResolution===void 0?0:e.minResolution,t[$.MIN_ZOOM]=e.minZoom===void 0?-1/0:e.minZoom,t[$.MAX_ZOOM]=e.maxZoom===void 0?1/0:e.maxZoom,this.className_=t.className===void 0?`ol-layer`:t.className,delete t.className,this.setProperties(t),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(e){let t=this.state_||{layer:this,managed:e===void 0?!0:e},n=this.getZIndex();return t.opacity=G(Math.round(this.getOpacity()*100)/100,0,1),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=n===void 0&&!t.managed?1/0:n,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),t.minZoom=this.getMinZoom(),t.maxZoom=this.getMaxZoom(),this.state_=t,t}getLayersArray(e){return B()}getLayerStatesArray(e){return B()}getExtent(){return this.get($.EXTENT)}getMaxResolution(){return this.get($.MAX_RESOLUTION)}getMinResolution(){return this.get($.MIN_RESOLUTION)}getMinZoom(){return this.get($.MIN_ZOOM)}getMaxZoom(){return this.get($.MAX_ZOOM)}getOpacity(){return this.get($.OPACITY)}getSourceState(){return B()}getVisible(){return this.get($.VISIBLE)}getZIndex(){return this.get($.Z_INDEX)}setBackground(e){this.background_=e,this.changed()}setExtent(e){this.set($.EXTENT,e)}setMaxResolution(e){this.set($.MAX_RESOLUTION,e)}setMinResolution(e){this.set($.MIN_RESOLUTION,e)}setMaxZoom(e){this.set($.MAX_ZOOM,e)}setMinZoom(e){this.set($.MIN_ZOOM,e)}setOpacity(e){X(typeof e==`number`,`Layer opacity must be a number`),this.set($.OPACITY,e)}setVisible(e){this.set($.VISIBLE,e)}setZIndex(e){this.set($.Z_INDEX,e)}disposeInternal(){this.state_&&=(this.state_.layer=null,null),super.disposeInternal()}},ba={PRERENDER:`prerender`,POSTRENDER:`postrender`,PRECOMPOSE:`precompose`,POSTCOMPOSE:`postcompose`,RENDERCOMPLETE:`rendercomplete`},xa=class extends ya{constructor(e){let t=Object.assign({},e);delete t.source,super(t),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,e.render&&(this.render=e.render),e.map&&this.setMap(e.map),this.addChangeListener($.SOURCE,this.handleSourcePropertyChange_);let n=e.source?e.source:null;this.setSource(n)}getLayersArray(e){return e||=[],e.push(this),e}getLayerStatesArray(e){return e||=[],e.push(this.getLayerState()),e}getSource(){return this.get($.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){let e=this.getSource();return e?e.getState():`undefined`}handleSourceChange_(){this.changed(),!(this.sourceReady_||this.getSource().getState()!==`ready`)&&(this.sourceReady_=!0,this.dispatchEvent(`sourceready`))}handleSourcePropertyChange_(){this.sourceChangeKey_&&=(z(this.sourceChangeKey_),null),this.sourceReady_=!1;let e=this.getSource();e&&(this.sourceChangeKey_=dt(e,R.CHANGE,this.handleSourceChange_,this),e.getState()===`ready`&&(this.sourceReady_=!0,setTimeout(()=>{this.dispatchEvent(`sourceready`)},0))),this.changed()}getFeatures(e){return this.renderer_?this.renderer_.getFeatures(e):Promise.resolve([])}getData(e){return!this.renderer_||!this.rendered?null:this.renderer_.getData(e)}isVisible(e){let t,n=this.getMapInternal();!e&&n&&(e=n.getView()),t=e instanceof fa?{viewState:e.getState(),extent:e.calculateExtent()}:e,!t.layerStatesArray&&n&&(t.layerStatesArray=n.getLayerGroup().getLayerStatesArray());let r;if(t.layerStatesArray){if(r=t.layerStatesArray.find(e=>e.layer===this),!r)return!1}else r=this.getLayerState();let i=this.getExtent();return Sa(r,t.viewState)&&(!i||sn(i,t.extent))}getAttributions(e){if(!this.isVisible(e))return[];let t=this.getSource()?.getAttributions();if(!t)return[];let n=t(e instanceof fa?e.getViewStateAndExtent():e);return Array.isArray(n)||(n=[n]),n}render(e,t){let n=this.getRenderer();return n.prepareFrame(e)?(this.rendered=!0,n.renderFrame(e,t)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(e,t){}renderDeferred(e){let t=this.getRenderer();t&&t.renderDeferred(e)}setMapInternal(e){e||this.unrender(),this.set($.MAP,e)}getMapInternal(){return this.get($.MAP)}setMap(e){this.mapPrecomposeKey_&&=(z(this.mapPrecomposeKey_),null),e||this.changed(),this.mapRenderKey_&&=(z(this.mapRenderKey_),null),e&&(this.mapPrecomposeKey_=dt(e,ba.PRECOMPOSE,this.handlePrecompose_,this),this.mapRenderKey_=dt(this,R.CHANGE,e.render,e),this.changed())}handlePrecompose_(e){let t=e.frameState.layerStatesArray,n=this.getLayerState(!1);X(!t.some(e=>e.layer===n.layer),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),t.push(n)}setSource(e){this.set($.SOURCE,e)}getRenderer(){return this.renderer_||=this.createRenderer(),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}clearRenderer(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_)}disposeInternal(){this.clearRenderer(),this.setSource(null),super.disposeInternal()}};function Sa(e,t){if(!e.visible)return!1;let n=t.resolution;if(n<e.minResolution||n>=e.maxResolution)return!1;let r=t.zoom;return r>e.minZoom&&r<=e.maxZoom}var Ca=[NaN,NaN,NaN,0],wa;function Ta(){return wa||=Xe(1,1,void 0,{willReadFrequently:!0,desynchronized:!0}),wa}var Ea=/^rgba?\(\s*(\d+%?)\s+(\d+%?)\s+(\d+%?)(?:\s*\/\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,Da=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,Oa=/^rgba?\(\s*(\d+%)\s*,\s*(\d+%)\s*,\s*(\d+%)(?:\s*,\s*(\d+%|\d*\.\d+|[01]))?\s*\)$/i,ka=/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;function Aa(e,t){return e.endsWith(`%`)?Number(e.substring(0,e.length-1))/t:Number(e)}function ja(e){throw Error(`failed to parse "`+e+`" as color`)}function Ma(e){if(e.toLowerCase().startsWith(`rgb`)){let t=e.match(Da)||e.match(Ea)||e.match(Oa);if(t){let e=t[4],n=100/255;return[G(Aa(t[1],n)+.5|0,0,255),G(Aa(t[2],n)+.5|0,0,255),G(Aa(t[3],n)+.5|0,0,255),e===void 0?1:G(Aa(e,100),0,1)]}ja(e)}if(e.startsWith(`#`)){if(ka.test(e)){let t=e.substring(1),n=t.length<=4?1:2,r=[0,0,0,255];for(let e=0,i=t.length;e<i;e+=n){let i=parseInt(t.substring(e,e+n),16);n===1&&(i+=i<<4),r[e/n]=i}return r[3]/=255,r}ja(e)}let t=Ta();t.fillStyle=`#abcdef`;let n=t.fillStyle;t.fillStyle=e,t.fillStyle===n&&(t.fillStyle=`#fedcba`,n=t.fillStyle,t.fillStyle=e,t.fillStyle===n&&ja(e));let r=t.fillStyle;if(r.startsWith(`#`)||r.startsWith(`rgba`))return Ma(r);t.clearRect(0,0,1,1),t.fillRect(0,0,1,1);let i=Array.from(t.getImageData(0,0,1,1).data);return i[3]=xn(i[3]/255,3),i}var Na=1024,Pa={},Fa=0;function Ia(e){if(e===`none`)return Ca;if(Pa.hasOwnProperty(e))return Pa[e];if(Fa>=Na){let e=0;for(let t in Pa)e++&3||(delete Pa[t],--Fa)}let t=Ma(e);t.length!==4&&ja(e);for(let n of t)isNaN(n)&&ja(e);return Pa[e]=t,++Fa,t}function La(e){return Array.isArray(e)?e:Ia(e)}function Ra(e,t,n){return n===void 0&&(n=[0,0]),n[0]=e[0]*t+.5|0,n[1]=e[1]*t+.5|0,n}function za(e,t){return Array.isArray(e)?e:(t===void 0?t=[e,e]:(t[0]=e,t[1]=e),t)}var Ba={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function Va(e,t,n){let r=e,i=!0,a=!1,o=!1,s=[ft(r,R.LOAD,function(){o=!0,a||t()})];return r.src&&Ye?(a=!0,r.decode().then(function(){i&&t()}).catch(function(e){i&&(o?t():n())})):s.push(ft(r,R.ERROR,n)),function(){i=!1,s.forEach(z)}}var Ha=class extends mt{constructor(e,t,n,r){super(e),this.inversePixelTransform=t,this.frameState=n,this.context=r}},Ua=`units`,Wa=[1,2,5],Ga=25.4/.28,Ka=class extends xt{constructor(e){e||={};let t=document.createElement(`div`);t.style.pointerEvents=`none`,super({element:t,render:e.render,target:e.target}),this.on,this.once,this.un;let n=e.className===void 0?e.bar?`ol-scale-bar`:`ol-scale-line`:e.className;this.innerElement_=document.createElement(`div`),this.innerElement_.className=n+`-inner`,this.element.className=n+` `+We,this.element.appendChild(this.innerElement_),this.viewState_=null,this.minWidth_=e.minWidth===void 0?64:e.minWidth,this.maxWidth_=e.maxWidth,this.renderedVisible_=!1,this.renderedWidth_=void 0,this.renderedHTML_=``,this.addChangeListener(Ua,this.handleUnitsChanged_),this.setUnits(e.units||`metric`),this.scaleBar_=e.bar||!1,this.scaleBarSteps_=e.steps||4,this.scaleBarText_=e.text||!1,this.dpi_=e.dpi||void 0}getUnits(){return this.get(Ua)}handleUnitsChanged_(){this.updateElement_()}setUnits(e){this.set(Ua,e)}setDpi(e){this.dpi_=e}updateElement_(){let e=this.viewState_;if(!e){this.renderedVisible_&&=(this.element.style.display=`none`,!1);return}let t=e.center,n=e.projection,r=this.getUnits(),i=r==`degrees`?`degrees`:`m`,a=Rr(n,e.resolution,t,i),o=this.minWidth_*(this.dpi_||Ga)/Ga,s=this.maxWidth_===void 0?void 0:this.maxWidth_*(this.dpi_||Ga)/Ga,c=o*a,l=``;if(r==`degrees`){let e=jn.degrees;c*=e,c<e/60?(l=`″`,a*=3600):c<e?(l=`′`,a*=60):l=`°`}else if(r==`imperial`)c<.9144?(l=`in`,a/=.0254):c<1609.344?(l=`ft`,a/=.3048):(l=`mi`,a/=1609.344);else if(r==`nautical`)a/=1852,l=`NM`;else if(r==`metric`)c<1e-6?(l=`nm`,a*=1e9):c<.001?(l=`μm`,a*=1e6):c<1?(l=`mm`,a*=1e3):c<1e3?l=`m`:(l=`km`,a/=1e3);else if(r==`us`)c<.9144?(l=`in`,a*=39.37):c<1609.344?(l=`ft`,a/=.30480061):(l=`mi`,a/=1609.3472);else throw Error(`Invalid units`);let u=3*Math.floor(Math.log(o*a)/Math.log(10)),d,f,p,m=0,h,g;for(;;){p=Math.floor(u/3);let e=10**p;if(d=Wa[(u%3+3)%3]*e,f=Math.round(d/a),isNaN(f)){this.element.style.display=`none`,this.renderedVisible_=!1;return}if(s!==void 0&&f>=s){d=m,f=h,p=g;break}else if(f>=o)break;m=d,h=f,g=p,++u}let _=this.scaleBar_?this.createScaleBar(f,d,l):d.toFixed(p<0?-p:0)+` `+l;this.renderedHTML_!=_&&(this.innerElement_.innerHTML=_,this.renderedHTML_=_),this.renderedWidth_!=f&&(this.innerElement_.style.width=f+`px`,this.renderedWidth_=f),this.renderedVisible_||=(this.element.style.display=``,!0)}createScaleBar(e,t,n){let r=this.getScaleForResolution(),i=r<1?Math.round(1/r).toLocaleString()+` : 1`:`1 : `+Math.round(r).toLocaleString(),a=this.scaleBarSteps_,o=e/a,s=[this.createMarker(`absolute`)];for(let r=0;r<a;++r){let i=r%2==0?`ol-scale-singlebar-odd`:`ol-scale-singlebar-even`;s.push(`<div><div class="ol-scale-singlebar ${i}" style="width: ${o}px;"></div>`+this.createMarker(`relative`)+(r%2==0||a===2?this.createStepText(r,e,!1,t,n):``)+`</div>`)}return s.push(this.createStepText(a,e,!0,t,n)),(this.scaleBarText_?`<div class="ol-scale-text" style="width: ${e}px;">`+i+`</div>`:``)+s.join(``)}createMarker(e){return`<div class="ol-scale-step-marker" style="position: ${e}; top: ${e===`absolute`?3:-10}px;"></div>`}createStepText(e,t,n,r,i){let a=(e===0?0:Math.round(r/this.scaleBarSteps_*e*100)/100)+(e===0?``:` `+i),o=e===0?-3:t/this.scaleBarSteps_*-1,s=e===0?0:t/this.scaleBarSteps_*2;return`<div class="ol-scale-step-text" style="margin-left: ${o}px;text-align: ${e===0?`left`:`center`};min-width: ${s}px;left: ${n?t+`px`:`unset`};">`+a+`</div>`}getScaleForResolution(){let e=Rr(this.viewState_.projection,this.viewState_.resolution,this.viewState_.center,`m`),t=this.dpi_||Ga;return 1e3/25.4*e*t}render(e){let t=e.frameState;t?this.viewState_=t.viewState:this.viewState_=null,this.updateElement_()}},qa=class extends ht{constructor(e,t,n){super(),n||={},this.tileCoord=e,this.state=t,this.key=``,this.transition_=n.transition===void 0?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(R.CHANGE)}release(){this.setState(Y.EMPTY)}getKey(){return this.key+`/`+this.tileCoord}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(e){if(this.state!==Y.EMPTY){if(this.state!==Y.ERROR&&this.state>e)throw Error(`Tile load sequence violation`);this.state=e,this.changed()}}load(){B()}getAlpha(e,t){if(!this.transition_)return 1;let n=this.transitionStarts_[e];if(!n)n=t,this.transitionStarts_[e]=n;else if(n===-1)return 1;let r=t-n+1e3/60;return r>=this.transition_?1:Dt(r/this.transition_)}inTransition(e){return this.transition_?this.transitionStarts_[e]!==-1:!1}endTransition(e){this.transition_&&(this.transitionStarts_[e]=-1)}disposeInternal(){this.release(),super.disposeInternal()}};function Ja(e){return e instanceof Image||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageBitmap?e:null}var Ya=Error(`disposed`),Xa=[256,256],Za=class extends qa{constructor(e){let t=Y.IDLE;super(e.tileCoord,t,{transition:e.transition,interpolate:e.interpolate}),this.loader_=e.loader,this.data_=null,this.error_=null,this.size_=e.size||null,this.controller_=e.controller||null}getSize(){if(this.size_)return this.size_;let e=Ja(this.data_);return e?[e.width,e.height]:Xa}getData(){return this.data_}getError(){return this.error_}load(){if(this.state!==Y.IDLE&&this.state!==Y.ERROR)return;this.state=Y.LOADING,this.changed();let e=this;this.loader_().then(function(t){e.data_=t,e.state=Y.LOADED,e.changed()}).catch(function(t){e.error_=t,e.state=Y.ERROR,e.changed()})}disposeInternal(){this.controller_&&=(this.controller_.abort(Ya),null),super.disposeInternal()}},Qa=class extends qa{constructor(e,t,n,r,i,a){super(e,t,a),this.crossOrigin_=r?.crossOrigin,this.referrerPolicy_=r?.referrerPolicy,this.src_=n,this.key=n,this.image_,Je?this.image_=new OffscreenCanvas(1,1):(this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_),this.referrerPolicy_!==void 0&&(this.image_.referrerPolicy=this.referrerPolicy_)),this.unlisten_=null,this.tileLoadFunction_=i}getImage(){return this.image_}setImage(e){this.image_=e,this.state=Y.LOADED,this.unlistenImage_(),this.changed()}getCrossOrigin(){return this.crossOrigin_}getReferrerPolicy(){return this.referrerPolicy_}handleImageError_(){this.state=Y.ERROR,this.unlistenImage_(),this.image_=$a(),this.changed()}handleImageLoad_(){if(Je)this.state=Y.LOADED;else{let e=this.image_;e.naturalWidth&&e.naturalHeight?this.state=Y.LOADED:this.state=Y.EMPTY}this.unlistenImage_(),this.changed()}load(){this.state==Y.ERROR&&(this.state=Y.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_),this.referrerPolicy_!==void 0&&(this.image_.referrerPolicy=this.referrerPolicy_)),this.state==Y.IDLE&&(this.state=Y.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=Va(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&=(this.unlisten_(),null)}disposeInternal(){this.unlistenImage_(),this.image_=null,super.disposeInternal()}};function $a(){let e=Xe(1,1);return e.fillStyle=`rgba(0,0,0,0)`,e.fillRect(0,0,1,1),e.canvas}var eo=class{constructor(e,t,n,r){this.minX=e,this.maxX=t,this.minY=n,this.maxY=r}contains(e){return this.containsXY(e[1],e[2])}containsTileRange(e){return this.minX<=e.minX&&e.maxX<=this.maxX&&this.minY<=e.minY&&e.maxY<=this.maxY}containsXY(e,t){return this.minX<=e&&e<=this.maxX&&this.minY<=t&&t<=this.maxY}equals(e){return this.minX==e.minX&&this.minY==e.minY&&this.maxX==e.maxX&&this.maxY==e.maxY}extend(e){e.minX<this.minX&&(this.minX=e.minX),e.maxX>this.maxX&&(this.maxX=e.maxX),e.minY<this.minY&&(this.minY=e.minY),e.maxY>this.maxY&&(this.maxY=e.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(e){return this.minX<=e.maxX&&this.maxX>=e.minX&&this.minY<=e.maxY&&this.maxY>=e.minY}};function to(e,t,n,r,i){return i===void 0?new eo(e,t,n,r):(i.minX=e,i.maxX=t,i.minY=n,i.maxY=r,i)}var no,ro=[];function io(e,t,n,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(t,n),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(t,r)+1,Math.max(n,i)),e.restore()}function ao(e,t){return Math.abs(e[t*4]-210)>2||Math.abs(e[t*4+3]-.75*255)>2}function oo(){if(no===void 0){let e=Xe(6,6,ro);e.globalCompositeOperation=`lighter`,e.fillStyle=`rgba(210, 0, 0, 0.75)`,io(e,4,5,4,0),io(e,4,5,0,5);let t=e.getImageData(0,0,3,3).data;no=ao(t,0)||ao(t,4)||ao(t,8),$e(e),ro.push(e.canvas)}return no}function so(e,t,n,r){let i=Yr(n,t,e),a=Rr(t,r,n),o=t.getMetersPerUnit();o!==void 0&&(a*=o);let s=e.getMetersPerUnit();s!==void 0&&(a/=s);let c=e.getExtent();if(!c||It(c,i)){let t=Rr(e,a,i)/a;isFinite(t)&&t>0&&(a/=t)}return a}function co(e,t,n,r){let i=so(e,t,$t(n),r);return(!isFinite(i)||i<=0)&&Yt(n,function(n){return i=so(e,t,n,r),isFinite(i)&&i>0}),i}function lo(e,t,n,r,i,a,o,s,c,l,u,d,f,p){let m=Xe(Math.round(n*e),Math.round(n*t),ro);if(d||(m.imageSmoothingEnabled=!1),c.length===0)return m.canvas;m.scale(n,n);function h(e){return Math.round(e*n)/n}m.globalCompositeOperation=`lighter`;let g=zt();c.forEach(function(e,t,n){Gt(g,e.extent)});let _,v=n/r,y=(d?1:1+2**-24)/v;if(!f||c.length!==1||l!==0){if(_=Xe(Math.round(W(g)*v),Math.round(U(g)*v),ro),d||(_.imageSmoothingEnabled=!1),i&&p){let e=(i[0]-g[0])*v,t=-(i[3]-g[3])*v,n=W(i)*v,r=U(i)*v;_.rect(e,t,n,r),_.clip()}c.forEach(function(e,t,n){if(e.image.width>0&&e.image.height>0){if(e.clipExtent){_.save();let t=(e.clipExtent[0]-g[0])*v,n=-(e.clipExtent[3]-g[3])*v,r=W(e.clipExtent)*v,i=U(e.clipExtent)*v;_.rect(d?t:Math.round(t),d?n:Math.round(n),d?r:Math.round(t+r)-Math.round(t),d?i:Math.round(n+i)-Math.round(n)),_.clip()}let t=(e.extent[0]-g[0])*v,n=-(e.extent[3]-g[3])*v,r=W(e.extent)*v,i=U(e.extent)*v;_.drawImage(e.image,l,l,e.image.width-2*l,e.image.height-2*l,d?t:Math.round(t),d?n:Math.round(n),d?r:Math.round(t+r)-Math.round(t),d?i:Math.round(n+i)-Math.round(n)),e.clipExtent&&_.restore()}})}let b=an(o);return s.getTriangles().forEach(function(e,t,n){let r=e.source,i=e.target,o=r[0][0],s=r[0][1],l=r[1][0],u=r[1][1],f=r[2][0],p=r[2][1],v=h((i[0][0]-b[0])/a),x=h(-(i[0][1]-b[1])/a),S=h((i[1][0]-b[0])/a),C=h(-(i[1][1]-b[1])/a),w=h((i[2][0]-b[0])/a),T=h(-(i[2][1]-b[1])/a),E=o,D=s;o=0,s=0,l-=E,u-=D,f-=E,p-=D;let O=gn([[l,u,0,0,S-v],[f,p,0,0,w-v],[0,0,l,u,C-x],[0,0,f,p,T-x]]);if(!O)return;if(m.save(),m.beginPath(),oo()||!d){m.moveTo(S,C);let e=v-S,t=x-C;for(let n=0;n<4;n++)m.lineTo(S+h((n+1)*e/4),C+h(n*t/3)),n!=3&&m.lineTo(S+h((n+1)*e/4),C+h((n+1)*t/3));m.lineTo(w,T)}else m.moveTo(S,C),m.lineTo(v,x),m.lineTo(w,T);m.clip(),m.transform(O[0],O[2],O[1],O[3],v,x),m.translate(g[0]-E,g[3]-D);let k;if(_)k=_.canvas,m.scale(y,-y);else{let e=c[0],t=e.extent;k=e.image,m.scale(W(t)/k.width,-U(t)/k.height)}m.drawImage(k,0,0),m.restore()}),_&&($e(_),ro.push(_.canvas)),u&&(m.save(),m.globalCompositeOperation=`source-over`,m.strokeStyle=`black`,m.lineWidth=1,s.getTriangles().forEach(function(e,t,n){let r=e.target,i=(r[0][0]-b[0])/a,o=-(r[0][1]-b[1])/a,s=(r[1][0]-b[0])/a,c=-(r[1][1]-b[1])/a,l=(r[2][0]-b[0])/a,u=-(r[2][1]-b[1])/a;m.beginPath(),m.moveTo(s,c),m.lineTo(i,o),m.lineTo(l,u),m.closePath(),m.stroke()}),m.restore()),m.canvas}var uo=10,fo=.25,po=class{constructor(e,t,n,r,i,a,o){this.sourceProj_=e,this.targetProj_=t;let s={},c=o?Hr(e=>Q(o,Yr(e,this.targetProj_,this.sourceProj_))):Jr(this.targetProj_,this.sourceProj_);this.transformInv_=function(e){let t=e[0]+`/`+e[1];return s[t]||(s[t]=c(e)),s[t]},this.maxSourceExtent_=r,this.errorThresholdSquared_=i*i,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!r&&!!this.sourceProj_.getExtent()&&W(r)>=W(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?W(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?W(this.targetProj_.getExtent()):null;let l=an(n),u=on(n),d=Qt(n),f=Zt(n),p=this.transformInv_(l),m=this.transformInv_(u),h=this.transformInv_(d),g=this.transformInv_(f),_=uo+(a?Math.max(0,Math.ceil(Math.log2(Xt(n)/(a*a*256*256)))):0);if(this.addQuad_(l,u,d,f,p,m,h,g,_),this.wrapsXInSource_){let e=1/0;this.triangles_.forEach(function(t,n,r){e=Math.min(e,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(t=>{if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-e>this.sourceWorldWidth_/2){let n=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];n[0][0]-e>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-e>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-e>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);let r=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-r<this.sourceWorldWidth_/2&&(t.source=n)}})}s={}}addTriangle_(e,t,n,r,i,a){this.triangles_.push({source:[r,i,a],target:[e,t,n]})}addQuad_(e,t,n,r,i,a,o,s,c){let l=Nt([i,a,o,s]),u=this.sourceWorldWidth_?W(l)/this.sourceWorldWidth_:null,d=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&u>.5&&u<1,p=!1;if(c>0&&(this.targetProj_.isGlobal()&&this.targetWorldWidth_&&(p=W(Nt([e,t,n,r]))/this.targetWorldWidth_>fo||p),!f&&this.sourceProj_.isGlobal()&&u&&(p=u>fo||p)),!p&&this.maxSourceExtent_&&isFinite(l[0])&&isFinite(l[1])&&isFinite(l[2])&&isFinite(l[3])&&!sn(l,this.maxSourceExtent_))return;let m=0;if(!p&&(!isFinite(i[0])||!isFinite(i[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1]))){if(c>0)p=!0;else if(m=(!isFinite(i[0])||!isFinite(i[1])?8:0)+(!isFinite(a[0])||!isFinite(a[1])?4:0)+(!isFinite(o[0])||!isFinite(o[1])?2:0)+ +(!isFinite(s[0])||!isFinite(s[1])),m!=1&&m!=2&&m!=4&&m!=8)return}if(c>0){if(!p){let t=[(e[0]+n[0])/2,(e[1]+n[1])/2],r=this.transformInv_(t),a;a=f?(yn(i[0],d)+yn(o[0],d))/2-yn(r[0],d):(i[0]+o[0])/2-r[0];let s=(i[1]+o[1])/2-r[1];p=a*a+s*s>this.errorThresholdSquared_}if(p){if(Math.abs(e[0]-n[0])<=Math.abs(e[1]-n[1])){let l=[(t[0]+n[0])/2,(t[1]+n[1])/2],u=this.transformInv_(l),d=[(r[0]+e[0])/2,(r[1]+e[1])/2],f=this.transformInv_(d);this.addQuad_(e,t,l,d,i,a,u,f,c-1),this.addQuad_(d,l,n,r,f,u,o,s,c-1)}else{let l=[(e[0]+t[0])/2,(e[1]+t[1])/2],u=this.transformInv_(l),d=[(n[0]+r[0])/2,(n[1]+r[1])/2],f=this.transformInv_(d);this.addQuad_(e,l,d,r,i,u,f,s,c-1),this.addQuad_(l,t,n,d,u,a,o,f,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}m&11||this.addTriangle_(e,n,r,i,o,s),m&14||this.addTriangle_(e,n,t,i,o,a),m&&(m&13||this.addTriangle_(t,r,e,a,s,i),m&7||this.addTriangle_(t,r,n,a,s,o))}calculateSourceExtent(){let e=zt();return this.triangles_.forEach(function(t,n,r){let i=t.source;Kt(e,i[0]),Kt(e,i[1]),Kt(e,i[2])}),e}getTriangles(){return this.triangles_}},mo=.5,ho=class extends qa{constructor(e,t,n,r,i,a,o,s,c,l,u,d){super(i,Y.IDLE,d),this.renderEdges_=u===void 0?!1:u,this.pixelRatio_=o,this.gutter_=s,this.canvas_=null,this.sourceTileGrid_=t,this.targetTileGrid_=r,this.wrappedTileCoord_=a||i,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=e.canWrapX()?e.getExtent():void 0;let f=r.getTileCoordExtent(this.wrappedTileCoord_),p=this.targetTileGrid_.getExtent(),m=this.sourceTileGrid_.getExtent(),h=p?rn(f,p):f;if(Xt(h)===0){this.state=Y.EMPTY;return}let g=e.getExtent();g&&(m=m?rn(m,g):g);let _=r.getResolution(this.wrappedTileCoord_[0]),v=co(e,n,h,_);if(!isFinite(v)||v<=0){this.state=Y.EMPTY;return}let y=l===void 0?mo:l;if(this.triangulation_=new po(e,n,h,m,v*y,_),this.triangulation_.getTriangles().length===0){this.state=Y.EMPTY;return}this.sourceZ_=t.getZForResolution(v);let b=this.triangulation_.calculateSourceExtent();if(m&&(e.canWrapX()?(b[1]=G(b[1],m[1],m[3]),b[3]=G(b[3],m[1],m[3])):b=rn(b,m)),!Xt(b))this.state=Y.EMPTY;else{let n=0,r=0;e.canWrapX()&&(n=W(g),r=Math.floor((b[0]-g[0])/n)),pn(b.slice(),e,!0).forEach(e=>{let i=t.getTileRangeForExtentAndZ(e,this.sourceZ_);for(let e=i.minX;e<=i.maxX;e++)for(let t=i.minY;t<=i.maxY;t++){let i=r*n;this.sourceTiles_.push({getTile:()=>c(this.sourceZ_,e,t,o),offset:i})}++r}),this.sourceTiles_.length===0&&(this.state=Y.EMPTY)}}getImage(){return this.canvas_}reproject_(){let e=[];if(this.sourceTiles_.forEach(t=>{let n=t.tile;if(n&&n.getState()==Y.LOADED){let r=this.sourceTileGrid_.getTileCoordExtent(n.tileCoord);r[0]+=t.offset,r[2]+=t.offset;let i=this.clipExtent_?.slice();i&&(i[0]+=t.offset,i[2]+=t.offset),e.push({extent:r,clipExtent:i,image:n.getImage()})}}),this.sourceTiles_.length=0,e.length===0)this.state=Y.ERROR;else{let t=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(t),r=typeof n==`number`?n:n[0],i=typeof n==`number`?n:n[1],a=this.targetTileGrid_.getResolution(t),o=this.sourceTileGrid_.getResolution(this.sourceZ_),s=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=lo(r,i,this.pixelRatio_,o,this.sourceTileGrid_.getExtent(),a,s,this.triangulation_,e,this.gutter_,this.renderEdges_,this.interpolate),this.state=Y.LOADED}this.changed()}load(){for(let e of this.sourceTiles_)e.tile=e.getTile();if(this.state==Y.IDLE){this.state=Y.LOADING,this.changed();let e=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(({tile:t})=>{let n=t.getState();if(n==Y.IDLE||n==Y.LOADING){e++;let n=dt(t,R.CHANGE,r=>{let i=t.getState();(i==Y.LOADED||i==Y.ERROR||i==Y.EMPTY)&&(z(n),e--,e===0&&(this.unlistenSources_(),this.reproject_()))});this.sourcesListenerKeys_.push(n)}}),e===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function({tile:e},t,n){e.getState()==Y.IDLE&&e.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(z),this.sourcesListenerKeys_=null}release(){this.canvas_&&=($e(this.canvas_.getContext(`2d`)),ro.push(this.canvas_),null),this.sourceTiles_.length=0,super.release()}},go=class{constructor(e){this.highWaterMark=e===void 0?2048:e,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}deleteOldest(){let e=this.pop();e instanceof pt&&e.dispose()}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(e){for(;this.canExpireCache();)this.deleteOldest()}clear(){for(;this.oldest_;)this.deleteOldest()}containsKey(e){return this.entries_.hasOwnProperty(e)}forEach(e){let t=this.oldest_;for(;t;)e(t.value_,t.key_,this),t=t.newer}get(e,t){let n=this.entries_[e];return X(n!==void 0,`Tried to get a value for a key that does not exist in the cache`),n===this.newest_?n.value_:(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n,n.value_)}remove(e){let t=this.entries_[e];return X(t!==void 0,`Tried to get a value for a key that does not exist in the cache`),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[e],--this.count_,t.value_}getCount(){return this.count_}getKeys(){let e=Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.key_;return e}getValues(){let e=Array(this.count_),t=0,n;for(n=this.newest_;n;n=n.older)e[t++]=n.value_;return e}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(e){return this.entries_[e]?.value_}pop(){let e=this.oldest_;return delete this.entries_[e.key_],e.newer&&(e.newer.older=null),this.oldest_=e.newer,this.oldest_||(this.newest_=null),--this.count_,e.value_}replace(e,t){this.get(e),this.entries_[e].value_=t}set(e,t){X(!(e in this.entries_),`Tried to set a value for a key that is used already`);let n={key_:e,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[e]=n,++this.count_}setSize(e){this.highWaterMark=e}};function _o(e,t,n,r){return r===void 0?[e,t,n]:(r[0]=e,r[1]=t,r[2]=n,r)}function vo(e,t,n){return e+`/`+t+`/`+n}function yo(e,t,n,r,i){return`${V(e)},${t},${vo(n,r,i)}`}function bo(e){return xo(e[0],e[1],e[2])}function xo(e,t,n){return(t<<e)+n}function So(e,t){let n=e[0],r=e[1],i=e[2];if(t.getMinZoom()>n||n>t.getMaxZoom())return!1;let a=t.getFullTileRange(n);return a?a.containsXY(r,i):!0}var Co=class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy(Qe(),{get:(e,t)=>{if(typeof Qe()[t]==`function`)return this.push_(t),this.pushMethodArgs_},set:(e,t,n)=>(this.push_(t,n),!0)})}push_(...e){let t=this.instructions_,n=this.zIndex+this.offset_;t[n]||(t[n]=[]),t[n].push(...e)}pushMethodArgs_=(...e)=>(this.push_(e),this);pushFunction(e){this.push_(e)}getContext(){return this.context_}draw(e){this.instructions_.forEach(t=>{for(let n=0,r=t.length;n<r;++n){let r=t[n];if(typeof r==`function`){r(e);continue}let i=t[++n];if(typeof e[r]==`function`)e[r](...i);else{if(typeof i==`function`){e[r]=i(e);continue}e[r]=i}}})}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}},wo=5,To=class extends gt{constructor(e){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=e,this.staleKeys_=[],this.maxStaleKeys=wo}getStaleKeys(){return this.staleKeys_}prependStaleKey(e){this.staleKeys_.unshift(e),this.staleKeys_.length>this.maxStaleKeys&&(this.staleKeys_.length=this.maxStaleKeys)}getFeatures(e){return B()}getData(e){return null}prepareFrame(e){return B()}renderFrame(e,t){return B()}forEachFeatureAtCoordinate(e,t,n,r,i){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(e){let t=e.target;(t.getState()===Ba.LOADED||t.getState()===Ba.ERROR)&&this.renderIfReadyAndVisible()}loadImage(e){let t=e.getState();return t!=Ba.LOADED&&t!=Ba.ERROR&&e.addEventListener(R.CHANGE,this.boundHandleImageChange_),t==Ba.IDLE&&(e.load(),t=e.getState()),t==Ba.LOADED}renderIfReadyAndVisible(){let e=this.getLayer();e&&e.getVisible()&&e.getSourceState()===`ready`&&e.changed()}renderDeferred(e){}disposeInternal(){delete this.layer_,super.disposeInternal()}},Eo=null;function Do(){Eo=Xe(1,1,void 0,{willReadFrequently:!0})}var Oo=class extends To{constructor(e){super(e),this.container=null,this.renderedResolution,this.tempTransform=oi(),this.pixelTransform=oi(),this.inversePixelTransform=oi(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.frameState=null}getImageData(e,t,n){Eo||Do(),Eo.clearRect(0,0,1,1);let r;try{Eo.drawImage(e,t,n,1,1,0,0,1,1),r=Eo.getImageData(0,0,1,1).data}catch{return Eo=null,null}return r}getBackground(e){let t=this.getLayer().getBackground();return typeof t==`function`&&(t=t(e.viewState.resolution)),t||void 0}useContainer(e,t,n){let r=this.getLayer().getClassName(),i,a;if(e&&e.className===r&&(!n||e&&e.style.backgroundColor&&Ve(La(e.style.backgroundColor),La(n)))){let t=e.firstElementChild;rt(t)&&(a=t.getContext(`2d`))}if(a&&pi(a.canvas.style.transform,t)?(this.container=e,this.context=a,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){i=Je?nt():document.createElement(`div`),i.className=r;let e=i.style;e.position=`absolute`,e.width=`100%`,e.height=`100%`,a=Xe();let t=a.canvas;i.appendChild(t),e=t.style,e.position=`absolute`,e.left=`0`,e.transformOrigin=`top left`,this.container=i,this.context=a}!this.containerReused&&n&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=n)}clipUnrotated(e,t,n){let r=an(n),i=on(n),a=Qt(n),o=Zt(n);Q(t.coordinateToPixelTransform,r),Q(t.coordinateToPixelTransform,i),Q(t.coordinateToPixelTransform,a),Q(t.coordinateToPixelTransform,o);let s=this.inversePixelTransform;Q(s,r),Q(s,i),Q(s,a),Q(s,o),e.save(),e.beginPath(),e.moveTo(Math.round(r[0]),Math.round(r[1])),e.lineTo(Math.round(i[0]),Math.round(i[1])),e.lineTo(Math.round(a[0]),Math.round(a[1])),e.lineTo(Math.round(o[0]),Math.round(o[1])),e.clip()}prepareContainer(e,t){let n=e.extent,r=e.viewState.resolution,i=e.viewState.rotation,a=e.pixelRatio,o=Math.round(W(n)/r*a),s=Math.round(U(n)/r*a);si(this.pixelTransform,e.size[0]/2,e.size[1]/2,1/a,1/a,i,-o/2,-s/2),ci(this.inversePixelTransform,this.pixelTransform);let c=di(this.pixelTransform);if(this.useContainer(t,c,this.getBackground(e)),!this.containerReused){let e=this.context.canvas;e.width!=o||e.height!=s?(e.width=o,e.height=s):this.context.clearRect(0,0,o,s),c!==e.style.transform&&(e.style.transform=c)}}dispatchRenderEvent_(e,t,n){let r=this.getLayer();if(r.hasListener(e)){let i=new Ha(e,this.inversePixelTransform,n,t);r.dispatchEvent(i)}}preRender(e,t){this.frameState=t,!t.declutter&&this.dispatchRenderEvent_(ba.PRERENDER,e,t)}postRender(e,t){t.declutter||this.dispatchRenderEvent_(ba.POSTRENDER,e,t)}renderDeferredInternal(e){}getRenderContext(e){return e.declutter&&!this.deferredContext_&&(this.deferredContext_=new Co),e.declutter?this.deferredContext_.getContext():this.context}renderDeferred(e){e.declutter&&(this.dispatchRenderEvent_(ba.PRERENDER,this.context,e),e.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(e),this.dispatchRenderEvent_(ba.POSTRENDER,this.context,e))}getRenderTransform(e,t,n,r,i,a,o){let s=i/2,c=a/2,l=r/t,u=-l,d=-e[0]+o,f=-e[1];return si(this.tempTransform,s,c,l,u,-n,d,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}};function ko(e,t,n){if(!(n in e))return e[n]=new Set([t]),!0;let r=e[n],i=r.has(t);return i||r.add(t),!i}function Ao(e,t,n){let r=e[n];return r?r.delete(t):!1}function jo(e,t){let n=e.layerStatesArray[e.layerIndex];n.extent&&(t=rn(t,ti(n.extent,e.viewState.projection)));let r=n.layer.getRenderSource();if(!r.getWrapX()){let n=r.getTileGridForProjection(e.viewState.projection).getExtent();n&&(t=rn(t,n))}return t}var Mo=class extends Oo{constructor(e,t){super(e),t||={},this.extentChanged=!0,this.renderComplete=!1,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedTiles=[],this.renderedSourceKey_,this.renderedSourceRevision_,this.tempExtent=zt(),this.tempTileRange_=new eo(0,0,0,0),this.tempTileCoord_=_o(0,0,0);let n=t.cacheSize===void 0?512:t.cacheSize;this.tileCache_=new go(n),this.sourceTileCache_=null,this.layerExtent=null,this.maxStaleKeys=n*.5}getTileCache(){return this.tileCache_}getSourceTileCache(){return this.sourceTileCache_||=new go(512),this.sourceTileCache_}getOrCreateTile(e,t,n,r){let i=this.tileCache_,a=this.getLayer().getSource(),o=yo(a,a.getKey(),e,t,n),s;if(i.containsKey(o))s=i.get(o);else{let c=r.viewState.projection,l=a.getProjection();if(s=a.getTile(e,t,n,r.pixelRatio,c,!l||Gr(l,c)?void 0:this.getSourceTileCache()),!s)return null;i.set(o,s)}return s}getTile(e,t,n,r){return this.getOrCreateTile(e,t,n,r)||null}getData(e){let t=this.frameState;if(!t)return null;let n=this.getLayer(),r=Q(t.pixelToCoordinateTransform,e.slice()),i=n.getExtent();if(i&&!It(i,r))return null;let a=t.viewState,o=n.getRenderSource(),s=o.getTileGridForProjection(a.projection),c=o.getTilePixelRatio(t.pixelRatio);for(let e=s.getZForResolution(a.resolution);e>=s.getMinZoom();--e){let n=s.getTileCoordForCoordAndZ(r,e),i=this.getTile(e,n[1],n[2],t);if(!i||i.getState()!==Y.LOADED)continue;let l=s.getOrigin(e),u=za(s.getTileSize(e)),d=s.getResolution(e),f;if(i instanceof Qa||i instanceof ho)f=i.getImage();else if(i instanceof Za){if(f=Ja(i.getData()),!f)continue}else continue;let p=Math.floor(c*((r[0]-l[0])/d-n[1]*u[0])),m=Math.floor(c*((l[1]-r[1])/d-n[2]*u[1])),h=Math.round(c*o.getGutterForProjection(a.projection));return this.getImageData(f,p+h,m+h)}return null}prepareFrame(e){this.renderedProjection?e.viewState.projection!==this.renderedProjection&&(this.tileCache_.clear(),this.renderedProjection=e.viewState.projection):this.renderedProjection=e.viewState.projection;let t=this.getLayer().getSource();if(!t)return!1;let n=t.getRevision();return this.renderedSourceRevision_?this.renderedSourceRevision_!==n&&(this.renderedSourceRevision_=n,this.renderedSourceKey_===t.getKey()&&(this.tileCache_.clear(),this.sourceTileCache_?.clear())):this.renderedSourceRevision_=n,!0}enqueueTilesForNextExtent(){return!0}enqueueTiles(e,t,n,r,i){let a=e.viewState,o=this.getLayer(),s=o.getRenderSource(),c=s.getTileGridForProjection(a.projection),l=V(s);l in e.wantedTiles||(e.wantedTiles[l]={});let u=e.wantedTiles[l],d=o.getMapInternal(),f=Math.max(n-i,c.getMinZoom(),c.getZForResolution(Math.min(o.getMaxResolution(),d?d.getView().getResolutionForZoom(Math.max(o.getMinZoom(),0)):c.getResolution(0)),s.zDirection)),p=a.rotation,m=p?nn(a.center,a.resolution,p,e.size):void 0;for(let i=n;i>=f;--i){let n=c.getTileRangeForExtentAndZ(t,i,this.tempTileRange_),a=c.getResolution(i);for(let t=n.minX;t<=n.maxX;++t)for(let o=n.minY;o<=n.maxY;++o){if(p&&!c.tileCoordIntersectsViewport([i,t,o],m))continue;let n=this.getTile(i,t,o,e);if(!n||!ko(r,n,i))continue;let s=n.getKey();if(u[s]=!0,n.getState()===Y.IDLE&&!e.tileQueue.isKeyQueued(s)){let r=_o(i,t,o,this.tempTileCoord_);e.tileQueue.enqueue([n,l,c.getTileCoordCenter(r),a])}}}}findStaleTile_(e,t){let n=this.tileCache_,r=e[0],i=e[1],a=e[2],o=this.getStaleKeys();for(let e=0;e<o.length;++e){let s=yo(this.getLayer().getSource(),o[e],r,i,a);if(n.containsKey(s)){let e=n.peek(s);if(e.getState()===Y.LOADED)return e.endTransition(V(this)),ko(t,e,r),!0}}return!1}findAltTiles_(e,t,n,r){let i=e.getTileRangeForTileCoordAndZ(t,n,this.tempTileRange_);if(!i)return!1;let a=!0,o=this.tileCache_,s=this.getLayer().getRenderSource(),c=s.getKey();for(let e=i.minX;e<=i.maxX;++e)for(let t=i.minY;t<=i.maxY;++t){let i=yo(s,c,n,e,t),l=!1;if(o.containsKey(i)){let e=o.peek(i);e.getState()===Y.LOADED&&(ko(r,e,n),l=!0)}l||(a=!1)}return a}renderFrame(e,t){this.renderComplete=!0;let n=e.layerStatesArray[e.layerIndex],r=e.viewState,i=r.projection,a=r.resolution,o=r.center,s=e.pixelRatio,c=this.getLayer(),l=c.getSource(),u=l.getTileGridForProjection(i),d=u.getZForResolution(a,l.zDirection),f=u.getResolution(d),p=l.getKey();this.renderedSourceKey_?this.renderedSourceKey_!==p&&(this.prependStaleKey(this.renderedSourceKey_),this.renderedSourceKey_=p):this.renderedSourceKey_=p;let m=e.extent,h=l.getTilePixelRatio(s);this.prepareContainer(e,t);let g=this.context.canvas.width,_=this.context.canvas.height;this.layerExtent=n.extent?ti(n.extent,i):null,this.layerExtent&&(m=rn(m,this.layerExtent));let v=f*g/2/h,y=f*_/2/h,b=[o[0]-v,o[1]-y,o[0]+v,o[1]+y],x={};this.renderedTiles.length=0;let S=c.getPreload();if(e.nextExtent&&this.enqueueTilesForNextExtent()){let t=u.getZForResolution(r.nextResolution,l.zDirection),n=jo(e,e.nextExtent);this.enqueueTiles(e,n,t,x,S)}let C=jo(e,m);if(this.enqueueTiles(e,C,d,x,0),S>0&&setTimeout(()=>{this.enqueueTiles(e,C,d-1,x,S-1)},0),!(d in x))return this.container;let w=V(this),T=e.time;for(let t of x[d]){let n=t.getState();if(n===Y.EMPTY)continue;let r=t.tileCoord;if(n===Y.LOADED&&t.getAlpha(w,T)===1){t.endTransition(w);continue}if(n!==Y.ERROR&&(this.renderComplete=!1),this.findStaleTile_(r,x)){Ao(x,t,d),e.animate=!0;continue}if(this.findAltTiles_(u,r,d+1,x))continue;let i=u.getMinZoom();for(let e=d-1;e>=i&&!this.findAltTiles_(u,r,e,x);--e);}let E=f/a*s/h,D=this.getRenderContext(e);si(this.tempTransform,g/2,_/2,E,E,0,-g/2,-_/2),this.layerExtent&&this.clipUnrotated(D,e,this.layerExtent),l.getInterpolate()||(D.imageSmoothingEnabled=!1),this.preRender(D,e);let O=Object.keys(x).map(Number);O.sort(Re);let k,A=[],j=[];for(let t=O.length-1;t>=0;--t){let n=O[t],r=l.getTilePixelSize(n,s,i),a=u.getResolution(n)/f,o=r[0]*a*E,c=r[1]*a*E,d=u.getTileCoordForCoordAndZ(an(b),n),p=u.getTileCoordExtent(d),m=Q(this.tempTransform,[h*(p[0]-b[0])/f,h*(b[3]-p[3])/f]),g=h*l.getGutterForProjection(i);for(let t of x[n]){if(t.getState()!==Y.LOADED)continue;let r=t.tileCoord,i=d[1]-r[1],a=Math.round(m[0]-(i-1)*o),s=d[2]-r[2],u=Math.round(m[1]-(s-1)*c),f=Math.round(m[0]-i*o),p=Math.round(m[1]-s*c),h=a-f,_=u-p,v=O.length===1,y=!1;k=[f,p,f+h,p,f+h,p+_,f,p+_];for(let e=0,t=A.length;e<t;++e)if(!v&&n<j[e]){let t=A[e];sn([f,p,f+h,p+_],[t[0],t[3],t[4],t[7]])&&(y||=(D.save(),!0),D.beginPath(),D.moveTo(k[0],k[1]),D.lineTo(k[2],k[3]),D.lineTo(k[4],k[5]),D.lineTo(k[6],k[7]),D.moveTo(t[6],t[7]),D.lineTo(t[4],t[5]),D.lineTo(t[2],t[3]),D.lineTo(t[0],t[1]),D.clip())}A.push(k),j.push(n),this.drawTile(t,e,f,p,h,_,g,v),y&&D.restore(),this.renderedTiles.unshift(t),this.updateUsedTiles(e.usedTiles,l,t)}}return this.renderedResolution=f,this.extentChanged=!this.renderedExtent_||!Wt(this.renderedExtent_,b),this.renderedExtent_=b,this.renderedPixelRatio=s,this.postRender(this.context,e),this.layerExtent&&D.restore(),D.imageSmoothingEnabled=!0,this.renderComplete&&e.postRenderFunctions.push((e,t)=>{let n=V(l),r=t.wantedTiles[n],i=r?Object.keys(r).length:0;this.updateCacheSize(i),this.tileCache_.expireCache(),this.sourceTileCache_?.expireCache()}),this.container}updateCacheSize(e){this.tileCache_.highWaterMark=Math.max(this.tileCache_.highWaterMark,e*2)}drawTile(e,t,n,r,i,a,o,s){let c;if(e instanceof Za){if(c=Ja(e.getData()),!c)throw Error(`Rendering array data is not yet supported`)}else c=this.getTileImage(e);if(!c)return;let l=this.getRenderContext(t),u=V(this),d=t.layerStatesArray[t.layerIndex],f=d.opacity*(s?e.getAlpha(u,t.time):1),p=f!==l.globalAlpha;p&&(l.save(),l.globalAlpha=f),l.drawImage(c,o,o,c.width-2*o,c.height-2*o,n,r,i,a),p&&l.restore(),f===d.opacity?s&&e.endTransition(u):t.animate=!0}getImage(){let e=this.context;return e?e.canvas:null}getTileImage(e){return e.getImage()}updateUsedTiles(e,t,n){let r=V(t);r in e||(e[r]={}),e[r][n.getKey()]=!0}},No={PRELOAD:`preload`,USE_INTERIM_TILES_ON_ERROR:`useInterimTilesOnError`},Po=class extends xa{constructor(e){e||={};let t=Object.assign({},e),n=e.cacheSize;delete e.cacheSize,delete t.preload,delete t.useInterimTilesOnError,super(t),this.on,this.once,this.un,this.cacheSize_=n,this.setPreload(e.preload===void 0?0:e.preload),this.setUseInterimTilesOnError(e.useInterimTilesOnError===void 0?!0:e.useInterimTilesOnError)}getCacheSize(){return this.cacheSize_}getPreload(){return this.get(No.PRELOAD)}setPreload(e){this.set(No.PRELOAD,e)}getUseInterimTilesOnError(){return this.get(No.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(e){this.set(No.USE_INTERIM_TILES_ON_ERROR,e)}getData(e){return super.getData(e)}},Fo=class extends Po{constructor(e){super(e)}createRenderer(){return new Mo(this,{cacheSize:this.getCacheSize()})}},Io=[0,0,0],Lo=5,Ro=class{constructor(e){this.minZoom=e.minZoom===void 0?0:e.minZoom,this.resolutions_=e.resolutions,X(He(this.resolutions_,(e,t)=>t-e,!0),"`resolutions` must be sorted in descending order");let t;if(!e.origins){for(let e=0,n=this.resolutions_.length-1;e<n;++e)if(!t)t=this.resolutions_[e]/this.resolutions_[e+1];else if(this.resolutions_[e]/this.resolutions_[e+1]!==t){t=void 0;break}}this.zoomFactor_=t,this.maxZoom=this.resolutions_.length-1,this.origin_=e.origin===void 0?null:e.origin,this.origins_=null,e.origins!==void 0&&(this.origins_=e.origins,X(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));let n=e.extent;n!==void 0&&!this.origin_&&!this.origins_&&(this.origin_=an(n)),X(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,e.tileSizes!==void 0&&(this.tileSizes_=e.tileSizes,X(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=e.tileSize===void 0?this.tileSizes_?null:256:e.tileSize,X(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=n===void 0?null:n,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],e.sizes===void 0?n&&this.calculateTileRanges_(n):this.fullTileRanges_=e.sizes.map((e,t)=>{let r=new eo(Math.min(0,e[0]),Math.max(e[0]-1,-1),Math.min(0,e[1]),Math.max(e[1]-1,-1));if(n){let e=this.getTileRangeForExtentAndZ(n,t);r.minX=Math.max(e.minX,r.minX),r.maxX=Math.min(e.maxX,r.maxX),r.minY=Math.max(e.minY,r.minY),r.maxY=Math.min(e.maxY,r.maxY)}return r})}forEachTileCoord(e,t,n){let r=this.getTileRangeForExtentAndZ(e,t);for(let e=r.minX,i=r.maxX;e<=i;++e)for(let i=r.minY,a=r.maxY;i<=a;++i)n([t,e,i])}forEachTileCoordParentTileRange(e,t,n,r){let i,a,o,s=null,c=e[0]-1;for(this.zoomFactor_===2?(a=e[1],o=e[2]):s=this.getTileCoordExtent(e,r);c>=this.minZoom;){if(a!==void 0&&o!==void 0?(a=Math.floor(a/2),o=Math.floor(o/2),i=to(a,a,o,o,n)):i=this.getTileRangeForExtentAndZ(s,c,n),t(c,i))return!0;--c}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(e){return this.origin_?this.origin_:this.origins_[e]}getOrigins(){return this.origins_}getResolution(e){return this.resolutions_[e]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(e,t,n){if(e[0]<this.maxZoom){if(this.zoomFactor_===2){let n=e[1]*2,r=e[2]*2;return to(n,n+1,r,r+1,t)}let r=this.getTileCoordExtent(e,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(r,e[0]+1,t)}return null}getTileRangeForTileCoordAndZ(e,t,n){if(t>this.maxZoom||t<this.minZoom)return null;let r=e[0],i=e[1],a=e[2];if(t===r)return to(i,a,i,a,n);if(this.zoomFactor_){let e=this.zoomFactor_**+(t-r),o=Math.floor(i*e),s=Math.floor(a*e);return t<r?to(o,o,s,s,n):to(o,Math.floor(e*(i+1))-1,s,Math.floor(e*(a+1))-1,n)}let o=this.getTileCoordExtent(e,this.tmpExtent_);return this.getTileRangeForExtentAndZ(o,t,n)}getTileRangeForExtentAndZ(e,t,n){this.getTileCoordForXYAndZ_(e[0],e[3],t,!1,Io);let r=Io[1],i=Io[2];this.getTileCoordForXYAndZ_(e[2],e[1],t,!0,Io);let a=Io[1],o=Io[2];return to(r,a,i,o,n)}getTileCoordCenter(e){let t=this.getOrigin(e[0]),n=this.getResolution(e[0]),r=za(this.getTileSize(e[0]),this.tmpSize_);return[t[0]+(e[1]+.5)*r[0]*n,t[1]-(e[2]+.5)*r[1]*n]}getTileCoordExtent(e,t){let n=this.getOrigin(e[0]),r=this.getResolution(e[0]),i=za(this.getTileSize(e[0]),this.tmpSize_),a=n[0]+e[1]*i[0]*r,o=n[1]-(e[2]+1)*i[1]*r;return Bt(a,o,a+i[0]*r,o+i[1]*r,t)}getTileCoordForCoordAndResolution(e,t,n){return this.getTileCoordForXYAndResolution_(e[0],e[1],t,!1,n)}getTileCoordForXYAndResolution_(e,t,n,r,i){let a=this.getZForResolution(n),o=n/this.getResolution(a),s=this.getOrigin(a),c=za(this.getTileSize(a),this.tmpSize_),l=o*(e-s[0])/n/c[0],u=o*(s[1]-t)/n/c[1];return r?(l=Cn(l,Lo)-1,u=Cn(u,Lo)-1):(l=Sn(l,Lo),u=Sn(u,Lo)),_o(a,l,u,i)}getTileCoordForXYAndZ_(e,t,n,r,i){let a=this.getOrigin(n),o=this.getResolution(n),s=za(this.getTileSize(n),this.tmpSize_),c=(e-a[0])/o/s[0],l=(a[1]-t)/o/s[1];return r?(c=Cn(c,Lo)-1,l=Cn(l,Lo)-1):(c=Sn(c,Lo),l=Sn(l,Lo)),_o(n,c,l,i)}getTileCoordForCoordAndZ(e,t,n){return this.getTileCoordForXYAndZ_(e[0],e[1],t,!1,n)}getTileCoordResolution(e){return this.resolutions_[e[0]]}getTileSize(e){return this.tileSize_?this.tileSize_:this.tileSizes_[e]}getFullTileRange(e){return this.fullTileRanges_?this.fullTileRanges_[e]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,e):null}getZForResolution(e,t){return G(ze(this.resolutions_,e,t||0),this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(e,t){return Ji(t,0,t.length,2,this.getTileCoordExtent(e))}calculateTileRanges_(e){let t=this.resolutions_.length,n=Array(t);for(let r=this.minZoom;r<t;++r)n[r]=this.getTileRangeForExtentAndZ(e,r);this.fullTileRanges_=n}};function zo(e){let t=e.getDefaultTileGrid();return t||(t=Wo(e),e.setDefaultTileGrid(t)),t}function Bo(e,t,n){let r=t[0],i=e.getTileCoordCenter(t),a=Go(n);if(!It(a,i)){let t=W(a),n=Math.ceil((a[0]-i[0])/t);return i[0]+=t*n,e.getTileCoordForCoordAndZ(i,r)}return t}function Vo(e,t,n,r){r=r===void 0?`top-left`:r;let i=Uo(e,t,n);return new Ro({extent:e,origin:en(e,r),resolutions:i,tileSize:n})}function Ho(e){let t=e||{},n=t.extent||q(`EPSG:3857`).getExtent();return new Ro({extent:n,minZoom:t.minZoom,tileSize:t.tileSize,resolutions:Uo(n,t.maxZoom,t.tileSize,t.maxResolution)})}function Uo(e,t,n,r){t=t===void 0?42:t,n=za(n===void 0?256:n);let i=U(e),a=W(e);r=r>0?r:Math.max(a/n[0],i/n[1]);let o=t+1,s=Array(o);for(let e=0;e<o;++e)s[e]=r/2**e;return s}function Wo(e,t,n,r){return Vo(Go(e),t,n,r)}function Go(e){e=q(e);let t=e.getExtent();if(!t){let n=180*jn.degrees/e.getMetersPerUnit();t=Bt(-n,-n,n,n)}return t}var Ko=/\{z\}/g,qo=/\{x\}/g,Jo=/\{y\}/g,Yo=/\{-y\}/g;function Xo(e,t,n,r,i){return e.replace(Ko,t.toString()).replace(qo,n.toString()).replace(Jo,r.toString()).replace(Yo,function(){if(i===void 0)throw Error(`If the URL template has a {-y} placeholder, the grid extent must be known`);return(i-r).toString()})}function Zo(e){let t=[],n=/\{([a-z])-([a-z])\}/.exec(e);if(n){let r=n[1].charCodeAt(0),i=n[2].charCodeAt(0),a;for(a=r;a<=i;++a)t.push(e.replace(n[0],String.fromCharCode(a)));return t}if(n=/\{(\d+)-(\d+)\}/.exec(e),n){let r=parseInt(n[2],10);for(let i=parseInt(n[1],10);i<=r;i++)t.push(e.replace(n[0],i.toString()));return t}return t.push(e),t}function Qo(e,t){return(function(n,r,i){if(!n)return;let a,o=n[0];if(t){let e=t.getFullTileRange(o);e&&(a=e.getHeight()-1)}return Xo(e,o,n[1],n[2],a)})}function $o(e,t){let n=e.length,r=Array(n);for(let i=0;i<n;++i)r[i]=Qo(e[i],t);return es(r)}function es(e){return e.length===1?e[0]:(function(t,n,r){if(t)return e[yn(bo(t),e.length)](t,n,r)})}var ts=class extends bt{constructor(e){super(),this.projection=q(e.projection),this.attributions_=ns(e.attributions),this.attributionsCollapsible_=e.attributionsCollapsible??!0,this.loading=!1,this.state_=e.state===void 0?`ready`:e.state,this.wrapX_=e.wrapX===void 0?!1:e.wrapX,this.interpolate_=!!e.interpolate,this.viewResolver=null,this.viewRejector=null;let t=this;this.viewPromise_=new Promise(function(e,n){t.viewResolver=e,t.viewRejector=n})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(e){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(e){this.attributions_=ns(e),this.changed()}setState(e){this.state_=e,this.changed()}};function ns(e){return e?typeof e==`function`?e:(Array.isArray(e)||(e=[e]),t=>e):null}var rs=class extends ts{constructor(e){super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX,interpolate:e.interpolate}),this.on,this.once,this.un,this.tilePixelRatio_=e.tilePixelRatio===void 0?1:e.tilePixelRatio,this.tileGrid=e.tileGrid===void 0?null:e.tileGrid,this.tileGrid&&za(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tmpSize=[0,0],this.key_=e.key||V(this),this.tileOptions={transition:e.transition,interpolate:e.interpolate},this.zDirection=e.zDirection?e.zDirection:0}getGutterForProjection(e){return 0}getKey(){return this.key_}setKey(e){this.key_!==e&&(this.key_=e,this.changed())}getResolutions(e){let t=e?this.getTileGridForProjection(e):this.tileGrid;return t?t.getResolutions():null}getTile(e,t,n,r,i,a){return B()}getTileGrid(){return this.tileGrid}getTileGridForProjection(e){return this.tileGrid?this.tileGrid:zo(e)}getTilePixelRatio(e){return this.tilePixelRatio_}getTilePixelSize(e,t,n){let r=this.getTileGridForProjection(n),i=this.getTilePixelRatio(t),a=za(r.getTileSize(e),this.tmpSize);return i==1?a:Ra(a,i,this.tmpSize)}getTileCoordForTileUrlFunction(e,t){let n=t===void 0?this.getProjection():t,r=t===void 0&&this.tileGrid||this.getTileGridForProjection(n);return this.getWrapX()&&n.isGlobal()&&(e=Bo(r,e,n)),So(e,r)?e:null}clear(){}refresh(){this.clear(),super.refresh()}},is=class extends mt{constructor(e,t){super(e),this.tile=t}},as={TILELOADSTART:`tileloadstart`,TILELOADEND:`tileloadend`,TILELOADERROR:`tileloaderror`},os=class e extends rs{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===e.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(e){let t=e.target,n=V(t),r=t.getState(),i;r==Y.LOADING?(this.tileLoadingKeys_[n]=!0,i=as.TILELOADSTART):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],i=r==Y.ERROR?as.TILELOADERROR:r==Y.LOADED?as.TILELOADEND:void 0),i!=null&&this.dispatchEvent(new is(i,t))}setTileLoadFunction(e){this.tileLoadFunction=e,this.changed()}setTileUrlFunction(e,t){this.tileUrlFunction=e,t===void 0?this.changed():this.setKey(t)}setUrl(e){let t=Zo(e);this.urls=t,this.setUrls(t)}setUrls(e){this.urls=e;let t=e.join(`
2
- `);this.generateTileUrlFunction_?this.setTileUrlFunction($o(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,n){}},ss=class extends os{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:cs,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate===void 0?!0:e.interpolate,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin===void 0?null:e.crossOrigin,this.referrerPolicy=e.referrerPolicy,this.tileClass=e.tileClass===void 0?Qa:e.tileClass,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Gr(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=`:disable-interpolation`),e}getTileGridForProjection(e){let t=this.getProjection();if(this.tileGrid&&(!t||Gr(t,e)))return this.tileGrid;let n=V(e);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=zo(e)),this.tileGridForProjection[n]}createTile_(e,t,n,r,i,a){let o=[e,t,n],s=this.getTileCoordForTileUrlFunction(o,i),c=s?this.tileUrlFunction(s,r,i):void 0,l=new this.tileClass(o,c===void 0?Y.EMPTY:Y.IDLE,c===void 0?``:c,{crossOrigin:this.crossOrigin,referrerPolicy:this.referrerPolicy},this.tileLoadFunction,this.tileOptions);return l.key=a,l.addEventListener(R.CHANGE,this.handleTileChange.bind(this)),l}getTile(e,t,n,r,i,a){let o=this.getProjection();if(!o||!i||Gr(o,i))return this.getTileInternal(e,t,n,r,o||i);let s=[e,t,n],c=this.getKey(),l=new ho(o,this.getTileGridForProjection(o),i,this.getTileGridForProjection(i),s,this.getTileCoordForTileUrlFunction(s,i),this.getTilePixelRatio(r),this.getGutter(),(e,t,n,r)=>this.getTileInternal(e,t,n,r,o,a),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return l.key=c,l}getTileInternal(e,t,n,r,i,a){let o=this.getKey(),s=yo(this,o,e,t,n);if(a&&a.containsKey(s))return a.get(s);let c=this.createTile_(e,t,n,r,i,o);return a?.set(s,c),c}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){let n=q(e);if(n){let e=V(n);e in this.tileGridForProjection||(this.tileGridForProjection[e]=t)}}};function cs(e,t){if(Je){let n=e.getCrossOrigin(),r=`same-origin`,i=`same-origin`;n===`anonymous`||n===``?(r=`cors`,i=`omit`):n===`use-credentials`&&(r=`cors`,i=`include`);let a={mode:r,credentials:i,referrerPolicy:e.getReferrerPolicy()};fetch(t,a).then(e=>{if(!e.ok)throw Error(`HTTP ${e.status}`);return e.blob()}).then(e=>createImageBitmap(e)).then(t=>{let n=e.getImage();n.width=t.width,n.height=t.height,n.getContext(`2d`).drawImage(t,0,0),t.close?.(),n.dispatchEvent(new Event(`load`))}).catch(()=>{e.getImage().dispatchEvent(new Event(`error`))});return}e.getImage().src=t}var ls=class extends ss{constructor(e){e||={};let t=e.projection===void 0?`EPSG:3857`:e.projection,n=e.tileGrid===void 0?Ho({extent:Go(t),maxResolution:e.maxResolution,maxZoom:e.maxZoom,minZoom:e.minZoom,tileSize:e.tileSize}):e.tileGrid;super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,interpolate:e.interpolate,projection:t,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.gutter_=e.gutter===void 0?0:e.gutter}getGutter(){return this.gutter_}},us=`a6e8f78974f2581f2ca00485b40c948f`,ds=`https://static.zhihaoscm.cn/`,fs={default:13,findShip:13,findShipMin:10,findTruck:14,markerPosition:14,max:18,min:3,scaleNum:.555,shipGreenDotMax:11,shipModelMax:18,shipModelMin:13,shipTriggleMin:16,truckDefault:14,truckStatistics:8},ps={data:`EPSG:4326`,mercator:`EPSG:3857`},ms=[114.84,30.52],hs={greenTile:`${ds}/map/tile/{z}/{x}/{y}.png`,satelliteImgTile:`https://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${us}`,satelliteImgTileMark:`https://t0.tianditu.gov.cn/cia_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${us}`,vectorTile:`https://t0.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${us}`,vectorTileMark:`https://t0.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&TILEMATRIXSET=w&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=${us}`};function gs(e){return{greenMark:new Fo({className:`greenTile`,source:new ls({url:hs.greenTile}),visible:e.showGreenLayer,zIndex:2}),satelliteImgTile:new Fo({className:`satellite`,preload:1,source:new ls({url:hs.satelliteImgTile}),visible:e.layerType===`satellite`,zIndex:0}),satelliteImgTileMark:new Fo({className:`satellite`,preload:1,source:new ls({url:hs.satelliteImgTileMark}),visible:e.layerType===`satellite`,zIndex:1}),vectorTile:new Fo({className:`vector`,preload:1,source:new ls({url:hs.vectorTile}),visible:e.layerType===`vector`,zIndex:0}),vectorTileMark:new Fo({className:`vector`,preload:1,source:new ls({url:hs.vectorTileMark}),visible:e.layerType===`vector`,zIndex:1})}}function _s(e){return Object.fromEntries(e.map(e=>[e,()=>void 0]))}function vs(e,t,n=64){return Array.from({length:n},(r,i)=>{let a=i/n*Math.PI*2;return[e[0]+Math.cos(a)*t,e[1]+Math.sin(a)*t]})}var ys=(0,d.forwardRef)(function({center:e=ms,className:t,copyrightImgUrl:n,layerType:r=`vector`,mapMoveEnd:i,scaleLineUnit:a=`metric`,showGreenLayer:o=!1,showScale:s=!0,zoom:m=fs.default,...h},g){let _=(0,d.useRef)(null),v=(0,d.useRef)(void 0),y=(0,d.useRef)(void 0),b=(0,d.useRef)(void 0),x=(0,d.useRef)(!0),S=(0,d.useRef)(`close`),C=(0,d.useRef)(`m`),w=(0,d.useRef)(`close`),T=(0,d.useRef)(r),E=(0,d.useCallback)(e=>{let t=y.current;t&&(t.vectorTile.setVisible(e===`vector`),t.vectorTileMark.setVisible(e===`vector`),t.satelliteImgTile.setVisible(e===`satellite`),t.satelliteImgTileMark.setVisible(e===`satellite`),T.current=e)},[]),D=(0,d.useCallback)(()=>v.current?.getView(),[]),O=(0,d.useCallback)(()=>D()?.getZoom(),[D]),k=(0,d.useCallback)(e=>{D()?.setZoom(e),i?.(e)},[D,i]),A=(0,d.useCallback)((e,t)=>{D()?.setCenter(Ur([e,t]))},[D]),j=(0,d.useCallback)((e,t,n,r=1e3)=>{D()?.animate({center:Ur([e,t]),duration:r,easing:e=>.5*(1-Math.cos(Math.PI*e)),zoom:n})},[D]),M=(0,d.useCallback)(()=>{let e=D()?.getCenter();return e?Wr(e):void 0},[D]),N=(0,d.useCallback)(()=>{let e=v.current,t=D();if(!e||!t)return;let n=e.getSize();if(!n)return;let r=t.calculateExtent(n),i=Yr([r[0],r[1]],ps.mercator,ps.data),a=Yr([r[2],r[3]],ps.mercator,ps.data);return[i[0],i[1],a[0],a[1]]},[D]),P=(0,d.useMemo)(()=>({carTrack:_s([`location`,`remove`,`renderTrack`,`setCenter`,`closeTrack`,`playTrack`]),port:_s([`render`,`clear`,`selected`,`setRed`,`clearRed`,`clearNonRed`]),position:_s([`render`,`selected`,`clearSelected`,`clear`,`renderHtml`,`removeHtml`]),ship:_s([`render`,`selected`,`filter`,`blinking`,`clear`,`setLableStatus`]),track:_s([`render`,`remove`,`play`,`setCenter`,`close`,`getLength`]),wharf:_s([`createWharfLine`,`createWharfLines`,`createWharfPolygon`,`createWharfPolygons`,`createWharfPoint`,`createWharfPoints`,`removeWharfLayer`,`selected`,`clearAllHighlight`])}),[]);return(0,d.useEffect)(()=>{let t=_.current;if(!t)return;let n=gs({layerType:r,showGreenLayer:o});y.current=n;let i=new p.Map({controls:Mt({zoom:!1}),layers:[n.vectorTile,n.vectorTileMark,n.satelliteImgTile,n.satelliteImgTileMark,n.greenMark],target:t,view:new p.View({center:Ur(e),constrainResolution:!0,enableRotation:!1,maxZoom:fs.max,minZoom:fs.min,multiWorld:!0,zoom:m})});return v.current=i,s&&(b.current=new Ka({units:a}),i.addControl(b.current)),()=>{b.current&&i.removeControl(b.current),i.setTarget(void 0),v.current=void 0,y.current=void 0}},[e,r,a,o,s,m]),(0,d.useEffect)(()=>{E(r)},[r,E]),(0,d.useEffect)(()=>{y.current?.greenMark.setVisible(o)},[o]),(0,d.useImperativeHandle)(g,()=>({...P,config:{MAP_DEFAULT_CENTER:ms,MAP_ZOOM:fs,projection:ps},drawLine:{close:()=>{S.current=`close`},deleteLine:()=>void 0,getState:()=>S.current,open:()=>{S.current=`open`},setUnit:e=>{C.current=e}},drawPolygon:{close:()=>{w.current=`close`},open:()=>{w.current=`open`},reset:()=>{w.current=`close`}},flyTo:j,getCenter:M,getInstall:()=>v.current,getMapClick:()=>x.current,getSize:()=>v.current?.getSize(),getView:D,getZoom:O,layer:{getGreenTileVisible:()=>y.current?.greenMark.getVisible(),getShowLayerType:()=>T.current,setGreenTileVisible:e=>y.current?.greenMark.setVisible(e),setShowLayerType:E},setCenter:A,setMapClick:e=>{x.current=e},setZoom:k,utils:{calculateCirclePoints:vs,convertSixHundredThousandToLatLng:(e,t)=>[e/6e5,t/6e5],getCalculateExtent:N}}),[j,N,M,D,O,P,A,E,k]),(0,u.jsxs)(`div`,{...h,className:(0,l.default)(`zh-map-box`,t),children:[(0,u.jsx)(`div`,{ref:_,className:`zh-map`}),(0,u.jsxs)(`div`,{className:`zh-map__zoom-control`,children:[(0,u.jsx)(c.Button,{"aria-label":`放大地图`,icon:(0,u.jsx)(f.PlusOutlined,{}),onClick:()=>k((O()??m)+1)}),(0,u.jsx)(c.Button,{"aria-label":`缩小地图`,icon:(0,u.jsx)(f.MinusOutlined,{}),onClick:()=>k((O()??m)-1)})]}),n?(0,u.jsx)(`div`,{className:`map-copyright`,children:(0,u.jsx)(`img`,{alt:`copyright`,src:n})}):null]})}),bs={},xs={display:`none`},Ss={cancelButtonText:`取消`,center:!1,closeOnClickModal:!1,closeOnPressEscape:!1,confirmButtonText:`确定`,draggable:!1,roundButton:!1,showCancelButton:!0,showClose:!0,showConfirmButton:!0,type:``};function Cs(e,t){return t?e:{...e,style:{...e?.style,...xs}}}function ws(e,t){return e.className??e.customClass??t}function Ts(e,t,n,r){let i={...Ss,...n};return{cancelButtonProps:Cs(i.cancelButtonProps,!!i.showCancelButton),cancelText:i.cancelButtonText,centered:i.center,className:ws(i,r),closable:i.showClose,content:e,keyboard:i.closeOnPressEscape,maskClosable:i.closeOnClickModal,okButtonProps:Cs(i.confirmButtonProps,!!i.showConfirmButton),okText:i.confirmButtonText,title:t,...i.modalProps}}function Es(e,t,n=bs){let r=Ts(e,t,n,`zh-message-box zh-message-confirm`);return new Promise((e,t)=>{c.Modal.confirm({...r,onCancel:async()=>{await n.onCancel?.(),t(`cancel`)},onOk:async()=>{await n.onOk?.(),e(`confirm`)}})})}function Ds(e,t,n=bs){let r=Ts(e,t,n,`zh-message-box zh-message-alert`);return new Promise(e=>{c.Modal.info({...r,cancelButtonProps:void 0,onOk:async()=>{await n.onOk?.(),e(`confirm`)}})})}function Os(e,t,n=bs){let r=n.inputValue??``,i=(0,d.createElement)(d.Fragment,null,(0,d.createElement)(`div`,{className:`zh-message-box__message`},e),(0,d.createElement)(c.Input,{className:`zh-message-box__input`,defaultValue:r,onChange:e=>{r=e.target.value,n.onInputChange?.(r)},placeholder:n.inputPlaceholder})),a=Ts(e,t,n,`zh-message-box zh-message-prompt`);return new Promise((e,t)=>{c.Modal.confirm({...a,content:i,onCancel:async()=>{await n.onCancel?.(),t(`cancel`)},onOk:async()=>{await n.onOk?.(),e({value:r})}})})}var ks={alert:Ds,confirm:Es,prompt:Os},As=Es,js=Ds,Ms=Os;function Ns(e){return typeof e==`number`?!0:!Number.isNaN(Number.parseFloat(e))}function Ps(e){let t=[`角`,`分`],n=[`零`,`壹`,`贰`,`叁`,`肆`,`伍`,`陆`,`柒`,`捌`,`玖`],r=[[`元`,`万`,`亿`],[``,`拾`,`佰`,`仟`]],i=e<0?`负`:``,a=Math.abs(e),o=``;for(let e=0;e<t.length;e+=1)o+=`${n[Math.floor(a*10*10**e)%10]}${t[e]}`.replace(/零./,``);o||=`整`,a=Math.floor(a);for(let e=0;e<r[0].length&&a>0;e+=1){let t=``;for(let e=0;e<r[1].length&&a>0;e+=1)t=n[a%10]+r[1][e]+t,a=Math.floor(a/10);o=t.replace(/(零.)*零$/,``).replace(/^$/,`零`)+r[0][e]+o}return i+o.replace(/(零.)*零元/,`元`).replace(/(零.)+/g,`零`).replace(/^整$/,`零元整`)}function Fs({className:e,onBlur:t,onFocus:n,showTooltip:r=!0,value:i,...a}){let[o,s]=(0,d.useState)(!1),f=(0,d.useMemo)(()=>!i||!Ns(i)||Number(i)<1e3?``:Ps(Number(i)),[i]),p=r&&o&&f?f:``,m=(0,d.useCallback)(e=>{s(!1),t?.(e)},[t]),h=(0,d.useCallback)(e=>{s(!0),n?.(e)},[n]);return(0,u.jsx)(c.Tooltip,{open:!!p,placement:`top`,title:p,children:(0,u.jsx)(`div`,{className:(0,l.default)(`zh-money-input`,e),"data-testid":`zh-money-input`,"data-upper-amount":p||void 0,children:(0,u.jsx)(Ie,{...a,className:`zh-money-input__number`,onBlur:m,onFocus:h,value:i})})})}function Is({className:e,dataSource:t,extendNode:n,...r}){return(0,u.jsxs)(`div`,{...r,className:(0,l.default)(`zh-page-head`,e),children:[(0,u.jsxs)(`div`,{className:`zh-page-head__left`,children:[(0,u.jsx)(`span`,{className:`zh-page-head__name`,children:t.name}),t.no===void 0?null:(0,u.jsxs)(`div`,{children:[(0,u.jsx)(`span`,{className:`zh-page-head__label zh-page-head__label--no`,children:`编号`}),(0,u.jsx)(`span`,{className:`zh-page-head__value`,children:t.no})]})]}),(0,u.jsxs)(`div`,{className:`zh-page-head__other`,children:[n??(0,u.jsxs)(u.Fragment,{children:[t.extendLabel?(0,u.jsx)(`span`,{className:`zh-page-head__label`,children:t.extendLabel}):null,t.extendValue===void 0?null:(0,u.jsx)(`span`,{className:`zh-page-head__value zh-page-head__value--extend`,children:t.extendValue})]}),t.status?(0,u.jsx)(`span`,{className:`zh-page-head__status`,children:t.status}):null]})]})}function Ls(e,t,n=`--`){let r=t.split(`.`).reduce((e,t)=>e?.[t],e);return r==null||r===``?n:r}function Rs(e){return e.split(`.`).at(-1)??e}function zs(e,t,n,r){for(let i of e){if(i[n]===t)return i;if(Array.isArray(i[r])){let e=zs(i[r],t,n,r);if(e)return e}}}function Bs(e,t,n,r){let i=n?.value??`value`,a=n?.label??`label`,o=n?.children??`children`,s=Array.isArray(t)?zs(t,e,i,o):void 0;return r===`tag`?s?.tagType??``:s?s[a]:`--`}function Vs(e){return Array.isArray(e)?e.length?e.join(` / `):`--`:e??`--`}function Hs(e){let t={};return Object.entries(e).forEach(([e,n])=>{(n||n===!1||n===0)&&(t[e]=n)}),t}var Us={page:1,size:10,total:0},Ws={},Gs=e=>e;function Ks(e){let t=[];function n(e){e.forEach(e=>{e._children?.length&&n(e._children),t.push({...e,isFilterEnum:e.isFilterEnum??!0,isShow:e.isShow??!0})})}return n(e),t}function qs(e){let t={};return Ks(e).forEach(e=>{if(!e.search)return;let n=e.search.key??Rs(String(e.prop));e.search.defaultValue!==void 0&&e.search.defaultValue!==null&&(t[n]=e.search.defaultValue)}),t}function Js(e){return Array.isArray(e)?e:[]}function Ys(e){let t=Ks(e).filter(e=>e.search?.el||e.search?.render).filter(e=>e.search?.isShow!==!1);return t.sort((e,t)=>(e.search?.order??0)-(t.search?.order??0)),t}function Xs(e,t,n,r){let i=e.search,a=i.key??Rs(String(e.prop)),o=t[a],s=Js(e.enum),l=i.props?.placeholder??(i.el?.includes(`input`)?`请输入`:`请选择`),d={allowClear:i.props?.allowClear??i.props?.clearable??!0,placeholder:l,style:{minWidth:i.width&&typeof i.width==`number`?i.width:120},value:o,...i.props},f=e=>n(a,e?.target?e.target.value:e);if(i.render)return i.render({clearable:d.allowClear,data:s,modelValue:o,options:s,placeholder:l,searchParam:t,setModelValue:e=>n(a,e)});switch(i.el){case`input-number`:return(0,u.jsx)(c.InputNumber,{...d,onChange:f});case`select`:case`select-v2`:case`tree-select`:return(0,u.jsx)(c.Select,{...d,onChange:f,children:s.map(e=>(0,u.jsx)(c.Select.Option,{value:e.value,children:e.label},String(e.value)))});case`cascader`:return(0,u.jsx)(c.Cascader,{...d,options:s,onChange:f});case`date-picker`:case`time-picker`:case`time-select`:return(0,u.jsx)(c.DatePicker,{...d,onChange:f});case`switch`:return(0,u.jsx)(c.Switch,{checked:!!o,onChange:f});case`slider`:return(0,u.jsx)(c.Slider,{...d,onChange:f});default:return(0,u.jsx)(c.Input,{...d,onChange:f,onPressEnter:r})}}function Zs(e,t,n){let r={$index:n,column:e,row:t},i=e.prop?Ls(t,e.prop):`--`,a=Js(e.enum),o=a.length&&e.isFilterEnum!==!1?Bs(i,a,e.fieldNames):Vs(i);return e.render?e.render(r):e.tag?(0,u.jsx)(c.Tag,{color:Bs(i,a,e.fieldNames,`tag`),children:o}):e.click&&o!==`--`?(0,u.jsx)(c.Typography.Link,{onClick:()=>e.click?.(t,n),children:o}):o}function Qs(e){return e.filter(e=>e.isShow!==!1).filter(e=>e.type!==`selection`).map((e,t)=>e.type===`index`?{align:e.align,dataIndex:`__index`,fixed:e.fixed,key:`index-${t}`,render:(e,t,n)=>n+1,title:e.label??`序号`,width:e.width??80}:e.type===`radio`?{key:`radio-${t}`,render:()=>(0,u.jsx)(c.Radio,{}),title:e.label,width:e.width??55}:{align:e.align,children:e._children?Qs(e._children):void 0,dataIndex:e.prop,fixed:e.fixed,key:String(e.prop??t),render:(t,n,r)=>Zs(e,n,r),sorter:e.sorter??(e.sortable?!0:void 0),title:e.headerRender?n=>e.headerRender?.({$index:t,column:e}):e.label,width:e.width})}var $s=(0,d.forwardRef)(function({beforeReset:e,border:t=!1,className:n,columns:r,customColumn:i=!1,data:a,dataCallback:o,emptyNode:s,handleParam:p=Gs,headerTip:m,initParam:h=Ws,isShowResetBtn:g=!0,isShowSearch:_=!0,isShowSearchBtn:v=!0,maxHeight:y,onReset:b,onSearch:x,onSortChange:S,pagination:C=!0,requestApi:w,requestAuto:T=!0,requestError:E,rowKey:D=`id`,searchBarBottom:O,searchClearSelection:k=!0,selectChangeCallback:A,tableHeader:j,title:M,zhPaginationLeft:N,...P},ee){let te=(0,d.useMemo)(()=>qs(r),[r]),[ne,re]=(0,d.useState)(te),[ie]=(0,d.useState)(te),[ae,oe]=(0,d.useState)([]),[F,se]=(0,d.useState)(Us),[ce,le]=(0,d.useState)(!1),[ue,de]=(0,d.useState)([]),[fe,pe]=(0,d.useState)([]),me=(0,d.useRef)(!1),he=(0,d.useMemo)(()=>Ks(r),[r]),ge=(0,d.useMemo)(()=>Ys(r),[r]),_e=he.some(e=>e.type===`selection`&&e.isShow!==!1),ve=a??ae,ye=(0,d.useMemo)(()=>a?C?a.slice((F.page-1)*F.size,F.page*F.size):a:ve,[ve,a,F.page,F.size,C]),be=(0,d.useMemo)(()=>fe.map(e=>Ls(e,D,void 0)),[D,fe]),xe=(0,d.useCallback)((e,t)=>{re(n=>({...n,[e]:t}))},[]),I=(0,d.useCallback)(async e=>{if(!w)return;let t=e?.pageable??F,n=e?.searchParam??ne;le(!0);try{let e=await w(p({...h,...Hs(n),...C?{page:t.page,size:t.size}:{}}));o&&(e=await o(e)),oe(C?e.list??[]:e),C&&se({page:e.currentPage??t.page,size:e.pageSize??t.size,total:e.total??0})}catch(e){E?.(e)}finally{le(!1)}},[o,p,h,F,C,w,E,ne]),L=(0,d.useCallback)(()=>{k&&(pe([]),de([]));let e={...F,page:1};se(e),I({pageable:e}),x?.()},[I,x,F,k]),Se=(0,d.useCallback)(()=>{e?.();let t={...ie},n={...F,page:1};re(t),se(n),pe([]),de([]),b?.(),I({pageable:n,searchParam:t})},[e,I,b,F,ie]),Ce=(0,d.useCallback)(e=>{let t={...F,page:1,size:e};se(t),I({pageable:t})},[I,F]),we=(0,d.useCallback)(e=>{let t={...F,page:e};se(t),I({pageable:t})},[I,F]),Te=(0,d.useCallback)(()=>{pe([]),de([]),A?.([])},[A]),Ee=(0,d.useCallback)(e=>{se(t=>({...t,total:e}))},[]),De=_e?{onChange:(e,t)=>{de(e),pe(t),A?.(t)},selectedRowKeys:ue}:void 0,Oe=(e,t,n)=>{let r=Array.isArray(n)?n[0]:n,i={column:r.column,order:r.order?{ascend:`ascending`,descend:`descending`}[r.order]:null,prop:String(r.field??``)};S?.(i)};return(0,d.useEffect)(()=>{a&&se(e=>({...e,total:a.length}))},[a]),(0,d.useEffect)(()=>{a||!T||me.current||(me.current=!0,I())},[a,I,T]),(0,d.useImperativeHandle)(ee,()=>({clearSelection:Te,getTableList:I,handleCurrentChange:we,handleSizeChange:Ce,get isSelected(){return fe.length>0},get pageable(){return F},reset:Se,search:L,get searchInitParam(){return ie},get searchParam(){return ne},get selectedList(){return fe},get selectedListIds(){return be},setPageTotal:Ee,get tableData(){return ye}}),[Te,I,we,Ce,F,ye,Se,L,ie,ne,fe,be,Ee]),(0,u.jsxs)(`div`,{className:(0,l.default)(`zh-table`,n),children:[M||m?(0,u.jsxs)(`div`,{className:`zh-table__title-container`,children:[M?(0,u.jsx)(`div`,{className:`zh-table__title`,children:M}):null,m?(0,u.jsx)(`div`,{className:`zh-table__header-tip`,children:m}):null]}):null,(0,u.jsx)(`div`,{className:`zh-table__header-container`,children:_&&ge.length?(0,u.jsxs)(c.Form,{className:`zh-table__search`,layout:`inline`,children:[j?(0,u.jsx)(`div`,{className:`zh-table__table-header`,children:j({isSelected:fe.length>0,selectedList:fe,selectedListIds:be})}):null,ge.map(e=>(0,u.jsx)(c.Form.Item,{label:e.search?.label?`${e.search.label}:`:void 0,tooltip:e.search?.tooltip,children:Xs(e,ne,xe,L)},String(e.search?.key??e.prop))),v?(0,u.jsx)(c.Button,{"aria-label":`搜索`,icon:(0,u.jsx)(f.SearchOutlined,{}),onClick:L,type:`primary`,children:`搜索`}):null,g?(0,u.jsx)(c.Tooltip,{title:`重置`,children:(0,u.jsx)(c.Button,{"aria-label":`重置`,icon:(0,u.jsx)(f.ReloadOutlined,{}),onClick:Se})}):null]}):null}),O,(0,u.jsxs)(`div`,{className:`zh-table__body-container`,children:[i?(0,u.jsx)(c.Tooltip,{title:`自定义列`,children:(0,u.jsx)(c.Button,{"aria-label":`自定义列`,className:`zh-table__col-setting`,icon:(0,u.jsx)(f.SettingOutlined,{}),type:`text`})}):null,(0,u.jsx)(c.Table,{...P,bordered:t,columns:Qs(r),dataSource:ye,loading:ce,locale:{emptyText:s??`暂无数据`},onChange:Oe,pagination:!1,rowKey:D,rowSelection:De,scroll:y?{y}:P.scroll})]}),C&&F.total?(0,u.jsxs)(`div`,{className:`zh-table__pagination`,children:[(0,u.jsx)(`div`,{className:`zh-table__page-total`,children:N?.(F)??`共${F.total}条数据`}),(0,u.jsx)(c.Pagination,{current:F.page,onChange:we,onShowSizeChange:(e,t)=>Ce(t),pageSize:F.size,showSizeChanger:!0,total:F.total})]}):null]})});function ec({children:e,className:t,content:n,placement:r=`top`,...i}){let a=e??(0,u.jsx)(`button`,{"aria-label":String(n),className:`zh-tooltips__trigger`,type:`button`,children:(0,u.jsx)(f.QuestionCircleOutlined,{"aria-hidden":`true`})});return(0,u.jsx)(c.Tooltip,{...i,className:(0,l.default)(`zh-tooltips`,t),placement:r,title:n,children:a})}var tc=h.default.Events,nc=h.default.ErrorTypes,rc=class{config;options;handlers=new globalThis.Map;player=null;videoElement;constructor(e,t={}){this.config=e,this.options=t}attachMediaElement(e){this.videoElement=e}async load(){if(!this.videoElement)throw Error(`Video element is required before player load`);this.player=h.default.createPlayer({hasAudio:this.config.hasAudio,hasVideo:this.config.hasVideo,isLive:this.config.isLive,type:this.config.type,url:this.config.url},{autoCleanupSourceBuffer:this.options.autoCleanupSourceBuffer??!0,deferLoadAfterSourceOpen:this.options.deferLoadAfterSourceOpen??!0,enableStashBuffer:this.options.enableStashBuffer??!0,enableWorker:this.options.enableWorker??!0,lazyLoadMaxDuration:this.options.lazyLoadMaxDuration??180}),this.player.attachMediaElement(this.videoElement),this.player.on(h.default.Events.ERROR,(...e)=>this.emit(String(h.default.Events.ERROR),...e)),this.player.load()}on(e,t){let n=this.handlers.get(e)??new Set;n.add(t),this.handlers.set(e,n)}pause(){this.videoElement?.pause()}async play(){let e=this.player?.play?.();e instanceof Promise&&await e}unload(){this.player?.unload()}destroy(){this.player?.destroy(),this.player=null,this.handlers.clear()}emit(e,...t){this.handlers.get(e)?.forEach(e=>e(...t))}};function ic(e,t){return new rc(e,t)}function ac(e){try{let t=new URL(e,window.location.href).searchParams.get(`audio`);return t?!!Number(t):!0}catch{return!0}}function oc({getLiveUrl:e,onFullscreenChange:t,stopLivePlay:n}){let r=(0,d.useRef)(null),i=(0,d.useRef)(null),a=(0,d.useRef)(null),o=(0,d.useRef)(void 0),s=(0,d.useRef)(``),[l,f]=(0,d.useState)(!0),p=(0,d.useCallback)(()=>{a.current?.unload(),a.current?.destroy(),a.current=null,s.current&&=(n?.(s.current),``)},[n]),h=(0,d.useCallback)(async()=>{let t=i.current;if(!t)return;let{playUrl:n,streamId:r}=await e();s.current=r;let o=ic({hasAudio:ac(n),hasVideo:!0,isLive:!0,type:`flv`,url:n},{autoCleanupSourceBuffer:!0,deferLoadAfterSourceOpen:!0,enableStashBuffer:!0,enableWorker:!0,lazyLoadMaxDuration:180});a.current=o,o.attachMediaElement(t),o.on(String(tc.ERROR),e=>{String(e)===String(nc.NETWORK_ERROR)?c.message.error(`网络错误,请检查网络`):c.message.error(`播放错误,请检查网络`)}),await o.load(),await o.play().catch(()=>void 0),f(!1)},[e]);return(0,d.useEffect)(()=>{h();let e=i.current;return e&&(o.current=new m.default(e,{autoplay:!0,controls:[`play-large`,`play`,`fullscreen`,`mute`],fullscreen:{container:`#live-player-container`,enabled:!0,fallback:!0,iosNative:!1},muted:!0}),o.current.on(`enterfullscreen`,()=>t?.(!0,`#live-player-container`)),o.current.on(`exitfullscreen`,()=>t?.(!1))),()=>{p(),o.current?.destroy()}},[h,t,p]),(0,u.jsxs)(`div`,{ref:r,className:`zh-video-player__stage`,id:`live-player-container`,children:[(0,u.jsx)(`video`,{ref:i,"aria-label":`实时视频`,className:`zh-video-player__media`,children:(0,u.jsx)(`track`,{kind:`captions`})}),l?(0,u.jsx)(Le,{className:`zh-video-player__loading`}):null]})}var sc=`YYYY-MM-DD`,cc=`YYYY-MM-DD HH:mm:ss`,lc=`YYYY-MM-DDT23:59:59`,uc=`YYYY-MM-DDTHH:mm:ss`,dc={background:`transparent`,meddleDate:`#1677ff`,meddleLine:`#1677ff`,moveDate:`transparent`,moveLine:`transparent`,scaleBar:`transparent`,scaleLine:`#b8bfca`},fc=[];function pc(e){if(Array.isArray(e))return e;let t=e?(0,g.default)(e).format(`YYYY-MM-DD`):(0,g.default)().format(`YYYY-MM-DD`);return[`${t} 00:00:00`,`${t} 23:59:59`]}var mc=(0,d.forwardRef)(function({colors:e=dc,height:t=43,isAutoPlay:n=!1,markTime:r=fc,minPxSecond:i=120,onChange:a,onTimeClick:o,startMeddleTime:s,timeRange:c,width:l=`100%`,...f},p){let m=(0,d.useRef)(null),h=(0,d.useRef)(void 0),_=(0,d.useRef)(``),v=(0,d.useMemo)(()=>pc(c),[c]),y=(0,d.useCallback)(()=>{let e=m.current;if(!e)return 1e3;if(typeof l==`number`)return l;let t=e.parentElement?.clientWidth||1e3;return/^(\d|[1-9]\d|100)%$/.test(l)?Math.floor(Number(l.replace(`%`,``))/100*t):Number(l)||t},[l]),b=(0,d.useCallback)(()=>{let n=m.current,a=n?.getContext(`2d`);if(!n||!a)return;let o=y(),c=window.devicePixelRatio||1;n.style.width=`${o}px`,n.style.height=`${t}px`,n.width=Math.round(o*c),n.height=Math.round(t*c),a.setTransform(c,0,0,c,0,0),a.clearRect(0,0,o,t),a.fillStyle=e.scaleBar,a.fillRect(0,0,o,20);let l=(0,g.default)(_.current||s||v[0]),u=Math.min(1440*60/o,i),d=l.valueOf()-u*o*1e3/2;r.forEach(e=>{let t=(0,g.default)(e.beginTime).valueOf(),n=(0,g.default)(e.endTime).valueOf(),r=(t-d)/1e3/u,i=(n-d)/1e3/u;a.fillStyle=e.bgColor,a.fillRect(r,0,i-r,20)}),a.strokeStyle=e.scaleLine,a.fillStyle=e.scaleLine,a.font=`12px serif`;for(let e=0;e<=24;e+=2){let t=e/24*o;a.beginPath(),a.moveTo(t,0),a.lineTo(t,20),a.stroke(),a.fillText((0,g.default)(v[0]).add(e,`hour`).format(e===0?`YYYY-MM-DD`:`HH:mm`),t-16,32)}a.strokeStyle=e.meddleLine,a.fillStyle=e.meddleDate,a.beginPath(),a.moveTo(o/2,0),a.lineTo(o/2,30),a.stroke(),a.fillText(l.format(cc),o/2-50,40)},[e,y,t,r,i,v,s]),x=(0,d.useCallback)(e=>{_.current=(0,g.default)(e).format(cc),b()},[b]),S=(0,d.useCallback)(()=>{h.current&&window.clearInterval(h.current),h.current=void 0,a?.(_.current,`stop`)},[a]),C=(0,d.useCallback)(e=>{e&&(_.current=(0,g.default)(e).format(`YYYY-MM-DD HH:mm:ss`)),_.current||=(0,g.default)(s||v[0]).format(cc),h.current&&window.clearInterval(h.current),h.current=window.setInterval(()=>{_.current=(0,g.default)(_.current).add(1,`second`).format(cc);let e=(0,g.default)(_.current).isAfter((0,g.default)(v[1]))?`end`:`play`;a?.(_.current,e),b(),e===`end`&&S()},1e3)},[b,a,v,s,S]);return(0,d.useEffect)(()=>(_.current=s||(0,g.default)(((0,g.default)(v[0]).valueOf()+(0,g.default)(v[1]).valueOf())/2).format(`YYYY-MM-DD HH:mm:ss`),b(),n&&C(),()=>{h.current&&window.clearInterval(h.current)}),[b,n,C,v,s]),(0,d.useImperativeHandle)(p,()=>({play:C,resize:b,setMeddleTime:x,stop:S}),[b,C,x,S]),(0,u.jsx)(`canvas`,{...f,ref:m,height:t,onClick:e=>{let t=y(),n=e.currentTarget.getBoundingClientRect().left,r=(e.clientX-n)/t,i=(0,g.default)(v[0]).add(r*24*60*60,`second`).format(cc);_.current=i,b(),a?.(i,`start`),o?.(i)},style:{backgroundColor:e.background,cursor:`pointer`}})});function hc(e){try{let t=new URL(e,window.location.href).searchParams.get(`audio`);return t?!!Number(t):!0}catch{return!0}}function gc({getPlaybackUrl:e,onFullscreenChange:t,stopPlayback:n}){let r=(0,d.useRef)(null),i=(0,d.useRef)(null),a=(0,d.useRef)(null),o=(0,d.useRef)(null),s=(0,d.useRef)(void 0),l=(0,d.useRef)(``),[f,p]=(0,d.useState)(!1),[h,_]=(0,d.useState)(!0),[v,y]=(0,d.useState)(()=>(0,g.default)().startOf(`day`).format(cc)),b=(0,d.useMemo)(()=>(0,g.default)(v).format(sc),[v]),x=(0,d.useCallback)(()=>{o.current?.unload(),o.current?.destroy(),o.current=null,l.current&&=(n?.(l.current),``)},[n]),S=(0,d.useCallback)(async()=>{let t=i.current;if(!t)return;_(!0);let n=await e((0,g.default)(v).format(uc),(0,g.default)(v).format(lc));l.current=n.streamId;let r=ic({hasAudio:hc(n.playUrl),hasVideo:!0,isLive:!1,type:`flv`,url:n.playUrl},{autoCleanupSourceBuffer:!0,deferLoadAfterSourceOpen:!0,enableStashBuffer:!0,enableWorker:!0,lazyLoadMaxDuration:180});o.current=r,r.attachMediaElement(t),r.on(String(tc.ERROR),e=>{String(e)===String(nc.NETWORK_ERROR)?c.message.error(`网络错误,请检查网络`):c.message.error(`其他错误,请联系管理员解决`)}),await r.load(),await r.play().catch(()=>void 0),_(!1),a.current?.play(v)},[e,v]);(0,d.useEffect)(()=>{S();let e=i.current;return e&&(s.current=new m.default(e,{autoplay:!0,controls:[`play`,`fullscreen`,`mute`],fullscreen:{container:`#player-container`,enabled:!0,fallback:!0,iosNative:!1},muted:!0}),s.current.on(`enterfullscreen`,()=>{p(!0),t?.(!0,`#player-container`),window.setTimeout(()=>a.current?.resize())}),s.current.on(`exitfullscreen`,()=>{p(!1),t?.(!1)})),()=>{x(),s.current?.destroy()}},[S,t,x]);let C=(0,d.useCallback)(e=>{if(e){if(e.isAfter((0,g.default)())){c.message.warning(`选择的时间不能晚于当前时间`);return}y(e.startOf(`day`).format(cc))}},[]);return(0,u.jsxs)(`div`,{ref:r,className:`zh-video-player__stage`,id:`player-container`,children:[(0,u.jsx)(`video`,{ref:i,"aria-label":`回放视频`,className:`zh-video-player__media`,children:(0,u.jsx)(`track`,{kind:`captions`})}),h?(0,u.jsx)(Le,{className:`zh-video-player__loading`}):null,f?(0,u.jsxs)(`div`,{className:`zh-video-player__footer`,children:[(0,u.jsx)(`div`,{className:`zh-video-player__timeline`,children:(0,u.jsx)(mc,{ref:a,onTimeClick:y,startMeddleTime:v,timeRange:b})}),(0,u.jsx)(c.DatePicker,{allowClear:!1,className:`zh-video-player__date`,disabledDate:e=>e.isAfter((0,g.default)()),onChange:C,value:(0,g.default)(v)})]}):null]})}var _c=async()=>({playUrl:``,streamId:``}),vc=async()=>({playUrl:``,streamId:``});function yc({className:e,getLiveUrl:t=_c,getPlaybackUrl:n=vc,mode:r=`live`,onFullscreenChange:i,stopLivePlay:a,stopPlayback:o,updatePlaybackUrl:s,...c}){return(0,u.jsx)(`div`,{...c,className:(0,l.default)(`zh-video-player`,e),children:r===`live`?(0,u.jsx)(oc,{getLiveUrl:t,onFullscreenChange:i,stopLivePlay:a}):(0,u.jsx)(gc,{getPlaybackUrl:n,onFullscreenChange:i,stopPlayback:o,updatePlaybackUrl:s})})}function bc({defaultValue:e,onChange:t,value:n}){let[r,i]=(0,d.useState)(e),a=n!==void 0;return[a?n:r,(0,d.useCallback)(e=>{a||i(e),t?.(e)},[a,t])]}function xc(e){let t=(0,d.useRef)(e);return t.current=e,t}var Sc=`@zh/theme`;function Cc(e){return e==null?[]:Array.isArray(e)?e:[e]}function wc(e){return e==null}function Tc(e){return wc(e)||e===``}exports.Alert=js,exports.BASE_MAP_LINK=hs,exports.BaseInfo=le,exports.BaseInfoContext=ce,exports.BaseItem=me,exports.Button=y,exports.ButtonGroup=b,exports.CDN_URL=ds,exports.CascaderLoadMore=T,exports.Confirm=As,exports.DATE_PICKER_FORMAT=sc,exports.DEFAULT_TIMELINE_COLORS=dc,exports.DEFAULT_VALUE=_,exports.DIY_DATA_TYPE=L,exports.DatePicker=j,exports.DetailHeader=_e,exports.DetailSubTitle=be,exports.Dialog=I,exports.DiyDataTable=Oe,exports.EditInfoPair=Ae,exports.FileWrapper=Me,exports.Grid=oe,exports.GridItem=F,exports.InfoPair=ye,exports.Input=Pe,exports.InputNumber=Ie,exports.LOG_DATE_FORMAT=cc,exports.LOG_DATE_FORMAT_END=lc,exports.LOG_DATE_FORMAT_T=uc,exports.Loading=Le,exports.MAP_DEFAULT_CENTER=ms,exports.MAP_ZOOM=fs,exports.Map=ys,exports.MessageBox=ks,exports.MoneyInput=Fs,exports.MultiGrid=se,exports.PageHeadPanel=Is,exports.Prompt=Ms,exports.THEME_PACKAGE_NAME=Sc,exports.TIAN_DI_TU_KEY=us,exports.Table=$s,exports.ToolTips=ec,exports.VideoPlayer=yc,exports.digitUppercase=Ps,exports.flattenCascaderOptions=C,exports.formatDatePickerValue=O,exports.isEmptyValue=Tc,exports.isNil=wc,exports.normalizeNumberInput=Fe,exports.projection=ps,exports.toArray=Cc,exports.useControlledState=bc,exports.useLatest=xc,exports.validateNumber=Ns;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("antd"),t=require("react/jsx-runtime"),n=require("react");function r(...e){return e.filter(Boolean).join(` `)}var i=`zh-alert`;function a(e){return e??`info`}function o(e){let t=a(e);return t===`primary`?`info`:t}function s(e){return e??`icon`}function c(e,t,n){return r(i,`${i}--type-${a(t)}`,n&&`${i}--with-description`,e)}function l(e,n,r){if(e===!1)return!1;if(s(n)!==`text`)return e??!0;let i=(0,t.jsx)(`span`,{className:`zh-alert-close-text`,children:r});return e&&typeof e==`object`?{...e,closeIcon:e.closeIcon??i}:{closeIcon:i}}function u({className:n,closable:i,closeText:s=`Close`,closeType:u,description:d,rootClassName:f,showIcon:p=!0,title:m,type:h,variant:g=`filled`,..._}){let v=a(h),y=d!=null,b=m??(y?`Title`:`Alert Message.`),ee=y?d:void 0,x=c(n,v,y);return(0,t.jsx)(e.Alert,{..._,className:x,closable:l(i,u,s),description:ee,rootClassName:r(x,f),showIcon:p,title:b,type:o(v),variant:g})}u.displayName=`Alert`;var d=`zh-badge`,f=`zh-badge-ribbon`;function p(e){return r(d,e)}function m(e){return r(f,e)}var h=(0,n.forwardRef)(function({className:n,...r},i){return(0,t.jsx)(e.Badge,{...r,ref:i,className:p(n)})});function g({className:n,...r}){return(0,t.jsx)(e.Badge.Ribbon,{...r,className:m(n)})}var _=Object.assign(h,{Ribbon:g});_.displayName=`Badge`,g.displayName=`Badge.Ribbon`;var v={arrow:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.2189 2.47709C7.61924 1.97631 8.38076 1.97631 8.78109 2.47709L14.4957 9.62559C15.0191 10.2804 14.5529 11.25 13.7146 11.25H2.28543C1.44709 11.25 0.980871 10.2804 1.50434 9.62559L7.2189 2.47709Z" fill="currentColor"/></svg>`,boat:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_707)"><path d="M14.3803 8.9882L13.1772 10.449L13.6499 10.492C13.6499 10.492 12.1031 11.738 10.7282 11.8239C9.3533 11.9099 8.70882 10.0623 8.70882 10.0623V7.01179H10.5563V6.10951H8.79475V4.90648C9.56813 4.64869 10.0837 3.91827 10.0837 3.05896C10.0837 1.98483 9.22441 1.12552 8.15027 1.12552H8.1073C7.03317 1.12552 6.17386 1.98483 6.17386 3.05896C6.17386 3.91827 6.73241 4.64869 7.46282 4.90648V6.10951H5.70124V7.01179H7.54875V10.0623C7.54875 10.0623 6.86131 11.8669 5.48641 11.8239C4.11152 11.738 2.56476 10.492 2.56476 10.492L3.03738 10.449L1.79138 8.9882L1.36172 10.7927L1.87731 10.6639C1.87731 10.6639 2.90848 12.5114 4.4982 13.1988C6.08793 13.9292 7.67765 14.8315 8.02137 14.8745C8.3651 14.8315 9.95482 13.9292 11.5016 13.1988C13.0483 12.4684 14.1225 10.6639 14.1225 10.6639L14.6381 10.7927L14.3803 8.9882ZM8.15027 4.1331C7.54875 4.1331 7.07613 3.66048 7.07613 3.05896C7.07613 2.50041 7.54875 2.02779 8.1073 2.02779H8.15027C8.70882 2.02779 9.18144 2.50041 9.18144 3.05896C9.22441 3.66048 8.70882 4.1331 8.15027 4.1331Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_707"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,"chevron-down":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.54036 5.54039C3.7942 5.28655 4.20575 5.28655 4.45959 5.54039L7.99998 9.08077L11.5404 5.54039C11.7942 5.28655 12.2058 5.28655 12.4596 5.54039C12.7134 5.79423 12.7134 6.20578 12.4596 6.45963L8.4596 10.4596C8.20575 10.7135 7.7942 10.7135 7.54036 10.4596L3.54036 6.45963C3.28652 6.20578 3.28652 5.79423 3.54036 5.54039Z" fill="currentColor"/></svg>`,"chevron-left":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.4596 3.54039C10.7135 3.79423 10.7135 4.20578 10.4596 4.45963L6.91926 8.00001L10.4596 11.5404C10.7135 11.7942 10.7135 12.2058 10.4596 12.4596C10.2058 12.7135 9.79425 12.7135 9.5404 12.4596L5.5404 8.45963C5.28656 8.20578 5.28656 7.79423 5.5404 7.54039L9.54041 3.54039C9.79425 3.28655 10.2058 3.28655 10.4596 3.54039Z" fill="currentColor"/></svg>`,"chevron-right":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.54036 12.4596C5.28652 12.2058 5.28652 11.7942 5.54036 11.5404L9.08074 7.99999L5.54036 4.45961C5.28652 4.20577 5.28652 3.79422 5.54036 3.54037C5.7942 3.28653 6.20575 3.28653 6.45959 3.54037L10.4596 7.54037C10.7134 7.79421 10.7134 8.20577 10.4596 8.45961L6.45959 12.4596C6.20575 12.7135 5.7942 12.7135 5.54036 12.4596Z" fill="currentColor"/></svg>`,"chevron-up":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.4596 10.4596C12.2058 10.7135 11.7942 10.7135 11.5404 10.4596L8.00002 6.91923L4.45964 10.4596C4.2058 10.7135 3.79425 10.7135 3.54041 10.4596C3.28656 10.2058 3.28656 9.79421 3.54041 9.54037L7.54041 5.54037C7.79425 5.28653 8.2058 5.28653 8.45964 5.54037L12.4596 9.54037C12.7135 9.79422 12.7135 10.2058 12.4596 10.4596Z" fill="currentColor"/></svg>`,circle:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_735)"><path d="M8.00098 0.299805C8.87272 0.300221 9.59932 0.920823 9.76465 1.74414C11.9351 2.35515 13.6435 4.06406 14.2549 6.23438C15.079 6.39927 15.7 7.12752 15.7002 8C15.7 8.87242 15.0789 9.5998 14.2549 9.76465C13.6412 11.9441 11.9215 13.658 9.73828 14.2627C9.53395 15.0321 8.83458 15.6002 8.00098 15.6006C7.16699 15.6006 6.46625 15.0324 6.26172 14.2627C4.0784 13.658 2.35772 11.9443 1.74414 9.76465C0.920748 9.59923 0.29999 8.8719 0.299805 8C0.299993 7.12805 0.920672 6.39984 1.74414 6.23438C2.3554 4.06424 4.06424 2.3554 6.23438 1.74414C6.39979 0.92045 7.12878 0.299805 8.00098 0.299805ZM9.63379 2.85156C9.34891 3.46969 8.72608 3.90004 8.00098 3.90039C7.27549 3.90039 6.65136 3.46996 6.36621 2.85156C4.69818 3.38049 3.38077 4.69733 2.85156 6.36523C3.47011 6.65023 3.90023 7.27449 3.90039 8C3.90024 8.72524 3.46973 9.34783 2.85156 9.63281C3.3762 11.2883 4.67733 12.5965 6.32715 13.1338C6.59225 12.4694 7.24232 12 8.00098 12C8.75912 12.0004 9.40694 12.4699 9.67188 13.1338C11.3217 12.5968 12.6225 11.289 13.1475 9.63379C12.5296 9.34863 12.0998 8.72491 12.0996 8C12.0998 7.27496 12.5294 6.65049 13.1475 6.36523C12.6182 4.69746 11.3017 3.38046 9.63379 2.85156Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_735"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,close:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.4419 12.4419C12.1979 12.686 11.8021 12.686 11.5581 12.4419L8 8.88388L4.44194 12.4419C4.19786 12.686 3.80214 12.686 3.55806 12.4419C3.31398 12.1979 3.31398 11.8021 3.55806 11.5581L7.11612 8L3.55806 4.44194C3.31398 4.19786 3.31398 3.80214 3.55806 3.55806C3.80213 3.31398 4.19786 3.31398 4.44194 3.55806L8 7.11612L11.5581 3.55806C11.8021 3.31398 12.1979 3.31398 12.4419 3.55806C12.686 3.80214 12.686 4.19786 12.4419 4.44194L8.88388 8L12.4419 11.5581C12.686 11.8021 12.686 12.1979 12.4419 12.4419Z" fill="currentColor"/></svg>`,collapse:`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.51562 14.0106C9.92971 14.0106 10.2655 14.3465 10.2656 14.7606C10.2656 15.1748 9.92979 15.5105 9.51562 15.5106H3C2.58579 15.5106 2.25 15.1748 2.25 14.7606C2.25013 14.3465 2.58587 14.0106 3 14.0106H9.51562Z" fill="currentColor"/><path d="M9.51562 9.18147C9.92979 9.18153 10.2656 9.51729 10.2656 9.93147C10.2655 10.3455 9.92971 10.6814 9.51562 10.6815H3C2.58587 10.6815 2.25012 10.3456 2.25 9.93147C2.25 9.51726 2.58579 9.18148 3 9.18147H9.51562Z" fill="currentColor"/><path d="M17 4.32991C17.4142 4.32991 17.75 4.6657 17.75 5.07991C17.75 5.49412 17.4142 5.82991 17 5.82991H3C2.58579 5.82991 2.25 5.49412 2.25 5.07991C2.25 4.6657 2.58579 4.32991 3 4.32991H17Z" fill="currentColor"/><path d="M16.584 10.2959C16.814 10.1426 17.1098 10.1285 17.3535 10.2588C17.5973 10.3892 17.7499 10.6434 17.75 10.9199V14.9199C17.75 15.1964 17.5973 15.4505 17.3535 15.581C17.1097 15.7114 16.8141 15.6973 16.584 15.5439L13.584 13.5439C13.3754 13.4048 13.25 13.1706 13.25 12.9199C13.2501 12.6693 13.3754 12.4349 13.584 12.2959L16.584 10.2959Z" fill="currentColor"/></svg>`,"collapse-2":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 2.86193L8.13805 7L12.2761 2.86193L11.3333 1.91913L8.13805 5.1144L4.94281 1.91913L4 2.86193Z" fill="currentColor"/><path d="M4 13.1381L8.13805 9L12.2761 13.1381L11.3333 14.0809L8.13805 10.8856L4.94281 14.0809L4 13.1381Z" fill="currentColor"/></svg>`,"collapse-arrow":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_754)"><path d="M3.86194 6.40237L7.99999 10.5404L12.1381 6.40237L11.1953 5.45956L7.99999 8.65483L4.80475 5.45956L3.86194 6.40237Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_754"><rect width="16" height="16" fill="white" transform="translate(16) rotate(90)"/></clipPath></defs></svg>`,"collapse-arrow-alt":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_749)"><path d="M6.40236 12.1381L10.5404 8.00001L6.40236 3.86194L5.45956 4.80474L8.65483 8.00001L5.45956 11.1953L6.40236 12.1381Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_749"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,copy:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.2598 2.5C12.9447 2.5 13.5 3.05534 13.5 3.74023V10.1543C13.5 10.8392 12.9447 11.3945 12.2598 11.3945H11.0303C10.7543 11.3943 10.5303 11.1705 10.5303 10.8945C10.5303 10.6185 10.7543 10.3947 11.0303 10.3945H12.2598C12.3924 10.3945 12.5 10.2869 12.5 10.1543V3.74023C12.5 3.60762 12.3924 3.5 12.2598 3.5H5.8457C5.71309 3.5 5.60547 3.60762 5.60547 3.74023V4.95605C5.60524 5.23201 5.38147 5.45605 5.10547 5.45605C4.82947 5.45605 4.60569 5.23201 4.60547 4.95605V3.74023C4.60547 3.05534 5.16081 2.5 5.8457 2.5H12.2598Z" fill="currentColor"/><path d="M10.1543 4.60547C10.8392 4.60547 11.3945 5.16081 11.3945 5.8457V12.2598C11.3944 12.9445 10.8391 13.5 10.1543 13.5H3.74023C3.05542 13.5 2.50013 12.9445 2.5 12.2598V5.8457C2.5 5.16081 3.05534 4.60547 3.74023 4.60547H10.1543Z" fill="currentColor"/></svg>`,expand:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M18.5156 16.0107C18.9297 16.0108 19.2655 16.3467 19.2656 16.7607C19.2656 17.1749 18.9298 17.5107 18.5156 17.5107H12C11.5858 17.5107 11.25 17.175 11.25 16.7607C11.2501 16.3466 11.5859 16.0107 12 16.0107H18.5156Z" fill="currentColor"/><path d="M18.5156 11.1816C18.9298 11.1817 19.2656 11.5175 19.2656 11.9316C19.2655 12.3457 18.9297 12.6816 18.5156 12.6816H12C11.5859 12.6816 11.2501 12.3457 11.25 11.9316C11.25 11.5174 11.5858 11.1816 12 11.1816H18.5156Z" fill="currentColor"/><path d="M19 6.33008C19.4142 6.33008 19.75 6.66586 19.75 7.08008C19.75 7.49429 19.4142 7.83008 19 7.83008H5C4.58579 7.83008 4.25 7.49429 4.25 7.08008C4.25 6.66586 4.58579 6.33008 5 6.33008H19Z" fill="currentColor"/><path d="M4.64648 12.2589C4.89022 12.1287 5.18602 12.1428 5.41602 12.2961L8.41602 14.2961C8.62457 14.4351 8.74989 14.6694 8.75 14.9201C8.75 15.1708 8.62457 15.405 8.41602 15.5441L5.41602 17.5441C5.18595 17.6975 4.89031 17.7116 4.64648 17.5812C4.4027 17.4507 4.25 17.1966 4.25 16.9201V12.9201C4.25013 12.6436 4.40272 12.3894 4.64648 12.2589Z" fill="currentColor"/></svg>`,"expand-2":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 6.0572L8.13805 1.91913L12.2761 6.0572L11.3333 7L8.13805 3.80473L4.94281 7L4 6.0572Z" fill="currentColor"/><path d="M4 9.9428L8.13805 14.0809L12.2761 9.9428L11.3333 9L8.13805 12.1953L4.94281 9L4 9.9428Z" fill="currentColor"/></svg>`,"expand-arrow":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_749)"><path d="M6.40236 12.1381L10.5404 8.00001L6.40236 3.86194L5.45956 4.80474L8.65483 8.00001L5.45956 11.1953L6.40236 12.1381Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_749"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,filter:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 1.40918C14.7303 1.4092 14.9395 1.54297 15.0362 1.75195C15.1328 1.96102 15.0994 2.20734 14.9502 2.38281L9.89067 8.33203V14C9.89067 14.2045 9.7851 14.3942 9.61137 14.502C9.43757 14.6096 9.22026 14.6202 9.03715 14.5293L6.43657 13.2363C6.23587 13.1364 6.10942 12.9312 6.10942 12.707V8.33203L1.04985 2.38281C0.900637 2.20733 0.867245 1.96103 0.96391 1.75195C1.06061 1.54297 1.26976 1.40918 1.50004 1.40918H14.5Z" fill="currentColor"/></svg>`,follow:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.85 2C2.7237 2 1 3.72168 1 5.84546C1 9.69092 5.55 13.1868 8 14C10.45 13.1868 15 9.69092 15 5.84546C15 3.72168 13.2763 2 11.15 2C9.84789 2 8.69674 2.64565 8 3.6339C7.30326 2.64565 6.1521 2 4.85 2Z" fill="currentColor"/></svg>`,fullscreen:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.84249 6.13575C10.1109 6.4114 10.5824 6.4114 10.887 6.13575L13.5275 3.53161V5.63523C13.5275 5.94715 13.7596 6.17927 14.0715 6.17927H14.456C14.7679 6.17927 15 5.98342 15 5.71503V1.58031C15 1.42798 14.9637 1.30466 14.8839 1.1886C14.8041 1.10881 14.6518 1.03627 14.4995 1.03627H14.2311L10.3938 1C10.0819 1 9.84974 1.27565 9.84974 1.54404V1.93575C9.88601 2.28394 10.1617 2.47979 10.4736 2.47979H12.4902L9.89326 5.08394C9.53057 5.35233 9.53057 5.82383 9.84249 6.13575ZM6.15751 9.86425C5.88912 9.5886 5.41762 9.5886 5.11295 9.86425L2.47254 12.4684V10.4083C2.47254 10.0964 2.24041 9.86425 1.9285 9.86425H1.54404C1.23212 9.86425 1 10.0601 1 10.3285V14.4124C1 14.5648 1.03627 14.6881 1.11606 14.8041C1.19585 14.8839 1.34819 14.9565 1.50052 14.9565H1.76891L5.60622 14.9927C5.91813 14.9927 6.15026 14.7171 6.15026 14.4487V14.057C6.11399 13.7088 5.83834 13.513 5.52642 13.513H3.52435L6.16477 10.9088C6.42591 10.6477 6.42591 10.1762 6.15751 9.86425ZM9.82798 9.86425C9.55959 10.1762 9.55959 10.6404 9.82798 10.9161L12.4684 13.5202H10.4518C10.1399 13.5202 9.8715 13.7161 9.82798 14.0642V14.456C9.82798 14.7316 10.0601 15 10.372 15L14.2093 14.9637H14.4777C14.6301 14.9637 14.7896 14.8839 14.8622 14.8114C14.942 14.6953 14.9782 14.5793 14.9782 14.4197V10.3358C14.9782 10.0601 14.7461 9.8715 14.4342 9.8715H14.0497C13.7378 9.8715 13.5057 10.1036 13.5057 10.4155V12.4756L10.8653 9.8715C10.5679 9.59585 10.1036 9.59585 9.82798 9.86425ZM3.56062 2.47979H5.5772C5.88912 2.47979 6.15751 2.28394 6.20104 1.93575V1.54404C6.20104 1.23212 5.93264 1 5.65699 1L1.81244 1.03627H1.54404C1.38446 1.03627 1.26839 1.07979 1.15233 1.19585C1.07979 1.27565 1.03627 1.42798 1.03627 1.58031V5.70777C1.03627 6.01969 1.26839 6.17202 1.58031 6.17202H1.96477C2.27668 6.17202 2.50881 5.9399 2.50881 5.62798V3.52435L5.14922 6.1285C5.41762 6.40414 5.88912 6.40414 6.19378 6.1285C6.46218 5.85285 6.46218 5.3886 6.19378 5.07668L3.56062 2.47979Z" fill="currentColor"/></svg>`,"green-dot":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.66671 6.93335V2.66669C2.66671 2.2985 2.96519 2.00002 3.33337 2.00002H6.66671V0.666687H9.33337V2.00002H12.6667C13.0349 2.00002 13.3334 2.2985 13.3334 2.66669V6.93335L14.0572 7.15049C14.3983 7.25282 14.5988 7.60522 14.5124 7.95075L13.5011 11.9959C13.4455 11.9986 13.3896 12 13.3334 12C12.243 12 11.2748 11.4765 10.6667 10.667C10.0586 11.4765 9.09044 12 8.00004 12C6.90964 12 5.94153 11.4765 5.33337 10.667C4.72522 11.4765 3.75711 12 2.66671 12C2.61047 12 2.55456 11.9986 2.49901 11.9959L1.48772 7.95075C1.40134 7.60522 1.60179 7.25282 1.94291 7.15049L2.66671 6.93335ZM4.00004 6.53335L8.00004 5.33335L9.83611 5.88418L11.0418 6.2459L12 6.53335V3.33335H4.00004V6.53335ZM2.66671 13.3334C3.69118 13.3334 4.6257 12.9482 5.33337 12.3148C6.04105 12.9482 6.97557 13.3334 8.00004 13.3334C9.02451 13.3334 9.95904 12.9482 10.6667 12.3148C11.3744 12.9482 12.3089 13.3334 13.3334 13.3334H14.6667V14.6667H13.3334C12.362 14.6667 11.4512 14.407 10.6667 13.9532C9.88224 14.407 8.97144 14.6667 8.00004 14.6667C7.02864 14.6667 6.11783 14.407 5.33337 13.9532C4.54891 14.407 3.63814 14.6667 2.66671 14.6667H1.33337V13.3334H2.66671Z" fill="currentColor"/></svg>`,info:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.89115 2.95225C6.59608 2.95225 5.36804 3.48795 4.42911 4.45879C3.9766 4.9304 3.61438 5.48095 3.36041 6.08315C3.0992 6.70315 2.95864 7.35132 2.94662 8.0115C2.91986 9.32642 3.44745 10.5758 4.42911 11.532C4.90306 11.9931 5.45845 12.3622 6.06708 12.6207C6.68205 12.887 7.34308 13.0308 8.01312 13.0439H8.10551C9.38453 13.0439 10.6033 12.5163 11.534 11.5589C11.9859 11.0974 12.3491 10.5568 12.6055 9.96398C12.868 9.36339 13.0152 8.71879 13.0394 8.06379V8.03441L13.0434 8.00765V7.99019L13.0407 7.96343V7.93668C13.0008 6.61513 12.4536 5.35967 11.5127 4.43072C10.5689 3.50244 9.30344 2.97388 7.9797 2.95507H7.89125V2.95225H7.89115ZM7.89115 2.0015L7.99707 2C11.254 2.04553 13.8979 4.64477 13.9956 7.89621C13.9984 7.92841 13.9984 7.96184 13.9984 7.99808C14.0023 8.03422 13.9984 8.06642 13.9942 8.09984C13.8818 11.24 11.3344 14 8.10814 14H7.99829C4.78412 13.9396 1.93548 11.315 2.00111 8.00202C2.06008 4.81892 4.62873 2.00009 7.89115 2.0015ZM7.91275 11.0232C7.93679 11.0553 7.97303 11.0754 8.01312 11.0767C8.08074 11.0744 8.14472 11.0455 8.19114 10.9963C8.35452 10.8624 8.54747 10.6241 8.77103 10.276L8.95854 10.3831C8.41752 11.3231 7.84026 11.7959 7.23362 11.7959C7.00198 11.7959 6.81842 11.7302 6.68049 11.5989C6.61322 11.5352 6.56009 11.458 6.52456 11.3724C6.48902 11.2869 6.47187 11.1948 6.47421 11.1021C6.47421 10.9696 6.50369 10.8023 6.56669 10.596L7.31258 8.03272C7.38488 7.78909 7.42103 7.60424 7.42103 7.47975C7.42021 7.4386 7.41045 7.39813 7.39242 7.36113C7.37439 7.32414 7.34853 7.29151 7.31662 7.26551C7.23965 7.20089 7.14103 7.16788 7.04067 7.17313C6.98442 7.17313 6.91889 7.17716 6.84649 7.17848L6.91222 6.96424L8.72831 6.66963H9.04567L7.94618 10.4808C7.88984 10.6991 7.86036 10.8438 7.86036 10.9146C7.8659 10.9549 7.88317 10.9937 7.91275 11.0232ZM9.27468 5.55018C9.20152 5.62371 9.11445 5.68195 9.01855 5.72149C8.92265 5.76103 8.81984 5.78108 8.7161 5.78047C8.61359 5.78117 8.51198 5.76113 8.41741 5.72155C8.32284 5.68197 8.23725 5.62368 8.16579 5.55018C8.09209 5.47778 8.0338 5.39122 7.99444 5.2957C7.95508 5.20018 7.93547 5.09769 7.93679 4.99439C7.93493 4.89066 7.95402 4.78762 7.9929 4.69143C8.03178 4.59524 8.08965 4.50788 8.16307 4.43457C8.23429 4.35987 8.3202 4.30073 8.41539 4.26085C8.51058 4.22098 8.613 4.20123 8.7162 4.20287C8.93854 4.20287 9.12745 4.2806 9.27871 4.43457C9.43007 4.58863 9.50772 4.77743 9.50772 4.99439C9.50988 5.09817 9.49026 5.20125 9.45012 5.29698C9.40998 5.39271 9.35021 5.47897 9.27468 5.55018Z" fill="currentColor"/></svg>`,"info-circle":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 1C4.13438 1 1 4.13438 1 8C1 11.8656 4.13438 15 8 15C11.8656 15 15 11.8656 15 8C15 4.13438 11.8656 1 8 1ZM9.3125 6.36094L7.95312 11.0703C7.87813 11.3391 7.84062 11.5172 7.84062 11.6C7.84062 11.6484 7.86094 11.6937 7.9 11.7359C7.93906 11.7781 7.98125 11.7984 8.02656 11.7984C8.10156 11.7984 8.17656 11.7656 8.25156 11.6984C8.45 11.5344 8.68906 11.2391 8.96719 10.8109L9.19219 10.9438C8.525 12.1063 7.81719 12.6875 7.06563 12.6875C6.77813 12.6875 6.55 12.6062 6.37969 12.4453C6.20937 12.2844 6.125 12.0797 6.125 11.8328C6.125 11.6687 6.1625 11.4625 6.2375 11.2094L7.15781 8.04219C7.24688 7.7375 7.29063 7.50781 7.29063 7.35313C7.29063 7.25625 7.24844 7.17031 7.16406 7.09531C7.07969 7.02031 6.96562 6.98281 6.82031 6.98281C6.75469 6.98281 6.675 6.98438 6.58125 6.98906L6.66719 6.72344L8.9125 6.35938H9.3125V6.36094ZM9.59062 4.975C9.4 5.16563 9.17031 5.25938 8.90156 5.25938C8.63594 5.25938 8.40938 5.16406 8.21875 4.975C8.02812 4.78437 7.93437 4.55469 7.93437 4.28594C7.93437 4.01719 8.02812 3.7875 8.21562 3.59687C8.40312 3.40781 8.63125 3.3125 8.90156 3.3125C9.175 3.3125 9.40625 3.40781 9.59375 3.59687C9.78125 3.7875 9.875 4.01719 9.875 4.28594C9.875 4.55469 9.77969 4.78437 9.59062 4.975Z" fill="currentColor"/></svg>`,loading:`<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.95404 27.5876C5.74164 27.5876 6.38012 26.9491 6.38012 26.1615C6.38012 25.3739 5.74164 24.7354 4.95404 24.7354C4.16643 24.7354 3.52795 25.3739 3.52795 26.1615C3.52795 26.9491 4.16643 27.5876 4.95404 27.5876Z" fill="currentColor"/><path d="M1.42609 17.7043C2.21369 17.7043 2.85217 17.0659 2.85217 16.2783C2.85217 15.4907 2.21369 14.8522 1.42609 14.8522C0.638481 14.8522 0 15.4907 0 16.2783C0 17.0659 0.638481 17.7043 1.42609 17.7043Z" fill="currentColor"/><path d="M4.95404 8.36273C6.13956 8.36273 7.10062 7.40167 7.10062 6.21615C7.10062 5.03062 6.13956 4.06956 4.95404 4.06956C3.76851 4.06956 2.80745 5.03062 2.80745 6.21615C2.80745 7.40167 3.76851 8.36273 4.95404 8.36273Z" fill="currentColor"/><path d="M14.8373 31.8807C16.0228 31.8807 16.9839 30.9197 16.9839 29.7342C16.9839 28.5486 16.0228 27.5876 14.8373 27.5876C13.6517 27.5876 12.6907 28.5486 12.6907 29.7342C12.6907 30.9197 13.6517 31.8807 14.8373 31.8807Z" fill="currentColor"/><path d="M24.9689 28.8696C26.4646 28.8696 27.677 27.6571 27.677 26.1615C27.677 24.6659 26.4646 23.4534 24.9689 23.4534C23.4733 23.4534 22.2609 24.6659 22.2609 26.1615C22.2609 27.6571 23.4733 28.8696 24.9689 28.8696Z" fill="currentColor"/><path d="M14.8373 5.41615C16.3329 5.41615 17.5453 4.2037 17.5453 2.70807C17.5453 1.21245 16.3329 0 14.8373 0C13.3416 0 12.1292 1.21245 12.1292 2.70807C12.1292 4.2037 13.3416 5.41615 14.8373 5.41615Z" fill="currentColor"/><path d="M24.6857 10.2211C26.7604 10.2211 28.4422 8.53927 28.4422 6.4646C28.4422 4.38993 26.7604 2.70807 24.6857 2.70807C22.611 2.70807 20.9292 4.38993 20.9292 6.4646C20.9292 8.53927 22.611 10.2211 24.6857 10.2211Z" fill="currentColor"/><path d="M28.4422 19.836C30.4071 19.836 32 18.2432 32 16.2783C32 14.3134 30.4071 12.7205 28.4422 12.7205C26.4773 12.7205 24.8845 14.3134 24.8845 16.2783C24.8845 18.2432 26.4773 19.836 28.4422 19.836Z" fill="currentColor"/></svg>`,locate:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 14.7402C7.70205 14.74 7.46006 14.4982 7.45996 14.2002L7.45996 13.4639C4.859 13.21 2.79022 11.1409 2.53613 8.54004L1.89941 8.54004C1.60139 8.53981 1.35939 8.29808 1.35937 8C1.35937 7.70191 1.60138 7.46019 1.89941 7.45996L2.53613 7.45996C2.79017 4.8587 4.85952 2.79065 7.46094 2.53711L7.46094 1.90039C7.46094 1.60216 7.70274 1.36035 8.00098 1.36035C8.29899 1.36062 8.54101 1.60232 8.54101 1.90039L8.54101 2.53711C11.1413 2.79172 13.21 4.85949 13.4639 7.45996L14.2002 7.45996C14.4983 7.46006 14.7402 7.70183 14.7402 8C14.7402 8.29815 14.4983 8.53994 14.2002 8.54004L13.4639 8.54004C13.2098 11.1408 11.1407 13.2098 8.54004 13.4639L8.54004 14.2002C8.53994 14.4983 8.29817 14.7402 8 14.7402ZM7.45996 11.7002C7.45996 11.4021 7.70199 11.1604 8 11.1602C8.29823 11.1602 8.54004 11.402 8.54004 11.7002L8.54004 12.376C10.5436 12.1311 12.1312 10.5436 12.376 8.54004L11.7002 8.54004C11.402 8.54004 11.1602 8.29821 11.1602 8C11.1602 7.70177 11.402 7.45996 11.7002 7.45996L12.376 7.45996C12.1313 5.45664 10.5441 3.86934 8.54101 3.62402L8.54101 4.40039C8.5408 4.69828 8.29885 4.94017 8.00098 4.94043C7.70287 4.94043 7.46115 4.69844 7.46094 4.40039L7.46094 3.62402C5.45668 3.86834 3.86886 5.45586 3.62402 7.45996L4.39941 7.45996C4.69765 7.45996 4.93945 7.70177 4.93945 8C4.93944 8.29822 4.69764 8.54004 4.39941 8.54004L3.62402 8.54004C3.86889 10.5437 5.45619 12.1313 7.45996 12.376L7.45996 11.7002Z" fill="currentColor"/></svg>`,"measure-distance":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_817)"><path d="M1.01392 0.562507C1.32531 0.433523 1.68379 0.504839 1.92212 0.743171L15.2561 14.0762C15.4943 14.3145 15.5657 14.6731 15.4368 14.9844C15.3078 15.2958 15.0033 15.499 14.6663 15.499H1.33325C0.873015 15.499 0.500244 15.1253 0.500244 14.665V1.33204C0.500244 0.995167 0.702803 0.691609 1.01392 0.562507ZM2.16626 13.832H12.6545L2.16626 3.34278V13.832Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.33325 11.668H8.33325L4.33325 7.66797V11.668Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.33325 11.668H8.33325L4.33325 7.66797V11.668Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.33325 11.668H8.33325L4.33325 7.66797V11.668Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.33325 11.668H8.33325L4.33325 7.66797V11.668Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.33325 11.668H8.33325L4.33325 7.66797V11.668Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.33325 11.668H8.33325L4.33325 7.66797V11.668Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.33325 11.668H8.33325L4.33325 7.66797V11.668Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"/><path fill-rule="evenodd" clip-rule="evenodd" d="M4.01367 6.89851C4.32502 6.76954 4.68354 6.84092 4.92188 7.07917L8.92188 11.0792C9.1602 11.3175 9.23152 11.676 9.10254 11.9874C8.9734 12.2984 8.66983 12.501 8.33301 12.501H4.33301C3.8729 12.5009 3.50004 12.1282 3.5 11.668V7.66804C3.5 7.33125 3.70269 7.02767 4.01367 6.89851Z" fill="currentColor"/><path d="M9.16699 14.668V13.668C9.16699 13.2077 9.53976 12.835 10 12.835C10.4602 12.835 10.833 13.2077 10.833 13.668V14.668C10.833 15.1282 10.4602 15.501 10 15.501C9.53976 15.501 9.16699 15.1282 9.16699 14.668Z" fill="currentColor"/><path d="M7.16699 14.668V13.668C7.16699 13.2077 7.53976 12.835 8 12.835C8.46024 12.835 8.83301 13.2077 8.83301 13.668V14.668C8.83301 15.1282 8.46024 15.501 8 15.501C7.53976 15.501 7.16699 15.1282 7.16699 14.668Z" fill="currentColor"/><path d="M5.16699 14.668V13.668C5.16699 13.2077 5.53976 12.835 6 12.835C6.46024 12.835 6.83301 13.2077 6.83301 13.668V14.668C6.83301 15.1282 6.46024 15.501 6 15.501C5.53976 15.501 5.16699 15.1282 5.16699 14.668Z" fill="currentColor"/><path d="M3.16699 14.668V13.668C3.16699 13.2077 3.53976 12.835 4 12.835C4.46024 12.835 4.83301 13.2077 4.83301 13.668V14.668C4.83301 15.1282 4.46024 15.501 4 15.501C3.53976 15.501 3.16699 15.1282 3.16699 14.668Z" fill="currentColor"/><path d="M2.33325 11.167C2.79349 11.167 3.16626 11.5398 3.16626 12C3.16626 12.4602 2.79349 12.833 2.33325 12.833H1.33325C0.873015 12.833 0.500244 12.4602 0.500244 12C0.500244 11.5398 0.873015 11.167 1.33325 11.167H2.33325Z" fill="currentColor"/><path d="M2.33325 9.16699C2.79349 9.16699 3.16626 9.53976 3.16626 10C3.16626 10.4602 2.79349 10.833 2.33325 10.833H1.33325C0.873015 10.833 0.500244 10.4602 0.500244 10C0.500244 9.53976 0.873015 9.16699 1.33325 9.16699H2.33325Z" fill="currentColor"/><path d="M2.33325 7.16699C2.79349 7.16699 3.16626 7.53976 3.16626 8C3.16626 8.46024 2.79349 8.83301 2.33325 8.83301H1.33325C0.873015 8.83301 0.500244 8.46024 0.500244 8C0.500244 7.53976 0.873015 7.16699 1.33325 7.16699H2.33325Z" fill="currentColor"/><path d="M2.33325 5.16699C2.79349 5.16699 3.16626 5.53976 3.16626 6C3.16626 6.46024 2.79349 6.83301 2.33325 6.83301H1.33325C0.873015 6.83301 0.500244 6.46024 0.500244 6C0.500244 5.53976 0.873015 5.16699 1.33325 5.16699H2.33325Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_817"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,monitor:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.491211 6.43661C0.677161 6.15594 1.05408 6.07959 1.33301 6.26669L11.5186 13.1007L15.0811 10.9503C15.3684 10.777 15.7406 10.8703 15.9131 11.1593C16.0855 11.4485 15.9925 11.8236 15.7051 11.9972L12.0254 14.2188C11.6953 14.4181 11.2802 14.4083 10.96 14.1935L5.11523 10.2726L3.83594 12.2042C3.72342 12.374 3.53388 12.4756 3.33105 12.4757H1.21387V15.3888C1.21387 15.726 0.942465 15.9999 0.607422 16.0001C0.272185 16.0001 0 15.7261 0 15.3888V9.12411C0.000229474 8.78697 0.272326 8.51376 0.607422 8.51376C0.942324 8.51399 1.21364 8.78711 1.21387 9.12411V11.255H3.00586L4.10449 9.59482L0.65918 7.28329C0.380457 7.09612 0.305338 6.71721 0.491211 6.43661Z" fill="currentColor"/><path d="M1.02646 3.92437C0.814339 3.78208 0.793246 3.47637 0.983789 3.30593L3.88631 0.709742C4.01767 0.592236 4.21102 0.577945 4.35806 0.674875L14.8889 7.61764C15.1252 7.77347 15.1229 8.12284 14.8845 8.27547L11.3266 10.5538C11.1966 10.6371 11.0301 10.6353 10.9019 10.5493L1.02646 3.92437Z" fill="currentColor"/><path d="M3.48248 0.253021C3.81874 -0.0477564 4.31416 -0.0837782 4.69049 0.164154L15.2217 7.10654C15.8265 7.50547 15.8203 8.40034 15.21 8.79111L11.6524 11.0694C11.3196 11.2823 10.8925 11.2777 10.5645 11.0577L0.689514 4.43271C0.146816 4.06847 0.0929252 3.28601 0.580139 2.8497L3.48248 0.253021ZM1.59772 3.57333L11.1202 9.96201L14.2735 7.94247L4.1651 1.27744L1.59772 3.57333Z" fill="currentColor"/></svg>`,more:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 0.75C14.9142 0.75 15.25 1.08579 15.25 1.5C15.25 1.91421 14.9142 2.25 14.5 2.25H1.5C1.08579 2.25 0.75 1.91421 0.75 1.5C0.75 1.08579 1.08579 0.75 1.5 0.75H14.5Z" fill="currentColor"/><path d="M14.5 7.25C14.9142 7.25 15.25 7.58579 15.25 8C15.25 8.41421 14.9142 8.75 14.5 8.75H1.5C1.08579 8.75 0.75 8.41421 0.75 8C0.75 7.58579 1.08579 7.25 1.5 7.25H14.5Z" fill="currentColor"/><path d="M14.5 13.75C14.9142 13.75 15.25 14.0858 15.25 14.5C15.25 14.9142 14.9142 15.25 14.5 15.25H1.5C1.08579 15.25 0.75 14.9142 0.75 14.5C0.75 14.0858 1.08579 13.75 1.5 13.75H14.5Z" fill="currentColor"/></svg>`,move:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_933)"><path d="M7.57552 0.909501C7.80983 0.675186 8.18983 0.675186 8.42415 0.909501L10.4241 2.9095C10.6582 3.14377 10.6582 3.52288 10.4241 3.75716C10.1898 3.99147 9.80983 3.99147 9.57552 3.75716L8.59993 2.78157V7.39973H13.2181L12.2425 6.42415C12.0082 6.18983 12.0082 5.80983 12.2425 5.57552C12.4768 5.34136 12.8569 5.34126 13.0911 5.57552L15.0911 7.57552C15.3254 7.80978 15.3253 8.18982 15.0911 8.42415L13.0911 10.4241C12.8568 10.6585 12.4768 10.6585 12.2425 10.4241C12.0082 10.1898 12.0082 9.80983 12.2425 9.57552L13.2181 8.59993H8.59993V13.2181L9.57552 12.2425C9.80983 12.0082 10.1898 12.0082 10.4241 12.2425C10.6585 12.4768 10.6585 12.8568 10.4241 13.0911L8.42415 15.0911C8.18982 15.3253 7.80978 15.3254 7.57552 15.0911L5.57552 13.0911C5.34126 12.8569 5.34136 12.4768 5.57552 12.2425C5.80983 12.0082 6.18983 12.0082 6.42415 12.2425L7.39973 13.2181V8.59993H2.78157L3.75716 9.57552C3.99147 9.80983 3.99147 10.1898 3.75716 10.4241C3.52288 10.6582 3.14377 10.6582 2.9095 10.4241L0.909501 8.42415C0.675186 8.18983 0.675186 7.80983 0.909501 7.57552L2.9095 5.57552C3.14373 5.34164 3.52292 5.34164 3.75716 5.57552C3.99147 5.80983 3.99147 6.18983 3.75716 6.42415L2.78157 7.39973H7.39973V2.78157L6.42415 3.75716C6.18983 3.99147 5.80983 3.99147 5.57552 3.75716C5.34164 3.52292 5.34164 3.14373 5.57552 2.9095L7.57552 0.909501Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_933"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,"notification-management":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="16" height="16" rx="5" fill="white"/><path d="M15.0478 11.6712C14.5679 11.3425 14.2633 10.8128 14.2633 10.2009V6.63927C14.2633 4.03653 12.3253 1.86301 9.73204 1.3242V1.19635C9.73204 0.52968 9.17831 0 8.49539 0C7.81246 0 7.25873 0.538813 7.25873 1.19635V1.3242C4.66546 1.86301 2.72742 4.0274 2.72742 6.63927V10.1918C2.72742 10.7671 2.45979 11.2694 2.03527 11.5982C1.98912 11.6347 1.96144 11.653 1.83223 11.7443C1.6292 11.8904 1.5 12.1187 1.5 12.3927C1.5 12.8311 1.86915 13.1963 2.32136 13.1963H14.6786C15.1309 13.1963 15.5 12.8402 15.5 12.3927C15.5 12.1096 15.3523 11.863 15.1216 11.7169C15.0847 11.6986 15.0755 11.6804 15.0478 11.6712ZM8.49539 16C9.63052 16 10.5534 15.105 10.5534 14H6.43738C6.43738 15.0959 7.36025 16 8.49539 16Z" fill="currentColor"/></svg>`,phone:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_780)"><path d="M4.93943 1.6377C5.35238 1.63797 5.73309 1.86257 5.93357 2.22363L6.8242 3.82715C7.00633 4.15525 7.01429 4.55302 6.84666 4.88867L6.05662 6.46777C6.0611 6.48416 6.0657 6.50232 6.07127 6.52148C6.1069 6.64406 6.16527 6.82102 6.25388 7.02832C6.4319 7.44471 6.72799 7.97606 7.20115 8.44922C7.6742 8.92221 8.20413 9.2167 8.61912 9.39355C8.82579 9.48162 9.00192 9.53996 9.124 9.5752C9.14239 9.5805 9.15994 9.58457 9.17576 9.58887L10.7568 8.79883C11.0926 8.63104 11.4902 8.63997 11.8183 8.82227L13.4267 9.7168C13.7876 9.91743 14.0116 10.2981 14.0117 10.7109V12.5566C14.0117 13.753 12.886 14.6613 11.707 14.2637C9.86872 13.6434 6.94983 12.4439 5.0781 10.5723C3.2064 8.70059 2.00604 5.78171 1.38572 3.94336C0.988099 2.76447 1.89647 1.6378 3.09275 1.6377H4.93943Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_780"><rect width="14" height="14" fill="white" transform="translate(1 1)"/></clipPath></defs></svg>`,"pin-top":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_798)"><path d="M14.864 6.64L16 5.504L10.496 0L9.36 1.136L10.456 2.24L7.816 4.88C7.03168 4.66642 6.20501 4.66263 5.41877 4.86902C4.63252 5.07541 3.9143 5.48473 3.336 6.056L2.24 7.16L1.136 6.056L0 7.2L3.832 11.032L1.648 13.216L2.784 14.352L4.976 12.16L8.8 16L9.936 14.864L8.84 13.76L9.936 12.664C10.51 12.0857 10.9217 11.3665 11.1295 10.5787C11.3374 9.79085 11.3341 8.96217 11.12 8.176L13.76 5.536L14.864 6.64Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_798"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,polygon:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_713)"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.501 0.699219C14.4946 0.699694 15.3006 1.50635 15.3008 2.5C15.3006 3.49364 14.4946 4.29933 13.501 4.2998C13.1312 4.2998 12.787 4.18834 12.501 3.99707L10.6133 6.5127C11.088 6.83695 11.4003 7.38195 11.4004 8C11.4003 8.61737 11.0881 9.16115 10.6143 9.48535L12.501 12.002C12.7869 11.8108 13.1314 11.6992 13.501 11.6992C14.4946 11.6997 15.3006 12.5064 15.3008 13.5C15.3006 14.4936 14.4946 15.2993 13.501 15.2998C12.6806 15.2998 11.9895 14.7506 11.7725 14H4.22754C4.01066 14.7505 3.32022 15.2996 2.5 15.2998C1.5062 15.2996 0.69943 14.4938 0.699219 13.5C0.699382 12.6797 1.2493 11.9875 2 11.7705V4.22852C1.24945 4.01159 0.700369 3.32018 0.700195 2.5C0.700393 1.50606 1.50699 0.699219 2.50098 0.699219C3.32097 0.699611 4.01166 1.24956 4.22852 2H11.7715C11.9885 1.24929 12.6806 0.699219 13.501 0.699219ZM4.19629 3.09961C4.01553 3.61082 3.61076 4.01344 3.09961 4.19434V11.8037C3.61091 11.9846 4.01543 12.389 4.19629 12.9004H11.8008L9.46973 9.79297C8.53677 9.72593 7.80001 8.94993 7.7998 8C7.79999 7.05004 8.53673 6.27311 9.46973 6.20605L11.8008 3.09961H4.19629Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_713"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,port:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_698)"><path d="M7.66132 1.2666C8.73471 1.26661 9.56366 2.14534 9.56366 3.16992C9.56353 3.99904 9.02758 4.73052 8.29608 4.97461L8.24042 6.19434H9.06757V5.80566H11.9455C13.0189 5.80566 13.6051 5.98667 14.1418 6.42578C14.4579 6.68466 14.9219 7.49909 14.8732 8.42578C14.8732 9.30402 14.7761 9.95354 14.1418 10.4902C13.5076 10.9781 12.7268 11.2216 11.7512 11.2217H10.4338V14.4639H9.06757V7.07324H8.28534L8.19843 14.5381C7.95448 14.6357 7.7589 14.7334 7.66132 14.7334C7.36859 14.6846 5.80746 13.8549 4.24628 13.123C2.69586 12.4447 1.67452 10.6596 1.66034 10.6348L1.12323 10.7324L1.51385 8.97559L2.73358 10.4395L2.2453 10.4883C2.2453 10.4883 3.70925 11.708 5.07538 11.7568C6.4415 11.8056 7.07538 10.0488 7.07538 10.0488V7.07324H4.52753V6.19434H6.9787V4.97461C6.24694 4.73069 5.71028 3.99922 5.71014 3.16992C5.71014 2.09654 6.58791 1.26662 7.61249 1.2666H7.66132ZM10.4826 6.68457V10.2461H11.9455C13.2628 10.1485 13.6047 9.31872 13.6535 8.53809V8.44043C13.6535 8.05018 13.5556 7.65981 13.3117 7.31836C13.019 6.92825 12.5313 6.68462 11.6535 6.68457H10.4826ZM7.61249 2.19336C7.02702 2.19337 6.58807 2.63327 6.58807 3.21875C6.58826 3.80406 7.07595 4.24316 7.66132 4.24316C8.24668 4.24316 8.68556 3.80405 8.68573 3.21875C8.68573 2.63327 8.24679 2.19336 7.66132 2.19336H7.61249Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_698"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,"port-2":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.45509 3.44511C8.45509 3.35433 8.42839 3.26559 8.37839 3.19011C8.32838 3.11463 8.2573 3.0558 8.17414 3.02106C8.09098 2.98632 7.99947 2.97723 7.91119 2.99494C7.8229 3.01265 7.74181 3.05637 7.67816 3.12056C7.61451 3.18475 7.57117 3.26653 7.55361 3.35556C7.53605 3.4446 7.54506 3.53688 7.57951 3.62075C7.61395 3.70462 7.67229 3.7763 7.74713 3.82674C7.82197 3.87717 7.90996 3.90409 7.99998 3.90409C8.12068 3.90409 8.23644 3.85573 8.32179 3.76966C8.40714 3.68358 8.45509 3.56684 8.45509 3.44511ZM14.4 10.129V12.6678C14.3995 12.7137 14.3858 12.7585 14.3606 12.7967C14.3353 12.8349 14.2996 12.8648 14.2578 12.8829H14.1724C14.1119 12.8822 14.0538 12.8592 14.0089 12.8184L13.3404 12.1443C12.6617 12.8829 11.8337 13.4661 10.9125 13.8545C9.99119 14.243 8.99803 14.4277 7.99998 14.3961C7.00299 14.4295 6.01049 14.2471 5.08929 13.8611C4.16809 13.4751 3.33958 12.8946 2.65953 12.1586L1.99109 12.8327C1.94691 12.8748 1.88828 12.8979 1.82753 12.8973H1.7422C1.70035 12.8792 1.66463 12.8492 1.63938 12.811C1.61412 12.7728 1.60043 12.728 1.59998 12.6821L1.59998 10.129C1.59998 10.0989 1.60586 10.0691 1.6173 10.0412C1.62873 10.0134 1.64549 9.98807 1.66663 9.96676C1.68776 9.94545 1.71284 9.92854 1.74045 9.91701C1.76806 9.90548 1.79765 9.89954 1.82753 9.89954H4.34486C4.39065 9.89844 4.4357 9.9113 4.47412 9.93644C4.51254 9.96158 4.54254 9.99782 4.56021 10.0404C4.57788 10.083 4.58239 10.13 4.57315 10.1753C4.56391 10.2205 4.54135 10.2619 4.50842 10.294L3.79731 11.0111C4.63467 11.9842 5.81093 12.5953 7.08264 12.718V8.05644H5.71731C5.59594 8.05646 5.47944 8.00833 5.39296 7.92245C5.30648 7.83658 5.25695 7.71985 5.25509 7.59746V6.67232C5.25695 6.54994 5.30648 6.43321 5.39296 6.34733C5.47944 6.26146 5.59594 6.21333 5.71731 6.21334H7.08264V5.0372C6.73499 4.83373 6.46355 4.52034 6.31036 4.14556C6.15716 3.77078 6.13075 3.35552 6.23523 2.96408C6.33969 2.57263 6.56921 2.22684 6.88825 1.98025C7.20728 1.73365 7.59802 1.60001 7.99998 1.60001C8.40193 1.60001 8.79268 1.73365 9.11171 1.98025C9.43074 2.22684 9.66026 2.57263 9.76473 2.96408C9.8692 3.35552 9.84279 3.77078 9.68959 4.14556C9.5364 4.52034 9.26496 4.83373 8.91731 5.0372V6.21334H10.2826C10.404 6.21333 10.5205 6.26146 10.607 6.34733C10.6935 6.43321 10.743 6.54994 10.7449 6.67232V7.59746C10.743 7.71985 10.6935 7.83658 10.607 7.92245C10.5205 8.00833 10.404 8.05646 10.2826 8.05644H8.91731V12.718C10.1905 12.5989 11.3695 11.9903 12.2098 11.0183L11.4986 10.3012C11.4657 10.2691 11.4432 10.2277 11.4339 10.1824C11.4247 10.1372 11.4292 10.0902 11.4468 10.0476C11.4645 10.005 11.4945 9.96875 11.5329 9.94361C11.5714 9.91848 11.6164 9.90562 11.6622 9.90671H14.1795C14.2374 9.90851 14.2925 9.93251 14.3334 9.97382C14.3744 10.0151 14.3982 10.0706 14.4 10.129Z" fill="currentColor"/></svg>`,question:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 1C11.866 1 15 4.13401 15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1ZM8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2ZM8 10.5146C8.19344 10.5146 8.38709 10.5985 8.53223 10.7314C8.67739 10.8766 8.75 11.0711 8.75 11.2646C8.74989 11.4701 8.67727 11.6639 8.53223 11.7969C8.38709 11.9419 8.19344 12.0146 8 12.0146C7.80656 12.0146 7.61291 11.9298 7.46777 11.7969C7.32273 11.6518 7.25012 11.458 7.25 11.2646C7.25 11.059 7.33471 10.8766 7.46777 10.7314C7.61291 10.5864 7.80656 10.5146 8 10.5146ZM7.99023 4C8.64015 4.00006 9.26053 4.2297 9.73047 4.63965C10.2204 5.06964 10.4905 5.64004 10.4805 6.25C10.5005 7.15987 9.90025 7.97001 8.98047 8.33008C8.84054 8.38005 8.71987 8.4797 8.62988 8.59961C8.53988 8.72961 8.5 8.88027 8.5 9.03027C8.49998 9.04111 8.49863 9.37208 8.41016 9.5C8.31016 9.62 8.17 9.71973 8 9.71973C7.83 9.71973 7.68984 9.63 7.58984 9.5C7.46991 9.33998 7.49023 9.0498 7.49023 9.0498C7.49027 8.68992 7.59989 8.32997 7.7998 8.04004C7.9998 7.75004 8.28035 7.53039 8.61035 7.40039C9.14025 7.20036 9.49023 6.74971 9.49023 6.25977C9.49008 5.56994 8.82003 5.00987 7.99023 5.00977C7.2303 5.00977 6.60008 5.47992 6.5 6.08984C6.5 6.10984 6.44985 6.43964 6.37988 6.50977C6.31988 6.59977 6.15 6.66992 6 6.66992C5.85 6.66992 5.71988 6.6 5.62988 6.5C5.55999 6.4201 5.51008 6.31024 5.5 6.19043C5.5 6.17049 5.5097 6.03087 5.50977 5.98047C5.57977 5.47047 5.83 4.99965 6.25 4.63965C6.71998 4.22974 7.34031 4 7.99023 4Z" fill="currentColor"/></svg>`,rectangle:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_7055_725)"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.501 0.699219C14.4946 0.699694 15.3006 1.50635 15.3008 2.5C15.3006 3.32027 14.7505 4.0107 14 4.22754V11.7705C14.7508 11.9873 15.3006 12.6796 15.3008 13.5C15.3006 14.4936 14.4946 15.2993 13.501 15.2998C12.6806 15.2998 11.9895 14.7506 11.7725 14H4.22754C4.01066 14.7505 3.32022 15.2996 2.5 15.2998C1.5062 15.2996 0.69943 14.4938 0.699219 13.5C0.699382 12.6797 1.2493 11.9875 2 11.7705V4.22852C1.24945 4.01159 0.700369 3.32018 0.700195 2.5C0.700393 1.50606 1.50699 0.699219 2.50098 0.699219C3.32097 0.699611 4.01166 1.24956 4.22852 2H11.7715C11.9885 1.24929 12.6806 0.699219 13.501 0.699219ZM4.19629 3.09961C4.01553 3.61082 3.61076 4.01344 3.09961 4.19434V11.8037C3.61091 11.9846 4.01543 12.389 4.19629 12.9004H11.8037C11.9846 12.3891 12.3892 11.9847 12.9004 11.8037V4.19531C12.3893 4.01442 11.9856 3.61064 11.8047 3.09961H4.19629Z" fill="currentColor"/></g><defs><clipPath id="clip0_7055_725"><rect width="16" height="16" fill="white"/></clipPath></defs></svg>`,satellite:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.8568 10.9036C14.8568 12.8939 13.1533 14.5071 11.0726 14.5071V13.8138C12.7612 13.8137 14.1332 12.5018 14.1332 10.9036H14.8568ZM10.6537 1.33525C10.8883 1.07937 11.2933 1.07937 11.5492 1.33525L13.3822 3.16826C13.6381 3.40282 13.6383 3.8087 13.4037 4.04326L10.7387 6.7083C10.5041 6.96414 10.099 6.96406 9.84315 6.7083L9.22499 6.09014L8.86171 6.45244L9.67226 7.26299C9.1819 7.47621 8.69143 7.81707 8.26503 8.24346C7.83867 8.66982 7.49781 9.16037 7.28456 9.65068L6.47401 8.84111L6.11171 9.20342L6.72987 9.82158C6.98559 10.0561 6.98562 10.4612 6.72987 10.7171L4.06386 13.3821C3.8293 13.638 3.42423 13.638 3.16835 13.3821L1.33534 11.5491C1.07946 11.3146 1.07946 10.9095 1.33534 10.6536L4.00038 7.9876C4.23494 7.73182 4.64004 7.73179 4.89589 7.9876L5.6205 8.71221L5.98378 8.3499L5.74843 8.11553C5.40755 7.77452 5.2583 7.34819 5.25819 6.90068C4.78908 6.32495 4.72528 5.57813 5.15175 5.15166C5.57822 4.72519 6.32504 4.78899 6.90077 5.2581C7.32699 5.25822 7.7746 5.40747 8.11562 5.74834L8.34999 5.98369L8.7123 5.62041L7.98769 4.8958C7.73188 4.66126 7.73191 4.25616 7.98769 4.00029L10.6537 1.33525ZM13.5756 10.9192C13.5603 12.2311 12.4598 13.301 11.0726 13.3011V12.6077C11.5554 12.6077 11.9928 12.4414 12.3246 12.1097C12.671 11.7931 12.8519 11.3714 12.8519 10.9192H13.5756ZM8.60585 8.60576C9.79982 7.41188 11.4204 7.0069 12.4652 7.58232H12.4867C12.5293 7.60362 12.5506 7.62548 12.5932 7.64678C12.5933 7.66691 12.6128 7.66821 12.6146 7.66826C12.6573 7.68959 12.7214 7.73206 12.7641 7.77471C13.0624 8.20118 12.7001 9.1391 11.89 10.1624L11.4633 9.6292C11.9109 9.0536 12.1459 8.60575 12.018 8.47783C11.8259 8.28616 10.8659 8.92582 9.88515 9.90654C8.90439 10.8873 8.26476 11.8473 8.45644 12.0394C8.60569 12.1673 9.11758 11.8899 9.75722 11.3782L10.2904 11.805C9.22441 12.6577 8.22261 13.0409 7.7748 12.7425C7.75346 12.6999 7.70994 12.6579 7.66737 12.594C7.64779 12.5938 7.64695 12.575 7.64687 12.5726C7.6256 12.53 7.60368 12.5085 7.58241 12.4661C7.00668 11.4213 7.39041 9.8212 8.60585 8.60576ZM10.2475 10.056C10.3967 9.90674 10.6312 9.92832 10.7592 10.0774L11.3353 10.7806C11.3735 10.8314 11.3986 10.8906 11.4135 10.9515C11.4674 10.9313 11.5251 10.9192 11.5853 10.9192C11.8567 10.9193 12.0831 11.1151 12.098 11.4017C12.098 11.673 11.8567 11.884 11.5853 11.8841C11.2839 11.8841 11.0727 11.673 11.0726 11.4017C11.0753 11.3574 11.0847 11.3142 11.099 11.2728C11.0388 11.2573 10.9804 11.2299 10.9301 11.1858L10.2055 10.6321C10.0349 10.5042 10.0349 10.2697 10.184 10.1204L10.2475 10.056Z" fill="currentColor"/></svg>`,settings:`<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.0996 3.71791C12.0996 3.46305 12.1332 3.21535 12.1943 2.97865C11.644 2.53775 11.0221 2.18456 10.3486 1.93763C9.80809 2.58616 8.99499 3.00111 8.08301 3.00111C7.17079 3.00104 6.3569 2.58652 5.81641 1.93763C5.14352 2.18451 4.52165 2.53712 3.97168 2.97767C4.03302 3.21469 4.06639 3.46267 4.06641 3.71791C4.06641 5.15718 3.03545 6.3535 1.67188 6.61341C1.5591 7.09605 1.5 7.59998 1.5 8.1183C1.50001 8.3722 1.51607 8.62231 1.54395 8.8683C2.97036 9.07546 4.06621 10.3005 4.06641 11.7843C4.06641 12.2497 3.95697 12.6902 3.76465 13.0822C4.30852 13.5558 4.92957 13.9404 5.60742 14.216C6.13279 13.4056 7.04409 12.8684 8.08301 12.8683C9.12174 12.8683 10.0321 13.4059 10.5576 14.216C11.2358 13.9404 11.8572 13.556 12.4014 13.0822C12.2091 12.6903 12.0996 12.2496 12.0996 11.7843C12.0998 10.3007 13.1959 9.07566 14.6221 8.8683C14.65 8.62229 14.667 8.37222 14.667 8.1183C14.667 7.60028 14.6068 7.09678 14.4941 6.61439C13.1307 6.35436 12.0996 5.15707 12.0996 3.71791ZM9.89941 8.1183C9.89941 7.11508 9.08619 6.30203 8.08301 6.30189C7.0797 6.30189 6.2666 7.11499 6.2666 8.1183C6.26674 9.12148 7.07979 9.9347 8.08301 9.9347C9.08611 9.93457 9.89928 9.1214 9.89941 8.1183ZM11.3994 8.1183C11.3993 9.94983 9.91454 11.4346 8.08301 11.4347C6.25136 11.4347 4.76674 9.94991 4.7666 8.1183C4.7666 6.28657 6.25128 4.80189 8.08301 4.80189C9.91462 4.80203 11.3994 6.28665 11.3994 8.1183ZM13.5996 3.71791C13.5996 4.51869 14.249 5.16808 15.0498 5.1681H15.0703L15.1924 5.17591C15.4724 5.21795 15.709 5.41669 15.7959 5.69349C16.0366 6.45987 16.167 7.27471 16.167 8.1183C16.167 8.67495 16.1096 9.21904 16.002 9.74525C15.925 10.1216 15.5766 10.3795 15.1943 10.3419C15.1468 10.3373 15.0986 10.3351 15.0498 10.3351C14.2492 10.3351 13.5998 10.9837 13.5996 11.7843C13.5996 12.1409 13.7274 12.4662 13.9404 12.7189C14.1881 13.0125 14.1746 13.446 13.9082 13.7228C12.9545 14.7138 11.749 15.4627 10.3936 15.8663C10.0023 15.9828 9.5893 15.7649 9.46484 15.3761C9.27771 14.7907 8.72855 14.3683 8.08301 14.3683C7.43757 14.3684 6.88926 14.7908 6.70215 15.3761C6.57776 15.7649 6.16473 15.9828 5.77344 15.8663C4.41794 15.4628 3.21258 14.7138 2.25879 13.7228C1.99242 13.446 1.97788 13.0125 2.22559 12.7189C2.43877 12.4662 2.56641 12.141 2.56641 11.7843C2.5662 10.9837 1.91688 10.3351 1.11621 10.3351C1.06773 10.3351 1.01986 10.3373 0.972656 10.3419C0.590371 10.3795 0.241036 10.1216 0.164062 9.74525C0.0564702 9.21907 1.48401e-05 8.67491 0 8.1183C0 7.27477 0.129441 6.45984 0.370117 5.69349L0.416016 5.57924C0.54366 5.32655 0.806604 5.16396 1.09668 5.1681C1.10315 5.16819 1.10966 5.1681 1.11621 5.1681C1.91701 5.1681 2.56641 4.5187 2.56641 3.71791C2.56637 3.48676 2.51269 3.2704 2.41797 3.07826C2.27151 2.78117 2.3376 2.42302 2.58008 2.1974C3.5141 1.32892 4.65518 0.678001 5.92188 0.327282C6.2652 0.232243 6.62808 0.391841 6.79004 0.709118C7.03075 1.18094 7.52032 1.50102 8.08301 1.50111C8.64578 1.50111 9.13523 1.18099 9.37598 0.709118C9.53789 0.391744 9.90076 0.232243 10.2441 0.327282C11.511 0.677965 12.6518 1.32885 13.5859 2.1974C13.8286 2.42301 13.8946 2.78108 13.748 3.07826C13.6534 3.27035 13.5996 3.48683 13.5996 3.71791Z" fill="currentColor"/></svg>`,ship:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0869 11.0368L13.523 10.8318L13.523 10.8318L14.0869 11.0368ZM13.7421 10.1715L14.0105 9.63485L14.0104 9.63482L13.7421 10.1715ZM8.31313 7.45702L8.0448 7.99367L8.04481 7.99368L8.31313 7.45702ZM7.68705 7.45702L7.95538 7.99368L7.95538 7.99367L7.68705 7.45702ZM2.2581 10.1715L1.98978 9.63482L1.98974 9.63484L2.2581 10.1715ZM1.9133 11.0368L2.47717 10.8318L2.47717 10.8318L1.9133 11.0368ZM3.45 9.4H2.85C2.85 9.60462 2.95427 9.79512 3.12663 9.9054C3.29898 10.0157 3.51565 10.0305 3.70144 9.94478L3.45 9.4ZM7.70667 7.43538L7.45527 6.89059L7.45523 6.8906L7.70667 7.43538ZM8.29333 7.43538L8.54477 6.8906L8.54473 6.89059L8.29333 7.43538ZM12.55 9.4L12.2986 9.94478C12.4843 10.0305 12.701 10.0157 12.8734 9.9054C13.0457 9.79512 13.15 9.60462 13.15 9.4H12.55ZM9.15 4.5C9.15 4.83137 9.41863 5.1 9.75 5.1C10.0814 5.1 10.35 4.83137 10.35 4.5H9.75H9.15ZM5.65 4.5C5.65 4.83137 5.91863 5.1 6.25 5.1C6.58137 5.1 6.85 4.83137 6.85 4.5H6.25H5.65ZM8.6 10.8C8.6 10.4686 8.33137 10.2 8 10.2C7.66863 10.2 7.4 10.4686 7.4 10.8H8H8.6ZM7.4 13.6C7.4 13.9314 7.66863 14.2 8 14.2C8.33137 14.2 8.6 13.9314 8.6 13.6H8H7.4ZM1 14.4C0.668629 14.4 0.4 14.6686 0.4 15C0.4 15.3314 0.668629 15.6 1 15.6V15V14.4ZM15 15.6C15.3314 15.6 15.6 15.3314 15.6 15C15.6 14.6686 15.3314 14.4 15 14.4V15V15.6ZM12.9001 14.3005L13.464 14.5055L14.6507 11.2419L14.0869 11.0368L13.523 10.8318L12.3362 14.0955L12.9001 14.3005ZM14.0869 11.0368L14.6507 11.2419C14.8764 10.6213 14.601 9.93018 14.0105 9.63485L13.7421 10.1715L13.4737 10.7081C13.5192 10.7309 13.5404 10.784 13.523 10.8318L14.0869 11.0368ZM13.7421 10.1715L14.0104 9.63482L8.58146 6.92036L8.31313 7.45702L8.04481 7.99368L13.4738 10.7081L13.7421 10.1715ZM8.31313 7.45702L8.58146 6.92036C8.21549 6.73738 7.78469 6.73738 7.41872 6.92036L7.68705 7.45702L7.95538 7.99367C7.98351 7.97961 8.01667 7.97961 8.0448 7.99367L8.31313 7.45702ZM7.68705 7.45702L7.41873 6.92036L1.98978 9.63482L2.2581 10.1715L2.52643 10.7081L7.95538 7.99368L7.68705 7.45702ZM2.2581 10.1715L1.98974 9.63484C1.39919 9.93017 1.12375 10.6213 1.34942 11.2419L1.9133 11.0368L2.47717 10.8318C2.45982 10.7841 2.48098 10.7309 2.52647 10.7081L2.2581 10.1715ZM1.9133 11.0368L1.34942 11.2419L2.53622 14.5055L3.10009 14.3005L3.66397 14.0955L2.47717 10.8318L1.9133 11.0368ZM11.85 4.5V3.9H4.15V4.5V5.1H11.85V4.5ZM4.15 4.5V3.9C3.43202 3.9 2.85 4.48202 2.85 5.2H3.45H4.05C4.05 5.14476 4.09476 5.1 4.15 5.1V4.5ZM3.45 5.2H2.85V9.4H3.45H4.05V5.2H3.45ZM3.45 9.4L3.70144 9.94478L7.9581 7.98016L7.70667 7.43538L7.45523 6.8906L3.19856 8.85522L3.45 9.4ZM7.70667 7.43538L7.95806 7.98017C7.98468 7.96789 8.01532 7.96789 8.04194 7.98017L8.29333 7.43538L8.54473 6.89059C8.19909 6.73109 7.80091 6.73109 7.45527 6.89059L7.70667 7.43538ZM8.29333 7.43538L8.0419 7.98016L12.2986 9.94478L12.55 9.4L12.8014 8.85522L8.54477 6.8906L8.29333 7.43538ZM12.55 9.4H13.15V5.2H12.55H11.95V9.4H12.55ZM12.55 5.2H13.15C13.15 4.48202 12.568 3.9 11.85 3.9V4.5V5.1C11.9052 5.1 11.95 5.14476 11.95 5.2H12.55ZM9.75 4.5H10.35V1.7H9.75H9.15V4.5H9.75ZM9.75 1.7H10.35C10.35 0.982035 9.76799 0.4 9.05 0.4V1V1.6C9.10523 1.6 9.15 1.64477 9.15 1.7H9.75ZM9.05 1V0.4H6.95V1V1.6H9.05V1ZM6.95 1V0.4C6.23201 0.4 5.65 0.982036 5.65 1.7H6.25H6.85C6.85 1.64477 6.89477 1.6 6.95 1.6V1ZM6.25 1.7H5.65V4.5H6.25H6.85V1.7H6.25ZM8 10.8H7.4V13.6H8H8.6V10.8H8ZM1 15V15.6C1.83427 15.6 2.28704 15.3806 2.65393 15.1709C2.96453 14.9935 3.10133 14.9 3.45 14.9V14.3V13.7C2.74867 13.7 2.36047 13.9565 2.05857 14.1291C1.81296 14.2694 1.56573 14.4 1 14.4V15ZM3.45 14.3V14.9C3.79465 14.9 3.93456 14.9942 4.16718 15.1492C4.45956 15.3442 4.84465 15.6 5.55 15.6V15V14.4C5.20535 14.4 5.06544 14.3058 4.83282 14.1508C4.54044 13.9558 4.15535 13.7 3.45 13.7V14.3ZM5.55 15V15.6C6.23883 15.6 6.66286 15.3548 6.99173 15.1794C7.28611 15.0224 7.53241 14.9 8 14.9V14.3V13.7C7.24259 13.7 6.78889 13.9276 6.42702 14.1206C6.09964 14.2952 5.91117 14.4 5.55 14.4V15ZM8 14.3V14.9C8.46759 14.9 8.71389 15.0224 9.00827 15.1794C9.33714 15.3548 9.76117 15.6 10.45 15.6V15V14.4C10.0888 14.4 9.90036 14.2952 9.57298 14.1206C9.21111 13.9276 8.75741 13.7 8 13.7V14.3ZM10.45 15V15.6C11.1553 15.6 11.5404 15.3442 11.8328 15.1492C12.0654 14.9942 12.2053 14.9 12.55 14.9V14.3V13.7C11.8447 13.7 11.4596 13.9558 11.1672 14.1508C10.9346 14.3058 10.7947 14.4 10.45 14.4V15ZM12.55 14.3V14.9C12.8987 14.9 13.0355 14.9935 13.3461 15.1709C13.713 15.3806 14.1657 15.6 15 15.6V15V14.4C14.4343 14.4 14.187 14.2694 13.9414 14.1291C13.6395 13.9565 13.2513 13.7 12.55 13.7V14.3Z" fill="currentColor"/></svg>`,show:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.00024 3.58789C9.98457 3.58801 11.7439 4.6607 12.9768 5.68262C13.599 6.19836 14.1023 6.71273 14.4495 7.09863C14.6233 7.29184 14.7591 7.4542 14.8518 7.56836C14.898 7.62527 14.9338 7.67071 14.9583 7.70215C14.9703 7.71772 14.98 7.7297 14.9866 7.73828C14.9898 7.74251 14.9916 7.74659 14.9934 7.74902L14.9973 7.75293C15.1065 7.89926 15.1065 8.10074 14.9973 8.24707L14.9934 8.25098C14.9916 8.25341 14.9898 8.25749 14.9866 8.26172C14.98 8.2703 14.9703 8.28228 14.9583 8.29785C14.9338 8.32929 14.898 8.37473 14.8518 8.43164C14.7591 8.5458 14.6233 8.70816 14.4495 8.90137C14.1023 9.28727 13.599 9.80164 12.9768 10.3174C11.7439 11.3393 9.98457 12.412 8.00024 12.4121C6.01572 12.4121 4.25568 11.3394 3.02271 10.3174C2.40043 9.80158 1.89721 9.28727 1.55005 8.90137C1.37623 8.70815 1.24137 8.5458 1.14868 8.43164C1.10238 8.37462 1.0667 8.32934 1.04224 8.29785C1.03019 8.28235 1.02046 8.27032 1.01392 8.26172C1.01065 8.25742 1.00794 8.25341 1.0061 8.25098C1.00525 8.24984 1.00468 8.24876 1.00415 8.24805L1.00317 8.24707C0.894013 8.10075 0.894013 7.89925 1.00317 7.75293L1.00415 7.75195C1.00468 7.75124 1.00525 7.75016 1.0061 7.74902C1.00794 7.74659 1.01065 7.74258 1.01392 7.73828C1.02046 7.72968 1.03019 7.71765 1.04224 7.70215C1.0667 7.67066 1.10238 7.62538 1.14868 7.56836C1.24137 7.4542 1.37623 7.29185 1.55005 7.09863C1.89721 6.71273 2.40043 6.19842 3.02271 5.68262C4.25568 4.66061 6.01572 3.58792 8.00024 3.58789ZM8.00024 5.9209C6.85211 5.92095 5.92132 6.8519 5.92114 8C5.92132 9.1481 6.85211 10.0791 8.00024 10.0791C9.14827 10.0789 10.0792 9.14803 10.0793 8C10.0792 6.85198 9.14827 5.92107 8.00024 5.9209ZM8.00024 6.74512C8.69263 6.74529 9.25397 7.30761 9.25415 8C9.25397 8.69239 8.69264 9.25373 8.00024 9.25391C7.30775 9.25386 6.74554 8.69247 6.74536 8C6.74554 7.30754 7.30775 6.74517 8.00024 6.74512Z" fill="currentColor"/></svg>`,sort:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.61233 2.23303C7.81241 1.98741 8.18757 1.98741 8.38765 2.23303L11.1495 5.6235C11.4156 5.95015 11.1832 6.43928 10.7618 6.43928H5.23814C4.81683 6.43928 4.5844 5.95015 4.85048 5.6235L7.61233 2.23303Z" fill="currentColor"/><path d="M7.61233 13.767C7.81241 14.0126 8.18757 14.0126 8.38765 13.767L11.1495 10.3765C11.4156 10.0499 11.1832 9.56072 10.7618 9.56072H5.23814C4.81683 9.56072 4.5844 10.0499 4.85048 10.3765L7.61233 13.767Z" fill="currentColor"/></svg>`,viewpoint:`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.80078 2C10.0008 2 11.9635 3.23413 13.6846 5.64507C13.7605 5.75117 13.8008 5.87428 13.8008 6C13.8008 6.12572 13.7605 6.24883 13.6846 6.35493C11.9635 8.76587 10.0008 10 7.80078 10C5.60075 10 3.63801 8.76587 1.91693 6.35493C1.84107 6.24883 1.80078 6.12572 1.80078 6C1.80078 5.87428 1.84107 5.75117 1.91693 5.64507C3.63801 3.23413 5.60075 2 7.80078 2ZM7.80078 3.6C6.30964 3.6 5.1008 4.67453 5.1008 6C5.1008 7.32547 6.30964 8.4 7.80078 8.4C9.29192 8.4 10.5008 7.32547 10.5008 6C10.5008 4.67453 9.29192 3.6 7.80078 3.6ZM7.80078 7.6C8.79482 7.6 9.60077 6.8836 9.60077 6C9.60077 5.1164 8.79482 4.4 7.80078 4.4C6.80674 4.4 6.00079 5.1164 6.00079 6C6.00079 6.8836 6.80674 7.6 7.80078 7.6Z" fill="currentColor"/><path d="M7.07933 14.8629L5.7854 15.8734C5.72658 15.9198 5.65887 15.9544 5.58616 15.9754C5.51346 15.9963 5.4372 16.0031 5.36178 15.9953C5.28635 15.9876 5.21325 15.9655 5.14669 15.9303C5.08013 15.8951 5.02141 15.8475 4.97393 15.7902C4.92621 15.7331 4.8906 15.6673 4.86914 15.5968C4.84768 15.5263 4.8408 15.4524 4.84888 15.3793C4.85696 15.3062 4.87985 15.2354 4.91623 15.1709C4.95262 15.1064 5.00179 15.0495 5.06093 15.0034L5.30875 14.8101C4.19436 14.6086 3.18751 14.2772 2.39583 13.8436C1.82266 13.5293 1.36973 13.1679 1.04973 12.7717C0.685376 12.3193 0.50037 11.8341 0.5 11.3283C0.500282 10.2708 1.30782 9.3097 2.77397 8.61688L2.77417 8.88255C2.77522 9.18791 2.89877 9.48093 3.11874 9.69972C2.18528 10.1755 1.65603 10.7614 1.65644 11.3275C1.65683 11.8598 2.1215 12.4082 2.96596 12.8704C3.66052 13.2521 4.55972 13.5436 5.56752 13.7197L5.29604 13.3081C5.21687 13.1831 5.19156 13.033 5.22558 12.8902C5.2596 12.7473 5.35022 12.6231 5.47791 12.5444C5.6056 12.4656 5.76014 12.4386 5.90821 12.4691C6.05628 12.4996 6.18604 12.5853 6.26951 12.7076L7.20435 14.1272C7.2808 14.2431 7.31042 14.3822 7.28755 14.518C7.26467 14.6537 7.19091 14.7766 7.08038 14.8629L7.07933 14.8629Z" fill="currentColor"/><path d="M15.267 11.2914C15.2677 12.2921 14.5337 13.2178 13.2001 13.8999C12.0005 14.5135 10.3795 14.8987 8.63485 14.9857L8.60529 14.9857C8.45567 14.9844 8.31244 14.9269 8.20579 14.8253C8.09914 14.7238 8.03742 14.5861 8.03362 14.4414C8.02981 14.2967 8.08424 14.1562 8.18541 14.0495C8.28659 13.9429 8.42662 13.8784 8.57598 13.8696C10.156 13.7919 11.607 13.4518 12.66 12.9129C13.1412 12.6674 13.5251 12.3833 13.7751 12.09C13.9997 11.8254 14.1124 11.5567 14.1123 11.2932C14.1118 10.7336 13.5942 10.156 12.6819 9.68595L12.6809 9.68595C12.7953 9.57676 12.8862 9.44667 12.9482 9.30323C13.0103 9.15979 13.0422 9.00586 13.0423 8.85037L13.0421 8.60938L13.0432 8.60938C14.4781 9.29762 15.2662 10.2477 15.267 11.2914Z" fill="currentColor"/></svg>`,"water-gauge":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.4186 2.1402C10.6225 2.0056 10.8993 2.02808 11.0788 2.20758L13.7878 4.91559C13.9922 5.1208 13.9926 5.45383 13.7878 5.65875L5.66275 13.7838C5.45783 13.9887 5.12481 13.9882 4.91959 13.7838L2.21158 11.0748C2.00641 10.8696 2.00641 10.5377 2.21158 10.3326L10.3366 2.20758L10.4186 2.1402ZM3.49966 9.5152L4.88345 10.899C5.04964 11.0652 5.31883 11.0652 5.48502 10.899C5.65115 10.7328 5.65118 10.4636 5.48502 10.2974L4.10123 8.91364L3.49966 9.5152ZM4.85123 8.16364L6.77701 10.0894C6.94319 10.2556 7.21239 10.2556 7.37857 10.0894C7.5447 9.92323 7.54474 9.65402 7.37857 9.48785L5.45279 7.56207L4.85123 8.16364ZM6.2067 6.81207L7.59048 8.19586C7.75667 8.36205 8.02586 8.36205 8.19205 8.19586C8.35818 8.02967 8.35822 7.76047 8.19205 7.5943L6.80826 6.21051L6.2067 6.81207ZM7.56216 5.4527L9.48795 7.37848C9.65413 7.54466 9.92332 7.54466 10.0895 7.37848C10.2556 7.21229 10.2557 6.94308 10.0895 6.77692L8.16373 4.85114L7.56216 5.4527ZM8.91373 4.10114L10.2975 5.48492C10.4637 5.65111 10.7329 5.65111 10.8991 5.48492C11.0652 5.31874 11.0652 5.04953 10.8991 4.88336L9.51529 3.49957L8.91373 4.10114Z" fill="currentColor"/></svg>`,"zoom-in":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.17857 7.17857V2.25H8.82143V7.17857H13.75V8.82143H8.82143V13.75H7.17857V8.82143H2.25V7.17857H7.17857Z" fill="currentColor"/></svg>`,"zoom-out":`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.25 7.16669V8.83335H13.75V7.16669H2.25Z" fill="currentColor"/></svg>`},y=Object.keys(v),b=`zh-icon`;function ee(e){return r(b,e)}function x(e){return typeof e==`number`?`${e}px`:e??`1em`}function S({className:e,color:n,name:r,size:i,style:a,title:o,...s}){let c=s[`aria-label`]??o,l=c?{"aria-label":c,role:`img`}:{"aria-hidden":!0},u={...a,"--zh-icon-size":x(i)};return n&&(u.color=n),(0,t.jsx)(`span`,{...l,...s,className:ee(e),dangerouslySetInnerHTML:{__html:v[r]},style:u,title:o})}var C=`zh-loading`,w=`zh-loading-overlay`;function T(e){return e??`default`}function E(e){return e??`icon`}function D(e){return e??`dark`}function te(e,t,n){let i=T(t),a=E(n);return r(C,`${C}--size-${i}`,`${C}--type-${a}`,e)}function O(e,t){return r(w,`${w}--mask-${D(t)}`,e)}function k({className:e,...n}){return(0,t.jsx)(S,{...n,className:r(`zh-loading-icon`,e),name:`loading`})}function A(e){return!e||typeof e==`object`&&e.icon?e:typeof e==`object`?{...e,icon:(0,t.jsx)(k,{})}:{icon:(0,t.jsx)(k,{})}}var j=`zh-button`,M=`zh-button-group`;function ne(e){return!!(e.iconOnly??(e.hasIcon&&!e.hasChildren))}function re(e,t){return e.buttonStyle?e.buttonStyle:e.type===`text`?`text`:e.type===`link`?`link`:t?`icon`:`basic`}function N(e){return e.color?e.color:e.danger?`danger`:e.type===`primary`?`primary`:`default`}function P(e){return e===`primary`?`primary`:e===`danger`?`danger`:`default`}function ie(e,t,n,r,i){return i.type===`dashed`?`dashed`:e===`link`?`link`:e===`text`||e===`icon`&&!r?`text`:n||t==="default"?`outlined`:`solid`}function F(e){return r(M,`${M}--solid`,e)}function ae(e){return e??`large`}function oe(e){let t=ne(e),n=re(e,t),i=N(e),a=e.background??!0,o=e.plain??!1,s=e.shape??(e.round?`round`:void 0),c=P(i),l=e.variant??ie(n,i,o,a,e),u=e.danger??i===`danger`;return{antdColor:c,background:a,buttonStyle:n,className:r(j,`${j}--style-${n}`,`${j}--color-${i}`,`${j}--background-${a?`on`:`off`}`,o&&`${j}--plain`,s===`round`&&`${j}--round`,t&&`${j}--icon-only`),color:i,danger:u,iconOnly:t,plain:o,shape:s,variant:l}}function se({className:n,size:r,...i}){return(0,t.jsx)(e.Button.Group,{...i,className:F(n),size:ae(r)})}se.displayName=`ButtonGroup`;function I(e){return e!=null&&e!==!1}var ce=(0,n.forwardRef)(function({background:n,buttonStyle:i,className:a,color:o,danger:s,icon:c,iconOnly:l,loading:u,plain:d,round:f,shape:p,type:m,variant:h,children:g,..._},v){let y=oe({background:n,buttonStyle:i,color:o,danger:s,hasChildren:I(g),hasIcon:!!c,iconOnly:l,plain:d,round:f,shape:p,type:m,variant:h});return(0,t.jsx)(e.Button,{..._,ref:v,className:r(y.className,a),color:y.antdColor,danger:y.danger,"data-background":y.background?`on`:`off`,"data-button-style":y.buttonStyle,"data-icon":c?`on`:`off`,"data-icon-only":y.iconOnly?`on`:`off`,"data-color":y.color,icon:c,loading:A(u),shape:y.shape,variant:y.variant,children:g})}),L=Object.assign(ce,{Group:se});L.displayName=`Button`;var le=`zh-cascader`,ue=`zh-cascader-popup`,de=`zh-cascader-popup--radio`,fe=`zh-cascader-popup--multiple`;function pe(e){return e.join(`/`)}function me(e){return e.length===0?null:`+${e.length}`}var he={displayRender:pe,maxTagCount:1,maxTagPlaceholder:me,showCheckedStrategy:`SHOW_CHILD`};function ge(e){return r(le,e)}function R({displayRender:e,maxTagCount:t,maxTagPlaceholder:n,multiple:r,showCheckedStrategy:i}){return r?{displayRender:e??he.displayRender,maxTagCount:t??he.maxTagCount,maxTagPlaceholder:n??he.maxTagPlaceholder,showCheckedStrategy:i??he.showCheckedStrategy}:{displayRender:e,maxTagCount:t,maxTagPlaceholder:n,showCheckedStrategy:i}}function _e(e,t=`default`,n=!1){return r(ue,n?fe:void 0,t===`radio`&&!n?de:void 0,e)}var ve=e.Cascader;function ye({className:e,loadingIcon:n=(0,t.jsx)(k,{}),optionType:i=`default`,popupClassName:a,rootClassName:o,size:s=`middle`,...c}){let l=ge(e),u=R(c);return(0,t.jsx)(ve,{...c,...u,className:l,loadingIcon:n,popupClassName:_e(a,i,!!c.multiple),rootClassName:r(l,o),size:s})}ye.displayName=`Cascader`;var be=`zh-checkbox`,xe=`zh-checkbox-group`;function Se(e,t,n){return r(be,`${be}--size-${t}`,n&&`${be}--border`,e)}function Ce(e,t,n){return r(xe,`${xe}--size-${t}`,`${xe}--variant-${n}`,e)}function we({border:n=!1,className:r,size:i=`default`,...a}){return(0,t.jsx)(e.Checkbox,{...a,className:Se(r,i,n),"data-border":n?`on`:`off`,"data-size":i})}function Te({className:n,size:r=`default`,variant:i=`icon`,...a}){return(0,t.jsx)(e.Checkbox.Group,{...a,className:Ce(n,r,i),"data-size":r,"data-variant":i})}we.displayName=`Checkbox`,Te.displayName=`CheckboxGroup`;var Ee=`zh-datetime-picker`,De=`zh-datetime-picker-popup`;function z(e){return r(Ee,e)}function B(e){return r(De,e)}function Oe({className:n,popupClassName:i,rootClassName:a,...o}){let s=z(r(`zh-datetime-picker--date`,n));return(0,t.jsx)(e.DatePicker,{...o,className:s,popupClassName:B(i),rootClassName:r(s,a)})}function ke({className:n,popupClassName:i,rootClassName:a,...o}){let s=z(r(`zh-datetime-picker--date-range`,n));return(0,t.jsx)(e.DatePicker.RangePicker,{...o,className:s,popupClassName:B(i),rootClassName:r(s,a)})}function Ae({className:n,popupClassName:i,rootClassName:a,showTime:o=!0,...s}){let c=z(r(`zh-datetime-picker--datetime`,n));return(0,t.jsx)(e.DatePicker,{...s,className:c,popupClassName:B(i),rootClassName:r(c,a),showTime:o})}function je({className:n,popupClassName:i,rootClassName:a,showTime:o=!0,...s}){let c=z(r(`zh-datetime-picker--datetime-range`,n));return(0,t.jsx)(e.DatePicker.RangePicker,{...s,className:c,popupClassName:B(i),rootClassName:r(c,a),showTime:o})}function Me({className:n,popupClassName:i,rootClassName:a,...o}){let s=z(r(`zh-datetime-picker--time`,n));return(0,t.jsx)(e.TimePicker,{...o,className:s,popupClassName:B(i),rootClassName:r(s,a)})}function Ne({className:n,popupClassName:i,rootClassName:a,...o}){let s=z(r(`zh-datetime-picker--time-range`,n));return(0,t.jsx)(e.TimePicker.RangePicker,{...o,className:s,popupClassName:B(i),rootClassName:r(s,a)})}Oe.displayName=`DatePicker`,ke.displayName=`DateRangePicker`,Ae.displayName=`DatetimePicker`,je.displayName=`DatetimeRangePicker`,Me.displayName=`TimePicker`,Ne.displayName=`TimeRangePicker`;var Pe=`zh-divider`;function Fe(e){return r(Pe,e)}function Ie(e){return e??`dark`}function V({className:n,tone:r,...i}){let a=Ie(r);return(0,t.jsx)(e.Divider,{...i,className:Fe(n),"data-tone":a})}V.displayName=`Divider`;var H=`zh-dropdown`,U=`zh-dropdown-popup`;function Le(e){return r(H,e)}function Re(e){return r(U,e)}function W({align:i={offset:[0,10]},arrow:a={pointAtCenter:!0},children:o,className:s,menu:c,overlayClassName:l,placement:u=`bottom`,rootClassName:d,trigger:f=[`hover`],...p}){let m=Le(s),h=Re(r(c?.multiple&&`zh-dropdown-popup--multiple`,l)),g=(0,n.isValidElement)(o)?(0,n.cloneElement)(o,{className:r(m,o.props.className)}):o;return(0,t.jsx)(e.Dropdown,{...p,align:i,arrow:a,className:m,menu:c,overlayClassName:h,placement:u,rootClassName:r(m,d),trigger:f,children:g})}function ze({align:n={offset:[0,10]},arrow:i={pointAtCenter:!0},className:a,loading:o,menu:s,overlayClassName:c,placement:l=`bottomRight`,type:u=`primary`,...d}){return(0,t.jsx)(e.Dropdown.Button,{...d,align:n,arrow:i,className:r(`zh-dropdown-button`,a),loading:A(o),menu:s,overlayClassName:Re(r(s?.multiple&&`zh-dropdown-popup--multiple`,c)),placement:l,type:u})}var Be=Object.assign(W,{Button:ze});Be.displayName=`Dropdown`,ze.displayName=`Dropdown.Button`;var Ve=`zh-empty`;function G(e){return r(Ve,e)}function He({className:n,...r}){return(0,t.jsx)(e.Empty,{...r,className:G(n)})}var Ue=Object.assign(He,{displayName:`Empty`,PRESENTED_IMAGE_DEFAULT:e.Empty.PRESENTED_IMAGE_DEFAULT,PRESENTED_IMAGE_SIMPLE:e.Empty.PRESENTED_IMAGE_SIMPLE}),We=`zh-form`,Ge=`zh-form-item`;function Ke(e){return r(We,e)}function qe(e){return r(Ge,e)}var Je=e.Form,Ye=e.Form.Item;function K({className:e,layout:n=`horizontal`,rootClassName:i,variant:a=`outlined`,...o}){let s=Ke(e);return(0,t.jsx)(Je,{...o,className:s,layout:n,rootClassName:r(s,i),variant:a})}function Xe({className:e,rootClassName:n,...i}){let a=qe(e);return(0,t.jsx)(Ye,{...i,className:a,rootClassName:r(a,n)})}var Ze=Object.assign(K,{ErrorList:e.Form.ErrorList,Item:Object.assign(Xe,{useStatus:e.Form.Item.useStatus}),List:e.Form.List,Provider:e.Form.Provider,useForm:e.Form.useForm,useFormInstance:e.Form.useFormInstance,useWatch:e.Form.useWatch});Ze.displayName=`Form`,Ze.Item.displayName=`Form.Item`;var Qe=[{key:`operation-analysis`,label:`运营分析`},{key:`logistics-tracking`,label:`物流跟踪`},{key:`waybill-management`,label:`运单管理`},{key:`network-freight`,label:`网络货运`},{key:`ship-management`,label:`船舶管理`},{key:`monitor-management`,label:`监控管理`},{key:`user-management`,label:`用户管理`},{key:`user-operation`,label:`用户运营`},{key:`fuel-management`,label:`加油管理`},{key:`system-management`,label:`系统管理`}],$e=`zh-header`,et=`zh-header-nav`,tt=`zh-header-nav-item`;function nt(e){return r($e,e)}function rt(e){return r(et,e)}function it(e,t){return r(tt,e&&`${tt}--active`,t)}function at(){return(0,t.jsx)(`span`,{className:`zh-header-logo-mark`,"aria-hidden":`true`,children:(0,t.jsx)(S,{name:`ship`,size:20})})}function ot(e,t,r){let i=it(t),a={"aria-current":t?`page`:void 0,className:i},o=t=>{if(e.disabled){t.preventDefault();return}r?.(e,t)};return e.href?(0,n.createElement)(`a`,{...a,href:e.href,key:e.key,onClick:o},e.label):(0,n.createElement)(`button`,{...a,disabled:e.disabled,key:e.key,onClick:o,type:`button`},e.label)}function st({activeKey:e,brand:n=`链云船务`,className:r,items:i=Qe,logo:a=(0,t.jsx)(at,{}),onNavClick:o,rightExtra:s,userName:c=`周女士`,...l}){let u=e??i[0]?.key;return(0,t.jsxs)(`header`,{...l,className:nt(r),children:[(0,t.jsxs)(`div`,{className:`zh-header-brand`,children:[a,(0,t.jsx)(`span`,{className:`zh-header-brand-text`,children:n})]}),(0,t.jsx)(`nav`,{className:rt(),"aria-label":`顶部一级导航`,children:i.map(e=>ot(e,e.key===u,o))}),(0,t.jsxs)(`div`,{className:`zh-header-user`,children:[s,(0,t.jsx)(S,{className:`zh-header-user-icon`,name:`fullscreen`,size:16}),(0,t.jsx)(`span`,{className:`zh-header-user-name`,children:c})]})]})}st.displayName=`Header`;var ct=`zh-image`,lt=`zh-image-preview-group`;function ut(e){return r(ct,e)}function dt(e){return r(lt,e)}function ft({className:n,...r}){return(0,t.jsx)(e.Image,{...r,className:ut(n)})}function pt({children:n,...r}){return(0,t.jsx)(`span`,{className:dt(),children:(0,t.jsx)(e.Image.PreviewGroup,{...r,children:n})})}var mt=Object.assign(ft,{PreviewGroup:pt});mt.displayName=`Image`,pt.displayName=`Image.PreviewGroup`;var ht=`zh-input`;function gt(e,t){return t??`outlined`}function _t(e,t){return r(ht,`${ht}--${t?`filled`:`outlined`}`,e)}var vt=(0,n.forwardRef)(function({className:n,filled:i=!1,rootClassName:a,variant:o,...s},c){let l=_t(n,i);return(0,t.jsx)(e.Input,{...s,ref:c,className:l,"data-filled":i?`on`:`off`,rootClassName:r(l,a),variant:gt(i,o)})});function yt({className:n,filled:i=!1,rootClassName:a,variant:o,...s}){let c=_t(n,i);return(0,t.jsx)(e.Input.TextArea,{...s,className:c,"data-filled":i?`on`:`off`,rootClassName:r(c,a),variant:gt(i,o)})}function bt({className:n,filled:i=!1,rootClassName:a,variant:o,...s}){let c=_t(n,i);return(0,t.jsx)(e.Input.Password,{...s,className:c,"data-filled":i?`on`:`off`,rootClassName:r(c,a),variant:gt(i,o)})}function xt({className:n,filled:i=!1,loadingIcon:a,rootClassName:o,variant:s,...c}){let l=_t(n,i);return(0,t.jsx)(e.ConfigProvider,{button:{loadingIcon:a??(0,t.jsx)(k,{})},children:(0,t.jsx)(e.Input.Search,{...c,className:l,"data-filled":i?`on`:`off`,rootClassName:r(l,o),variant:gt(i,s)})})}var St=Object.assign(vt,{Group:e.Input.Group,Password:bt,Search:xt,TextArea:yt});St.displayName=`Input`,yt.displayName=`Input.TextArea`,bt.displayName=`Input.Password`,xt.displayName=`Input.Search`;function Ct(){return(0,t.jsx)(k,{size:`var(--zh-loading-size)`})}function wt({children:e,className:n,size:r,spinning:i=!0,style:a,text:o=`加载中...`,type:s}){let c=E(s);return i?(0,t.jsxs)(`span`,{className:te(n,T(r),c),role:`status`,style:a,children:[c===`text`?null:(0,t.jsx)(Ct,{}),c===`icon`?null:(0,t.jsx)(`span`,{className:`zh-loading-text`,children:o})]}):e?(0,t.jsx)(t.Fragment,{children:e}):null}function Tt({className:e,mask:n,...r}){return(0,t.jsx)(`div`,{className:O(e,n),children:(0,t.jsx)(wt,{...r})})}var Et=Object.assign(wt,{Overlay:Tt});Et.displayName=`Loading`,Tt.displayName=`Loading.Overlay`;var Dt=[{key:`logistics-dashboard`,label:`物流看板`},{key:`match-cargo`,label:`匹配货源`},{key:`match-ship`,label:`匹配船舶`},{key:`demand-conversion`,label:`需求转化`},{key:`user-behavior`,label:`用户行为`},{key:`share-statistics`,label:`分享统计`},{key:`terminal-flow-analysis`,label:`码头流向分析`},{key:`reference-data-analysis`,label:`参考数据分析`}],Ot=`zh-menu`;function kt(e){return r(Ot,e)}function At(e){let t=e[0]?.key;return t==null?void 0:[String(t)]}var jt=(0,n.forwardRef)(function({className:n,defaultSelectedKeys:r,inlineIndent:i=0,items:a=Dt,mode:o=`inline`,selectedKeys:s,tooltip:c=!1,...l},u){let d=s==null&&r==null?At(a):r;return(0,t.jsx)(e.Menu,{...l,ref:u,className:kt(n),defaultSelectedKeys:d,inlineIndent:i,items:a,mode:o,selectedKeys:s,tooltip:c})}),Mt=Object.assign(jt,{Divider:e.Menu.Divider,Item:e.Menu.Item,ItemGroup:e.Menu.ItemGroup,SubMenu:e.Menu.SubMenu});Mt.displayName=`Menu`;var Nt=`zh-pagination`;function Pt(e){return r(Nt,e)}var Ft={items_per_page:`条/页`,jump_to:`前往`,jump_to_confirm:`确定`,page:`页`,page_size:`页码`,prev_page:`上一页`,next_page:`下一页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,prev_5:`向前 5 页`,next_5:`向后 5 页`};function It({className:n,locale:i,pageSizeOptions:a=[20,50,100],rootClassName:o,showSizeChanger:s=!1,...c}){let l=Pt(n);return(0,t.jsx)(e.Pagination,{...c,className:l,locale:{...Ft,...i},pageSizeOptions:a,rootClassName:r(l,o),showSizeChanger:s})}It.displayName=`Pagination`;var Lt=`zh-progress`;function Rt(e){return e??`bar`}function zt(e=0){return Math.min(100,Math.max(0,e))}function Bt(e,t){return r(Lt,`${Lt}--variant-${Rt(t)}`,e)}function Vt(e){return`${e}%`}function Ht({amount:e=`0.00/2,000.00`,className:n,format:r=Vt,percent:i=0,progressVariant:a,showAmount:o,showInfo:s=!0,style:c,...l}){let u=Rt(a),d=zt(i),f=o??u===`bar`,p=s&&(u===`line`||d>0),m=r(d),h={...c,"--zh-progress-percent":`${d}%`};return(0,t.jsxs)(`div`,{...l,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":d,className:Bt(n,u),role:`progressbar`,style:h,children:[f?(0,t.jsx)(`span`,{className:`zh-progress-amount`,children:e}):null,(0,t.jsxs)(`span`,{className:`zh-progress-main`,children:[(0,t.jsx)(`span`,{className:`zh-progress-track`,children:(0,t.jsx)(`span`,{className:`zh-progress-fill`,children:u===`bar`&&p?(0,t.jsx)(`span`,{className:`zh-progress-fill-text`,children:m}):null})}),u===`line`&&p?(0,t.jsx)(`span`,{className:`zh-progress-text`,children:m}):null]})]})}Ht.displayName=`Progress`;var Ut=`zh-radio`,Wt=`zh-radio-group`;function Gt(e,t,n){return r(Ut,`${Ut}--size-${t}`,n&&`${Ut}--border`,e)}function Kt(e,t,n){return r(Wt,`${Wt}--size-${t}`,`${Wt}--variant-${n}`,e)}function qt({border:n=!1,className:r,size:i=`default`,...a}){return(0,t.jsx)(e.Radio,{...a,className:Gt(r,i,n),"data-border":n?`on`:`off`,"data-size":i})}function Jt({className:n,size:r=`default`,...i}){return(0,t.jsx)(e.Radio.Button,{...i,className:Gt(n,r,!0),"data-border":`on`,"data-size":r})}function Yt({buttonStyle:n,className:r,optionType:i,size:a=`default`,variant:o=`icon`,...s}){let c=i??(o===`button`?`button`:`default`),l=n??(o===`button`?`solid`:`outline`);return(0,t.jsx)(e.Radio.Group,{...s,buttonStyle:l,className:Kt(r,a,o),"data-size":a,"data-variant":o,optionType:c,size:a==="default"?`middle`:a})}qt.displayName=`Radio`,Jt.displayName=`RadioButton`,Yt.displayName=`RadioGroup`;var Xt=`zh-result`;function Zt(e=`info`){return e===`error`||e===`danger`?`danger`:e===`success`||e===`warning`||e===`custom`?e:`info`}function Qt(e=`info`){return e===`danger`?`error`:e===`custom`?`info`:e}function $t(e,t=`info`){return r(Xt,`${Xt}--status-${Zt(t)}`,e)}function en(e=`info`){return e===`success`||e===`info`||e===`warning`||e===`error`||e===`danger`}function tn({status:e}){return(0,t.jsx)(`span`,{"aria-hidden":`true`,className:`zh-result-status-icon zh-result-status-icon--${e}`})}function nn({className:n,icon:i,rootClassName:a,status:o=`info`,...s}){let c=Zt(o),l=$t(n,o),u=i===void 0?en(o)?(0,t.jsx)(tn,{status:c}):null:i;return(0,t.jsx)(e.Result,{...s,className:l,icon:u,rootClassName:r(l,a),status:Qt(o)})}nn.displayName=`Result`;var rn=`zh-select`,an=`zh-select-popup`;function on(e){return r(rn,e)}function sn(e){return r(an,e)}function cn({className:n,loadingIcon:i=(0,t.jsx)(k,{}),popupClassName:a,rootClassName:o,size:s=`middle`,variant:c=`outlined`,...l},u){let d=on(n);return(0,t.jsx)(e.Select,{...l,ref:u,className:d,loadingIcon:i,popupClassName:sn(a),rootClassName:r(d,o),size:s,variant:c})}var ln=(0,n.forwardRef)(cn);ln.displayName=`Select`;var un=ln,dn=`zh-steps`,fn=`zh-steps-icon`;function pn(e){return e??`default`}function mn(e,t){return(e??t)===`vertical`?`vertical`:`horizontal`}function hn(e,t,n){let i=pn(t),a=mn(n);return r(dn,`${dn}--type-${i}`,`${dn}--orientation-${a}`,e)}function gn(e,t){return r(fn,`${fn}--type-${e}`,`${fn}--status-${t}`)}function _n(e,n,r){return e===`status`||n===`error`?(0,t.jsx)(`span`,{className:`zh-steps-icon-mark`,"aria-hidden":`true`}):(0,t.jsx)(`span`,{className:`zh-steps-icon-number`,children:r+1})}function vn(e,n){return(r,i)=>{let a=i.item.status??`wait`,o=i.components.Icon,s=i.item.icon?r:(0,t.jsx)(o,{children:(0,t.jsx)(`span`,{className:gn(e,a),children:_n(e,a,i.index)})});return n?n(s,i):s}}function yn({className:n,direction:i,iconRender:a,orientation:o,rootClassName:s,size:c=`middle`,stepType:l,...u}){let d=pn(l),f=hn(n,d,mn(o,i));return(0,t.jsx)(e.Steps,{...u,className:f,direction:i,iconRender:vn(d,a),orientation:o,rootClassName:r(f,s),size:c})}yn.displayName=`Steps`;var bn=`zh-switch`;function xn(e){return e===`small`?`small`:`default`}function Sn(e,t){return r(bn,`${bn}--size-${t}`,e)}function Cn({className:n,size:r=`default`,...i}){return(0,t.jsx)(e.Switch,{...i,className:Sn(n,r),"data-size":r,size:xn(r)})}Cn.displayName=`Switch`;var wn={close:(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.4419 12.4419C12.1979 12.686 11.8021 12.686 11.5581 12.4419L8 8.88388L4.44194 12.4419C4.19786 12.686 3.80214 12.686 3.55806 12.4419C3.31398 12.1979 3.31398 11.8021 3.55806 11.5581L7.11612 8L3.55806 4.44194C3.31398 4.19786 3.31398 3.80214 3.55806 3.55806C3.80213 3.31398 4.19786 3.31398 4.44194 3.55806L8 7.11612L11.5581 3.55806C11.8021 3.31398 12.1979 3.31398 12.4419 3.55806C12.686 3.80214 12.686 4.19786 12.4419 4.44194L8.88388 8L12.4419 11.5581C12.686 11.8021 12.686 12.1979 12.4419 12.4419Z`}),"close-all":(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.501 0.699219C14.4946 0.699694 15.3006 1.50635 15.3008 2.5C15.3006 3.32027 14.7505 4.0107 14 4.22754V11.7705C14.7508 11.9873 15.3006 12.6796 15.3008 13.5C15.3006 14.4936 14.4946 15.2993 13.501 15.2998C12.6806 15.2998 11.9895 14.7506 11.7725 14H4.22754C4.01066 14.7505 3.32022 15.2996 2.5 15.2998C1.5062 15.2996 0.69943 14.4938 0.699219 13.5C0.699382 12.6797 1.2493 11.9875 2 11.7705V4.22852C1.24945 4.01159 0.700369 3.32018 0.700195 2.5C0.700393 1.50606 1.50699 0.699219 2.50098 0.699219C3.32097 0.699611 4.01166 1.24956 4.22852 2H11.7715C11.9885 1.24929 12.6806 0.699219 13.501 0.699219ZM4.19629 3.09961C4.01553 3.61082 3.61076 4.01344 3.09961 4.19434V11.8037C3.61091 11.9846 4.01543 12.389 4.19629 12.9004H11.8037C11.9846 12.3891 12.3892 11.9847 12.9004 11.8037V4.19531C12.3893 4.01442 11.9856 3.61064 11.8047 3.09961H4.19629Z`}),"close-other":(0,t.jsx)(`path`,{d:`M8.00098 0.299805C8.87272 0.300221 9.59932 0.920823 9.76465 1.74414C11.9351 2.35515 13.6435 4.06406 14.2549 6.23438C15.079 6.39927 15.7 7.12752 15.7002 8C15.7 8.87242 15.0789 9.5998 14.2549 9.76465C13.6412 11.9441 11.9215 13.658 9.73828 14.2627C9.53395 15.0321 8.83458 15.6002 8.00098 15.6006C7.16699 15.6006 6.46625 15.0324 6.26172 14.2627C4.0784 13.658 2.35772 11.9443 1.74414 9.76465C0.920748 9.59923 0.29999 8.8719 0.299805 8C0.299993 7.12805 0.920672 6.39984 1.74414 6.23438C2.3554 4.06424 4.06424 2.3554 6.23438 1.74414C6.39979 0.92045 7.12878 0.299805 8.00098 0.299805ZM9.63379 2.85156C9.34891 3.46969 8.72608 3.90004 8.00098 3.90039C7.27549 3.90039 6.65136 3.46996 6.36621 2.85156C4.69818 3.38049 3.38077 4.69733 2.85156 6.36523C3.47011 6.65023 3.90023 7.27449 3.90039 8C3.90024 8.72524 3.46973 9.34783 2.85156 9.63281C3.3762 11.2883 4.67733 12.5965 6.32715 13.1338C6.59225 12.4694 7.24232 12 8.00098 12C8.75912 12.0004 9.40694 12.4699 9.67188 13.1338C11.3217 12.5968 12.6225 11.289 13.1475 9.63379C12.5296 9.34863 12.0998 8.72491 12.0996 8C12.0998 7.27496 12.5294 6.65049 13.1475 6.36523C12.6182 4.69746 11.3017 3.38046 9.63379 2.85156Z`}),left:(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.4596 3.54039C10.7135 3.79423 10.7135 4.20578 10.4596 4.45963L6.91926 8.00001L10.4596 11.5404C10.7135 11.7942 10.7135 12.2058 10.4596 12.4596C10.2058 12.7135 9.79425 12.7135 9.5404 12.4596L5.5404 8.45963C5.28656 8.20578 5.28656 7.79423 5.5404 7.54039L9.54041 3.54039C9.79425 3.28655 10.2058 3.28655 10.4596 3.54039Z`}),more:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`path`,{d:`M14.5 0.75C14.9142 0.75 15.25 1.08579 15.25 1.5C15.25 1.91421 14.9142 2.25 14.5 2.25H1.5C1.08579 2.25 0.75 1.91421 0.75 1.5C0.75 1.08579 1.08579 0.75 1.5 0.75H14.5Z`}),(0,t.jsx)(`path`,{d:`M14.5 7.25C14.9142 7.25 15.25 7.58579 15.25 8C15.25 8.41421 14.9142 8.75 14.5 8.75H1.5C1.08579 8.75 0.75 8.41421 0.75 8C0.75 7.58579 1.08579 7.25 1.5 7.25H14.5Z`}),(0,t.jsx)(`path`,{d:`M14.5 13.75C14.9142 13.75 15.25 14.0858 15.25 14.5C15.25 14.9142 14.9142 15.25 14.5 15.25H1.5C1.08579 15.25 0.75 14.9142 0.75 14.5C0.75 14.0858 1.08579 13.75 1.5 13.75H14.5Z`})]}),right:(0,t.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.54036 12.4596C5.28652 12.2058 5.28652 11.7942 5.54036 11.5404L9.08074 7.99999L5.54036 4.45961C5.28652 4.20577 5.28652 3.79422 5.54036 3.54037C5.7942 3.28653 6.20575 3.28653 6.45959 3.54037L10.4596 7.54037C10.7134 7.79421 10.7134 8.20577 10.4596 8.45961L6.45959 12.4596C6.20575 12.7135 5.7942 12.7135 5.54036 12.4596Z`})};function Tn({className:e,name:n,size:r=16,...i}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,className:e,"data-tab-panel-icon":n,fill:`currentColor`,height:r,viewBox:`0 0 16 16`,width:r,xmlns:`http://www.w3.org/2000/svg`,...i,children:wn[n]})}var En=`zh-tab-panel`,Dn=`zh-tab-panel-popup`,On=[{action:`remove-other`,label:`关闭其它`},{action:`remove-all`,label:`关闭所有`}];function kn(e,t=!1){if(t)return`editable-card`;if(e===`card`||e===`border-card`)return`card`}function An(e=`top`){return e}function jn({addable:e,closable:t,editable:n}){return{defaultClosable:!!(t||n),hideAdd:!(e||n),isEditable:!!(e||t||n)}}function q(e,t){return e.name===void 0?e.key===void 0?String(t):e.key:e.name}function Mn(e,t){return e||n.Children.toArray(t).filter(n.isValidElement).map(e=>{let t=e,{children:n,...r}=t.props;return{...r,children:n,key:t.key===null?r.key:String(t.key)}})}function Nn(e,{children:t,defaultClosable:n=!1}={}){return Mn(e,t).map((e,t)=>{let r=q(e,t);return{children:e.children,closable:e.closable??n,disabled:e.disabled,forceRender:!e.lazy,key:String(r),label:e.label}})}function Pn(e,t=[]){let n=t.findIndex((t,n)=>String(q(t,n))===e);return n<0?e:q(t[n],n)}async function Fn({activeName:e,beforeLeave:t,nextName:n}){return!t||n===e?n:await t(n,e)===!1?e:n}function In(e,t=[]){let n=t.findIndex((t,n)=>q(t,n)===e),r=n>=0?t[n]:void 0;return{disabled:r?.disabled,index:n,label:r?.label,name:e}}function Ln(){return On.map(e=>({...e}))}function Rn(e){return Array.isArray(e)?e:e?Ln():[]}function zn(e=[],t={}){return(n,r)=>{if(r===`add`){t.onTabAdd?.(),t.onEdit?.(void 0,r);return}let i=n?Pn(n,e):void 0;i!==void 0&&t.onTabRemove?.(i),t.onEdit?.(i,r)}}function Bn(e=[],t){return(n,r)=>{let i=Pn(String(r),e);t?.(n,In(i,e))}}function Vn(e=[],t){return(n,r)=>{let i=Pn(n,e);t?.(In(i,e),r)}}function Hn(e,t={}){return r(En,t.type===`border-card`&&`zh-tab-panel--border-card`,t.stretch&&`zh-tab-panel--stretch`,t.tabPosition&&t.tabPosition!==`top`&&`zh-tab-panel--${t.tabPosition}`,e)}function Un(e){return r(Dn,e)}function Wn(e){return e===`remove-other`?`close-other`:`close-all`}var Gn=(0,n.forwardRef)(function({addIcon:r,addable:i,beforeLeave:a,children:o,className:s,closable:c,contextMenu:l,defaultValue:u,editable:d,items:f,modelValue:p,onContextMenuAction:m,onEdit:h,onTabAdd:g,onTabChange:_,onTabClick:v,onTabRemove:y,stretch:b,tabIndex:ee,tabPosition:x,type:S,...C},w){let T=jn({addable:i,closable:c,editable:d}),E=Hn(s,{stretch:b,tabPosition:x,type:S}),D=(0,n.useRef)(null),te=(0,n.useRef)(null),O=(0,n.useMemo)(()=>Mn(f,o),[o,f]),k=(0,n.useMemo)(()=>Nn(O,{defaultClosable:T.defaultClosable}),[T.defaultClosable,O]),A=(0,n.useMemo)(()=>Rn(l),[l]),[j,M]=(0,n.useState)(null),[ne,re]=(0,n.useState)(p??u??(O[0]?q(O[0],0):void 0)),N=p??ne,P=(0,n.useMemo)(()=>zn(O,{onEdit:h,onTabAdd:g,onTabRemove:y}),[h,g,y,O]),ie=(0,n.useMemo)(()=>Bn(O,m),[m,O]),F=(0,n.useCallback)(()=>M(null),[]),ae=(0,n.useCallback)((e={})=>{if(!A.length)return;let t=O[0]?q(O[0],0):void 0,n=e.name??N??t;if(n===void 0)return;let r=(Array.from(D.current?.querySelectorAll(`.ant-tabs-tab`)??[]).find(e=>e.getAttribute(`data-node-key`)===String(n))??D.current?.querySelector(`.ant-tabs-tab-active`))?.getBoundingClientRect(),i=D.current?.getBoundingClientRect();M({left:e.left??(r?r.left+r.width/2:i?.right??0),name:n,top:e.top??(r?r.bottom+8:(i?.bottom??0)+8)})},[N,A.length,O]);return(0,n.useImperativeHandle)(w,()=>({nativeElement:te.current?.nativeElement??null,openContextMenu:ae}),[ae]),(0,n.useEffect)(()=>{if(!j)return;let e=()=>F(),t=e=>{e.key===`Escape`&&F()};return window.addEventListener(`click`,e),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),window.addEventListener(`keydown`,t),()=>{window.removeEventListener(`click`,e),window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0),window.removeEventListener(`keydown`,t)}},[F,j]),(0,t.jsxs)(`div`,{ref:D,className:`zh-tab-panel-host`,children:[(0,t.jsx)(e.Tabs,{...C,ref:te,addIcon:r,activeKey:N===void 0?void 0:String(N),className:E,hideAdd:T.hideAdd,items:k,moreIcon:(0,t.jsx)(`span`,{className:`zh-tab-panel__more-text`,children:`...`}),removeIcon:(0,t.jsx)(Tn,{name:`close`,className:`zh-tab-panel__remove-icon`,size:8}),onChange:async e=>{let t=Pn(e,O),n=N??t,r=await Fn({activeName:n,beforeLeave:a,nextName:t});r!==n&&(re(r),_?.(r))},onEdit:(e,t)=>{P(typeof e==`string`?e:void 0,t)},onTabClick:Vn(O,v),popupClassName:Un(),rootClassName:E,tabIndex:ee,tabPosition:An(x),type:kn(S,T.isEditable)}),j?(0,t.jsx)(`div`,{className:`zh-tab-panel-context-menu`,role:`menu`,style:{left:j.left,top:j.top},children:A.map(e=>(0,t.jsxs)(`button`,{className:`zh-tab-panel-context-menu__item`,disabled:e.disabled,role:`menuitem`,type:`button`,onClick:t=>{t.stopPropagation(),ie(e.action,j.name),F()},children:[(0,t.jsx)(Tn,{name:Wn(e.action),className:`zh-tab-panel-context-menu__icon`}),(0,t.jsx)(`span`,{className:`zh-tab-panel-context-menu__text`,children:e.label??e.action})]},e.action))}):null]})});function Kn(e){return null}var qn=Object.assign(Gn,{TabPane:Kn});qn.displayName=`TabPanel`;var Jn=`zh-tabs`,Yn=`zh-tabs-popup`;function Xn(e){return r(Jn,e)}function Zn(e){return r(Yn,e)}var Qn=(0,n.forwardRef)(function({className:n,popupClassName:i,rootClassName:a,...o},s){let c=Xn(n);return(0,t.jsx)(e.Tabs,{...o,ref:s,className:c,popupClassName:Zn(i),rootClassName:r(c,a)})}),$n=Object.assign(Qn,{TabPane:e.Tabs.TabPane});$n.displayName=`Tabs`;var J=`zh-table`;function er(e,t={}){return r(J,`${J}--size-${tr(t.size)}`,t.border&&`${J}--border`,t.fit===!1&&`${J}--not-fit`,t.highlightCurrentRow&&`${J}--highlight-current-row`,t.nativeScrollbar&&`${J}--native-scrollbar`,t.scrollbarAlwaysOn&&`${J}--scrollbar-always-on`,t.stripe&&`${J}--stripe`,t.tableLayout===`auto`&&`${J}--layout-auto`,e)}function tr(e=`default`){return e}function nr(e=`default`){return e===`large`?`large`:e===`small`?`small`:`middle`}function rr(e){return e===!0?`left`:e||void 0}function ir(e){return e===`ascending`?`ascend`:e===`descending`?`descend`:null}function ar(e){return e===`ascend`?`ascending`:e===`descend`?`descending`:null}function or(e){return e?.map(ir)}function sr(e){return e.prop??e.property}function cr(e,t){return e.columnKey??e.key??sr(e)??`column-${t}`}function lr(e,t){if(t)return t.split(`.`).reduce((e,t)=>{if(e&&typeof e==`object`)return e[t]},e)}function Y(e,t,n){if(typeof t==`function`)return t(e);if(typeof t==`string`){let n=lr(e,t);if(typeof n==`string`||typeof n==`number`)return n}let r=e,i=r.key??r.id;return typeof i==`string`||typeof i==`number`?i:n}function ur(e,t,n){if(n!==void 0)return dr(e).find((e,r)=>Y(e,t,r)===n)}function dr(e,t=`children`){return e.flatMap(e=>{let n=lr(e,t);return[e,...Array.isArray(n)?dr(n,t):[]]})}function fr(e,t,n,r,i=`children`){return e.map((e,a)=>{if(Y(e,r,a)===t)return{...e,[i]:n};let o=lr(e,i);return Array.isArray(o)?{...e,[i]:fr(o,t,n,r,i)}:e})}function X(e,t){return typeof e==`function`?e(t):e}function pr(e,t){return X(e,t)}function mr(e,t){return X(e,t)}function hr(e,t){return X(e,t)}function gr(e,t){return X(e,t)}function _r(e,t){return X(e,t)}function vr(e,t){return X(e,t)}function yr(e,t){return X(e,t)}function br(e,t){return X(e,t)}function xr(e){if(!e)return{};if(Array.isArray(e)){let[t,n]=e;return{colSpan:n,rowSpan:t}}return{colSpan:e.colSpan??e.colspan,rowSpan:e.rowSpan??e.rowspan}}function Sr(e,t,n,r){if(!e)return 0;let i=(e,t)=>typeof t==`function`?t(e,r.indexOf(e),r):Array.isArray(t)?t.map(t=>lr(e,t)).join(`|`):lr(e,t),a=i(t,e),o=i(n,e);return String(a??``).localeCompare(String(o??``))}function Cr(e){return null}function wr(e){return null}Cr.__ZH_TABLE_COLUMN=`column`,wr.__ZH_TABLE_COLUMN=`group`;function Tr(e){return(0,n.isValidElement)(e)?!!e.type.__ZH_TABLE_COLUMN:!1}function Er(e){return n.Children.toArray(e).flatMap(e=>{if(!Tr(e))return[];let t=e.type.__ZH_TABLE_COLUMN,{children:n,...r}=e.props;return t===`group`?[{...r,children:Er(n)}]:[r]})}function Dr(e,t){return e?.length?e:Er(t)}function Or(e){return e.flatMap(e=>Array.isArray(e.children)?Or(e.children):[e])}function kr(e,t){for(let n of e){if(n.type===t)return n;if(Array.isArray(n.children)){let e=kr(n.children,t);if(e)return e}}}function Ar(e,t){return e.header?e.header({column:e,columnIndex:t}):e.renderHeader?e.renderHeader({column:e,columnIndex:t}):e.label}function jr(e,t){if(e.sortable)return e.sortable===`custom`?!0:e.sortMethod?e.sortMethod:e.sortBy?(n,r)=>Sr(e.sortBy,n,r,t):!0}function Mr(e,t,n){if(e.type===`selection`||e.type===`expand`)return null;let i=sr(e),a=cr(e,t),o=Array.isArray(e.children)?e.children.map((e,t)=>Mr(e,t,n)).filter(e=>!!e):void 0,s=e.showOverflowTooltip??n.showOverflowTooltip?{showTitle:!0}:void 0,c=Object.prototype.hasOwnProperty.call(n.filterState,a)?n.filterState[a]:e.filteredValue,l={column:e,columnIndex:t};return{__zhColumn:e,align:e.align,children:o,className:e.className,dataIndex:i,defaultSortOrder:n.sortState.prop===i?ir(n.sortState.order):void 0,ellipsis:s,filterIcon:typeof e.filterIcon==`function`?t=>e.filterIcon({column:e,filtered:t}):e.filterIcon,filterMultiple:e.filterMultiple,filteredValue:c,filters:e.filters,fixed:rr(e.fixed),key:a,minWidth:e.minWidth?Number(e.minWidth):void 0,onCell:(a,o)=>{let s={cellValue:lr(a,i),column:e,columnIndex:t,row:a,rowIndex:o??0};return{...xr(n.spanMethod?.(s)),className:r(hr(n.cellClassName,s)),onClick:t=>n.onCellClick?.(a,e,t.currentTarget,t),onContextMenu:t=>n.onCellContextmenu?.(a,e,t.currentTarget,t),onDoubleClick:t=>n.onCellDblclick?.(a,e,t.currentTarget,t),onMouseEnter:t=>n.onCellMouseEnter?.(a,e,t.currentTarget,t),onMouseLeave:t=>n.onCellMouseLeave?.(a,e,t.currentTarget,t),style:gr(n.cellStyle,s)}},onFilter:e.filterMethod?(t,n)=>e.filterMethod?.(t,n,e)??!0:void 0,onHeaderCell:()=>({className:r(e.labelClassName,_r(n.headerCellClassName,l)),onClick:t=>n.onHeaderClick?.(e,t),onContextMenu:t=>n.onHeaderContextmenu?.(e,t),style:{textAlign:e.headerAlign??e.align,...vr(n.headerCellStyle,l)}}),render:(r,i,a)=>{let o={cellValue:r,column:e,columnIndex:t,row:i,rowIndex:a};return e.type===`index`?typeof e.index==`function`?e.index(a):e.index??a+1:e.render?e.render(o):e.formatter?e.formatter(i,e,r,a):e.tooltipFormatter??n.tooltipFormatter?(e.tooltipFormatter??n.tooltipFormatter)?.(o):r},resizable:e.resizable,sortDirections:or(e.sortOrders),sorter:jr(e,n.data),sortOrder:n.sortState.prop===i?ir(n.sortState.order):void 0,title:Ar(e,t),width:e.width}}function Nr(e,t){return e.map((e,n)=>Mr(e,n,t)).filter(e=>!!e)}function Pr(e){let t=Array.isArray(e)?e[0]:e,n=t?.column?.__zhColumn,r=n?sr(n):String(t?.field??``);return{column:n,order:ar(t?.order),prop:r}}function Fr(e,t,n){let r=new Set(n);return dr(e).filter((e,n)=>r.has(Y(e,t,n)))}function Ir({allowDragLastColumn:i,append:a,appendFilterPanelTo:o,border:s=!1,cellClassName:c,cellStyle:l,children:u,className:d,columns:f,currentRowKey:p,data:m=[],defaultExpandAll:h=!1,defaultSort:g,empty:_,emptyText:v,expandRowKeys:y,fit:b=!0,flexible:ee,headerCellClassName:x,headerCellStyle:S,headerRowClassName:C,headerRowStyle:w,height:T,highlightCurrentRow:E=!1,indent:D=16,lazy:te=!1,load:O,maxHeight:k,nativeScrollbar:A=!1,onCellClick:j,onCellContextmenu:M,onCellDblclick:ne,onCellMouseEnter:re,onCellMouseLeave:N,onCurrentChange:P,onExpandChange:ie,onFilterChange:F,onHeaderClick:ae,onHeaderContextmenu:oe,onHeaderDragend:se,onRowClick:I,onRowContextmenu:ce,onRowDblclick:L,onScroll:le,onSelect:ue,onSelectAll:de,onSelectionChange:fe,onSortChange:pe,preserveExpandedContent:me,rowClassName:he,rowExpandable:ge,rowKey:R,rowStyle:_e,scrollbarAlwaysOn:ve=!1,scrollbarTabindex:ye,selectOnIndeterminate:be,showHeader:xe=!0,showOverflowTooltip:Se,showSummary:Ce=!1,size:we=`default`,spanMethod:Te,stripe:Ee=!1,style:De,sumText:z=`Sum`,summaryMethod:B,tableLayout:Oe=`fixed`,tooltipEffect:ke,tooltipFormatter:Ae,tooltipOptions:je,treeProps:Me,...Ne},Pe){let Fe=(0,n.useRef)(null),Ie=(0,n.useRef)(null),V=(0,n.useMemo)(()=>Dr(f,u),[u,f]),H=(0,n.useMemo)(()=>Or(V),[V]),U=(0,n.useMemo)(()=>kr(V,`selection`),[V]),Le=(0,n.useMemo)(()=>kr(V,`expand`),[V]),Re=(0,n.useMemo)(()=>H.some(e=>!!e.fixed),[H]),[W,ze]=(0,n.useState)(m),[Be,Ve]=(0,n.useState)(p),[G,He]=(0,n.useState)([]),[Ue,We]=(0,n.useState)(y??[]),[Ge,Ke]=(0,n.useState)({}),[qe,Je]=(0,n.useState)({order:g?.order??null,prop:g?.prop}),Ye=p??Be,K=Me?.children??`children`,Xe=Me?.hasChildren??`hasChildren`;(0,n.useEffect)(()=>{ze(m)},[m]),(0,n.useEffect)(()=>{y&&We(y)},[y]);let Ze=e=>{let t=Fr(W,R,e);return fe?.(t),t},Qe=e=>(He(e),Ze(e)),$e=(0,n.useMemo)(()=>Nr(V,{allColumns:H,cellClassName:c,cellStyle:l,data:W,filterState:Ge,headerCellClassName:x,headerCellStyle:S,onCellClick:j,onCellContextmenu:M,onCellDblclick:ne,onCellMouseEnter:re,onCellMouseLeave:N,onHeaderClick:ae,onHeaderContextmenu:oe,showOverflowTooltip:Se,sortState:qe,spanMethod:Te,tooltipFormatter:Ae}),[c,l,Ge,x,S,H,j,M,ne,re,N,ae,oe,Se,qe,V,Te,W,Ae]),et=(0,n.useMemo)(()=>{let e=T??k;if(!(e===void 0&&!Re))return{x:Re?`max-content`:void 0,y:e}},[Re,T,k]),tt=(0,n.useMemo)(()=>{if(U)return{checkStrictly:!1,columnWidth:U.width,fixed:rr(U.fixed),getCheckboxProps:e=>{let t=dr(W,K).indexOf(e);return{disabled:U.selectable?!U.selectable(e,t):!1}},onChange:e=>{Qe(e)},onSelect:(e,t,n)=>{ue?.(n,e)},onSelectAll:(e,t)=>{de?.(t)},preserveSelectedRowKeys:U.reserveSelection,selectedRowKeys:G,type:`checkbox`}},[K,ue,de,G,U,W]);(0,n.useImperativeHandle)(Pe,()=>({clearFilter:e=>{if(!e?.length){Ke({}),F?.({});return}Ke(t=>{let n={...t};return e.forEach(e=>{n[e]=null}),F?.(n),n})},clearSelection:()=>{Qe([])},clearSort:()=>{Je({order:null}),pe?.({order:null})},columns:V,getHalfSelectionRows:()=>[],getSelectionRows:()=>Fr(W,R,G),nativeElement:Fe.current,scrollTo:e=>{Ie.current?.scrollTo?.(e)},setCurrentRow:e=>{let t=ur(W,R,Ye);Ve(e?Y(e,R,W.indexOf(e)):void 0),P?.(e,t)},setScrollLeft:e=>{Ie.current?.scrollTo?.({left:e})},setScrollTop:e=>{Ie.current?.scrollTo?.({top:e})},sort:(e,t)=>{Je({order:t,prop:e}),pe?.({order:t,prop:e})},toggleAllSelection:()=>{let e=dr(W,K).map((e,t)=>Y(e,R,t));Qe(G.length<e.length?e:[])},toggleRowExpansion:(e,t)=>{let n=Y(e,R,W.indexOf(e));We(r=>{let i=r.includes(n),a=t??!i,o=a?Array.from(new Set([...r,n])):r.filter(e=>e!==n);return ie?.(e,a),o})},toggleRowSelection:(e,t)=>{let n=Y(e,R,W.indexOf(e)),r=G.includes(n),i=Qe(t??!r?Array.from(new Set([...G,n])):G.filter(e=>e!==n));ue?.(i,e)},updateKeyChildren:(e,t)=>{ze(n=>fr(n,e,t,R,K))}}),[K,P,ie,F,ue,fe,pe,Ye,R,G,V,W]);let nt=er(d,{border:s,fit:b,highlightCurrentRow:E,nativeScrollbar:A,scrollbarAlwaysOn:ve,size:we,stripe:Ee,tableLayout:Oe});return(0,t.jsxs)(`div`,{...Ne,ref:Fe,className:`zh-table-host`,style:De,children:[(0,t.jsx)(e.Table,{ref:Ie,bordered:s,className:nt,columns:$e,dataSource:W,defaultExpandAllRows:h,expandable:{childrenColumnName:K,defaultExpandAllRows:h,expandedRowKeys:Ue,expandedRowRender:Le?.expand?(e,t,n,r)=>r?Le.expand?.({row:e,rowIndex:W.indexOf(e)}):null:void 0,indentSize:D,onExpand:(e,t)=>{let n=Y(t,R,W.indexOf(t));We(t=>e?Array.from(new Set([...t,n])):t.filter(e=>e!==n)),te&&O&&e&&t[Xe]&&O(t,{expanded:e},e=>{ze(t=>fr(t,n,e,R,K))}),ie?.(t,e)},rowExpandable:ge},locale:{emptyText:_??v},onChange:(e,t,n)=>{let r=Pr(n);Je({order:r.order,prop:r.prop}),pe?.(r);let i=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t]));Ke(i),F?.(i)},onHeaderRow:()=>({className:r(yr(C,{columns:V,rowIndex:0})),style:br(w,{columns:V,rowIndex:0})}),onRow:(e,t)=>{let n=Y(e,R,t??0),i=E&&n===Ye,a={row:e,rowIndex:t??0},o=ur(W,R,Ye);return{className:r(pr(he,a),i&&`zh-table__row--current`),onClick:t=>{E&&(Ve(n),P?.(e,o)),I?.(e,void 0,t)},onContextMenu:t=>ce?.(e,void 0,t),onDoubleClick:t=>L?.(e,void 0,t),style:mr(_e,a)}},onScroll:le,pagination:!1,rowKey:(e,t)=>Y(e,R,t??W.indexOf(e)),rowSelection:tt,scroll:et,showHeader:xe,size:nr(we),summary:Ce?()=>{let n=B?B({columns:H,data:W}):H.map((e,t)=>t===0?z:null);return(0,t.jsx)(e.Table.Summary.Row,{children:n.map((n,r)=>(0,t.jsx)(e.Table.Summary.Cell,{index:r,children:n},r))})}:void 0,tableLayout:Oe}),a?(0,t.jsx)(`div`,{className:`zh-table__append`,children:a}):null]})}var Lr=Object.assign((0,n.forwardRef)(Ir),{Column:Cr,ColumnGroup:wr});Lr.displayName=`Table`;var Z=`zh-tag`,Rr=`zh-check-tag`;function zr(e=`primary`){return e}function Br(e=`default`){return e}function Vr(e=`light`){return e}function Hr(e=`light`){return e===`dark`?`solid`:e===`plain`?`outlined`:`filled`}function Ur(e,t={}){let n=zr(t.type),i=Br(t.size),a=Vr(t.effect);return r(Z,`${Z}--type-${n}`,`${Z}--size-${i}`,`${Z}--effect-${a}`,t.closable&&`${Z}--closable`,t.hit&&`${Z}--hit`,t.round&&`${Z}--round`,e)}function Wr(e,t=`primary`){return r(Rr,`${Rr}--type-${t}`,e)}function Gr({children:n,className:r,closable:i=!1,color:a,disableTransitions:o=!1,effect:s,hit:c=!1,onClose:l,round:u=!1,size:d,type:f,...p}){let m=zr(f),h=Br(d),g=Vr(s);return(0,t.jsx)(e.Tag,{...p,className:Ur(r,{closable:i,effect:g,hit:c,round:u,size:h,type:m}),closable:i,color:a,"data-disable-transitions":o?`on`:`off`,"data-effect":g,"data-hit":c?`on`:`off`,"data-round":u?`on`:`off`,"data-size":h,"data-type":m,onClose:l,variant:Hr(g),children:n})}function Kr({checked:n=!1,children:r,className:i,disabled:a,onChange:o,type:s,...c}){let l=zr(s);return(0,t.jsx)(e.Tag.CheckableTag,{...c,checked:n,className:Wr(i,l),"data-type":l,disabled:a,onChange:o,children:r})}Gr.displayName=`Tag`,Kr.displayName=`CheckTag`;var qr=`zh-timeline`;function Jr(e){return r(qr,e)}function Yr(e,t){return t==null?null:(0,n.createElement)(`span`,{className:e},t)}function Xr(e){let{children:t,content:r,hideTimestamp:i,placement:a=`bottom`,timestamp:o}=e,s=i?null:Yr(`zh-timeline-timestamp`,o),c=Yr(`zh-timeline-content`,r??t),l=a===`top`?[s,c]:[c,s];return(0,n.createElement)(`div`,{className:`zh-timeline-entry zh-timeline-entry--placement-${a}`},...l)}function Zr(e=`start`,t){return e===`end`?`end`:e===`alternate`?t%2==0?`start`:`end`:e===`alternate-reverse`&&t%2==0?`end`:`start`}function Qr({children:e,className:t,color:n,center:i,dot:a,hideTimestamp:o,hollow:s,icon:c,placement:l,size:u=`normal`,style:d,timestamp:f,type:p,...m}){let h=r(t,i&&`zh-timeline-item--center`,p&&`zh-timeline-item--type-${p}`,u===`large`&&`zh-timeline-item--size-large`,s&&`zh-timeline-item--hollow`);return{...m,className:h,color:n,content:Xr({children:e,hideTimestamp:o,placement:l,timestamp:f}),icon:c??a,style:{...d,...n?{"--timeline-item-dot-color":n}:{}}}}function $r(e=`start`){return e===`alternate`||e===`alternate-reverse`||e===`end`?e===`alternate-reverse`?`alternate`:e:`start`}function ei(e,t=`start`){return e&&e.map((e,n)=>{let{content:r,key:i,...a}=e;return{...Qr({...a,children:r??e.children}),key:i??n,placement:Zr(t,n)}})}function ti({className:n,items:r,mode:i=`start`,...a}){let o=Jr(n),s=ei(r,i);return(0,t.jsx)(e.Timeline,{...a,className:o,items:s,mode:$r(i),rootClassName:o})}function ni(n){return(0,t.jsx)(e.Timeline.Item,{...Qr(n)})}var ri=Object.assign(ti,{Item:ni});ri.displayName=`Timeline`,ni.displayName=`Timeline.Item`;var ii=`zh-tooltip`,ai={"top-start":`topLeft`,top:`top`,"top-end":`topRight`,"right-start":`rightTop`,right:`right`,"right-end":`rightBottom`,"bottom-start":`bottomLeft`,bottom:`bottom`,"bottom-end":`bottomRight`,"left-start":`leftTop`,left:`left`,"left-end":`leftBottom`};function oi(e){return e??`dark`}function si(e,t,n){return r(ii,`${ii}--effect-${oi(t)}`,n&&`${ii}--multiple`,e)}function ci(e=`top-start`){return e in ai?ai[e]:e}function li({effect:n,multiple:r,placement:i=`top-start`,rootClassName:a,...o}){return(0,t.jsx)(e.Tooltip,{...o,placement:ci(i),rootClassName:si(a,n,r)})}li.displayName=`Tooltip`;var ui=`zh-tree`;function di(e){return r(ui,e)}var fi=({expanded:e,isLeaf:n})=>n?(0,t.jsx)(`span`,{className:`zh-tree-switcher-placeholder`}):(0,t.jsx)(`span`,{className:`zh-tree-switcher-icon`,"aria-hidden":`true`,children:(0,t.jsx)(S,{name:e?`chevron-down`:`chevron-right`,size:12})});function pi(e){e.stopPropagation()}function mi({appendText:e=`Append`,className:n,deleteText:i=`Delete`,label:a=`Tree list item`,onAppend:o,onDelete:s,...c}){return(0,t.jsxs)(`span`,{...c,className:r(`zh-tree-actions`,n),children:[(0,t.jsx)(`span`,{className:`zh-tree-actions-label`,children:a}),(0,t.jsxs)(`span`,{className:`zh-tree-actions-buttons`,children:[(0,t.jsx)(`button`,{className:`zh-tree-action-button`,onClick:e=>{pi(e),o?.(e)},type:`button`,children:e}),(0,t.jsx)(`button`,{className:`zh-tree-action-button`,onClick:e=>{pi(e),s?.(e)},type:`button`,children:i})]})]})}function hi({blockNode:n=!0,className:r,switcherIcon:i=fi,switcherLoadingIcon:a=(0,t.jsx)(k,{}),...o}){return(0,t.jsx)(e.Tree,{...o,blockNode:n,className:di(r),switcherIcon:i,switcherLoadingIcon:a})}var gi=Object.assign(hi,{Actions:mi});gi.displayName=`Tree`,mi.displayName=`Tree.Actions`;function _i(...e){return e.filter(Boolean).join(` `)}function vi(e,t){return _i(`zh-upload`,t.drag&&`zh-upload--drag`,`zh-upload--list-${t.listType}`,e)}var yi=0;function Q(e){return{...e}}function bi(e,t){return{name:e.name,percentage:e.percentage,raw:e.raw,response:e.response,size:e.size,status:e.status??`success`,uid:e.uid??xi(t),url:e.url}}function xi(e=0){return yi+=1,Date.now()+yi+e}function Si(e){let t=e;return typeof t.uid!=`number`&&(t.uid=xi()),t}function Ci(e){return{name:e.name,percentage:0,raw:e,size:e.size,status:`ready`,uid:e.uid,url:wi(e)}}function wi(e){if(e.type.startsWith(`image/`)&&!(typeof URL>`u`||typeof URL.createObjectURL!=`function`))return URL.createObjectURL(e)}function Ti(e){return e.uid}function Ei(e){return{percent:e}}async function Di(e,t){return typeof e==`function`?e(t):await e??{}}function Oi(e){if(typeof XMLHttpRequest>`u`){e.onSuccess({});return}let t=new XMLHttpRequest;t.open(e.method,e.action),t.withCredentials=e.withCredentials,Object.entries(e.headers instanceof Headers?Object.fromEntries(e.headers):e.headers).forEach(([e,n])=>t.setRequestHeader(e,n)),t.upload.onprogress=t=>{t.total&&e.onProgress(Ei(Math.round(t.loaded/t.total*100)))},t.onerror=()=>e.onError(Error(`Upload request failed`)),t.onload=()=>{t.status>=200&&t.status<300?e.onSuccess(t.response):e.onError(Error(`Upload request failed with status ${t.status}`))};let n=new FormData;return n.append(e.filename,e.file),Object.entries(e.data).forEach(([e,t])=>{n.append(e,t instanceof Blob?t:String(t))}),t.send(n),t}function ki(e){let t=(e.fileList??[]).map(bi),n=new Map,r=()=>t.map(Q),i=e=>t.find(t=>t.uid===Ti(e)),a=(e,n)=>{let r=t.findIndex(t=>t.uid===e);if(r!==-1)return t[r]={...t[r],...n},t[r]},o=t=>{e.onChange?.(Q(t),r()),e.onFilesUpdate?.()},s=async t=>{if(e.disabled||t.status!==`ready`)return;let i=a(t.uid,{percentage:t.percentage??0,status:`uploading`});if(!i)return;o(i);let s=!1,c=i.raw,l={action:e.action,data:c?await Di(e.data,c):{},file:c??new File([],i.name),filename:e.name??`file`,headers:e.headers??{},method:e.method??`post`,onError:t=>{if(s)return;s=!0;let n=a(i.uid,{status:`fail`});n&&(e.onError?.(t,Q(n),r()),o(n))},onProgress:t=>{if(s)return;let n=a(i.uid,{percentage:t.percent,status:`uploading`});n&&(e.onProgress?.(t,Q(n),r()),o(n))},onSuccess:t=>{if(s)return;s=!0;let n=a(i.uid,{percentage:100,response:t,status:`success`});n&&(e.onSuccess?.(t,Q(n),r()),o(n))},withCredentials:e.withCredentials??!1};try{let t=e.httpRequest?e.httpRequest(l):Oi(l);if(t&&`abort`in t&&typeof t.abort==`function`&&n.set(i.uid,{abort:()=>t.abort()}),t&&`then`in t&&typeof t.then==`function`){let e=await t;l.onSuccess(e)}}catch(e){l.onError(e instanceof Error?e:Error(String(e)))}},c=async(r,i={})=>{if(e.disabled||r.length===0)return;let a=r.map(Si),s=e.replaceSingleFile?a.slice(-1):a,c=!e.replaceSingleFile&&typeof i.replaceFileUid==`number`&&t.some(e=>e.uid===i.replaceFileUid),u=c?Math.max(0,s.length-1):s.length;if(!e.replaceSingleFile&&typeof e.limit==`number`&&t.length+u>e.limit){e.onExceed?.(s,t.map(Q));return}for(let[r,a]of s.entries()){if(await e.beforeUpload?.(a)===!1)continue;let s=Ci(a);e.replaceSingleFile?t=[s]:c&&r===0&&typeof i.replaceFileUid==`number`?(n.get(i.replaceFileUid)?.abort?.(),n.delete(i.replaceFileUid),t=t.map(e=>e.uid===i.replaceFileUid?s:e)):t=[...t,s],o(s),e.autoUpload!==!1&&await l(s.uid)}},l=async e=>{let n=t.find(t=>t.uid===e);n&&await s(n)};return{abort:e=>{if(e){n.get(e.uid)?.abort?.(),n.delete(e.uid);return}n.forEach(e=>e.abort?.()),n.clear()},addFiles:c,clearFiles:n=>{t=n?.length?t.filter(e=>!n.includes(e.status)):[],e.onFilesUpdate?.()},getFiles:r,handleRemove:async a=>{if(e.disabled)return;let s=i(a);s&&await e.beforeRemove?.(Q(s),r())!==!1&&(t=t.filter(e=>e.uid!==s.uid),n.get(s.uid)?.abort?.(),n.delete(s.uid),e.onRemove?.(Q(s),r()),o(s))},handleStart:e=>{c([e])},submit:async()=>{if(e.disabled)return;let n=t.filter(e=>e.status===`ready`);for(let e of n)await s(e)}}}function Ai(e){return/\.(mp4|mov|avi|webm)$/i.test(e.name)||/\.(mp4|mov|avi|webm)(\?|$)/i.test(e.url??``)}function ji(e){return e.status===`success`&&!!e.url&&!Ai(e)}function Mi(){return(0,t.jsx)(`span`,{"aria-hidden":`true`,className:`zh-upload-file__icon`,children:`file`})}function Ni(){return(0,t.jsx)(`span`,{"aria-hidden":`true`,className:`zh-upload-file__close`,children:`x`})}function Pi(){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,className:`zh-upload-picture-card__remove-icon`,focusable:`false`,viewBox:`0 0 8 8`,children:(0,t.jsx)(`path`,{d:`M1.15 0.35 4 3.2 6.85 0.35 7.65 1.15 4.8 4l2.85 2.85-.8.8L4 4.8 1.15 7.65l-.8-.8L3.2 4 .35 1.15z`,fill:`currentColor`})})}function Fi(e){let n=e.percentage??0;return(0,t.jsxs)(`div`,{className:`zh-upload-file zh-upload-file--${e.status}`,children:[(0,t.jsxs)(`div`,{className:`zh-upload-file__main`,children:[(0,t.jsxs)(`span`,{className:`zh-upload-file__content`,children:[Mi(),(0,t.jsx)(`span`,{className:`zh-upload-file__name`,children:e.name})]}),e.status===`uploading`?(0,t.jsxs)(`span`,{className:`zh-upload-file__percentage`,children:[n,`%`]}):null,e.status===`fail`?(0,t.jsx)(`span`,{className:`zh-upload-file__error-icon`,children:`!`}):null,e.status===`success`?Ni():null]}),e.status===`uploading`?(0,t.jsx)(`div`,{className:`zh-upload__progress`,children:(0,t.jsx)(`span`,{className:`zh-upload__progress-bar`,style:{width:`${n}%`}})}):null,e.status===`fail`?(0,t.jsx)(`div`,{className:`zh-upload-file__error`,children:`错误提示语,文字宽度根据容器自适应,过多时宽度折行`}):null]},e.uid)}function Ii(e,n,r,i){let a=Ai(e),o=e.percentage??0,s=ji(e);return(0,t.jsxs)(`div`,{className:[`zh-upload-picture-card`,a&&`zh-upload-picture-card--video`,e.status===`uploading`&&`zh-upload-picture-card--uploading`].filter(Boolean).join(` `),children:[e.url&&!a?(0,t.jsx)(`img`,{alt:e.name,className:`zh-upload-picture-card__image`,src:e.url}):null,e.url&&a?(0,t.jsx)(`div`,{className:`zh-upload-picture-card__image`}):null,a?(0,t.jsx)(`span`,{className:`zh-upload-picture-card__play`,children:`play`}):null,s?(0,t.jsx)(`button`,{"aria-label":`预览图片`,className:`zh-upload-picture-card__preview`,type:`button`,onClick:t=>{t.stopPropagation(),i(e)}}):null,e.status===`uploading`?(0,t.jsxs)(`div`,{className:`zh-upload-picture-card__uploading`,children:[(0,t.jsx)(k,{className:`zh-upload-picture-card__spinner`,size:16}),(0,t.jsx)(`span`,{children:`上传中`}),(0,t.jsxs)(`span`,{children:[o,`%`]})]}):null,e.status===`uploading`?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`button`,{"aria-label":`删除图片`,className:`zh-upload-picture-card__remove`,type:`button`,onClick:t=>{t.stopPropagation(),n(e)},children:Pi()}),(0,t.jsx)(`button`,{className:`zh-upload-picture-card__reupload`,type:`button`,onClick:t=>{t.stopPropagation(),r(e)},children:`重新上传`})]})]},e.uid)}function Li(e,n,r,i,a){return e.length===0?(0,t.jsx)(`div`,{className:`zh-upload-picture`,children:(0,t.jsx)(`div`,{className:`zh-upload-picture-card zh-upload-picture-card--empty`,children:`暂无图片`})}):(0,t.jsxs)(`div`,{className:`zh-upload-picture`,children:[e.map(e=>Ii(e,n,r,i)),e.length>1?(0,t.jsxs)(`button`,{"aria-label":`预览图片队列`,className:`zh-upload-picture-card zh-upload-picture-card--count`,type:`button`,onClick:e=>{e.stopPropagation(),a()},children:[(0,t.jsx)(`span`,{children:`+`}),(0,t.jsx)(`span`,{children:e.length})]}):null]})}function Ri(e,n,r){return n||(r?(0,t.jsxs)(`span`,{className:`zh-upload__drag-trigger`,children:[(0,t.jsx)(`span`,{className:`zh-upload__trigger-icon`,children:`upload`}),(0,t.jsx)(`span`,{children:`点击或拖拽上传文件`})]}):e===`picture-card`?(0,t.jsxs)(`span`,{className:`zh-upload__picture-trigger`,children:[(0,t.jsx)(`span`,{className:`zh-upload__trigger-icon`,children:`upload`}),(0,t.jsx)(`span`,{children:`上传图片`}),(0,t.jsx)(`small`,{children:`数量限制50个,单张图片不超过10M`})]}):(0,t.jsxs)(`span`,{className:`zh-upload__trigger`,children:[(0,t.jsx)(`span`,{className:`zh-upload__trigger-icon`,children:`upload`}),(0,t.jsx)(`span`,{children:`上传文件`})]}))}function zi({accept:r,action:i,autoUpload:a,beforeRemove:o,beforeUpload:s,children:c,className:l,data:u,directory:d,disabled:f,drag:p=!1,fileList:m,headers:h,httpRequest:g,limit:_,listType:v=`text`,method:y=`post`,multiple:b,name:ee=`file`,onChange:x,onError:S,onExceed:C,onPreview:w,onProgress:T,onRemove:E,onSuccess:D,showFileList:te=!0,style:O,tip:k,trigger:A,withCredentials:j=!1},M){let ne=p?e.Upload.Dragger:e.Upload,re=(0,n.useRef)(null),N=(0,n.useRef)(0),P=(0,n.useRef)(void 0),[ie,F]=(0,n.useState)(!1),[ae,oe]=(0,n.useState)(0),[,se]=(0,n.useReducer)(e=>e+1,0),I=(0,n.useMemo)(()=>ki({action:i,autoUpload:a,beforeRemove:o,beforeUpload:s,data:u,disabled:f,fileList:m,headers:h,httpRequest:g,limit:_,method:y,name:ee,onChange:x,onError:S,onExceed:C,onProgress:T,onRemove:E,onSuccess:D,replaceSingleFile:v===`picture-card`&&b!==!0,onFilesUpdate:se,withCredentials:j}),[i,a,o,s,u,f,m,h,g,_,v,y,b,ee,x,S,C,T,E,D,se,j]),ce=I.getFiles(),L=(0,n.useMemo)(()=>ce.filter(ji),[ce]),le=Ri(v,A??c,p),ue=te&&v===`picture-card`,de=(0,n.useCallback)(e=>{f||(P.current=e?.uid,re.current?.querySelector(`input[type="file"]`)?.click())},[f]),fe=(0,n.useCallback)(e=>{let t=L.findIndex(t=>t.uid===e.uid);t!==-1&&(oe(t),F(!0),w?.(e))},[w,L]),pe=(0,n.useCallback)(()=>{L.length!==0&&(oe(0),F(!0),w?.(L[0]))},[w,L]),me=e=>(0,t.jsx)(ne,{accept:r,action:i,beforeUpload:(e,t)=>{let n=t?.length?t:[e],r=n[0];if(n.length>1&&e.uid!==r.uid)return!1;let i=n.map((e,t)=>{let n=e,r=Number.parseInt(e.uid,10);return Number.isFinite(r)?n.uid=r:(N.current+=1,n.uid=Date.now()+N.current+t),n}),a=P.current;return P.current=void 0,I.addFiles(i,{replaceFileUid:a}),!1},directory:d,disabled:f,headers:h,listType:v===`picture-card`?`text`:v,maxCount:_,method:y,multiple:b,name:ee,showUploadList:!1,withCredentials:j,onPreview:e=>w?.(e),onRemove:e=>(I.handleRemove({name:e.name,status:`success`,uid:Number(e.uid)}),!1),children:e}),he=me(le),ge=me((0,t.jsx)(`span`,{className:`zh-upload__hidden-trigger`}));return(0,n.useImperativeHandle)(M,()=>I,[I]),(0,t.jsxs)(`div`,{className:vi(l,{drag:p,listType:v}),"data-drag":p?`on`:`off`,"data-list-type":v,ref:re,style:O,children:[ue?(0,t.jsxs)(t.Fragment,{children:[Li(ce,I.handleRemove,de,fe,pe),(0,t.jsx)(e.Image.PreviewGroup,{items:L.map(e=>({alt:e.name,src:e.url})),preview:{current:ae,onChange:e=>oe(e),onOpenChange:e=>F(e),open:ie}}),(0,t.jsx)(`span`,{className:`zh-upload__hidden-control`,children:ge})]}):he,te&&v!==`picture-card`?(0,t.jsx)(`div`,{className:`zh-upload-single`,children:ce.map(Fi)}):null,k?(0,t.jsx)(`div`,{className:`zh-upload__tip`,children:k}):null]})}var Bi=(0,n.forwardRef)(zi);Bi.displayName=`Upload`;function Vi(e){let t=e.trim(),n=t.match(/^#([\da-f]{3})$/i);if(n)return`#${n[1].split(``).map(e=>`${e}${e}`).join(``)}`.toUpperCase();if(/^#[\da-f]{6}$/i.test(t))return t.toUpperCase();throw Error(`Invalid hex color: ${e}`)}function Hi(e){let t=Vi(e).slice(1);return{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)}}function Ui(e){return Math.min(255,Math.max(0,Math.floor(e+.5-1e-9))).toString(16).padStart(2,`0`).toUpperCase()}function Wi(e,t,n){return Gi({r:e.r*n+t.r*(1-n),g:e.g*n+t.g*(1-n),b:e.b*n+t.b*(1-n)})}function Gi({r:e,g:t,b:n}){return`#${Ui(e)}${Ui(t)}${Ui(n)}`}var Ki={primary:`#3370FF`,success:`#0BBB7D`,error:`#F14646`,warning:`#FF9900`,info:`#BFBFBF`},qi={white:`#FFFFFF`,black:`#000000`};function Ji(e,t){let n=Hi(Vi(t)),r=Hi(qi.white);return Object.fromEntries(Array.from({length:9},(t,i)=>[`${e}-${i+1}`,Wi(n,r,(i+1)/10)]))}var Yi=Object.fromEntries(Object.entries(Ki).flatMap(([e,t])=>Object.entries(Ji(e,t)))),Xi={...qi,...Ki,...Yi},$=Xi,Zi=`rgba(0, 0, 0, 0.88)`,Qi=`rgba(0, 0, 0, 0.65)`,$i=`rgba(0, 0, 0, 0.4)`,ea=`rgba(0, 0, 0, 0.2)`,ta=`#D9D9D9`,na=`#F5F5F5`,ra=`#F5F7FA`,ia={token:{colorPrimary:$.primary,colorPrimaryBg:$[`primary-1`],colorPrimaryBgHover:$[`primary-2`],colorPrimaryBorder:$[`primary-3`],colorPrimaryBorderHover:$[`primary-4`],colorPrimaryHover:$[`primary-8`],colorPrimaryActive:`#295ACC`,colorPrimaryTextHover:$[`primary-8`],colorPrimaryText:$.primary,colorPrimaryTextActive:`#295ACC`,colorSuccess:$.success,colorSuccessBg:$[`success-1`],colorSuccessBorder:$[`success-3`],colorWarning:$.warning,colorWarningBg:$[`warning-1`],colorWarningBorder:$[`warning-3`],colorError:$.error,colorErrorBg:$[`error-1`],colorErrorBorder:$[`error-3`],colorInfo:$.info,colorInfoBg:$[`info-1`],colorInfoBorder:$[`info-3`],colorLink:$.primary,colorLinkHover:$[`primary-8`],colorLinkActive:`#295ACC`,colorHighlight:$.error,colorText:Zi,colorTextSecondary:Qi,colorTextTertiary:$i,colorTextQuaternary:ea,colorTextDisabled:$i,colorTextLightSolid:$.white,colorTextPlaceholder:ea,colorBgLayout:`#FAFAFA`,colorBgContainer:$.white,colorBgElevated:$.white,colorBgContainerDisabled:`#F9F9F9`,colorFillAlter:na,colorFillSecondary:ra,colorBorder:ta,colorBorderSecondary:na,colorSplit:na,controlItemBgHover:ra,controlItemBgActive:$[`primary-1`],controlItemBgActiveHover:$[`primary-2`],controlOutline:$[`primary-2`],fontFamily:`"PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif`,fontSize:14,fontSizeSM:12,fontSizeLG:16,fontSizeXL:18,borderRadius:6,borderRadiusXS:0,borderRadiusSM:4,borderRadiusLG:8,controlHeight:32,controlHeightSM:28,controlHeightLG:40},components:{Button:{borderRadius:6,defaultBg:$.white,defaultColor:Qi,defaultBorderColor:ta,defaultHoverBg:$.white,defaultHoverColor:$.primary,defaultHoverBorderColor:$.primary,defaultActiveBg:$.white,defaultActiveColor:`#2152D9`,defaultActiveBorderColor:`#2152D9`,primaryColor:$.white,primaryShadow:`none`,defaultShadow:`none`,dangerShadow:`none`,fontWeight:400},Input:{hoverBorderColor:$.primary,activeBorderColor:$.primary,activeShadow:`0 0 0 2px ${$[`primary-2`]}`},Select:{selectorBg:$.white,optionSelectedBg:$[`primary-1`],optionSelectedColor:$.primary,optionActiveBg:ra,hoverBorderColor:$.primary,activeBorderColor:$.primary,activeOutlineColor:$[`primary-2`]},DatePicker:{hoverBorderColor:$.primary,activeBorderColor:$.primary,activeShadow:`0 0 0 2px ${$[`primary-2`]}`},Cascader:{optionSelectedBg:$.white,optionSelectedColor:$.primary,optionSelectedFontWeight:500,controlItemWidth:200,dropdownHeight:328},Table:{headerBg:na,headerColor:`#595959`,rowHoverBg:ra,rowSelectedBg:$[`primary-1`],rowSelectedHoverBg:$[`primary-2`],borderColor:na,headerSplitColor:na,headerBorderRadius:6,cellFontSize:14,cellFontSizeMD:14,cellFontSizeSM:12},Tabs:{inkBarColor:$.primary,itemSelectedColor:$.primary,itemHoverColor:$[`primary-9`],itemActiveColor:$.primary},Radio:{buttonSolidCheckedBg:$.primary,buttonSolidCheckedHoverBg:$[`primary-9`],buttonSolidCheckedActiveBg:$.primary,buttonSolidCheckedColor:$.white}}};function aa(e,t){if(!t)return e;let n={...e};for(let[e,r]of Object.entries(t))n[e]={...n[e]??{},...r??{}};return n}function oa(e={}){return{...ia,...e,token:{...ia.token,...e.token},components:aa(ia.components,e.components)}}exports.Alert=u,exports.Badge=_,exports.BadgeRibbon=g,exports.Button=L,exports.ButtonGroup=se,exports.Cascader=ye,exports.CheckTag=Kr,exports.Checkbox=we,exports.CheckboxGroup=Te,exports.DatePicker=Oe,exports.DateRangePicker=ke,exports.DatetimePicker=Ae,exports.DatetimeRangePicker=je,exports.Divider=V,exports.Dropdown=Be,exports.Empty=Ue,exports.Form=Ze,exports.Header=st,exports.Icon=S,exports.Image=mt,exports.Input=St,exports.Loading=Et,exports.Menu=Mt,exports.Pagination=It,exports.Progress=Ht,exports.Radio=qt,exports.RadioButton=Jt,exports.RadioGroup=Yt,exports.Result=nn,exports.Select=un,exports.Steps=yn,exports.Switch=Cn,exports.TabPanel=qn,exports.Table=Lr,exports.Tabs=$n,exports.Tag=Gr,exports.TimePicker=Me,exports.TimeRangePicker=Ne,exports.Timeline=ri,exports.Tooltip=li,exports.Tree=gi,exports.Upload=Bi,exports.antdTheme=ia,exports.blendColor=Wi,exports.createAntdTheme=oa,exports.createColorPalette=Ji,exports.headerNavItems=Qe,exports.hexToRgb=Hi,exports.iconNames=y,exports.icons=v,exports.mergeClassNames=r,exports.normalizeHexColor=Vi,exports.paletteSeedColors=Ki,exports.seedToken=Xi,exports.sideMenuItems=Dt,exports.toHexChannel=Ui;