From aaa58807e874ad35fef22e92328a30c09fdbf2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Wed, 13 Dec 2023 13:19:32 +0800 Subject: [PATCH] Updates --- 1030.4f527266.async.js | 1 + 1656.87a6507c.async.js | 1 - 1757.ee30cc3d.async.js | 1 - 1796.96895f8f.async.js | 88 ----- 1807.ca998b8f.async.js | 12 + 1914.7e360ee4.async.js | 1 + 1958.c805c442.async.js | 1 - 2058.c054cb8c.async.js | 40 -- 215.9d995194.async.js | 3 + 2723.a59f0434.async.js | 1 + 3049.c9102e77.async.js | 1 + 3233.e851f8e2.async.js | 1 - 339.995382d7.async.js | 1 - ...998d4fd.async.js => 3633.0b3c6ef9.async.js | 361 ++++++++--------- 3960.7f543261.async.js | 10 + 404.html | 2 +- 4154.d5769604.async.js | 1 + 4462.314aca21.async.js | 10 + 4587.d08ff5a6.async.js | 1 - 4767.6e1e2f14.async.js | 1 + 5095.67961338.async.js | 3 + 5279.cbec36a0.async.js | 1 - 546.790bf438.async.js | 78 ++++ 5480.87196696.async.js | 40 ++ 5570.e4d2d4cd.async.js | 82 ++++ 5670.be8ca674.async.js | 8 - 5714.2c64f0e9.async.js | 12 - 5885.633c3925.async.js | 4 - 5943.61a19495.async.js | 55 --- 6053.afa1ccf0.async.js | 1 - 6146.905b09cf.async.js | 3 - 6151.4ec04365.async.js | 27 -- 6217.77d97486.async.js | 1 - 6232.4023aa3d.async.js | 1 - 6546.b48ad1c0.async.js | 109 ----- 6642.b17e39c1.async.js | 1 + 6774.00363424.async.js | 1 + 6928.8ffafeda.async.js | 1 + 6970.57043708.async.js | 3 - ...b8a0cfef.async.js => 701.15814a81.async.js | 4 +- 7196.5d32e773.async.js | 8 + 7291.c46e4103.async.js | 71 ---- 7381.3bbb23bc.async.js | 10 + 7564.fb7c4ef7.async.js | 71 ++++ 7609.d9008f64.async.js | 10 + 7688.b8bdde0d.async.js | 9 + 7937.43d34fd3.async.js | 117 ------ 8088.ea26c177.async.js | 1 - 8161.6bbeb40d.async.js | 9 - 8178.f567e559.async.js | 1 + 825.684eec4b.async.js | 1 - 8325.6ff6247f.async.js | 10 - 8588.f81935fb.async.js | 10 + 8912.7a51fc1f.async.js | 10 + 9217.0e815c5b.async.js | 108 +++++ 9295.2fcd0b6c.async.js | 17 + 9336.14d62ef2.async.js | 58 +++ 9809.6053660b.async.js | 27 ++ 9906.e4b73fe6.async.js | 11 + index.html | 2 +- p__404.d7494e27.async.js | 1 + p__404.fbe375d1.async.js | 1 - p__account__center__index.04779b52.async.js | 1 - p__account__center__index.c221b05c.async.js | 1 + p__account__settings__index.0aeefff8.async.js | 1 - p__account__settings__index.bd56c1b7.async.js | 1 + ...shboard__analysis__index.716fbd2f.async.js | 1 - ...shboard__analysis__index.edae6d06.async.js | 1 + ...ashboard__monitor__index.3ded6df3.async.js | 1 + ...ashboard__monitor__index.fe359b32.async.js | 1 - ...hboard__workplace__index.0ce69ea2.async.js | 1 - ...hboard__workplace__index.b715f6d4.async.js | 1 + ...p__exception__403__index.24d0eb0f.async.js | 2 +- ...p__exception__404__index.e8b5e5fb.async.js | 2 +- ...p__exception__500__index.f53cc9c5.async.js | 2 +- ...rm__advanced-form__index.67d0a6c7.async.js | 1 + ...rm__advanced-form__index.bcee0675.async.js | 1 - p__form__basic-form__index.5666ede1.async.js | 1 + p__form__basic-form__index.905d9a81.async.js | 1 - p__form__step-form__index.0f890e2e.async.js | 1 - p__form__step-form__index.2e9ac0c7.async.js | 1 + p__list__basic-list__index.9e1cbaea.async.js | 1 - p__list__basic-list__index.b7f4cabb.async.js | 1 + p__list__card-list__index.099d8041.async.js | 1 + p__list__card-list__index.cf2dd443.async.js | 10 - ...rch__applications__index.1db0757b.async.js | 1 - ...rch__applications__index.ca9c1698.async.js | 1 + ..._search__articles__index.68bbbc8e.async.js | 1 - ..._search__articles__index.81f38a72.async.js | 1 + p__list__search__index.8a123516.async.js | 1 - p__list__search__index.cadd0504.async.js | 1 + ..._search__projects__index.6735ade2.async.js | 1 - ..._search__projects__index.76ebd307.async.js | 1 + p__profile__advanced__index.17060130.async.js | 10 - p__profile__advanced__index.63c318e3.async.js | 1 + p__profile__basic__index.02c0f2f0.async.js | 1 - p__profile__basic__index.96d9be29.async.js | 1 + ...> p__result__fail__index.2c78d606.async.js | 2 +- p__result__success__index.0e68e42d.async.js | 10 + p__result__success__index.10061242.async.js | 10 - p__table-list__index.80e3a8ed.async.js | 1 + p__table-list__index.d2cdd4fd.async.js | 1 - p__user__login__index.27f606a1.async.js | 1 - p__user__login__index.d660a102.async.js | 1 + ...__register-result__index.85636c36.async.js | 1 + ...__register-result__index.94db21d3.async.js | 1 - p__user__register__index.a4115c6a.async.js | 1 + p__user__register__index.e9b2c1b4.async.js | 1 - t__plugin-layout__Layout.700a6c97.async.js | 1 + t__plugin-layout__Layout.afeb489b.async.js | 1 - umi.0cd9fb1a.js | 374 ++++++++++++++++++ umi.3ec3dd10.js | 374 ------------------ 112 files changed, 1196 insertions(+), 1176 deletions(-) create mode 100644 1030.4f527266.async.js delete mode 100644 1656.87a6507c.async.js delete mode 100644 1757.ee30cc3d.async.js delete mode 100644 1796.96895f8f.async.js create mode 100644 1807.ca998b8f.async.js create mode 100644 1914.7e360ee4.async.js delete mode 100644 1958.c805c442.async.js delete mode 100644 2058.c054cb8c.async.js create mode 100644 215.9d995194.async.js create mode 100644 2723.a59f0434.async.js create mode 100644 3049.c9102e77.async.js delete mode 100644 3233.e851f8e2.async.js delete mode 100644 339.995382d7.async.js rename 6445.7998d4fd.async.js => 3633.0b3c6ef9.async.js (52%) create mode 100644 3960.7f543261.async.js create mode 100644 4154.d5769604.async.js create mode 100644 4462.314aca21.async.js delete mode 100644 4587.d08ff5a6.async.js create mode 100644 4767.6e1e2f14.async.js create mode 100644 5095.67961338.async.js delete mode 100644 5279.cbec36a0.async.js create mode 100644 546.790bf438.async.js create mode 100644 5480.87196696.async.js create mode 100644 5570.e4d2d4cd.async.js delete mode 100644 5670.be8ca674.async.js delete mode 100644 5714.2c64f0e9.async.js delete mode 100644 5885.633c3925.async.js delete mode 100644 5943.61a19495.async.js delete mode 100644 6053.afa1ccf0.async.js delete mode 100644 6146.905b09cf.async.js delete mode 100644 6151.4ec04365.async.js delete mode 100644 6217.77d97486.async.js delete mode 100644 6232.4023aa3d.async.js delete mode 100644 6546.b48ad1c0.async.js create mode 100644 6642.b17e39c1.async.js create mode 100644 6774.00363424.async.js create mode 100644 6928.8ffafeda.async.js delete mode 100644 6970.57043708.async.js rename 7519.b8a0cfef.async.js => 701.15814a81.async.js (91%) create mode 100644 7196.5d32e773.async.js delete mode 100644 7291.c46e4103.async.js create mode 100644 7381.3bbb23bc.async.js create mode 100644 7564.fb7c4ef7.async.js create mode 100644 7609.d9008f64.async.js create mode 100644 7688.b8bdde0d.async.js delete mode 100644 7937.43d34fd3.async.js delete mode 100644 8088.ea26c177.async.js delete mode 100644 8161.6bbeb40d.async.js create mode 100644 8178.f567e559.async.js delete mode 100644 825.684eec4b.async.js delete mode 100644 8325.6ff6247f.async.js create mode 100644 8588.f81935fb.async.js create mode 100644 8912.7a51fc1f.async.js create mode 100644 9217.0e815c5b.async.js create mode 100644 9295.2fcd0b6c.async.js create mode 100644 9336.14d62ef2.async.js create mode 100644 9809.6053660b.async.js create mode 100644 9906.e4b73fe6.async.js create mode 100644 p__404.d7494e27.async.js delete mode 100644 p__404.fbe375d1.async.js delete mode 100644 p__account__center__index.04779b52.async.js create mode 100644 p__account__center__index.c221b05c.async.js delete mode 100644 p__account__settings__index.0aeefff8.async.js create mode 100644 p__account__settings__index.bd56c1b7.async.js delete mode 100644 p__dashboard__analysis__index.716fbd2f.async.js create mode 100644 p__dashboard__analysis__index.edae6d06.async.js create mode 100644 p__dashboard__monitor__index.3ded6df3.async.js delete mode 100644 p__dashboard__monitor__index.fe359b32.async.js delete mode 100644 p__dashboard__workplace__index.0ce69ea2.async.js create mode 100644 p__dashboard__workplace__index.b715f6d4.async.js rename p__exception__403__index.e8582be4.async.js => p__exception__403__index.24d0eb0f.async.js (68%) rename p__exception__404__index.61330ecc.async.js => p__exception__404__index.e8b5e5fb.async.js (68%) rename p__exception__500__index.56242af2.async.js => p__exception__500__index.f53cc9c5.async.js (66%) create mode 100644 p__form__advanced-form__index.67d0a6c7.async.js delete mode 100644 p__form__advanced-form__index.bcee0675.async.js create mode 100644 p__form__basic-form__index.5666ede1.async.js delete mode 100644 p__form__basic-form__index.905d9a81.async.js delete mode 100644 p__form__step-form__index.0f890e2e.async.js create mode 100644 p__form__step-form__index.2e9ac0c7.async.js delete mode 100644 p__list__basic-list__index.9e1cbaea.async.js create mode 100644 p__list__basic-list__index.b7f4cabb.async.js create mode 100644 p__list__card-list__index.099d8041.async.js delete mode 100644 p__list__card-list__index.cf2dd443.async.js delete mode 100644 p__list__search__applications__index.1db0757b.async.js create mode 100644 p__list__search__applications__index.ca9c1698.async.js delete mode 100644 p__list__search__articles__index.68bbbc8e.async.js create mode 100644 p__list__search__articles__index.81f38a72.async.js delete mode 100644 p__list__search__index.8a123516.async.js create mode 100644 p__list__search__index.cadd0504.async.js delete mode 100644 p__list__search__projects__index.6735ade2.async.js create mode 100644 p__list__search__projects__index.76ebd307.async.js delete mode 100644 p__profile__advanced__index.17060130.async.js create mode 100644 p__profile__advanced__index.63c318e3.async.js delete mode 100644 p__profile__basic__index.02c0f2f0.async.js create mode 100644 p__profile__basic__index.96d9be29.async.js rename p__result__fail__index.64f87542.async.js => p__result__fail__index.2c78d606.async.js (68%) create mode 100644 p__result__success__index.0e68e42d.async.js delete mode 100644 p__result__success__index.10061242.async.js create mode 100644 p__table-list__index.80e3a8ed.async.js delete mode 100644 p__table-list__index.d2cdd4fd.async.js delete mode 100644 p__user__login__index.27f606a1.async.js create mode 100644 p__user__login__index.d660a102.async.js create mode 100644 p__user__register-result__index.85636c36.async.js delete mode 100644 p__user__register-result__index.94db21d3.async.js create mode 100644 p__user__register__index.a4115c6a.async.js delete mode 100644 p__user__register__index.e9b2c1b4.async.js create mode 100644 t__plugin-layout__Layout.700a6c97.async.js delete mode 100644 t__plugin-layout__Layout.afeb489b.async.js create mode 100644 umi.0cd9fb1a.js delete mode 100644 umi.3ec3dd10.js diff --git a/1030.4f527266.async.js b/1030.4f527266.async.js new file mode 100644 index 00000000..15faf1e2 --- /dev/null +++ b/1030.4f527266.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1030],{48120:function(oe,I,e){e.d(I,{Z:function(){return t}});const t=h=>h?typeof h=="function"?h():h:null},61030:function(oe,I,e){e.d(I,{C:function(){return fe}});var t=e(79685),h=e(68591),M=e.n(h),f=e(58718),H=e(52401),A=e(85817),L=e(99248),F=e(73064),w=e(79301),d=t.createContext({}),n=e(26477),a=e(4614),o=e(44244),l=e(25830);const r=s=>{const{antCls:g,componentCls:c,iconCls:i,avatarBg:p,avatarColor:Y,containerSize:T,containerSizeLG:C,containerSizeSM:W,textFontSize:y,textFontSizeLG:U,textFontSizeSM:ne,borderRadius:D,borderRadiusLG:B,borderRadiusSM:K,lineWidth:Z,lineType:q,calc:J}=s,j=(O,G,S)=>({width:O,height:O,lineHeight:(0,n.bf)(J(O).sub(J(Z).mul(2)).equal()),borderRadius:"50%",[`&${c}-square`]:{borderRadius:S},[`${c}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${c}-icon`]:{fontSize:G,[`> ${i}`]:{margin:0}}});return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.Wf)(s)),{position:"relative",display:"inline-block",overflow:"hidden",color:Y,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:p,border:`${(0,n.bf)(Z)} ${q} transparent`,["&-image"]:{background:"transparent"},[`${g}-image-img`]:{display:"block"}}),j(T,y,D)),{["&-lg"]:Object.assign({},j(C,U,B)),["&-sm"]:Object.assign({},j(W,ne,K)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},u=s=>{const{componentCls:g,groupBorderColor:c,groupOverlapping:i,groupSpace:p}=s;return{[`${g}-group`]:{display:"inline-flex",[`${g}`]:{borderColor:c},["> *:not(:first-child)"]:{marginInlineStart:i}},[`${g}-group-popover`]:{[`${g} + ${g}`]:{marginInlineStart:p}}}},P=s=>{const{controlHeight:g,controlHeightLG:c,controlHeightSM:i,fontSize:p,fontSizeLG:Y,fontSizeXL:T,fontSizeHeading3:C,marginXS:W,marginXXS:y,colorBorderBg:U}=s;return{containerSize:g,containerSizeLG:c,containerSizeSM:i,textFontSize:Math.round((Y+T)/2),textFontSizeLG:C,textFontSizeSM:p,groupSpace:y,groupOverlapping:-W,groupBorderColor:U}};var _=(0,o.I$)("Avatar",s=>{const{colorTextLightSolid:g,colorTextPlaceholder:c}=s,i=(0,l.TS)(s,{avatarBg:c,avatarColor:g});return[r(i),u(i)]},P),b=e(84477),V=function(s,g){var c={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&g.indexOf(i)<0&&(c[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,i=Object.getOwnPropertySymbols(s);p{const[c,i]=t.useState(1),[p,Y]=t.useState(!1),[T,C]=t.useState(!0),W=t.useRef(null),y=t.useRef(null),U=(0,H.sQ)(g,W),{getPrefixCls:ne,avatar:D}=t.useContext(L.E_),B=t.useContext(d),K=()=>{if(!y.current||!W.current)return;const v=y.current.offsetWidth,m=W.current.offsetWidth;if(v!==0&&m!==0){const{gap:x=4}=s;x*2{Y(!0)},[]),t.useEffect(()=>{C(!0),i(1)},[s.src]),t.useEffect(K,[s.gap]);const Z=()=>{const{onError:v}=s;(v==null?void 0:v())!==!1&&C(!1)},{prefixCls:q,shape:J,size:j,src:O,srcSet:G,icon:S,className:ee,rootClassName:re,alt:pe,draggable:Ee,children:ce,crossOrigin:he}=s,se=V(s,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),E=(0,F.Z)(v=>{var m,x;return(x=(m=j!=null?j:B==null?void 0:B.size)!==null&&m!==void 0?m:v)!==null&&x!==void 0?x:"default"}),Ce=Object.keys(typeof E=="object"?E||{}:{}).some(v=>["xs","sm","md","lg","xl","xxl"].includes(v)),ue=(0,w.Z)(Ce),Oe=t.useMemo(()=>{if(typeof E!="object")return{};const v=A.c4.find(x=>ue[x]),m=E[v];return m?{width:m,height:m,lineHeight:`${m}px`,fontSize:m&&(S||ce)?m/2:18}:{}},[ue,E]),z=ne("avatar",q),me=(0,b.Z)(z),[Pe,ye]=_(z,me),Se=M()({[`${z}-lg`]:E==="large",[`${z}-sm`]:E==="small"}),ve=t.isValidElement(O),xe=J||(B==null?void 0:B.shape)||"circle",Me=M()(z,Se,D==null?void 0:D.className,`${z}-${xe}`,{[`${z}-image`]:ve||O&&T,[`${z}-icon`]:!!S},me,ee,re,ye),_e=typeof E=="number"?{width:E,height:E,lineHeight:`${E}px`,fontSize:S?E/2:18}:{};let te;if(typeof O=="string"&&T)te=t.createElement("img",{src:O,draggable:Ee,srcSet:G,onError:Z,alt:pe,crossOrigin:he});else if(ve)te=O;else if(S)te=S;else if(p||c!==1){const v=`scale(${c}) translateX(-50%)`,m={msTransform:v,WebkitTransform:v,transform:v},x=typeof E=="number"?{lineHeight:`${E}px`}:{};te=t.createElement(f.Z,{onResize:K},t.createElement("span",{className:`${z}-string`,ref:y,style:Object.assign(Object.assign({},x),m)},ce))}else te=t.createElement("span",{className:`${z}-string`,style:{opacity:0},ref:y},ce);return delete se.onError,delete se.gap,Pe(t.createElement("span",Object.assign({},se,{style:Object.assign(Object.assign(Object.assign(Object.assign({},_e),Oe),D==null?void 0:D.style),se.style),className:Me,ref:U}),te))};var R=t.forwardRef(X),N=e(89259),$=e(8262),le=e(23196);const ae=s=>{const{size:g,shape:c}=t.useContext(d),i=t.useMemo(()=>({size:s.size||g,shape:s.shape||c}),[s.size,s.shape,g,c]);return t.createElement(d.Provider,{value:i},s.children)};var ie=s=>{const{getPrefixCls:g,direction:c}=t.useContext(L.E_),{prefixCls:i,className:p,rootClassName:Y,style:T,maxCount:C,maxStyle:W,size:y,shape:U,maxPopoverPlacement:ne="top",maxPopoverTrigger:D="hover",children:B}=s,K=g("avatar",i),Z=`${K}-group`,q=(0,b.Z)(K),[J,j]=_(K,q),O=M()(Z,{[`${Z}-rtl`]:c==="rtl"},q,p,Y,j),G=(0,N.Z)(B).map((ee,re)=>(0,le.Tm)(ee,{key:`avatar-key-${re}`})),S=G.length;if(C&&C{if(!(!a&&!o))return f.createElement(f.Fragment,null,a&&f.createElement("div",{className:`${n}-title`},(0,A.Z)(a)),f.createElement("div",{className:`${n}-inner-content`},(0,A.Z)(o)))},k=n=>{const{hashId:a,prefixCls:o,className:l,style:r,placement:u="top",title:P,content:_,children:b}=n;return f.createElement("div",{className:h()(a,o,`${o}-pure`,`${o}-placement-${u}`,l),style:r},f.createElement("div",{className:`${o}-arrow`}),f.createElement(M.G,Object.assign({},n,{className:a,prefixCls:o}),b||w(o,P,_)))},d=n=>{const{prefixCls:a}=n,o=F(n,["prefixCls"]),{getPrefixCls:l}=f.useContext(H.E_),r=l("popover",a),[u,P]=(0,L.Z)(r);return u(f.createElement(k,Object.assign({},o,{prefixCls:r,hashId:P})))};I.ZP=d},8262:function(oe,I,e){var t=e(79685),h=e(68591),M=e.n(h),f=e(48120),H=e(4477),A=e(99248),L=e(58898),F=e(27796),w=e(52060),k=function(a,o){var l={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&o.indexOf(r)<0&&(l[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(a);u{let{title:o,content:l,prefixCls:r}=a;return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:`${r}-title`},(0,f.Z)(o)),t.createElement("div",{className:`${r}-inner-content`},(0,f.Z)(l)))},n=t.forwardRef((a,o)=>{const{prefixCls:l,title:r,content:u,overlayClassName:P,placement:_="top",trigger:b="hover",mouseEnterDelay:V=.1,mouseLeaveDelay:X=.1,overlayStyle:Q={}}=a,R=k(a,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:N}=t.useContext(A.E_),$=N("popover",l),[le,ae]=(0,w.Z)($),de=N(),ie=M()(P,ae);return le(t.createElement(L.Z,Object.assign({placement:_,trigger:b,mouseEnterDelay:V,mouseLeaveDelay:X,overlayStyle:Q},R,{prefixCls:$,overlayClassName:ie,ref:o,overlay:r||u?t.createElement(d,{prefixCls:$,title:r,content:u}):null,transitionName:(0,H.m)(de,"zoom-big",R.transitionName),"data-popover-inject":!0})))});n._InternalPanelDoNotUseOrYouWillBeFired=F.ZP,I.Z=n},52060:function(oe,I,e){var t=e(4614),h=e(41606),M=e(97112),f=e(53060),H=e(44244),A=e(25830),L=e(99703);const F=d=>{const{componentCls:n,popoverColor:a,titleMinWidth:o,fontWeightStrong:l,innerPadding:r,boxShadowSecondary:u,colorTextHeading:P,borderRadiusLG:_,zIndexPopup:b,titleMarginBottom:V,colorBgElevated:X,popoverBg:Q,titleBorderBottom:R,innerContentPadding:N,titlePadding:$}=d;return[{[n]:Object.assign(Object.assign({},(0,t.Wf)(d)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:b,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":X,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:Q,backgroundClip:"padding-box",borderRadius:_,boxShadow:u,padding:r},[`${n}-title`]:{minWidth:o,marginBottom:V,color:P,fontWeight:l,borderBottom:R,padding:$},[`${n}-inner-content`]:{color:a,padding:N}})},(0,M.ZP)(d,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:d.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},w=d=>{const{componentCls:n}=d;return{[n]:f.i.map(a=>{const o=d[`${a}6`];return{[`&${n}-${a}`]:{"--antd-arrow-background-color":o,[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{background:"transparent"}}}})}},k=d=>{const{lineWidth:n,controlHeight:a,fontHeight:o,padding:l,wireframe:r,zIndexPopupBase:u,borderRadiusLG:P,marginXS:_,lineType:b,colorSplit:V,paddingSM:X}=d,Q=a-o,R=Q/2,N=Q/2-n,$=l;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:u+30},(0,L.w)(d)),(0,M.wZ)({contentRadius:P,limitVerticalRadius:!0})),{innerPadding:r?0:12,titleMarginBottom:r?0:_,titlePadding:r?`${R}px ${$}px ${N}px`:0,titleBorderBottom:r?`${n}px ${b} ${V}`:"none",innerContentPadding:r?`${X}px ${$}px`:0})};I.Z=(0,H.I$)("Popover",d=>{const{colorBgElevated:n,colorText:a}=d,o=(0,A.TS)(d,{popoverBg:n,popoverColor:a});return[F(o),w(o),(0,h._y)(o,"zoom-big")]},k,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/1656.87a6507c.async.js b/1656.87a6507c.async.js deleted file mode 100644 index cfced931..00000000 --- a/1656.87a6507c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1656],{71656:function(Lt,ct,y){y.d(ct,{Z:function(){return Tt}});var i=y(50959),dt=y(84875),E=y.n(dt),ut=y(10091),G=y(74364),J=y(94914),Z=y(31594),$=y(60076),K=y(6301),Q=y(78163),mt=y(90467),k=y(81501);const bt=new $.E4("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),gt=new $.E4("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),ft=new $.E4("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),pt=new $.E4("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),vt=new $.E4("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Ct=new $.E4("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),$t=t=>{const{componentCls:e,iconCls:s,antCls:n,badgeShadowSize:o,motionDurationSlow:c,textFontSize:l,textFontSizeSM:S,statusSize:h,dotSize:f,textFontWeight:m,indicatorHeight:a,indicatorHeightSM:d,marginXS:g,calc:v}=t,u=`${n}-scroll-number`,C=(0,Q.Z)(t,(b,N)=>{let{darkColor:j}=N;return{[`&${e} ${e}-color-${b}`]:{background:j,[`&:not(${e}-count)`]:{color:j}}}});return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{zIndex:t.indicatorZIndex,minWidth:a,height:a,color:t.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:(0,$.bf)(a),whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:v(a).div(2).equal(),boxShadow:`0 0 0 ${(0,$.bf)(o)} ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:d,height:d,fontSize:S,lineHeight:(0,$.bf)(d),borderRadius:v(d).div(2).equal()},[`${e}-multiple-words`]:{padding:`0 ${(0,$.bf)(t.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${e}-dot`]:{zIndex:t.indicatorZIndex,width:f,minWidth:f,height:f,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,$.bf)(o)} ${t.badgeShadowColor}`},[`${e}-dot${u}`]:{transition:`background ${c}`},[`${e}-count, ${e}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${s}-spin`]:{animationName:Ct,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:h,height:h,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:bt,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:g,color:t.colorText,fontSize:t.fontSize}}}),C),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:gt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:ft,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:pt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:vt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${u}-custom-component, ${e}-count`]:{transform:"none"},[`${u}-custom-component, ${u}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${u}`]:{overflow:"hidden",[`${u}-only`]:{position:"relative",display:"inline-block",height:a,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${u}-only-unit`]:{height:a,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${u}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${u}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},q=t=>{const{fontHeight:e,lineWidth:s,marginXS:n,colorBorderBg:o}=t,c=e,l=s,S=t.colorBgContainer,h=t.colorError,f=t.colorErrorHover;return(0,mt.TS)(t,{badgeFontHeight:c,badgeShadowSize:l,badgeTextColor:S,badgeColor:h,badgeColorHover:f,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},_=t=>{const{fontSize:e,lineHeight:s,fontSizeSM:n,lineWidth:o}=t;return{indicatorZIndex:"auto",indicatorHeight:Math.round(e*s)-2*o,indicatorHeightSM:e,dotSize:n/2,textFontSize:n,textFontSizeSM:n,textFontWeight:"normal",statusSize:n/2}};var ht=(0,k.I$)("Badge",t=>{const e=q(t);return $t(e)},_);const yt=t=>{const{antCls:e,badgeFontHeight:s,marginXS:n,badgeRibbonOffset:o,calc:c}=t,l=`${e}-ribbon`,S=`${e}-ribbon-wrapper`,h=(0,Q.Z)(t,(f,m)=>{let{darkColor:a}=m;return{[`&${l}-color-${f}`]:{background:a,color:a}}});return{[`${S}`]:{position:"relative"},[`${l}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(t)),{position:"absolute",top:n,padding:`0 ${(0,$.bf)(t.paddingXS)}`,color:t.colorPrimary,lineHeight:(0,$.bf)(s),whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${l}-text`]:{color:t.colorTextLightSolid},[`${l}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${(0,$.bf)(c(o).div(2).equal())} solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),h),{[`&${l}-placement-end`]:{insetInlineEnd:c(o).mul(-1).equal(),borderEndEndRadius:0,[`${l}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${l}-placement-start`]:{insetInlineStart:c(o).mul(-1).equal(),borderEndStartRadius:0,[`${l}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var St=(0,k.ZP)(["Badge","Ribbon"],t=>{const e=q(t);return yt(e)},_),Nt=t=>{const{className:e,prefixCls:s,style:n,color:o,children:c,text:l,placement:S="end",rootClassName:h}=t,{getPrefixCls:f,direction:m}=i.useContext(Z.E_),a=f("ribbon",s),[d,g]=St(a),v=(0,G.o2)(o,!1),u=E()(a,`${a}-placement-${S}`,{[`${a}-rtl`]:m==="rtl",[`${a}-color-${o}`]:v},e),C={},b={};return o&&!v&&(C.background=o,b.color=o),d(i.createElement("div",{className:E()(`${a}-wrapper`,h,g)},c,i.createElement("div",{className:E()(u,g),style:Object.assign(Object.assign({},C),n)},i.createElement("span",{className:`${a}-text`},l),i.createElement("div",{className:`${a}-corner`,style:b}))))};function tt(t){let{prefixCls:e,value:s,current:n,offset:o=0}=t,c;return o&&(c={position:"absolute",top:`${o}00%`,left:0}),i.createElement("span",{style:c,className:E()(`${e}-only-unit`,{current:n})},s)}function Ot(t,e,s){let n=t,o=0;for(;(n+10)%10!==e;)n+=s,o+=s;return o}function xt(t){const{prefixCls:e,count:s,value:n}=t,o=Number(n),c=Math.abs(s),[l,S]=i.useState(o),[h,f]=i.useState(c),m=()=>{S(o),f(c)};i.useEffect(()=>{const g=setTimeout(()=>{m()},1e3);return()=>{clearTimeout(g)}},[o]);let a,d;if(l===o||Number.isNaN(o)||Number.isNaN(l))a=[i.createElement(tt,Object.assign({},t,{key:o,current:!0}))],d={transition:"none"};else{a=[];const g=o+10,v=[];for(let b=o;b<=g;b+=1)v.push(b);const u=v.findIndex(b=>b%10===l);a=v.map((b,N)=>{const j=b%10;return i.createElement(tt,Object.assign({},t,{key:b,value:j,offset:N-u,current:N===u}))});const C=h{const{prefixCls:s,count:n,className:o,motionClassName:c,style:l,title:S,show:h,component:f="sup",children:m}=t,a=Et(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=i.useContext(Z.E_),g=d("scroll-number",s),v=Object.assign(Object.assign({},a),{"data-show":h,style:l,className:E()(g,o,c),title:S});let u=n;if(n&&Number(n)%1===0){const C=String(n).split("");u=i.createElement("bdi",null,C.map((b,N)=>i.createElement(xt,{prefixCls:g,count:Number(n),value:b,key:C.length-N})))}return l&&l.borderColor&&(v.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),m?(0,J.Tm)(m,C=>({className:E()(`${g}-custom-component`,C==null?void 0:C.className,c)})):i.createElement(f,Object.assign({},v,{ref:e}),u)}),jt=function(t,e){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(s[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{var s,n,o,c,l;const{prefixCls:S,scrollNumberPrefixCls:h,children:f,status:m,text:a,color:d,count:g=null,overflowCount:v=99,dot:u=!1,size:C="default",title:b,offset:N,style:j,className:It,rootClassName:zt,classNames:w,styles:O,showZero:F=!1}=t,ot=jt(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:nt,direction:H,badge:r}=i.useContext(Z.E_),p=nt("badge",S),[rt,Rt]=ht(p),M=g>v?`${v}+`:g,R=M==="0"||M===0,Bt=g===null||R&&!F,A=(m!=null||d!=null)&&Bt,z=u&&!R,P=z?"":M,T=(0,i.useMemo)(()=>(P==null||P===""||R&&!F)&&!z,[P,R,F,z]),it=(0,i.useRef)(g);T||(it.current=g);const I=it.current,st=(0,i.useRef)(P);T||(st.current=P);const V=st.current,at=(0,i.useRef)(z);T||(at.current=z);const B=(0,i.useMemo)(()=>{if(!N)return Object.assign(Object.assign({},r==null?void 0:r.style),j);const x={marginTop:N[1]};return H==="rtl"?x.left=parseInt(N[0],10):x.right=-parseInt(N[0],10),Object.assign(Object.assign(Object.assign({},x),r==null?void 0:r.style),j)},[H,N,j,r==null?void 0:r.style]),Wt=b!=null?b:typeof I=="string"||typeof I=="number"?I:void 0,Dt=T||!a?null:i.createElement("span",{className:`${p}-status-text`},a),Zt=!I||typeof I!="object"?void 0:(0,J.Tm)(I,x=>({style:Object.assign(Object.assign({},B),x.style)})),W=(0,G.o2)(d,!1),Ft=E()(w==null?void 0:w.indicator,(s=r==null?void 0:r.classNames)===null||s===void 0?void 0:s.indicator,{[`${p}-status-dot`]:A,[`${p}-status-${m}`]:!!m,[`${p}-color-${d}`]:W}),L={};d&&!W&&(L.color=d,L.background=d);const lt=E()(p,{[`${p}-status`]:A,[`${p}-not-a-wrapper`]:!f,[`${p}-rtl`]:H==="rtl"},It,zt,r==null?void 0:r.className,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.root,w==null?void 0:w.root,Rt);if(!f&&A){const x=B.color;return rt(i.createElement("span",Object.assign({},ot,{className:lt,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.root),(o=r==null?void 0:r.styles)===null||o===void 0?void 0:o.root),B)}),i.createElement("span",{className:Ft,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(c=r==null?void 0:r.styles)===null||c===void 0?void 0:c.indicator),L)}),a&&i.createElement("span",{style:{color:x},className:`${p}-status-text`},a)))}return rt(i.createElement("span",Object.assign({ref:e},ot,{className:lt,style:Object.assign(Object.assign({},(l=r==null?void 0:r.styles)===null||l===void 0?void 0:l.root),O==null?void 0:O.root)}),f,i.createElement(ut.ZP,{visible:!T,motionName:`${p}-zoom`,motionAppear:!1,motionDeadline:1e3},x=>{let{className:Ht,ref:Mt}=x;var X,U;const At=nt("scroll-number",h),Y=at.current,Vt=E()(w==null?void 0:w.indicator,(X=r==null?void 0:r.classNames)===null||X===void 0?void 0:X.indicator,{[`${p}-dot`]:Y,[`${p}-count`]:!Y,[`${p}-count-sm`]:C==="small",[`${p}-multiple-words`]:!Y&&V&&V.toString().length>1,[`${p}-status-${m}`]:!!m,[`${p}-color-${d}`]:W});let D=Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(U=r==null?void 0:r.styles)===null||U===void 0?void 0:U.indicator),B);return d&&!W&&(D=D||{},D.background=d),i.createElement(wt,{prefixCls:At,show:!T,motionClassName:Ht,className:Vt,count:V,title:Wt,style:D,key:"scrollNumber",ref:Mt},Zt)}),Dt))},et=i.forwardRef(Pt);et.Ribbon=Nt;var Tt=et}}]); diff --git a/1757.ee30cc3d.async.js b/1757.ee30cc3d.async.js deleted file mode 100644 index c7cfa0f0..00000000 --- a/1757.ee30cc3d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1757],{99513:function(oe,M,e){e.d(M,{Z:function(){return t}});const t=h=>h?typeof h=="function"?h():h:null},21757:function(oe,M,e){e.d(M,{C:function(){return fe}});var t=e(50959),h=e(84875),$=e.n(h),f=e(12682),H=e(12602),A=e(51408),L=e(31594),F=e(17436),V=e(70836),d=t.createContext({}),n=e(60076),a=e(6301),o=e(81501),l=e(90467);const r=s=>{const{antCls:g,componentCls:c,iconCls:i,avatarBg:p,avatarColor:J,containerSize:T,containerSizeLG:C,containerSizeSM:W,textFontSize:y,textFontSizeLG:U,textFontSizeSM:ne,borderRadius:B,borderRadiusLG:z,borderRadiusSM:K,lineWidth:Z,lineType:q,calc:k}=s,j=(O,G,S)=>({width:O,height:O,lineHeight:(0,n.bf)(k(O).sub(k(Z).mul(2)).equal()),borderRadius:"50%",[`&${c}-square`]:{borderRadius:S},[`${c}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${c}-icon`]:{fontSize:G,[`> ${i}`]:{margin:0}}});return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,a.Wf)(s)),{position:"relative",display:"inline-block",overflow:"hidden",color:J,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:p,border:`${(0,n.bf)(Z)} ${q} transparent`,["&-image"]:{background:"transparent"},[`${g}-image-img`]:{display:"block"}}),j(T,y,B)),{["&-lg"]:Object.assign({},j(C,U,z)),["&-sm"]:Object.assign({},j(W,ne,K)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},u=s=>{const{componentCls:g,groupBorderColor:c,groupOverlapping:i,groupSpace:p}=s;return{[`${g}-group`]:{display:"inline-flex",[`${g}`]:{borderColor:c},["> *:not(:first-child)"]:{marginInlineStart:i}},[`${g}-group-popover`]:{[`${g} + ${g}`]:{marginInlineStart:p}}}},P=s=>{const{controlHeight:g,controlHeightLG:c,controlHeightSM:i,fontSize:p,fontSizeLG:J,fontSizeXL:T,fontSizeHeading3:C,marginXS:W,marginXXS:y,colorBorderBg:U}=s;return{containerSize:g,containerSizeLG:c,containerSizeSM:i,textFontSize:Math.round((J+T)/2),textFontSizeLG:C,textFontSizeSM:p,groupSpace:y,groupOverlapping:-W,groupBorderColor:U}};var b=(0,o.I$)("Avatar",s=>{const{colorTextLightSolid:g,colorTextPlaceholder:c}=s,i=(0,l.TS)(s,{avatarBg:c,avatarColor:g});return[r(i),u(i)]},P),D=e(10254),X=function(s,g){var c={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&g.indexOf(i)<0&&(c[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,i=Object.getOwnPropertySymbols(s);p{const[c,i]=t.useState(1),[p,J]=t.useState(!1),[T,C]=t.useState(!0),W=t.useRef(null),y=t.useRef(null),U=(0,H.sQ)(g,W),{getPrefixCls:ne,avatar:B}=t.useContext(L.E_),z=t.useContext(d),K=()=>{if(!y.current||!W.current)return;const v=y.current.offsetWidth,m=W.current.offsetWidth;if(v!==0&&m!==0){const{gap:x=4}=s;x*2{J(!0)},[]),t.useEffect(()=>{C(!0),i(1)},[s.src]),t.useEffect(K,[s.gap]);const Z=()=>{const{onError:v}=s;(v==null?void 0:v())!==!1&&C(!1)},{prefixCls:q,shape:k,size:j,src:O,srcSet:G,icon:S,className:ee,rootClassName:re,alt:pe,draggable:Ee,children:ce,crossOrigin:he}=s,se=X(s,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),E=(0,F.Z)(v=>{var m,x;return(x=(m=j!=null?j:z==null?void 0:z.size)!==null&&m!==void 0?m:v)!==null&&x!==void 0?x:"default"}),Ce=Object.keys(typeof E=="object"?E||{}:{}).some(v=>["xs","sm","md","lg","xl","xxl"].includes(v)),ue=(0,V.Z)(Ce),Oe=t.useMemo(()=>{if(typeof E!="object")return{};const v=A.c4.find(x=>ue[x]),m=E[v];return m?{width:m,height:m,lineHeight:`${m}px`,fontSize:m&&(S||ce)?m/2:18}:{}},[ue,E]),I=ne("avatar",q),me=(0,D.Z)(I),[Pe,ye]=b(I,me),Se=$()({[`${I}-lg`]:E==="large",[`${I}-sm`]:E==="small"}),ve=t.isValidElement(O),xe=k||(z==null?void 0:z.shape)||"circle",Me=$()(I,Se,B==null?void 0:B.className,`${I}-${xe}`,{[`${I}-image`]:ve||O&&T,[`${I}-icon`]:!!S},me,ee,re,ye),$e=typeof E=="number"?{width:E,height:E,lineHeight:`${E}px`,fontSize:S?E/2:18}:{};let te;if(typeof O=="string"&&T)te=t.createElement("img",{src:O,draggable:Ee,srcSet:G,onError:Z,alt:pe,crossOrigin:he});else if(ve)te=O;else if(S)te=S;else if(p||c!==1){const v=`scale(${c}) translateX(-50%)`,m={msTransform:v,WebkitTransform:v,transform:v},x=typeof E=="number"?{lineHeight:`${E}px`}:{};te=t.createElement(f.Z,{onResize:K},t.createElement("span",{className:`${I}-string`,ref:y,style:Object.assign(Object.assign({},x),m)},ce))}else te=t.createElement("span",{className:`${I}-string`,style:{opacity:0},ref:y},ce);return delete se.onError,delete se.gap,Pe(t.createElement("span",Object.assign({},se,{style:Object.assign(Object.assign(Object.assign(Object.assign({},$e),Oe),B==null?void 0:B.style),se.style),className:Me,ref:U}),te))};var R=t.forwardRef(Q),N=e(13763),_=e(82757),le=e(94914);const ae=s=>{const{size:g,shape:c}=t.useContext(d),i=t.useMemo(()=>({size:s.size||g,shape:s.shape||c}),[s.size,s.shape,g,c]);return t.createElement(d.Provider,{value:i},s.children)};var ie=s=>{const{getPrefixCls:g,direction:c}=t.useContext(L.E_),{prefixCls:i,className:p,rootClassName:J,style:T,maxCount:C,maxStyle:W,size:y,shape:U,maxPopoverPlacement:ne="top",maxPopoverTrigger:B="hover",children:z}=s,K=g("avatar",i),Z=`${K}-group`,q=(0,D.Z)(K),[k,j]=b(K,q),O=$()(Z,{[`${Z}-rtl`]:c==="rtl"},q,p,J,j),G=(0,N.Z)(z).map((ee,re)=>(0,le.Tm)(ee,{key:`avatar-key-${re}`})),S=G.length;if(C&&C{if(!(!a&&!o))return f.createElement(f.Fragment,null,a&&f.createElement("div",{className:`${n}-title`},(0,A.Z)(a)),f.createElement("div",{className:`${n}-inner-content`},(0,A.Z)(o)))},w=n=>{const{hashId:a,prefixCls:o,className:l,style:r,placement:u="top",title:P,content:b,children:D}=n;return f.createElement("div",{className:h()(a,o,`${o}-pure`,`${o}-placement-${u}`,l),style:r},f.createElement("div",{className:`${o}-arrow`}),f.createElement($.G,Object.assign({},n,{className:a,prefixCls:o}),D||V(o,P,b)))},d=n=>{const{prefixCls:a}=n,o=F(n,["prefixCls"]),{getPrefixCls:l}=f.useContext(H.E_),r=l("popover",a),[u,P]=(0,L.Z)(r);return u(f.createElement(w,Object.assign({},o,{prefixCls:r,hashId:P})))};M.ZP=d},82757:function(oe,M,e){var t=e(50959),h=e(84875),$=e.n(h),f=e(99513),H=e(58351),A=e(31594),L=e(32618),F=e(58889),V=e(10153),w=function(a,o){var l={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&o.indexOf(r)<0&&(l[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(a);u{let{title:o,content:l,prefixCls:r}=a;return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:`${r}-title`},(0,f.Z)(o)),t.createElement("div",{className:`${r}-inner-content`},(0,f.Z)(l)))},n=t.forwardRef((a,o)=>{const{prefixCls:l,title:r,content:u,overlayClassName:P,placement:b="top",trigger:D="hover",mouseEnterDelay:X=.1,mouseLeaveDelay:Q=.1,overlayStyle:Y={}}=a,R=w(a,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:N}=t.useContext(A.E_),_=N("popover",l),[le,ae]=(0,V.Z)(_),de=N(),ie=$()(P,ae);return le(t.createElement(L.Z,Object.assign({placement:b,trigger:D,mouseEnterDelay:X,mouseLeaveDelay:Q,overlayStyle:Y},R,{prefixCls:_,overlayClassName:ie,ref:o,overlay:r||u?t.createElement(d,{prefixCls:_,title:r,content:u}):null,transitionName:(0,H.m)(de,"zoom-big",R.transitionName),"data-popover-inject":!0})))});n._InternalPanelDoNotUseOrYouWillBeFired=F.ZP,M.Z=n},10153:function(oe,M,e){var t=e(6301),h=e(37747),$=e(42268),f=e(72270),H=e(81501),A=e(90467),L=e(22297);const F=d=>{const{componentCls:n,popoverColor:a,titleMinWidth:o,fontWeightStrong:l,innerPadding:r,boxShadowSecondary:u,colorTextHeading:P,borderRadiusLG:b,zIndexPopup:D,titleMarginBottom:X,colorBgElevated:Q,popoverBg:Y,titleBorderBottom:R,innerContentPadding:N,titlePadding:_}=d;return[{[n]:Object.assign(Object.assign({},(0,t.Wf)(d)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:D,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":Q,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:Y,backgroundClip:"padding-box",borderRadius:b,boxShadow:u,padding:r},[`${n}-title`]:{minWidth:o,marginBottom:X,color:P,fontWeight:l,borderBottom:R,padding:_},[`${n}-inner-content`]:{color:a,padding:N}})},(0,$.ZP)(d,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:d.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},V=d=>{const{componentCls:n}=d;return{[n]:f.i.map(a=>{const o=d[`${a}6`];return{[`&${n}-${a}`]:{"--antd-arrow-background-color":o,[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{background:"transparent"}}}})}},w=d=>{const{lineWidth:n,controlHeight:a,fontHeight:o,padding:l,wireframe:r,zIndexPopupBase:u,borderRadiusLG:P,marginXS:b,lineType:D,colorSplit:X,paddingSM:Q}=d,Y=a-o,R=Y/2,N=Y/2-n,_=l;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:u+30},(0,L.w)(d)),(0,$.wZ)({contentRadius:P,limitVerticalRadius:!0})),{innerPadding:r?0:12,titleMarginBottom:r?0:b,titlePadding:r?`${R}px ${_}px ${N}px`:0,titleBorderBottom:r?`${n}px ${D} ${X}`:"none",innerContentPadding:r?`${Q}px ${_}px`:0})};M.Z=(0,H.I$)("Popover",d=>{const{colorBgElevated:n,colorText:a}=d,o=(0,A.TS)(d,{popoverBg:n,popoverColor:a});return[F(o),V(o),(0,h._y)(o,"zoom-big")]},w,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/1796.96895f8f.async.js b/1796.96895f8f.async.js deleted file mode 100644 index cb14de2f..00000000 --- a/1796.96895f8f.async.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1796],{7819:function($t,Ie){var a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};Ie.Z=a},71506:function($t,Ie){var a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};Ie.Z=a},57249:function($t,Ie,a){a.d(Ie,{Z:function(){return R}});var n=a(38126),T=a(50959),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},V=P,xe=a(38782),Ke=function(M,I){return T.createElement(xe.Z,(0,n.Z)({},M,{ref:I,icon:V}))},R=T.forwardRef(Ke)},96527:function($t,Ie,a){a.d(Ie,{Z:function(){return R}});var n=a(38126),T=a(50959),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},V=P,xe=a(38782),Ke=function(M,I){return T.createElement(xe.Z,(0,n.Z)({},M,{ref:I,icon:V}))},R=T.forwardRef(Ke)},38223:function($t,Ie,a){a.d(Ie,{Z:function(){return R}});var n=a(38126),T=a(50959),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},V=P,xe=a(38782),Ke=function(M,I){return T.createElement(xe.Z,(0,n.Z)({},M,{ref:I,icon:V}))},R=T.forwardRef(Ke)},59005:function($t,Ie,a){a.d(Ie,{F:function(){return n},Z:function(){return T}});function n(P){return P!=null&&P===P.window}function T(P,V){var xe,Ke;if(typeof window=="undefined")return 0;const R=V?"scrollTop":"scrollLeft";let j=0;return n(P)?j=P[V?"pageYOffset":"pageXOffset"]:P instanceof Document?j=P.documentElement[R]:(P instanceof HTMLElement||P)&&(j=P[R]),P&&!n(P)&&typeof j!="number"&&(j=(Ke=((xe=P.ownerDocument)!==null&&xe!==void 0?xe:P).documentElement)===null||Ke===void 0?void 0:Ke[R]),j}},85556:function($t,Ie,a){a.d(Ie,{Z:function(){return T}});var n=a(50959);function T(P){const[V,xe]=(0,n.useState)(null);return[(0,n.useCallback)((j,M,I)=>{const W=V!=null?V:j,X=Math.min(W||0,j),A=Math.max(W||0,j),ae=M.slice(X,A+1).map(K=>P(K)),k=ae.some(K=>!I.has(K)),m=[];return ae.forEach(K=>{k?(I.has(K)||m.push(K),I.add(K)):(I.delete(K),m.push(K))}),xe(k?A:null),m},[V]),j=>{xe(j)}]}},68617:function($t,Ie,a){a.d(Ie,{Z:function(){return V}});var n=a(28449);function T(xe,Ke,R,j){const M=R-Ke;return xe/=j/2,xe<1?M/2*xe*xe*xe+Ke:M/2*((xe-=2)*xe*xe+2)+Ke}var P=a(59005);function V(xe){let Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:R=()=>window,callback:j,duration:M=450}=Ke,I=R(),W=(0,P.Z)(I,!0),X=Date.now(),A=()=>{const k=Date.now()-X,m=T(k>M?M:k,W,xe,M);(0,P.F)(I)?I.scrollTo(window.pageXOffset,m):I instanceof Document||I.constructor.name==="HTMLDocument"?I.documentElement.scrollTop=m:I.scrollTop=m,k{var O;const{prefixCls:d,className:q,rootClassName:h,children:we,indeterminate:y=!1,style:g,onMouseEnter:Z,onMouseLeave:B,skipGroup:Se=!1,disabled:Ue}=ee,me=ae(ee,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Me,direction:ct,checkbox:fe}=n.useContext(R.E_),le=n.useContext(X),{isFormItemInput:je}=n.useContext(I.aM),We=n.useContext(j.Z),re=(O=(le==null?void 0:le.disabled)||Ue)!==null&&O!==void 0?O:We,Te=n.useRef(me.value);n.useEffect(()=>{le==null||le.registerValue(me.value)},[]),n.useEffect(()=>{if(!Se)return me.value!==Te.current&&(le==null||le.cancelValue(Te.current),le==null||le.registerValue(me.value),Te.current=me.value),()=>le==null?void 0:le.cancelValue(me.value)},[me.value]);const Ce=Me("checkbox",d),at=(0,M.Z)(Ce),[Ye,pt]=(0,A.ZP)(Ce,at),lt=Object.assign({},me);le&&!Se&&(lt.onChange=function(){me.onChange&&me.onChange.apply(me,arguments),le.toggleOption&&le.toggleOption({label:we,value:me.value})},lt.name=le.name,lt.checked=le.value.includes(me.value));const te=P()(`${Ce}-wrapper`,{[`${Ce}-rtl`]:ct==="rtl",[`${Ce}-wrapper-checked`]:lt.checked,[`${Ce}-wrapper-disabled`]:re,[`${Ce}-wrapper-in-form-item`]:je},fe==null?void 0:fe.className,q,h,at,pt),Ze=P()({[`${Ce}-indeterminate`]:y},Ke.A,pt),Ve=y?"mixed":void 0;return Ye(n.createElement(xe.Z,{component:"Checkbox",disabled:re},n.createElement("label",{className:te,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),g),onMouseEnter:Z,onMouseLeave:B},n.createElement(V.Z,Object.assign({"aria-checked":Ve},lt,{prefixCls:Ce,className:Ze,disabled:re,ref:D})),we!==void 0&&n.createElement("span",null,we))))};var K=n.forwardRef(k),ye=a(1788),Pe=a(87017),H=function(ee,D){var O={};for(var d in ee)Object.prototype.hasOwnProperty.call(ee,d)&&D.indexOf(d)<0&&(O[d]=ee[d]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,d=Object.getOwnPropertySymbols(ee);q{const{defaultValue:O,children:d,options:q=[],prefixCls:h,className:we,rootClassName:y,style:g,onChange:Z}=ee,B=H(ee,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Se,direction:Ue}=n.useContext(R.E_),[me,Me]=n.useState(B.value||O||[]),[ct,fe]=n.useState([]);n.useEffect(()=>{"value"in B&&Me(B.value||[])},[B.value]);const le=n.useMemo(()=>q.map(s=>typeof s=="string"||typeof s=="number"?{label:s,value:s}:s),[q]),je=s=>{fe(ie=>ie.filter(Ne=>Ne!==s))},We=s=>{fe(ie=>[].concat((0,ye.Z)(ie),[s]))},re=s=>{const ie=me.indexOf(s.value),Ne=(0,ye.Z)(me);ie===-1?Ne.push(s.value):Ne.splice(ie,1),"value"in B||Me(Ne),Z==null||Z(Ne.filter(Fe=>ct.includes(Fe)).sort((Fe,S)=>{const N=le.findIndex(ne=>ne.value===Fe),w=le.findIndex(ne=>ne.value===S);return N-w}))},Te=Se("checkbox",h),Ce=`${Te}-group`,at=(0,M.Z)(Te),[Ye,pt]=(0,A.ZP)(Te,at),lt=(0,Pe.Z)(B,["value","disabled"]),te=q.length?le.map(s=>n.createElement(K,{prefixCls:Te,key:s.value.toString(),disabled:"disabled"in s?s.disabled:B.disabled,value:s.value,checked:me.includes(s.value),onChange:s.onChange,className:`${Ce}-item`,style:s.style,title:s.title,id:s.id,required:s.required},s.label)):d,Ze={toggleOption:re,value:me,disabled:B.disabled,name:B.name,registerValue:We,cancelValue:je},Ve=P()(Ce,{[`${Ce}-rtl`]:Ue==="rtl"},we,y,at,pt);return Ye(n.createElement("div",Object.assign({className:Ve,style:g},lt,{ref:D}),n.createElement(X.Provider,{value:Ze},te)))},L=n.forwardRef(C);var G=n.memo(L);const _=K;_.Group=G,_.__ANT_CHECKBOX=!0;var Q=_},49508:function($t,Ie,a){a.d(Ie,{C2:function(){return Ke}});var n=a(60076),T=a(6301),P=a(90467),V=a(81501);const xe=R=>{const{checkboxCls:j}=R,M=`${j}-wrapper`;return[{[`${j}-group`]:Object.assign(Object.assign({},(0,T.Wf)(R)),{display:"inline-flex",flexWrap:"wrap",columnGap:R.marginXS,[`> ${R.antCls}-row`]:{flex:1}}),[M]:Object.assign(Object.assign({},(0,T.Wf)(R)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${M}`]:{marginInlineStart:0},[`&${M}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[j]:Object.assign(Object.assign({},(0,T.Wf)(R)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:R.borderRadiusSM,alignSelf:"center",[`${j}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${j}-inner`]:Object.assign({},(0,T.oN)(R))},[`${j}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:R.checkboxSize,height:R.checkboxSize,direction:"ltr",backgroundColor:R.colorBgContainer,border:`${(0,n.bf)(R.lineWidth)} ${R.lineType} ${R.colorBorder}`,borderRadius:R.borderRadiusSM,borderCollapse:"separate",transition:`all ${R.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:R.calc(R.checkboxSize).div(14).mul(5).equal(),height:R.calc(R.checkboxSize).div(14).mul(8).equal(),border:`${(0,n.bf)(R.lineWidthBold)} solid ${R.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${R.motionDurationFast} ${R.motionEaseInBack}, opacity ${R.motionDurationFast}`}},"& + span":{paddingInlineStart:R.paddingXS,paddingInlineEnd:R.paddingXS}})},{[` - ${M}:not(${M}-disabled), - ${j}:not(${j}-disabled) - `]:{[`&:hover ${j}-inner`]:{borderColor:R.colorPrimary}},[`${M}:not(${M}-disabled)`]:{[`&:hover ${j}-checked:not(${j}-disabled) ${j}-inner`]:{backgroundColor:R.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${j}-checked:not(${j}-disabled):after`]:{borderColor:R.colorPrimaryHover}}},{[`${j}-checked`]:{[`${j}-inner`]:{backgroundColor:R.colorPrimary,borderColor:R.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${R.motionDurationMid} ${R.motionEaseOutBack} ${R.motionDurationFast}`}}},[` - ${M}-checked:not(${M}-disabled), - ${j}-checked:not(${j}-disabled) - `]:{[`&:hover ${j}-inner`]:{backgroundColor:R.colorPrimaryHover,borderColor:"transparent"}}},{[j]:{"&-indeterminate":{[`${j}-inner`]:{backgroundColor:R.colorBgContainer,borderColor:R.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:R.calc(R.fontSizeLG).div(2).equal(),height:R.calc(R.fontSizeLG).div(2).equal(),backgroundColor:R.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${M}-disabled`]:{cursor:"not-allowed"},[`${j}-disabled`]:{[`&, ${j}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${j}-inner`]:{background:R.colorBgContainerDisabled,borderColor:R.colorBorder,"&:after":{borderColor:R.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:R.colorTextDisabled},[`&${j}-indeterminate ${j}-inner::after`]:{background:R.colorTextDisabled}}}]};function Ke(R,j){const M=(0,P.TS)(j,{checkboxCls:`.${R}`,checkboxSize:j.controlInteractiveSize});return[xe(M)]}Ie.ZP=(0,V.I$)("Checkbox",(R,j)=>{let{prefixCls:M}=j;return[Ke(M,R)]})},33952:function($t,Ie,a){a.d(Ie,{Z:function(){return q}});var n=a(50959),T=a(84875),P=a.n(T),V=a(31594),xe=a(1415),Ke=a(55904),j=h=>{const{getPrefixCls:we,direction:y}=(0,n.useContext)(V.E_),{prefixCls:g,className:Z}=h,B=we("input-group",g),Se=we("input"),[Ue,me]=(0,Ke.ZP)(Se),Me=P()(B,{[`${B}-lg`]:h.size==="large",[`${B}-sm`]:h.size==="small",[`${B}-compact`]:h.compact,[`${B}-rtl`]:y==="rtl"},me,Z),ct=(0,n.useContext)(xe.aM),fe=(0,n.useMemo)(()=>Object.assign(Object.assign({},ct),{isFormItemInput:!1}),[ct]);return Ue(n.createElement("span",{className:Me,style:h.style,onMouseEnter:h.onMouseEnter,onMouseLeave:h.onMouseLeave,onFocus:h.onFocus,onBlur:h.onBlur},n.createElement(xe.aM.Provider,{value:fe},h.children)))},M=a(21626),I=a(57249),W=a(96527),X=a(87017),A=a(12602),ae=a(59647),k=function(h,we){var y={};for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&we.indexOf(g)<0&&(y[g]=h[g]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,g=Object.getOwnPropertySymbols(h);Zh?n.createElement(W.Z,null):n.createElement(I.Z,null),K={click:"onClick",hover:"onMouseOver"};var Pe=n.forwardRef((h,we)=>{const{visibilityToggle:y=!0}=h,g=typeof y=="object"&&y.visible!==void 0,[Z,B]=(0,n.useState)(()=>g?y.visible:!1),Se=(0,n.useRef)(null);n.useEffect(()=>{g&&B(y.visible)},[g,y]);const Ue=(0,ae.Z)(Se),me=()=>{const{disabled:lt}=h;lt||(Z&&Ue(),B(te=>{var Ze;const Ve=!te;return typeof y=="object"&&((Ze=y.onVisibleChange)===null||Ze===void 0||Ze.call(y,Ve)),Ve}))},Me=lt=>{const{action:te="click",iconRender:Ze=m}=h,Ve=K[te]||"",s=Ze(Z),ie={[Ve]:me,className:`${lt}-icon`,key:"passwordIcon",onMouseDown:Ne=>{Ne.preventDefault()},onMouseUp:Ne=>{Ne.preventDefault()}};return n.cloneElement(n.isValidElement(s)?s:n.createElement("span",null,s),ie)},{className:ct,prefixCls:fe,inputPrefixCls:le,size:je}=h,We=k(h,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:re}=n.useContext(V.E_),Te=re("input",le),Ce=re("input-password",fe),at=y&&Me(Ce),Ye=P()(Ce,ct,{[`${Ce}-${je}`]:!!je}),pt=Object.assign(Object.assign({},(0,X.Z)(We,["suffix","iconRender","visibilityToggle"])),{type:Z?"text":"password",className:Ye,prefixCls:Te,suffix:at});return je&&(pt.size=je),n.createElement(M.Z,Object.assign({ref:(0,A.sQ)(we,Se)},pt))}),H=a(61020),C=a(94914),L=a(47100),G=a(17436),_=a(21130),Q=function(h,we){var y={};for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&we.indexOf(g)<0&&(y[g]=h[g]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,g=Object.getOwnPropertySymbols(h);Z{const{prefixCls:y,inputPrefixCls:g,className:Z,size:B,suffix:Se,enterButton:Ue=!1,addonAfter:me,loading:Me,disabled:ct,onSearch:fe,onChange:le,onCompositionStart:je,onCompositionEnd:We}=h,re=Q(h,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Te,direction:Ce}=n.useContext(V.E_),at=n.useRef(!1),Ye=Te("input-search",y),pt=Te("input",g),{compactSize:lt}=(0,_.ri)(Ye,Ce),te=(0,G.Z)(pe=>{var Oe;return(Oe=B!=null?B:lt)!==null&&Oe!==void 0?Oe:pe}),Ze=n.useRef(null),Ve=pe=>{pe&&pe.target&&pe.type==="click"&&fe&&fe(pe.target.value,pe,{source:"clear"}),le&&le(pe)},s=pe=>{var Oe;document.activeElement===((Oe=Ze.current)===null||Oe===void 0?void 0:Oe.input)&&pe.preventDefault()},ie=pe=>{var Oe,De;fe&&fe((De=(Oe=Ze.current)===null||Oe===void 0?void 0:Oe.input)===null||De===void 0?void 0:De.value,pe,{source:"input"})},Ne=pe=>{at.current||Me||ie(pe)},Fe=typeof Ue=="boolean"?n.createElement(H.Z,null):null,S=`${Ye}-button`;let N;const w=Ue||{},ne=w.type&&w.type.__ANT_BUTTON===!0;ne||w.type==="button"?N=(0,C.Tm)(w,Object.assign({onMouseDown:s,onClick:pe=>{var Oe,De;(De=(Oe=w==null?void 0:w.props)===null||Oe===void 0?void 0:Oe.onClick)===null||De===void 0||De.call(Oe,pe),ie(pe)},key:"enterButton"},ne?{className:S,size:te}:{})):N=n.createElement(L.ZP,{className:S,type:Ue?"primary":void 0,size:te,disabled:ct,key:"enterButton",onMouseDown:s,onClick:ie,loading:Me,icon:Fe},Ue),me&&(N=[N,(0,C.Tm)(me,{key:"addonAfter"})]);const Ee=P()(Ye,{[`${Ye}-rtl`]:Ce==="rtl",[`${Ye}-${te}`]:!!te,[`${Ye}-with-button`]:!!Ue},Z),Le=pe=>{at.current=!0,je==null||je(pe)},Be=pe=>{at.current=!1,We==null||We(pe)};return n.createElement(M.Z,Object.assign({ref:(0,A.sQ)(Ze,we),onPressEnter:Ne},re,{size:te,onCompositionStart:Le,onCompositionEnd:Be,prefixCls:pt,addonAfter:N,suffix:Se,onChange:Ve,className:Ee,disabled:ct}))}),O=a(15714);const d=M.Z;d.Group=j,d.Search=D,d.TextArea=O.Z,d.Password=Pe;var q=d},81863:function($t,Ie,a){a.d(Ie,{Ag:function(){return V},IH:function(){return xe},w:function(){return P}});var n=a(50959);const T=n.createContext(null),P=T.Provider;Ie.ZP=T;const V=n.createContext(null),xe=V.Provider},16803:function($t,Ie,a){var n=a(50959),T=a(84875),P=a.n(T),V=a(65589),xe=a(68924),Ke=a(31594),R=a(17436),j=a(81863),M=a(16671),I=a(81378),W=a(10254);const X=n.forwardRef((A,ae)=>{const{getPrefixCls:k,direction:m}=n.useContext(Ke.E_),[K,ye]=(0,V.Z)(A.defaultValue,{value:A.value}),Pe=fe=>{const le=K,je=fe.target.value;"value"in A||ye(je);const{onChange:We}=A;We&&je!==le&&We(fe)},{prefixCls:H,className:C,rootClassName:L,options:G,buttonStyle:_="outline",disabled:Q,children:ee,size:D,style:O,id:d,onMouseEnter:q,onMouseLeave:h,onFocus:we,onBlur:y}=A,g=k("radio",H),Z=`${g}-group`,B=(0,W.Z)(g),[Se,Ue]=(0,I.Z)(g,B);let me=ee;G&&G.length>0&&(me=G.map(fe=>typeof fe=="string"||typeof fe=="number"?n.createElement(M.Z,{key:fe.toString(),prefixCls:g,disabled:Q,value:fe,checked:K===fe},fe):n.createElement(M.Z,{key:`radio-group-value-options-${fe.value}`,prefixCls:g,disabled:fe.disabled||Q,value:fe.value,checked:K===fe.value,title:fe.title,style:fe.style,id:fe.id,required:fe.required},fe.label)));const Me=(0,R.Z)(D),ct=P()(Z,`${Z}-${_}`,{[`${Z}-${Me}`]:Me,[`${Z}-rtl`]:m==="rtl"},C,L,Ue,B);return Se(n.createElement("div",Object.assign({},(0,xe.Z)(A,{aria:!0,data:!0}),{className:ct,style:O,onMouseEnter:q,onMouseLeave:h,onFocus:we,onBlur:y,id:d,ref:ae}),n.createElement(j.w,{value:{onChange:Pe,value:K,disabled:A.disabled,name:A.name,optionType:A.optionType}},me)))});Ie.Z=n.memo(X)},22900:function($t,Ie,a){var n=a(16803),T=a(16671),P=a(40896);const V=T.Z;V.Button=P.Z,V.Group=n.Z,V.__ANT_RADIO=!0,Ie.ZP=V},16671:function($t,Ie,a){var n=a(50959),T=a(84875),P=a.n(T),V=a(53314),xe=a(12602),Ke=a(42672),R=a(43312),j=a(31594),M=a(69943),I=a(1415),W=a(81863),X=a(81378),A=a(10254),ae=function(K,ye){var Pe={};for(var H in K)Object.prototype.hasOwnProperty.call(K,H)&&ye.indexOf(H)<0&&(Pe[H]=K[H]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,H=Object.getOwnPropertySymbols(K);C{var Pe,H;const C=n.useContext(W.ZP),L=n.useContext(W.Ag),{getPrefixCls:G,direction:_,radio:Q}=n.useContext(j.E_),ee=n.useRef(null),D=(0,xe.sQ)(ye,ee),{isFormItemInput:O}=n.useContext(I.aM),d=We=>{var re,Te;(re=K.onChange)===null||re===void 0||re.call(K,We),(Te=C==null?void 0:C.onChange)===null||Te===void 0||Te.call(C,We)},{prefixCls:q,className:h,rootClassName:we,children:y,style:g}=K,Z=ae(K,["prefixCls","className","rootClassName","children","style"]),B=G("radio",q),Se=((C==null?void 0:C.optionType)||L)==="button",Ue=Se?`${B}-button`:B,me=(0,A.Z)(B),[Me,ct]=(0,X.Z)(B,me),fe=Object.assign({},Z),le=n.useContext(M.Z);C&&(fe.name=C.name,fe.onChange=d,fe.checked=K.value===C.value,fe.disabled=(Pe=fe.disabled)!==null&&Pe!==void 0?Pe:C.disabled),fe.disabled=(H=fe.disabled)!==null&&H!==void 0?H:le;const je=P()(`${Ue}-wrapper`,{[`${Ue}-wrapper-checked`]:fe.checked,[`${Ue}-wrapper-disabled`]:fe.disabled,[`${Ue}-wrapper-rtl`]:_==="rtl",[`${Ue}-wrapper-in-form-item`]:O},Q==null?void 0:Q.className,h,we,ct,me);return Me(n.createElement(Ke.Z,{component:"Radio",disabled:fe.disabled},n.createElement("label",{className:je,style:Object.assign(Object.assign({},Q==null?void 0:Q.style),g),onMouseEnter:K.onMouseEnter,onMouseLeave:K.onMouseLeave},n.createElement(V.Z,Object.assign({},fe,{className:P()(fe.className,!Se&&R.A),type:"radio",prefixCls:Ue,ref:D})),y!==void 0?n.createElement("span",null,y):null)))},m=n.forwardRef(k);Ie.Z=m},40896:function($t,Ie,a){var n=a(50959),T=a(31594),P=a(81863),V=a(16671),xe=function(R,j){var M={};for(var I in R)Object.prototype.hasOwnProperty.call(R,I)&&j.indexOf(I)<0&&(M[I]=R[I]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,I=Object.getOwnPropertySymbols(R);W{const{getPrefixCls:M}=n.useContext(T.E_),{prefixCls:I}=R,W=xe(R,["prefixCls"]),X=M("radio",I);return n.createElement(P.IH,{value:"button"},n.createElement(V.Z,Object.assign({prefixCls:X},W,{type:"radio",ref:j})))};Ie.Z=n.forwardRef(Ke)},81378:function($t,Ie,a){var n=a(60076),T=a(6301),P=a(81501),V=a(90467);const xe=M=>{const{componentCls:I,antCls:W}=M,X=`${I}-group`;return{[X]:Object.assign(Object.assign({},(0,T.Wf)(M)),{display:"inline-block",fontSize:0,[`&${X}-rtl`]:{direction:"rtl"},[`${W}-badge ${W}-badge-count`]:{zIndex:1},[`> ${W}-badge:not(:first-child) > ${W}-button-wrapper`]:{borderInlineStart:"none"}})}},Ke=M=>{const{componentCls:I,wrapperMarginInlineEnd:W,colorPrimary:X,radioSize:A,motionDurationSlow:ae,motionDurationMid:k,motionEaseInOutCirc:m,colorBgContainer:K,colorBorder:ye,lineWidth:Pe,colorBgContainerDisabled:H,colorTextDisabled:C,paddingXS:L,dotColorDisabled:G,lineType:_,radioColor:Q,radioBgColor:ee,calc:D}=M,O=`${I}-inner`,d=4,q=D(A).sub(D(d).mul(2)),h=D(1).mul(A).equal();return{[`${I}-wrapper`]:Object.assign(Object.assign({},(0,T.Wf)(M)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:W,cursor:"pointer",[`&${I}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:M.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${I}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,n.bf)(Pe)} ${_} ${X}`,borderRadius:"50%",visibility:"hidden",content:'""'},[I]:Object.assign(Object.assign({},(0,T.Wf)(M)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${I}-wrapper:hover &, - &:hover ${O}`]:{borderColor:X},[`${I}-input:focus-visible + ${O}`]:Object.assign({},(0,T.oN)(M)),[`${I}:hover::after, ${I}-wrapper:hover &::after`]:{visibility:"visible"},[`${I}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:h,height:h,marginBlockStart:D(1).mul(A).div(-2).equal(),marginInlineStart:D(1).mul(A).div(-2).equal(),backgroundColor:Q,borderBlockStart:0,borderInlineStart:0,borderRadius:h,transform:"scale(0)",opacity:0,transition:`all ${ae} ${m}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:h,height:h,backgroundColor:K,borderColor:ye,borderStyle:"solid",borderWidth:Pe,borderRadius:"50%",transition:`all ${k}`},[`${I}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${I}-checked`]:{[O]:{borderColor:X,backgroundColor:ee,"&::after":{transform:`scale(${M.calc(M.dotSize).div(A).equal()})`,opacity:1,transition:`all ${ae} ${m}`}}},[`${I}-disabled`]:{cursor:"not-allowed",[O]:{backgroundColor:H,borderColor:ye,cursor:"not-allowed","&::after":{backgroundColor:G}},[`${I}-input`]:{cursor:"not-allowed"},[`${I}-disabled + span`]:{color:C,cursor:"not-allowed"},[`&${I}-checked`]:{[O]:{"&::after":{transform:`scale(${D(q).div(A).equal({unit:!1})})`}}}},[`span${I} + *`]:{paddingInlineStart:L,paddingInlineEnd:L}})}},R=M=>{const{buttonColor:I,controlHeight:W,componentCls:X,lineWidth:A,lineType:ae,colorBorder:k,motionDurationSlow:m,motionDurationMid:K,buttonPaddingInline:ye,fontSize:Pe,buttonBg:H,fontSizeLG:C,controlHeightLG:L,controlHeightSM:G,paddingXS:_,borderRadius:Q,borderRadiusSM:ee,borderRadiusLG:D,buttonCheckedBg:O,buttonSolidCheckedColor:d,colorTextDisabled:q,colorBgContainerDisabled:h,buttonCheckedBgDisabled:we,buttonCheckedColorDisabled:y,colorPrimary:g,colorPrimaryHover:Z,colorPrimaryActive:B,buttonSolidCheckedBg:Se,buttonSolidCheckedHoverBg:Ue,buttonSolidCheckedActiveBg:me,calc:Me}=M;return{[`${X}-button-wrapper`]:{position:"relative",display:"inline-block",height:W,margin:0,paddingInline:ye,paddingBlock:0,color:I,fontSize:Pe,lineHeight:(0,n.bf)(Me(W).sub(Me(A).mul(2)).equal()),background:H,border:`${(0,n.bf)(A)} ${ae} ${k}`,borderBlockStartWidth:Me(A).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:A,cursor:"pointer",transition:[`color ${K}`,`background ${K}`,`box-shadow ${K}`].join(","),a:{color:I},[`> ${X}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:Me(A).mul(-1).equal(),insetInlineStart:Me(A).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:A,paddingInline:0,backgroundColor:k,transition:`background-color ${m}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,n.bf)(A)} ${ae} ${k}`,borderStartStartRadius:Q,borderEndStartRadius:Q},"&:last-child":{borderStartEndRadius:Q,borderEndEndRadius:Q},"&:first-child:last-child":{borderRadius:Q},[`${X}-group-large &`]:{height:L,fontSize:C,lineHeight:(0,n.bf)(Me(L).sub(Me(A).mul(2)).equal()),"&:first-child":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child":{borderStartEndRadius:D,borderEndEndRadius:D}},[`${X}-group-small &`]:{height:G,paddingInline:Me(_).sub(A).equal(),paddingBlock:0,lineHeight:(0,n.bf)(Me(G).sub(Me(A).mul(2)).equal()),"&:first-child":{borderStartStartRadius:ee,borderEndStartRadius:ee},"&:last-child":{borderStartEndRadius:ee,borderEndEndRadius:ee}},"&:hover":{position:"relative",color:g},"&:has(:focus-visible)":Object.assign({},(0,T.oN)(M)),[`${X}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${X}-button-wrapper-disabled)`]:{zIndex:1,color:g,background:O,borderColor:g,"&::before":{backgroundColor:g},"&:first-child":{borderColor:g},"&:hover":{color:Z,borderColor:Z,"&::before":{backgroundColor:Z}},"&:active":{color:B,borderColor:B,"&::before":{backgroundColor:B}}},[`${X}-group-solid &-checked:not(${X}-button-wrapper-disabled)`]:{color:d,background:Se,borderColor:Se,"&:hover":{color:d,background:Ue,borderColor:Ue},"&:active":{color:d,background:me,borderColor:me}},"&-disabled":{color:q,backgroundColor:h,borderColor:k,cursor:"not-allowed","&:first-child, &:hover":{color:q,backgroundColor:h,borderColor:k}},[`&-disabled${X}-button-wrapper-checked`]:{color:y,backgroundColor:we,borderColor:k,boxShadow:"none"}}}},j=M=>{const{wireframe:I,padding:W,marginXS:X,lineWidth:A,fontSizeLG:ae,colorText:k,colorBgContainer:m,colorTextDisabled:K,controlItemBgActiveDisabled:ye,colorTextLightSolid:Pe,colorPrimary:H,colorPrimaryHover:C,colorPrimaryActive:L,colorWhite:G}=M,_=4,Q=ae,ee=I?Q-_*2:Q-(_+A)*2;return{radioSize:Q,dotSize:ee,dotColorDisabled:K,buttonSolidCheckedColor:Pe,buttonSolidCheckedBg:H,buttonSolidCheckedHoverBg:C,buttonSolidCheckedActiveBg:L,buttonBg:m,buttonCheckedBg:m,buttonColor:k,buttonCheckedBgDisabled:ye,buttonCheckedColorDisabled:K,buttonPaddingInline:W-A,wrapperMarginInlineEnd:X,radioColor:I?H:G,radioBgColor:I?m:H}};Ie.Z=(0,P.I$)("Radio",M=>{const{controlOutline:I,controlOutlineWidth:W}=M,X=`0 0 0 ${(0,n.bf)(W)} ${I}`,A=X,ae=(0,V.TS)(M,{radioFocusShadow:X,radioButtonFocusShadow:A});return[xe(ae),Ke(ae),R(ae)]},j,{unitless:{radioSize:!0,dotSize:!0}})},56815:function($t,Ie,a){a.d(Ie,{Z:function(){return T}});var n=a(50959);function T(P,V,xe){const Ke=n.useRef({});function R(j){if(!Ke.current||Ke.current.data!==P||Ke.current.childrenColumnName!==V||Ke.current.getRowKey!==xe){let I=function(W){W.forEach((X,A)=>{const ae=xe(X,A);M.set(ae,X),X&&typeof X=="object"&&V in X&&I(X[V]||[])})};const M=new Map;I(P),Ke.current={data:P,childrenColumnName:V,kvMap:M,getRowKey:xe}}return Ke.current.kvMap.get(j)}return[R]}},31796:function($t,Ie,a){a.d(Ie,{Z:function(){return Ul}});var n=a(50959),T={},P="rc-table-internal-hook",V=a(32682),xe=a(7748),Ke=a(77189),R=a(18342),j=a(10422);function M(e){var t=n.createContext(void 0),r=function(l){var i=l.value,u=l.children,f=n.useRef(i);f.current=i;var c=n.useState(function(){return{getValue:function(){return f.current},listeners:new Set}}),p=(0,V.Z)(c,1),b=p[0];return(0,Ke.Z)(function(){(0,j.unstable_batchedUpdates)(function(){b.listeners.forEach(function(v){v(i)})})},[i]),n.createElement(t.Provider,{value:b},u)};return{Context:t,Provider:r,defaultValue:e}}function I(e,t){var r=(0,xe.Z)(typeof t=="function"?t:function(v){if(t===void 0)return v;if(!Array.isArray(t))return v[t];var E={};return t.forEach(function(x){E[x]=v[x]}),E}),o=n.useContext(e==null?void 0:e.Context),l=o||{},i=l.listeners,u=l.getValue,f=n.useRef();f.current=r(o?u():e==null?void 0:e.defaultValue);var c=n.useState({}),p=(0,V.Z)(c,2),b=p[1];return(0,Ke.Z)(function(){if(!o)return;function v(E){var x=r(E);(0,R.Z)(f.current,x,!0)||b({})}return i.add(v),function(){i.delete(v)}},[o]),f.current}var W=a(38126),X=a(12602);function A(){var e=n.createContext(null);function t(){return n.useContext(e)}function r(l,i){var u=(0,X.Yr)(l),f=function(p,b){var v=u?{ref:b}:{},E=n.useRef(0),x=n.useRef(p),$=t();return $!==null?n.createElement(l,(0,W.Z)({},p,v)):((!i||i(x.current,p))&&(E.current+=1),x.current=p,n.createElement(e.Provider,{value:E.current},n.createElement(l,(0,W.Z)({},p,v))))};return u?n.forwardRef(f):f}function o(l,i){var u=(0,X.Yr)(l),f=function(p,b){var v=u?{ref:b}:{};return t(),n.createElement(l,(0,W.Z)({},p,v))};return u?n.memo(n.forwardRef(f),i):n.memo(f,i)}return{makeImmutable:r,responseImmutable:o,useImmutableMark:t}}var ae=A(),k=ae.makeImmutable,m=ae.responseImmutable,K=ae.useImmutableMark,ye=A(),Pe=ye.makeImmutable,H=ye.responseImmutable,C=ye.useImmutableMark,L=M(),G=L;function _(e,t){var r=n.useRef(0);r.current+=1;var o=n.useRef(e),l=[];Object.keys(e||{}).map(function(u){var f;(e==null?void 0:e[u])!==((f=o.current)===null||f===void 0?void 0:f[u])&&l.push(u)}),o.current=e;var i=n.useRef([]);return l.length&&(i.current=l),n.useDebugValue(r.current),n.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),r.current,i.current),r.current}var Q=null,ee=n.memo(function(){var e=_();return n.createElement("h1",null,"Render Times: ",e)});ee.displayName="RenderBlock";var D=a(40727),O=a(33346),d=a(73273),q=a(84875),h=a.n(q),we=a(12554),y=a(85108),g=a(12868),Z=n.createContext({renderWithProps:!1}),B=Z,Se="RC_TABLE_KEY";function Ue(e){return e==null?[]:Array.isArray(e)?e:[e]}function me(e){var t=[],r={};return e.forEach(function(o){for(var l=o||{},i=l.key,u=l.dataIndex,f=i||Ue(u).join("-")||Se;r[f];)f="".concat(f,"_next");r[f]=!0,t.push(f)}),t}function Me(e){return e!=null}function ct(e){return e&&(0,D.Z)(e)==="object"&&!Array.isArray(e)&&!n.isValidElement(e)}function fe(e,t,r,o,l,i){var u=n.useContext(B),f=C(),c=(0,we.Z)(function(){if(Me(o))return[o];var p=t==null||t===""?[]:Array.isArray(t)?t:[t],b=(0,y.Z)(e,p),v=b,E=void 0;if(l){var x=l(b,e,r);ct(x)?(v=x.children,E=x.props,u.renderWithProps=!0):v=x}return[v,E]},[f,e,o,t,l,r],function(p,b){if(i){var v=(0,V.Z)(p,2),E=v[1],x=(0,V.Z)(b,2),$=x[1];return i($,E)}return u.renderWithProps?!0:!(0,R.Z)(p,b,!0)});return c}function le(e,t,r,o){var l=e+t-1;return e<=o&&l>=r}function je(e,t){return I(G,function(r){var o=le(e,t||1,r.hoverStartRow,r.hoverEndRow);return[o,r.onHover]})}var We=function(t){var r=t.ellipsis,o=t.rowType,l=t.children,i,u=r===!0?{showTitle:!0}:r;return u&&(u.showTitle||o==="header")&&(typeof l=="string"||typeof l=="number"?i=l.toString():n.isValidElement(l)&&typeof l.props.children=="string"&&(i=l.props.children)),i};function re(e){var t,r,o,l,i,u,f,c,p=e.component,b=e.children,v=e.ellipsis,E=e.scope,x=e.prefixCls,$=e.className,U=e.align,F=e.record,oe=e.render,Y=e.dataIndex,J=e.renderIndex,$e=e.shouldCellUpdate,ge=e.index,be=e.rowType,He=e.colSpan,Qe=e.rowSpan,ve=e.fixLeft,nt=e.fixRight,ue=e.firstFixLeft,se=e.lastFixLeft,z=e.firstFixRight,he=e.lastFixRight,_e=e.appendNode,Je=e.additionalProps,ke=Je===void 0?{}:Je,rt=e.isSticky,mt="".concat(x,"-cell"),qe=I(G,["supportSticky","allColumnsFixedLeft"]),gt=qe.supportSticky,Mt=qe.allColumnsFixedLeft,jt=fe(F,Y,J,b,oe,$e),Qt=(0,V.Z)(jt,2),Dt=Qt[0],it=Qt[1],Rt={},Ft=typeof ve=="number"&>,ft=typeof nt=="number"&>Ft&&(Rt.position="sticky",Rt.left=ve),ft&&(Rt.position="sticky",Rt.right=nt);var Bt=(t=(r=(o=it==null?void 0:it.colSpan)!==null&&o!==void 0?o:ke.colSpan)!==null&&r!==void 0?r:He)!==null&&t!==void 0?t:1,Re=(l=(i=(u=it==null?void 0:it.rowSpan)!==null&&u!==void 0?u:ke.rowSpan)!==null&&i!==void 0?i:Qe)!==null&&l!==void 0?l:1,ot=je(ge,Re),Ae=(0,V.Z)(ot,2),ze=Ae[0],de=Ae[1],et=function(Ht){var _t;F&&de(ge,ge+Re-1),ke==null||(_t=ke.onMouseEnter)===null||_t===void 0||_t.call(ke,Ht)},ht=function(Ht){var _t;F&&de(-1,-1),ke==null||(_t=ke.onMouseLeave)===null||_t===void 0||_t.call(ke,Ht)};if(Bt===0||Re===0)return null;var Tt=(f=ke.title)!==null&&f!==void 0?f:We({rowType:be,ellipsis:v,children:Dt}),nn=h()(mt,$,(c={},(0,d.Z)(c,"".concat(mt,"-fix-left"),Ft&>),(0,d.Z)(c,"".concat(mt,"-fix-left-first"),ue&>),(0,d.Z)(c,"".concat(mt,"-fix-left-last"),se&>),(0,d.Z)(c,"".concat(mt,"-fix-left-all"),se&&Mt&>),(0,d.Z)(c,"".concat(mt,"-fix-right"),ft&>),(0,d.Z)(c,"".concat(mt,"-fix-right-first"),z&>),(0,d.Z)(c,"".concat(mt,"-fix-right-last"),he&>),(0,d.Z)(c,"".concat(mt,"-ellipsis"),v),(0,d.Z)(c,"".concat(mt,"-with-append"),_e),(0,d.Z)(c,"".concat(mt,"-fix-sticky"),(Ft||ft)&&rt&>),(0,d.Z)(c,"".concat(mt,"-row-hover"),!it&&ze),c),ke.className,it==null?void 0:it.className),dt={};U&&(dt.textAlign=U);var un=(0,O.Z)((0,O.Z)((0,O.Z)((0,O.Z)({},Rt),ke.style),dt),it==null?void 0:it.style),Jt=Dt;return(0,D.Z)(Jt)==="object"&&!Array.isArray(Jt)&&!n.isValidElement(Jt)&&(Jt=null),v&&(se||z)&&(Jt=n.createElement("span",{className:"".concat(mt,"-content")},Jt)),n.createElement(p,(0,W.Z)({},it,ke,{className:nn,style:un,title:Tt,scope:E,onMouseEnter:et,onMouseLeave:ht,colSpan:Bt!==1?Bt:null,rowSpan:Re!==1?Re:null}),_e,Jt)}var Te=n.memo(re);function Ce(e,t,r,o,l,i){var u=r[e]||{},f=r[t]||{},c,p;u.fixed==="left"?c=o.left[l==="rtl"?t:e]:f.fixed==="right"&&(p=o.right[l==="rtl"?e:t]);var b=!1,v=!1,E=!1,x=!1,$=r[t+1],U=r[e-1],F=!(i!=null&&i.children);if(l==="rtl"){if(c!==void 0){var oe=U&&U.fixed==="left";x=!oe&&F}else if(p!==void 0){var Y=$&&$.fixed==="right";E=!Y&&F}}else if(c!==void 0){var J=$&&$.fixed==="left";b=!J&&F}else if(p!==void 0){var $e=U&&U.fixed==="right";v=!$e&&F}return{fixLeft:c,fixRight:p,lastFixLeft:b,firstFixRight:v,lastFixRight:E,firstFixLeft:x,isSticky:o.isSticky}}var at=n.createContext({}),Ye=at;function pt(e){var t=e.className,r=e.index,o=e.children,l=e.colSpan,i=l===void 0?1:l,u=e.rowSpan,f=e.align,c=I(G,["prefixCls","direction"]),p=c.prefixCls,b=c.direction,v=n.useContext(Ye),E=v.scrollColumnIndex,x=v.stickyOffsets,$=v.flattenColumns,U=v.columns,F=r+i-1,oe=F+1===E?i+1:i,Y=Ce(r,r+oe-1,$,x,b,U==null?void 0:U[r]);return n.createElement(Te,(0,W.Z)({className:t,index:r,component:"td",prefixCls:p,record:null,dataIndex:null,align:f,colSpan:oe,rowSpan:u,render:function(){return o}},Y))}var lt=a(10570),te=["children"];function Ze(e){var t=e.children,r=(0,lt.Z)(e,te);return n.createElement("tr",r,t)}function Ve(e){var t=e.children;return t}Ve.Row=Ze,Ve.Cell=pt;var s=Ve;function ie(e){var t=e.children,r=e.stickyOffsets,o=e.flattenColumns,l=e.columns,i=I(G,"prefixCls"),u=o.length-1,f=o[u],c=n.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:f!=null&&f.scrollbar?u:null,columns:l}},[f,o,u,r,l]);return n.createElement(Ye.Provider,{value:c},n.createElement("tfoot",{className:"".concat(i,"-summary")},t))}var Ne=H(ie),Fe=s,S=a(12682),N=a(95992),w=a(5449),ne=a(22692),Ee=a(68924);function Le(e,t,r,o,l,i,u){e.push({record:t,indent:r,index:u});var f=i(t),c=l==null?void 0:l.has(f);if(t&&Array.isArray(t[o])&&c)for(var p=0;p1?ue-1:0),z=1;z=0;f-=1){var c=t[f],p=r&&r[f],b=p&&p[Pt];if(c||b||u){var v=b||{},E=v.columnType,x=(0,lt.Z)(v,At);l.unshift(n.createElement("col",(0,W.Z)({key:f,style:{width:c}},x))),u=!0}}return n.createElement("colgroup",null,l)}var cn=tn,Ct=a(1788),mn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function sn(e,t){return(0,n.useMemo)(function(){for(var r=[],o=0;o1?"colgroup":"col":null,ellipsis:F.ellipsis,align:F.align,component:F.title?i:u,prefixCls:b,key:x[U]},oe,{additionalProps:Y,rowType:"header"}))}))}Wn.displayName="HeaderRow";var rr=Wn;function or(e){var t=[];function r(u,f){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var p=f,b=u.filter(Boolean).map(function(v){var E={key:v.key,className:v.className||"",children:v.title,column:v,colStart:p},x=1,$=v.children;return $&&$.length>0&&(x=r($,p,c+1).reduce(function(U,F){return U+F},0),E.hasSubColumns=!0),"colSpan"in v&&(x=v.colSpan),"rowSpan"in v&&(E.rowSpan=v.rowSpan),E.colSpan=x,E.colEnd=E.colStart+x-1,t[c].push(E),p+=x,x});return b}r(e,0);for(var o=t.length,l=function(f){t[f].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=o-f)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Xn(e,t,r){return n.useMemo(function(){if(t&&t>0){var o=0,l=0;e.forEach(function(E){var x=Gn(t,E.width);x?o+=x:l+=1});var i=Math.max(t,r),u=Math.max(i-o,l),f=l,c=u/l,p=0,b=e.map(function(E){var x=(0,O.Z)({},E),$=Gn(t,x.width);if($)x.width=$;else{var U=Math.floor(c);x.width=f===1?u:U,u-=U,f-=1}return p+=x.width,x});if(p1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(r){return r&&(0,D.Z)(r)==="object"}).reduce(function(r,o,l){var i=o.fixed,u=i===!0?"left":i,f="".concat(t,"-").concat(l),c=o.children;return c&&c.length>0?[].concat((0,Ct.Z)(r),(0,Ct.Z)(hn(c,f).map(function(p){return(0,O.Z)({fixed:u},p)}))):[].concat((0,Ct.Z)(r),[(0,O.Z)((0,O.Z)({key:f},o),{},{fixed:u})])},[])}function Yr(e){for(var t=!0,r=0;r=0;i-=1){var u=e[i];if(l&&u.fixed!=="right")l=!1;else if(!l&&u.fixed==="right"){warning(!1,"Index ".concat(i+1," of `columns` missing `fixed='right'` prop."));break}}}function lr(e){return e.map(function(t){var r=t.fixed,o=(0,lt.Z)(t,Kn),l=r;return r==="left"?l="right":r==="right"&&(l="left"),(0,O.Z)({fixed:l},o)})}function $r(e,t){var r=e.prefixCls,o=e.columns,l=e.children,i=e.expandable,u=e.expandedKeys,f=e.columnTitle,c=e.getRowKey,p=e.onTriggerExpand,b=e.expandIcon,v=e.rowExpandable,E=e.expandIconColumnIndex,x=e.direction,$=e.expandRowByClick,U=e.columnWidth,F=e.fixed,oe=e.scrollWidth,Y=e.clientWidth,J=n.useMemo(function(){return o||Ln(l)},[o,l]),$e=n.useMemo(function(){if(i){var ue,se=J.slice();if(!se.includes(T)){var z=E||0;z>=0&&se.splice(z,0,T)}var he=se.indexOf(T);se=se.filter(function(rt,mt){return rt!==T||mt===he});var _e=J[he],Je;(F==="left"||F)&&!E?Je="left":(F==="right"||F)&&E===J.length?Je="right":Je=_e?_e.fixed:null;var ke=(ue={},(0,d.Z)(ue,Pt,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,d.Z)(ue,"title",f),(0,d.Z)(ue,"fixed",Je),(0,d.Z)(ue,"className","".concat(r,"-row-expand-icon-cell")),(0,d.Z)(ue,"width",U),(0,d.Z)(ue,"render",function(mt,qe,gt){var Mt=c(qe,gt),jt=u.has(Mt),Qt=v?v(qe):!0,Dt=b({prefixCls:r,expanded:jt,expandable:Qt,record:qe,onExpand:p});return $?n.createElement("span",{onClick:function(Rt){return Rt.stopPropagation()}},Dt):Dt}),ue);return se.map(function(rt){return rt===T?ke:rt})}return J.filter(function(rt){return rt!==T})},[i,J,c,u,b,x]),ge=n.useMemo(function(){var ue=$e;return t&&(ue=t(ue)),ue.length||(ue=[{render:function(){return null}}]),ue},[t,$e,x]),be=n.useMemo(function(){return x==="rtl"?lr(hn(ge)):hn(ge)},[ge,x,oe]),He=Xn(be,oe,Y),Qe=(0,V.Z)(He,2),ve=Qe[0],nt=Qe[1];return[ge,ve,nt]}var vr=$r;function Pr(e){var t,r=e.prefixCls,o=e.record,l=e.onExpand,i=e.expanded,u=e.expandable,f="".concat(r,"-row-expand-icon");if(!u)return n.createElement("span",{className:h()(f,"".concat(r,"-row-spaced"))});var c=function(b){l(o,b),b.stopPropagation()};return n.createElement("span",{className:h()(f,(t={},(0,d.Z)(t,"".concat(r,"-row-expanded"),i),(0,d.Z)(t,"".concat(r,"-row-collapsed"),!i),t)),onClick:c})}function ir(e,t,r){var o=[];function l(i){(i||[]).forEach(function(u,f){o.push(t(u,f)),l(u[r])})}return l(e),o}function pr(e,t,r){var o=Vt(e),l=o.expandIcon,i=o.expandedRowKeys,u=o.defaultExpandedRowKeys,f=o.defaultExpandAllRows,c=o.expandedRowRender,p=o.onExpand,b=o.onExpandedRowsChange,v=o.childrenColumnName,E=l||Pr,x=v||"children",$=n.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===P&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(ge){return ge&&(0,D.Z)(ge)==="object"&&ge[x]})?"nest":!1},[!!c,t]),U=n.useState(function(){return u||(f?ir(t,r,x):[])}),F=(0,V.Z)(U,2),oe=F[0],Y=F[1],J=n.useMemo(function(){return new Set(i||oe||[])},[i,oe]),$e=n.useCallback(function(ge){var be=r(ge,t.indexOf(ge)),He,Qe=J.has(be);Qe?(J.delete(be),He=(0,Ct.Z)(J)):He=[].concat((0,Ct.Z)(J),[be]),Y(He),p&&p(!Qe,ge),b&&b(He)},[r,J,t,p,b]);return[o,$,J,E,x,$e]}function sr(e,t,r,o){var l=e.map(function(i,u){return Ce(u,u,e,t,r,o==null?void 0:o[u])});return(0,we.Z)(function(){return l},[l],function(i,u){return!(0,R.Z)(i,u)})}function mr(e){var t=(0,n.useRef)(e),r=(0,n.useState)({}),o=(0,V.Z)(r,2),l=o[1],i=(0,n.useRef)(null),u=(0,n.useRef)([]);function f(c){u.current.push(c);var p=Promise.resolve();i.current=p,p.then(function(){if(i.current===p){var b=u.current,v=t.current;u.current=[],b.forEach(function(E){t.current=E(t.current)}),i.current=null,v!==t.current&&l({})}})}return(0,n.useEffect)(function(){return function(){i.current=null}},[]),[t.current,f]}function gr(e){var t=(0,n.useRef)(e||null),r=(0,n.useRef)();function o(){window.clearTimeout(r.current)}function l(u){t.current=u,o(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function i(){return t.current}return(0,n.useEffect)(function(){return o},[]),[l,i]}function zt(){var e=n.useState(-1),t=(0,V.Z)(e,2),r=t[0],o=t[1],l=n.useState(-1),i=(0,V.Z)(l,2),u=i[0],f=i[1],c=n.useCallback(function(p,b){o(p),f(b)},[]);return[r,u,c]}var En=a(63490),On=(0,En.Z)()?window:null;function Dn(e,t){var r=(0,D.Z)(e)==="object"?e:{},o=r.offsetHeader,l=o===void 0?0:o,i=r.offsetSummary,u=i===void 0?0:i,f=r.offsetScroll,c=f===void 0?0:f,p=r.getContainer,b=p===void 0?function(){return On}:p,v=b()||On;return n.useMemo(function(){var E=!!e;return{isSticky:E,stickyClassName:E?"".concat(t,"-sticky-holder"):"",offsetHeader:l,offsetSummary:u,offsetScroll:c,container:v}},[c,l,u,t,v])}function Nn(e,t,r){var o=(0,n.useMemo)(function(){for(var l=[],i=[],u=0,f=0,c=0;c=v&&(ke=v-E),u({scrollLeft:ke/v*(b+2)}),Y.current.x=z.pageX},nt=function(){if(i.current){var z=(0,Nr.os)(i.current).top,he=z+i.current.offsetHeight,_e=c===window?document.documentElement.scrollTop+window.innerHeight:(0,Nr.os)(c).top+c.clientHeight;he-(0,ne.Z)()<=_e||z>=_e-f?oe(function(Je){return(0,O.Z)((0,O.Z)({},Je),{},{isHiddenScrollBar:!0})}):oe(function(Je){return(0,O.Z)((0,O.Z)({},Je),{},{isHiddenScrollBar:!1})})}},ue=function(z){oe(function(he){return(0,O.Z)((0,O.Z)({},he),{},{scrollLeft:z/b*v||0})})};return n.useImperativeHandle(r,function(){return{setScrollLeft:ue}}),n.useEffect(function(){var se=(0,wn.Z)(document.body,"mouseup",He,!1),z=(0,wn.Z)(document.body,"mousemove",ve,!1);return nt(),function(){se.remove(),z.remove()}},[E,ge]),n.useEffect(function(){var se=(0,wn.Z)(c,"scroll",nt,!1),z=(0,wn.Z)(window,"resize",nt,!1);return function(){se.remove(),z.remove()}},[c]),n.useEffect(function(){F.isHiddenScrollBar||oe(function(se){var z=i.current;return z?(0,O.Z)((0,O.Z)({},se),{},{scrollLeft:z.scrollLeft/z.scrollWidth*z.clientWidth}):se})},[F.isHiddenScrollBar]),b<=v||!E||F.isHiddenScrollBar?null:n.createElement("div",{style:{height:(0,ne.Z)(),width:v,bottom:f},className:"".concat(p,"-sticky-scroll")},n.createElement("div",{onMouseDown:Qe,ref:x,className:h()("".concat(p,"-sticky-scroll-bar"),(0,d.Z)({},"".concat(p,"-sticky-scroll-bar-active"),ge)),style:{width:"".concat(E,"px"),transform:"translate3d(".concat(F.scrollLeft,"px, 0, 0)")}}))},zo=n.forwardRef(Ho);function jo(e){return null}var Wo=jo;function Uo(e){return null}var Vo=Uo,Qr="rc-table",Go=[],Xo={};function Yo(){return"No Data"}function Qo(e,t){var r,o=(0,O.Z)({rowKey:"key",prefixCls:Qr,emptyText:Yo},e),l=o.prefixCls,i=o.className,u=o.rowClassName,f=o.style,c=o.data,p=o.rowKey,b=o.scroll,v=o.tableLayout,E=o.direction,x=o.title,$=o.footer,U=o.summary,F=o.caption,oe=o.id,Y=o.showHeader,J=o.components,$e=o.emptyText,ge=o.onRow,be=o.onHeaderRow,He=o.internalHooks,Qe=o.transformColumns,ve=o.internalRefs,nt=o.tailor,ue=o.getContainerWidth,se=o.sticky,z=c||Go,he=!!z.length,_e=He===P,Je=n.useCallback(function(xt,wt){return(0,y.Z)(J,xt)||wt},[J]),ke=n.useMemo(function(){return typeof p=="function"?p:function(xt){var wt=xt&&xt[p];return wt}},[p]),rt=Je(["body"]),mt=zt(),qe=(0,V.Z)(mt,3),gt=qe[0],Mt=qe[1],jt=qe[2],Qt=pr(o,z,ke),Dt=(0,V.Z)(Qt,6),it=Dt[0],Rt=Dt[1],Ft=Dt[2],ft=Dt[3],Bt=Dt[4],Re=Dt[5],ot=b==null?void 0:b.x,Ae=n.useState(0),ze=(0,V.Z)(Ae,2),de=ze[0],et=ze[1],ht=vr((0,O.Z)((0,O.Z)((0,O.Z)({},o),it),{},{expandable:!!it.expandedRowRender,columnTitle:it.columnTitle,expandedKeys:Ft,getRowKey:ke,onTriggerExpand:Re,expandIcon:ft,expandIconColumnIndex:it.expandIconColumnIndex,direction:E,scrollWidth:_e&&nt&&typeof ot=="number"?ot:null,clientWidth:de}),_e?Qe:null),Tt=(0,V.Z)(ht,3),nn=Tt[0],dt=Tt[1],un=Tt[2],Jt=un!=null?un:ot,yn=n.useMemo(function(){return{columns:nn,flattenColumns:dt}},[nn,dt]),Ht=n.useRef(),_t=n.useRef(),Zt=n.useRef(),_n=n.useRef();n.useImperativeHandle(t,function(){return{nativeElement:Ht.current,scrollTo:function(wt){var ln;if(Zt.current instanceof HTMLElement){var rn=wt.index,xn=wt.top,nr=wt.key;if(xn){var zn;(zn=Zt.current)===null||zn===void 0||zn.scrollTo({top:xn})}else{var jn,fr=nr!=null?nr:ke(z[rn]);(jn=Zt.current.querySelector('[data-row-key="'.concat(fr,'"]')))===null||jn===void 0||jn.scrollIntoView()}}else(ln=Zt.current)!==null&&ln!==void 0&&ln.scrollTo&&Zt.current.scrollTo(wt)}}});var qn=n.useRef(),er=n.useState(!1),Et=(0,V.Z)(er,2),It=Et[0],bt=Et[1],qt=n.useState(!1),Wt=(0,V.Z)(qt,2),Lt=Wt[0],St=Wt[1],fn=mr(new Map),on=(0,V.Z)(fn,2),$n=on[0],bn=on[1],ur=me(dt),An=ur.map(function(xt){return $n.get(xt)}),Fn=n.useMemo(function(){return An},[An.join("_")]),en=Rn(Fn,dt.length,E),Ut=b&&Me(b.y),Gt=b&&Me(Jt)||!!it.fixed,Cn=Gt&&dt.some(function(xt){var wt=xt.fixed;return wt}),Hn=n.useRef(),vn=Dn(se,l),Pn=vn.isSticky,Fr=vn.offsetHeader,Hr=vn.offsetSummary,zr=vn.offsetScroll,Sr=vn.stickyClassName,jr=vn.container,tt=n.useMemo(function(){return U==null?void 0:U(z)},[U,z]),Ot=(Ut||Pn)&&n.isValidElement(tt)&&tt.type===s&&tt.props.fixed,Xt,Yt,an;Ut&&(Yt={overflowY:"scroll",maxHeight:b.y}),Gt&&(Xt={overflowX:"auto"},Ut||(Yt={overflowY:"hidden"}),an={width:Jt===!0?"auto":Jt,minWidth:"100%"});var dn=n.useCallback(function(xt,wt){(0,N.Z)(Ht.current)&&bn(function(ln){if(ln.get(xt)!==wt){var rn=new Map(ln);return rn.set(xt,wt),rn}return ln})},[]),pn=gr(null),Mn=(0,V.Z)(pn,2),Vl=Mn[0],$o=Mn[1];function Er(xt,wt){wt&&(typeof wt=="function"?wt(xt):wt.scrollLeft!==xt&&(wt.scrollLeft=xt,wt.scrollLeft!==xt&&setTimeout(function(){wt.scrollLeft=xt},0)))}var tr=(0,xe.Z)(function(xt){var wt=xt.currentTarget,ln=xt.scrollLeft,rn=E==="rtl",xn=typeof ln=="number"?ln:wt.scrollLeft,nr=wt||Xo;if(!$o()||$o()===nr){var zn;Vl(nr),Er(xn,_t.current),Er(xn,Zt.current),Er(xn,qn.current),Er(xn,(zn=Hn.current)===null||zn===void 0?void 0:zn.setScrollLeft)}var jn=wt||_t.current;if(jn){var fr=jn.scrollWidth,Xr=jn.clientWidth;if(fr===Xr){bt(!1),St(!1);return}rn?(bt(-xn0)):(bt(xn>0),St(xn1?U-z:0,_e=(0,O.Z)((0,O.Z)((0,O.Z)({},He),c),{},{flex:"0 0 ".concat(z,"px"),width:"".concat(z,"px"),marginRight:he,pointerEvents:"auto"}),Je=n.useMemo(function(){return b?ue<=1:ve===0||ue===0||ue>1},[ue,ve,b]);Je?_e.visibility="hidden":b&&(_e.height=v==null?void 0:v(ue));var ke=Je?function(){return null}:E,rt={};return(ue===0||ve===0)&&(rt.rowSpan=1,rt.colSpan=1),n.createElement(Te,(0,W.Z)({className:h()($,p),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:"div",prefixCls:t.prefixCls,key:J,record:f,index:i,renderIndex:u,dataIndex:x,render:ke,shouldCellUpdate:r.shouldCellUpdate},$e,{appendNode:ge,additionalProps:(0,O.Z)((0,O.Z)({},be),{},{style:_e},rt)}))}var na=ta,ra=["data","index","className","rowKey","style","extra","getHeight"],oa=n.forwardRef(function(e,t){var r=e.data,o=e.index,l=e.className,i=e.rowKey,u=e.style,f=e.extra,c=e.getHeight,p=(0,lt.Z)(e,ra),b=r.record,v=r.indent,E=r.index,x=I(G,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),$=x.scrollX,U=x.flattenColumns,F=x.prefixCls,oe=x.fixColumn,Y=x.componentWidth,J=Oe(b,i,o,v),$e=J.rowSupportExpand,ge=J.expanded,be=J.rowProps,He=J.expandedRowRender,Qe=J.expandedRowClassName,ve;if($e&&ge){var nt=He(b,o,v+1,ge),ue=Qe==null?void 0:Qe(b,o,v),se={};oe&&(se={style:(0,d.Z)({},"--virtual-width","".concat(Y,"px"))});var z="".concat(F,"-expanded-row-cell");ve=n.createElement("div",{className:h()("".concat(F,"-expanded-row"),"".concat(F,"-expanded-row-level-").concat(v+1),ue)},n.createElement(Te,{component:"div",prefixCls:F,className:h()(z,(0,d.Z)({},"".concat(z,"-fixed"),oe)),additionalProps:se},nt))}var he=(0,O.Z)((0,O.Z)({},u),{},{width:$});f&&(he.position="absolute",he.pointerEvents="none");var _e=n.createElement("div",(0,W.Z)({},be,p,{ref:$e?null:t,className:h()(l,"".concat(F,"-row"),be==null?void 0:be.className,(0,d.Z)({},"".concat(F,"-row-extra"),f)),style:(0,O.Z)((0,O.Z)({},he),be==null?void 0:be.style)}),U.map(function(Je,ke){return n.createElement(na,{key:ke,rowInfo:J,column:Je,colIndex:ke,indent:v,index:o,renderIndex:E,record:b,inverse:f,getHeight:c})}));return $e?n.createElement("div",{ref:t},_e,ve):_e}),aa=H(oa),eo=aa,la=n.forwardRef(function(e,t){var r=e.data,o=e.onScroll,l=I(G,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),i=l.flattenColumns,u=l.onColumnResize,f=l.getRowKey,c=l.expandedKeys,p=l.prefixCls,b=l.childrenColumnName,v=l.emptyNode,E=l.scrollX,x=I(_r),$=x.sticky,U=x.scrollY,F=x.listItemHeight,oe=n.useRef(),Y=Be(r,b,c,f),J=n.useMemo(function(){var ue=0;return i.map(function(se){var z=se.width,he=se.key;return ue+=z,[he,z,ue]})},[i]),$e=n.useMemo(function(){return J.map(function(ue){return ue[2]})},[J]);n.useEffect(function(){J.forEach(function(ue){var se=(0,V.Z)(ue,2),z=se[0],he=se[1];u(z,he)})},[J]),n.useImperativeHandle(t,function(){var ue={scrollTo:function(z){var he;(he=oe.current)===null||he===void 0||he.scrollTo(z)}};return Object.defineProperty(ue,"scrollLeft",{get:function(){var z;return((z=oe.current)===null||z===void 0?void 0:z.getScrollInfo().x)||0},set:function(z){var he;(he=oe.current)===null||he===void 0||he.scrollTo({left:z})}}),ue});var ge=function(se,z){var he,_e=(he=Y[z])===null||he===void 0?void 0:he.record,Je=se.onCell;if(Je){var ke,rt=Je(_e,z);return(ke=rt==null?void 0:rt.rowSpan)!==null&&ke!==void 0?ke:1}return 1},be=function(se){var z=se.start,he=se.end,_e=se.getSize,Je=se.offsetY;if(he<0)return null;for(var ke=i.filter(function(ft){return ge(ft,z)===0}),rt=z,mt=function(Bt){if(ke=ke.filter(function(Re){return ge(Re,Bt)===0}),!ke.length)return rt=Bt,1},qe=z;qe>=0&&!mt(qe);qe-=1);for(var gt=i.filter(function(ft){return ge(ft,he)!==1}),Mt=he,jt=function(Bt){if(gt=gt.filter(function(Re){return ge(Re,Bt)!==1}),!gt.length)return Mt=Math.max(Bt-1,he),1},Qt=he;Qt1})&&Dt.push(Bt)},Rt=rt;Rt<=Mt;Rt+=1)it(Rt);var Ft=Dt.map(function(ft){var Bt=Y[ft],Re=f(Bt.record,ft),ot=function(de){var et=ft+de-1,ht=f(Y[et].record,et),Tt=_e(Re,ht);return Tt.bottom-Tt.top},Ae=_e(Re);return n.createElement(eo,{key:ft,data:Bt,rowKey:Re,index:ft,style:{top:-Je+Ae.top},extra:!0,getHeight:ot})});return Ft},He=n.useMemo(function(){return{columnsOffset:$e}},[$e]),Qe="".concat(p,"-tbody"),ve;if(Y.length){var nt={};$&&(nt.position="sticky",nt.bottom=0,(0,D.Z)($)==="object"&&$.offsetScroll&&(nt.bottom=$.offsetScroll)),ve=n.createElement(qo.Z,{fullHeight:!1,ref:oe,styles:{horizontalScrollBar:nt},className:h()(Qe,"".concat(Qe,"-virtual")),height:U,itemHeight:F||24,data:Y,itemKey:function(se){return f(se.record)},scrollWidth:E,onVirtualScroll:function(se){var z=se.x;o({scrollLeft:z})},extraRender:be},function(ue,se,z){var he=f(ue.record,se);return n.createElement(eo,(0,W.Z)({data:ue,rowKey:he,index:se},z))})}else ve=n.createElement("div",{className:h()("".concat(p,"-placeholder"))},n.createElement(Te,{component:"div",prefixCls:p},v));return n.createElement(qr.Provider,{value:He},ve)}),ia=H(la),sa=ia,da=function(t,r){var o=r.ref,l=r.onScroll;return n.createElement(sa,{ref:o,data:t,onScroll:l})};function ca(e,t){var r=e.columns,o=e.scroll,l=e.sticky,i=e.prefixCls,u=i===void 0?Qr:i,f=e.className,c=e.listItemHeight,p=e.components,b=o||{},v=b.x,E=b.y;typeof v!="number"&&(v=1),typeof E!="number"&&(E=500);var x=n.useMemo(function(){return{sticky:l,scrollY:E,listItemHeight:c}},[l,E,c]);return n.createElement(_r.Provider,{value:x},n.createElement(_o,(0,W.Z)({},e,{className:h()(f,"".concat(u,"-virtual")),scroll:(0,O.Z)((0,O.Z)({},o),{},{x:v}),components:(0,O.Z)((0,O.Z)({},p),{},{body:da}),columns:r,internalHooks:P,tailor:!0,ref:t})))}var ua=n.forwardRef(ca);function to(e){return Pe(ua,e)}var ti=to(),ni=null;function fa(e){return null}var va=fa;function pa(e){return null}var ma=pa,ga=a(85824),no=a(31087),Rr=a(27545),ha=a(25237),ya=a(65589),ba=a(85556),Ir=a(27970),hr=a(87894),ro=a(10591),oo=a(22900);const kn={},Kr="SELECT_ALL",Dr="SELECT_INVERT",Tr="SELECT_NONE",ao=[],lo=(e,t)=>{let r=[];return(t||[]).forEach(o=>{r.push(o),o&&typeof o=="object"&&e in o&&(r=[].concat((0,Ct.Z)(r),(0,Ct.Z)(lo(e,o[e]))))}),r};var Ca=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:o,defaultSelectedRowKeys:l,getCheckboxProps:i,onChange:u,onSelect:f,onSelectAll:c,onSelectInvert:p,onSelectNone:b,onSelectMultiple:v,columnWidth:E,type:x,selections:$,fixed:U,renderCell:F,hideSelectAll:oe,checkStrictly:Y=!0}=t||{},{prefixCls:J,data:$e,pageData:ge,getRecordByKey:be,getRowKey:He,expandType:Qe,childrenColumnName:ve,locale:nt,getPopupContainer:ue}=e,se=(0,Ir.ln)("Table"),[z,he]=(0,ba.Z)(Re=>Re),[_e,Je]=(0,ya.Z)(o||l||ao,{value:o}),ke=n.useRef(new Map),rt=(0,n.useCallback)(Re=>{if(r){const ot=new Map;Re.forEach(Ae=>{let ze=be(Ae);!ze&&ke.current.has(Ae)&&(ze=ke.current.get(Ae)),ot.set(Ae,ze)}),ke.current=ot}},[be,r]);n.useEffect(()=>{rt(_e)},[_e]);const{keyEntities:mt}=(0,n.useMemo)(()=>{if(Y)return{keyEntities:null};let Re=$e;if(r){const ot=new Set($e.map((ze,de)=>He(ze,de))),Ae=Array.from(ke.current).reduce((ze,de)=>{let[et,ht]=de;return ot.has(et)?ze:ze.concat(ht)},[]);Re=[].concat((0,Ct.Z)(Re),(0,Ct.Z)(Ae))}return(0,ha.I8)(Re,{externalGetKey:He,childrenPropName:ve})},[$e,He,Y,ve,r]),qe=(0,n.useMemo)(()=>lo(ve,ge),[ve,ge]),gt=(0,n.useMemo)(()=>{const Re=new Map;return qe.forEach((ot,Ae)=>{const ze=He(ot,Ae),de=(i?i(ot):null)||{};Re.set(ze,de)}),Re},[qe,He,i]),Mt=(0,n.useCallback)(Re=>{var ot;return!!(!((ot=gt.get(He(Re)))===null||ot===void 0)&&ot.disabled)},[gt,He]),[jt,Qt]=(0,n.useMemo)(()=>{if(Y)return[_e||[],[]];const{checkedKeys:Re,halfCheckedKeys:ot}=(0,Rr.S)(_e,!0,mt,Mt);return[Re||[],ot]},[_e,Y,mt,Mt]),Dt=(0,n.useMemo)(()=>{const Re=x==="radio"?jt.slice(0,1):jt;return new Set(Re)},[jt,x]),it=(0,n.useMemo)(()=>x==="radio"?new Set:new Set(Qt),[Qt,x]);n.useEffect(()=>{t||Je(ao)},[!!t]);const Rt=(0,n.useCallback)((Re,ot)=>{let Ae,ze;rt(Re),r?(Ae=Re,ze=Re.map(de=>ke.current.get(de))):(Ae=[],ze=[],Re.forEach(de=>{const et=be(de);et!==void 0&&(Ae.push(de),ze.push(et))})),Je(Ae),u==null||u(Ae,ze,{type:ot})},[Je,be,u,r]),Ft=(0,n.useCallback)((Re,ot,Ae,ze)=>{if(f){const de=Ae.map(et=>be(et));f(be(Re),ot,de,ze)}Rt(Ae,"single")},[f,be,Rt]),ft=(0,n.useMemo)(()=>!$||oe?null:($===!0?[Kr,Dr,Tr]:$).map(ot=>ot===Kr?{key:"all",text:nt.selectionAll,onSelect(){Rt($e.map((Ae,ze)=>He(Ae,ze)).filter(Ae=>{const ze=gt.get(Ae);return!(ze!=null&&ze.disabled)||Dt.has(Ae)}),"all")}}:ot===Dr?{key:"invert",text:nt.selectInvert,onSelect(){const Ae=new Set(Dt);ge.forEach((de,et)=>{const ht=He(de,et),Tt=gt.get(ht);Tt!=null&&Tt.disabled||(Ae.has(ht)?Ae.delete(ht):Ae.add(ht))});const ze=Array.from(Ae);p&&(se.deprecated(!1,"onSelectInvert","onChange"),p(ze)),Rt(ze,"invert")}}:ot===Tr?{key:"none",text:nt.selectNone,onSelect(){b==null||b(),Rt(Array.from(Dt).filter(Ae=>{const ze=gt.get(Ae);return ze==null?void 0:ze.disabled}),"none")}}:ot).map(ot=>Object.assign(Object.assign({},ot),{onSelect:function(){for(var Ae,ze,de=arguments.length,et=new Array(de),ht=0;ht{var ot;if(!t)return Re.filter(Et=>Et!==kn);let Ae=(0,Ct.Z)(Re);const ze=new Set(Dt),de=qe.map(He).filter(Et=>!gt.get(Et).disabled),et=de.every(Et=>ze.has(Et)),ht=de.some(Et=>ze.has(Et)),Tt=()=>{const Et=[];et?de.forEach(bt=>{ze.delete(bt),Et.push(bt)}):de.forEach(bt=>{ze.has(bt)||(ze.add(bt),Et.push(bt))});const It=Array.from(ze);c==null||c(!et,It.map(bt=>be(bt)),Et.map(bt=>be(bt))),Rt(It,"all"),he(null)};let nn,dt;if(x!=="radio"){let Et;if(ft){const Lt={getPopupContainer:ue,items:ft.map((St,fn)=>{const{key:on,text:$n,onSelect:bn}=St;return{key:on!=null?on:fn,onClick:()=>{bn==null||bn(de)},label:$n}})};Et=n.createElement("div",{className:`${J}-selection-extra`},n.createElement(ro.Z,{menu:Lt,getPopupContainer:ue},n.createElement("span",null,n.createElement(ga.Z,null))))}const It=qe.map((Lt,St)=>{const fn=He(Lt,St),on=gt.get(fn)||{};return Object.assign({checked:ze.has(fn)},on)}).filter(Lt=>{let{disabled:St}=Lt;return St}),bt=!!It.length&&It.length===qe.length,qt=bt&&It.every(Lt=>{let{checked:St}=Lt;return St}),Wt=bt&&It.some(Lt=>{let{checked:St}=Lt;return St});dt=n.createElement(hr.Z,{checked:bt?qt:!!qe.length&&et,indeterminate:bt?!qt&&Wt:!et&&ht,onChange:Tt,disabled:qe.length===0||bt,"aria-label":Et?"Custom selection":"Select all",skipGroup:!0}),nn=!oe&&n.createElement("div",{className:`${J}-selection`},dt,Et)}let un;x==="radio"?un=(Et,It,bt)=>{const qt=He(It,bt),Wt=ze.has(qt);return{node:n.createElement(oo.ZP,Object.assign({},gt.get(qt),{checked:Wt,onClick:Lt=>Lt.stopPropagation(),onChange:Lt=>{ze.has(qt)||Ft(qt,!0,[qt],Lt.nativeEvent)}})),checked:Wt}}:un=(Et,It,bt)=>{var qt;const Wt=He(It,bt),Lt=ze.has(Wt),St=it.has(Wt),fn=gt.get(Wt);let on;return Qe==="nest"?on=St:on=(qt=fn==null?void 0:fn.indeterminate)!==null&&qt!==void 0?qt:St,{node:n.createElement(hr.Z,Object.assign({},fn,{indeterminate:on,checked:Lt,skipGroup:!0,onClick:$n=>$n.stopPropagation(),onChange:$n=>{let{nativeEvent:bn}=$n;const{shiftKey:ur}=bn,An=de.findIndex(en=>en===Wt),Fn=jt.some(en=>de.includes(en));if(ur&&Y&&Fn){const en=z(An,de,ze),Ut=Array.from(ze);v==null||v(!Lt,Ut.map(Gt=>be(Gt)),en.map(Gt=>be(Gt))),Rt(Ut,"multiple")}else{const en=jt;if(Y){const Ut=Lt?(0,no._5)(en,Wt):(0,no.L0)(en,Wt);Ft(Wt,!Lt,Ut,bn)}else{const Ut=(0,Rr.S)([].concat((0,Ct.Z)(en),[Wt]),!0,mt,Mt),{checkedKeys:Gt,halfCheckedKeys:Cn}=Ut;let Hn=Gt;if(Lt){const vn=new Set(Gt);vn.delete(Wt),Hn=(0,Rr.S)(Array.from(vn),{checked:!1,halfCheckedKeys:Cn},mt,Mt).checkedKeys}Ft(Wt,!Lt,Hn,bn)}}he(Lt?null:An)}})),checked:Lt}};const Jt=(Et,It,bt)=>{const{node:qt,checked:Wt}=un(Et,It,bt);return F?F(Wt,It,bt,qt):qt};if(!Ae.includes(kn))if(Ae.findIndex(Et=>{var It;return((It=Et[Pt])===null||It===void 0?void 0:It.columnType)==="EXPAND_COLUMN"})===0){const[Et,...It]=Ae;Ae=[Et,kn].concat((0,Ct.Z)(It))}else Ae=[kn].concat((0,Ct.Z)(Ae));const yn=Ae.indexOf(kn);Ae=Ae.filter((Et,It)=>Et!==kn||It===yn);const Ht=Ae[yn-1],_t=Ae[yn+1];let Zt=U;Zt===void 0&&((_t==null?void 0:_t.fixed)!==void 0?Zt=_t.fixed:(Ht==null?void 0:Ht.fixed)!==void 0&&(Zt=Ht.fixed)),Zt&&Ht&&((ot=Ht[Pt])===null||ot===void 0?void 0:ot.columnType)==="EXPAND_COLUMN"&&Ht.fixed===void 0&&(Ht.fixed=Zt);const _n=h()(`${J}-selection-col`,{[`${J}-selection-col-with-dropdown`]:$&&x==="checkbox"}),qn=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(dt):t.columnTitle:nn,er={fixed:Zt,width:E,className:`${J}-selection-column`,title:qn(),render:Jt,onCell:t.onCell,[Pt]:{className:_n}};return Ae.map(Et=>Et===kn?er:Et)},[He,qe,t,jt,Dt,it,E,ft,Qe,gt,v,Ft,Mt]),Dt]},xa=a(87017);function Sa(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const o=e[r];e._antProxy[r]=o,e[r]=t[r]}}),e}function Ea(e,t){return(0,n.useImperativeHandle)(e,()=>{const r=t(),{nativeElement:o}=r;return typeof Proxy!="undefined"?new Proxy(o,{get(l,i){return r[i]?r[i]:Reflect.get(l,i)}}):Sa(o,r)})}var Oa=a(68617),io=a(31594),wa=a(7717),$a=a(10254),Pa=a(17436),Na=a(70836),Ra=a(59848),Ia=a(98162),Ka=a(38705),Da=a(99455);function Ta(e){return function(r){let{prefixCls:o,onExpand:l,record:i,expanded:u,expandable:f}=r;const c=`${o}-row-expand-icon`;return n.createElement("button",{type:"button",onClick:p=>{l(i,p),p.stopPropagation()},className:h()(c,{[`${c}-spaced`]:!f,[`${c}-expanded`]:f&&u,[`${c}-collapsed`]:f&&!u}),"aria-label":u?e.collapse:e.expand,"aria-expanded":u})}}var ka=Ta;function Ma(e){return(r,o)=>{const l=r.querySelector(`.${e}-container`);let i=o;if(l){const u=getComputedStyle(l),f=parseInt(u.borderLeftWidth,10),c=parseInt(u.borderRightWidth,10);i=o-f-c}return i}}function Bn(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function dr(e,t){return t?`${t}-${e}`:`${e}`}function yr(e,t){return typeof e=="function"?e(t):e}function Za(e,t){const r=yr(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var La={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Ba=La,kr=a(38782),Aa=function(t,r){return n.createElement(kr.Z,(0,W.Z)({},t,{ref:r,icon:Ba}))},Fa=n.forwardRef(Aa),Ha=a(2116);function za(e){const t=n.useRef(e),r=(0,Ha.Z)();return[()=>t.current,o=>{t.current=o,r()}]}var so=a(47100),co=a(55877),ja=a(62737),Wa=a(52022),Ua=a(57976),Va=a(61020),Ga=a(33952);function Xa(e){let{value:t,onChange:r,filterSearch:o,tablePrefixCls:l,locale:i}=e;return o?n.createElement("div",{className:`${l}-filter-dropdown-search`},n.createElement(Ga.Z,{prefix:n.createElement(Va.Z,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null}var uo=Xa,fo=a(57);const Ya=e=>{const{keyCode:t}=e;t===fo.Z.ENTER&&e.stopPropagation()};var Qa=n.forwardRef((e,t)=>n.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:Ya,ref:t},e.children));function Jn(e){let t=[];return(e||[]).forEach(r=>{let{value:o,children:l}=r;t.push(o),l&&(t=[].concat((0,Ct.Z)(t),(0,Ct.Z)(Jn(l))))}),t}function Ja(e){return e.some(t=>{let{children:r}=t;return r})}function vo(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function po(e){let{filters:t,prefixCls:r,filteredKeys:o,filterMultiple:l,searchValue:i,filterSearch:u}=e;return t.map((f,c)=>{const p=String(f.value);if(f.children)return{key:p||c,label:f.text,popupClassName:`${r}-dropdown-submenu`,children:po({filters:f.children,prefixCls:r,filteredKeys:o,filterMultiple:l,searchValue:i,filterSearch:u})};const b=l?hr.Z:oo.ZP,v={key:f.value!==void 0?p:c,label:n.createElement(n.Fragment,null,n.createElement(b,{checked:o.includes(p)}),n.createElement("span",null,f.text))};return i.trim()?typeof u=="function"?u(i,f)?v:null:vo(i,f.text)?v:null:v})}function Mr(e){return e||[]}function _a(e){var t,r;const{tablePrefixCls:o,prefixCls:l,column:i,dropdownPrefixCls:u,columnKey:f,filterMultiple:c,filterMode:p="menu",filterSearch:b=!1,filterState:v,triggerFilter:E,locale:x,children:$,getPopupContainer:U}=e,{filterDropdownOpen:F,onFilterDropdownOpenChange:oe,filterResetToDefaultFilteredValue:Y,defaultFilteredValue:J,filterDropdownVisible:$e,onFilterDropdownVisibleChange:ge}=i,[be,He]=n.useState(!1),Qe=!!(v&&(!((t=v.filteredKeys)===null||t===void 0)&&t.length||v.forceFiltered)),ve=de=>{He(de),oe==null||oe(de),ge==null||ge(de)},nt=(r=F!=null?F:$e)!==null&&r!==void 0?r:be,ue=v==null?void 0:v.filteredKeys,[se,z]=za(Mr(ue)),he=de=>{let{selectedKeys:et}=de;z(et)},_e=(de,et)=>{let{node:ht,checked:Tt}=et;he(c?{selectedKeys:de}:{selectedKeys:Tt&&ht.key?[ht.key]:[]})};n.useEffect(()=>{be&&he({selectedKeys:Mr(ue)})},[ue]);const[Je,ke]=n.useState([]),rt=de=>{ke(de)},[mt,qe]=n.useState(""),gt=de=>{const{value:et}=de.target;qe(et)};n.useEffect(()=>{be||qe("")},[be]);const Mt=de=>{const et=de&&de.length?de:null;if(et===null&&(!v||!v.filteredKeys)||(0,R.Z)(et,v==null?void 0:v.filteredKeys,!0))return null;E({column:i,key:f,filteredKeys:et})},jt=()=>{ve(!1),Mt(se())},Qt=function(){let{confirm:de,closeDropdown:et}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};de&&Mt([]),et&&ve(!1),qe(""),z(Y?(J||[]).map(ht=>String(ht)):[])},Dt=function(){let{closeDropdown:de}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};de&&ve(!1),Mt(se())},it=(de,et)=>{et.source==="trigger"&&(de&&ue!==void 0&&z(Mr(ue)),ve(de),!de&&!i.filterDropdown&&jt())},Rt=h()({[`${u}-menu-without-submenu`]:!Ja(i.filters||[])}),Ft=de=>{if(de.target.checked){const et=Jn(i==null?void 0:i.filters).map(ht=>String(ht));z(et)}else z([])},ft=de=>{let{filters:et}=de;return(et||[]).map((ht,Tt)=>{const nn=String(ht.value),dt={title:ht.text,key:ht.value!==void 0?nn:String(Tt)};return ht.children&&(dt.children=ft({filters:ht.children})),dt})},Bt=de=>{var et;return Object.assign(Object.assign({},de),{text:de.title,value:de.key,children:((et=de.children)===null||et===void 0?void 0:et.map(ht=>Bt(ht)))||[]})};let Re;if(typeof i.filterDropdown=="function")Re=i.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:de=>he({selectedKeys:de}),selectedKeys:se(),confirm:Dt,clearFilters:Qt,filters:i.filters,visible:nt,close:()=>{ve(!1)}});else if(i.filterDropdown)Re=i.filterDropdown;else{const de=se()||[],et=()=>(i.filters||[]).length===0?n.createElement(co.Z,{image:co.Z.PRESENTED_IMAGE_SIMPLE,description:x.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):p==="tree"?n.createElement(n.Fragment,null,n.createElement(uo,{filterSearch:b,value:mt,onChange:gt,tablePrefixCls:o,locale:x}),n.createElement("div",{className:`${o}-filter-dropdown-tree`},c?n.createElement(hr.Z,{checked:de.length===Jn(i.filters).length,indeterminate:de.length>0&&de.lengthtypeof b=="function"?b(mt,Bt(Tt)):vo(mt,Tt.title):void 0}))):n.createElement(n.Fragment,null,n.createElement(uo,{filterSearch:b,value:mt,onChange:gt,tablePrefixCls:o,locale:x}),n.createElement(ja.Z,{selectable:!0,multiple:c,prefixCls:`${u}-menu`,className:Rt,onSelect:he,onDeselect:he,selectedKeys:de,getPopupContainer:U,openKeys:Je,onOpenChange:rt,items:po({filters:i.filters||[],filterSearch:b,prefixCls:l,filteredKeys:se(),filterMultiple:c,searchValue:mt})})),ht=()=>Y?(0,R.Z)((J||[]).map(Tt=>String(Tt)),de,!0):de.length===0;Re=n.createElement(n.Fragment,null,et(),n.createElement("div",{className:`${l}-dropdown-btns`},n.createElement(so.ZP,{type:"link",size:"small",disabled:ht(),onClick:()=>Qt()},x.filterReset),n.createElement(so.ZP,{type:"primary",size:"small",onClick:jt},x.filterConfirm)))}i.filterDropdown&&(Re=n.createElement(Wa.J,{selectable:void 0},Re));const ot=()=>n.createElement(Qa,{className:`${l}-dropdown`},Re);let Ae;typeof i.filterIcon=="function"?Ae=i.filterIcon(Qe):i.filterIcon?Ae=i.filterIcon:Ae=n.createElement(Fa,null);const{direction:ze}=n.useContext(io.E_);return n.createElement("div",{className:`${l}-column`},n.createElement("span",{className:`${o}-column-title`},$),n.createElement(ro.Z,{dropdownRender:ot,trigger:["click"],open:nt,onOpenChange:it,getPopupContainer:U,placement:ze==="rtl"?"bottomLeft":"bottomRight"},n.createElement("span",{role:"button",tabIndex:-1,className:h()(`${l}-trigger`,{active:Qe}),onClick:de=>{de.stopPropagation()}},Ae)))}var qa=_a;function Zr(e,t,r){let o=[];return(e||[]).forEach((l,i)=>{var u;const f=dr(i,r);if(l.filters||"filterDropdown"in l||"onFilter"in l)if("filteredValue"in l){let c=l.filteredValue;"filterDropdown"in l||(c=(u=c==null?void 0:c.map(String))!==null&&u!==void 0?u:c),o.push({column:l,key:Bn(l,f),filteredKeys:c,forceFiltered:l.filtered})}else o.push({column:l,key:Bn(l,f),filteredKeys:t&&l.defaultFilteredValue?l.defaultFilteredValue:void 0,forceFiltered:l.filtered});"children"in l&&(o=[].concat((0,Ct.Z)(o),(0,Ct.Z)(Zr(l.children,t,f))))}),o}function mo(e,t,r,o,l,i,u,f){return r.map((c,p)=>{const b=dr(p,f),{filterMultiple:v=!0,filterMode:E,filterSearch:x}=c;let $=c;if($.filters||$.filterDropdown){const U=Bn($,b),F=o.find(oe=>{let{key:Y}=oe;return U===Y});$=Object.assign(Object.assign({},$),{title:oe=>n.createElement(qa,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:$,columnKey:U,filterState:F,filterMultiple:v,filterMode:E,filterSearch:x,triggerFilter:i,locale:l,getPopupContainer:u},yr(c.title,oe))})}return"children"in $&&($=Object.assign(Object.assign({},$),{children:mo(e,t,$.children,o,l,i,u,b)})),$})}function go(e){const t={};return e.forEach(r=>{let{key:o,filteredKeys:l,column:i}=r;const u=o,{filters:f,filterDropdown:c}=i;if(c)t[u]=l||null;else if(Array.isArray(l)){const p=Jn(f);t[u]=p.filter(b=>l.includes(String(b)))}else t[u]=null}),t}function ho(e,t){return t.reduce((r,o)=>{const{column:{onFilter:l,filters:i},filteredKeys:u}=o;return l&&u&&u.length?r.filter(f=>u.some(c=>{const p=Jn(i),b=p.findIndex(E=>String(E)===String(c)),v=b!==-1?p[b]:c;return l(v,f)})):r},e)}const yo=e=>e.flatMap(t=>"children"in t?[t].concat((0,Ct.Z)(yo(t.children||[]))):[t]);function el(e){let{prefixCls:t,dropdownPrefixCls:r,mergedColumns:o,onFilterChange:l,getPopupContainer:i,locale:u}=e;const f=(0,Ir.ln)("Table"),c=n.useMemo(()=>yo(o||[]),[o]),[p,b]=n.useState(()=>Zr(c,!0)),v=n.useMemo(()=>{const U=Zr(c,!1);if(U.length===0)return U;let F=!0,oe=!0;if(U.forEach(Y=>{let{filteredKeys:J}=Y;J!==void 0?F=!1:oe=!1}),F){const Y=(c||[]).map((J,$e)=>Bn(J,dr($e)));return p.filter(J=>{let{key:$e}=J;return Y.includes($e)}).map(J=>{const $e=c[Y.findIndex(ge=>ge===J.key)];return Object.assign(Object.assign({},J),{column:Object.assign(Object.assign({},J.column),$e),forceFiltered:$e.filtered})})}return U},[c,p]),E=n.useMemo(()=>go(v),[v]),x=U=>{const F=v.filter(oe=>{let{key:Y}=oe;return Y!==U.key});F.push(U),b(F),l(go(F),F)};return[U=>mo(t,r,U,v,u,x,i),v,E]}var tl=el,nl=a(56815),rl=a(41616),ol=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l{const i=e[l];typeof i!="function"&&(r[l]=i)}),r}function ll(e,t,r){const o=r&&typeof r=="object"?r:{},{total:l=0}=o,i=ol(o,["total"]),[u,f]=(0,n.useState)(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:bo})),c=(0,rl.Z)(u,i,{total:l>0?l:e}),p=Math.ceil((l||e)/c.pageSize);c.current>p&&(c.current=p||1);const b=(E,x)=>{f({current:E!=null?E:1,pageSize:x||c.pageSize})},v=(E,x)=>{var $;r&&(($=r.onChange)===null||$===void 0||$.call(r,E,x)),b(E,x),t(E,x||(c==null?void 0:c.pageSize))};return r===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:v}),b]}var il=ll,sl=a(7819),dl=function(t,r){return n.createElement(kr.Z,(0,W.Z)({},t,{ref:r,icon:sl.Z}))},cl=n.forwardRef(dl),ul=a(71506),fl=function(t,r){return n.createElement(kr.Z,(0,W.Z)({},t,{ref:r,icon:ul.Z}))},vl=n.forwardRef(fl),pl=a(32618);const br="ascend",Lr="descend";function Cr(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Co(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function ml(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Br(e,t,r){let o=[];function l(i,u){o.push({column:i,key:Bn(i,u),multiplePriority:Cr(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,u)=>{const f=dr(u,r);i.children?("sortOrder"in i&&l(i,f),o=[].concat((0,Ct.Z)(o),(0,Ct.Z)(Br(i.children,t,f)))):i.sorter&&("sortOrder"in i?l(i,f):t&&i.defaultSortOrder&&o.push({column:i,key:Bn(i,f),multiplePriority:Cr(i),sortOrder:i.defaultSortOrder}))}),o}function xo(e,t,r,o,l,i,u,f){return(t||[]).map((c,p)=>{const b=dr(p,f);let v=c;if(v.sorter){const E=v.sortDirections||l,x=v.showSorterTooltip===void 0?u:v.showSorterTooltip,$=Bn(v,b),U=r.find(Qe=>{let{key:ve}=Qe;return ve===$}),F=U?U.sortOrder:null,oe=ml(E,F);let Y;if(c.sortIcon)Y=c.sortIcon({sortOrder:F});else{const Qe=E.includes(br)&&n.createElement(vl,{className:h()(`${e}-column-sorter-up`,{active:F===br})}),ve=E.includes(Lr)&&n.createElement(cl,{className:h()(`${e}-column-sorter-down`,{active:F===Lr})});Y=n.createElement("span",{className:h()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(Qe&&ve)})},n.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},Qe,ve))}const{cancelSort:J,triggerAsc:$e,triggerDesc:ge}=i||{};let be=J;oe===Lr?be=ge:oe===br&&(be=$e);const He=typeof x=="object"?Object.assign({title:be},x):{title:be};v=Object.assign(Object.assign({},v),{className:h()(v.className,{[`${e}-column-sort`]:F}),title:Qe=>{const ve=n.createElement("div",{className:`${e}-column-sorters`},n.createElement("span",{className:`${e}-column-title`},yr(c.title,Qe)),Y);return x?n.createElement(pl.Z,Object.assign({},He),ve):ve},onHeaderCell:Qe=>{const ve=c.onHeaderCell&&c.onHeaderCell(Qe)||{},nt=ve.onClick,ue=ve.onKeyDown;ve.onClick=he=>{o({column:c,key:$,sortOrder:oe,multiplePriority:Cr(c)}),nt==null||nt(he)},ve.onKeyDown=he=>{he.keyCode===fo.Z.ENTER&&(o({column:c,key:$,sortOrder:oe,multiplePriority:Cr(c)}),ue==null||ue(he))};const se=Za(c.title,{}),z=se==null?void 0:se.toString();return F?ve["aria-sort"]=F==="ascend"?"ascending":"descending":ve["aria-label"]=z||"",ve.className=h()(ve.className,`${e}-column-has-sorters`),ve.tabIndex=0,c.ellipsis&&(ve.title=(se!=null?se:"").toString()),ve}})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:xo(e,v.children,r,o,l,i,u,b)})),v})}function So(e){const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}}function Eo(e){const t=e.filter(r=>{let{sortOrder:o}=r;return o}).map(So);return t.length===0&&e.length?Object.assign(Object.assign({},So(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Ar(e,t,r){const o=t.slice().sort((u,f)=>f.multiplePriority-u.multiplePriority),l=e.slice(),i=o.filter(u=>{let{column:{sorter:f},sortOrder:c}=u;return Co(f)&&c});return i.length?l.sort((u,f)=>{for(let c=0;c{const f=u[r];return f?Object.assign(Object.assign({},u),{[r]:Ar(f,t,r)}):u}):l}function gl(e){let{prefixCls:t,mergedColumns:r,onSorterChange:o,sortDirections:l,tableLocale:i,showSorterTooltip:u}=e;const[f,c]=n.useState(Br(r,!0)),p=n.useMemo(()=>{let $=!0;const U=Br(r,!1);if(!U.length)return f;const F=[];function oe(J){$?F.push(J):F.push(Object.assign(Object.assign({},J),{sortOrder:null}))}let Y=null;return U.forEach(J=>{Y===null?(oe(J),J.sortOrder&&(J.multiplePriority===!1?$=!1:Y=!0)):(Y&&J.multiplePriority!==!1||($=!1),oe(J))}),F},[r,f]),b=n.useMemo(()=>{const $=p.map(U=>{let{column:F,sortOrder:oe}=U;return{column:F,order:oe}});return{sortColumns:$,sortColumn:$[0]&&$[0].column,sortOrder:$[0]&&$[0].order}},[p]);function v($){let U;$.multiplePriority===!1||!p.length||p[0].multiplePriority===!1?U=[$]:U=[].concat((0,Ct.Z)(p.filter(F=>{let{key:oe}=F;return oe!==$.key})),[$]),c(U),o(Eo(U),U)}return[$=>xo(t,$,p,v,l,i,u),p,b,()=>Eo(p)]}function Oo(e,t){return e.map(r=>{const o=Object.assign({},r);return o.title=yr(r.title,t),"children"in o&&(o.children=Oo(o.children,t)),o})}function hl(e){return[n.useCallback(r=>Oo(r,e),[e])]}var yl=Jr((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:o}=t;return r!==o}),bl=to((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:o}=t;return r!==o}),Ge=a(60076),cr=a(99978),xr=a(6301),Cl=a(81501),xl=a(90467),Sl=e=>{const{componentCls:t,lineWidth:r,lineType:o,tableBorderColor:l,tableHeaderBg:i,tablePaddingVertical:u,tablePaddingHorizontal:f,calc:c}=e,p=`${(0,Ge.bf)(r)} ${o} ${l}`,b=(v,E,x)=>({[`&${t}-${v}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` - > table > tbody > tr > th, - > table > tbody > tr > td - `]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,Ge.bf)(c(E).mul(-1).equal())} - ${(0,Ge.bf)(c(c(x).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:p,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:p,borderTop:p,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{[` - > thead > tr > th, - > thead > tr > td, - > tbody > tr > th, - > tbody > tr > td, - > tfoot > tr > th, - > tfoot > tr > td - `]:{borderInlineEnd:p},"> thead":{"> tr:not(:last-child) > th":{borderBottom:p},"> tr > th::before":{backgroundColor:"transparent !important"}},[` - > thead > tr, - > tbody > tr, - > tfoot > tr - `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:p}},[` - > tbody > tr > th, - > tbody > tr > td - `]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,Ge.bf)(c(u).mul(-1).equal())} ${(0,Ge.bf)(c(c(f).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:p,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},b("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),b("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:p,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Ge.bf)(r)} 0 ${(0,Ge.bf)(r)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:p}}}},El=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},xr.vS),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ol=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` - &:hover > th, - &:hover > td, - `]:{background:e.colorBgContainer}}}}},wl=a(3970),$l=e=>{const{componentCls:t,antCls:r,motionDurationSlow:o,lineWidth:l,paddingXS:i,lineType:u,tableBorderColor:f,tableExpandIconBg:c,tableExpandColumnWidth:p,borderRadius:b,tablePaddingVertical:v,tablePaddingHorizontal:E,tableExpandedRowBg:x,paddingXXS:$,expandIconMarginTop:U,expandIconSize:F,expandIconHalfInner:oe,expandIconScale:Y,calc:J}=e,$e=`${(0,Ge.bf)(l)} ${u} ${f}`,ge=J($).sub(l).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:p},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,wl.N)(e)),{position:"relative",float:"left",boxSizing:"border-box",width:F,height:F,padding:0,color:"inherit",lineHeight:(0,Ge.bf)(F),background:c,border:$e,borderRadius:b,transform:`scale(${Y})`,transition:`all ${o}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:oe,insetInlineEnd:ge,insetInlineStart:ge,height:l},"&::after":{top:ge,bottom:ge,insetInlineStart:oe,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:U,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:x}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Ge.bf)(J(v).mul(-1).equal())} ${(0,Ge.bf)(J(E).mul(-1).equal())}`,padding:`${(0,Ge.bf)(v)} ${(0,Ge.bf)(E)}`}}}},Pl=e=>{const{componentCls:t,antCls:r,iconCls:o,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:i,paddingXXS:u,paddingXS:f,colorText:c,lineWidth:p,lineType:b,tableBorderColor:v,headerIconColor:E,fontSizeSM:x,tablePaddingHorizontal:$,borderRadius:U,motionDurationSlow:F,colorTextDescription:oe,colorPrimary:Y,tableHeaderFilterActiveBg:J,colorTextDisabled:$e,tableFilterDropdownBg:ge,tableFilterDropdownHeight:be,controlItemBgHover:He,controlItemBgActive:Qe,boxShadowSecondary:ve,filterDropdownMenuBg:nt,calc:ue}=e,se=`${r}-dropdown`,z=`${t}-filter-dropdown`,he=`${r}-tree`,_e=`${(0,Ge.bf)(p)} ${b} ${v}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ue(u).mul(-1).equal(),marginInline:`${(0,Ge.bf)(u)} ${(0,Ge.bf)(ue($).div(2).mul(-1).equal())}`,padding:`0 ${(0,Ge.bf)(u)}`,color:E,fontSize:x,borderRadius:U,cursor:"pointer",transition:`all ${F}`,"&:hover":{color:oe,background:J},"&.active":{color:Y}}}},{[`${r}-dropdown`]:{[z]:Object.assign(Object.assign({},(0,xr.Wf)(e)),{minWidth:l,backgroundColor:ge,borderRadius:U,boxShadow:ve,overflow:"hidden",[`${se}-menu`]:{maxHeight:be,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:nt,"&:empty::after":{display:"block",padding:`${(0,Ge.bf)(f)} 0`,color:$e,fontSize:x,textAlign:"center",content:'"Not Found"'}},[`${z}-tree`]:{paddingBlock:`${(0,Ge.bf)(f)} 0`,paddingInline:f,[he]:{padding:0},[`${he}-treenode ${he}-node-content-wrapper:hover`]:{backgroundColor:He},[`${he}-treenode-checkbox-checked ${he}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Qe}}},[`${z}-search`]:{padding:f,borderBottom:_e,"&-input":{input:{minWidth:i},[o]:{color:$e}}},[`${z}-checkall`]:{width:"100%",marginBottom:u,marginInlineStart:u},[`${z}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Ge.bf)(ue(f).sub(p).equal())} ${(0,Ge.bf)(f)}`,overflow:"hidden",borderTop:_e}})}},{[`${r}-dropdown ${z}, ${z}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:f,color:c},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Nl=e=>{const{componentCls:t,lineWidth:r,colorSplit:o,motionDurationSlow:l,zIndexTableFixed:i,tableBg:u,zIndexTableSticky:f,calc:c}=e,p=o;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:i,background:u},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:c(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(f).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${p}`}},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${p}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${p}`}},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${p}`}}}}},Rl=e=>{const{componentCls:t,antCls:r,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${r}-pagination`]:{margin:`${(0,Ge.bf)(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Il=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,Ge.bf)(r)} ${(0,Ge.bf)(r)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${(0,Ge.bf)(r)} ${(0,Ge.bf)(r)}`}}}}},Kl=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Dl=e=>{const{componentCls:t,antCls:r,iconCls:o,fontSizeIcon:l,padding:i,paddingXS:u,headerIconColor:f,headerIconHoverColor:c,tableSelectionColumnWidth:p,tableSelectedRowBg:b,tableSelectedRowHoverBg:v,tableRowHoverBg:E,tablePaddingHorizontal:x,calc:$}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:p,[`&${t}-selection-col-with-dropdown`]:{width:$(p).add(l).add($(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:$(p).add($(u).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:$(p).add(l).add($(i).div(4)).add($(u).mul(2)).equal()}},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column, - ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Ge.bf)($(x).div(4).equal()),[o]:{color:f,fontSize:l,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:b,"&-row-hover":{background:v}}},[`> ${t}-cell-row-hover`]:{background:E}}}}}},Tl=e=>{const{componentCls:t,tableExpandColumnWidth:r,calc:o}=e,l=(i,u,f,c)=>({[`${t}${t}-${i}`]:{fontSize:c,[` - ${t}-title, - ${t}-footer, - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${(0,Ge.bf)(u)} ${(0,Ge.bf)(f)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,Ge.bf)(o(f).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,Ge.bf)(o(u).mul(-1).equal())} ${(0,Ge.bf)(o(f).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,Ge.bf)(o(u).mul(-1).equal()),marginInline:`${(0,Ge.bf)(o(r).sub(f).equal())} ${(0,Ge.bf)(o(f).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,Ge.bf)(o(f).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},kl=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:o,headerIconColor:l,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:r,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},Ml=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:o,tableScrollThumbBgHover:l,tableScrollThumbSize:i,tableScrollBg:u,zIndexTableSticky:f,stickyScrollBarBorderRadius:c,lineWidth:p,lineType:b,tableBorderColor:v}=e,E=`${(0,Ge.bf)(p)} ${b} ${v}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:f,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Ge.bf)(i)} !important`,zIndex:f,display:"flex",alignItems:"center",background:u,borderTop:E,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},wo=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:o,calc:l}=e,i=`${(0,Ge.bf)(r)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,Ge.bf)(l(r).mul(-1).equal())} 0 ${o}`}}}},Zl=e=>{const{componentCls:t,motionDurationMid:r,lineWidth:o,lineType:l,tableBorderColor:i,calc:u}=e,f=`${(0,Ge.bf)(o)} ${l} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:f,transition:`background ${r}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Ge.bf)(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:f,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:f,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:u(o).mul(-1).equal(),borderInlineStart:f}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:f,borderBottom:f}}}}}};const Ll=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:o,tablePaddingHorizontal:l,tableExpandColumnWidth:i,lineWidth:u,lineType:f,tableBorderColor:c,tableFontSize:p,tableBg:b,tableRadius:v,tableHeaderTextColor:E,motionDurationMid:x,tableHeaderBg:$,tableHeaderCellSplitColor:U,tableFooterTextColor:F,tableFooterBg:oe,calc:Y}=e,J=`${(0,Ge.bf)(u)} ${f} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,xr.dF)()),{[t]:Object.assign(Object.assign({},(0,xr.Wf)(e)),{fontSize:p,background:b,borderRadius:`${(0,Ge.bf)(v)} ${(0,Ge.bf)(v)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Ge.bf)(v)} ${(0,Ge.bf)(v)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${(0,Ge.bf)(o)} ${(0,Ge.bf)(l)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,Ge.bf)(o)} ${(0,Ge.bf)(l)}`},[`${t}-thead`]:{[` - > tr > th, - > tr > td - `]:{position:"relative",color:E,fontWeight:r,textAlign:"start",background:$,borderBottom:J,transition:`background ${x} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:U,transform:"translateY(-50%)",transition:`background-color ${x}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${x}, border-color ${x}`,borderBottom:J,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:(0,Ge.bf)(Y(o).mul(-1).equal()),marginInline:`${(0,Ge.bf)(Y(i).sub(l).equal())} - ${(0,Ge.bf)(Y(l).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:E,fontWeight:r,textAlign:"start",background:$,borderBottom:J,transition:`background ${x} ease`}}},[`${t}-footer`]:{padding:`${(0,Ge.bf)(o)} ${(0,Ge.bf)(l)}`,color:F,background:oe}})}},Bl=e=>{const{colorFillAlter:t,colorBgContainer:r,colorTextHeading:o,colorFillSecondary:l,colorFillContent:i,controlItemBgActive:u,controlItemBgActiveHover:f,padding:c,paddingSM:p,paddingXS:b,colorBorderSecondary:v,borderRadiusLG:E,controlHeight:x,colorTextPlaceholder:$,fontSize:U,fontSizeSM:F,lineHeight:oe,lineWidth:Y,colorIcon:J,colorIconHover:$e,opacityLoading:ge,controlInteractiveSize:be}=e,He=new cr.C(l).onBackground(r).toHexShortString(),Qe=new cr.C(i).onBackground(r).toHexShortString(),ve=new cr.C(t).onBackground(r).toHexShortString(),nt=new cr.C(J),ue=new cr.C($e),se=be/2-Y,z=se*2+Y*3;return{headerBg:ve,headerColor:o,headerSortActiveBg:He,headerSortHoverBg:Qe,bodySortBg:ve,rowHoverBg:ve,rowSelectedBg:u,rowSelectedHoverBg:f,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:p,cellPaddingInlineMD:b,cellPaddingBlockSM:b,cellPaddingInlineSM:b,borderColor:v,headerBorderRadius:E,footerBg:ve,footerColor:o,cellFontSize:U,cellFontSizeMD:U,cellFontSizeSM:U,headerSplitColor:v,fixedHeaderSortActiveBg:He,headerFilterHoverBg:i,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:x,stickyScrollBarBg:$,stickyScrollBarBorderRadius:100,expandIconMarginTop:(U*oe-Y*3)/2-Math.ceil((F*1.4-Y*3)/2),headerIconColor:nt.clone().setAlpha(nt.getAlpha()*ge).toRgbString(),headerIconHoverColor:ue.clone().setAlpha(ue.getAlpha()*ge).toRgbString(),expandIconHalfInner:se,expandIconSize:z,expandIconScale:be/z}};var Al=(0,Cl.I$)("Table",e=>{const{colorTextHeading:t,colorSplit:r,colorBgContainer:o,controlInteractiveSize:l,headerBg:i,headerColor:u,headerSortActiveBg:f,headerSortHoverBg:c,bodySortBg:p,rowHoverBg:b,rowSelectedBg:v,rowSelectedHoverBg:E,rowExpandedBg:x,cellPaddingBlock:$,cellPaddingInline:U,cellPaddingBlockMD:F,cellPaddingInlineMD:oe,cellPaddingBlockSM:Y,cellPaddingInlineSM:J,borderColor:$e,footerBg:ge,footerColor:be,headerBorderRadius:He,cellFontSize:Qe,cellFontSizeMD:ve,cellFontSizeSM:nt,headerSplitColor:ue,fixedHeaderSortActiveBg:se,headerFilterHoverBg:z,filterDropdownBg:he,expandIconBg:_e,selectionColumnWidth:Je,stickyScrollBarBg:ke,calc:rt}=e,mt=2,qe=(0,xl.TS)(e,{tableFontSize:Qe,tableBg:o,tableRadius:He,tablePaddingVertical:$,tablePaddingHorizontal:U,tablePaddingVerticalMiddle:F,tablePaddingHorizontalMiddle:oe,tablePaddingVerticalSmall:Y,tablePaddingHorizontalSmall:J,tableBorderColor:$e,tableHeaderTextColor:u,tableHeaderBg:i,tableFooterTextColor:be,tableFooterBg:ge,tableHeaderCellSplitColor:ue,tableHeaderSortBg:f,tableHeaderSortHoverBg:c,tableBodySortBg:p,tableFixedHeaderSortActiveBg:se,tableHeaderFilterActiveBg:z,tableFilterDropdownBg:he,tableRowHoverBg:b,tableSelectedRowBg:v,tableSelectedRowHoverBg:E,zIndexTableFixed:mt,zIndexTableSticky:mt+1,tableFontSizeMiddle:ve,tableFontSizeSmall:nt,tableSelectionColumnWidth:Je,tableExpandIconBg:_e,tableExpandColumnWidth:rt(l).add(rt(e.padding).mul(2)).equal(),tableExpandedRowBg:x,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ke,tableScrollThumbBgHover:t,tableScrollBg:r});return[Ll(qe),Rl(qe),wo(qe),kl(qe),Pl(qe),Sl(qe),Il(qe),$l(qe),wo(qe),Ol(qe),Dl(qe),Nl(qe),Ml(qe),El(qe),Tl(qe),Kl(qe),Zl(qe)]},Bl,{unitless:{expandIconScale:!0}});const Fl=[],Hl=(e,t)=>{const{prefixCls:r,className:o,rootClassName:l,style:i,size:u,bordered:f,dropdownPrefixCls:c,dataSource:p,pagination:b,rowSelection:v,rowKey:E="key",rowClassName:x,columns:$,children:U,childrenColumnName:F,onChange:oe,getPopupContainer:Y,loading:J,expandIcon:$e,expandable:ge,expandedRowRender:be,expandIconColumnIndex:He,indentSize:Qe,scroll:ve,sortDirections:nt,locale:ue,showSorterTooltip:se=!0,virtual:z}=e,he=(0,Ir.ln)("Table"),_e=n.useMemo(()=>$||Ln(U),[$,U]),Je=n.useMemo(()=>_e.some(tt=>tt.responsive),[_e]),ke=(0,Na.Z)(Je),rt=n.useMemo(()=>{const tt=new Set(Object.keys(ke).filter(Ot=>ke[Ot]));return _e.filter(Ot=>!Ot.responsive||Ot.responsive.some(Xt=>tt.has(Xt)))},[_e,ke]),mt=(0,xa.Z)(e,["className","style","columns"]),{locale:qe=Ra.Z,direction:gt,table:Mt,renderEmpty:jt,getPrefixCls:Qt,getPopupContainer:Dt}=n.useContext(io.E_),it=(0,Pa.Z)(u),Rt=Object.assign(Object.assign({},qe.Table),ue),Ft=p||Fl,ft=Qt("table",r),Bt=Qt("dropdown",c),Re=Object.assign({childrenColumnName:F,expandIconColumnIndex:He},ge),{childrenColumnName:ot="children"}=Re,Ae=n.useMemo(()=>Ft.some(tt=>tt==null?void 0:tt[ot])?"nest":be||ge&&ge.expandedRowRender?"row":null,[Ft]),ze={body:n.useRef()},de=Ma(ft),et=n.useRef(null),ht=n.useRef(null);Ea(t,()=>Object.assign(Object.assign({},ht.current),{nativeElement:et.current}));const Tt=n.useMemo(()=>typeof E=="function"?E:tt=>tt==null?void 0:tt[E],[E]),[nn]=(0,nl.Z)(Ft,ot,Tt),dt={},un=function(tt,Ot){let Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Yt,an,dn;const pn=Object.assign(Object.assign({},dt),tt);Xt&&((Yt=dt.resetPagination)===null||Yt===void 0||Yt.call(dt),!((an=pn.pagination)===null||an===void 0)&&an.current&&(pn.pagination.current=1),b&&b.onChange&&b.onChange(1,(dn=pn.pagination)===null||dn===void 0?void 0:dn.pageSize)),ve&&ve.scrollToFirstRowOnChange!==!1&&ze.body.current&&(0,Oa.Z)(0,{getContainer:()=>ze.body.current}),oe==null||oe(pn.pagination,pn.filters,pn.sorter,{currentDataSource:ho(Ar(Ft,pn.sorterStates,ot),pn.filterStates),action:Ot})},Jt=(tt,Ot)=>{un({sorter:tt,sorterStates:Ot},"sort",!1)},[yn,Ht,_t,Zt]=gl({prefixCls:ft,mergedColumns:rt,onSorterChange:Jt,sortDirections:nt||["ascend","descend"],tableLocale:Rt,showSorterTooltip:se}),_n=n.useMemo(()=>Ar(Ft,Ht,ot),[Ft,Ht]);dt.sorter=Zt(),dt.sorterStates=Ht;const qn=(tt,Ot)=>{un({filters:tt,filterStates:Ot},"filter",!0)},[er,Et,It]=tl({prefixCls:ft,locale:Rt,dropdownPrefixCls:Bt,mergedColumns:rt,onFilterChange:qn,getPopupContainer:Y||Dt}),bt=ho(_n,Et);dt.filters=It,dt.filterStates=Et;const qt=n.useMemo(()=>{const tt={};return Object.keys(It).forEach(Ot=>{It[Ot]!==null&&(tt[Ot]=It[Ot])}),Object.assign(Object.assign({},_t),{filters:tt})},[_t,It]),[Wt]=hl(qt),Lt=(tt,Ot)=>{un({pagination:Object.assign(Object.assign({},dt.pagination),{current:tt,pageSize:Ot})},"paginate")},[St,fn]=il(bt.length,Lt,b);dt.pagination=b===!1?{}:al(St,b),dt.resetPagination=fn;const on=n.useMemo(()=>{if(b===!1||!St.pageSize)return bt;const{current:tt=1,total:Ot,pageSize:Xt=bo}=St;return bt.lengthXt?bt.slice((tt-1)*Xt,tt*Xt):bt:bt.slice((tt-1)*Xt,tt*Xt)},[!!b,bt,St&&St.current,St&&St.pageSize,St&&St.total]),[$n,bn]=Ca({prefixCls:ft,data:bt,pageData:on,getRowKey:Tt,getRecordByKey:nn,expandType:Ae,childrenColumnName:ot,locale:Rt,getPopupContainer:Y||Dt},v),ur=(tt,Ot,Xt)=>{let Yt;return typeof x=="function"?Yt=h()(x(tt,Ot,Xt)):Yt=h()(x),h()({[`${ft}-row-selected`]:bn.has(Tt(tt,Ot))},Yt)};Re.__PARENT_RENDER_ICON__=Re.expandIcon,Re.expandIcon=Re.expandIcon||$e||ka(Rt),Ae==="nest"&&Re.expandIconColumnIndex===void 0?Re.expandIconColumnIndex=v?1:0:Re.expandIconColumnIndex>0&&v&&(Re.expandIconColumnIndex-=1),typeof Re.indentSize!="number"&&(Re.indentSize=typeof Qe=="number"?Qe:15);const An=n.useCallback(tt=>Wt($n(er(yn(tt)))),[yn,er,$n]);let Fn,en;if(b!==!1&&(St!=null&&St.total)){let tt;St.size?tt=St.size:tt=it==="small"||it==="middle"?"small":void 0;const Ot=an=>n.createElement(Ia.Z,Object.assign({},St,{className:h()(`${ft}-pagination ${ft}-pagination-${an}`,St.className),size:tt})),Xt=gt==="rtl"?"left":"right",{position:Yt}=St;if(Yt!==null&&Array.isArray(Yt)){const an=Yt.find(Mn=>Mn.includes("top")),dn=Yt.find(Mn=>Mn.includes("bottom")),pn=Yt.every(Mn=>`${Mn}`=="none");!an&&!dn&&!pn&&(en=Ot(Xt)),an&&(Fn=Ot(an.toLowerCase().replace("top",""))),dn&&(en=Ot(dn.toLowerCase().replace("bottom","")))}else en=Ot(Xt)}let Ut;typeof J=="boolean"?Ut={spinning:J}:typeof J=="object"&&(Ut=Object.assign({spinning:!0},J));const[,Gt]=(0,Da.ZP)(),Cn=(0,$a.Z)(ft),[Hn,vn]=Al(ft,Cn),Pn=h()(Cn,`${ft}-wrapper`,Mt==null?void 0:Mt.className,{[`${ft}-wrapper-rtl`]:gt==="rtl"},o,l,vn),Fr=Object.assign(Object.assign({},Mt==null?void 0:Mt.style),i),Hr=ue&&ue.emptyText||(jt==null?void 0:jt("Table"))||n.createElement(wa.Z,{componentName:"Table"}),zr=z?bl:yl,Sr={},jr=n.useMemo(()=>{const{fontSize:tt,lineHeight:Ot,padding:Xt,paddingXS:Yt,paddingSM:an}=Gt,dn=Math.floor(tt*Ot);switch(it){case"large":return Xt*2+dn;case"small":return Yt*2+dn;default:return an*2+dn}},[Gt,it]);return z&&(Sr.listItemHeight=jr),Hn(n.createElement("div",{ref:et,className:Pn,style:Fr},n.createElement(Ka.Z,Object.assign({spinning:!1},Ut),Fn,n.createElement(zr,Object.assign({},Sr,mt,{ref:ht,columns:rt,direction:gt,expandable:Re,prefixCls:ft,className:h()({[`${ft}-middle`]:it==="middle",[`${ft}-small`]:it==="small",[`${ft}-bordered`]:f,[`${ft}-empty`]:Ft.length===0},Cn,vn),data:on,rowKey:Tt,rowClassName:ur,emptyText:Hr,internalHooks:P,internalRefs:ze,transformColumns:An,getContainerWidth:de})),en)))};var zl=n.forwardRef(Hl);const jl=(e,t)=>{const r=n.useRef(0);return r.current+=1,n.createElement(zl,Object.assign({},e,{ref:t,_renderTimes:r.current}))},In=n.forwardRef(jl);In.SELECTION_COLUMN=kn,In.EXPAND_COLUMN=T,In.SELECTION_ALL=Kr,In.SELECTION_INVERT=Dr,In.SELECTION_NONE=Tr,In.Column=va,In.ColumnGroup=ma,In.Summary=Fe;var Wl=In,Ul=Wl},57976:function($t,Ie,a){a.d(Ie,{Z:function(){return fe}});var n=a(82635),T=a(1788),P=a(50959),V=a(38223),xe=a(38126),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},R=Ke,j=a(38782),M=function(je,We){return P.createElement(j.Z,(0,xe.Z)({},je,{ref:We,icon:R}))},I=P.forwardRef(M),W={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},X=W,A=function(je,We){return P.createElement(j.Z,(0,xe.Z)({},je,{ref:We,icon:X}))},ae=P.forwardRef(A),k=a(84875),m=a.n(k),K=a(31087),ye=a(25237),Pe=a(31594),H={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},C=H,L=function(je,We){return P.createElement(j.Z,(0,xe.Z)({},je,{ref:We,icon:C}))},G=P.forwardRef(L),_=a(58351),Q=a(52816);const ee=4;function D(le){const{dropPosition:je,dropLevelOffset:We,prefixCls:re,indent:Te,direction:Ce="ltr"}=le,at=Ce==="ltr"?"left":"right",Ye=Ce==="ltr"?"right":"left",pt={[at]:-We*Te+ee,[Ye]:0};switch(je){case-1:pt.top=-3;break;case 1:pt.bottom=-3;break;default:pt.bottom=-3,pt[at]=Te+ee;break}return P.createElement("div",{style:pt,className:`${re}-drop-indicator`})}var O=a(74176),q=P.forwardRef((le,je)=>{const{getPrefixCls:We,direction:re,virtual:Te,tree:Ce}=P.useContext(Pe.E_),{prefixCls:at,className:Ye,showIcon:pt=!1,showLine:lt,switcherIcon:te,blockNode:Ze=!1,children:Ve,checkable:s=!1,selectable:ie=!0,draggable:Ne,motion:Fe,style:S}=le,N=We("tree",at),w=We(),ne=Fe!=null?Fe:Object.assign(Object.assign({},(0,_.Z)(w)),{motionAppear:!1}),Ee=Object.assign(Object.assign({},le),{checkable:s,selectable:ie,showIcon:pt,motion:ne,blockNode:Ze,showLine:!!lt,dropIndicatorRender:D}),[Le,Be]=(0,Q.ZP)(N),pe=P.useMemo(()=>{if(!Ne)return!1;let De={};switch(typeof Ne){case"function":De.nodeDraggable=Ne;break;case"object":De=Object.assign({},Ne);break;default:break}return De.icon!==!1&&(De.icon=De.icon||P.createElement(G,null)),De},[Ne]),Oe=De=>P.createElement(O.Z,{prefixCls:N,switcherIcon:te,treeNodeProps:De,showLine:lt});return Le(P.createElement(n.Z,Object.assign({itemHeight:20,ref:je,virtual:Te},Ee,{style:Object.assign(Object.assign({},Ce==null?void 0:Ce.style),S),prefixCls:N,className:m()({[`${N}-icon-hide`]:!pt,[`${N}-block-node`]:Ze,[`${N}-unselectable`]:!ie,[`${N}-rtl`]:re==="rtl"},Ce==null?void 0:Ce.className,Ye,Be),direction:re,checkable:s&&P.createElement("span",{className:`${N}-checkbox-inner`}),selectable:ie,switcherIcon:Oe,draggable:pe}),Ve))}),h;(function(le){le[le.None=0]="None",le[le.Start=1]="Start",le[le.End=2]="End"})(h||(h={}));function we(le,je,We){const{key:re,children:Te}=We;function Ce(at){const Ye=at[re],pt=at[Te];je(Ye,at)!==!1&&we(pt||[],je,We)}le.forEach(Ce)}function y(le){let{treeData:je,expandedKeys:We,startKey:re,endKey:Te,fieldNames:Ce}=le;const at=[];let Ye=h.None;if(re&&re===Te)return[re];if(!re||!Te)return[];function pt(lt){return lt===re||lt===Te}return we(je,lt=>{if(Ye===h.End)return!1;if(pt(lt)){if(at.push(lt),Ye===h.None)Ye=h.Start;else if(Ye===h.Start)return Ye=h.End,!1}else Ye===h.Start&&at.push(lt);return We.includes(lt)},(0,ye.w$)(Ce)),at}function g(le,je,We){const re=(0,T.Z)(je),Te=[];return we(le,(Ce,at)=>{const Ye=re.indexOf(Ce);return Ye!==-1&&(Te.push(at),re.splice(Ye,1)),!!re.length},(0,ye.w$)(We)),Te}var Z=function(le,je){var We={};for(var re in le)Object.prototype.hasOwnProperty.call(le,re)&&je.indexOf(re)<0&&(We[re]=le[re]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,re=Object.getOwnPropertySymbols(le);Te{var{defaultExpandAll:We,defaultExpandParent:re,defaultExpandedKeys:Te}=le,Ce=Z(le,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const at=P.useRef(),Ye=P.useRef(),pt=()=>{const{keyEntities:pe}=(0,ye.I8)(Se(Ce));let Oe;return We?Oe=Object.keys(pe):re?Oe=(0,K.r7)(Ce.expandedKeys||Te||[],pe):Oe=Ce.expandedKeys||Te,Oe},[lt,te]=P.useState(Ce.selectedKeys||Ce.defaultSelectedKeys||[]),[Ze,Ve]=P.useState(()=>pt());P.useEffect(()=>{"selectedKeys"in Ce&&te(Ce.selectedKeys)},[Ce.selectedKeys]),P.useEffect(()=>{"expandedKeys"in Ce&&Ve(Ce.expandedKeys)},[Ce.expandedKeys]);const s=(pe,Oe)=>{var De;return"expandedKeys"in Ce||Ve(pe),(De=Ce.onExpand)===null||De===void 0?void 0:De.call(Ce,pe,Oe)},ie=(pe,Oe)=>{var De;const{multiple:ce,fieldNames:st}=Ce,{node:ut,nativeEvent:Xe}=Oe,{key:vt=""}=ut,yt=Se(Ce),Nt=Object.assign(Object.assign({},Oe),{selected:!0}),Kt=(Xe==null?void 0:Xe.ctrlKey)||(Xe==null?void 0:Xe.metaKey),kt=Xe==null?void 0:Xe.shiftKey;let Pt;ce&&Kt?(Pt=pe,at.current=vt,Ye.current=Pt,Nt.selectedNodes=g(yt,Pt,st)):ce&&kt?(Pt=Array.from(new Set([].concat((0,T.Z)(Ye.current||[]),(0,T.Z)(y({treeData:yt,expandedKeys:Ze,startKey:vt,endKey:at.current,fieldNames:st}))))),Nt.selectedNodes=g(yt,Pt,st)):(Pt=[vt],at.current=vt,Ye.current=Pt,Nt.selectedNodes=g(yt,Pt,st)),(De=Ce.onSelect)===null||De===void 0||De.call(Ce,Pt,Nt),"selectedKeys"in Ce||te(Pt)},{getPrefixCls:Ne,direction:Fe}=P.useContext(Pe.E_),{prefixCls:S,className:N,showIcon:w=!0,expandAction:ne="click"}=Ce,Ee=Z(Ce,["prefixCls","className","showIcon","expandAction"]),Le=Ne("tree",S),Be=m()(`${Le}-directory`,{[`${Le}-directory-rtl`]:Fe==="rtl"},N);return P.createElement(q,Object.assign({icon:B,ref:je,blockNode:!0},Ee,{showIcon:w,expandAction:ne,prefixCls:Le,className:Be,expandedKeys:Ze,selectedKeys:lt,onSelect:ie,onExpand:s}))};var Me=P.forwardRef(Ue);const ct=q;ct.DirectoryTree=Me,ct.TreeNode=n.O;var fe=ct},52816:function($t,Ie,a){a.d(Ie,{TM:function(){return A},Yk:function(){return X}});var n=a(60076),T=a(49508),P=a(6301),V=a(23148),xe=a(90467),Ke=a(81501);const R=new n.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),j=(k,m)=>({[`.${k}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${m.motionDurationSlow}`}}}),M=(k,m)=>({[`.${k}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:m.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,n.bf)(m.lineWidthBold)} solid ${m.colorPrimary}`,borderRadius:"50%",content:'""'}}}),I=(k,m)=>{const{treeCls:K,treeNodeCls:ye,treeNodePadding:Pe,titleHeight:H,nodeSelectedBg:C,nodeHoverBg:L}=m,G=m.paddingXS;return{[K]:Object.assign(Object.assign({},(0,P.Wf)(m)),{background:m.colorBgContainer,borderRadius:m.borderRadius,transition:`background-color ${m.motionDurationSlow}`,[`&${K}-rtl`]:{[`${K}-switcher`]:{"&_close":{[`${K}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${K}-active-focused)`]:Object.assign({},(0,P.oN)(m)),[`${K}-list-holder-inner`]:{alignItems:"flex-start"},[`&${K}-block-node`]:{[`${K}-list-holder-inner`]:{alignItems:"stretch",[`${K}-node-content-wrapper`]:{flex:"auto"},[`${ye}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Pe,insetInlineStart:0,border:`1px solid ${m.colorPrimary}`,opacity:0,animationName:R,animationDuration:m.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ye}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,n.bf)(Pe)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${K}-node-content-wrapper`]:{color:m.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${K}-node-content-wrapper`]:Object.assign({},(0,P.oN)(m)),[`&:not(${ye}-disabled).filter-node ${K}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${K}-draggable-icon`]:{flexShrink:0,width:H,lineHeight:`${(0,n.bf)(H)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${m.motionDurationSlow}`,[`${ye}:hover &`]:{opacity:.45}},[`&${ye}-disabled`]:{[`${K}-draggable-icon`]:{visibility:"hidden"}}}},[`${K}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:H}},[`${K}-draggable-icon`]:{visibility:"hidden"},[`${K}-switcher`]:Object.assign(Object.assign({},j(k,m)),{position:"relative",flex:"none",alignSelf:"stretch",width:H,margin:0,lineHeight:`${(0,n.bf)(H)}`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${K}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:m.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:m.calc(H).div(2).equal(),bottom:m.calc(Pe).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:m.calc(m.calc(H).div(2).equal()).mul(.8).equal(),height:m.calc(H).div(2).equal(),borderBottom:`1px solid ${m.colorBorder}`,content:'""'}}}),[`${K}-checkbox`]:{top:"initial",marginInlineEnd:G,alignSelf:"flex-start",marginTop:m.marginXXS},[`${K}-node-content-wrapper, ${K}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:H,margin:0,padding:`0 ${(0,n.bf)(m.calc(m.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,n.bf)(H)}`,background:"transparent",borderRadius:m.borderRadius,cursor:"pointer",transition:`all ${m.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:L},[`&${K}-node-selected`]:{backgroundColor:C},[`${K}-iconEle`]:{display:"inline-block",width:H,height:H,lineHeight:`${(0,n.bf)(H)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${K}-unselectable ${K}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${K}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,n.bf)(H)}`,userSelect:"none"},M(k,m)),[`${ye}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${m.colorPrimary}`}},"&-show-line":{[`${K}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:m.calc(H).div(2).equal(),bottom:m.calc(Pe).mul(-1).equal(),borderInlineEnd:`1px solid ${m.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${K}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ye}-leaf-last`]:{[`${K}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,n.bf)(m.calc(H).div(2).equal())} !important`}}}}})}},W=k=>{const{treeCls:m,treeNodeCls:K,treeNodePadding:ye,directoryNodeSelectedBg:Pe,directoryNodeSelectedColor:H}=k;return{[`${m}${m}-directory`]:{[K]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ye,insetInlineStart:0,transition:`background-color ${k.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:k.controlItemBgHover}},"> *":{zIndex:1},[`${m}-switcher`]:{transition:`color ${k.motionDurationMid}`},[`${m}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${m}-node-selected`]:{color:H,background:"transparent"}},"&-selected":{[` - &:hover::before, - &::before - `]:{background:Pe},[`${m}-switcher`]:{color:H},[`${m}-node-content-wrapper`]:{color:H,background:"transparent"}}}}}},X=(k,m)=>{const K=`.${k}`,ye=`${K}-treenode`,Pe=m.calc(m.paddingXS).div(2).equal(),H=(0,xe.TS)(m,{treeCls:K,treeNodeCls:ye,treeNodePadding:Pe});return[I(k,H),W(H)]},A=k=>{const{controlHeightSM:m}=k;return{titleHeight:m,nodeHoverBg:k.controlItemBgHover,nodeSelectedBg:k.controlItemBgActive}},ae=k=>{const{colorTextLightSolid:m,colorPrimary:K}=k;return Object.assign(Object.assign({},A(k)),{directoryNodeSelectedColor:m,directoryNodeSelectedBg:K})};Ie.ZP=(0,Ke.I$)("Tree",(k,m)=>{let{prefixCls:K}=m;return[{[k.componentCls]:(0,T.C2)(`${K}-checkbox`,k)},X(K,k),(0,V.Z)(k)]},ae)},74176:function($t,Ie,a){a.d(Ie,{Z:function(){return L}});var n=a(38126),T=a(50959),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},V=P,xe=a(38782),Ke=function(_,Q){return T.createElement(xe.Z,(0,n.Z)({},_,{ref:Q,icon:V}))},R=T.forwardRef(Ke),j=a(38223),M=a(58516),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},W=I,X=function(_,Q){return T.createElement(xe.Z,(0,n.Z)({},_,{ref:Q,icon:W}))},A=T.forwardRef(X),ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},k=ae,m=function(_,Q){return T.createElement(xe.Z,(0,n.Z)({},_,{ref:Q,icon:k}))},K=T.forwardRef(m),ye=a(84875),Pe=a.n(ye),H=a(94914),L=G=>{const{prefixCls:_,switcherIcon:Q,treeNodeProps:ee,showLine:D}=G,{isLeaf:O,expanded:d,loading:q}=ee;if(q)return T.createElement(M.Z,{className:`${_}-switcher-loading-icon`});let h;if(D&&typeof D=="object"&&(h=D.showLeafIcon),O){if(!D)return null;if(typeof h!="boolean"&&h){const g=typeof h=="function"?h(ee):h,Z=`${_}-switcher-line-custom-icon`;return(0,H.l$)(g)?(0,H.Tm)(g,{className:Pe()(g.props.className||"",Z)}):g}return h?T.createElement(j.Z,{className:`${_}-switcher-line-icon`}):T.createElement("span",{className:`${_}-switcher-leaf-line`})}const we=`${_}-switcher-icon`,y=typeof Q=="function"?Q(ee):Q;return(0,H.l$)(y)?(0,H.Tm)(y,{className:Pe()(y.props.className||"",we)}):y!==void 0?y:D?d?T.createElement(A,{className:`${_}-switcher-line-icon`}):T.createElement(K,{className:`${_}-switcher-line-icon`}):T.createElement(R,{className:we})}},53314:function($t,Ie,a){var n=a(38126),T=a(33346),P=a(73273),V=a(32682),xe=a(10570),Ke=a(84875),R=a.n(Ke),j=a(65589),M=a(50959),I=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],W=(0,M.forwardRef)(function(X,A){var ae,k=X.prefixCls,m=k===void 0?"rc-checkbox":k,K=X.className,ye=X.style,Pe=X.checked,H=X.disabled,C=X.defaultChecked,L=C===void 0?!1:C,G=X.type,_=G===void 0?"checkbox":G,Q=X.title,ee=X.onChange,D=(0,xe.Z)(X,I),O=(0,M.useRef)(null),d=(0,j.Z)(L,{value:Pe}),q=(0,V.Z)(d,2),h=q[0],we=q[1];(0,M.useImperativeHandle)(A,function(){return{focus:function(){var B;(B=O.current)===null||B===void 0||B.focus()},blur:function(){var B;(B=O.current)===null||B===void 0||B.blur()},input:O.current}});var y=R()(m,K,(ae={},(0,P.Z)(ae,"".concat(m,"-checked"),h),(0,P.Z)(ae,"".concat(m,"-disabled"),H),ae)),g=function(B){H||("checked"in X||we(B.target.checked),ee==null||ee({target:(0,T.Z)((0,T.Z)({},X),{},{type:_,checked:B.target.checked}),stopPropagation:function(){B.stopPropagation()},preventDefault:function(){B.preventDefault()},nativeEvent:B.nativeEvent}))};return M.createElement("span",{className:y,title:Q,style:ye},M.createElement("input",(0,n.Z)({},D,{className:"".concat(m,"-input"),ref:O,onChange:g,disabled:H,checked:!!h,type:_})),M.createElement("span",{className:"".concat(m,"-inner")}))});Ie.Z=W},36289:function($t,Ie,a){a.d(Ie,{Z:function(){return Q}});var n=a(38126),T=a(73273),P=a(10570),V=a(33346),xe=a(47920),Ke=a(77254),R=a(95325),j=a(44906),M=a(41399),I=a(84875),W=a.n(I),X=a(68924),A=a(50959),ae=a(32866),k=function(D){for(var O=D.prefixCls,d=D.level,q=D.isStart,h=D.isEnd,we="".concat(O,"-indent-unit"),y=[],g=0;g0&&arguments[0]!==void 0?arguments[0]:[],Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ve=te.length,s=Ze.length;if(Math.abs(Ve-s)!==1)return{add:!1,key:null};function ie(Ne,Fe){var S=new Map;Ne.forEach(function(w){S.set(w,!0)});var N=Fe.filter(function(w){return!S.has(w)});return N.length===1?N[0]:null}return Ve ").concat(Ze);return Ze}var je=m.forwardRef(function(te,Ze){var Ve=te.prefixCls,s=te.data,ie=te.selectable,Ne=te.checkable,Fe=te.expandedKeys,S=te.selectedKeys,N=te.checkedKeys,w=te.loadedKeys,ne=te.loadingKeys,Ee=te.halfCheckedKeys,Le=te.keyEntities,Be=te.disabled,pe=te.dragging,Oe=te.dragOverNodeKey,De=te.dropPosition,ce=te.motion,st=te.height,ut=te.itemHeight,Xe=te.virtual,vt=te.focusable,yt=te.activeItem,Nt=te.focused,Kt=te.tabIndex,kt=te.onKeyDown,Pt=te.onFocus,Vt=te.onBlur,At=te.onActiveChange,tn=te.onListChangeStart,cn=te.onListChangeEnd,Ct=(0,C.Z)(te,g),mn=m.useRef(null),sn=m.useRef(null);m.useImperativeHandle(Ze,function(){return{scrollTo:function(En){mn.current.scrollTo(En)},getIndentWidth:function(){return sn.current.offsetWidth}}});var gn=m.useState(Fe),Zn=(0,H.Z)(gn,2),Wn=Zn[0],rr=Zn[1],or=m.useState(s),Un=(0,H.Z)(or,2),Sn=Un[0],Vn=Un[1],Gn=m.useState(s),Xn=(0,H.Z)(Gn,2),ar=Xn[0],Kn=Xn[1],Ln=m.useState([]),hn=(0,H.Z)(Ln,2),Yr=hn[0],lr=hn[1],$r=m.useState(null),vr=(0,H.Z)($r,2),Pr=vr[0],ir=vr[1],pr=m.useRef(s);pr.current=s;function sr(){var zt=pr.current;Vn(zt),Kn(zt),lr([]),ir(null),cn()}(0,L.Z)(function(){rr(Fe);var zt=we(Wn,Fe);if(zt.key!==null)if(zt.add){var En=Sn.findIndex(function(Tn){var wn=Tn.key;return wn===zt.key}),On=ct(y(Sn,s,zt.key),Xe,st,ut),Dn=Sn.slice();Dn.splice(En+1,0,Me),Kn(Dn),lr(On),ir("show")}else{var Nn=s.findIndex(function(Tn){var wn=Tn.key;return wn===zt.key}),Rn=ct(y(s,Sn,zt.key),Xe,st,ut),Yn=s.slice();Yn.splice(Nn+1,0,Me),Kn(Yn),lr(Rn),ir("hide")}else Sn!==s&&(Vn(s),Kn(s))},[Fe,s]),m.useEffect(function(){pe||sr()},[pe]);var mr=ce?ar:s,gr={expandedKeys:Fe,selectedKeys:S,loadedKeys:w,loadingKeys:ne,checkedKeys:N,halfCheckedKeys:Ee,dragOverNodeKey:Oe,dropPosition:De,keyEntities:Le};return m.createElement(m.Fragment,null,Nt&&yt&&m.createElement("span",{style:Z,"aria-live":"assertive"},le(yt)),m.createElement("div",null,m.createElement("input",{style:Z,disabled:vt===!1||Be,tabIndex:vt!==!1?Kt:null,onKeyDown:kt,onFocus:Pt,onBlur:Vt,value:"",onChange:B,"aria-label":"for screen reader"})),m.createElement("div",{className:"".concat(Ve,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},m.createElement("div",{className:"".concat(Ve,"-indent")},m.createElement("div",{ref:sn,className:"".concat(Ve,"-indent-unit")}))),m.createElement(G.Z,(0,n.Z)({},Ct,{data:mr,itemKey:fe,height:st,fullHeight:!1,virtual:Xe,itemHeight:ut,prefixCls:"".concat(Ve,"-list"),ref:mn,onVisibleChange:function(En,On){var Dn=new Set(En),Nn=On.filter(function(Rn){return!Dn.has(Rn)});Nn.some(function(Rn){return fe(Rn)===Se})&&sr()}}),function(zt){var En=zt.pos,On=(0,n.Z)({},(Pe(zt.data),zt.data)),Dn=zt.title,Nn=zt.key,Rn=zt.isStart,Yn=zt.isEnd,Tn=(0,D.km)(Nn,En);delete On.key,delete On.children;var wn=(0,D.H8)(Tn,gr);return m.createElement(h,(0,n.Z)({},On,wn,{title:Dn,active:!!yt&&Nn===yt.key,pos:En,data:zt.data,isStart:Rn,isEnd:Yn,motion:ce,motionNodes:Nn===Se?Yr:null,motionType:Pr,onMotionStart:tn,onMotionEnd:sr,treeNodeRequiredProps:gr,onMouseMove:function(){At(null)}}))}))});je.displayName="NodeList";var We=je,re=a(31087),Te=a(27545),Ce=a(55369),at=10,Ye=function(te){(0,M.Z)(Ve,te);var Ze=(0,I.Z)(Ve);function Ve(){var s;(0,Ke.Z)(this,Ve);for(var ie=arguments.length,Ne=new Array(ie),Fe=0;Fe2&&arguments[2]!==void 0?arguments[2]:!1,Ee=s.state,Le=Ee.dragChildrenKeys,Be=Ee.dropPosition,pe=Ee.dropTargetKey,Oe=Ee.dropTargetPos,De=Ee.dropAllowed;if(De){var ce=s.props.onDrop;if(s.setState({dragOverNodeKey:null}),s.cleanDragState(),pe!==null){var st=(0,V.Z)((0,V.Z)({},(0,D.H8)(pe,s.getTreeNodeRequiredProps())),{},{active:((w=s.getActiveItem())===null||w===void 0?void 0:w.key)===pe,data:(0,Ce.Z)(s.state.keyEntities,pe).node}),ut=Le.indexOf(pe)!==-1;(0,k.ZP)(!ut,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Xe=(0,re.yx)(Oe),vt={event:S,node:(0,D.F)(st),dragNode:s.dragNode?(0,D.F)(s.dragNode.props):null,dragNodesKeys:[s.dragNode.props.eventKey].concat(Le),dropToGap:Be!==0,dropPosition:Be+Number(Xe[Xe.length-1])};ne||ce==null||ce(vt),s.dragNode=null}}},s.cleanDragState=function(){var S=s.state.draggingNodeKey;S!==null&&s.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),s.dragStartMousePosition=null,s.currentMouseOverDroppableNodeKey=null},s.triggerExpandActionExpand=function(S,N){var w=s.state,ne=w.expandedKeys,Ee=w.flattenNodes,Le=N.expanded,Be=N.key,pe=N.isLeaf;if(!(pe||S.shiftKey||S.metaKey||S.ctrlKey)){var Oe=Ee.filter(function(ce){return ce.key===Be})[0],De=(0,D.F)((0,V.Z)((0,V.Z)({},(0,D.H8)(Be,s.getTreeNodeRequiredProps())),{},{data:Oe.data}));s.setExpandedKeys(Le?(0,re._5)(ne,Be):(0,re.L0)(ne,Be)),s.onNodeExpand(S,De)}},s.onNodeClick=function(S,N){var w=s.props,ne=w.onClick,Ee=w.expandAction;Ee==="click"&&s.triggerExpandActionExpand(S,N),ne==null||ne(S,N)},s.onNodeDoubleClick=function(S,N){var w=s.props,ne=w.onDoubleClick,Ee=w.expandAction;Ee==="doubleClick"&&s.triggerExpandActionExpand(S,N),ne==null||ne(S,N)},s.onNodeSelect=function(S,N){var w=s.state.selectedKeys,ne=s.state,Ee=ne.keyEntities,Le=ne.fieldNames,Be=s.props,pe=Be.onSelect,Oe=Be.multiple,De=N.selected,ce=N[Le.key],st=!De;st?Oe?w=(0,re.L0)(w,ce):w=[ce]:w=(0,re._5)(w,ce);var ut=w.map(function(Xe){var vt=(0,Ce.Z)(Ee,Xe);return vt?vt.node:null}).filter(function(Xe){return Xe});s.setUncontrolledState({selectedKeys:w}),pe==null||pe(w,{event:"select",selected:st,node:N,selectedNodes:ut,nativeEvent:S.nativeEvent})},s.onNodeCheck=function(S,N,w){var ne=s.state,Ee=ne.keyEntities,Le=ne.checkedKeys,Be=ne.halfCheckedKeys,pe=s.props,Oe=pe.checkStrictly,De=pe.onCheck,ce=N.key,st,ut={event:"check",node:N,checked:w,nativeEvent:S.nativeEvent};if(Oe){var Xe=w?(0,re.L0)(Le,ce):(0,re._5)(Le,ce),vt=(0,re._5)(Be,ce);st={checked:Xe,halfChecked:vt},ut.checkedNodes=Xe.map(function(Vt){return(0,Ce.Z)(Ee,Vt)}).filter(function(Vt){return Vt}).map(function(Vt){return Vt.node}),s.setUncontrolledState({checkedKeys:Xe})}else{var yt=(0,Te.S)([].concat((0,xe.Z)(Le),[ce]),!0,Ee),Nt=yt.checkedKeys,Kt=yt.halfCheckedKeys;if(!w){var kt=new Set(Nt);kt.delete(ce);var Pt=(0,Te.S)(Array.from(kt),{checked:!1,halfCheckedKeys:Kt},Ee);Nt=Pt.checkedKeys,Kt=Pt.halfCheckedKeys}st=Nt,ut.checkedNodes=[],ut.checkedNodesPositions=[],ut.halfCheckedKeys=Kt,Nt.forEach(function(Vt){var At=(0,Ce.Z)(Ee,Vt);if(At){var tn=At.node,cn=At.pos;ut.checkedNodes.push(tn),ut.checkedNodesPositions.push({node:tn,pos:cn})}}),s.setUncontrolledState({checkedKeys:Nt},!1,{halfCheckedKeys:Kt})}De==null||De(st,ut)},s.onNodeLoad=function(S){var N=S.key,w=new Promise(function(ne,Ee){s.setState(function(Le){var Be=Le.loadedKeys,pe=Be===void 0?[]:Be,Oe=Le.loadingKeys,De=Oe===void 0?[]:Oe,ce=s.props,st=ce.loadData,ut=ce.onLoad;if(!st||pe.indexOf(N)!==-1||De.indexOf(N)!==-1)return null;var Xe=st(S);return Xe.then(function(){var vt=s.state.loadedKeys,yt=(0,re.L0)(vt,N);ut==null||ut(yt,{event:"load",node:S}),s.setUncontrolledState({loadedKeys:yt}),s.setState(function(Nt){return{loadingKeys:(0,re._5)(Nt.loadingKeys,N)}}),ne()}).catch(function(vt){if(s.setState(function(Nt){return{loadingKeys:(0,re._5)(Nt.loadingKeys,N)}}),s.loadingRetryTimes[N]=(s.loadingRetryTimes[N]||0)+1,s.loadingRetryTimes[N]>=at){var yt=s.state.loadedKeys;(0,k.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),s.setUncontrolledState({loadedKeys:(0,re.L0)(yt,N)}),ne()}Ee(vt)}),{loadingKeys:(0,re.L0)(De,N)}})});return w.catch(function(){}),w},s.onNodeMouseEnter=function(S,N){var w=s.props.onMouseEnter;w==null||w({event:S,node:N})},s.onNodeMouseLeave=function(S,N){var w=s.props.onMouseLeave;w==null||w({event:S,node:N})},s.onNodeContextMenu=function(S,N){var w=s.props.onRightClick;w&&(S.preventDefault(),w({event:S,node:N}))},s.onFocus=function(){var S=s.props.onFocus;s.setState({focused:!0});for(var N=arguments.length,w=new Array(N),ne=0;ne1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!s.destroyed){var ne=!1,Ee=!0,Le={};Object.keys(S).forEach(function(Be){if(Be in s.props){Ee=!1;return}ne=!0,Le[Be]=S[Be]}),ne&&(!N||Ee)&&s.setState((0,V.Z)((0,V.Z)({},Le),w))}},s.scrollTo=function(S){s.listRef.current.scrollTo(S)},s}return(0,R.Z)(Ve,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ie=this.props,Ne=ie.activeKey,Fe=ie.itemScrollOffset,S=Fe===void 0?0:Fe;Ne!==void 0&&Ne!==this.state.activeKey&&(this.setState({activeKey:Ne}),Ne!==null&&this.scrollTo({key:Ne,offset:S}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var ie,Ne=this.state,Fe=Ne.focused,S=Ne.flattenNodes,N=Ne.keyEntities,w=Ne.draggingNodeKey,ne=Ne.activeKey,Ee=Ne.dropLevelOffset,Le=Ne.dropContainerKey,Be=Ne.dropTargetKey,pe=Ne.dropPosition,Oe=Ne.dragOverNodeKey,De=Ne.indent,ce=this.props,st=ce.prefixCls,ut=ce.className,Xe=ce.style,vt=ce.showLine,yt=ce.focusable,Nt=ce.tabIndex,Kt=Nt===void 0?0:Nt,kt=ce.selectable,Pt=ce.showIcon,Vt=ce.icon,At=ce.switcherIcon,tn=ce.draggable,cn=ce.checkable,Ct=ce.checkStrictly,mn=ce.disabled,sn=ce.motion,gn=ce.loadData,Zn=ce.filterTreeNode,Wn=ce.height,rr=ce.itemHeight,or=ce.virtual,Un=ce.titleRender,Sn=ce.dropIndicatorRender,Vn=ce.onContextMenu,Gn=ce.onScroll,Xn=ce.direction,ar=ce.rootClassName,Kn=ce.rootStyle,Ln=(0,ae.Z)(this.props,{aria:!0,data:!0}),hn;return tn&&((0,P.Z)(tn)==="object"?hn=tn:typeof tn=="function"?hn={nodeDraggable:tn}:hn={}),m.createElement(K.k.Provider,{value:{prefixCls:st,selectable:kt,showIcon:Pt,icon:Vt,switcherIcon:At,draggable:hn,draggingNodeKey:w,checkable:cn,checkStrictly:Ct,disabled:mn,keyEntities:N,dropLevelOffset:Ee,dropContainerKey:Le,dropTargetKey:Be,dropPosition:pe,dragOverNodeKey:Oe,indent:De,direction:Xn,dropIndicatorRender:Sn,loadData:gn,filterTreeNode:Zn,titleRender:Un,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},m.createElement("div",{role:"tree",className:X()(st,ut,ar,(ie={},(0,T.Z)(ie,"".concat(st,"-show-line"),vt),(0,T.Z)(ie,"".concat(st,"-focused"),Fe),(0,T.Z)(ie,"".concat(st,"-active-focused"),ne!==null),ie)),style:Kn},m.createElement(We,(0,n.Z)({ref:this.listRef,prefixCls:st,style:Xe,data:S,disabled:mn,selectable:kt,checkable:!!cn,motion:sn,dragging:w!==null,height:Wn,itemHeight:rr,virtual:or,focusable:yt,focused:Fe,tabIndex:Kt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Vn,onScroll:Gn},this.getTreeNodeRequiredProps(),Ln))))}}],[{key:"getDerivedStateFromProps",value:function(ie,Ne){var Fe=Ne.prevProps,S={prevProps:ie};function N(yt){return!Fe&&yt in ie||Fe&&Fe[yt]!==ie[yt]}var w,ne=Ne.fieldNames;if(N("fieldNames")&&(ne=(0,D.w$)(ie.fieldNames),S.fieldNames=ne),N("treeData")?w=ie.treeData:N("children")&&((0,k.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),w=(0,D.zn)(ie.children)),w){S.treeData=w;var Ee=(0,D.I8)(w,{fieldNames:ne});S.keyEntities=(0,V.Z)((0,T.Z)({},Se,me),Ee.keyEntities)}var Le=S.keyEntities||Ne.keyEntities;if(N("expandedKeys")||Fe&&N("autoExpandParent"))S.expandedKeys=ie.autoExpandParent||!Fe&&ie.defaultExpandParent?(0,re.r7)(ie.expandedKeys,Le):ie.expandedKeys;else if(!Fe&&ie.defaultExpandAll){var Be=(0,V.Z)({},Le);delete Be[Se],S.expandedKeys=Object.keys(Be).map(function(yt){return Be[yt].key})}else!Fe&&ie.defaultExpandedKeys&&(S.expandedKeys=ie.autoExpandParent||ie.defaultExpandParent?(0,re.r7)(ie.defaultExpandedKeys,Le):ie.defaultExpandedKeys);if(S.expandedKeys||delete S.expandedKeys,w||S.expandedKeys){var pe=(0,D.oH)(w||Ne.treeData,S.expandedKeys||Ne.expandedKeys,ne);S.flattenNodes=pe}if(ie.selectable&&(N("selectedKeys")?S.selectedKeys=(0,re.BT)(ie.selectedKeys,ie):!Fe&&ie.defaultSelectedKeys&&(S.selectedKeys=(0,re.BT)(ie.defaultSelectedKeys,ie))),ie.checkable){var Oe;if(N("checkedKeys")?Oe=(0,re.E6)(ie.checkedKeys)||{}:!Fe&&ie.defaultCheckedKeys?Oe=(0,re.E6)(ie.defaultCheckedKeys)||{}:w&&(Oe=(0,re.E6)(ie.checkedKeys)||{checkedKeys:Ne.checkedKeys,halfCheckedKeys:Ne.halfCheckedKeys}),Oe){var De=Oe,ce=De.checkedKeys,st=ce===void 0?[]:ce,ut=De.halfCheckedKeys,Xe=ut===void 0?[]:ut;if(!ie.checkStrictly){var vt=(0,Te.S)(st,!0,Le);st=vt.checkedKeys,Xe=vt.halfCheckedKeys}S.checkedKeys=st,S.halfCheckedKeys=Xe}}return N("loadedKeys")&&(S.loadedKeys=ie.loadedKeys),S}}]),Ve}(m.Component);Ye.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ye,allowDrop:function(){return!0},expandAction:!1},Ye.TreeNode=Q.Z;var pt=Ye,lt=pt},31087:function($t,Ie,a){a.d(Ie,{BT:function(){return m},E6:function(){return Pe},L0:function(){return I},OM:function(){return k},_5:function(){return M},r7:function(){return H},wA:function(){return X},yx:function(){return W}});var n=a(1788),T=a(40727),P=a(12868),V=a(50959),xe=a(36289),Ke=a(55369),R=a(25237),j=null;function M(C,L){if(!C)return[];var G=C.slice(),_=G.indexOf(L);return _>=0&&G.splice(_,1),G}function I(C,L){var G=(C||[]).slice();return G.indexOf(L)===-1&&G.push(L),G}function W(C){return C.split("-")}function X(C,L){var G=[],_=(0,Ke.Z)(L,C);function Q(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ee.forEach(function(D){var O=D.key,d=D.children;G.push(O),Q(d)})}return Q(_.children),G}function A(C){if(C.parent){var L=W(C.pos);return Number(L[L.length-1])===C.parent.children.length-1}return!1}function ae(C){var L=W(C.pos);return Number(L[L.length-1])===0}function k(C,L,G,_,Q,ee,D,O,d,q){var h,we=C.clientX,y=C.clientY,g=C.target.getBoundingClientRect(),Z=g.top,B=g.height,Se=(q==="rtl"?-1:1)*(((Q==null?void 0:Q.x)||0)-we),Ue=(Se-12)/_,me=(0,Ke.Z)(O,G.props.eventKey);if(y-1.5?ee({dragNode:at,dropNode:Ye,dropPosition:1})?re=1:pt=!1:ee({dragNode:at,dropNode:Ye,dropPosition:0})?re=0:ee({dragNode:at,dropNode:Ye,dropPosition:1})?re=1:pt=!1:ee({dragNode:at,dropNode:Ye,dropPosition:1})?re=1:pt=!1,{dropPosition:re,dropLevelOffset:Te,dropTargetKey:me.key,dropTargetPos:me.pos,dragOverNodeKey:We,dropContainerKey:re===0?null:((h=me.parent)===null||h===void 0?void 0:h.key)||null,dropAllowed:pt}}function m(C,L){if(C){var G=L.multiple;return G?C.slice():C.length?[C[0]]:C}}var K=function(L){return L};function ye(C,L){if(!C)return[];var G=L||{},_=G.processProps,Q=_===void 0?K:_,ee=Array.isArray(C)?C:[C];return ee.map(function(D){var O=D.children,d=_objectWithoutProperties(D,j),q=ye(O,L);return React.createElement(TreeNode,_extends({key:d.key},Q(d)),q)})}function Pe(C){if(!C)return null;var L;if(Array.isArray(C))L={checkedKeys:C,halfCheckedKeys:void 0};else if((0,T.Z)(C)==="object")L={checkedKeys:C.checked||void 0,halfCheckedKeys:C.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return L}function H(C,L){var G=new Set;function _(Q){if(!G.has(Q)){var ee=(0,Ke.Z)(L,Q);if(ee){G.add(Q);var D=ee.parent,O=ee.node;O.disabled||D&&_(D.key)}}}return(C||[]).forEach(function(Q){_(Q)}),(0,n.Z)(G)}},27545:function($t,Ie,a){a.d(Ie,{S:function(){return R}});var n=a(12868),T=a(55369);function P(j,M){var I=new Set;return j.forEach(function(W){M.has(W)||I.add(W)}),I}function V(j){var M=j||{},I=M.disabled,W=M.disableCheckbox,X=M.checkable;return!!(I||W)||X===!1}function xe(j,M,I,W){for(var X=new Set(j),A=new Set,ae=0;ae<=I;ae+=1){var k=M.get(ae)||new Set;k.forEach(function(Pe){var H=Pe.key,C=Pe.node,L=Pe.children,G=L===void 0?[]:L;X.has(H)&&!W(C)&&G.filter(function(_){return!W(_.node)}).forEach(function(_){X.add(_.key)})})}for(var m=new Set,K=I;K>=0;K-=1){var ye=M.get(K)||new Set;ye.forEach(function(Pe){var H=Pe.parent,C=Pe.node;if(!(W(C)||!Pe.parent||m.has(Pe.parent.key))){if(W(Pe.parent.node)){m.add(H.key);return}var L=!0,G=!1;(H.children||[]).filter(function(_){return!W(_.node)}).forEach(function(_){var Q=_.key,ee=X.has(Q);L&&!ee&&(L=!1),!G&&(ee||A.has(Q))&&(G=!0)}),L&&X.add(H.key),G&&A.add(H.key),m.add(H.key)}})}return{checkedKeys:Array.from(X),halfCheckedKeys:Array.from(P(A,X))}}function Ke(j,M,I,W,X){for(var A=new Set(j),ae=new Set(M),k=0;k<=W;k+=1){var m=I.get(k)||new Set;m.forEach(function(H){var C=H.key,L=H.node,G=H.children,_=G===void 0?[]:G;!A.has(C)&&!ae.has(C)&&!X(L)&&_.filter(function(Q){return!X(Q.node)}).forEach(function(Q){A.delete(Q.key)})})}ae=new Set;for(var K=new Set,ye=W;ye>=0;ye-=1){var Pe=I.get(ye)||new Set;Pe.forEach(function(H){var C=H.parent,L=H.node;if(!(X(L)||!H.parent||K.has(H.parent.key))){if(X(H.parent.node)){K.add(C.key);return}var G=!0,_=!1;(C.children||[]).filter(function(Q){return!X(Q.node)}).forEach(function(Q){var ee=Q.key,D=A.has(ee);G&&!D&&(G=!1),!_&&(D||ae.has(ee))&&(_=!0)}),G||A.delete(C.key),_&&ae.add(C.key),K.add(C.key)}})}return{checkedKeys:Array.from(A),halfCheckedKeys:Array.from(P(ae,A))}}function R(j,M,I,W){var X=[],A;W?A=W:A=V;var ae=new Set(j.filter(function(ye){var Pe=!!(0,T.Z)(I,ye);return Pe||X.push(ye),Pe})),k=new Map,m=0;Object.keys(I).forEach(function(ye){var Pe=I[ye],H=Pe.level,C=k.get(H);C||(C=new Set,k.set(H,C)),C.add(Pe),m=Math.max(m,H)}),(0,n.ZP)(!X.length,"Tree missing follow keys: ".concat(X.slice(0,100).map(function(ye){return"'".concat(ye,"'")}).join(", ")));var K;return M===!0?K=xe(ae,k,m,A):K=Ke(ae,M.halfCheckedKeys,k,m,A),K}},55369:function($t,Ie,a){a.d(Ie,{Z:function(){return n}});function n(T,P){return T[P]}},25237:function($t,Ie,a){a.d(Ie,{F:function(){return H},H8:function(){return Pe},I8:function(){return ye},km:function(){return X},oH:function(){return m},w$:function(){return A},zn:function(){return k}});var n=a(40727),T=a(1788),P=a(33346),V=a(10570),xe=a(13763),Ke=a(87017),R=a(12868),j=a(55369),M=["children"];function I(C,L){return"".concat(C,"-").concat(L)}function W(C){return C&&C.type&&C.type.isTreeNode}function X(C,L){return C!=null?C:L}function A(C){var L=C||{},G=L.title,_=L._title,Q=L.key,ee=L.children,D=G||"title";return{title:D,_title:_||[D],key:Q||"key",children:ee||"children"}}function ae(C,L){var G=new Map;function _(Q){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Q||[]).forEach(function(D){var O=D[L.key],d=D[L.children];warning(O!=null,"Tree node must have a certain key: [".concat(ee).concat(O,"]"));var q=String(O);warning(!G.has(q)||O===null||O===void 0,"Same 'key' exist in the Tree: ".concat(q)),G.set(q,!0),_(d,"".concat(ee).concat(q," > "))})}_(C)}function k(C){function L(G){var _=(0,xe.Z)(G);return _.map(function(Q){if(!W(Q))return(0,R.ZP)(!Q,"Tree/TreeNode can only accept TreeNode as children."),null;var ee=Q.key,D=Q.props,O=D.children,d=(0,V.Z)(D,M),q=(0,P.Z)({key:ee},d),h=L(O);return h.length&&(q.children=h),q}).filter(function(Q){return Q})}return L(C)}function m(C,L,G){var _=A(G),Q=_._title,ee=_.key,D=_.children,O=new Set(L===!0?[]:L),d=[];function q(h){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(y,g){for(var Z=I(we?we.pos:"0",g),B=X(y[ee],Z),Se,Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:{},G=L.initWrapper,_=L.processEntity,Q=L.onProcessFinished,ee=L.externalGetKey,D=L.childrenPropName,O=L.fieldNames,d=arguments.length>2?arguments[2]:void 0,q=ee||d,h={},we={},y={posEntities:h,keyEntities:we};return G&&(y=G(y)||y),K(C,function(g){var Z=g.node,B=g.index,Se=g.pos,Ue=g.key,me=g.parentPos,Me=g.level,ct=g.nodes,fe={node:Z,nodes:ct,index:B,key:Ue,pos:Se,level:Me},le=X(Ue,Se);h[Se]=fe,we[le]=fe,fe.parent=h[me],fe.parent&&(fe.parent.children=fe.parent.children||[],fe.parent.children.push(fe)),_&&_(fe,y)},{externalGetKey:q,childrenPropName:D,fieldNames:O}),Q&&Q(y),y}function Pe(C,L){var G=L.expandedKeys,_=L.selectedKeys,Q=L.loadedKeys,ee=L.loadingKeys,D=L.checkedKeys,O=L.halfCheckedKeys,d=L.dragOverNodeKey,q=L.dropPosition,h=L.keyEntities,we=(0,j.Z)(h,C),y={eventKey:C,expanded:G.indexOf(C)!==-1,selected:_.indexOf(C)!==-1,loaded:Q.indexOf(C)!==-1,loading:ee.indexOf(C)!==-1,checked:D.indexOf(C)!==-1,halfChecked:O.indexOf(C)!==-1,pos:String(we?we.pos:""),dragOver:d===C&&q===0,dragOverGapTop:d===C&&q===-1,dragOverGapBottom:d===C&&q===1};return y}function H(C){var L=C.data,G=C.expanded,_=C.selected,Q=C.checked,ee=C.loaded,D=C.loading,O=C.halfChecked,d=C.dragOver,q=C.dragOverGapTop,h=C.dragOverGapBottom,we=C.pos,y=C.active,g=C.eventKey,Z=(0,P.Z)((0,P.Z)({},L),{},{expanded:G,selected:_,checked:Q,loaded:ee,loading:D,halfChecked:O,dragOver:d,dragOverGapTop:q,dragOverGapBottom:h,pos:we,active:y,key:g});return"props"in Z||Object.defineProperty(Z,"props",{get:function(){return(0,R.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),C}}),Z}},52802:function($t,Ie,a){a.d(Ie,{Z:function(){return T}});var n=a(10422);function T(P,V,xe,Ke){var R=n.unstable_batchedUpdates?function(M){n.unstable_batchedUpdates(xe,M)}:xe;return P!=null&&P.addEventListener&&P.addEventListener(V,R,Ke),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(V,R,Ke)}}}},74253:function($t,Ie,a){a.d(Ie,{g1:function(){return W},os:function(){return A}});var n=/margin|padding|width|height|max|min|offset/,T={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function V(ae){return ae.nodeType===1?ae.ownerDocument.defaultView.getComputedStyle(ae,null):{}}function xe(ae,k,m){if(k=k.toLowerCase(),m==="auto"){if(k==="height")return ae.offsetHeight;if(k==="width")return ae.offsetWidth}return k in T||(T[k]=n.test(k)),T[k]?parseFloat(m)||0:m}function Ke(ae,k){var m=arguments.length,K=V(ae);return k=P[k]?"cssFloat"in ae.style?"cssFloat":"styleFloat":k,m===1?K:xe(ae,k,K[k]||ae.style[k])}function R(ae,k,m){var K=arguments.length;if(k=P[k]?"cssFloat"in ae.style?"cssFloat":"styleFloat":k,K===3)return typeof m=="number"&&n.test(k)&&(m="".concat(m,"px")),ae.style[k]=m,m;for(var ye in k)k.hasOwnProperty(ye)&&R(ae,ye,k[ye]);return V(ae)}function j(ae){return ae===document.body?document.documentElement.clientWidth:ae.offsetWidth}function M(ae){return ae===document.body?window.innerHeight||document.documentElement.clientHeight:ae.offsetHeight}function I(){var ae=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),k=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ae,height:k}}function W(){var ae=document.documentElement.clientWidth,k=window.innerHeight||document.documentElement.clientHeight;return{width:ae,height:k}}function X(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function A(ae){var k=ae.getBoundingClientRect(),m=document.documentElement;return{left:k.left+(window.pageXOffset||m.scrollLeft)-(m.clientLeft||document.body.clientLeft||0),top:k.top+(window.pageYOffset||m.scrollTop)-(m.clientTop||document.body.clientTop||0)}}}}]); diff --git a/1807.ca998b8f.async.js b/1807.ca998b8f.async.js new file mode 100644 index 00000000..754e519f --- /dev/null +++ b/1807.ca998b8f.async.js @@ -0,0 +1,12 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1807],{92006:function(Fe,de,e){e.d(de,{Z:function(){return Be},n:function(){return Pe}});var t=e(79685),L=e(96032),O=e(68591),N=e.n(O),y=e(3248),m=e(52401),r=e(36323),g=e(99248),u=e(456),I=e(73064),k=e(56107),oe=e(26490),be=e(86054),Ae=e(57873);function $e(o){return!!(o.prefix||o.suffix||o.allowClear)}var Te=e(84477),Ie=function(o,a){var H={};for(var Z in o)Object.prototype.hasOwnProperty.call(o,Z)&&a.indexOf(Z)<0&&(H[Z]=o[Z]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,Z=Object.getOwnPropertySymbols(o);M{var H;const{prefixCls:Z,bordered:M=!0,status:K,size:re,disabled:Y,onBlur:fe,onFocus:q,suffix:le,allowClear:te,addonAfter:Ee,addonBefore:Re,className:ve,style:Ze,styles:ne,rootClassName:me,onChange:ze,classNames:ue}=o,F=Ie(o,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:$,direction:_,input:d}=t.useContext(g.E_),c=$("input",Z),n=(0,t.useRef)(null),T=(0,Te.Z)(c),[i,l]=(0,Ae.ZP)(c,T),{compactSize:C,compactItemClassnames:x}=(0,oe.ri)(c,_),S=(0,I.Z)(j=>{var J;return(J=re!=null?re:C)!==null&&J!==void 0?J:j}),p=t.useContext(u.Z),f=Y!=null?Y:p,{status:v,hasFeedback:z,feedbackIcon:V}=(0,t.useContext)(k.aM),b=(0,r.F)(v,K),G=$e(o)||!!z,U=(0,t.useRef)(G),B=(0,be.Z)(n,!0),A=j=>{B(),fe==null||fe(j)},P=j=>{B(),q==null||q(j)},X=j=>{B(),ze==null||ze(j)},se=(z||le)&&t.createElement(t.Fragment,null,le,z&&V);let w;return typeof te=="object"&&(te!=null&&te.clearIcon)?w=te:te&&(w={clearIcon:t.createElement(L.Z,null)}),i(t.createElement(y.Z,Object.assign({ref:(0,m.sQ)(a,n),prefixCls:c,autoComplete:d==null?void 0:d.autoComplete},F,{disabled:f,onBlur:A,onFocus:P,style:Object.assign(Object.assign({},d==null?void 0:d.style),Ze),styles:Object.assign(Object.assign({},d==null?void 0:d.styles),ne),suffix:se,allowClear:w,className:N()(ve,me,T,l,x,d==null?void 0:d.className),onChange:X,addonAfter:Ee&&t.createElement(oe.BR,null,t.createElement(k.Ux,{override:!0,status:!0},Ee)),addonBefore:Re&&t.createElement(oe.BR,null,t.createElement(k.Ux,{override:!0,status:!0},Re)),classNames:Object.assign(Object.assign(Object.assign({},ue),d==null?void 0:d.classNames),{input:N()({[`${c}-sm`]:S==="small",[`${c}-lg`]:S==="large",[`${c}-rtl`]:_==="rtl",[`${c}-borderless`]:!M},!G&&(0,r.Z)(c,b),ue==null?void 0:ue.input,(H=d==null?void 0:d.classNames)===null||H===void 0?void 0:H.input,l)}),classes:{affixWrapper:N()({[`${c}-affix-wrapper-sm`]:S==="small",[`${c}-affix-wrapper-lg`]:S==="large",[`${c}-affix-wrapper-rtl`]:_==="rtl",[`${c}-affix-wrapper-borderless`]:!M},(0,r.Z)(`${c}-affix-wrapper`,b,z),l),wrapper:N()({[`${c}-group-rtl`]:_==="rtl"},l),group:N()({[`${c}-group-wrapper-sm`]:S==="small",[`${c}-group-wrapper-lg`]:S==="large",[`${c}-group-wrapper-rtl`]:_==="rtl",[`${c}-group-wrapper-disabled`]:f},(0,r.Z)(`${c}-group-wrapper`,b,z),l)}})))})},51807:function(Fe,de,e){e.d(de,{Z:function(){return c}});var t=e(79685),L=e(96032),O=e(68591),N=e.n(O),y=e(21137),m=e(93264),r=e(6346),g=e(57963),u=e(89342),I=e(98787),k=e(3248),oe=e(3206),be=e(49990),Ae=e(46501),$e=e(63195),Te=e(58718),Ie=e(79269),Pe=e(54272),Ve=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,Be=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],o={},a;function H(n){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=n.getAttribute("id")||n.getAttribute("data-reactid")||n.getAttribute("name");if(T&&o[i])return o[i];var l=window.getComputedStyle(n),C=l.getPropertyValue("box-sizing")||l.getPropertyValue("-moz-box-sizing")||l.getPropertyValue("-webkit-box-sizing"),x=parseFloat(l.getPropertyValue("padding-bottom"))+parseFloat(l.getPropertyValue("padding-top")),S=parseFloat(l.getPropertyValue("border-bottom-width"))+parseFloat(l.getPropertyValue("border-top-width")),p=Be.map(function(v){return"".concat(v,":").concat(l.getPropertyValue(v))}).join(";"),f={sizingStyle:p,paddingSize:x,borderSize:S,boxSizing:C};return T&&i&&(o[i]=f),f}function Z(n){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;a||(a=document.createElement("textarea"),a.setAttribute("tab-index","-1"),a.setAttribute("aria-hidden","true"),document.body.appendChild(a)),n.getAttribute("wrap")?a.setAttribute("wrap",n.getAttribute("wrap")):a.removeAttribute("wrap");var C=H(n,T),x=C.paddingSize,S=C.borderSize,p=C.boxSizing,f=C.sizingStyle;a.setAttribute("style","".concat(f,";").concat(Ve)),a.value=n.value||n.placeholder||"";var v=void 0,z=void 0,V,b=a.scrollHeight;if(p==="border-box"?b+=S:p==="content-box"&&(b-=x),i!==null||l!==null){a.value=" ";var G=a.scrollHeight-x;i!==null&&(v=G*i,p==="border-box"&&(v=v+x+S),b=Math.max(v,b)),l!==null&&(z=G*l,p==="border-box"&&(z=z+x+S),V=b>z?"":"hidden",b=Math.min(z,b))}var U={height:b,overflowY:V,resize:"none"};return v&&(U.minHeight=v),z&&(U.maxHeight=z),U}var M=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],K=0,re=1,Y=2,fe=t.forwardRef(function(n,T){var i=n,l=i.prefixCls,C=i.onPressEnter,x=i.defaultValue,S=i.value,p=i.autoSize,f=i.onResize,v=i.className,z=i.style,V=i.disabled,b=i.onChange,G=i.onInternalAutoSize,U=(0,I.Z)(i,M),B=(0,Ae.Z)(x,{value:S,postState:function(D){return D!=null?D:""}}),A=(0,u.Z)(B,2),P=A[0],X=A[1],se=function(D){X(D.target.value),b==null||b(D)},w=t.useRef();t.useImperativeHandle(T,function(){return{textArea:w.current}});var j=t.useMemo(function(){return p&&(0,$e.Z)(p)==="object"?[p.minRows,p.maxRows]:[]},[p]),J=(0,u.Z)(j,2),E=J[0],ee=J[1],ce=!!p,pe=function(){try{if(document.activeElement===w.current){var D=w.current,We=D.selectionStart,Je=D.selectionEnd,Ke=D.scrollTop;w.current.setSelectionRange(We,Je),w.current.scrollTop=Ke}}catch(Ue){}},we=t.useState(Y),ge=(0,u.Z)(we,2),W=ge[0],h=ge[1],s=t.useState(),ae=(0,u.Z)(s,2),ie=ae[0],xe=ae[1],ye=function(){h(K)};(0,Ie.Z)(function(){ce&&ye()},[S,E,ee,ce]),(0,Ie.Z)(function(){if(W===K)h(re);else if(W===re){var he=Z(w.current,!1,E,ee);h(Y),xe(he)}else pe()},[W]);var Oe=t.useRef(),Le=function(){Pe.Z.cancel(Oe.current)},He=function(D){W===Y&&(f==null||f(D),p&&(Le(),Oe.current=(0,Pe.Z)(function(){ye()})))};t.useEffect(function(){return Le},[]);var Xe=ce?ie:null,Me=(0,m.Z)((0,m.Z)({},z),Xe);return(W===K||W===re)&&(Me.overflowY="hidden",Me.overflowX="hidden"),t.createElement(Te.Z,{onResize:He,disabled:!(p||f)},t.createElement("textarea",(0,y.Z)({},U,{ref:w,style:Me,className:N()(l,v,(0,r.Z)({},"".concat(l,"-disabled"),V)),disabled:V,value:P,onChange:se})))}),q=fe,le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],te=t.forwardRef(function(n,T){var i,l,C=n.defaultValue,x=n.value,S=n.onFocus,p=n.onBlur,f=n.onChange,v=n.allowClear,z=n.maxLength,V=n.onCompositionStart,b=n.onCompositionEnd,G=n.suffix,U=n.prefixCls,B=U===void 0?"rc-textarea":U,A=n.classes,P=n.showCount,X=n.count,se=n.className,w=n.style,j=n.disabled,J=n.hidden,E=n.classNames,ee=n.styles,ce=n.onResize,pe=(0,I.Z)(n,le),we=(0,Ae.Z)(C,{value:x,defaultValue:C}),ge=(0,u.Z)(we,2),W=ge[0],h=ge[1],s=W==null?"":String(W),ae=t.useState(!1),ie=(0,u.Z)(ae,2),xe=ie[0],ye=ie[1],Oe=t.useRef(!1),Le=t.useState(null),He=(0,u.Z)(Le,2),Xe=He[0],Me=He[1],he=(0,t.useRef)(null),D=function(){var R;return(R=he.current)===null||R===void 0?void 0:R.textArea},We=function(){D().focus()};(0,t.useImperativeHandle)(T,function(){return{resizableTextArea:he.current,focus:We,blur:function(){D().blur()}}}),(0,t.useEffect)(function(){ye(function(Q){return!j&&Q})},[j]);var Je=t.useState(null),Ke=(0,u.Z)(Je,2),Ue=Ke[0],ke=Ke[1];t.useEffect(function(){if(Ue){var Q;(Q=D()).setSelectionRange.apply(Q,(0,g.Z)(Ue))}},[Ue]);var Ce=(0,oe.Z)(X,P),je=(i=Ce.max)!==null&&i!==void 0?i:z,qe=Number(je)>0,Ye=Ce.strategy(s),_e=!!je&&Ye>je,Qe=function(R,Se){var Ne=Se;!Oe.current&&Ce.exceedFormatter&&Ce.max&&Ce.strategy(Se)>Ce.max&&(Ne=Ce.exceedFormatter(Se,{max:Ce.max}),Se!==Ne&&ke([D().selectionStart||0,D().selectionEnd||0])),h(Ne),(0,be.rJ)(R.currentTarget,R,f,Ne)},et=function(R){Oe.current=!0,V==null||V(R)},tt=function(R){Oe.current=!1,Qe(R,R.currentTarget.value),b==null||b(R)},nt=function(R){Qe(R,R.target.value)},at=function(R){var Se=pe.onPressEnter,Ne=pe.onKeyDown;R.key==="Enter"&&Se&&Se(R),Ne==null||Ne(R)},ot=function(R){ye(!0),S==null||S(R)},rt=function(R){ye(!1),p==null||p(R)},lt=function(R){h(""),We(),(0,be.rJ)(D(),R,f)},Ge=G,De;Ce.show&&(Ce.showFormatter?De=Ce.showFormatter({value:s,count:Ye,maxLength:je}):De="".concat(Ye).concat(qe?" / ".concat(je):""),Ge=t.createElement(t.Fragment,null,Ge,t.createElement("span",{className:N()("".concat(B,"-data-count"),E==null?void 0:E.count),style:ee==null?void 0:ee.count},De)));var st=function(R){var Se;ce==null||ce(R),(Se=D())!==null&&Se!==void 0&&Se.style.height&&Me(!0)},it=!pe.autoSize&&!P&&!v,ut=t.createElement(k.Q,{value:s,allowClear:v,handleReset:lt,suffix:Ge,prefixCls:B,classes:{affixWrapper:N()(A==null?void 0:A.affixWrapper,(l={},(0,r.Z)(l,"".concat(B,"-show-count"),P),(0,r.Z)(l,"".concat(B,"-textarea-allow-clear"),v),l))},disabled:j,focused:xe,className:N()(se,_e&&"".concat(B,"-out-of-range")),style:(0,m.Z)((0,m.Z)({},w),Xe&&!it?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof De=="string"?De:void 0}},hidden:J,inputElement:t.createElement(q,(0,y.Z)({},pe,{maxLength:z,onKeyDown:at,onChange:nt,onFocus:ot,onBlur:rt,onCompositionStart:et,onCompositionEnd:tt,className:N()(E==null?void 0:E.textarea),style:(0,m.Z)((0,m.Z)({},ee==null?void 0:ee.textarea),{},{resize:w==null?void 0:w.resize}),disabled:j,prefixCls:B,onResize:st,ref:he}))});return ut}),Ee=te,Re=Ee,ve=e(36323),Ze=e(99248),ne=e(456),me=e(73064),ze=e(56107),ue=e(92006),F=e(57873),$=e(84477),_=function(n,T){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&T.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,l=Object.getOwnPropertySymbols(n);C{var i;const{prefixCls:l,bordered:C=!0,size:x,disabled:S,status:p,allowClear:f,classNames:v,rootClassName:z,className:V}=n,b=_(n,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:G,direction:U}=t.useContext(Ze.E_),B=(0,me.Z)(x),A=t.useContext(ne.Z),P=S!=null?S:A,{status:X,hasFeedback:se,feedbackIcon:w}=t.useContext(ze.aM),j=(0,ve.F)(X,p),J=t.useRef(null);t.useImperativeHandle(T,()=>{var ge;return{resizableTextArea:(ge=J.current)===null||ge===void 0?void 0:ge.resizableTextArea,focus:W=>{var h,s;(0,ue.n)((s=(h=J.current)===null||h===void 0?void 0:h.resizableTextArea)===null||s===void 0?void 0:s.textArea,W)},blur:()=>{var W;return(W=J.current)===null||W===void 0?void 0:W.blur()}}});const E=G("input",l);let ee;typeof f=="object"&&(f!=null&&f.clearIcon)?ee=f:f&&(ee={clearIcon:t.createElement(L.Z,null)});const ce=(0,$.Z)(E),[pe,we]=(0,F.ZP)(E,ce);return pe(t.createElement(Re,Object.assign({},b,{disabled:P,allowClear:ee,className:N()(ce,V,z),classes:{affixWrapper:N()(`${E}-textarea-affix-wrapper`,{[`${E}-affix-wrapper-rtl`]:U==="rtl",[`${E}-affix-wrapper-borderless`]:!C,[`${E}-affix-wrapper-sm`]:B==="small",[`${E}-affix-wrapper-lg`]:B==="large",[`${E}-textarea-show-count`]:n.showCount||((i=n.count)===null||i===void 0?void 0:i.show)},(0,ve.Z)(`${E}-affix-wrapper`,j),we)},classNames:Object.assign(Object.assign({},v),{textarea:N()({[`${E}-borderless`]:!C,[`${E}-sm`]:B==="small",[`${E}-lg`]:B==="large"},(0,ve.Z)(E,j),we,v==null?void 0:v.textarea)}),prefixCls:E,suffix:se&&t.createElement("span",{className:`${E}-textarea-suffix`},w),ref:J})))})},86054:function(Fe,de,e){e.d(de,{Z:function(){return L}});var t=e(79685);function L(O,N){const y=(0,t.useRef)([]),m=()=>{y.current.push(setTimeout(()=>{var r,g,u,I;!((r=O.current)===null||r===void 0)&&r.input&&((g=O.current)===null||g===void 0?void 0:g.input.getAttribute("type"))==="password"&&(!((u=O.current)===null||u===void 0)&&u.input.hasAttribute("value"))&&((I=O.current)===null||I===void 0||I.input.removeAttribute("value"))}))};return(0,t.useEffect)(()=>(N&&m(),()=>y.current.forEach(r=>{r&&clearTimeout(r)})),[]),m}},3206:function(Fe,de,e){e.d(de,{Z:function(){return r}});var t=e(98787),L=e(93264),O=e(63195),N=e(79685),y=["show"];function m(g,u){if(!u.max)return!0;var I=u.strategy(g);return I<=u.max}function r(g,u){return N.useMemo(function(){var I={};u&&(I.show=(0,O.Z)(u)==="object"&&u.formatter?u.formatter:!!u),I=(0,L.Z)((0,L.Z)({},I),g);var k=I,oe=k.show,be=(0,t.Z)(k,y);return(0,L.Z)((0,L.Z)({},be),{},{show:!!oe,showFormatter:typeof oe=="function"?oe:void 0,strategy:be.strategy||function(Ae){return Ae.length}})},[g,u])}},3248:function(Fe,de,e){e.d(de,{Q:function(){return I},Z:function(){return Be}});var t=e(21137),L=e(93264),O=e(6346),N=e(63195),y=e(68591),m=e.n(y),r=e(79685),g=e(49990),u=function(a){var H,Z,M=a.inputElement,K=a.prefixCls,re=a.prefix,Y=a.suffix,fe=a.addonBefore,q=a.addonAfter,le=a.className,te=a.style,Ee=a.disabled,Re=a.readOnly,ve=a.focused,Ze=a.triggerFocus,ne=a.allowClear,me=a.value,ze=a.handleReset,ue=a.hidden,F=a.classes,$=a.classNames,_=a.dataAttrs,d=a.styles,c=a.components,n=(c==null?void 0:c.affixWrapper)||"span",T=(c==null?void 0:c.groupWrapper)||"span",i=(c==null?void 0:c.wrapper)||"span",l=(c==null?void 0:c.groupAddon)||"span",C=(0,r.useRef)(null),x=function(P){var X;(X=C.current)!==null&&X!==void 0&&X.contains(P.target)&&(Ze==null||Ze())},S=function(){var P;if(!ne)return null;var X=!Ee&&!Re&&me,se="".concat(K,"-clear-icon"),w=(0,N.Z)(ne)==="object"&&ne!==null&&ne!==void 0&&ne.clearIcon?ne.clearIcon:"\u2716";return r.createElement("span",{onClick:ze,onMouseDown:function(J){return J.preventDefault()},className:m()(se,(P={},(0,O.Z)(P,"".concat(se,"-hidden"),!X),(0,O.Z)(P,"".concat(se,"-has-suffix"),!!Y),P)),role:"button",tabIndex:-1},w)},p=(0,r.cloneElement)(M,{value:me,hidden:ue,className:m()((H=M.props)===null||H===void 0?void 0:H.className,!(0,g.X3)(a)&&!(0,g.He)(a)&&le)||null,style:(0,L.Z)((0,L.Z)({},(Z=M.props)===null||Z===void 0?void 0:Z.style),!(0,g.X3)(a)&&!(0,g.He)(a)?te:{})});if((0,g.X3)(a)){var f,v="".concat(K,"-affix-wrapper"),z=m()(v,(f={},(0,O.Z)(f,"".concat(v,"-disabled"),Ee),(0,O.Z)(f,"".concat(v,"-focused"),ve),(0,O.Z)(f,"".concat(v,"-readonly"),Re),(0,O.Z)(f,"".concat(v,"-input-with-clear-btn"),Y&&ne&&me),f),!(0,g.He)(a)&&le,F==null?void 0:F.affixWrapper,$==null?void 0:$.affixWrapper),V=(Y||ne)&&r.createElement("span",{className:m()("".concat(K,"-suffix"),$==null?void 0:$.suffix),style:d==null?void 0:d.suffix},S(),Y);p=r.createElement(n,(0,t.Z)({className:z,style:(0,L.Z)((0,L.Z)({},(0,g.He)(a)?void 0:te),d==null?void 0:d.affixWrapper),hidden:!(0,g.He)(a)&&ue,onClick:x},_==null?void 0:_.affixWrapper,{ref:C}),re&&r.createElement("span",{className:m()("".concat(K,"-prefix"),$==null?void 0:$.prefix),style:d==null?void 0:d.prefix},re),(0,r.cloneElement)(M,{value:me,hidden:null}),V)}if((0,g.He)(a)){var b="".concat(K,"-group"),G="".concat(b,"-addon"),U=m()("".concat(K,"-wrapper"),b,F==null?void 0:F.wrapper),B=m()("".concat(K,"-group-wrapper"),le,F==null?void 0:F.group);return r.createElement(T,{className:B,style:te,hidden:ue},r.createElement(i,{className:U},fe&&r.createElement(l,{className:G},fe),(0,r.cloneElement)(p,{hidden:null}),q&&r.createElement(l,{className:G},q)))}return p},I=u,k=e(57963),oe=e(89342),be=e(98787),Ae=e(46501),$e=e(3139),Te=e(3206),Ie=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Pe=(0,r.forwardRef)(function(o,a){var H=o.autoComplete,Z=o.onChange,M=o.onFocus,K=o.onBlur,re=o.onPressEnter,Y=o.onKeyDown,fe=o.prefixCls,q=fe===void 0?"rc-input":fe,le=o.disabled,te=o.htmlSize,Ee=o.className,Re=o.maxLength,ve=o.suffix,Ze=o.showCount,ne=o.count,me=o.type,ze=me===void 0?"text":me,ue=o.classes,F=o.classNames,$=o.styles,_=o.onCompositionStart,d=o.onCompositionEnd,c=(0,be.Z)(o,Ie),n=(0,r.useState)(!1),T=(0,oe.Z)(n,2),i=T[0],l=T[1],C=r.useRef(!1),x=(0,r.useRef)(null),S=function(s){x.current&&(0,g.nH)(x.current,s)},p=(0,Ae.Z)(o.defaultValue,{value:o.value}),f=(0,oe.Z)(p,2),v=f[0],z=f[1],V=v==null?"":String(v),b=r.useState(null),G=(0,oe.Z)(b,2),U=G[0],B=G[1],A=(0,Te.Z)(ne,Ze),P=A.max||Re,X=A.strategy(V),se=!!P&&X>P;(0,r.useImperativeHandle)(a,function(){return{focus:S,blur:function(){var s;(s=x.current)===null||s===void 0||s.blur()},setSelectionRange:function(s,ae,ie){var xe;(xe=x.current)===null||xe===void 0||xe.setSelectionRange(s,ae,ie)},select:function(){var s;(s=x.current)===null||s===void 0||s.select()},input:x.current}}),(0,r.useEffect)(function(){l(function(h){return h&&le?!1:h})},[le]);var w=function(s,ae){var ie=ae;if(!C.current&&A.exceedFormatter&&A.max&&A.strategy(ae)>A.max&&(ie=A.exceedFormatter(ae,{max:A.max}),ae!==ie)){var xe,ye;B([((xe=x.current)===null||xe===void 0?void 0:xe.selectionStart)||0,((ye=x.current)===null||ye===void 0?void 0:ye.selectionEnd)||0])}z(ie),x.current&&(0,g.rJ)(x.current,s,Z,ie)};r.useEffect(function(){if(U){var h;(h=x.current)===null||h===void 0||h.setSelectionRange.apply(h,(0,k.Z)(U))}},[U]);var j=function(s){w(s,s.target.value)},J=function(s){C.current=!1,w(s,s.currentTarget.value),d==null||d(s)},E=function(s){re&&s.key==="Enter"&&re(s),Y==null||Y(s)},ee=function(s){l(!0),M==null||M(s)},ce=function(s){l(!1),K==null||K(s)},pe=function(s){z(""),S(),x.current&&(0,g.rJ)(x.current,s,Z)},we=se&&"".concat(q,"-out-of-range"),ge=function(){var s=(0,$e.Z)(o,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return r.createElement("input",(0,t.Z)({autoComplete:H},s,{onChange:j,onFocus:ee,onBlur:ce,onKeyDown:E,className:m()(q,(0,O.Z)({},"".concat(q,"-disabled"),le),F==null?void 0:F.input),style:$==null?void 0:$.input,ref:x,size:te,type:ze,onCompositionStart:function(ie){C.current=!0,_==null||_(ie)},onCompositionEnd:J}))},W=function(){var s=Number(P)>0;if(ve||A.show){var ae=A.showFormatter?A.showFormatter({value:V,count:X,maxLength:P}):"".concat(X).concat(s?" / ".concat(P):"");return r.createElement(r.Fragment,null,A.show&&r.createElement("span",{className:m()("".concat(q,"-show-count-suffix"),(0,O.Z)({},"".concat(q,"-show-count-has-suffix"),!!ve),F==null?void 0:F.count),style:(0,L.Z)({},$==null?void 0:$.count)},ae),ve)}return null};return r.createElement(I,(0,t.Z)({},c,{prefixCls:q,className:m()(Ee,we),inputElement:ge(),handleReset:pe,value:V,focused:i,triggerFocus:S,suffix:W(),disabled:le,classes:ue,classNames:F,styles:$}))}),Ve=Pe,Be=Ve},49990:function(Fe,de,e){e.d(de,{He:function(){return t},X3:function(){return L},nH:function(){return N},rJ:function(){return O}});function t(y){return!!(y.addonBefore||y.addonAfter)}function L(y){return!!(y.prefix||y.suffix||y.allowClear)}function O(y,m,r,g){if(r){var u=m;if(m.type==="click"){var I=y.cloneNode(!0);u=Object.create(m,{target:{value:I},currentTarget:{value:I}}),I.value="",r(u);return}if(g!==void 0){var k=y.cloneNode(!0);u=Object.create(m,{target:{value:k},currentTarget:{value:k}}),k.type!=="file"&&(k.value=g),r(u);return}r(u)}}function N(y,m){if(y){y.focus(m);var r=m||{},g=r.cursor;if(g){var u=y.value.length;switch(g){case"start":y.setSelectionRange(0,0);break;case"end":y.setSelectionRange(u,u);break;default:y.setSelectionRange(0,u)}}}}}}]); diff --git a/1914.7e360ee4.async.js b/1914.7e360ee4.async.js new file mode 100644 index 00000000..4aaa77ed --- /dev/null +++ b/1914.7e360ee4.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1914],{28970:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(93264),o=t(79685),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},d=u,c=t(64507),n=function(l,f){return o.createElement(c.Z,(0,e.Z)((0,e.Z)({},l),{},{ref:f,icon:d}))};n.displayName="ClusterOutlined";var r=o.forwardRef(n)},21086:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(93264),o=t(79685),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},d=u,c=t(64507),n=function(l,f){return o.createElement(c.Z,(0,e.Z)((0,e.Z)({},l),{},{ref:f,icon:d}))};n.displayName="ContactsOutlined";var r=o.forwardRef(n)},54301:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(93264),o=t(79685),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},d=u,c=t(64507),n=function(l,f){return o.createElement(c.Z,(0,e.Z)((0,e.Z)({},l),{},{ref:f,icon:d}))};n.displayName="HomeOutlined";var r=o.forwardRef(n)},14604:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(93264),o=t(79685),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},d=u,c=t(64507),n=function(l,f){return o.createElement(c.Z,(0,e.Z)((0,e.Z)({},l),{},{ref:f,icon:d}))};n.displayName="LikeOutlined";var r=o.forwardRef(n)},76397:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(93264),o=t(79685),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"},d=u,c=t(64507),n=function(l,f){return o.createElement(c.Z,(0,e.Z)((0,e.Z)({},l),{},{ref:f,icon:d}))};n.displayName="MessageFilled";var r=o.forwardRef(n)},19346:function(O,a,t){"use strict";var e=t(93264),o=t(79685),u=t(96818),d=t(64507),c=function(r,C){return o.createElement(d.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:C,icon:u.Z}))};c.displayName="PlusOutlined",a.Z=o.forwardRef(c)},43490:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(93264),o=t(79685),u={icon:function(l,f){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:f}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:l}}]}},name:"star",theme:"twotone"},d=u,c=t(64507),n=function(l,f){return o.createElement(c.Z,(0,e.Z)((0,e.Z)({},l),{},{ref:f,icon:d}))};n.displayName="StarTwoTone";var r=o.forwardRef(n)},33974:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(21137),o=t(79685),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},d=u,c=t(83317),n=function(l,f){return o.createElement(c.Z,(0,e.Z)({},l,{ref:f,icon:d}))},r=o.forwardRef(n)},71449:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(21137),o=t(79685),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},d=u,c=t(83317),n=function(l,f){return o.createElement(c.Z,(0,e.Z)({},l,{ref:f,icon:d}))},r=o.forwardRef(n)},79586:function(O,a,t){"use strict";t.d(a,{f:function(){return R}});var e=t(6346),o=t(89543),u=t(68591),d=t.n(u),c=t(79685),n=t(34435),r=t(93264),C=t(33298),l=function(y){return(0,e.Z)({},y.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function f(M){return(0,C.Xj)("ProLayoutGridContent",function(y){var P=(0,r.Z)((0,r.Z)({},y),{},{componentCls:".".concat(M)});return[l(P)]})}var b=t(63342),R=function(y){var P=(0,c.useContext)(n.X),K=y.children,z=y.contentWidth,E=y.className,Z=y.style,B=(0,c.useContext)(o.ZP.ConfigContext),A=B.getPrefixCls,et=y.prefixCls||A("pro"),ct=z||P.contentWidth,Q="".concat(et,"-grid-content"),nt=f(Q),ut=nt.wrapSSR,ot=nt.hashId,lt=ct==="Fixed"&&P.layout==="top";return ut((0,b.jsx)("div",{className:d()(Q,ot,E,(0,e.Z)({},"".concat(Q,"-wide"),lt)),style:Z,children:(0,b.jsx)("div",{className:"".concat(et,"-grid-content-children ").concat(ot).trim(),children:K})}))}},34435:function(O,a,t){"use strict";t.d(a,{X:function(){return o}});var e=t(79685),o=(0,e.createContext)({})},43241:function(O,a,t){"use strict";var e=t(49425);a.Z=e.Z},79714:function(O,a,t){"use strict";t.d(a,{Z:function(){return vt}});var e=t(79685),o=t(68591),u=t.n(o),d=t(99248),c=t(56107),n=t(57873),C=s=>{const{getPrefixCls:p,direction:v}=(0,e.useContext)(d.E_),{prefixCls:i,className:m}=s,x=p("input-group",i),w=p("input"),[S,$]=(0,n.ZP)(w),W=u()(x,{[`${x}-lg`]:s.size==="large",[`${x}-sm`]:s.size==="small",[`${x}-compact`]:s.compact,[`${x}-rtl`]:v==="rtl"},$,m),H=(0,e.useContext)(c.aM),N=(0,e.useMemo)(()=>Object.assign(Object.assign({},H),{isFormItemInput:!1}),[H]);return S(e.createElement("span",{className:W,style:s.style,onMouseEnter:s.onMouseEnter,onMouseLeave:s.onMouseLeave,onFocus:s.onFocus,onBlur:s.onBlur},e.createElement(c.aM.Provider,{value:N},s.children)))},l=t(92006),f=t(33974),b=t(71449),R=t(3139),M=t(52401),y=t(86054),P=function(s,p){var v={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&p.indexOf(i)<0&&(v[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,i=Object.getOwnPropertySymbols(s);ms?e.createElement(b.Z,null):e.createElement(f.Z,null),z={click:"onClick",hover:"onMouseOver"};var Z=e.forwardRef((s,p)=>{const{visibilityToggle:v=!0}=s,i=typeof v=="object"&&v.visible!==void 0,[m,x]=(0,e.useState)(()=>i?v.visible:!1),w=(0,e.useRef)(null);e.useEffect(()=>{i&&x(v.visible)},[i,v]);const S=(0,y.Z)(w),$=()=>{const{disabled:k}=s;k||(m&&S(),x(I=>{var T;const G=!I;return typeof v=="object"&&((T=v.onVisibleChange)===null||T===void 0||T.call(v,G)),G}))},W=k=>{const{action:I="click",iconRender:T=K}=s,G=z[I]||"",U=T(m),q={[G]:$,className:`${k}-icon`,key:"passwordIcon",onMouseDown:_=>{_.preventDefault()},onMouseUp:_=>{_.preventDefault()}};return e.cloneElement(e.isValidElement(U)?U:e.createElement("span",null,U),q)},{className:H,prefixCls:N,inputPrefixCls:st,size:j}=s,J=P(s,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:at}=e.useContext(d.E_),rt=at("input",st),F=at("input-password",N),Y=v&&W(F),L=u()(F,H,{[`${F}-${j}`]:!!j}),it=Object.assign(Object.assign({},(0,R.Z)(J,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:L,prefixCls:rt,suffix:Y});return j&&(it.size=j),e.createElement(l.Z,Object.assign({ref:(0,M.sQ)(p,w)},it))}),B=t(66907),A=t(23196),et=t(10951),ct=t(73064),Q=t(26490),nt=function(s,p){var v={};for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&p.indexOf(i)<0&&(v[i]=s[i]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,i=Object.getOwnPropertySymbols(s);m{const{prefixCls:v,inputPrefixCls:i,className:m,size:x,suffix:w,enterButton:S=!1,addonAfter:$,loading:W,disabled:H,onSearch:N,onChange:st,onCompositionStart:j,onCompositionEnd:J}=s,at=nt(s,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:rt,direction:F}=e.useContext(d.E_),Y=e.useRef(!1),L=rt("input-search",v),it=rt("input",i),{compactSize:k}=(0,Q.ri)(L,F),I=(0,ct.Z)(h=>{var g;return(g=x!=null?x:k)!==null&&g!==void 0?g:h}),T=e.useRef(null),G=h=>{h&&h.target&&h.type==="click"&&N&&N(h.target.value,h,{source:"clear"}),st&&st(h)},U=h=>{var g;document.activeElement===((g=T.current)===null||g===void 0?void 0:g.input)&&h.preventDefault()},q=h=>{var g,D;N&&N((D=(g=T.current)===null||g===void 0?void 0:g.input)===null||D===void 0?void 0:D.value,h,{source:"input"})},_=h=>{Y.current||W||q(h)},mt=typeof S=="boolean"?e.createElement(B.Z,null):null,dt=`${L}-button`;let tt;const V=S||{},ft=V.type&&V.type.__ANT_BUTTON===!0;ft||V.type==="button"?tt=(0,A.Tm)(V,Object.assign({onMouseDown:U,onClick:h=>{var g,D;(D=(g=V==null?void 0:V.props)===null||g===void 0?void 0:g.onClick)===null||D===void 0||D.call(g,h),q(h)},key:"enterButton"},ft?{className:dt,size:I}:{})):tt=e.createElement(et.ZP,{className:dt,type:S?"primary":void 0,size:I,disabled:H,key:"enterButton",onMouseDown:U,onClick:q,loading:W,icon:mt},S),$&&(tt=[tt,(0,A.Tm)($,{key:"addonAfter"})]);const ht=u()(L,{[`${L}-rtl`]:F==="rtl",[`${L}-${I}`]:!!I,[`${L}-with-button`]:!!S},m),Ct=h=>{Y.current=!0,j==null||j(h)},gt=h=>{Y.current=!1,J==null||J(h)};return e.createElement(l.Z,Object.assign({ref:(0,M.sQ)(T,p),onPressEnter:_},at,{size:I,onCompositionStart:Ct,onCompositionEnd:gt,prefixCls:it,addonAfter:tt,suffix:w,onChange:G,className:ht,disabled:H}))}),lt=t(51807);const X=l.Z;X.Group=C,X.Search=ot,X.TextArea=lt.Z,X.Password=Z;var vt=X},61728:function(O,a,t){"use strict";var e=t(27634);a.Z=e.Z},96300:function(O){(function(a,t){O.exports=t()})(this,function(){"use strict";return function(a,t,e){a=a||{};var o=t.prototype,u={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function d(n,r,C,l){return o.fromToBase(n,r,C,l)}e.en.relativeTime=u,o.fromToBase=function(n,r,C,l,f){for(var b,R,M,y=C.$locale().relativeTime||u,P=a.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],K=P.length,z=0;z0,Z<=E.r||!E.r){Z<=1&&z>0&&(E=P[z-1]);var B=y[E.l];f&&(Z=f(""+Z)),R=typeof B=="string"?B.replace("%d",Z):B(Z,r,E.l,M);break}}if(r)return R;var A=M?y.future:y.past;return typeof A=="function"?A(R):A.replace("%s",R)},o.to=function(n,r){return d(n,r,this,!0)},o.from=function(n,r){return d(n,r,this)};var c=function(n){return n.$u?e.utc():e()};o.toNow=function(n){return this.to(c(this),n)},o.fromNow=function(n){return this.from(c(this),n)}}})}}]); diff --git a/1958.c805c442.async.js b/1958.c805c442.async.js deleted file mode 100644 index 2c020d50..00000000 --- a/1958.c805c442.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1958],{82574:function(b,h,e){var t=e(33346),i=e(50959),_=e(5590),c=e(69164),f=function(C,T){return i.createElement(c.Z,(0,t.Z)((0,t.Z)({},C),{},{ref:T,icon:_.Z}))};f.displayName="DownOutlined",h.Z=i.forwardRef(f)},1442:function(b,h,e){var t=e(33346),i=e(50959),_=e(63374),c=e(69164),f=function(C,T){return i.createElement(c.Z,(0,t.Z)((0,t.Z)({},C),{},{ref:T,icon:_.Z}))};f.displayName="PlusOutlined",h.Z=i.forwardRef(f)},98150:function(b,h,e){var t=e(33346),i=e(10570),_=e(50959),c=e(54970),f=e(82578),x=e(11527),C=["fieldProps","proFieldProps"],T="dateTime",g=_.forwardRef(function(p,L){var U=p.fieldProps,a=p.proFieldProps,K=(0,i.Z)(p,C),O=(0,_.useContext)(c.Z);return(0,x.jsx)(f.Z,(0,t.Z)({ref:L,fieldProps:(0,t.Z)({getPopupContainer:O.getPopupContainer},U),valueType:T,proFieldProps:a,filedConfig:{valueType:T,customLightMode:!0}},K))});h.Z=g},79712:function(b,h,e){var t=e(33346),i=e(10570),_=e(44559),c=e(50959),f=e(54970),x=e(82578),C=e(11527),T=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],g=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],p=function(u,S){var j=u.fieldProps,n=u.children,o=u.params,E=u.proFieldProps,M=u.mode,R=u.valueEnum,I=u.request,W=u.showSearch,r=u.options,F=(0,i.Z)(u,T),Z=(0,c.useContext)(f.Z);return(0,C.jsx)(x.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,_.h)(R),request:I,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({options:r,mode:M,showSearch:W,getPopupContainer:Z.getPopupContainer},j),ref:S,proFieldProps:E},F),{},{children:n}))},L=c.forwardRef(function(O,u){var S=O.fieldProps,j=O.children,n=O.params,o=O.proFieldProps,E=O.mode,M=O.valueEnum,R=O.request,I=O.options,W=(0,i.Z)(O,g),r=(0,t.Z)({options:I,mode:E||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},S),F=(0,c.useContext)(f.Z);return(0,C.jsx)(x.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,_.h)(M),request:R,params:n,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({getPopupContainer:F.getPopupContainer},r),ref:u,proFieldProps:o},W),{},{children:j}))}),U=c.forwardRef(p),a=L,K=U;K.SearchSelect=a,K.displayName="ProFormComponent",h.Z=K},59224:function(b,h,e){var t=e(33346),i=e(10570),_=e(50959),c=e(82578),f=e(11527),x=["fieldProps","proFieldProps"],C=function(g,p){var L=g.fieldProps,U=g.proFieldProps,a=(0,i.Z)(g,x);return(0,f.jsx)(c.Z,(0,t.Z)({ref:p,valueType:"textarea",fieldProps:L,proFieldProps:U},a))};h.Z=_.forwardRef(C)},60010:function(b,h,e){var t=e(32682),i=e(33346),_=e(10570),c=e(65589),f=e(67190),x=e(82757),C=e(71770),T=e(50959),g=e(82578),p=e(11527),L=["fieldProps","proFieldProps"],U=["fieldProps","proFieldProps"],a="text",K=function(n){var o=n.fieldProps,E=n.proFieldProps,M=(0,_.Z)(n,L);return(0,p.jsx)(g.Z,(0,i.Z)({valueType:a,fieldProps:o,filedConfig:{valueType:a},proFieldProps:E},M))},O=function(n){var o=(0,c.Z)(n.open||!1,{value:n.open,onChange:n.onOpenChange}),E=(0,t.Z)(o,2),M=E[0],R=E[1];return(0,p.jsx)(f.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(W){var r,F=W.getFieldValue(n.name||[]);return(0,p.jsx)(x.Z,(0,i.Z)((0,i.Z)({getPopupContainer:function(D){return D&&D.parentNode?D.parentNode:D},onOpenChange:R,content:(0,p.jsxs)("div",{style:{padding:"4px 0"},children:[(r=n.statusRender)===null||r===void 0?void 0:r.call(n,F),n.strengthText?(0,p.jsx)("div",{style:{marginTop:10},children:(0,p.jsx)("span",{children:n.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},n.popoverProps),{},{open:M,children:n.children}))}})},u=function(n){var o=n.fieldProps,E=n.proFieldProps,M=(0,_.Z)(n,U),R=(0,T.useState)(!1),I=(0,t.Z)(R,2),W=I[0],r=I[1];return o!=null&&o.statusRender&&M.name?(0,p.jsx)(O,{name:M.name,statusRender:o==null?void 0:o.statusRender,popoverProps:o==null?void 0:o.popoverProps,strengthText:o==null?void 0:o.strengthText,open:W,onOpenChange:r,children:(0,p.jsx)(g.Z,(0,i.Z)({valueType:"password",fieldProps:(0,i.Z)((0,i.Z)({},(0,C.Z)(o,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(Z){var D;o==null||(D=o.onBlur)===null||D===void 0||D.call(o,Z),r(!1)},onClick:function(Z){var D;o==null||(D=o.onClick)===null||D===void 0||D.call(o,Z),r(!0)}}),proFieldProps:E,filedConfig:{valueType:a}},M))}):(0,p.jsx)(g.Z,(0,i.Z)({valueType:"password",fieldProps:o,proFieldProps:E,filedConfig:{valueType:a}},M))},S=K;S.Password=u,S.displayName="ProFormComponent",h.Z=S},76022:function(b,h,e){e.d(h,{Y:function(){return j}});var t=e(3224),i=e(47801),_=e(33346),c=e(32682),f=e(10570),x=e(87322),C=e(56197),T=e(45319),g=e(72266),p=e.n(g),L=e(65589),U=e(12868),a=e(50959),K=e(10422),O=e(1704),u=e(11527),S=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function j(n){var o,E,M=n.children,R=n.trigger,I=n.onVisibleChange,W=n.onOpenChange,r=n.modalProps,F=n.onFinish,Z=n.submitTimeout,D=n.title,q=n.width,N=n.visible,X=n.open,m=(0,f.Z)(n,S);(0,U.ET)(!m.footer||!(r!=null&&r.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var H=(0,a.useContext)(C.ZP.ConfigContext),ee=(0,a.useState)([]),re=(0,c.Z)(ee,2),oe=re[1],ne=(0,a.useState)(!1),Q=(0,c.Z)(ne,2),Y=Q[0],z=Q[1],te=(0,L.Z)(!!N,{value:X||N,onChange:W||I}),w=(0,c.Z)(te,2),$=w[0],y=w[1],G=(0,a.useRef)(null),le=(0,a.useCallback)(function(d){G.current===null&&d&&oe([]),G.current=d},[]),V=(0,a.useRef)(),ae=(0,a.useCallback)(function(){var d,l,s,P=(d=(l=m.form)!==null&&l!==void 0?l:(s=m.formRef)===null||s===void 0?void 0:s.current)!==null&&d!==void 0?d:V.current;P&&r!==null&&r!==void 0&&r.destroyOnClose&&P.resetFields()},[r==null?void 0:r.destroyOnClose,m.form,m.formRef]);(0,a.useImperativeHandle)(m.formRef,function(){return V.current},[V.current]),(0,a.useEffect)(function(){$&&(X||N)&&(W==null||W(!0),I==null||I(!0))},[N,X,$]);var se=(0,a.useMemo)(function(){return R?a.cloneElement(R,(0,_.Z)((0,_.Z)({key:"trigger"},R.props),{},{onClick:function(){var d=(0,i.Z)((0,t.Z)().mark(function s(P){var A,v;return(0,t.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:y(!$),(A=R.props)===null||A===void 0||(v=A.onClick)===null||v===void 0||v.call(A,P);case 2:case"end":return B.stop()}},s)}));function l(s){return d.apply(this,arguments)}return l}()})):null},[y,R,$]),ie=(0,a.useMemo)(function(){var d,l,s,P,A,v;return m.submitter===!1?!1:p()({searchConfig:{submitText:(d=(l=r==null?void 0:r.okText)!==null&&l!==void 0?l:(s=H.locale)===null||s===void 0||(s=s.Modal)===null||s===void 0?void 0:s.okText)!==null&&d!==void 0?d:"\u786E\u8BA4",resetText:(P=(A=r==null?void 0:r.cancelText)!==null&&A!==void 0?A:(v=H.locale)===null||v===void 0||(v=v.Modal)===null||v===void 0?void 0:v.cancelText)!==null&&P!==void 0?P:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:Z?Y:void 0,onClick:function(B){var J;y(!1),r==null||(J=r.onCancel)===null||J===void 0||J.call(r,B)}}},m.submitter)},[(o=H.locale)===null||o===void 0||(o=o.Modal)===null||o===void 0?void 0:o.cancelText,(E=H.locale)===null||E===void 0||(E=E.Modal)===null||E===void 0?void 0:E.okText,r,m.submitter,y,Y,Z]),ue=(0,a.useCallback)(function(d,l){return(0,u.jsxs)(u.Fragment,{children:[d,G.current&&l?(0,u.jsx)(a.Fragment,{children:(0,K.createPortal)(l,G.current)},"submitter"):l]})},[]),_e=(0,a.useCallback)(function(){var d=(0,i.Z)((0,t.Z)().mark(function l(s){var P,A,v;return(0,t.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return P=F==null?void 0:F(s),Z&&P instanceof Promise&&(z(!0),A=setTimeout(function(){return z(!1)},Z),P.finally(function(){clearTimeout(A),z(!1)})),B.next=4,P;case 4:return v=B.sent,v&&y(!1),B.abrupt("return",v);case 7:case"end":return B.stop()}},l)}));return function(l){return d.apply(this,arguments)}}(),[F,y,Z]),de=(0,x.X)($);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(T.Z,(0,_.Z)((0,_.Z)((0,_.Z)({title:D,width:q||800},r),de),{},{onCancel:function(l){var s;Z&&Y||(y(!1),r==null||(s=r.onCancel)===null||s===void 0||s.call(r,l))},afterClose:function(){var l;ae(),y(!1),r==null||(l=r.afterClose)===null||l===void 0||l.call(r)},footer:m.submitter!==!1?(0,u.jsx)("div",{ref:le,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,u.jsx)(O.I,(0,_.Z)((0,_.Z)({formComponentType:"ModalForm",layout:"vertical"},m),{},{onInit:function(l,s){var P;m.formRef&&(m.formRef.current=s),m==null||(P=m.onInit)===null||P===void 0||P.call(m,l,s),V.current=s},formRef:V,submitter:ie,onFinish:function(){var d=(0,i.Z)((0,t.Z)().mark(function l(s){var P;return(0,t.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,_e(s);case 2:return P=v.sent,v.abrupt("return",P);case 4:case"end":return v.stop()}},l)}));return function(l){return d.apply(this,arguments)}}(),contentRender:ue,children:M}))})),se]})}}}]); diff --git a/2058.c054cb8c.async.js b/2058.c054cb8c.async.js deleted file mode 100644 index e7387bc0..00000000 --- a/2058.c054cb8c.async.js +++ /dev/null @@ -1,40 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2058],{8941:function(ee,E){"use strict";var s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};E.Z=s},39669:function(ee,E,s){"use strict";var n=s(57),x=s(50959),Q=function(c,u){var m={};for(var y in c)Object.prototype.hasOwnProperty.call(c,y)&&u.indexOf(y)<0&&(m[y]=c[y]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,y=Object.getOwnPropertySymbols(c);j{const m=U=>{const{keyCode:I}=U;I===n.Z.ENTER&&U.preventDefault()},y=U=>{const{keyCode:I}=U,{onClick:Y}=c;I===n.Z.ENTER&&Y&&Y()},{style:j,noStyle:ne,disabled:G}=c,v=Q(c,["style","noStyle","disabled"]);let Z={};return ne||(Z=Object.assign({},te)),G&&(Z.pointerEvents="none"),Z=Object.assign(Object.assign({},Z),j),x.createElement("div",Object.assign({role:"button",tabIndex:0,ref:u},v,{onKeyDown:m,onKeyUp:y,style:Z}))});E.Z=K},3970:function(ee,E,s){"use strict";s.d(E,{N:function(){return n}});const n=x=>({color:x.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${x.motionDurationSlow}`,"&:focus, &:hover":{color:x.colorLinkHover},"&:active":{color:x.colorLinkActive}})},52058:function(ee,E,s){"use strict";s.d(E,{Z:function(){return Rt}});var n=s(50959),x=s(87132),Q=s(8221),te=s(38126),K=s(8941),c=s(38782),u=function(o,r){return n.createElement(c.Z,(0,te.Z)({},o,{ref:r,icon:K.Z}))},m=n.forwardRef(u),y=s(84875),j=s.n(y),ne=s(874),G=s.n(ne),v=s(12682),Z=s(13763),U=s(77189),I=s(65589),Y=s(87017),Te=s(12602),je=s(5449),Le=s(39669),Re=s(31594),Fe=s(45449),Ee=s(32618),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Xe=Ve,Ge=function(o,r){return n.createElement(c.Z,(0,te.Z)({},o,{ref:r,icon:Xe}))},Je=n.forwardRef(Ge),Ie=s(57),Qe=s(94914),Ye=s(15714),Pe=s(3970),qe=s(81501),_e=s(81548),et=s(60076);const tt=(e,o,r,t)=>{const{titleMarginBottom:i,fontWeightStrong:p}=t;return{marginBottom:i,color:r,fontWeight:p,fontSize:e,lineHeight:o}},nt=e=>{const o=[1,2,3,4,5],r={};return o.forEach(t=>{r[` - h${t}&, - div&-h${t}, - div&-h${t} > textarea, - h${t} - `]=tt(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},ot=e=>{const{componentCls:o}=e;return{"a&, a":Object.assign(Object.assign({},(0,Pe.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},rt=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:_e.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),it=e=>{const{componentCls:o,paddingSM:r}=e,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,et.bf)(t)})`},[`${o}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},lt=e=>({"&-copy-success":{[` - &, - &:hover, - &:focus`]:{color:e.colorSuccess}}}),st=()=>({[` - a&-ellipsis, - span&-ellipsis - `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),at=e=>{const{componentCls:o,titleMarginTop:r}=e;return{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${o}-secondary`]:{color:e.colorTextDescription},[`&${o}-success`]:{color:e.colorSuccess},[`&${o}-warning`]:{color:e.colorWarning},[`&${o}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` - div&, - p - `]:{marginBottom:"1em"}},nt(e)),{[` - & + h1${o}, - & + h2${o}, - & + h3${o}, - & + h4${o}, - & + h5${o} - `]:{marginTop:r},[` - div, - ul, - li, - p, - h1, - h2, - h3, - h4, - h5`]:{[` - + h1, - + h2, - + h3, - + h4, - + h5 - `]:{marginTop:r}}}),rt(e)),ot(e)),{[` - ${o}-expand, - ${o}-edit, - ${o}-copy - `]:Object.assign(Object.assign({},(0,Pe.N)(e)),{marginInlineStart:e.marginXXS})}),it(e)),lt(e)),st()),{"&-rtl":{direction:"rtl"}})}},ct=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var De=(0,qe.I$)("Typography",e=>[at(e)],ct),dt=e=>{const{prefixCls:o,"aria-label":r,className:t,style:i,direction:p,maxLength:P,autoSize:N=!0,value:b,onSave:S,onCancel:f,onEnd:z,component:A,enterIcon:M=n.createElement(Je,null)}=e,h=n.useRef(null),O=n.useRef(!1),B=n.useRef(),[oe,J]=n.useState(b);n.useEffect(()=>{J(b)},[b]),n.useEffect(()=>{if(h.current&&h.current.resizableTextArea){const{textArea:R}=h.current.resizableTextArea;R.focus();const{length:w}=R.value;R.setSelectionRange(w,w)}},[]);const d=R=>{let{target:w}=R;J(w.value.replace(/[\n\r]/g,""))},L=()=>{O.current=!0},H=()=>{O.current=!1},D=R=>{let{keyCode:w}=R;O.current||(B.current=w)},se=()=>{S(oe.trim())},q=R=>{let{keyCode:w,ctrlKey:ue,altKey:fe,metaKey:re,shiftKey:ae}=R;B.current===w&&!O.current&&!ue&&!fe&&!re&&!ae&&(w===Ie.Z.ENTER?(se(),z==null||z()):w===Ie.Z.ESC&&f())},g=()=>{se()},C=A?`${o}-${A}`:"",[F,k]=De(o),_=j()(o,`${o}-edit-content`,{[`${o}-rtl`]:p==="rtl"},t,C,k);return F(n.createElement("div",{className:_,style:i},n.createElement(Ye.Z,{ref:h,maxLength:P,value:oe,onChange:d,onKeyDown:D,onKeyUp:q,onCompositionStart:L,onCompositionEnd:H,onBlur:g,"aria-label":r,rows:1,autoSize:N}),M!==null?(0,Qe.Tm)(M,{className:`${o}-edit-content-confirm`}):null))},ut=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{const{prefixCls:r,component:t="article",className:i,rootClassName:p,setContentRef:P,children:N,direction:b,style:S}=e,f=ut(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:z,direction:A,typography:M}=n.useContext(Re.E_),h=b!=null?b:A;let O=o;P&&(O=(0,Te.sQ)(o,P));const B=z("typography",r),[oe,J]=De(B),d=j()(B,M==null?void 0:M.className,{[`${B}-rtl`]:h==="rtl"},i,p,J),L=Object.assign(Object.assign({},M==null?void 0:M.style),S);return oe(n.createElement(t,Object.assign({className:d,style:L,ref:O},f),N))});function xe(e,o){return n.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},o),r&&typeof e=="object"?e:null)]},[e])}var ft=(e,o)=>{const r=n.useRef(!1);n.useEffect(()=>{r.current?e():r.current=!0},o)};function Ne(e){const o=typeof e;return o==="string"||o==="number"}function pt(e){let o=0;return e.forEach(r=>{Ne(r)?o+=String(r).length:o+=1}),o}function Se(e,o){let r=0;const t=[];for(let i=0;io){const S=o-r;return t.push(String(p).slice(0,S)),t}t.push(p),r=b}return e}const gt=0,pe=1,Me=2,Oe=3,Ce=4;var mt=e=>{let{enabledMeasure:o,children:r,text:t,width:i,fontSize:p,rows:P,onEllipsis:N}=e;const[[b,S,f],z]=n.useState([0,0,0]),[A,M]=n.useState(0),[h,O]=n.useState(gt),[B,oe]=n.useState(0),J=n.useRef(null),d=n.useRef(null),L=n.useMemo(()=>(0,Z.Z)(t),[t]),H=n.useMemo(()=>pt(L),[L]),D=n.useMemo(()=>!o||h!==Oe?A&&h!==Ce&&o?r(Se(L,A),A{o&&i&&p&&H&&(O(pe),z([0,Math.ceil(H/2),H]))},[o,i,p,t,H,P]),(0,U.Z)(()=>{var C;h===pe&&oe(((C=J.current)===null||C===void 0?void 0:C.offsetHeight)||0)},[h]),(0,U.Z)(()=>{var C,F;if(B){if(h===pe){const k=((C=d.current)===null||C===void 0?void 0:C.offsetHeight)||0,_=P*B;k<=_?(O(Ce),N(!1)):O(Me)}else if(h===Me)if(b!==f){const k=((F=d.current)===null||F===void 0?void 0:F.offsetHeight)||0,_=P*B;let R=b,w=f;b===f-1?w=b:k<=_?R=S:w=S;const ue=Math.ceil((R+w)/2);z([R,ue,w])}else O(Oe),M(S),N(!0)}},[h,b,f,P,B]);const se={width:i,whiteSpace:"normal",margin:0,padding:0},q=(C,F,k)=>n.createElement("span",{"aria-hidden":!0,ref:F,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(p/2)*2},k)},C),g=(C,F)=>{const k=Se(L,C);return q(r(k,!0),F,se)};return n.createElement(n.Fragment,null,D,o&&h!==Oe&&h!==Ce&&n.createElement(n.Fragment,null,q("lg",J,{wordBreak:"keep-all",whiteSpace:"nowrap"}),h===pe?q(r(L,!1),d,se):g(S,d)))},yt=e=>{let{enabledEllipsis:o,isEllipsis:r,children:t,tooltipProps:i}=e;return!(i!=null&&i.title)||!o?t:n.createElement(Ee.Z,Object.assign({open:r?void 0:!1},i),t)},vt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var r,t,i;const{prefixCls:p,className:P,style:N,type:b,disabled:S,children:f,ellipsis:z,editable:A,copyable:M,component:h,title:O}=e,B=vt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:oe,direction:J}=n.useContext(Re.E_),[d]=(0,Fe.Z)("Text"),L=n.useRef(null),H=n.useRef(null),D=oe("typography",p),se=(0,Y.Z)(B,["mark","code","delete","underline","strong","keyboard","italic"]),[q,g]=xe(A),[C,F]=(0,I.Z)(!1,{value:g.editing}),{triggerType:k=["icon"]}=g,_=l=>{var a;l&&((a=g.onStart)===null||a===void 0||a.call(g)),F(l)};ft(()=>{var l;C||(l=H.current)===null||l===void 0||l.focus()},[C]);const R=l=>{l==null||l.preventDefault(),_(!0)},w=l=>{var a;(a=g.onChange)===null||a===void 0||a.call(g,l),_(!1)},ue=()=>{var l;(l=g.onCancel)===null||l===void 0||l.call(g),_(!1)},[fe,re]=xe(M),[ae,Ze]=n.useState(!1),we=n.useRef(null),ze={};re.format&&(ze.format=re.format);const Ae=()=>{we.current&&clearTimeout(we.current)},It=l=>{var a;l==null||l.preventDefault(),l==null||l.stopPropagation(),G()(re.text||String(f)||"",ze),Ze(!0),Ae(),we.current=setTimeout(()=>{Ze(!1)},3e3),(a=re.onCopy)===null||a===void 0||a.call(re,l)};n.useEffect(()=>Ae,[]);const[He,Pt]=n.useState(!1),[ke,Dt]=n.useState(!1),[$t,Nt]=n.useState(!1),[We,Mt]=n.useState(!1),[Ke,Bt]=n.useState(!1),[Zt,zt]=n.useState(!0),[ie,T]=xe(z,{expandable:!1}),V=ie&&!$t,{rows:ce=1}=T,ye=n.useMemo(()=>!V||T.suffix!==void 0||T.onEllipsis||T.expandable||q||fe,[V,T,q,fe]);(0,U.Z)(()=>{ie&&!ye&&(Pt((0,je.G)("webkitLineClamp")),Dt((0,je.G)("textOverflow")))},[ye,ie]);const X=n.useMemo(()=>ye?!1:ce===1?ke:He,[ye,ke,He]),Ue=V&&(X?Ke:We),At=V&&ce===1&&X,ve=V&&ce>1&&X,Ht=l=>{var a;Nt(!0),(a=T.onExpand)===null||a===void 0||a.call(T,l)},[kt,Wt]=n.useState(0),[Kt,Ut]=n.useState(0),Ft=(l,a)=>{let{offsetWidth:$}=l;var W;Wt($),Ut(parseInt((W=window.getComputedStyle)===null||W===void 0?void 0:W.call(window,a).fontSize,10)||0)},Vt=l=>{var a;Mt(l),We!==l&&((a=T.onEllipsis)===null||a===void 0||a.call(T,l))};n.useEffect(()=>{const l=L.current;if(ie&&X&&l){const a=ve?l.offsetHeight{const l=L.current;if(typeof IntersectionObserver=="undefined"||!l||!X||!V)return;const a=new IntersectionObserver(()=>{zt(!!l.offsetParent)});return a.observe(l),()=>{a.disconnect()}},[X,V]);let le={};T.tooltip===!0?le={title:(r=g.text)!==null&&r!==void 0?r:f}:n.isValidElement(T.tooltip)?le={title:T.tooltip}:typeof T.tooltip=="object"?le=Object.assign({title:(t=g.text)!==null&&t!==void 0?t:f},T.tooltip):le={title:T.tooltip};const be=n.useMemo(()=>{const l=a=>["string","number"].includes(typeof a);if(!(!ie||X)){if(l(g.text))return g.text;if(l(f))return f;if(l(O))return O;if(l(le.title))return le.title}},[ie,X,O,le.title,Ue]);if(C)return n.createElement(dt,{value:(i=g.text)!==null&&i!==void 0?i:typeof f=="string"?f:"",onSave:w,onCancel:ue,onEnd:g.onEnd,prefixCls:D,className:P,style:N,direction:J,component:h,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon});const Xt=()=>{const{expandable:l,symbol:a}=T;if(!l)return null;let $;return a?$=a:$=d==null?void 0:d.expand,n.createElement("a",{key:"expand",className:`${D}-expand`,onClick:Ht,"aria-label":d==null?void 0:d.expand},$)},Gt=()=>{if(!q)return;const{icon:l,tooltip:a}=g,$=(0,Z.Z)(a)[0]||(d==null?void 0:d.edit),W=typeof $=="string"?$:"";return k.includes("icon")?n.createElement(Ee.Z,{key:"edit",title:a===!1?"":$},n.createElement(Le.Z,{ref:H,className:`${D}-edit`,onClick:R,"aria-label":W},l||n.createElement(m,{role:"button"}))):null},Jt=()=>{if(!fe)return;const{tooltips:l,icon:a}=re,$=Be(l),W=Be(a),he=ae?ge($[1],d==null?void 0:d.copied):ge($[0],d==null?void 0:d.copy),qt=ae?d==null?void 0:d.copied:d==null?void 0:d.copy,_t=typeof he=="string"?he:qt;return n.createElement(Ee.Z,{key:"copy",title:he},n.createElement(Le.Z,{className:j()(`${D}-copy`,ae&&`${D}-copy-success`),onClick:It,"aria-label":_t},ae?ge(W[1],n.createElement(x.Z,null),!0):ge(W[0],n.createElement(Q.Z,null),!0)))},Qt=l=>[l&&Xt(),Gt(),Jt()],Yt=l=>[l&&n.createElement("span",{"aria-hidden":!0,key:"ellipsis"},ht),T.suffix,Qt(l)];return n.createElement(v.Z,{onResize:Ft,disabled:!V||X},l=>n.createElement(yt,{tooltipProps:le,enabledEllipsis:V,isEllipsis:Ue},n.createElement($e,Object.assign({className:j()({[`${D}-${b}`]:b,[`${D}-disabled`]:S,[`${D}-ellipsis`]:ie,[`${D}-single-line`]:V&&ce===1,[`${D}-ellipsis-single-line`]:At,[`${D}-ellipsis-multiple-line`]:ve},P),prefixCls:p,style:Object.assign(Object.assign({},N),{WebkitLineClamp:ve?ce:void 0}),component:h,ref:(0,Te.sQ)(l,L,o),direction:J,onClick:k.includes("text")?R:void 0,"aria-label":be==null?void 0:be.toString(),title:O},se),n.createElement(mt,{enabledMeasure:V&&!X,text:f,rows:ce,width:kt,fontSize:Kt,onEllipsis:Vt},(a,$)=>{let W=a;return a.length&&$&&be&&(W=n.createElement("span",{key:"show-content","aria-hidden":!0},W)),bt(e,n.createElement(n.Fragment,null,W,Yt($)))}))))}),Et=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var{ellipsis:r,rel:t}=e,i=Et(e,["ellipsis","rel"]);const p=Object.assign(Object.assign({},i),{rel:t===void 0&&i.target==="_blank"?"noopener noreferrer":t});return delete p.navigate,n.createElement(me,Object.assign({},p,{ref:o,ellipsis:!!r,component:"a"}))}),St=n.forwardRef((e,o)=>n.createElement(me,Object.assign({ref:o},e,{component:"div"}))),Ot=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{var{ellipsis:r}=e,t=Ot(e,["ellipsis"]);const i=n.useMemo(()=>r&&typeof r=="object"?(0,Y.Z)(r,["expandable","rows"]):r,[r]);return n.createElement(me,Object.assign({ref:o},t,{ellipsis:i,component:"span"}))};var wt=n.forwardRef(Ct),Tt=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i{const{level:r=1}=e,t=Tt(e,["level"]);let i;return jt.includes(r)?i=`h${r}`:i="h1",n.createElement(me,Object.assign({ref:o},t,{component:i}))});const de=$e;de.Text=wt,de.Link=xt,de.Title=Lt,de.Paragraph=St;var Rt=de},874:function(ee,E,s){"use strict";var n=s(16935),x={"text/plain":"Text","text/html":"Url",default:"Text"},Q="Copy to clipboard: #{key}, Enter";function te(c){var u=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return c.replace(/#{\s*key\s*}/g,u)}function K(c,u){var m,y,j,ne,G,v,Z=!1;u||(u={}),m=u.debug||!1;try{j=n(),ne=document.createRange(),G=document.getSelection(),v=document.createElement("span"),v.textContent=c,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(I){if(I.stopPropagation(),u.format)if(I.preventDefault(),typeof I.clipboardData=="undefined"){m&&console.warn("unable to use e.clipboardData"),m&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Y=x[u.format]||x.default;window.clipboardData.setData(Y,c)}else I.clipboardData.clearData(),I.clipboardData.setData(u.format,c);u.onCopy&&(I.preventDefault(),u.onCopy(I.clipboardData))}),document.body.appendChild(v),ne.selectNodeContents(v),G.addRange(ne);var U=document.execCommand("copy");if(!U)throw new Error("copy command was unsuccessful");Z=!0}catch(I){m&&console.error("unable to copy using execCommand: ",I),m&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",c),u.onCopy&&u.onCopy(window.clipboardData),Z=!0}catch(Y){m&&console.error("unable to copy using clipboardData: ",Y),m&&console.error("falling back to prompt"),y=te("message"in u?u.message:Q),window.prompt(y,c)}}finally{G&&(typeof G.removeRange=="function"?G.removeRange(ne):G.removeAllRanges()),v&&document.body.removeChild(v),j()}return Z}ee.exports=K},5449:function(ee,E,s){"use strict";s.d(E,{G:function(){return te}});var n=s(63490),x=function(c){if((0,n.Z)()&&window.document.documentElement){var u=Array.isArray(c)?c:[c],m=window.document.documentElement;return u.some(function(y){return y in m.style})}return!1},Q=function(c,u){if(!x(c))return!1;var m=document.createElement("div"),y=m.style[c];return m.style[c]=u,m.style[c]!==y};function te(K,c){return!Array.isArray(K)&&c!==void 0?Q(K,c):x(K)}},16935:function(ee){ee.exports=function(){var E=document.getSelection();if(!E.rangeCount)return function(){};for(var s=document.activeElement,n=[],x=0;x *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),(0,v.Z)(n,"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:(t={position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},(0,v.Z)(t,"a:not(".concat(u,`-btn), + > .anticon`),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),(0,v.Z)(t,".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),t),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}),n))};function Un(r){return(0,Ze.Xj)("ProCardActions",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r),cardActionIconSize:16});return[He(t)]})}var i=c(63342),de=function(e){var t=e.actions,n=e.prefixCls,a=Un(n),u=a.wrapSSR,s=a.hashId;return Array.isArray(t)&&t!==null&&t!==void 0&&t.length?u((0,i.jsx)("ul",{className:ve()("".concat(n,"-actions"),s),children:t.map(function(o,f){return(0,i.jsx)("li",{style:{width:"".concat(100/t.length,"%"),padding:0,margin:0},className:ve()("".concat(n,"-actions-item"),s),children:o},"action-".concat(f))})})):u((0,i.jsx)("ul",{className:ve()("".concat(n,"-actions"),s),children:t}))},nn=de,rn=c(61728),ee=c(43241),An=c(26477),Ke=new An.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),$n=function(e){var t;return(0,v.Z)({},e.componentCls,(t={"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},(0,v.Z)(t,"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),(0,v.Z)(t,"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:Ke,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}),t))};function Wn(r){return(0,Ze.Xj)("ProCardLoading",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[$n(t)]})}var jn=function(e){var t=e.style,n=e.prefix,a=Wn(n||"ant-pro-card"),u=a.wrapSSR;return u((0,i.jsxs)("div",{className:"".concat(n,"-loading-content"),style:t,children:[(0,i.jsx)(rn.Z,{gutter:8,children:(0,i.jsx)(ee.Z,{span:22,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})}),(0,i.jsxs)(rn.Z,{gutter:8,children:[(0,i.jsx)(ee.Z,{span:8,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(ee.Z,{span:15,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(rn.Z,{gutter:8,children:[(0,i.jsx)(ee.Z,{span:6,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(ee.Z,{span:18,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(rn.Z,{gutter:8,children:[(0,i.jsx)(ee.Z,{span:13,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(ee.Z,{span:9,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(rn.Z,{gutter:8,children:[(0,i.jsx)(ee.Z,{span:4,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(ee.Z,{span:3,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(ee.Z,{span:16,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]})]}))},Nn=jn,tn=c(91509),Jn=c(89259),Yn=c(30765),hr=c(93738),yr=["tab","children"],Cr=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function tr(r){return r.filter(function(e){return e})}function qn(r,e,t){if(r)return r.map(function(a){return(0,l.Z)((0,l.Z)({},a),{},{children:(0,i.jsx)(rr,(0,l.Z)((0,l.Z)({},t==null?void 0:t.cardProps),{},{children:a.children}))})});(0,Yn.ET)(!t,"Tabs.TabPane is deprecated. Please use `items` directly.");var n=(0,Jn.Z)(e).map(function(a){if(d.isValidElement(a)){var u=a.key,s=a.props,o=s||{},f=o.tab,p=o.children,Z=(0,G.Z)(o,yr),x=(0,l.Z)((0,l.Z)({key:String(u)},Z),{},{children:(0,i.jsx)(rr,(0,l.Z)((0,l.Z)({},t==null?void 0:t.cardProps),{},{children:p})),label:f});return x}return null});return tr(n)}var ar=function(e){var t=(0,d.useContext)(ln.ZP.ConfigContext),n=t.getPrefixCls;if(tn.Z.startsWith("5"))return(0,i.jsx)(i.Fragment,{});var a=e.key,u=e.tab,s=e.tabKey,o=e.disabled,f=e.destroyInactiveTabPane,p=e.children,Z=e.className,x=e.style,h=e.cardProps,P=(0,G.Z)(e,Cr),y=n("pro-card-tabpane"),T=ve()(y,Z);return(0,i.jsx)(Me.Z.TabPane,(0,l.Z)((0,l.Z)({tabKey:s,tab:u,className:T,style:x,disabled:o,destroyInactiveTabPane:f},P),{},{children:(0,i.jsx)(rr,(0,l.Z)((0,l.Z)({},h),{},{children:p}))}),a)},un=ar,In=function(e){return{backgroundColor:e.controlItemBgActive,borderColor:e.controlOutline}},wn=function(e){var t,n,a,u,s,o=e.componentCls;return s={},(0,v.Z)(s,o,(0,l.Z)((0,l.Z)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius},Ze.Wf===null||Ze.Wf===void 0?void 0:(0,Ze.Wf)(e)),{},(n={"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-hoverable":(0,v.Z)({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(o,"-checked:hover"),{borderColor:e.controlOutline}),"&-checked":(0,l.Z)((0,l.Z)({},In(e)),{},{"&::after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(e.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":(0,l.Z)({},In(e)),"&&-ghost":(0,v.Z)({backgroundColor:"transparent"},"> ".concat(o),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:e.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},(0,v.Z)(n,"".concat(o,"-body-direction-column"),{flexDirection:"column"}),(0,v.Z)(n,"".concat(o,"-body-wrap"),{flexWrap:"wrap"}),(0,v.Z)(n,"&&-collapse",(0,v.Z)({},"> ".concat(o),{"&-header":{paddingBlockEnd:e.padding,borderBlockEnd:0},"&-body":{display:"none"}})),(0,v.Z)(n,"".concat(o,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:e.paddingLG,paddingBlock:e.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:e.padding},borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-collapsible":{cursor:"pointer"}}),(0,v.Z)(n,"".concat(o,"-title"),{color:e.colorText,fontWeight:500,fontSize:e.fontSizeLG,lineHeight:e.lineHeight}),(0,v.Z)(n,"".concat(o,"-extra"),{color:e.colorText}),(0,v.Z)(n,"".concat(o,"-type-inner"),(0,v.Z)({},"".concat(o,"-header"),{backgroundColor:e.colorFillAlter})),(0,v.Z)(n,"".concat(o,"-collapsible-icon"),{marginInlineEnd:e.marginXS,color:e.colorIconHover,":hover":{color:e.colorPrimaryHover},"& svg":{transition:"transform ".concat(e.motionDurationMid)}}),(0,v.Z)(n,"".concat(o,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:e.paddingLG,paddingBlock:e.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),(0,v.Z)(n,"&&-size-small",(t={},(0,v.Z)(t,o,{"&-header":{paddingInline:e.paddingSM,paddingBlock:e.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:e.paddingXS}},"&-title":{fontSize:e.fontSize},"&-body":{paddingInline:e.paddingSM,paddingBlock:e.paddingSM}}),(0,v.Z)(t,"".concat(o,"-header").concat(o,"-header-collapsible"),{paddingBlock:e.paddingXS}),t)),n))),(0,v.Z)(s,"".concat(o,"-col"),(a={},(0,v.Z)(a,"&".concat(o,"-split-vertical"),{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),(0,v.Z)(a,"&".concat(o,"-split-horizontal"),{borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),a)),(0,v.Z)(s,"".concat(o,"-tabs"),(u={},(0,v.Z)(u,"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:e.marginXS,paddingInlineStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-bottom > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingInlineStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-left"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content-holder"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content"),(0,v.Z)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,v.Z)(u,"".concat(e.antCls,"-tabs-left > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginInlineEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-right"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content-holder"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content"),(0,v.Z)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,v.Z)(u,"".concat(e.antCls,"-tabs-right > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),u)),s},bn=24,on=function(e,t){var n=t.componentCls;return e===0?(0,v.Z)({},"".concat(n,"-col-0"),{display:"none"}):(0,v.Z)({},"".concat(n,"-col-").concat(e),{flexShrink:0,width:"".concat(e/bn*100,"%")})},Tr=function(e){return Array(bn+1).fill(1).map(function(t,n){return on(n,e)})};function lr(r){return(0,Ze.Xj)("ProCard",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[wn(t),Tr(t)]})}var Er=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],br=d.forwardRef(function(r,e){var t,n,a,u=r.className,s=r.style,o=r.bodyStyle,f=r.headStyle,p=r.title,Z=r.subTitle,x=r.extra,h=r.tip,P=r.wrap,y=P===void 0?!1:P,T=r.layout,b=r.loading,C=r.gutter,R=C===void 0?0:C,$=r.tooltip,B=r.split,ue=r.headerBordered,_=ue===void 0?!1:ue,w=r.bordered,D=w===void 0?!1:w,N=r.boxShadow,M=N===void 0?!1:N,I=r.children,S=r.size,O=r.actions,E=r.ghost,g=E===void 0?!1:E,F=r.hoverable,j=F===void 0?!1:F,W=r.direction,re=r.collapsed,he=r.collapsible,U=he===void 0?!1:he,se=r.collapsibleIconRender,Re=r.defaultCollapsed,fe=Re===void 0?!1:Re,k=r.onCollapse,V=r.checked,K=r.onChecked,Y=r.tabs,ce=r.type,Te=(0,G.Z)(r,Er),Fe=(0,d.useContext)(ln.ZP.ConfigContext),_e=Fe.getPrefixCls,ke=Dn.ZP.useBreakpoint()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},Be=(0,Ye.Z)(fe,{value:re,onChange:k}),xn=(0,te.Z)(Be,2),Fn=xn[0],Zn=xn[1],be=["xxl","xl","lg","md","sm","xs"],ae=qn(Y==null?void 0:Y.items,I,Y),xe=function(pe){var En=[0,0],Xn=Array.isArray(pe)?pe:[pe,0];return Xn.forEach(function(er,mr){if((0,Ue.Z)(er)==="object")for(var nr=0;nr=0&&nr<=24),Xn)),Pr=Gn((0,i.jsx)("div",{style:(0,l.Z)((0,l.Z)((0,l.Z)({},Fr),Pe(Or>0,{paddingInlineEnd:Or/2,paddingInlineStart:Or/2})),Pe(Rr>0,{paddingBlockStart:Rr/2,paddingBlockEnd:Rr/2})),className:tt,children:d.cloneElement(zn)}));return d.cloneElement(Pr,{key:"pro-card-col-".concat((zn==null?void 0:zn.key)||pe)})}return zn}),Br=ve()("".concat(L),u,_n,(t={},(0,v.Z)(t,"".concat(L,"-border"),D),(0,v.Z)(t,"".concat(L,"-box-shadow"),M),(0,v.Z)(t,"".concat(L,"-contain-card"),Mr),(0,v.Z)(t,"".concat(L,"-loading"),b),(0,v.Z)(t,"".concat(L,"-split"),B==="vertical"||B==="horizontal"),(0,v.Z)(t,"".concat(L,"-ghost"),g),(0,v.Z)(t,"".concat(L,"-hoverable"),j),(0,v.Z)(t,"".concat(L,"-size-").concat(S),S),(0,v.Z)(t,"".concat(L,"-type-").concat(ce),ce),(0,v.Z)(t,"".concat(L,"-collapse"),Fn),(0,v.Z)(t,"".concat(L,"-checked"),V),t)),Ar=ve()("".concat(L,"-body"),_n,(n={},(0,v.Z)(n,"".concat(L,"-body-center"),T==="center"),(0,v.Z)(n,"".concat(L,"-body-direction-column"),B==="horizontal"||W==="column"),(0,v.Z)(n,"".concat(L,"-body-wrap"),y&&Mr),n)),Hr=o,kr=d.isValidElement(b)?b:(0,i.jsx)(Nn,{prefix:L,style:(o==null?void 0:o.padding)===0||(o==null?void 0:o.padding)==="0px"?{padding:24}:void 0}),hn=U&&re===void 0&&(se?se({collapsed:Fn}):(0,i.jsx)(Ge.Z,{rotate:Fn?void 0:90,className:"".concat(L,"-collapsible-icon ").concat(_n).trim()}));return Gn((0,i.jsxs)("div",(0,l.Z)((0,l.Z)({className:Br,style:s,ref:e,onClick:function(pe){var En;K==null||K(pe),Te==null||(En=Te.onClick)===null||En===void 0||En.call(Te,pe)}},(0,en.Z)(Te,["prefixCls","colSpan"])),{},{children:[(p||x||hn)&&(0,i.jsxs)("div",{className:ve()("".concat(L,"-header"),_n,(a={},(0,v.Z)(a,"".concat(L,"-header-border"),_||ce==="inner"),(0,v.Z)(a,"".concat(L,"-header-collapsible"),hn),a)),style:f,onClick:function(){hn&&Zn(!Fn)},children:[(0,i.jsxs)("div",{className:"".concat(L,"-title ").concat(_n).trim(),children:[hn,(0,i.jsx)(vn.G,{label:p,tooltip:$||h,subTitle:Z})]}),x&&(0,i.jsx)("div",{className:"".concat(L,"-extra ").concat(_n).trim(),onClick:function(pe){return pe.stopPropagation()},children:x})]}),Y?(0,i.jsx)("div",{className:"".concat(L,"-tabs ").concat(_n).trim(),children:(0,i.jsx)(Me.Z,(0,l.Z)((0,l.Z)({onChange:Y.onChange},Y),{},{items:ae,children:b?kr:I}))}):(0,i.jsx)("div",{className:Ar,style:Hr,children:b?kr:Ur}),O?(0,i.jsx)(nn,{actions:O,prefixCls:L}):null]})))}),rr=br,Hn=function(e){var t=e.componentCls;return(0,v.Z)({},t,{"&-divider":{flex:"none",width:e.lineWidth,marginInline:e.marginXS,marginBlock:e.marginLG,backgroundColor:e.colorSplit,"&-horizontal":{width:"initial",height:e.lineWidth,marginInline:e.marginLG,marginBlock:e.marginXS}},"&&-size-small &-divider":{marginBlock:e.marginLG,marginInline:e.marginXS,"&-horizontal":{marginBlock:e.marginXS,marginInline:e.marginLG}}})};function Lr(r){return(0,Ze.Xj)("ProCardDivider",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Hn(t)]})}var Kr=function(e){var t=(0,d.useContext)(ln.ZP.ConfigContext),n=t.getPrefixCls,a=n("pro-card"),u="".concat(a,"-divider"),s=Lr(a),o=s.wrapSSR,f=s.hashId,p=e.className,Z=e.style,x=Z===void 0?{}:Z,h=e.type,P=ve()(u,p,f,(0,v.Z)({},"".concat(u,"-").concat(h),h));return o((0,i.jsx)("div",{className:P,style:x}))},fn=Kr,$e=function(e){return(0,i.jsx)(rr,(0,l.Z)({bodyStyle:{padding:0}},e))},Ce=rr;Ce.isProCard=!0,Ce.Divider=fn,Ce.TabPane=un,Ce.Group=$e;var sn=Ce,kn=sn,mn=c(25393),jr=c(33636),je=c(56671),Zr=c(28826),m=c(85865),A=c(41998),me=c(36874),q=c(4218),Se=c(73198),Pn=function(e){return e!=null};function cn(r,e,t){var n,a;if(r===!1)return!1;var u=e.total,s=e.current,o=e.pageSize,f=e.setPageInfo,p=(0,Ue.Z)(r)==="object"?r:{};return(0,l.Z)((0,l.Z)({showTotal:function(x,h){return"".concat(t.getMessage("pagination.total.range","\u7B2C")," ").concat(h[0],"-").concat(h[1]," ").concat(t.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(x," ").concat(t.getMessage("pagination.total.item","\u6761"))},total:u},p),{},{current:r!==!0&&r&&(n=r.current)!==null&&n!==void 0?n:s,pageSize:r!==!0&&r&&(a=r.pageSize)!==null&&a!==void 0?a:o,onChange:function(x,h){var P=r,y=P.onChange;y==null||y(x,h||20),(h!==o||s!==x)&&f({pageSize:h,current:x})}})}function Ae(r,e,t){var n=(0,l.Z)((0,l.Z)({},t.editableUtils),{},{pageInfo:e.pageInfo,reload:function(){var a=(0,J.Z)((0,X.Z)().mark(function s(o){return(0,X.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!o){p.next=3;break}return p.next=3,e.setPageInfo({current:1});case 3:return p.next=5,e==null?void 0:e.reload();case 5:case"end":return p.stop()}},s)}));function u(s){return a.apply(this,arguments)}return u}(),reloadAndRest:function(){var a=(0,J.Z)((0,X.Z)().mark(function s(){return(0,X.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return t.onCleanSelected(),f.next=3,e.setPageInfo({current:1});case 3:return f.next=5,e==null?void 0:e.reload();case 5:case"end":return f.stop()}},s)}));function u(){return a.apply(this,arguments)}return u}(),reset:function(){var a=(0,J.Z)((0,X.Z)().mark(function s(){var o;return(0,X.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,t.resetAll();case 2:return p.next=4,e==null||(o=e.reset)===null||o===void 0?void 0:o.call(e);case 4:return p.next=6,e==null?void 0:e.reload();case 6:case"end":return p.stop()}},s)}));function u(){return a.apply(this,arguments)}return u}(),fullScreen:function(){return t.fullScreen()},clearSelected:function(){return t.onCleanSelected()},setPageInfo:function(u){return e.setPageInfo(u)}});r.current=n}function Qe(r,e){return e.filter(function(t){return t}).length<1?r:e.reduce(function(t,n){return n(t)},r)}var Ne=function(e,t){return t===void 0?!1:typeof t=="boolean"?t:t[e]},yn=function(e){var t;return e&&(0,Ue.Z)(e)==="object"&&(e==null||(t=e.props)===null||t===void 0?void 0:t.colSpan)},dn=function(e,t){return e?Array.isArray(e)?e.join("-"):e.toString():"".concat(t)};function On(r){return Array.isArray(r)?r.join(","):r==null?void 0:r.toString()}function Tn(r){var e={},t={};return r.forEach(function(n){var a=On(n.dataIndex);if(a){if(n.filters){var u=n.defaultFilteredValue;u===void 0?e[a]=null:e[a]=n.defaultFilteredValue}n.sorter&&n.defaultSortOrder&&(t[a]=n.defaultSortOrder)}}),{sort:t,filter:e}}function an(){var r,e,t,n,a,u,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=(0,d.useRef)(),f=(0,d.useRef)(null),p=(0,d.useRef)(),Z=(0,d.useRef)(),x=(0,d.useState)(""),h=(0,te.Z)(x,2),P=h[0],y=h[1],T=(0,d.useRef)([]),b=(0,Ye.Z)(function(){return s.size||s.defaultSize||"middle"},{value:s.size,onChange:s.onSizeChange}),C=(0,te.Z)(b,2),R=C[0],$=C[1],B=(0,d.useMemo)(function(){var I,S;if(s!=null&&(I=s.columnsState)!==null&&I!==void 0&&I.defaultValue)return s.columnsState.defaultValue;var O={};return(S=s.columns)===null||S===void 0||S.forEach(function(E,g){var F=E.key,j=E.dataIndex,W=E.fixed,re=E.disable,he=dn(F!=null?F:j,g);he&&(O[he]={show:!0,fixed:W,disable:re})}),O},[s.columns]),ue=(0,Ye.Z)(function(){var I,S,O=s.columnsState||{},E=O.persistenceType,g=O.persistenceKey;if(g&&E&&typeof window!="undefined"){var F=window[E];try{var j=F==null?void 0:F.getItem(g);if(j)return JSON.parse(j)}catch(W){console.warn(W)}}return s.columnsStateMap||((I=s.columnsState)===null||I===void 0?void 0:I.value)||((S=s.columnsState)===null||S===void 0?void 0:S.defaultValue)||B},{value:((r=s.columnsState)===null||r===void 0?void 0:r.value)||s.columnsStateMap,onChange:((e=s.columnsState)===null||e===void 0?void 0:e.onChange)||s.onColumnsStateChange}),_=(0,te.Z)(ue,2),w=_[0],D=_[1];(0,d.useEffect)(function(){var I=s.columnsState||{},S=I.persistenceType,O=I.persistenceKey;if(O&&S&&typeof window!="undefined"){var E=window[S];try{var g=E==null?void 0:E.getItem(O);D(g?JSON.parse(g):B)}catch(F){console.warn(F)}}},[(t=s.columnsState)===null||t===void 0?void 0:t.persistenceKey,(n=s.columnsState)===null||n===void 0?void 0:n.persistenceType,B]),(0,Yn.ET)(!s.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,Yn.ET)(!s.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var N=(0,d.useCallback)(function(){var I=s.columnsState||{},S=I.persistenceType,O=I.persistenceKey;if(!(!O||!S||typeof window=="undefined")){var E=window[S];try{E==null||E.removeItem(O)}catch(g){console.warn(g)}}},[s.columnsState]);(0,d.useEffect)(function(){var I,S;if(!(!((I=s.columnsState)!==null&&I!==void 0&&I.persistenceKey)||!((S=s.columnsState)!==null&&S!==void 0&&S.persistenceType))&&typeof window!="undefined"){var O=s.columnsState,E=O.persistenceType,g=O.persistenceKey,F=window[E];try{F==null||F.setItem(g,JSON.stringify(w))}catch(j){console.warn(j),N()}}},[(a=s.columnsState)===null||a===void 0?void 0:a.persistenceKey,w,(u=s.columnsState)===null||u===void 0?void 0:u.persistenceType]);var M={action:o.current,setAction:function(S){o.current=S},sortKeyColumns:T.current,setSortKeyColumns:function(S){T.current=S},propsRef:Z,columnsMap:w,keyWords:P,setKeyWords:function(S){return y(S)},setTableSize:$,tableSize:R,prefixName:p.current,setPrefixName:function(S){p.current=S},setColumnsMap:D,columns:s.columns,rootDomRef:f,clearPersistenceStorage:N,defaultColumnKeyMap:B};return Object.defineProperty(M,"prefixName",{get:function(){return p.current}}),Object.defineProperty(M,"sortKeyColumns",{get:function(){return T.current}}),Object.defineProperty(M,"action",{get:function(){return o.current}}),M}var ne=(0,d.createContext)({}),qe=function(e){var t=an(e.initValue);return(0,i.jsx)(ne.Provider,{value:t,children:e.children})},le=c(27097),De=function(e){return(0,v.Z)({},e.componentCls,{marginBlockEnd:16,backgroundColor:(0,Ze.uK)(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function Xe(r){return(0,Ze.Xj)("ProTableAlert",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[De(t)]})}var We=function(e){var t=e.intl,n=e.onCleanSelected;return[(0,i.jsx)("a",{onClick:n,children:t.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function Ln(r){var e=r.selectedRowKeys,t=e===void 0?[]:e,n=r.onCleanSelected,a=r.alwaysShowAlert,u=r.selectedRows,s=r.alertInfoRender,o=s===void 0?function($){var B=$.intl;return(0,i.jsxs)(le.Z,{children:[B.getMessage("alert.selected","\u5DF2\u9009\u62E9"),t.length,B.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:s,f=r.alertOptionRender,p=f===void 0?We:f,Z=(0,je.YB)(),x=p&&p({onCleanSelected:n,selectedRowKeys:t,selectedRows:u,intl:Z}),h=(0,d.useContext)(ln.ZP.ConfigContext),P=h.getPrefixCls,y=P("pro-table-alert"),T=Xe(y),b=T.wrapSSR,C=T.hashId;if(o===!1)return null;var R=o({intl:Z,selectedRowKeys:t,selectedRows:u,onCleanSelected:n});return R===!1||t.length<1&&!a?null:b((0,i.jsx)("div",{className:"".concat(y," ").concat(C).trim(),children:(0,i.jsx)("div",{className:"".concat(y,"-container ").concat(C).trim(),children:(0,i.jsxs)("div",{className:"".concat(y,"-info ").concat(C).trim(),children:[(0,i.jsx)("div",{className:"".concat(y,"-info-content ").concat(C).trim(),children:R}),x?(0,i.jsx)("div",{className:"".concat(y,"-info-option ").concat(C).trim(),children:x}):null]})})}))}var Mn=Ln,dr=c(51392),Qn=c(30114),Vn=c(13547),gn=c(61926),Oe=c(92596),or=c(44711);function Gr(){var r=(0,d.useState)(!0),e=(0,te.Z)(r,2),t=e[1],n=(0,d.useCallback)(function(){return t(function(a){return!a})},[]);return n}function Xr(r,e){var t=(0,d.useMemo)(function(){var n={current:e};return new Proxy(n,{set:function(u,s,o){return Object.is(u[s],o)||(u[s]=o,r(t)),!0}})},[]);return t}function Jr(r){var e=Gr(),t=Xr(e,r);return t}var zr=c(3673),cr=c(5745),vr=c(92879),Ie=c(37354),z=c(73952),oe=c(74454),ge=c(60708),ie=c(25239),Je=c.n(ie),Ve=c(50374),we=c(29927),ze=function(e){return(0,v.Z)({},e.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function Ee(r){return(0,Ze.Xj)("DrawerForm",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[ze(t)]})}var Kn=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function Cn(r){var e,t,n,a=r.children,u=r.trigger,s=r.onVisibleChange,o=r.drawerProps,f=r.onFinish,p=r.submitTimeout,Z=r.title,x=r.width,h=r.resize,P=r.onOpenChange,y=r.visible,T=r.open,b=(0,G.Z)(r,Kn);(0,Yn.ET)(!b.footer||!(o!=null&&o.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var C=d.useMemo(function(){var be,ae,xe,Pe={onResize:function(){},maxWidth:window.innerWidth*.8,minWidth:300};return typeof h=="boolean"?h?Pe:{}:(0,m.Y)({onResize:(be=h==null?void 0:h.onResize)!==null&&be!==void 0?be:Pe.onResize,maxWidth:(ae=h==null?void 0:h.maxWidth)!==null&&ae!==void 0?ae:Pe.maxWidth,minWidth:(xe=h==null?void 0:h.minWidth)!==null&&xe!==void 0?xe:Pe.minWidth})},[h]),R=(0,d.useContext)(ln.ZP.ConfigContext),$=R.getPrefixCls("pro-form-drawer"),B=Ee($),ue=B.wrapSSR,_=B.hashId,w=function(ae){return"".concat($,"-").concat(ae," ").concat(_)},D=(0,d.useState)([]),N=(0,te.Z)(D,2),M=N[1],I=(0,d.useState)(!1),S=(0,te.Z)(I,2),O=S[0],E=S[1],g=(0,d.useState)(!1),F=(0,te.Z)(g,2),j=F[0],W=F[1],re=(0,d.useState)(x||(h?C==null?void 0:C.minWidth:800)),he=(0,te.Z)(re,2),U=he[0],se=he[1],Re=(0,Ye.Z)(!!y,{value:T||y,onChange:P||s}),fe=(0,te.Z)(Re,2),k=fe[0],V=fe[1],K=(0,d.useRef)(null),Y=(0,d.useCallback)(function(be){K.current===null&&be&&M([]),K.current=be},[]),ce=(0,d.useRef)(),Te=(0,d.useCallback)(function(){var be,ae,xe,Pe=(be=(ae=(xe=b.formRef)===null||xe===void 0?void 0:xe.current)!==null&&ae!==void 0?ae:b.form)!==null&&be!==void 0?be:ce.current;Pe&&o!==null&&o!==void 0&&o.destroyOnClose&&Pe.resetFields()},[o==null?void 0:o.destroyOnClose,b.form,b.formRef]);(0,d.useEffect)(function(){k&&(T||y)&&(P==null||P(!0),s==null||s(!0)),j&&se(C==null?void 0:C.minWidth)},[y,k,j]),(0,d.useImperativeHandle)(b.formRef,function(){return ce.current},[ce.current]);var Fe=(0,d.useMemo)(function(){return u?d.cloneElement(u,(0,l.Z)((0,l.Z)({key:"trigger"},u.props),{},{onClick:function(){var be=(0,J.Z)((0,X.Z)().mark(function xe(Pe){var Sn,L;return(0,X.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:V(!k),W(!Object.keys(C)),(Sn=u.props)===null||Sn===void 0||(L=Sn.onClick)===null||L===void 0||L.call(Sn,Pe);case 3:case"end":return Gn.stop()}},xe)}));function ae(xe){return be.apply(this,arguments)}return ae}()})):null},[V,u,k,W,j]),_e=(0,d.useMemo)(function(){var be,ae,xe,Pe;return b.submitter===!1?!1:Je()({searchConfig:{submitText:(be=(ae=R.locale)===null||ae===void 0||(ae=ae.Modal)===null||ae===void 0?void 0:ae.okText)!==null&&be!==void 0?be:"\u786E\u8BA4",resetText:(xe=(Pe=R.locale)===null||Pe===void 0||(Pe=Pe.Modal)===null||Pe===void 0?void 0:Pe.cancelText)!==null&&xe!==void 0?xe:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:p?O:void 0,onClick:function(L){var sr;V(!1),o==null||(sr=o.onClose)===null||sr===void 0||sr.call(o,L)}}},b.submitter)},[b.submitter,(e=R.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.okText,(t=R.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.cancelText,p,O,V,o]),ke=(0,d.useCallback)(function(be,ae){return(0,i.jsxs)(i.Fragment,{children:[be,K.current&&ae?(0,i.jsx)(d.Fragment,{children:(0,Ve.createPortal)(ae,K.current)},"submitter"):ae]})},[]),Be=(0,cr.J)(function(){var be=(0,J.Z)((0,X.Z)().mark(function ae(xe){var Pe,Sn,L;return(0,X.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:return Pe=f==null?void 0:f(xe),p&&Pe instanceof Promise&&(E(!0),Sn=setTimeout(function(){return E(!1)},p),Pe.finally(function(){clearTimeout(Sn),E(!1)})),Gn.next=4,Pe;case 4:return L=Gn.sent,L&&V(!1),Gn.abrupt("return",L);case 7:case"end":return Gn.stop()}},ae)}));return function(ae){return be.apply(this,arguments)}}()),xn=(0,oe.X)(k,s),Fn=(0,d.useCallback)(function(be){var ae,xe,Pe=(document.body.offsetWidth||1e3)-(be.clientX-document.body.offsetLeft),Sn=(ae=C==null?void 0:C.minWidth)!==null&&ae!==void 0?ae:x||800,L=(xe=C==null?void 0:C.maxWidth)!==null&&xe!==void 0?xe:window.innerWidth*.8;if(PeL){se(L);return}se(Pe)},[C==null?void 0:C.maxWidth,C==null?void 0:C.minWidth,x]),Zn=(0,d.useCallback)(function(){document.removeEventListener("mousemove",Fn),document.removeEventListener("mouseup",Zn)},[Fn]);return ue((0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(ge.Z,(0,l.Z)((0,l.Z)((0,l.Z)({title:Z,width:U},o),xn),{},{afterOpenChange:function(ae){var xe;ae||Te(),o==null||(xe=o.afterOpenChange)===null||xe===void 0||xe.call(o,ae)},onClose:function(ae){var xe;p&&O||(V(!1),o==null||(xe=o.onClose)===null||xe===void 0||xe.call(o,ae))},footer:b.submitter!==!1&&(0,i.jsx)("div",{ref:Y,style:{display:"flex",justifyContent:"flex-end"}}),children:[(0,i.jsx)("div",{className:h?ve()(w("sidebar-dragger"),_,(n={},(0,v.Z)(n,w("sidebar-dragger-min-disabled"),U===(C==null?void 0:C.minWidth)),(0,v.Z)(n,w("sidebar-dragger-max-disabled"),U===(C==null?void 0:C.maxWidth)),n)):null,onMouseDown:function(ae){var xe;C==null||(xe=C.onResize)===null||xe===void 0||xe.call(C),ae.stopPropagation(),ae.preventDefault(),document.addEventListener("mousemove",Fn),document.addEventListener("mouseup",Zn),W(!0)}}),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(we.I,(0,l.Z)((0,l.Z)({formComponentType:"DrawerForm",layout:"vertical"},b),{},{formRef:ce,onInit:function(ae,xe){var Pe;b.formRef&&(b.formRef.current=xe),b==null||(Pe=b.onInit)===null||Pe===void 0||Pe.call(b,ae,xe),ce.current=xe},submitter:_e,onFinish:function(){var be=(0,J.Z)((0,X.Z)().mark(function ae(xe){var Pe;return(0,X.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Be(xe);case 2:return Pe=L.sent,L.abrupt("return",Pe);case 4:case"end":return L.stop()}},ae)}));return function(ae){return be.apply(this,arguments)}}(),contentRender:ke,children:a}))})]})),Fe]}))}var fr=c(21137),lt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},ir=lt,xr=c(83317),Pt=function(e,t){return d.createElement(xr.Z,(0,fr.Z)({},e,{ref:t,icon:ir}))},Tt=d.forwardRef(Pt),Et=c(46360),It=c(29288),wt=function(e){return(0,v.Z)({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":(0,v.Z)({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":(0,v.Z)({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};function Mt(r){return(0,Ze.Xj)("LightFilter",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[wt(t)]})}var Ft=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],jt=function(e){var t=e.items,n=e.prefixCls,a=e.size,u=a===void 0?"middle":a,s=e.collapse,o=e.collapseLabel,f=e.onValuesChange,p=e.bordered,Z=e.values,x=e.footerRender,h=e.placement,P=(0,je.YB)(),y="".concat(n,"-light-filter"),T=Mt(y),b=T.wrapSSR,C=T.hashId,R=(0,d.useState)(!1),$=(0,te.Z)(R,2),B=$[0],ue=$[1],_=(0,d.useState)(function(){return(0,l.Z)({},Z)}),w=(0,te.Z)(_,2),D=w[0],N=w[1];(0,d.useEffect)(function(){N((0,l.Z)({},Z))},[Z]);var M=(0,d.useMemo)(function(){var E=[],g=[];return t.forEach(function(F){var j=F.props||{},W=j.secondary;W||s?E.push(F):g.push(F)}),{collapseItems:E,outsideItems:g}},[e.items]),I=M.collapseItems,S=M.outsideItems,O=function(){return o||(s?(0,i.jsx)(Tt,{className:"".concat(y,"-collapse-icon ").concat(C).trim()}):(0,i.jsx)(Et.Q,{size:u,label:P.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009")}))};return b((0,i.jsx)("div",{className:ve()(y,C,"".concat(y,"-").concat(u),(0,v.Z)({},"".concat(y,"-effective"),Object.keys(Z).some(function(E){return Array.isArray(Z[E])?Z[E].length>0:Z[E]}))),children:(0,i.jsxs)("div",{className:"".concat(y,"-container ").concat(C).trim(),children:[S.map(function(E,g){var F=E.key,j=E.props.fieldProps,W=j!=null&&j.placement?j==null?void 0:j.placement:h;return(0,i.jsx)("div",{className:"".concat(y,"-item ").concat(C).trim(),children:d.cloneElement(E,{fieldProps:(0,l.Z)((0,l.Z)({},E.props.fieldProps),{},{placement:W}),proFieldProps:(0,l.Z)((0,l.Z)({},E.props.proFieldProps),{},{light:!0,label:E.props.label,bordered:p}),bordered:p})},F||g)}),I.length?(0,i.jsx)("div",{className:"".concat(y,"-item ").concat(C).trim(),children:(0,i.jsx)(It.M,{padding:24,open:B,onOpenChange:function(g){ue(g)},placement:h,label:O(),footerRender:x,footer:{onConfirm:function(){f((0,l.Z)({},D)),ue(!1)},onClear:function(){var g={};I.forEach(function(F){var j=F.props.name;g[j]=void 0}),f(g)}},children:I.map(function(E){var g=E.key,F=E.props,j=F.name,W=F.fieldProps,re=(0,l.Z)((0,l.Z)({},W),{},{onChange:function(se){return N((0,l.Z)((0,l.Z)({},D),{},(0,v.Z)({},j,se!=null&&se.target?se.target.value:se))),!1}});D.hasOwnProperty(j)&&(re[E.props.valuePropName||"value"]=D[j]);var he=W!=null&&W.placement?W==null?void 0:W.placement:h;return(0,i.jsx)("div",{className:"".concat(y,"-line ").concat(C).trim(),children:d.cloneElement(E,{fieldProps:(0,l.Z)((0,l.Z)({},re),{},{placement:he})})},g)})})},"more"):null]})}))};function Nt(r){var e=r.size,t=r.collapse,n=r.collapseLabel,a=r.initialValues,u=r.onValuesChange,s=r.form,o=r.placement,f=r.formRef,p=r.bordered,Z=r.ignoreRules,x=r.footerRender,h=(0,G.Z)(r,Ft),P=(0,d.useContext)(ln.ZP.ConfigContext),y=P.getPrefixCls,T=y("pro-form"),b=(0,d.useState)(function(){return(0,l.Z)({},a)}),C=(0,te.Z)(b,2),R=C[0],$=C[1],B=(0,d.useRef)();return(0,d.useImperativeHandle)(f,function(){return B.current},[B.current]),(0,i.jsx)(we.I,(0,l.Z)((0,l.Z)({size:e,initialValues:a,form:s,contentRender:function(_){return(0,i.jsx)(jt,{prefixCls:T,items:_==null?void 0:_.flatMap(function(w){return(w==null?void 0:w.type.displayName)==="ProForm-Group"?w.props.children:w}),size:e,bordered:p,collapse:t,collapseLabel:n,placement:o,values:R||{},footerRender:x,onValuesChange:function(D){var N,M,I=(0,l.Z)((0,l.Z)({},R),D);$(I),(N=B.current)===null||N===void 0||N.setFieldsValue(I),(M=B.current)===null||M===void 0||M.submit(),u&&u(D,I)}})},formRef:B,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,en.Z)(h,["labelWidth"])),{},{onValuesChange:function(_,w){var D;$(w),u==null||u(_,w),(D=B.current)===null||D===void 0||D.submit()}}))}var Ot=c(47481),$r=c(66197),ot=c(30650),it=c(58718),Yr=c(13795),st=function(e){if(e&&e!==!0)return e},Bt=function(e,t,n,a){return e?(0,i.jsxs)(i.Fragment,{children:[n.getMessage("tableForm.collapsed","\u5C55\u5F00"),a&&"(".concat(a,")"),(0,i.jsx)(Yr.Z,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,i.jsxs)(i.Fragment,{children:[n.getMessage("tableForm.expand","\u6536\u8D77"),(0,i.jsx)(Yr.Z,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},Lt=function(e){var t=e.setCollapsed,n=e.collapsed,a=n===void 0?!1:n,u=e.submitter,s=e.style,o=e.hiddenNum,f=(0,d.useContext)(ln.ZP.ConfigContext),p=f.getPrefixCls,Z=(0,je.YB)(),x=(0,d.useContext)(je.L_),h=x.hashId,P=st(e.collapseRender)||Bt;return(0,i.jsxs)(le.Z,{style:s,size:16,children:[u,e.collapseRender!==!1&&(0,i.jsx)("a",{className:"".concat(p("pro-query-filter-collapse-button")," ").concat(h).trim(),onClick:function(){return t(!a)},children:P==null?void 0:P(a,e,Z,o)})]})},Kt=Lt,Dt=function(e){var t,n;return(0,v.Z)({},e.componentCls,(n={"&&":{padding:24}},(0,v.Z)(n,"".concat(e.antCls,"-form-item"),{marginBlock:0}),(0,v.Z)(n,"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),(0,v.Z)(n,"&-row",{rowGap:24,"&-split":(t={},(0,v.Z)(t,"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),(0,v.Z)(t,"&:last-child",{marginBlockEnd:12}),t),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),(0,v.Z)(n,"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}),n))};function At(r){return(0,Ze.Xj)("QueryFilter",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Dt(t)]})}var zt=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],Nr,$t={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},ut={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Wt=function(e,t,n){if(n&&typeof n=="number")return{span:n,layout:e};var a=n?["xs","sm","md","lg","xl","xxl"].map(function(s){return[$t[s],24/n[s],"horizontal"]}):ut[e||"default"],u=(a||ut.default).find(function(s){return tB-1)&&!!se&&N>=24;M+=1;var Fe=d.isValidElement(U)&&(U.key||"".concat((V=U.props)===null||V===void 0?void 0:V.name))||se;return d.isValidElement(U)&&Te?e.preserve?{itemDom:d.cloneElement(U,{hidden:!0,key:Fe||se}),hidden:!0,colSpan:Y}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:U,colSpan:Y,hidden:!1}}),g=E.map(function(U,se){var Re,fe,k=U.itemDom,V=U.colSpan,K=k==null||(Re=k.props)===null||Re===void 0?void 0:Re.hidden;if(K)return k;var Y=d.isValidElement(k)&&(k.key||"".concat((fe=k.props)===null||fe===void 0?void 0:fe.name))||se;return 24-O%2424){var fe,k;return 24-((fe=(k=e.submitterColSpanProps)===null||k===void 0?void 0:k.span)!==null&&fe!==void 0?fe:$.span)}return 24-Re},[O,O%24+((t=(n=e.submitterColSpanProps)===null||n===void 0?void 0:n.span)!==null&&t!==void 0?t:$.span),(a=e.submitterColSpanProps)===null||a===void 0?void 0:a.span]),re=(0,d.useContext)(ln.ZP.ConfigContext),he=re.getPrefixCls("pro-query-filter");return(0,i.jsxs)(rn.Z,{gutter:ue,justify:"start",className:ve()("".concat(he,"-row"),f),children:[g,D&&(0,i.jsx)(ee.Z,(0,l.Z)((0,l.Z)({span:$.span,offset:W,className:ve()((u=e.submitterColSpanProps)===null||u===void 0?void 0:u.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:(0,i.jsx)(z.Z.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(he,"-actions ").concat(f).trim(),children:(0,i.jsx)(Kt,{hiddenNum:F,collapsed:P,collapseRender:j?b:!1,submitter:D,setCollapsed:y},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},Ht=(0,ot.j)()?(Nr=document)===null||Nr===void 0||(Nr=Nr.body)===null||Nr===void 0?void 0:Nr.clientWidth:1024;function kt(r){var e=r.collapsed,t=r.layout,n=r.defaultCollapsed,a=n===void 0?!0:n,u=r.defaultColsNumber,s=r.span,o=r.searchGutter,f=o===void 0?24:o,p=r.searchText,Z=r.resetText,x=r.optionRender,h=r.collapseRender,P=r.onReset,y=r.onCollapse,T=r.labelWidth,b=T===void 0?"80":T,C=r.style,R=r.split,$=r.preserve,B=$===void 0?!0:$,ue=r.ignoreRules,_=r.showHiddenNum,w=_===void 0?!1:_,D=r.submitterColSpanProps,N=(0,G.Z)(r,zt),M=(0,d.useContext)(ln.ZP.ConfigContext),I=M.getPrefixCls("pro-query-filter"),S=At(I),O=S.wrapSSR,E=S.hashId,g=(0,Ye.Z)(function(){return typeof(C==null?void 0:C.width)=="number"?C==null?void 0:C.width:Ht}),F=(0,te.Z)(g,2),j=F[0],W=F[1],re=(0,d.useMemo)(function(){return Wt(t,j+16,s)},[t,j,s]),he=(0,d.useMemo)(function(){return u!==void 0?u-1:Math.max(1,24/re.span-1)},[u,re.span]),U=(0,d.useMemo)(function(){if(b&&re.layout!=="vertical"&&b!=="auto")return{labelCol:{flex:"0 0 ".concat(b,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(b,"px)")}},style:{flexWrap:"nowrap"}}},[re.layout,b]);return O((0,i.jsx)(it.Z,{onResize:function(Re){j!==Re.width&&Re.width>17&&W(Re.width)},children:(0,i.jsx)(we.I,(0,l.Z)((0,l.Z)({isKeyPressSubmit:!0,preserve:B},N),{},{className:ve()(I,E,N.className),onReset:P,style:C,layout:re.layout,fieldProps:{style:{width:"100%"}},formItemProps:U,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(Re,fe,k){return(0,i.jsx)(Ut,{spanSize:re,collapsed:e,form:k,submitterColSpanProps:D,collapseRender:h,defaultCollapsed:a,onCollapse:y,optionRender:x,submitter:fe,items:Re,split:R,baseClassName:I,resetText:r.resetText,searchText:r.searchText,searchGutter:f,preserve:B,ignoreRules:ue,showLength:he,showHiddenNum:w})}}))},"resize-observer"))}var dt=c(7676),Gt=["steps","columns","forceUpdate","grid"],Xt=function(e){var t=e.steps,n=e.columns,a=e.forceUpdate,u=e.grid,s=(0,G.Z)(e,Gt),o=(0,zr.d)(s),f=(0,d.useCallback)(function(Z){var x,h;(x=(h=o.current).onCurrentChange)===null||x===void 0||x.call(h,Z),a([])},[a,o]),p=(0,d.useMemo)(function(){return t==null?void 0:t.map(function(Z,x){return(0,d.createElement)(ft,(0,l.Z)((0,l.Z)({grid:u},Z),{},{key:x,layoutType:"StepForm",columns:n[x]}))})},[n,u,t]);return(0,i.jsx)(dt.L0,(0,l.Z)((0,l.Z)({},s),{},{onCurrentChange:f,children:p}))},Jt=Xt,Yt=function(e){var t=e.children;return(0,i.jsx)(i.Fragment,{children:t})},Qt=Yt,ct=c(67823),qt=function(e,t){if(e.valueType==="dependency"){var n,a,u,s=(n=e.getFieldProps)===null||n===void 0?void 0:n.call(e);return(0,Yn.ET)(Array.isArray((a=e.name)!==null&&a!==void 0?a:s==null?void 0:s.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,Yn.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((u=e.name)!==null&&u!==void 0?u:s==null?void 0:s.name)?(0,d.createElement)(ct.Z,(0,l.Z)((0,l.Z)({name:e.name},s),{},{key:e.key}),function(o){return!e.columns||typeof e.columns!="function"?null:t.genItems(e.columns(o))}):null}return!0},_t=c(498),ea=function(e){if(e.valueType==="divider"){var t;return(0,d.createElement)(_t.Z,(0,l.Z)((0,l.Z)({},(t=e.getFieldProps)===null||t===void 0?void 0:t.call(e)),{},{key:e.key}))}return!0},Wr=c(81468),na=function(e,t){var n=t.action,a=t.formRef,u=t.type,s=t.originItem,o=(0,l.Z)((0,l.Z)({},(0,en.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.name||e.key||e.dataIndex,width:e.width,render:e!=null&&e.render?function(x,h,P){var y,T,b,C;return e==null||(y=e.render)===null||y===void 0?void 0:y.call(e,x,h,P,n==null?void 0:n.current,(0,l.Z)((0,l.Z)({type:u},e),{},{key:(T=e.key)===null||T===void 0?void 0:T.toString(),formItemProps:(b=e.getFormItemProps)===null||b===void 0?void 0:b.call(e),fieldProps:(C=e.getFieldProps)===null||C===void 0?void 0:C.call(e)}))}:void 0}),f=function(){return(0,i.jsx)(Wr.Z,(0,l.Z)((0,l.Z)({},o),{},{ignoreFormItem:!0}))},p=e!=null&&e.renderFormItem?function(x,h){var P,y,T,b,C=(0,m.Y)((0,l.Z)((0,l.Z)({},h),{},{onChange:void 0}));return e==null||(P=e.renderFormItem)===null||P===void 0?void 0:P.call(e,(0,l.Z)((0,l.Z)({type:u},e),{},{key:(y=e.key)===null||y===void 0?void 0:y.toString(),formItemProps:(T=e.getFormItemProps)===null||T===void 0?void 0:T.call(e),fieldProps:(b=e.getFieldProps)===null||b===void 0?void 0:b.call(e),originProps:s}),(0,l.Z)((0,l.Z)({},C),{},{defaultRender:f,type:u}),a.current)}:void 0,Z=function(){if(e!=null&&e.renderFormItem){var h=p==null?void 0:p(null,{});if(!h||e.ignoreFormItem)return h}return(0,d.createElement)(Wr.Z,(0,l.Z)((0,l.Z)({},o),{},{key:[e.key,e.index||0].join("-"),renderFormItem:p}))};return e.dependencies?(0,i.jsx)(ct.Z,{name:e.dependencies||[],children:Z},e.key):Z()},ra=c(15710),ta=function(e,t){var n=t.genItems;if(e.valueType==="formList"&&e.dataIndex){var a,u;return!e.columns||!Array.isArray(e.columns)?null:(0,d.createElement)(ra.u,(0,l.Z)((0,l.Z)({},(a=e.getFormItemProps)===null||a===void 0?void 0:a.call(e)),{},{key:e.key,name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(u=e.getFieldProps)===null||u===void 0?void 0:u.call(e)),n(e.columns))}return!0},aa=c(35122),la=function(e,t){var n=t.genItems;if(e.valueType==="formSet"&&e.dataIndex){var a,u;return!e.columns||!Array.isArray(e.columns)?null:(0,d.createElement)(aa.Z,(0,l.Z)((0,l.Z)({},(a=e.getFormItemProps)===null||a===void 0?void 0:a.call(e)),{},{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(u=e.getFieldProps)===null||u===void 0?void 0:u.call(e)),n(e.columns))}return!0},oa=$r.A.Group,ia=function(e,t){var n=t.genItems;if(e.valueType==="group"){var a;return!e.columns||!Array.isArray(e.columns)?null:(0,i.jsx)(oa,(0,l.Z)((0,l.Z)({label:e.label,colProps:e.colProps,rowProps:e.rowProps},(a=e.getFieldProps)===null||a===void 0?void 0:a.call(e)),{},{children:n(e.columns)}),e.key)}return!0},sa=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},vt=[sa,ia,ta,la,ea,qt],ua=function(e,t){for(var n=0;n span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}),a)),u};function Wa(r){return(0,Ze.Xj)("ColumnSetting",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[$a(t)]})}var Va=["key","dataIndex","children"],Ua=["disabled"],Qr=function(e){var t=e.title,n=e.show,a=e.children,u=e.columnKey,s=e.fixed,o=(0,d.useContext)(ne),f=o.columnsMap,p=o.setColumnsMap;return n?(0,i.jsx)(Ir.Z,{title:t,children:(0,i.jsx)("span",{onClick:function(x){x.stopPropagation(),x.preventDefault();var h=f[u]||{},P=(0,l.Z)((0,l.Z)({},f),{},(0,v.Z)({},u,(0,l.Z)((0,l.Z)({},h),{},{fixed:s})));p(P)},children:a})}):null},Ha=function(e){var t=e.columnKey,n=e.isLeaf,a=e.title,u=e.className,s=e.fixed,o=e.showListItemOption,f=(0,je.YB)(),p=(0,d.useContext)(je.L_),Z=p.hashId,x=(0,i.jsxs)("span",{className:"".concat(u,"-list-item-option ").concat(Z).trim(),children:[(0,i.jsx)(Qr,{columnKey:t,fixed:"left",title:f.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:s!=="left",children:(0,i.jsx)(Ia,{})}),(0,i.jsx)(Qr,{columnKey:t,fixed:void 0,title:f.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!s,children:(0,i.jsx)(ja,{})}),(0,i.jsx)(Qr,{columnKey:t,fixed:"right",title:f.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:s!=="right",children:(0,i.jsx)(La,{})})]});return(0,i.jsxs)("span",{className:"".concat(u,"-list-item ").concat(Z).trim(),children:[(0,i.jsx)("div",{className:"".concat(u,"-list-item-title ").concat(Z).trim(),children:a}),o&&!n?x:null]},t)},qr=function(e){var t,n,a,u=e.list,s=e.draggable,o=e.checkable,f=e.showListItemOption,p=e.className,Z=e.showTitle,x=Z===void 0?!0:Z,h=e.title,P=e.listHeight,y=P===void 0?280:P,T=(0,d.useContext)(je.L_),b=T.hashId,C=(0,d.useContext)(ne),R=C.columnsMap,$=C.setColumnsMap,B=C.sortKeyColumns,ue=C.setSortKeyColumns,_=u&&u.length>0,w=(0,d.useMemo)(function(){if(!_)return{};var I=[],S=new Map,O=function E(g,F){return g.map(function(j){var W,re=j.key,he=j.dataIndex,U=j.children,se=(0,G.Z)(j,Va),Re=dn(re,[F==null?void 0:F.columnKey,se.index].filter(Boolean).join("-")),fe=R[Re||"null"]||{show:!0};fe.show!==!1&&!U&&I.push(Re);var k=(0,l.Z)((0,l.Z)({key:Re},(0,en.Z)(se,["className"])),{},{selectable:!1,disabled:fe.disable===!0,disableCheckbox:typeof fe.disable=="boolean"?fe.disable:(W=fe.disable)===null||W===void 0?void 0:W.checkbox,isLeaf:F?!0:void 0});if(U){var V;k.children=E(U,(0,l.Z)((0,l.Z)({},fe),{},{columnKey:Re})),(V=k.children)!==null&&V!==void 0&&V.every(function(K){return I==null?void 0:I.includes(K.key)})&&I.push(Re)}return S.set(re,k),k})};return{list:O(u),keys:I,map:S}},[R,u,_]),D=(0,cr.J)(function(I,S,O){var E=(0,l.Z)({},R),g=(0,Rn.Z)(B),F=g.findIndex(function(he){return he===I}),j=g.findIndex(function(he){return he===S}),W=O>=F;if(!(F<0)){var re=g[F];g.splice(F,1),O===0?g.unshift(re):g.splice(W?j:j+1,0,re),g.forEach(function(he,U){E[he]=(0,l.Z)((0,l.Z)({},E[he]||{}),{},{order:U})}),$(E),ue(g)}}),N=(0,cr.J)(function(I){var S=(0,l.Z)({},R),O=function E(g){var F,j=(0,l.Z)({},S[g]);if(j.show=I.checked,(F=w.map)!==null&&F!==void 0&&(F=F.get(g))!==null&&F!==void 0&&F.children){var W;(W=w.map.get(g))===null||W===void 0||(W=W.children)===null||W===void 0||W.forEach(function(re){return E(re.key)})}S[g]=j};O(I.node.key),$((0,l.Z)({},S))});if(!_)return null;var M=(0,i.jsx)(Da.Z,{itemHeight:24,draggable:s&&!!((t=w.list)!==null&&t!==void 0&&t.length)&&((n=w.list)===null||n===void 0?void 0:n.length)>1,checkable:o,onDrop:function(S){var O=S.node.key,E=S.dragNode.key,g=S.dropPosition,F=S.dropToGap,j=g===-1||!F?g+1:g;D(E,O,j)},blockNode:!0,onCheck:function(S,O){return N(O)},checkedKeys:w.keys,showLine:!1,titleRender:function(S){var O=(0,l.Z)((0,l.Z)({},S),{},{children:void 0});return O.title?(0,i.jsx)(Ha,(0,l.Z)((0,l.Z)({className:p},O),{},{showListItemOption:f,title:(0,vr.h)(O.title,O),columnKey:O.key})):null},height:y,treeData:(a=w.list)===null||a===void 0?void 0:a.map(function(I){var S=I.disabled,O=(0,G.Z)(I,Ua);return O})});return(0,i.jsxs)(i.Fragment,{children:[x&&(0,i.jsx)("span",{className:"".concat(p,"-list-title ").concat(b).trim(),children:h}),M]})},ka=function(e){var t=e.localColumns,n=e.className,a=e.draggable,u=e.checkable,s=e.showListItemOption,o=e.listsHeight,f=(0,d.useContext)(je.L_),p=f.hashId,Z=[],x=[],h=[],P=(0,je.YB)();t.forEach(function(b){if(!b.hideInSetting){var C=b.fixed;if(C==="left"){x.push(b);return}if(C==="right"){Z.push(b);return}h.push(b)}});var y=Z&&Z.length>0,T=x&&x.length>0;return(0,i.jsxs)("div",{className:ve()("".concat(n,"-list"),p,(0,v.Z)({},"".concat(n,"-list-group"),y||T)),children:[(0,i.jsx)(qr,{title:P.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:x,draggable:a,checkable:u,showListItemOption:s,className:n,listHeight:o}),(0,i.jsx)(qr,{list:h,draggable:a,checkable:u,showListItemOption:s,title:P.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:T||y,className:n,listHeight:o}),(0,i.jsx)(qr,{title:P.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:Z,draggable:a,checkable:u,showListItemOption:s,className:n,listHeight:o})]})};function Ga(r){var e,t,n,a,u=(0,d.useRef)(null),s=(0,d.useContext)(ne),o=r.columns,f=r.checkedReset,p=f===void 0?!0:f,Z=s.columnsMap,x=s.setColumnsMap,h=s.clearPersistenceStorage;(0,d.useEffect)(function(){var N;if((N=s.propsRef.current)!==null&&N!==void 0&&(N=N.columnsState)!==null&&N!==void 0&&N.value){var M;u.current=JSON.parse(JSON.stringify(((M=s.propsRef.current)===null||M===void 0||(M=M.columnsState)===null||M===void 0?void 0:M.value)||{}))}},[]);var P=(0,cr.J)(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,M={},I=function S(O){O.forEach(function(E){var g=E.key,F=E.fixed,j=E.index,W=E.children,re=E.disable,he=dn(g,j);if(he){var U,se;M[he]={show:re?(U=Z[he])===null||U===void 0?void 0:U.show:N,fixed:F,disable:re,order:(se=Z[he])===null||se===void 0?void 0:se.order}}W&&S(W)})};I(o),x(M)}),y=(0,cr.J)(function(N){N.target.checked?P():P(!1)}),T=(0,cr.J)(function(){var N;h==null||h(),x(((N=s.propsRef.current)===null||N===void 0||(N=N.columnsState)===null||N===void 0?void 0:N.defaultValue)||u.current||s.defaultColumnKeyMap)}),b=Object.values(Z).filter(function(N){return!N||N.show===!1}),C=b.length>0&&b.length!==o.length,R=(0,je.YB)(),$=(0,d.useContext)(ln.ZP.ConfigContext),B=$.getPrefixCls,ue=B("pro-table-column-setting"),_=Wa(ue),w=_.wrapSSR,D=_.hashId;return w((0,i.jsx)(Aa.Z,{arrow:!1,title:(0,i.jsxs)("div",{className:"".concat(ue,"-title ").concat(D).trim(),children:[r.checkable===!1?(0,i.jsx)("div",{}):(0,i.jsx)(za.Z,{indeterminate:C,checked:b.length===0&&b.length!==o.length,onChange:function(M){y(M)},children:R.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),p?(0,i.jsx)("a",{onClick:T,className:"".concat(ue,"-action-rest-button ").concat(D).trim(),children:R.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,r!=null&&r.extra?(0,i.jsx)(le.Z,{size:12,align:"center",children:r.extra}):null]}),overlayClassName:"".concat(ue,"-overlay ").concat(D).trim(),trigger:"click",placement:"bottomRight",content:(0,i.jsx)(ka,{checkable:(e=r.checkable)!==null&&e!==void 0?e:!0,draggable:(t=r.draggable)!==null&&t!==void 0?t:!0,showListItemOption:(n=r.showListItemOption)!==null&&n!==void 0?n:!0,className:ue,localColumns:o,listsHeight:r.listsHeight}),children:r.children||(0,i.jsx)(Ir.Z,{title:R.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(a=r.settingIcon)!==null&&a!==void 0?a:(0,i.jsx)(Ka.Z,{})})}))}var Xa=Ga,_r=c(97340),Ja=c(79714),Ya=c(97034),mt=function(e){var t=(0,_r.n)((0,oe.b)(),"4.24.0")>-1?{menu:e}:{overlay:(0,i.jsx)(Ya.Z,(0,l.Z)({},e))};return(0,m.Y)(t)},gt=c(37741),Qa=function(e){var t=(0,d.useContext)(je.L_),n=t.hashId,a=e.items,u=a===void 0?[]:a,s=e.type,o=s===void 0?"inline":s,f=e.prefixCls,p=e.activeKey,Z=e.defaultActiveKey,x=(0,Ye.Z)(p||Z,{value:p,onChange:e.onChange}),h=(0,te.Z)(x,2),P=h[0],y=h[1];if(u.length<1)return null;var T=u.find(function(C){return C.key===P})||u[0];if(o==="inline")return(0,i.jsx)("div",{className:ve()("".concat(f,"-menu"),"".concat(f,"-inline-menu"),n),children:u.map(function(C,R){return(0,i.jsx)("div",{onClick:function(){y(C.key)},className:ve()("".concat(f,"-inline-menu-item"),T.key===C.key?"".concat(f,"-inline-menu-item-active"):void 0,n),children:C.label},C.key||R)})});if(o==="tab")return(0,i.jsx)(Me.Z,{items:u.map(function(C){var R;return(0,l.Z)((0,l.Z)({},C),{},{key:(R=C.key)===null||R===void 0?void 0:R.toString()})}),activeKey:T.key,onTabClick:function(R){return y(R)},children:(0,_r.n)(tn.Z,"4.23.0")<0?u==null?void 0:u.map(function(C,R){return(0,d.createElement)(Me.Z.TabPane,(0,l.Z)((0,l.Z)({},C),{},{key:C.key||R,tab:C.label}))}):null});var b=mt({selectedKeys:[T.key],onClick:function(R){y(R.key)},items:u.map(function(C,R){return{key:C.key||R,disabled:C.disabled,label:C.label}})});return(0,i.jsx)("div",{className:ve()("".concat(f,"-menu"),"".concat(f,"-dropdownmenu")),children:(0,i.jsx)(gt.Z,(0,l.Z)((0,l.Z)({trigger:["click"]},b),{},{children:(0,i.jsxs)(le.Z,{className:"".concat(f,"-dropdownmenu-label"),children:[T.label,(0,i.jsx)(Yr.Z,{})]})}))})},qa=Qa,_a=function(e){var t,n;return(0,v.Z)({},e.componentCls,(n={lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":(t={display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)",flex:1},(0,v.Z)(t,"".concat(e.antCls,"-tabs"),{width:"100%"}),(0,v.Z)(t,"&-has-tabs",{overflow:"hidden"}),t),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":(0,v.Z)({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},(0,v.Z)(n,"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),(0,v.Z)(n,"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),(0,v.Z)(n,"@media (max-width: 768px)",(0,v.Z)({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})),n))};function el(r){return(0,Ze.Xj)("ProTableListToolBar",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[_a(t)]})}function nl(r){if(d.isValidElement(r))return r;if(r){var e=r,t=e.icon,n=e.tooltip,a=e.onClick,u=e.key;return t&&n?(0,i.jsx)(Ir.Z,{title:n,children:(0,i.jsx)("span",{onClick:function(){a&&a(u)},children:t},u)}):t}return null}var rl=function(e){var t,n=e.prefixCls,a=e.tabs,u=e.multipleLine,s=e.filtersNode;return u?(0,i.jsx)("div",{className:"".concat(n,"-extra-line"),children:a!=null&&a.items&&a!==null&&a!==void 0&&a.items.length?(0,i.jsx)(Me.Z,{style:{width:"100%"},defaultActiveKey:a.defaultActiveKey,activeKey:a.activeKey,items:a.items.map(function(o,f){var p;return(0,l.Z)((0,l.Z)({label:o.tab},o),{},{key:((p=o.key)===null||p===void 0?void 0:p.toString())||(f==null?void 0:f.toString())})}),onChange:a.onChange,tabBarExtraContent:s,children:(t=a.items)===null||t===void 0?void 0:t.map(function(o,f){return(0,_r.n)(tn.Z,"4.23.0")<0?(0,d.createElement)(Me.Z.TabPane,(0,l.Z)((0,l.Z)({},o),{},{key:o.key||f,tab:o.tab})):null})}):s}):null},tl=function(e){var t=e.prefixCls,n=e.title,a=e.subTitle,u=e.tooltip,s=e.className,o=e.style,f=e.search,p=e.onSearch,Z=e.multipleLine,x=Z===void 0?!1:Z,h=e.filter,P=e.actions,y=P===void 0?[]:P,T=e.settings,b=T===void 0?[]:T,C=e.tabs,R=e.menu,$=(0,d.useContext)(ln.ZP.ConfigContext),B=$.getPrefixCls,ue=Ze.Ow.useToken(),_=ue.token,w=B("pro-table-list-toolbar",t),D=el(w),N=D.wrapSSR,M=D.hashId,I=(0,je.YB)(),S=(0,d.useState)(!1),O=(0,te.Z)(S,2),E=O[0],g=O[1],F=I.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),j=(0,d.useMemo)(function(){return f?d.isValidElement(f)?f:(0,i.jsx)(Ja.Z.Search,(0,l.Z)((0,l.Z)({style:{width:200},placeholder:F},f),{},{onSearch:(0,J.Z)((0,X.Z)().mark(function V(){var K,Y,ce,Te,Fe,_e,ke=arguments;return(0,X.Z)().wrap(function(xn){for(;;)switch(xn.prev=xn.next){case 0:for(ce=ke.length,Te=new Array(ce),Fe=0;Fea":{fontSize:e.fontSize}}),(0,v.Z)(a,"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),(0,v.Z)(a,"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),(0,v.Z)({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),(0,v.Z)(a,"& &-search",(n={marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},(0,v.Z)(n,"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),(0,v.Z)(n,"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),(0,v.Z)(n,"&-form-option",(t={},(0,v.Z)(t,"".concat(e.antCls,"-form-item"),{}),(0,v.Z)(t,"".concat(e.antCls,"-form-item-label"),{}),(0,v.Z)(t,"".concat(e.antCls,"-form-item-control-input"),{}),t)),(0,v.Z)(n,"@media (max-width: 575px)",(0,v.Z)({},e.componentCls,(0,v.Z)({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"}))),n)),(0,v.Z)(a,"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}}),a)),(0,v.Z)(u,"@media (max-width: ".concat(e.screenXS,")px"),(0,v.Z)({},e.componentCls,(0,v.Z)({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),(0,v.Z)(u,"@media (max-width: 575px)",(0,v.Z)({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}})),u};function Il(r){return(0,Ze.Xj)("ProTable",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[El(t)]})}var et=c(1258),wl=c(45557),Ml=["data","success","total"],Fl=function(e){var t=e.pageInfo;if(t){var n=t.current,a=t.defaultCurrent,u=t.pageSize,s=t.defaultPageSize;return{current:n||a||1,total:0,pageSize:u||s||20}}return{current:1,total:0,pageSize:20}},jl=function(e,t,n){var a,u=(0,d.useRef)(!1),s=(0,d.useRef)(null),o=n||{},f=o.onLoad,p=o.manual,Z=o.polling,x=o.onRequestError,h=o.debounceTime,P=h===void 0?20:h,y=o.effects,T=y===void 0?[]:y,b=(0,d.useRef)(p),C=(0,d.useRef)(),R=(0,Ye.Z)(t,{value:n==null?void 0:n.dataSource,onChange:n==null?void 0:n.onDataSourceChange}),$=(0,te.Z)(R,2),B=$[0],ue=$[1],_=(0,Ye.Z)(!1,{value:(0,Ue.Z)(n==null?void 0:n.loading)==="object"?n==null||(a=n.loading)===null||a===void 0?void 0:a.spinning:n==null?void 0:n.loading,onChange:n==null?void 0:n.onLoadingChange}),w=(0,te.Z)(_,2),D=w[0],N=w[1],M=(0,Ye.Z)(function(){return Fl(n)},{onChange:n==null?void 0:n.onPageInfoChange}),I=(0,te.Z)(M,2),S=I[0],O=I[1],E=(0,cr.J)(function(K){(K.current!==S.current||K.pageSize!==S.pageSize||K.total!==S.total)&&O(K)}),g=(0,Ye.Z)(!1),F=(0,te.Z)(g,2),j=F[0],W=F[1],re=function(Y,ce){(0,Ve.unstable_batchedUpdates)(function(){ue(Y),(S==null?void 0:S.total)!==ce&&E((0,l.Z)((0,l.Z)({},S),{},{total:ce||Y.length}))})},he=(0,et.D)(S==null?void 0:S.current),U=(0,et.D)(S==null?void 0:S.pageSize),se=(0,et.D)(Z),Re=(0,cr.J)(function(){(0,Ve.unstable_batchedUpdates)(function(){N(!1),W(!1)})}),fe=function(){var K=(0,J.Z)((0,X.Z)().mark(function Y(ce){var Te,Fe,_e,ke,Be,xn,Fn,Zn,be,ae,xe,Pe;return(0,X.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(!b.current){L.next=3;break}return b.current=!1,L.abrupt("return");case 3:return ce?W(!0):N(!0),Te=S||{},Fe=Te.pageSize,_e=Te.current,L.prev=5,ke=(n==null?void 0:n.pageInfo)!==!1?{current:_e,pageSize:Fe}:void 0,L.next=9,e==null?void 0:e(ke);case 9:if(L.t0=L.sent,L.t0){L.next=12;break}L.t0={};case 12:if(Be=L.t0,xn=Be.data,Fn=xn===void 0?[]:xn,Zn=Be.success,be=Be.total,ae=be===void 0?0:be,xe=(0,G.Z)(Be,Ml),Zn!==!1){L.next=21;break}return L.abrupt("return",[]);case 21:return Pe=Qe(Fn,[n.postData].filter(function(sr){return sr})),re(Pe,ae),f==null||f(Pe,xe),L.abrupt("return",Pe);case 27:if(L.prev=27,L.t1=L.catch(5),x!==void 0){L.next=31;break}throw new Error(L.t1);case 31:B===void 0&&ue([]),x(L.t1);case 33:return L.prev=33,Re(),L.finish(33);case 36:return L.abrupt("return",[]);case 37:case"end":return L.stop()}},Y,null,[[5,27,33,36]])}));return function(ce){return K.apply(this,arguments)}}(),k=(0,wl.D)(function(){var K=(0,J.Z)((0,X.Z)().mark(function Y(ce){var Te,Fe,_e;return(0,X.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(C.current&&clearTimeout(C.current),e){Be.next=3;break}return Be.abrupt("return");case 3:return Te=new AbortController,s.current=Te,Be.prev=5,Be.next=8,Promise.race([fe(ce),new Promise(function(xn,Fn){var Zn,be;(Zn=s.current)===null||Zn===void 0||(Zn=Zn.signal)===null||Zn===void 0||(be=Zn.addEventListener)===null||be===void 0||be.call(Zn,"abort",function(){Fn("aborted"),k.cancel(),Re()})})]);case 8:if(Fe=Be.sent,!Te.signal.aborted){Be.next=11;break}return Be.abrupt("return");case 11:return _e=(0,vr.h)(Z,Fe),_e&&!u.current&&(C.current=setTimeout(function(){k.run(_e)},Math.max(_e,2e3))),Be.abrupt("return",Fe);case 16:if(Be.prev=16,Be.t0=Be.catch(5),Be.t0!=="aborted"){Be.next=20;break}return Be.abrupt("return");case 20:throw Be.t0;case 21:case"end":return Be.stop()}},Y,null,[[5,16]])}));return function(Y){return K.apply(this,arguments)}}(),P||30),V=function(){var Y;(Y=s.current)===null||Y===void 0||Y.abort(),k.cancel(),Re()};return(0,d.useEffect)(function(){return Z||clearTimeout(C.current),!se&&Z&&k.run(!0),function(){clearTimeout(C.current)}},[Z]),(0,d.useEffect)(function(){return u.current=!1,function(){u.current=!0}},[]),(0,d.useEffect)(function(){var K=S||{},Y=K.current,ce=K.pageSize;(!he||he===Y)&&(!U||U===ce)||n.pageInfo&&B&&(B==null?void 0:B.length)>ce||Y!==void 0&&B&&B.length<=ce&&(V(),k.run(!1))},[S==null?void 0:S.current]),(0,d.useEffect)(function(){U&&(V(),k.run(!1))},[S==null?void 0:S.pageSize]),(0,me.KW)(function(){return V(),k.run(!1),p||(b.current=!1),function(){V()}},[].concat((0,Rn.Z)(T),[p])),{dataSource:B,setDataSource:ue,loading:(0,Ue.Z)(n==null?void 0:n.loading)==="object"?(0,l.Z)((0,l.Z)({},n==null?void 0:n.loading),{},{spinning:D}):D,reload:function(){var K=(0,J.Z)((0,X.Z)().mark(function ce(){return(0,X.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return V(),Fe.abrupt("return",k.run(!1));case 2:case"end":return Fe.stop()}},ce)}));function Y(){return K.apply(this,arguments)}return Y}(),pageInfo:S,pollingLoading:j,reset:function(){var K=(0,J.Z)((0,X.Z)().mark(function ce(){var Te,Fe,_e,ke,Be,xn,Fn,Zn;return(0,X.Z)().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:Te=n||{},Fe=Te.pageInfo,_e=Fe||{},ke=_e.defaultCurrent,Be=ke===void 0?1:ke,xn=_e.defaultPageSize,Fn=xn===void 0?20:xn,Zn={current:Be,total:0,pageSize:Fn},E(Zn);case 4:case"end":return ae.stop()}},ce)}));function Y(){return K.apply(this,arguments)}return Y}(),setPageInfo:function(){var K=(0,J.Z)((0,X.Z)().mark(function ce(Te){return(0,X.Z)().wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:E((0,l.Z)((0,l.Z)({},S),Te));case 1:case"end":return _e.stop()}},ce)}));function Y(ce){return K.apply(this,arguments)}return Y}()}},Nl=jl,Ol=function(e){return function(t,n){var a,u,s=t.fixed,o=t.index,f=n.fixed,p=n.index;if(s==="left"&&f!=="left"||f==="right"&&s!=="right")return-2;if(f==="left"&&s!=="left"||s==="right"&&f!=="right")return 2;var Z=t.key||"".concat(o),x=n.key||"".concat(p);if((a=e[Z])!==null&&a!==void 0&&a.order||(u=e[x])!==null&&u!==void 0&&u.order){var h,P;return(((h=e[Z])===null||h===void 0?void 0:h.order)||0)-(((P=e[x])===null||P===void 0?void 0:P.order)||0)}return(t.index||0)-(n.index||0)}},Bl=c(73142),Ll=function(e){var t={};return Object.keys(e||{}).forEach(function(n){var a;Array.isArray(e[n])&&((a=e[n])===null||a===void 0?void 0:a.length)===0||e[n]!==void 0&&(t[n]=e[n])}),t},Kl=c(78820),Dl=c(13990),nt=c(85540),Al=c(77204),zl=c(30607),rt=c(99371),$l=["children"],Wl=["",null,void 0],pt=function(){for(var e=arguments.length,t=new Array(e),n=0;nke.length?(ke.push(Y),ke):(ke.splice((o==null?void 0:o.current)*(o==null?void 0:o.pageSize)-1,0,Y),ke)}return[].concat((0,Rn.Z)(a.dataSource),[Y])},g=function(){return(0,l.Z)((0,l.Z)({},M),{},{size:p,rowSelection:f===!1?void 0:f,className:t,style:x,columns:S.map(function(k){return k.isExtraColumns?k.extraColumn:k}),loading:a.loading,dataSource:D.newLineRecord?E(a.dataSource):a.dataSource,pagination:o,onChange:function(V,K,Y,ce){var Te;if((Te=M.onChange)===null||Te===void 0||Te.call(M,V,K,Y,ce),O||$((0,m.Y)(K)),Array.isArray(Y)){var Fe=Y.reduce(function(xn,Fn){return(0,l.Z)((0,l.Z)({},xn),{},(0,v.Z)({},"".concat(Fn.field),Fn.order))},{});R((0,m.Y)(Fe))}else{var _e,ke=(_e=Y.column)===null||_e===void 0?void 0:_e.sorter,Be=(ke==null?void 0:ke.toString())===ke;R((0,m.Y)((0,v.Z)({},"".concat(Be?ke:Y.field),Y.order)))}}})},F=(0,d.useMemo)(function(){return r.search===!1&&!r.headerTitle&&r.toolBarRender===!1},[]),j=(0,i.jsx)(mn._p.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:(0,i.jsx)(Se.Z,(0,l.Z)((0,l.Z)({},g()),{},{rowKey:e}))}),W=r.tableViewRender?r.tableViewRender((0,l.Z)((0,l.Z)({},g()),{},{rowSelection:f!==!1?f:void 0}),j):j,re=(0,d.useMemo)(function(){if(r.editable&&!r.name){var fe,k,V;return(0,i.jsxs)(i.Fragment,{children:[h,b,(0,d.createElement)(jr.ZP,(0,l.Z)((0,l.Z)({},(fe=r.editable)===null||fe===void 0?void 0:fe.formProps),{},{formRef:(k=r.editable)===null||k===void 0||(k=k.formProps)===null||k===void 0?void 0:k.formRef,component:!1,form:(V=r.editable)===null||V===void 0?void 0:V.form,onValuesChange:D.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:r.dateFormatter}),W)]})}return(0,i.jsxs)(i.Fragment,{children:[h,b,W]})},[b,r.loading,!!r.editable,W,h]),he=(0,d.useMemo)(function(){return T===!1||F===!0||r.name?{}:h?{paddingBlockStart:0}:h&&o===!1?{paddingBlockStart:0}:{padding:0}},[F,o,r.name,T,h]),U=T===!1||F===!0||r.name?re:(0,i.jsx)(kn,(0,l.Z)((0,l.Z)({ghost:r.ghost,bordered:Ne("table",w),bodyStyle:he},T),{},{children:re})),se=function(){return r.tableRender?r.tableRender(r,U,{toolbar:h||void 0,alert:b||void 0,table:W||void 0}):U},Re=(0,i.jsxs)("div",{className:ve()(_,(0,v.Z)({},"".concat(n,"-polling"),a.pollingLoading)),style:y,ref:I.rootDomRef,children:[ue?null:P,s!=="form"&&r.tableExtraRender&&(0,i.jsx)("div",{className:ve()(_,"".concat(n,"-extra")),children:r.tableExtraRender(r,a.dataSource||[])}),s!=="form"&&se()]});return!B||!(B!=null&&B.fullScreen)?Re:(0,i.jsx)(ln.ZP,{getPopupContainer:function(){return I.rootDomRef.current||document.body},children:Re})}var ql={},_l=function(e){var t,n=e.cardBordered,a=e.request,u=e.className,s=e.params,o=s===void 0?ql:s,f=e.defaultData,p=e.headerTitle,Z=e.postData,x=e.ghost,h=e.pagination,P=e.actionRef,y=e.columns,T=y===void 0?[]:y,b=e.toolBarRender,C=e.optionsRender,R=e.onLoad,$=e.onRequestError,B=e.style,ue=e.cardProps,_=e.tableStyle,w=e.tableClassName,D=e.columnsStateMap,N=e.onColumnsStateChange,M=e.options,I=e.search,S=e.name,O=e.onLoadingChange,E=e.rowSelection,g=E===void 0?!1:E,F=e.beforeSearchSubmit,j=e.tableAlertRender,W=e.defaultClassName,re=e.formRef,he=e.type,U=he===void 0?"table":he,se=e.columnEmptyText,Re=se===void 0?"-":se,fe=e.toolbar,k=e.rowKey,V=e.manualRequest,K=e.polling,Y=e.tooltip,ce=e.revalidateOnFocus,Te=ce===void 0?!1:ce,Fe=e.searchFormRender,_e=(0,G.Z)(e,Yl),ke=Il(e.defaultClassName),Be=ke.wrapSSR,xn=ke.hashId,Fn=ve()(W,u,xn),Zn=(0,d.useRef)(),be=(0,d.useRef)(),ae=re||be;(0,d.useImperativeHandle)(P,function(){return Zn.current});var xe=(0,Ye.Z)(g?(g==null?void 0:g.defaultSelectedRowKeys)||[]:void 0,{value:g?g.selectedRowKeys:void 0}),Pe=(0,te.Z)(xe,2),Sn=Pe[0],L=Pe[1],sr=(0,Ye.Z)(function(){if(!(V||I!==!1))return{}}),Gn=(0,te.Z)(sr,2),_n=Gn[0],wr=Gn[1],Vr=(0,Ye.Z)({}),Or=(0,te.Z)(Vr,2),Rr=Or[0],Mr=Or[1],Dr=(0,Ye.Z)({}),Ur=(0,te.Z)(Dr,2),Br=Ur[0],Ar=Ur[1];(0,d.useEffect)(function(){var H=Tn(T),Q=H.sort,Le=H.filter;Mr(Le),Ar(Q)},[]);var Hr=(0,je.YB)(),kr=(0,Ue.Z)(h)==="object"?h:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},hn=(0,d.useContext)(ne),zn=(0,d.useMemo)(function(){if(a)return function(){var H=(0,J.Z)((0,X.Z)().mark(function Q(Le){var pn,ur;return(0,X.Z)().wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return pn=(0,l.Z)((0,l.Z)((0,l.Z)({},Le||{}),_n),o),delete pn._timestamp,gr.next=4,a(pn,Br,Rr);case 4:return ur=gr.sent,gr.abrupt("return",ur);case 6:case"end":return gr.stop()}},Q)}));return function(Q){return H.apply(this,arguments)}}()},[_n,o,Rr,Br,a]),pe=Nl(zn,f,{pageInfo:h===!1?!1:kr,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:R,onLoadingChange:O,onRequestError:$,postData:Z,revalidateOnFocus:Te,manual:_n===void 0,polling:K,effects:[(0,A.ZP)(o),(0,A.ZP)(_n),(0,A.ZP)(Rr),(0,A.ZP)(Br)],debounceTime:e.debounceTime,onPageInfoChange:function(Q){var Le,pn;!h||!zn||(h==null||(Le=h.onChange)===null||Le===void 0||Le.call(h,Q.current,Q.pageSize),h==null||(pn=h.onShowSizeChange)===null||pn===void 0||pn.call(h,Q.current,Q.pageSize))}});(0,d.useEffect)(function(){var H;if(!(e.manualRequest||!e.request||!Te||(H=e.form)!==null&&H!==void 0&&H.ignoreRules)){var Q=function(){document.visibilityState==="visible"&&pe.reload()};return document.addEventListener("visibilitychange",Q),function(){return document.removeEventListener("visibilitychange",Q)}}},[]);var En=d.useRef(new Map),Xn=d.useMemo(function(){return typeof k=="function"?k:function(H,Q){var Le;return Q===-1?H==null?void 0:H[k]:e.name?Q==null?void 0:Q.toString():(Le=H==null?void 0:H[k])!==null&&Le!==void 0?Le:Q==null?void 0:Q.toString()}},[e.name,k]);(0,d.useMemo)(function(){var H;if((H=pe.dataSource)!==null&&H!==void 0&&H.length){var Q=pe.dataSource.map(function(Le){var pn=Xn(Le,-1);return En.current.set(pn,Le),pn});return Q}return[]},[pe.dataSource,Xn]);var er=(0,d.useMemo)(function(){var H=h===!1?!1:(0,l.Z)({},h),Q=(0,l.Z)((0,l.Z)({},pe.pageInfo),{},{setPageInfo:function(pn){var ur=pn.pageSize,Sr=pn.current,gr=pe.pageInfo;if(ur===gr.pageSize||gr.current===1){pe.setPageInfo({pageSize:ur,current:Sr});return}a&&pe.setDataSource([]),pe.setPageInfo({pageSize:ur,current:U==="list"?Sr:1})}});return a&&H&&(delete H.onChange,delete H.onShowSizeChange),cn(H,Q,Hr)},[h,pe,Hr]);(0,me.KW)(function(){var H;e.request&&o&&pe.dataSource&&(pe==null||(H=pe.pageInfo)===null||H===void 0?void 0:H.current)!==1&&pe.setPageInfo({current:1})},[o]),hn.setPrefixName(e.name);var mr=(0,d.useCallback)(function(){g&&g.onChange&&g.onChange([],[],{type:"none"}),L([])},[g,L]);hn.propsRef.current=e;var nr=(0,Zr.CB)((0,l.Z)((0,l.Z)({},e.editable),{},{tableName:e.name,getRowKey:Xn,childrenColumnName:((t=e.expandable)===null||t===void 0?void 0:t.childrenColumnName)||"children",dataSource:pe.dataSource||[],setDataSource:function(Q){var Le,pn;(Le=e.editable)===null||Le===void 0||(pn=Le.onValuesChange)===null||pn===void 0||pn.call(Le,void 0,Q),pe.setDataSource(Q)}})),Fr=Ze.Ow===null||Ze.Ow===void 0?void 0:Ze.Ow.useToken(),tt=Fr.token;Ae(Zn,pe,{fullScreen:function(){var Q;if(!(!((Q=hn.rootDomRef)!==null&&Q!==void 0&&Q.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var Le;(Le=hn.rootDomRef)===null||Le===void 0||Le.current.requestFullscreen()}},onCleanSelected:function(){mr()},resetAll:function(){var Q;mr(),Mr({}),Ar({}),hn.setKeyWords(void 0),pe.setPageInfo({current:1}),ae==null||(Q=ae.current)===null||Q===void 0||Q.resetFields(),wr({})},editableUtils:nr}),hn.setAction(Zn.current);var Pr=(0,d.useMemo)(function(){var H;return Ct({columns:T,counter:hn,columnEmptyText:Re,type:U,marginSM:tt.marginSM,editableUtils:nr,rowKey:k,childrenColumnName:(H=e.expandable)===null||H===void 0?void 0:H.childrenColumnName}).sort(Ol(hn.columnsMap))},[T,hn==null?void 0:hn.sortKeyColumns,hn==null?void 0:hn.columnsMap,Re,U,nr.editableKeys&&nr.editableKeys.join(",")]);(0,me.Au)(function(){if(Pr&&Pr.length>0){var H=Pr.map(function(Q){return dn(Q.key,Q.index)});hn.setSortKeyColumns(H)}},[Pr],["render","renderFormItem"],100),(0,me.KW)(function(){var H=pe.pageInfo,Q=h||{},Le=Q.current,pn=Le===void 0?H==null?void 0:H.current:Le,ur=Q.pageSize,Sr=ur===void 0?H==null?void 0:H.pageSize:ur;h&&(pn||Sr)&&(Sr!==(H==null?void 0:H.pageSize)||pn!==(H==null?void 0:H.current))&&pe.setPageInfo({pageSize:Sr||H.pageSize,current:pn||H.current})},[h&&h.pageSize,h&&h.current]);var no=(0,l.Z)((0,l.Z)({selectedRowKeys:Sn},g),{},{onChange:function(Q,Le,pn){g&&g.onChange&&g.onChange(Q,Le,pn),L(Q)}}),at=I!==!1&&(I==null?void 0:I.filterType)==="light",St=(0,d.useCallback)(function(H){if(M&&M.search){var Q,Le,pn=M.search===!0?{}:M.search,ur=pn.name,Sr=ur===void 0?"keyword":ur,gr=(Q=M.search)===null||Q===void 0||(Le=Q.onSearch)===null||Le===void 0?void 0:Le.call(Q,hn.keyWords);if(gr!==!1){wr((0,l.Z)((0,l.Z)({},H),{},(0,v.Z)({},Sr,hn.keyWords)));return}}wr(H)},[hn.keyWords,M,wr]),bt=(0,d.useMemo)(function(){if((0,Ue.Z)(pe.loading)==="object"){var H;return((H=pe.loading)===null||H===void 0?void 0:H.spinning)||!1}return pe.loading},[pe.loading]),xt=(0,d.useMemo)(function(){var H=I===!1&&U!=="form"?null:(0,i.jsx)(Za,{pagination:er,beforeSearchSubmit:F,action:Zn,columns:T,onFormSearchSubmit:function(Le){St(Le)},ghost:x,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!bt,manualRequest:V,search:I,form:e.form,formRef:ae,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return Fe&&H?(0,i.jsx)(i.Fragment,{children:Fe(e,H)}):H},[F,ae,x,bt,V,St,er,e,T,I,Fe,U]),Rt=(0,d.useMemo)(function(){return Sn==null?void 0:Sn.map(function(H){var Q;return(Q=En.current)===null||Q===void 0?void 0:Q.get(H)})},[Sn]),ro=b===!1?null:(0,i.jsx)(Pl,{headerTitle:p,hideToolbar:M===!1&&!p&&!b&&!fe&&!at,selectedRows:Rt,selectedRowKeys:Sn,tableColumn:Pr,tooltip:Y,toolbar:fe,onFormSearchSubmit:function(Q){wr((0,l.Z)((0,l.Z)({},_n),Q))},searchNode:at?xt:null,options:M,optionsRender:C,actionRef:Zn,toolBarRender:b}),to=g!==!1?(0,i.jsx)(Mn,{selectedRowKeys:Sn,selectedRows:Rt,onCleanSelected:mr,alertOptionRender:_e.tableAlertOptionRender,alertInfoRender:j,alwaysShowAlert:g==null?void 0:g.alwaysShowAlert}):null;return Be((0,i.jsx)(Ql,(0,l.Z)((0,l.Z)({},e),{},{name:S,defaultClassName:W,size:hn.tableSize,onSizeChange:hn.setTableSize,pagination:er,searchNode:xt,rowSelection:g!==!1?no:void 0,className:Fn,tableColumn:Pr,isLightFilter:at,action:pe,alertDom:to,toolbarDom:ro,onSortChange:function(Q){Br!==Q&&Ar(Q!=null?Q:{})},onFilterChange:function(Q){Q!==Rr&&Mr(Q)},editableUtils:nr,getRowKey:Xn})))},Zt=function(e){var t=(0,d.useContext)(ln.ZP.ConfigContext),n=t.getPrefixCls,a=e.ErrorBoundary===!1?d.Fragment:e.ErrorBoundary||q.S;return(0,i.jsx)(qe,{initValue:e,children:(0,i.jsx)(je._Y,{needDeps:!0,children:(0,i.jsx)(a,{children:(0,i.jsx)(_l,(0,l.Z)({defaultClassName:"".concat(n("pro-table"))},e))})})})};Zt.Summary=Se.Z.Summary;var eo=Zt},4218:function(pr,Bn,c){c.d(Bn,{S:function(){return vn}});var X=c(30114),J=c(51392),Ue=c(13547),te=c(61926),v=c(92596),Rn=c(6346),l=c(94154),G=c(79685),Ge=c(63342),vn=function(ln){(0,te.Z)(Me,ln);var Dn=(0,v.Z)(Me);function Me(){var ye;(0,X.Z)(this,Me);for(var ve=arguments.length,en=new Array(ve),Ye=0;Ye1&&Nn.pop();try{return JSON.stringify((0,Ge.Z)(Wn,Nn))!==JSON.stringify((0,Ge.Z)(jn,Nn))}catch(tn){return!0}},_internalItemRender:{mark:"pro_table_render",render:function(Wn,jn){return(0,ve.jsx)(Ze,(0,J.Z)({inputProps:Wn,popoverProps:An},jn))}}},Ke),{},{style:(0,J.Z)((0,J.Z)({},d),Ke==null?void 0:Ke.style),children:ee}))},Un=function(de){var nn=de.errorType,rn=de.rules,ee=de.name,An=de.popoverProps,Ke=de.children,$n=(0,X.Z)(de,Ye);return ee&&rn!==null&&rn!==void 0&&rn.length&&nn==="popover"?(0,ve.jsx)(He,(0,J.Z)((0,J.Z)({name:ee,rules:rn,popoverProps:An},$n),{},{children:Ke})):(0,ve.jsx)(G.Z.Item,(0,J.Z)((0,J.Z)({rules:rn,shouldUpdate:ee?function(Wn,jn){if(Wn===jn)return!1;var Nn=[ee].flat(1);Nn.length>1&&Nn.pop();try{return JSON.stringify((0,Ge.Z)(Wn,Nn))!==JSON.stringify((0,Ge.Z)(jn,Nn))}catch(tn){return!0}}:void 0},$n),{},{style:(0,J.Z)((0,J.Z)({},d),$n.style),name:ee,children:Ke}))}},78820:function(pr,Bn,c){c.d(Bn,{X:function(){return Rn}});var X=c(25480),J=c(79685),Ue=c(63342),te=function(G){var Ge;return!!(G!=null&&(Ge=G.valueType)!==null&&Ge!==void 0&&Ge.toString().startsWith("date")||(G==null?void 0:G.valueType)==="select"||G!=null&&G.valueEnum)},v=function(G){var Ge;return((Ge=G.ellipsis)===null||Ge===void 0?void 0:Ge.showTitle)===!1?!1:G.ellipsis},Rn=function(G,Ge,vn){if(Ge.copyable||Ge.ellipsis){var ln=Ge.copyable&&vn?{text:vn,tooltips:["",""]}:void 0,Dn=te(Ge),Me=v(Ge)&&vn?{tooltip:(Ge==null?void 0:Ge.tooltip)!==!1&&Dn?(0,Ue.jsx)("div",{className:"pro-table-tooltip-text",children:G}):vn}:!1;return(0,Ue.jsx)(X.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:ln,ellipsis:Me,children:G})}return G}},99371:function(pr,Bn,c){c.d(Bn,{w:function(){return J}});var X=c(92879),J=function(te,v,Rn){return v===void 0?te:(0,X.h)(te,v,Rn)}},28826:function(pr,Bn,c){c.d(Bn,{aX:function(){return je},cx:function(){return sn},sN:function(){return Ce},CB:function(){return Zr}});var X=c(57963),J=c(7623),Ue=c(1724),te=c(64632),v=c(89342),Rn=c(6346),l=c(98787),G=c(93264),Ge=c(63195),vn=c(75527),ln=c(56671),Dn=c(68852),Me=c(73952),ye=c(79685),ve=c(83975),en=c(68591),Ye=c.n(en),d=c(46501),Ze=c(66214),He=c(3139),Un=c(23196),i=c(99248),de=c(8262),nn=c(30761),rn=c(48120),ee=c(10951),An=c(89756),Ke=c(78436),$n=c(96486),Wn=c(27796),jn=c(44244);const Nn=m=>{const{componentCls:A,iconCls:me,antCls:q,zIndexPopup:Se,colorText:Pn,colorWarning:cn,marginXXS:Ae,marginXS:Qe,fontSize:Ne,fontWeightStrong:yn,colorTextHeading:dn}=m;return{[A]:{zIndex:Se,[`&${q}-popover`]:{fontSize:Ne},[`${A}-message`]:{marginBottom:Qe,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${A}-message-icon ${me}`]:{color:cn,fontSize:Ne,lineHeight:1,marginInlineEnd:Qe},[`${A}-title`]:{fontWeight:yn,color:dn,"&:only-child":{fontWeight:"normal"}},[`${A}-description`]:{marginTop:Ae,color:Pn}},[`${A}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:Qe}}}}},tn=m=>{const{zIndexPopupBase:A}=m;return{zIndexPopup:A+60}};var Jn=(0,jn.I$)("Popconfirm",m=>Nn(m),tn,{resetStyle:!1}),Yn=function(m,A){var me={};for(var q in m)Object.prototype.hasOwnProperty.call(m,q)&&A.indexOf(q)<0&&(me[q]=m[q]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,q=Object.getOwnPropertySymbols(m);Se{const{prefixCls:A,okButtonProps:me,cancelButtonProps:q,title:Se,description:Pn,cancelText:cn,okText:Ae,okType:Qe="primary",icon:Ne=ye.createElement(ve.Z,null),showCancel:yn=!0,close:dn,onConfirm:On,onCancel:Tn,onPopupClick:an}=m,{getPrefixCls:ne}=ye.useContext(i.E_),[qe]=(0,Ke.Z)("Popconfirm",$n.Z.Popconfirm),le=(0,rn.Z)(Se),De=(0,rn.Z)(Pn);return ye.createElement("div",{className:`${A}-inner-content`,onClick:an},ye.createElement("div",{className:`${A}-message`},Ne&&ye.createElement("span",{className:`${A}-message-icon`},Ne),ye.createElement("div",{className:`${A}-message-text`},le&&ye.createElement("div",{className:Ye()(`${A}-title`)},le),De&&ye.createElement("div",{className:`${A}-description`},De))),ye.createElement("div",{className:`${A}-buttons`},yn&&ye.createElement(ee.ZP,Object.assign({onClick:Tn,size:"small"},q),cn!=null?cn:qe==null?void 0:qe.cancelText),ye.createElement(nn.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,An.nx)(Qe)),me),actionFn:On,close:dn,prefixCls:ne("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Ae!=null?Ae:qe==null?void 0:qe.okText)))};var Cr=m=>{const{prefixCls:A,placement:me,className:q,style:Se}=m,Pn=Yn(m,["prefixCls","placement","className","style"]),{getPrefixCls:cn}=ye.useContext(i.E_),Ae=cn("popconfirm",A),[Qe]=Jn(Ae);return Qe(ye.createElement(Wn.ZP,{placement:me,className:Ye()(Ae,q),style:Se,content:ye.createElement(hr,Object.assign({prefixCls:Ae},Pn))}))},tr=function(m,A){var me={};for(var q in m)Object.prototype.hasOwnProperty.call(m,q)&&A.indexOf(q)<0&&(me[q]=m[q]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,q=Object.getOwnPropertySymbols(m);Se{var me,q;const{prefixCls:Se,placement:Pn="top",trigger:cn="click",okType:Ae="primary",icon:Qe=ye.createElement(ve.Z,null),children:Ne,overlayClassName:yn,onOpenChange:dn,onVisibleChange:On}=m,Tn=tr(m,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:an}=ye.useContext(i.E_),[ne,qe]=(0,d.Z)(!1,{value:(me=m.open)!==null&&me!==void 0?me:m.visible,defaultValue:(q=m.defaultOpen)!==null&&q!==void 0?q:m.defaultVisible}),le=(gn,Oe)=>{qe(gn,!0),On==null||On(gn),dn==null||dn(gn,Oe)},De=gn=>{le(!1,gn)},Xe=gn=>{var Oe;return(Oe=m.onConfirm)===null||Oe===void 0?void 0:Oe.call(void 0,gn)},We=gn=>{var Oe;le(!1,gn),(Oe=m.onCancel)===null||Oe===void 0||Oe.call(void 0,gn)},Ln=gn=>{gn.keyCode===Ze.Z.ESC&&ne&&le(!1,gn)},Mn=gn=>{const{disabled:Oe=!1}=m;Oe||le(gn)},dr=an("popconfirm",Se),Qn=Ye()(dr,yn),[Vn]=Jn(dr);return Vn(ye.createElement(de.Z,Object.assign({},(0,He.Z)(Tn,["title"]),{trigger:cn,placement:Pn,onOpenChange:Mn,open:ne,ref:A,overlayClassName:Qn,content:ye.createElement(hr,Object.assign({okType:Ae,icon:Qe},m,{prefixCls:dr,close:De,onConfirm:Xe,onCancel:We})),"data-popover-inject":!0}),(0,Un.Tm)(Ne,{onKeyDown:gn=>{var Oe,or;ye.isValidElement(Ne)&&((or=Ne==null?void 0:(Oe=Ne.props).onKeyDown)===null||or===void 0||or.call(Oe,gn)),Ln(gn)}})))});qn._InternalPanelDoNotUseOrYouWillBeFired=Cr;var ar=qn,un=c(3740),In=c(85540),wn=c(11601),bn=c(30765),on=c(5745),Tr=c(45557),lr=c(14434),Er=c(36874),br=c(1258),rr=c(18750),Hn=c(63342),Lr=["map_row_parentKey"],Kr=["map_row_parentKey","map_row_key"],fn=["map_row_key"],$e=function(A){return(Dn.ZP.warn||Dn.ZP.warning)(A)},Ce=function(A){return Array.isArray(A)?A.join(","):A};function sn(m,A){var me,q=m.getRowKey,Se=m.row,Pn=m.data,cn=m.childrenColumnName,Ae=cn===void 0?"children":cn,Qe=(me=Ce(m.key))===null||me===void 0?void 0:me.toString(),Ne=new Map;function yn(On,Tn,an){On.forEach(function(ne,qe){var le=(an||0)*10+qe,De=q(ne,le).toString();ne&&(0,Ge.Z)(ne)==="object"&&Ae in ne&&yn(ne[Ae]||[],De,le);var Xe=(0,G.Z)((0,G.Z)({},ne),{},{map_row_key:De,children:void 0,map_row_parentKey:Tn});delete Xe.children,Tn||delete Xe.map_row_parentKey,Ne.set(De,Xe)})}A==="top"&&Ne.set(Qe,(0,G.Z)((0,G.Z)({},Ne.get(Qe)),Se)),yn(Pn),A==="update"&&Ne.set(Qe,(0,G.Z)((0,G.Z)({},Ne.get(Qe)),Se)),A==="delete"&&Ne.delete(Qe);var dn=function(Tn){var an=new Map,ne=[],qe=function(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Tn.forEach(function(Xe){if(Xe.map_row_parentKey&&!Xe.map_row_key){var We=Xe.map_row_parentKey,Ln=(0,l.Z)(Xe,Lr);if(an.has(We)||an.set(We,[]),De){var Mn;(Mn=an.get(We))===null||Mn===void 0||Mn.push(Ln)}}})};return qe(A==="top"),Tn.forEach(function(le){if(le.map_row_parentKey&&le.map_row_key){var De,Xe=le.map_row_parentKey,We=le.map_row_key,Ln=(0,l.Z)(le,Kr);an.has(We)&&(Ln[Ae]=an.get(We)),an.has(Xe)||an.set(Xe,[]),(De=an.get(Xe))===null||De===void 0||De.push(Ln)}}),qe(A==="update"),Tn.forEach(function(le){if(!le.map_row_parentKey){var De=le.map_row_key,Xe=(0,l.Z)(le,fn);if(De&&an.has(De)){var We=(0,G.Z)((0,G.Z)({},Xe),{},(0,Rn.Z)({},Ae,an.get(De)));ne.push(We);return}ne.push(Xe)}}),ne};return dn(Ne)}function kn(m,A){var me=m.recordKey,q=m.onSave,Se=m.row,Pn=m.children,cn=m.newLineConfig,Ae=m.editorType,Qe=m.tableName,Ne=(0,ye.useContext)(lr.J),yn=Me.Z.useFormInstance(),dn=(0,d.Z)(!1),On=(0,v.Z)(dn,2),Tn=On[0],an=On[1],ne=(0,on.J)((0,te.Z)((0,J.Z)().mark(function qe(){var le,De,Xe,We,Ln,Mn,dr,Qn,Vn;return(0,J.Z)().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.prev=0,De=Ae==="Map",Xe=[Qe,Array.isArray(me)?me[0]:me].map(function(or){return or==null?void 0:or.toString()}).flat(1).filter(Boolean),an(!0),Oe.next=6,yn.validateFields(Xe,{recursive:!0});case 6:return We=(Ne==null||(le=Ne.getFieldFormatValue)===null||le===void 0?void 0:le.call(Ne,Xe))||yn.getFieldValue(Xe),Array.isArray(me)&&me.length>1&&(Ln=(0,Ue.Z)(me),Mn=Ln.slice(1),dr=(0,In.Z)(We,Mn),(0,wn.Z)(We,Mn,dr)),Qn=De?(0,wn.Z)({},Xe,We):We,Oe.next=11,q==null?void 0:q(me,(0,rr.T)({},Se,Qn),Se,cn);case 11:return Vn=Oe.sent,an(!1),Oe.abrupt("return",Vn);case 16:throw Oe.prev=16,Oe.t0=Oe.catch(0),console.log(Oe.t0),an(!1),Oe.t0;case 21:case"end":return Oe.stop()}},qe,null,[[0,16]])})));return(0,ye.useImperativeHandle)(A,function(){return{save:ne}},[ne]),(0,Hn.jsxs)("a",{onClick:function(){var qe=(0,te.Z)((0,J.Z)().mark(function le(De){return(0,J.Z)().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return De.stopPropagation(),De.preventDefault(),We.prev=2,We.next=5,ne();case 5:We.next=9;break;case 7:We.prev=7,We.t0=We.catch(2);case 9:case"end":return We.stop()}},le,null,[[2,7]])}));return function(le){return qe.apply(this,arguments)}}(),children:[Tn?(0,Hn.jsx)(vn.Z,{style:{marginInlineEnd:8}}):null,Pn||"\u4FDD\u5B58"]},"save")}var mn=function(A){var me=A.recordKey,q=A.onDelete,Se=A.row,Pn=A.children,cn=A.deletePopconfirmMessage,Ae=(0,d.Z)(function(){return!1}),Qe=(0,v.Z)(Ae,2),Ne=Qe[0],yn=Qe[1],dn=(0,on.J)((0,te.Z)((0,J.Z)().mark(function On(){var Tn;return(0,J.Z)().wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.prev=0,yn(!0),ne.next=4,q==null?void 0:q(me,Se);case 4:return Tn=ne.sent,yn(!1),ne.abrupt("return",Tn);case 9:return ne.prev=9,ne.t0=ne.catch(0),console.log(ne.t0),yn(!1),ne.abrupt("return",null);case 14:case"end":return ne.stop()}},On,null,[[0,9]])})));return Pn!==!1?(0,Hn.jsx)(ar,{title:cn,onConfirm:function(){return dn()},children:(0,Hn.jsxs)("a",{children:[Ne?(0,Hn.jsx)(vn.Z,{style:{marginInlineEnd:8}}):null,Pn||"\u5220\u9664"]})},"delete"):null},jr=function(A){var me=A.recordKey,q=A.tableName,Se=A.newLineConfig,Pn=A.editorType,cn=A.onCancel,Ae=A.cancelEditable,Qe=A.row,Ne=A.cancelText,yn=(0,ye.useContext)(lr.J),dn=Me.Z.useFormInstance();return(0,Hn.jsx)("a",{onClick:function(){var On=(0,te.Z)((0,J.Z)().mark(function Tn(an){var ne,qe,le,De,Xe,We;return(0,J.Z)().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:return an.stopPropagation(),an.preventDefault(),qe=Pn==="Map",le=[q,me].flat(1).filter(Boolean),De=(yn==null||(ne=yn.getFieldFormatValue)===null||ne===void 0?void 0:ne.call(yn,le))||(dn==null?void 0:dn.getFieldValue(le)),Xe=qe?(0,wn.Z)({},le,De):De,Mn.next=8,cn==null?void 0:cn(me,Xe,Qe,Se);case 8:return We=Mn.sent,Mn.next=11,Ae(me);case 11:return dn.setFieldsValue((0,Rn.Z)({},"".concat(me),qe?(0,In.Z)(Qe,le):Qe)),Mn.abrupt("return",We);case 13:case"end":return Mn.stop()}},Tn)}));return function(Tn){return On.apply(this,arguments)}}(),children:Ne||"\u53D6\u6D88"},"cancel")};function je(m,A){var me=A.recordKey,q=A.newLineConfig,Se=A.saveText,Pn=A.deleteText,cn=(0,ye.forwardRef)(kn),Ae=(0,ye.createRef)();return{save:(0,Hn.jsx)(cn,(0,G.Z)((0,G.Z)({},A),{},{row:m,ref:Ae,children:Se}),"save"+me),saveRef:Ae,delete:(q==null?void 0:q.options.recordKey)!==me?(0,Hn.jsx)(mn,(0,G.Z)((0,G.Z)({},A),{},{row:m,children:Pn}),"delete"+me):void 0,cancel:(0,Hn.jsx)(jr,(0,G.Z)((0,G.Z)({},A),{},{row:m}),"cancel"+me)}}function Zr(m){var A=(0,ye.useState)(void 0),me=(0,v.Z)(A,2),q=me[0],Se=me[1],Pn=function(){var z=new Map,oe=function ge(ie,Je){ie==null||ie.forEach(function(Ve,we){var ze,Ee=Je==null?we.toString():Je+"_"+we.toString();z.set(Ee,Ce(m.getRowKey(Ve,-1))),z.set((ze=Ce(m.getRowKey(Ve,-1)))===null||ze===void 0?void 0:ze.toString(),Ee),m.childrenColumnName&&Ve[m.childrenColumnName]&&ge(Ve[m.childrenColumnName],Ee)})};return oe(m.dataSource),z},cn=(0,ye.useMemo)(function(){return Pn()},[]),Ae=(0,ye.useRef)(cn),Qe=(0,ye.useRef)(void 0);(0,Er.Au)(function(){Ae.current=Pn()},[m.dataSource]),Qe.current=q;var Ne=m.type||"single",yn=(0,un.Z)(m.dataSource,"children",m.getRowKey),dn=(0,v.Z)(yn,1),On=dn[0],Tn=(0,d.Z)([],{value:m.editableKeys,onChange:m.onChange?function(Ie){var z,oe,ge;m==null||(z=m.onChange)===null||z===void 0||z.call(m,(oe=Ie==null?void 0:Ie.filter(function(ie){return ie!==void 0}))!==null&&oe!==void 0?oe:[],(ge=Ie==null?void 0:Ie.map(function(ie){return On(ie)}).filter(function(ie){return ie!==void 0}))!==null&&ge!==void 0?ge:[])}:void 0}),an=(0,v.Z)(Tn,2),ne=an[0],qe=an[1],le=(0,ye.useMemo)(function(){var Ie=Ne==="single"?ne==null?void 0:ne.slice(0,1):ne;return new Set(Ie)},[(ne||[]).join(","),Ne]),De=(0,br.D)(ne),Xe=(0,on.J)(function(Ie){var z,oe,ge,ie,Je=(z=m.getRowKey(Ie,Ie.index))===null||z===void 0||(oe=z.toString)===null||oe===void 0?void 0:oe.call(z),Ve=(ge=m.getRowKey(Ie,-1))===null||ge===void 0||(ie=ge.toString)===null||ie===void 0?void 0:ie.call(ge),we=ne==null?void 0:ne.map(function(Kn){return Kn==null?void 0:Kn.toString()}),ze=(De==null?void 0:De.map(function(Kn){return Kn==null?void 0:Kn.toString()}))||[],Ee=m.tableName&&!!(ze!=null&&ze.includes(Ve))||!!(ze!=null&&ze.includes(Je));return{recordKey:Ve,isEditable:m.tableName&&(we==null?void 0:we.includes(Ve))||(we==null?void 0:we.includes(Je)),preIsEditable:Ee}}),We=(0,on.J)(function(Ie){return le.size>0&&Ne==="single"&&m.onlyOneLineEditorAlertMessage!==!1?($e(m.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(le.add(Ie),qe(Array.from(le)),!0)}),Ln=(0,on.J)(function(){var Ie=(0,te.Z)((0,J.Z)().mark(function z(oe,ge){var ie,Je;return(0,J.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(ie=Ce(oe).toString(),Je=Ae.current.get(ie),!(!le.has(ie)&&Je&&(ge==null||ge)&&m.tableName)){we.next=5;break}return Ln(Je,!1),we.abrupt("return");case 5:return q&&q.options.recordKey===oe&&Se(void 0),le.delete(ie),le.delete(Ce(oe)),qe(Array.from(le)),we.abrupt("return",!0);case 10:case"end":return we.stop()}},z)}));return function(z,oe){return Ie.apply(this,arguments)}}()),Mn=(0,Tr.D)((0,te.Z)((0,J.Z)().mark(function Ie(){var z,oe,ge,ie,Je=arguments;return(0,J.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:for(oe=Je.length,ge=new Array(oe),ie=0;ie0&&Ne==="single"&&m.onlyOneLineEditorAlertMessage!==!1)return $e(m.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var oe=m.getRowKey(Ie,-1);if(!oe&&oe!==0)throw(0,bn.ET)(!!oe,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key + https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(le.add(oe),qe(Array.from(le)),(z==null?void 0:z.newRecordType)==="dataSource"||m.tableName){var ge,ie={data:m.dataSource,getRowKey:m.getRowKey,row:(0,G.Z)((0,G.Z)({},Ie),{},{map_row_parentKey:z!=null&&z.parentKey?(ge=Ce(z==null?void 0:z.parentKey))===null||ge===void 0?void 0:ge.toString():void 0}),key:oe,childrenColumnName:m.childrenColumnName||"children"};m.setDataSource(sn(ie,(z==null?void 0:z.position)==="top"?"top":"update"))}else Se({defaultValue:Ie,options:(0,G.Z)((0,G.Z)({},z),{},{recordKey:oe})});return!0}),Oe=(0,ln.YB)(),or=(m==null?void 0:m.saveText)||Oe.getMessage("editableTable.action.save","\u4FDD\u5B58"),Gr=(m==null?void 0:m.deleteText)||Oe.getMessage("editableTable.action.delete","\u5220\u9664"),Xr=(m==null?void 0:m.cancelText)||Oe.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Jr=(0,on.J)(function(){var Ie=(0,te.Z)((0,J.Z)().mark(function z(oe,ge,ie,Je){var Ve,we,ze,Ee,Kn,Cn,fr;return(0,J.Z)().wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,m==null||(Ve=m.onSave)===null||Ve===void 0?void 0:Ve.call(m,oe,ge,ie,Je);case 2:return Ee=ir.sent,ir.next=5,Ln(oe);case 5:if(Kn=Je||Qe.current||{},Cn=Kn.options,!(!(Cn!=null&&Cn.parentKey)&&(Cn==null?void 0:Cn.recordKey)===oe)){ir.next=9;break}return(Cn==null?void 0:Cn.position)==="top"?m.setDataSource([ge].concat((0,X.Z)(m.dataSource))):m.setDataSource([].concat((0,X.Z)(m.dataSource),[ge])),ir.abrupt("return",Ee);case 9:return fr={data:m.dataSource,getRowKey:m.getRowKey,row:Cn?(0,G.Z)((0,G.Z)({},ge),{},{map_row_parentKey:(we=Ce((ze=Cn==null?void 0:Cn.parentKey)!==null&&ze!==void 0?ze:""))===null||we===void 0?void 0:we.toString()}):ge,key:oe,childrenColumnName:m.childrenColumnName||"children"},m.setDataSource(sn(fr,(Cn==null?void 0:Cn.position)==="top"?"top":"update")),ir.next=13,Ln(oe);case 13:return ir.abrupt("return",Ee);case 14:case"end":return ir.stop()}},z)}));return function(z,oe,ge,ie){return Ie.apply(this,arguments)}}()),zr=(0,on.J)(function(){var Ie=(0,te.Z)((0,J.Z)().mark(function z(oe,ge){var ie,Je,Ve;return(0,J.Z)().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return Je={data:m.dataSource,getRowKey:m.getRowKey,row:ge,key:oe,childrenColumnName:m.childrenColumnName||"children"},ze.next=3,m==null||(ie=m.onDelete)===null||ie===void 0?void 0:ie.call(m,oe,ge);case 3:return Ve=ze.sent,ze.next=6,Ln(oe,!1);case 6:return m.setDataSource(sn(Je,"delete")),ze.abrupt("return",Ve);case 8:case"end":return ze.stop()}},z)}));return function(z,oe){return Ie.apply(this,arguments)}}()),cr=(0,on.J)(function(){var Ie=(0,te.Z)((0,J.Z)().mark(function z(oe,ge,ie,Je){var Ve,we;return(0,J.Z)().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,m==null||(Ve=m.onCancel)===null||Ve===void 0?void 0:Ve.call(m,oe,ge,ie,Je);case 2:return we=Ee.sent,Ee.abrupt("return",we);case 4:case"end":return Ee.stop()}},z)}));return function(z,oe,ge,ie){return Ie.apply(this,arguments)}}()),vr=function(z){var oe=m.getRowKey(z,z.index),ge={saveText:or,cancelText:Xr,deleteText:Gr,addEditRecord:gn,recordKey:oe,cancelEditable:Ln,index:z.index,tableName:m.tableName,newLineConfig:q,onCancel:cr,onDelete:zr,onSave:Jr,editableKeys:ne,setEditableRowKeys:qe,deletePopconfirmMessage:m.deletePopconfirmMessage||"".concat(Oe.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},ie=je(z,ge);return m.tableName?Qn.current.set(Ae.current.get(Ce(oe))||Ce(oe),ie.saveRef):Qn.current.set(Ce(oe),ie.saveRef),m.actionRender?m.actionRender(z,ge,{save:ie.save,delete:ie.delete,cancel:ie.cancel}):[ie.save,ie.delete,ie.cancel]};return{editableKeys:ne,setEditableRowKeys:qe,isEditable:Xe,actionRender:vr,startEditable:We,cancelEditable:Ln,addEditRecord:gn,saveEditable:Vn,newLineRecord:q,preEditableKeys:De,onValuesChange:dr,getRealIndex:m.getRealIndex}}},71275:function(pr,Bn,c){var X=c(79301);function J(){return(0,X.Z)()}Bn.ZP={useBreakpoint:J}}}]); diff --git a/2723.a59f0434.async.js b/2723.a59f0434.async.js new file mode 100644 index 00000000..70f9016e --- /dev/null +++ b/2723.a59f0434.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2723],{69392:function(je,q,n){var o=n(93264),E=n(79685),I=n(55751),$=n(64507),i=function(Q,Y){return E.createElement($.Z,(0,o.Z)((0,o.Z)({},Q),{},{ref:Y,icon:I.Z}))};i.displayName="EditOutlined",q.Z=E.forwardRef(i)},19346:function(je,q,n){var o=n(93264),E=n(79685),I=n(96818),$=n(64507),i=function(Q,Y){return E.createElement($.Z,(0,o.Z)((0,o.Z)({},Q),{},{ref:Y,icon:I.Z}))};i.displayName="PlusOutlined",q.Z=E.forwardRef(i)},91642:function(je,q,n){n.d(q,{vY:function(){return at}});var o=n(57963),E=n(7623),I=n(64632),$=n(98787),i=n(93264),Z=n(79685),Q=n(72796),Y=n(64507),J=function(t,r){return Z.createElement(Y.Z,(0,i.Z)((0,i.Z)({},t),{},{ref:r,icon:Q.Z}))};J.displayName="CloseOutlined";var K=Z.forwardRef(J),le=n(61391),ie=function(t,r){return Z.createElement(Y.Z,(0,i.Z)((0,i.Z)({},t),{},{ref:r,icon:le.Z}))};ie.displayName="CheckOutlined";var H=Z.forwardRef(ie),A=n(69392),W=n(33636),B=n(81468),f=n(57196),de=n(71275),y=n(18283),x=n(498),N=n(27097),e=n(63342),ve=function(t){var r=t.padding;return(0,e.jsx)("div",{style:{padding:r||"0 24px"},children:(0,e.jsx)(x.Z,{style:{margin:0}})})},ce={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},ue=function(t){var r=t.size,s=t.active,v=(0,Z.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),p=de.ZP.useBreakpoint()||v,S=Object.keys(p).filter(function(M){return p[M]===!0})[0]||"md",j=r===void 0?ce[S]||6:r,z=function(h){return h===0?0:j>2?42:16};return(0,e.jsx)(y.Z,{bordered:!1,style:{marginBlockEnd:16},children:(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(j).fill(null).map(function(M,h){return(0,e.jsxs)("div",{style:{borderInlineStart:j>2&&h===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:z(h),flex:1,marginInlineEnd:h===0?16:0},children:[(0,e.jsx)(f.Z,{active:s,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),(0,e.jsx)(f.Z.Button,{active:s,style:{height:48}})]},h)})})})},oe=function(t){var r=t.active;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(y.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,e.jsx)(f.Z,{active:r,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:165,marginBlockStart:12}})]})}),(0,e.jsx)(ve,{})]})},pe=function(t){var r=t.size,s=t.active,v=s===void 0?!0:s,p=t.actionButton;return(0,e.jsxs)(y.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(r).fill(null).map(function(S,j){return(0,e.jsx)(oe,{active:!!v},j)}),p!==!1&&(0,e.jsx)(y.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(f.Z.Button,{style:{width:102},active:v,size:"small"})})]})},w=function(t){var r=t.active;return(0,e.jsxs)("div",{style:{marginBlockEnd:16},children:[(0,e.jsx)(f.Z,{paragraph:!1,title:{width:185}}),(0,e.jsx)(f.Z.Button,{active:r,size:"small"})]})},ee=function(t){var r=t.active;return(0,e.jsx)(y.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBlockEnd:8},children:(0,e.jsxs)(N.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,e.jsx)(f.Z.Button,{active:r,style:{width:200},size:"small"}),(0,e.jsxs)(N.Z,{children:[(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:120}}),(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:80}})]})]})})},Ue=function(t){var r=t.active,s=r===void 0?!0:r,v=t.statistic,p=t.actionButton,S=t.toolbar,j=t.pageHeader,z=t.list,M=z===void 0?5:z;return(0,e.jsxs)("div",{style:{width:"100%"},children:[j!==!1&&(0,e.jsx)(w,{active:s}),v!==!1&&(0,e.jsx)(ue,{size:v,active:s}),(S!==!1||M!==!1)&&(0,e.jsxs)(y.Z,{bordered:!1,bodyStyle:{padding:0},children:[S!==!1&&(0,e.jsx)(ee,{active:s}),M!==!1&&(0,e.jsx)(pe,{size:M,active:s,actionButton:p})]})]})},He=Ue,Fe={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},Ge=function(t){var r=t.active;return(0,e.jsxs)("div",{style:{marginBlockStart:32},children:[(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,e.jsxs)("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),(0,e.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},Ve=function(t){var r=t.size,s=t.active,v=(0,Z.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),p=de.ZP.useBreakpoint()||v,S=Object.keys(p).filter(function(z){return p[z]===!0})[0]||"md",j=r===void 0?Fe[S]||3:r;return(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(j).fill(null).map(function(z,M){return(0,e.jsxs)("div",{style:{flex:1,paddingInlineStart:M===0?0:24,paddingInlineEnd:M===j-1?0:24},children:[(0,e.jsx)(f.Z,{active:s,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(f.Z,{active:s,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,e.jsx)(f.Z,{active:s,paragraph:!1,title:{style:{marginBlockStart:8}}})]},M)})})},Ae=function(t){var r=t.active,s=t.header,v=s===void 0?!1:s,p=(0,Z.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),S=de.ZP.useBreakpoint()||p,j=Object.keys(S).filter(function(M){return S[M]===!0})[0]||"md",z=Fe[j]||3;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{display:"flex",background:v?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(z).fill(null).map(function(M,h){return(0,e.jsx)("div",{style:{flex:1,paddingInlineStart:v&&h===0?0:20,paddingInlineEnd:32},children:(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:v?"75px":"100%"}}})},h)}),(0,e.jsx)("div",{style:{flex:3,paddingInlineStart:32},children:(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:24,width:v?"75px":"100%"}}})})]}),(0,e.jsx)(ve,{padding:"0px 0px"})]})},Xe=function(t){var r=t.active,s=t.size,v=s===void 0?4:s;return(0,e.jsxs)(y.Z,{bordered:!1,children:[(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsx)(Ae,{header:!0,active:r}),new Array(v).fill(null).map(function(p,S){return(0,e.jsx)(Ae,{active:r},S)}),(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:(0,e.jsx)(f.Z,{active:r,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},We=function(t){var r=t.active;return(0,e.jsxs)(y.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[(0,e.jsx)(f.Z.Button,{active:r,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsx)(Ve,{active:r}),(0,e.jsx)(Ge,{active:r})]})},ke=function(t){var r=t.active,s=r===void 0?!0:r,v=t.pageHeader,p=t.list;return(0,e.jsxs)("div",{style:{width:"100%"},children:[v!==!1&&(0,e.jsx)(w,{active:s}),(0,e.jsx)(We,{active:s}),p!==!1&&(0,e.jsx)(ve,{}),p!==!1&&(0,e.jsx)(Xe,{active:s,size:p})]})},a=ke,l=function(t){var r=t.active,s=r===void 0?!0:r,v=t.pageHeader;return(0,e.jsxs)("div",{style:{width:"100%"},children:[v!==!1&&(0,e.jsx)(w,{active:s}),(0,e.jsx)(y.Z,{children:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,e.jsx)(f.Z.Avatar,{size:64,style:{marginBlockEnd:32}}),(0,e.jsx)(f.Z.Button,{active:s,style:{width:214,marginBlockEnd:8}}),(0,e.jsx)(f.Z.Button,{active:s,style:{width:328},size:"small"}),(0,e.jsxs)(N.Z,{style:{marginBlockStart:24},children:[(0,e.jsx)(f.Z.Button,{active:s,style:{width:116}}),(0,e.jsx)(f.Z.Button,{active:s,style:{width:116}})]})]})})]})},g=l,u=["type"],m=function(t){var r=t.type,s=r===void 0?"list":r,v=(0,$.Z)(t,u);return s==="result"?(0,e.jsx)(g,(0,i.Z)({},v)):s==="descriptions"?(0,e.jsx)(a,(0,i.Z)({},v)):(0,e.jsx)(He,(0,i.Z)({},v))},R=m,C=n(99371),fe=n(30607),ge=n(97340),te=n(78820),G=n(89869),me=n(41998),ye=n(89342),Oe=n(56671),De=n(68852),Te=n(46501),xe=n(28826),Me=function(t){return(De.ZP.warn||De.ZP.warning)(t)};function Ie(c){var t=c.data,r=c.row;return(0,i.Z)((0,i.Z)({},t),r)}function he(c){var t=c.type||"single",r=(0,Oe.YB)(),s=(0,Te.Z)([],{value:c.editableKeys,onChange:c.onChange?function(D){var T;c==null||(T=c.onChange)===null||T===void 0||T.call(c,D,c.dataSource)}:void 0}),v=(0,ye.Z)(s,2),p=v[0],S=v[1],j=(0,Z.useMemo)(function(){var D=t==="single"?p==null?void 0:p.slice(0,1):p;return new Set(D)},[(p||[]).join(","),t]),z=(0,Z.useCallback)(function(D){return!!(p!=null&&p.includes((0,xe.sN)(D)))},[(p||[]).join(",")]),M=function(T){return j.size>0&&t==="single"?(Me(c.onlyOneLineEditorAlertMessage||r.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(j.add((0,xe.sN)(T)),S(Array.from(j)),!0)},h=function(T){return j.delete((0,xe.sN)(T)),S(Array.from(j)),!0},U=function(){var D=(0,I.Z)((0,E.Z)().mark(function T(X,L,_,ae){var se,k;return(0,E.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,c==null||(se=c.onCancel)===null||se===void 0?void 0:se.call(c,X,L,_,ae);case 2:if(k=d.sent,k!==!1){d.next=5;break}return d.abrupt("return",!1);case 5:return d.abrupt("return",!0);case 6:case"end":return d.stop()}},T)}));return function(X,L,_,ae){return D.apply(this,arguments)}}(),ne=function(){var D=(0,I.Z)((0,E.Z)().mark(function T(X,L,_){var ae,se,k;return(0,E.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,c==null||(ae=c.onSave)===null||ae===void 0?void 0:ae.call(c,X,L,_);case 2:if(se=d.sent,se!==!1){d.next=5;break}return d.abrupt("return",!1);case 5:return d.next=7,h(X);case 7:return k={data:c.dataSource,row:L,key:X,childrenColumnName:c.childrenColumnName||"children"},c.setDataSource(Ie(k)),d.abrupt("return",!0);case 10:case"end":return d.stop()}},T)}));return function(X,L,_){return D.apply(this,arguments)}}(),V=r.getMessage("editableTable.action.save","\u4FDD\u5B58"),Pe=r.getMessage("editableTable.action.delete","\u5220\u9664"),O=r.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Se=(0,Z.useCallback)(function(D,T){var X=(0,i.Z)({recordKey:D,cancelEditable:h,onCancel:U,onSave:ne,editableKeys:p,setEditableRowKeys:S,saveText:V,cancelText:O,deleteText:Pe,deletePopconfirmMessage:"".concat(r.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?"),editorType:"Map"},T),L=(0,xe.aX)(c.dataSource,X);return c.actionRender?c.actionRender(c.dataSource,X,{save:L.save,delete:L.delete,cancel:L.cancel}):[L.save,L.delete,L.cancel]},[p&&p.join(","),c.dataSource]);return{editableKeys:p,setEditableRowKeys:S,isEditable:z,actionRender:Se,startEditable:M,cancelEditable:h}}var re=n(4218),be=n(91509),Ce=n(65906),Qe=n(89543),Le=n(89259),Ye=n(85540),Je=function(t,r){var s=r||{},v=s.onRequestError,p=s.effects,S=s.manual,j=s.dataSource,z=s.defaultDataSource,M=s.onDataSourceChange,h=(0,Te.Z)(z,{value:j,onChange:M}),U=(0,ye.Z)(h,2),ne=U[0],V=U[1],Pe=(0,Te.Z)(r==null?void 0:r.loading,{value:r==null?void 0:r.loading,onChange:r==null?void 0:r.onLoadingChange}),O=(0,ye.Z)(Pe,2),Se=O[0],D=O[1],T=function(_){V(_),D(!1)},X=function(){var L=(0,I.Z)((0,E.Z)().mark(function _(){var ae,se,k;return(0,E.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!Se){d.next=2;break}return d.abrupt("return");case 2:return D(!0),d.prev=3,d.next=6,t();case 6:if(d.t0=d.sent,d.t0){d.next=9;break}d.t0={};case 9:ae=d.t0,se=ae.data,k=ae.success,k!==!1&&T(se),d.next=23;break;case 15:if(d.prev=15,d.t1=d.catch(3),v!==void 0){d.next=21;break}throw new Error(d.t1);case 21:v(d.t1);case 22:D(!1);case 23:return d.prev=23,D(!1),d.finish(23);case 26:case"end":return d.stop()}},_,null,[[3,15,23,26]])}));return function(){return L.apply(this,arguments)}}();return(0,Z.useEffect)(function(){S||X()},[].concat((0,o.Z)(p||[]),[S])),{dataSource:ne,setDataSource:V,loading:Se,reload:function(){return X()}}},qe=Je,Ke=n(33298),Be=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],we=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError","emptyText"],rt=function(t,r){var s=t.dataIndex;if(s){var v=Array.isArray(s)?(0,Ye.Z)(r,s):r[s];if(v!==void 0||v!==null)return v}return t.children},tt=function(t){var r,s=t.valueEnum,v=t.action,p=t.index,S=t.text,j=t.entity,z=t.mode,M=t.render,h=t.editableUtils,U=t.valueType,ne=t.plain,V=t.dataIndex,Pe=t.request,O=t.renderFormItem,Se=t.params,D=t.emptyText,T=W.ZP.useFormInstance(),X=(r=Ke.Ow.useToken)===null||r===void 0?void 0:r.call(Ke.Ow),L=X.token,_={text:S,valueEnum:s,mode:z||"read",proFieldProps:{emptyText:D,render:M?function(k){return M==null?void 0:M(k,j,p,v,(0,i.Z)((0,i.Z)({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:U,request:Pe,params:Se,plain:ne};if(z==="read"||!z||U==="option"){var ae=(0,C.w)(t.fieldProps,void 0,(0,i.Z)((0,i.Z)({},t),{},{rowKey:V,isEditable:!1}));return(0,e.jsx)(B.Z,(0,i.Z)((0,i.Z)({name:V},_),{},{fieldProps:ae}))}var se=function(){var P,d=(0,C.w)(t.formItemProps,T,(0,i.Z)((0,i.Z)({},t),{},{rowKey:V,isEditable:!0})),Ee=(0,C.w)(t.fieldProps,T,(0,i.Z)((0,i.Z)({},t),{},{rowKey:V,isEditable:!0}));return(0,e.jsxs)("div",{style:{display:"flex",gap:L.marginXS,alignItems:"baseline"},children:[(0,e.jsx)(fe.U,(0,i.Z)((0,i.Z)({name:V},d),{},{style:(0,i.Z)({margin:0},(d==null?void 0:d.style)||{}),initialValue:S||(d==null?void 0:d.initialValue),children:(0,e.jsx)(B.Z,(0,i.Z)((0,i.Z)({},_),{},{proFieldProps:(0,i.Z)({},_.proFieldProps),renderFormItem:O?function(){return O==null?void 0:O((0,i.Z)((0,i.Z)({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:V,record:T.getFieldValue([V].flat(1)),defaultRender:function(){return(0,e.jsx)(B.Z,(0,i.Z)((0,i.Z)({},_),{},{fieldProps:Ee}))},type:"descriptions"},T)}:void 0,fieldProps:Ee}))})),(0,e.jsx)("div",{style:{display:"flex",maxHeight:L.controlHeight,alignItems:"center",gap:L.marginXS},children:h==null||(P=h.actionRender)===null||P===void 0?void 0:P.call(h,V||p,{cancelText:(0,e.jsx)(K,{}),saveText:(0,e.jsx)(H,{}),deleteText:!1})})]})};return(0,e.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:se()})},lt=function(t,r,s,v,p){var S,j=[],z=(0,ge.n)(be.Z,"5.8.0")>=0,M=t==null||(S=t.map)===null||S===void 0?void 0:S.call(t,function(h,U){var ne,V,Pe;if(Z.isValidElement(h))return z?{children:h}:h;var O=h,Se=O.valueEnum,D=O.render,T=O.renderText,X=O.mode,L=O.plain,_=O.dataIndex,ae=O.request,se=O.params,k=O.editable,P=(0,$.Z)(O,Be),d=(ne=rt(h,r))!==null&&ne!==void 0?ne:P.children,Ee=T?T(d,r,U,s):d,Ze=typeof P.title=="function"?P.title(h,"descriptions",null):P.title,b=typeof P.valueType=="function"?P.valueType(r||{},"descriptions"):P.valueType,F=v==null?void 0:v.isEditable(_||U),Re=X||F?"edit":"read",$e=v&&Re==="read"&&k!==!1&&(k==null?void 0:k(Ee,r,U))!==!1,ze=$e?N.Z:Z.Fragment,_e=Re==="edit"?Ee:(0,te.X)(Ee,h,Ee),Ne=z&&b!=="option"?(0,i.Z)((0,i.Z)({},P),{},{key:P.key||((V=P.label)===null||V===void 0?void 0:V.toString())||U,label:(Ze||P.label||P.tooltip||P.tip)&&(0,e.jsx)(G.G,{label:Ze||P.label,tooltip:P.tooltip||P.tip,ellipsis:h.ellipsis}),children:(0,e.jsxs)(ze,{children:[(0,e.jsx)(tt,(0,i.Z)((0,i.Z)({},h),{},{dataIndex:h.dataIndex||U,mode:Re,text:_e,valueType:b,entity:r,index:U,emptyText:p,action:s,editableUtils:v})),$e&&(0,e.jsx)(A.Z,{onClick:function(){v==null||v.startEditable(_||U)}})]})}):(0,Z.createElement)(Ce.Z.Item,(0,i.Z)((0,i.Z)({},P),{},{key:P.key||((Pe=P.label)===null||Pe===void 0?void 0:Pe.toString())||U,label:(Ze||P.label||P.tooltip||P.tip)&&(0,e.jsx)(G.G,{label:Ze||P.label,tooltip:P.tooltip||P.tip,ellipsis:h.ellipsis})}),(0,e.jsxs)(ze,{children:[(0,e.jsx)(tt,(0,i.Z)((0,i.Z)({},h),{},{dataIndex:h.dataIndex||U,mode:Re,text:_e,valueType:b,entity:r,index:U,action:s,editableUtils:v})),$e&&b!=="option"&&(0,e.jsx)(A.Z,{onClick:function(){v==null||v.startEditable(_||U)}})]}));return b==="option"?(j.push(Ne),null):Ne}).filter(function(h){return h});return{options:j!=null&&j.length?j:null,children:M}},nt=function(t){return(0,e.jsx)(Ce.Z.Item,(0,i.Z)((0,i.Z)({},t),{},{children:t.children}))};nt.displayName="ProDescriptionsItem";var it=function(t){return t.children},at=function(t){var r,s=t.request,v=t.columns,p=t.params,S=t.dataSource,j=t.onDataSourceChange,z=t.formProps,M=t.editable,h=t.loading,U=t.onLoadingChange,ne=t.actionRef,V=t.onRequestError,Pe=t.emptyText,O=(0,$.Z)(t,we),Se=(0,Z.useContext)(Qe.ZP.ConfigContext),D=qe((0,I.Z)((0,E.Z)().mark(function Ee(){var Ze;return(0,E.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(!s){F.next=6;break}return F.next=3,s(p||{});case 3:F.t0=F.sent,F.next=7;break;case 6:F.t0={data:{}};case 7:return Ze=F.t0,F.abrupt("return",Ze);case 9:case"end":return F.stop()}},Ee)})),{onRequestError:V,effects:[(0,me.ZP)(p)],manual:!s,dataSource:S,loading:h,onLoadingChange:U,onDataSourceChange:j}),T=he((0,i.Z)((0,i.Z)({},t.editable),{},{childrenColumnName:void 0,dataSource:D.dataSource,setDataSource:D.setDataSource}));if((0,Z.useEffect)(function(){ne&&(ne.current=(0,i.Z)({reload:D.reload},T))},[D,ne,T]),D.loading||D.loading===void 0&&s)return(0,e.jsx)(R,{type:"descriptions",list:!1,pageHeader:!1});var X=function(){var Ze=(0,Le.Z)(t.children).filter(Boolean).map(function(b){if(!Z.isValidElement(b))return b;var F=b==null?void 0:b.props,Re=F.valueEnum,$e=F.valueType,ze=F.dataIndex,_e=F.ellipsis,Ne=F.copyable,et=F.request;return!$e&&!Re&&!ze&&!et&&!_e&&!Ne&&b.type.displayName!=="ProDescriptionsItem"?b:(0,i.Z)((0,i.Z)({},b==null?void 0:b.props),{},{entity:S})});return[].concat((0,o.Z)(v||[]),(0,o.Z)(Ze)).filter(function(b){return!b||b!=null&&b.valueType&&["index","indexBorder"].includes(b==null?void 0:b.valueType)?!1:!(b!=null&&b.hideInDescriptions)}).sort(function(b,F){return F.order||b.order?(F.order||0)-(b.order||0):(F.index||0)-(b.index||0)})},L=lt(X(),D.dataSource||{},(ne==null?void 0:ne.current)||D,M?T:void 0,t.emptyText),_=L.options,ae=L.children,se=M?W.ZP:it,k=null;(O.title||O.tooltip||O.tip)&&(k=(0,e.jsx)(G.G,{label:O.title,tooltip:O.tooltip||O.tip}));var P=Se.getPrefixCls("pro-descriptions"),d=(0,ge.n)(be.Z,"5.8.0")>=0;return(0,e.jsx)(re.S,{children:(0,e.jsx)(se,(0,i.Z)((0,i.Z)({form:(r=t.editable)===null||r===void 0?void 0:r.form,component:!1,submitter:!1},z),{},{onFinish:void 0,children:(0,e.jsx)(Ce.Z,(0,i.Z)((0,i.Z)({className:P},O),{},{contentStyle:{minWidth:0},extra:O.extra?(0,e.jsxs)(N.Z,{children:[_,O.extra]}):_,title:k,items:d?ae:void 0,children:d?null:ae}))}),"form")})};at.Item=nt;var ot=null},98347:function(je,q,n){var o=n(93264),E=n(98787),I=n(79685),$=n(77204),i=n(81468),Z=n(63342),Q=["fieldProps","proFieldProps"],Y="dateTime",J=I.forwardRef(function(K,le){var ie=K.fieldProps,H=K.proFieldProps,A=(0,E.Z)(K,Q),W=(0,I.useContext)($.Z);return(0,Z.jsx)(i.Z,(0,o.Z)({ref:le,fieldProps:(0,o.Z)({getPopupContainer:W.getPopupContainer},ie),valueType:Y,proFieldProps:H,filedConfig:{valueType:Y,customLightMode:!0}},A))});q.Z=J},92769:function(je,q,n){var o=n(93264),E=n(98787),I=n(92879),$=n(48829),i=n(79685),Z=n(46821),Q=n(81468),Y=n(63342),J=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],K=i.forwardRef(function(A,W){var B=A.fieldProps,f=A.options,de=A.radioType,y=A.layout,x=A.proFieldProps,N=A.valueEnum,e=(0,E.Z)(A,J);return(0,Y.jsx)(Q.Z,(0,o.Z)((0,o.Z)({valueType:de==="button"?"radioButton":"radio",ref:W,valueEnum:(0,I.h)(N,void 0)},e),{},{fieldProps:(0,o.Z)({options:f,layout:y},B),proFieldProps:x,filedConfig:{customLightMode:!0}}))}),le=i.forwardRef(function(A,W){var B=A.fieldProps,f=A.children;return(0,Y.jsx)($.ZP,(0,o.Z)((0,o.Z)({},B),{},{ref:W,children:f}))}),ie=(0,Z.G)(le,{valuePropName:"checked",ignoreWidth:!0}),H=ie;H.Group=K,H.Button=$.ZP.Button,H.displayName="ProFormComponent",q.Z=H},5754:function(je,q,n){var o=n(93264),E=n(98787),I=n(92879),$=n(79685),i=n(77204),Z=n(81468),Q=n(63342),Y=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],J=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],K=function(B,f){var de=B.fieldProps,y=B.children,x=B.params,N=B.proFieldProps,e=B.mode,ve=B.valueEnum,ce=B.request,ue=B.showSearch,oe=B.options,pe=(0,E.Z)(B,Y),w=(0,$.useContext)(i.Z);return(0,Q.jsx)(Z.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,I.h)(ve),request:ce,params:x,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({options:oe,mode:e,showSearch:ue,getPopupContainer:w.getPopupContainer},de),ref:f,proFieldProps:N},pe),{},{children:y}))},le=$.forwardRef(function(W,B){var f=W.fieldProps,de=W.children,y=W.params,x=W.proFieldProps,N=W.mode,e=W.valueEnum,ve=W.request,ce=W.options,ue=(0,E.Z)(W,J),oe=(0,o.Z)({options:ce,mode:N||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},f),pe=(0,$.useContext)(i.Z);return(0,Q.jsx)(Z.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,I.h)(e),request:ve,params:y,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({getPopupContainer:pe.getPopupContainer},oe),ref:B,proFieldProps:x},ue),{},{children:de}))}),ie=$.forwardRef(K),H=le,A=ie;A.SearchSelect=H,A.displayName="ProFormComponent",q.Z=A},30869:function(je,q,n){var o=n(89342),E=n(93264),I=n(98787),$=n(46501),i=n(73952),Z=n(8262),Q=n(12869),Y=n(79685),J=n(81468),K=n(63342),le=["fieldProps","proFieldProps"],ie=["fieldProps","proFieldProps"],H="text",A=function(y){var x=y.fieldProps,N=y.proFieldProps,e=(0,I.Z)(y,le);return(0,K.jsx)(J.Z,(0,E.Z)({valueType:H,fieldProps:x,filedConfig:{valueType:H},proFieldProps:N},e))},W=function(y){var x=(0,$.Z)(y.open||!1,{value:y.open,onChange:y.onOpenChange}),N=(0,o.Z)(x,2),e=N[0],ve=N[1];return(0,K.jsx)(i.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(ue){var oe,pe=ue.getFieldValue(y.name||[]);return(0,K.jsx)(Z.Z,(0,E.Z)((0,E.Z)({getPopupContainer:function(ee){return ee&&ee.parentNode?ee.parentNode:ee},onOpenChange:ve,content:(0,K.jsxs)("div",{style:{padding:"4px 0"},children:[(oe=y.statusRender)===null||oe===void 0?void 0:oe.call(y,pe),y.strengthText?(0,K.jsx)("div",{style:{marginTop:10},children:(0,K.jsx)("span",{children:y.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},y.popoverProps),{},{open:e,children:y.children}))}})},B=function(y){var x=y.fieldProps,N=y.proFieldProps,e=(0,I.Z)(y,ie),ve=(0,Y.useState)(!1),ce=(0,o.Z)(ve,2),ue=ce[0],oe=ce[1];return x!=null&&x.statusRender&&e.name?(0,K.jsx)(W,{name:e.name,statusRender:x==null?void 0:x.statusRender,popoverProps:x==null?void 0:x.popoverProps,strengthText:x==null?void 0:x.strengthText,open:ue,onOpenChange:oe,children:(0,K.jsx)(J.Z,(0,E.Z)({valueType:"password",fieldProps:(0,E.Z)((0,E.Z)({},(0,Q.Z)(x,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(w){var ee;x==null||(ee=x.onBlur)===null||ee===void 0||ee.call(x,w),oe(!1)},onClick:function(w){var ee;x==null||(ee=x.onClick)===null||ee===void 0||ee.call(x,w),oe(!0)}}),proFieldProps:N,filedConfig:{valueType:H}},e))}):(0,K.jsx)(J.Z,(0,E.Z)({valueType:"password",fieldProps:x,proFieldProps:N,filedConfig:{valueType:H}},e))},f=A;f.Password=B,f.displayName="ProFormComponent",q.Z=f},43602:function(je,q,n){var o=n(93264),E=n(98787),I=n(79685),$=n(81468),i=n(63342),Z=["fieldProps","proFieldProps"],Q=function(J,K){var le=J.fieldProps,ie=J.proFieldProps,H=(0,E.Z)(J,Z);return(0,i.jsx)($.Z,(0,o.Z)({ref:K,valueType:"textarea",fieldProps:le,proFieldProps:ie},H))};q.Z=I.forwardRef(Q)},65906:function(je,q,n){n.d(q,{Z:function(){return ke}});var o=n(79685),E=n(68591),I=n.n(E),$=n(85817),i=n(99248),Z=n(73064),Q=n(79301),J={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},le=o.createContext({}),ie=n(89259),H=function(a,l){var g={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.indexOf(u)<0&&(g[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,u=Object.getOwnPropertySymbols(a);m(0,ie.Z)(a).map(l=>Object.assign(Object.assign({},l==null?void 0:l.props),{key:l.key}));function W(a,l,g){const u=o.useMemo(()=>l||A(g),[l,g]);return o.useMemo(()=>u.map(R=>{var{span:C}=R,fe=H(R,["span"]);return Object.assign(Object.assign({},fe),{span:typeof C=="number"?C:(0,$.m9)(a,C)})}),[u,a])}function B(a,l,g){let u=a,m=!1;return(g===void 0||g>l)&&(u=Object.assign(Object.assign({},a),{span:l}),m=g!==void 0),[u,m]}function f(a,l){const g=[];let u=[],m=l,R=!1;return a.filter(C=>C).forEach((C,fe)=>{const ge=C==null?void 0:C.span,te=ge||1;if(fe===a.length-1){const[G,me]=B(C,m,ge);R=R||me,u.push(G),g.push(u);return}if(te{const[g,u]=(0,o.useMemo)(()=>f(l,a),[l,a]);return g},N=a=>{let{children:l}=a;return l};function e(a){return a!=null}var ce=a=>{const{itemPrefixCls:l,component:g,span:u,className:m,style:R,labelStyle:C,contentStyle:fe,bordered:ge,label:te,content:G,colon:me}=a,ye=g;return ge?o.createElement(ye,{className:I()({[`${l}-item-label`]:e(te),[`${l}-item-content`]:e(G)},m),style:R,colSpan:u},e(te)&&o.createElement("span",{style:C},te),e(G)&&o.createElement("span",{style:fe},G)):o.createElement(ye,{className:I()(`${l}-item`,m),style:R,colSpan:u},o.createElement("div",{className:`${l}-item-container`},(te||te===0)&&o.createElement("span",{className:I()(`${l}-item-label`,{[`${l}-item-no-colon`]:!me}),style:C},te),(G||G===0)&&o.createElement("span",{className:I()(`${l}-item-content`),style:fe},G)))};function ue(a,l,g){let{colon:u,prefixCls:m,bordered:R}=l,{component:C,type:fe,showLabel:ge,showContent:te,labelStyle:G,contentStyle:me}=g;return a.map((ye,Oe)=>{let{label:De,children:Te,prefixCls:xe=m,className:Me,style:Ie,labelStyle:he,contentStyle:re,span:be=1,key:Ce}=ye;return typeof C=="string"?o.createElement(ce,{key:`${fe}-${Ce||Oe}`,className:Me,style:Ie,labelStyle:Object.assign(Object.assign({},G),he),contentStyle:Object.assign(Object.assign({},me),re),span:be,colon:u,component:C,itemPrefixCls:xe,bordered:R,label:ge?De:null,content:te?Te:null}):[o.createElement(ce,{key:`label-${Ce||Oe}`,className:Me,style:Object.assign(Object.assign(Object.assign({},G),Ie),he),span:1,colon:u,component:C[0],itemPrefixCls:xe,bordered:R,label:De}),o.createElement(ce,{key:`content-${Ce||Oe}`,className:Me,style:Object.assign(Object.assign(Object.assign({},me),Ie),re),span:be*2-1,component:C[1],itemPrefixCls:xe,bordered:R,content:Te})]})}var pe=a=>{const l=o.useContext(le),{prefixCls:g,vertical:u,row:m,index:R,bordered:C}=a;return u?o.createElement(o.Fragment,null,o.createElement("tr",{key:`label-${R}`,className:`${g}-row`},ue(m,a,Object.assign({component:"th",type:"label",showLabel:!0},l))),o.createElement("tr",{key:`content-${R}`,className:`${g}-row`},ue(m,a,Object.assign({component:"td",type:"content",showContent:!0},l)))):o.createElement("tr",{key:R,className:`${g}-row`},ue(m,a,Object.assign({component:C?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},l)))},w=n(26477),ee=n(4614),Ue=n(44244),He=n(25830);const Fe=a=>{const{componentCls:l,labelBg:g}=a;return{[`&${l}-bordered`]:{[`> ${l}-view`]:{border:`${(0,w.bf)(a.lineWidth)} ${a.lineType} ${a.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${l}-row`]:{borderBottom:`${(0,w.bf)(a.lineWidth)} ${a.lineType} ${a.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${l}-item-label, > ${l}-item-content`]:{padding:`${(0,w.bf)(a.padding)} ${(0,w.bf)(a.paddingLG)}`,borderInlineEnd:`${(0,w.bf)(a.lineWidth)} ${a.lineType} ${a.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${l}-item-label`]:{color:a.colorTextSecondary,backgroundColor:g,"&::after":{display:"none"}}}},[`&${l}-middle`]:{[`${l}-row`]:{[`> ${l}-item-label, > ${l}-item-content`]:{padding:`${(0,w.bf)(a.paddingSM)} ${(0,w.bf)(a.paddingLG)}`}}},[`&${l}-small`]:{[`${l}-row`]:{[`> ${l}-item-label, > ${l}-item-content`]:{padding:`${(0,w.bf)(a.paddingXS)} ${(0,w.bf)(a.padding)}`}}}}}},Ge=a=>{const{componentCls:l,extraColor:g,itemPaddingBottom:u,colonMarginRight:m,colonMarginLeft:R,titleMarginBottom:C}=a;return{[l]:Object.assign(Object.assign(Object.assign({},(0,ee.Wf)(a)),Fe(a)),{["&-rtl"]:{direction:"rtl"},[`${l}-header`]:{display:"flex",alignItems:"center",marginBottom:C},[`${l}-title`]:Object.assign(Object.assign({},ee.vS),{flex:"auto",color:a.titleColor,fontWeight:a.fontWeightStrong,fontSize:a.fontSizeLG,lineHeight:a.lineHeightLG}),[`${l}-extra`]:{marginInlineStart:"auto",color:g,fontSize:a.fontSize},[`${l}-view`]:{width:"100%",borderRadius:a.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${l}-row`]:{"> th, > td":{paddingBottom:u},"&:last-child":{borderBottom:"none"}},[`${l}-item-label`]:{color:a.colorTextTertiary,fontWeight:"normal",fontSize:a.fontSize,lineHeight:a.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,w.bf)(R)} ${(0,w.bf)(m)}`},[`&${l}-item-no-colon::after`]:{content:'""'}},[`${l}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${l}-item-content`]:{display:"table-cell",flex:1,color:a.contentColor,fontSize:a.fontSize,lineHeight:a.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${l}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${l}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${l}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${l}-row`]:{"> th, > td":{paddingBottom:a.paddingSM}}},"&-small":{[`${l}-row`]:{"> th, > td":{paddingBottom:a.paddingXS}}}})}},Ve=a=>({labelBg:a.colorFillAlter,titleColor:a.colorText,titleMarginBottom:a.fontSizeSM*a.lineHeightSM,itemPaddingBottom:a.padding,colonMarginRight:a.marginXS,colonMarginLeft:a.marginXXS/2,contentColor:a.colorText,extraColor:a.colorText});var Ae=(0,Ue.I$)("Descriptions",a=>{const l=(0,He.TS)(a,{});return Ge(l)},Ve),Xe=function(a,l){var g={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.indexOf(u)<0&&(g[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,u=Object.getOwnPropertySymbols(a);m{const{prefixCls:l,title:g,extra:u,column:m,colon:R=!0,bordered:C,layout:fe,children:ge,className:te,rootClassName:G,style:me,size:ye,labelStyle:Oe,contentStyle:De,items:Te}=a,xe=Xe(a,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Me,direction:Ie,descriptions:he}=o.useContext(i.E_),re=Me("descriptions",l),be=(0,Q.Z)(),Ce=o.useMemo(()=>{var Be;return typeof m=="number"?m:(Be=(0,$.m9)(be,Object.assign(Object.assign({},J),m)))!==null&&Be!==void 0?Be:3},[be,m]),Qe=W(be,Te,ge),Le=(0,Z.Z)(ye),Ye=y(Ce,Qe),[Je,qe]=Ae(re),Ke=o.useMemo(()=>({labelStyle:Oe,contentStyle:De}),[Oe,De]);return Je(o.createElement(le.Provider,{value:Ke},o.createElement("div",Object.assign({className:I()(re,he==null?void 0:he.className,{[`${re}-${Le}`]:Le&&Le!=="default",[`${re}-bordered`]:!!C,[`${re}-rtl`]:Ie==="rtl"},te,G,qe),style:Object.assign(Object.assign({},he==null?void 0:he.style),me)},xe),(g||u)&&o.createElement("div",{className:`${re}-header`},g&&o.createElement("div",{className:`${re}-title`},g),u&&o.createElement("div",{className:`${re}-extra`},u)),o.createElement("div",{className:`${re}-view`},o.createElement("table",null,o.createElement("tbody",null,Ye.map((Be,we)=>o.createElement(pe,{key:we,index:we,colon:R,prefixCls:re,vertical:fe==="vertical",bordered:C,row:Be}))))))))};We.Item=N;var ke=We}}]); diff --git a/3049.c9102e77.async.js b/3049.c9102e77.async.js new file mode 100644 index 00000000..a41dceed --- /dev/null +++ b/3049.c9102e77.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3049],{29408:function(e,u,t){var n=t(38117),r=t(81354),a=n(r,"DataView");e.exports=a},55399:function(e,u,t){var n=t(38578),r=t(15721),a=t(54382),o=t(91200),s=t(26817);function i(f){var c=-1,p=f==null?0:f.length;for(this.clear();++c1?i[c-1]:void 0,l=c>2?i[2]:void 0;for(p=o.length>3&&typeof p=="function"?(c--,p):void 0,l&&r(i[0],i[1],l)&&(p=c<3?void 0:p,c=1),s=Object(s);++fm))return!1;var T=g.get(f),A=g.get(c);if(T&&A)return T==c&&A==f;var P=-1,x=!0,M=p&s?new n:void 0;for(g.set(f,c),g.set(c,f);++P-1&&r%1==0&&r-1}e.exports=r},93754:function(e,u,t){var n=t(1107);function r(a,o){var s=this.__data__,i=n(s,a);return i<0?(++this.size,s.push([a,o])):s[i][1]=o,this}e.exports=r},74654:function(e,u,t){var n=t(55399),r=t(38743),a=t(1728);function o(){this.size=0,this.__data__={hash:new n,map:new(a||r),string:new n}}e.exports=o},48423:function(e,u,t){var n=t(77757);function r(a){var o=n(this,a).delete(a);return this.size-=o?1:0,o}e.exports=r},11968:function(e,u,t){var n=t(77757);function r(a){return n(this,a).get(a)}e.exports=r},68851:function(e,u,t){var n=t(77757);function r(a){return n(this,a).has(a)}e.exports=r},49445:function(e,u,t){var n=t(77757);function r(a,o){var s=n(this,a),i=s.size;return s.set(a,o),this.size+=s.size==i?0:1,this}e.exports=r},84065:function(e){function u(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}e.exports=u},25960:function(e,u,t){var n=t(49814),r=500;function a(o){var s=n(o,function(f){return i.size===r&&i.clear(),f}),i=s.cache;return s}e.exports=a},56971:function(e,u,t){var n=t(38117),r=n(Object,"create");e.exports=r},65162:function(e,u,t){var n=t(5959),r=n(Object.keys,Object);e.exports=r},5711:function(e){function u(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}e.exports=u},1039:function(e,u,t){e=t.nmd(e);var n=t(98083),r=u&&!u.nodeType&&u,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,s=o&&n.process,i=function(){try{var f=a&&a.require&&a.require("util").types;return f||s&&s.binding&&s.binding("util")}catch(c){}}();e.exports=i},5959:function(e){function u(t,n){return function(r){return t(n(r))}}e.exports=u},76690:function(e,u,t){var n=t(27319),r=Math.max;function a(o,s,i){return s=r(s===void 0?o.length-1:s,0),function(){for(var f=arguments,c=-1,p=r(f.length-s,0),l=Array(p);++c0){if(++o>=u)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}e.exports=r},10486:function(e,u,t){var n=t(38743);function r(){this.__data__=new n,this.size=0}e.exports=r},89820:function(e){function u(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}e.exports=u},970:function(e){function u(t){return this.__data__.get(t)}e.exports=u},90429:function(e){function u(t){return this.__data__.has(t)}e.exports=u},66931:function(e,u,t){var n=t(38743),r=t(1728),a=t(77655),o=200;function s(i,f){var c=this.__data__;if(c instanceof n){var p=c.__data__;if(!r||p.length=p||N<0||x&&R>=y}function C(){var j=r();if(v(j))return I(j);S=setTimeout(C,b(j))}function I(j){return S=void 0,M&&d?O(j):(d=g=void 0,m)}function E(){S!==void 0&&clearTimeout(S),A=0,d=T=g=S=void 0}function h(){return S===void 0?m:I(r())}function w(){var j=r(),N=v(j);if(d=arguments,g=this,T=j,N){if(S===void 0)return L(T);if(x)return clearTimeout(S),S=setTimeout(C,p),O(T)}return S===void 0&&(S=setTimeout(C,p)),m}return w.cancel=E,w.flush=h,w}e.exports=f},79527:function(e){function u(t,n){return t===n||t!==t&&n!==n}e.exports=u},55796:function(e,u,t){var n=t(42569);function r(a,o,s){var i=a==null?void 0:n(a,o);return i===void 0?s:i}e.exports=r},18906:function(e){function u(t){return t}e.exports=u},9136:function(e,u,t){var n=t(15751),r=t(64841),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,i=n(function(){return arguments}())?n:function(f){return r(f)&&o.call(f,"callee")&&!s.call(f,"callee")};e.exports=i},69797:function(e,u,t){var n=t(14354),r=t(29125);function a(o){return o!=null&&r(o.length)&&!n(o)}e.exports=a},2109:function(e,u,t){var n=t(69797),r=t(64841);function a(o){return r(o)&&n(o)}e.exports=a},16701:function(e,u,t){e=t.nmd(e);var n=t(81354),r=t(7172),a=u&&!u.nodeType&&u,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,i=s?n.Buffer:void 0,f=i?i.isBuffer:void 0,c=f||r;e.exports=c},14354:function(e,u,t){var n=t(51683),r=t(85261),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",i="[object Proxy]";function f(c){if(!r(c))return!1;var p=n(c);return p==o||p==s||p==a||p==i}e.exports=f},29125:function(e){var u=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=u}e.exports=t},72327:function(e,u,t){var n=t(79068),r=t(9809),a=t(1039),o=a&&a.isMap,s=o?r(o):n;e.exports=s},85261:function(e){function u(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}e.exports=u},44162:function(e,u,t){var n=t(51683),r=t(96362),a=t(64841),o="[object Object]",s=Function.prototype,i=Object.prototype,f=s.toString,c=i.hasOwnProperty,p=f.call(Object);function l(d){if(!a(d)||n(d)!=o)return!1;var g=r(d);if(g===null)return!0;var y=c.call(g,"constructor")&&g.constructor;return typeof y=="function"&&y instanceof y&&f.call(y)==p}e.exports=l},13321:function(e,u,t){var n=t(76089),r=t(9809),a=t(1039),o=a&&a.isSet,s=o?r(o):n;e.exports=s},71828:function(e,u,t){var n=t(51683),r=t(68120),a=t(64841),o="[object String]";function s(i){return typeof i=="string"||!r(i)&&a(i)&&n(i)==o}e.exports=s},87993:function(e,u,t){var n=t(38138),r=t(9809),a=t(1039),o=a&&a.isTypedArray,s=o?r(o):n;e.exports=s},97413:function(e,u,t){var n=t(15587),r=t(78003),a=t(69797);function o(s){return a(s)?n(s):r(s)}e.exports=o},38500:function(e,u,t){var n=t(15587),r=t(55832),a=t(69797);function o(s){return a(s)?n(s,!0):r(s)}e.exports=o},49814:function(e,u,t){var n=t(77655),r="Expected a function";function a(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new TypeError(r);var i=function(){var f=arguments,c=s?s.apply(this,f):f[0],p=i.cache;if(p.has(c))return p.get(c);var l=o.apply(this,f);return i.cache=p.set(c,l)||p,l};return i.cache=new(a.Cache||n),i}a.Cache=n,e.exports=a},73875:function(e,u,t){var n=t(3033),r=t(80667),a=r(function(o,s,i){n(o,s,i)});e.exports=a},75734:function(e,u,t){var n=t(81354),r=function(){return n.Date.now()};e.exports=r},17701:function(e){function u(){return[]}e.exports=u},7172:function(e){function u(){return!1}e.exports=u},72806:function(e,u,t){var n=t(63390),r=t(85261),a="Expected a function";function o(s,i,f){var c=!0,p=!0;if(typeof s!="function")throw new TypeError(a);return r(f)&&(c="leading"in f?!!f.leading:c,p="trailing"in f?!!f.trailing:p),n(s,i,{leading:c,maxWait:i,trailing:p})}e.exports=o},47338:function(e,u,t){var n=t(1216),r=t(85261),a=t(83674),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;function p(l){if(typeof l=="number")return l;if(a(l))return o;if(r(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=r(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=n(l);var g=i.test(l);return g||f.test(l)?c(l.slice(2),g?2:8):s.test(l)?o:+l}e.exports=p},61636:function(e,u,t){var n=t(19822),r=t(38500);function a(o){return n(o,r(o))}e.exports=a}}]); diff --git a/3233.e851f8e2.async.js b/3233.e851f8e2.async.js deleted file mode 100644 index 965446b8..00000000 --- a/3233.e851f8e2.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3233],{9455:function(W,P){var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};P.Z=e},34700:function(W,P,e){e.d(P,{Z:function(){return C}});var t=e(33346),r=e(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 01-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z"}}]},name:"alipay",theme:"outlined"},p=i,g=e(69164),d=function(f,u){return r.createElement(g.Z,(0,t.Z)((0,t.Z)({},f),{},{ref:u,icon:p}))};d.displayName="AlipayOutlined";var C=r.forwardRef(d)},10587:function(W,P,e){e.d(P,{Z:function(){return C}});var t=e(33346),r=e(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},p=i,g=e(69164),d=function(f,u){return r.createElement(g.Z,(0,t.Z)((0,t.Z)({},f),{},{ref:u,icon:p}))};d.displayName="DingdingOutlined";var C=r.forwardRef(d)},62624:function(W,P,e){e.d(P,{Z:function(){return C}});var t=e(33346),r=e(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168.5 273.7a68.7 68.7 0 10137.4 0 68.7 68.7 0 10-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z"}}]},name:"taobao",theme:"outlined"},p=i,g=e(69164),d=function(f,u){return r.createElement(g.Z,(0,t.Z)((0,t.Z)({},f),{},{ref:u,icon:p}))};d.displayName="TaobaoOutlined";var C=r.forwardRef(d)},68968:function(W,P,e){e.d(P,{Z:function(){return C}});var t=e(33346),r=e(50959),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},p=i,g=e(69164),d=function(f,u){return r.createElement(g.Z,(0,t.Z)((0,t.Z)({},f),{},{ref:u,icon:p}))};d.displayName="UploadOutlined";var C=r.forwardRef(d)},68344:function(W,P,e){var t=e(33346),r=e(1788),i=e(10570),p=e(13165),g=e(75200),d=e(33952),C=e(13763),S=e(50959),f=e(81298),u=e(21510),I=e(11527),F=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],T=["children","space","valuePropName"],Z={space:g.Z,group:d.Z.Group};function E(o){var n=arguments.length<=1?void 0:arguments[1];return n&&n.target&&o in n.target?n.target[o]:n}var c=function(n){var O=n.children,h=n.value,x=h===void 0?[]:h,m=n.valuePropName,s=n.onChange,l=n.fieldProps,v=n.space,y=n.type,a=y===void 0?"space":y,H=n.transform,z=n.convertValue,K=n.lightProps,re=(0,i.Z)(n,F),_=(0,p.J)(function(M,B){var L,R=(0,r.Z)(x);R[B]=E(m||"value",M),s==null||s(R),l==null||(L=l.onChange)===null||L===void 0||L.call(l,R)}),b=-1,$=(0,C.Z)(O).map(function(M){if(S.isValidElement(M)){var B,L,R;b+=1;var A=b,Q=(M==null||(B=M.type)===null||B===void 0?void 0:B.displayName)==="ProFormComponent"||(M==null||(L=M.props)===null||L===void 0?void 0:L.readonly),ae=Q?(0,t.Z)((0,t.Z)({key:A,ignoreFormItem:!0},M.props||{}),{},{fieldProps:(0,t.Z)((0,t.Z)({},M==null||(R=M.props)===null||R===void 0?void 0:R.fieldProps),{},{onChange:function(){_(arguments.length<=0?void 0:arguments[0],A)}}),value:x==null?void 0:x[A],onChange:void 0}):(0,t.Z)((0,t.Z)({key:A},M.props||{}),{},{value:x==null?void 0:x[A],onChange:function(V){var Y,te;_(V,A),(Y=(te=M.props).onChange)===null||Y===void 0||Y.call(te,V)}});return S.cloneElement(M,ae)}return M}),X=Z[a],k=(0,u.zx)(re),q=k.RowWrapper,J=(0,S.useMemo)(function(){return(0,t.Z)({},a==="group"?{compact:!0}:{})},[a]),ee=(0,S.useCallback)(function(M){var B=M.children;return(0,I.jsx)(X,(0,t.Z)((0,t.Z)((0,t.Z)({},J),v),{},{align:"start",wrap:!0,children:B}))},[X,v,J]);return(0,I.jsx)(q,{Wrapper:ee,children:$})},j=S.forwardRef(function(o,n){var O=o.children,h=o.space,x=o.valuePropName,m=(0,i.Z)(o,T);return(0,S.useImperativeHandle)(n,function(){return{}}),(0,I.jsx)(c,(0,t.Z)((0,t.Z)((0,t.Z)({space:h,valuePropName:x},m.fieldProps),{},{onChange:void 0},m),{},{children:O}))}),D=(0,f.G)(j);P.Z=D},79712:function(W,P,e){var t=e(33346),r=e(10570),i=e(44559),p=e(50959),g=e(54970),d=e(82578),C=e(11527),S=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],f=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],u=function(c,j){var D=c.fieldProps,o=c.children,n=c.params,O=c.proFieldProps,h=c.mode,x=c.valueEnum,m=c.request,s=c.showSearch,l=c.options,v=(0,r.Z)(c,S),y=(0,p.useContext)(g.Z);return(0,C.jsx)(d.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,i.h)(x),request:m,params:n,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({options:l,mode:h,showSearch:s,getPopupContainer:y.getPopupContainer},D),ref:j,proFieldProps:O},v),{},{children:o}))},I=p.forwardRef(function(E,c){var j=E.fieldProps,D=E.children,o=E.params,n=E.proFieldProps,O=E.mode,h=E.valueEnum,x=E.request,m=E.options,s=(0,r.Z)(E,f),l=(0,t.Z)({options:m,mode:O||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},j),v=(0,p.useContext)(g.Z);return(0,C.jsx)(d.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,i.h)(h),request:x,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({getPopupContainer:v.getPopupContainer},l),ref:c,proFieldProps:n},s),{},{children:D}))}),F=p.forwardRef(u),T=I,Z=F;Z.SearchSelect=T,Z.displayName="ProFormComponent",P.Z=Z},59224:function(W,P,e){var t=e(33346),r=e(10570),i=e(50959),p=e(82578),g=e(11527),d=["fieldProps","proFieldProps"],C=function(f,u){var I=f.fieldProps,F=f.proFieldProps,T=(0,r.Z)(f,d);return(0,g.jsx)(p.Z,(0,t.Z)({ref:u,valueType:"textarea",fieldProps:I,proFieldProps:F},T))};P.Z=i.forwardRef(C)},60010:function(W,P,e){var t=e(32682),r=e(33346),i=e(10570),p=e(65589),g=e(67190),d=e(82757),C=e(71770),S=e(50959),f=e(82578),u=e(11527),I=["fieldProps","proFieldProps"],F=["fieldProps","proFieldProps"],T="text",Z=function(o){var n=o.fieldProps,O=o.proFieldProps,h=(0,i.Z)(o,I);return(0,u.jsx)(f.Z,(0,r.Z)({valueType:T,fieldProps:n,filedConfig:{valueType:T},proFieldProps:O},h))},E=function(o){var n=(0,p.Z)(o.open||!1,{value:o.open,onChange:o.onOpenChange}),O=(0,t.Z)(n,2),h=O[0],x=O[1];return(0,u.jsx)(g.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,v=s.getFieldValue(o.name||[]);return(0,u.jsx)(d.Z,(0,r.Z)((0,r.Z)({getPopupContainer:function(a){return a&&a.parentNode?a.parentNode:a},onOpenChange:x,content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[(l=o.statusRender)===null||l===void 0?void 0:l.call(o,v),o.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:o.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},o.popoverProps),{},{open:h,children:o.children}))}})},c=function(o){var n=o.fieldProps,O=o.proFieldProps,h=(0,i.Z)(o,F),x=(0,S.useState)(!1),m=(0,t.Z)(x,2),s=m[0],l=m[1];return n!=null&&n.statusRender&&h.name?(0,u.jsx)(E,{name:h.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:(0,u.jsx)(f.Z,(0,r.Z)({valueType:"password",fieldProps:(0,r.Z)((0,r.Z)({},(0,C.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(y){var a;n==null||(a=n.onBlur)===null||a===void 0||a.call(n,y),l(!1)},onClick:function(y){var a;n==null||(a=n.onClick)===null||a===void 0||a.call(n,y),l(!0)}}),proFieldProps:O,filedConfig:{valueType:T}},h))}):(0,u.jsx)(f.Z,(0,r.Z)({valueType:"password",fieldProps:n,proFieldProps:O,filedConfig:{valueType:T}},h))},j=Z;j.Password=c,j.displayName="ProFormComponent",P.Z=j},43997:function(W,P,e){e.d(P,{A:function(){return m}});var t=e(33346),r=e(67190),i=e(50959),p=e(1704),g=e(58922),d=e(73273),C=e(32682),S=e(25671),f=e(65589),u=e(21804),I=e(56197),F=e(75200),T=e(84875),Z=e.n(T),E=e(54970),c=e(21510),j=e(26488),D=function(l){var v;return(0,d.Z)({},l.componentCls,{"&-title":{marginBlockEnd:l.marginXL,fontWeight:"bold"},"&-container":(0,d.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(l.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(v={display:"block",width:"100%"},(0,d.Z)(v,"".concat(l.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,d.Z)(v,"".concat(l.componentCls,"-container"),{paddingInlineStart:16}),(0,d.Z)(v,"".concat(l.antCls,"-space-item,").concat(l.antCls,"-form-item"),{width:"100%"}),(0,d.Z)(v,"".concat(l.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),v)})};function o(s){return(0,j.Xj)("ProFormGroup",function(l){var v=(0,t.Z)((0,t.Z)({},l),{},{componentCls:".".concat(s)});return[D(v)]})}var n=e(11527),O=i.forwardRef(function(s,l){var v=i.useContext(E.Z),y=v.groupProps,a=(0,t.Z)((0,t.Z)({},y),s),H=a.children,z=a.collapsible,K=a.defaultCollapsed,re=a.style,_=a.labelLayout,b=a.title,$=b===void 0?s.label:b,X=a.tooltip,k=a.align,q=k===void 0?"start":k,J=a.direction,ee=a.size,M=ee===void 0?32:ee,B=a.titleStyle,L=a.titleRender,R=a.spaceProps,A=a.extra,Q=a.autoFocus,ae=(0,f.Z)(function(){return K||!1},{value:s.collapsed,onChange:s.onCollapse}),ne=(0,C.Z)(ae,2),V=ne[0],Y=ne[1],te=(0,i.useContext)(I.ZP.ConfigContext),he=te.getPrefixCls,se=(0,c.zx)(s),Pe=se.ColWrapper,ie=se.RowWrapper,G=he("pro-form-group"),de=o(G),fe=de.wrapSSR,oe=de.hashId,ue=z&&(0,n.jsx)(S.Z,{style:{marginInlineEnd:8},rotate:V?void 0:90}),ce=(0,n.jsx)(u.G,{label:ue?(0,n.jsxs)("div",{children:[ue,$]}):$,tooltip:X}),ve=(0,i.useCallback)(function(N){var w=N.children;return(0,n.jsx)(F.Z,(0,t.Z)((0,t.Z)({},R),{},{className:Z()("".concat(G,"-container ").concat(oe),R==null?void 0:R.className),size:M,align:q,direction:J,style:(0,t.Z)({rowGap:0},R==null?void 0:R.style),children:w}))},[q,G,J,oe,M,R]),pe=L?L(ce,s):ce,Ce=(0,i.useMemo)(function(){var N=[],w=i.Children.toArray(H).map(function(U,xe){var le;return i.isValidElement(U)&&U!==null&&U!==void 0&&(le=U.props)!==null&&le!==void 0&&le.hidden?(N.push(U),null):xe===0&&i.isValidElement(U)&&Q?i.cloneElement(U,(0,t.Z)((0,t.Z)({},U.props),{},{autoFocus:Q})):U});return[(0,n.jsx)(ie,{Wrapper:ve,children:w},"children"),N.length>0?(0,n.jsx)("div",{style:{display:"none"},children:N}):null]},[H,ie,ve,Q]),me=(0,C.Z)(Ce,2),ge=me[0],Ee=me[1];return fe((0,n.jsx)(Pe,{children:(0,n.jsxs)("div",{className:Z()(G,oe,(0,d.Z)({},"".concat(G,"-twoLine"),_==="twoLine")),style:re,ref:l,children:[Ee,($||X||A)&&(0,n.jsx)("div",{className:"".concat(G,"-title ").concat(oe).trim(),style:B,onClick:function(){Y(!V)},children:A?(0,n.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[pe,(0,n.jsx)("span",{onClick:function(w){return w.stopPropagation()},children:A})]}):pe}),(0,n.jsx)("div",{style:{display:z&&V?"none":void 0},children:ge})]})}))});O.displayName="ProForm-Group";var h=O,x=e(75693);function m(s){return(0,n.jsx)(p.I,(0,t.Z)({layout:"vertical",submitter:{render:function(v,y){return y.reverse()}},contentRender:function(v,y){return(0,n.jsxs)(n.Fragment,{children:[v,y]})}},s))}m.Group=h,m.useForm=r.Z.useForm,m.Item=x.Z,m.useWatch=r.Z.useWatch,m.ErrorList=r.Z.ErrorList,m.Provider=r.Z.Provider,m.useFormInstance=r.Z.useFormInstance,m.EditOrReadOnlyContext=g.A},19494:function(W,P,e){e.d(P,{f:function(){return F}});var t=e(73273),r=e(56197),i=e(84875),p=e.n(i),g=e(50959),d=e(169),C=e(33346),S=e(26488),f=function(Z){return(0,t.Z)({},Z.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function u(T){return(0,S.Xj)("ProLayoutGridContent",function(Z){var E=(0,C.Z)((0,C.Z)({},Z),{},{componentCls:".".concat(T)});return[f(E)]})}var I=e(11527),F=function(Z){var E=(0,g.useContext)(d.X),c=Z.children,j=Z.contentWidth,D=Z.className,o=Z.style,n=(0,g.useContext)(r.ZP.ConfigContext),O=n.getPrefixCls,h=Z.prefixCls||O("pro"),x=j||E.contentWidth,m="".concat(h,"-grid-content"),s=u(m),l=s.wrapSSR,v=s.hashId,y=x==="Fixed"&&E.layout==="top";return l((0,I.jsx)("div",{className:p()(m,v,D,(0,t.Z)({},"".concat(m,"-wide"),y)),style:o,children:(0,I.jsx)("div",{className:"".concat(h,"-grid-content-children ").concat(v).trim(),children:c})}))}},169:function(W,P,e){e.d(P,{X:function(){return r}});var t=e(50959),r=(0,t.createContext)({})},21804:function(W,P,e){e.d(P,{G:function(){return j}});var t=e(33346),r=e(73273),i=e(38126),p=e(50959),g=e(9455),d=e(38782),C=function(o,n){return p.createElement(d.Z,(0,i.Z)({},o,{ref:n,icon:g.Z}))},S=p.forwardRef(C),f=e(56197),u=e(32618),I=e(84875),F=e.n(I),T=e(26488),Z=function(o){return(0,r.Z)({},o.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:o.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:o.colorTextSecondary,fontWeight:"normal",fontSize:o.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function E(D){return(0,T.Xj)("LabelIconTip",function(o){var n=(0,t.Z)((0,t.Z)({},o),{},{componentCls:".".concat(D)});return[Z(n)]})}var c=e(11527),j=p.memo(function(D){var o=D.label,n=D.tooltip,O=D.ellipsis,h=D.subTitle,x=(0,p.useContext)(f.ZP.ConfigContext),m=x.getPrefixCls,s=m("pro-core-label-tip"),l=E(s),v=l.wrapSSR,y=l.hashId;if(!n&&!h)return(0,c.jsx)(c.Fragment,{children:o});var a=typeof n=="string"||p.isValidElement(n)?{title:n}:n,H=(a==null?void 0:a.icon)||(0,c.jsx)(S,{});return v((0,c.jsxs)("div",{className:F()(s,y),onMouseDown:function(K){return K.stopPropagation()},onMouseLeave:function(K){return K.stopPropagation()},onMouseMove:function(K){return K.stopPropagation()},children:[(0,c.jsx)("div",{className:F()("".concat(s,"-title"),y,(0,r.Z)({},"".concat(s,"-title-ellipsis"),O)),children:o}),h&&(0,c.jsx)("div",{className:"".concat(s,"-subtitle ").concat(y).trim(),children:h}),n&&(0,c.jsx)(u.Z,(0,t.Z)((0,t.Z)({},a),{},{children:(0,c.jsx)("span",{className:"".concat(s,"-icon ").concat(y).trim(),children:H})}))]}))})}}]); diff --git a/339.995382d7.async.js b/339.995382d7.async.js deleted file mode 100644 index 561f35f9..00000000 --- a/339.995382d7.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[339],{53295:function(e,u,t){"use strict";t.d(u,{Z:function(){return P}});var n=t(50959),r=t(2116),a=t(94914),o=t(84875),s=t.n(o),i=t(31594),f=t(25670),p=y=>{const{value:x,formatter:v,precision:j,decimalSeparator:m,groupSeparator:D="",prefixCls:F}=y;let B;if(typeof v=="function")B=v(x);else{const G=String(x),H=G.match(/^(-?)(\d*)(\.(\d+))?$/);if(!H||G==="-")B=G;else{const z=H[1];let U=H[2]||"0",$=H[4]||"";U=U.replace(/\B(?=(\d{3})+(?!\d))/g,D),typeof j=="number"&&($=$.padEnd(j,"0").slice(0,j>0?j:0)),$&&($=`${m}${$}`),B=[n.createElement("span",{key:"int",className:`${F}-content-value-int`},z,U),$&&n.createElement("span",{key:"decimal",className:`${F}-content-value-decimal`},$)]}}return n.createElement("span",{className:`${F}-content-value`},B)},l=t(6301),d=t(81501),g=t(90467);const b=y=>{const{componentCls:x,marginXXS:v,padding:j,colorTextDescription:m,titleFontSize:D,colorTextHeading:F,contentFontSize:B,fontFamily:G}=y;return{[`${x}`]:Object.assign(Object.assign({},(0,l.Wf)(y)),{[`${x}-title`]:{marginBottom:v,color:m,fontSize:D},[`${x}-skeleton`]:{paddingTop:j},[`${x}-content`]:{color:F,fontSize:B,fontFamily:G,[`${x}-content-value`]:{display:"inline-block",direction:"ltr"},[`${x}-content-prefix, ${x}-content-suffix`]:{display:"inline-block"},[`${x}-content-prefix`]:{marginInlineEnd:v},[`${x}-content-suffix`]:{marginInlineStart:v}}})}},I=y=>{const{fontSizeHeading3:x,fontSize:v}=y;return{titleFontSize:v,contentFontSize:x}};var E=(0,d.I$)("Statistic",y=>{const x=(0,g.TS)(y,{});return[b(x)]},I),A=y=>{const{prefixCls:x,className:v,rootClassName:j,style:m,valueStyle:D,value:F=0,title:B,valueRender:G,prefix:H,suffix:z,loading:U=!1,onMouseEnter:$,onMouseLeave:q,decimalSeparator:_=".",groupSeparator:ot=","}=y,{getPrefixCls:st,direction:it,statistic:X}=n.useContext(i.E_),W=st("statistic",x),[ut,ft]=E(W),tt=n.createElement(p,Object.assign({decimalSeparator:_,groupSeparator:ot,prefixCls:W},y,{value:F})),ct=s()(W,{[`${W}-rtl`]:it==="rtl"},X==null?void 0:X.className,v,j,ft);return ut(n.createElement("div",{className:ct,style:Object.assign(Object.assign({},X==null?void 0:X.style),m),onMouseEnter:$,onMouseLeave:q},B&&n.createElement("div",{className:`${W}-title`},B),n.createElement(f.Z,{paragraph:!1,loading:U,className:`${W}-skeleton`},n.createElement("div",{style:D,className:`${W}-content`},H&&n.createElement("span",{className:`${W}-content-prefix`},H),G?G(tt):tt,z&&n.createElement("span",{className:`${W}-content-suffix`},z)))))};const M=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function h(y,x){let v=y;const j=/\[[^\]]*]/g,m=(x.match(j)||[]).map(G=>G.slice(1,-1)),D=x.replace(j,"[]"),F=M.reduce((G,H)=>{let[z,U]=H;if(G.includes(z)){const $=Math.floor(v/U);return v-=$*U,G.replace(new RegExp(`${z}+`,"g"),q=>{const _=q.length;return $.toString().padStart(_,"0")})}return G},D);let B=0;return F.replace(j,()=>{const G=m[B];return B+=1,G})}function L(y,x){const{format:v=""}=x,j=new Date(y).getTime(),m=Date.now(),D=Math.max(j-m,0);return h(D,v)}const C=1e3/30;function N(y){return new Date(y).getTime()}const O=y=>{const{value:x,format:v="HH:mm:ss",onChange:j,onFinish:m}=y,D=(0,r.Z)(),F=n.useRef(null),B=()=>{m==null||m(),F.current&&(clearInterval(F.current),F.current=null)},G=()=>{const U=N(x);U>=Date.now()&&(F.current=setInterval(()=>{D(),j==null||j(U-Date.now()),U(G(),()=>{F.current&&(clearInterval(F.current),F.current=null)}),[x]);const H=(U,$)=>L(U,Object.assign(Object.assign({},$),{format:v})),z=U=>(0,a.Tm)(U,{title:void 0});return n.createElement(A,Object.assign({},y,{valueRender:z,formatter:H}))};var T=n.memo(O);A.Countdown=T;var P=A},87269:function(e,u,t){var n=t(47758),r=t(29165),a=n(r,"DataView");e.exports=a},88987:function(e,u,t){var n=t(71519),r=t(82999),a=t(76111),o=t(50506),s=t(80845);function i(f){var c=-1,p=f==null?0:f.length;for(this.clear();++c1?i[c-1]:void 0,l=c>2?i[2]:void 0;for(p=o.length>3&&typeof p=="function"?(c--,p):void 0,l&&r(i[0],i[1],l)&&(p=c<3?void 0:p,c=1),s=Object(s);++fI))return!1;var S=g.get(f),A=g.get(c);if(S&&A)return S==c&&A==f;var M=-1,h=!0,L=p&s?new n:void 0;for(g.set(f,c),g.set(c,f);++M-1&&r%1==0&&r-1}e.exports=r},3564:function(e,u,t){var n=t(62718);function r(a,o){var s=this.__data__,i=n(s,a);return i<0?(++this.size,s.push([a,o])):s[i][1]=o,this}e.exports=r},7140:function(e,u,t){var n=t(88987),r=t(175),a=t(35922);function o(){this.size=0,this.__data__={hash:new n,map:new(a||r),string:new n}}e.exports=o},56504:function(e,u,t){var n=t(67707);function r(a){var o=n(this,a).delete(a);return this.size-=o?1:0,o}e.exports=r},88833:function(e,u,t){var n=t(67707);function r(a){return n(this,a).get(a)}e.exports=r},80953:function(e,u,t){var n=t(67707);function r(a){return n(this,a).has(a)}e.exports=r},70724:function(e,u,t){var n=t(67707);function r(a,o){var s=n(this,a),i=s.size;return s.set(a,o),this.size+=s.size==i?0:1,this}e.exports=r},7523:function(e){function u(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}e.exports=u},45171:function(e,u,t){var n=t(34736),r=500;function a(o){var s=n(o,function(f){return i.size===r&&i.clear(),f}),i=s.cache;return s}e.exports=a},37722:function(e,u,t){var n=t(47758),r=n(Object,"create");e.exports=r},14457:function(e,u,t){var n=t(75542),r=n(Object.keys,Object);e.exports=r},10814:function(e){function u(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}e.exports=u},8478:function(e,u,t){e=t.nmd(e);var n=t(96476),r=u&&!u.nodeType&&u,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,s=o&&n.process,i=function(){try{var f=a&&a.require&&a.require("util").types;return f||s&&s.binding&&s.binding("util")}catch(c){}}();e.exports=i},75542:function(e){function u(t,n){return function(r){return t(n(r))}}e.exports=u},20323:function(e,u,t){var n=t(93501),r=Math.max;function a(o,s,i){return s=r(s===void 0?o.length-1:s,0),function(){for(var f=arguments,c=-1,p=r(f.length-s,0),l=Array(p);++c0){if(++o>=u)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}e.exports=r},40551:function(e,u,t){var n=t(175);function r(){this.__data__=new n,this.size=0}e.exports=r},4090:function(e){function u(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}e.exports=u},47694:function(e){function u(t){return this.__data__.get(t)}e.exports=u},86220:function(e){function u(t){return this.__data__.has(t)}e.exports=u},68958:function(e,u,t){var n=t(175),r=t(35922),a=t(9440),o=200;function s(i,f){var c=this.__data__;if(c instanceof n){var p=c.__data__;if(!r||p.length=p||D<0||h&&F>=b}function P(){var m=r();if(T(m))return y(m);E=setTimeout(P,O(m))}function y(m){return E=void 0,L&&d?C(m):(d=g=void 0,I)}function x(){E!==void 0&&clearTimeout(E),A=0,d=S=g=E=void 0}function v(){return E===void 0?I:y(r())}function j(){var m=r(),D=T(m);if(d=arguments,g=this,S=m,D){if(E===void 0)return N(S);if(h)return clearTimeout(E),E=setTimeout(P,p),C(S)}return E===void 0&&(E=setTimeout(P,p)),I}return j.cancel=x,j.flush=v,j}e.exports=f},42448:function(e){function u(t,n){return t===n||t!==t&&n!==n}e.exports=u},65439:function(e,u,t){var n=t(97499);function r(a,o,s){var i=a==null?void 0:n(a,o);return i===void 0?s:i}e.exports=r},48148:function(e){function u(t){return t}e.exports=u},30353:function(e,u,t){var n=t(84742),r=t(55073),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,i=n(function(){return arguments}())?n:function(f){return r(f)&&o.call(f,"callee")&&!s.call(f,"callee")};e.exports=i},47428:function(e,u,t){var n=t(92042),r=t(17216);function a(o){return o!=null&&r(o.length)&&!n(o)}e.exports=a},57348:function(e,u,t){var n=t(47428),r=t(55073);function a(o){return r(o)&&n(o)}e.exports=a},61563:function(e,u,t){e=t.nmd(e);var n=t(29165),r=t(84193),a=u&&!u.nodeType&&u,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,i=s?n.Buffer:void 0,f=i?i.isBuffer:void 0,c=f||r;e.exports=c},92042:function(e,u,t){var n=t(80732),r=t(36838),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",i="[object Proxy]";function f(c){if(!r(c))return!1;var p=n(c);return p==o||p==s||p==a||p==i}e.exports=f},17216:function(e){var u=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=u}e.exports=t},32924:function(e,u,t){var n=t(64033),r=t(58792),a=t(8478),o=a&&a.isMap,s=o?r(o):n;e.exports=s},36838:function(e){function u(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}e.exports=u},69143:function(e,u,t){var n=t(80732),r=t(11389),a=t(55073),o="[object Object]",s=Function.prototype,i=Object.prototype,f=s.toString,c=i.hasOwnProperty,p=f.call(Object);function l(d){if(!a(d)||n(d)!=o)return!1;var g=r(d);if(g===null)return!0;var b=c.call(g,"constructor")&&g.constructor;return typeof b=="function"&&b instanceof b&&f.call(b)==p}e.exports=l},45380:function(e,u,t){var n=t(28264),r=t(58792),a=t(8478),o=a&&a.isSet,s=o?r(o):n;e.exports=s},56549:function(e,u,t){var n=t(80732),r=t(24669),a=t(55073),o="[object String]";function s(i){return typeof i=="string"||!r(i)&&a(i)&&n(i)==o}e.exports=s},73806:function(e,u,t){var n=t(22882),r=t(58792),a=t(8478),o=a&&a.isTypedArray,s=o?r(o):n;e.exports=s},50579:function(e,u,t){var n=t(79809),r=t(87473),a=t(47428);function o(s){return a(s)?n(s):r(s)}e.exports=o},37390:function(e,u,t){var n=t(79809),r=t(52506),a=t(47428);function o(s){return a(s)?n(s,!0):r(s)}e.exports=o},34736:function(e,u,t){var n=t(9440),r="Expected a function";function a(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new TypeError(r);var i=function(){var f=arguments,c=s?s.apply(this,f):f[0],p=i.cache;if(p.has(c))return p.get(c);var l=o.apply(this,f);return i.cache=p.set(c,l)||p,l};return i.cache=new(a.Cache||n),i}a.Cache=n,e.exports=a},67929:function(e,u,t){var n=t(97254),r=t(77991),a=r(function(o,s,i){n(o,s,i)});e.exports=a},76668:function(e,u,t){var n=t(29165),r=function(){return n.Date.now()};e.exports=r},68036:function(e){function u(){return[]}e.exports=u},84193:function(e){function u(){return!1}e.exports=u},38209:function(e,u,t){var n=t(66292),r=t(36838),a="Expected a function";function o(s,i,f){var c=!0,p=!0;if(typeof s!="function")throw new TypeError(a);return r(f)&&(c="leading"in f?!!f.leading:c,p="trailing"in f?!!f.trailing:p),n(s,i,{leading:c,maxWait:i,trailing:p})}e.exports=o},12448:function(e,u,t){var n=t(33124),r=t(36838),a=t(16764),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;function p(l){if(typeof l=="number")return l;if(a(l))return o;if(r(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=r(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=n(l);var g=i.test(l);return g||f.test(l)?c(l.slice(2),g?2:8):s.test(l)?o:+l}e.exports=p},85111:function(e,u,t){var n=t(92434),r=t(37390);function a(o){return n(o,r(o))}e.exports=a}}]); diff --git a/6445.7998d4fd.async.js b/3633.0b3c6ef9.async.js similarity index 52% rename from 6445.7998d4fd.async.js rename to 3633.0b3c6ef9.async.js index 4da6aa5c..9c945b14 100644 --- a/6445.7998d4fd.async.js +++ b/3633.0b3c6ef9.async.js @@ -1,37 +1,37 @@ -!(function(){var Z_=(rr,J,L)=>new Promise((re,pe)=>{var _=he=>{try{U(L.next(he))}catch(ae){pe(ae)}},le=he=>{try{U(L.throw(he))}catch(ae){pe(ae)}},U=he=>he.done?re(he.value):Promise.resolve(he.value).then(_,le);U((L=L.apply(rr,J)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6445],{4638:function(rr,J,L){"use strict";var re=L(50959),pe=L(38551),_=function(){return _=Object.assign||function(U){for(var he,ae=1,qe=arguments.length;ae',function(rr){try{let ie=function(){U||(U=!0,_())},Ke=function(){try{le.documentElement.doScroll("left")}catch(ht){return void setTimeout(Ke,50)}ie()};var ae=ie,qe=Ke,L=(L=document.getElementsByTagName("script"))[L.length-1],J=L.getAttribute("data-injectcss"),L=L.getAttribute("data-disable-injectsvg");if(!L){var re,pe,_,le,U,he=function(mt,Dt){Dt.parentNode.insertBefore(mt,Dt)};if(J&&!rr.__iconfont__svg__cssinject__){rr.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(ht){console&&console.log(ht)}}re=function(){var mt,Dt=document.createElement("div");Dt.innerHTML=rr._iconfont_svg_string_3580659,(Dt=Dt.getElementsByTagName("svg")[0])&&(Dt.setAttribute("aria-hidden","true"),Dt.style.position="absolute",Dt.style.width=0,Dt.style.height=0,Dt.style.overflow="hidden",Dt=Dt,(mt=document.body).firstChild?he(Dt,mt.firstChild):mt.appendChild(Dt))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(re,0):(pe=function(){document.removeEventListener("DOMContentLoaded",pe,!1),re()},document.addEventListener("DOMContentLoaded",pe,!1)):document.attachEvent&&(_=re,le=rr.document,U=!1,Ke(),le.onreadystatechange=function(){le.readyState=="complete"&&(le.onreadystatechange=null,ie())})}}catch(ie){}}(window)},91934:function(rr,J,L){"use strict";L.d(J,{zP:function(){return gB},JE:function(){return vF},ns:function(){return mB}});var re=L(50959),pe=(0,re.createContext)({});function _(){return(0,re.useContext)(pe)}var le={},U={},he=function(r){return U[r]},ae=function(r,t){U[r]=t},qe=function(r){return le[r]},ie=function(r,t){le[r]=t},Ke={},ht={},mt=34,Dt=10,Yt=13;function Ht(e){return new Function("d","return {"+e.map(function(r,t){return JSON.stringify(r)+": d["+t+'] || ""'}).join(",")+"}")}function ir(e,r){var t=Ht(e);return function(n,i){return r(t(n),i,e)}}function Xt(e){var r=Object.create(null),t=[];return e.forEach(function(n){for(var i in n)i in r||t.push(r[i]=i)}),t}function yt(e,r){var t=e+"",n=t.length;return n9999?"+"+yt(e,6):yt(e,4)}function Pr(e){var r=e.getUTCHours(),t=e.getUTCMinutes(),n=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":bt(e.getUTCFullYear(),4)+"-"+yt(e.getUTCMonth()+1,2)+"-"+yt(e.getUTCDate(),2)+(i?"T"+yt(r,2)+":"+yt(t,2)+":"+yt(n,2)+"."+yt(i,3)+"Z":n?"T"+yt(r,2)+":"+yt(t,2)+":"+yt(n,2)+"Z":t||r?"T"+yt(r,2)+":"+yt(t,2)+"Z":"")}function hr(e){var r=new RegExp('["'+e+` -\r]`),t=e.charCodeAt(0);function n(b,T){var M,O,k=i(b,function($,G){if(M)return M($,G-1);O=$,M=T?ir($,T):Ht($)});return k.columns=O||[],k}function i(b,T){var M=[],O=b.length,k=0,$=0,G,oe=O<=0,ye=!1;b.charCodeAt(O-1)===Dt&&--O,b.charCodeAt(O-1)===Yt&&--O;function Le(){if(oe)return ht;if(ye)return ye=!1,Ke;var ut,vt=k,Rt;if(b.charCodeAt(vt)===mt){for(;k++=O?oe=!0:(Rt=b.charCodeAt(k++))===Dt?ye=!0:Rt===Yt&&(ye=!0,b.charCodeAt(k)===Dt&&++k),b.slice(vt+1,ut-1).replace(/""/g,'"')}for(;knew Promise((q,he)=>{var _=fe=>{try{U(L.next(fe))}catch(se){he(se)}},le=fe=>{try{U(L.throw(fe))}catch(se){he(se)}},U=fe=>fe.done?q(fe.value):Promise.resolve(fe.value).then(_,le);U((L=L.apply(rr,ee)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3633],{99758:function(rr,ee,L){"use strict";var q=L(79685),he=L(81383),_=function(){return _=Object.assign||function(U){for(var fe,se=1,Qe=arguments.length;se',function(rr){try{let ae=function(){U||(U=!0,_())},et=function(){try{le.documentElement.doScroll("left")}catch(dt){return void setTimeout(et,50)}ae()};var se=ae,Qe=et,L=(L=document.getElementsByTagName("script"))[L.length-1],ee=L.getAttribute("data-injectcss"),L=L.getAttribute("data-disable-injectsvg");if(!L){var q,he,_,le,U,fe=function(Ye,wt){wt.parentNode.insertBefore(Ye,wt)};if(ee&&!rr.__iconfont__svg__cssinject__){rr.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(dt){console&&console.log(dt)}}q=function(){var Ye,wt=document.createElement("div");wt.innerHTML=rr._iconfont_svg_string_3580659,(wt=wt.getElementsByTagName("svg")[0])&&(wt.setAttribute("aria-hidden","true"),wt.style.position="absolute",wt.style.width=0,wt.style.height=0,wt.style.overflow="hidden",wt=wt,(Ye=document.body).firstChild?fe(wt,Ye.firstChild):Ye.appendChild(wt))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(q,0):(he=function(){document.removeEventListener("DOMContentLoaded",he,!1),q()},document.addEventListener("DOMContentLoaded",he,!1)):document.attachEvent&&(_=q,le=rr.document,U=!1,et(),le.onreadystatechange=function(){le.readyState=="complete"&&(le.onreadystatechange=null,ae())})}}catch(ae){}}(window)},60740:function(rr,ee,L){"use strict";L.d(ee,{zP:function(){return _B},JE:function(){return mk},ns:function(){return gB}});var q=L(79685),he=(0,q.createContext)({});function _(){return(0,q.useContext)(he)}var le={},U={},fe=function(r){return U[r]},se=function(r,t){U[r]=t},Qe=function(r){return le[r]},ae=function(r,t){le[r]=t},et={},dt={},Ye=34,wt=10,Xt=13;function Zt(e){return new Function("d","return {"+e.map(function(r,t){return JSON.stringify(r)+": d["+t+'] || ""'}).join(",")+"}")}function nr(e,r){var t=Zt(e);return function(n,i){return r(t(n),i,e)}}function Vt(e){var r=Object.create(null),t=[];return e.forEach(function(n){for(var i in n)i in r||t.push(r[i]=i)}),t}function xt(e,r){var t=e+"",n=t.length;return n9999?"+"+xt(e,6):xt(e,4)}function Tr(e){var r=e.getUTCHours(),t=e.getUTCMinutes(),n=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":bt(e.getUTCFullYear(),4)+"-"+xt(e.getUTCMonth()+1,2)+"-"+xt(e.getUTCDate(),2)+(i?"T"+xt(r,2)+":"+xt(t,2)+":"+xt(n,2)+"."+xt(i,3)+"Z":n?"T"+xt(r,2)+":"+xt(t,2)+":"+xt(n,2)+"Z":t||r?"T"+xt(r,2)+":"+xt(t,2)+"Z":"")}function hr(e){var r=new RegExp('["'+e+` +\r]`),t=e.charCodeAt(0);function n(b,T){var M,O,F=i(b,function($,G){if(M)return M($,G-1);O=$,M=T?nr($,T):Zt($)});return F.columns=O||[],F}function i(b,T){var M=[],O=b.length,F=0,$=0,G,ue=O<=0,xe=!1;b.charCodeAt(O-1)===wt&&--O,b.charCodeAt(O-1)===Xt&&--O;function ze(){if(ue)return dt;if(xe)return xe=!1,et;var ht,gt=F,Ot;if(b.charCodeAt(gt)===Ye){for(;F++=O?ue=!0:(Ot=b.charCodeAt(F++))===wt?xe=!0:Ot===Xt&&(xe=!0,b.charCodeAt(F)===wt&&++F),b.slice(gt+1,ht-1).replace(/""/g,'"')}for(;F=0))throw new Error("precision must be a positive number");var t=Math.pow(10,r||0);return Math.round(e*t)/t}function Zi(e,r){r===void 0&&(r="kilometers");var t=Be[r];if(!t)throw new Error(r+" units is invalid");return e*t}function Jn(e,r){r===void 0&&(r="kilometers");var t=Be[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Bn(e,r){return oa(Jn(e,r))}function Do(e){var r=e%360;return r<0&&(r+=360),r}function oa(e){var r=e%(2*Math.PI);return r*180/Math.PI}function $a(e){var r=e%360;return r*Math.PI/180}function Ot(e,r,t){if(r===void 0&&(r="kilometers"),t===void 0&&(t="kilometers"),!(e>=0))throw new Error("length must be a positive number");return Zi(Jn(e,r),t)}function F(e,r,t){if(r===void 0&&(r="meters"),t===void 0&&(t="kilometers"),!(e>=0))throw new Error("area must be a positive number");var n=dt[r];if(!n)throw new Error("invalid original units");var i=dt[t];if(!i)throw new Error("invalid final units");return e/n*i}function ne(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function de(e){return!!e&&e.constructor===Object}function Ne(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(r){if(!ne(r))throw new Error("bbox must only contain numbers")})}function _t(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}function Kt(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Ar(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function Ve(e){if(e.length>1&&isNumber(e[0])&&isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return Ve(e[0]);throw new Error("coordinates must only contain numbers")}function wt(e,r,t){if(!r||!t)throw new Error("type and name required");if(!e||e.type!==r)throw new Error("Invalid input to "+t+": must be a "+r+", given "+e.type)}function sr(e,r,t){if(!e)throw new Error("No feature passed");if(!t)throw new Error(".featureOf() requires a name");if(!e||e.type!=="Feature"||!e.geometry)throw new Error("Invalid input to "+t+", Feature with geometry required");if(!e.geometry||e.geometry.type!==r)throw new Error("Invalid input to "+t+": must be a "+r+", given "+e.geometry.type)}function dr(e,r,t){if(!e)throw new Error("No featureCollection passed");if(!t)throw new Error(".collectionOf() requires a name");if(!e||e.type!=="FeatureCollection")throw new Error("Invalid input to "+t+", FeatureCollection required");for(var n=0,i=e.features;nf||O>v||k>y){l=b,f=n,v=O,y=k,o=0;return}var $=lineString([l,b],t.properties);if(r($,n,i,k,o)===!1)return!1;o++,l=b})===!1)return!1}}})}function se(e,r,t){var n=t,i=!1;return Q(e,function(o,s,l,f,v){i===!1&&t===void 0?n=o:n=r(n,o,s,l,f,v),i=!0}),n}function xe(e,r){if(!e)throw new Error("geojson is required");di(e,function(t,n,i){if(t.geometry!==null){var o=t.geometry.type,s=t.geometry.coordinates;switch(o){case"LineString":if(r(t,n,i,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l=200&&t.status<300||t.status===0)&&t.response!==null){var o=t.response;if(e.type==="json")try{o=JSON.parse(t.response)}catch(l){return r(l)}r(null,o,t.getResponseHeader("Cache-Control"),t.getResponseHeader("Expires"),t)}else{var s=new Blob([t.response],{type:t.getResponseHeader("Content-Type")});r(new Qr(t.status,t.statusText,n.toString(),s))}},t.cancel=t.abort,t.send(e.body),t}function Yi(e){return new Promise(function(r,t){vi(e,function(n,i,o,s,l){n?t({err:n,data:null,xhr:l}):r({err:null,data:i,cacheControl:o,expires:s,xhr:l})})})}function ci(e,r){return vi(e,r)}var Li=function(r,t){var n=hi(r.url)||ci;return n((0,H.Z)((0,H.Z)({},r),{},{type:"json"}),t)},Si=function(r,t){var n=hi(r.url)||ci;return n((0,H.Z)((0,H.Z)({},r),{},{type:"arrayBuffer"}),t)},Xo=function(r,t){return ci(_objectSpread(_objectSpread({},r),{},{method:"POST"}),t)},Ki=function(r,t){return ci((0,H.Z)((0,H.Z)({},r),{},{method:"GET"}),t)};function Ia(e){var r=window.document.createElement("a");return r.href=e,r.protocol===window.document.location.protocol&&r.host===window.document.location.host}var Ai="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function mi(e,r){var t=new window.Image,n=window.URL||window.webkitURL;t.crossOrigin="anonymous",t.onload=function(){r(null,t),n.revokeObjectURL(t.src),t.onload=null,window.requestAnimationFrame(function(){t.src=Ai})},t.onerror=function(){return r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var i=new Blob([new Uint8Array(e)],{type:"image/png"});t.src=e.byteLength?n.createObjectURL(i):Ai}function Ti(e,r){var t=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(t).then(function(n){r(null,n)}).catch(function(n){r(new Error("Could not load image because of ".concat(n.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var Pa=function(r,t,n){var i=function(s,l){if(s)t(s);else if(l){var f=typeof createImageBitmap=="function",v=n?n(l):l;f?Ti(v,t):mi(v,t)}};return r.type==="json"?Li(r,i):Si(r,i)},cu=function(r,t){var n=typeof createImageBitmap=="function";n?Ti(r,t):mi(r,t)},ma=function(e){return e.CENTER="center",e.TOP="top",e["TOP-LEFT"]="top-left",e["TOP-RIGHT"]="top-right",e.BOTTOM="bottom",e["BOTTOM-LEFT"]="bottom-left",e["BOTTOM-RIGHT"]="bottom-right",e.LEFT="left",e.RIGHT="right",e}({}),Aa={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function $l(e,r,t){var n=e.classList;for(var i in Aa)Aa.hasOwnProperty(i)&&n.remove("l7-".concat(t,"-anchor-").concat(i));n.add("l7-".concat(t,"-anchor-").concat(r))}var os=L(52617);function Ta(e){return typeof e=="string"?!!d3.color(e):!1}function fi(e){var r=os.ZP(e),t=[0,0,0,0];return r!=null&&(t[0]=r.r/255,t[1]=r.g/255,t[2]=r.b/255,t[3]=r.opacity),t}function Oa(e){var r=e&&e[0],t=e&&e[1],n=e&&e[2],i=r+t*256+n*65536-1;return i}function ia(e){return[e+1&255,e+1>>8&255,e+1>>8>>8&255]}function So(e){var r=window.document.createElement("canvas"),t=r.getContext("2d");r.width=256,r.height=1;for(var n=null,i=t.createLinearGradient(0,0,256,1),o=e.positions[0],s=e.positions[e.positions.length-1],l=0;l0&&new RegExp("(^|\\s)"+r+"(\\s|$)").test(t)}function ja(e,r){e instanceof HTMLElement?e.className=r:e.className.baseVal=r}function ef(e){return e instanceof SVGElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function Vp(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}var xs=rp(["transform","WebkitTransform"]);function ku(e,r){e.style[xs]=r}function Fu(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var e=window.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)}}function ql(e){var r=["padding: "+(e.height/2-8)+"px "+e.width/2+"px;","line-height: "+e.height+"px;","background-image: url("+e.toDataURL()+");"];console.log(`%c -`,r.join(""))}function If(){var e,r=window.document.querySelector('meta[name="viewport"]');if(!r)return 1;var t=(e=r.content)===null||e===void 0?void 0:e.split(","),n=t.find(function(i){var o=i.split("="),s=(0,yn.Z)(o,1),l=s[0];return l==="initial-scale"});return n?n.split("=")[1]*1:1}var wa=If()<1?1:window.devicePixelRatio;function Qs(e,r){e.setAttribute("style","".concat(e.style.cssText).concat(r))}function Rc(e){return e.split(";").map(function(r){return r.trim()}).filter(function(r){return r})}function Kl(e,r){var t,n=Rc((t=e.getAttribute("style"))!==null&&t!==void 0?t:""),i=Rc(r),o=el.apply(void 0,[n].concat((0,Wt.Z)(i)));e.setAttribute("style",o.join(";"))}function rl(e){return Object.entries(e).map(function(r){var t=(0,yn.Z)(r,2),n=t[0],i=t[1];return"".concat(n,": ").concat(i)}).join(";")}function gh(e,r){return{left:e.left-r.left,top:e.top-r.top,right:r.left+r.width-e.left-e.width,bottom:r.top+r.height-e.top-e.height}}function Ql(e,r){e.checked=r,r?e.setAttribute("checked","true"):e.removeAttribute("checked")}function ca(e){e.innerHTML=""}function tf(e){e.setAttribute("draggable","false")}function np(e,r){if(typeof r=="string"){var t=document.createElement("div");for(t.innerHTML=r;t.firstChild;)e.append(t.firstChild)}else Array.isArray(r)?e.append.apply(e,(0,Wt.Z)(r)):e.append(r)}function Tl(e,r){for(var t=Array.isArray(r)?r:[r],n=e;n instanceof Element&&n!==window.document.body;){var i,o;if(t.find(function(s){var l;return(l=n)===null||l===void 0?void 0:l.matches(s)}))return n;n=(i=(o=n)===null||o===void 0?void 0:o.parentElement)!==null&&i!==void 0?i:null}}var Jl;function _h(e){return typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap}function Pf(){return typeof importScripts=="function"}var wl=Pf()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},hu=(Jl=navigator)===null||Jl===void 0?void 0:Jl.userAgent,Mc=!!hu.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),rf=hu.indexOf("Android")>-1||hu.indexOf("Adr")>-1;function ec(){for(var e=hu,r=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],t=!0,n=0,i=r;n0){t=!1;break}}return t}function tc(e,r){e.forEach(function(t){r[t]&&(r[t]=r[t].bind(r))})}var ip=null;function nl(e){var r=[1/0,1/0,-1/0,-1/0];return En(e,function(t){r[0]>t[0]&&(r[0]=t[0]),r[1]>t[1]&&(r[1]=t[1]),r[2]n&&e.lng<=o&&e.lat>i&&e.lat<=s}function Cl(e){var r=[1/0,1/0,-1/0,-1/0];return e.forEach(function(t){var n=t.coordinates;pu(r,n)}),r}function pu(e,r){return Array.isArray(r[0])?r.forEach(function(t){pu(e,t)}):(e[0]>r[0]&&(e[0]=r[0]),e[1]>r[1]&&(e[1]=r[1]),e[2]1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};e=Df(e,r);var n=e[0],i=e[1],o=n*Ic/180,s=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return s=s*Ic/180,t.enable&&(o=Number(o.toFixed(t.decimal)),s=Number(s.toFixed(t.decimal))),e.length===3?[o,s,e[2]]:[o,s]}function Md(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,t=e[0],n=e[1],i=t/Ic*180,o=n/Ic*180;return o=180/Math.PI*(2*Math.atan(Math.exp(o*Math.PI/180))-Math.PI/2),r!=null&&(i=Number(i.toFixed(r)),o=Number(o.toFixed(r))),e.length===3?[i,o,e[2]]:[i,o]}function Of(e){if(e==null)throw new Error("lng is required");return(e>180||e<-180)&&(e=e%360,e>180&&(e=-360+e),e<-180&&(e=360+e),e===0&&(e=0)),e}function xh(e){if(e==null)throw new Error("lat is required");return(e>90||e<-90)&&(e=e%180,e>90&&(e=-180+e),e<-90&&(e=180+e),e===0&&(e=0)),e}function Df(e,r){if(r===!1)return e;var t=Of(e[0]),n=xh(e[1]);return n>85&&(n=85),n<-85&&(n=-85),e.length===3?[t,n,e[2]]:[t,n]}function ko(e){var r=85.0511287798,t=Math.max(Math.min(r,e[1]),-r),n=256<<20,i=Math.PI/180,o=e[0]*i,s=t*i;s=Math.log(Math.tan(Math.PI/4+s/2));var l=.5/Math.PI,f=.5,v=-.5/Math.PI;return i=.5,o=n*(l*o+f),s=n*(v*s+i),[Math.floor(o),Math.floor(s)]}function bh(e){var r=.5/Math.PI,t=.5,n=-.5/Math.PI,i=.5,o=256<<20,s=_slicedToArray(e,2),l=s[0],f=s[1];l=(l/o-t)/r,f=(f/o-i)/n,f=(Math.atan(Math.pow(Math.E,f))-Math.PI/4)*2,i=Math.PI/180;var v=f/i,y=l/i;return[y,v]}function ap(e,r){var t=85.0511287798,n=Math.PI/180,i=6378137;return r=Math.max(Math.min(t,r),-t),e*=n,r*=n,r=Math.log(Math.tan(Math.PI/4+r/2)),[e*i,r*i]}function kf(e,r){var t=Math.PI/180,n=6378137,i=e/n/t,o=2*(Math.atan(Math.exp(r/n))-Math.PI/4)/t;return[i,o]}function Eh(e,r,t){var n=$a(r[1]-e[1]),i=$a(r[0]-e[0]),o=$a(e[1]),s=$a(r[1]),l=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(i/2),2)*Math.cos(o)*Math.cos(s);return Zi(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),t="meters")}function Oc(e){var r=Math.PI/180,t=85.0511287798,n=6378137,i=Math.max(Math.min(t,e[1]),-t),o=Math.sin(i*r),s=n*e[0]*r,l=n*Math.log((1+o)/(1-o))/2;return[s,l]}function of(e,r){var t=Math.abs(e[1][1]-e[0][1])*r,n=Math.abs(e[1][0]-e[0][0])*r;return[[e[0][0]-n,e[0][1]-t],[e[1][0]+n,e[1][1]+t]]}function il(e,r){return e[0][0]<=r[0][0]&&e[0][1]<=r[0][1]&&e[1][0]>=r[1][0]&&e[1][1]>=r[1][1]}function pa(e){return[[e[0],e[1]],[e[2],e[3]]]}function Ff(e){var r=du(e,[0,0]);return[e[0]/r,e[1]/r]}function du(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function Rl(e,r){return e[0]*r[0]+e[1]*r[1]}function ki(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ca(e,r){return Math.acos(Rl(e,r)/(ki(e)*ki(r)))*180/Math.PI}function $s(e,r){return r[0]>0?r[1]>0?90-Math.atan(r[1]/r[0])*180/Math.PI:90+Math.atan(-r[1]/r[0])*180/Math.PI:r[1]<0?180+(90-Math.atan(r[1]/r[0])*180/Math.PI):270+Math.atan(r[1]/-r[0])*180/Math.PI}function Bf(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!e||e.length<2)){for(var t=[0,1],n=0,i=[],o=0;o0){var b=i[o-1].rotation;b-y>360-b+y&&(y=y+360)}i.push({start:s,end:l,dis:f,rotation:y,duration:0})}return i.map(function(T){T.duration=r*(T.dis/n)}),i}}function Ds(e){if(nf(e[0]))return e;if(nf(e[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(nf(e[0][0][0])){var r=e,t=0,n=0,i=0;return r.forEach(function(o){o.forEach(function(s){t+=s[0],n+=s[1],i++})}),[t/i,n/i,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function sf(e){for(var r=e[0],t=e[1],n=e[0],i=e[1],o=0,s=0,l=0,f=0;fi&&(n=Math.floor(n/t)),n=n*r+e.charCodeAt(o);return n}function Lf(e){e=e.toString();for(var r=5381,t=e.length;t;)r=r*33^e.charCodeAt(--t);return r>>>0}function Ml(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var r=Math.random()*16|0,t=e==="x"?r:r&3|8;return t.toString(16)})}var Fo=function(e){return e["GAODE1.x"]="GAODE1.x",e["GAODE2.x"]="GAODE2.x",e.MAPBOX="MAPBOX",e.DEFAULT="DEFAUlTMAP",e.SIMPLE="SIMPLE",e.GLOBEL="GLOBEL",e}({});function Ha(e,r,t,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,s=arguments.length>6?arguments[6]:void 0,l=t;return s&&(l=Math.round(t*(o-1))/(o-1)),n?vn(e,r,l,n,i):vn(e,r,l,.314,i)}function al(e,r){var t=1-r;return(e[0]*t+e[1]*r)*t+(e[1]*t+e[2]*r)*r}function Ah(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function qa(e,r,t){var n=[r[0]-e[0],r[1]-e[1]],i=Ah(n,[0,0]),o=Math.atan2(n[1],n[0]),s=i/2/Math.cos(t),l=o+t,f=[s*Math.cos(l)+e[0],s*Math.sin(l)+e[1]];return f}function vn(e,r,t,n,i){if(i===MapType["GAODE2.x"]){var o=amap2Project(e[0],e[1]),s=amap2Project(r[0],r[1]),l=qa(o,s,n),f=[o[0],l[0],s[0]],v=[o[1],l[1],s[1]];return[].concat(_toConsumableArray(amap2UnProject(al(f,t),al(v,t))),[0])}else{var y=qa(e,r,n),b=[e[0],y[0],r[0]],T=[e[1],y[1],r[1]];return[al(b,t),al(T,t),0]}}function ks(e,r,t,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,s=arguments.length>6?arguments[6]:void 0,l=t;return s&&(l=Math.round(t*29)/29),ga(e,r,l,i)}function uf(e,r){var t=[r[0]-e[0],r[1]-e[1]],n=calDistance(t,[0,0]),i=Math.atan2(t[1],t[0]),o=.314,s=n/2/Math.cos(o),l=i+o,f=[s*Math.cos(l)+e[0],s*Math.sin(l)+e[1]];return f}function rc(e,r){var t=1-r;return(e[0]*t+e[1]*r)*t+(e[1]*t+e[2]*r)*r}function us(e,r){var t=[e[0]-r[0],e[1]-r[1]],n=[Math.sin(t[0]/2),Math.sin(t[1]/2)],i=n[1]*n[1]+Math.cos(e[1])*Math.cos(r[1])*n[0]*n[0];return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}function ga(e,r,t,n){var i=[degreesToRadians(e[0]),degreesToRadians(e[1])],o=[degreesToRadians(r[0]),degreesToRadians(r[1])];if(n==="GAODE2.x"){var s=uf(i,o),l=[i[0],s[0],o[0]],f=[i[1],s[1],o[1]];return[rc(l,t),rc(f,t),0]}else{var v=us(i,o);if(Math.abs(v-Math.PI)<.001)return[(1-t)*i[0]+t*o[0],(1-t)*i[1]+t*o[1]];var y=Math.sin((1-t)*v)/Math.sin(v),b=Math.sin(t*v)/Math.sin(v),T=[Math.sin(i[0]),Math.sin(i[1])],M=[Math.cos(i[0]),Math.cos(i[1])],O=[Math.sin(o[0]),Math.sin(o[1])],k=[Math.cos(o[0]),Math.cos(o[1])],$=y*M[1]*M[0]+b*k[1]*k[0],G=y*M[1]*T[0]+b*k[1]*O[0],oe=y*T[1]+b*O[1];return[radiansToDegrees(Math.atan2(G,$)),radiansToDegrees(Math.atan2(oe,Math.sqrt($*$+G*G)))]}}function Th(e,r){for(var t=0,n=[],i=0;iv){var $=O.p1,G=O.p2,oe=(v-O.lastTotalDistance)/O.distance,ye=Yr(G,$,oe);y=ye[0],b=ye[1];break}}return{lng:y,lat:b,height:0}}function Yr(e,r,t){return[e[0]*t+r[0]*(1-t),e[1]*t+r[1]*(1-t)]}function ol(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function Dc(e,r){var t=r.featureId,n=e.data.dataArray;return typeof t=="number"&&(n=n.filter(function(i){var o=i.id;return o===t})),n.map(function(i){var o=eu(i,r);return _objectSpread(_objectSpread({},i),o)})}function wh(e,r){return new Promise(function(t){e.inited?t(Dc(e,r)):e.once("update",function(){t(Dc(e,r))})})}function eu(e,r){var t=r.offset,n=r.shape,i=r.thetaOffset,o=r.mapVersion,s=r.segmentNumber,l=s===void 0?30:s,f=r.autoFit,v=f===void 0?!0:f,y=e.coordinates;if(n==="line")return pathLineAtOffset(y,t);var b=y[0],T=y[1],M=typeof i=="string"?e[i]||0:i,O;switch(n){case"arc":O=arcLineAtOffset;break;case"greatcircle":O=greatCircleLineAtOffset;break;default:O=arcLineAtOffset}var k=O(b,T,t,M,o,l,v),$=_slicedToArray(k,3),G=$[0],oe=$[1],ye=$[2];return{lng:G,lat:oe,height:ye}}var Fs=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,t=arguments.length>1?arguments[1]:void 0;(0,q.Z)(this,e),this.limit=r,this.destroy=t||this.defaultDestroy,this.order=[],this.clear()}return(0,V.Z)(e,[{key:"clear",value:function(){var t=this;this.order.forEach(function(n){t.delete(n)}),this.cache={},this.order=[]}},{key:"get",value:function(t){var n=this.cache[t];return n&&(this.deleteOrder(t),this.appendOrder(t)),n}},{key:"set",value:function(t,n){this.cache[t]?(this.delete(t),this.cache[t]=n,this.appendOrder(t)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[t]=n,this.appendOrder(t))}},{key:"delete",value:function(t){var n=this.cache[t];n&&(this.deleteCache(t),this.deleteOrder(t),this.destroy(n,t))}},{key:"deleteCache",value:function(t){delete this.cache[t]}},{key:"deleteOrder",value:function(t){var n=this.order.findIndex(function(i){return i===t});n>=0&&this.order.splice(n,1)}},{key:"appendOrder",value:function(t){this.order.push(t)}},{key:"defaultDestroy",value:function(t,n){return null}}]),e}();function Nf(e){if(e.length===0)throw new Error("max requires at least one data point");for(var r=e[0],t=1;tr&&(r=e[t]);return r*1}function Uf(e){if(e.length===0)throw new Error("min requires at least one data point");for(var r=e[0],t=1;tn&&(n=i,t=r),i=1,r=e[o]):i++;return t*1}var Il={min:Uf,max:Nf,mean:Lu,sum:Yo,mode:sp};function lf(e,r){return e.map(function(t){return t[r]})}function up(e,r){return Il[e](r)}var Ct=L(47801),Ie=L(95325),B=L(73273),Ys=L(51726),me=L.n(Ys);function Bo(e,r){r===void 0&&(r={});var t=Number(e[0]),n=Number(e[1]),i=Number(e[2]),o=Number(e[3]);if(e.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[t,n],l=[t,o],f=[i,o],v=[i,n];return yr([[s,v,f,l,s]],r.properties,{bbox:e,id:r.id})}var no=L(11312),vu=L.n(no),bs=function(e){return e.Realtime="realtime",e.Overlap="overlap",e.Replace="replace",e}({}),Da=function(e){return e.Loading="Loading",e.Loaded="Loaded",e.Failure="Failure",e.Cancelled="Cancelled",e}({}),nc=0,On=1,gn=2;function Bs(e){e.forEach(function(r){r.isCurrent&&(r.isVisible=r.isLoaded)})}function qo(e){e.forEach(function(r){r.properties.state=nc}),e.forEach(function(r){r.isCurrent&&!ka(r)&&Ls(r)}),e.forEach(function(r){r.isVisible=!!(r.properties.state&gn)})}function mu(e){e.forEach(function(t){t.properties.state=nc}),e.forEach(function(t){t.isCurrent&&ka(t)});var r=e.slice().sort(function(t,n){return t.z-n.z});r.forEach(function(t){t.isVisible=!!(t.properties.state&gn),t.children.length&&(t.isVisible||t.properties.state&On)?t.children.forEach(function(n){n.properties.state=On}):t.isCurrent&&Ls(t)})}function ka(e){for(;e;){if(e.isLoaded)return e.properties.state|=gn,!0;e=e.parent}return!1}function Ls(e){e.children.forEach(function(r){r.isLoaded?r.properties.state|=gn:Ls(r)})}var qs,kc=256,ea=[-1/0,-1/0,1/0,1/0],To=.2,Ch=5,Pl=(qs={},(0,B.Z)(qs,bs.Realtime,Bs),(0,B.Z)(qs,bs.Overlap,qo),(0,B.Z)(qs,bs.Replace,mu),qs),zf=function(){};function gu(e,r,t){var n=Math.floor((e+180)/360*Math.pow(2,t)),i=Math.floor((1-Math.log(Math.tan(r*Math.PI/180)+1/Math.cos(r*Math.PI/180))/Math.PI)/2*Math.pow(2,t));return[n,i]}function Es(e,r,t){var n=e/Math.pow(2,t)*360-180,i=Math.PI-2*Math.PI*r/Math.pow(2,t),o=180/Math.PI*Math.atan(.5*(Math.exp(i)-Math.exp(-i)));return[n,o]}var ic=function(r,t,n){var i=Es(r,t,n),o=(0,yn.Z)(i,2),s=o[0],l=o[1],f=Es(r+1,t+1,n),v=(0,yn.Z)(f,2),y=v[0],b=v[1];return[s,b,y,l]};function Nu(e){var r=e.zoom,t=e.latLonBounds,n=e.maxZoom,i=n===void 0?1/0:n,o=e.minZoom,s=o===void 0?0:o,l=e.zoomOffset,f=l===void 0?0:l,v=e.extent,y=v===void 0?ea:v,b=Math.ceil(r)+f;if(Number.isFinite(s)&&bi&&(b=i);for(var T=(0,yn.Z)(t,4),M=T[0],O=T[1],k=T[2],$=T[3],G=[Math.max(M,y[0]),Math.max(O,y[1]),Math.min(k,y[2]),Math.min($,y[3])],oe=[],ye=gu(G[0],G[1],b),Le=(0,yn.Z)(ye,2),$e=Le[0],ut=Le[1],vt=gu(G[2],G[3],b),Rt=(0,yn.Z)(vt,2),Jt=Rt[0],Mr=Rt[1],br=$e;br<=Jt;br++)for(var pn=Mr;pn<=ut;pn++)oe.push({x:br,y:pn,z:b});var kn=(Jt+$e)/2,Pi=(ut+Mr)/2,xa=function(_s,as){return Math.abs(_s-kn)+Math.abs(as-Pi)};return oe.sort(function(is,_s){return xa(is.x,is.y)-xa(_s.x,_s.y)}),oe}var Zf=function(r,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=Math.pow(2,n),s=o-1,l=o,f=r,v=t;return i&&(f<0?f=f+l:f>s&&(f=f%l)),{warpX:f,warpY:v}};function Fc(e){var r=cf();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function cf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Vf=function(e){(0,De.Z)(t,e);var r=Fc(t);function t(n){var i;(0,q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Ie.Z)(i),"tileSize",256),(0,B.Z)((0,Ie.Z)(i),"isVisible",!1),(0,B.Z)((0,Ie.Z)(i),"isCurrent",!1),(0,B.Z)((0,Ie.Z)(i),"isVisibleChange",!1),(0,B.Z)((0,Ie.Z)(i),"loadedLayers",0),(0,B.Z)((0,Ie.Z)(i),"isLayerLoaded",!1),(0,B.Z)((0,Ie.Z)(i),"isLoad",!1),(0,B.Z)((0,Ie.Z)(i),"isChildLoad",!1),(0,B.Z)((0,Ie.Z)(i),"parent",null),(0,B.Z)((0,Ie.Z)(i),"children",[]),(0,B.Z)((0,Ie.Z)(i),"data",null),(0,B.Z)((0,Ie.Z)(i),"properties",{}),(0,B.Z)((0,Ie.Z)(i),"loadDataId",0);var o=n.x,s=n.y,l=n.z,f=n.tileSize,v=n.warp,y=v===void 0?!0:v;return i.x=o,i.y=s,i.z=l,i.warp=y||!0,i.tileSize=f,i}return(0,V.Z)(t,[{key:"isLoading",get:function(){return this.loadStatus===Da.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===Da.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===Da.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===Da.Cancelled}},{key:"isDone",get:function(){return[Da.Loaded,Da.Cancelled,Da.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return ic(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var i=(0,yn.Z)(this.bounds,4),o=i[0],s=i[1],l=i[2],f=i[3],v=[(l-o)/2,(f-s)/2],y=Bo(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:v,meta:` +`)}function v(b){return b.map(y).join(e)}function y(b){return b==null?"":b instanceof Date?Tr(b):r.test(b+="")?'"'+b.replace(/"/g,'""')+'"':b}return{parse:n,parseRows:i,format:s,formatBody:l,formatRows:f,formatRow:v,formatValue:y}}var lr=hr(","),At=lr.parse,ut=lr.parseRows,It=lr.format,qe=lr.formatBody,Ct=lr.formatRows,fr=lr.formatRow,re=lr.formatValue,V=L(93264),K=63710088e-1,Me={centimeters:K*100,centimetres:K*100,degrees:K/111325,feet:K*3.28084,inches:K*39.37,kilometers:K/1e3,kilometres:K/1e3,meters:K,metres:K,miles:K/1609.344,millimeters:K*1e3,millimetres:K*1e3,nauticalmiles:K/1852,radians:1,yards:K*1.0936},Se={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/K,yards:1.0936133},nt={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function te(e,r,t){t===void 0&&(t={});var n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}function Ce(e,r,t){switch(t===void 0&&(t={}),e){case"Point":return we(r).geometry;case"LineString":return on(r).geometry;case"Polygon":return Lt(r).geometry;case"MultiPoint":return bn(r).geometry;case"MultiLineString":return Un(r).geometry;case"MultiPolygon":return Kr(r).geometry;default:throw new Error(e+" is invalid")}}function we(e,r,t){if(t===void 0&&(t={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ie(e[0])||!ie(e[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:e};return te(n,r,t)}function Xe(e,r,t){return t===void 0&&(t={}),Hr(e.map(function(n){return we(n,r)}),t)}function Lt(e,r,t){t===void 0&&(t={});for(var n=0,i=e;n=0))throw new Error("precision must be a positive number");var t=Math.pow(10,r||0);return Math.round(e*t)/t}function Ri(e,r){r===void 0&&(r="kilometers");var t=Me[r];if(!t)throw new Error(r+" units is invalid");return e*t}function Gn(e,r){r===void 0&&(r="kilometers");var t=Me[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Dn(e,r){return Yi(Gn(e,r))}function Ya(e){var r=e%360;return r<0&&(r+=360),r}function Yi(e){var r=e%(2*Math.PI);return r*180/Math.PI}function Na(e){var r=e%360;return r*Math.PI/180}function Dt(e,r,t){if(r===void 0&&(r="kilometers"),t===void 0&&(t="kilometers"),!(e>=0))throw new Error("length must be a positive number");return Ri(Gn(e,r),t)}function k(e,r,t){if(r===void 0&&(r="meters"),t===void 0&&(t="kilometers"),!(e>=0))throw new Error("area must be a positive number");var n=nt[r];if(!n)throw new Error("invalid original units");var i=nt[t];if(!i)throw new Error("invalid final units");return e/n*i}function ie(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function ve(e){return!!e&&e.constructor===Object}function Ze(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(r){if(!ie(r))throw new Error("bbox must only contain numbers")})}function _t(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}function Wt(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Sr(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function He(e){if(e.length>1&&isNumber(e[0])&&isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return He(e[0]);throw new Error("coordinates must only contain numbers")}function Et(e,r,t){if(!r||!t)throw new Error("type and name required");if(!e||e.type!==r)throw new Error("Invalid input to "+t+": must be a "+r+", given "+e.type)}function cr(e,r,t){if(!e)throw new Error("No feature passed");if(!t)throw new Error(".featureOf() requires a name");if(!e||e.type!=="Feature"||!e.geometry)throw new Error("Invalid input to "+t+", Feature with geometry required");if(!e.geometry||e.geometry.type!==r)throw new Error("Invalid input to "+t+": must be a "+r+", given "+e.geometry.type)}function mr(e,r,t){if(!e)throw new Error("No featureCollection passed");if(!t)throw new Error(".collectionOf() requires a name");if(!e||e.type!=="FeatureCollection")throw new Error("Invalid input to "+t+", FeatureCollection required");for(var n=0,i=e.features;nf||O>v||F>y){l=b,f=n,v=O,y=F,o=0;return}var $=lineString([l,b],t.properties);if(r($,n,i,F,o)===!1)return!1;o++,l=b})===!1)return!1}}})}function oe(e,r,t){var n=t,i=!1;return J(e,function(o,s,l,f,v){i===!1&&t===void 0?n=o:n=r(n,o,s,l,f,v),i=!0}),n}function be(e,r){if(!e)throw new Error("geojson is required");hi(e,function(t,n,i){if(t.geometry!==null){var o=t.geometry.type,s=t.geometry.coordinates;switch(o){case"LineString":if(r(t,n,i,0,0)===!1)return!1;break;case"Polygon":for(var l=0;l=200&&t.status<300||t.status===0)&&t.response!==null){var o=t.response;if(e.type==="json")try{o=JSON.parse(t.response)}catch(l){return r(l)}r(null,o,t.getResponseHeader("Cache-Control"),t.getResponseHeader("Expires"),t)}else{var s=new Blob([t.response],{type:t.getResponseHeader("Content-Type")});r(new tn(t.status,t.statusText,n.toString(),s))}},t.cancel=t.abort,t.send(e.body),t}function qi(e){return new Promise(function(r,t){vi(e,function(n,i,o,s,l){n?t({err:n,data:null,xhr:l}):r({err:null,data:i,cacheControl:o,expires:s,xhr:l})})})}function ci(e,r){return vi(e,r)}var zi=function(r,t){var n=pi(r.url)||ci;return n((0,V.Z)((0,V.Z)({},r),{},{type:"json"}),t)},Ai=function(r,t){var n=pi(r.url)||ci;return n((0,V.Z)((0,V.Z)({},r),{},{type:"arrayBuffer"}),t)},Xo=function(r,t){return ci(_objectSpread(_objectSpread({},r),{},{method:"POST"}),t)},Ji=function(r,t){return ci((0,V.Z)((0,V.Z)({},r),{},{method:"GET"}),t)};function Ia(e){var r=window.document.createElement("a");return r.href=e,r.protocol===window.document.location.protocol&&r.host===window.document.location.host}var Ti="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function mi(e,r){var t=new window.Image,n=window.URL||window.webkitURL;t.crossOrigin="anonymous",t.onload=function(){r(null,t),n.revokeObjectURL(t.src),t.onload=null,window.requestAnimationFrame(function(){t.src=Ti})},t.onerror=function(){return r(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var i=new Blob([new Uint8Array(e)],{type:"image/png"});t.src=e.byteLength?n.createObjectURL(i):Ti}function wi(e,r){var t=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(t).then(function(n){r(null,n)}).catch(function(n){r(new Error("Could not load image because of ".concat(n.message,". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")))})}var Pa=function(r,t,n){var i=function(s,l){if(s)t(s);else if(l){var f=typeof createImageBitmap=="function",v=n?n(l):l;f?wi(v,t):mi(v,t)}};return r.type==="json"?zi(r,i):Ai(r,i)},cu=function(r,t){var n=typeof createImageBitmap=="function";n?wi(r,t):mi(r,t)},ma=function(e){return e.CENTER="center",e.TOP="top",e["TOP-LEFT"]="top-left",e["TOP-RIGHT"]="top-right",e.BOTTOM="bottom",e["BOTTOM-LEFT"]="bottom-left",e["BOTTOM-RIGHT"]="bottom-right",e.LEFT="left",e.RIGHT="right",e}({}),Aa={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function $l(e,r,t){var n=e.classList;for(var i in Aa)Aa.hasOwnProperty(i)&&n.remove("l7-".concat(t,"-anchor-").concat(i));n.add("l7-".concat(t,"-anchor-").concat(r))}var os=L(19007);function Ta(e){return typeof e=="string"?!!d3.color(e):!1}function fi(e){var r=os.ZP(e),t=[0,0,0,0];return r!=null&&(t[0]=r.r/255,t[1]=r.g/255,t[2]=r.b/255,t[3]=r.opacity),t}function Oa(e){var r=e&&e[0],t=e&&e[1],n=e&&e[2],i=r+t*256+n*65536-1;return i}function sa(e){return[e+1&255,e+1>>8&255,e+1>>8>>8&255]}function Ao(e){var r=window.document.createElement("canvas"),t=r.getContext("2d");r.width=256,r.height=1;for(var n=null,i=t.createLinearGradient(0,0,256,1),o=e.positions[0],s=e.positions[e.positions.length-1],l=0;l0&&new RegExp("(^|\\s)"+r+"(\\s|$)").test(t)}function Ha(e,r){e instanceof HTMLElement?e.className=r:e.className.baseVal=r}function ef(e){return e instanceof SVGElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function Vp(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}var xs=rp(["transform","WebkitTransform"]);function Fu(e,r){e.style[xs]=r}function ku(){if(typeof Event=="function")window.dispatchEvent(new Event("resize"));else{var e=window.document.createEvent("UIEvents");e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e)}}function ql(e){var r=["padding: "+(e.height/2-8)+"px "+e.width/2+"px;","line-height: "+e.height+"px;","background-image: url("+e.toDataURL()+");"];console.log(`%c +`,r.join(""))}function If(){var e,r=window.document.querySelector('meta[name="viewport"]');if(!r)return 1;var t=(e=r.content)===null||e===void 0?void 0:e.split(","),n=t.find(function(i){var o=i.split("="),s=(0,Sn.Z)(o,1),l=s[0];return l==="initial-scale"});return n?n.split("=")[1]*1:1}var wa=If()<1?1:window.devicePixelRatio;function Qs(e,r){e.setAttribute("style","".concat(e.style.cssText).concat(r))}function Rc(e){return e.split(";").map(function(r){return r.trim()}).filter(function(r){return r})}function Kl(e,r){var t,n=Rc((t=e.getAttribute("style"))!==null&&t!==void 0?t:""),i=Rc(r),o=el.apply(void 0,[n].concat((0,Kt.Z)(i)));e.setAttribute("style",o.join(";"))}function rl(e){return Object.entries(e).map(function(r){var t=(0,Sn.Z)(r,2),n=t[0],i=t[1];return"".concat(n,": ").concat(i)}).join(";")}function gh(e,r){return{left:e.left-r.left,top:e.top-r.top,right:r.left+r.width-e.left-e.width,bottom:r.top+r.height-e.top-e.height}}function Ql(e,r){e.checked=r,r?e.setAttribute("checked","true"):e.removeAttribute("checked")}function ca(e){e.innerHTML=""}function tf(e){e.setAttribute("draggable","false")}function np(e,r){if(typeof r=="string"){var t=document.createElement("div");for(t.innerHTML=r;t.firstChild;)e.append(t.firstChild)}else Array.isArray(r)?e.append.apply(e,(0,Kt.Z)(r)):e.append(r)}function Tl(e,r){for(var t=Array.isArray(r)?r:[r],n=e;n instanceof Element&&n!==window.document.body;){var i,o;if(t.find(function(s){var l;return(l=n)===null||l===void 0?void 0:l.matches(s)}))return n;n=(i=(o=n)===null||o===void 0?void 0:o.parentElement)!==null&&i!==void 0?i:null}}var Jl;function _h(e){return typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap}function Pf(){return typeof importScripts=="function"}var wl=Pf()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},hu=(Jl=navigator)===null||Jl===void 0?void 0:Jl.userAgent,Mc=!!hu.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),rf=hu.indexOf("Android")>-1||hu.indexOf("Adr")>-1;function ec(){for(var e=hu,r=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],t=!0,n=0,i=r;n0){t=!1;break}}return t}function tc(e,r){e.forEach(function(t){r[t]&&(r[t]=r[t].bind(r))})}var ip=null;function nl(e){var r=[1/0,1/0,-1/0,-1/0];return En(e,function(t){r[0]>t[0]&&(r[0]=t[0]),r[1]>t[1]&&(r[1]=t[1]),r[2]n&&e.lng<=o&&e.lat>i&&e.lat<=s}function Cl(e){var r=[1/0,1/0,-1/0,-1/0];return e.forEach(function(t){var n=t.coordinates;pu(r,n)}),r}function pu(e,r){return Array.isArray(r[0])?r.forEach(function(t){pu(e,t)}):(e[0]>r[0]&&(e[0]=r[0]),e[1]>r[1]&&(e[1]=r[1]),e[2]1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{enable:!0,decimal:1};e=Df(e,r);var n=e[0],i=e[1],o=n*Ic/180,s=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return s=s*Ic/180,t.enable&&(o=Number(o.toFixed(t.decimal)),s=Number(s.toFixed(t.decimal))),e.length===3?[o,s,e[2]]:[o,s]}function Md(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,t=e[0],n=e[1],i=t/Ic*180,o=n/Ic*180;return o=180/Math.PI*(2*Math.atan(Math.exp(o*Math.PI/180))-Math.PI/2),r!=null&&(i=Number(i.toFixed(r)),o=Number(o.toFixed(r))),e.length===3?[i,o,e[2]]:[i,o]}function Of(e){if(e==null)throw new Error("lng is required");return(e>180||e<-180)&&(e=e%360,e>180&&(e=-360+e),e<-180&&(e=360+e),e===0&&(e=0)),e}function xh(e){if(e==null)throw new Error("lat is required");return(e>90||e<-90)&&(e=e%180,e>90&&(e=-180+e),e<-90&&(e=180+e),e===0&&(e=0)),e}function Df(e,r){if(r===!1)return e;var t=Of(e[0]),n=xh(e[1]);return n>85&&(n=85),n<-85&&(n=-85),e.length===3?[t,n,e[2]]:[t,n]}function Fo(e){var r=85.0511287798,t=Math.max(Math.min(r,e[1]),-r),n=256<<20,i=Math.PI/180,o=e[0]*i,s=t*i;s=Math.log(Math.tan(Math.PI/4+s/2));var l=.5/Math.PI,f=.5,v=-.5/Math.PI;return i=.5,o=n*(l*o+f),s=n*(v*s+i),[Math.floor(o),Math.floor(s)]}function bh(e){var r=.5/Math.PI,t=.5,n=-.5/Math.PI,i=.5,o=256<<20,s=_slicedToArray(e,2),l=s[0],f=s[1];l=(l/o-t)/r,f=(f/o-i)/n,f=(Math.atan(Math.pow(Math.E,f))-Math.PI/4)*2,i=Math.PI/180;var v=f/i,y=l/i;return[y,v]}function ap(e,r){var t=85.0511287798,n=Math.PI/180,i=6378137;return r=Math.max(Math.min(t,r),-t),e*=n,r*=n,r=Math.log(Math.tan(Math.PI/4+r/2)),[e*i,r*i]}function Ff(e,r){var t=Math.PI/180,n=6378137,i=e/n/t,o=2*(Math.atan(Math.exp(r/n))-Math.PI/4)/t;return[i,o]}function Eh(e,r,t){var n=Na(r[1]-e[1]),i=Na(r[0]-e[0]),o=Na(e[1]),s=Na(r[1]),l=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(i/2),2)*Math.cos(o)*Math.cos(s);return Ri(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),t="meters")}function Oc(e){var r=Math.PI/180,t=85.0511287798,n=6378137,i=Math.max(Math.min(t,e[1]),-t),o=Math.sin(i*r),s=n*e[0]*r,l=n*Math.log((1+o)/(1-o))/2;return[s,l]}function of(e,r){var t=Math.abs(e[1][1]-e[0][1])*r,n=Math.abs(e[1][0]-e[0][0])*r;return[[e[0][0]-n,e[0][1]-t],[e[1][0]+n,e[1][1]+t]]}function il(e,r){return e[0][0]<=r[0][0]&&e[0][1]<=r[0][1]&&e[1][0]>=r[1][0]&&e[1][1]>=r[1][1]}function pa(e){return[[e[0],e[1]],[e[2],e[3]]]}function kf(e){var r=du(e,[0,0]);return[e[0]/r,e[1]/r]}function du(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function Rl(e,r){return e[0]*r[0]+e[1]*r[1]}function Li(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ca(e,r){return Math.acos(Rl(e,r)/(Li(e)*Li(r)))*180/Math.PI}function Ys(e,r){return r[0]>0?r[1]>0?90-Math.atan(r[1]/r[0])*180/Math.PI:90+Math.atan(-r[1]/r[0])*180/Math.PI:r[1]<0?180+(90-Math.atan(r[1]/r[0])*180/Math.PI):270+Math.atan(r[1]/-r[0])*180/Math.PI}function Bf(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;if(!(!e||e.length<2)){for(var t=[0,1],n=0,i=[],o=0;o0){var b=i[o-1].rotation;b-y>360-b+y&&(y=y+360)}i.push({start:s,end:l,dis:f,rotation:y,duration:0})}return i.map(function(T){T.duration=r*(T.dis/n)}),i}}function Fs(e){if(nf(e[0]))return e;if(nf(e[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(nf(e[0][0][0])){var r=e,t=0,n=0,i=0;return r.forEach(function(o){o.forEach(function(s){t+=s[0],n+=s[1],i++})}),[t/i,n/i,0]}else throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8")}function sf(e){for(var r=e[0],t=e[1],n=e[0],i=e[1],o=0,s=0,l=0,f=0;fi&&(n=Math.floor(n/t)),n=n*r+e.charCodeAt(o);return n}function Lf(e){e=e.toString();for(var r=5381,t=e.length;t;)r=r*33^e.charCodeAt(--t);return r>>>0}function Ml(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var r=Math.random()*16|0,t=e==="x"?r:r&3|8;return t.toString(16)})}var ko=function(e){return e["GAODE1.x"]="GAODE1.x",e["GAODE2.x"]="GAODE2.x",e.MAPBOX="MAPBOX",e.DEFAULT="DEFAUlTMAP",e.SIMPLE="SIMPLE",e.GLOBEL="GLOBEL",e}({});function Wa(e,r,t,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,s=arguments.length>6?arguments[6]:void 0,l=t;return s&&(l=Math.round(t*(o-1))/(o-1)),n?_n(e,r,l,n,i):_n(e,r,l,.314,i)}function al(e,r){var t=1-r;return(e[0]*t+e[1]*r)*t+(e[1]*t+e[2]*r)*r}function Ah(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function Ka(e,r,t){var n=[r[0]-e[0],r[1]-e[1]],i=Ah(n,[0,0]),o=Math.atan2(n[1],n[0]),s=i/2/Math.cos(t),l=o+t,f=[s*Math.cos(l)+e[0],s*Math.sin(l)+e[1]];return f}function _n(e,r,t,n,i){if(i===MapType["GAODE2.x"]){var o=amap2Project(e[0],e[1]),s=amap2Project(r[0],r[1]),l=Ka(o,s,n),f=[o[0],l[0],s[0]],v=[o[1],l[1],s[1]];return[].concat(_toConsumableArray(amap2UnProject(al(f,t),al(v,t))),[0])}else{var y=Ka(e,r,n),b=[e[0],y[0],r[0]],T=[e[1],y[1],r[1]];return[al(b,t),al(T,t),0]}}function ks(e,r,t,n,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:30,s=arguments.length>6?arguments[6]:void 0,l=t;return s&&(l=Math.round(t*29)/29),ga(e,r,l,i)}function uf(e,r){var t=[r[0]-e[0],r[1]-e[1]],n=calDistance(t,[0,0]),i=Math.atan2(t[1],t[0]),o=.314,s=n/2/Math.cos(o),l=i+o,f=[s*Math.cos(l)+e[0],s*Math.sin(l)+e[1]];return f}function rc(e,r){var t=1-r;return(e[0]*t+e[1]*r)*t+(e[1]*t+e[2]*r)*r}function us(e,r){var t=[e[0]-r[0],e[1]-r[1]],n=[Math.sin(t[0]/2),Math.sin(t[1]/2)],i=n[1]*n[1]+Math.cos(e[1])*Math.cos(r[1])*n[0]*n[0];return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))}function ga(e,r,t,n){var i=[degreesToRadians(e[0]),degreesToRadians(e[1])],o=[degreesToRadians(r[0]),degreesToRadians(r[1])];if(n==="GAODE2.x"){var s=uf(i,o),l=[i[0],s[0],o[0]],f=[i[1],s[1],o[1]];return[rc(l,t),rc(f,t),0]}else{var v=us(i,o);if(Math.abs(v-Math.PI)<.001)return[(1-t)*i[0]+t*o[0],(1-t)*i[1]+t*o[1]];var y=Math.sin((1-t)*v)/Math.sin(v),b=Math.sin(t*v)/Math.sin(v),T=[Math.sin(i[0]),Math.sin(i[1])],M=[Math.cos(i[0]),Math.cos(i[1])],O=[Math.sin(o[0]),Math.sin(o[1])],F=[Math.cos(o[0]),Math.cos(o[1])],$=y*M[1]*M[0]+b*F[1]*F[0],G=y*M[1]*T[0]+b*F[1]*O[0],ue=y*T[1]+b*O[1];return[radiansToDegrees(Math.atan2(G,$)),radiansToDegrees(Math.atan2(ue,Math.sqrt($*$+G*G)))]}}function Th(e,r){for(var t=0,n=[],i=0;iv){var $=O.p1,G=O.p2,ue=(v-O.lastTotalDistance)/O.distance,xe=qr(G,$,ue);y=xe[0],b=xe[1];break}}return{lng:y,lat:b,height:0}}function qr(e,r,t){return[e[0]*t+r[0]*(1-t),e[1]*t+r[1]*(1-t)]}function ol(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function Dc(e,r){var t=r.featureId,n=e.data.dataArray;return typeof t=="number"&&(n=n.filter(function(i){var o=i.id;return o===t})),n.map(function(i){var o=eu(i,r);return _objectSpread(_objectSpread({},i),o)})}function wh(e,r){return new Promise(function(t){e.inited?t(Dc(e,r)):e.once("update",function(){t(Dc(e,r))})})}function eu(e,r){var t=r.offset,n=r.shape,i=r.thetaOffset,o=r.mapVersion,s=r.segmentNumber,l=s===void 0?30:s,f=r.autoFit,v=f===void 0?!0:f,y=e.coordinates;if(n==="line")return pathLineAtOffset(y,t);var b=y[0],T=y[1],M=typeof i=="string"?e[i]||0:i,O;switch(n){case"arc":O=arcLineAtOffset;break;case"greatcircle":O=greatCircleLineAtOffset;break;default:O=arcLineAtOffset}var F=O(b,T,t,M,o,l,v),$=_slicedToArray(F,3),G=$[0],ue=$[1],xe=$[2];return{lng:G,lat:ue,height:xe}}var Bs=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:50,t=arguments.length>1?arguments[1]:void 0;(0,Q.Z)(this,e),this.limit=r,this.destroy=t||this.defaultDestroy,this.order=[],this.clear()}return(0,j.Z)(e,[{key:"clear",value:function(){var t=this;this.order.forEach(function(n){t.delete(n)}),this.cache={},this.order=[]}},{key:"get",value:function(t){var n=this.cache[t];return n&&(this.deleteOrder(t),this.appendOrder(t)),n}},{key:"set",value:function(t,n){this.cache[t]?(this.delete(t),this.cache[t]=n,this.appendOrder(t)):(Object.keys(this.cache).length===this.limit&&this.delete(this.order[0]),this.cache[t]=n,this.appendOrder(t))}},{key:"delete",value:function(t){var n=this.cache[t];n&&(this.deleteCache(t),this.deleteOrder(t),this.destroy(n,t))}},{key:"deleteCache",value:function(t){delete this.cache[t]}},{key:"deleteOrder",value:function(t){var n=this.order.findIndex(function(i){return i===t});n>=0&&this.order.splice(n,1)}},{key:"appendOrder",value:function(t){this.order.push(t)}},{key:"defaultDestroy",value:function(t,n){return null}}]),e}();function Nf(e){if(e.length===0)throw new Error("max requires at least one data point");for(var r=e[0],t=1;tr&&(r=e[t]);return r*1}function Uf(e){if(e.length===0)throw new Error("min requires at least one data point");for(var r=e[0],t=1;tn&&(n=i,t=r),i=1,r=e[o]):i++;return t*1}var Il={min:Uf,max:Nf,mean:Lu,sum:Yo,mode:sp};function lf(e,r){return e.map(function(t){return t[r]})}function up(e,r){return Il[e](r)}var Pt=L(64632),Fe=L(13547),B=L(6346),qs=L(29972),ge=L.n(qs);function Bo(e,r){r===void 0&&(r={});var t=Number(e[0]),n=Number(e[1]),i=Number(e[2]),o=Number(e[3]);if(e.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var s=[t,n],l=[t,o],f=[i,o],v=[i,n];return Lt([[s,v,f,l,s]],r.properties,{bbox:e,id:r.id})}var io=L(11488),vu=L.n(io),bs=function(e){return e.Realtime="realtime",e.Overlap="overlap",e.Replace="replace",e}({}),Da=function(e){return e.Loading="Loading",e.Loaded="Loaded",e.Failure="Failure",e.Cancelled="Cancelled",e}({}),nc=0,kn=1,yn=2;function Ls(e){e.forEach(function(r){r.isCurrent&&(r.isVisible=r.isLoaded)})}function qo(e){e.forEach(function(r){r.properties.state=nc}),e.forEach(function(r){r.isCurrent&&!Fa(r)&&Ns(r)}),e.forEach(function(r){r.isVisible=!!(r.properties.state&yn)})}function mu(e){e.forEach(function(t){t.properties.state=nc}),e.forEach(function(t){t.isCurrent&&Fa(t)});var r=e.slice().sort(function(t,n){return t.z-n.z});r.forEach(function(t){t.isVisible=!!(t.properties.state&yn),t.children.length&&(t.isVisible||t.properties.state&kn)?t.children.forEach(function(n){n.properties.state=kn}):t.isCurrent&&Ns(t)})}function Fa(e){for(;e;){if(e.isLoaded)return e.properties.state|=yn,!0;e=e.parent}return!1}function Ns(e){e.children.forEach(function(r){r.isLoaded?r.properties.state|=yn:Ns(r)})}var Ks,Fc=256,ra=[-1/0,-1/0,1/0,1/0],wo=.2,Ch=5,Pl=(Ks={},(0,B.Z)(Ks,bs.Realtime,Ls),(0,B.Z)(Ks,bs.Overlap,qo),(0,B.Z)(Ks,bs.Replace,mu),Ks),zf=function(){};function gu(e,r,t){var n=Math.floor((e+180)/360*Math.pow(2,t)),i=Math.floor((1-Math.log(Math.tan(r*Math.PI/180)+1/Math.cos(r*Math.PI/180))/Math.PI)/2*Math.pow(2,t));return[n,i]}function Es(e,r,t){var n=e/Math.pow(2,t)*360-180,i=Math.PI-2*Math.PI*r/Math.pow(2,t),o=180/Math.PI*Math.atan(.5*(Math.exp(i)-Math.exp(-i)));return[n,o]}var ic=function(r,t,n){var i=Es(r,t,n),o=(0,Sn.Z)(i,2),s=o[0],l=o[1],f=Es(r+1,t+1,n),v=(0,Sn.Z)(f,2),y=v[0],b=v[1];return[s,b,y,l]};function Nu(e){var r=e.zoom,t=e.latLonBounds,n=e.maxZoom,i=n===void 0?1/0:n,o=e.minZoom,s=o===void 0?0:o,l=e.zoomOffset,f=l===void 0?0:l,v=e.extent,y=v===void 0?ra:v,b=Math.ceil(r)+f;if(Number.isFinite(s)&&bi&&(b=i);for(var T=(0,Sn.Z)(t,4),M=T[0],O=T[1],F=T[2],$=T[3],G=[Math.max(M,y[0]),Math.max(O,y[1]),Math.min(F,y[2]),Math.min($,y[3])],ue=[],xe=gu(G[0],G[1],b),ze=(0,Sn.Z)(xe,2),Je=ze[0],ht=ze[1],gt=gu(G[2],G[3],b),Ot=(0,Sn.Z)(gt,2),tr=Ot[0],Ir=Ot[1],Er=Je;Er<=tr;Er++)for(var mn=Ir;mn<=ht;mn++)ue.push({x:Er,y:mn,z:b});var Ln=(tr+Je)/2,Fi=(ht+Ir)/2,xa=function(_s,as){return Math.abs(_s-Ln)+Math.abs(as-Fi)};return ue.sort(function(is,_s){return xa(is.x,is.y)-xa(_s.x,_s.y)}),ue}var Zf=function(r,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=Math.pow(2,n),s=o-1,l=o,f=r,v=t;return i&&(f<0?f=f+l:f>s&&(f=f%l)),{warpX:f,warpY:v}};function kc(e){var r=cf();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function cf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Vf=function(e){(0,Le.Z)(t,e);var r=kc(t);function t(n){var i;(0,Q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Fe.Z)(i),"tileSize",256),(0,B.Z)((0,Fe.Z)(i),"isVisible",!1),(0,B.Z)((0,Fe.Z)(i),"isCurrent",!1),(0,B.Z)((0,Fe.Z)(i),"isVisibleChange",!1),(0,B.Z)((0,Fe.Z)(i),"loadedLayers",0),(0,B.Z)((0,Fe.Z)(i),"isLayerLoaded",!1),(0,B.Z)((0,Fe.Z)(i),"isLoad",!1),(0,B.Z)((0,Fe.Z)(i),"isChildLoad",!1),(0,B.Z)((0,Fe.Z)(i),"parent",null),(0,B.Z)((0,Fe.Z)(i),"children",[]),(0,B.Z)((0,Fe.Z)(i),"data",null),(0,B.Z)((0,Fe.Z)(i),"properties",{}),(0,B.Z)((0,Fe.Z)(i),"loadDataId",0);var o=n.x,s=n.y,l=n.z,f=n.tileSize,v=n.warp,y=v===void 0?!0:v;return i.x=o,i.y=s,i.z=l,i.warp=y||!0,i.tileSize=f,i}return(0,j.Z)(t,[{key:"isLoading",get:function(){return this.loadStatus===Da.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===Da.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===Da.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===Da.Cancelled}},{key:"isDone",get:function(){return[Da.Loaded,Da.Cancelled,Da.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return ic(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var i=(0,Sn.Z)(this.bounds,4),o=i[0],s=i[1],l=i[2],f=i[3],v=[(l-o)/2,(f-s)/2],y=Bo(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:v,meta:` `.concat(this.key,` - `)}});return y}},{key:"key",get:function(){var i="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return i}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l,f,v,y,b,T,M,O,k,$,G,oe,ye,Le,$e,ut,vt;return me().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return l=s.getData,f=s.onLoad,v=s.onError,this.loadDataId++,y=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=Da.Loading,b=null,Jt.prev=7,M=this.x,O=this.y,k=this.z,$=this.bounds,G=this.tileSize,oe=this.warp,ye=Zf(M,O,k,oe),Le=ye.warpX,$e=ye.warpY,ut=this.abortController.signal,vt={x:Le,y:$e,z:k,bounds:$,tileSize:G,signal:ut,warp:oe},Jt.next=14,l(vt,this);case 14:b=Jt.sent,Jt.next=20;break;case 17:Jt.prev=17,Jt.t0=Jt.catch(7),T=Jt.t0;case 20:if(y===this.loadDataId){Jt.next=22;break}return Jt.abrupt("return");case 22:if(!(this.isCancelled&&!b)){Jt.next=24;break}return Jt.abrupt("return");case 24:if(!(T||!b)){Jt.next=28;break}return this.loadStatus=Da.Failure,v(T,this),Jt.abrupt("return");case 28:this.loadStatus=Da.Loaded,this.data=b,f(this);case 31:case"end":return Jt.stop()}},o,this,[[7,17]])}));function i(o){return n.apply(this,arguments)}return i}()},{key:"reloadData",value:function(i){this.isLoading&&this.abortLoad(),this.loadData(i)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=Da.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),t}(no.EventEmitter),ac=function(r,t){var n=pa(r),i=of(n,t),o=360*3-180,s=85.0511287798065,l=[Math.max(i[0][0],-o),Math.max(i[0][1],-s),Math.min(i[1][0],o),Math.min(i[1][1],s)];return l},oc=function(r,t){var n=pa(r),i=pa(t),o=il(n,i);return o};function Uu(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=zu(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function zu(e,r){if(e){if(typeof e=="string")return tu(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tu(e,r)}}function tu(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0&&b.x0;){var f=i.shift();f.abortLoad()}}},{key:"getTileByLngLat",value:function(i,o,s){var l=this.options.zoomOffset,f=Math.ceil(s)+l,v=gu(i,o,f),y=this.tiles.filter(function(b){return b.key==="".concat(v[0],"_").concat(v[1],"_").concat(f)});return y[0]}},{key:"getTileExtent",value:function(i,o){return this.getTileIndices(o,i)}},{key:"getTileByZXY",value:function(i,o,s){var l=this.tiles.filter(function(f){return f.key==="".concat(o,"_").concat(s,"_").concat(i)});return l[0]}},{key:"clear",value:function(){var i=Uu(this.cacheTiles.values()),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;s.isLoading?s.abortLoad():this.onTileUnload(s)}}catch(l){i.e(l)}finally{i.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var i=this.options.updateStrategy,o=new Map,s=Uu(this.cacheTiles.values()),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;o.set(f.key,f.isVisible),f.isCurrent=!1,f.isVisible=!1}}catch(O){s.e(O)}finally{s.f()}var v=Uu(this.currentTiles),y;try{for(v.s();!(y=v.n()).done;){var b=y.value;b.isCurrent=!0,b.isVisible=!0}}catch(O){v.e(O)}finally{v.f()}var T=Array.from(this.cacheTiles.values());typeof i=="function"?i(T):Pl[i](T);var M=!1;Array.from(this.cacheTiles.values()).forEach(function(O){O.isVisible!==o.get(O.key)?(O.isVisibleChange=!0,M=!0):O.isVisibleChange=!1}),M&&this.emit(Dl.TileUpdate)}},{key:"getTileIndices",value:function(i,o){var s=this.options,l=s.tileSize,f=s.extent,v=s.zoomOffset,y=Math.floor(this.options.maxZoom),b=Math.ceil(this.options.minZoom),T=Nu({maxZoom:y,minZoom:b,zoomOffset:v,tileSize:l,zoom:i,latLonBounds:o,extent:f});return T}},{key:"getTileId",value:function(i,o,s){var l="".concat(i,",").concat(o,",").concat(s);return l}},{key:"loadFinished",value:function(){var i=!this.currentTiles.some(function(o){return!o.isDone});return i&&this.emit(Dl.TilesLoadFinished),i}},{key:"getTile",value:function(i,o,s){var l=this.getTileId(i,o,s),f=this.cacheTiles.get(l);return f}},{key:"createTile",value:function(i,o,s){var l=this.getTileId(i,o,s),f=new Vf({x:i,y:o,z:s,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(l,f),f.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),f}},{key:"resizeCacheTiles",value:function(){var i=Ch*this.currentTiles.length,o=this.cacheTiles.size>i;if(o){var s=Uu(this.cacheTiles),l;try{for(s.s();!(l=s.n()).done;){var f=(0,yn.Z)(l.value,2),v=f[0],y=f[1];if(!y.isVisible&&!this.currentTiles.includes(y)&&(this.cacheTiles.delete(v),this.onTileUnload(y)),this.cacheTiles.size<=i)break}}catch(b){s.e(b)}finally{s.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var i=Uu(this.cacheTiles.values()),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;s.parent=null,s.children.length=0}}catch(b){i.e(b)}finally{i.f()}var l=Uu(this.cacheTiles.values()),f;try{for(l.s();!(f=l.n()).done;){var v=f.value,y=this.getNearestAncestor(v.x,v.y,v.z);v.parent=y,y!=null&&y.children&&y.children.push(v)}}catch(b){l.e(b)}finally{l.f()}}},{key:"getNearestAncestor",value:function(i,o,s){for(;s>this.options.minZoom;){i=Math.floor(i/2),o=Math.floor(o/2),s=s-1;var l=this.getTile(i,o,s);if(l)return l}return null}}]),t}(vu());function Rh(e){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(e)}function Hf(e){var r=[],t=/\{([a-z])-([a-z])\}/.exec(e);if(t){var n=t[1].charCodeAt(0),i=t[2].charCodeAt(0),o;for(o=n;o<=i;++o)r.push(e.replace(t[0],String.fromCharCode(o)));return r}if(t=/\{(\d+)-(\d+)\}/.exec(e),t){for(var s=parseInt(t[2],10),l=parseInt(t[1],10);l<=s;l++)r.push(e.replace(t[0],l.toString()));return r}return r.push(e),r}function h(e,r){if(!e||!e.length)throw new Error("url is not allowed to be empty");var t=r.x,n=r.y,i=r.z,o=Hf(e),s=Math.abs(t+n)%o.length,l=hi(o[s])?"".concat(o[s],"/{z}/{x}/{y}"):o[s];return l.replace(/\{x\}/g,t.toString()).replace(/\{y\}/g,n.toString()).replace(/\{z\}/g,i.toString()).replace(/\{bbox\}/g,ic(t,n,i).join(",")).replace(/\{-y\}/g,(Math.pow(2,i)-n-1).toString())}function d(e,r){var t=r.x,n=r.y,i=r.z,o=r.layer,s=r.version,l=s===void 0?"1.0.0":s,f=r.style,v=f===void 0?"default":f,y=r.format,b=r.service,T=b===void 0?"WMTS":b,M=r.tileMatrixset,O="".concat(e,"&SERVICE=").concat(T,"&REQUEST=GetTile&VERSION=").concat(l,"&LAYER=").concat(o,"&STYLE=").concat(v,"&TILEMATRIXSET=").concat(M,"&FORMAT=").concat(y,"&TILECOL=").concat(t,"&TILEROW=").concat(n,"&TILEMATRIX=").concat(i);return O}function p(e,r){if(!e)throw new Error(r||"web worker helper assertion failed.")}var g={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},S=g.self||g.window||{},w=g.window||g.self||{},C=g.self||g.window||{},P=g.document||{},Z=typeof importScripts=="function",Y=typeof window!="undefined"&&typeof window.orientation!="undefined",ce=function(){function e(r,t){var n=this;this.name=r,this.workerThread=t,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(i,o){n.resolve=i,n.reject=o})}return e.prototype.postMessage=function(r,t){this.workerThread.postMessage({source:"Main thread",type:r,payload:t})},e.prototype.done=function(r){p(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(r)},e.prototype.error=function(r){p(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(r)},e}(),ge=ce,_e=new Map;function Fe(e){p(e.source&&!e.url||!e.source&&e.url);var r=_e.get(e.source||e.url);return r||(e.url&&(r=Pe(e.url),_e.set(e.url,r)),e.source&&(r=Xe(e.source),_e.set(e.source,r))),p(r),r}function Pe(e){if(!e.startsWith("http"))return e;var r=we(e);return Xe(r)}function Xe(e){var r=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(r)}function we(e){return`try { + `)}});return y}},{key:"key",get:function(){var i="".concat(this.x,"_").concat(this.y,"_").concat(this.z);return i}},{key:"layerLoad",value:function(){this.loadedLayers++,this.emit("layerLoaded")}},{key:"loadData",value:function(){var n=(0,Pt.Z)(ge().mark(function o(s){var l,f,v,y,b,T,M,O,F,$,G,ue,xe,ze,Je,ht,gt;return ge().wrap(function(tr){for(;;)switch(tr.prev=tr.next){case 0:return l=s.getData,f=s.onLoad,v=s.onError,this.loadDataId++,y=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=Da.Loading,b=null,tr.prev=7,M=this.x,O=this.y,F=this.z,$=this.bounds,G=this.tileSize,ue=this.warp,xe=Zf(M,O,F,ue),ze=xe.warpX,Je=xe.warpY,ht=this.abortController.signal,gt={x:ze,y:Je,z:F,bounds:$,tileSize:G,signal:ht,warp:ue},tr.next=14,l(gt,this);case 14:b=tr.sent,tr.next=20;break;case 17:tr.prev=17,tr.t0=tr.catch(7),T=tr.t0;case 20:if(y===this.loadDataId){tr.next=22;break}return tr.abrupt("return");case 22:if(!(this.isCancelled&&!b)){tr.next=24;break}return tr.abrupt("return");case 24:if(!(T||!b)){tr.next=28;break}return this.loadStatus=Da.Failure,v(T,this),tr.abrupt("return");case 28:this.loadStatus=Da.Loaded,this.data=b,f(this);case 31:case"end":return tr.stop()}},o,this,[[7,17]])}));function i(o){return n.apply(this,arguments)}return i}()},{key:"reloadData",value:function(i){this.isLoading&&this.abortLoad(),this.loadData(i)}},{key:"abortLoad",value:function(){this.isLoaded||this.isCancelled||(this.loadStatus=Da.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),t}(io.EventEmitter),ac=function(r,t){var n=pa(r),i=of(n,t),o=360*3-180,s=85.0511287798065,l=[Math.max(i[0][0],-o),Math.max(i[0][1],-s),Math.min(i[1][0],o),Math.min(i[1][1],s)];return l},oc=function(r,t){var n=pa(r),i=pa(t),o=il(n,i);return o};function Uu(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=zu(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function zu(e,r){if(e){if(typeof e=="string")return tu(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return tu(e,r)}}function tu(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0&&b.x0;){var f=i.shift();f.abortLoad()}}},{key:"getTileByLngLat",value:function(i,o,s){var l=this.options.zoomOffset,f=Math.ceil(s)+l,v=gu(i,o,f),y=this.tiles.filter(function(b){return b.key==="".concat(v[0],"_").concat(v[1],"_").concat(f)});return y[0]}},{key:"getTileExtent",value:function(i,o){return this.getTileIndices(o,i)}},{key:"getTileByZXY",value:function(i,o,s){var l=this.tiles.filter(function(f){return f.key==="".concat(o,"_").concat(s,"_").concat(i)});return l[0]}},{key:"clear",value:function(){var i=Uu(this.cacheTiles.values()),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;s.isLoading?s.abortLoad():this.onTileUnload(s)}}catch(l){i.e(l)}finally{i.f()}this.lastViewStates=void 0,this.cacheTiles.clear(),this.currentTiles=[]}},{key:"destroy",value:function(){this.clear(),this.removeAllListeners()}},{key:"updateTileVisible",value:function(){var i=this.options.updateStrategy,o=new Map,s=Uu(this.cacheTiles.values()),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;o.set(f.key,f.isVisible),f.isCurrent=!1,f.isVisible=!1}}catch(O){s.e(O)}finally{s.f()}var v=Uu(this.currentTiles),y;try{for(v.s();!(y=v.n()).done;){var b=y.value;b.isCurrent=!0,b.isVisible=!0}}catch(O){v.e(O)}finally{v.f()}var T=Array.from(this.cacheTiles.values());typeof i=="function"?i(T):Pl[i](T);var M=!1;Array.from(this.cacheTiles.values()).forEach(function(O){O.isVisible!==o.get(O.key)?(O.isVisibleChange=!0,M=!0):O.isVisibleChange=!1}),M&&this.emit(Dl.TileUpdate)}},{key:"getTileIndices",value:function(i,o){var s=this.options,l=s.tileSize,f=s.extent,v=s.zoomOffset,y=Math.floor(this.options.maxZoom),b=Math.ceil(this.options.minZoom),T=Nu({maxZoom:y,minZoom:b,zoomOffset:v,tileSize:l,zoom:i,latLonBounds:o,extent:f});return T}},{key:"getTileId",value:function(i,o,s){var l="".concat(i,",").concat(o,",").concat(s);return l}},{key:"loadFinished",value:function(){var i=!this.currentTiles.some(function(o){return!o.isDone});return i&&this.emit(Dl.TilesLoadFinished),i}},{key:"getTile",value:function(i,o,s){var l=this.getTileId(i,o,s),f=this.cacheTiles.get(l);return f}},{key:"createTile",value:function(i,o,s){var l=this.getTileId(i,o,s),f=new Vf({x:i,y:o,z:s,tileSize:this.options.tileSize,warp:this.options.warp});return this.cacheTiles.set(l,f),f.loadData({getData:this.options.getTileData,onLoad:this.onTileLoad,onError:this.onTileError}),f}},{key:"resizeCacheTiles",value:function(){var i=Ch*this.currentTiles.length,o=this.cacheTiles.size>i;if(o){var s=Uu(this.cacheTiles),l;try{for(s.s();!(l=s.n()).done;){var f=(0,Sn.Z)(l.value,2),v=f[0],y=f[1];if(!y.isVisible&&!this.currentTiles.includes(y)&&(this.cacheTiles.delete(v),this.onTileUnload(y)),this.cacheTiles.size<=i)break}}catch(b){s.e(b)}finally{s.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var i=Uu(this.cacheTiles.values()),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;s.parent=null,s.children.length=0}}catch(b){i.e(b)}finally{i.f()}var l=Uu(this.cacheTiles.values()),f;try{for(l.s();!(f=l.n()).done;){var v=f.value,y=this.getNearestAncestor(v.x,v.y,v.z);v.parent=y,y!=null&&y.children&&y.children.push(v)}}catch(b){l.e(b)}finally{l.f()}}},{key:"getNearestAncestor",value:function(i,o,s){for(;s>this.options.minZoom;){i=Math.floor(i/2),o=Math.floor(o/2),s=s-1;var l=this.getTile(i,o,s);if(l)return l}return null}}]),t}(vu());function Rh(e){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(e)}function Hf(e){var r=[],t=/\{([a-z])-([a-z])\}/.exec(e);if(t){var n=t[1].charCodeAt(0),i=t[2].charCodeAt(0),o;for(o=n;o<=i;++o)r.push(e.replace(t[0],String.fromCharCode(o)));return r}if(t=/\{(\d+)-(\d+)\}/.exec(e),t){for(var s=parseInt(t[2],10),l=parseInt(t[1],10);l<=s;l++)r.push(e.replace(t[0],l.toString()));return r}return r.push(e),r}function h(e,r){if(!e||!e.length)throw new Error("url is not allowed to be empty");var t=r.x,n=r.y,i=r.z,o=Hf(e),s=Math.abs(t+n)%o.length,l=pi(o[s])?"".concat(o[s],"/{z}/{x}/{y}"):o[s];return l.replace(/\{x\}/g,t.toString()).replace(/\{y\}/g,n.toString()).replace(/\{z\}/g,i.toString()).replace(/\{bbox\}/g,ic(t,n,i).join(",")).replace(/\{-y\}/g,(Math.pow(2,i)-n-1).toString())}function d(e,r){var t=r.x,n=r.y,i=r.z,o=r.layer,s=r.version,l=s===void 0?"1.0.0":s,f=r.style,v=f===void 0?"default":f,y=r.format,b=r.service,T=b===void 0?"WMTS":b,M=r.tileMatrixset,O="".concat(e,"&SERVICE=").concat(T,"&REQUEST=GetTile&VERSION=").concat(l,"&LAYER=").concat(o,"&STYLE=").concat(v,"&TILEMATRIXSET=").concat(M,"&FORMAT=").concat(y,"&TILECOL=").concat(t,"&TILEROW=").concat(n,"&TILEMATRIX=").concat(i);return O}function p(e,r){if(!e)throw new Error(r||"web worker helper assertion failed.")}var g={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},S=g.self||g.window||{},w=g.window||g.self||{},C=g.self||g.window||{},P=g.document||{},Z=typeof importScripts=="function",Y=typeof window!="undefined"&&typeof window.orientation!="undefined",pe=function(){function e(r,t){var n=this;this.name=r,this.workerThread=t,this.isRunning=!0,this.resolve=function(){},this.reject=function(){},this.result=new Promise(function(i,o){n.resolve=i,n.reject=o})}return e.prototype.postMessage=function(r,t){this.workerThread.postMessage({source:"Main thread",type:r,payload:t})},e.prototype.done=function(r){p(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(r)},e.prototype.error=function(r){p(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(r)},e}(),_e=pe,ye=new Map;function Ue(e){p(e.source&&!e.url||!e.source&&e.url);var r=ye.get(e.source||e.url);return r||(e.url&&(r=ke(e.url),ye.set(e.url,r)),e.source&&(r=Ke(e.source),ye.set(e.source,r))),p(r),r}function ke(e){if(!e.startsWith("http"))return e;var r=Ie(e);return Ke(r)}function Ke(e){var r=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(r)}function Ie(e){return`try { importScripts('`+e+`'); } catch (error) { console.error(error); throw error; -}`}function Ge(e,r,t){r===void 0&&(r=!0);var n=t||new Set;if(e){if(ct(e))n.add(e);else if(ct(e.buffer))n.add(e.buffer);else if(!ArrayBuffer.isView(e)){if(r&&typeof e=="object")for(var i in e)Ge(e[i],r,n)}}return t===void 0?Array.from(n):[]}function ct(e){return e?e instanceof ArrayBuffer||typeof MessagePort!="undefined"&&e instanceof MessagePort||typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap||typeof OffscreenCanvas!="undefined"&&e instanceof OffscreenCanvas:!1}var At=function(){},$t=function(){function e(r){this.terminated=!1,this.loadableURL="";var t=r.name,n=r.source,i=r.url;p(n||i),this.name=t,this.source=n,this.url=i,this.onMessage=At,this.onError=function(o){return console.log(o)},this.worker=this.createBrowserWorker()}return e.isSupported=function(){return typeof Worker!="undefined"},e.prototype.destroy=function(){this.onMessage=At,this.onError=At,this.worker.terminate(),this.terminated=!0},Object.defineProperty(e.prototype,"isRunning",{get:function(){return!!this.onMessage},enumerable:!1,configurable:!0}),e.prototype.postMessage=function(r,t){t=t||Ge(r),this.worker.postMessage(r,t)},e.prototype.getErrorFromErrorEvent=function(r){var t="Failed to load ";return t+="worker "+this.name+" from "+this.url+". ",r.message&&(t+=r.message+" in "),r.lineno&&(t+=":"+r.lineno+":"+r.colno),new Error(t)},e.prototype.createBrowserWorker=function(){var r=this;this.loadableURL=Fe({source:this.source,url:this.url});var t=new Worker(this.loadableURL,{name:this.name});return t.onmessage=function(n){n.data?r.onMessage(n.data):r.onError(new Error("No data received"))},t.onerror=function(n){r.onError(r.getErrorFromErrorEvent(n)),r.terminated=!0},t.onmessageerror=function(n){return console.error("worker "+r.name+", message error: "+n)},t},e}(),Nt=$t,tr=function(){return tr=Object.assign||function(e){for(var r,t=1,n=arguments.length;t0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]this.getMaxConcurrency();t?(r.destroy(),this.count--):this.idleQueue.push(r),this.isDestroyed||this.startQueuedJob()},e.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},Un={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},ji=function(){function e(r){this.workerPools=new Map,this.props=In({},Un),this.setProps(r),this.workerPools=new Map}return e.isSupported=function(){return Nt.isSupported()},e.getWorkerFarm=function(r){return r===void 0&&(r={}),e.workerFarm=e.workerFarm||new e({}),e.workerFarm.setProps(r),e.workerFarm},e.prototype.destroy=function(){var r,t;try{for(var n=Nn(this.workerPools.values()),i=n.next();!i.done;i=n.next()){var o=i.value;o.destroy()}}catch(s){r={error:s}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}},e.prototype.setProps=function(r){var t,n;this.props=In(In({},this.props),r);try{for(var i=Nn(this.workerPools.values()),o=i.next();!o.done;o=i.next()){var s=o.value;s.setProps(this.getWorkerPoolProps())}}catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.getWorkerPool=function(r){var t=r.name,n=r.source,i=r.url,o=this.workerPools.get(t);return o||(o=new an({name:t,source:n,url:i}),o.setProps(this.getWorkerPoolProps()),this.workerPools.set(t,o)),o},e.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},e}(),hn=null,Kn=new Map,_i=function(){function e(){}return Object.defineProperty(e,"onmessage",{set:function(r){self.onmessage=function(t){if(Xn(t)){var n=t.data,i=n.type,o=n.payload;r(i,o)}}},enumerable:!1,configurable:!0}),e.addEventListener=function(r){var t=Kn.get(r);t||(t=function(n){if(Xn(n)){var i=n.data,o=i.type,s=i.payload;r(o,s)}}),self.addEventListener("message",t)},e.removeEventListener=function(r){var t=Kn.get(r);Kn.delete(r),self.removeEventListener("message",t)},e.postMessage=function(r,t){if(self){var n={source:"Worker thread",type:r,payload:t},i=Ge(t);self.postMessage(n,i)}},e}(),ti=null;function Xn(e){var r=e.type,t=e.data;return r==="message"&&t&&typeof t.source=="string"&&t.source==="Main thread"}function pi(e){return JSON.parse(qn(e))}function qn(e){var r=new Set;return JSON.stringify(e,function(t,n){if(typeof n=="object"&&n!==null){if(r.has(n))try{return JSON.parse(JSON.stringify(n))}catch(i){return}r.add(n)}return n})}function $n(e){return""+e.name}function wo(e,r){r===void 0&&(r={});var t=r[e.id]||{},n=e.name+".worker.js",i=t.workerUrl;return r._workerType==="test"&&(i=e.module+"/dist/"+n),i||(i="https://unpkg.com/"+e.module+"/dist/"+n),assert(i),i}var Na=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(y){try{v(n.next(y))}catch(b){s(b)}}function f(y){try{v(n.throw(y))}catch(b){s(b)}}function v(y){y.done?o(y.value):i(y.value).then(l,f)}v((n=n.apply(e,r||[])).next())})},Co=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(v){return function(y){return f([v,y])}}function f(v){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=v[0]&2?i.return:v[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,v[1])).done)return o;switch(i=0,o&&(v=[v[0]&2,o.value]),v[0]){case 0:case 1:o=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,i=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var t=this._settlers.shift();r instanceof Error?t.reject(r):t.resolve({value:r})}else this._values.push(r)},e.prototype.close=function(){for(;this._settlers.length>0;){var r=this._settlers.shift();r.resolve({done:!0})}this._closed=!0},e.prototype.next=function(){var r=this;if(this._values.length>0){var t=this._values.shift();return t instanceof Error?Promise.reject(t):Promise.resolve({done:!1,value:t})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(n,i){r._settlers.push({resolve:n,reject:i})})},e}(),ls=null,Zu=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(y){try{v(n.next(y))}catch(b){s(b)}}function f(y){try{v(n.throw(y))}catch(b){s(b)}}function v(y){y.done?o(y.value):i(y.value).then(l,f)}v((n=n.apply(e,r||[])).next())})},cs=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(v){return function(y){return f([v,y])}}function f(v){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=v[0]&2?i.return:v[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,v[1])).done)return o;switch(i=0,o&&(v=[v[0]&2,o.value]),v[0]){case 0:case 1:o=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,i=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0&&arguments[0]!==void 0?arguments[0]:{};(0,q.Z)(this,e),(0,B.Z)(this,"lastFlip",-1),(0,B.Z)(this,"miter",Or.al(0,0)),(0,B.Z)(this,"started",!1),(0,B.Z)(this,"dash",!1),(0,B.Z)(this,"totalDistance",0),(0,B.Z)(this,"currentIndex",0),this.join=r.join||"miter",this.cap=r.cap||"butt",this.miterLimit=r.miterLimit||10,this.thickness=r.thickness||1,this.dash=r.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,V.Z)(e,[{key:"extrude_gaode2",value:function(t,n){var i=this.complex;if(t.length<=1)return i;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var o=t.length,s=i.startIndex,l=1;lthis.miterLimit&&(pn=!0)}pn?(M.push(this.normal[0],this.normal[1],0),M.push(Mr[0],Mr[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,b.push.apply(b,(0,Wt.Z)(this.lastFlip!==-br?[n,n+2,n+3]:[n+2,n+1,n+3])),b.push(n+2,n+3,n+4),sc(Wu,Ll),Or.JG(this.normal,Wu),M.push(this.normal[0],this.normal[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,y+=3):(this.extrusions(T,M,o,Mr,Jt,this.totalDistance),b.push.apply(b,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),br=-1,Or.JG(this.normal,Mr),y+=2),this.lastFlip=br}else{if(sc(this.normal,ao),O){var $e=Or.Ue(),ut=Or.Ue();Or.lu(ut,ao,this.normal),Or.IH($e,ao,this.normal),M.push(ut[0],ut[1],0),M.push($e[0],$e[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(T,M,o,this.normal,this.thickness,this.totalDistance);b.push.apply(b,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),y+=2}return y}},{key:"simpleSegment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=ko([o[0],o[1]]),T=ko([i[0],i[1]]);hf(ao,b,T);var M=0;if(this.dash&&(M=this.lineSegmentDistance(b,T),this.totalDistance+=M),this.normal||(this.normal=Or.Ue(),sc(this.normal,ao)),this.started||(this.started=!0,this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-M)),f.push(n+0,n+1,n+2),!s)sc(this.normal,ao),this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance),f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2;else{var O=ko([s[0],s[1]]);Lc(b,O)&&Or.IH(O,b,Or.Fv(O,Or.$X(O,b,T))),hf(Ll,O,b);var k=Qo(_u,Or.Ue(),ao,Ll,this.thickness),$=(0,yn.Z)(k,2),G=$[0],oe=$[1],ye=Or.AK(_u,this.normal)<0?-1:1;this.extrusions(v,y,o,oe,G,this.totalDistance),f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),ye=-1,Or.JG(this.normal,oe),l+=2,this.lastFlip=ye}return l}},{key:"segment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=this.cap==="square",T=this.join==="bevel",M=ko([o[0],o[1]]),O=ko([i[0],i[1]]);hf(ao,M,O);var k=0;if(this.dash&&(k=this.lineSegmentDistance(M,O),this.totalDistance+=k),this.normal||(this.normal=Or.Ue(),sc(this.normal,ao)),!this.started)if(this.started=!0,b){var $=Or.Ue(),G=Or.Ue();Or.IH($,this.normal,ao),Or.IH(G,this.normal,ao),y.push(G[0],G[1],0),y.push($[0],$[1],0),v.push(i[0],i[1],i[2]|0,this.totalDistance-k,-this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),v.push(i[0],i[1],i[2]|0,this.totalDistance-k,this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-k);if(f.push(n+0,n+1,n+2),s){var Le=ko([s[0],s[1]]);Lc(M,Le)&&Or.IH(Le,M,Or.Fv(Le,Or.$X(Le,M,O))),hf(Ll,Le,M);var $e=Qo(_u,Or.Ue(),ao,Ll,this.thickness),ut=(0,yn.Z)($e,2),vt=ut[0],Rt=ut[1],Jt=Or.AK(_u,this.normal)<0?-1:1,Mr=T;if(!Mr&&this.join==="miter"){var br=vt;br>this.miterLimit&&(Mr=!0)}Mr?(y.push(this.normal[0],this.normal[1],0),y.push(Rt[0],Rt[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,f.push.apply(f,(0,Wt.Z)(this.lastFlip!==-Jt?[n,n+2,n+3]:[n+2,n+1,n+3])),f.push(n+2,n+3,n+4),sc(Wu,Ll),Or.JG(this.normal,Wu),y.push(this.normal[0],this.normal[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l+=3):(this.extrusions(v,y,o,Rt,vt,this.totalDistance),f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Jt=-1,Or.JG(this.normal,Rt),l+=2),this.lastFlip=Jt}else{if(sc(this.normal,ao),b){var oe=Or.Ue(),ye=Or.Ue();Or.lu(ye,ao,this.normal),Or.IH(oe,ao,this.normal),y.push(ye[0],ye[1],0),y.push(oe[0],oe[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance);f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2}return l}},{key:"extrusions",value:function(t,n,i,o,s,l){n.push(o[0],o[1],0),n.push(o[0],o[1],0),t.push(i[0],i[1],i[2]|0,l,-s,i[2]|0),this.complex.indexes.push(this.currentIndex),t.push(i[0],i[1],i[2]|0,l,s,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(t,n){var i=n[0]-t[0],o=n[1]-t[1];return Math.sqrt(i*i+o*o)}}]),e}();function jp(e){var r=e.coordinates,t=e.originCoordinates,n=e.version,i=new Bv({dash:!0,join:"bevel"});if(n==="GAODE2.x"){var o=r;Array.isArray(o[0][0])||(o=[r]);var s=t;Array.isArray(s[0][0])||(s=[t]);for(var l=0;l0}).forEach(function(G,oe){var ye=ll(G[l]);di(ye,function(Le){var $e=Ar(Le),ut=(0,H.Z)((0,H.Z)({},G),{},{_id:oe,coordinates:$e});f.push(ut)})}),{dataArray:f};for(var v=0;v>>0}function yf(e,r){return r===void 0?null:(0,cl.Z)(e.properties[r])*1==="number"?e.properties[r]*1:e.properties&&e.properties[r]?lc(e.properties[r]+"")%1000019:null}function pp(e,r){var t=[],n={};return e.features?(e.features=e.features.filter(function(i){var o=i.geometry;return i!=null&&o&&o.type&&o.coordinates&&o.coordinates.length>0}),e=ll(e),e.features.length===0?{dataArray:[],featureKeys:n}:(di(e,function(i,o){var s=yf(i,r==null?void 0:r.featureId);s===null&&(s=o);var l=s,f=Ar(i),v=(0,H.Z)((0,H.Z)({},i.properties),{},{coordinates:f,_id:l});t.push(v)}),{dataArray:t,featureKeys:n})):(e.features=[],{dataArray:[]})}function Ph(e,r,t,n){for(var i=n,o=t-r>>1,s=t-r,l,f=e[r],v=e[r+1],y=e[t],b=e[t+1],T=r+3;Ti)l=T,i=M;else if(M===i){var O=Math.abs(T-o);On&&(l-r>3&&Ph(e,r,l,n),e[l+2]=i,t-l>3&&Ph(e,l,t,n))}function Wp(e,r,t,n,i,o){var s=i-t,l=o-n;if(s!==0||l!==0){var f=((e-t)*s+(r-n)*l)/(s*s+l*l);f>1?(t=i,n=o):f>0&&(t+=s*f,n+=l*f)}return s=e-t,l=r-n,s*s+l*l}function xf(e,r,t,n){var i={id:typeof e=="undefined"?null:e,type:r,geometry:t,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return fl(i),i}function fl(e){var r=e.geometry,t=e.type;if(t==="Point"||t==="MultiPoint"||t==="LineString")Nl(e,r);else if(t==="Polygon"||t==="MultiLineString")for(var n=0;n0&&(n?s+=(i*v-f*o)/2:s+=Math.sqrt(Math.pow(f-i,2)+Math.pow(v-o,2))),i=f,o=v}var y=r.length-3;r[2]=1,Ph(r,0,y,t),r[y+2]=1,r.size=Math.abs(s),r.start=0,r.end=r.size}function cc(e,r,t,n){for(var i=0;i1?1:t}function pl(e,r,t,n,i,o,s,l){if(t/=r,n/=r,o>=t&&s=n)return null;for(var f=[],v=0;v=t&&O=n)continue;var k=[];if(T==="Point"||T==="MultiPoint")bf(b,k,t,n,i);else if(T==="LineString")fc(b,k,t,n,i,!1,l.lineMetrics);else if(T==="MultiLineString")Ul(b,k,t,n,i,!1);else if(T==="Polygon")Ul(b,k,t,n,i,!0);else if(T==="MultiPolygon")for(var $=0;$=t&&s<=n&&(r.push(e[o]),r.push(e[o+1]),r.push(e[o+2]))}}function fc(e,r,t,n,i,o,s){for(var l=Xp(e),f=i===0?vp:Ts,v=e.start,y,b,T=0;Tt&&(b=f(l,M,O,$,G,t),s&&(l.start=v+y*b)):oe>n?ye=t&&(b=f(l,M,O,$,G,t),Le=!0),ye>n&&oe<=n&&(b=f(l,M,O,$,G,n),Le=!0),!o&&Le&&(s&&(l.end=v+y*b),r.push(l),l=Xp(e)),s&&(v+=y)}var $e=e.length-3;M=e[$e],O=e[$e+1],k=e[$e+2],oe=i===0?M:O,oe>=t&&oe<=n&&Gf(l,M,O,k),$e=l.length-3,o&&$e>=3&&(l[$e]!==l[0]||l[$e+1]!==l[1])&&Gf(l,l[0],l[1],l[2]),l.length&&r.push(l)}function Xp(e){var r=[];return r.size=e.size,r.start=e.start,r.end=e.end,r}function Ul(e,r,t,n,i,o){for(var s=0;ss.maxX&&(s.maxX=y),b>s.maxY&&(s.maxY=b)}return s}function Lv(e,r,t,n){var i=r.geometry,o=r.type,s=[];if(o==="Point"||o==="MultiPoint")for(var l=0;l0&&r.size<(i?s:n)){t.numPoints+=r.length/3;return}for(var l=[],f=0;fs)&&(t.numSimplified++,l.push(r[f]),l.push(r[f+1])),t.numPoints++;i&&Nd(l,o),e.push(l)}function Nd(e,r){for(var t=0,n=0,i=e.length,o=i-2;n0===r)for(n=0,i=e.length;n24)throw new Error("maxZoom should be in the 0-24 range");if(r.promoteId&&r.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=Fd(e,r);this.tiles={},this.tileCoords=[],t&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",r.indexMaxZoom,r.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),n=hs(n,r),n.length&&this.splitTile(n,0,0,0),t&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Dh.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Dh.prototype.splitTile=function(e,r,t,n,i,o,s){for(var l=[e,r,t,n],f=this.options,v=f.debug;l.length;){n=l.pop(),t=l.pop(),r=l.pop(),e=l.pop();var y=1<1&&console.time("creation"),T=this.tiles[b]=Ld(e,r,t,n,f),this.tileCoords.push({z:r,x:t,y:n}),v)){v>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",r,t,n,T.numFeatures,T.numPoints,T.numSimplified),console.timeEnd("creation"));var M="z"+r;this.stats[M]=(this.stats[M]||0)+1,this.total++}if(T.source=e,i){if(r===f.maxZoom||r===i)continue;var O=1<1&&console.time("clipping");var k=.5*f.buffer/f.extent,$=.5-k,G=.5+k,oe=1+k,ye,Le,$e,ut,vt,Rt;ye=Le=$e=ut=null,vt=pl(e,y,t-k,t+G,0,T.minX,T.maxX,f),Rt=pl(e,y,t+$,t+oe,0,T.minX,T.maxX,f),e=null,vt&&(ye=pl(vt,y,n-k,n+G,1,T.minY,T.maxY,f),Le=pl(vt,y,n+$,n+oe,1,T.minY,T.maxY,f),vt=null),Rt&&($e=pl(Rt,y,n-k,n+G,1,T.minY,T.maxY,f),ut=pl(Rt,y,n+$,n+oe,1,T.minY,T.maxY,f),Rt=null),v>1&&console.timeEnd("clipping"),l.push(ye||[],r+1,t*2,n*2),l.push(Le||[],r+1,t*2,n*2+1),l.push($e||[],r+1,t*2+1,n*2),l.push(ut||[],r+1,t*2+1,n*2+1)}}},Dh.prototype.getTile=function(e,r,t){var n=this.options,i=n.extent,o=n.debug;if(e<0||e>24)return null;var s=1<1&&console.log("drilling down to z%d-%d-%d",e,r,t);for(var f=e,v=r,y=t,b;!b&&f>0;)f--,v=Math.floor(v/2),y=Math.floor(y/2),b=this.tiles[Jo(f,v,y)];return!b||!b.source?null:(o>1&&console.log("found parent tile z%d-%d-%d",f,v,y),o>1&&console.time("drilling down"),this.splitTile(b.source,f,v,y,e,r,t),o>1&&console.timeEnd("drilling down"),this.tiles[l]?$p(this.tiles[l],i):null)};function Jo(e,r,t){return((1<0)switch(n[0]){case"band":try{e[i]=r[n[1]][t]}catch(o){console.warn("Raster Data err!"),e[i]=0}break;default:zr(n,r,t)}})}function St(e){var r=(0,yn.Z)(e,3),t=r[0],n=r[1],i=n===void 0?-1:n,o=r[2],s=o===void 0?-1:o;if(t===void 0)return console.warn("Express err!"),["+",0,0];var l=t.replace(/\s+/g,"");return[l,i,s]}function Qt(e){var r=St(e),t=r[0],n=r[1],i=r[2];return Array.isArray(n)&&(n=Qt(e[1])),Array.isArray(i)&&(i=Qt(e[2])),Wr(t,n,i)}var kr={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:Jr}};function Jr(e,r){for(var t=e[0].rasterData,n=e[1].rasterData,i=e[2].rasterData,o=[],s=(r==null?void 0:r.countCut)||[2,98],l=(0,yn.Z)(s,2),f=l[0],v=l[1],y=(r==null?void 0:r.RMinMax)||gr(t,f,v),b=(r==null?void 0:r.GMinMax)||gr(n,f,v),T=(r==null?void 0:r.BMinMax)||gr(i,f,v),M=0;M"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},wi=L(25865),on=L.n(wi);function yi(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ai(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function ai(e,r){if(e){if(typeof e=="string")return Yn(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Yn(e,r)}}function Yn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);to&&(M=0,T++),l[k]={x:M,y:b+T*Ui,width:Ui,height:Ui,advance:G},M+=Ui}});var O=n+i*2;return{mapping:l,xOffset:M,yOffset:b+T*O,canvasHeight:lo(b+(T+1)*O)}}function Wo(e,r,t){var n=0,i=0,o=0,s=[],l={},f=yi(e),v;try{for(f.s();!(v=f.n()).done;){var y=v.value;if(!l[y.id]){var b=y.size;n+b+r>t&&(Ri(l,s,i),n=0,i=o+i+r,o=0,s=[]),s.push({icon:y,xOffset:n}),n=n+b+r,o=Math.max(o,b)}}}catch(M){f.e(M)}finally{f.f()}s.length>0&&Ri(l,s,i);var T=lo(o+i+r);return{mapping:l,canvasHeight:T}}function Ri(e,r,t){var n=yi(r),i;try{for(n.s();!(i=n.n()).done;){var o=i.value,s=o.icon,l=o.xOffset;e[s.id]=(0,H.Z)((0,H.Z)({},s),{},{x:l,y:t,image:s.image,width:s.width,height:s.height})}}catch(f){n.e(f)}finally{n.f()}}function lo(e){return Math.pow(2,Math.ceil(Math.log2(e)))}var Sa,go;function _o(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Qa(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Qa(e,r){if(e){if(typeof e=="string")return Ro(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ro(e,r)}}function Ro(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]this.getMaxConcurrency();t?(r.destroy(),this.count--):this.idleQueue.push(r),this.isDestroyed||this.startQueuedJob()},e.prototype.getAvailableWorker=function(){if(this.idleQueue.length>0)return this.idleQueue.shift()||null;if(this.count=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},Zn={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},Wi=function(){function e(r){this.workerPools=new Map,this.props=Pn({},Zn),this.setProps(r),this.workerPools=new Map}return e.isSupported=function(){return zt.isSupported()},e.getWorkerFarm=function(r){return r===void 0&&(r={}),e.workerFarm=e.workerFarm||new e({}),e.workerFarm.setProps(r),e.workerFarm},e.prototype.destroy=function(){var r,t;try{for(var n=zn(this.workerPools.values()),i=n.next();!i.done;i=n.next()){var o=i.value;o.destroy()}}catch(s){r={error:s}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}},e.prototype.setProps=function(r){var t,n;this.props=Pn(Pn({},this.props),r);try{for(var i=zn(this.workerPools.values()),o=i.next();!o.done;o=i.next()){var s=o.value;s.setProps(this.getWorkerPoolProps())}}catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.getWorkerPool=function(r){var t=r.name,n=r.source,i=r.url,o=this.workerPools.get(t);return o||(o=new un({name:t,source:n,url:i}),o.setProps(this.getWorkerPoolProps()),this.workerPools.set(t,o)),o},e.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},e}(),vn=null,ei=new Map,_i=function(){function e(){}return Object.defineProperty(e,"onmessage",{set:function(r){self.onmessage=function(t){if(qn(t)){var n=t.data,i=n.type,o=n.payload;r(i,o)}}},enumerable:!1,configurable:!0}),e.addEventListener=function(r){var t=ei.get(r);t||(t=function(n){if(qn(n)){var i=n.data,o=i.type,s=i.payload;r(o,s)}}),self.addEventListener("message",t)},e.removeEventListener=function(r){var t=ei.get(r);ei.delete(r),self.removeEventListener("message",t)},e.postMessage=function(r,t){if(self){var n={source:"Worker thread",type:r,payload:t},i=$e(t);self.postMessage(n,i)}},e}(),ri=null;function qn(e){var r=e.type,t=e.data;return r==="message"&&t&&typeof t.source=="string"&&t.source==="Main thread"}function di(e){return JSON.parse(Jn(e))}function Jn(e){var r=new Set;return JSON.stringify(e,function(t,n){if(typeof n=="object"&&n!==null){if(r.has(n))try{return JSON.parse(JSON.stringify(n))}catch(i){return}r.add(n)}return n})}function Kn(e){return""+e.name}function Co(e,r){r===void 0&&(r={});var t=r[e.id]||{},n=e.name+".worker.js",i=t.workerUrl;return r._workerType==="test"&&(i=e.module+"/dist/"+n),i||(i="https://unpkg.com/"+e.module+"/dist/"+n),assert(i),i}var Ua=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(y){try{v(n.next(y))}catch(b){s(b)}}function f(y){try{v(n.throw(y))}catch(b){s(b)}}function v(y){y.done?o(y.value):i(y.value).then(l,f)}v((n=n.apply(e,r||[])).next())})},Ro=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(v){return function(y){return f([v,y])}}function f(v){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=v[0]&2?i.return:v[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,v[1])).done)return o;switch(i=0,o&&(v=[v[0]&2,o.value]),v[0]){case 0:case 1:o=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,i=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0){if(this._values.length>0)throw new Error("Illegal internal state");var t=this._settlers.shift();r instanceof Error?t.reject(r):t.resolve({value:r})}else this._values.push(r)},e.prototype.close=function(){for(;this._settlers.length>0;){var r=this._settlers.shift();r.resolve({done:!0})}this._closed=!0},e.prototype.next=function(){var r=this;if(this._values.length>0){var t=this._values.shift();return t instanceof Error?Promise.reject(t):Promise.resolve({done:!1,value:t})}if(this._closed){if(this._settlers.length>0)throw new Error("Illegal internal state");return Promise.resolve({done:!0,value:void 0})}return new Promise(function(n,i){r._settlers.push({resolve:n,reject:i})})},e}(),ls=null,Zu=function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function l(y){try{v(n.next(y))}catch(b){s(b)}}function f(y){try{v(n.throw(y))}catch(b){s(b)}}function v(y){y.done?o(y.value):i(y.value).then(l,f)}v((n=n.apply(e,r||[])).next())})},cs=function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(v){return function(y){return f([v,y])}}function f(v){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=v[0]&2?i.return:v[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,v[1])).done)return o;switch(i=0,o&&(v=[v[0]&2,o.value]),v[0]){case 0:case 1:o=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,i=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0&&arguments[0]!==void 0?arguments[0]:{};(0,Q.Z)(this,e),(0,B.Z)(this,"lastFlip",-1),(0,B.Z)(this,"miter",Or.al(0,0)),(0,B.Z)(this,"started",!1),(0,B.Z)(this,"dash",!1),(0,B.Z)(this,"totalDistance",0),(0,B.Z)(this,"currentIndex",0),this.join=r.join||"miter",this.cap=r.cap||"butt",this.miterLimit=r.miterLimit||10,this.thickness=r.thickness||1,this.dash=r.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,j.Z)(e,[{key:"extrude_gaode2",value:function(t,n){var i=this.complex;if(t.length<=1)return i;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var o=t.length,s=i.startIndex,l=1;lthis.miterLimit&&(mn=!0)}mn?(M.push(this.normal[0],this.normal[1],0),M.push(Ir[0],Ir[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Er,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*Er,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,b.push.apply(b,(0,Kt.Z)(this.lastFlip!==-Er?[n,n+2,n+3]:[n+2,n+1,n+3])),b.push(n+2,n+3,n+4),sc(Wu,Ll),Or.JG(this.normal,Wu),M.push(this.normal[0],this.normal[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Er,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,y+=3):(this.extrusions(T,M,o,Ir,tr,this.totalDistance),b.push.apply(b,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Er=-1,Or.JG(this.normal,Ir),y+=2),this.lastFlip=Er}else{if(sc(this.normal,oo),O){var Je=Or.Ue(),ht=Or.Ue();Or.lu(ht,oo,this.normal),Or.IH(Je,oo,this.normal),M.push(ht[0],ht[1],0),M.push(Je[0],Je[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(T,M,o,this.normal,this.thickness,this.totalDistance);b.push.apply(b,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),y+=2}return y}},{key:"simpleSegment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=Fo([o[0],o[1]]),T=Fo([i[0],i[1]]);hf(oo,b,T);var M=0;if(this.dash&&(M=this.lineSegmentDistance(b,T),this.totalDistance+=M),this.normal||(this.normal=Or.Ue(),sc(this.normal,oo)),this.started||(this.started=!0,this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-M)),f.push(n+0,n+1,n+2),!s)sc(this.normal,oo),this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance),f.push.apply(f,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2;else{var O=Fo([s[0],s[1]]);Lc(b,O)&&Or.IH(O,b,Or.Fv(O,Or.$X(O,b,T))),hf(Ll,O,b);var F=Qo(_u,Or.Ue(),oo,Ll,this.thickness),$=(0,Sn.Z)(F,2),G=$[0],ue=$[1],xe=Or.AK(_u,this.normal)<0?-1:1;this.extrusions(v,y,o,ue,G,this.totalDistance),f.push.apply(f,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),xe=-1,Or.JG(this.normal,ue),l+=2,this.lastFlip=xe}return l}},{key:"segment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=this.cap==="square",T=this.join==="bevel",M=Fo([o[0],o[1]]),O=Fo([i[0],i[1]]);hf(oo,M,O);var F=0;if(this.dash&&(F=this.lineSegmentDistance(M,O),this.totalDistance+=F),this.normal||(this.normal=Or.Ue(),sc(this.normal,oo)),!this.started)if(this.started=!0,b){var $=Or.Ue(),G=Or.Ue();Or.IH($,this.normal,oo),Or.IH(G,this.normal,oo),y.push(G[0],G[1],0),y.push($[0],$[1],0),v.push(i[0],i[1],i[2]|0,this.totalDistance-F,-this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),v.push(i[0],i[1],i[2]|0,this.totalDistance-F,this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-F);if(f.push(n+0,n+1,n+2),s){var ze=Fo([s[0],s[1]]);Lc(M,ze)&&Or.IH(ze,M,Or.Fv(ze,Or.$X(ze,M,O))),hf(Ll,ze,M);var Je=Qo(_u,Or.Ue(),oo,Ll,this.thickness),ht=(0,Sn.Z)(Je,2),gt=ht[0],Ot=ht[1],tr=Or.AK(_u,this.normal)<0?-1:1,Ir=T;if(!Ir&&this.join==="miter"){var Er=gt;Er>this.miterLimit&&(Ir=!0)}Ir?(y.push(this.normal[0],this.normal[1],0),y.push(Ot[0],Ot[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*tr,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*tr,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,f.push.apply(f,(0,Kt.Z)(this.lastFlip!==-tr?[n,n+2,n+3]:[n+2,n+1,n+3])),f.push(n+2,n+3,n+4),sc(Wu,Ll),Or.JG(this.normal,Wu),y.push(this.normal[0],this.normal[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*tr,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l+=3):(this.extrusions(v,y,o,Ot,gt,this.totalDistance),f.push.apply(f,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),tr=-1,Or.JG(this.normal,Ot),l+=2),this.lastFlip=tr}else{if(sc(this.normal,oo),b){var ue=Or.Ue(),xe=Or.Ue();Or.lu(xe,oo,this.normal),Or.IH(ue,oo,this.normal),y.push(xe[0],xe[1],0),y.push(ue[0],ue[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance);f.push.apply(f,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2}return l}},{key:"extrusions",value:function(t,n,i,o,s,l){n.push(o[0],o[1],0),n.push(o[0],o[1],0),t.push(i[0],i[1],i[2]|0,l,-s,i[2]|0),this.complex.indexes.push(this.currentIndex),t.push(i[0],i[1],i[2]|0,l,s,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(t,n){var i=n[0]-t[0],o=n[1]-t[1];return Math.sqrt(i*i+o*o)}}]),e}();function jp(e){var r=e.coordinates,t=e.originCoordinates,n=e.version,i=new Bv({dash:!0,join:"bevel"});if(n==="GAODE2.x"){var o=r;Array.isArray(o[0][0])||(o=[r]);var s=t;Array.isArray(s[0][0])||(s=[t]);for(var l=0;l0}).forEach(function(G,ue){var xe=ll(G[l]);hi(xe,function(ze){var Je=Sr(ze),ht=(0,V.Z)((0,V.Z)({},G),{},{_id:ue,coordinates:Je});f.push(ht)})}),{dataArray:f};for(var v=0;v>>0}function yf(e,r){return r===void 0?null:(0,cl.Z)(e.properties[r])*1==="number"?e.properties[r]*1:e.properties&&e.properties[r]?lc(e.properties[r]+"")%1000019:null}function pp(e,r){var t=[],n={};return e.features?(e.features=e.features.filter(function(i){var o=i.geometry;return i!=null&&o&&o.type&&o.coordinates&&o.coordinates.length>0}),e=ll(e),e.features.length===0?{dataArray:[],featureKeys:n}:(hi(e,function(i,o){var s=yf(i,r==null?void 0:r.featureId);s===null&&(s=o);var l=s,f=Sr(i),v=(0,V.Z)((0,V.Z)({},i.properties),{},{coordinates:f,_id:l});t.push(v)}),{dataArray:t,featureKeys:n})):(e.features=[],{dataArray:[]})}function Ph(e,r,t,n){for(var i=n,o=t-r>>1,s=t-r,l,f=e[r],v=e[r+1],y=e[t],b=e[t+1],T=r+3;Ti)l=T,i=M;else if(M===i){var O=Math.abs(T-o);On&&(l-r>3&&Ph(e,r,l,n),e[l+2]=i,t-l>3&&Ph(e,l,t,n))}function Wp(e,r,t,n,i,o){var s=i-t,l=o-n;if(s!==0||l!==0){var f=((e-t)*s+(r-n)*l)/(s*s+l*l);f>1?(t=i,n=o):f>0&&(t+=s*f,n+=l*f)}return s=e-t,l=r-n,s*s+l*l}function xf(e,r,t,n){var i={id:typeof e=="undefined"?null:e,type:r,geometry:t,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return fl(i),i}function fl(e){var r=e.geometry,t=e.type;if(t==="Point"||t==="MultiPoint"||t==="LineString")Nl(e,r);else if(t==="Polygon"||t==="MultiLineString")for(var n=0;n0&&(n?s+=(i*v-f*o)/2:s+=Math.sqrt(Math.pow(f-i,2)+Math.pow(v-o,2))),i=f,o=v}var y=r.length-3;r[2]=1,Ph(r,0,y,t),r[y+2]=1,r.size=Math.abs(s),r.start=0,r.end=r.size}function cc(e,r,t,n){for(var i=0;i1?1:t}function pl(e,r,t,n,i,o,s,l){if(t/=r,n/=r,o>=t&&s=n)return null;for(var f=[],v=0;v=t&&O=n)continue;var F=[];if(T==="Point"||T==="MultiPoint")bf(b,F,t,n,i);else if(T==="LineString")fc(b,F,t,n,i,!1,l.lineMetrics);else if(T==="MultiLineString")Ul(b,F,t,n,i,!1);else if(T==="Polygon")Ul(b,F,t,n,i,!0);else if(T==="MultiPolygon")for(var $=0;$=t&&s<=n&&(r.push(e[o]),r.push(e[o+1]),r.push(e[o+2]))}}function fc(e,r,t,n,i,o,s){for(var l=Xp(e),f=i===0?vp:Ts,v=e.start,y,b,T=0;Tt&&(b=f(l,M,O,$,G,t),s&&(l.start=v+y*b)):ue>n?xe=t&&(b=f(l,M,O,$,G,t),ze=!0),xe>n&&ue<=n&&(b=f(l,M,O,$,G,n),ze=!0),!o&&ze&&(s&&(l.end=v+y*b),r.push(l),l=Xp(e)),s&&(v+=y)}var Je=e.length-3;M=e[Je],O=e[Je+1],F=e[Je+2],ue=i===0?M:O,ue>=t&&ue<=n&&Gf(l,M,O,F),Je=l.length-3,o&&Je>=3&&(l[Je]!==l[0]||l[Je+1]!==l[1])&&Gf(l,l[0],l[1],l[2]),l.length&&r.push(l)}function Xp(e){var r=[];return r.size=e.size,r.start=e.start,r.end=e.end,r}function Ul(e,r,t,n,i,o){for(var s=0;ss.maxX&&(s.maxX=y),b>s.maxY&&(s.maxY=b)}return s}function Lv(e,r,t,n){var i=r.geometry,o=r.type,s=[];if(o==="Point"||o==="MultiPoint")for(var l=0;l0&&r.size<(i?s:n)){t.numPoints+=r.length/3;return}for(var l=[],f=0;fs)&&(t.numSimplified++,l.push(r[f]),l.push(r[f+1])),t.numPoints++;i&&Nd(l,o),e.push(l)}function Nd(e,r){for(var t=0,n=0,i=e.length,o=i-2;n0===r)for(n=0,i=e.length;n24)throw new Error("maxZoom should be in the 0-24 range");if(r.promoteId&&r.generateId)throw new Error("promoteId and generateId cannot be used together.");var n=kd(e,r);this.tiles={},this.tileCoords=[],t&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",r.indexMaxZoom,r.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),n=hs(n,r),n.length&&this.splitTile(n,0,0,0),t&&(n.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Dh.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Dh.prototype.splitTile=function(e,r,t,n,i,o,s){for(var l=[e,r,t,n],f=this.options,v=f.debug;l.length;){n=l.pop(),t=l.pop(),r=l.pop(),e=l.pop();var y=1<1&&console.time("creation"),T=this.tiles[b]=Ld(e,r,t,n,f),this.tileCoords.push({z:r,x:t,y:n}),v)){v>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",r,t,n,T.numFeatures,T.numPoints,T.numSimplified),console.timeEnd("creation"));var M="z"+r;this.stats[M]=(this.stats[M]||0)+1,this.total++}if(T.source=e,i){if(r===f.maxZoom||r===i)continue;var O=1<1&&console.time("clipping");var F=.5*f.buffer/f.extent,$=.5-F,G=.5+F,ue=1+F,xe,ze,Je,ht,gt,Ot;xe=ze=Je=ht=null,gt=pl(e,y,t-F,t+G,0,T.minX,T.maxX,f),Ot=pl(e,y,t+$,t+ue,0,T.minX,T.maxX,f),e=null,gt&&(xe=pl(gt,y,n-F,n+G,1,T.minY,T.maxY,f),ze=pl(gt,y,n+$,n+ue,1,T.minY,T.maxY,f),gt=null),Ot&&(Je=pl(Ot,y,n-F,n+G,1,T.minY,T.maxY,f),ht=pl(Ot,y,n+$,n+ue,1,T.minY,T.maxY,f),Ot=null),v>1&&console.timeEnd("clipping"),l.push(xe||[],r+1,t*2,n*2),l.push(ze||[],r+1,t*2,n*2+1),l.push(Je||[],r+1,t*2+1,n*2),l.push(ht||[],r+1,t*2+1,n*2+1)}}},Dh.prototype.getTile=function(e,r,t){var n=this.options,i=n.extent,o=n.debug;if(e<0||e>24)return null;var s=1<1&&console.log("drilling down to z%d-%d-%d",e,r,t);for(var f=e,v=r,y=t,b;!b&&f>0;)f--,v=Math.floor(v/2),y=Math.floor(y/2),b=this.tiles[Jo(f,v,y)];return!b||!b.source?null:(o>1&&console.log("found parent tile z%d-%d-%d",f,v,y),o>1&&console.time("drilling down"),this.splitTile(b.source,f,v,y,e,r,t),o>1&&console.timeEnd("drilling down"),this.tiles[l]?$p(this.tiles[l],i):null)};function Jo(e,r,t){return((1<0)switch(n[0]){case"band":try{e[i]=r[n[1]][t]}catch(o){console.warn("Raster Data err!"),e[i]=0}break;default:zr(n,r,t)}})}function Tt(e){var r=(0,Sn.Z)(e,3),t=r[0],n=r[1],i=n===void 0?-1:n,o=r[2],s=o===void 0?-1:o;if(t===void 0)return console.warn("Express err!"),["+",0,0];var l=t.replace(/\s+/g,"");return[l,i,s]}function er(e){var r=Tt(e),t=r[0],n=r[1],i=r[2];return Array.isArray(n)&&(n=er(e[1])),Array.isArray(i)&&(i=er(e[2])),Gr(t,n,i)}var Fr={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:rn}};function rn(e,r){for(var t=e[0].rasterData,n=e[1].rasterData,i=e[2].rasterData,o=[],s=(r==null?void 0:r.countCut)||[2,98],l=(0,Sn.Z)(s,2),f=l[0],v=l[1],y=(r==null?void 0:r.RMinMax)||yr(t,f,v),b=(r==null?void 0:r.GMinMax)||yr(n,f,v),T=(r==null?void 0:r.BMinMax)||yr(i,f,v),M=0;M"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")},Ci=L(45188),ln=L.n(Ci);function yi(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=si(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function si(e,r){if(e){if(typeof e=="string")return Qn(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Qn(e,r)}}function Qn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);to&&(M=0,T++),l[F]={x:M,y:b+T*Vi,width:Vi,height:Vi,advance:G},M+=Vi}});var O=n+i*2;return{mapping:l,xOffset:M,yOffset:b+T*O,canvasHeight:fo(b+(T+1)*O)}}function Wo(e,r,t){var n=0,i=0,o=0,s=[],l={},f=yi(e),v;try{for(f.s();!(v=f.n()).done;){var y=v.value;if(!l[y.id]){var b=y.size;n+b+r>t&&(Pi(l,s,i),n=0,i=o+i+r,o=0,s=[]),s.push({icon:y,xOffset:n}),n=n+b+r,o=Math.max(o,b)}}}catch(M){f.e(M)}finally{f.f()}s.length>0&&Pi(l,s,i);var T=fo(o+i+r);return{mapping:l,canvasHeight:T}}function Pi(e,r,t){var n=yi(r),i;try{for(n.s();!(i=n.n()).done;){var o=i.value,s=o.icon,l=o.xOffset;e[s.id]=(0,V.Z)((0,V.Z)({},s),{},{x:l,y:t,image:s.image,width:s.width,height:s.height})}}catch(f){n.e(f)}finally{n.f()}}function fo(e){return Math.pow(2,Math.ceil(Math.log2(e)))}var Sa,yo;function xo(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Ja(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Ja(e,r){if(e){if(typeof e=="string")return Mo(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Mo(e,r)}}function Mo(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function _n(e,r){if(e){if(typeof e=="string")return Sn(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Sn(e,r)}}function Sn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t-1&&this.controls.splice(n,1),t.remove(),this}},{key:"addControls",value:function(){var t=this;this.unAddControls.forEach(function(n){n.addTo(t.scene),t.controls.push(n)}),this.unAddControls=[]}},{key:"destroy",value:function(){var t=Pn(this.controls),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i.remove()}}catch(o){t.e(o)}finally{t.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var t=this.controlCorners={},n="l7-",i=this.controlContainer=Ji("div",n+"control-container",this.container);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=l.map(function(v){return n+v}).join(" ");t[l.filter(function(v){return!["row","column"].includes(v)}).join("")]=Ji("div",f,i)}function s(l){var f=l.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Wt.Z)(f),[Gn[l]])}Object.values(_r).forEach(function(l){o(s(l))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var t in this.controlCorners)this.controlCorners[t]&&Ci(this.controlCorners[t]);this.controlContainer&&Ci(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var t=this,n=window.MutationObserver;if(n)for(var i=function(){var f=s[o],v=f.match(/^(top|bottom)(left|right)$/);if(v){var y=(0,yn.Z)(v,3),b=y[1],T=y[2],M=t.controlCorners["".concat(b).concat(T)],O=new n(function(k){var $=(0,yn.Z)(k,1),G=$[0].target;M&&(M.style[b]=G.clientHeight+"px")});O.observe(t.controlCorners["".concat(T).concat(b)],{childList:!0,attributes:!0})}},o=0,s=Object.keys(this.controlCorners);o-1&&this.markerLayers.splice(n,1)}},{key:"addMarker",value:function(t){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(t),t.addTo(this.scene)):this.unAddMarkers.push(t)}},{key:"addMarkers",value:function(){var t=this;this.unAddMarkers.forEach(function(n){n.addTo(t.scene),t.markers.push(n)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var t=this;this.unAddMarkerLayers.forEach(function(n){t.markerLayers.push(n),n.addTo(t.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(t){t.remove(),this.markers.indexOf(t);var n=this.markers.indexOf(t);n>-1&&this.markers.splice(n,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(t){this.scene=t,this.mapsService=t.get(tt.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(t){t.remove()}),this.markers=[],this.markerLayers.forEach(function(t){t.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(t){t.destroy()}}]),e}())||xo),mp,yu,Vd=(mp=(0,gt.b2)(),mp(yu=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"scene",void 0),(0,B.Z)(this,"mapsService",void 0),(0,B.Z)(this,"popups",[]),(0,B.Z)(this,"unAddPopups",[])}return(0,V.Z)(e,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(t){t!=null&&t.isOpen()&&t.remove();var n=this.popups.indexOf(t);n>-1&&this.popups.splice(n,1);var i=this.unAddPopups.indexOf(t);i>-1&&this.unAddPopups.splice(i,1)}},{key:"destroy",value:function(){this.popups.forEach(function(t){return t.remove()})}},{key:"addPopup",value:function(t){var n=this;t&&t.getOptions().autoClose&&[].concat((0,Wt.Z)(this.popups),(0,Wt.Z)(this.unAddPopups)).forEach(function(i){i.getOptions().autoClose&&n.removePopup(i)}),this.isMarkerReady?(t.addTo(this.scene),this.popups.push(t)):this.unAddPopups.push(t),t.on("close",function(){n.removePopup(t)})}},{key:"initPopup",value:function(){var t=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(n){t.addPopup(n),t.unAddPopups=[]})}},{key:"init",value:function(t){this.scene=t,this.mapsService=t.get(tt.IMapService)}}]),e}())||yu),zs=function(e){return e.normal="normal",e.additive="additive",e.subtractive="subtractive",e.min="min",e.max="max",e.none="none",e}({}),hc=function(e){return e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e}({}),Qp=function(e){return e.AND="and",e.OR="or",e}({}),ds=function(e){return e.INIT="init",e.UPDATE="update",e}({}),eg={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},jd=eg,Yf,Hd,gp=ii.merge,tg={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},No={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:Qp.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},Xa=(Yf=(0,gt.b2)(),Yf(Hd=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"sceneConfigCache",{}),(0,B.Z)(this,"layerConfigCache",{}),(0,B.Z)(this,"layerAttributeConfigCache",{})}return(0,V.Z)(e,[{key:"getSceneConfig",value:function(t){return this.sceneConfigCache[t]}},{key:"getSceneWarninfo",value:function(t){return jd[t]}},{key:"setSceneConfig",value:function(t,n){this.sceneConfigCache[t]=(0,H.Z)((0,H.Z)({},tg),n)}},{key:"getLayerConfig",value:function(t){return this.layerConfigCache[t]}},{key:"setLayerConfig",value:function(t,n,i){this.layerConfigCache[n]=(0,H.Z)({},gp({},this.sceneConfigCache[t],No,i))}},{key:"getAttributeConfig",value:function(t){return this.layerAttributeConfigCache[t]}},{key:"setAttributeConfig",value:function(t,n){this.layerAttributeConfigCache[t]=(0,H.Z)((0,H.Z)({},this.layerAttributeConfigCache[t]),n)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),e}())||Hd);function Fi(e,r,t,n){t&&Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function Oi(e,r,t,n,i){var o={};return Object.keys(n).forEach(function(s){o[s]=n[s]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=t.slice().reverse().reduce(function(s,l){return l(e,r,s)||s},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0&&(Object.defineProperty(e,r,o),o=null),o}var kh=L(49953),Wd=Math.PI/180,rg=512,Gd=4003e4;function qf(e){var r=e.latitude,t=r===void 0?0:r,n=e.zoom,i=n===void 0?0:n,o=e.scale,s=e.highPrecision,l=s===void 0?!1:s,f=e.flipY,v=f===void 0?!1:f;o=o!==void 0?o:Math.pow(2,i);var y={},b=rg*o,T=Math.cos(t*Wd),M=b/360,O=M/T,k=b/Gd/T;if(y.pixelsPerMeter=[k,-k,k],y.metersPerPixel=[1/k,-1/k,1/k],y.pixelsPerDegree=[M,-O,k],y.degreesPerPixel=[1/M,-1/O,1/k],l){var $=Wd*Math.tan(t*Wd)/T,G=M*$/2,oe=b/Gd*$,ye=oe/O*k;y.pixelsPerDegree2=[0,-G,oe],y.pixelsPerMeter2=[ye,0,ye],v&&(y.pixelsPerDegree2[1]=-y.pixelsPerDegree2[1],y.pixelsPerMeter2[1]=-y.pixelsPerMeter2[1])}return v&&(y.pixelsPerMeter[1]=-y.pixelsPerMeter[1],y.metersPerPixel[1]=-y.metersPerPixel[1],y.pixelsPerDegree[1]=-y.pixelsPerDegree[1],y.degreesPerPixel[1]=-y.degreesPerPixel[1]),y}var zl=function(e){return e[e.LNGLAT=1]="LNGLAT",e[e.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",e[e.VECTOR_TILE=3]="VECTOR_TILE",e[e.IDENTITY=4]="IDENTITY",e[e.P20=5]="P20",e[e.P20_OFFSET=6]="P20_OFFSET",e[e.METER_OFFSET=7]="METER_OFFSET",e[e.P20_2=8]="P20_2",e}({}),Kf={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter",Mvp:"u_Mvp"},Io,_p,Vc,yp,Jp,Vv=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],xp=(Io=(0,gt.b2)(),_p=(0,gt.f3)(tt.ICameraService),Io(Vc=(yp=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"needRefresh",!0),Fi(this,"cameraService",Jp,this),(0,B.Z)(this,"coordinateSystem",void 0),(0,B.Z)(this,"viewportCenter",void 0),(0,B.Z)(this,"viewportCenterProjection",void 0),(0,B.Z)(this,"pixelsPerDegree",void 0),(0,B.Z)(this,"pixelsPerDegree2",void 0),(0,B.Z)(this,"pixelsPerMeter",void 0)}return(0,V.Z)(e,[{key:"refresh",value:function(t){var n=this.cameraService.getZoom(),i=this.cameraService.getZoomScale(),o=t||this.cameraService.getCenter(),s=qf({latitude:o[1],zoom:n}),l=s.pixelsPerMeter,f=s.pixelsPerDegree;this.viewportCenter=o,this.viewportCenterProjection=[0,0,0,0],this.pixelsPerMeter=l,this.pixelsPerDegree=f,this.pixelsPerDegree2=[0,0,0],this.coordinateSystem===zl.LNGLAT||this.coordinateSystem===zl.P20?this.cameraService.setViewProjectionMatrix(void 0):this.coordinateSystem===zl.LNGLAT_OFFSET?this.calculateLnglatOffset(o,n):this.coordinateSystem===zl.P20_OFFSET&&this.calculateLnglatOffset(o,n,i,!0),this.needRefresh=!1}},{key:"getCoordinateSystem",value:function(){return this.coordinateSystem}},{key:"setCoordinateSystem",value:function(t){this.coordinateSystem=t}},{key:"getViewportCenter",value:function(){return this.viewportCenter}},{key:"getViewportCenterProjection",value:function(){return this.viewportCenterProjection}},{key:"getPixelsPerDegree",value:function(){return this.pixelsPerDegree}},{key:"getPixelsPerDegree2",value:function(){return this.pixelsPerDegree2}},{key:"getPixelsPerMeter",value:function(){return this.pixelsPerMeter}},{key:"calculateLnglatOffset",value:function(t,n,i,o){var s=qf({latitude:t[1],zoom:n,scale:i,flipY:o,highPrecision:!0}),l=s.pixelsPerMeter,f=s.pixelsPerDegree,v=s.pixelsPerDegree2,y=this.cameraService.getViewMatrix(),b=this.cameraService.getProjectionMatrix(),T=ve.multiply([],b,y),M=this.cameraService.projectFlat([Math.fround(t[0]),Math.fround(t[1])],Math.pow(2,n));this.viewportCenterProjection=kh.fF([],[M[0],M[1],0,1],T),y=this.cameraService.getViewMatrixUncentered()||y,T=ve.multiply([],b,y),T=ve.multiply([],T,Vv),this.cameraService.setViewProjectionMatrix(T),this.pixelsPerMeter=l,this.pixelsPerDegree=f,this.pixelsPerDegree2=v}}]),e}(),Jp=Oi(yp.prototype,"cameraService",[_p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yp))||Vc),jc,jv;function ng(e){var r=E0();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function E0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ts=(jc=(0,gt.b2)(),jc(jv=function(e){(0,De.Z)(t,e);var r=ng(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function xn(e,r){if(e){if(typeof e=="string")return Tn(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Tn(e,r)}}function Tn(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t-1&&this.controls.splice(n,1),t.remove(),this}},{key:"addControls",value:function(){var t=this;this.unAddControls.forEach(function(n){n.addTo(t.scene),t.controls.push(n)}),this.unAddControls=[]}},{key:"destroy",value:function(){var t=On(this.controls),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i.remove()}}catch(o){t.e(o)}finally{t.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var t=this.controlCorners={},n="l7-",i=this.controlContainer=ta("div",n+"control-container",this.container);function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=l.map(function(v){return n+v}).join(" ");t[l.filter(function(v){return!["row","column"].includes(v)}).join("")]=ta("div",f,i)}function s(l){var f=l.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Kt.Z)(f),[$n[l]])}Object.values(xr).forEach(function(l){o(s(l))}),this.checkCornerOverlap()}},{key:"clearControlPos",value:function(){for(var t in this.controlCorners)this.controlCorners[t]&&Ii(this.controlCorners[t]);this.controlContainer&&Ii(this.controlContainer)}},{key:"checkCornerOverlap",value:function(){var t=this,n=window.MutationObserver;if(n)for(var i=function(){var f=s[o],v=f.match(/^(top|bottom)(left|right)$/);if(v){var y=(0,Sn.Z)(v,3),b=y[1],T=y[2],M=t.controlCorners["".concat(b).concat(T)],O=new n(function(F){var $=(0,Sn.Z)(F,1),G=$[0].target;M&&(M.style[b]=G.clientHeight+"px")});O.observe(t.controlCorners["".concat(T).concat(b)],{childList:!0,attributes:!0})}},o=0,s=Object.keys(this.controlCorners);o-1&&this.markerLayers.splice(n,1)}},{key:"addMarker",value:function(t){this.mapsService.map&&this.mapsService.getMarkerContainer()?(this.markers.push(t),t.addTo(this.scene)):this.unAddMarkers.push(t)}},{key:"addMarkers",value:function(){var t=this;this.unAddMarkers.forEach(function(n){n.addTo(t.scene),t.markers.push(n)}),this.unAddMarkers=[]}},{key:"addMarkerLayers",value:function(){var t=this;this.unAddMarkerLayers.forEach(function(n){t.markerLayers.push(n),n.addTo(t.scene)}),this.unAddMarkers=[]}},{key:"removeMarker",value:function(t){t.remove(),this.markers.indexOf(t);var n=this.markers.indexOf(t);n>-1&&this.markers.splice(n,1)}},{key:"removeAllMarkers",value:function(){this.destroy()}},{key:"init",value:function(t){this.scene=t,this.mapsService=t.get(ot.IMapService)}},{key:"destroy",value:function(){this.markers.forEach(function(t){t.remove()}),this.markers=[],this.markerLayers.forEach(function(t){t.destroy()}),this.markerLayers=[]}},{key:"removeMakerLayerMarker",value:function(t){t.destroy()}}]),e}())||Eo),mp,yu,Vd=(mp=(0,yt.b2)(),mp(yu=function(){function e(){(0,Q.Z)(this,e),(0,B.Z)(this,"scene",void 0),(0,B.Z)(this,"mapsService",void 0),(0,B.Z)(this,"popups",[]),(0,B.Z)(this,"unAddPopups",[])}return(0,j.Z)(e,[{key:"isMarkerReady",get:function(){return this.mapsService.map&&this.mapsService.getMarkerContainer()}},{key:"removePopup",value:function(t){t!=null&&t.isOpen()&&t.remove();var n=this.popups.indexOf(t);n>-1&&this.popups.splice(n,1);var i=this.unAddPopups.indexOf(t);i>-1&&this.unAddPopups.splice(i,1)}},{key:"destroy",value:function(){this.popups.forEach(function(t){return t.remove()})}},{key:"addPopup",value:function(t){var n=this;t&&t.getOptions().autoClose&&[].concat((0,Kt.Z)(this.popups),(0,Kt.Z)(this.unAddPopups)).forEach(function(i){i.getOptions().autoClose&&n.removePopup(i)}),this.isMarkerReady?(t.addTo(this.scene),this.popups.push(t)):this.unAddPopups.push(t),t.on("close",function(){n.removePopup(t)})}},{key:"initPopup",value:function(){var t=this;this.unAddPopups.length&&this.unAddPopups.forEach(function(n){t.addPopup(n),t.unAddPopups=[]})}},{key:"init",value:function(t){this.scene=t,this.mapsService=t.get(ot.IMapService)}}]),e}())||yu),Zs=function(e){return e.normal="normal",e.additive="additive",e.subtractive="subtractive",e.min="min",e.max="max",e.none="none",e}({}),hc=function(e){return e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e}({}),Qp=function(e){return e.AND="and",e.OR="or",e}({}),ds=function(e){return e.INIT="init",e.UPDATE="update",e}({}),eg={MapToken:"\u60A8\u6B63\u5728\u4F7F\u7528 Demo \u6D4B\u8BD5 Token, \u751F\u4EA7\u73AF\u5883\u52A1\u5FC5\u81EA\u884C\u6CE8\u518C Token \u786E\u4FDD\u670D\u52A1\u7A33\u5B9A \u9AD8\u5FB7\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://lbs.amap.com/api/javascript-api/guide/abc/prepare Mapbox\u5730\u56FE\u7533\u8BF7\u5730\u5740 https://docs.mapbox.com/help/glossary/access-token/",SDK:"\u8BF7\u786E\u8BA4\u5F15\u5165\u4E86mapbox-gl api\u4E14\u5728L7\u4E4B\u524D\u5F15\u5165"},jd=eg,Yf,Hd,gp=oi.merge,tg={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},No={colors:["rgb(103,0,31)","rgb(178,24,43)","rgb(214,96,77)","rgb(244,165,130)","rgb(253,219,199)","rgb(247,247,247)","rgb(209,229,240)","rgb(146,197,222)","rgb(67,147,195)","rgb(33,102,172)","rgb(5,48,97)"],size:10,shape:"circle",scales:{},shape2d:["circle","triangle","square","pentagon","hexagon","octogon","hexagram","rhombus","vesica"],shape3d:["cylinder","triangleColumn","hexagonColumn","squareColumn"],minZoom:-1,maxZoom:24,visible:!0,autoFit:!1,pickingBuffer:0,enablePropagation:!1,zIndex:0,blend:"normal",maskLayers:[],enableMask:!0,maskOperation:Qp.AND,pickedFeatureID:-1,enableMultiPassRenderer:!1,enablePicking:!0,active:!1,activeColor:"#2f54eb",enableHighlight:!1,enableSelect:!1,highlightColor:"#2f54eb",activeMix:0,selectColor:"blue",selectMix:0,enableTAA:!1,jitterScale:1,enableLighting:!1,animateOption:{enable:!1,interval:.2,duration:4,trailLength:.15},forward:!0},$a=(Yf=(0,yt.b2)(),Yf(Hd=function(){function e(){(0,Q.Z)(this,e),(0,B.Z)(this,"sceneConfigCache",{}),(0,B.Z)(this,"layerConfigCache",{}),(0,B.Z)(this,"layerAttributeConfigCache",{})}return(0,j.Z)(e,[{key:"getSceneConfig",value:function(t){return this.sceneConfigCache[t]}},{key:"getSceneWarninfo",value:function(t){return jd[t]}},{key:"setSceneConfig",value:function(t,n){this.sceneConfigCache[t]=(0,V.Z)((0,V.Z)({},tg),n)}},{key:"getLayerConfig",value:function(t){return this.layerConfigCache[t]}},{key:"setLayerConfig",value:function(t,n,i){this.layerConfigCache[n]=(0,V.Z)({},gp({},this.sceneConfigCache[t],No,i))}},{key:"getAttributeConfig",value:function(t){return this.layerAttributeConfigCache[t]}},{key:"setAttributeConfig",value:function(t,n){this.layerAttributeConfigCache[t]=(0,V.Z)((0,V.Z)({},this.layerAttributeConfigCache[t]),n)}},{key:"clean",value:function(){this.sceneConfigCache={},this.layerConfigCache={}}}]),e}())||Hd);function Ni(e,r,t,n){t&&Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(n):void 0})}function ki(e,r,t,n,i){var o={};return Object.keys(n).forEach(function(s){o[s]=n[s]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=t.slice().reverse().reduce(function(s,l){return l(e,r,s)||s},o),i&&o.initializer!==void 0&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),o.initializer===void 0&&(Object.defineProperty(e,r,o),o=null),o}var Fh=L(76126),Wd=Math.PI/180,rg=512,Gd=4003e4;function qf(e){var r=e.latitude,t=r===void 0?0:r,n=e.zoom,i=n===void 0?0:n,o=e.scale,s=e.highPrecision,l=s===void 0?!1:s,f=e.flipY,v=f===void 0?!1:f;o=o!==void 0?o:Math.pow(2,i);var y={},b=rg*o,T=Math.cos(t*Wd),M=b/360,O=M/T,F=b/Gd/T;if(y.pixelsPerMeter=[F,-F,F],y.metersPerPixel=[1/F,-1/F,1/F],y.pixelsPerDegree=[M,-O,F],y.degreesPerPixel=[1/M,-1/O,1/F],l){var $=Wd*Math.tan(t*Wd)/T,G=M*$/2,ue=b/Gd*$,xe=ue/O*F;y.pixelsPerDegree2=[0,-G,ue],y.pixelsPerMeter2=[xe,0,xe],v&&(y.pixelsPerDegree2[1]=-y.pixelsPerDegree2[1],y.pixelsPerMeter2[1]=-y.pixelsPerMeter2[1])}return v&&(y.pixelsPerMeter[1]=-y.pixelsPerMeter[1],y.metersPerPixel[1]=-y.metersPerPixel[1],y.pixelsPerDegree[1]=-y.pixelsPerDegree[1],y.degreesPerPixel[1]=-y.degreesPerPixel[1]),y}var zl=function(e){return e[e.LNGLAT=1]="LNGLAT",e[e.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",e[e.VECTOR_TILE=3]="VECTOR_TILE",e[e.IDENTITY=4]="IDENTITY",e[e.P20=5]="P20",e[e.P20_OFFSET=6]="P20_OFFSET",e[e.METER_OFFSET=7]="METER_OFFSET",e[e.P20_2=8]="P20_2",e}({}),Kf={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter",Mvp:"u_Mvp"},Po,_p,Vc,yp,Jp,Vv=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],xp=(Po=(0,yt.b2)(),_p=(0,yt.f3)(ot.ICameraService),Po(Vc=(yp=function(){function e(){(0,Q.Z)(this,e),(0,B.Z)(this,"needRefresh",!0),Ni(this,"cameraService",Jp,this),(0,B.Z)(this,"coordinateSystem",void 0),(0,B.Z)(this,"viewportCenter",void 0),(0,B.Z)(this,"viewportCenterProjection",void 0),(0,B.Z)(this,"pixelsPerDegree",void 0),(0,B.Z)(this,"pixelsPerDegree2",void 0),(0,B.Z)(this,"pixelsPerMeter",void 0)}return(0,j.Z)(e,[{key:"refresh",value:function(t){var n=this.cameraService.getZoom(),i=this.cameraService.getZoomScale(),o=t||this.cameraService.getCenter(),s=qf({latitude:o[1],zoom:n}),l=s.pixelsPerMeter,f=s.pixelsPerDegree;this.viewportCenter=o,this.viewportCenterProjection=[0,0,0,0],this.pixelsPerMeter=l,this.pixelsPerDegree=f,this.pixelsPerDegree2=[0,0,0],this.coordinateSystem===zl.LNGLAT||this.coordinateSystem===zl.P20?this.cameraService.setViewProjectionMatrix(void 0):this.coordinateSystem===zl.LNGLAT_OFFSET?this.calculateLnglatOffset(o,n):this.coordinateSystem===zl.P20_OFFSET&&this.calculateLnglatOffset(o,n,i,!0),this.needRefresh=!1}},{key:"getCoordinateSystem",value:function(){return this.coordinateSystem}},{key:"setCoordinateSystem",value:function(t){this.coordinateSystem=t}},{key:"getViewportCenter",value:function(){return this.viewportCenter}},{key:"getViewportCenterProjection",value:function(){return this.viewportCenterProjection}},{key:"getPixelsPerDegree",value:function(){return this.pixelsPerDegree}},{key:"getPixelsPerDegree2",value:function(){return this.pixelsPerDegree2}},{key:"getPixelsPerMeter",value:function(){return this.pixelsPerMeter}},{key:"calculateLnglatOffset",value:function(t,n,i,o){var s=qf({latitude:t[1],zoom:n,scale:i,flipY:o,highPrecision:!0}),l=s.pixelsPerMeter,f=s.pixelsPerDegree,v=s.pixelsPerDegree2,y=this.cameraService.getViewMatrix(),b=this.cameraService.getProjectionMatrix(),T=me.multiply([],b,y),M=this.cameraService.projectFlat([Math.fround(t[0]),Math.fround(t[1])],Math.pow(2,n));this.viewportCenterProjection=Fh.fF([],[M[0],M[1],0,1],T),y=this.cameraService.getViewMatrixUncentered()||y,T=me.multiply([],b,y),T=me.multiply([],T,Vv),this.cameraService.setViewProjectionMatrix(T),this.pixelsPerMeter=l,this.pixelsPerDegree=f,this.pixelsPerDegree2=v}}]),e}(),Jp=ki(yp.prototype,"cameraService",[_p],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),yp))||Vc),jc,jv;function ng(e){var r=E0();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function E0(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ts=(jc=(0,yt.b2)(),jc(jv=function(e){(0,Le.Z)(t,e);var r=ng(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;sO-1*wa||ye<0||Le>k-1*wa||Le<0)return!1;var $e=b({x:Math.floor(ye/r.pickBufferScale),y:Math.floor((k-(o+1)*wa)/r.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:r.pickingFBO});if(r.pickedColors=$e,$e[0]!==0||$e[1]!==0||$e[2]!==0){var ut=Oa($e),vt=t.layerPickService.getFeatureById(ut);ut!==t.getCurrentPickId()&&l==="mousemove"&&(l="mouseenter");var Rt={x:i,y:o,type:l,lngLat:s,featureId:ut,feature:vt,target:f};vt&&(v=!0,t.setCurrentPickId(ut),r.triggerHoverOnLayer(t,Rt))}else{var Jt={x:i,y:o,lngLat:s,type:t.getCurrentPickId()!==null&&l==="mousemove"?"mouseout":"un"+l,featureId:null,target:f,feature:null};r.triggerHoverOnLayer(t,(0,H.Z)((0,H.Z)({},Jt),{},{type:"unpick"})),r.triggerHoverOnLayer(t,Jt),t.setCurrentPickId(null)}if(G&&t.layerPickService.highlightPickedFeature($e),oe&&l==="click"&&($e==null?void 0:$e.toString())!==[0,0,0,0].toString()){var Mr=Oa($e);t.getCurrentSelectedId()===null||Mr!==t.getCurrentSelectedId()?(t.layerPickService.selectFeature($e),t.setCurrentSelectedId(Mr)):(t.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),t.setCurrentSelectedId(null))}return v})}return(0,V.Z)(e,[{key:"init",value:function(t){var n=this.rendererService,i=n.createTexture2D,o=n.createFramebuffer,s=n.getContainer,l=this.getContainerSize(s()),f=l.width,v=l.height;f*=wa,v*=wa,this.pickBufferScale=this.configService.getSceneConfig(t).pickBufferScale||1,this.pickingFBO=o({color:i({width:Math.round(f/this.pickBufferScale),height:Math.round(v/this.pickBufferScale),wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE})}),this.interactionService.on(a.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o,s){var l=this,f,v,y;return me().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:f=this.rendererService,v=f.useFramebuffer,y=f.clear,this.resizePickingFBO(),v(this.pickingFBO,function(){y({framebuffer:l.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),i.hooks.beforePickingEncode.call(),i.renderModels({ispick:!0}),i.hooks.afterPickingEncode.call();var M=l.pickBox(i,o);s(M)});case 3:case"end":return T.stop()}},n,this)}));function t(n,i,o){return r.apply(this,arguments)}return t}()},{key:"pickBox",value:function(t,n){var i=this,o=n.map(function(Mr){var br=Mr<0?0:Mr;return Math.floor(br*wa/i.pickBufferScale)}),s=(0,yn.Z)(o,4),l=s[0],f=s[1],v=s[2],y=s[3],b=this.rendererService,T=b.readPixels,M=b.getContainer,O=this.getContainerSize(M()),k=O.width,$=O.height;if(k*=wa,$*=wa,l>(k-1)*wa/this.pickBufferScale||v<0||f>($-1)*wa/this.pickBufferScale||y<0)return[];for(var G=Math.min(k/this.pickBufferScale,v)-l,oe=Math.min($/this.pickBufferScale,y)-f,ye=T({x:l,y:Math.floor($/this.pickBufferScale-(y+1)),width:G,height:oe,data:new Uint8Array(G*oe*4),framebuffer:this.pickingFBO}),Le=[],$e={},ut=0;ut0&&arguments[0]!==void 0?arguments[0]:!0;(0,q.Z)(this,e),(0,B.Z)(this,"autoStart",void 0),(0,B.Z)(this,"startTime",0),(0,B.Z)(this,"oldTime",0),(0,B.Z)(this,"running",!1),(0,B.Z)(this,"elapsedTime",0),this.autoStart=r}return(0,V.Z)(e,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var n=(typeof performance=="undefined"?Date:performance).now();t=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=t}return t}}]),e}(),Ei,Qn,Tn,Ii,gi,Bi,Zn,ra,Ua;function Ja(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=so(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function so(e,r){if(e){if(typeof e=="string")return za(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return za(e,r)}}function za(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t-1&&l.layerChildren.splice(f,1)):(v=this.layers.indexOf(s),v>-1&&this.layers.splice(v,1)),s.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return b.stop()}},o,this)}));function i(o,s){return n.apply(this,arguments)}return i}()},{key:"removeAllLayers",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:this.destroy(),this.reRender();case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"setEnableRender",value:function(i){this.enableRender=i}},{key:"renderLayers",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b;return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){M.next=2;break}return M.abrupt("return");case 2:this.updateLayerRenderList(),s=this.debugService.generateRenderUid(),this.debugService.renderStart(s),this.alreadyInRendering=!0,this.clear(),this.renderService.beginFrame(),l=Ja(this.layerList),M.prev=9,l.s();case 11:if((f=l.n()).done){M.next=24;break}if(v=f.value,y=v.getLayerConfig(),b=y.enableMask,v.masks.filter(function(O){return O.inited}).length>0&&b&&this.renderMask(v.masks),!v.getLayerConfig().enableMultiPassRenderer){M.next=20;break}return M.next=18,v.renderMultiPass();case 18:M.next=22;break;case 20:return M.next=22,v.render();case 22:M.next=11;break;case 24:M.next=29;break;case 26:M.prev=26,M.t0=M.catch(9),l.e(M.t0);case 29:return M.prev=29,l.f(),M.finish(29);case 32:this.renderService.endFrame(),this.debugService.renderEnd(s),this.alreadyInRendering=!1;case 35:case"end":return M.stop()}},o,this,[[9,26,29,32]])}));function i(){return n.apply(this,arguments)}return i}()},{key:"renderMask",value:function(i){var o=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var s=i.length>1?hc.MULTIPLE:hc.SINGLE,l=Ja(i),f;try{for(l.s();!(f=l.n()).done;){var v=f.value;v.render({isStencil:!0,stencilType:s,stencilIndex:o++})}}catch(y){l.e(y)}finally{l.f()}}},{key:"beforeRenderData",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,s.hooks.beforeRenderData.promise();case 2:l=v.sent,l&&this.renderLayers();case 4:case"end":return v.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"renderTileLayerMask",value:function(i){var o=0,s=i.getLayerConfig(),l=s.enableMask,f=l===void 0?!0:l,v=i.tileMask?1:0,y=i.masks.filter(function(k){return k.inited});v=v+(f?y.length:1);var b=v>1?hc.MULTIPLE:hc.SINGLE;if((i.tileMask||y.length&&f)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),y.length&&f){var T=Ja(y),M;try{for(T.s();!(M=T.n()).done;){var O=M.value;O.render({isStencil:!0,stencilType:b,stencilIndex:o++})}}catch(k){T.e(k)}finally{T.f()}}i.tileMask&&i.tileMask.render({isStencil:!0,stencilType:b,stencilIndex:o++,stencilOperation:Qp.OR})}},{key:"renderTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.renderTileLayerMask(s),!s.getLayerConfig().enableMultiPassRenderer){f.next=6;break}return f.next=4,s.renderMultiPass();case 4:f.next=8;break;case 6:return f.next=8,s.render();case 8:case"end":return f.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"updateLayerRenderList",value:function(){var i=this;this.layerList=[],this.layers.filter(function(o){return o.inited}).filter(function(o){return o.isVisible()}).sort(function(o,s){return o.zIndex-s.zIndex}).forEach(function(o){i.layerList.push(o)})}},{key:"destroy",value:function(){this.layers.forEach(function(i){i.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var i=fi(this.mapService.bgColor);this.renderService.clear({color:i,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),t}(no.EventEmitter),Zn=Oi(Bi.prototype,"renderService",[Qn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ra=Oi(Bi.prototype,"mapService",[Tn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ua=Oi(Bi.prototype,"debugService",[Ii],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bi))||gi),Fa=L(10570),Vs=ii.isNil,bo=function(){function e(r){var t=this;(0,q.Z)(this,e),(0,B.Z)(this,"name",void 0),(0,B.Z)(this,"type",void 0),(0,B.Z)(this,"scale",void 0),(0,B.Z)(this,"descriptor",void 0),(0,B.Z)(this,"featureBufferLayout",[]),(0,B.Z)(this,"needRescale",!1),(0,B.Z)(this,"needRemapping",!1),(0,B.Z)(this,"needRegenerateVertices",!1),(0,B.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,B.Z)(this,"vertexAttribute",void 0),(0,B.Z)(this,"defaultCallback",function(n){if(n.length===0){var i;return((i=t.scale)===null||i===void 0?void 0:i.defaultValues)||[]}return n.map(function(o,s){var l,f=(l=t.scale)===null||l===void 0?void 0:l.scalers[s].func,v=f(o);return v})}),this.setProps(r)}return(0,V.Z)(e,[{key:"setProps",value:function(t){Object.assign(this,t)}},{key:"mapping",value:function(t){var n;if((n=this.scale)!==null&&n!==void 0&&n.callback){var i,o=(i=this.scale)===null||i===void 0?void 0:i.callback.apply(i,(0,Wt.Z)(t));if(!Vs(o))return[o]}return this.defaultCallback(t)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),e}(),rs=["buffer","update","name"],zi=["buffer","update","name"],fa,va,Xi,js,ns,Ba,Po=(fa={},(0,B.Z)(fa,R.FLOAT,4),(0,B.Z)(fa,R.UNSIGNED_BYTE,1),(0,B.Z)(fa,R.UNSIGNED_SHORT,2),fa),ws=(va=(0,gt.b2)(),Xi=(0,gt.f3)(tt.IRendererService),va(js=(ns=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"attributesAndIndices",void 0),Fi(this,"rendererService",Ba,this),(0,B.Z)(this,"attributes",[]),(0,B.Z)(this,"triangulation",void 0),(0,B.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,V.Z)(e,[{key:"registerStyleAttribute",value:function(t){var n=this.getLayerStyleAttribute(t.name||"");return n?n.setProps(t):(n=new bo(t),this.attributes.push(n)),n}},{key:"unRegisterStyleAttribute",value:function(t){var n=this.attributes.findIndex(function(i){return i.name===t});n>-1&&this.attributes.splice(n,1)}},{key:"updateScaleAttribute",value:function(t){this.attributes.forEach(function(n){var i,o=n.name,s=(i=n.scale)===null||i===void 0?void 0:i.field;(t[o]||s&&t[s])&&(n.needRescale=!0,n.needRemapping=!0,n.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(t,n,i){var o=this.getLayerStyleAttribute(t);o||(o=this.registerStyleAttribute((0,H.Z)((0,H.Z)({},n),{},{name:t})));var s=n.scale;s&&o&&(o.scale=s,o.needRescale=!0,o.needRemapping=!0,o.needRegenerateVertices=!0,i&&i.featureRange&&(o.featureRange=i.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(t){return this.attributes.find(function(n){return n.name===t})}},{key:"getLayerAttributeScale",value:function(t){var n,i=this.getLayerStyleAttribute(t),o=i==null||(n=i.scale)===null||n===void 0?void 0:n.scalers;return o&&o[0]?o[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=this.attributes.find(function($e){return $e.name===t});if(l&&l.descriptor){var f=l.descriptor,v=f.update,y=f.buffer,b=f.size,T=b===void 0?0:b,M=Po[y.type||R.FLOAT];if(v){var O=this.featureLayout,k=O.elements,$=O.sizePerElement,G=k.slice(i,o);if(!G.length)return;var oe=G[0].offset,ye=oe*T*M,Le=G.map(function($e,ut){for(var vt=$e.featureIdx,Rt=$e.vertices,Jt=$e.normals,Mr=Rt.length/$,br=[],pn=0;pn0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return o}function eo(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,o;n=0&&n.length%1===0}e.exports=r.default})(pc,pc.exports);var Cs={},dc={exports:{}},Jf={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var o=n.pop();return t.call(this,n,o)}},e.exports=r.default})(Jf,Jf.exports);var vc={};Object.defineProperty(vc,"__esModule",{value:!0}),vc.fallback=td,vc.wrap=Hc;var Ep=vc.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,ed=vc.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Xd=vc.hasNextTick=typeof qi=="object"&&typeof qi.nextTick=="function";function td(e){setTimeout(e,0)}function Hc(e){return function(r){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return e(function(){return r.apply(void 0,t)})}}var Sf;Ep?Sf=queueMicrotask:ed?Sf=setImmediate:Xd?Sf=qi.nextTick:Sf=td,vc.default=Hc(Sf),function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=f;var t=Jf.exports,n=l(t),i=vc,o=l(i),s=Cs;function l(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,s.isAsync)(b)?function(){for(var T=[],M=arguments.length;M--;)T[M]=arguments[M];var O=T.pop(),k=b.apply(this,T);return v(k,O)}:(0,n.default)(function(T,M){var O;try{O=b.apply(this,T)}catch(k){return M(k)}if(O&&typeof O.then=="function")return v(O,M);M(null,O)})}function v(b,T){return b.then(function(M){y(T,null,M)},function(M){y(T,M&&M.message?M:new Error(M))})}function y(b,T,M){try{b(T,M)}catch(O){(0,o.default)(function(k){throw k},O)}}e.exports=r.default}(dc,dc.exports),Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.isAsyncIterable=Cs.isAsyncGenerator=Cs.isAsync=void 0;var Sp=dc.exports,eh=Ap(Sp);function Ap(e){return e&&e.__esModule?e:{default:e}}function rd(e){return e[Symbol.toStringTag]==="AsyncFunction"}function $d(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function nd(e){return typeof e[Symbol.asyncIterator]=="function"}function id(e){if(typeof e!="function")throw new Error("expected a function");return rd(e)?(0,eh.default)(e):e}Cs.default=id,Cs.isAsync=rd,Cs.isAsyncGenerator=$d,Cs.isAsyncIterable=nd;var Wc={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(n,i){if(i===void 0&&(i=n.length),!i)throw new Error("arity is undefined");function o(){for(var s=this,l=[],f=arguments.length;f--;)l[f]=arguments[f];return typeof l[i-1]=="function"?n.apply(this,l):new Promise(function(v,y){l[i-1]=function(b){for(var T=[],M=arguments.length-1;M-- >0;)T[M]=arguments[M+1];if(b)return y(b);v(T.length>1?T:T[0])},n.apply(s,l)})}return o}e.exports=r.default})(Wc,Wc.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=pc.exports,n=f(t),i=Cs,o=f(i),s=Wc.exports,l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}r.default=(0,l.default)(function(v,y,b){var T=(0,n.default)(y)?[]:{};v(y,function(M,O,k){(0,o.default)(M)(function($){for(var G,oe=[],ye=arguments.length-1;ye-- >0;)oe[ye]=arguments[ye+1];oe.length<2&&(G=oe,oe=G[0]),T[O]=oe,k($)})},function(M){return b(M,T)})},3),e.exports=r.default}(Ef,Ef.exports);var Fh={exports:{}},th={exports:{}},Bh={exports:{}},rh={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(n){function i(){for(var o=[],s=arguments.length;s--;)o[s]=arguments[s];if(n!==null){var l=n;n=null,l.apply(this,o)}}return Object.assign(i,n),i}e.exports=r.default})(rh,rh.exports);var nh={exports:{}},Tp={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()},e.exports=r.default})(Tp,Tp.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=y;var t=pc.exports,n=s(t),i=Tp.exports,o=s(i);function s(b){return b&&b.__esModule?b:{default:b}}function l(b){var T=-1,M=b.length;return function(){return++T=l||T||y||(T=!0,s.next().then(function(oe){var ye=oe.value,Le=oe.done;if(!(b||y)){if(T=!1,Le){y=!0,M<=0&&v(null);return}M++,f(ye,O,$),O++,k()}}).catch(G))}function $(oe,ye){if(M-=1,!b){if(oe)return G(oe);if(oe===!1){y=!0,b=!0;return}if(ye===n.default||y&&M<=0)return y=!0,v(null);k()}}function G(oe){b||(T=!1,y=!0,v(oe))}k()}e.exports=r.default}(Lh,Lh.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=rh.exports,n=M(t),i=nh.exports,o=M(i),s=Gc.exports,l=M(s),f=Cs,v=Lh.exports,y=M(v),b=mc.exports,T=M(b);function M(O){return O&&O.__esModule?O:{default:O}}r.default=function(O){return function(k,$,G){if(G=(0,n.default)(G),O<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!k)return G(null);if((0,f.isAsyncGenerator)(k))return(0,y.default)(k,O,$,G);if((0,f.isAsyncIterable)(k))return(0,y.default)(k[Symbol.asyncIterator](),O,$,G);var oe=(0,o.default)(k),ye=!1,Le=!1,$e=0,ut=!1;function vt(Jt,Mr){if(!Le)if($e-=1,Jt)ye=!0,G(Jt);else if(Jt===!1)ye=!0,Le=!0;else{if(Mr===T.default||ye&&$e<=0)return ye=!0,G(null);ut||Rt()}}function Rt(){for(ut=!0;$e0;)oe[ye]=arguments[ye+1];if(G!==!1){if(G||O===T.length)return M.apply(void 0,[G].concat(oe));k(oe)}}k([])}r.default=(0,v.default)(b),e.exports=r.default})(od,od.exports);var ig=Vl(od.exports),qd=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return ig(this.tasks)},e.prototype.tap=function(r,t){this.tasks.length===0?this.tasks.push(function(n){var i=t();n(i?null:!1,i)}):this.tasks.push(function(n,i){var o=t.apply(void 0,eo([],vl(n),!1));i(o?null:!1,r)})},e}(),fo=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return ih(this.tasks)},e.prototype.tap=function(r,t){this.tasks.push(function(n){var i=t();n(i,r)})},e}(),gc=function(){function e(){this.args=[],this.tasks=[]}return e.prototype.promise=function(){for(var r=arguments,t=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,t={};return e=e.replace(nv,function(n,i,o){var s=o.split(":"),l=s[0].trim(),f="";switch(s.length>1&&(f=s[1].trim()),i){case"bool":f=f==="true";break;case"float":case"int":f=Number(f);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":f?f=f.replace("[","").replace("]","").split(",").reduce(function(v,y){return v.push(Number(y.trim())),v},[]):f=new Array(ug(i)).fill(0);break;default:}return t[l]=f,"".concat(r?"uniform ":"").concat(i," ").concat(l,`; + `,t.id="l7-scene-".concat(H++),t.classList.add("l7-scene"),r.appendChild(t),t}return null}function ne(e){var r,t=!0;if((e==null||(r=e.target)===null||r===void 0?void 0:r.target)instanceof HTMLElement)for(var n,i=e==null||(n=e.target)===null||n===void 0?void 0:n.target;i;){var o,s=Array.from(i.classList);if(s.includes("l7-marker")||s.includes("l7-popup")){t=!1;break}i=(o=i)===null||o===void 0?void 0:o.parentElement}return t}var R=function(e){return e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.FUNC_ADD=32774]="FUNC_ADD",e[e.BLEND_EQUATION=32777]="BLEND_EQUATION",e[e.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",e[e.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",e[e.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",e[e.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",e[e.MAX_EXT=32776]="MAX_EXT",e[e.MIN_EXT=32775]="MIN_EXT",e[e.BLEND_DST_RGB=32968]="BLEND_DST_RGB",e[e.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",e[e.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",e[e.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",e[e.BLEND_COLOR=32773]="BLEND_COLOR",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",e[e.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.BUFFER_SIZE=34660]="BUFFER_SIZE",e[e.BUFFER_USAGE=34661]="BUFFER_USAGE",e[e.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK",e[e.CULL_FACE=2884]="CULL_FACE",e[e.BLEND=3042]="BLEND",e[e.DITHER=3024]="DITHER",e[e.STENCIL_TEST=2960]="STENCIL_TEST",e[e.DEPTH_TEST=2929]="DEPTH_TEST",e[e.SCISSOR_TEST=3089]="SCISSOR_TEST",e[e.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",e[e.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",e[e.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",e[e.NO_ERROR=0]="NO_ERROR",e[e.INVALID_ENUM=1280]="INVALID_ENUM",e[e.INVALID_VALUE=1281]="INVALID_VALUE",e[e.INVALID_OPERATION=1282]="INVALID_OPERATION",e[e.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",e[e.CW=2304]="CW",e[e.CCW=2305]="CCW",e[e.LINE_WIDTH=2849]="LINE_WIDTH",e[e.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",e[e.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",e[e.CULL_FACE_MODE=2885]="CULL_FACE_MODE",e[e.FRONT_FACE=2886]="FRONT_FACE",e[e.DEPTH_RANGE=2928]="DEPTH_RANGE",e[e.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",e[e.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",e[e.DEPTH_FUNC=2932]="DEPTH_FUNC",e[e.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",e[e.STENCIL_FUNC=2962]="STENCIL_FUNC",e[e.STENCIL_FAIL=2964]="STENCIL_FAIL",e[e.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",e[e.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",e[e.STENCIL_REF=2967]="STENCIL_REF",e[e.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",e[e.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",e[e.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",e[e.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",e[e.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",e[e.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",e[e.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",e[e.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",e[e.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",e[e.VIEWPORT=2978]="VIEWPORT",e[e.SCISSOR_BOX=3088]="SCISSOR_BOX",e[e.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",e[e.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",e[e.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",e[e.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",e[e.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",e[e.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",e[e.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",e[e.RED_BITS=3410]="RED_BITS",e[e.GREEN_BITS=3411]="GREEN_BITS",e[e.BLUE_BITS=3412]="BLUE_BITS",e[e.ALPHA_BITS=3413]="ALPHA_BITS",e[e.DEPTH_BITS=3414]="DEPTH_BITS",e[e.STENCIL_BITS=3415]="STENCIL_BITS",e[e.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",e[e.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",e[e.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",e[e.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",e[e.SAMPLES=32937]="SAMPLES",e[e.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",e[e.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",e[e.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",e[e.DONT_CARE=4352]="DONT_CARE",e[e.FASTEST=4353]="FASTEST",e[e.NICEST=4354]="NICEST",e[e.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER",e[e.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",e[e.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",e[e.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",e[e.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",e[e.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",e[e.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",e[e.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",e[e.SHADER_TYPE=35663]="SHADER_TYPE",e[e.DELETE_STATUS=35712]="DELETE_STATUS",e[e.LINK_STATUS=35714]="LINK_STATUS",e[e.VALIDATE_STATUS=35715]="VALIDATE_STATUS",e[e.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",e[e.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",e[e.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",e[e.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",e[e.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP",e[e.VENDOR=7936]="VENDOR",e[e.RENDERER=7937]="RENDERER",e[e.VERSION=7938]="VERSION",e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",e[e.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",e[e.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",e[e.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",e[e.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE=5890]="TEXTURE",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",e[e.TEXTURE0=33984]="TEXTURE0",e[e.TEXTURE1=33985]="TEXTURE1",e[e.TEXTURE2=33986]="TEXTURE2",e[e.TEXTURE3=33987]="TEXTURE3",e[e.TEXTURE4=33988]="TEXTURE4",e[e.TEXTURE5=33989]="TEXTURE5",e[e.TEXTURE6=33990]="TEXTURE6",e[e.TEXTURE7=33991]="TEXTURE7",e[e.TEXTURE8=33992]="TEXTURE8",e[e.TEXTURE9=33993]="TEXTURE9",e[e.TEXTURE10=33994]="TEXTURE10",e[e.TEXTURE11=33995]="TEXTURE11",e[e.TEXTURE12=33996]="TEXTURE12",e[e.TEXTURE13=33997]="TEXTURE13",e[e.TEXTURE14=33998]="TEXTURE14",e[e.TEXTURE15=33999]="TEXTURE15",e[e.TEXTURE16=34e3]="TEXTURE16",e[e.TEXTURE17=34001]="TEXTURE17",e[e.TEXTURE18=34002]="TEXTURE18",e[e.TEXTURE19=34003]="TEXTURE19",e[e.TEXTURE20=34004]="TEXTURE20",e[e.TEXTURE21=34005]="TEXTURE21",e[e.TEXTURE22=34006]="TEXTURE22",e[e.TEXTURE23=34007]="TEXTURE23",e[e.TEXTURE24=34008]="TEXTURE24",e[e.TEXTURE25=34009]="TEXTURE25",e[e.TEXTURE26=34010]="TEXTURE26",e[e.TEXTURE27=34011]="TEXTURE27",e[e.TEXTURE28=34012]="TEXTURE28",e[e.TEXTURE29=34013]="TEXTURE29",e[e.TEXTURE30=34014]="TEXTURE30",e[e.TEXTURE31=34015]="TEXTURE31",e[e.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",e[e.REPEAT=10497]="REPEAT",e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",e[e.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",e[e.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",e[e.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",e[e.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",e[e.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",e[e.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",e[e.COMPILE_STATUS=35713]="COMPILE_STATUS",e[e.LOW_FLOAT=36336]="LOW_FLOAT",e[e.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",e[e.HIGH_FLOAT=36338]="HIGH_FLOAT",e[e.LOW_INT=36339]="LOW_INT",e[e.MEDIUM_INT=36340]="MEDIUM_INT",e[e.HIGH_INT=36341]="HIGH_INT",e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.RENDERBUFFER=36161]="RENDERBUFFER",e[e.RGBA4=32854]="RGBA4",e[e.RGB5_A1=32855]="RGB5_A1",e[e.RGB565=36194]="RGB565",e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX=6401]="STENCIL_INDEX",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",e[e.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",e[e.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",e[e.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",e[e.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",e[e.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",e[e.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",e[e.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",e[e.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",e[e.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",e[e.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",e[e.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",e[e.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",e[e.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",e[e.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",e[e.NONE=0]="NONE",e[e.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",e[e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",e[e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",e[e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",e[e.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",e[e.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",e[e.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",e[e.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",e[e.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",e[e.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",e[e.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",e[e.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",e[e.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",e[e.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",e}({}),Pe,Be,rt,Ge,St,Ft,Yt,qt,dr,Lr,Xr,Bn,cn,Vn=(Pe=(0,yt.b2)(),Be=(0,yt.f3)(ot.IMapService),rt=(0,yt.f3)(ot.IRendererService),Ge=(0,yt.f3)(ot.IGlobalConfigService),St=(0,yt.f3)(ot.IInteractionService),Ft=(0,yt.f3)(ot.ILayerService),Pe(Yt=(qt=function(){function e(){var r=this;(0,Q.Z)(this,e),(0,B.Z)(this,"pickedColors",void 0),(0,B.Z)(this,"pickedTileLayers",[]),Ni(this,"mapService",dr,this),Ni(this,"rendererService",Lr,this),Ni(this,"configService",Xr,this),Ni(this,"interactionService",Bn,this),Ni(this,"layerService",cn,this),(0,B.Z)(this,"pickingFBO",void 0),(0,B.Z)(this,"width",0),(0,B.Z)(this,"height",0),(0,B.Z)(this,"alreadyInPicking",!1),(0,B.Z)(this,"pickBufferScale",1),(0,B.Z)(this,"pickFromPickingFBO",function(t,n){var i=n.x,o=n.y,s=n.lngLat,l=n.type,f=n.target,v=!1,y=r.rendererService,b=y.readPixels,T=y.getContainer,M=r.getContainerSize(T()),O=M.width,F=M.height;O*=wa,F*=wa;var $=t.getLayerConfig(),G=$.enableHighlight,ue=$.enableSelect,xe=i*wa,ze=o*wa;if(xe>O-1*wa||xe<0||ze>F-1*wa||ze<0)return!1;var Je=b({x:Math.floor(xe/r.pickBufferScale),y:Math.floor((F-(o+1)*wa)/r.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:r.pickingFBO});if(r.pickedColors=Je,Je[0]!==0||Je[1]!==0||Je[2]!==0){var ht=Oa(Je),gt=t.layerPickService.getFeatureById(ht);ht!==t.getCurrentPickId()&&l==="mousemove"&&(l="mouseenter");var Ot={x:i,y:o,type:l,lngLat:s,featureId:ht,feature:gt,target:f};gt&&(v=!0,t.setCurrentPickId(ht),r.triggerHoverOnLayer(t,Ot))}else{var tr={x:i,y:o,lngLat:s,type:t.getCurrentPickId()!==null&&l==="mousemove"?"mouseout":"un"+l,featureId:null,target:f,feature:null};r.triggerHoverOnLayer(t,(0,V.Z)((0,V.Z)({},tr),{},{type:"unpick"})),r.triggerHoverOnLayer(t,tr),t.setCurrentPickId(null)}if(G&&t.layerPickService.highlightPickedFeature(Je),ue&&l==="click"&&(Je==null?void 0:Je.toString())!==[0,0,0,0].toString()){var Ir=Oa(Je);t.getCurrentSelectedId()===null||Ir!==t.getCurrentSelectedId()?(t.layerPickService.selectFeature(Je),t.setCurrentSelectedId(Ir)):(t.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),t.setCurrentSelectedId(null))}return v})}return(0,j.Z)(e,[{key:"init",value:function(t){var n=this.rendererService,i=n.createTexture2D,o=n.createFramebuffer,s=n.getContainer,l=this.getContainerSize(s()),f=l.width,v=l.height;f*=wa,v*=wa,this.pickBufferScale=this.configService.getSceneConfig(t).pickBufferScale||1,this.pickingFBO=o({color:i({width:Math.round(f/this.pickBufferScale),height:Math.round(v/this.pickBufferScale),wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE})}),this.interactionService.on(a.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var r=(0,Pt.Z)(ge().mark(function n(i,o,s){var l=this,f,v,y;return ge().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:f=this.rendererService,v=f.useFramebuffer,y=f.clear,this.resizePickingFBO(),v(this.pickingFBO,function(){y({framebuffer:l.pickingFBO,color:[0,0,0,0],stencil:0,depth:1}),i.hooks.beforePickingEncode.call(),i.renderModels({ispick:!0}),i.hooks.afterPickingEncode.call();var M=l.pickBox(i,o);s(M)});case 3:case"end":return T.stop()}},n,this)}));function t(n,i,o){return r.apply(this,arguments)}return t}()},{key:"pickBox",value:function(t,n){var i=this,o=n.map(function(Ir){var Er=Ir<0?0:Ir;return Math.floor(Er*wa/i.pickBufferScale)}),s=(0,Sn.Z)(o,4),l=s[0],f=s[1],v=s[2],y=s[3],b=this.rendererService,T=b.readPixels,M=b.getContainer,O=this.getContainerSize(M()),F=O.width,$=O.height;if(F*=wa,$*=wa,l>(F-1)*wa/this.pickBufferScale||v<0||f>($-1)*wa/this.pickBufferScale||y<0)return[];for(var G=Math.min(F/this.pickBufferScale,v)-l,ue=Math.min($/this.pickBufferScale,y)-f,xe=T({x:l,y:Math.floor($/this.pickBufferScale-(y+1)),width:G,height:ue,data:new Uint8Array(G*ue*4),framebuffer:this.pickingFBO}),ze=[],Je={},ht=0;ht0&&arguments[0]!==void 0?arguments[0]:!0;(0,Q.Z)(this,e),(0,B.Z)(this,"autoStart",void 0),(0,B.Z)(this,"startTime",0),(0,B.Z)(this,"oldTime",0),(0,B.Z)(this,"running",!1),(0,B.Z)(this,"elapsedTime",0),this.autoStart=r}return(0,j.Z)(e,[{key:"start",value:function(){this.startTime=(typeof performance=="undefined"?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}},{key:"stop",value:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}},{key:"getElapsedTime",value:function(){return this.getDelta(),this.elapsedTime}},{key:"getDelta",value:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var n=(typeof performance=="undefined"?Date:performance).now();t=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=t}return t}}]),e}(),Ei,ti,Rn,Di,gi,Ui,jn,ia,za;function eo(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=uo(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function uo(e,r){if(e){if(typeof e=="string")return Za(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Za(e,r)}}function Za(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t-1&&l.layerChildren.splice(f,1)):(v=this.layers.indexOf(s),v>-1&&this.layers.splice(v,1)),s.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return b.stop()}},o,this)}));function i(o,s){return n.apply(this,arguments)}return i}()},{key:"removeAllLayers",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:this.destroy(),this.reRender();case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"setEnableRender",value:function(i){this.enableRender=i}},{key:"renderLayers",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v,y,b;return ge().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){M.next=2;break}return M.abrupt("return");case 2:this.updateLayerRenderList(),s=this.debugService.generateRenderUid(),this.debugService.renderStart(s),this.alreadyInRendering=!0,this.clear(),this.renderService.beginFrame(),l=eo(this.layerList),M.prev=9,l.s();case 11:if((f=l.n()).done){M.next=24;break}if(v=f.value,y=v.getLayerConfig(),b=y.enableMask,v.masks.filter(function(O){return O.inited}).length>0&&b&&this.renderMask(v.masks),!v.getLayerConfig().enableMultiPassRenderer){M.next=20;break}return M.next=18,v.renderMultiPass();case 18:M.next=22;break;case 20:return M.next=22,v.render();case 22:M.next=11;break;case 24:M.next=29;break;case 26:M.prev=26,M.t0=M.catch(9),l.e(M.t0);case 29:return M.prev=29,l.f(),M.finish(29);case 32:this.renderService.endFrame(),this.debugService.renderEnd(s),this.alreadyInRendering=!1;case 35:case"end":return M.stop()}},o,this,[[9,26,29,32]])}));function i(){return n.apply(this,arguments)}return i}()},{key:"renderMask",value:function(i){var o=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var s=i.length>1?hc.MULTIPLE:hc.SINGLE,l=eo(i),f;try{for(l.s();!(f=l.n()).done;){var v=f.value;v.render({isStencil:!0,stencilType:s,stencilIndex:o++})}}catch(y){l.e(y)}finally{l.f()}}},{key:"beforeRenderData",value:function(){var n=(0,Pt.Z)(ge().mark(function o(s){var l;return ge().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,s.hooks.beforeRenderData.promise();case 2:l=v.sent,l&&this.renderLayers();case 4:case"end":return v.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"renderTileLayerMask",value:function(i){var o=0,s=i.getLayerConfig(),l=s.enableMask,f=l===void 0?!0:l,v=i.tileMask?1:0,y=i.masks.filter(function(F){return F.inited});v=v+(f?y.length:1);var b=v>1?hc.MULTIPLE:hc.SINGLE;if((i.tileMask||y.length&&f)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),y.length&&f){var T=eo(y),M;try{for(T.s();!(M=T.n()).done;){var O=M.value;O.render({isStencil:!0,stencilType:b,stencilIndex:o++})}}catch(F){T.e(F)}finally{T.f()}}i.tileMask&&i.tileMask.render({isStencil:!0,stencilType:b,stencilIndex:o++,stencilOperation:Qp.OR})}},{key:"renderTileLayer",value:function(){var n=(0,Pt.Z)(ge().mark(function o(s){return ge().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.renderTileLayerMask(s),!s.getLayerConfig().enableMultiPassRenderer){f.next=6;break}return f.next=4,s.renderMultiPass();case 4:f.next=8;break;case 6:return f.next=8,s.render();case 8:case"end":return f.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"updateLayerRenderList",value:function(){var i=this;this.layerList=[],this.layers.filter(function(o){return o.inited}).filter(function(o){return o.isVisible()}).sort(function(o,s){return o.zIndex-s.zIndex}).forEach(function(o){i.layerList.push(o)})}},{key:"destroy",value:function(){this.layers.forEach(function(i){i.destroy()}),this.layers=[],this.layerList=[],this.emit("layerChange",this.layers)}},{key:"startAnimate",value:function(){this.animateInstanceCount++===0&&(this.clock.start(),this.runRender())}},{key:"stopAnimate",value:function(){--this.animateInstanceCount===0&&(this.stopRender(),this.clock.stop())}},{key:"getOESTextureFloat",value:function(){return this.renderService.extensionObject.OES_texture_float}},{key:"enableShaderPick",value:function(){this.shaderPicking=!0}},{key:"disableShaderPick",value:function(){this.shaderPicking=!1}},{key:"getShaderPickStat",value:function(){return this.shaderPicking}},{key:"clear",value:function(){var i=fi(this.mapService.bgColor);this.renderService.clear({color:i,depth:1,stencil:0,framebuffer:null})}},{key:"runRender",value:function(){this.renderLayers(),this.layerRenderID=window.requestAnimationFrame(this.runRender.bind(this))}},{key:"stopRender",value:function(){window.cancelAnimationFrame(this.layerRenderID)}}]),t}(io.EventEmitter),jn=ki(Ui.prototype,"renderService",[ti],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ia=ki(Ui.prototype,"mapService",[Rn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),za=ki(Ui.prototype,"debugService",[Di],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ui))||gi),ka=L(98787),js=oi.isNil,So=function(){function e(r){var t=this;(0,Q.Z)(this,e),(0,B.Z)(this,"name",void 0),(0,B.Z)(this,"type",void 0),(0,B.Z)(this,"scale",void 0),(0,B.Z)(this,"descriptor",void 0),(0,B.Z)(this,"featureBufferLayout",[]),(0,B.Z)(this,"needRescale",!1),(0,B.Z)(this,"needRemapping",!1),(0,B.Z)(this,"needRegenerateVertices",!1),(0,B.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,B.Z)(this,"vertexAttribute",void 0),(0,B.Z)(this,"defaultCallback",function(n){if(n.length===0){var i;return((i=t.scale)===null||i===void 0?void 0:i.defaultValues)||[]}return n.map(function(o,s){var l,f=(l=t.scale)===null||l===void 0?void 0:l.scalers[s].func,v=f(o);return v})}),this.setProps(r)}return(0,j.Z)(e,[{key:"setProps",value:function(t){Object.assign(this,t)}},{key:"mapping",value:function(t){var n;if((n=this.scale)!==null&&n!==void 0&&n.callback){var i,o=(i=this.scale)===null||i===void 0?void 0:i.callback.apply(i,(0,Kt.Z)(t));if(!js(o))return[o]}return this.defaultCallback(t)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),e}(),rs=["buffer","update","name"],ji=["buffer","update","name"],fa,va,$i,Hs,ns,Ba,Oo=(fa={},(0,B.Z)(fa,R.FLOAT,4),(0,B.Z)(fa,R.UNSIGNED_BYTE,1),(0,B.Z)(fa,R.UNSIGNED_SHORT,2),fa),ws=(va=(0,yt.b2)(),$i=(0,yt.f3)(ot.IRendererService),va(Hs=(ns=function(){function e(){(0,Q.Z)(this,e),(0,B.Z)(this,"attributesAndIndices",void 0),Ni(this,"rendererService",Ba,this),(0,B.Z)(this,"attributes",[]),(0,B.Z)(this,"triangulation",void 0),(0,B.Z)(this,"featureLayout",{sizePerElement:0,elements:[]})}return(0,j.Z)(e,[{key:"registerStyleAttribute",value:function(t){var n=this.getLayerStyleAttribute(t.name||"");return n?n.setProps(t):(n=new So(t),this.attributes.push(n)),n}},{key:"unRegisterStyleAttribute",value:function(t){var n=this.attributes.findIndex(function(i){return i.name===t});n>-1&&this.attributes.splice(n,1)}},{key:"updateScaleAttribute",value:function(t){this.attributes.forEach(function(n){var i,o=n.name,s=(i=n.scale)===null||i===void 0?void 0:i.field;(t[o]||s&&t[s])&&(n.needRescale=!0,n.needRemapping=!0,n.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(t,n,i){var o=this.getLayerStyleAttribute(t);o||(o=this.registerStyleAttribute((0,V.Z)((0,V.Z)({},n),{},{name:t})));var s=n.scale;s&&o&&(o.scale=s,o.needRescale=!0,o.needRemapping=!0,o.needRegenerateVertices=!0,i&&i.featureRange&&(o.featureRange=i.featureRange))}},{key:"getLayerStyleAttributes",value:function(){return this.attributes}},{key:"getLayerStyleAttribute",value:function(t){return this.attributes.find(function(n){return n.name===t})}},{key:"getLayerAttributeScale",value:function(t){var n,i=this.getLayerStyleAttribute(t),o=i==null||(n=i.scale)===null||n===void 0?void 0:n.scalers;return o&&o[0]?o[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=this.attributes.find(function(Je){return Je.name===t});if(l&&l.descriptor){var f=l.descriptor,v=f.update,y=f.buffer,b=f.size,T=b===void 0?0:b,M=Oo[y.type||R.FLOAT];if(v){var O=this.featureLayout,F=O.elements,$=O.sizePerElement,G=F.slice(i,o);if(!G.length)return;var ue=G[0].offset,xe=ue*T*M,ze=G.map(function(Je,ht){for(var gt=Je.featureIdx,Ot=Je.vertices,tr=Je.normals,Ir=Ot.length/$,Er=[],mn=0;mn0&&o[o.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!o||v[1]>o[0]&&v[1]0)&&!(i=n.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return o}function to(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,o;n=0&&n.length%1===0}e.exports=r.default})(pc,pc.exports);var Cs={},dc={exports:{}},Jf={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];var o=n.pop();return t.call(this,n,o)}},e.exports=r.default})(Jf,Jf.exports);var vc={};Object.defineProperty(vc,"__esModule",{value:!0}),vc.fallback=td,vc.wrap=Hc;var Ep=vc.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,ed=vc.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,Xd=vc.hasNextTick=typeof Ki=="object"&&typeof Ki.nextTick=="function";function td(e){setTimeout(e,0)}function Hc(e){return function(r){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return e(function(){return r.apply(void 0,t)})}}var Sf;Ep?Sf=queueMicrotask:ed?Sf=setImmediate:Xd?Sf=Ki.nextTick:Sf=td,vc.default=Hc(Sf),function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=f;var t=Jf.exports,n=l(t),i=vc,o=l(i),s=Cs;function l(b){return b&&b.__esModule?b:{default:b}}function f(b){return(0,s.isAsync)(b)?function(){for(var T=[],M=arguments.length;M--;)T[M]=arguments[M];var O=T.pop(),F=b.apply(this,T);return v(F,O)}:(0,n.default)(function(T,M){var O;try{O=b.apply(this,T)}catch(F){return M(F)}if(O&&typeof O.then=="function")return v(O,M);M(null,O)})}function v(b,T){return b.then(function(M){y(T,null,M)},function(M){y(T,M&&M.message?M:new Error(M))})}function y(b,T,M){try{b(T,M)}catch(O){(0,o.default)(function(F){throw F},O)}}e.exports=r.default}(dc,dc.exports),Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.isAsyncIterable=Cs.isAsyncGenerator=Cs.isAsync=void 0;var Sp=dc.exports,eh=Ap(Sp);function Ap(e){return e&&e.__esModule?e:{default:e}}function rd(e){return e[Symbol.toStringTag]==="AsyncFunction"}function $d(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function nd(e){return typeof e[Symbol.asyncIterator]=="function"}function id(e){if(typeof e!="function")throw new Error("expected a function");return rd(e)?(0,eh.default)(e):e}Cs.default=id,Cs.isAsync=rd,Cs.isAsyncGenerator=$d,Cs.isAsyncIterable=nd;var Wc={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(n,i){if(i===void 0&&(i=n.length),!i)throw new Error("arity is undefined");function o(){for(var s=this,l=[],f=arguments.length;f--;)l[f]=arguments[f];return typeof l[i-1]=="function"?n.apply(this,l):new Promise(function(v,y){l[i-1]=function(b){for(var T=[],M=arguments.length-1;M-- >0;)T[M]=arguments[M+1];if(b)return y(b);v(T.length>1?T:T[0])},n.apply(s,l)})}return o}e.exports=r.default})(Wc,Wc.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=pc.exports,n=f(t),i=Cs,o=f(i),s=Wc.exports,l=f(s);function f(v){return v&&v.__esModule?v:{default:v}}r.default=(0,l.default)(function(v,y,b){var T=(0,n.default)(y)?[]:{};v(y,function(M,O,F){(0,o.default)(M)(function($){for(var G,ue=[],xe=arguments.length-1;xe-- >0;)ue[xe]=arguments[xe+1];ue.length<2&&(G=ue,ue=G[0]),T[O]=ue,F($)})},function(M){return b(M,T)})},3),e.exports=r.default}(Ef,Ef.exports);var kh={exports:{}},th={exports:{}},Bh={exports:{}},rh={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(n){function i(){for(var o=[],s=arguments.length;s--;)o[s]=arguments[s];if(n!==null){var l=n;n=null,l.apply(this,o)}}return Object.assign(i,n),i}e.exports=r.default})(rh,rh.exports);var nh={exports:{}},Tp={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){return t[Symbol.iterator]&&t[Symbol.iterator]()},e.exports=r.default})(Tp,Tp.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=y;var t=pc.exports,n=s(t),i=Tp.exports,o=s(i);function s(b){return b&&b.__esModule?b:{default:b}}function l(b){var T=-1,M=b.length;return function(){return++T=l||T||y||(T=!0,s.next().then(function(ue){var xe=ue.value,ze=ue.done;if(!(b||y)){if(T=!1,ze){y=!0,M<=0&&v(null);return}M++,f(xe,O,$),O++,F()}}).catch(G))}function $(ue,xe){if(M-=1,!b){if(ue)return G(ue);if(ue===!1){y=!0,b=!0;return}if(xe===n.default||y&&M<=0)return y=!0,v(null);F()}}function G(ue){b||(T=!1,y=!0,v(ue))}F()}e.exports=r.default}(Lh,Lh.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=rh.exports,n=M(t),i=nh.exports,o=M(i),s=Gc.exports,l=M(s),f=Cs,v=Lh.exports,y=M(v),b=mc.exports,T=M(b);function M(O){return O&&O.__esModule?O:{default:O}}r.default=function(O){return function(F,$,G){if(G=(0,n.default)(G),O<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!F)return G(null);if((0,f.isAsyncGenerator)(F))return(0,y.default)(F,O,$,G);if((0,f.isAsyncIterable)(F))return(0,y.default)(F[Symbol.asyncIterator](),O,$,G);var ue=(0,o.default)(F),xe=!1,ze=!1,Je=0,ht=!1;function gt(tr,Ir){if(!ze)if(Je-=1,tr)xe=!0,G(tr);else if(tr===!1)xe=!0,ze=!0;else{if(Ir===T.default||xe&&Je<=0)return xe=!0,G(null);ht||Ot()}}function Ot(){for(ht=!0;Je0;)ue[xe]=arguments[xe+1];if(G!==!1){if(G||O===T.length)return M.apply(void 0,[G].concat(ue));F(ue)}}F([])}r.default=(0,v.default)(b),e.exports=r.default})(od,od.exports);var ig=Vl(od.exports),qd=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return ig(this.tasks)},e.prototype.tap=function(r,t){this.tasks.length===0?this.tasks.push(function(n){var i=t();n(i?null:!1,i)}):this.tasks.push(function(n,i){var o=t.apply(void 0,to([],vl(n),!1));i(o?null:!1,r)})},e}(),po=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return ih(this.tasks)},e.prototype.tap=function(r,t){this.tasks.push(function(n){var i=t();n(i,r)})},e}(),gc=function(){function e(){this.args=[],this.tasks=[]}return e.prototype.promise=function(){for(var r=arguments,t=[],n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,t={};return e=e.replace(nv,function(n,i,o){var s=o.split(":"),l=s[0].trim(),f="";switch(s.length>1&&(f=s[1].trim()),i){case"bool":f=f==="true";break;case"float":case"int":f=Number(f);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":f?f=f.replace("[","").replace("]","").split(",").reduce(function(v,y){return v.push(Number(y.trim())),v},[]):f=new Array(ug(i)).fill(0);break;default:}return t[l]=f,"".concat(r?"uniform ":"").concat(i," ").concat(l,`; `)}),{content:e,uniforms:t}}function Vh(e){var r=am(e,!0),t=r.content,n=r.uniforms;return t=t.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(i,o,s){s=s.trim().replace(/^.*$/gm,function(y){return"uniform ".concat(y)});var l=am(s),f=l.content,v=l.uniforms;return Object.assign(n,v),"".concat(o,`{ `).concat(f,` };`)}),{content:t,uniforms:n}}function om(e){var r={};return e.replace(nv,function(t,n,i){var o=i.trim();return r[o]?"":(r[o]=!0,"uniform ".concat(n," ").concat(o,`; -`))})}var hd,lg,cg=ii.uniq,fg="#define PI 3.14159265359",T0=`#define SHIFT_RIGHT17 1.0 / 131072.0 +`))})}var hd,lg,cg=oi.uniq,fg="#define PI 3.14159265359",T0=`#define SHIFT_RIGHT17 1.0 / 131072.0 #define SHIFT_RIGHT18 1.0 / 262144.0 #define SHIFT_RIGHT19 1.0 / 524288.0 #define SHIFT_RIGHT20 1.0 / 1048576.0 @@ -753,19 +753,19 @@ float sdVesica(vec2 p, float r, float d) { #else precision mediump float; #endif -`,J2=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,eS=/void\s+main\s*\([^)]*\)\s*\{\n?/,HB=/}\n?[^{}]*$/,tS=(hd=(0,gt.b2)(),hd(lg=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"moduleCache",{}),(0,B.Z)(this,"rawContentCache",{})}return(0,V.Z)(e,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:fg,fs:fg}),this.registerModule("decode",{vs:T0,fs:""}),this.registerModule("scene_uniforms",{vs:hg,fs:hg}),this.registerModule("picking_uniforms",{vs:pg,fs:pg}),this.registerModule("projection",{vs:pd,fs:pd}),this.registerModule("project",{vs:$c,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:dd}),this.registerModule("lighting",{vs:C0,fs:""}),this.registerModule("light",{vs:w0,fs:""}),this.registerModule("picking",{vs:M0,fs:R0}),this.registerModule("rotation_2d",{vs:dg,fs:""})}},{key:"registerModule",value:function(t,n){n.vs=n.vs.replace(/\r\n/g,` +`,J2=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,eS=/void\s+main\s*\([^)]*\)\s*\{\n?/,WB=/}\n?[^{}]*$/,tS=(hd=(0,yt.b2)(),hd(lg=function(){function e(){(0,Q.Z)(this,e),(0,B.Z)(this,"moduleCache",{}),(0,B.Z)(this,"rawContentCache",{})}return(0,j.Z)(e,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:fg,fs:fg}),this.registerModule("decode",{vs:T0,fs:""}),this.registerModule("scene_uniforms",{vs:hg,fs:hg}),this.registerModule("picking_uniforms",{vs:pg,fs:pg}),this.registerModule("projection",{vs:pd,fs:pd}),this.registerModule("project",{vs:$c,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:dd}),this.registerModule("lighting",{vs:C0,fs:""}),this.registerModule("light",{vs:w0,fs:""}),this.registerModule("picking",{vs:M0,fs:R0}),this.registerModule("rotation_2d",{vs:dg,fs:""})}},{key:"registerModule",value:function(t,n){n.vs=n.vs.replace(/\r\n/g,` `),n.fs=n.fs.replace(/\r\n/g,` -`);var i=n.vs,o=n.fs,s=n.uniforms,l=n.inject,f=Vh(i),v=f.content,y=f.uniforms,b=Vh(o),T=b.content,M=b.uniforms;this.rawContentCache[t]={fs:T,inject:l,uniforms:(0,H.Z)((0,H.Z)((0,H.Z)({},y),M),s),vs:v}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(t){var n=this,i=this.rawContentCache[t].vs,o=this.rawContentCache[t].fs,s=this.rawContentCache[t].inject,l={};s!=null&&s["vs:#decl"]&&(i=(s==null?void 0:s["vs:#decl"])+i,l=Vh(s==null?void 0:s["vs:#decl"]).uniforms),s!=null&&s["vs:#main-start"]&&(i=i.replace(eS,function(G){return G+(s==null?void 0:s["vs:#main-start"])})),s!=null&&s["fs:#decl"]&&(o=(s==null?void 0:s["fs:#decl"])+o);var f=this.processModule(i,[],"vs"),v=f.content,y=f.includeList,b=this.processModule(o,[],"fs"),T=b.content,M=b.includeList,O="",k=cg(y.concat(M).concat(t)).reduce(function(G,oe){return(0,H.Z)((0,H.Z)({},G),n.rawContentCache[oe].uniforms)},(0,H.Z)({},l));sm.test(T)||(O=O+V_),O=O+T;var $="";return sm.test(v)||($=$+V_),$=$+v,this.moduleCache[t]={fs:O.trim(),uniforms:k,vs:$.trim()},this.moduleCache[t]}},{key:"processModule",value:function(t,n,i){var o=this,s=t.replace(J2,function(l,f){var v=f.split(" "),y=v[0].replace(/"/g,"");if(n.indexOf(y)>-1)return"";var b=o.rawContentCache[y][i];n.push(y);var T=o.processModule(b,n,i),M=T.content;return M});return{content:s,includeList:n}}},{key:"injectDefines",value:function(t){var n=Object.keys(t).reduce(function(i,o){return i+"#define ".concat(o.toUpperCase()," ").concat(t[o],`; +`);var i=n.vs,o=n.fs,s=n.uniforms,l=n.inject,f=Vh(i),v=f.content,y=f.uniforms,b=Vh(o),T=b.content,M=b.uniforms;this.rawContentCache[t]={fs:T,inject:l,uniforms:(0,V.Z)((0,V.Z)((0,V.Z)({},y),M),s),vs:v}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(t){var n=this,i=this.rawContentCache[t].vs,o=this.rawContentCache[t].fs,s=this.rawContentCache[t].inject,l={};s!=null&&s["vs:#decl"]&&(i=(s==null?void 0:s["vs:#decl"])+i,l=Vh(s==null?void 0:s["vs:#decl"]).uniforms),s!=null&&s["vs:#main-start"]&&(i=i.replace(eS,function(G){return G+(s==null?void 0:s["vs:#main-start"])})),s!=null&&s["fs:#decl"]&&(o=(s==null?void 0:s["fs:#decl"])+o);var f=this.processModule(i,[],"vs"),v=f.content,y=f.includeList,b=this.processModule(o,[],"fs"),T=b.content,M=b.includeList,O="",F=cg(y.concat(M).concat(t)).reduce(function(G,ue){return(0,V.Z)((0,V.Z)({},G),n.rawContentCache[ue].uniforms)},(0,V.Z)({},l));sm.test(T)||(O=O+V_),O=O+T;var $="";return sm.test(v)||($=$+V_),$=$+v,this.moduleCache[t]={fs:O.trim(),uniforms:F,vs:$.trim()},this.moduleCache[t]}},{key:"processModule",value:function(t,n,i){var o=this,s=t.replace(J2,function(l,f){var v=f.split(" "),y=v[0].replace(/"/g,"");if(n.indexOf(y)>-1)return"";var b=o.rawContentCache[y][i];n.push(y);var T=o.processModule(b,n,i),M=T.content;return M});return{content:s,includeList:n}}},{key:"injectDefines",value:function(t){var n=Object.keys(t).reduce(function(i,o){return i+"#define ".concat(o.toUpperCase()," ").concat(t[o],`; `)},` -`);return n}}]),e}())||lg);function rS(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=(0,be.Z)(e),e!==null););return e}function Ra(){return typeof Reflect!="undefined"&&Reflect.get?Ra=Reflect.get.bind():Ra=function(r,t,n){var i=rS(r,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?r:n):o.value}},Ra.apply(this,arguments)}var iv=function(e){return e.Normal="normal",e.PostProcessing="post-processing",e}({}),j_,H_,vg=(j_=(0,gt.b2)(),j_(H_=function(){function e(){(0,q.Z)(this,e),(0,B.Z)(this,"shaderModuleService",void 0),(0,B.Z)(this,"rendererService",void 0),(0,B.Z)(this,"cameraService",void 0),(0,B.Z)(this,"mapService",void 0),(0,B.Z)(this,"interactionService",void 0),(0,B.Z)(this,"layerService",void 0),(0,B.Z)(this,"config",void 0)}return(0,V.Z)(e,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return iv.Normal}},{key:"init",value:function(t,n){this.config=n,this.rendererService=t.getContainer().get(tt.IRendererService),this.cameraService=t.getContainer().get(tt.ICameraService),this.mapService=t.getContainer().get(tt.IMapService),this.interactionService=t.getContainer().get(tt.IInteractionService),this.layerService=t.getContainer().get(tt.ILayerService),this.shaderModuleService=t.getContainer().get(tt.IShaderModuleService)}},{key:"render",value:function(t){}}]),e}())||H_),W_,G_;function nS(e){var r=iS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function iS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var aS=(W_=(0,gt.b2)(),W_(G_=function(e){(0,De.Z)(t,e);var r=nS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(i,o){Ra((0,be.Z)(t.prototype),"init",this).call(this,i,o)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),t}(vg))||G_),X_,$_,Y_,I0,q_;function oS(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=sS(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function sS(e,r){if(e){if(typeof e=="string")return K_(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K_(e,r)}}function K_(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tG||ut<0||vt>oe||vt<0)){var Rt;k(n.pickingFBO,function(){var Jt;if(Rt=O({x:Math.round(ut),y:Math.round(oe-(v+1)*wa),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:n.pickingFBO}),Rt[0]!==0||Rt[1]!==0||Rt[2]!==0){var Mr=Oa(Rt),br=n.layer.getSource().getFeatureById(Mr),pn={x:f,y:v,type:b,lngLat:y,featureId:Mr,feature:br};br&&(n.layer.setCurrentPickId(Mr),n.triggerHoverOnLayer(pn))}else{var kn={x:f,y:v,lngLat:y,type:n.layer.getCurrentPickId()===null?"un"+b:"mouseout",featureId:null,feature:null};n.triggerHoverOnLayer((0,H.Z)((0,H.Z)({},kn),{},{type:"unpick"})),n.triggerHoverOnLayer(kn),n.layer.setCurrentPickId(null)}Le&&n.highlightPickedFeature(Rt),$e&&b==="click"&&((Jt=Rt)===null||Jt===void 0?void 0:Jt.toString())!==[0,0,0,0].toString()&&n.selectFeature(Rt)})}}}),n}return(0,V.Z)(t,[{key:"getType",value:function(){return iv.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(i,o){Ra((0,be.Z)(t.prototype),"init",this).call(this,i,o),this.layer=i;var s=this.rendererService,l=s.createTexture2D,f=s.createFramebuffer,v=s.getViewportSize,y=v(),b=y.width,T=y.height;this.pickingFBO=f({color:l({width:b,height:T,wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE})}),this.interactionService.on(a.Hover,this.pickFromPickingFBO),this.interactionService.on(a.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(a.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(i){var o=this;if(!this.alreadyInRendering){var s=this.rendererService,l=s.getViewportSize,f=s.useFramebuffer,v=s.clear,y=l(),b=y.width,T=y.height;this.alreadyInRendering=!0,(this.width!==b||this.height!==T)&&(this.pickingFBO.resize({width:b,height:T}),this.width=b,this.height=T),f(this.pickingFBO,function(){v({framebuffer:o.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var M=o.layer.multiPassRenderer.getRenderFlag();o.layer.multiPassRenderer.setRenderFlag(!1),i.hooks.beforePickingEncode.call(),i.render(),i.hooks.afterPickingEncode.call(),o.layer.multiPassRenderer.setRenderFlag(M),o.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(i){this.layer.emit(i.type,i)}},{key:"highlightPickedFeature",value:function(i){var o=(0,yn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.layer.hooks.beforeHighlight.call([s,l,f]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(i){var o=(0,yn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.layer.hooks.beforeSelect.call([s,l,f]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(i){var o=i.featureId,s=ia(o);this.selectFeature(new Uint8Array(s))}},{key:"highlightFeatureHandle",value:function(i){var o=i.featureId,s=ia(o);this.highlightPickedFeature(new Uint8Array(s))}}]),t}(vg))||J_),ey,ty,ry,P0,ny,hS=ii.camelCase,pS=ii.isNil,dS=ii.upperFirst,vS=`attribute vec2 a_Position; +`);return n}}]),e}())||lg);function rS(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=(0,Ee.Z)(e),e!==null););return e}function Ra(){return typeof Reflect!="undefined"&&Reflect.get?Ra=Reflect.get.bind():Ra=function(r,t,n){var i=rS(r,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?r:n):o.value}},Ra.apply(this,arguments)}var iv=function(e){return e.Normal="normal",e.PostProcessing="post-processing",e}({}),j_,H_,vg=(j_=(0,yt.b2)(),j_(H_=function(){function e(){(0,Q.Z)(this,e),(0,B.Z)(this,"shaderModuleService",void 0),(0,B.Z)(this,"rendererService",void 0),(0,B.Z)(this,"cameraService",void 0),(0,B.Z)(this,"mapService",void 0),(0,B.Z)(this,"interactionService",void 0),(0,B.Z)(this,"layerService",void 0),(0,B.Z)(this,"config",void 0)}return(0,j.Z)(e,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return iv.Normal}},{key:"init",value:function(t,n){this.config=n,this.rendererService=t.getContainer().get(ot.IRendererService),this.cameraService=t.getContainer().get(ot.ICameraService),this.mapService=t.getContainer().get(ot.IMapService),this.interactionService=t.getContainer().get(ot.IInteractionService),this.layerService=t.getContainer().get(ot.ILayerService),this.shaderModuleService=t.getContainer().get(ot.IShaderModuleService)}},{key:"render",value:function(t){}}]),e}())||H_),W_,G_;function nS(e){var r=iS();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function iS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var aS=(W_=(0,yt.b2)(),W_(G_=function(e){(0,Le.Z)(t,e);var r=nS(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getName",value:function(){return"clear"}},{key:"init",value:function(i,o){Ra((0,Ee.Z)(t.prototype),"init",this).call(this,i,o)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),t}(vg))||G_),X_,$_,Y_,I0,q_;function oS(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=sS(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function sS(e,r){if(e){if(typeof e=="string")return K_(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K_(e,r)}}function K_(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tG||ht<0||gt>ue||gt<0)){var Ot;F(n.pickingFBO,function(){var tr;if(Ot=O({x:Math.round(ht),y:Math.round(ue-(v+1)*wa),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:n.pickingFBO}),Ot[0]!==0||Ot[1]!==0||Ot[2]!==0){var Ir=Oa(Ot),Er=n.layer.getSource().getFeatureById(Ir),mn={x:f,y:v,type:b,lngLat:y,featureId:Ir,feature:Er};Er&&(n.layer.setCurrentPickId(Ir),n.triggerHoverOnLayer(mn))}else{var Ln={x:f,y:v,lngLat:y,type:n.layer.getCurrentPickId()===null?"un"+b:"mouseout",featureId:null,feature:null};n.triggerHoverOnLayer((0,V.Z)((0,V.Z)({},Ln),{},{type:"unpick"})),n.triggerHoverOnLayer(Ln),n.layer.setCurrentPickId(null)}ze&&n.highlightPickedFeature(Ot),Je&&b==="click"&&((tr=Ot)===null||tr===void 0?void 0:tr.toString())!==[0,0,0,0].toString()&&n.selectFeature(Ot)})}}}),n}return(0,j.Z)(t,[{key:"getType",value:function(){return iv.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(i,o){Ra((0,Ee.Z)(t.prototype),"init",this).call(this,i,o),this.layer=i;var s=this.rendererService,l=s.createTexture2D,f=s.createFramebuffer,v=s.getViewportSize,y=v(),b=y.width,T=y.height;this.pickingFBO=f({color:l({width:b,height:T,wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE})}),this.interactionService.on(a.Hover,this.pickFromPickingFBO),this.interactionService.on(a.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(a.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(i){var o=this;if(!this.alreadyInRendering){var s=this.rendererService,l=s.getViewportSize,f=s.useFramebuffer,v=s.clear,y=l(),b=y.width,T=y.height;this.alreadyInRendering=!0,(this.width!==b||this.height!==T)&&(this.pickingFBO.resize({width:b,height:T}),this.width=b,this.height=T),f(this.pickingFBO,function(){v({framebuffer:o.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var M=o.layer.multiPassRenderer.getRenderFlag();o.layer.multiPassRenderer.setRenderFlag(!1),i.hooks.beforePickingEncode.call(),i.render(),i.hooks.afterPickingEncode.call(),o.layer.multiPassRenderer.setRenderFlag(M),o.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(i){this.layer.emit(i.type,i)}},{key:"highlightPickedFeature",value:function(i){var o=(0,Sn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.layer.hooks.beforeHighlight.call([s,l,f]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(i){var o=(0,Sn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.layer.hooks.beforeSelect.call([s,l,f]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(i){var o=i.featureId,s=sa(o);this.selectFeature(new Uint8Array(s))}},{key:"highlightFeatureHandle",value:function(i){var o=i.featureId,s=sa(o);this.highlightPickedFeature(new Uint8Array(s))}}]),t}(vg))||J_),ey,ty,ry,P0,ny,hS=oi.camelCase,pS=oi.isNil,dS=oi.upperFirst,vS=`attribute vec2 a_Position; varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,jh=(ey=(0,gt.b2)(),ty=(0,gt.f3)(tt.IShaderModuleService),ey(ry=(P0=function(){function e(){(0,q.Z)(this,e),Fi(this,"shaderModuleService",ny,this),(0,B.Z)(this,"rendererService",void 0),(0,B.Z)(this,"config",void 0),(0,B.Z)(this,"quad",vS),(0,B.Z)(this,"enabled",!0),(0,B.Z)(this,"renderToScreen",!1),(0,B.Z)(this,"model",void 0),(0,B.Z)(this,"name",void 0),(0,B.Z)(this,"optionsToUpdate",{})}return(0,V.Z)(e,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(t){this.name=t}},{key:"getType",value:function(){return iv.PostProcessing}},{key:"init",value:function(t,n){this.config=n,this.rendererService=t.getContainer().get(tt.IRendererService),this.shaderModuleService=t.getContainer().get(tt.IShaderModuleService);var i=this.rendererService,o=i.createAttribute,s=i.createBuffer,l=i.createModel,f=this.setupShaders(),v=f.vs,y=f.fs,b=f.uniforms;this.model=l({vs:v,fs:y,attributes:{a_Position:o({buffer:s({data:[-4,-4,4,-4,0,4],type:R.FLOAT}),size:2})},uniforms:(0,H.Z)((0,H.Z)({u_Texture:null},b),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(t,n){var i=this,o=t.multiPassRenderer.getPostProcessor(),s=this.rendererService,l=s.useFramebuffer,f=s.getViewportSize,v=s.clear,y=f(),b=y.width,T=y.height;l(this.renderToScreen?null:o.getWriteFBO(),function(){v({framebuffer:o.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var M=(0,H.Z)({u_BloomFinal:0,u_Texture:o.getReadFBO(),u_ViewportSize:[b,T]},i.convertOptionsToUniforms(i.optionsToUpdate));n&&(M.u_BloomFinal=1,M.u_Texture2=n),i.model.draw({uniforms:M})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(t){this.enabled=t}},{key:"setRenderToScreen",value:function(t){this.renderToScreen=t}},{key:"updateOptions",value:function(t){this.optionsToUpdate=(0,H.Z)((0,H.Z)({},this.optionsToUpdate),t)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(t){var n={};return Object.keys(t).forEach(function(i){pS(t[i])||(n["u_".concat(dS(hS(i)))]=t[i])}),n}}]),e}(),ny=Oi(P0.prototype,"shaderModuleService",[ty],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P0))||ry),iy,ay;function mS(e){var r=gS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function gS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _S=`varying vec2 v_UV; +}`,jh=(ey=(0,yt.b2)(),ty=(0,yt.f3)(ot.IShaderModuleService),ey(ry=(P0=function(){function e(){(0,Q.Z)(this,e),Ni(this,"shaderModuleService",ny,this),(0,B.Z)(this,"rendererService",void 0),(0,B.Z)(this,"config",void 0),(0,B.Z)(this,"quad",vS),(0,B.Z)(this,"enabled",!0),(0,B.Z)(this,"renderToScreen",!1),(0,B.Z)(this,"model",void 0),(0,B.Z)(this,"name",void 0),(0,B.Z)(this,"optionsToUpdate",{})}return(0,j.Z)(e,[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(t){this.name=t}},{key:"getType",value:function(){return iv.PostProcessing}},{key:"init",value:function(t,n){this.config=n,this.rendererService=t.getContainer().get(ot.IRendererService),this.shaderModuleService=t.getContainer().get(ot.IShaderModuleService);var i=this.rendererService,o=i.createAttribute,s=i.createBuffer,l=i.createModel,f=this.setupShaders(),v=f.vs,y=f.fs,b=f.uniforms;this.model=l({vs:v,fs:y,attributes:{a_Position:o({buffer:s({data:[-4,-4,4,-4,0,4],type:R.FLOAT}),size:2})},uniforms:(0,V.Z)((0,V.Z)({u_Texture:null},b),this.config&&this.convertOptionsToUniforms(this.config)),depth:{enable:!1},count:3,blend:{enable:this.getName()==="copy"}})}},{key:"render",value:function(t,n){var i=this,o=t.multiPassRenderer.getPostProcessor(),s=this.rendererService,l=s.useFramebuffer,f=s.getViewportSize,v=s.clear,y=f(),b=y.width,T=y.height;l(this.renderToScreen?null:o.getWriteFBO(),function(){v({framebuffer:o.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var M=(0,V.Z)({u_BloomFinal:0,u_Texture:o.getReadFBO(),u_ViewportSize:[b,T]},i.convertOptionsToUniforms(i.optionsToUpdate));n&&(M.u_BloomFinal=1,M.u_Texture2=n),i.model.draw({uniforms:M})})}},{key:"isEnabled",value:function(){return this.enabled}},{key:"setEnabled",value:function(t){this.enabled=t}},{key:"setRenderToScreen",value:function(t){this.renderToScreen=t}},{key:"updateOptions",value:function(t){this.optionsToUpdate=(0,V.Z)((0,V.Z)({},this.optionsToUpdate),t)}},{key:"setupShaders",value:function(){throw new Error("Method not implemented.")}},{key:"convertOptionsToUniforms",value:function(t){var n={};return Object.keys(t).forEach(function(i){pS(t[i])||(n["u_".concat(dS(hS(i)))]=t[i])}),n}}]),e}(),ny=ki(P0.prototype,"shaderModuleService",[ty],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P0))||ry),iy,ay;function mS(e){var r=gS();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function gS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _S=`varying vec2 v_UV; uniform float u_BloomFinal: 0.0; uniform sampler2D u_Texture; @@ -828,7 +828,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,O0=ii.isNil,xS=(iy=(0,gt.b2)(),iy(ay=function(e){(0,De.Z)(t,e);var r=mS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:yS,fs:_S});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return O0(i.bloomRadius)||(o.u_radius=i.bloomRadius),O0(i.bloomIntensity)||(o.u_intensity=i.bloomIntensity),O0(i.bloomBaseRadio)||(o.u_baseRadio=i.bloomBaseRadio),o}}]),t}(jh))||ay),oy,sy;function bS(e){var r=ES();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function ES(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var SS=`varying vec2 v_UV; +}`,O0=oi.isNil,xS=(iy=(0,yt.b2)(),iy(ay=function(e){(0,Le.Z)(t,e);var r=mS(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:yS,fs:_S});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,V.Z)((0,V.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return O0(i.bloomRadius)||(o.u_radius=i.bloomRadius),O0(i.bloomIntensity)||(o.u_intensity=i.bloomIntensity),O0(i.bloomBaseRadio)||(o.u_baseRadio=i.bloomBaseRadio),o}}]),t}(jh))||ay),oy,sy;function bS(e){var r=ES();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function ES(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var SS=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -857,7 +857,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,TS=ii.isNil,wS=(oy=(0,gt.b2)(),oy(sy=function(e){(0,De.Z)(t,e);var r=bS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:AS,fs:SS});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return TS(i.blurRadius)||(o.u_BlurDir=[i.blurRadius,0]),o}}]),t}(jh))||sy),uy,ly;function CS(e){var r=RS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function RS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var MS=`varying vec2 v_UV; +}`,TS=oi.isNil,wS=(oy=(0,yt.b2)(),oy(sy=function(e){(0,Le.Z)(t,e);var r=bS(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:AS,fs:SS});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,V.Z)((0,V.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return TS(i.blurRadius)||(o.u_BlurDir=[i.blurRadius,0]),o}}]),t}(jh))||sy),uy,ly;function CS(e){var r=RS();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function RS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var MS=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -886,7 +886,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,PS=ii.isNil,OS=(uy=(0,gt.b2)(),uy(ly=function(e){(0,De.Z)(t,e);var r=CS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:IS,fs:MS});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return PS(i.blurRadius)||(o.u_BlurDir=[0,i.blurRadius]),o}}]),t}(jh))||ly),cy,fy;function DS(e){var r=kS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function kS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var FS=`varying vec2 v_UV; +}`,PS=oi.isNil,OS=(uy=(0,yt.b2)(),uy(ly=function(e){(0,Le.Z)(t,e);var r=CS(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("blur-pass",{vs:IS,fs:MS});var i=this.shaderModuleService.getModule("blur-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,V.Z)((0,V.Z)({},l),{},{u_ViewportSize:[v,y]})}}},{key:"convertOptionsToUniforms",value:function(i){var o={};return PS(i.blurRadius)||(o.u_BlurDir=[0,i.blurRadius]),o}}]),t}(jh))||ly),cy,fy;function DS(e){var r=FS();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function FS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var kS=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -936,7 +936,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,LS=(cy=(0,gt.b2)(),cy(fy=function(e){(0,De.Z)(t,e);var r=DS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:BS,fs:FS});var i=this.shaderModuleService.getModule("colorhalftone-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||fy),hy,py;function NS(e){var r=US();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function US(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var zS=`varying vec2 v_UV; +}`,LS=(cy=(0,yt.b2)(),cy(fy=function(e){(0,Le.Z)(t,e);var r=DS(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("colorhalftone-pass",{vs:BS,fs:kS});var i=this.shaderModuleService.getModule("colorhalftone-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,V.Z)((0,V.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||fy),hy,py;function NS(e){var r=US();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function US(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var zS=`varying vec2 v_UV; uniform sampler2D u_Texture; @@ -949,7 +949,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,VS=(hy=(0,gt.b2)(),hy(py=function(e){(0,De.Z)(t,e);var r=NS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:ZS,fs:zS}),this.shaderModuleService.getModule("copy-pass")}}]),t}(jh))||py),dy,vy;function jS(e){var r=HS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function HS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var WS=`varying vec2 v_UV; +}`,VS=(hy=(0,yt.b2)(),hy(py=function(e){(0,Le.Z)(t,e);var r=NS(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("copy-pass",{vs:ZS,fs:zS}),this.shaderModuleService.getModule("copy-pass")}}]),t}(jh))||py),dy,vy;function jS(e){var r=HS();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function HS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var WS=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -999,7 +999,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,XS=(dy=(0,gt.b2)(),dy(vy=function(e){(0,De.Z)(t,e);var r=jS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:GS,fs:WS});var i=this.shaderModuleService.getModule("hexagonalpixelate-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||vy),gy,_y;function $S(e){var r=YS();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function YS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var qS=`varying vec2 v_UV; +}`,XS=(dy=(0,yt.b2)(),dy(vy=function(e){(0,Le.Z)(t,e);var r=jS(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("hexagonalpixelate-pass",{vs:GS,fs:WS});var i=this.shaderModuleService.getModule("hexagonalpixelate-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,V.Z)((0,V.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||vy),gy,_y;function $S(e){var r=YS();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function YS(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var qS=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform vec2 u_ViewportSize: [1.0, 1.0]; @@ -1039,7 +1039,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,QS=(gy=(0,gt.b2)(),gy(_y=function(e){(0,De.Z)(t,e);var r=$S(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:KS,fs:qS});var i=this.shaderModuleService.getModule("ink-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||_y),yy,xy;function JS(e){var r=eA();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function eA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var tA=`varying vec2 v_UV; +}`,QS=(gy=(0,yt.b2)(),gy(_y=function(e){(0,Le.Z)(t,e);var r=$S(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"setupShaders",value:function(){this.shaderModuleService.registerModule("ink-pass",{vs:KS,fs:qS});var i=this.shaderModuleService.getModule("ink-pass"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),v=f.width,y=f.height;return{vs:o,fs:s,uniforms:(0,V.Z)((0,V.Z)({},l),{},{u_ViewportSize:[v,y]})}}}]),t}(jh))||_y),yy,xy;function JS(e){var r=eA();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function eA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var tA=`varying vec2 v_UV; uniform sampler2D u_Texture; uniform float u_Amount : 0.5; @@ -1067,7 +1067,7 @@ varying vec2 v_UV; void main() { v_UV = 0.5 * (a_Position + 1.0); gl_Position = vec4(a_Position, 0., 1.); -}`,nA=(yy=(0,gt.b2)(),yy(xy=function(e){(0,De.Z)(t,e);var r=JS(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:rA,fs:tA}),this.shaderModuleService.getModule("noise-pass")}}]),t}(jh))||xy),by,Ey;function iA(e){var r=aA();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function aA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var oA=`attribute vec2 a_Position; +}`,nA=(yy=(0,yt.b2)(),yy(xy=function(e){(0,Le.Z)(t,e);var r=JS(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("noise-pass",{vs:rA,fs:tA}),this.shaderModuleService.getModule("noise-pass")}}]),t}(jh))||xy),by,Ey;function iA(e){var r=aA();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function aA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var oA=`attribute vec2 a_Position; varying vec2 v_UV; @@ -1095,7 +1095,7 @@ vec4 sepia_filterColor(vec4 color) { void main() { gl_FragColor = vec4(texture2D(u_Texture, v_UV)); gl_FragColor = sepia_filterColor(gl_FragColor); -}`,uA=(by=(0,gt.b2)(),by(Ey=function(e){(0,De.Z)(t,e);var r=iA(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"setupShaders",value:function(){return this.shaderModuleService.registerModule("sepia-pass",{vs:oA,fs:sA}),this.shaderModuleService.getModule("sepia-pass")}}]),t}(jh))||Ey),Sy,Ay,Ty,wy,av,Cy,lA=(Sy=(0,gt.b2)(),Ay=(0,gt.f3)(tt.IRendererService),Ty=(0,gt.zY)(),Sy(wy=(av=function(){function e(){(0,q.Z)(this,e),Fi(this,"rendererService",Cy,this),(0,B.Z)(this,"passes",[]),(0,B.Z)(this,"readFBO",void 0),(0,B.Z)(this,"writeFBO",void 0)}return(0,V.Z)(e,[{key:"getReadFBO",value:function(){return this.readFBO}},{key:"getWriteFBO",value:function(){return this.writeFBO}},{key:"getCurrentFBOTex",value:function(){var t=this.rendererService,n=t.getViewportSize,i=t.createTexture2D,o=n(),s=o.width,l=o.height;return i({x:0,y:0,width:s,height:l,copy:!0})}},{key:"getReadFBOTex",value:function(){var t=this,n=this.rendererService.useFramebuffer;return new Promise(function(i){n(t.readFBO,(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:i(t.getCurrentFBOTex());case 1:case"end":return l.stop()}},o)})))})}},{key:"renderBloomPass",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o){var s,l;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,this.getReadFBOTex();case 2:s=v.sent,l=0;case 4:if(!(l<4)){v.next=11;break}return v.next=7,o.render(i,s);case 7:this.swap(),l++,v.next=4;break;case 11:case"end":return v.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"render",value:function(){var r=(0,Ct.Z)(me().mark(function n(i){var o,s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:o=0;case 1:if(!(o0;)t=t+n*(i%r),i=Math.floor(i/r),n=n/r;return t}var gA=1,_A=(Iy=(0,gt.b2)(),Py=(0,gt.f3)(tt.IShaderModuleService),Iy(Oy=(D0=function(e){(0,De.Z)(t,e);var r=pA(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=1&&(v(this.copyRenderTarget,function(){o.outputModel.draw({uniforms:{u_Texture:o.outputRenderTarget}})}),v(i.multiPassRenderer.getPostProcessor().getReadFBO(),function(){o.copyModel.draw({uniforms:{u_Texture:o.copyRenderTarget}})}),i.multiPassRenderer.getPostProcessor().render(i));var oe=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=oe,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(i,o,s){this.shaderModuleService.registerModule(i,{vs:mA,fs:o});var l=this.shaderModuleService.getModule(i),f=l.vs,v=l.fs,y=l.uniforms,b=this.rendererService,T=b.createAttribute,M=b.createBuffer,O=b.createModel;return O((0,H.Z)({vs:f,fs:v,attributes:{a_Position:T({buffer:M({data:[-4,-4,4,-4,0,4],type:R.FLOAT}),size:2})},uniforms:(0,H.Z)({},y),depth:{enable:!1},count:3},s))}}]),t}(vg),Dy=Oi(D0.prototype,"shaderModuleService",[Py],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D0))||Oy),um=new gt.W2;um.bind(tt.IGlobalConfigService).to(Xa).inSingletonScope(),(0,gt.GW)((0,gt.b2)(),no.EventEmitter),um.bind(tt.IEventEmitter).to(no.EventEmitter);var By=(0,pr.Z)(um,!1),k0=function(r){var t=By.lazyInject(r);return function(n,i,o){t.call(this,n,i),o&&(o.initializer=function(){return n[i]})}},WB=function(r){var t=By.lazyMultiInject(r);return function(n,i,o){t.call(this,n,i),o&&(o.initializer=function(){return n[i]})}},jl=um,yA=0;function xA(){var e=new gt.W2;return e.parent=um,e.bind(tt.SceneID).toConstantValue("".concat(yA++)),e.bind(tt.IShaderModuleService).to(tS).inSingletonScope(),e.bind(tt.ILayerService).to(Zs).inSingletonScope(),e.bind(tt.IDebugService).to(ts).inSingletonScope(),e.bind(tt.ISceneService).to(sg).inSingletonScope(),e.bind(tt.ICameraService).to(or).inSingletonScope(),e.bind(tt.ICoordinateSystemService).to(xp).inSingletonScope(),e.bind(tt.IInteractionService).to(N).inSingletonScope(),e.bind(tt.IPickingService).to(zn).inSingletonScope(),e.bind(tt.IControlService).to(ri).inSingletonScope(),e.bind(tt.IMarkerService).to(dl).inSingletonScope(),e.bind(tt.IIconService).to(rt).inSingletonScope(),e.bind(tt.IFontService).to(Se).inSingletonScope(),e.bind(tt.IPopupService).to(Vd).inSingletonScope(),e.bind(tt.INormalPass).to(aS).whenTargetNamed("clear"),e.bind(tt.INormalPass).to(fS).whenTargetNamed("pixelPicking"),e.bind(tt.INormalPass).to(hA).whenTargetNamed("render"),e.bind(tt.INormalPass).to(_A).whenTargetNamed("taa"),e.bind(tt.IFactoryNormalPass).toFactory(function(r){return function(t){return r.container.getNamed(tt.INormalPass,t)}}),e.bind(tt.IPostProcessingPass).to(VS).whenTargetNamed("copy"),e.bind(tt.IPostProcessingPass).to(xS).whenTargetNamed("bloom"),e.bind(tt.IPostProcessingPass).to(wS).whenTargetNamed("blurH"),e.bind(tt.IPostProcessingPass).to(OS).whenTargetNamed("blurV"),e.bind(tt.IPostProcessingPass).to(nA).whenTargetNamed("noise"),e.bind(tt.IPostProcessingPass).to(uA).whenTargetNamed("sepia"),e.bind(tt.IPostProcessingPass).to(LS).whenTargetNamed("colorHalftone"),e.bind(tt.IPostProcessingPass).to(XS).whenTargetNamed("hexagonalPixelate"),e.bind(tt.IPostProcessingPass).to(QS).whenTargetNamed("ink"),e.bind(tt.IFactoryPostProcessingPass).toFactory(function(r){return function(t){var n=r.container.getNamed(tt.IPostProcessingPass,t);return n.setName(t),n}}),e}function lm(e){var r=new gt.W2;return r.parent=e,r.bind(tt.IStyleAttributeService).to(ws).inSingletonScope(),r.bind(tt.IMultiPassRenderer).to(uS).inSingletonScope(),r.bind(tt.IPostProcessor).to(lA).inSingletonScope(),r}var bA=null;function GB(e){return bA.indexOf(e)}var Ly=ii.clamp,EA=2,XB=4,SA=64,$B=128,AA=256,TA=512,YB=8192,qB=16384,KB=32768,wA=null,Ny=131072,QB=262144,CA=524288,JB=1048576,RA=2097152,eL=4194304,MA=8388608,IA=16777216,PA=null;function mg(e,r){return e=Ly(Math.floor(e),0,255),r=Ly(Math.floor(r),0,255),256*e+r}function tL(e){var r=e.color,t=e.radius,n=e.tileX,i=e.tileY,o=e.shape,s=e.opacity,l=e.stroke,f=e.strokeWidth,v=e.strokeOpacity,y=[],b=[],T=[],M=[mg(r[0],r[1]),mg(r[2],r[3])],O=[mg(l[0],l[1]),mg(l[2],l[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(k){var $=_slicedToArray(k,2),G=$[0],oe=$[1];y.push([].concat(M,[(G+1)*MA+(oe+1)*RA+getShapeIndex(o)*Ny+t,(n+512)*CA+(i+512)*SA])),b.push([].concat(O,[f,v])),T.push([s,0,0,0])}),{packedBuffer:y,packedBuffer2:b,packedBuffer3:T}}function rL(e,r){if(e===0&&!r)return 0;if(e===1&&r)return 4294967295;var t=r?1:0,n=Math.floor(e*127);return n*PA+t*IA+n*Ny+t*wA+n*TA+t*AA+n*EA+t}var vd={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Rs={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},to=function(e){return e.LINEAR="linear",e.SEQUENTIAL="sequential",e.POWER="power",e.LOG="log",e.IDENTITY="identity",e.TIME="time",e.QUANTILE="quantile",e.QUANTIZE="quantize",e.THRESHOLD="threshold",e.CAT="cat",e.DIVERGING="diverging",e}({}),ov=function(e){return e.CONSTANT="constant",e.VARIABLE="variable",e}({}),fn=function(e){return e[e.Attribute=0]="Attribute",e[e.InstancedAttribute=1]="InstancedAttribute",e[e.Uniform=2]="Uniform",e}({}),OA=["mapload","mapchange","mapAfterFrameChange"],gg=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Eu=function(e){return e.IMAGE="image",e.CUSTOMIMAGE="customImage",e.ARRAYBUFFER="arraybuffer",e.RGB="rgb",e.TERRAINRGB="terrainRGB",e.CUSTOMRGB="customRGB",e.CUSTOMARRAYBUFFER="customArrayBuffer",e.CUSTOMTERRAINRGB="customTerrainRGB",e}({}),DA=function(){var e=(0,Ct.Z)(me().mark(function r(t,n,i,o){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(f,v){n({x:t.x,y:t.y,z:t.z},function(y,b){if(y||b.length===0){v(y);return}b&&Xr([{data:b,bands:[0]}],i,o,function(T,M){T?v(T):M&&f(M)})})}));case 1:case"end":return l.stop()}},r)}));return function(t,n,i,o){return e.apply(this,arguments)}}(),kA=function(){var e=(0,Ct.Z)(me().mark(function r(t,n){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new Promise(function(s,l){n({x:t.x,y:t.y,z:t.z},function(f,v){if(f||!v){l(f);return}v instanceof ArrayBuffer?cu(v,function(y,b){y&&l(y),s(b)}):v instanceof HTMLImageElement?s(v):l(f)})}));case 1:case"end":return o.stop()}},r)}));return function(t,n){return e.apply(this,arguments)}}();function FA(e,r){return Array.isArray(e)?typeof e[0]=="string"?e.map(function(t){return h(t,r)}):e.map(function(t){return{url:h(t.url,r),bands:t.bands||[0]}}):h(e,r)}function BA(e){return typeof e=="string"?[{url:e,bands:[0]}]:typeof e[0]=="string"?e.map(function(r){return{url:r,bands:[0]}}):e}function Uy(e,r){e.xhrCancel=function(){r.map(function(t){t.abort()})}}var LA=function(){var e=(0,Ct.Z)(me().mark(function r(t,n,i,o,s){var l,f,v,y,b,T;return me().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(l=BA(n.url),!(l.length>1)){O.next=15;break}return O.next=4,NA(l,n);case 4:if(f=O.sent,v=f.rasterFiles,y=f.xhrList,b=f.errList,Uy(t,y),!(b.length>0)){O.next=12;break}return i(b,null),O.abrupt("return");case 12:Xr(v,o,s,i),O.next=17;break;case 15:T=Si(n,function(k,$){if(k)i(k);else if($){var G=[{data:$,bands:l[0].bands}];Xr(G,o,s,i)}}),Uy(t,[T]);case 17:case"end":return O.stop()}},r)}));return function(t,n,i,o,s){return e.apply(this,arguments)}}();function NA(e,r){return F0.apply(this,arguments)}function F0(){return F0=(0,Ct.Z)(me().mark(function e(r,t){var n,i,o,s,l,f,v,y,b,T,M;return me().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:n=[],i=[],o=[],s=0;case 4:if(!(s1&&arguments[1]!==void 0?arguments[1]:{};if(ZA(e))throw new Error("tile server url is error");var t=(r==null?void 0:r.dataType)||Eu.IMAGE;t===Eu.RGB&&(t=Eu.ARRAYBUFFER);var n=function(s,l){switch(t){case Eu.IMAGE:return zy(e,s,l,r);case Eu.CUSTOMIMAGE:case Eu.CUSTOMTERRAINRGB:return kA(l,r==null?void 0:r.getCustomData);case Eu.ARRAYBUFFER:return UA(e,s,l,(r==null?void 0:r.format)||Zy,r==null?void 0:r.operation);case Eu.CUSTOMARRAYBUFFER:case Eu.CUSTOMRGB:return DA(l,r==null?void 0:r.getCustomData,(r==null?void 0:r.format)||Zy,r==null?void 0:r.operation);default:return zy(e,s,l,r)}},i=(0,H.Z)((0,H.Z)((0,H.Z)({},zA),r),{},{getTileData:n});return{data:e,dataArray:[],tilesetOptions:i,isTile:!0}}var jA=["extent","min","max","width","height","format","operation"];function HA(e,r){var t=r.extent,n=r.min,i=r.max,o=r.width,s=r.height,l=r.format,f=r.operation,v=(0,Fa.Z)(r,jA),y;if(l===void 0||gf(e))y=Array.from(e);else{var b=Array.isArray(e)?e:[e];y=tn(b,l,f)}var T={_id:1,dataArray:[(0,H.Z)((0,H.Z)({_id:1,data:y,width:o,height:s},v),{},{min:n,max:i,coordinates:[[t[0],t[1]],[t[2],t[3]]]})]};return T}var WA={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},GA=function(){var e=(0,Ct.Z)(me().mark(function r(t){return me().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(o){var s=(0,yn.Z)(t.bounds,4),l=s[0],f=s[1],v=s[2],y=s[3],b={layers:{testTile:{features:[{type:"Feature",properties:{key:t.x+"/"+t.y+"/"+t.z,x:(l+v)/2,y:(f+y)/2},geometry:{type:"LineString",coordinates:[[v,y],[v,f],[l,f],[l,f]]}}]}}};o(b)}));case 1:case"end":return i.stop()}},r)}));return function(t){return e.apply(this,arguments)}}();function XA(e,r){var t=function(o){return GA(o)},n=(0,H.Z)((0,H.Z)((0,H.Z)({},WA),r),{},{getTileData:t});return{data:e,dataArray:[],tilesetOptions:n,isTile:!0}}var $A=L(48096),YA=L.n($A);function Vy(e,r){var t=r.radius,n=t===void 0?40:t,i=r.maxZoom,o=i===void 0?18:i,s=r.minZoom,l=s===void 0?0:s,f=r.zoom,v=f===void 0?2:f;if(e.pointIndex){var y=e.pointIndex.getClusters(e.extent,Math.floor(v));return e.dataArray=qA(y),e}var b=new(YA())({radius:n,minZoom:l,maxZoom:o}),T={type:"FeatureCollection",features:[]};return T.features=e.dataArray.map(function(M){return{type:"Feature",geometry:{type:"Point",coordinates:M.coordinates},properties:(0,H.Z)({},M)}}),b.load(T.features),b}function qA(e){return e.map(function(r,t){return(0,H.Z)({coordinates:r.geometry.coordinates,_id:t+1},r.properties)})}function KA(e){if(e.length===0)throw new Error("max requires at least one data point");for(var r=e[0],t=1;tr&&(r=e[t]);return r}function QA(e){if(e.length===0)throw new Error("min requires at least one data point");for(var r=e[0],t=1;t=Math.abs(e[i])?t+=r-n+e[i]:t+=e[i]-n+r,r=n;return r+t*1}function JA(e){if(e.length===0)throw new Error("mean requires at least one data point");return jy(e)/e.length}var eT={min:QA,max:KA,mean:JA,sum:jy};function tT(e){var r=rT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function rT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nT=ii.cloneDeep,Hy=ii.isFunction,iT=ii.isString,aT=ii.mergeWith;function oT(e,r){if(Array.isArray(r))return r}var sT=function(e){(0,De.Z)(t,e);var r=tT(t);function t(n,i){var o;return(0,q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Ie.Z)(o),"type","source"),(0,B.Z)((0,Ie.Z)(o),"isTile",!1),(0,B.Z)((0,Ie.Z)(o),"inited",!1),(0,B.Z)((0,Ie.Z)(o),"hooks",{init:new xu}),(0,B.Z)((0,Ie.Z)(o),"parser",{type:"geojson"}),(0,B.Z)((0,Ie.Z)(o),"transforms",[]),(0,B.Z)((0,Ie.Z)(o),"cluster",!1),(0,B.Z)((0,Ie.Z)(o),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,B.Z)((0,Ie.Z)(o),"invalidExtent",!1),(0,B.Z)((0,Ie.Z)(o),"dataArrayChanged",!1),(0,B.Z)((0,Ie.Z)(o),"cfg",{autoRender:!0}),o.originData=n,o.initCfg(i),o.init().then(function(){o.inited=!0,o.emit("update",{type:"inited"})}),o}return(0,V.Z)(t,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(i){return this.clusterIndex.getClusters(this.caculClusterExtent(2),i)}},{key:"getClustersLeaves",value:function(i){return this.clusterIndex.getLeaves(i,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(i){var o=this,s=this.clusterOptions,l=s.method,f=l===void 0?"sum":l,v=s.field,y=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(i));this.clusterOptions.zoom=i,y.forEach(function(b){b.id||(b.properties.point_count=1)}),(v||Hy(f))&&(y=y.map(function(b){var T=b.id;if(T){var M=o.clusterIndex.getLeaves(T,1/0),O=M.map(function(G){return G.properties}),k;if(iT(f)&&v){var $=mf(O,v);k=eT[f]($)}Hy(f)&&(k=f(O)),b.properties.stat=k}else b.properties.point_count=1;return b})),this.data=he("geojson")({type:"FeatureCollection",features:y}),this.executeTrans()}},{key:"getFeatureById",value:function(i){var o=this.parser,s=o.type,l=s===void 0?"geojson":s,f=o.geometry;if(l==="geojson"&&!this.cluster){var v=i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function lT(e,r){if(e){if(typeof e=="string")return Gy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Gy(e,r)}}function Gy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tn?i:n)}}catch(ye){o.e(ye)}finally{o.f()}var f=(t+n)/2,v=hT(r,f);if(v.xOffset<=0||v.yOffset<=0)return{gridHash:{},gridOffset:v};var y={},b=Wy(e),T;try{for(b.s();!(T=b.n()).done;){var M=T.value,O=M.coordinates[1],k=M.coordinates[0];if(Number.isFinite(O)&&Number.isFinite(k)){var $=Math.floor((O+90)/v.yOffset),G=Math.floor((k+180)/v.xOffset),oe="".concat($,"-").concat(G);y[oe]=y[oe]||{count:0,points:[]},y[oe].count+=1,y[oe].points.push(M)}}}catch(ye){b.e(ye)}finally{b.f()}return{gridHash:y,gridOffset:v}}function hT(e,r){var t=pT(e),n=dT(r,e);return{yOffset:t,xOffset:n}}function pT(e){return e/B0*(180/Math.PI)}function dT(e,r){return r/B0*(180/Math.PI)/Math.cos(e*Math.PI/180)}function vT(e,r,t){return Object.keys(e).reduce(function(n,i,o){var s=i.split("-"),l=parseInt(s[0],10),f=parseInt(s[1],10),v={};if(t.field&&t.method){var y=lf(e[i].points,t.field);v[t.method]=Il[t.method](y)}return Object.assign(v,{_id:o,coordinates:ko([-180+r.xOffset*(f+.5),-90+r.yOffset*(l+.5)]),rawData:e[i].points,count:e[i].count}),n.push(v),n},[])}var sv=Math.PI/3,mT=[0,sv,2*sv,3*sv,4*sv,5*sv];function gT(e){return e[0]}function _T(e){return e[1]}function yT(){var e=0,r=0,t=1,n=1,i=gT,o=_T,s,l,f;function v(b){var T={},M=[],O,k=b.length;for(O=0;O1){var ut=G-Le,vt=Le+(GJt*Jt+Mr*Mr&&(Le=vt+(ye&1?1:-1)/2,ye=Rt)}var br=Le+"-"+ye,pn=T[br];pn?pn.push($):(M.push(pn=T[br]=[$]),pn.x=(Le+(ye&1)/2)*l,pn.y=ye*f)}return M}function y(b){var T=0,M=0;return mT.map(function(O){var k=Math.sin(O)*b,$=-Math.cos(O)*b,G=k-T,oe=$-M;return T=k,M=$,[G,oe]})}return v.hexagon=function(b){return"m"+y(b==null?s:+b).join("l")+"z"},v.centers=function(){for(var b=[],T=Math.round(r/f),M=Math.round(e/l),O=T*f;O180||Math.abs(O[1][0])>180){if(y.x>M){var k=this.mapsService.lngLatToContainer([f-360,v]);y.x=k.x}if(y.x<0){var $=this.mapsService.lngLatToContainer([f+360,v]);y.x=$.x}}(y.x>M||y.x<0||y.y>T||y.y<0)&&(o.style.display="none"),o.style.left=y.x+s[0]+"px",o.style.top=y.y-s[1]+"px"}}}},{key:"init",value:function(){var i=this,o=this.markerOption.element,s=this.markerOption,l=s.color,f=s.anchor;if(!o){this.defaultMarker=!0,o=Ji("div"),this.markerOption.element=o;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttributeNS(null,"display","block"),v.setAttributeNS(null,"height","48px"),v.setAttributeNS(null,"width","48px"),v.setAttributeNS(null,"viewBox","0 0 1024 1024");var y=document.createElementNS("http://www.w3.org/2000/svg","path");y.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),y.setAttributeNS(null,"fill",l),v.appendChild(y),o.appendChild(v)}fu(o,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(b){var T,M,O=((T=i.markerOption)===null||T===void 0?void 0:T.style)&&((M=i.markerOption)===null||M===void 0?void 0:M.style[b]);o&&(o.style[b]=O)}),$l(o,f,"marker")}},{key:"registerMarkerEvent",value:function(i){i.addEventListener("click",this.onMapClick),i.addEventListener("mousemove",this.eventHandle),i.addEventListener("click",this.eventHandle),i.addEventListener("mousedown",this.eventHandle),i.addEventListener("mouseup",this.eventHandle),i.addEventListener("dblclick",this.eventHandle),i.addEventListener("contextmenu",this.eventHandle),i.addEventListener("mouseover",this.eventHandle),i.addEventListener("mouseout",this.eventHandle),i.addEventListener("touchstart",this.eventHandle),i.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var i=this.getElement();i.removeEventListener("click",this.onMapClick),i.removeEventListener("mousemove",this.eventHandle),i.removeEventListener("click",this.eventHandle),i.removeEventListener("mousedown",this.eventHandle),i.removeEventListener("mouseup",this.eventHandle),i.removeEventListener("dblclick",this.eventHandle),i.removeEventListener("contextmenu",this.eventHandle),i.removeEventListener("mouseover",this.eventHandle),i.removeEventListener("mouseout",this.eventHandle),i.removeEventListener("touchstart",this.eventHandle),i.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(i){!this.mapsService||this.mapsService.version!=="GAODE2.x"||ec()||(i.type==="touchstart"&&(this.touchStartTime=Date.now()),i.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:i,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(i){return null}},{key:"onUp",value:function(i){throw new Error("Method not implemented.")}}]),t}(no.EventEmitter);function iL(e){var r=CT();return function(){var n=_getPrototypeOf(e),i;if(r){var o=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function CT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var aL=ii.merge,oL=null,sL=L(18735);function RT(e){var r=MT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function MT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var uv=function(e){(0,De.Z)(t,e);var r=RT(t);function t(n){var i;return(0,q.Z)(this,t),i=r.call(this),t.controlCount++,i.controlOption=(0,H.Z)((0,H.Z)({},i.getDefault(n)),n||{}),i}return(0,V.Z)(t,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(i){var o=this.getDefault(i);Object.entries(i).forEach(function(s){var l=(0,yn.Z)(s,2),f=l[0],v=l[1];v===void 0&&(i[f]=o[f])}),"position"in i&&this.setPosition(i.position),"className"in i&&this.setClassName(i.className),"style"in i&&this.setStyle(i.style),this.controlOption=(0,H.Z)((0,H.Z)({},this.controlOption),i)}},{key:"addTo",value:function(i){this.mapsService=i.get(tt.IMapService),this.renderService=i.get(tt.IRendererService),this.layerService=i.get(tt.ILayerService),this.controlService=i.get(tt.IControlService),this.configService=i.get(tt.IGlobalConfigService),this.scene=i.get(tt.ISceneService),this.sceneContainer=i,this.isShow=!0,this.container=this.onAdd(),fu(this.container,"l7-control");var o=this.controlOption,s=o.className,l=o.style;return s&&this.setClassName(s),l&&this.setStyle(l),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;Ci(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return Ji("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var i=this.container;Du(i,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var i=this.container;fu(i,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(i){return{position:_r.TOPRIGHT,name:"".concat(t.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(i){if(this.mapsService&&i&&i.screenX>0&&i.screenY>0){var o=this.mapsService.getContainer();o!==null&&o.focus()}}},{key:"setPosition",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_r.TOPLEFT,o=this.controlService;return o&&o.removeControl(this),this.controlOption.position=i,o&&o.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(i){var o=this.container,s=this.controlOption.className;s&&Du(o,s),i&&fu(o,i)}},{key:"setStyle",value:function(i){var o=this.container;i?o.setAttribute("style",i):o.removeAttribute("style")}},{key:"insertContainer",value:function(){var i=this.controlOption.position,o=this.container;if(i instanceof Element)i.appendChild(o);else{var s=this.controlService.controlCorners[i];["bottomleft","bottomright","righttop","rightbottom"].includes(i)?s.insertBefore(o,s.firstChild):s.appendChild(o)}}},{key:"checkUpdateOption",value:function(i,o){return o.some(function(s){return s in i})}}]),t}(vu());(0,B.Z)(uv,"controlCount",0);function IT(e){var r=PT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function PT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _g=function(e){(0,De.Z)(t,e);var r=IT(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:"";return Ji("button","l7-button-control ".concat(i))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var i=this.controlOption,o=i.title,s=i.btnText,l=i.btnIcon;return this.setBtnTitle(o),this.setBtnText(s),this.setBtnIcon(l),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(i){var o=i.title,s=i.btnText,l=i.btnIcon;this.checkUpdateOption(i,["title"])&&this.setBtnTitle(o),this.checkUpdateOption(i,["btnIcon"])&&this.setBtnIcon(l),this.checkUpdateOption(i,["btnText"])&&this.setBtnText(s),Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i)}},{key:"setBtnTitle",value:function(i){var o;(o=this.button)===null||o===void 0||o.setAttribute("title",i!=null?i:"")}},{key:"setBtnIcon",value:function(i){if(this.buttonIcon&&Ci(this.buttonIcon),i){var o,s=(o=this.button)===null||o===void 0?void 0:o.firstChild;if(s){var l;(l=this.button)===null||l===void 0||l.insertBefore(i,s)}else{var f;(f=this.button)===null||f===void 0||f.appendChild(i)}this.buttonIcon=i}}},{key:"setBtnText",value:function(i){if(this.button)if(Du(this.button,"l7-button-control--row"),Du(this.button,"l7-button-control--column"),i){var o=this.buttonText;if(!o){var s;o=Ji("div","l7-button-control__text"),(s=this.button)===null||s===void 0||s.appendChild(o),this.buttonText=o}o.innerText=i,fu(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!i&&this.buttonText&&(Ci(this.buttonText),this.buttonText=void 0)}}]),t}(uv);function OT(e){var r=DT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function DT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var $y=function(e){(0,De.Z)(t,e);var r=OT(t);function t(n,i){var o;return(0,q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Ie.Z)(o),"isShow",!1),(0,B.Z)((0,Ie.Z)(o),"timeout",null),(0,B.Z)((0,Ie.Z)(o),"show",function(){return o.isShow||!o.contentDOM.innerHTML||(o.resetPopperPosition(),Du(o.popperDOM,"l7-popper-hide"),o.isShow=!0,o.option.unique&&t.conflictPopperList.forEach(function(s){s!==(0,Ie.Z)(o)&&s.isShow&&s.hide()}),o.emit("show"),window.addEventListener("pointerdown",o.onPopperUnClick)),(0,Ie.Z)(o)}),(0,B.Z)((0,Ie.Z)(o),"hide",function(){return o.isShow&&(fu(o.popperDOM,"l7-popper-hide"),o.isShow=!1,o.emit("hide"),window.removeEventListener("pointerdown",o.onPopperUnClick)),(0,Ie.Z)(o)}),(0,B.Z)((0,Ie.Z)(o),"setHideTimeout",function(){o.timeout||(o.timeout=window.setTimeout(function(){o.isShow&&(o.hide(),o.timeout=null)},300))}),(0,B.Z)((0,Ie.Z)(o),"clearHideTimeout",function(){o.timeout&&(window.clearTimeout(o.timeout),o.timeout=null)}),(0,B.Z)((0,Ie.Z)(o),"onBtnClick",function(){o.isShow?o.hide():o.show()}),(0,B.Z)((0,Ie.Z)(o),"onPopperUnClick",function(s){Tl(s.target,[".l7-button-control",".l7-popper-content"])||o.hide()}),(0,B.Z)((0,Ie.Z)(o),"onBtnMouseLeave",function(){o.setHideTimeout()}),(0,B.Z)((0,Ie.Z)(o),"onBtnMouseMove",function(){o.clearHideTimeout(),!o.isShow&&o.show()}),o.button=n,o.option=i,o.init(),i.unique&&t.conflictPopperList.push((0,Ie.Z)(o)),o}return(0,V.Z)(t,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(i){typeof i=="string"?this.contentDOM.innerHTML=i:i instanceof HTMLElement&&(ca(this.contentDOM),this.contentDOM.appendChild(i)),this.content=i}},{key:"init",value:function(){var i=this.option.trigger;this.popperDOM=this.createPopper(),i==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),Ci(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var i={},o=this.option,s=o.container,l=o.offset,f=l===void 0?[0,0]:l,v=o.placement,y=(0,yn.Z)(f,2),b=y[0],T=y[1],M=this.button.getBoundingClientRect(),O=s.getBoundingClientRect(),k=gh(M,O),$=k.left,G=k.right,oe=k.top,ye=k.bottom,Le=!1,$e=!1;/^(left|right)/.test(v)?(v.includes("left")?i.right="".concat(M.width+G,"px"):v.includes("right")&&(i.left="".concat(M.width+$,"px")),v.includes("start")?i.top="".concat(oe,"px"):v.includes("end")?i.bottom="".concat(ye,"px"):(i.top="".concat(oe+M.height/2,"px"),$e=!0,i.transform="translate(".concat(b,"px, calc(").concat(T,"px - 50%))"))):/^(top|bottom)/.test(v)&&(v.includes("top")?i.bottom="".concat(M.height+ye,"px"):v.includes("bottom")&&(i.top="".concat(M.height+oe,"px")),v.includes("start")?i.left="".concat($,"px"):v.includes("end")?i.right="".concat(G,"px"):(i.left="".concat($+M.width/2,"px"),Le=!0,i.transform="translate(calc(".concat(b,"px - 50%), ").concat(T,"px)"))),i.transform="translate(calc(".concat(b,"px - ").concat(Le?"50%":"0%","), calc(").concat(T,"px - ").concat($e?"50%":"0%",")");var ut=v.split("-");ut.length&&fu(this.popperDOM,ut.map(function(vt){return"l7-popper-".concat(vt)}).join(" ")),Qs(this.popperDOM,rl(i))}},{key:"createPopper",value:function(){var i=this.option,o=i.container,s=i.className,l=s===void 0?"":s,f=i.content,v=Ji("div","l7-popper l7-popper-hide ".concat(l)),y=Ji("div","l7-popper-content"),b=Ji("div","l7-popper-arrow");return v.appendChild(y),v.appendChild(b),o.appendChild(v),this.popperDOM=v,this.contentDOM=y,f&&this.setContent(f),v}}]),t}(no.EventEmitter);(0,B.Z)($y,"conflictPopperList",[]);function kT(e){var r=FT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function FT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var BT={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},LT=function(e){(0,De.Z)(t,e);var r=kT(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),Ra((0,be.Z)(t.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(i){var o,s=Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i),l=(o=i==null?void 0:i.position)!==null&&o!==void 0?o:s.position;return(0,H.Z)((0,H.Z)({},Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i)),{},{popperPlacement:l instanceof Element?"bottom":BT[l],popperTrigger:"click"})}},{key:"onAdd",value:function(){var i=Ra((0,be.Z)(t.prototype),"onAdd",this).call(this);return this.initPopper(),i}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var i=this,o=this.controlOption,s=o.popperClassName,l=o.popperPlacement,f=o.popperTrigger,v=this.mapsService.getMapContainer();return this.popper=new $y(this.button,{className:s,placement:l,trigger:f,container:v,unique:!0}),this.popper.on("show",function(){i.emit("popperShow",i)}).on("hide",function(){i.emit("popperHide",i)}),this.popper}},{key:"setOptions",value:function(i){if(Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i),this.checkUpdateOption(i,["popperPlacement","popperTrigger","popperClassName"])){var o=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(o)}}}]),t}(_g);function NT(e){var r=UT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function UT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Rp=function(e){return e.ActiveOptionClassName="l7-select-control-item-active",e.OptionValueAttrKey="data-option-value",e.OptionIndexAttrKey="data-option-index",e}(Rp||{}),Yy=function(e){(0,De.Z)(t,e);var r=NT(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s-1?n.selectValue.splice(f,1):n.selectValue=[].concat((0,Wt.Z)(n.selectValue),[l.value])}else n.selectValue=[l.value];n.setSelectValue(n.selectValue)}),n}return(0,V.Z)(t,[{key:"setOptions",value:function(i){Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i);var o=i.options;o&&this.popper.setContent(this.getPopperContent(o))}},{key:"onAdd",value:function(){var i=Ra((0,be.Z)(t.prototype),"onAdd",this).call(this),o=this.controlOption.defaultValue;return o&&(this.selectValue=this.transSelectValue(o)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),i}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=this.transSelectValue(i);this.optionDOMList.forEach(function(f){var v=f.getAttribute(Rp.OptionValueAttrKey),y=o.getIsMultiple()?f.querySelector("input[type=checkbox]"):void 0;l.includes(v)?(fu(f,Rp.ActiveOptionClassName),y&&Ql(y,!0)):(Du(f,Rp.ActiveOptionClassName),y&&Ql(y,!1))}),this.selectValue=l,s&&this.emit("selectChange",this.getIsMultiple()?l:l[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(i){var o=this,s=this.isImageOptions(),l=Ji("div",s?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&fu(l,"l7-select-control--multiple");var f=i.map(function(v,y){var b=s?o.createImageOption(v):o.createNormalOption(v);return b.setAttribute(Rp.OptionValueAttrKey,v.value),b.setAttribute(Rp.OptionIndexAttrKey,window.String(y)),b.addEventListener("click",o.onItemClick.bind(o,v)),b});return l.append.apply(l,(0,Wt.Z)(f)),this.optionDOMList=f,l}},{key:"createImageOption",value:function(i){var o=this.selectValue.includes(i.value),s=Ji("div","l7-select-control-item ".concat(o?Rp.ActiveOptionClassName:"")),l=Ji("img");l.setAttribute("src",i.img),tf(l),s.appendChild(l);var f=Ji("div","l7-select-control-item-row");this.getIsMultiple()&&s.appendChild(this.createCheckbox(o));var v=Ji("span");return v.innerText=i.text,f.appendChild(v),s.appendChild(f),s}},{key:"createCheckbox",value:function(i){var o=Ji("input");return o.setAttribute("type","checkbox"),i&&Ql(o,!0),o}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(i){return i.img})}},{key:"transSelectValue",value:function(i){return Array.isArray(i)?i:[i]}}]),t}(LT),Hh=function(r){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.classList.add("l7-iconfont"),t.setAttribute("aria-hidden","true");var n=document.createElementNS("http://www.w3.org/2000/svg","use");return n.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(r)),t.appendChild(n),t};function zT(e){var r=ZT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function ZT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var VT=function(e){(0,De.Z)(t,e);var r=zT(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function HT(e,r){if(e){if(typeof e=="string")return qy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qy(e,r)}}function qy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:document.documentElement,t=arguments.length>1?arguments[1]:void 0;return new Promise(function(n,i){var o=function l(){xc.off("change",l),n()};xc.on("change",o);var s=r[Wh.requestFullscreen](t);s instanceof Promise&&s.then(o).catch(i)})},exit:function(){return new Promise(function(r,t){if(!xc.isFullscreen){r();return}var n=function o(){xc.off("change",o),r()};xc.on("change",n);var i=document[Wh.exitFullscreen]();i instanceof Promise&&i.then(n).catch(t)})},toggle:function(r,t){return xc.isFullscreen?xc.exit():xc.request(r,t)},onchange:function(r){xc.on("change",r)},onerror:function(r){xc.on("error",r)},on:function(r,t){var n=Qy[r];n&&document.addEventListener(n,t,!1)},off:function(r,t){var n=Qy[r];n&&document.removeEventListener(n,t,!1)},raw:Wh};Object.defineProperties(xc,{isFullscreen:{get:function(){return!!document[Wh.fullscreenElement]}},element:{enumerable:!0,get:function(){var r;return(r=document[Wh.fullscreenElement])!==null&&r!==void 0?r:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[Wh.fullscreenEnabled]}}}),Wh||(xc={isEnabled:!1});var L0=xc;function WT(e){var r=GT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function GT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var XT=function(e){(0,De.Z)(t,e);var r=WT(t);function t(n){var i;return(0,q.Z)(this,t),i=r.call(this,n),(0,B.Z)((0,Ie.Z)(i),"isFullscreen",!1),(0,B.Z)((0,Ie.Z)(i),"toggleFullscreen",(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!L0.isEnabled){l.next=3;break}return l.next=3,L0.toggle(i.mapContainer);case 3:case"end":return l.stop()}},o)}))),(0,B.Z)((0,Ie.Z)(i),"onClick",function(){i.toggleFullscreen()}),(0,B.Z)((0,Ie.Z)(i),"onFullscreenChange",function(){i.isFullscreen=!!document.fullscreenElement;var o=i.controlOption,s=o.btnText,l=o.btnIcon,f=o.title,v=o.exitBtnText,y=o.exitBtnIcon,b=o.exitTitle;i.isFullscreen?(i.setBtnTitle(b),i.setBtnText(v),i.setBtnIcon(y)):(i.setBtnTitle(f),i.setBtnText(s),i.setBtnIcon(l)),i.emit("fullscreenChange",i.isFullscreen)}),L0.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),i}return(0,V.Z)(t,[{key:"setOptions",value:function(i){var o=i.exitBtnText,s=i.exitBtnIcon,l=i.exitTitle;this.isFullscreen&&(this.checkUpdateOption(i,["exitBtnIcon"])&&this.setBtnIcon(s),this.checkUpdateOption(i,["exitBtnText"])&&this.setBtnText(o),this.checkUpdateOption(i,["exitTitle"])&&this.setBtnTitle(l)),Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i)}},{key:"onAdd",value:function(){var i=Ra((0,be.Z)(t.prototype),"onAdd",this).call(this);return i.addEventListener("click",this.onClick),this.mapContainer=Os(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),i}},{key:"onRemove",value:function(){Ra((0,be.Z)(t.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(i){return(0,H.Z)((0,H.Z)({},Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i)),{},{title:"\u5168\u5C4F",btnIcon:Hh("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Hh("l7-icon-exit-fullscreen")})}}]),t}(_g);function $T(e){var r=YT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function YT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var qT=function(e){(0,De.Z)(t,e);var r=$T(t);function t(n){var i;return(0,q.Z)(this,t),i=r.call(this,n),(0,B.Z)((0,Ie.Z)(i),"getGeoLocation",function(){return new Promise(function(o,s){window.navigator.geolocation.getCurrentPosition(function(l){var f=l.coords,v=f!=null?f:{},y=v.longitude,b=v.latitude;!isNaN(y)&&!isNaN(b)?o([y,b]):s()},function(l){s(l)})})}),(0,B.Z)((0,Ie.Z)(i),"onClick",(0,Ct.Z)(me().mark(function o(){var s,l,f;return me().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(window.navigator.geolocation){y.next=2;break}return y.abrupt("return");case 2:return s=i.controlOption.transform,y.next=5,i.getGeoLocation();case 5:if(l=y.sent,f=i.mapsService.getZoom(),y.t0=i.mapsService,y.t1=f>15?f:15,!s){y.next=15;break}return y.next=12,s(l);case 12:y.t2=y.sent,y.next=16;break;case 15:y.t2=l;case 16:y.t3=y.t2,y.t0.setZoomAndCenter.call(y.t0,y.t1,y.t3);case 18:case"end":return y.stop()}},o)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),i}return(0,V.Z)(t,[{key:"getDefault",value:function(i){return(0,H.Z)((0,H.Z)({},Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i)),{},{title:"\u5B9A\u4F4D",btnIcon:Hh("l7-icon-reposition")})}},{key:"onAdd",value:function(){var i=Ra((0,be.Z)(t.prototype),"onAdd",this).call(this);return i.addEventListener("click",this.onClick),i}}]),t}(_g);function KT(e){var r=QT();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function QT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Jy(e){return Object.keys(e!=null?e:{}).every(function(r){return["layer","name","img"].includes(r)})}var e1=function(e){(0,De.Z)(t,e);var r=KT(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=10?10:s>=5?5:s>=3?3:s>=2?2:1,o*s}},{key:"updateMetric",value:function(i){var o=this.getRoundNum(i),s=o<1e3?o+" m":o/1e3+" km";this.updateScale(this.mScale,s,o/i)}},{key:"updateImperial",value:function(i){var o=i*3.2808399,s,l,f;o>5280?(s=o/5280,l=this.getRoundNum(s),this.updateScale(this.iScale,l+" mi",l/s)):(f=this.getRoundNum(o),this.updateScale(this.iScale,f+" ft",f/o))}}]),t}(uv);function hw(e){var r=pw();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function pw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var dw=function(e){(0,De.Z)(t,e);var r=hw(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;sn.mapsService.getMinZoom()&&n.mapsService.zoomOut()}),(0,B.Z)((0,Ie.Z)(n),"updateDisabled",function(){var l=n.mapsService;n.zoomInButton.removeAttribute("disabled"),n.zoomOutButton.removeAttribute("disabled"),(n.disabled||l.getZoom()<=l.getMinZoom())&&n.zoomOutButton.setAttribute("disabled","true"),n.controlOption.showZoom&&n.zoomNumDiv&&(n.zoomNumDiv.innerText=String(Math.floor(l.getZoom()))),(n.disabled||l.getZoom()>=l.getMaxZoom())&&n.zoomInButton.setAttribute("disabled","true")}),n}return(0,V.Z)(t,[{key:"getDefault",value:function(i){return(0,H.Z)((0,H.Z)({},Ra((0,be.Z)(t.prototype),"getDefault",this).call(this,i)),{},{position:_r.BOTTOMRIGHT,name:"zoom",zoomInText:Hh("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Hh("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(i){Ra((0,be.Z)(t.prototype),"setOptions",this).call(this,i),this.checkUpdateOption(i,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var i=Ji("div","l7-control-zoom");return this.resetButtonGroup(i),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),i}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"resetButtonGroup",value:function(i){ca(i),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",i,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",i)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",i,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(i,o,s,l,f){var v=Ji("button",s,l);return typeof i=="string"?v.innerHTML=i:v.append(i),v.title=o,f&&v.addEventListener("click",f),v}}]),t}(uv);function vw(e){var r=mw();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function mw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var r1=function(e){(0,De.Z)(t,e);var r=vw(t);function t(n){var i;(0,q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Ie.Z)(i),"isShow",!0),(0,B.Z)((0,Ie.Z)(i),"onMouseMove",function(s){var l,f=i.mapsService.getMapContainer(),v=(l=f==null?void 0:f.getBoundingClientRect())!==null&&l!==void 0?l:{},y=v.left,b=y===void 0?0:y,T=v.top,M=T===void 0?0:T;i.setPopupPosition(s.clientX-b,s.clientY-M)}),(0,B.Z)((0,Ie.Z)(i),"updateLngLatPosition",function(){if(!(!i.mapsService||i.popupOption.followCursor)){var s=i.lngLat,l=s.lng,f=s.lat,v=i.mapsService.lngLatToContainer([l,f]),y=v.x,b=v.y;i.setPopupPosition(y,b)}}),(0,B.Z)((0,Ie.Z)(i),"onKeyDown",function(s){s.keyCode===27&&i.remove()}),(0,B.Z)((0,Ie.Z)(i),"onCloseButtonClick",function(s){s.stopPropagation&&s.stopPropagation(),i.hide()}),(0,B.Z)((0,Ie.Z)(i),"update",function(){var s=!!i.lngLat,l=i.popupOption,f=l.className,v=l.style,y=l.maxWidth,b=l.anchor,T=l.stopPropagation;if(!(!i.mapsService||!s||!i.content)){var M=i.mapsService.getMarkerContainer();if(!i.container&&M&&(i.container=Ji("div","l7-popup ".concat(f!=null?f:""," ").concat(i.isShow?"":"l7-popup-hide"),M),v&&i.container.setAttribute("style",v),i.tip=Ji("div","l7-popup-tip",i.container),i.container.appendChild(i.content),T&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function($){i.container.addEventListener($,function(G){G.stopPropagation()})}),i.container.style.whiteSpace="nowrap"),i.updateLngLatPosition(),ku(i.container,"".concat(Aa[b])),$l(i.container,b,"popup"),y){var O=i.container.getBoundingClientRect(),k=O.width;k>parseFloat(y)&&(i.container.style.width=y)}else i.container.style.removeProperty("width")}}),i.popupOption=(0,H.Z)((0,H.Z)({},i.getDefault(n!=null?n:{})),n);var o=i.popupOption.lngLat;return o&&(i.lngLat=o),i}return(0,V.Z)(t,[{key:"lngLat",get:function(){var i;return(i=this.popupOption.lngLat)!==null&&i!==void 0?i:{lng:0,lat:0}},set:function(i){this.popupOption.lngLat=i}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(i){this.mapsService=i.get(tt.IMapService),this.sceneService=i.get(tt.ISceneService),this.layerService=i.get(tt.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=i,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var o=this.popupOption,s=o.html,l=o.text,f=o.title;return s?this.setHTML(s):l&&this.setText(l),f&&this.setTitle(f),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&Ci(this.content),this.container&&(Ci(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(i){return this.show(),this.popupOption=(0,H.Z)((0,H.Z)({},this.popupOption),i),this.checkUpdateOption(i,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(Ci(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(i,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(i,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(i,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(i,["html"])&&i.html?this.setHTML(i.html):this.checkUpdateOption(i,["text"])&&i.text&&this.setText(i.text),this.checkUpdateOption(i,["lngLat"])&&i.lngLat&&this.setLnglat(i.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&Du(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&fu(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(i){return this.popupOption.html=i,this.setDOMContent(i)}},{key:"setText",value:function(i){return this.popupOption.text=i,this.setDOMContent(window.document.createTextNode(i))}},{key:"setTitle",value:function(i){this.show(),this.popupOption.title=i,i?(this.contentTitle||(this.contentTitle=Ji("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),ca(this.contentTitle),np(this.contentTitle,i)):this.contentTitle&&(Ci(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var i=this.lngLat,o=i.lng,s=i.lat;return this.popupOption.autoPan&&this.mapsService.panTo([o,s]),this}},{key:"setLngLat",value:function(i){return this.setLnglat(i)}},{key:"setLnglat",value:function(i){var o=this;return this.show(),this.lngLat=i,Array.isArray(i)&&(this.lngLat={lng:i[0],lat:i[1]}),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){o.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(i){return this.popupOption.maxWidth=i,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(i){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:ma.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(i){return this.show(),this.createContent(),np(this.contentPanel,i),this.update(),this}},{key:"updateCloseOnClick",value:function(i){var o=this,s=this.mapsService;s&&(s==null||s.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!i&&requestAnimationFrame(function(){s==null||s.on("click",o.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(i){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!i&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(i){var o,s=(o=this.mapsService)===null||o===void 0?void 0:o.getContainer();s&&(s==null||s.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!i&&(s==null||s.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var i=this;if(this.content&&Ci(this.content),this.contentTitle=void 0,this.content=Ji("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var o=Hh("l7-icon-guanbi");fu(o,"l7-popup-close-button"),this.content.appendChild(o),this.popupOption.closeButtonOffsets&&(o.style.right=this.popupOption.closeButtonOffsets[0]+"px",o.style.top=this.popupOption.closeButtonOffsets[1]+"px"),o.setAttribute("aria-label","Close popup"),o.addEventListener("click",function(){i.hide()}),o.addEventListener("pointerup",function(s){s.stopPropagation()}),o.addEventListener("pointerdown",function(s){s.stopPropagation()}),this.closeButton=o}else this.closeButton=void 0;this.contentPanel=Ji("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(i,o){if(this.container){var s=this.popupOption.offsets;this.container.style.left=i+s[0]+"px",this.container.style.top=o-s[1]+"px"}}},{key:"checkUpdateOption",value:function(i,o){return o.some(function(s){return s in i})}}]),t}(no.EventEmitter);function uL(e){var r=gw();return function(){var n=_getPrototypeOf(e),i;if(r){var o=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function gw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var lL=ii.get,cL=null;function _w(e,r){var t=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(t||n)&&(r||(r=document),!!r)){var i=r.head||r.getElementsByTagName("head")[0];if(!i){i=r.createElement("head");var o=r.body||r.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):r.documentElement.appendChild(i)}var s=r.createElement("style");return s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(r.createTextNode(e)),i.appendChild(s),s}}_w(`.l7-marker-container { +}`;function ky(e,r){for(var t=0,n=1/r,i=e;i>0;)t=t+n*(i%r),i=Math.floor(i/r),n=n/r;return t}var gA=1,_A=(Iy=(0,yt.b2)(),Py=(0,yt.f3)(ot.IShaderModuleService),Iy(Oy=(D0=function(e){(0,Le.Z)(t,e);var r=pA(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=1&&(v(this.copyRenderTarget,function(){o.outputModel.draw({uniforms:{u_Texture:o.outputRenderTarget}})}),v(i.multiPassRenderer.getPostProcessor().getReadFBO(),function(){o.copyModel.draw({uniforms:{u_Texture:o.copyRenderTarget}})}),i.multiPassRenderer.getPostProcessor().render(i));var ue=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=ue,this.frame++,this.cameraService.clearJitterProjectionMatrix()}},{key:"isFinished",value:function(){return this.frame>=this.haltonSequence.length}},{key:"resetFrame",value:function(){this.frame=0}},{key:"stopAccumulating",value:function(){this.accumulatingId=0,window.clearTimeout(this.timer)}},{key:"createTriangleModel",value:function(i,o,s){this.shaderModuleService.registerModule(i,{vs:mA,fs:o});var l=this.shaderModuleService.getModule(i),f=l.vs,v=l.fs,y=l.uniforms,b=this.rendererService,T=b.createAttribute,M=b.createBuffer,O=b.createModel;return O((0,V.Z)({vs:f,fs:v,attributes:{a_Position:T({buffer:M({data:[-4,-4,4,-4,0,4],type:R.FLOAT}),size:2})},uniforms:(0,V.Z)({},y),depth:{enable:!1},count:3},s))}}]),t}(vg),Dy=ki(D0.prototype,"shaderModuleService",[Py],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),D0))||Oy),um=new yt.W2;um.bind(ot.IGlobalConfigService).to($a).inSingletonScope(),(0,yt.GW)((0,yt.b2)(),io.EventEmitter),um.bind(ot.IEventEmitter).to(io.EventEmitter);var By=(0,vr.Z)(um,!1),F0=function(r){var t=By.lazyInject(r);return function(n,i,o){t.call(this,n,i),o&&(o.initializer=function(){return n[i]})}},GB=function(r){var t=By.lazyMultiInject(r);return function(n,i,o){t.call(this,n,i),o&&(o.initializer=function(){return n[i]})}},jl=um,yA=0;function xA(){var e=new yt.W2;return e.parent=um,e.bind(ot.SceneID).toConstantValue("".concat(yA++)),e.bind(ot.IShaderModuleService).to(tS).inSingletonScope(),e.bind(ot.ILayerService).to(Vs).inSingletonScope(),e.bind(ot.IDebugService).to(ts).inSingletonScope(),e.bind(ot.ISceneService).to(sg).inSingletonScope(),e.bind(ot.ICameraService).to(ur).inSingletonScope(),e.bind(ot.ICoordinateSystemService).to(xp).inSingletonScope(),e.bind(ot.IInteractionService).to(N).inSingletonScope(),e.bind(ot.IPickingService).to(Vn).inSingletonScope(),e.bind(ot.IControlService).to(ii).inSingletonScope(),e.bind(ot.IMarkerService).to(dl).inSingletonScope(),e.bind(ot.IIconService).to(st).inSingletonScope(),e.bind(ot.IFontService).to(Te).inSingletonScope(),e.bind(ot.IPopupService).to(Vd).inSingletonScope(),e.bind(ot.INormalPass).to(aS).whenTargetNamed("clear"),e.bind(ot.INormalPass).to(fS).whenTargetNamed("pixelPicking"),e.bind(ot.INormalPass).to(hA).whenTargetNamed("render"),e.bind(ot.INormalPass).to(_A).whenTargetNamed("taa"),e.bind(ot.IFactoryNormalPass).toFactory(function(r){return function(t){return r.container.getNamed(ot.INormalPass,t)}}),e.bind(ot.IPostProcessingPass).to(VS).whenTargetNamed("copy"),e.bind(ot.IPostProcessingPass).to(xS).whenTargetNamed("bloom"),e.bind(ot.IPostProcessingPass).to(wS).whenTargetNamed("blurH"),e.bind(ot.IPostProcessingPass).to(OS).whenTargetNamed("blurV"),e.bind(ot.IPostProcessingPass).to(nA).whenTargetNamed("noise"),e.bind(ot.IPostProcessingPass).to(uA).whenTargetNamed("sepia"),e.bind(ot.IPostProcessingPass).to(LS).whenTargetNamed("colorHalftone"),e.bind(ot.IPostProcessingPass).to(XS).whenTargetNamed("hexagonalPixelate"),e.bind(ot.IPostProcessingPass).to(QS).whenTargetNamed("ink"),e.bind(ot.IFactoryPostProcessingPass).toFactory(function(r){return function(t){var n=r.container.getNamed(ot.IPostProcessingPass,t);return n.setName(t),n}}),e}function lm(e){var r=new yt.W2;return r.parent=e,r.bind(ot.IStyleAttributeService).to(ws).inSingletonScope(),r.bind(ot.IMultiPassRenderer).to(uS).inSingletonScope(),r.bind(ot.IPostProcessor).to(lA).inSingletonScope(),r}var bA=null;function XB(e){return bA.indexOf(e)}var Ly=oi.clamp,EA=2,$B=4,SA=64,YB=128,AA=256,TA=512,qB=8192,KB=16384,QB=32768,wA=null,Ny=131072,JB=262144,CA=524288,eL=1048576,RA=2097152,tL=4194304,MA=8388608,IA=16777216,PA=null;function mg(e,r){return e=Ly(Math.floor(e),0,255),r=Ly(Math.floor(r),0,255),256*e+r}function rL(e){var r=e.color,t=e.radius,n=e.tileX,i=e.tileY,o=e.shape,s=e.opacity,l=e.stroke,f=e.strokeWidth,v=e.strokeOpacity,y=[],b=[],T=[],M=[mg(r[0],r[1]),mg(r[2],r[3])],O=[mg(l[0],l[1]),mg(l[2],l[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(F){var $=_slicedToArray(F,2),G=$[0],ue=$[1];y.push([].concat(M,[(G+1)*MA+(ue+1)*RA+getShapeIndex(o)*Ny+t,(n+512)*CA+(i+512)*SA])),b.push([].concat(O,[f,v])),T.push([s,0,0,0])}),{packedBuffer:y,packedBuffer2:b,packedBuffer3:T}}function nL(e,r){if(e===0&&!r)return 0;if(e===1&&r)return 4294967295;var t=r?1:0,n=Math.floor(e*127);return n*PA+t*IA+n*Ny+t*wA+n*TA+t*AA+n*EA+t}var vd={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Rs={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},ro=function(e){return e.LINEAR="linear",e.SEQUENTIAL="sequential",e.POWER="power",e.LOG="log",e.IDENTITY="identity",e.TIME="time",e.QUANTILE="quantile",e.QUANTIZE="quantize",e.THRESHOLD="threshold",e.CAT="cat",e.DIVERGING="diverging",e}({}),ov=function(e){return e.CONSTANT="constant",e.VARIABLE="variable",e}({}),dn=function(e){return e[e.Attribute=0]="Attribute",e[e.InstancedAttribute=1]="InstancedAttribute",e[e.Uniform=2]="Uniform",e}({}),OA=["mapload","mapchange","mapAfterFrameChange"],gg=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Eu=function(e){return e.IMAGE="image",e.CUSTOMIMAGE="customImage",e.ARRAYBUFFER="arraybuffer",e.RGB="rgb",e.TERRAINRGB="terrainRGB",e.CUSTOMRGB="customRGB",e.CUSTOMARRAYBUFFER="customArrayBuffer",e.CUSTOMTERRAINRGB="customTerrainRGB",e}({}),DA=function(){var e=(0,Pt.Z)(ge().mark(function r(t,n,i,o){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(f,v){n({x:t.x,y:t.y,z:t.z},function(y,b){if(y||b.length===0){v(y);return}b&&$r([{data:b,bands:[0]}],i,o,function(T,M){T?v(T):M&&f(M)})})}));case 1:case"end":return l.stop()}},r)}));return function(t,n,i,o){return e.apply(this,arguments)}}(),FA=function(){var e=(0,Pt.Z)(ge().mark(function r(t,n){return ge().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",new Promise(function(s,l){n({x:t.x,y:t.y,z:t.z},function(f,v){if(f||!v){l(f);return}v instanceof ArrayBuffer?cu(v,function(y,b){y&&l(y),s(b)}):v instanceof HTMLImageElement?s(v):l(f)})}));case 1:case"end":return o.stop()}},r)}));return function(t,n){return e.apply(this,arguments)}}();function kA(e,r){return Array.isArray(e)?typeof e[0]=="string"?e.map(function(t){return h(t,r)}):e.map(function(t){return{url:h(t.url,r),bands:t.bands||[0]}}):h(e,r)}function BA(e){return typeof e=="string"?[{url:e,bands:[0]}]:typeof e[0]=="string"?e.map(function(r){return{url:r,bands:[0]}}):e}function Uy(e,r){e.xhrCancel=function(){r.map(function(t){t.abort()})}}var LA=function(){var e=(0,Pt.Z)(ge().mark(function r(t,n,i,o,s){var l,f,v,y,b,T;return ge().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(l=BA(n.url),!(l.length>1)){O.next=15;break}return O.next=4,NA(l,n);case 4:if(f=O.sent,v=f.rasterFiles,y=f.xhrList,b=f.errList,Uy(t,y),!(b.length>0)){O.next=12;break}return i(b,null),O.abrupt("return");case 12:$r(v,o,s,i),O.next=17;break;case 15:T=Ai(n,function(F,$){if(F)i(F);else if($){var G=[{data:$,bands:l[0].bands}];$r(G,o,s,i)}}),Uy(t,[T]);case 17:case"end":return O.stop()}},r)}));return function(t,n,i,o,s){return e.apply(this,arguments)}}();function NA(e,r){return k0.apply(this,arguments)}function k0(){return k0=(0,Pt.Z)(ge().mark(function e(r,t){var n,i,o,s,l,f,v,y,b,T,M;return ge().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:n=[],i=[],o=[],s=0;case 4:if(!(s1&&arguments[1]!==void 0?arguments[1]:{};if(ZA(e))throw new Error("tile server url is error");var t=(r==null?void 0:r.dataType)||Eu.IMAGE;t===Eu.RGB&&(t=Eu.ARRAYBUFFER);var n=function(s,l){switch(t){case Eu.IMAGE:return zy(e,s,l,r);case Eu.CUSTOMIMAGE:case Eu.CUSTOMTERRAINRGB:return FA(l,r==null?void 0:r.getCustomData);case Eu.ARRAYBUFFER:return UA(e,s,l,(r==null?void 0:r.format)||Zy,r==null?void 0:r.operation);case Eu.CUSTOMARRAYBUFFER:case Eu.CUSTOMRGB:return DA(l,r==null?void 0:r.getCustomData,(r==null?void 0:r.format)||Zy,r==null?void 0:r.operation);default:return zy(e,s,l,r)}},i=(0,V.Z)((0,V.Z)((0,V.Z)({},zA),r),{},{getTileData:n});return{data:e,dataArray:[],tilesetOptions:i,isTile:!0}}var jA=["extent","min","max","width","height","format","operation"];function HA(e,r){var t=r.extent,n=r.min,i=r.max,o=r.width,s=r.height,l=r.format,f=r.operation,v=(0,ka.Z)(r,jA),y;if(l===void 0||gf(e))y=Array.from(e);else{var b=Array.isArray(e)?e:[e];y=an(b,l,f)}var T={_id:1,dataArray:[(0,V.Z)((0,V.Z)({_id:1,data:y,width:o,height:s},v),{},{min:n,max:i,coordinates:[[t[0],t[1]],[t[2],t[3]]]})]};return T}var WA={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},GA=function(){var e=(0,Pt.Z)(ge().mark(function r(t){return ge().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(o){var s=(0,Sn.Z)(t.bounds,4),l=s[0],f=s[1],v=s[2],y=s[3],b={layers:{testTile:{features:[{type:"Feature",properties:{key:t.x+"/"+t.y+"/"+t.z,x:(l+v)/2,y:(f+y)/2},geometry:{type:"LineString",coordinates:[[v,y],[v,f],[l,f],[l,f]]}}]}}};o(b)}));case 1:case"end":return i.stop()}},r)}));return function(t){return e.apply(this,arguments)}}();function XA(e,r){var t=function(o){return GA(o)},n=(0,V.Z)((0,V.Z)((0,V.Z)({},WA),r),{},{getTileData:t});return{data:e,dataArray:[],tilesetOptions:n,isTile:!0}}var $A=L(39720),YA=L.n($A);function Vy(e,r){var t=r.radius,n=t===void 0?40:t,i=r.maxZoom,o=i===void 0?18:i,s=r.minZoom,l=s===void 0?0:s,f=r.zoom,v=f===void 0?2:f;if(e.pointIndex){var y=e.pointIndex.getClusters(e.extent,Math.floor(v));return e.dataArray=qA(y),e}var b=new(YA())({radius:n,minZoom:l,maxZoom:o}),T={type:"FeatureCollection",features:[]};return T.features=e.dataArray.map(function(M){return{type:"Feature",geometry:{type:"Point",coordinates:M.coordinates},properties:(0,V.Z)({},M)}}),b.load(T.features),b}function qA(e){return e.map(function(r,t){return(0,V.Z)({coordinates:r.geometry.coordinates,_id:t+1},r.properties)})}function KA(e){if(e.length===0)throw new Error("max requires at least one data point");for(var r=e[0],t=1;tr&&(r=e[t]);return r}function QA(e){if(e.length===0)throw new Error("min requires at least one data point");for(var r=e[0],t=1;t=Math.abs(e[i])?t+=r-n+e[i]:t+=e[i]-n+r,r=n;return r+t*1}function JA(e){if(e.length===0)throw new Error("mean requires at least one data point");return jy(e)/e.length}var eT={min:QA,max:KA,mean:JA,sum:jy};function tT(e){var r=rT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function rT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nT=oi.cloneDeep,Hy=oi.isFunction,iT=oi.isString,aT=oi.mergeWith;function oT(e,r){if(Array.isArray(r))return r}var sT=function(e){(0,Le.Z)(t,e);var r=tT(t);function t(n,i){var o;return(0,Q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Fe.Z)(o),"type","source"),(0,B.Z)((0,Fe.Z)(o),"isTile",!1),(0,B.Z)((0,Fe.Z)(o),"inited",!1),(0,B.Z)((0,Fe.Z)(o),"hooks",{init:new xu}),(0,B.Z)((0,Fe.Z)(o),"parser",{type:"geojson"}),(0,B.Z)((0,Fe.Z)(o),"transforms",[]),(0,B.Z)((0,Fe.Z)(o),"cluster",!1),(0,B.Z)((0,Fe.Z)(o),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,B.Z)((0,Fe.Z)(o),"invalidExtent",!1),(0,B.Z)((0,Fe.Z)(o),"dataArrayChanged",!1),(0,B.Z)((0,Fe.Z)(o),"cfg",{autoRender:!0}),o.originData=n,o.initCfg(i),o.init().then(function(){o.inited=!0,o.emit("update",{type:"inited"})}),o}return(0,j.Z)(t,[{key:"getSourceCfg",value:function(){return this.cfg}},{key:"getClusters",value:function(i){return this.clusterIndex.getClusters(this.caculClusterExtent(2),i)}},{key:"getClustersLeaves",value:function(i){return this.clusterIndex.getLeaves(i,1/0)}},{key:"getParserType",value:function(){return this.parser.type}},{key:"updateClusterData",value:function(i){var o=this,s=this.clusterOptions,l=s.method,f=l===void 0?"sum":l,v=s.field,y=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(i));this.clusterOptions.zoom=i,y.forEach(function(b){b.id||(b.properties.point_count=1)}),(v||Hy(f))&&(y=y.map(function(b){var T=b.id;if(T){var M=o.clusterIndex.getLeaves(T,1/0),O=M.map(function(G){return G.properties}),F;if(iT(f)&&v){var $=mf(O,v);F=eT[f]($)}Hy(f)&&(F=f(O)),b.properties.stat=F}else b.properties.point_count=1;return b})),this.data=fe("geojson")({type:"FeatureCollection",features:y}),this.executeTrans()}},{key:"getFeatureById",value:function(i){var o=this.parser,s=o.type,l=s===void 0?"geojson":s,f=o.geometry;if(l==="geojson"&&!this.cluster){var v=i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function lT(e,r){if(e){if(typeof e=="string")return Gy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Gy(e,r)}}function Gy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tn?i:n)}}catch(xe){o.e(xe)}finally{o.f()}var f=(t+n)/2,v=hT(r,f);if(v.xOffset<=0||v.yOffset<=0)return{gridHash:{},gridOffset:v};var y={},b=Wy(e),T;try{for(b.s();!(T=b.n()).done;){var M=T.value,O=M.coordinates[1],F=M.coordinates[0];if(Number.isFinite(O)&&Number.isFinite(F)){var $=Math.floor((O+90)/v.yOffset),G=Math.floor((F+180)/v.xOffset),ue="".concat($,"-").concat(G);y[ue]=y[ue]||{count:0,points:[]},y[ue].count+=1,y[ue].points.push(M)}}}catch(xe){b.e(xe)}finally{b.f()}return{gridHash:y,gridOffset:v}}function hT(e,r){var t=pT(e),n=dT(r,e);return{yOffset:t,xOffset:n}}function pT(e){return e/B0*(180/Math.PI)}function dT(e,r){return r/B0*(180/Math.PI)/Math.cos(e*Math.PI/180)}function vT(e,r,t){return Object.keys(e).reduce(function(n,i,o){var s=i.split("-"),l=parseInt(s[0],10),f=parseInt(s[1],10),v={};if(t.field&&t.method){var y=lf(e[i].points,t.field);v[t.method]=Il[t.method](y)}return Object.assign(v,{_id:o,coordinates:Fo([-180+r.xOffset*(f+.5),-90+r.yOffset*(l+.5)]),rawData:e[i].points,count:e[i].count}),n.push(v),n},[])}var sv=Math.PI/3,mT=[0,sv,2*sv,3*sv,4*sv,5*sv];function gT(e){return e[0]}function _T(e){return e[1]}function yT(){var e=0,r=0,t=1,n=1,i=gT,o=_T,s,l,f;function v(b){var T={},M=[],O,F=b.length;for(O=0;O1){var ht=G-ze,gt=ze+(Gtr*tr+Ir*Ir&&(ze=gt+(xe&1?1:-1)/2,xe=Ot)}var Er=ze+"-"+xe,mn=T[Er];mn?mn.push($):(M.push(mn=T[Er]=[$]),mn.x=(ze+(xe&1)/2)*l,mn.y=xe*f)}return M}function y(b){var T=0,M=0;return mT.map(function(O){var F=Math.sin(O)*b,$=-Math.cos(O)*b,G=F-T,ue=$-M;return T=F,M=$,[G,ue]})}return v.hexagon=function(b){return"m"+y(b==null?s:+b).join("l")+"z"},v.centers=function(){for(var b=[],T=Math.round(r/f),M=Math.round(e/l),O=T*f;O180||Math.abs(O[1][0])>180){if(y.x>M){var F=this.mapsService.lngLatToContainer([f-360,v]);y.x=F.x}if(y.x<0){var $=this.mapsService.lngLatToContainer([f+360,v]);y.x=$.x}}(y.x>M||y.x<0||y.y>T||y.y<0)&&(o.style.display="none"),o.style.left=y.x+s[0]+"px",o.style.top=y.y-s[1]+"px"}}}},{key:"init",value:function(){var i=this,o=this.markerOption.element,s=this.markerOption,l=s.color,f=s.anchor;if(!o){this.defaultMarker=!0,o=ta("div"),this.markerOption.element=o;var v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttributeNS(null,"display","block"),v.setAttributeNS(null,"height","48px"),v.setAttributeNS(null,"width","48px"),v.setAttributeNS(null,"viewBox","0 0 1024 1024");var y=document.createElementNS("http://www.w3.org/2000/svg","path");y.setAttributeNS(null,"d","M512 490.666667C453.12 490.666667 405.333333 442.88 405.333333 384 405.333333 325.12 453.12 277.333333 512 277.333333 570.88 277.333333 618.666667 325.12 618.666667 384 618.666667 442.88 570.88 490.666667 512 490.666667M512 85.333333C346.88 85.333333 213.333333 218.88 213.333333 384 213.333333 608 512 938.666667 512 938.666667 512 938.666667 810.666667 608 810.666667 384 810.666667 218.88 677.12 85.333333 512 85.333333Z"),y.setAttributeNS(null,"fill",l),v.appendChild(y),o.appendChild(v)}fu(o,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(b){var T,M,O=((T=i.markerOption)===null||T===void 0?void 0:T.style)&&((M=i.markerOption)===null||M===void 0?void 0:M.style[b]);o&&(o.style[b]=O)}),$l(o,f,"marker")}},{key:"registerMarkerEvent",value:function(i){i.addEventListener("click",this.onMapClick),i.addEventListener("mousemove",this.eventHandle),i.addEventListener("click",this.eventHandle),i.addEventListener("mousedown",this.eventHandle),i.addEventListener("mouseup",this.eventHandle),i.addEventListener("dblclick",this.eventHandle),i.addEventListener("contextmenu",this.eventHandle),i.addEventListener("mouseover",this.eventHandle),i.addEventListener("mouseout",this.eventHandle),i.addEventListener("touchstart",this.eventHandle),i.addEventListener("touchend",this.eventHandle)}},{key:"unRegisterMarkerEvent",value:function(){var i=this.getElement();i.removeEventListener("click",this.onMapClick),i.removeEventListener("mousemove",this.eventHandle),i.removeEventListener("click",this.eventHandle),i.removeEventListener("mousedown",this.eventHandle),i.removeEventListener("mouseup",this.eventHandle),i.removeEventListener("dblclick",this.eventHandle),i.removeEventListener("contextmenu",this.eventHandle),i.removeEventListener("mouseover",this.eventHandle),i.removeEventListener("mouseout",this.eventHandle),i.removeEventListener("touchstart",this.eventHandle),i.removeEventListener("touchend",this.eventHandle)}},{key:"polyfillEvent",value:function(i){!this.mapsService||this.mapsService.version!=="GAODE2.x"||ec()||(i.type==="touchstart"&&(this.touchStartTime=Date.now()),i.type==="touchend"&&Date.now()-this.touchStartTime<300&&this.emit("click",{target:i,data:this.markerOption.extData,lngLat:this.lngLat}))}},{key:"addDragHandler",value:function(i){return null}},{key:"onUp",value:function(i){throw new Error("Method not implemented.")}}]),t}(io.EventEmitter);function aL(e){var r=CT();return function(){var n=_getPrototypeOf(e),i;if(r){var o=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function CT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var oL=oi.merge,sL=null,uL=L(16604);function RT(e){var r=MT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function MT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var uv=function(e){(0,Le.Z)(t,e);var r=RT(t);function t(n){var i;return(0,Q.Z)(this,t),i=r.call(this),t.controlCount++,i.controlOption=(0,V.Z)((0,V.Z)({},i.getDefault(n)),n||{}),i}return(0,j.Z)(t,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(i){var o=this.getDefault(i);Object.entries(i).forEach(function(s){var l=(0,Sn.Z)(s,2),f=l[0],v=l[1];v===void 0&&(i[f]=o[f])}),"position"in i&&this.setPosition(i.position),"className"in i&&this.setClassName(i.className),"style"in i&&this.setStyle(i.style),this.controlOption=(0,V.Z)((0,V.Z)({},this.controlOption),i)}},{key:"addTo",value:function(i){this.mapsService=i.get(ot.IMapService),this.renderService=i.get(ot.IRendererService),this.layerService=i.get(ot.ILayerService),this.controlService=i.get(ot.IControlService),this.configService=i.get(ot.IGlobalConfigService),this.scene=i.get(ot.ISceneService),this.sceneContainer=i,this.isShow=!0,this.container=this.onAdd(),fu(this.container,"l7-control");var o=this.controlOption,s=o.className,l=o.style;return s&&this.setClassName(s),l&&this.setStyle(l),this.insertContainer(),this.emit("add",this),this}},{key:"remove",value:function(){if(!this.mapsService)return this;Ii(this.container),this.onRemove(),this.emit("remove",this)}},{key:"onAdd",value:function(){return ta("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var i=this.container;Du(i,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var i=this.container;fu(i,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(i){return{position:xr.TOPRIGHT,name:"".concat(t.controlCount)}}},{key:"getContainer",value:function(){return this.container}},{key:"getIsShow",value:function(){return this.isShow}},{key:"_refocusOnMap",value:function(i){if(this.mapsService&&i&&i.screenX>0&&i.screenY>0){var o=this.mapsService.getContainer();o!==null&&o.focus()}}},{key:"setPosition",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xr.TOPLEFT,o=this.controlService;return o&&o.removeControl(this),this.controlOption.position=i,o&&o.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(i){var o=this.container,s=this.controlOption.className;s&&Du(o,s),i&&fu(o,i)}},{key:"setStyle",value:function(i){var o=this.container;i?o.setAttribute("style",i):o.removeAttribute("style")}},{key:"insertContainer",value:function(){var i=this.controlOption.position,o=this.container;if(i instanceof Element)i.appendChild(o);else{var s=this.controlService.controlCorners[i];["bottomleft","bottomright","righttop","rightbottom"].includes(i)?s.insertBefore(o,s.firstChild):s.appendChild(o)}}},{key:"checkUpdateOption",value:function(i,o){return o.some(function(s){return s in i})}}]),t}(vu());(0,B.Z)(uv,"controlCount",0);function IT(e){var r=PT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function PT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _g=function(e){(0,Le.Z)(t,e);var r=IT(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:"";return ta("button","l7-button-control ".concat(i))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var i=this.controlOption,o=i.title,s=i.btnText,l=i.btnIcon;return this.setBtnTitle(o),this.setBtnText(s),this.setBtnIcon(l),this.button}},{key:"onRemove",value:function(){this.button=this.buttonIcon=this.buttonText=void 0,this.isDisable=!1}},{key:"setOptions",value:function(i){var o=i.title,s=i.btnText,l=i.btnIcon;this.checkUpdateOption(i,["title"])&&this.setBtnTitle(o),this.checkUpdateOption(i,["btnIcon"])&&this.setBtnIcon(l),this.checkUpdateOption(i,["btnText"])&&this.setBtnText(s),Ra((0,Ee.Z)(t.prototype),"setOptions",this).call(this,i)}},{key:"setBtnTitle",value:function(i){var o;(o=this.button)===null||o===void 0||o.setAttribute("title",i!=null?i:"")}},{key:"setBtnIcon",value:function(i){if(this.buttonIcon&&Ii(this.buttonIcon),i){var o,s=(o=this.button)===null||o===void 0?void 0:o.firstChild;if(s){var l;(l=this.button)===null||l===void 0||l.insertBefore(i,s)}else{var f;(f=this.button)===null||f===void 0||f.appendChild(i)}this.buttonIcon=i}}},{key:"setBtnText",value:function(i){if(this.button)if(Du(this.button,"l7-button-control--row"),Du(this.button,"l7-button-control--column"),i){var o=this.buttonText;if(!o){var s;o=ta("div","l7-button-control__text"),(s=this.button)===null||s===void 0||s.appendChild(o),this.buttonText=o}o.innerText=i,fu(this.button,this.controlOption.vertical?"l7-button-control--column":"l7-button-control--row")}else!i&&this.buttonText&&(Ii(this.buttonText),this.buttonText=void 0)}}]),t}(uv);function OT(e){var r=DT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function DT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var $y=function(e){(0,Le.Z)(t,e);var r=OT(t);function t(n,i){var o;return(0,Q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Fe.Z)(o),"isShow",!1),(0,B.Z)((0,Fe.Z)(o),"timeout",null),(0,B.Z)((0,Fe.Z)(o),"show",function(){return o.isShow||!o.contentDOM.innerHTML||(o.resetPopperPosition(),Du(o.popperDOM,"l7-popper-hide"),o.isShow=!0,o.option.unique&&t.conflictPopperList.forEach(function(s){s!==(0,Fe.Z)(o)&&s.isShow&&s.hide()}),o.emit("show"),window.addEventListener("pointerdown",o.onPopperUnClick)),(0,Fe.Z)(o)}),(0,B.Z)((0,Fe.Z)(o),"hide",function(){return o.isShow&&(fu(o.popperDOM,"l7-popper-hide"),o.isShow=!1,o.emit("hide"),window.removeEventListener("pointerdown",o.onPopperUnClick)),(0,Fe.Z)(o)}),(0,B.Z)((0,Fe.Z)(o),"setHideTimeout",function(){o.timeout||(o.timeout=window.setTimeout(function(){o.isShow&&(o.hide(),o.timeout=null)},300))}),(0,B.Z)((0,Fe.Z)(o),"clearHideTimeout",function(){o.timeout&&(window.clearTimeout(o.timeout),o.timeout=null)}),(0,B.Z)((0,Fe.Z)(o),"onBtnClick",function(){o.isShow?o.hide():o.show()}),(0,B.Z)((0,Fe.Z)(o),"onPopperUnClick",function(s){Tl(s.target,[".l7-button-control",".l7-popper-content"])||o.hide()}),(0,B.Z)((0,Fe.Z)(o),"onBtnMouseLeave",function(){o.setHideTimeout()}),(0,B.Z)((0,Fe.Z)(o),"onBtnMouseMove",function(){o.clearHideTimeout(),!o.isShow&&o.show()}),o.button=n,o.option=i,o.init(),i.unique&&t.conflictPopperList.push((0,Fe.Z)(o)),o}return(0,j.Z)(t,[{key:"buttonRect",get:function(){return this.button.getBoundingClientRect()}},{key:"getPopperDOM",value:function(){return this.popperDOM}},{key:"getIsShow",value:function(){return this.isShow}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(i){typeof i=="string"?this.contentDOM.innerHTML=i:i instanceof HTMLElement&&(ca(this.contentDOM),this.contentDOM.appendChild(i)),this.content=i}},{key:"init",value:function(){var i=this.option.trigger;this.popperDOM=this.createPopper(),i==="click"?this.button.addEventListener("click",this.onBtnClick):(this.button.addEventListener("mousemove",this.onBtnMouseMove),this.button.addEventListener("mouseleave",this.onBtnMouseLeave),this.popperDOM.addEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.addEventListener("mouseleave",this.onBtnMouseLeave))}},{key:"destroy",value:function(){this.button.removeEventListener("click",this.onBtnClick),this.button.removeEventListener("mousemove",this.onBtnMouseMove),this.button.removeEventListener("mousemove",this.onBtnMouseLeave),this.popperDOM.removeEventListener("mousemove",this.onBtnMouseMove),this.popperDOM.removeEventListener("mouseleave",this.onBtnMouseLeave),Ii(this.popperDOM)}},{key:"resetPopperPosition",value:function(){var i={},o=this.option,s=o.container,l=o.offset,f=l===void 0?[0,0]:l,v=o.placement,y=(0,Sn.Z)(f,2),b=y[0],T=y[1],M=this.button.getBoundingClientRect(),O=s.getBoundingClientRect(),F=gh(M,O),$=F.left,G=F.right,ue=F.top,xe=F.bottom,ze=!1,Je=!1;/^(left|right)/.test(v)?(v.includes("left")?i.right="".concat(M.width+G,"px"):v.includes("right")&&(i.left="".concat(M.width+$,"px")),v.includes("start")?i.top="".concat(ue,"px"):v.includes("end")?i.bottom="".concat(xe,"px"):(i.top="".concat(ue+M.height/2,"px"),Je=!0,i.transform="translate(".concat(b,"px, calc(").concat(T,"px - 50%))"))):/^(top|bottom)/.test(v)&&(v.includes("top")?i.bottom="".concat(M.height+xe,"px"):v.includes("bottom")&&(i.top="".concat(M.height+ue,"px")),v.includes("start")?i.left="".concat($,"px"):v.includes("end")?i.right="".concat(G,"px"):(i.left="".concat($+M.width/2,"px"),ze=!0,i.transform="translate(calc(".concat(b,"px - 50%), ").concat(T,"px)"))),i.transform="translate(calc(".concat(b,"px - ").concat(ze?"50%":"0%","), calc(").concat(T,"px - ").concat(Je?"50%":"0%",")");var ht=v.split("-");ht.length&&fu(this.popperDOM,ht.map(function(gt){return"l7-popper-".concat(gt)}).join(" ")),Qs(this.popperDOM,rl(i))}},{key:"createPopper",value:function(){var i=this.option,o=i.container,s=i.className,l=s===void 0?"":s,f=i.content,v=ta("div","l7-popper l7-popper-hide ".concat(l)),y=ta("div","l7-popper-content"),b=ta("div","l7-popper-arrow");return v.appendChild(y),v.appendChild(b),o.appendChild(v),this.popperDOM=v,this.contentDOM=y,f&&this.setContent(f),v}}]),t}(io.EventEmitter);(0,B.Z)($y,"conflictPopperList",[]);function FT(e){var r=kT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function kT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var BT={topleft:"right-start",topcenter:"bottom",topright:"left-start",bottomleft:"right-end",bottomcenter:"top",bottomright:"left-end",lefttop:"bottom-start",leftcenter:"right",leftbottom:"top-start",righttop:"bottom-end",rightcenter:"left",rightbottom:"top-end"},LT=function(e){(0,Le.Z)(t,e);var r=FT(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getPopper",value:function(){return this.popper}},{key:"hide",value:function(){this.popper.hide(),Ra((0,Ee.Z)(t.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(i){var o,s=Ra((0,Ee.Z)(t.prototype),"getDefault",this).call(this,i),l=(o=i==null?void 0:i.position)!==null&&o!==void 0?o:s.position;return(0,V.Z)((0,V.Z)({},Ra((0,Ee.Z)(t.prototype),"getDefault",this).call(this,i)),{},{popperPlacement:l instanceof Element?"bottom":BT[l],popperTrigger:"click"})}},{key:"onAdd",value:function(){var i=Ra((0,Ee.Z)(t.prototype),"onAdd",this).call(this);return this.initPopper(),i}},{key:"onRemove",value:function(){this.popper.destroy()}},{key:"initPopper",value:function(){var i=this,o=this.controlOption,s=o.popperClassName,l=o.popperPlacement,f=o.popperTrigger,v=this.mapsService.getMapContainer();return this.popper=new $y(this.button,{className:s,placement:l,trigger:f,container:v,unique:!0}),this.popper.on("show",function(){i.emit("popperShow",i)}).on("hide",function(){i.emit("popperHide",i)}),this.popper}},{key:"setOptions",value:function(i){if(Ra((0,Ee.Z)(t.prototype),"setOptions",this).call(this,i),this.checkUpdateOption(i,["popperPlacement","popperTrigger","popperClassName"])){var o=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(o)}}}]),t}(_g);function NT(e){var r=UT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function UT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Rp=function(e){return e.ActiveOptionClassName="l7-select-control-item-active",e.OptionValueAttrKey="data-option-value",e.OptionIndexAttrKey="data-option-index",e}(Rp||{}),Yy=function(e){(0,Le.Z)(t,e);var r=NT(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s-1?n.selectValue.splice(f,1):n.selectValue=[].concat((0,Kt.Z)(n.selectValue),[l.value])}else n.selectValue=[l.value];n.setSelectValue(n.selectValue)}),n}return(0,j.Z)(t,[{key:"setOptions",value:function(i){Ra((0,Ee.Z)(t.prototype),"setOptions",this).call(this,i);var o=i.options;o&&this.popper.setContent(this.getPopperContent(o))}},{key:"onAdd",value:function(){var i=Ra((0,Ee.Z)(t.prototype),"onAdd",this).call(this),o=this.controlOption.defaultValue;return o&&(this.selectValue=this.transSelectValue(o)),this.popper.setContent(this.getPopperContent(this.controlOption.options)),i}},{key:"getSelectValue",value:function(){return this.getIsMultiple()?this.selectValue:this.selectValue[0]}},{key:"setSelectValue",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,l=this.transSelectValue(i);this.optionDOMList.forEach(function(f){var v=f.getAttribute(Rp.OptionValueAttrKey),y=o.getIsMultiple()?f.querySelector("input[type=checkbox]"):void 0;l.includes(v)?(fu(f,Rp.ActiveOptionClassName),y&&Ql(y,!0)):(Du(f,Rp.ActiveOptionClassName),y&&Ql(y,!1))}),this.selectValue=l,s&&this.emit("selectChange",this.getIsMultiple()?l:l[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(i){var o=this,s=this.isImageOptions(),l=ta("div",s?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&fu(l,"l7-select-control--multiple");var f=i.map(function(v,y){var b=s?o.createImageOption(v):o.createNormalOption(v);return b.setAttribute(Rp.OptionValueAttrKey,v.value),b.setAttribute(Rp.OptionIndexAttrKey,window.String(y)),b.addEventListener("click",o.onItemClick.bind(o,v)),b});return l.append.apply(l,(0,Kt.Z)(f)),this.optionDOMList=f,l}},{key:"createImageOption",value:function(i){var o=this.selectValue.includes(i.value),s=ta("div","l7-select-control-item ".concat(o?Rp.ActiveOptionClassName:"")),l=ta("img");l.setAttribute("src",i.img),tf(l),s.appendChild(l);var f=ta("div","l7-select-control-item-row");this.getIsMultiple()&&s.appendChild(this.createCheckbox(o));var v=ta("span");return v.innerText=i.text,f.appendChild(v),s.appendChild(f),s}},{key:"createCheckbox",value:function(i){var o=ta("input");return o.setAttribute("type","checkbox"),i&&Ql(o,!0),o}},{key:"isImageOptions",value:function(){return!!this.controlOption.options.find(function(i){return i.img})}},{key:"transSelectValue",value:function(i){return Array.isArray(i)?i:[i]}}]),t}(LT),Hh=function(r){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.classList.add("l7-iconfont"),t.setAttribute("aria-hidden","true");var n=document.createElementNS("http://www.w3.org/2000/svg","use");return n.setAttributeNS("http://www.w3.org/1999/xlink","href","#".concat(r)),t.appendChild(n),t};function zT(e){var r=ZT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function ZT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var VT=function(e){(0,Le.Z)(t,e);var r=zT(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function HT(e,r){if(e){if(typeof e=="string")return qy(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qy(e,r)}}function qy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:document.documentElement,t=arguments.length>1?arguments[1]:void 0;return new Promise(function(n,i){var o=function l(){xc.off("change",l),n()};xc.on("change",o);var s=r[Wh.requestFullscreen](t);s instanceof Promise&&s.then(o).catch(i)})},exit:function(){return new Promise(function(r,t){if(!xc.isFullscreen){r();return}var n=function o(){xc.off("change",o),r()};xc.on("change",n);var i=document[Wh.exitFullscreen]();i instanceof Promise&&i.then(n).catch(t)})},toggle:function(r,t){return xc.isFullscreen?xc.exit():xc.request(r,t)},onchange:function(r){xc.on("change",r)},onerror:function(r){xc.on("error",r)},on:function(r,t){var n=Qy[r];n&&document.addEventListener(n,t,!1)},off:function(r,t){var n=Qy[r];n&&document.removeEventListener(n,t,!1)},raw:Wh};Object.defineProperties(xc,{isFullscreen:{get:function(){return!!document[Wh.fullscreenElement]}},element:{enumerable:!0,get:function(){var r;return(r=document[Wh.fullscreenElement])!==null&&r!==void 0?r:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[Wh.fullscreenEnabled]}}}),Wh||(xc={isEnabled:!1});var L0=xc;function WT(e){var r=GT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function GT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var XT=function(e){(0,Le.Z)(t,e);var r=WT(t);function t(n){var i;return(0,Q.Z)(this,t),i=r.call(this,n),(0,B.Z)((0,Fe.Z)(i),"isFullscreen",!1),(0,B.Z)((0,Fe.Z)(i),"toggleFullscreen",(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!L0.isEnabled){l.next=3;break}return l.next=3,L0.toggle(i.mapContainer);case 3:case"end":return l.stop()}},o)}))),(0,B.Z)((0,Fe.Z)(i),"onClick",function(){i.toggleFullscreen()}),(0,B.Z)((0,Fe.Z)(i),"onFullscreenChange",function(){i.isFullscreen=!!document.fullscreenElement;var o=i.controlOption,s=o.btnText,l=o.btnIcon,f=o.title,v=o.exitBtnText,y=o.exitBtnIcon,b=o.exitTitle;i.isFullscreen?(i.setBtnTitle(b),i.setBtnText(v),i.setBtnIcon(y)):(i.setBtnTitle(f),i.setBtnText(s),i.setBtnIcon(l)),i.emit("fullscreenChange",i.isFullscreen)}),L0.isEnabled||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u5BF9\u5730\u56FE\u5168\u5C4F\u5316"),i}return(0,j.Z)(t,[{key:"setOptions",value:function(i){var o=i.exitBtnText,s=i.exitBtnIcon,l=i.exitTitle;this.isFullscreen&&(this.checkUpdateOption(i,["exitBtnIcon"])&&this.setBtnIcon(s),this.checkUpdateOption(i,["exitBtnText"])&&this.setBtnText(o),this.checkUpdateOption(i,["exitTitle"])&&this.setBtnTitle(l)),Ra((0,Ee.Z)(t.prototype),"setOptions",this).call(this,i)}},{key:"onAdd",value:function(){var i=Ra((0,Ee.Z)(t.prototype),"onAdd",this).call(this);return i.addEventListener("click",this.onClick),this.mapContainer=Ds(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),i}},{key:"onRemove",value:function(){Ra((0,Ee.Z)(t.prototype),"onRemove",this).call(this),this.mapContainer.removeEventListener("fullscreenchange",this.onFullscreenChange)}},{key:"getDefault",value:function(i){return(0,V.Z)((0,V.Z)({},Ra((0,Ee.Z)(t.prototype),"getDefault",this).call(this,i)),{},{title:"\u5168\u5C4F",btnIcon:Hh("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Hh("l7-icon-exit-fullscreen")})}}]),t}(_g);function $T(e){var r=YT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function YT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var qT=function(e){(0,Le.Z)(t,e);var r=$T(t);function t(n){var i;return(0,Q.Z)(this,t),i=r.call(this,n),(0,B.Z)((0,Fe.Z)(i),"getGeoLocation",function(){return new Promise(function(o,s){window.navigator.geolocation.getCurrentPosition(function(l){var f=l.coords,v=f!=null?f:{},y=v.longitude,b=v.latitude;!isNaN(y)&&!isNaN(b)?o([y,b]):s()},function(l){s(l)})})}),(0,B.Z)((0,Fe.Z)(i),"onClick",(0,Pt.Z)(ge().mark(function o(){var s,l,f;return ge().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(window.navigator.geolocation){y.next=2;break}return y.abrupt("return");case 2:return s=i.controlOption.transform,y.next=5,i.getGeoLocation();case 5:if(l=y.sent,f=i.mapsService.getZoom(),y.t0=i.mapsService,y.t1=f>15?f:15,!s){y.next=15;break}return y.next=12,s(l);case 12:y.t2=y.sent,y.next=16;break;case 15:y.t2=l;case 16:y.t3=y.t2,y.t0.setZoomAndCenter.call(y.t0,y.t1,y.t3);case 18:case"end":return y.stop()}},o)}))),window.navigator.geolocation||console.warn("\u5F53\u524D\u6D4F\u89C8\u5668\u73AF\u5883\u4E0D\u652F\u6301\u83B7\u53D6\u5730\u7406\u5B9A\u4F4D"),i}return(0,j.Z)(t,[{key:"getDefault",value:function(i){return(0,V.Z)((0,V.Z)({},Ra((0,Ee.Z)(t.prototype),"getDefault",this).call(this,i)),{},{title:"\u5B9A\u4F4D",btnIcon:Hh("l7-icon-reposition")})}},{key:"onAdd",value:function(){var i=Ra((0,Ee.Z)(t.prototype),"onAdd",this).call(this);return i.addEventListener("click",this.onClick),i}}]),t}(_g);function KT(e){var r=QT();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function QT(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Jy(e){return Object.keys(e!=null?e:{}).every(function(r){return["layer","name","img"].includes(r)})}var e1=function(e){(0,Le.Z)(t,e);var r=KT(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=10?10:s>=5?5:s>=3?3:s>=2?2:1,o*s}},{key:"updateMetric",value:function(i){var o=this.getRoundNum(i),s=o<1e3?o+" m":o/1e3+" km";this.updateScale(this.mScale,s,o/i)}},{key:"updateImperial",value:function(i){var o=i*3.2808399,s,l,f;o>5280?(s=o/5280,l=this.getRoundNum(s),this.updateScale(this.iScale,l+" mi",l/s)):(f=this.getRoundNum(o),this.updateScale(this.iScale,f+" ft",f/o))}}]),t}(uv);function hw(e){var r=pw();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function pw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var dw=function(e){(0,Le.Z)(t,e);var r=hw(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;sn.mapsService.getMinZoom()&&n.mapsService.zoomOut()}),(0,B.Z)((0,Fe.Z)(n),"updateDisabled",function(){var l=n.mapsService;n.zoomInButton.removeAttribute("disabled"),n.zoomOutButton.removeAttribute("disabled"),(n.disabled||l.getZoom()<=l.getMinZoom())&&n.zoomOutButton.setAttribute("disabled","true"),n.controlOption.showZoom&&n.zoomNumDiv&&(n.zoomNumDiv.innerText=String(Math.floor(l.getZoom()))),(n.disabled||l.getZoom()>=l.getMaxZoom())&&n.zoomInButton.setAttribute("disabled","true")}),n}return(0,j.Z)(t,[{key:"getDefault",value:function(i){return(0,V.Z)((0,V.Z)({},Ra((0,Ee.Z)(t.prototype),"getDefault",this).call(this,i)),{},{position:xr.BOTTOMRIGHT,name:"zoom",zoomInText:Hh("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Hh("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(i){Ra((0,Ee.Z)(t.prototype),"setOptions",this).call(this,i),this.checkUpdateOption(i,["zoomInText","zoomInTitle","zoomOutText","zoomOutTitle","showZoom"])&&this.resetButtonGroup(this.container)}},{key:"onAdd",value:function(){var i=ta("div","l7-control-zoom");return this.resetButtonGroup(i),this.mapsService.on("zoomend",this.updateDisabled),this.mapsService.on("zoomchange",this.updateDisabled),i}},{key:"onRemove",value:function(){this.mapsService.off("zoomend",this.updateDisabled),this.mapsService.off("zoomchange",this.updateDisabled)}},{key:"disable",value:function(){return this.disabled=!0,this.updateDisabled(),this}},{key:"enable",value:function(){return this.disabled=!1,this.updateDisabled(),this}},{key:"resetButtonGroup",value:function(i){ca(i),this.zoomInButton=this.createButton(this.controlOption.zoomInText,this.controlOption.zoomInTitle,"l7-button-control",i,this.zoomIn),this.controlOption.showZoom&&(this.zoomNumDiv=this.createButton("0","","l7-button-control l7-control-zoom__number",i)),this.zoomOutButton=this.createButton(this.controlOption.zoomOutText,this.controlOption.zoomOutTitle,"l7-button-control",i,this.zoomOut),this.updateDisabled()}},{key:"createButton",value:function(i,o,s,l,f){var v=ta("button",s,l);return typeof i=="string"?v.innerHTML=i:v.append(i),v.title=o,f&&v.addEventListener("click",f),v}}]),t}(uv);function vw(e){var r=mw();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function mw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var r1=function(e){(0,Le.Z)(t,e);var r=vw(t);function t(n){var i;(0,Q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Fe.Z)(i),"isShow",!0),(0,B.Z)((0,Fe.Z)(i),"onMouseMove",function(s){var l,f=i.mapsService.getMapContainer(),v=(l=f==null?void 0:f.getBoundingClientRect())!==null&&l!==void 0?l:{},y=v.left,b=y===void 0?0:y,T=v.top,M=T===void 0?0:T;i.setPopupPosition(s.clientX-b,s.clientY-M)}),(0,B.Z)((0,Fe.Z)(i),"updateLngLatPosition",function(){if(!(!i.mapsService||i.popupOption.followCursor)){var s=i.lngLat,l=s.lng,f=s.lat,v=i.mapsService.lngLatToContainer([l,f]),y=v.x,b=v.y;i.setPopupPosition(y,b)}}),(0,B.Z)((0,Fe.Z)(i),"onKeyDown",function(s){s.keyCode===27&&i.remove()}),(0,B.Z)((0,Fe.Z)(i),"onCloseButtonClick",function(s){s.stopPropagation&&s.stopPropagation(),i.hide()}),(0,B.Z)((0,Fe.Z)(i),"update",function(){var s=!!i.lngLat,l=i.popupOption,f=l.className,v=l.style,y=l.maxWidth,b=l.anchor,T=l.stopPropagation;if(!(!i.mapsService||!s||!i.content)){var M=i.mapsService.getMarkerContainer();if(!i.container&&M&&(i.container=ta("div","l7-popup ".concat(f!=null?f:""," ").concat(i.isShow?"":"l7-popup-hide"),M),v&&i.container.setAttribute("style",v),i.tip=ta("div","l7-popup-tip",i.container),i.container.appendChild(i.content),T&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function($){i.container.addEventListener($,function(G){G.stopPropagation()})}),i.container.style.whiteSpace="nowrap"),i.updateLngLatPosition(),Fu(i.container,"".concat(Aa[b])),$l(i.container,b,"popup"),y){var O=i.container.getBoundingClientRect(),F=O.width;F>parseFloat(y)&&(i.container.style.width=y)}else i.container.style.removeProperty("width")}}),i.popupOption=(0,V.Z)((0,V.Z)({},i.getDefault(n!=null?n:{})),n);var o=i.popupOption.lngLat;return o&&(i.lngLat=o),i}return(0,j.Z)(t,[{key:"lngLat",get:function(){var i;return(i=this.popupOption.lngLat)!==null&&i!==void 0?i:{lng:0,lat:0}},set:function(i){this.popupOption.lngLat=i}},{key:"getIsShow",value:function(){return this.isShow}},{key:"addTo",value:function(i){this.mapsService=i.get(ot.IMapService),this.sceneService=i.get(ot.ISceneService),this.layerService=i.get(ot.ILayerService),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update),this.scene=i,this.update(),this.updateCloseOnClick(),this.updateCloseOnEsc(),this.updateFollowCursor();var o=this.popupOption,s=o.html,l=o.text,f=o.title;return s?this.setHTML(s):l&&this.setText(l),f&&this.setTitle(f),this.emit("open"),this}},{key:"remove",value:function(){if(this!==null&&this!==void 0&&this.isOpen())return this.content&&Ii(this.content),this.container&&(Ii(this.container),delete this.container),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.updateCloseOnClick(!0),this.updateCloseOnEsc(!0),this.updateFollowCursor(!0),delete this.mapsService),this.emit("close"),this}},{key:"getOptions",value:function(){return this.popupOption}},{key:"setOptions",value:function(i){return this.show(),this.popupOption=(0,V.Z)((0,V.Z)({},this.popupOption),i),this.checkUpdateOption(i,["html","text","title","closeButton","closeButtonOffsets","maxWidth","anchor","stopPropagation","className","style","lngLat","offsets"])&&(this.container&&(Ii(this.container),this.container=void 0),this.popupOption.html?this.setHTML(this.popupOption.html):this.popupOption.text&&this.setText(this.popupOption.text),this.popupOption.title&&this.setTitle(this.popupOption.title)),this.checkUpdateOption(i,["closeOnEsc"])&&this.updateCloseOnEsc(),this.checkUpdateOption(i,["closeOnClick"])&&this.updateCloseOnClick(),this.checkUpdateOption(i,["followCursor"])&&this.updateFollowCursor(),this.checkUpdateOption(i,["html"])&&i.html?this.setHTML(i.html):this.checkUpdateOption(i,["text"])&&i.text&&this.setText(i.text),this.checkUpdateOption(i,["lngLat"])&&i.lngLat&&this.setLnglat(i.lngLat),this}},{key:"open",value:function(){return this.addTo(this.scene),this}},{key:"close",value:function(){return this.remove(),this}},{key:"show",value:function(){if(!this.isShow)return this.container&&Du(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&fu(this.container,"l7-popup-hide"),this.isShow=!1,this.emit("hide"),this}},{key:"setHTML",value:function(i){return this.popupOption.html=i,this.setDOMContent(i)}},{key:"setText",value:function(i){return this.popupOption.text=i,this.setDOMContent(window.document.createTextNode(i))}},{key:"setTitle",value:function(i){this.show(),this.popupOption.title=i,i?(this.contentTitle||(this.contentTitle=ta("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),ca(this.contentTitle),np(this.contentTitle,i)):this.contentTitle&&(Ii(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var i=this.lngLat,o=i.lng,s=i.lat;return this.popupOption.autoPan&&this.mapsService.panTo([o,s]),this}},{key:"setLngLat",value:function(i){return this.setLnglat(i)}},{key:"setLnglat",value:function(i){var o=this;return this.show(),this.lngLat=i,Array.isArray(i)&&(this.lngLat={lng:i[0],lat:i[1]}),this.mapsService&&(this.mapsService.off("camerachange",this.update),this.mapsService.off("viewchange",this.update),this.mapsService.on("camerachange",this.update),this.mapsService.on("viewchange",this.update)),this.update(),this.popupOption.autoPan&&setTimeout(function(){o.panToPopup()},0),this}},{key:"getLnglat",value:function(){return this.lngLat}},{key:"setMaxWidth",value:function(i){return this.popupOption.maxWidth=i,this.update(),this}},{key:"isOpen",value:function(){return!!this.mapsService}},{key:"getDefault",value:function(i){return{closeButton:!0,closeOnClick:!1,maxWidth:"240px",offsets:[0,0],anchor:ma.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(i){return this.show(),this.createContent(),np(this.contentPanel,i),this.update(),this}},{key:"updateCloseOnClick",value:function(i){var o=this,s=this.mapsService;s&&(s==null||s.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!i&&requestAnimationFrame(function(){s==null||s.on("click",o.onCloseButtonClick)}))}},{key:"updateCloseOnEsc",value:function(i){window.removeEventListener("keydown",this.onKeyDown),this.popupOption.closeOnEsc&&!i&&window.addEventListener("keydown",this.onKeyDown)}},{key:"updateFollowCursor",value:function(i){var o,s=(o=this.mapsService)===null||o===void 0?void 0:o.getContainer();s&&(s==null||s.removeEventListener("mousemove",this.onMouseMove),this.popupOption.followCursor&&!i&&(s==null||s.addEventListener("mousemove",this.onMouseMove)))}},{key:"createContent",value:function(){var i=this;if(this.content&&Ii(this.content),this.contentTitle=void 0,this.content=ta("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var o=Hh("l7-icon-guanbi");fu(o,"l7-popup-close-button"),this.content.appendChild(o),this.popupOption.closeButtonOffsets&&(o.style.right=this.popupOption.closeButtonOffsets[0]+"px",o.style.top=this.popupOption.closeButtonOffsets[1]+"px"),o.setAttribute("aria-label","Close popup"),o.addEventListener("click",function(){i.hide()}),o.addEventListener("pointerup",function(s){s.stopPropagation()}),o.addEventListener("pointerdown",function(s){s.stopPropagation()}),this.closeButton=o}else this.closeButton=void 0;this.contentPanel=ta("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(i,o){if(this.container){var s=this.popupOption.offsets;this.container.style.left=i+s[0]+"px",this.container.style.top=o-s[1]+"px"}}},{key:"checkUpdateOption",value:function(i,o){return o.some(function(s){return s in i})}}]),t}(io.EventEmitter);function lL(e){var r=gw();return function(){var n=_getPrototypeOf(e),i;if(r){var o=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function gw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var cL=oi.get,fL=null;function _w(e,r){var t=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(t||n)&&(r||(r=document),!!r)){var i=r.head||r.getElementsByTagName("head")[0];if(!i){i=r.createElement("head");var o=r.body||r.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):r.documentElement.appendChild(i)}var s=r.createElement("style");return s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(r.createTextNode(e)),i.appendChild(s),s}}_w(`.l7-marker-container { position: absolute; width: 100%; height: 100%; @@ -1848,10 +1848,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .l7-layer-popup__row + .l7-layer-popup__row { margin-top: 4px; } -`);var Mp,n1=(Mp={},(0,B.Z)(Mp,zs.additive,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE,srcAlpha:1,dstAlpha:1}}),(0,B.Z)(Mp,zs.none,{enable:!1}),(0,B.Z)(Mp,zs.normal,{enable:!0,func:{srcRGB:R.SRC_ALPHA,dstRGB:R.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,B.Z)(Mp,zs.subtractive,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE,srcAlpha:R.ZERO,dstAlpha:R.ONE_MINUS_SRC_COLOR},equation:{rgb:R.FUNC_SUBTRACT,alpha:R.FUNC_SUBTRACT}}),(0,B.Z)(Mp,zs.max,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE},equation:{rgb:R.MAX_EXT}}),(0,B.Z)(Mp,zs.min,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE},equation:{rgb:R.MIN_EXT}}),Mp);function i1(e){return e.map(function(r){return typeof r=="string"&&(r=[r,{}]),r})}function a1(e,r,t,n){var i=e.multiPassRenderer,o=e.getLayerConfig(),s=o.enableTAA;return s?i.add(n("taa")):i.add(n("render")),i1(r).forEach(function(l){var f=(0,yn.Z)(l,2),v=f[0],y=f[1];i.add(t(v),y)}),i.add(t("copy")),i}var yw=function(){function e(r){(0,q.Z)(this,e),this.layer=r}return(0,V.Z)(e,[{key:"pickRender",value:function(t){var n=this.layer.getContainer(),i=n.get(tt.ILayerService),o=this.layer;if(o.tileLayer)return o.tileLayer.pickRender(t);o.hooks.beforePickingEncode.call(),i.renderTileLayerMask(o),o.renderModels({ispick:!0}),o.hooks.afterPickingEncode.call()}},{key:"pick",value:function(t,n){var i=this.layer.getContainer(),o=i.get(tt.IPickingService);return t.type==="RasterLayer"?this.pickRasterLayer(t,n):(this.pickRender(n),o.pickFromPickingFBO(t,n))}},{key:"pickRasterLayer",value:function(t,n,i){var o=this.layer.getContainer(),s=o.get(tt.IPickingService),l=o.get(tt.IMapService),f=this.layer.getSource().extent,v=yh(n.lngLat,f),y={x:n.x,y:n.y,type:n.type,lngLat:n.lngLat,target:n,rasterValue:null},b=i||t;if(v){var T=this.readRasterValue(t,f,l,n.x,n.y);return y.rasterValue=T,s.triggerHoverOnLayer(b,y),!0}else return y.type=n.type==="mousemove"?"mouseout":"un"+n.type,s.triggerHoverOnLayer(b,(0,H.Z)((0,H.Z)({},y),{},{type:"unpick"})),s.triggerHoverOnLayer(b,y),!1}},{key:"readRasterValue",value:function(t,n,i,o,s){var l=t.getSource().data.dataArray[0],f=(0,yn.Z)(n,4),v=f[0],y=v===void 0?0:v,b=f[1],T=b===void 0?0:b,M=f[2],O=M===void 0?10:M,k=f[3],$=k===void 0?-10:k,G=i.lngLatToContainer([y,T]),oe=i.lngLatToContainer([O,$]),ye=oe.x-G.x,Le=G.y-oe.y,$e=[(o-G.x)/ye,(s-oe.y)/Le],ut=l.width||1,vt=l.height||1,Rt=Math.floor($e[0]*ut),Jt=Math.floor($e[1]*vt),Mr=Math.max(0,Jt-1)*ut+Rt,br=l.data[Mr];return br}},{key:"selectFeature",value:function(t){var n=this.layer,i=(0,yn.Z)(t,3),o=i[0],s=i[1],l=i[2];n.hooks.beforeSelect.call([o,s,l])}},{key:"highlightPickedFeature",value:function(t){var n=(0,yn.Z)(t,3),i=n[0],o=n[1],s=n[2];this.layer.hooks.beforeHighlight.call([i,o,s])}},{key:"getFeatureById",value:function(t){return this.layer.getSource().getFeatureById(t)}}]),e}(),xw=function(){function e(r){(0,q.Z)(this,e),this.layer=r;var t=this.layer.getContainer();this.rendererService=t.get(tt.IRendererService)}return(0,V.Z)(e,[{key:"getColorTexture",value:function(t,n){var i=this.getTextureKey(t,n);return this.key===i?this.colorTexture:(this.createColorTexture(t,n),this.key=i,this.colorTexture)}},{key:"createColorTexture",value:function(t,n){var i=this.rendererService.createTexture2D,o=this.getColorRampBar(t,n),s=i({data:new Uint8Array(o.data),width:o.width,height:o.height,flipY:!1});return this.colorTexture=s,s}},{key:"setColorTexture",value:function(t,n,i){this.key=this.getTextureKey(n,i),this.colorTexture=t}},{key:"destroy",value:function(){var t;(t=this.colorTexture)===null||t===void 0||t.destroy()}},{key:"getColorRampBar",value:function(t,n){switch(t.type){case"cat":return $o(t);case"quantize":return Vo(t);case"custom":return Ru(t,n);case"linear":return ha(t,n);default:return So(t)}}},{key:"getTextureKey",value:function(t,n){var i;return"".concat(t.colors.join("_"),"_").concat(t==null||(i=t.positions)===null||i===void 0?void 0:i.join("_"),"_").concat(t.type,"_").concat(n==null?void 0:n.join("_"))}}]),e}(),bw=["passes"],Ew=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption"],o1,N0,s1;function Sw(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Aw(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Aw(e,r){if(e){if(typeof e=="string")return u1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u1(e,r)}}function u1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:{};return(0,q.Z)(this,t),n=r.call(this),(0,B.Z)((0,Ie.Z)(n),"id","".concat(f1++)),(0,B.Z)((0,Ie.Z)(n),"name","".concat(f1)),(0,B.Z)((0,Ie.Z)(n),"visible",!0),(0,B.Z)((0,Ie.Z)(n),"zIndex",0),(0,B.Z)((0,Ie.Z)(n),"inited",!1),(0,B.Z)((0,Ie.Z)(n),"layerModelNeedUpdate",!1),(0,B.Z)((0,Ie.Z)(n),"pickedFeatureID",null),(0,B.Z)((0,Ie.Z)(n),"selectedFeatureID",null),(0,B.Z)((0,Ie.Z)(n),"styleNeedUpdate",!1),(0,B.Z)((0,Ie.Z)(n),"forceRender",!1),(0,B.Z)((0,Ie.Z)(n),"clusterZoom",0),(0,B.Z)((0,Ie.Z)(n),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,B.Z)((0,Ie.Z)(n),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,B.Z)((0,Ie.Z)(n),"hooks",{init:new A0,afterInit:new fo,beforeRender:new fo,beforeRenderData:new ah,afterRender:new xu,beforePickingEncode:new xu,afterPickingEncode:new xu,beforeHighlight:new xu(["pickedColor"]),afterHighlight:new xu,beforeSelect:new xu(["pickedColor"]),afterSelect:new xu,beforeDestroy:new xu,afterDestroy:new xu}),(0,B.Z)((0,Ie.Z)(n),"models",[]),(0,B.Z)((0,Ie.Z)(n),"startInit",!1),(0,B.Z)((0,Ie.Z)(n),"layerChildren",[]),(0,B.Z)((0,Ie.Z)(n),"masks",[]),Fi((0,Ie.Z)(n),"configService",s1,(0,Ie.Z)(n)),(0,B.Z)((0,Ie.Z)(n),"animateOptions",{enable:!1}),(0,B.Z)((0,Ie.Z)(n),"currentPickId",null),(0,B.Z)((0,Ie.Z)(n),"encodeStyleAttribute",{}),(0,B.Z)((0,Ie.Z)(n),"enableShaderEncodeStyles",[]),(0,B.Z)((0,Ie.Z)(n),"enableDataEncodeStyles",[]),(0,B.Z)((0,Ie.Z)(n),"enablg",[]),(0,B.Z)((0,Ie.Z)(n),"pendingStyleAttributes",[]),(0,B.Z)((0,Ie.Z)(n),"scaleOptions",{}),(0,B.Z)((0,Ie.Z)(n),"animateStatus",!1),(0,B.Z)((0,Ie.Z)(n),"isDestroyed",!1),(0,B.Z)((0,Ie.Z)(n),"encodeDataLength",0),(0,B.Z)((0,Ie.Z)(n),"sourceEvent",function(){n.dataState.dataSourceNeedUpdate=!0;var o=n.getLayerConfig();o&&o.autoFit&&n.fitBounds(o.fitBoundsOptions);var s=n.layerSource.getSourceCfg().autoRender;s&&setTimeout(function(){n.reRender()},10)}),n.name=i.name||n.id,n.zIndex=i.zIndex||0,n.rawConfig=i,n}return(0,V.Z)(t,[{key:"addMask",value:function(i){this.masks.push(i),this.enableMask()}},{key:"removeMask",value:function(i){var o=this.masks.indexOf(i);o>-1&&this.masks.splice(o,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(i){this.masks.push(i)}},{key:"removeMaskLayer",value:function(i){var o=this.masks.indexOf(i);o>-1&&this.masks.splice(o,1),i.destroy()}},{key:"getAttribute",value:function(i){return this.styleAttributeService.getLayerStyleAttribute(i)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(i){var o=this;if(Object.keys(i).map(function(l){l in o.rawConfig&&(o.rawConfig[l]=i[l])}),!this.startInit)this.needUpdateConfig=(0,H.Z)((0,H.Z)({},this.needUpdateConfig),i);else{var s=this.container.get(tt.SceneID);this.configService.setLayerConfig(s,this.id,(0,H.Z)((0,H.Z)((0,H.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),i)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(i,o){this.container=i,this.sceneContainer=o}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(i){return this.plugins.push(i),this}},{key:"init",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s=this,l,f,v,y,b,T,M;return me().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:l=this.container.get(tt.SceneID),this.startInit=!0,this.configService.setLayerConfig(l,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(tt.IIconService),this.fontService=this.container.get(tt.IFontService),this.rendererService=this.container.get(tt.IRendererService),this.layerService=this.container.get(tt.ILayerService),this.debugService=this.container.get(tt.IDebugService),this.interactionService=this.container.get(tt.IInteractionService),this.pickingService=this.container.get(tt.IPickingService),this.mapService=this.container.get(tt.IMapService),f=this.getLayerConfig(),v=f.enableMultiPassRenderer,y=f.passes,v&&y!==null&&y!==void 0&&y.length&&y.length>0&&this.mapService.on("mapAfterFrameChange",function(){s.renderLayers()}),this.cameraService=this.container.get(tt.ICameraService),this.coordinateService=this.container.get(tt.ICoordinateSystemService),this.shaderModuleService=this.container.get(tt.IShaderModuleService),this.postProcessingPassFactory=this.container.get(tt.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(tt.IFactoryNormalPass),this.styleAttributeService=this.container.get(tt.IStyleAttributeService),v&&(this.multiPassRenderer=this.container.get(tt.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function($){var G=$.attributeName,oe=$.attributeField,ye=$.attributeValues,Le=$.updateOptions;s.styleAttributeService.updateStyleAttribute(G,{scale:(0,H.Z)({field:oe},s.splitValuesAndCallbackInAttribute(ye,oe?void 0:s.getLayerConfig()[G]))},Le)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(tt.ILayerPlugin),b=Sw(this.plugins);try{for(b.s();!(T=b.n()).done;)M=T.value,M.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch($){b.e($)}finally{b.f()}return this.layerPickService=new yw(this),this.textureService=new xw(this),this.log(Rs.LayerInitStart),k.next=31,this.hooks.init.promise();case 31:this.log(Rs.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return k.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"log",value:function(i){var o,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var l="".concat(this.id,".").concat(s,".").concat(i),f={id:this.id,type:this.type};(o=this.debugService)===null||o===void 0||o.log(l,f)}}},{key:"updateModelData",value:function(i){i.attributes&&i.elements?this.models.map(function(o){o.updateAttributesAndElements(i.attributes,i.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(i){this.layerPickService=i}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var i=this.getLayerConfig(),o=i.animateOption;o!=null&&o.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(i,o,s){return this.updateStyleAttribute("color",i,o,s),this}},{key:"texture",value:function(i,o,s){return this.updateStyleAttribute("texture",i,o,s),this}},{key:"rotate",value:function(i,o,s){return this.updateStyleAttribute("rotate",i,o,s),this}},{key:"size",value:function(i,o,s){return this.updateStyleAttribute("size",i,o,s),this}},{key:"filter",value:function(i,o,s){var l=this.updateStyleAttribute("filter",i,o,s);return this.dataState.dataSourceNeedUpdate=l&&this.inited,this}},{key:"shape",value:function(i,o,s){this.shapeOption={field:i,values:o};var l=this.updateStyleAttribute("shape",i,o,s);return this.dataState.dataSourceNeedUpdate=l&&this.inited,this}},{key:"label",value:function(i,o,s){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:i,attributeValues:o,updateOptions:s}),this}},{key:"animate",value:function(i){var o={};return Su(i)?(o.enable=!0,o=(0,H.Z)((0,H.Z)({},o),i)):o.enable=i,this.updateLayerConfig({animateOption:o}),this}},{key:"source",value:function(i,o){return(i==null?void 0:i.type)==="source"?(this.setSource(i),this):(this.sourceOption={data:i,options:o},this.clusterZoom=0,this)}},{key:"setData",value:function(i,o){var s=this;return this.inited?(this.log(Rs.SourceInitStart,ds.UPDATE),this.layerSource.setData(i,o),this.log(Rs.SourceInitEnd,ds.UPDATE)):this.on("inited",function(){s.log(Rs.SourceInitStart,ds.UPDATE);var l=s.getSource();l?s.layerSource.setData(i,o):s.source(new Xy(i,o)),s.layerSource.once("update",function(){s.log(Rs.SourceInitEnd,ds.UPDATE)})}),this}},{key:"style",value:function(i){var o=this,s=i.passes,l=(0,Fa.Z)(i,bw);s&&i1(s).forEach(function(v){var y=o.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(v[0]);y&&y.updateOptions(v[1])}),l.borderColor&&(l.stroke=l.borderColor),l.borderWidth&&(l.strokeWidth=l.borderWidth);var f=l;return Object.keys(l).forEach(function(v){var y=l[v];Array.isArray(y)&&y.length===2&&!c1(y[0])&&!c1(y[1])&&(f[v]={field:y[0],value:y[1]})}),this.encodeStyle(f),this.updateLayerConfig(f),this}},{key:"encodeStyle",value:function(i){var o=this;Object.keys(i).forEach(function(s){[].concat((0,Wt.Z)(o.enableShaderEncodeStyles),(0,Wt.Z)(o.enableDataEncodeStyles)).includes(s)&&Cw(i[s])&&(i[s].field||i[s].value)&&!U0(o.encodeStyleAttribute[s],i[s])?(o.encodeStyleAttribute[s]=i[s],o.updateStyleAttribute(s,i[s].field,i[s].value),o.inited&&(o.dataState.dataMappingNeedUpdate=!0)):o.encodeStyleAttribute[s]&&(delete o.encodeStyleAttribute[s],o.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(i,o){var s=(0,H.Z)({},this.scaleOptions);if(Su(i)?this.scaleOptions=(0,H.Z)((0,H.Z)({},this.scaleOptions),i):this.scaleOptions[i]=o,this.styleAttributeService&&!U0(s,this.scaleOptions)){var l=Su(i)?i:(0,B.Z)({},i,o);this.styleAttributeService.updateScaleAttribute(l)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(i),this))}},{key:"renderMultiPass",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){l.next=2;break}return l.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){l.next=7;break}return l.next=5,this.multiPassRenderer.render();case 5:l.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"active",value:function(i){var o={};return o.enableHighlight=Su(i)?!0:i,Su(i)?(o.enableHighlight=!0,i.color&&(o.highlightColor=i.color),i.mix&&(o.activeMix=i.mix)):o.enableHighlight=!!i,this.updateLayerConfig(o),this}},{key:"setActive",value:function(i,o){var s=this;if(Su(i)){var l=i.x,f=l===void 0?0:l,v=i.y,y=v===void 0?0:v;this.updateLayerConfig({highlightColor:Su(o)?o.color:this.getLayerConfig().highlightColor,activeMix:Su(o)?o.mix:this.getLayerConfig().activeMix}),this.pick({x:f,y})}else this.updateLayerConfig({pickedFeatureID:i,highlightColor:Su(o)?o.color:this.getLayerConfig().highlightColor,activeMix:Su(o)?o.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(ia(i)).then(function(){setTimeout(function(){s.reRender()},1)})}},{key:"select",value:function(i){var o={};return o.enableSelect=Su(i)?!0:i,Su(i)?(o.enableSelect=!0,i.color&&(o.selectColor=i.color),i.mix&&(o.selectMix=i.mix)):o.enableSelect=!!i,this.updateLayerConfig(o),this}},{key:"setSelect",value:function(i,o){var s=this;if(Su(i)){var l=i.x,f=l===void 0?0:l,v=i.y,y=v===void 0?0:v;this.updateLayerConfig({selectColor:Su(o)?o.color:this.getLayerConfig().selectColor,selectMix:Su(o)?o.mix:this.getLayerConfig().selectMix}),this.pick({x:f,y})}else this.updateLayerConfig({pickedFeatureID:i,selectColor:Su(o)?o.color:this.getLayerConfig().selectColor,selectMix:Su(o)?o.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(ia(i)).then(function(){setTimeout(function(){s.reRender()},1)})}},{key:"setBlend",value:function(i){return this.updateLayerConfig({blend:i}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(i){return this.zIndex=i,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(i){this.currentPickId=i}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(i){this.selectedFeatureID=i}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var i=this.mapService.getZoom(),o=this.getLayerConfig(),s=o.visible,l=o.minZoom,f=l===void 0?-1/0:l,v=o.maxZoom,y=v===void 0?1/0:v;return!!s&&i>=f&&i0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(i=this.layerModel)===null||i===void 0||i.uniformBuffers.forEach(function(T){T.destroy()}),this.layerChildren.map(function(T){return T.destroy(!1)}),this.layerChildren=[];var y=this.getLayerConfig(),b=y.maskfence;b&&(this.masks.map(function(T){return T.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(o=this.multiPassRenderer)===null||o===void 0||o.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(s=this.layerModel)===null||s===void 0||s.clearModels(v),(l=this.tileLayer)===null||l===void 0||l.destroy(),this.models=[],(f=this.debugService)===null||f===void 0||f.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var i;this.models.forEach(function(o){return o.destroy()}),(i=this.layerModel)===null||i===void 0||i.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(i){return i.needRescale||i.needRemapping||i.needRegenerateVertices}).length}},{key:"setSource",value:function(i){var o=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=i,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var s=this.mapService.getZoom();this.layerSource.updateClusterData(s)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(l){var f=l.type;if(o.coordCenter===void 0){var v,y=o.layerSource.center;o.coordCenter=y,(v=o.mapService)!==null&&v!==void 0&&v.setCoordCenter&&o.mapService.setCoordCenter(y)}if(f==="update"){if(o.tileLayer){o.tileLayer.reload();return}o.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(i){this.encodedData=i,this.encodeDataLength=i.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(i){return this.styleAttributeService.getLayerAttributeScale(i)}},{key:"getLegend",value:function(i){var o,s,l,f=this.styleAttributeService.getLayerStyleAttribute(i),v=(f==null||(o=f.scale)===null||o===void 0?void 0:o.scalers)||[];return{type:(s=v[0].option)===null||s===void 0?void 0:s.type,field:f==null||(l=f.scale)===null||l===void 0?void 0:l.field,items:this.getLegendItems(i)}}},{key:"getLegendItems",value:function(i){var o=this.styleAttributeService.getLayerAttributeScale(i);if(!o)return[];if(o.invertExtent){var s=o.range().map(function(v){return(0,B.Z)({value:o.invertExtent(v)},i,v)});return s}else if(o.ticks){var l=o.ticks().map(function(v){return(0,B.Z)({value:v},i,o(v))});return l}else if(o!=null&&o.domain){var f=o.domain().filter(function(v){return!Rw(v)}).map(function(v){return(0,B.Z)({value:v},i,o(v))});return f}return[]}},{key:"pick",value:function(i){var o=i.x,s=i.y;this.interactionService.triggerHover({x:o,y:s})}},{key:"boxSelect",value:function(i,o){this.pickingService.boxPickLayer(this,i,o)}},{key:"buildLayerModel",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l=this,f,v,y,b,T,M,O,k,$,G,oe,ye;return me().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return f=s.moduleName,v=s.vertexShader,y=s.fragmentShader,b=s.inject,T=s.triangulation,M=s.styleOption,O=(0,Fa.Z)(s,Ew),this.shaderModuleService.registerModule(f,{vs:v,fs:y,inject:b}),k=this.shaderModuleService.getModule(f),$=k.vs,G=k.fs,oe=k.uniforms,ye=this.rendererService.createModel,$e.abrupt("return",new Promise(function(ut){var vt=l.styleAttributeService.createAttributesAndIndices(l.encodedData,T,M),Rt=vt.attributes,Jt=vt.elements,Mr=vt.count,br=(0,H.Z)({attributes:Rt,uniforms:oe,fs:G,vs:$,elements:Jt,blend:n1[zs.normal],uniformBuffers:[].concat((0,Wt.Z)(l.layerModel.uniformBuffers),(0,Wt.Z)(l.rendererService.uniformBuffers)),textures:l.layerModel.textures},O);Mr&&(br.count=Mr);var pn=ye(br);ut(pn)}));case 5:case"end":return $e.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"createAttributes",value:function(i){var o=i.triangulation,s=this.styleAttributeService.createAttributes(this.encodedData,o),l=s.attributes;return l}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(i){var o=this.getLayerConfig(),s=o.enableHighlight,l=s===void 0?!0:s,f=o.enableSelect,v=f===void 0?!0:f,y=this.eventNames().indexOf(i)!==-1||this.eventNames().indexOf("un"+i)!==-1;return(i==="click"||i==="dblclick")&&v&&(y=!0),i==="mousemove"&&(l||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(y=!0),this.isVisible()&&y}},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return l.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"rebuildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.buildModels();case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"renderMulPass",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,s.render();case 2:case"end":return f.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"renderModels",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(s){s.draw({uniforms:i.layerModel.getUninforms(),blend:i.layerModel.getBlend(),stencil:i.layerModel.getStencil(o)},(o==null?void 0:o.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(i,o,s,l){var f=this.configService.getAttributeConfig(this.id)||{};return U0(f[i],{field:o,values:s})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(i)!==-1&&this.configService.setAttributeConfig(this.id,(0,B.Z)({},i,{field:o,values:s})),this.startInit?this.styleAttributeService.updateStyleAttribute(i,{scale:(0,H.Z)({field:o},this.splitValuesAndCallbackInAttribute(s,this.getLayerConfig()[o]))},l):this.pendingStyleAttributes.push({attributeName:i,attributeField:o,attributeValues:s,updateOptions:l}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(i){console.warn("empty fn")}},{key:"processData",value:function(i){return i}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.models.forEach(function(f){return f.destroy()}),this.models=[],l.next=4,this.layerModel.initModels();case 4:this.models=l.sent;case 5:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(i){return{values:l1(i)?void 0:i,callback:l1(i)?i:void 0}}}]),t}(no.EventEmitter),s1=Oi(N0.prototype,"configService",[o1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N0);function Mw(e,r){return{enable:e,mask:255,func:{cmp:R.EQUAL,ref:r?1:0,mask:1}}}function h1(e){return e.maskOperation===Qp.OR?{enable:!0,mask:255,func:{cmp:R.ALWAYS,ref:1,mask:255},opFront:{fail:R.KEEP,zfail:R.REPLACE,zpass:R.REPLACE}}:{enable:!0,mask:255,func:{cmp:e.stencilType===hc.SINGLE||e.stencilIndex===0?R.ALWAYS:R.LESS,ref:e.stencilType===hc.SINGLE?1:e.stencilIndex===0?2:1,mask:255},opFront:{fail:R.KEEP,zfail:R.REPLACE,zpass:R.REPLACE}}}var Iw={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},yg={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function fL(e){var r="";return Object.keys(e).forEach(function(t){var n=e[t];Array.isArray(n)?r+="vec".concat(n.length," ").concat(t,`; +`);var Mp,n1=(Mp={},(0,B.Z)(Mp,Zs.additive,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE,srcAlpha:1,dstAlpha:1}}),(0,B.Z)(Mp,Zs.none,{enable:!1}),(0,B.Z)(Mp,Zs.normal,{enable:!0,func:{srcRGB:R.SRC_ALPHA,dstRGB:R.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,B.Z)(Mp,Zs.subtractive,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE,srcAlpha:R.ZERO,dstAlpha:R.ONE_MINUS_SRC_COLOR},equation:{rgb:R.FUNC_SUBTRACT,alpha:R.FUNC_SUBTRACT}}),(0,B.Z)(Mp,Zs.max,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE},equation:{rgb:R.MAX_EXT}}),(0,B.Z)(Mp,Zs.min,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE},equation:{rgb:R.MIN_EXT}}),Mp);function i1(e){return e.map(function(r){return typeof r=="string"&&(r=[r,{}]),r})}function a1(e,r,t,n){var i=e.multiPassRenderer,o=e.getLayerConfig(),s=o.enableTAA;return s?i.add(n("taa")):i.add(n("render")),i1(r).forEach(function(l){var f=(0,Sn.Z)(l,2),v=f[0],y=f[1];i.add(t(v),y)}),i.add(t("copy")),i}var yw=function(){function e(r){(0,Q.Z)(this,e),this.layer=r}return(0,j.Z)(e,[{key:"pickRender",value:function(t){var n=this.layer.getContainer(),i=n.get(ot.ILayerService),o=this.layer;if(o.tileLayer)return o.tileLayer.pickRender(t);o.hooks.beforePickingEncode.call(),i.renderTileLayerMask(o),o.renderModels({ispick:!0}),o.hooks.afterPickingEncode.call()}},{key:"pick",value:function(t,n){var i=this.layer.getContainer(),o=i.get(ot.IPickingService);return t.type==="RasterLayer"?this.pickRasterLayer(t,n):(this.pickRender(n),o.pickFromPickingFBO(t,n))}},{key:"pickRasterLayer",value:function(t,n,i){var o=this.layer.getContainer(),s=o.get(ot.IPickingService),l=o.get(ot.IMapService),f=this.layer.getSource().extent,v=yh(n.lngLat,f),y={x:n.x,y:n.y,type:n.type,lngLat:n.lngLat,target:n,rasterValue:null},b=i||t;if(v){var T=this.readRasterValue(t,f,l,n.x,n.y);return y.rasterValue=T,s.triggerHoverOnLayer(b,y),!0}else return y.type=n.type==="mousemove"?"mouseout":"un"+n.type,s.triggerHoverOnLayer(b,(0,V.Z)((0,V.Z)({},y),{},{type:"unpick"})),s.triggerHoverOnLayer(b,y),!1}},{key:"readRasterValue",value:function(t,n,i,o,s){var l=t.getSource().data.dataArray[0],f=(0,Sn.Z)(n,4),v=f[0],y=v===void 0?0:v,b=f[1],T=b===void 0?0:b,M=f[2],O=M===void 0?10:M,F=f[3],$=F===void 0?-10:F,G=i.lngLatToContainer([y,T]),ue=i.lngLatToContainer([O,$]),xe=ue.x-G.x,ze=G.y-ue.y,Je=[(o-G.x)/xe,(s-ue.y)/ze],ht=l.width||1,gt=l.height||1,Ot=Math.floor(Je[0]*ht),tr=Math.floor(Je[1]*gt),Ir=Math.max(0,tr-1)*ht+Ot,Er=l.data[Ir];return Er}},{key:"selectFeature",value:function(t){var n=this.layer,i=(0,Sn.Z)(t,3),o=i[0],s=i[1],l=i[2];n.hooks.beforeSelect.call([o,s,l])}},{key:"highlightPickedFeature",value:function(t){var n=(0,Sn.Z)(t,3),i=n[0],o=n[1],s=n[2];this.layer.hooks.beforeHighlight.call([i,o,s])}},{key:"getFeatureById",value:function(t){return this.layer.getSource().getFeatureById(t)}}]),e}(),xw=function(){function e(r){(0,Q.Z)(this,e),this.layer=r;var t=this.layer.getContainer();this.rendererService=t.get(ot.IRendererService)}return(0,j.Z)(e,[{key:"getColorTexture",value:function(t,n){var i=this.getTextureKey(t,n);return this.key===i?this.colorTexture:(this.createColorTexture(t,n),this.key=i,this.colorTexture)}},{key:"createColorTexture",value:function(t,n){var i=this.rendererService.createTexture2D,o=this.getColorRampBar(t,n),s=i({data:new Uint8Array(o.data),width:o.width,height:o.height,flipY:!1});return this.colorTexture=s,s}},{key:"setColorTexture",value:function(t,n,i){this.key=this.getTextureKey(n,i),this.colorTexture=t}},{key:"destroy",value:function(){var t;(t=this.colorTexture)===null||t===void 0||t.destroy()}},{key:"getColorRampBar",value:function(t,n){switch(t.type){case"cat":return $o(t);case"quantize":return Vo(t);case"custom":return Ru(t,n);case"linear":return ha(t,n);default:return Ao(t)}}},{key:"getTextureKey",value:function(t,n){var i;return"".concat(t.colors.join("_"),"_").concat(t==null||(i=t.positions)===null||i===void 0?void 0:i.join("_"),"_").concat(t.type,"_").concat(n==null?void 0:n.join("_"))}}]),e}(),bw=["passes"],Ew=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption"],o1,N0,s1;function Sw(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Aw(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Aw(e,r){if(e){if(typeof e=="string")return u1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u1(e,r)}}function u1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:{};return(0,Q.Z)(this,t),n=r.call(this),(0,B.Z)((0,Fe.Z)(n),"id","".concat(f1++)),(0,B.Z)((0,Fe.Z)(n),"name","".concat(f1)),(0,B.Z)((0,Fe.Z)(n),"visible",!0),(0,B.Z)((0,Fe.Z)(n),"zIndex",0),(0,B.Z)((0,Fe.Z)(n),"inited",!1),(0,B.Z)((0,Fe.Z)(n),"layerModelNeedUpdate",!1),(0,B.Z)((0,Fe.Z)(n),"pickedFeatureID",null),(0,B.Z)((0,Fe.Z)(n),"selectedFeatureID",null),(0,B.Z)((0,Fe.Z)(n),"styleNeedUpdate",!1),(0,B.Z)((0,Fe.Z)(n),"forceRender",!1),(0,B.Z)((0,Fe.Z)(n),"clusterZoom",0),(0,B.Z)((0,Fe.Z)(n),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,B.Z)((0,Fe.Z)(n),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,B.Z)((0,Fe.Z)(n),"hooks",{init:new A0,afterInit:new po,beforeRender:new po,beforeRenderData:new ah,afterRender:new xu,beforePickingEncode:new xu,afterPickingEncode:new xu,beforeHighlight:new xu(["pickedColor"]),afterHighlight:new xu,beforeSelect:new xu(["pickedColor"]),afterSelect:new xu,beforeDestroy:new xu,afterDestroy:new xu}),(0,B.Z)((0,Fe.Z)(n),"models",[]),(0,B.Z)((0,Fe.Z)(n),"startInit",!1),(0,B.Z)((0,Fe.Z)(n),"layerChildren",[]),(0,B.Z)((0,Fe.Z)(n),"masks",[]),Ni((0,Fe.Z)(n),"configService",s1,(0,Fe.Z)(n)),(0,B.Z)((0,Fe.Z)(n),"animateOptions",{enable:!1}),(0,B.Z)((0,Fe.Z)(n),"currentPickId",null),(0,B.Z)((0,Fe.Z)(n),"encodeStyleAttribute",{}),(0,B.Z)((0,Fe.Z)(n),"enableShaderEncodeStyles",[]),(0,B.Z)((0,Fe.Z)(n),"enableDataEncodeStyles",[]),(0,B.Z)((0,Fe.Z)(n),"enablg",[]),(0,B.Z)((0,Fe.Z)(n),"pendingStyleAttributes",[]),(0,B.Z)((0,Fe.Z)(n),"scaleOptions",{}),(0,B.Z)((0,Fe.Z)(n),"animateStatus",!1),(0,B.Z)((0,Fe.Z)(n),"isDestroyed",!1),(0,B.Z)((0,Fe.Z)(n),"encodeDataLength",0),(0,B.Z)((0,Fe.Z)(n),"sourceEvent",function(){n.dataState.dataSourceNeedUpdate=!0;var o=n.getLayerConfig();o&&o.autoFit&&n.fitBounds(o.fitBoundsOptions);var s=n.layerSource.getSourceCfg().autoRender;s&&setTimeout(function(){n.reRender()},10)}),n.name=i.name||n.id,n.zIndex=i.zIndex||0,n.rawConfig=i,n}return(0,j.Z)(t,[{key:"addMask",value:function(i){this.masks.push(i),this.enableMask()}},{key:"removeMask",value:function(i){var o=this.masks.indexOf(i);o>-1&&this.masks.splice(o,1)}},{key:"disableMask",value:function(){this.updateLayerConfig({enableMask:!1})}},{key:"enableMask",value:function(){this.updateLayerConfig({enableMask:!0})}},{key:"addMaskLayer",value:function(i){this.masks.push(i)}},{key:"removeMaskLayer",value:function(i){var o=this.masks.indexOf(i);o>-1&&this.masks.splice(o,1),i.destroy()}},{key:"getAttribute",value:function(i){return this.styleAttributeService.getLayerStyleAttribute(i)}},{key:"getLayerConfig",value:function(){return this.configService.getLayerConfig(this.id)}},{key:"updateLayerConfig",value:function(i){var o=this;if(Object.keys(i).map(function(l){l in o.rawConfig&&(o.rawConfig[l]=i[l])}),!this.startInit)this.needUpdateConfig=(0,V.Z)((0,V.Z)({},this.needUpdateConfig),i);else{var s=this.container.get(ot.SceneID);this.configService.setLayerConfig(s,this.id,(0,V.Z)((0,V.Z)((0,V.Z)({},this.configService.getLayerConfig(this.id)),this.needUpdateConfig),i)),this.needUpdateConfig={}}}},{key:"setContainer",value:function(i,o){this.container=i,this.sceneContainer=o}},{key:"getContainer",value:function(){return this.container}},{key:"addPlugin",value:function(i){return this.plugins.push(i),this}},{key:"init",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s=this,l,f,v,y,b,T,M;return ge().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:l=this.container.get(ot.SceneID),this.startInit=!0,this.configService.setLayerConfig(l,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(ot.IIconService),this.fontService=this.container.get(ot.IFontService),this.rendererService=this.container.get(ot.IRendererService),this.layerService=this.container.get(ot.ILayerService),this.debugService=this.container.get(ot.IDebugService),this.interactionService=this.container.get(ot.IInteractionService),this.pickingService=this.container.get(ot.IPickingService),this.mapService=this.container.get(ot.IMapService),f=this.getLayerConfig(),v=f.enableMultiPassRenderer,y=f.passes,v&&y!==null&&y!==void 0&&y.length&&y.length>0&&this.mapService.on("mapAfterFrameChange",function(){s.renderLayers()}),this.cameraService=this.container.get(ot.ICameraService),this.coordinateService=this.container.get(ot.ICoordinateSystemService),this.shaderModuleService=this.container.get(ot.IShaderModuleService),this.postProcessingPassFactory=this.container.get(ot.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(ot.IFactoryNormalPass),this.styleAttributeService=this.container.get(ot.IStyleAttributeService),v&&(this.multiPassRenderer=this.container.get(ot.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function($){var G=$.attributeName,ue=$.attributeField,xe=$.attributeValues,ze=$.updateOptions;s.styleAttributeService.updateStyleAttribute(G,{scale:(0,V.Z)({field:ue},s.splitValuesAndCallbackInAttribute(xe,ue?void 0:s.getLayerConfig()[G]))},ze)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(ot.ILayerPlugin),b=Sw(this.plugins);try{for(b.s();!(T=b.n()).done;)M=T.value,M.apply(this,{rendererService:this.rendererService,mapService:this.mapService,styleAttributeService:this.styleAttributeService,normalPassFactory:this.normalPassFactory,postProcessingPassFactory:this.postProcessingPassFactory})}catch($){b.e($)}finally{b.f()}return this.layerPickService=new yw(this),this.textureService=new xw(this),this.log(Rs.LayerInitStart),F.next=31,this.hooks.init.promise();case 31:this.log(Rs.LayerInitEnd),this.inited=!0,this.emit("inited",{target:this,type:"inited"}),this.emit("add",{target:this,type:"add"}),this.hooks.afterInit.call();case 36:case"end":return F.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"log",value:function(i){var o,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"init";if(!(this.tileLayer||this.isTileLayer)){var l="".concat(this.id,".").concat(s,".").concat(i),f={id:this.id,type:this.type};(o=this.debugService)===null||o===void 0||o.log(l,f)}}},{key:"updateModelData",value:function(i){i.attributes&&i.elements?this.models.map(function(o){o.updateAttributesAndElements(i.attributes,i.elements)}):console.warn("data error")}},{key:"setLayerPickService",value:function(i){this.layerPickService=i}},{key:"prepareBuildModel",value:function(){Object.keys(this.needUpdateConfig||{}).length!==0&&this.updateLayerConfig({});var i=this.getLayerConfig(),o=i.animateOption;o!=null&&o.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(i,o,s){return this.updateStyleAttribute("color",i,o,s),this}},{key:"texture",value:function(i,o,s){return this.updateStyleAttribute("texture",i,o,s),this}},{key:"rotate",value:function(i,o,s){return this.updateStyleAttribute("rotate",i,o,s),this}},{key:"size",value:function(i,o,s){return this.updateStyleAttribute("size",i,o,s),this}},{key:"filter",value:function(i,o,s){var l=this.updateStyleAttribute("filter",i,o,s);return this.dataState.dataSourceNeedUpdate=l&&this.inited,this}},{key:"shape",value:function(i,o,s){this.shapeOption={field:i,values:o};var l=this.updateStyleAttribute("shape",i,o,s);return this.dataState.dataSourceNeedUpdate=l&&this.inited,this}},{key:"label",value:function(i,o,s){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:i,attributeValues:o,updateOptions:s}),this}},{key:"animate",value:function(i){var o={};return Su(i)?(o.enable=!0,o=(0,V.Z)((0,V.Z)({},o),i)):o.enable=i,this.updateLayerConfig({animateOption:o}),this}},{key:"source",value:function(i,o){return(i==null?void 0:i.type)==="source"?(this.setSource(i),this):(this.sourceOption={data:i,options:o},this.clusterZoom=0,this)}},{key:"setData",value:function(i,o){var s=this;return this.inited?(this.log(Rs.SourceInitStart,ds.UPDATE),this.layerSource.setData(i,o),this.log(Rs.SourceInitEnd,ds.UPDATE)):this.on("inited",function(){s.log(Rs.SourceInitStart,ds.UPDATE);var l=s.getSource();l?s.layerSource.setData(i,o):s.source(new Xy(i,o)),s.layerSource.once("update",function(){s.log(Rs.SourceInitEnd,ds.UPDATE)})}),this}},{key:"style",value:function(i){var o=this,s=i.passes,l=(0,ka.Z)(i,bw);s&&i1(s).forEach(function(v){var y=o.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(v[0]);y&&y.updateOptions(v[1])}),l.borderColor&&(l.stroke=l.borderColor),l.borderWidth&&(l.strokeWidth=l.borderWidth);var f=l;return Object.keys(l).forEach(function(v){var y=l[v];Array.isArray(y)&&y.length===2&&!c1(y[0])&&!c1(y[1])&&(f[v]={field:y[0],value:y[1]})}),this.encodeStyle(f),this.updateLayerConfig(f),this}},{key:"encodeStyle",value:function(i){var o=this;Object.keys(i).forEach(function(s){[].concat((0,Kt.Z)(o.enableShaderEncodeStyles),(0,Kt.Z)(o.enableDataEncodeStyles)).includes(s)&&Cw(i[s])&&(i[s].field||i[s].value)&&!U0(o.encodeStyleAttribute[s],i[s])?(o.encodeStyleAttribute[s]=i[s],o.updateStyleAttribute(s,i[s].field,i[s].value),o.inited&&(o.dataState.dataMappingNeedUpdate=!0)):o.encodeStyleAttribute[s]&&(delete o.encodeStyleAttribute[s],o.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(i,o){var s=(0,V.Z)({},this.scaleOptions);if(Su(i)?this.scaleOptions=(0,V.Z)((0,V.Z)({},this.scaleOptions),i):this.scaleOptions[i]=o,this.styleAttributeService&&!U0(s,this.scaleOptions)){var l=Su(i)?i:(0,B.Z)({},i,o);this.styleAttributeService.updateScaleAttribute(l)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"render",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.tileLayer?(this.tileLayer.render(),this):(this.layerService.beforeRenderData(this),this.encodeDataLength<=0&&!this.forceRender?this:(this.renderModels(i),this))}},{key:"renderMultiPass",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!(this.encodeDataLength<=0&&!this.forceRender)){l.next=2;break}return l.abrupt("return");case 2:if(!(this.multiPassRenderer&&this.multiPassRenderer.getRenderFlag())){l.next=7;break}return l.next=5,this.multiPassRenderer.render();case 5:l.next=8;break;case 7:this.multiPassRenderer?this.renderModels():this.renderModels();case 8:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"active",value:function(i){var o={};return o.enableHighlight=Su(i)?!0:i,Su(i)?(o.enableHighlight=!0,i.color&&(o.highlightColor=i.color),i.mix&&(o.activeMix=i.mix)):o.enableHighlight=!!i,this.updateLayerConfig(o),this}},{key:"setActive",value:function(i,o){var s=this;if(Su(i)){var l=i.x,f=l===void 0?0:l,v=i.y,y=v===void 0?0:v;this.updateLayerConfig({highlightColor:Su(o)?o.color:this.getLayerConfig().highlightColor,activeMix:Su(o)?o.mix:this.getLayerConfig().activeMix}),this.pick({x:f,y})}else this.updateLayerConfig({pickedFeatureID:i,highlightColor:Su(o)?o.color:this.getLayerConfig().highlightColor,activeMix:Su(o)?o.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(sa(i)).then(function(){setTimeout(function(){s.reRender()},1)})}},{key:"select",value:function(i){var o={};return o.enableSelect=Su(i)?!0:i,Su(i)?(o.enableSelect=!0,i.color&&(o.selectColor=i.color),i.mix&&(o.selectMix=i.mix)):o.enableSelect=!!i,this.updateLayerConfig(o),this}},{key:"setSelect",value:function(i,o){var s=this;if(Su(i)){var l=i.x,f=l===void 0?0:l,v=i.y,y=v===void 0?0:v;this.updateLayerConfig({selectColor:Su(o)?o.color:this.getLayerConfig().selectColor,selectMix:Su(o)?o.mix:this.getLayerConfig().selectMix}),this.pick({x:f,y})}else this.updateLayerConfig({pickedFeatureID:i,selectColor:Su(o)?o.color:this.getLayerConfig().selectColor,selectMix:Su(o)?o.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(sa(i)).then(function(){setTimeout(function(){s.reRender()},1)})}},{key:"setBlend",value:function(i){return this.updateLayerConfig({blend:i}),this.reRender(),this}},{key:"show",value:function(){return this.updateLayerConfig({visible:!0}),this.reRender(),this.emit("show"),this}},{key:"hide",value:function(){return this.updateLayerConfig({visible:!1}),this.reRender(),this.emit("hide"),this}},{key:"setIndex",value:function(i){return this.zIndex=i,this.layerService.updateLayerRenderList(),this.layerService.renderLayers(),this}},{key:"setCurrentPickId",value:function(i){this.currentPickId=i}},{key:"getCurrentPickId",value:function(){return this.currentPickId}},{key:"setCurrentSelectedId",value:function(i){this.selectedFeatureID=i}},{key:"getCurrentSelectedId",value:function(){return this.selectedFeatureID}},{key:"isVisible",value:function(){var i=this.mapService.getZoom(),o=this.getLayerConfig(),s=o.visible,l=o.minZoom,f=l===void 0?-1/0:l,v=o.maxZoom,y=v===void 0?1/0:v;return!!s&&i>=f&&i0&&arguments[0]!==void 0?arguments[0]:!0;if(!this.isDestroyed){(i=this.layerModel)===null||i===void 0||i.uniformBuffers.forEach(function(T){T.destroy()}),this.layerChildren.map(function(T){return T.destroy(!1)}),this.layerChildren=[];var y=this.getLayerConfig(),b=y.maskfence;b&&(this.masks.map(function(T){return T.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(o=this.multiPassRenderer)===null||o===void 0||o.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(s=this.layerModel)===null||s===void 0||s.clearModels(v),(l=this.tileLayer)===null||l===void 0||l.destroy(),this.models=[],(f=this.debugService)===null||f===void 0||f.removeLog(this.id),this.emit("remove",{target:this,type:"remove"}),this.emit("destroy",{target:this,type:"destroy"}),this.removeAllListeners(),this.isDestroyed=!0}}},{key:"clear",value:function(){this.styleAttributeService.clearAllAttributes()}},{key:"clearModels",value:function(){var i;this.models.forEach(function(o){return o.destroy()}),(i=this.layerModel)===null||i===void 0||i.clearModels(),this.models=[]}},{key:"isDirty",value:function(){return!!(this.styleAttributeService.getLayerStyleAttributes()||[]).filter(function(i){return i.needRescale||i.needRemapping||i.needRegenerateVertices}).length}},{key:"setSource",value:function(i){var o=this;if(this.layerSource&&this.layerSource.off("update",this.sourceEvent),this.layerSource=i,this.clusterZoom=0,this.inited&&this.layerSource.cluster){var s=this.mapService.getZoom();this.layerSource.updateClusterData(s)}this.layerSource.inited&&this.sourceEvent(),this.layerSource.on("update",function(l){var f=l.type;if(o.coordCenter===void 0){var v,y=o.layerSource.center;o.coordCenter=y,(v=o.mapService)!==null&&v!==void 0&&v.setCoordCenter&&o.mapService.setCoordCenter(y)}if(f==="update"){if(o.tileLayer){o.tileLayer.reload();return}o.sourceEvent()}})}},{key:"getSource",value:function(){return this.layerSource}},{key:"getScaleOptions",value:function(){return this.scaleOptions}},{key:"setEncodedData",value:function(i){this.encodedData=i,this.encodeDataLength=i.length}},{key:"getEncodedData",value:function(){return this.encodedData}},{key:"getScale",value:function(i){return this.styleAttributeService.getLayerAttributeScale(i)}},{key:"getLegend",value:function(i){var o,s,l,f=this.styleAttributeService.getLayerStyleAttribute(i),v=(f==null||(o=f.scale)===null||o===void 0?void 0:o.scalers)||[];return{type:(s=v[0].option)===null||s===void 0?void 0:s.type,field:f==null||(l=f.scale)===null||l===void 0?void 0:l.field,items:this.getLegendItems(i)}}},{key:"getLegendItems",value:function(i){var o=this.styleAttributeService.getLayerAttributeScale(i);if(!o)return[];if(o.invertExtent){var s=o.range().map(function(v){return(0,B.Z)({value:o.invertExtent(v)},i,v)});return s}else if(o.ticks){var l=o.ticks().map(function(v){return(0,B.Z)({value:v},i,o(v))});return l}else if(o!=null&&o.domain){var f=o.domain().filter(function(v){return!Rw(v)}).map(function(v){return(0,B.Z)({value:v},i,o(v))});return f}return[]}},{key:"pick",value:function(i){var o=i.x,s=i.y;this.interactionService.triggerHover({x:o,y:s})}},{key:"boxSelect",value:function(i,o){this.pickingService.boxPickLayer(this,i,o)}},{key:"buildLayerModel",value:function(){var n=(0,Pt.Z)(ge().mark(function o(s){var l=this,f,v,y,b,T,M,O,F,$,G,ue,xe;return ge().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return f=s.moduleName,v=s.vertexShader,y=s.fragmentShader,b=s.inject,T=s.triangulation,M=s.styleOption,O=(0,ka.Z)(s,Ew),this.shaderModuleService.registerModule(f,{vs:v,fs:y,inject:b}),F=this.shaderModuleService.getModule(f),$=F.vs,G=F.fs,ue=F.uniforms,xe=this.rendererService.createModel,Je.abrupt("return",new Promise(function(ht){var gt=l.styleAttributeService.createAttributesAndIndices(l.encodedData,T,M),Ot=gt.attributes,tr=gt.elements,Ir=gt.count,Er=(0,V.Z)({attributes:Ot,uniforms:ue,fs:G,vs:$,elements:tr,blend:n1[Zs.normal],uniformBuffers:[].concat((0,Kt.Z)(l.layerModel.uniformBuffers),(0,Kt.Z)(l.rendererService.uniformBuffers)),textures:l.layerModel.textures},O);Ir&&(Er.count=Ir);var mn=xe(Er);ht(mn)}));case 5:case"end":return Je.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"createAttributes",value:function(i){var o=i.triangulation,s=this.styleAttributeService.createAttributes(this.encodedData,o),l=s.attributes;return l}},{key:"getTime",value:function(){return this.layerService.clock.getDelta()}},{key:"setAnimateStartTime",value:function(){this.animateStartTime=this.layerService.clock.getElapsedTime()}},{key:"stopAnimate",value:function(){this.animateStatus&&(this.layerService.stopAnimate(),this.animateStatus=!1,this.updateLayerConfig({animateOption:{enable:!1}}))}},{key:"getLayerAnimateTime",value:function(){return this.layerService.clock.getElapsedTime()-this.animateStartTime}},{key:"needPick",value:function(i){var o=this.getLayerConfig(),s=o.enableHighlight,l=s===void 0?!0:s,f=o.enableSelect,v=f===void 0?!0:f,y=this.eventNames().indexOf(i)!==-1||this.eventNames().indexOf("un"+i)!==-1;return(i==="click"||i==="dblclick")&&v&&(y=!0),i==="mousemove"&&(l||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(y=!0),this.isVisible()&&y}},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return l.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"rebuildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.buildModels();case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"renderMulPass",value:function(){var n=(0,Pt.Z)(ge().mark(function o(s){return ge().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,s.render();case 2:case"end":return f.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"renderModels",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.encodeDataLength<=0&&!this.forceRender?(this.clearModels(),this):(this.hooks.beforeRender.call(),this.models.forEach(function(s){s.draw({uniforms:i.layerModel.getUninforms(),blend:i.layerModel.getBlend(),stencil:i.layerModel.getStencil(o)},(o==null?void 0:o.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(i,o,s,l){var f=this.configService.getAttributeConfig(this.id)||{};return U0(f[i],{field:o,values:s})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(i)!==-1&&this.configService.setAttributeConfig(this.id,(0,B.Z)({},i,{field:o,values:s})),this.startInit?this.styleAttributeService.updateStyleAttribute(i,{scale:(0,V.Z)({field:o},this.splitValuesAndCallbackInAttribute(s,this.getLayerConfig()[o]))},l):this.pendingStyleAttributes.push({attributeName:i,attributeField:o,attributeValues:s,updateOptions:l}),!0)}},{key:"getLayerAttributeConfig",value:function(){return this.configService.getAttributeConfig(this.id)}},{key:"getShaderPickStat",value:function(){return this.layerService.getShaderPickStat()}},{key:"setEarthTime",value:function(i){console.warn("empty fn")}},{key:"processData",value:function(i){return i}},{key:"getModelType",value:function(){throw new Error("Method not implemented.")}},{key:"getDefaultConfig",value:function(){return{}}},{key:"initLayerModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.models.forEach(function(f){return f.destroy()}),this.models=[],l.next=4,this.layerModel.initModels();case 4:this.models=l.sent;case 5:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"reRender",value:function(){this.inited&&this.layerService.reRender()}},{key:"splitValuesAndCallbackInAttribute",value:function(i){return{values:l1(i)?void 0:i,callback:l1(i)?i:void 0}}}]),t}(io.EventEmitter),s1=ki(N0.prototype,"configService",[o1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N0);function Mw(e,r){return{enable:e,mask:255,func:{cmp:R.EQUAL,ref:r?1:0,mask:1}}}function h1(e){return e.maskOperation===Qp.OR?{enable:!0,mask:255,func:{cmp:R.ALWAYS,ref:1,mask:255},opFront:{fail:R.KEEP,zfail:R.REPLACE,zpass:R.REPLACE}}:{enable:!0,mask:255,func:{cmp:e.stencilType===hc.SINGLE||e.stencilIndex===0?R.ALWAYS:R.LESS,ref:e.stencilType===hc.SINGLE?1:e.stencilIndex===0?2:1,mask:255},opFront:{fail:R.KEEP,zfail:R.REPLACE,zpass:R.REPLACE}}}var Iw={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},yg={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function hL(e){var r="";return Object.keys(e).forEach(function(t){var n=e[t];Array.isArray(n)?r+="vec".concat(n.length," ").concat(t,`; `):r+="flot ".concat(t,`; -`)}),r}function p1(e){return Math.ceil(e/4)*4}var Ms=function(e){return e[e.POSITION=0]="POSITION",e[e.COLOR=1]="COLOR",e[e.VERTEX_ID=2]="VERTEX_ID",e[e.PICKING_COLOR=3]="PICKING_COLOR",e[e.STROKE=4]="STROKE",e[e.OPACITY=5]="OPACITY",e[e.OFFSETS=6]="OFFSETS",e[e.ROTATION=7]="ROTATION",e[e.EXTRUSION_BASE=8]="EXTRUSION_BASE",e[e.SIZE=9]="SIZE",e[e.SHAPE=10]="SHAPE",e[e.EXTRUDE=11]="EXTRUDE",e[e.MAX=12]="MAX",e[e.NORMAL=13]="NORMAL",e}({});function Pw(e){switch(e){case"rotation":return{name:"Rotation",type:fn.Attribute,descriptor:{name:"a_Rotation",shaderLocation:Ms.ROTATION,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.rotation,i=n===void 0?0:n;return Array.isArray(i)?[i[0]]:[i]}}};case"stroke":return{name:"stroke",type:fn.Attribute,descriptor:{name:"a_Stroke",shaderLocation:Ms.STROKE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:4,update:function(t){var n=t.stroke,i=n===void 0?[1,1,1,1]:n;return i}}};case"opacity":return{name:"opacity",type:fn.Attribute,descriptor:{name:"a_Opacity",shaderLocation:Ms.OPACITY,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.opacity,i=n===void 0?1:n;return[i]}}};case"extrusionBase":return{name:"extrusionBase",type:fn.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:Ms.EXTRUSION_BASE,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.extrusionBase,i=n===void 0?0:n;return[i]}}};case"offsets":return{name:"offsets",type:fn.Attribute,descriptor:{name:"a_Offsets",shaderLocation:Ms.OFFSETS,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(t){var n=t.offsets;return n}}};case"thetaOffset":return{name:"thetaOffset",type:fn.Attribute,descriptor:{name:"a_ThetaOffset",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.thetaOffset,i=n===void 0?1:n;return[i]}}};default:return}}var d1,z0,v1,m1={opacity:Ms.OPACITY,stroke:Ms.STROKE,offsets:Ms.OFFSETS,rotation:Ms.ROTATION,extrusionBase:Ms.EXTRUSION_BASE},Ma=(d1=k0(tt.IGlobalConfigService),z0=function(){function e(r){(0,q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"textures",[]),(0,B.Z)(this,"preStyleAttribute",{}),(0,B.Z)(this,"encodeStyleAttribute",{}),Fi(this,"configService",v1,this),this.layer=r,this.rendererService=r.getContainer().get(tt.IRendererService),this.pickingService=r.getContainer().get(tt.IPickingService),this.shaderModuleService=r.getContainer().get(tt.IShaderModuleService),this.styleAttributeService=r.getContainer().get(tt.IStyleAttributeService),this.mapService=r.getContainer().get(tt.IMapService),this.iconService=r.getContainer().get(tt.IIconService),this.fontService=r.getContainer().get(tt.IFontService),this.cameraService=r.getContainer().get(tt.ICameraService),this.layerService=r.getContainer().get(tt.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var t=this.rendererService.createTexture2D;this.createTexture2D=t}return(0,V.Z)(e,[{key:"getBlend",value:function(){var t=this.layer.getLayerConfig(),n=t.blend,i=n===void 0?"normal":n;return n1[zs[i]]}},{key:"getStencil",value:function(t){var n=this.layer.getLayerConfig(),i=n.mask,o=i===void 0?!1:i,s=n.maskInside,l=s===void 0?!0:s,f=n.enableMask,v=n.maskOperation,y=v===void 0?Qp.AND:v;if(this.layer.type==="MaskLayer")return h1({isStencil:!0,stencilType:hc.SINGLE});if(t.isStencil)return h1((0,H.Z)((0,H.Z)({},t),{},{maskOperation:y}));var b=o||f&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Mw(b,l)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var r=(0,Ct.Z)(me().mark(function n(){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",!1);case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"buildModels",value:function(){var r=(0,Ct.Z)(me().mark(function n(){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"initModels",value:function(){var r=(0,Ct.Z)(me().mark(function n(){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"clearModels",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(t){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(t){return[t.enable?0:1,t.duration||4,t.interval||.2,t.trailLength||.1]}},{key:"startModelAnimate",value:function(){var t=this.layer.getLayerConfig(),n=t.animateOption;n.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var t=this.layer.encodeStyleAttribute,n="",i=[];this.layer.enableShaderEncodeStyles.forEach(function(l){t[l]?n+="#define USE_ATTRIBUTE_".concat(l.toUpperCase(),` 0.0; +`)}),r}function p1(e){return Math.ceil(e/4)*4}var Ms=function(e){return e[e.POSITION=0]="POSITION",e[e.COLOR=1]="COLOR",e[e.VERTEX_ID=2]="VERTEX_ID",e[e.PICKING_COLOR=3]="PICKING_COLOR",e[e.STROKE=4]="STROKE",e[e.OPACITY=5]="OPACITY",e[e.OFFSETS=6]="OFFSETS",e[e.ROTATION=7]="ROTATION",e[e.EXTRUSION_BASE=8]="EXTRUSION_BASE",e[e.SIZE=9]="SIZE",e[e.SHAPE=10]="SHAPE",e[e.EXTRUDE=11]="EXTRUDE",e[e.MAX=12]="MAX",e[e.NORMAL=13]="NORMAL",e}({});function Pw(e){switch(e){case"rotation":return{name:"Rotation",type:dn.Attribute,descriptor:{name:"a_Rotation",shaderLocation:Ms.ROTATION,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.rotation,i=n===void 0?0:n;return Array.isArray(i)?[i[0]]:[i]}}};case"stroke":return{name:"stroke",type:dn.Attribute,descriptor:{name:"a_Stroke",shaderLocation:Ms.STROKE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:4,update:function(t){var n=t.stroke,i=n===void 0?[1,1,1,1]:n;return i}}};case"opacity":return{name:"opacity",type:dn.Attribute,descriptor:{name:"a_Opacity",shaderLocation:Ms.OPACITY,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.opacity,i=n===void 0?1:n;return[i]}}};case"extrusionBase":return{name:"extrusionBase",type:dn.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:Ms.EXTRUSION_BASE,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.extrusionBase,i=n===void 0?0:n;return[i]}}};case"offsets":return{name:"offsets",type:dn.Attribute,descriptor:{name:"a_Offsets",shaderLocation:Ms.OFFSETS,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(t){var n=t.offsets;return n}}};case"thetaOffset":return{name:"thetaOffset",type:dn.Attribute,descriptor:{name:"a_ThetaOffset",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(t){var n=t.thetaOffset,i=n===void 0?1:n;return[i]}}};default:return}}var d1,z0,v1,m1={opacity:Ms.OPACITY,stroke:Ms.STROKE,offsets:Ms.OFFSETS,rotation:Ms.ROTATION,extrusionBase:Ms.EXTRUSION_BASE},Ma=(d1=F0(ot.IGlobalConfigService),z0=function(){function e(r){(0,Q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"textures",[]),(0,B.Z)(this,"preStyleAttribute",{}),(0,B.Z)(this,"encodeStyleAttribute",{}),Ni(this,"configService",v1,this),this.layer=r,this.rendererService=r.getContainer().get(ot.IRendererService),this.pickingService=r.getContainer().get(ot.IPickingService),this.shaderModuleService=r.getContainer().get(ot.IShaderModuleService),this.styleAttributeService=r.getContainer().get(ot.IStyleAttributeService),this.mapService=r.getContainer().get(ot.IMapService),this.iconService=r.getContainer().get(ot.IIconService),this.fontService=r.getContainer().get(ot.IFontService),this.cameraService=r.getContainer().get(ot.ICameraService),this.layerService=r.getContainer().get(ot.ILayerService),this.registerStyleAttribute(),this.registerBuiltinAttributes(),this.startModelAnimate();var t=this.rendererService.createTexture2D;this.createTexture2D=t}return(0,j.Z)(e,[{key:"getBlend",value:function(){var t=this.layer.getLayerConfig(),n=t.blend,i=n===void 0?"normal":n;return n1[Zs[i]]}},{key:"getStencil",value:function(t){var n=this.layer.getLayerConfig(),i=n.mask,o=i===void 0?!1:i,s=n.maskInside,l=s===void 0?!0:s,f=n.enableMask,v=n.maskOperation,y=v===void 0?Qp.AND:v;if(this.layer.type==="MaskLayer")return h1({isStencil:!0,stencilType:hc.SINGLE});if(t.isStencil)return h1((0,V.Z)((0,V.Z)({},t),{},{maskOperation:y}));var b=o||f&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Mw(b,l)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var r=(0,Pt.Z)(ge().mark(function n(){return ge().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",!1);case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"buildModels",value:function(){var r=(0,Pt.Z)(ge().mark(function n(){return ge().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"initModels",value:function(){var r=(0,Pt.Z)(ge().mark(function n(){return ge().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return o.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"clearModels",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0}},{key:"getAttribute",value:function(){throw new Error("Method not implemented.")}},{key:"render",value:function(t){throw new Error("Method not implemented.")}},{key:"registerBuiltinAttributes",value:function(){throw new Error("Method not implemented.")}},{key:"animateOption2Array",value:function(t){return[t.enable?0:1,t.duration||4,t.interval||.2,t.trailLength||.1]}},{key:"startModelAnimate",value:function(){var t=this.layer.getLayerConfig(),n=t.animateOption;n.enable&&this.layer.setAnimateStartTime()}},{key:"getInject",value:function(){var t=this.layer.encodeStyleAttribute,n="",i=[];this.layer.enableShaderEncodeStyles.forEach(function(l){t[l]?n+="#define USE_ATTRIBUTE_".concat(l.toUpperCase(),` 0.0; `):i.push(" ".concat(yg[l]," u_").concat(l,";")),n+=` #ifdef USE_ATTRIBUTE_`.concat(l.toUpperCase(),` @@ -1871,7 +1871,7 @@ layout(std140) uniform AttributeUniforms { `).concat(yg[l]," ").concat(l," = u_").concat(l,`; #endif - `)}),{"vs:#decl":n,"fs:#decl":o,"vs:#main-start":s}}},{key:"getStyleAttribute",value:function(){var t=this,n={};return this.layer.enableShaderEncodeStyles.forEach(function(i){if(!t.layer.encodeStyleAttribute[i]){var o=t.layer.getLayerConfig()[i],s=typeof o=="undefined"?Iw[i]:o;i==="stroke"&&(s=fi(s)),n["u_"+i]=s}}),n}},{key:"registerStyleAttribute",value:function(){var t=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(n){var i=Pw(n);i&&(t.styleAttributeService.registerStyleAttribute(i),i.descriptor&&(i.descriptor.shaderLocation=m1[n]))})}},{key:"updateEncodeAttribute",value:function(t,n){this.encodeStyleAttribute[t]=n}},{key:"initUniformsBuffer",value:function(){var t=this.getUniformsBufferInfo(this.getStyleAttribute()),n=this.getCommonUniformsInfo();this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(p1(t.uniformsLength)),isUBO:!0}),this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(p1(n.uniformsLength)),isUBO:!0}),this.uniformBuffers=[this.attributeUnifoms,this.commonUnifoms]}},{key:"getUniformsBufferInfo",value:function(t){var n=0,i=[];return Object.values(t).forEach(function(o){Array.isArray(o)?(i.push.apply(i,(0,Wt.Z)(o)),n+=o.length):(i.push(o),n+=1)}),{uniformsOption:t,uniformsLength:n,uniformsArray:i}}},{key:"getCommonUniformsInfo",value:function(){return{uniformsLength:0,uniformsArray:[],uniformsOption:{}}}},{key:"updateStyleUnifoms",value:function(){var t=this.getUniformsBufferInfo(this.getStyleAttribute()),n=t.uniformsArray,i=this.getCommonUniformsInfo(),o=i.uniformsArray;this.attributeUnifoms.subData({offset:0,data:new Uint8Array(new Float32Array(n).buffer)}),this.commonUnifoms.subData({offset:0,data:new Uint8Array(new Float32Array(o).buffer)})}}]),e}(),v1=Oi(z0.prototype,"configService",[d1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z0),Z0=100,hL=36,pL=40;function g1(e){return e/180*Math.acos(-1)}function _1(e){var r=g1(e[0])+Math.PI/2,t=g1(e[1]),n=Z0+Math.random()*.4,i=n*Math.cos(t)*Math.cos(r),o=n*Math.cos(t)*Math.sin(r),s=n*Math.sin(t);return[o,s,i]}function dL(e,r){var t=mat4.create(),n=mat4.create(),i=vec3.fromValues(0,1,0),o=vec3.fromValues(0,0,0);r=r||{},e=typeof e!="undefined"?e:1;for(var s=typeof r.segments!="undefined"?r.segments:32,l=2+s,f=2*l,v=[],y=[],b=[],T=[],M=[],O=[],k=0;k<=l;k++){for(var $=k/l,G=$*Math.PI,oe=0;oe<=f;oe++){var ye=oe/f,Le=ye*Math.PI*2;mat4.identity(n),mat4.rotateZ(n,n,-G),mat4.identity(t),mat4.rotateY(t,t,Le),vec3.transformMat4(o,i,n),vec3.transformMat4(o,o,t),vec3.scale(o,o,-e),b.push(o.slice()),T.push.apply(T,_toConsumableArray(o.slice())),vec3.normalize(o,o),M.push.apply(M,_toConsumableArray(o.slice())),O.push([ye,1-$]),T.push(ye,1-$)}if(k>0)for(var $e=b.length,ut=$e-2*(f+1);ut+f+2<$e;ut++)v.push([ut,ut+1,ut+f+1]),y.push(ut,ut+1,ut+f+1),v.push([ut+f+1,ut+1,ut+f+2]),y.push(ut+f+1,ut+1,ut+f+2)}return{cells:v,positions:b,uvs:O,positionsArr:T,indicesArr:y,normalArr:M}}var xg=Or.Ue(),vL=Or.Ue(),Ws=Or.Ue(),Pp=Or.Ue(),lv=Or.Ue();function V0(e,r,t,n,i){Or.IH(e,t,n),Or.Fv(e,e),r=Or.al(-e[1],e[0]);var o=Or.al(-t[1],t[0]);return[i/Or.AK(r,o),r]}function Op(e,r){return Or.t8(e,-r[1],r[0])}function cv(e,r,t){return Or.lu(e,r,t),Or.Fv(e,e),e}function j0(e,r){return e[0]===r[0]&&e[1]===r[1]}function mL(e){for(var r=new Map,t=0;t0&&arguments[0]!==void 0?arguments[0]:{};(0,q.Z)(this,e),(0,B.Z)(this,"lastFlip",-1),(0,B.Z)(this,"miter",Or.al(0,0)),(0,B.Z)(this,"started",!1),(0,B.Z)(this,"dash",!1),(0,B.Z)(this,"totalDistance",0),(0,B.Z)(this,"currentIndex",0),this.join=r.join||"miter",this.cap=r.cap||"butt",this.miterLimit=r.miterLimit||10,this.thickness=r.thickness||1,this.dash=r.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,V.Z)(e,[{key:"simpleExtrude",value:function(t){var n=this.complex;if(t.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var i=t.length,o=n.startIndex,s=1;sthis.miterLimit&&(pn=!0)}pn?(M.push(this.normal[0],this.normal[1],0),M.push(Mr[0],Mr[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,b.push.apply(b,(0,Wt.Z)(this.lastFlip!==-br?[n,n+2,n+3]:[n+2,n+1,n+3])),b.push(n+2,n+3,n+4),Op(xg,Pp),Or.JG(this.normal,xg),M.push(this.normal[0],this.normal[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*br,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,y+=3):(this.extrusions(T,M,o,Mr,Jt,this.totalDistance),b.push.apply(b,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),br=-1,Or.JG(this.normal,Mr),y+=2),this.lastFlip=br}else{if(Op(this.normal,Ws),O){var $e=Or.Ue(),ut=Or.Ue();Or.lu(ut,Ws,this.normal),Or.IH($e,Ws,this.normal),M.push(ut[0],ut[1],0),M.push($e[0],$e[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(T,M,o,this.normal,this.thickness,this.totalDistance);b.push.apply(b,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),y+=2}return y}},{key:"segment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=this.cap==="square",T=this.join==="bevel",M=ko([o[0],o[1]]),O=ko([i[0],i[1]]);cv(Ws,M,O);var k=0;if(this.dash&&(k=this.lineSegmentDistance(M,O),this.totalDistance+=k),this.normal||(this.normal=Or.Ue(),Op(this.normal,Ws)),!this.started)if(this.started=!0,b){var $=Or.Ue(),G=Or.Ue();Or.IH($,this.normal,Ws),Or.IH(G,this.normal,Ws),y.push(G[0],G[1],0),y.push($[0],$[1],0),v.push(i[0],i[1],i[2]|0,this.totalDistance-k,-this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),v.push(i[0],i[1],i[2]|0,this.totalDistance-k,this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-k);if(f.push(n+0,n+1,n+2),s){var Le=ko([s[0],s[1]]);j0(M,Le)&&Or.IH(Le,M,Or.Fv(Le,Or.$X(Le,M,O))),cv(Pp,Le,M);var $e=V0(lv,Or.Ue(),Ws,Pp,this.thickness),ut=(0,yn.Z)($e,2),vt=ut[0],Rt=ut[1],Jt=Or.AK(lv,this.normal)<0?-1:1,Mr=T;if(!Mr&&this.join==="miter"){var br=vt;br>this.miterLimit&&(Mr=!0)}Mr?(y.push(this.normal[0],this.normal[1],0),y.push(Rt[0],Rt[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,f.push.apply(f,(0,Wt.Z)(this.lastFlip!==-Jt?[n,n+2,n+3]:[n+2,n+1,n+3])),f.push(n+2,n+3,n+4),Op(xg,Pp),Or.JG(this.normal,xg),y.push(this.normal[0],this.normal[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Jt,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l+=3):(this.extrusions(v,y,o,Rt,vt,this.totalDistance),f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Jt=-1,Or.JG(this.normal,Rt),l+=2),this.lastFlip=Jt}else{if(Op(this.normal,Ws),b){var oe=Or.Ue(),ye=Or.Ue();Or.lu(ye,Ws,this.normal),Or.IH(oe,Ws,this.normal),y.push(ye[0],ye[1],0),y.push(oe[0],oe[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance);f.push.apply(f,(0,Wt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2}return l}},{key:"extrusions",value:function(t,n,i,o,s,l){n.push(o[0],o[1],0),n.push(o[0],o[1],0),t.push(i[0],i[1],i[2]|0,l,-s,i[2]|0),this.complex.indexes.push(this.currentIndex),t.push(i[0],i[1],i[2]|0,l,s,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(t,n){var i=n[0]-t[0],o=n[1]-t[1];return Math.sqrt(i*i+o*o)}}]),e}(),La=L(54442);function Dw(e){var r=e[0][0],t=e[0][e[0].length-1];r[0]===t[0]&&r[1]===t[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var n=e[0].length,i=fs().flatten(e),o=i.vertices,s=i.dimensions,l=[],f=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,t=e[0][0],n=e[0][e[0].length-1];t[0]===n[0]&&t[1]===n[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var i=e[0].length,o=fs().flatten(e),s=o.vertices,l=o.dimensions,f=[],v=[],y=[],b=0;b3&&arguments[3]!==void 0?arguments[3]:!1,i=La.create(),o=La.create(),s=La.create();n&&(e=Bu(e),r=Bu(r),t=Bu(t));var l=La.fromValues.apply(La,(0,Wt.Z)(e)),f=La.fromValues.apply(La,(0,Wt.Z)(r)),v=La.fromValues.apply(La,(0,Wt.Z)(t));La.sub(i,v,f),La.sub(o,l,f),La.cross(s,i,o);var y=La.create();return La.normalize(y,s),y}var Yc,cm=function(e){return e.CYLINDER="cylinder",e.SQUARECOLUMN="squareColumn",e.TRIANGLECOLUMN="triangleColumn",e.HEXAGONCOLUMN="hexagonColumn",e.PENTAGONCOLUMN="pentagonColumn",e}({}),fm=function(e){return e.CIRCLE="circle",e.SQUARE="square",e.TRIANGLE="triangle",e.HEXAGON="hexagon",e.PENTAGON="pentagon",e}({});function hm(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=Math.PI*2/e,n=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;if(bg&&bg[e])return bg[e];var t=fv[e]?fv[e]():fv.cylinder(),n=y1([t],r);return bg[e]=n,n}function yL(e,r){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=new Float32Array(e.length/t*3),o,s,l,f=vec3.create(),v=vec3.create(),y=vec3.create(),b=0,T=r.length;b0)for(var Je=b.length,ht=Je-2*(f+1);ht+f+20&&arguments[0]!==void 0?arguments[0]:{};(0,Q.Z)(this,e),(0,B.Z)(this,"lastFlip",-1),(0,B.Z)(this,"miter",Or.al(0,0)),(0,B.Z)(this,"started",!1),(0,B.Z)(this,"dash",!1),(0,B.Z)(this,"totalDistance",0),(0,B.Z)(this,"currentIndex",0),this.join=r.join||"miter",this.cap=r.cap||"butt",this.miterLimit=r.miterLimit||10,this.thickness=r.thickness||1,this.dash=r.dash||!1,this.complex={positions:[],indices:[],normals:[],startIndex:0,indexes:[]}}return(0,j.Z)(e,[{key:"simpleExtrude",value:function(t){var n=this.complex;if(t.length<=1)return n;this.lastFlip=-1,this.started=!1,this.normal=null,this.totalDistance=0;for(var i=t.length,o=n.startIndex,s=1;sthis.miterLimit&&(mn=!0)}mn?(M.push(this.normal[0],this.normal[1],0),M.push(Ir[0],Ir[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Er,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*Er,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,b.push.apply(b,(0,Kt.Z)(this.lastFlip!==-Er?[n,n+2,n+3]:[n+2,n+1,n+3])),b.push(n+2,n+3,n+4),Op(xg,Pp),Or.JG(this.normal,xg),M.push(this.normal[0],this.normal[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*Er,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,y+=3):(this.extrusions(T,M,o,Ir,tr,this.totalDistance),b.push.apply(b,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Er=-1,Or.JG(this.normal,Ir),y+=2),this.lastFlip=Er}else{if(Op(this.normal,Gs),O){var Je=Or.Ue(),ht=Or.Ue();Or.lu(ht,Gs,this.normal),Or.IH(Je,Gs,this.normal),M.push(ht[0],ht[1],0),M.push(Je[0],Je[1],0),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),T.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(T,M,o,this.normal,this.thickness,this.totalDistance);b.push.apply(b,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),y+=2}return y}},{key:"segment",value:function(t,n,i,o,s){var l=0,f=t.indices,v=t.positions,y=t.normals,b=this.cap==="square",T=this.join==="bevel",M=Fo([o[0],o[1]]),O=Fo([i[0],i[1]]);cv(Gs,M,O);var F=0;if(this.dash&&(F=this.lineSegmentDistance(M,O),this.totalDistance+=F),this.normal||(this.normal=Or.Ue(),Op(this.normal,Gs)),!this.started)if(this.started=!0,b){var $=Or.Ue(),G=Or.Ue();Or.IH($,this.normal,Gs),Or.IH(G,this.normal,Gs),y.push(G[0],G[1],0),y.push($[0],$[1],0),v.push(i[0],i[1],i[2]|0,this.totalDistance-F,-this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),v.push(i[0],i[1],i[2]|0,this.totalDistance-F,this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,i,this.normal,this.thickness,this.totalDistance-F);if(f.push(n+0,n+1,n+2),s){var ze=Fo([s[0],s[1]]);j0(M,ze)&&Or.IH(ze,M,Or.Fv(ze,Or.$X(ze,M,O))),cv(Pp,ze,M);var Je=V0(lv,Or.Ue(),Gs,Pp,this.thickness),ht=(0,Sn.Z)(Je,2),gt=ht[0],Ot=ht[1],tr=Or.AK(lv,this.normal)<0?-1:1,Ir=T;if(!Ir&&this.join==="miter"){var Er=gt;Er>this.miterLimit&&(Ir=!0)}Ir?(y.push(this.normal[0],this.normal[1],0),y.push(Ot[0],Ot[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*tr,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness*tr,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,f.push.apply(f,(0,Kt.Z)(this.lastFlip!==-tr?[n,n+2,n+3]:[n+2,n+1,n+3])),f.push(n+2,n+3,n+4),Op(xg,Pp),Or.JG(this.normal,xg),y.push(this.normal[0],this.normal[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,-this.thickness*tr,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l+=3):(this.extrusions(v,y,o,Ot,gt,this.totalDistance),f.push.apply(f,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),tr=-1,Or.JG(this.normal,Ot),l+=2),this.lastFlip=tr}else{if(Op(this.normal,Gs),b){var ue=Or.Ue(),xe=Or.Ue();Or.lu(xe,Gs,this.normal),Or.IH(ue,Gs,this.normal),y.push(xe[0],xe[1],0),y.push(ue[0],ue[1],0),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),v.push(o[0],o[1],o[2]|0,this.totalDistance,this.thickness,o[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(v,y,o,this.normal,this.thickness,this.totalDistance);f.push.apply(f,(0,Kt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2}return l}},{key:"extrusions",value:function(t,n,i,o,s,l){n.push(o[0],o[1],0),n.push(o[0],o[1],0),t.push(i[0],i[1],i[2]|0,l,-s,i[2]|0),this.complex.indexes.push(this.currentIndex),t.push(i[0],i[1],i[2]|0,l,s,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}},{key:"lineSegmentDistance",value:function(t,n){var i=n[0]-t[0],o=n[1]-t[1];return Math.sqrt(i*i+o*o)}}]),e}(),La=L(68072);function Dw(e){var r=e[0][0],t=e[0][e[0].length-1];r[0]===t[0]&&r[1]===t[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var n=e[0].length,i=fs().flatten(e),o=i.vertices,s=i.dimensions,l=[],f=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:!1,t=e[0][0],n=e[0][e[0].length-1];t[0]===n[0]&&t[1]===n[1]&&(e[0]=e[0].slice(0,e[0].length-1));for(var i=e[0].length,o=fs().flatten(e),s=o.vertices,l=o.dimensions,f=[],v=[],y=[],b=0;b3&&arguments[3]!==void 0?arguments[3]:!1,i=La.create(),o=La.create(),s=La.create();n&&(e=Bu(e),r=Bu(r),t=Bu(t));var l=La.fromValues.apply(La,(0,Kt.Z)(e)),f=La.fromValues.apply(La,(0,Kt.Z)(r)),v=La.fromValues.apply(La,(0,Kt.Z)(t));La.sub(i,v,f),La.sub(o,l,f),La.cross(s,i,o);var y=La.create();return La.normalize(y,s),y}var Yc,cm=function(e){return e.CYLINDER="cylinder",e.SQUARECOLUMN="squareColumn",e.TRIANGLECOLUMN="triangleColumn",e.HEXAGONCOLUMN="hexagonColumn",e.PENTAGONCOLUMN="pentagonColumn",e}({}),fm=function(e){return e.CIRCLE="circle",e.SQUARE="square",e.TRIANGLE="triangle",e.HEXAGON="hexagon",e.PENTAGON="pentagon",e}({});function hm(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=Math.PI*2/e,n=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;if(bg&&bg[e])return bg[e];var t=fv[e]?fv[e]():fv.cylinder(),n=y1([t],r);return bg[e]=n,n}function xL(e,r){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=new Float32Array(e.length/t*3),o,s,l,f=vec3.create(),v=vec3.create(),y=vec3.create(),b=0,T=r.length;b0&&arguments[0]!==void 0?arguments[0]:{},s=this.getModelType();return s==="heatmap"?(this.layerModel&&this.layerModel.render(o),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(l){return l.draw({uniforms:i.layerModel.getUninforms(),blend:i.layerModel.getBlend(),stencil:i.layerModel.getStencil(o)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(i){i.attributes&&i.elements?this.models[0].updateAttributesAndElements(i.attributes,i.elements):console.warn("data error")}},{key:"getModelType",value:function(){var i,o=this.styleAttributeService.getLayerStyleAttribute("shape"),s=this.getLayerConfig(),l=s.shape3d,f=this.getSource(),v=f.data.type,y=(o==null||(i=o.scale)===null||i===void 0?void 0:i.field)||"heatmap";return y==="heatmap"||y==="heatmap3d"?"heatmap":v==="hexagon"?(l==null?void 0:l.indexOf(y))===-1?"hexagon":"grid3d":v==="grid"?(l==null?void 0:l.indexOf(y))===-1?"grid":"grid3d":"heatmap"}}]),t}(Ip);function MC(e){var r=IC();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function IC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var PC=`precision mediump float; +`,SC=function(e){(0,Le.Z)(t,e);var r=yC(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=i.coverage,l=i.angle;return{u_opacity:o||1,u_coverage:s||.9,u_angle:l||0,u_radius:[this.layer.getSource().data.xOffset,this.layer.getSource().data.yOffset]}}},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s;return ge().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.layer.buildLayerModel({moduleName:"heatmapHexagon",vertexShader:EC,fragmentShader:bC,triangulation:w1,depth:{enable:!1},primitive:R.TRIANGLES});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"pos",type:dn.Attribute,descriptor:{name:"a_Pos",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=o.version==="GAODE2.x"?o.originCoordinates:o.coordinates;return[s[0],s[1],0]}}})}}]),t}(Ma),AC={heatmap:I1,heatmap3d:I1,grid:nC,grid3d:uC,hexagon:SC},TC=AC;function wC(e){var r=CC();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function CC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var RC=function(e){(0,Le.Z)(t,e);var r=wC(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{},s=this.getModelType();return s==="heatmap"?(this.layerModel&&this.layerModel.render(o),this):this.encodeDataLength<=0&&!this.forceRender?this:(this.hooks.beforeRender.call(),this.models.forEach(function(l){return l.draw({uniforms:i.layerModel.getUninforms(),blend:i.layerModel.getBlend(),stencil:i.layerModel.getStencil(o)})}),this.hooks.afterRender.call(),this)}},{key:"updateModelData",value:function(i){i.attributes&&i.elements?this.models[0].updateAttributesAndElements(i.attributes,i.elements):console.warn("data error")}},{key:"getModelType",value:function(){var i,o=this.styleAttributeService.getLayerStyleAttribute("shape"),s=this.getLayerConfig(),l=s.shape3d,f=this.getSource(),v=f.data.type,y=(o==null||(i=o.scale)===null||i===void 0?void 0:i.field)||"heatmap";return y==="heatmap"||y==="heatmap3d"?"heatmap":v==="hexagon"?(l==null?void 0:l.indexOf(y))===-1?"hexagon":"grid3d":v==="grid"?(l==null?void 0:l.indexOf(y))===-1?"grid":"grid3d":"heatmap"}}]),t}(Ip);function MC(e){var r=IC();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function IC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var PC=`precision mediump float; uniform float u_opacity: 1.0; uniform sampler2D u_texture; varying vec2 v_texCoord; @@ -2399,7 +2399,7 @@ void main() { gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); } -`,DC=function(e){(0,De.Z)(t,e);var r=MC(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity;return{u_opacity:o||1,u_texture:this.texture}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.layer.getSource(),l=this.rendererService.createTexture2D,this.texture=l({height:0,width:0}),b.next=5,s.data.images;case 5:return f=b.sent,this.texture=l({data:f[0],width:f[0].width,height:f[0].height,mag:R.LINEAR,min:R.LINEAR}),b.next=9,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:OC,fragmentShader:PC,triangulation:Sg,primitive:R.TRIANGLES,blend:{enable:!0},depth:{enable:!1}});case 9:return v=b.sent,b.abrupt("return",[v]);case 11:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.initModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:fn.Attribute,descriptor:{name:"a_Uv",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}}]),t}(Ma),kC={image:DC},FC=kC;function BC(e){var r=LC();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function LC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var P1=function(e){(0,De.Z)(t,e);var r=BC(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=(0,cl.Z)(t.source)==="object"?t.source.type:t.source,i=(0,cl.Z)(t.target)==="object"?t.target.type:t.target,o=(0,cl.Z)(t.source)==="object"?t.source:{},s=o.width,l=s===void 0?n?O1[n]:0:s,f=o.height,v=f===void 0?2:f,y=(0,cl.Z)(t.target)==="object"?t.target:{},b=y.width,T=b===void 0?i?O1[i]:0:b,M=y.height,O=M===void 0?2:M;return{vertices:[0,Hl,1*l].concat((0,Wt.Z)(e),[1,Hl,-1*T],(0,Wt.Z)(e),[1,-Hl,-1*T],(0,Wt.Z)(e),[0,-Hl,1*l],(0,Wt.Z)(e),[0,Hl,1*l],(0,Wt.Z)(e),[1,Hl,-1*T],(0,Wt.Z)(e),[1,-Hl,-1*T],(0,Wt.Z)(e),[0,-Hl,1*l],(0,Wt.Z)(e)),outLineIndices:[0,1,2,0,2,3].map(function(k){return k+r}),indices:[4,5,6,4,6,7].map(function(k){return k+r}),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function D1(e,r){var t=(0,cl.Z)(e)==="object"?e.type:e,n=r==="source"?1:-1,i=(0,cl.Z)(e)==="object"?e:{};switch(t){case"circle":return m3(n,i);case"triangle":return f3(n,i);case"diamond":return p3(n,i);case"rect":return h3(n,i);case"classic":return v3(n,i);case"halfTriangle":return c3(n,i);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function _3(e){var r=e.coordinates.flat(),t=1,n=1;return{vertices:[1,0,0].concat((0,Wt.Z)(r),[1,2,-3],(0,Wt.Z)(r),[1,1,-3],(0,Wt.Z)(r),[0,1,0],(0,Wt.Z)(r),[0,0,0],(0,Wt.Z)(r),[1,0,0],(0,Wt.Z)(r),[1,2,-3],(0,Wt.Z)(r),[1,1,-3],(0,Wt.Z)(r),[0,1,0],(0,Wt.Z)(r),[0,0,0],(0,Wt.Z)(r)),normals:[-t,2*n,1,2*n,-n,1,n,-n,1,n,-n,1,-t,-n,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function y3(e,r){return r?x3(e,r):_3(e)}function x3(e,r){var t=e.coordinates.flat(),n=r,i=n.target,o=i===void 0?"classic":i,s=n.source,l=s===void 0?"circle":s,f=k1(D1(l,"source"),t,0,0),v=g3(t,f.vertices.length/7,r),y=k1(D1(o,"target"),t,1,f.vertices.length/7+v.vertices.length/7),b={vertices:[].concat((0,Wt.Z)(f.vertices),(0,Wt.Z)(v.vertices),(0,Wt.Z)(y.vertices)),indices:[].concat((0,Wt.Z)(f.outLineIndices),(0,Wt.Z)(v.outLineIndices),(0,Wt.Z)(y.outLineIndices),(0,Wt.Z)(f.indices),(0,Wt.Z)(v.indices),(0,Wt.Z)(y.indices)),normals:[].concat((0,Wt.Z)(f.normals),(0,Wt.Z)(v.normals),(0,Wt.Z)(y.normals)),size:7};return b}function k1(e,r){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=[],o=e.vertices,s=e.indices,l=e.dimensions,f=e.outLineIndices,v=0;v1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=(0,cl.Z)(t.source)==="object"?t.source.type:t.source,i=(0,cl.Z)(t.target)==="object"?t.target.type:t.target,o=(0,cl.Z)(t.source)==="object"?t.source:{},s=o.width,l=s===void 0?n?O1[n]:0:s,f=o.height,v=f===void 0?2:f,y=(0,cl.Z)(t.target)==="object"?t.target:{},b=y.width,T=b===void 0?i?O1[i]:0:b,M=y.height,O=M===void 0?2:M;return{vertices:[0,Hl,1*l].concat((0,Kt.Z)(e),[1,Hl,-1*T],(0,Kt.Z)(e),[1,-Hl,-1*T],(0,Kt.Z)(e),[0,-Hl,1*l],(0,Kt.Z)(e),[0,Hl,1*l],(0,Kt.Z)(e),[1,Hl,-1*T],(0,Kt.Z)(e),[1,-Hl,-1*T],(0,Kt.Z)(e),[0,-Hl,1*l],(0,Kt.Z)(e)),outLineIndices:[0,1,2,0,2,3].map(function(F){return F+r}),indices:[4,5,6,4,6,7].map(function(F){return F+r}),normals:[1,-1,1,1,1,1,-1,0,1,-1,0,1,0,0,0,0,0,0,0,0,0,0,0,0],dimensions:2}}function D1(e,r){var t=(0,cl.Z)(e)==="object"?e.type:e,n=r==="source"?1:-1,i=(0,cl.Z)(e)==="object"?e:{};switch(t){case"circle":return m3(n,i);case"triangle":return f3(n,i);case"diamond":return p3(n,i);case"rect":return h3(n,i);case"classic":return v3(n,i);case"halfTriangle":return c3(n,i);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function _3(e){var r=e.coordinates.flat(),t=1,n=1;return{vertices:[1,0,0].concat((0,Kt.Z)(r),[1,2,-3],(0,Kt.Z)(r),[1,1,-3],(0,Kt.Z)(r),[0,1,0],(0,Kt.Z)(r),[0,0,0],(0,Kt.Z)(r),[1,0,0],(0,Kt.Z)(r),[1,2,-3],(0,Kt.Z)(r),[1,1,-3],(0,Kt.Z)(r),[0,1,0],(0,Kt.Z)(r),[0,0,0],(0,Kt.Z)(r)),normals:[-t,2*n,1,2*n,-n,1,n,-n,1,n,-n,1,-t,-n,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],indices:[0,1,2,0,2,3,0,3,4,5,6,7,5,7,8,5,8,9],size:7}}function y3(e,r){return r?x3(e,r):_3(e)}function x3(e,r){var t=e.coordinates.flat(),n=r,i=n.target,o=i===void 0?"classic":i,s=n.source,l=s===void 0?"circle":s,f=F1(D1(l,"source"),t,0,0),v=g3(t,f.vertices.length/7,r),y=F1(D1(o,"target"),t,1,f.vertices.length/7+v.vertices.length/7),b={vertices:[].concat((0,Kt.Z)(f.vertices),(0,Kt.Z)(v.vertices),(0,Kt.Z)(y.vertices)),indices:[].concat((0,Kt.Z)(f.outLineIndices),(0,Kt.Z)(v.outLineIndices),(0,Kt.Z)(y.outLineIndices),(0,Kt.Z)(f.indices),(0,Kt.Z)(v.indices),(0,Kt.Z)(y.indices)),normals:[].concat((0,Kt.Z)(f.normals),(0,Kt.Z)(v.normals),(0,Kt.Z)(y.normals)),size:7};return b}function F1(e,r){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=[],o=e.vertices,s=e.indices,l=e.dimensions,f=e.outLineIndices,v=0;v0&&s.enable){var ut=s.speed,vt=ut===void 0?.01:ut;this.raiseCount+=vt,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(T),u_heightfixed:Number(O),u_r:s.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:dR(f)?f:1,u_linearColor:ye,u_sourceColor:Le,u_targetColor:$e,u_opacitylinear:Number($.enable),u_opacitylinear_dir:$.dir==="up"?1:0,u_lightEnable:Number(oe)}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.layer.getLayerConfig(),l=s.animateOption.repeat,f=l===void 0?1:l,this.raiseRepeat=f,b.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:pR,fragmentShader:hR,triangulation:W0,depth:{enable:!0},cull:{enable:!0,face:Qi(this.mapService.version)},blend:this.getBlend()});case 4:return v=b.sent,b.abrupt("return",[v]);case 6:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=o.size;if(s){var l=[];return Array.isArray(s)&&(l=s.length===2?[s[0],s[0],s[1]]:s),Array.isArray(s)||(l=[s,s,s]),l}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:fn.Attribute,descriptor:{name:"a_Normal",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f,v){return v}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:fn.Attribute,descriptor:{name:"a_Pos",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=Ds(o.coordinates);return _1([s[0],s[1]])}}})}}]),t}(Ma);function mR(e){var r=gR();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function gR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _R=`uniform float u_additive; +`,dR=oi.isNumber,vR=function(e){(0,Le.Z)(t,e);var r=cR(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&s.enable){var ht=s.speed,gt=ht===void 0?.01:ht;this.raiseCount+=gt,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}return{u_pickLight:Number(T),u_heightfixed:Number(O),u_r:s.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:dR(f)?f:1,u_linearColor:xe,u_sourceColor:ze,u_targetColor:Je,u_opacitylinear:Number($.enable),u_opacitylinear_dir:$.dir==="up"?1:0,u_lightEnable:Number(ue)}}},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v;return ge().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.layer.getLayerConfig(),l=s.animateOption.repeat,f=l===void 0?1:l,this.raiseRepeat=f,b.next=4,this.layer.buildLayerModel({moduleName:"pointEarthExtrude",vertexShader:pR,fragmentShader:hR,triangulation:W0,depth:{enable:!0},cull:{enable:!0,face:ea(this.mapService.version)},blend:this.getBlend()});case 4:return v=b.sent,b.abrupt("return",[v]);case 6:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:dn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=o.size;if(s){var l=[];return Array.isArray(s)&&(l=s.length===2?[s[0],s[0],s[1]]:s),Array.isArray(s)||(l=[s,s,s]),l}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:dn.Attribute,descriptor:{name:"a_Normal",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f,v){return v}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:dn.Attribute,descriptor:{name:"a_Pos",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=Fs(o.coordinates);return _1([s[0],s[1]])}}})}}]),t}(Ma);function mR(e){var r=gR();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function gR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var _R=`uniform float u_additive; uniform float u_opacity : 1; uniform float u_stroke_opacity : 1; uniform float u_stroke_width : 2; @@ -5255,7 +5255,7 @@ void main() { setPickingColor(a_PickingColor); } -`,xR=function(e){(0,De.Z)(t,e);var r=mR(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.strokeOpacity,f=l===void 0?1:l,v=i.strokeWidth,y=v===void 0?0:v,b=i.stroke,T=b===void 0?"rgba(0,0,0,0)":b,M=i.blend,O=i.blur,k=O===void 0?0:O;return{u_blur:k,u_additive:M==="additive"?1:0,u_opacity:s,u_stroke_opacity:f,u_stroke_width:y,u_stroke_color:fi(T)}}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),o=i.animateOption,s=o===void 0?{enable:!1}:o;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.layer.triangulation=A1,f.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:yR,fragmentShader:_R,triangulation:A1,depth:{enable:!0},blend:this.getBlend()});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var i=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:fn.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(s,l,f,v){var y=(0,yn.Z)(f,3),b=y[0],T=y[1],M=y[2],O=La.fromValues(0,0,1),k=La.fromValues(b,0,M),$=b>=0?La.angle(O,k):Math.PI*2-La.angle(O,k),G=Math.PI*2-Math.asin(T/100),oe=ve.create();ve.rotateY(oe,oe,$),ve.rotateX(oe,oe,G);var ye=La.fromValues(1,1,0);La.transformMat4(ye,ye,oe),La.normalize(ye,ye);var Le=La.fromValues(-1,1,0);La.transformMat4(Le,Le,oe),La.normalize(Le,Le);var $e=La.fromValues(-1,-1,0);La.transformMat4($e,$e,oe),La.normalize($e,$e);var ut=La.fromValues(1,-1,0);La.transformMat4(ut,ut,oe),La.normalize(ut,ut);var vt=[].concat((0,Wt.Z)(ye),(0,Wt.Z)(Le),(0,Wt.Z)($e),(0,Wt.Z)(ut)),Rt=v%4*3;return[vt[Rt],vt[Rt+1],vt[Rt+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.size,f=l===void 0?5:l;return Array.isArray(f)?[f[0]]:[f]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:fn.Attribute,descriptor:{name:"a_Shape",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.shape,f=l===void 0?2:l,v=i.layer.getLayerConfig().shape2d,y=v.indexOf(f);return[y]}}})}}]),t}(Ma);function bR(e){var r=ER();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function ER(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var SR=`in vec4 v_color; +`,xR=function(e){(0,Le.Z)(t,e);var r=mR(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.strokeOpacity,f=l===void 0?1:l,v=i.strokeWidth,y=v===void 0?0:v,b=i.stroke,T=b===void 0?"rgba(0,0,0,0)":b,M=i.blend,O=i.blur,F=O===void 0?0:O;return{u_blur:F,u_additive:M==="additive"?1:0,u_opacity:s,u_stroke_opacity:f,u_stroke_width:y,u_stroke_color:fi(T)}}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),o=i.animateOption,s=o===void 0?{enable:!1}:o;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s;return ge().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.layer.triangulation=A1,f.next=3,this.layer.buildLayerModel({moduleName:"pointEarthFill",vertexShader:yR,fragmentShader:_R,triangulation:A1,depth:{enable:!0},blend:this.getBlend()});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var i=this;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:dn.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(s,l,f,v){var y=(0,Sn.Z)(f,3),b=y[0],T=y[1],M=y[2],O=La.fromValues(0,0,1),F=La.fromValues(b,0,M),$=b>=0?La.angle(O,F):Math.PI*2-La.angle(O,F),G=Math.PI*2-Math.asin(T/100),ue=me.create();me.rotateY(ue,ue,$),me.rotateX(ue,ue,G);var xe=La.fromValues(1,1,0);La.transformMat4(xe,xe,ue),La.normalize(xe,xe);var ze=La.fromValues(-1,1,0);La.transformMat4(ze,ze,ue),La.normalize(ze,ze);var Je=La.fromValues(-1,-1,0);La.transformMat4(Je,Je,ue),La.normalize(Je,Je);var ht=La.fromValues(1,-1,0);La.transformMat4(ht,ht,ue),La.normalize(ht,ht);var gt=[].concat((0,Kt.Z)(xe),(0,Kt.Z)(ze),(0,Kt.Z)(Je),(0,Kt.Z)(ht)),Ot=v%4*3;return[gt[Ot],gt[Ot+1],gt[Ot+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:dn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.size,f=l===void 0?5:l;return Array.isArray(f)?[f[0]]:[f]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:dn.Attribute,descriptor:{name:"a_Shape",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.shape,f=l===void 0?2:l,v=i.layer.getLayerConfig().shape2d,y=v.indexOf(f);return[y]}}})}}]),t}(Ma);function bR(e){var r=ER();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function ER(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var SR=`in vec4 v_color; in float v_lightWeight; out vec4 outputColor; @@ -5388,7 +5388,7 @@ void main() { setPickingColor(a_PickingColor); } -`,U1=function(e){(0,De.Z)(t,e);var r=bR(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&s.enable){var Le=s.speed,$e=Le===void 0?.01:Le;this.raiseCount+=$e,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var ut={u_pickLight:Number(y),u_heightfixed:Number(T),u_r:s.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:G,u_sourceColor:oe,u_targetColor:ye,u_opacitylinear:Number(O.enable),u_opacitylinear_dir:O.dir==="up"?1:0,u_lightEnable:Number($)},vt=this.getUniformsBufferInfo(ut);return vt}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b;return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s=this.layer.getLayerConfig(),l=s.depth,f=l===void 0?!0:l,v=s.animateOption.repeat,y=v===void 0?1:v,this.raiseRepeat=y,this.initUniformsBuffer(),M.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:AR,fragmentShader:SR,triangulation:W0,inject:this.getInject(),cull:{enable:!0,face:Qi(this.mapService.version)},depth:{enable:f}});case 5:return b=M.sent,M.abrupt("return",[b]);case 7:case"end":return M.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",shaderLocation:Ms.SIZE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=o.size;if(s){var l=[];return Array.isArray(s)&&(l=s.length===2?[s[0],s[0],s[1]]:s),Array.isArray(s)||(l=[s,s,s]),l}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:fn.Attribute,descriptor:{name:"a_Normal",shaderLocation:Ms.NORMAL,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f,v){return v}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:fn.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Ms.EXTRUDE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=Ds(o.coordinates);return[s[0],s[1],0]}}})}}]),t}(Ma);function TR(e){var r=wR();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function wR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var z1=` +`,U1=function(e){(0,Le.Z)(t,e);var r=bR(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&s.enable){var ze=s.speed,Je=ze===void 0?.01:ze;this.raiseCount+=Je,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var ht={u_pickLight:Number(y),u_heightfixed:Number(T),u_r:s.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:G,u_sourceColor:ue,u_targetColor:xe,u_opacitylinear:Number(O.enable),u_opacitylinear_dir:O.dir==="up"?1:0,u_lightEnable:Number($)},gt=this.getUniformsBufferInfo(ht);return gt}},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v,y,b;return ge().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s=this.layer.getLayerConfig(),l=s.depth,f=l===void 0?!0:l,v=s.animateOption.repeat,y=v===void 0?1:v,this.raiseRepeat=y,this.initUniformsBuffer(),M.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:AR,fragmentShader:SR,triangulation:W0,inject:this.getInject(),cull:{enable:!0,face:ea(this.mapService.version)},depth:{enable:f}});case 5:return b=M.sent,M.abrupt("return",[b]);case 7:case"end":return M.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:dn.Attribute,descriptor:{name:"a_Size",shaderLocation:Ms.SIZE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=o.size;if(s){var l=[];return Array.isArray(s)&&(l=s.length===2?[s[0],s[0],s[1]]:s),Array.isArray(s)||(l=[s,s,s]),l}else return[2,2,2]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:dn.Attribute,descriptor:{name:"a_Normal",shaderLocation:Ms.NORMAL,buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f,v){return v}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:dn.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Ms.EXTRUDE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o){var s=Fs(o.coordinates);return[s[0],s[1],0]}}})}}]),t}(Ma);function TR(e){var r=wR();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function wR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var z1=` uniform float u_additive; @@ -5605,7 +5605,7 @@ void main() { setPickingColor(a_PickingColor); } -`,Z1=function(e){(0,De.Z)(t,e);var r=TR(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.strokeOpacity,s=o===void 0?1:o,l=i.strokeWidth,f=l===void 0?0:l,v=i.blend,y=i.blur,b=y===void 0?0:y,T=i.raisingHeight,M=T===void 0?0:T,O=i.heightfixed,k=O===void 0?!1:O,$=i.unit,G=$===void 0?"pixel":$,oe=(0,H.Z)({u_blur_height_fixed:[b,Number(M),Number(k)],u_additive:v==="additive"?1:0,u_stroke_opacity:s,u_stroke_width:f,u_size_unit:Y0[G]},this.getStyleAttribute()),ye=this.getStyleAttribute();return this.uniformBuffers[0].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,Wt.Z)(ye.u_stroke),(0,Wt.Z)(ye.u_offsets),[ye.u_opacity,ye.u_rotation])).buffer)}),this.uniformBuffers[1].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,Wt.Z)(oe.u_blur_height_fixed),[oe.u_stroke_width,oe.u_stroke_opacity,oe.u_additive,oe.u_size_unit])).buffer)}),oe}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),o=i.animateOption,s=o===void 0?{enable:!1}:o;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),pf)}},{key:"initModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b,T,M,O,k;return me().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return s=this.layer.getLayerConfig(),l=s.animateOption,f=l===void 0?{enable:!1}:l,v=this.getShaders(f),y=v.frag,b=v.vert,T=v.type,this.layer.triangulation=pf,M=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),O=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),this.uniformBuffers.push(M,O),G.next=8,this.layer.buildLayerModel({moduleName:T,vertexShader:b,fragmentShader:y,inject:this.getInject(),triangulation:pf,depth:{enable:!1}});case 8:return k=G.sent,G.abrupt("return",[k]);case 10:case"end":return G.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(i){if(i.enable)switch(i.type){case"wave":return{frag:z1,vert:K0,type:"pointWave"};default:return{frag:z1,vert:K0,type:"pointWave"}}else return{frag:CR,vert:K0,type:"pointFill"}}},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:fn.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Ms.EXTRUDE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(s,l,f,v){var y=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],b=v%4*3;return[y[b],y[b+1],y[b+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",shaderLocation:Ms.SIZE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.size,f=l===void 0?5:l;return Array.isArray(f)?[f[0]]:[f]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:fn.Attribute,descriptor:{name:"a_Shape",shaderLocation:Ms.SHAPE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.shape,f=l===void 0?2:l,v=i.indexOf(f);return[v]}}})}}]),t}(Ma);function RR(e){var r=MR();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function MR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var IR=`uniform sampler2D u_texture; +`,Z1=function(e){(0,Le.Z)(t,e);var r=TR(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.strokeOpacity,s=o===void 0?1:o,l=i.strokeWidth,f=l===void 0?0:l,v=i.blend,y=i.blur,b=y===void 0?0:y,T=i.raisingHeight,M=T===void 0?0:T,O=i.heightfixed,F=O===void 0?!1:O,$=i.unit,G=$===void 0?"pixel":$,ue=(0,V.Z)({u_blur_height_fixed:[b,Number(M),Number(F)],u_additive:v==="additive"?1:0,u_stroke_opacity:s,u_stroke_width:f,u_size_unit:Y0[G]},this.getStyleAttribute()),xe=this.getStyleAttribute();return this.uniformBuffers[0].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,Kt.Z)(xe.u_stroke),(0,Kt.Z)(xe.u_offsets),[xe.u_opacity,xe.u_rotation])).buffer)}),this.uniformBuffers[1].subData({offset:0,data:new Uint8Array(new Float32Array([].concat((0,Kt.Z)(ue.u_blur_height_fixed),[ue.u_stroke_width,ue.u_stroke_opacity,ue.u_additive,ue.u_size_unit])).buffer)}),ue}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),o=i.animateOption,s=o===void 0?{enable:!1}:o;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),pf)}},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v,y,b,T,M,O,F;return ge().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return s=this.layer.getLayerConfig(),l=s.animateOption,f=l===void 0?{enable:!1}:l,v=this.getShaders(f),y=v.frag,b=v.vert,T=v.type,this.layer.triangulation=pf,M=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),O=this.rendererService.createBuffer({data:new Float32Array(8),isUBO:!0}),this.uniformBuffers.push(M,O),G.next=8,this.layer.buildLayerModel({moduleName:T,vertexShader:b,fragmentShader:y,inject:this.getInject(),triangulation:pf,depth:{enable:!1}});case 8:return F=G.sent,G.abrupt("return",[F]);case 10:case"end":return G.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(i){if(i.enable)switch(i.type){case"wave":return{frag:z1,vert:K0,type:"pointWave"};default:return{frag:z1,vert:K0,type:"pointWave"}}else return{frag:CR,vert:K0,type:"pointFill"}}},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getLayerConfig().shape2d;this.styleAttributeService.registerStyleAttribute({name:"extrude",type:dn.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Ms.EXTRUDE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(s,l,f,v){var y=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],b=v%4*3;return[y[b],y[b+1],y[b+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:dn.Attribute,descriptor:{name:"a_Size",shaderLocation:Ms.SIZE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.size,f=l===void 0?5:l;return Array.isArray(f)?[f[0]]:[f]}}}),this.styleAttributeService.registerStyleAttribute({name:"shape",type:dn.Attribute,descriptor:{name:"a_Shape",shaderLocation:Ms.SHAPE,buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(s){var l=s.shape,f=l===void 0?2:l,v=i.indexOf(f);return[v]}}})}}]),t}(Ma);function RR(e){var r=MR();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function MR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var IR=`uniform sampler2D u_texture; uniform vec2 u_textSize; uniform float u_opacity : 1; @@ -5682,7 +5682,7 @@ void main() { setPickingColor(a_PickingColor); } -`,OR=function(e){(0,De.Z)(t,e);var r=RR(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function XR(e,r){if(e){if(typeof e=="string")return W1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W1(e,r)}}function W1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tthis.width||o<0||n>this.height)return s?!1:[];var f=[];if(t<=0&&n<=0&&this.width<=i&&this.height<=o){if(s)return!0;for(var v=0;v0:f}},{key:"queryCell",value:function(t,n,i,o,s,l,f,v){var y=f.seenUids,b=this.boxCells[s];if(b!==null){var T=this.bboxes,M=GR(b),O;try{for(M.s();!(O=M.n()).done;){var k=O.value;if(!y.box[k]){y.box[k]=!0;var $=k*4;if(t<=T[$+2]&&n<=T[$+3]&&i>=T[$+0]&&o>=T[$+1]&&(!v||v(this.boxKeys[k]))){if(f.hitTest)return l.push(!0),!0;l.push({key:this.boxKeys[k],x1:T[$],y1:T[$+1],x2:T[$+2],y2:T[$+3]})}}}}catch(G){M.e(G)}finally{M.f()}}return!1}},{key:"forEachCell",value:function(t,n,i,o,s,l,f,v){for(var y=this.convertToXCellCoord(t),b=this.convertToYCellCoord(n),T=this.convertToXCellCoord(i),M=this.convertToYCellCoord(o),O=y;O<=T;O++)for(var k=b;k<=M;k++){var $=this.xCellCount*k+O;if(s.call(this,t,n,i,o,$,l,f,v))return}}},{key:"convertToXCellCoord",value:function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}},{key:"convertToYCellCoord",value:function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}}]),e}(),YR=$R,qR=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"viewportPadding",100),this.width=r,this.height=t,this.viewportPadding=Math.max(r,t),this.grid=new YR(r+this.viewportPadding,t+this.viewportPadding,25),this.screenRightBoundary=r+this.viewportPadding,this.screenBottomBoundary=t+this.viewportPadding,this.gridRightBoundary=r+2*this.viewportPadding,this.gridBottomBoundary=t+2*this.viewportPadding}return(0,V.Z)(e,[{key:"placeCollisionBox",value:function(t){var n=t.x1+t.anchorPointX+this.viewportPadding,i=t.y1+t.anchorPointY+this.viewportPadding,o=t.x2+t.anchorPointX+this.viewportPadding,s=t.y2+t.anchorPointY+this.viewportPadding;return!this.isInsideGrid(n,i,o,s)||this.grid.hitTest(n,i,o,s)?{box:[]}:{box:[n,i,o,s]}}},{key:"insertCollisionBox",value:function(t,n){var i={featureIndex:n};this.grid.insert(i,t[0],t[1],t[2],t[3])}},{key:"project",value:function(t,n,i){var o=kh.al(n,i,0,1),s=kh.Ue(),l=ve.fromValues.apply(ve,(0,Wt.Z)(t));return kh.fF(s,o,l),{x:(s[0]/s[3]+1)/2*this.width+this.viewportPadding,y:(-s[1]/s[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(t,n,i,o){return i>=0&&t=0&&n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function KR(e,r){if(e){if(typeof e=="string")return X1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return X1(e,r)}}function X1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t6&&arguments[6]!==void 0?arguments[6]:[0,0],l=arguments.length>7?arguments[7]:void 0,f=e.split(` -`),v=[],y={positionedGlyphs:v,top:s[1],bottom:s[1],left:s[0],right:s[0],lineCount:f.length,text:e};return l?JR(y,r,f,t,n,i,o):QR(y,r,f,t,n,i,o),v.length?y:!1}function tM(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],t=arguments.length>2?arguments[2]:void 0,n=e.positionedGlyphs,i=n===void 0?[]:n,o=[],s=G1(i),l;try{for(s.s();!(l=s.n()).done;){var f=l.value,v=f.metrics,y=4,b=v.advance*f.scale/2,T=t?[f.x+b,f.y]:[0,0],M=t?[0,0]:[f.x+b+r[0],f.y+r[1]],O=(0-y)*f.scale-b+M[0],k=(0-y)*f.scale+M[1],$=O+v.width*f.scale,G=k+v.height*f.scale,oe={x:O,y:k},ye={x:$,y:k},Le={x:O,y:G},$e={x:$,y:G};o.push({tl:oe,tr:ye,bl:Le,br:$e,tex:v,glyphOffset:T})}}catch(ut){s.e(ut)}finally{s.f()}return o}function rM(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=nM(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function nM(e,r){if(e){if(typeof e=="string")return K1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K1(e,r)}}function K1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function XR(e,r){if(e){if(typeof e=="string")return W1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W1(e,r)}}function W1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tthis.width||o<0||n>this.height)return s?!1:[];var f=[];if(t<=0&&n<=0&&this.width<=i&&this.height<=o){if(s)return!0;for(var v=0;v0:f}},{key:"queryCell",value:function(t,n,i,o,s,l,f,v){var y=f.seenUids,b=this.boxCells[s];if(b!==null){var T=this.bboxes,M=GR(b),O;try{for(M.s();!(O=M.n()).done;){var F=O.value;if(!y.box[F]){y.box[F]=!0;var $=F*4;if(t<=T[$+2]&&n<=T[$+3]&&i>=T[$+0]&&o>=T[$+1]&&(!v||v(this.boxKeys[F]))){if(f.hitTest)return l.push(!0),!0;l.push({key:this.boxKeys[F],x1:T[$],y1:T[$+1],x2:T[$+2],y2:T[$+3]})}}}}catch(G){M.e(G)}finally{M.f()}}return!1}},{key:"forEachCell",value:function(t,n,i,o,s,l,f,v){for(var y=this.convertToXCellCoord(t),b=this.convertToYCellCoord(n),T=this.convertToXCellCoord(i),M=this.convertToYCellCoord(o),O=y;O<=T;O++)for(var F=b;F<=M;F++){var $=this.xCellCount*F+O;if(s.call(this,t,n,i,o,$,l,f,v))return}}},{key:"convertToXCellCoord",value:function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}},{key:"convertToYCellCoord",value:function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}}]),e}(),YR=$R,qR=function(){function e(r,t){(0,Q.Z)(this,e),(0,B.Z)(this,"viewportPadding",100),this.width=r,this.height=t,this.viewportPadding=Math.max(r,t),this.grid=new YR(r+this.viewportPadding,t+this.viewportPadding,25),this.screenRightBoundary=r+this.viewportPadding,this.screenBottomBoundary=t+this.viewportPadding,this.gridRightBoundary=r+2*this.viewportPadding,this.gridBottomBoundary=t+2*this.viewportPadding}return(0,j.Z)(e,[{key:"placeCollisionBox",value:function(t){var n=t.x1+t.anchorPointX+this.viewportPadding,i=t.y1+t.anchorPointY+this.viewportPadding,o=t.x2+t.anchorPointX+this.viewportPadding,s=t.y2+t.anchorPointY+this.viewportPadding;return!this.isInsideGrid(n,i,o,s)||this.grid.hitTest(n,i,o,s)?{box:[]}:{box:[n,i,o,s]}}},{key:"insertCollisionBox",value:function(t,n){var i={featureIndex:n};this.grid.insert(i,t[0],t[1],t[2],t[3])}},{key:"project",value:function(t,n,i){var o=Fh.al(n,i,0,1),s=Fh.Ue(),l=me.fromValues.apply(me,(0,Kt.Z)(t));return Fh.fF(s,o,l),{x:(s[0]/s[3]+1)/2*this.width+this.viewportPadding,y:(-s[1]/s[3]+1)/2*this.height+this.viewportPadding}}},{key:"isInsideGrid",value:function(t,n,i,o){return i>=0&&t=0&&n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function KR(e,r){if(e){if(typeof e=="string")return X1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return X1(e,r)}}function X1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t6&&arguments[6]!==void 0?arguments[6]:[0,0],l=arguments.length>7?arguments[7]:void 0,f=e.split(` +`),v=[],y={positionedGlyphs:v,top:s[1],bottom:s[1],left:s[0],right:s[0],lineCount:f.length,text:e};return l?JR(y,r,f,t,n,i,o):QR(y,r,f,t,n,i,o),v.length?y:!1}function tM(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0],t=arguments.length>2?arguments[2]:void 0,n=e.positionedGlyphs,i=n===void 0?[]:n,o=[],s=G1(i),l;try{for(s.s();!(l=s.n()).done;){var f=l.value,v=f.metrics,y=4,b=v.advance*f.scale/2,T=t?[f.x+b,f.y]:[0,0],M=t?[0,0]:[f.x+b+r[0],f.y+r[1]],O=(0-y)*f.scale-b+M[0],F=(0-y)*f.scale+M[1],$=O+v.width*f.scale,G=F+v.height*f.scale,ue={x:O,y:F},xe={x:$,y:F},ze={x:O,y:G},Je={x:$,y:G};o.push({tl:ue,tr:xe,bl:ze,br:Je,tex:v,glyphOffset:T})}}catch(ht){s.e(ht)}finally{s.f()}return o}function rM(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=nM(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function nM(e,r){if(e){if(typeof e=="string")return K1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return K1(e,r)}}function K1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t.5||!G||f!==this.preTextStyle.textAllowOverlap)){ye.next=14;break}return ye.next=13,this.reBuildModel();case 13:return ye.abrupt("return",!0);case 14:return ye.abrupt("return",!1);case 15:case"end":return ye.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:fn.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[5],l[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:fn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(o){var s=o.size,l=s===void 0?12:s;return Array.isArray(l)?[l[0]]:[l]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:fn.Attribute,descriptor:{name:"a_tex",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var i=this.mapService.getBounds();return of(i,.5)}},{key:"initTextFont",value:function(){var i=this.getTextStyle(),o=i.fontWeight,s=i.fontFamily,l=this.rawEncodeData,f=[];l.forEach(function(v){var y=v.shape,b=y===void 0?"":y;b=b.toString();var T=rM(b),M;try{for(T.s();!(M=T.n()).done;){var O=M.value;f.indexOf(O)===-1&&f.push(O)}}catch(k){T.e(k)}finally{T.f()}}),this.fontService.setFontOptions({characterSet:f,fontWeight:o,fontFamily:s,iconfont:!1})}},{key:"initIconFontTex",value:function(){var i=this.getTextStyle(),o=i.fontWeight,s=i.fontFamily,l=this.rawEncodeData,f=[];l.forEach(function(v){var y=v.shape,b=y===void 0?"":y;b="".concat(b),f.indexOf(b)===-1&&f.push(b)}),this.fontService.setFontOptions({characterSet:f,fontWeight:o,fontFamily:s,iconfont:!0})}},{key:"getTextStyle",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l,v=i.textAllowOverlap,y=v===void 0?!1:v,b=i.padding,T=b===void 0?[0,0]:b,M=i.textAnchor,O=M===void 0?"center":M,k=i.textOffset,$=k===void 0?[0,0]:k,G=i.opacity,oe=G===void 0?1:G,ye=i.strokeOpacity,Le=ye===void 0?1:ye,$e=i.strokeWidth,ut=$e===void 0?0:$e,vt=i.stroke,Rt=vt===void 0?"#000":vt;return{fontWeight:s,fontFamily:f,textAllowOverlap:y,padding:T,textAnchor:O,textOffset:$,opacity:oe,strokeOpacity:Le,strokeWidth:ut,stroke:Rt}}},{key:"generateGlyphLayout",value:function(i){var o=this,s=this.getFontServiceMapping(),l=this.layer.getLayerConfig(),f=l.spacing,v=f===void 0?2:f,y=l.textAnchor,b=y===void 0?"center":y,T=l.textOffset,M=this.rawEncodeData;this.glyphInfo=M.map(function(O){var k=O.shape,$=k===void 0?"":k,G=O.id,oe=O.size,ye=oe===void 0?1:oe,Le=O.textOffset?O.textOffset:T||[0,0],$e=O.textAnchor?O.textAnchor:b||"center",ut=eM($.toString(),s,ye,$e,"left",v,Le,i),vt=tM(ut,Le,!1);return O.shaping=ut,O.glyphQuads=vt,O.centroid=Ds(O.coordinates),O.originCentroid=O.version==="GAODE2.x"?Ds(O.originCoordinates):O.originCentroid=O.centroid,o.glyphInfoMap[G]={shaping:ut,glyphQuads:vt,centroid:Ds(O.coordinates)},O})}},{key:"getFontServiceMapping",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l;return this.fontService.getMappingByKey("".concat(f,"_").concat(s))}},{key:"getFontServiceCanvas",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l;return this.fontService.getCanvasByKey("".concat(f,"_").concat(s))}},{key:"filterGlyphs",value:function(){var i=this,o=this.layer.getLayerConfig(),s=o.padding,l=s===void 0?[0,0]:s,f=o.textAllowOverlap,v=f===void 0?!1:f;if(!v){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var y=this.rendererService.getViewportSize(),b=y.width,T=y.height,M=new qR(b,T),O=this.glyphInfo.filter(function(k){var $=k.shaping,G=k.id,oe=G===void 0?0:G,ye=k.version==="GAODE2.x"?k.originCentroid:k.centroid,Le=k.size,$e=Le/16,ut=i.mapService.lngLatToContainer(ye),vt=M.placeCollisionBox({x1:$.left*$e-l[0],x2:$.right*$e+l[0],y1:$.top*$e-l[1],y2:$.bottom*$e+l[1],anchorPointX:ut.x,anchorPointY:ut.y}),Rt=vt.box;return Rt&&Rt.length?(M.insertCollisionBox(Rt,oe),!0):!1});O.forEach(function(k){i.glyphInfoMap[k.id]=k})}}},{key:"initGlyph",value:function(){var i=this.layer.getLayerConfig(),o=i.iconfont,s=o===void 0?!1:o;s?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(s)}},{key:"updateTexture",value:function(){var i=this.rendererService.createTexture2D,o=this.getFontServiceCanvas();this.textureHeight=o.height,this.texture&&this.texture.destroy(),this.texture=i({data:o,mag:R.LINEAR,min:R.LINEAR,width:o.width,height:o.height})}},{key:"reBuildModel",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.filterGlyphs(),f.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:J1,fragmentShader:Q1,triangulation:ex.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:s=f.sent,this.layer.models=[s];case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()}]),t}(Ma),oM={fillImage:OR,fill:Z1,radar:WR,image:V1,normal:H1,simplePoint:lR,extrude:U1,text:tx,earthFill:xR,earthExtrude:vR},sM=oM;function uM(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=lM(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function lM(e,r){if(e){if(typeof e=="string")return rx(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return rx(e,r)}}function rx(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t.5||!G||f!==this.preTextStyle.textAllowOverlap)){xe.next=14;break}return xe.next=13,this.reBuildModel();case 13:return xe.abrupt("return",!0);case 14:return xe.abrupt("return",!1);case 15:case"end":return xe.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy(),this.layer.off("remapping",this.mapping)}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"textOffsets",type:dn.Attribute,descriptor:{name:"a_textOffsets",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[5],l[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:dn.Attribute,descriptor:{name:"a_Size",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:1,update:function(o){var s=o.size,l=s===void 0?12:s;return Array.isArray(l)?[l[0]]:[l]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:dn.Attribute,descriptor:{name:"a_tex",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var i=this.mapService.getBounds();return of(i,.5)}},{key:"initTextFont",value:function(){var i=this.getTextStyle(),o=i.fontWeight,s=i.fontFamily,l=this.rawEncodeData,f=[];l.forEach(function(v){var y=v.shape,b=y===void 0?"":y;b=b.toString();var T=rM(b),M;try{for(T.s();!(M=T.n()).done;){var O=M.value;f.indexOf(O)===-1&&f.push(O)}}catch(F){T.e(F)}finally{T.f()}}),this.fontService.setFontOptions({characterSet:f,fontWeight:o,fontFamily:s,iconfont:!1})}},{key:"initIconFontTex",value:function(){var i=this.getTextStyle(),o=i.fontWeight,s=i.fontFamily,l=this.rawEncodeData,f=[];l.forEach(function(v){var y=v.shape,b=y===void 0?"":y;b="".concat(b),f.indexOf(b)===-1&&f.push(b)}),this.fontService.setFontOptions({characterSet:f,fontWeight:o,fontFamily:s,iconfont:!0})}},{key:"getTextStyle",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l,v=i.textAllowOverlap,y=v===void 0?!1:v,b=i.padding,T=b===void 0?[0,0]:b,M=i.textAnchor,O=M===void 0?"center":M,F=i.textOffset,$=F===void 0?[0,0]:F,G=i.opacity,ue=G===void 0?1:G,xe=i.strokeOpacity,ze=xe===void 0?1:xe,Je=i.strokeWidth,ht=Je===void 0?0:Je,gt=i.stroke,Ot=gt===void 0?"#000":gt;return{fontWeight:s,fontFamily:f,textAllowOverlap:y,padding:T,textAnchor:O,textOffset:$,opacity:ue,strokeOpacity:ze,strokeWidth:ht,stroke:Ot}}},{key:"generateGlyphLayout",value:function(i){var o=this,s=this.getFontServiceMapping(),l=this.layer.getLayerConfig(),f=l.spacing,v=f===void 0?2:f,y=l.textAnchor,b=y===void 0?"center":y,T=l.textOffset,M=this.rawEncodeData;this.glyphInfo=M.map(function(O){var F=O.shape,$=F===void 0?"":F,G=O.id,ue=O.size,xe=ue===void 0?1:ue,ze=O.textOffset?O.textOffset:T||[0,0],Je=O.textAnchor?O.textAnchor:b||"center",ht=eM($.toString(),s,xe,Je,"left",v,ze,i),gt=tM(ht,ze,!1);return O.shaping=ht,O.glyphQuads=gt,O.centroid=Fs(O.coordinates),O.originCentroid=O.version==="GAODE2.x"?Fs(O.originCoordinates):O.originCentroid=O.centroid,o.glyphInfoMap[G]={shaping:ht,glyphQuads:gt,centroid:Fs(O.coordinates)},O})}},{key:"getFontServiceMapping",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l;return this.fontService.getMappingByKey("".concat(f,"_").concat(s))}},{key:"getFontServiceCanvas",value:function(){var i=this.layer.getLayerConfig(),o=i.fontWeight,s=o===void 0?"400":o,l=i.fontFamily,f=l===void 0?"sans-serif":l;return this.fontService.getCanvasByKey("".concat(f,"_").concat(s))}},{key:"filterGlyphs",value:function(){var i=this,o=this.layer.getLayerConfig(),s=o.padding,l=s===void 0?[0,0]:s,f=o.textAllowOverlap,v=f===void 0?!1:f;if(!v){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var y=this.rendererService.getViewportSize(),b=y.width,T=y.height,M=new qR(b,T),O=this.glyphInfo.filter(function(F){var $=F.shaping,G=F.id,ue=G===void 0?0:G,xe=F.version==="GAODE2.x"?F.originCentroid:F.centroid,ze=F.size,Je=ze/16,ht=i.mapService.lngLatToContainer(xe),gt=M.placeCollisionBox({x1:$.left*Je-l[0],x2:$.right*Je+l[0],y1:$.top*Je-l[1],y2:$.bottom*Je+l[1],anchorPointX:ht.x,anchorPointY:ht.y}),Ot=gt.box;return Ot&&Ot.length?(M.insertCollisionBox(Ot,ue),!0):!1});O.forEach(function(F){i.glyphInfoMap[F.id]=F})}}},{key:"initGlyph",value:function(){var i=this.layer.getLayerConfig(),o=i.iconfont,s=o===void 0?!1:o;s?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(s)}},{key:"updateTexture",value:function(){var i=this.rendererService.createTexture2D,o=this.getFontServiceCanvas();this.textureHeight=o.height,this.texture&&this.texture.destroy(),this.texture=i({data:o,mag:R.LINEAR,min:R.LINEAR,width:o.width,height:o.height})}},{key:"reBuildModel",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s;return ge().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.filterGlyphs(),f.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:J1,fragmentShader:Q1,triangulation:ex.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:s=f.sent,this.layer.models=[s];case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()}]),t}(Ma),oM={fillImage:OR,fill:Z1,radar:WR,image:V1,normal:H1,simplePoint:lR,extrude:U1,text:tx,earthFill:xR,earthExtrude:vR},sM=oM;function uM(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=lM(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function lM(e,r){if(e){if(typeof e=="string")return rx(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return rx(e,r)}}function rx(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:!0;i&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),t}(Ma),bI={fill:xI},EI=bI;function SI(e){var r=AI();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function AI(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ix=function(e){(0,De.Z)(t,e);var r=SI(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&this.mapService.version==="GAODE2.x"){var o=n.coordCenter||n.getSource().center;t.filter(function(s){return!s.originCoordinates}).map(function(s){s.version="GAODE2.x",s.originCoordinates=TI(s.coordinates),s.coordinates=i.mapService.coordToAMap2RelativeCoordinates(s.coordinates,o)})}}},{key:"adjustData2SimpleCoordinates",value:function(t){var n=this;t.length>0&&this.mapService.version==="SIMPLE"&&t.map(function(i){i.simpleCoordinate||(i.coordinates=n.unProjectCoordinates(i.coordinates),i.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(t){var n=this;if(typeof t[0]=="number")return this.mapService.simpleMapCoord.unproject(t);if(t[0]&&t[0][0]instanceof Array){var i=[];return t.map(function(s){var l=[];s.map(function(f){l.push(n.mapService.simpleMapCoord.unproject(f))}),i.push(l)}),i}else{var o=[];return t.map(function(s){o.push(n.mapService.simpleMapCoord.unproject(s))}),o}}},{key:"applyAttributeMapping",value:function(t,n){var i;if(!t.scale)return[];var o=(t==null||(i=t.scale)===null||i===void 0?void 0:i.scalers)||[],s=[];o.forEach(function(f){var v,y=f.field;(n.hasOwnProperty(y)||((v=t.scale)===null||v===void 0?void 0:v.type)==="variable")&&s.push(n[y])});var l=t.mapping?t.mapping(s):[];return l}},{key:"getArrowPoints",value:function(t,n){var i=[n[0]-t[0],n[1]-t[1]],o=Ff(i),s=[t[0]+o[0]*1e-4,t[1]+o[1]*1e-4];return s}}]),e}(),lx=Oi(Ig.prototype,"mapService",[ox],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cx=Oi(Ig.prototype,"fontService",[sx],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ig))||ux),fx,hx,CI=(fx=(0,gt.b2)(),fx(hx=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"apply",value:function(t){var n=this;this.mapService=t.getContainer().get(tt.IMapService),t.hooks.init.tapPromise("DataSourcePlugin",(0,Ct.Z)(me().mark(function i(){var o,s,l,f;return me().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(t.log(Rs.SourceInitStart,ds.INIT),o=t.getSource(),o||(s=t.sourceOption||t.defaultSourceConfig,l=s.data,f=s.options,o=new Xy(l,f),t.setSource(o)),!o.inited){y.next=8;break}n.updateClusterData(t),t.log(Rs.SourceInitEnd,ds.INIT),y.next=10;break;case 8:return y.next=10,new Promise(function(b){o.on("update",function(T){T.type==="inited"&&(n.updateClusterData(t),t.log(Rs.SourceInitEnd,ds.INIT)),b(null)})});case 10:case"end":return y.stop()}},i)}))),t.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Ct.Z)(me().mark(function i(){var o,s,l;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=n.updateClusterData(t),s=t.dataState.dataSourceNeedUpdate,t.dataState.dataSourceNeedUpdate=!1,l=o||s,v.abrupt("return",l);case 5:case"end":return v.stop()}},i)})))}},{key:"updateClusterData",value:function(t){if(t.isTileLayer||t.tileLayer||!t.getSource())return!1;var n=t.getSource(),i=n.cluster,o=n.clusterOptions.zoom,s=o===void 0?0:o,l=this.mapService.getZoom()-1,f=t.dataState.dataSourceNeedUpdate;return i&&f&&n.updateClusterData(Math.floor(l)),i&&Math.abs(t.clusterZoom-l)>=1?(s!==Math.floor(l)&&n.updateClusterData(Math.floor(l)),t.clusterZoom=l,!0):!1}}]),e}())||hx);function Q0(e,r){return er?1:e>=r?0:NaN}function px(e){return e.length===1&&(e=RI(e)),{left:function(r,t,n,i){for(n==null&&(n=0),i==null&&(i=r.length);n>>1;e(r[o],t)<0?n=o+1:i=o}return n},right:function(r,t,n,i){for(n==null&&(n=0),i==null&&(i=r.length);n>>1;e(r[o],t)>0?i=o:n=o+1}return n}}}function RI(e){return function(r,t){return Q0(e(r),t)}}var dx=px(Q0),MI=dx.right,RL=dx.left,Pg=MI;function vx(e,r){var t=e.length,n=-1,i,o,s;if(r==null){for(;++n=i)for(o=s=i;++ni&&(o=i),s=i)for(o=s=i;++ni&&(o=i),s0)return[e];if((n=r0)for(e=Math.ceil(e/l),r=Math.floor(r/l),s=new Array(o=Math.ceil(r-e+1));++i=0?(o>=J0?10:o>=e_?5:o>=t_?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=J0?10:o>=e_?5:o>=t_?2:1)}function r_(e,r,t){var n=Math.abs(r-e)/Math.max(0,t),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=J0?i*=10:o>=e_?i*=5:o>=t_&&(i*=2),rb;)T.pop(),--M;var O=new Array(M+1),k;for(o=0;o<=M;++o)k=O[o]=[],k.x0=o>0?T[o-1]:y,k.x1=o=1)return+t(e[n-1],n-1,e);var n,i=(n-1)*r,o=Math.floor(i),s=+t(e[o],o,e),l=+t(e[o+1],o+1,e);return s+(l-s)*(i-o)}}function _x(e,r,t,n,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*r+(4-6*o+3*s)*t+(1+3*e+3*o-3*s)*n+s*i)/6}function OI(e){var r=e.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),i=e[n],o=e[n+1],s=n>0?e[n-1]:2*i-o,l=n180||t<-180?t-360*Math.round(t/360):t):constant(isNaN(e)?r:e)}function FI(e){return(e=+e)==1?xx:function(r,t){return t-r?kI(r,t,e):n_(isNaN(r)?t:r)}}function xx(e,r){var t=r-e;return t?yx(e,t):n_(isNaN(e)?r:e)}var bx=function e(r){var t=FI(r);function n(i,o){var s=t((i=(0,os.B8)(i)).r,(o=(0,os.B8)(o)).r),l=t(i.g,o.g),f=t(i.b,o.b),v=xx(i.opacity,o.opacity);return function(y){return i.r=s(y),i.g=l(y),i.b=f(y),i.opacity=v(y),i+""}}return n.gamma=e,n}(1);function Ex(e){return function(r){var t=r.length,n=new Array(t),i=new Array(t),o=new Array(t),s,l;for(s=0;s=e.length)return t!=null&&l.sort(t),n!=null?n(l):l;for(var b=-1,T=l.length,M=e[f++],O,k,$=map(),G,oe=v();++be.length)return l;var v,y=r[f-1];return n!=null&&f>=e.length?v=l.entries():(v=[],l.each(function(b,T){v.push({key:T,values:s(b,f)})})),y!=null?v.sort(function(b,T){return y(b.key,T.key)}):v}return i={object:function(l){return o(l,0,LI,NI)},map:function(l){return o(l,0,Ax,Tx)},entries:function(l){return s(o(l,0,Ax,Tx),0)},key:function(l){return e.push(l),i},sortKeys:function(l){return r[e.length-1]=l,i},sortValues:function(l){return t=l,i},rollup:function(l){return n=l,i}}}function LI(){return{}}function NI(e,r,t){e[r]=t}function Ax(){return map()}function Tx(e,r,t){e.set(r,t)}function kg(){}var md=i_.prototype;kg.prototype=UI.prototype={constructor:kg,has:md.has,add:function(e){return e+="",this[qc+e]=e,this},remove:md.remove,clear:md.clear,values:md.keys,size:md.size,empty:md.empty,each:md.each};function UI(e,r){var t=new kg;if(e instanceof kg)e.each(function(o){t.add(o)});else if(e){var n=-1,i=e.length;if(r==null)for(;++nt&&(o=r.slice(t,o),l[s]?l[s]+=o:l[++s]=o),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,f.push({i:s,x:Bg(n,i)})),t=o_.lastIndex;return tt&&(n=r,r=t,t=n),function(i){return Math.max(r,Math.min(t,i))}}function qI(e,r,t){var n=e[0],i=e[1],o=r[0],s=r[1];return i2?KI:qI,f=v=null,b}function b(T){return isNaN(T=+T)?o:(f||(f=l(e.map(n),r,t)))(n(s(T)))}return b.invert=function(T){return s(i((v||(v=l(r,e.map(n),Bg)))(T)))},b.domain=function(T){return arguments.length?(e=Rx.call(T,YI),s===Yu||(s=Fx(e)),y()):e.slice()},b.range=function(T){return arguments.length?(r=gd.call(T),y()):r.slice()},b.rangeRound=function(T){return r=gd.call(T),t=XI,y()},b.clamp=function(T){return arguments.length?(s=T?Fx(e):Yu,b):s!==Yu},b.interpolate=function(T){return arguments.length?(t=T,y()):t},b.unknown=function(T){return arguments.length?(o=T,b):o},function(T,M){return n=T,i=M,y()}}function Bx(e,r){return l_()(e,r)}var QI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ng(e){if(!(r=QI.exec(e)))throw new Error("invalid format: "+e);var r;return new c_({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}Ng.prototype=c_.prototype;function c_(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}c_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function JI(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ug(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}function pv(e){return e=Ug(Math.abs(e)),e?e[1]:NaN}function eP(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pv(r)/3)))*3-pv(Math.abs(e)))}function tP(e,r){return function(t,n){for(var i=t.length,o=[],s=0,l=e[0],f=0;i>0&&l>0&&(f+l+1>n&&(l=Math.max(1,n-f)),o.push(t.substring(i-=l,i+l)),!((f+=l+1)>n));)l=e[s=(s+1)%e.length];return o.reverse().join(r)}}function rP(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}function nP(e){e:for(var r=e.length,t=1,n=-1,i;t0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Lx;function iP(e,r){var t=Ug(e,r);if(!t)return e+"";var n=t[0],i=t[1],o=i-(Lx=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Ug(e,Math.max(0,r+o-1))[0]}function Nx(e,r){var t=Ug(e,r);if(!t)return e+"";var n=t[0],i=t[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var Ux={"%":function(e,r){return(e*100).toFixed(r)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:JI,e:function(e,r){return e.toExponential(r)},f:function(e,r){return e.toFixed(r)},g:function(e,r){return e.toPrecision(r)},o:function(e){return Math.round(e).toString(8)},p:function(e,r){return Nx(e*100,r)},r:Nx,s:iP,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function zx(e){return e}var Zx=Array.prototype.map,Vx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function aP(e){var r=e.grouping===void 0||e.thousands===void 0?zx:tP(Zx.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?zx:rP(Zx.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function v(b){b=Ng(b);var T=b.fill,M=b.align,O=b.sign,k=b.symbol,$=b.zero,G=b.width,oe=b.comma,ye=b.precision,Le=b.trim,$e=b.type;$e==="n"?(oe=!0,$e="g"):Ux[$e]||(ye===void 0&&(ye=12),Le=!0,$e="g"),($||T==="0"&&M==="=")&&($=!0,T="0",M="=");var ut=k==="$"?t:k==="#"&&/[boxX]/.test($e)?"0"+$e.toLowerCase():"",vt=k==="$"?n:/[%p]/.test($e)?s:"",Rt=Ux[$e],Jt=/[defgprs%]/.test($e);ye=ye===void 0?6:/[gprs]/.test($e)?Math.max(1,Math.min(21,ye)):Math.max(0,Math.min(20,ye));function Mr(br){var pn=ut,kn=vt,Pi,xa,is;if($e==="c")kn=Rt(br)+kn,br="";else{br=+br;var _s=br<0||1/br<0;if(br=isNaN(br)?f:Rt(Math.abs(br),ye),Le&&(br=nP(br)),_s&&+br==0&&O!=="+"&&(_s=!1),pn=(_s?O==="("?O:l:O==="-"||O==="("?"":O)+pn,kn=($e==="s"?Vx[8+Lx/3]:"")+kn+(_s&&O==="("?")":""),Jt){for(Pi=-1,xa=br.length;++Piis||is>57){kn=(is===46?i+br.slice(Pi+1):br.slice(Pi))+kn,br=br.slice(0,Pi);break}}}oe&&!$&&(br=r(br,1/0));var as=pn.length+br.length+kn.length,lu=as>1)+pn+br+kn+lu.slice(as);break;default:br=lu+pn+br+kn;break}return o(br)}return Mr.toString=function(){return b+""},Mr}function y(b,T){var M=v((b=Ng(b),b.type="f",b)),O=Math.max(-8,Math.min(8,Math.floor(pv(T)/3)))*3,k=Math.pow(10,-O),$=Vx[8+O/3];return function(G){return M(k*G)+$}}return{format:v,formatPrefix:y}}var zg,f_,jx;oP({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function oP(e){return zg=aP(e),f_=zg.format,jx=zg.formatPrefix,zg}function sP(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,pv(r)-pv(e))+1}function uP(e){return Math.max(0,-pv(Math.abs(e)))}function lP(e,r,t,n){var i=r_(e,r,t),o;switch(n=Ng(n==null?",f":n),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(r));return n.precision==null&&!isNaN(o=eP(i,s))&&(n.precision=o),jx(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=sP(i,Math.max(Math.abs(e),Math.abs(r))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=uP(i))&&(n.precision=o-(n.type==="%")*2);break}}return f_(n)}function dm(e){var r=e.domain;return e.ticks=function(t){var n=r();return gx(n[0],n[n.length-1],t==null?10:t)},e.tickFormat=function(t,n){var i=r();return lP(i[0],i[i.length-1],t==null?10:t,n)},e.nice=function(t){t==null&&(t=10);var n=r(),i=0,o=n.length-1,s=n[i],l=n[o],f;return l0?(s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f,f=Og(s,l,t)):f<0&&(s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f,f=Og(s,l,t)),f>0?(n[i]=Math.floor(s/f)*f,n[o]=Math.ceil(l/f)*f,r(n)):f<0&&(n[i]=Math.ceil(s*f)/f,n[o]=Math.floor(l*f)/f,r(n)),e},e}function Hx(){var e=Bx(Yu,Yu);return e.copy=function(){return Lg(e,Hx())},Dp.apply(e,arguments),dm(e)}function cP(e){var r;function t(n){return isNaN(n=+n)?r:n}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=map.call(n,number),t):e.slice()},t.unknown=function(n){return arguments.length?(r=n,t):r},t.copy=function(){return cP(e).unknown(r)},e=arguments.length?map.call(e,number):[0,1],linearish(t)}function Wx(e,r){e=e.slice();var t=0,n=e.length-1,i=e[t],o=e[n],s;return o0){for(;Ty)break;oe.push($)}}else for(;T=1;--k)if($=O*k,!($y)break;oe.push($)}}else oe=gx(T,M,Math.min(M-T,G)).map(o);return b?oe.reverse():oe},r.tickFormat=function(l,f){if(f==null&&(f=n===10?".0e":","),typeof f!="function"&&(f=f_(f)),l===1/0)return f;l==null&&(l=10);var v=Math.max(1,n*l/r.ticks().length);return function(y){var b=y/o(Math.round(i(y)));return b*n0?t[l-1]:e[0],l=t?[n[t-1],r]:[n[v-1],n[v]]},s.unknown=function(f){return arguments.length&&(o=f),s},s.thresholds=function(){return n.slice()},s.copy=function(){return eb().domain([e,r]).range(i).unknown(o)},Dp.apply(dm(s),arguments)}function tb(){var e=[.5],r=[0,1],t,n=1;function i(o){return o<=o?r[Pg(e,o,0,n)]:t}return i.domain=function(o){return arguments.length?(e=gd.call(o),n=Math.min(e.length,r.length-1),i):e.slice()},i.range=function(o){return arguments.length?(r=gd.call(o),n=Math.min(e.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var s=r.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(t=o,i):t},i.copy=function(){return tb().domain(e).range(r).unknown(t)},Dp.apply(i,arguments)}var p_=new Date,d_=new Date;function ml(e,r,t,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),r(o,1),e(o),o},i.round=function(o){var s=i(o),l=i.ceil(o);return o-s0))return f;do f.push(v=new Date(+o)),r(o,l),e(o);while(v=s)for(;e(s),!o(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!o(s););else for(;--l>=0;)for(;r(s,1),!o(s););})},t&&(i.count=function(o,s){return p_.setTime(+o),d_.setTime(+s),e(p_),e(d_),Math.floor(t(p_,d_))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?function(s){return n(s)%o===0}:function(s){return i.count(0,s)%o===0}):i}),i}var v_=ml(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r)},function(e,r){return r.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});v_.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ml(function(r){r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,t){r.setFullYear(r.getFullYear()+t*e)})};var dv=v_,zL=v_.range,rb=ml(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,r){e.setMonth(e.getMonth()+r)},function(e,r){return r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}),EP=rb,ZL=rb.range,Zg=1e3,vm=6e4,nb=36e5,ib=864e5,ab=6048e5;function _d(e){return ml(function(r){r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},function(r,t){r.setDate(r.getDate()+t*7)},function(r,t){return(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*vm)/ab})}var m_=_d(0),Vg=_d(1),SP=_d(2),AP=_d(3),vv=_d(4),TP=_d(5),wP=_d(6),VL=m_.range,jL=Vg.range,HL=SP.range,WL=AP.range,GL=vv.range,XL=TP.range,$L=wP.range,ob=ml(function(e){e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+r)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*vm)/ib},function(e){return e.getDate()-1}),g_=ob,YL=ob.range,sb=ml(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zg-e.getMinutes()*vm)},function(e,r){e.setTime(+e+r*nb)},function(e,r){return(r-e)/nb},function(e){return e.getHours()}),CP=sb,qL=sb.range,ub=ml(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zg)},function(e,r){e.setTime(+e+r*vm)},function(e,r){return(r-e)/vm},function(e){return e.getMinutes()}),RP=ub,KL=ub.range,lb=ml(function(e){e.setTime(e-e.getMilliseconds())},function(e,r){e.setTime(+e+r*Zg)},function(e,r){return(r-e)/Zg},function(e){return e.getUTCSeconds()}),MP=lb,QL=lb.range,jg=ml(function(){},function(e,r){e.setTime(+e+r)},function(e,r){return r-e});jg.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ml(function(r){r.setTime(Math.floor(r/e)*e)},function(r,t){r.setTime(+r+t*e)},function(r,t){return(t-r)/e}):jg};var IP=jg,JL=jg.range;function yd(e){return ml(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCDate(r.getUTCDate()+t*7)},function(r,t){return(t-r)/ab})}var cb=yd(0),Hg=yd(1),PP=yd(2),OP=yd(3),mv=yd(4),DP=yd(5),kP=yd(6),eN=cb.range,tN=Hg.range,rN=PP.range,nN=OP.range,iN=mv.range,aN=DP.range,oN=kP.range,fb=ml(function(e){e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r)},function(e,r){return(r-e)/ib},function(e){return e.getUTCDate()-1}),hb=fb,sN=fb.range,__=ml(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r)},function(e,r){return r.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});__.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ml(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCFullYear(r.getUTCFullYear()+t*e)})};var mm=__,uN=__.range;function y_(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function x_(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function gm(e,r,t){return{y:e,m:r,d:t,H:0,M:0,S:0,L:0}}function FP(e){var r=e.dateTime,t=e.date,n=e.time,i=e.periods,o=e.days,s=e.shortDays,l=e.months,f=e.shortMonths,v=_m(i),y=ym(i),b=_m(o),T=ym(o),M=_m(s),O=ym(s),k=_m(l),$=ym(l),G=_m(f),oe=ym(f),ye={a:_s,A:as,b:lu,B:Ac,c:null,d:_b,e:_b,f:i5,g:d5,G:m5,H:t5,I:r5,j:n5,L:yb,m:a5,M:o5,p:BB,q:LB,Q:Tb,s:wb,S:s5,u:u5,U:l5,V:c5,w:f5,W:h5,x:null,X:null,y:p5,Y:v5,Z:g5,"%":Ab},Le={a:NB,A:UB,b:zB,B:ZB,c:null,d:bb,e:bb,f:b5,g:P5,G:D5,H:_5,I:y5,j:x5,L:Eb,m:E5,M:S5,p:VB,q:jB,Q:Tb,s:wb,S:A5,u:T5,U:w5,V:C5,w:R5,W:M5,x:null,X:null,y:I5,Y:O5,Z:k5,"%":Ab},$e={a:Mr,A:br,b:pn,B:kn,c:Pi,d:mb,e:mb,f:KP,g:vb,G:db,H:gb,I:gb,j:XP,L:qP,m:GP,M:$P,p:Jt,q:WP,Q:JP,s:e5,S:YP,u:zP,U:ZP,V:VP,w:UP,W:jP,x:xa,X:is,y:vb,Y:db,Z:HP,"%":QP};ye.x=ut(t,ye),ye.X=ut(n,ye),ye.c=ut(r,ye),Le.x=ut(t,Le),Le.X=ut(n,Le),Le.c=ut(r,Le);function ut(ni,ba){return function(Va){var dn=[],Xl=-1,Oo=0,Tc=ni.length,wc,Rd,Q2;for(Va instanceof Date||(Va=new Date(+Va));++Xl53)return null;"w"in dn||(dn.w=1),"Z"in dn?(Oo=x_(gm(dn.y,0,1)),Tc=Oo.getUTCDay(),Oo=Tc>4||Tc===0?Hg.ceil(Oo):Hg(Oo),Oo=hb.offset(Oo,(dn.V-1)*7),dn.y=Oo.getUTCFullYear(),dn.m=Oo.getUTCMonth(),dn.d=Oo.getUTCDate()+(dn.w+6)%7):(Oo=y_(gm(dn.y,0,1)),Tc=Oo.getDay(),Oo=Tc>4||Tc===0?Vg.ceil(Oo):Vg(Oo),Oo=g_.offset(Oo,(dn.V-1)*7),dn.y=Oo.getFullYear(),dn.m=Oo.getMonth(),dn.d=Oo.getDate()+(dn.w+6)%7)}else("W"in dn||"U"in dn)&&("w"in dn||(dn.w="u"in dn?dn.u%7:"W"in dn?1:0),Tc="Z"in dn?x_(gm(dn.y,0,1)).getUTCDay():y_(gm(dn.y,0,1)).getDay(),dn.m=0,dn.d="W"in dn?(dn.w+6)%7+dn.W*7-(Tc+5)%7:dn.w+dn.U*7-(Tc+6)%7);return"Z"in dn?(dn.H+=dn.Z/100|0,dn.M+=dn.Z%100,x_(dn)):y_(dn)}}function Rt(ni,ba,Va,dn){for(var Xl=0,Oo=ba.length,Tc=Va.length,wc,Rd;Xl=Tc)return-1;if(wc=ba.charCodeAt(Xl++),wc===37){if(wc=ba.charAt(Xl++),Rd=$e[wc in pb?ba.charAt(Xl++):wc],!Rd||(dn=Rd(ni,Va,dn))<0)return-1}else if(wc!=Va.charCodeAt(dn++))return-1}return dn}function Jt(ni,ba,Va){var dn=v.exec(ba.slice(Va));return dn?(ni.p=y[dn[0].toLowerCase()],Va+dn[0].length):-1}function Mr(ni,ba,Va){var dn=M.exec(ba.slice(Va));return dn?(ni.w=O[dn[0].toLowerCase()],Va+dn[0].length):-1}function br(ni,ba,Va){var dn=b.exec(ba.slice(Va));return dn?(ni.w=T[dn[0].toLowerCase()],Va+dn[0].length):-1}function pn(ni,ba,Va){var dn=G.exec(ba.slice(Va));return dn?(ni.m=oe[dn[0].toLowerCase()],Va+dn[0].length):-1}function kn(ni,ba,Va){var dn=k.exec(ba.slice(Va));return dn?(ni.m=$[dn[0].toLowerCase()],Va+dn[0].length):-1}function Pi(ni,ba,Va){return Rt(ni,r,ba,Va)}function xa(ni,ba,Va){return Rt(ni,t,ba,Va)}function is(ni,ba,Va){return Rt(ni,n,ba,Va)}function _s(ni){return s[ni.getDay()]}function as(ni){return o[ni.getDay()]}function lu(ni){return f[ni.getMonth()]}function Ac(ni){return l[ni.getMonth()]}function BB(ni){return i[+(ni.getHours()>=12)]}function LB(ni){return 1+~~(ni.getMonth()/3)}function NB(ni){return s[ni.getUTCDay()]}function UB(ni){return o[ni.getUTCDay()]}function zB(ni){return f[ni.getUTCMonth()]}function ZB(ni){return l[ni.getUTCMonth()]}function VB(ni){return i[+(ni.getUTCHours()>=12)]}function jB(ni){return 1+~~(ni.getUTCMonth()/3)}return{format:function(ni){var ba=ut(ni+="",ye);return ba.toString=function(){return ni},ba},parse:function(ni){var ba=vt(ni+="",!1);return ba.toString=function(){return ni},ba},utcFormat:function(ni){var ba=ut(ni+="",Le);return ba.toString=function(){return ni},ba},utcParse:function(ni){var ba=vt(ni+="",!0);return ba.toString=function(){return ni},ba}}}var pb={"-":"",_:" ",0:"0"},uu=/^\s*\d+/,BP=/^%/,LP=/[\\^$*+?|[\]().{}]/g;function Za(e,r,t){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o68?1900:2e3),t+n[0].length):-1}function HP(e,r,t){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),t+n[0].length):-1}function WP(e,r,t){var n=uu.exec(r.slice(t,t+1));return n?(e.q=n[0]*3-3,t+n[0].length):-1}function GP(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.m=n[0]-1,t+n[0].length):-1}function mb(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.d=+n[0],t+n[0].length):-1}function XP(e,r,t){var n=uu.exec(r.slice(t,t+3));return n?(e.m=0,e.d=+n[0],t+n[0].length):-1}function gb(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.H=+n[0],t+n[0].length):-1}function $P(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.M=+n[0],t+n[0].length):-1}function YP(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.S=+n[0],t+n[0].length):-1}function qP(e,r,t){var n=uu.exec(r.slice(t,t+3));return n?(e.L=+n[0],t+n[0].length):-1}function KP(e,r,t){var n=uu.exec(r.slice(t,t+6));return n?(e.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function QP(e,r,t){var n=BP.exec(r.slice(t,t+1));return n?t+n[0].length:-1}function JP(e,r,t){var n=uu.exec(r.slice(t));return n?(e.Q=+n[0],t+n[0].length):-1}function e5(e,r,t){var n=uu.exec(r.slice(t));return n?(e.s=+n[0],t+n[0].length):-1}function _b(e,r){return Za(e.getDate(),r,2)}function t5(e,r){return Za(e.getHours(),r,2)}function r5(e,r){return Za(e.getHours()%12||12,r,2)}function n5(e,r){return Za(1+g_.count(dv(e),e),r,3)}function yb(e,r){return Za(e.getMilliseconds(),r,3)}function i5(e,r){return yb(e,r)+"000"}function a5(e,r){return Za(e.getMonth()+1,r,2)}function o5(e,r){return Za(e.getMinutes(),r,2)}function s5(e,r){return Za(e.getSeconds(),r,2)}function u5(e){var r=e.getDay();return r===0?7:r}function l5(e,r){return Za(m_.count(dv(e)-1,e),r,2)}function xb(e){var r=e.getDay();return r>=4||r===0?vv(e):vv.ceil(e)}function c5(e,r){return e=xb(e),Za(vv.count(dv(e),e)+(dv(e).getDay()===4),r,2)}function f5(e){return e.getDay()}function h5(e,r){return Za(Vg.count(dv(e)-1,e),r,2)}function p5(e,r){return Za(e.getFullYear()%100,r,2)}function d5(e,r){return e=xb(e),Za(e.getFullYear()%100,r,2)}function v5(e,r){return Za(e.getFullYear()%1e4,r,4)}function m5(e,r){var t=e.getDay();return e=t>=4||t===0?vv(e):vv.ceil(e),Za(e.getFullYear()%1e4,r,4)}function g5(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Za(r/60|0,"0",2)+Za(r%60,"0",2)}function bb(e,r){return Za(e.getUTCDate(),r,2)}function _5(e,r){return Za(e.getUTCHours(),r,2)}function y5(e,r){return Za(e.getUTCHours()%12||12,r,2)}function x5(e,r){return Za(1+hb.count(mm(e),e),r,3)}function Eb(e,r){return Za(e.getUTCMilliseconds(),r,3)}function b5(e,r){return Eb(e,r)+"000"}function E5(e,r){return Za(e.getUTCMonth()+1,r,2)}function S5(e,r){return Za(e.getUTCMinutes(),r,2)}function A5(e,r){return Za(e.getUTCSeconds(),r,2)}function T5(e){var r=e.getUTCDay();return r===0?7:r}function w5(e,r){return Za(cb.count(mm(e)-1,e),r,2)}function Sb(e){var r=e.getUTCDay();return r>=4||r===0?mv(e):mv.ceil(e)}function C5(e,r){return e=Sb(e),Za(mv.count(mm(e),e)+(mm(e).getUTCDay()===4),r,2)}function R5(e){return e.getUTCDay()}function M5(e,r){return Za(Hg.count(mm(e)-1,e),r,2)}function I5(e,r){return Za(e.getUTCFullYear()%100,r,2)}function P5(e,r){return e=Sb(e),Za(e.getUTCFullYear()%100,r,2)}function O5(e,r){return Za(e.getUTCFullYear()%1e4,r,4)}function D5(e,r){var t=e.getUTCDay();return e=t>=4||t===0?mv(e):mv.ceil(e),Za(e.getUTCFullYear()%1e4,r,4)}function k5(){return"+0000"}function Ab(){return"%"}function Tb(e){return+e}function wb(e){return Math.floor(+e/1e3)}var gv,Cb,F5,B5,L5;N5({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function N5(e){return gv=FP(e),Cb=gv.format,F5=gv.parse,B5=gv.utcFormat,L5=gv.utcParse,gv}var xm=1e3,bm=xm*60,Em=bm*60,Sm=Em*24,U5=Sm*7,Rb=Sm*30,b_=Sm*365;function z5(e){return new Date(e)}function Z5(e){return e instanceof Date?+e:+new Date(+e)}function Mb(e,r,t,n,i,o,s,l,f){var v=Bx(Yu,Yu),y=v.invert,b=v.domain,T=f(".%L"),M=f(":%S"),O=f("%I:%M"),k=f("%I %p"),$=f("%a %d"),G=f("%b %d"),oe=f("%B"),ye=f("%Y"),Le=[[s,1,xm],[s,5,5*xm],[s,15,15*xm],[s,30,30*xm],[o,1,bm],[o,5,5*bm],[o,15,15*bm],[o,30,30*bm],[i,1,Em],[i,3,3*Em],[i,6,6*Em],[i,12,12*Em],[n,1,Sm],[n,2,2*Sm],[t,1,U5],[r,1,Rb],[r,3,3*Rb],[e,1,b_]];function $e(vt){return(s(vt)2){var b=v.scale.ticks(s.values.length);v.scale.domain(b)}s.values?v.scale.range(s.values):v.scale.range(v.option.domain);break;case to.QUANTILE:case to.QUANTIZE:case to.THRESHOLD:v.scale.range(s.values);break;case to.IDENTITY:break;case to.CAT:s.values?v.scale.range(s.values):v.scale.range(v.option.domain);break;case to.DIVERGING:case to.SEQUENTIAL:v.scale.interpolator(BI(s.values));break}}if(s.values==="text"){var T;v.scale.range((T=v.option)===null||T===void 0?void 0:T.domain)}})):(s.type=ov.CONSTANT,s.defaultValues=f.map(function(v,y){return v.scale(s.names[y])})),s.scalers=f.map(function(v){return{field:v.field,func:v.scale,option:v.option}}),o.needRescale=!1}})}},{key:"parseFields",value:function(t){return Array.isArray(t)?t:$5(t)?t.split("*"):[t]}},{key:"createScale",value:function(t,n,i,o){var s,l,f=this.scaleOptions[n]&&((s=this.scaleOptions[n])===null||s===void 0?void 0:s.field)===t?this.scaleOptions[n]:this.scaleOptions[t],v={field:t,scale:void 0,type:ov.VARIABLE,option:f};if(!o||!o.length)return f&&f.type?v.scale=this.createDefaultScale(f):(v.scale=Fg([t]),v.type=ov.CONSTANT),v;var y=(l=o.find(function(M){return!E_(M[t])}))===null||l===void 0?void 0:l[t];if(this.isNumber(t)||E_(y)&&!f)v.scale=Fg([t]),v.type=ov.CONSTANT;else{var b=f&&f.type||this.getDefaultType(y);i==="text"&&(b=to.CAT),i===void 0&&(b=to.IDENTITY);var T=this.createScaleConfig(b,t,f,o);v.scale=this.createDefaultScale(T),v.option=T}return v}},{key:"getDefaultType",value:function(t){var n=to.LINEAR;return typeof t=="string"&&(n=q5.test(t)?to.TIME:to.CAT),n}},{key:"createScaleConfig",value:function(t,n,i,o){var s={type:t},l=(o==null?void 0:o.map(function(y){return y[n]}))||[];if(i!=null&&i.domain)s.domain=i==null?void 0:i.domain;else if(t===to.CAT||t===to.IDENTITY)s.domain=Y5(l);else if(t===to.QUANTILE)s.domain=l;else if(t===to.DIVERGING){var f=vx(l),v=(i==null?void 0:i.neutral)!==void 0?i==null?void 0:i.neutral:(f[0]+f[1])/2;s.domain=[f[0],v,f[1]]}else s.domain=vx(l);return(0,H.Z)((0,H.Z)({},s),i)}},{key:"createDefaultScale",value:function(t){var n=t.type,i=t.domain,o=t.unknown,s=t.clamp,l=t.nice,f=K5[n]();return i&&f.domain&&f.domain(i),o&&f.unknown(o),s!==void 0&&f.clamp&&f.clamp(s),l!==void 0&&f.nice&&f.nice(l),f}}]),e}())||Bb),Lb,Nb,J5=(Lb=(0,gt.b2)(),Lb(Nb=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"apply",value:function(t){t.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var n=t.animateStatus;n&&t.models.forEach(function(i){i.addUniforms((0,H.Z)({},t.layerModel.getAnimateUniforms()))})})}}]),e}())||Nb),Ub,zb,e4=(Ub=(0,gt.b2)(),Ub(zb=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"apply",value:function(t){t.hooks.afterInit.tap("LayerMaskPlugin",function(){var n=t.getLayerConfig(),i=n.maskLayers,o=n.enableMask;if(!t.tileLayer&&i&&i.length>0){var s;(s=t.masks).push.apply(s,(0,Wt.Z)(i)),t.updateLayerConfig({mask:o})}})}}]),e}())||zb),t4=function(){function e(r){var t=r.rendererService,n=r.layerService,i=r.parent;(0,q.Z)(this,e),(0,B.Z)(this,"tileResource",new Map),(0,B.Z)(this,"layerTiles",[]),this.rendererService=t,this.layerService=n,this.parent=i}return(0,V.Z)(e,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(t){return this.layerTiles.some(function(n){return n.key===t})}},{key:"addTile",value:function(t){this.layerTiles.push(t)}},{key:"getTile",value:function(t){return this.layerTiles.find(function(n){return n.key===t})}},{key:"getVisibleTileBylngLat",value:function(t){return this.layerTiles.find(function(n){return n.isLoaded&&n.visible&&n.lnglatInBounds(t)})}},{key:"removeTile",value:function(t){var n=this.layerTiles.findIndex(function(o){return o.key===t}),i=this.layerTiles.splice(n,1);i[0]&&i[0].destroy()}},{key:"updateTileVisible",value:function(t){var n=this.getTile(t.key);if(t.isVisible)if(t.parent){var i=this.isChildrenLoaded(t.parent);n==null||n.updateVisible(i)}else n==null||n.updateVisible(!0);else if(t.parent){var o=this.isChildrenLoaded(t.parent);n==null||n.updateVisible(!o)}else n==null||n.updateVisible(!1)}},{key:"isParentLoaded",value:function(t){var n=t.parent;if(!n)return!0;var i=this.getTile(n==null?void 0:n.key);return!!(i!=null&&i.isLoaded)}},{key:"isChildrenLoaded",value:function(t){var n=this,i=t==null?void 0:t.children;return i.length===0?!0:i.every(function(o){var s=n.getTile(o==null?void 0:o.key);return s?(s==null?void 0:s.isLoaded)===!0:!0})}},{key:"render",value:function(){var r=(0,Ct.Z)(me().mark(function n(){var i=this,o,s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return o=this.getRenderLayers(),s=o.map(function(){var v=(0,Ct.Z)(me().mark(function y(b){return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,i.layerService.renderTileLayer(b);case 2:case"end":return M.stop()}},y)}));return function(y){return v.apply(this,arguments)}}()),f.next=4,Promise.all(s);case 4:case"end":return f.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"getRenderLayers",value:function(){var t=this.layerTiles.filter(function(i){return i.visible&&i.isLoaded}),n=[];return t.map(function(i){return n.push.apply(n,(0,Wt.Z)(i.getLayers()))}),n}},{key:"getLayers",value:function(){var t=this.layerTiles.filter(function(i){return i.isLoaded}),n=[];return t.map(function(i){return n.push.apply(n,(0,Wt.Z)(i.getLayers()))}),n}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(t){return t.destroy()}),this.tileResource.clear()}}]),e}(),r4=L(23167);function n4(e,r,t){t===void 0&&(t={});var n=Vr(e),i=Vr(r),o=r4.union(n.coordinates,i.coordinates);return o.length===0?null:o.length===1?yr(o[0],t.properties):rn(o,t.properties)}var i4=n4,a4=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"getCombineFeature",value:function(t){var n=null,i=t[0];return t.map(function(o){var s=yr(o.coordinates);n===null?n=s:n=i4(n,s)}),i&&(n.properties=(0,H.Z)({},i)),n}}]),e}(),Tm="select",wm="active",o4=function(){function e(r){var t=r.layerService,n=r.tileLayerService,i=r.parent;(0,q.Z)(this,e),(0,B.Z)(this,"tilePickID",new Map),this.layerService=t,this.tileLayerService=n,this.parent=i,this.tileSourceService=new a4}return(0,V.Z)(e,[{key:"pickRender",value:function(t){var n=this.tileLayerService.getVisibleTileBylngLat(t.lngLat);if(n){var i=n.getMainLayer();i==null||i.layerPickService.pickRender(t)}}},{key:"pick",value:function(t,n){var i=this.parent.getContainer(),o=i.get(tt.IPickingService);if(t.type==="RasterLayer"){var s=this.tileLayerService.getVisibleTileBylngLat(n.lngLat);if(s&&s.getMainLayer()!==void 0){var l=s.getMainLayer();return l.layerPickService.pickRasterLayer(l,n,this.parent)}return!1}return this.pickRender(n),o.pickFromPickingFBO(t,n)}},{key:"selectFeature",value:function(t){var n=(0,yn.Z)(t,3),i=n[0],o=n[1],s=n[2],l=this.color2PickId(i,o,s);this.tilePickID.set(Tm,l),this.updateHighLight(i,o,s,Tm)}},{key:"highlightPickedFeature",value:function(t){var n=(0,yn.Z)(t,3),i=n[0],o=n[1],s=n[2],l=this.color2PickId(i,o,s);this.tilePickID.set(wm,l),this.updateHighLight(i,o,s,wm)}},{key:"updateHighLight",value:function(t,n,i,o){this.tileLayerService.tiles.map(function(s){var l=s.getMainLayer();switch(o){case Tm:l==null||l.hooks.beforeSelect.call([t,n,i]);break;case wm:l==null||l.hooks.beforeHighlight.call([t,n,i]);break}})}},{key:"setPickState",value:function(){var t=this.tilePickID.get(Tm),n=this.tilePickID.get(wm);if(t){var i=this.pickId2Color(t),o=(0,yn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.updateHighLight(s,l,f,Tm);return}if(n){var v=this.pickId2Color(n),y=(0,yn.Z)(v,3),b=y[0],T=y[1],M=y[2];this.updateHighLight(b,T,M,wm);return}}},{key:"color2PickId",value:function(t,n,i){return Oa(new Uint8Array([t,n,i]))}},{key:"pickId2Color",value:function(t){return ia(t)}},{key:"getFeatureById",value:function(t){var n=this.tileLayerService.getTiles().filter(function(o){return o.visible}),i=[];return n.forEach(function(o){i.push.apply(i,(0,Wt.Z)(o.getFeatureById(t)))}),i}},{key:"pickRasterLayer",value:function(t,n,i){return!1}}]),e}();function s4(e){return e==="PolygonLayer"?Rg:e==="LineLayer"?q0:Cg}function u4(e){return["PolygonLayer","LineLayer"].indexOf(e)!==-1}function l4(e){var r=c4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function c4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var xd=function(e){(0,De.Z)(t,e);var r=l4(t);function t(n,i){var o;return(0,q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Ie.Z)(o),"visible",!0),(0,B.Z)((0,Ie.Z)(o),"layers",[]),(0,B.Z)((0,Ie.Z)(o),"isLoaded",!1),(0,B.Z)((0,Ie.Z)(o),"tileMaskLayers",[]),o.parent=i,o.sourceTile=n,o.x=n.x,o.y=n.y,o.z=n.z,o.key="".concat(o.x,"_").concat(o.y,"_").concat(o.z),o}return(0,V.Z)(t,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(i){var o=(0,yn.Z)(this.sourceTile.bounds,4),s=o[0],l=o[1],f=o[2],v=o[3],y=i.lng,b=i.lat;return y>=s&&y<=f&&b>=l&&b<=v}},{key:"getLayerOptions",value:function(){var i,o=this.parent.getLayerConfig();return(0,H.Z)((0,H.Z)({},o),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:u4(this.parent.type),mask:o.mask||((i=o.maskLayers)===null||i===void 0?void 0:i.length)!==0&&o.enableMask})}},{key:"getMaskLayer",value:function(){var i=this,o=this.parent.getLayerConfig(),s=o.maskLayers,l=[];return s==null||s.forEach(function(f){if(!f.tileLayer)return l.push(f),f;var v=f.tileLayer,y=v.getTile(i.sourceTile.key),b=y==null?void 0:y.getLayers()[0];b&&l.push(b)}),l}},{key:"addTileMask",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f;return me().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=new Rg({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),l=lm(this.parent.sceneContainer),s.setContainer(l,this.parent.sceneContainer),y.next=5,s.init();case 5:return this.tileMask=s,f=this.getMainLayer(),f!==void 0&&(f.tileMask=s),y.abrupt("return",s);case 9:case"end":return y.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"addMask",value:function(){var n=(0,Ct.Z)(me().mark(function o(s,l){var f;return me().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return f=lm(this.parent.sceneContainer),l.setContainer(f,this.parent.sceneContainer),y.next=4,l.init();case 4:s.addMask(l),this.tileMaskLayers.push(l);case 6:case"end":return y.stop()}},o,this)}));function i(o,s){return n.apply(this,arguments)}return i}()},{key:"addLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(s){var l;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s.isTileLayer=!0,l=lm(this.parent.sceneContainer),s.setContainer(l,this.parent.sceneContainer),this.layers.push(s),v.next=6,s.init();case 6:case"end":return v.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"updateVisible",value:function(i){this.visible=i,this.updateOptions("visible",i)}},{key:"updateOptions",value:function(i,o){this.layers.forEach(function(s){s.updateLayerConfig((0,B.Z)({},i,o))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(i){return[]}},{key:"getFeatureById",value:function(i){return[]}},{key:"destroy",value:function(){var i;(i=this.tileMask)===null||i===void 0||i.destroy(),this.layers.forEach(function(o){return o.destroy()})}}]),t}(no.EventEmitter);function f4(e){var r=h4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function h4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var p4=function(e){(0,De.Z)(t,e);var r=f4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.getSourceOption(),l=s.data.features[0].properties,f=new q0().source(s.data,s.options).size(1).shape("line").color("red"),v=new Cg({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([l],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),b.next=6,this.addLayer(f);case 6:return b.next=8,this.addLayer(v);case 8:this.isLoaded=!0;case 9:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:o},options:{parser:{type:"geojson"},transforms:i.transforms}}}}]),t}(xd);function d4(e){var r=v4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function v4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var m4=function(e){(0,De.Z)(t,e);var r=d4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new P1((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,k=T;v[k]((M=s[k])===null||M===void 0?void 0:M.field,(O=s[k])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:i.transforms}}}}]),t}(xd);function g4(e){var r=_4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function _4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var y4=function(e){(0,De.Z)(t,e);var r=g4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new ix((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,k=T;v[k]((M=s[k])===null||M===void 0?void 0:M.field,(O=s[k])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getFeatures",value:function(i){if(!i)return[];var o=this.sourceTile.data;return o.getTileData(i)}},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.parent.getLayerConfig(),s=o.sourceLayer,l=o.featureId,f=this.getFeatures(s);return{data:{type:"FeatureCollection",features:f},options:{parser:{type:"geojson",featureId:l},transforms:i.transforms}}}}]),t}(xd),x4=["rasterData"];function b4(e){var r=E4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function E4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var S4=function(e){(0,De.Z)(t,e);var r=b4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new Mg((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,k=T;v[k]((M=s[k])===null||M===void 0?void 0:M.field,(O=s[k])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.data,s=o.rasterData,l=(0,Fa.Z)(o,x4);return{data:s,options:{parser:(0,H.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},l),transforms:i.transforms}}}}]),t}(xd);function A4(e){var r=T4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function T4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var w4=function(e){(0,De.Z)(t,e);var r=A4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v;return me().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new Mg((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,k=T;v[k]((M=s[k])===null||M===void 0?void 0:M.field,(O=s[k])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:i.transforms}}}}]),t}(xd),C4=["rasterData"];function R4(e){var r=M4();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function M4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var I4={positions:[0,1],colors:["#000","#fff"]},P4=function(e){(0,De.Z)(t,e);var r=R4(t);function t(){return(0,q.Z)(this,t),r.apply(this,arguments)}return(0,V.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s,l,f,v,y,b,T;return me().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=this.getLayerOptions(),y=v.rampColors,b=v.domain,this.colorTexture=this.parent.textureService.getColorTexture(y,b),T=new Mg((0,H.Z)((0,H.Z)({},l),{},{colorTexture:this.colorTexture})).source(f.data,f.options),s&&Object.keys(s).forEach(function(k){var $,G,oe=k;T[oe](($=s[oe])===null||$===void 0?void 0:$.field,(G=s[oe])===null||G===void 0?void 0:G.values)}),O.next=9,this.addLayer(T);case 9:this.isLoaded=!0;case 10:case"end":return O.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.data,s=o.rasterData,l=(0,Fa.Z)(o,C4);return{data:s,options:{parser:(0,H.Z)({type:"raster",extent:this.sourceTile.bounds},l),transforms:i.transforms}}}},{key:"styleUpdate",value:function(){for(var i=this,o=arguments.length,s=new Array(o),l=0;l=2&&!v&&(t.parent.updateLayerConfig({visible:!0}),t.layerService.reRender())}t.lastViewStates&&t.lastViewStates.zoom===l&&t.lastViewStates.latLonBounds.toString()===s.toString()||(t.lastViewStates={zoom:l,latLonBounds:s},(i=t.tilesetManager)===null||i===void 0||i.throttleUpdate(l,s))}}),(0,B.Z)(this,"viewchange",B4(this.mapchange,24)),this.parent=r;var n=this.parent.getContainer();this.rendererService=n.get(tt.IRendererService),this.layerService=n.get(tt.ILayerService),this.mapService=n.get(tt.IMapService),this.pickingService=n.get(tt.IPickingService),this.tileLayerService=new t4({rendererService:this.rendererService,layerService:this.layerService,parent:r}),this.tilePickService=new o4({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:r}),this.parent.setLayerPickService(this.tilePickService),this.proxy(r),this.initTileSetManager()}return(0,V.Z)(e,[{key:"initTileSetManager",value:function(){var t,n=this.parent.getSource();if(this.tilesetManager=n.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var i=this.getCurrentView(),o=i.latLonBounds,s=i.zoom;(t=this.tilesetManager)===null||t===void 0||t.update(s,o)}}},{key:"getCurrentView",value:function(){var t=this.mapService.getBounds(),n=[t[0][0],t[0][1],t[1][0],t[1][1]],i=this.mapService.getZoom();return{latLonBounds:n,zoom:i}}},{key:"bindTilesetEvent",value:function(){var t=this;this.tilesetManager.on("tile-loaded",function(n){}),this.tilesetManager.on("tile-unload",function(n){t.tileUnLoad(n)}),this.tilesetManager.on("tile-error",function(n,i){t.tileError(n)}),this.tilesetManager.on("tile-update",function(){t.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(t){return this.tileLayerService.getTile(t)}},{key:"tileLoaded",value:function(t){}},{key:"tileError",value:function(t){console.warn("error:",t)}},{key:"destroy",value:function(){var t;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(t=this.tilesetManager)===null||t===void 0||t.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var t;this.tilesetManager.clear();var n=this.getCurrentView(),i=n.latLonBounds,o=n.zoom;(t=this.tilesetManager)===null||t===void 0||t.update(o,i)}},{key:"tileUnLoad",value:function(t){this.tileLayerService.removeTile(t.key)}},{key:"tileUpdate",value:function(){var r=(0,Ct.Z)(me().mark(function n(){var i=this,o,s;return me().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.tilesetManager){f.next=2;break}return f.abrupt("return");case 2:return o=this.parent.getMinZoom(),s=this.parent.getMaxZoom(),f.next=6,Promise.all(this.tilesetManager.tiles.filter(function(v){return v.isLoaded}).filter(function(v){return v.isVisibleChange}).filter(function(v){return v.data}).filter(function(v){return v.z>=o&&v.z>>8&255}function ch(e){return e>>>16&255}function Sv(e){return e&255}function SE(e){switch(e){case Cr.F32:case Cr.U32:case Cr.S32:return 4;case Cr.U16:case Cr.S16:case Cr.F16:return 2;case Cr.U8:case Cr.S8:return 1;default:throw new Error("whoops")}}function AE(e){return SE(ch(e))}function vN(e){return Qg(e)}function pO(e){var r=SE(ch(e)),t=Qg(e);return r*t}function mN(e,r){return e&4294967040|r}function gN(e,r){return e&4294902015|r<<8}function TE(e){var r=Sv(e);if(r&An.Depth)return zo.Depth;if(r&An.Normalized)return zo.Float;var t=ch(e);if(t===Cr.F16||t===Cr.F32)return zo.Float;if(t===Cr.U8||t===Cr.U16||t===Cr.U32)return zo.Uint;if(t===Cr.S8||t===Cr.S16||t===Cr.S32)return zo.Sint;throw new Error("whoops")}function Di(e,r){if(r===void 0&&(r=""),!e)throw new Error("Assert fail: ".concat(r))}function Ad(e){if(e!=null)return e;throw new Error("Missing object")}function wE(e,r){return e.r===r.r&&e.g===r.g&&e.b===r.b&&e.a===r.a}function CE(e,r){e.r=r.r,e.g=r.g,e.b=r.b,e.a=r.a}function RE(e){var r=e.r,t=e.g,n=e.b,i=e.a;return{r,g:t,b:n,a:i}}function Jg(e,r,t,n){return n===void 0&&(n=1),{r:e,g:r,b:t,a:n}}var A_=Jg(0,0,0,0),_N=Jg(0,0,0,1),dO=Jg(1,1,1,0),yN=Jg(1,1,1,1),Av=!0;function xN(e,r){r===void 0&&(r=Av),r&&(e[10]=-e[10],e[14]=-e[14])}function bN(e,r){r===void 0&&(r=Av),r&&(e[10]=-e[10],e[14]=-e[14]+1)}function vO(e,r){if(r===void 0&&(r=Av),r)switch(e){case _a.LESS:return _a.GREATER;case _a.LEQUAL:return _a.GEQUAL;case _a.GEQUAL:return _a.LEQUAL;case _a.GREATER:return _a.LESS;default:return e}else return e}function EN(e,r){return r===void 0&&(r=Av),r?1-e:e}function SN(e,r){return r===void 0&&(r=Av),r?-e:e}function AN(e,r,t,n){if(n===void 0&&(n=Av),t=vO(t,n),t===_a.LESS)return er;if(t===_a.GEQUAL)return e>=r;throw new Error("whoops")}function e0(e){return!!(e&&!(e&e-1))}function Tv(e,r){return e!=null?e:r}function mO(e){return e===void 0?null:e}function TN(e,r,t){e.length=r,e.fill(t)}function t0(e,r){var t=r-1;return e+t&~t}function wN(e,r){return((e+r-1)/r|0)*r}function gO(e,r,t){for(var n=0,i=e.length;n>>1),s=t(r,e[o]);s<0?i=o:n=o+1}return n}function CN(e,r,t){var n=gO(e,r,t);e.splice(n,0,r)}function RN(e,r,t){return t?e|=r:e&=~r,e}function _O(e,r){for(var t=new Array(e),n=0;n0&&arguments[0]!==void 0?arguments[0]:!0;i&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),t}(Ma),bI={fill:xI},EI=bI;function SI(e){var r=AI();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function AI(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ix=function(e){(0,Le.Z)(t,e);var r=SI(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&this.mapService.version==="GAODE2.x"){var o=n.coordCenter||n.getSource().center;t.filter(function(s){return!s.originCoordinates}).map(function(s){s.version="GAODE2.x",s.originCoordinates=TI(s.coordinates),s.coordinates=i.mapService.coordToAMap2RelativeCoordinates(s.coordinates,o)})}}},{key:"adjustData2SimpleCoordinates",value:function(t){var n=this;t.length>0&&this.mapService.version==="SIMPLE"&&t.map(function(i){i.simpleCoordinate||(i.coordinates=n.unProjectCoordinates(i.coordinates),i.simpleCoordinate=!0)})}},{key:"unProjectCoordinates",value:function(t){var n=this;if(typeof t[0]=="number")return this.mapService.simpleMapCoord.unproject(t);if(t[0]&&t[0][0]instanceof Array){var i=[];return t.map(function(s){var l=[];s.map(function(f){l.push(n.mapService.simpleMapCoord.unproject(f))}),i.push(l)}),i}else{var o=[];return t.map(function(s){o.push(n.mapService.simpleMapCoord.unproject(s))}),o}}},{key:"applyAttributeMapping",value:function(t,n){var i;if(!t.scale)return[];var o=(t==null||(i=t.scale)===null||i===void 0?void 0:i.scalers)||[],s=[];o.forEach(function(f){var v,y=f.field;(n.hasOwnProperty(y)||((v=t.scale)===null||v===void 0?void 0:v.type)==="variable")&&s.push(n[y])});var l=t.mapping?t.mapping(s):[];return l}},{key:"getArrowPoints",value:function(t,n){var i=[n[0]-t[0],n[1]-t[1]],o=kf(i),s=[t[0]+o[0]*1e-4,t[1]+o[1]*1e-4];return s}}]),e}(),lx=ki(Ig.prototype,"mapService",[ox],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cx=ki(Ig.prototype,"fontService",[sx],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ig))||ux),fx,hx,CI=(fx=(0,yt.b2)(),fx(hx=function(){function e(){(0,Q.Z)(this,e)}return(0,j.Z)(e,[{key:"apply",value:function(t){var n=this;this.mapService=t.getContainer().get(ot.IMapService),t.hooks.init.tapPromise("DataSourcePlugin",(0,Pt.Z)(ge().mark(function i(){var o,s,l,f;return ge().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(t.log(Rs.SourceInitStart,ds.INIT),o=t.getSource(),o||(s=t.sourceOption||t.defaultSourceConfig,l=s.data,f=s.options,o=new Xy(l,f),t.setSource(o)),!o.inited){y.next=8;break}n.updateClusterData(t),t.log(Rs.SourceInitEnd,ds.INIT),y.next=10;break;case 8:return y.next=10,new Promise(function(b){o.on("update",function(T){T.type==="inited"&&(n.updateClusterData(t),t.log(Rs.SourceInitEnd,ds.INIT)),b(null)})});case 10:case"end":return y.stop()}},i)}))),t.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Pt.Z)(ge().mark(function i(){var o,s,l;return ge().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=n.updateClusterData(t),s=t.dataState.dataSourceNeedUpdate,t.dataState.dataSourceNeedUpdate=!1,l=o||s,v.abrupt("return",l);case 5:case"end":return v.stop()}},i)})))}},{key:"updateClusterData",value:function(t){if(t.isTileLayer||t.tileLayer||!t.getSource())return!1;var n=t.getSource(),i=n.cluster,o=n.clusterOptions.zoom,s=o===void 0?0:o,l=this.mapService.getZoom()-1,f=t.dataState.dataSourceNeedUpdate;return i&&f&&n.updateClusterData(Math.floor(l)),i&&Math.abs(t.clusterZoom-l)>=1?(s!==Math.floor(l)&&n.updateClusterData(Math.floor(l)),t.clusterZoom=l,!0):!1}}]),e}())||hx);function Q0(e,r){return er?1:e>=r?0:NaN}function px(e){return e.length===1&&(e=RI(e)),{left:function(r,t,n,i){for(n==null&&(n=0),i==null&&(i=r.length);n>>1;e(r[o],t)<0?n=o+1:i=o}return n},right:function(r,t,n,i){for(n==null&&(n=0),i==null&&(i=r.length);n>>1;e(r[o],t)>0?i=o:n=o+1}return n}}}function RI(e){return function(r,t){return Q0(e(r),t)}}var dx=px(Q0),MI=dx.right,ML=dx.left,Pg=MI;function vx(e,r){var t=e.length,n=-1,i,o,s;if(r==null){for(;++n=i)for(o=s=i;++ni&&(o=i),s=i)for(o=s=i;++ni&&(o=i),s0)return[e];if((n=r0)for(e=Math.ceil(e/l),r=Math.floor(r/l),s=new Array(o=Math.ceil(r-e+1));++i=0?(o>=J0?10:o>=e_?5:o>=t_?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=J0?10:o>=e_?5:o>=t_?2:1)}function r_(e,r,t){var n=Math.abs(r-e)/Math.max(0,t),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return o>=J0?i*=10:o>=e_?i*=5:o>=t_&&(i*=2),rb;)T.pop(),--M;var O=new Array(M+1),F;for(o=0;o<=M;++o)F=O[o]=[],F.x0=o>0?T[o-1]:y,F.x1=o=1)return+t(e[n-1],n-1,e);var n,i=(n-1)*r,o=Math.floor(i),s=+t(e[o],o,e),l=+t(e[o+1],o+1,e);return s+(l-s)*(i-o)}}function _x(e,r,t,n,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*r+(4-6*o+3*s)*t+(1+3*e+3*o-3*s)*n+s*i)/6}function OI(e){var r=e.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,r-1):Math.floor(t*r),i=e[n],o=e[n+1],s=n>0?e[n-1]:2*i-o,l=n180||t<-180?t-360*Math.round(t/360):t):constant(isNaN(e)?r:e)}function kI(e){return(e=+e)==1?xx:function(r,t){return t-r?FI(r,t,e):n_(isNaN(r)?t:r)}}function xx(e,r){var t=r-e;return t?yx(e,t):n_(isNaN(e)?r:e)}var bx=function e(r){var t=kI(r);function n(i,o){var s=t((i=(0,os.B8)(i)).r,(o=(0,os.B8)(o)).r),l=t(i.g,o.g),f=t(i.b,o.b),v=xx(i.opacity,o.opacity);return function(y){return i.r=s(y),i.g=l(y),i.b=f(y),i.opacity=v(y),i+""}}return n.gamma=e,n}(1);function Ex(e){return function(r){var t=r.length,n=new Array(t),i=new Array(t),o=new Array(t),s,l;for(s=0;s=e.length)return t!=null&&l.sort(t),n!=null?n(l):l;for(var b=-1,T=l.length,M=e[f++],O,F,$=map(),G,ue=v();++be.length)return l;var v,y=r[f-1];return n!=null&&f>=e.length?v=l.entries():(v=[],l.each(function(b,T){v.push({key:T,values:s(b,f)})})),y!=null?v.sort(function(b,T){return y(b.key,T.key)}):v}return i={object:function(l){return o(l,0,LI,NI)},map:function(l){return o(l,0,Ax,Tx)},entries:function(l){return s(o(l,0,Ax,Tx),0)},key:function(l){return e.push(l),i},sortKeys:function(l){return r[e.length-1]=l,i},sortValues:function(l){return t=l,i},rollup:function(l){return n=l,i}}}function LI(){return{}}function NI(e,r,t){e[r]=t}function Ax(){return map()}function Tx(e,r,t){e.set(r,t)}function Fg(){}var md=i_.prototype;Fg.prototype=UI.prototype={constructor:Fg,has:md.has,add:function(e){return e+="",this[qc+e]=e,this},remove:md.remove,clear:md.clear,values:md.keys,size:md.size,empty:md.empty,each:md.each};function UI(e,r){var t=new Fg;if(e instanceof Fg)e.each(function(o){t.add(o)});else if(e){var n=-1,i=e.length;if(r==null)for(;++nt&&(o=r.slice(t,o),l[s]?l[s]+=o:l[++s]=o),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,f.push({i:s,x:Bg(n,i)})),t=o_.lastIndex;return tt&&(n=r,r=t,t=n),function(i){return Math.max(r,Math.min(t,i))}}function qI(e,r,t){var n=e[0],i=e[1],o=r[0],s=r[1];return i2?KI:qI,f=v=null,b}function b(T){return isNaN(T=+T)?o:(f||(f=l(e.map(n),r,t)))(n(s(T)))}return b.invert=function(T){return s(i((v||(v=l(r,e.map(n),Bg)))(T)))},b.domain=function(T){return arguments.length?(e=Rx.call(T,YI),s===Yu||(s=kx(e)),y()):e.slice()},b.range=function(T){return arguments.length?(r=gd.call(T),y()):r.slice()},b.rangeRound=function(T){return r=gd.call(T),t=XI,y()},b.clamp=function(T){return arguments.length?(s=T?kx(e):Yu,b):s!==Yu},b.interpolate=function(T){return arguments.length?(t=T,y()):t},b.unknown=function(T){return arguments.length?(o=T,b):o},function(T,M){return n=T,i=M,y()}}function Bx(e,r){return l_()(e,r)}var QI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ng(e){if(!(r=QI.exec(e)))throw new Error("invalid format: "+e);var r;return new c_({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}Ng.prototype=c_.prototype;function c_(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}c_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function JI(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ug(e,r){if((t=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"))<0)return null;var t,n=e.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+e.slice(t+1)]}function pv(e){return e=Ug(Math.abs(e)),e?e[1]:NaN}function eP(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pv(r)/3)))*3-pv(Math.abs(e)))}function tP(e,r){return function(t,n){for(var i=t.length,o=[],s=0,l=e[0],f=0;i>0&&l>0&&(f+l+1>n&&(l=Math.max(1,n-f)),o.push(t.substring(i-=l,i+l)),!((f+=l+1)>n));)l=e[s=(s+1)%e.length];return o.reverse().join(r)}}function rP(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}function nP(e){e:for(var r=e.length,t=1,n=-1,i;t0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Lx;function iP(e,r){var t=Ug(e,r);if(!t)return e+"";var n=t[0],i=t[1],o=i-(Lx=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Ug(e,Math.max(0,r+o-1))[0]}function Nx(e,r){var t=Ug(e,r);if(!t)return e+"";var n=t[0],i=t[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var Ux={"%":function(e,r){return(e*100).toFixed(r)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:JI,e:function(e,r){return e.toExponential(r)},f:function(e,r){return e.toFixed(r)},g:function(e,r){return e.toPrecision(r)},o:function(e){return Math.round(e).toString(8)},p:function(e,r){return Nx(e*100,r)},r:Nx,s:iP,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function zx(e){return e}var Zx=Array.prototype.map,Vx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function aP(e){var r=e.grouping===void 0||e.thousands===void 0?zx:tP(Zx.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?zx:rP(Zx.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function v(b){b=Ng(b);var T=b.fill,M=b.align,O=b.sign,F=b.symbol,$=b.zero,G=b.width,ue=b.comma,xe=b.precision,ze=b.trim,Je=b.type;Je==="n"?(ue=!0,Je="g"):Ux[Je]||(xe===void 0&&(xe=12),ze=!0,Je="g"),($||T==="0"&&M==="=")&&($=!0,T="0",M="=");var ht=F==="$"?t:F==="#"&&/[boxX]/.test(Je)?"0"+Je.toLowerCase():"",gt=F==="$"?n:/[%p]/.test(Je)?s:"",Ot=Ux[Je],tr=/[defgprs%]/.test(Je);xe=xe===void 0?6:/[gprs]/.test(Je)?Math.max(1,Math.min(21,xe)):Math.max(0,Math.min(20,xe));function Ir(Er){var mn=ht,Ln=gt,Fi,xa,is;if(Je==="c")Ln=Ot(Er)+Ln,Er="";else{Er=+Er;var _s=Er<0||1/Er<0;if(Er=isNaN(Er)?f:Ot(Math.abs(Er),xe),ze&&(Er=nP(Er)),_s&&+Er==0&&O!=="+"&&(_s=!1),mn=(_s?O==="("?O:l:O==="-"||O==="("?"":O)+mn,Ln=(Je==="s"?Vx[8+Lx/3]:"")+Ln+(_s&&O==="("?")":""),tr){for(Fi=-1,xa=Er.length;++Fiis||is>57){Ln=(is===46?i+Er.slice(Fi+1):Er.slice(Fi))+Ln,Er=Er.slice(0,Fi);break}}}ue&&!$&&(Er=r(Er,1/0));var as=mn.length+Er.length+Ln.length,lu=as>1)+mn+Er+Ln+lu.slice(as);break;default:Er=lu+mn+Er+Ln;break}return o(Er)}return Ir.toString=function(){return b+""},Ir}function y(b,T){var M=v((b=Ng(b),b.type="f",b)),O=Math.max(-8,Math.min(8,Math.floor(pv(T)/3)))*3,F=Math.pow(10,-O),$=Vx[8+O/3];return function(G){return M(F*G)+$}}return{format:v,formatPrefix:y}}var zg,f_,jx;oP({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function oP(e){return zg=aP(e),f_=zg.format,jx=zg.formatPrefix,zg}function sP(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,pv(r)-pv(e))+1}function uP(e){return Math.max(0,-pv(Math.abs(e)))}function lP(e,r,t,n){var i=r_(e,r,t),o;switch(n=Ng(n==null?",f":n),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(r));return n.precision==null&&!isNaN(o=eP(i,s))&&(n.precision=o),jx(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=sP(i,Math.max(Math.abs(e),Math.abs(r))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=uP(i))&&(n.precision=o-(n.type==="%")*2);break}}return f_(n)}function dm(e){var r=e.domain;return e.ticks=function(t){var n=r();return gx(n[0],n[n.length-1],t==null?10:t)},e.tickFormat=function(t,n){var i=r();return lP(i[0],i[i.length-1],t==null?10:t,n)},e.nice=function(t){t==null&&(t=10);var n=r(),i=0,o=n.length-1,s=n[i],l=n[o],f;return l0?(s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f,f=Og(s,l,t)):f<0&&(s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f,f=Og(s,l,t)),f>0?(n[i]=Math.floor(s/f)*f,n[o]=Math.ceil(l/f)*f,r(n)):f<0&&(n[i]=Math.ceil(s*f)/f,n[o]=Math.floor(l*f)/f,r(n)),e},e}function Hx(){var e=Bx(Yu,Yu);return e.copy=function(){return Lg(e,Hx())},Dp.apply(e,arguments),dm(e)}function cP(e){var r;function t(n){return isNaN(n=+n)?r:n}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=map.call(n,number),t):e.slice()},t.unknown=function(n){return arguments.length?(r=n,t):r},t.copy=function(){return cP(e).unknown(r)},e=arguments.length?map.call(e,number):[0,1],linearish(t)}function Wx(e,r){e=e.slice();var t=0,n=e.length-1,i=e[t],o=e[n],s;return o0){for(;Ty)break;ue.push($)}}else for(;T=1;--F)if($=O*F,!($y)break;ue.push($)}}else ue=gx(T,M,Math.min(M-T,G)).map(o);return b?ue.reverse():ue},r.tickFormat=function(l,f){if(f==null&&(f=n===10?".0e":","),typeof f!="function"&&(f=f_(f)),l===1/0)return f;l==null&&(l=10);var v=Math.max(1,n*l/r.ticks().length);return function(y){var b=y/o(Math.round(i(y)));return b*n0?t[l-1]:e[0],l=t?[n[t-1],r]:[n[v-1],n[v]]},s.unknown=function(f){return arguments.length&&(o=f),s},s.thresholds=function(){return n.slice()},s.copy=function(){return eb().domain([e,r]).range(i).unknown(o)},Dp.apply(dm(s),arguments)}function tb(){var e=[.5],r=[0,1],t,n=1;function i(o){return o<=o?r[Pg(e,o,0,n)]:t}return i.domain=function(o){return arguments.length?(e=gd.call(o),n=Math.min(e.length,r.length-1),i):e.slice()},i.range=function(o){return arguments.length?(r=gd.call(o),n=Math.min(e.length,r.length-1),i):r.slice()},i.invertExtent=function(o){var s=r.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(t=o,i):t},i.copy=function(){return tb().domain(e).range(r).unknown(t)},Dp.apply(i,arguments)}var p_=new Date,d_=new Date;function ml(e,r,t,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),r(o,1),e(o),o},i.round=function(o){var s=i(o),l=i.ceil(o);return o-s0))return f;do f.push(v=new Date(+o)),r(o,l),e(o);while(v=s)for(;e(s),!o(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!o(s););else for(;--l>=0;)for(;r(s,1),!o(s););})},t&&(i.count=function(o,s){return p_.setTime(+o),d_.setTime(+s),e(p_),e(d_),Math.floor(t(p_,d_))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?function(s){return n(s)%o===0}:function(s){return i.count(0,s)%o===0}):i}),i}var v_=ml(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,r){e.setFullYear(e.getFullYear()+r)},function(e,r){return r.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});v_.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ml(function(r){r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},function(r,t){r.setFullYear(r.getFullYear()+t*e)})};var dv=v_,ZL=v_.range,rb=ml(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,r){e.setMonth(e.getMonth()+r)},function(e,r){return r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}),EP=rb,VL=rb.range,Zg=1e3,vm=6e4,nb=36e5,ib=864e5,ab=6048e5;function _d(e){return ml(function(r){r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},function(r,t){r.setDate(r.getDate()+t*7)},function(r,t){return(t-r-(t.getTimezoneOffset()-r.getTimezoneOffset())*vm)/ab})}var m_=_d(0),Vg=_d(1),SP=_d(2),AP=_d(3),vv=_d(4),TP=_d(5),wP=_d(6),jL=m_.range,HL=Vg.range,WL=SP.range,GL=AP.range,XL=vv.range,$L=TP.range,YL=wP.range,ob=ml(function(e){e.setHours(0,0,0,0)},function(e,r){e.setDate(e.getDate()+r)},function(e,r){return(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*vm)/ib},function(e){return e.getDate()-1}),g_=ob,qL=ob.range,sb=ml(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zg-e.getMinutes()*vm)},function(e,r){e.setTime(+e+r*nb)},function(e,r){return(r-e)/nb},function(e){return e.getHours()}),CP=sb,KL=sb.range,ub=ml(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zg)},function(e,r){e.setTime(+e+r*vm)},function(e,r){return(r-e)/vm},function(e){return e.getMinutes()}),RP=ub,QL=ub.range,lb=ml(function(e){e.setTime(e-e.getMilliseconds())},function(e,r){e.setTime(+e+r*Zg)},function(e,r){return(r-e)/Zg},function(e){return e.getUTCSeconds()}),MP=lb,JL=lb.range,jg=ml(function(){},function(e,r){e.setTime(+e+r)},function(e,r){return r-e});jg.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ml(function(r){r.setTime(Math.floor(r/e)*e)},function(r,t){r.setTime(+r+t*e)},function(r,t){return(t-r)/e}):jg};var IP=jg,eN=jg.range;function yd(e){return ml(function(r){r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCDate(r.getUTCDate()+t*7)},function(r,t){return(t-r)/ab})}var cb=yd(0),Hg=yd(1),PP=yd(2),OP=yd(3),mv=yd(4),DP=yd(5),FP=yd(6),tN=cb.range,rN=Hg.range,nN=PP.range,iN=OP.range,aN=mv.range,oN=DP.range,sN=FP.range,fb=ml(function(e){e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r)},function(e,r){return(r-e)/ib},function(e){return e.getUTCDate()-1}),hb=fb,uN=fb.range,__=ml(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r)},function(e,r){return r.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});__.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:ml(function(r){r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},function(r,t){r.setUTCFullYear(r.getUTCFullYear()+t*e)})};var mm=__,lN=__.range;function y_(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function x_(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function gm(e,r,t){return{y:e,m:r,d:t,H:0,M:0,S:0,L:0}}function kP(e){var r=e.dateTime,t=e.date,n=e.time,i=e.periods,o=e.days,s=e.shortDays,l=e.months,f=e.shortMonths,v=_m(i),y=ym(i),b=_m(o),T=ym(o),M=_m(s),O=ym(s),F=_m(l),$=ym(l),G=_m(f),ue=ym(f),xe={a:_s,A:as,b:lu,B:Ac,c:null,d:_b,e:_b,f:i5,g:d5,G:m5,H:t5,I:r5,j:n5,L:yb,m:a5,M:o5,p:LB,q:NB,Q:Tb,s:wb,S:s5,u:u5,U:l5,V:c5,w:f5,W:h5,x:null,X:null,y:p5,Y:v5,Z:g5,"%":Ab},ze={a:UB,A:zB,b:ZB,B:VB,c:null,d:bb,e:bb,f:b5,g:P5,G:D5,H:_5,I:y5,j:x5,L:Eb,m:E5,M:S5,p:jB,q:HB,Q:Tb,s:wb,S:A5,u:T5,U:w5,V:C5,w:R5,W:M5,x:null,X:null,y:I5,Y:O5,Z:F5,"%":Ab},Je={a:Ir,A:Er,b:mn,B:Ln,c:Fi,d:mb,e:mb,f:KP,g:vb,G:db,H:gb,I:gb,j:XP,L:qP,m:GP,M:$P,p:tr,q:WP,Q:JP,s:e5,S:YP,u:zP,U:ZP,V:VP,w:UP,W:jP,x:xa,X:is,y:vb,Y:db,Z:HP,"%":QP};xe.x=ht(t,xe),xe.X=ht(n,xe),xe.c=ht(r,xe),ze.x=ht(t,ze),ze.X=ht(n,ze),ze.c=ht(r,ze);function ht(ai,ba){return function(ja){var gn=[],Xl=-1,Do=0,Tc=ai.length,wc,Rd,Q2;for(ja instanceof Date||(ja=new Date(+ja));++Xl53)return null;"w"in gn||(gn.w=1),"Z"in gn?(Do=x_(gm(gn.y,0,1)),Tc=Do.getUTCDay(),Do=Tc>4||Tc===0?Hg.ceil(Do):Hg(Do),Do=hb.offset(Do,(gn.V-1)*7),gn.y=Do.getUTCFullYear(),gn.m=Do.getUTCMonth(),gn.d=Do.getUTCDate()+(gn.w+6)%7):(Do=y_(gm(gn.y,0,1)),Tc=Do.getDay(),Do=Tc>4||Tc===0?Vg.ceil(Do):Vg(Do),Do=g_.offset(Do,(gn.V-1)*7),gn.y=Do.getFullYear(),gn.m=Do.getMonth(),gn.d=Do.getDate()+(gn.w+6)%7)}else("W"in gn||"U"in gn)&&("w"in gn||(gn.w="u"in gn?gn.u%7:"W"in gn?1:0),Tc="Z"in gn?x_(gm(gn.y,0,1)).getUTCDay():y_(gm(gn.y,0,1)).getDay(),gn.m=0,gn.d="W"in gn?(gn.w+6)%7+gn.W*7-(Tc+5)%7:gn.w+gn.U*7-(Tc+6)%7);return"Z"in gn?(gn.H+=gn.Z/100|0,gn.M+=gn.Z%100,x_(gn)):y_(gn)}}function Ot(ai,ba,ja,gn){for(var Xl=0,Do=ba.length,Tc=ja.length,wc,Rd;Xl=Tc)return-1;if(wc=ba.charCodeAt(Xl++),wc===37){if(wc=ba.charAt(Xl++),Rd=Je[wc in pb?ba.charAt(Xl++):wc],!Rd||(gn=Rd(ai,ja,gn))<0)return-1}else if(wc!=ja.charCodeAt(gn++))return-1}return gn}function tr(ai,ba,ja){var gn=v.exec(ba.slice(ja));return gn?(ai.p=y[gn[0].toLowerCase()],ja+gn[0].length):-1}function Ir(ai,ba,ja){var gn=M.exec(ba.slice(ja));return gn?(ai.w=O[gn[0].toLowerCase()],ja+gn[0].length):-1}function Er(ai,ba,ja){var gn=b.exec(ba.slice(ja));return gn?(ai.w=T[gn[0].toLowerCase()],ja+gn[0].length):-1}function mn(ai,ba,ja){var gn=G.exec(ba.slice(ja));return gn?(ai.m=ue[gn[0].toLowerCase()],ja+gn[0].length):-1}function Ln(ai,ba,ja){var gn=F.exec(ba.slice(ja));return gn?(ai.m=$[gn[0].toLowerCase()],ja+gn[0].length):-1}function Fi(ai,ba,ja){return Ot(ai,r,ba,ja)}function xa(ai,ba,ja){return Ot(ai,t,ba,ja)}function is(ai,ba,ja){return Ot(ai,n,ba,ja)}function _s(ai){return s[ai.getDay()]}function as(ai){return o[ai.getDay()]}function lu(ai){return f[ai.getMonth()]}function Ac(ai){return l[ai.getMonth()]}function LB(ai){return i[+(ai.getHours()>=12)]}function NB(ai){return 1+~~(ai.getMonth()/3)}function UB(ai){return s[ai.getUTCDay()]}function zB(ai){return o[ai.getUTCDay()]}function ZB(ai){return f[ai.getUTCMonth()]}function VB(ai){return l[ai.getUTCMonth()]}function jB(ai){return i[+(ai.getUTCHours()>=12)]}function HB(ai){return 1+~~(ai.getUTCMonth()/3)}return{format:function(ai){var ba=ht(ai+="",xe);return ba.toString=function(){return ai},ba},parse:function(ai){var ba=gt(ai+="",!1);return ba.toString=function(){return ai},ba},utcFormat:function(ai){var ba=ht(ai+="",ze);return ba.toString=function(){return ai},ba},utcParse:function(ai){var ba=gt(ai+="",!0);return ba.toString=function(){return ai},ba}}}var pb={"-":"",_:" ",0:"0"},uu=/^\s*\d+/,BP=/^%/,LP=/[\\^$*+?|[\]().{}]/g;function Va(e,r,t){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o68?1900:2e3),t+n[0].length):-1}function HP(e,r,t){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(t,t+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),t+n[0].length):-1}function WP(e,r,t){var n=uu.exec(r.slice(t,t+1));return n?(e.q=n[0]*3-3,t+n[0].length):-1}function GP(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.m=n[0]-1,t+n[0].length):-1}function mb(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.d=+n[0],t+n[0].length):-1}function XP(e,r,t){var n=uu.exec(r.slice(t,t+3));return n?(e.m=0,e.d=+n[0],t+n[0].length):-1}function gb(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.H=+n[0],t+n[0].length):-1}function $P(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.M=+n[0],t+n[0].length):-1}function YP(e,r,t){var n=uu.exec(r.slice(t,t+2));return n?(e.S=+n[0],t+n[0].length):-1}function qP(e,r,t){var n=uu.exec(r.slice(t,t+3));return n?(e.L=+n[0],t+n[0].length):-1}function KP(e,r,t){var n=uu.exec(r.slice(t,t+6));return n?(e.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function QP(e,r,t){var n=BP.exec(r.slice(t,t+1));return n?t+n[0].length:-1}function JP(e,r,t){var n=uu.exec(r.slice(t));return n?(e.Q=+n[0],t+n[0].length):-1}function e5(e,r,t){var n=uu.exec(r.slice(t));return n?(e.s=+n[0],t+n[0].length):-1}function _b(e,r){return Va(e.getDate(),r,2)}function t5(e,r){return Va(e.getHours(),r,2)}function r5(e,r){return Va(e.getHours()%12||12,r,2)}function n5(e,r){return Va(1+g_.count(dv(e),e),r,3)}function yb(e,r){return Va(e.getMilliseconds(),r,3)}function i5(e,r){return yb(e,r)+"000"}function a5(e,r){return Va(e.getMonth()+1,r,2)}function o5(e,r){return Va(e.getMinutes(),r,2)}function s5(e,r){return Va(e.getSeconds(),r,2)}function u5(e){var r=e.getDay();return r===0?7:r}function l5(e,r){return Va(m_.count(dv(e)-1,e),r,2)}function xb(e){var r=e.getDay();return r>=4||r===0?vv(e):vv.ceil(e)}function c5(e,r){return e=xb(e),Va(vv.count(dv(e),e)+(dv(e).getDay()===4),r,2)}function f5(e){return e.getDay()}function h5(e,r){return Va(Vg.count(dv(e)-1,e),r,2)}function p5(e,r){return Va(e.getFullYear()%100,r,2)}function d5(e,r){return e=xb(e),Va(e.getFullYear()%100,r,2)}function v5(e,r){return Va(e.getFullYear()%1e4,r,4)}function m5(e,r){var t=e.getDay();return e=t>=4||t===0?vv(e):vv.ceil(e),Va(e.getFullYear()%1e4,r,4)}function g5(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Va(r/60|0,"0",2)+Va(r%60,"0",2)}function bb(e,r){return Va(e.getUTCDate(),r,2)}function _5(e,r){return Va(e.getUTCHours(),r,2)}function y5(e,r){return Va(e.getUTCHours()%12||12,r,2)}function x5(e,r){return Va(1+hb.count(mm(e),e),r,3)}function Eb(e,r){return Va(e.getUTCMilliseconds(),r,3)}function b5(e,r){return Eb(e,r)+"000"}function E5(e,r){return Va(e.getUTCMonth()+1,r,2)}function S5(e,r){return Va(e.getUTCMinutes(),r,2)}function A5(e,r){return Va(e.getUTCSeconds(),r,2)}function T5(e){var r=e.getUTCDay();return r===0?7:r}function w5(e,r){return Va(cb.count(mm(e)-1,e),r,2)}function Sb(e){var r=e.getUTCDay();return r>=4||r===0?mv(e):mv.ceil(e)}function C5(e,r){return e=Sb(e),Va(mv.count(mm(e),e)+(mm(e).getUTCDay()===4),r,2)}function R5(e){return e.getUTCDay()}function M5(e,r){return Va(Hg.count(mm(e)-1,e),r,2)}function I5(e,r){return Va(e.getUTCFullYear()%100,r,2)}function P5(e,r){return e=Sb(e),Va(e.getUTCFullYear()%100,r,2)}function O5(e,r){return Va(e.getUTCFullYear()%1e4,r,4)}function D5(e,r){var t=e.getUTCDay();return e=t>=4||t===0?mv(e):mv.ceil(e),Va(e.getUTCFullYear()%1e4,r,4)}function F5(){return"+0000"}function Ab(){return"%"}function Tb(e){return+e}function wb(e){return Math.floor(+e/1e3)}var gv,Cb,k5,B5,L5;N5({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function N5(e){return gv=kP(e),Cb=gv.format,k5=gv.parse,B5=gv.utcFormat,L5=gv.utcParse,gv}var xm=1e3,bm=xm*60,Em=bm*60,Sm=Em*24,U5=Sm*7,Rb=Sm*30,b_=Sm*365;function z5(e){return new Date(e)}function Z5(e){return e instanceof Date?+e:+new Date(+e)}function Mb(e,r,t,n,i,o,s,l,f){var v=Bx(Yu,Yu),y=v.invert,b=v.domain,T=f(".%L"),M=f(":%S"),O=f("%I:%M"),F=f("%I %p"),$=f("%a %d"),G=f("%b %d"),ue=f("%B"),xe=f("%Y"),ze=[[s,1,xm],[s,5,5*xm],[s,15,15*xm],[s,30,30*xm],[o,1,bm],[o,5,5*bm],[o,15,15*bm],[o,30,30*bm],[i,1,Em],[i,3,3*Em],[i,6,6*Em],[i,12,12*Em],[n,1,Sm],[n,2,2*Sm],[t,1,U5],[r,1,Rb],[r,3,3*Rb],[e,1,b_]];function Je(gt){return(s(gt)2){var b=v.scale.ticks(s.values.length);v.scale.domain(b)}s.values?v.scale.range(s.values):v.scale.range(v.option.domain);break;case ro.QUANTILE:case ro.QUANTIZE:case ro.THRESHOLD:v.scale.range(s.values);break;case ro.IDENTITY:break;case ro.CAT:s.values?v.scale.range(s.values):v.scale.range(v.option.domain);break;case ro.DIVERGING:case ro.SEQUENTIAL:v.scale.interpolator(BI(s.values));break}}if(s.values==="text"){var T;v.scale.range((T=v.option)===null||T===void 0?void 0:T.domain)}})):(s.type=ov.CONSTANT,s.defaultValues=f.map(function(v,y){return v.scale(s.names[y])})),s.scalers=f.map(function(v){return{field:v.field,func:v.scale,option:v.option}}),o.needRescale=!1}})}},{key:"parseFields",value:function(t){return Array.isArray(t)?t:$5(t)?t.split("*"):[t]}},{key:"createScale",value:function(t,n,i,o){var s,l,f=this.scaleOptions[n]&&((s=this.scaleOptions[n])===null||s===void 0?void 0:s.field)===t?this.scaleOptions[n]:this.scaleOptions[t],v={field:t,scale:void 0,type:ov.VARIABLE,option:f};if(!o||!o.length)return f&&f.type?v.scale=this.createDefaultScale(f):(v.scale=kg([t]),v.type=ov.CONSTANT),v;var y=(l=o.find(function(M){return!E_(M[t])}))===null||l===void 0?void 0:l[t];if(this.isNumber(t)||E_(y)&&!f)v.scale=kg([t]),v.type=ov.CONSTANT;else{var b=f&&f.type||this.getDefaultType(y);i==="text"&&(b=ro.CAT),i===void 0&&(b=ro.IDENTITY);var T=this.createScaleConfig(b,t,f,o);v.scale=this.createDefaultScale(T),v.option=T}return v}},{key:"getDefaultType",value:function(t){var n=ro.LINEAR;return typeof t=="string"&&(n=q5.test(t)?ro.TIME:ro.CAT),n}},{key:"createScaleConfig",value:function(t,n,i,o){var s={type:t},l=(o==null?void 0:o.map(function(y){return y[n]}))||[];if(i!=null&&i.domain)s.domain=i==null?void 0:i.domain;else if(t===ro.CAT||t===ro.IDENTITY)s.domain=Y5(l);else if(t===ro.QUANTILE)s.domain=l;else if(t===ro.DIVERGING){var f=vx(l),v=(i==null?void 0:i.neutral)!==void 0?i==null?void 0:i.neutral:(f[0]+f[1])/2;s.domain=[f[0],v,f[1]]}else s.domain=vx(l);return(0,V.Z)((0,V.Z)({},s),i)}},{key:"createDefaultScale",value:function(t){var n=t.type,i=t.domain,o=t.unknown,s=t.clamp,l=t.nice,f=K5[n]();return i&&f.domain&&f.domain(i),o&&f.unknown(o),s!==void 0&&f.clamp&&f.clamp(s),l!==void 0&&f.nice&&f.nice(l),f}}]),e}())||Bb),Lb,Nb,J5=(Lb=(0,yt.b2)(),Lb(Nb=function(){function e(){(0,Q.Z)(this,e)}return(0,j.Z)(e,[{key:"apply",value:function(t){t.hooks.beforeRender.tap("LayerAnimateStylePlugin",function(){var n=t.animateStatus;n&&t.models.forEach(function(i){i.addUniforms((0,V.Z)({},t.layerModel.getAnimateUniforms()))})})}}]),e}())||Nb),Ub,zb,eO=(Ub=(0,yt.b2)(),Ub(zb=function(){function e(){(0,Q.Z)(this,e)}return(0,j.Z)(e,[{key:"apply",value:function(t){t.hooks.afterInit.tap("LayerMaskPlugin",function(){var n=t.getLayerConfig(),i=n.maskLayers,o=n.enableMask;if(!t.tileLayer&&i&&i.length>0){var s;(s=t.masks).push.apply(s,(0,Kt.Z)(i)),t.updateLayerConfig({mask:o})}})}}]),e}())||zb),tO=function(){function e(r){var t=r.rendererService,n=r.layerService,i=r.parent;(0,Q.Z)(this,e),(0,B.Z)(this,"tileResource",new Map),(0,B.Z)(this,"layerTiles",[]),this.rendererService=t,this.layerService=n,this.parent=i}return(0,j.Z)(e,[{key:"tiles",get:function(){return this.layerTiles}},{key:"hasTile",value:function(t){return this.layerTiles.some(function(n){return n.key===t})}},{key:"addTile",value:function(t){this.layerTiles.push(t)}},{key:"getTile",value:function(t){return this.layerTiles.find(function(n){return n.key===t})}},{key:"getVisibleTileBylngLat",value:function(t){return this.layerTiles.find(function(n){return n.isLoaded&&n.visible&&n.lnglatInBounds(t)})}},{key:"removeTile",value:function(t){var n=this.layerTiles.findIndex(function(o){return o.key===t}),i=this.layerTiles.splice(n,1);i[0]&&i[0].destroy()}},{key:"updateTileVisible",value:function(t){var n=this.getTile(t.key);if(t.isVisible)if(t.parent){var i=this.isChildrenLoaded(t.parent);n==null||n.updateVisible(i)}else n==null||n.updateVisible(!0);else if(t.parent){var o=this.isChildrenLoaded(t.parent);n==null||n.updateVisible(!o)}else n==null||n.updateVisible(!1)}},{key:"isParentLoaded",value:function(t){var n=t.parent;if(!n)return!0;var i=this.getTile(n==null?void 0:n.key);return!!(i!=null&&i.isLoaded)}},{key:"isChildrenLoaded",value:function(t){var n=this,i=t==null?void 0:t.children;return i.length===0?!0:i.every(function(o){var s=n.getTile(o==null?void 0:o.key);return s?(s==null?void 0:s.isLoaded)===!0:!0})}},{key:"render",value:function(){var r=(0,Pt.Z)(ge().mark(function n(){var i=this,o,s;return ge().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return o=this.getRenderLayers(),s=o.map(function(){var v=(0,Pt.Z)(ge().mark(function y(b){return ge().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,i.layerService.renderTileLayer(b);case 2:case"end":return M.stop()}},y)}));return function(y){return v.apply(this,arguments)}}()),f.next=4,Promise.all(s);case 4:case"end":return f.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"getRenderLayers",value:function(){var t=this.layerTiles.filter(function(i){return i.visible&&i.isLoaded}),n=[];return t.map(function(i){return n.push.apply(n,(0,Kt.Z)(i.getLayers()))}),n}},{key:"getLayers",value:function(){var t=this.layerTiles.filter(function(i){return i.isLoaded}),n=[];return t.map(function(i){return n.push.apply(n,(0,Kt.Z)(i.getLayers()))}),n}},{key:"getTiles",value:function(){return this.layerTiles}},{key:"destroy",value:function(){this.layerTiles.forEach(function(t){return t.destroy()}),this.tileResource.clear()}}]),e}(),rO=L(37824);function nO(e,r,t){t===void 0&&(t={});var n=Zr(e),i=Zr(r),o=rO.union(n.coordinates,i.coordinates);return o.length===0?null:o.length===1?Lt(o[0],t.properties):Kr(o,t.properties)}var iO=nO,aO=function(){function e(){(0,Q.Z)(this,e)}return(0,j.Z)(e,[{key:"getCombineFeature",value:function(t){var n=null,i=t[0];return t.map(function(o){var s=Lt(o.coordinates);n===null?n=s:n=iO(n,s)}),i&&(n.properties=(0,V.Z)({},i)),n}}]),e}(),Tm="select",wm="active",oO=function(){function e(r){var t=r.layerService,n=r.tileLayerService,i=r.parent;(0,Q.Z)(this,e),(0,B.Z)(this,"tilePickID",new Map),this.layerService=t,this.tileLayerService=n,this.parent=i,this.tileSourceService=new aO}return(0,j.Z)(e,[{key:"pickRender",value:function(t){var n=this.tileLayerService.getVisibleTileBylngLat(t.lngLat);if(n){var i=n.getMainLayer();i==null||i.layerPickService.pickRender(t)}}},{key:"pick",value:function(t,n){var i=this.parent.getContainer(),o=i.get(ot.IPickingService);if(t.type==="RasterLayer"){var s=this.tileLayerService.getVisibleTileBylngLat(n.lngLat);if(s&&s.getMainLayer()!==void 0){var l=s.getMainLayer();return l.layerPickService.pickRasterLayer(l,n,this.parent)}return!1}return this.pickRender(n),o.pickFromPickingFBO(t,n)}},{key:"selectFeature",value:function(t){var n=(0,Sn.Z)(t,3),i=n[0],o=n[1],s=n[2],l=this.color2PickId(i,o,s);this.tilePickID.set(Tm,l),this.updateHighLight(i,o,s,Tm)}},{key:"highlightPickedFeature",value:function(t){var n=(0,Sn.Z)(t,3),i=n[0],o=n[1],s=n[2],l=this.color2PickId(i,o,s);this.tilePickID.set(wm,l),this.updateHighLight(i,o,s,wm)}},{key:"updateHighLight",value:function(t,n,i,o){this.tileLayerService.tiles.map(function(s){var l=s.getMainLayer();switch(o){case Tm:l==null||l.hooks.beforeSelect.call([t,n,i]);break;case wm:l==null||l.hooks.beforeHighlight.call([t,n,i]);break}})}},{key:"setPickState",value:function(){var t=this.tilePickID.get(Tm),n=this.tilePickID.get(wm);if(t){var i=this.pickId2Color(t),o=(0,Sn.Z)(i,3),s=o[0],l=o[1],f=o[2];this.updateHighLight(s,l,f,Tm);return}if(n){var v=this.pickId2Color(n),y=(0,Sn.Z)(v,3),b=y[0],T=y[1],M=y[2];this.updateHighLight(b,T,M,wm);return}}},{key:"color2PickId",value:function(t,n,i){return Oa(new Uint8Array([t,n,i]))}},{key:"pickId2Color",value:function(t){return sa(t)}},{key:"getFeatureById",value:function(t){var n=this.tileLayerService.getTiles().filter(function(o){return o.visible}),i=[];return n.forEach(function(o){i.push.apply(i,(0,Kt.Z)(o.getFeatureById(t)))}),i}},{key:"pickRasterLayer",value:function(t,n,i){return!1}}]),e}();function sO(e){return e==="PolygonLayer"?Rg:e==="LineLayer"?q0:Cg}function uO(e){return["PolygonLayer","LineLayer"].indexOf(e)!==-1}function lO(e){var r=cO();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function cO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var xd=function(e){(0,Le.Z)(t,e);var r=lO(t);function t(n,i){var o;return(0,Q.Z)(this,t),o=r.call(this),(0,B.Z)((0,Fe.Z)(o),"visible",!0),(0,B.Z)((0,Fe.Z)(o),"layers",[]),(0,B.Z)((0,Fe.Z)(o),"isLoaded",!1),(0,B.Z)((0,Fe.Z)(o),"tileMaskLayers",[]),o.parent=i,o.sourceTile=n,o.x=n.x,o.y=n.y,o.z=n.z,o.key="".concat(o.x,"_").concat(o.y,"_").concat(o.z),o}return(0,j.Z)(t,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(i){var o=(0,Sn.Z)(this.sourceTile.bounds,4),s=o[0],l=o[1],f=o[2],v=o[3],y=i.lng,b=i.lat;return y>=s&&y<=f&&b>=l&&b<=v}},{key:"getLayerOptions",value:function(){var i,o=this.parent.getLayerConfig();return(0,V.Z)((0,V.Z)({},o),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:uO(this.parent.type),mask:o.mask||((i=o.maskLayers)===null||i===void 0?void 0:i.length)!==0&&o.enableMask})}},{key:"getMaskLayer",value:function(){var i=this,o=this.parent.getLayerConfig(),s=o.maskLayers,l=[];return s==null||s.forEach(function(f){if(!f.tileLayer)return l.push(f),f;var v=f.tileLayer,y=v.getTile(i.sourceTile.key),b=y==null?void 0:y.getLayers()[0];b&&l.push(b)}),l}},{key:"addTileMask",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f;return ge().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=new Rg({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),l=lm(this.parent.sceneContainer),s.setContainer(l,this.parent.sceneContainer),y.next=5,s.init();case 5:return this.tileMask=s,f=this.getMainLayer(),f!==void 0&&(f.tileMask=s),y.abrupt("return",s);case 9:case"end":return y.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"addMask",value:function(){var n=(0,Pt.Z)(ge().mark(function o(s,l){var f;return ge().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return f=lm(this.parent.sceneContainer),l.setContainer(f,this.parent.sceneContainer),y.next=4,l.init();case 4:s.addMask(l),this.tileMaskLayers.push(l);case 6:case"end":return y.stop()}},o,this)}));function i(o,s){return n.apply(this,arguments)}return i}()},{key:"addLayer",value:function(){var n=(0,Pt.Z)(ge().mark(function o(s){var l;return ge().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return s.isTileLayer=!0,l=lm(this.parent.sceneContainer),s.setContainer(l,this.parent.sceneContainer),this.layers.push(s),v.next=6,s.init();case 6:case"end":return v.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"updateVisible",value:function(i){this.visible=i,this.updateOptions("visible",i)}},{key:"updateOptions",value:function(i,o){this.layers.forEach(function(s){s.updateLayerConfig((0,B.Z)({},i,o))})}},{key:"getMainLayer",value:function(){return this.layers[0]}},{key:"getFeatures",value:function(i){return[]}},{key:"getFeatureById",value:function(i){return[]}},{key:"destroy",value:function(){var i;(i=this.tileMask)===null||i===void 0||i.destroy(),this.layers.forEach(function(o){return o.destroy()})}}]),t}(io.EventEmitter);function fO(e){var r=hO();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function hO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var pO=function(e){(0,Le.Z)(t,e);var r=fO(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v;return ge().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.getSourceOption(),l=s.data.features[0].properties,f=new q0().source(s.data,s.options).size(1).shape("line").color("red"),v=new Cg({minZoom:this.z-1,maxZoom:this.z+1,textAllowOverlap:!0}).source([l],{parser:{type:"json",x:"x",y:"y"}}).size(20).color("red").shape(this.key).style({stroke:"#fff",strokeWidth:2}),b.next=6,this.addLayer(f);case 6:return b.next=8,this.addLayer(v);case 8:this.isLoaded=!0;case 9:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:o},options:{parser:{type:"geojson"},transforms:i.transforms}}}}]),t}(xd);function dO(e){var r=vO();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function vO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var mO=function(e){(0,Le.Z)(t,e);var r=dO(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v;return ge().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new P1((0,V.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,F=T;v[F]((M=s[F])===null||M===void 0?void 0:M.field,(O=s[F])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:i.transforms}}}}]),t}(xd);function gO(e){var r=_O();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function _O(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var yO=function(e){(0,Le.Z)(t,e);var r=gO(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v;return ge().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new ix((0,V.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,F=T;v[F]((M=s[F])===null||M===void 0?void 0:M.field,(O=s[F])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getFeatures",value:function(i){if(!i)return[];var o=this.sourceTile.data;return o.getTileData(i)}},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.parent.getLayerConfig(),s=o.sourceLayer,l=o.featureId,f=this.getFeatures(s);return{data:{type:"FeatureCollection",features:f},options:{parser:{type:"geojson",featureId:l},transforms:i.transforms}}}}]),t}(xd),xO=["rasterData"];function bO(e){var r=EO();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function EO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var SO=function(e){(0,Le.Z)(t,e);var r=bO(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v;return ge().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new Mg((0,V.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,F=T;v[F]((M=s[F])===null||M===void 0?void 0:M.field,(O=s[F])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.data,s=o.rasterData,l=(0,ka.Z)(o,xO);return{data:s,options:{parser:(0,V.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},l),transforms:i.transforms}}}}]),t}(xd);function AO(e){var r=TO();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function TO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var wO=function(e){(0,Le.Z)(t,e);var r=AO(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v;return ge().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=new Mg((0,V.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,O,F=T;v[F]((M=s[F])===null||M===void 0?void 0:M.field,(O=s[F])===null||O===void 0?void 0:O.values)}),b.next=7,this.addLayer(v);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource();return{data:this.sourceTile.data,options:{parser:{type:"image",extent:this.sourceTile.bounds},transforms:i.transforms}}}}]),t}(xd),CO=["rasterData"];function RO(e){var r=MO();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function MO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var IO={positions:[0,1],colors:["#000","#fff"]},PO=function(e){(0,Le.Z)(t,e);var r=RO(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"initTileLayer",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v,y,b,T;return ge().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),v=this.getLayerOptions(),y=v.rampColors,b=v.domain,this.colorTexture=this.parent.textureService.getColorTexture(y,b),T=new Mg((0,V.Z)((0,V.Z)({},l),{},{colorTexture:this.colorTexture})).source(f.data,f.options),s&&Object.keys(s).forEach(function(F){var $,G,ue=F;T[ue](($=s[ue])===null||$===void 0?void 0:$.field,(G=s[ue])===null||G===void 0?void 0:G.values)}),O.next=9,this.addLayer(T);case 9:this.isLoaded=!0;case 10:case"end":return O.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),o=this.sourceTile.data.data,s=o.rasterData,l=(0,ka.Z)(o,CO);return{data:s,options:{parser:(0,V.Z)({type:"raster",extent:this.sourceTile.bounds},l),transforms:i.transforms}}}},{key:"styleUpdate",value:function(){for(var i=this,o=arguments.length,s=new Array(o),l=0;l=2&&!v&&(t.parent.updateLayerConfig({visible:!0}),t.layerService.reRender())}t.lastViewStates&&t.lastViewStates.zoom===l&&t.lastViewStates.latLonBounds.toString()===s.toString()||(t.lastViewStates={zoom:l,latLonBounds:s},(i=t.tilesetManager)===null||i===void 0||i.throttleUpdate(l,s))}}),(0,B.Z)(this,"viewchange",BO(this.mapchange,24)),this.parent=r;var n=this.parent.getContainer();this.rendererService=n.get(ot.IRendererService),this.layerService=n.get(ot.ILayerService),this.mapService=n.get(ot.IMapService),this.pickingService=n.get(ot.IPickingService),this.tileLayerService=new tO({rendererService:this.rendererService,layerService:this.layerService,parent:r}),this.tilePickService=new oO({tileLayerService:this.tileLayerService,layerService:this.layerService,parent:r}),this.parent.setLayerPickService(this.tilePickService),this.proxy(r),this.initTileSetManager()}return(0,j.Z)(e,[{key:"initTileSetManager",value:function(){var t,n=this.parent.getSource();if(this.tilesetManager=n.tileset,this.initedTileset||(this.bindTilesetEvent(),this.initedTileset=!0),this.parent.isVisible()!==!1){var i=this.getCurrentView(),o=i.latLonBounds,s=i.zoom;(t=this.tilesetManager)===null||t===void 0||t.update(s,o)}}},{key:"getCurrentView",value:function(){var t=this.mapService.getBounds(),n=[t[0][0],t[0][1],t[1][0],t[1][1]],i=this.mapService.getZoom();return{latLonBounds:n,zoom:i}}},{key:"bindTilesetEvent",value:function(){var t=this;this.tilesetManager.on("tile-loaded",function(n){}),this.tilesetManager.on("tile-unload",function(n){t.tileUnLoad(n)}),this.tilesetManager.on("tile-error",function(n,i){t.tileError(n)}),this.tilesetManager.on("tile-update",function(){t.tileUpdate()}),this.mapService.on("zoomend",this.mapchange),this.mapService.on("moveend",this.viewchange)}},{key:"render",value:function(){this.tileLayerService.render()}},{key:"getLayers",value:function(){return this.tileLayerService.getLayers()}},{key:"getTiles",value:function(){return this.tileLayerService.getTiles()}},{key:"getTile",value:function(t){return this.tileLayerService.getTile(t)}},{key:"tileLoaded",value:function(t){}},{key:"tileError",value:function(t){console.warn("error:",t)}},{key:"destroy",value:function(){var t;this.mapService.off("zoomend",this.mapchange),this.mapService.off("moveend",this.viewchange),(t=this.tilesetManager)===null||t===void 0||t.destroy(),this.tileLayerService.destroy()}},{key:"reload",value:function(){var t;this.tilesetManager.clear();var n=this.getCurrentView(),i=n.latLonBounds,o=n.zoom;(t=this.tilesetManager)===null||t===void 0||t.update(o,i)}},{key:"tileUnLoad",value:function(t){this.tileLayerService.removeTile(t.key)}},{key:"tileUpdate",value:function(){var r=(0,Pt.Z)(ge().mark(function n(){var i=this,o,s;return ge().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.tilesetManager){f.next=2;break}return f.abrupt("return");case 2:return o=this.parent.getMinZoom(),s=this.parent.getMaxZoom(),f.next=6,Promise.all(this.tilesetManager.tiles.filter(function(v){return v.isLoaded}).filter(function(v){return v.isVisibleChange}).filter(function(v){return v.data}).filter(function(v){return v.z>=o&&v.z>>8&255}function ch(e){return e>>>16&255}function Sv(e){return e&255}function SE(e){switch(e){case Rr.F32:case Rr.U32:case Rr.S32:return 4;case Rr.U16:case Rr.S16:case Rr.F16:return 2;case Rr.U8:case Rr.S8:return 1;default:throw new Error("whoops")}}function AE(e){return SE(ch(e))}function mN(e){return Qg(e)}function p4(e){var r=SE(ch(e)),t=Qg(e);return r*t}function gN(e,r){return e&4294967040|r}function _N(e,r){return e&4294902015|r<<8}function TE(e){var r=Sv(e);if(r&wn.Depth)return zo.Depth;if(r&wn.Normalized)return zo.Float;var t=ch(e);if(t===Rr.F16||t===Rr.F32)return zo.Float;if(t===Rr.U8||t===Rr.U16||t===Rr.U32)return zo.Uint;if(t===Rr.S8||t===Rr.S16||t===Rr.S32)return zo.Sint;throw new Error("whoops")}function Bi(e,r){if(r===void 0&&(r=""),!e)throw new Error("Assert fail: ".concat(r))}function Ad(e){if(e!=null)return e;throw new Error("Missing object")}function wE(e,r){return e.r===r.r&&e.g===r.g&&e.b===r.b&&e.a===r.a}function CE(e,r){e.r=r.r,e.g=r.g,e.b=r.b,e.a=r.a}function RE(e){var r=e.r,t=e.g,n=e.b,i=e.a;return{r,g:t,b:n,a:i}}function Jg(e,r,t,n){return n===void 0&&(n=1),{r:e,g:r,b:t,a:n}}var A_=Jg(0,0,0,0),yN=Jg(0,0,0,1),d4=Jg(1,1,1,0),xN=Jg(1,1,1,1),Av=!0;function bN(e,r){r===void 0&&(r=Av),r&&(e[10]=-e[10],e[14]=-e[14])}function EN(e,r){r===void 0&&(r=Av),r&&(e[10]=-e[10],e[14]=-e[14]+1)}function v4(e,r){if(r===void 0&&(r=Av),r)switch(e){case _a.LESS:return _a.GREATER;case _a.LEQUAL:return _a.GEQUAL;case _a.GEQUAL:return _a.LEQUAL;case _a.GREATER:return _a.LESS;default:return e}else return e}function SN(e,r){return r===void 0&&(r=Av),r?1-e:e}function AN(e,r){return r===void 0&&(r=Av),r?-e:e}function TN(e,r,t,n){if(n===void 0&&(n=Av),t=v4(t,n),t===_a.LESS)return er;if(t===_a.GEQUAL)return e>=r;throw new Error("whoops")}function e0(e){return!!(e&&!(e&e-1))}function Tv(e,r){return e!=null?e:r}function m4(e){return e===void 0?null:e}function wN(e,r,t){e.length=r,e.fill(t)}function t0(e,r){var t=r-1;return e+t&~t}function CN(e,r){return((e+r-1)/r|0)*r}function g4(e,r,t){for(var n=0,i=e.length;n>>1),s=t(r,e[o]);s<0?i=o:n=o+1}return n}function RN(e,r,t){var n=g4(e,r,t);e.splice(n,0,r)}function MN(e,r,t){return t?e|=r:e&=~r,e}function _4(e,r){for(var t=new Array(e),n=0;n-1;if(f=f.replace(";","").replace("[","").trim(),!l.startsWith("#")){if(l){var y=t.find(function(M){return l===M.type});if(y)if(v)for(var b=function(M){y.uniforms.forEach(function(O){r.push("".concat(f,"[").concat(M,"].").concat(O.name))})},T=0;T<5;T++)b(T);else y.uniforms.forEach(function(M){r.push("".concat(f,".").concat(M.name))})}f&&r.push(f)}}),""}),r}function NE(e){if(e===void 0)return null;var r=/binding\s*=\s*(\d+)/.exec(e);if(r!==null){var t=parseInt(r[1],10);if(!Number.isNaN(t))return t}return null}function HO(e){var r="",t=e;return[t,r]}function Np(e,r,t,n,i){var o;n===void 0&&(n=null),i===void 0&&(i=!0);var s=e.glslVersion==="#version 100",l=r==="frag"&&((o=t.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||o===void 0?void 0:o.length)>1,f=t.replace(`\r +`).forEach(function(o){var s=o.trim().split(" "),l=s[0]||"",f=s[1]||"",v=f.indexOf("[")>-1;if(f=f.replace(";","").replace("[","").trim(),!l.startsWith("#")){if(l){var y=t.find(function(M){return l===M.type});if(y)if(v)for(var b=function(M){y.uniforms.forEach(function(O){r.push("".concat(f,"[").concat(M,"].").concat(O.name))})},T=0;T<5;T++)b(T);else y.uniforms.forEach(function(M){r.push("".concat(f,".").concat(M.name))})}f&&r.push(f)}}),""}),r}function NE(e){if(e===void 0)return null;var r=/binding\s*=\s*(\d+)/.exec(e);if(r!==null){var t=parseInt(r[1],10);if(!Number.isNaN(t))return t}return null}function H4(e){var r="",t=e;return[t,r]}function Np(e,r,t,n,i){var o;n===void 0&&(n=null),i===void 0&&(i=!0);var s=e.glslVersion==="#version 100",l=r==="frag"&&((o=t.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||o===void 0?void 0:o.length)>1,f=t.replace(`\r `,` `).split(` -`).map(function(ut){return ut.replace(/[/][/].*$/,"")}).filter(function(ut){var vt=!ut||/^\s+$/.test(ut);return!vt}),v="";n!==null&&(v=Object.keys(n).map(function(ut){return Om(ut,n[ut])}).join(` -`));var y=f.find(function(ut){return ut.startsWith("precision")})||"precision mediump float;",b=i?f.filter(function(ut){return!ut.startsWith("precision")}).join(` +`).map(function(ht){return ht.replace(/[/][/].*$/,"")}).filter(function(ht){var gt=!ht||/^\s+$/.test(ht);return!gt}),v="";n!==null&&(v=Object.keys(n).map(function(ht){return Om(ht,n[ht])}).join(` +`));var y=f.find(function(ht){return ht.startsWith("precision")})||"precision mediump float;",b=i?f.filter(function(ht){return!ht.startsWith("precision")}).join(` `):f.join(` `),T="";if(e.viewportOrigin===bv.UPPER_LEFT&&(T+="".concat(Om("VIEWPORT_ORIGIN_TL","1"),` `)),e.clipSpaceNearZ===Ev.ZERO&&(T+="".concat(Om("CLIPSPACE_NEAR_ZERO","1"),` -`)),e.explicitBindingLocations){var M=0,O=0,k=0;b=b.replace(/^(layout\((.*)\))?\s*uniform(.+{)$/gm,function(ut,vt,Rt,Jt){var Mr=Rt?"".concat(Rt,", "):"";return"layout(".concat(Mr,"set = ").concat(M,", binding = ").concat(O++,") uniform ").concat(Jt)}),M++,O=0,Di(e.separateSamplerTextures),b=b.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(ut,vt,Rt,Jt,Mr){var br=NE(Rt);br===null&&(br=O++);var pn=(0,wn.CR)(HO(Jt),2),kn=pn[0],Pi=pn[1];return r==="frag"?` -layout(set = `.concat(M,", binding = ").concat(br*2+0,") uniform texture").concat(kn," T_").concat(Mr,`; -layout(set = `).concat(M,", binding = ").concat(br*2+1,") uniform sampler").concat(Pi," S_").concat(Mr,";").trim():""}),b=b.replace(r==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(ut,vt){return"layout(location = ".concat(k++,") ").concat(vt)}),T+="".concat(Om("gl_VertexID","gl_VertexIndex"),` +`)),e.explicitBindingLocations){var M=0,O=0,F=0;b=b.replace(/^(layout\((.*)\))?\s*uniform(.+{)$/gm,function(ht,gt,Ot,tr){var Ir=Ot?"".concat(Ot,", "):"";return"layout(".concat(Ir,"set = ").concat(M,", binding = ").concat(O++,") uniform ").concat(tr)}),M++,O=0,Bi(e.separateSamplerTextures),b=b.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(ht,gt,Ot,tr,Ir){var Er=NE(Ot);Er===null&&(Er=O++);var mn=(0,Mn.CR)(H4(tr),2),Ln=mn[0],Fi=mn[1];return r==="frag"?` +layout(set = `.concat(M,", binding = ").concat(Er*2+0,") uniform texture").concat(Ln," T_").concat(Ir,`; +layout(set = `).concat(M,", binding = ").concat(Er*2+1,") uniform sampler").concat(Fi," S_").concat(Ir,";").trim():""}),b=b.replace(r==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(ht,gt){return"layout(location = ".concat(F++,") ").concat(gt)}),T+="".concat(Om("gl_VertexID","gl_VertexIndex"),` `),T+="".concat(Om("gl_InstanceID","gl_InstanceIndex"),` -`),y=y.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var $=0;b=b.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(ut,vt,Rt,Jt,Mr){var br=NE(Rt);return br===null&&(br=$++),"uniform sampler".concat(Jt," ").concat(Mr,"; // BINDING=").concat(br)})}if(e.separateSamplerTextures)b=b.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(ut,vt,Rt){return"sampler".concat(vt,"(T_").concat(Rt,", S_").concat(Rt,")")}),b=b.replace(/\bTEXTURE\((.*?)\)/g,function(ut,vt){return"T_".concat(vt)});else{var G=[];b=b.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(ut,vt,Rt){return G.push([Rt,vt]),Rt}),s&&G.forEach(function(ut){var vt=(0,wn.CR)(ut,2),Rt=vt[0],Jt=vt[1];b=b.replace(new RegExp("texture\\(".concat(Rt),"g"),function(){return"texture".concat(Jt,"(").concat(Rt)})}),b=b.replace(/\bTEXTURE\((.*?)\)/g,function(ut,vt){return vt})}var oe="".concat(s?"":e.glslVersion,` +`),y=y.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var $=0;b=b.replace(/^(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(ht,gt,Ot,tr,Ir){var Er=NE(Ot);return Er===null&&(Er=$++),"uniform sampler".concat(tr," ").concat(Ir,"; // BINDING=").concat(Er)})}if(e.separateSamplerTextures)b=b.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(ht,gt,Ot){return"sampler".concat(gt,"(T_").concat(Ot,", S_").concat(Ot,")")}),b=b.replace(/\bTEXTURE\((.*?)\)/g,function(ht,gt){return"T_".concat(gt)});else{var G=[];b=b.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(ht,gt,Ot){return G.push([Ot,gt]),Ot}),s&&G.forEach(function(ht){var gt=(0,Mn.CR)(ht,2),Ot=gt[0],tr=gt[1];b=b.replace(new RegExp("texture\\(".concat(Ot),"g"),function(){return"texture".concat(tr,"(").concat(Ot)})}),b=b.replace(/\bTEXTURE\((.*?)\)/g,function(ht,gt){return gt})}var ue="".concat(s?"":e.glslVersion,` `).concat(s&&l?`#extension GL_EXT_draw_buffers : require `:"",` `).concat(s&&r==="frag"?`#extension GL_OES_standard_derivatives : enable @@ -6991,23 +6991,23 @@ layout(set = `).concat(M,", binding = ").concat(br*2+1,") uniform sampler").conc `).concat(T||"").concat(v?v+` `:"",` `).concat(b,` -`).trim();if(e.explicitBindingLocations&&r==="frag"&&(oe=oe.replace(/^\b(out)\b/g,function(ut,vt){return"layout(location = 0) ".concat(vt)})),s){if(r==="frag"&&(oe=oe.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(ut,vt,Rt){return"varying ".concat(vt," ").concat(Rt,`; -`)})),r==="vert"&&(oe=oe.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(ut,vt,Rt){return"varying ".concat(vt," ").concat(Rt,`; -`)}),oe=oe.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(ut,vt,Rt){return"attribute ".concat(vt," ").concat(Rt,`; -`)})),oe=oe.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(ut,vt){return vt.trim().replace(/^.*$/gm,function(Rt){var Jt=Rt.trim();return Jt.startsWith("#")?Jt:Rt?"uniform ".concat(Jt):""})}),r==="frag")if(l){var ye=[];oe=oe.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(ut,vt){return ye.push(vt),"vec4 ".concat(vt,`; -`)});var Le=oe.lastIndexOf("}");oe=oe.substring(0,Le)+` - `.concat(ye.map(function(ut,vt){return"gl_FragData[".concat(vt,"] = ").concat(ut,`; +`).trim();if(e.explicitBindingLocations&&r==="frag"&&(ue=ue.replace(/^\b(out)\b/g,function(ht,gt){return"layout(location = 0) ".concat(gt)})),s){if(r==="frag"&&(ue=ue.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(ht,gt,Ot){return"varying ".concat(gt," ").concat(Ot,`; +`)})),r==="vert"&&(ue=ue.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(ht,gt,Ot){return"varying ".concat(gt," ").concat(Ot,`; +`)}),ue=ue.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(ht,gt,Ot){return"attribute ".concat(gt," ").concat(Ot,`; +`)})),ue=ue.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(ht,gt){return gt.trim().replace(/^.*$/gm,function(Ot){var tr=Ot.trim();return tr.startsWith("#")?tr:Ot?"uniform ".concat(tr):""})}),r==="frag")if(l){var xe=[];ue=ue.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(ht,gt){return xe.push(gt),"vec4 ".concat(gt,`; +`)});var ze=ue.lastIndexOf("}");ue=ue.substring(0,ze)+` + `.concat(xe.map(function(ht,gt){return"gl_FragData[".concat(gt,"] = ").concat(ht,`; `)}).join(` -`))+oe.substring(Le)}else{var $e;if(oe=oe.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(ut,vt,Rt){return $e=Rt,"".concat(vt," ").concat(Rt,`; -`)}),$e){var Le=oe.lastIndexOf("}");oe=oe.substring(0,Le)+` - gl_FragColor = vec4(`.concat($e,`); -`)+oe.substring(Le)}}oe=oe.replace(/^\s*layout\((.*)\)/gm,"")}return oe}function zN(e,r,t,n){n===void 0&&(n=null);var i=Np(e,"vert",r,n),o=Np(e,"frag",t,n);return{vert:r,frag:t,preprocessedVert:i,preprocessedFrag:o}}var Tf=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=e.call(this)||this;return o.id=n,o.device=i,o.device.resourceCreationTracker!==null&&o.device.resourceCreationTracker.trackResourceCreated(o),o}return r.prototype.destroy=function(){this.device.resourceCreationTracker!==null&&this.device.resourceCreationTracker.trackResourceDestroyed(this)},r}(bE.Z),WO=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Bindings;var l=o.uniformBufferBindings,f=o.samplerBindings;return s.uniformBufferBindings=l||[],s.samplerBindings=f||[],s.bindingLayouts=s.createBindingLayouts(),s}return r.prototype.createBindingLayouts=function(){var t=0,n=0,i=[],o=this.uniformBufferBindings.length,s=this.samplerBindings.length;return i.push({firstUniformBuffer:t,numUniformBuffers:o,firstSampler:n,numSamplers:s}),t+=o,n+=s,{numUniformBuffers:t,numSamplers:n,bindingLayoutTables:i}},r}(Tf);function Vn(e){return typeof WebGL2RenderingContext!="undefined"&&e instanceof WebGL2RenderingContext?!0:!!(e&&e._version===2)}function UE(e){var r=ch(e);switch(r){case Cr.BC1:case Cr.BC2:case Cr.BC3:case Cr.BC4_UNORM:case Cr.BC4_SNORM:case Cr.BC5_UNORM:case Cr.BC5_SNORM:return!0;default:return!1}}function zE(e){var r=Sv(e);if(r&An.Normalized)return!1;var t=ch(e);return t===Cr.S8||t===Cr.S16||t===Cr.S32||t===Cr.U8||t===Cr.U16||t===Cr.U32}function GO(e){switch(e){case Af.STATIC:return je.STATIC_DRAW;case Af.DYNAMIC:return je.DYNAMIC_DRAW}}function ZE(e){if(e&ro.INDEX)return je.ELEMENT_ARRAY_BUFFER;if(e&ro.VERTEX)return je.ARRAY_BUFFER;if(e&ro.UNIFORM)return je.UNIFORM_BUFFER}function XO(e){switch(e){case ms.TRIANGLES:return je.TRIANGLES;case ms.POINTS:return je.POINTS;case ms.TRIANGLE_STRIP:return je.TRIANGLE_STRIP;case ms.LINES:return je.LINES;case ms.LINE_STRIP:return je.LINE_STRIP;default:throw new Error("Unknown primitive topology mode")}}function $O(e){switch(e){case Cr.U8:return je.UNSIGNED_BYTE;case Cr.U16:return je.UNSIGNED_SHORT;case Cr.U32:return je.UNSIGNED_INT;case Cr.S8:return je.BYTE;case Cr.S16:return je.SHORT;case Cr.S32:return je.INT;case Cr.F16:return je.HALF_FLOAT;case Cr.F32:return je.FLOAT;default:throw new Error("whoops")}}function YO(e){switch(e){case Hn.R:return 1;case Hn.RG:return 2;case Hn.RGB:return 3;case Hn.RGBA:return 4;default:return 1}}function qO(e){var r=ch(e),t=Qg(e),n=Sv(e),i=$O(r),o=YO(t),s=!!(n&An.Normalized);return{size:o,type:i,normalized:s}}function KO(e){switch(e){case Tt.U8_R:return je.UNSIGNED_BYTE;case Tt.U16_R:return je.UNSIGNED_SHORT;case Tt.U32_R:return je.UNSIGNED_INT;default:throw new Error("whoops")}}function Dm(e){switch(e){case gl.CLAMP_TO_EDGE:return je.CLAMP_TO_EDGE;case gl.REPEAT:return je.REPEAT;case gl.MIRRORED_REPEAT:return je.MIRRORED_REPEAT;default:throw new Error("whoops")}}function a0(e,r){if(r===Gs.LINEAR&&e===vs.BILINEAR)return je.LINEAR_MIPMAP_LINEAR;if(r===Gs.LINEAR&&e===vs.POINT)return je.NEAREST_MIPMAP_LINEAR;if(r===Gs.NEAREST&&e===vs.BILINEAR)return je.LINEAR_MIPMAP_NEAREST;if(r===Gs.NEAREST&&e===vs.POINT)return je.NEAREST_MIPMAP_NEAREST;if(r===Gs.NO_MIP&&e===vs.BILINEAR)return je.LINEAR;if(r===Gs.NO_MIP&&e===vs.POINT)return je.NEAREST;throw new Error("Unknown texture filter mode")}function Rv(e,r){r===void 0&&(r=0);var t=e;return t.gl_buffer_pages[r/t.pageByteSize|0]}function Mv(e){var r=e;return r.gl_texture}function C_(e){var r=e;return r.gl_sampler}function km(e,r){e.name=r,e.__SPECTOR_Metadata={name:r}}function VE(e,r){for(var t=[];;){var n=r.exec(e);if(!n)break;t.push(n)}return t}function Up(e){return e.blendMode==Tu.ADD&&e.blendSrcFactor==ua.ONE&&e.blendDstFactor===ua.ZERO}function QO(e){switch(e){case Kg.OcclusionConservative:return je.ANY_SAMPLES_PASSED_CONSERVATIVE;default:throw new Error("whoops")}}function JO(e){if(e===Hi.TEXTURE_2D)return je.TEXTURE_2D;if(e===Hi.TEXTURE_2D_ARRAY)return je.TEXTURE_2D_ARRAY;if(e===Hi.TEXTURE_CUBE_MAP)return je.TEXTURE_CUBE_MAP;if(e===Hi.TEXTURE_3D)return je.TEXTURE_3D;throw new Error("whoops")}function R_(e,r,t,n){return!(e%t!==0||r%n!==0)}var eD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Buffer;var l=o.viewOrSize,f=o.usage,v=o.hint,y=v===void 0?Af.STATIC:v,b=i.uniformBufferMaxPageByteSize,T=i.gl,M=f&ro.UNIFORM;M||(Vn(T)?T.bindVertexArray(null):i.OES_vertex_array_object.bindVertexArrayOES(null));var O=(0,xv.Z)(l)?t0(l,4):t0(l.byteLength,4);s.gl_buffer_pages=[];var k;if(M){for(var $=O;$>0;)s.gl_buffer_pages.push(s.createBufferPage(Math.min($,b),f,y)),$-=b;k=b}else s.gl_buffer_pages.push(s.createBufferPage(O,f,y)),k=O;return s.pageByteSize=k,s.byteSize=O,s.usage=f,s.gl_target=ZE(f),(0,xv.Z)(l)||s.setSubData(0,new Uint8Array(l.buffer)),M||(Vn(T)?T.bindVertexArray(s.device.currentBoundVAO):i.OES_vertex_array_object.bindVertexArrayOES(s.device.currentBoundVAO)),s}return r.prototype.setSubData=function(t,n,i,o){i===void 0&&(i=0),o===void 0&&(o=n.byteLength-i);for(var s=this.device.gl,l=this.pageByteSize,f=t+o,v=t,y=t%l;v=1,!s){y=l.device.ensureResourceExists(f.createTexture());var T=l.device.translateTextureType(o.format),M=l.device.translateTextureInternalFormat(o.format);if(l.device.setActiveTexture(f.TEXTURE0),l.device.currentTextures[0]=null,l.preprocessImage(),o.dimension===Hi.TEXTURE_2D){if(v=je.TEXTURE_2D,f.bindTexture(v,y),l.immutable)if(Vn(f))f.texStorage2D(v,b,M,o.width,o.height);else{var O=(M===je.DEPTH_COMPONENT||l.isNPOT(),0);(l.format===Tt.D32F||l.format===Tt.D24_S8)&&!Vn(f)&&!i.WEBGL_depth_texture||(f.texImage2D(v,O,M,o.width,o.height,0,M,T,null),l.mipmaps&&(l.mipmaps=!1,f.texParameteri(je.TEXTURE_2D,je.TEXTURE_MIN_FILTER,je.LINEAR),f.texParameteri(je.TEXTURE_2D,je.TEXTURE_WRAP_S,je.CLAMP_TO_EDGE),f.texParameteri(je.TEXTURE_2D,je.TEXTURE_WRAP_T,je.CLAMP_TO_EDGE)))}Di(o.depthOrArrayLayers===1)}else if(o.dimension===Hi.TEXTURE_2D_ARRAY)v=je.TEXTURE_2D_ARRAY,f.bindTexture(v,y),l.immutable&&Vn(f)&&f.texStorage3D(v,b,M,o.width,o.height,o.depthOrArrayLayers);else if(o.dimension===Hi.TEXTURE_3D)v=je.TEXTURE_3D,f.bindTexture(v,y),l.immutable&&Vn(f)&&f.texStorage3D(v,b,M,o.width,o.height,o.depthOrArrayLayers);else if(o.dimension===Hi.TEXTURE_CUBE_MAP)v=je.TEXTURE_CUBE_MAP,f.bindTexture(v,y),l.immutable&&Vn(f)&&f.texStorage2D(v,b,M,o.width,o.height),Di(o.depthOrArrayLayers===6);else throw new Error("whoops")}return l.gl_texture=y,l.gl_target=v,l.mipLevelCount=b,l}return r.prototype.setImageData=function(t,n){n===void 0&&(n=0);var i=this.device.gl;UE(this.format);var o=this.gl_target===je.TEXTURE_3D||this.gl_target===je.TEXTURE_2D_ARRAY,s=this.gl_target===je.TEXTURE_CUBE_MAP,l=ZO(t[0]);this.device.setActiveTexture(i.TEXTURE0),this.device.currentTextures[0]=null;var f=t[0],v,y;l?(v=this.width,y=this.height):(v=f.width,y=f.height,this.width=v,this.height=y),i.bindTexture(this.gl_target,this.gl_texture);var b=this.device.translateTextureFormat(this.format),T=this.device.translateTextureType(this.format);this.preprocessImage();for(var M=0;M1){var n=ch(t.format);if(n===Cr.BC1)for(var i=t.width,o=t.height,s=0;s1?l.renderbufferStorageMultisample(je.RENDERBUFFER,T,k,v,y):l.renderbufferStorage(je.RENDERBUFFER,k,v,y)}return s.format=f,s.width=v,s.height=y,s.sampleCount=T,s}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},r}(Tf),Gl;(function(e){e[e.NeedsCompile=0]="NeedsCompile",e[e.Compiling=1]="Compiling",e[e.NeedsBind=2]="NeedsBind",e[e.ReadyToUse=3]="ReadyToUse"})(Gl||(Gl={}));var nD=function(e){(0,wn.ZT)(r,e);function r(t,n){var i=t.id,o=t.device,s=t.descriptor,l=e.call(this,{id:i,device:o})||this;l.rawVertexGLSL=n,l.type=ya.Program,l.uniformSetters={},l.attributes=[];var f=l.device.gl;return l.descriptor=s,l.gl_program=l.device.ensureResourceExists(f.createProgram()),l.gl_shader_vert=null,l.gl_shader_frag=null,l.compileState=Gl.NeedsCompile,l.tryCompileProgram(),l}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},r.prototype.tryCompileProgram=function(){var t,n;Di(this.compileState===Gl.NeedsCompile);var i=this.descriptor,o=this.device.gl;!((t=i.vertex)===null||t===void 0)&&t.glsl&&(!((n=i.fragment)===null||n===void 0)&&n.glsl)&&(this.gl_shader_vert=this.compileShader(i.vertex.glsl,o.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(i.fragment.glsl,o.FRAGMENT_SHADER),o.attachShader(this.gl_program,this.gl_shader_vert),o.attachShader(this.gl_program,this.gl_shader_frag),o.linkProgram(this.gl_program),this.compileState=Gl.Compiling,Vn(o)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},r.prototype.readAttributesFromLinkedProgram=function(){for(var t,n=this.device.gl,i=n.getProgramParameter(this.gl_program,n.ACTIVE_ATTRIBUTES),o=VO(this.descriptor.vertex.glsl),s=jO(this.rawVertexGLSL,o),l=function(y){var b=n.getActiveAttrib(f.gl_program,y),T=b.name,M=b.type,O=b.size,k=n.getAttribLocation(f.gl_program,T),$=(t=s.find(function(G){return G.name===T}))===null||t===void 0?void 0:t.location;k>=0&&!(0,Bp.Z)($)&&(f.attributes[$]={name:T,location:k,type:M,size:O})},f=this,v=0;v1)for(var f=0;f0;)s.gl_buffer_pages.push(s.createBufferPage(Math.min($,b),f,y)),$-=b;F=b}else s.gl_buffer_pages.push(s.createBufferPage(O,f,y)),F=O;return s.pageByteSize=F,s.byteSize=O,s.usage=f,s.gl_target=ZE(f),(0,xv.Z)(l)||s.setSubData(0,new Uint8Array(l.buffer)),M||(Hn(T)?T.bindVertexArray(s.device.currentBoundVAO):i.OES_vertex_array_object.bindVertexArrayOES(s.device.currentBoundVAO)),s}return r.prototype.setSubData=function(t,n,i,o){i===void 0&&(i=0),o===void 0&&(o=n.byteLength-i);for(var s=this.device.gl,l=this.pageByteSize,f=t+o,v=t,y=t%l;v=1,!s){y=l.device.ensureResourceExists(f.createTexture());var T=l.device.translateTextureType(o.format),M=l.device.translateTextureInternalFormat(o.format);if(l.device.setActiveTexture(f.TEXTURE0),l.device.currentTextures[0]=null,l.preprocessImage(),o.dimension===Gi.TEXTURE_2D){if(v=We.TEXTURE_2D,f.bindTexture(v,y),l.immutable)if(Hn(f))f.texStorage2D(v,b,M,o.width,o.height);else{var O=(M===We.DEPTH_COMPONENT||l.isNPOT(),0);(l.format===Mt.D32F||l.format===Mt.D24_S8)&&!Hn(f)&&!i.WEBGL_depth_texture||(f.texImage2D(v,O,M,o.width,o.height,0,M,T,null),l.mipmaps&&(l.mipmaps=!1,f.texParameteri(We.TEXTURE_2D,We.TEXTURE_MIN_FILTER,We.LINEAR),f.texParameteri(We.TEXTURE_2D,We.TEXTURE_WRAP_S,We.CLAMP_TO_EDGE),f.texParameteri(We.TEXTURE_2D,We.TEXTURE_WRAP_T,We.CLAMP_TO_EDGE)))}Bi(o.depthOrArrayLayers===1)}else if(o.dimension===Gi.TEXTURE_2D_ARRAY)v=We.TEXTURE_2D_ARRAY,f.bindTexture(v,y),l.immutable&&Hn(f)&&f.texStorage3D(v,b,M,o.width,o.height,o.depthOrArrayLayers);else if(o.dimension===Gi.TEXTURE_3D)v=We.TEXTURE_3D,f.bindTexture(v,y),l.immutable&&Hn(f)&&f.texStorage3D(v,b,M,o.width,o.height,o.depthOrArrayLayers);else if(o.dimension===Gi.TEXTURE_CUBE_MAP)v=We.TEXTURE_CUBE_MAP,f.bindTexture(v,y),l.immutable&&Hn(f)&&f.texStorage2D(v,b,M,o.width,o.height),Bi(o.depthOrArrayLayers===6);else throw new Error("whoops")}return l.gl_texture=y,l.gl_target=v,l.mipLevelCount=b,l}return r.prototype.setImageData=function(t,n){n===void 0&&(n=0);var i=this.device.gl;UE(this.format);var o=this.gl_target===We.TEXTURE_3D||this.gl_target===We.TEXTURE_2D_ARRAY,s=this.gl_target===We.TEXTURE_CUBE_MAP,l=Z4(t[0]);this.device.setActiveTexture(i.TEXTURE0),this.device.currentTextures[0]=null;var f=t[0],v,y;l?(v=this.width,y=this.height):(v=f.width,y=f.height,this.width=v,this.height=y),i.bindTexture(this.gl_target,this.gl_texture);var b=this.device.translateTextureFormat(this.format),T=this.device.translateTextureType(this.format);this.preprocessImage();for(var M=0;M1){var n=ch(t.format);if(n===Rr.BC1)for(var i=t.width,o=t.height,s=0;s1?l.renderbufferStorageMultisample(We.RENDERBUFFER,T,F,v,y):l.renderbufferStorage(We.RENDERBUFFER,F,v,y)}return s.format=f,s.width=v,s.height=y,s.sampleCount=T,s}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gl_renderbuffer!==null&&this.device.gl.deleteRenderbuffer(this.gl_renderbuffer),this.texture&&this.texture.destroy()},r}(Tf),Gl;(function(e){e[e.NeedsCompile=0]="NeedsCompile",e[e.Compiling=1]="Compiling",e[e.NeedsBind=2]="NeedsBind",e[e.ReadyToUse=3]="ReadyToUse"})(Gl||(Gl={}));var nD=function(e){(0,Mn.ZT)(r,e);function r(t,n){var i=t.id,o=t.device,s=t.descriptor,l=e.call(this,{id:i,device:o})||this;l.rawVertexGLSL=n,l.type=ya.Program,l.uniformSetters={},l.attributes=[];var f=l.device.gl;return l.descriptor=s,l.gl_program=l.device.ensureResourceExists(f.createProgram()),l.gl_shader_vert=null,l.gl_shader_frag=null,l.compileState=Gl.NeedsCompile,l.tryCompileProgram(),l}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.device.gl.deleteProgram(this.gl_program),this.device.gl.deleteShader(this.gl_shader_vert),this.device.gl.deleteShader(this.gl_shader_frag)},r.prototype.tryCompileProgram=function(){var t,n;Bi(this.compileState===Gl.NeedsCompile);var i=this.descriptor,o=this.device.gl;!((t=i.vertex)===null||t===void 0)&&t.glsl&&(!((n=i.fragment)===null||n===void 0)&&n.glsl)&&(this.gl_shader_vert=this.compileShader(i.vertex.glsl,o.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(i.fragment.glsl,o.FRAGMENT_SHADER),o.attachShader(this.gl_program,this.gl_shader_vert),o.attachShader(this.gl_program,this.gl_shader_frag),o.linkProgram(this.gl_program),this.compileState=Gl.Compiling,Hn(o)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},r.prototype.readAttributesFromLinkedProgram=function(){for(var t,n=this.device.gl,i=n.getProgramParameter(this.gl_program,n.ACTIVE_ATTRIBUTES),o=V4(this.descriptor.vertex.glsl),s=j4(this.rawVertexGLSL,o),l=function(y){var b=n.getActiveAttrib(f.gl_program,y),T=b.name,M=b.type,O=b.size,F=n.getAttribLocation(f.gl_program,T),$=(t=s.find(function(G){return G.name===T}))===null||t===void 0?void 0:t.location;F>=0&&!(0,Bp.Z)($)&&(f.attributes[$]={name:T,location:F,type:M,size:O})},f=this,v=0;v1)for(var f=0;f1&&f.device.EXT_texture_filter_anisotropic!==null&&(Di(o.minFilter===vs.BILINEAR&&o.magFilter===vs.BILINEAR&&o.mipmapFilter===Gs.LINEAR),v.samplerParameterf(y,f.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,b)),f.gl_sampler=y}else f.descriptor=o;return f}return r.prototype.setTextureParameters=function(t,n,i){var o,s=this.device.gl,l=this.descriptor;this.isNPOT(n,i)?s.texParameteri(je.TEXTURE_2D,je.TEXTURE_MIN_FILTER,je.LINEAR):s.texParameteri(t,je.TEXTURE_MIN_FILTER,a0(l.minFilter,l.mipmapFilter)),s.texParameteri(je.TEXTURE_2D,je.TEXTURE_WRAP_S,Dm(l.addressModeU)),s.texParameteri(je.TEXTURE_2D,je.TEXTURE_WRAP_T,Dm(l.addressModeV)),s.texParameteri(t,je.TEXTURE_MAG_FILTER,a0(l.magFilter,Gs.NO_MIP));var f=(o=l.maxAnisotropy)!==null&&o!==void 0?o:1;f>1&&this.device.EXT_texture_filter_anisotropic!==null&&(Di(l.minFilter===vs.BILINEAR&&l.magFilter===vs.BILINEAR&&l.mipmapFilter===Gs.LINEAR),s.texParameteri(t,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,f))},r.prototype.destroy=function(){e.prototype.destroy.call(this),Vn(this.device.gl)&&this.device.gl.deleteSampler(C_(this))},r.prototype.isNPOT=function(t,n){return!e0(t)||!e0(n)},r}(Tf),cD=function(){function e(){}return e.prototype.dispatchWorkgroups=function(r,t,n){},e.prototype.dispatchWorkgroupsIndirect=function(r,t){},e.prototype.setPipeline=function(r){},e.prototype.setBindings=function(r){},e.prototype.pushDebugGroup=function(r){},e.prototype.popDebugGroup=function(){},e.prototype.insertDebugMarker=function(r){},e}(),jE=65536,fD=function(){function e(r,t){this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=wv(Td),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=bv.LOWER_LEFT,this.clipSpaceNearZ=Ev.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=r,this.contextAttributes=Ad(r.getContextAttributes()),Vn(r)?(this.EXT_texture_norm16=r.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=r.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=r.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=r.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=r.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=r.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=r.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=r.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=r.getExtension("EXT_color_buffer_half_float"),r.getExtension("EXT_frag_depth"),r.getExtension("OES_element_index_uint"),r.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=r.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=r.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=r.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=r.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=r.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=r.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=r.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=r.getExtension("KHR_parallel_shader_compile"),Vn(r)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new M_({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Hi.TEXTURE_2D,mipLevelCount:1,usage:Ec.RENDER_TARGET,format:this.contextAttributes.alpha===!1?Tt.U8_RGB_RT:Tt.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=zo.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(Hi.TEXTURE_2D,zo.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Hi.TEXTURE_2D,zo.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:ro.VERTEX,hint:Af.STATIC}),Vn(r)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Hi.TEXTURE_2D_ARRAY,zo.Float),this.fallbackTexture3D=this.createFallbackTexture(Hi.TEXTURE_3D,zo.Float),this.fallbackTextureCube=this.createFallbackTexture(Hi.TEXTURE_CUBE_MAP,zo.Float)),this.currentMegaState.depthCompare=_a.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=wu.ALL,r.enable(r.DEPTH_TEST),r.enable(r.STENCIL_TEST),this.checkLimits(),t.shaderDebug&&(this.shaderDebug=!0),t.trackResources&&(this.resourceCreationTracker=new uD)}return e.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},e.prototype.createFallbackTexture=function(r,t){var n=r===Hi.TEXTURE_CUBE_MAP?6:1,i=t===zo.Depth?Tt.D32F:Tt.U8_RGBA_NORM,o=this.createTexture({dimension:r,format:i,usage:Ec.SAMPLED,width:1,height:1,depthOrArrayLayers:n,mipLevelCount:1});return t===zo.Float&&o.setImageData([new Uint8Array(4*n)]),Mv(o)},e.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},e.prototype.checkLimits=function(){var r=this.gl;if(this.maxVertexAttribs=r.getParameter(je.MAX_VERTEX_ATTRIBS),Vn(r)){this.uniformBufferMaxPageByteSize=Math.min(r.getParameter(je.MAX_UNIFORM_BLOCK_SIZE),jE),this.uniformBufferWordAlignment=r.getParameter(r.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var t=r.getInternalformatParameter(r.RENDERBUFFER,r.DEPTH32F_STENCIL8,r.SAMPLES);this.supportedSampleCounts=t?(0,wn.ev)([],(0,wn.CR)(t),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=jE;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(n,i){return n-i})},e.prototype.configureSwapChain=function(r,t,n){var i=this.scTexture;i.width=r,i.height=t,this.scPlatformFramebuffer=mO(n)},e.prototype.getDevice=function(){return this},e.prototype.getCanvas=function(){return this.gl.canvas},e.prototype.getOnscreenTexture=function(){return this.scTexture},e.prototype.beginFrame=function(){},e.prototype.endFrame=function(){},e.prototype.translateTextureInternalFormat=function(r,t){switch(t===void 0&&(t=!1),r){case Tt.ALPHA:return je.ALPHA;case Tt.U8_LUMINANCE:case Tt.F16_LUMINANCE:case Tt.F32_LUMINANCE:return je.LUMINANCE;case Tt.F16_R:return je.R16F;case Tt.F16_RG:return je.RG16F;case Tt.F16_RGB:return je.RGB16F;case Tt.F16_RGBA:return je.RGBA16F;case Tt.F32_R:return je.R32F;case Tt.F32_RG:return je.RG32F;case Tt.F32_RGB:return je.RGB32F;case Tt.F32_RGBA:return Vn(this.gl)?je.RGBA32F:t?this.WEBGL_color_buffer_float.RGBA32F_EXT:je.RGBA;case Tt.U8_R_NORM:return je.R8;case Tt.U8_RG_NORM:return je.RG8;case Tt.U8_RGB_NORM:case Tt.U8_RGB_RT:return je.RGB8;case Tt.U8_RGB_SRGB:return je.SRGB8;case Tt.U8_RGBA_NORM:case Tt.U8_RGBA_RT:return Vn(this.gl)?je.RGBA8:t?je.RGBA4:je.RGBA;case Tt.U8_RGBA:return je.RGBA;case Tt.U8_RGBA_SRGB:case Tt.U8_RGBA_RT_SRGB:return je.SRGB8_ALPHA8;case Tt.U16_R:return je.R16UI;case Tt.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case Tt.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case Tt.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case Tt.U16_RGBA_5551:return je.RGB5_A1;case Tt.U16_RGB_565:return je.RGB565;case Tt.U32_R:return je.R32UI;case Tt.S8_RGBA_NORM:return je.RGBA8_SNORM;case Tt.S8_RG_NORM:return je.RG8_SNORM;case Tt.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case Tt.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case Tt.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case Tt.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case Tt.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case Tt.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case Tt.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case Tt.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case Tt.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case Tt.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case Tt.D32F_S8:return Vn(this.gl)?je.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?je.DEPTH_STENCIL:je.DEPTH_COMPONENT16;case Tt.D24_S8:return Vn(this.gl)?je.DEPTH24_STENCIL8:this.WEBGL_depth_texture?je.DEPTH_STENCIL:je.DEPTH_COMPONENT16;case Tt.D32F:return Vn(this.gl)?je.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?je.DEPTH_COMPONENT:je.DEPTH_COMPONENT16;case Tt.D24:return Vn(this.gl)?je.DEPTH_COMPONENT24:this.WEBGL_depth_texture?je.DEPTH_COMPONENT:je.DEPTH_COMPONENT16;default:throw new Error("whoops")}},e.prototype.translateTextureType=function(r){var t=ch(r);switch(t){case Cr.U8:return je.UNSIGNED_BYTE;case Cr.U16:return je.UNSIGNED_SHORT;case Cr.U32:return je.UNSIGNED_INT;case Cr.S8:return je.BYTE;case Cr.F16:return je.HALF_FLOAT;case Cr.F32:return je.FLOAT;case Cr.U16_PACKED_5551:return je.UNSIGNED_SHORT_5_5_5_1;case Cr.D32F:return Vn(this.gl)?je.FLOAT:this.WEBGL_depth_texture?je.UNSIGNED_INT:je.UNSIGNED_BYTE;case Cr.D24:return Vn(this.gl)?je.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?je.UNSIGNED_SHORT:je.UNSIGNED_BYTE;case Cr.D24S8:return Vn(this.gl)?je.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?je.UNSIGNED_INT_24_8_WEBGL:je.UNSIGNED_BYTE;case Cr.D32FS8:return je.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},e.prototype.translateTextureFormat=function(r){if(UE(r)||r===Tt.F32_LUMINANCE||r===Tt.U8_LUMINANCE)return this.translateTextureInternalFormat(r);var t=Vn(this.gl)||!Vn(this.gl)&&!!this.WEBGL_depth_texture;switch(r){case Tt.D24_S8:case Tt.D32F_S8:return t?je.DEPTH_STENCIL:je.RGBA;case Tt.D24:case Tt.D32F:return t?je.DEPTH_COMPONENT:je.RGBA}var n=zE(r),i=Qg(r);switch(i){case Hn.A:return je.ALPHA;case Hn.R:return n?je.RED_INTEGER:je.RED;case Hn.RG:return n?je.RG_INTEGER:je.RG;case Hn.RGB:return n?je.RGB_INTEGER:je.RGB;case Hn.RGBA:return je.RGBA}},e.prototype.setActiveTexture=function(r){this.currentActiveTexture!==r&&(this.gl.activeTexture(r),this.currentActiveTexture=r)},e.prototype.bindVAO=function(r){this.currentBoundVAO!==r&&(Vn(this.gl)?this.gl.bindVertexArray(r):this.OES_vertex_array_object.bindVertexArrayOES(r),this.currentBoundVAO=r)},e.prototype.programCompiled=function(r){Di(r.compileState!==Gl.NeedsCompile),r.compileState===Gl.Compiling&&(r.compileState=Gl.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(r))},e.prototype.useProgram=function(r){this.currentProgram!==r&&(this.programCompiled(r),this.gl.useProgram(r.gl_program),this.currentProgram=r)},e.prototype.ensureResourceExists=function(r){if(r===null){var t=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(t))}else return r},e.prototype.createBuffer=function(r){return new eD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createTexture=function(r){return new M_({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createSampler=function(r){return new lD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderTarget=function(r){return new rD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderTargetFromTexture=function(r){var t=r,n=t.format,i=t.width,o=t.height,s=t.mipLevelCount;return Di(s===1),this.createRenderTarget({format:n,width:i,height:o,sampleCount:1,texture:r})},e.prototype.createProgram=function(r){var t,n,i,o=(t=r.vertex)===null||t===void 0?void 0:t.glsl;return!((n=r.vertex)===null||n===void 0)&&n.glsl&&(r.vertex.glsl=Np(this.queryVendorInfo(),"vert",r.vertex.glsl)),!((i=r.fragment)===null||i===void 0)&&i.glsl&&(r.fragment.glsl=Np(this.queryVendorInfo(),"frag",r.fragment.glsl)),this.createProgramSimple(r,o)},e.prototype.createProgramSimple=function(r,t){var n=new nD({id:this.getNextUniqueId(),device:this,descriptor:r},t);return n},e.prototype.createBindings=function(r){return new WO({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createInputLayout=function(r){return new tD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderPipeline=function(r){return new oD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createComputePass=function(){return new cD},e.prototype.createComputePipeline=function(r){return new sD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createReadback=function(){return new aD({id:this.getNextUniqueId(),device:this})},e.prototype.createQueryPool=function(r,t){return new iD({id:this.getNextUniqueId(),device:this,descriptor:{type:r,elemCount:t}})},e.prototype.formatRenderPassDescriptor=function(r){var t,n,i,o,s,l,f=r.colorAttachment;r.depthClearValue=(t=r.depthClearValue)!==null&&t!==void 0?t:"load",r.stencilClearValue=(n=r.stencilClearValue)!==null&&n!==void 0?n:"load";for(var v=0;v=0;t--)this.debugGroupStack[t].drawCallCount+=r},e.prototype.debugGroupStatisticsBufferUpload=function(r){r===void 0&&(r=1);for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].bufferUploadCount+=r},e.prototype.debugGroupStatisticsTextureBind=function(r){r===void 0&&(r=1);for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].textureBindCount+=r},e.prototype.debugGroupStatisticsTriangles=function(r){for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].triangleCount+=r},e.prototype.reportShaderError=function(r,t){var n=this.gl,i=n.getShaderParameter(r,n.COMPILE_STATUS);if(!i){console.error(yO(t));var o=n.getExtension("WEBGL_debug_shaders");o&&console.error(o.getTranslatedShaderSource(r)),console.error(n.getShaderInfoLog(r))}return i},e.prototype.checkProgramCompilationForErrors=function(r){var t=this.gl,n=r.gl_program;if(!t.getProgramParameter(n,t.LINK_STATUS)){var i=r.descriptor;if(!this.reportShaderError(r.gl_shader_vert,i.vertex.glsl)||!this.reportShaderError(r.gl_shader_frag,i.fragment.glsl))return;console.error(t.getProgramInfoLog(r.gl_program))}},e.prototype.bindFramebufferAttachment=function(r,t,n,i){var o=this.gl;if((0,Bp.Z)(n))o.framebufferRenderbuffer(r,t,o.RENDERBUFFER,null);else if(n.type===ya.RenderTarget)n.gl_renderbuffer!==null?o.framebufferRenderbuffer(r,t,o.RENDERBUFFER,n.gl_renderbuffer):n.texture!==null&&o.framebufferTexture2D(r,t,je.TEXTURE_2D,Mv(n.texture),i);else if(n.type===ya.Texture){var s=Mv(n);n.dimension===Hi.TEXTURE_2D?o.framebufferTexture2D(r,t,je.TEXTURE_2D,s,i):Vn(o)&&(n.dimension,Hi.TEXTURE_2D_ARRAY)}},e.prototype.bindFramebufferDepthStencilAttachment=function(r,t){var n=this.gl,i=(0,Bp.Z)(t)?An.Depth|An.Stencil:Sv(t.format),o=!!(i&An.Depth),s=!!(i&An.Stencil);if(o&&s){var l=Vn(this.gl)||!Vn(this.gl)&&!!this.WEBGL_depth_texture;l?this.bindFramebufferAttachment(r,n.DEPTH_STENCIL_ATTACHMENT,t,0):this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,t,0)}else o?(this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,t,0),this.bindFramebufferAttachment(r,n.STENCIL_ATTACHMENT,null,0)):s&&(this.bindFramebufferAttachment(r,n.STENCIL_ATTACHMENT,t,0),this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,null,0))},e.prototype.validateCurrentAttachments=function(){for(var r=-1,t=-1,n=-1,i=0;i=f.numUniformBuffers),Di(s.length>=f.numSamplers);for(var v=0;v1&&f.device.EXT_texture_filter_anisotropic!==null&&(Bi(o.minFilter===vs.BILINEAR&&o.magFilter===vs.BILINEAR&&o.mipmapFilter===Xs.LINEAR),v.samplerParameterf(y,f.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,b)),f.gl_sampler=y}else f.descriptor=o;return f}return r.prototype.setTextureParameters=function(t,n,i){var o,s=this.device.gl,l=this.descriptor;this.isNPOT(n,i)?s.texParameteri(We.TEXTURE_2D,We.TEXTURE_MIN_FILTER,We.LINEAR):s.texParameteri(t,We.TEXTURE_MIN_FILTER,a0(l.minFilter,l.mipmapFilter)),s.texParameteri(We.TEXTURE_2D,We.TEXTURE_WRAP_S,Dm(l.addressModeU)),s.texParameteri(We.TEXTURE_2D,We.TEXTURE_WRAP_T,Dm(l.addressModeV)),s.texParameteri(t,We.TEXTURE_MAG_FILTER,a0(l.magFilter,Xs.NO_MIP));var f=(o=l.maxAnisotropy)!==null&&o!==void 0?o:1;f>1&&this.device.EXT_texture_filter_anisotropic!==null&&(Bi(l.minFilter===vs.BILINEAR&&l.magFilter===vs.BILINEAR&&l.mipmapFilter===Xs.LINEAR),s.texParameteri(t,this.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,f))},r.prototype.destroy=function(){e.prototype.destroy.call(this),Hn(this.device.gl)&&this.device.gl.deleteSampler(C_(this))},r.prototype.isNPOT=function(t,n){return!e0(t)||!e0(n)},r}(Tf),cD=function(){function e(){}return e.prototype.dispatchWorkgroups=function(r,t,n){},e.prototype.dispatchWorkgroupsIndirect=function(r,t){},e.prototype.setPipeline=function(r){},e.prototype.setBindings=function(r){},e.prototype.pushDebugGroup=function(r){},e.prototype.popDebugGroup=function(){},e.prototype.insertDebugMarker=function(r){},e}(),jE=65536,fD=/uniform(?:\s+)(\w+)(?:\s?){([^]*?)}/g,hD=function(){function e(r,t){this.shaderDebug=!1,this.OES_vertex_array_object=null,this.ANGLE_instanced_arrays=null,this.OES_texture_float=null,this.OES_draw_buffers_indexed=null,this.WEBGL_draw_buffers=null,this.WEBGL_depth_texture=null,this.WEBGL_color_buffer_float=null,this.EXT_color_buffer_half_float=null,this.WEBGL_compressed_texture_s3tc=null,this.WEBGL_compressed_texture_s3tc_srgb=null,this.EXT_texture_compression_rgtc=null,this.EXT_texture_filter_anisotropic=null,this.KHR_parallel_shader_compile=null,this.EXT_texture_norm16=null,this.EXT_color_buffer_float=null,this.OES_texture_float_linear=null,this.OES_texture_half_float_linear=null,this.scTexture=null,this.scPlatformFramebuffer=null,this.currentActiveTexture=null,this.currentBoundVAO=null,this.currentProgram=null,this.resourceCreationTracker=null,this.resourceUniqueId=0,this.currentColorAttachments=[],this.currentColorAttachmentLevels=[],this.currentColorResolveTos=[],this.currentColorResolveToLevels=[],this.currentSampleCount=-1,this.currentIndexBufferByteOffset=null,this.currentMegaState=wv(Td),this.currentSamplers=[],this.currentTextures=[],this.currentUniformBuffers=[],this.currentUniformBufferByteOffsets=[],this.currentUniformBufferByteSizes=[],this.currentScissorEnabled=!1,this.currentStencilRef=null,this.currentRenderPassDescriptor=null,this.currentRenderPassDescriptorStack=[],this.debugGroupStack=[],this.resolveColorAttachmentsChanged=!1,this.resolveDepthStencilAttachmentsChanged=!1,this.explicitBindingLocations=!1,this.separateSamplerTextures=!1,this.viewportOrigin=bv.LOWER_LEFT,this.clipSpaceNearZ=Ev.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=r,this.contextAttributes=Ad(r.getContextAttributes()),Hn(r)?(this.EXT_texture_norm16=r.getExtension("EXT_texture_norm16"),this.EXT_color_buffer_float=r.getExtension("EXT_color_buffer_float")):(this.OES_vertex_array_object=r.getExtension("OES_vertex_array_object"),this.ANGLE_instanced_arrays=r.getExtension("ANGLE_instanced_arrays"),this.OES_texture_float=r.getExtension("OES_texture_float"),this.WEBGL_draw_buffers=r.getExtension("WEBGL_draw_buffers"),this.WEBGL_depth_texture=r.getExtension("WEBGL_depth_texture"),this.WEBGL_color_buffer_float=r.getExtension("WEBGL_color_buffer_float"),this.EXT_color_buffer_half_float=r.getExtension("EXT_color_buffer_half_float"),r.getExtension("EXT_frag_depth"),r.getExtension("OES_element_index_uint"),r.getExtension("OES_standard_derivatives")),this.WEBGL_compressed_texture_s3tc=r.getExtension("WEBGL_compressed_texture_s3tc"),this.WEBGL_compressed_texture_s3tc_srgb=r.getExtension("WEBGL_compressed_texture_s3tc_srgb"),this.EXT_texture_compression_rgtc=r.getExtension("EXT_texture_compression_rgtc"),this.EXT_texture_filter_anisotropic=r.getExtension("EXT_texture_filter_anisotropic"),this.EXT_texture_norm16=r.getExtension("EXT_texture_norm16"),this.OES_texture_float_linear=r.getExtension("OES_texture_float_linear"),this.OES_texture_half_float_linear=r.getExtension("OES_texture_half_float_linear"),this.KHR_parallel_shader_compile=r.getExtension("KHR_parallel_shader_compile"),Hn(r)?(this.platformString="WebGL2",this.glslVersion="#version 300 es"):(this.platformString="WebGL1",this.glslVersion="#version 100"),this.scTexture=new M_({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Gi.TEXTURE_2D,mipLevelCount:1,usage:Ec.RENDER_TARGET,format:this.contextAttributes.alpha===!1?Mt.U8_RGB_RT:Mt.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=zo.Float,this.scTexture.gl_target=null,this.scTexture.gl_texture=null,this.resolveColorReadFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveColorDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveDepthStencilReadFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.resolveDepthStencilDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.renderPassDrawFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.readbackFramebuffer=this.ensureResourceExists(r.createFramebuffer()),this.fallbackTexture2D=this.createFallbackTexture(Gi.TEXTURE_2D,zo.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Gi.TEXTURE_2D,zo.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:no.VERTEX,hint:Af.STATIC}),Hn(r)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Gi.TEXTURE_2D_ARRAY,zo.Float),this.fallbackTexture3D=this.createFallbackTexture(Gi.TEXTURE_3D,zo.Float),this.fallbackTextureCube=this.createFallbackTexture(Gi.TEXTURE_CUBE_MAP,zo.Float)),this.currentMegaState.depthCompare=_a.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=wu.ALL,r.enable(r.DEPTH_TEST),r.enable(r.STENCIL_TEST),this.checkLimits(),t.shaderDebug&&(this.shaderDebug=!0),t.trackResources&&(this.resourceCreationTracker=new uD)}return e.prototype.destroy=function(){this.blitBindings&&this.blitBindings.destroy(),this.blitInputLayout&&this.blitInputLayout.destroy(),this.blitRenderPipeline&&this.blitRenderPipeline.destroy(),this.blitVertexBuffer&&this.blitVertexBuffer.destroy(),this.blitProgram&&this.blitProgram.destroy()},e.prototype.createFallbackTexture=function(r,t){var n=r===Gi.TEXTURE_CUBE_MAP?6:1,i=t===zo.Depth?Mt.D32F:Mt.U8_RGBA_NORM,o=this.createTexture({dimension:r,format:i,usage:Ec.SAMPLED,width:1,height:1,depthOrArrayLayers:n,mipLevelCount:1});return t===zo.Float&&o.setImageData([new Uint8Array(4*n)]),Mv(o)},e.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},e.prototype.checkLimits=function(){var r=this.gl;if(this.maxVertexAttribs=r.getParameter(We.MAX_VERTEX_ATTRIBS),Hn(r)){this.uniformBufferMaxPageByteSize=Math.min(r.getParameter(We.MAX_UNIFORM_BLOCK_SIZE),jE),this.uniformBufferWordAlignment=r.getParameter(r.UNIFORM_BUFFER_OFFSET_ALIGNMENT)/4;var t=r.getInternalformatParameter(r.RENDERBUFFER,r.DEPTH32F_STENCIL8,r.SAMPLES);this.supportedSampleCounts=t?(0,Mn.ev)([],(0,Mn.CR)(t),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=jE;this.uniformBufferMaxPageWordSize=this.uniformBufferMaxPageByteSize/4,this.supportedSampleCounts.includes(1)||this.supportedSampleCounts.push(1),this.supportedSampleCounts.sort(function(n,i){return n-i})},e.prototype.configureSwapChain=function(r,t,n){var i=this.scTexture;i.width=r,i.height=t,this.scPlatformFramebuffer=m4(n)},e.prototype.getDevice=function(){return this},e.prototype.getCanvas=function(){return this.gl.canvas},e.prototype.getOnscreenTexture=function(){return this.scTexture},e.prototype.beginFrame=function(){},e.prototype.endFrame=function(){},e.prototype.translateTextureInternalFormat=function(r,t){switch(t===void 0&&(t=!1),r){case Mt.ALPHA:return We.ALPHA;case Mt.U8_LUMINANCE:case Mt.F16_LUMINANCE:case Mt.F32_LUMINANCE:return We.LUMINANCE;case Mt.F16_R:return We.R16F;case Mt.F16_RG:return We.RG16F;case Mt.F16_RGB:return We.RGB16F;case Mt.F16_RGBA:return We.RGBA16F;case Mt.F32_R:return We.R32F;case Mt.F32_RG:return We.RG32F;case Mt.F32_RGB:return We.RGB32F;case Mt.F32_RGBA:return Hn(this.gl)?We.RGBA32F:t?this.WEBGL_color_buffer_float.RGBA32F_EXT:We.RGBA;case Mt.U8_R_NORM:return We.R8;case Mt.U8_RG_NORM:return We.RG8;case Mt.U8_RGB_NORM:case Mt.U8_RGB_RT:return We.RGB8;case Mt.U8_RGB_SRGB:return We.SRGB8;case Mt.U8_RGBA_NORM:case Mt.U8_RGBA_RT:return Hn(this.gl)?We.RGBA8:t?We.RGBA4:We.RGBA;case Mt.U8_RGBA:return We.RGBA;case Mt.U8_RGBA_SRGB:case Mt.U8_RGBA_RT_SRGB:return We.SRGB8_ALPHA8;case Mt.U16_R:return We.R16UI;case Mt.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case Mt.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case Mt.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case Mt.U16_RGBA_5551:return We.RGB5_A1;case Mt.U16_RGB_565:return We.RGB565;case Mt.U32_R:return We.R32UI;case Mt.S8_RGBA_NORM:return We.RGBA8_SNORM;case Mt.S8_RG_NORM:return We.RG8_SNORM;case Mt.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case Mt.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case Mt.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case Mt.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case Mt.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case Mt.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case Mt.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case Mt.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case Mt.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case Mt.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case Mt.D32F_S8:return Hn(this.gl)?We.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?We.DEPTH_STENCIL:We.DEPTH_COMPONENT16;case Mt.D24_S8:return Hn(this.gl)?We.DEPTH24_STENCIL8:this.WEBGL_depth_texture?We.DEPTH_STENCIL:We.DEPTH_COMPONENT16;case Mt.D32F:return Hn(this.gl)?We.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?We.DEPTH_COMPONENT:We.DEPTH_COMPONENT16;case Mt.D24:return Hn(this.gl)?We.DEPTH_COMPONENT24:this.WEBGL_depth_texture?We.DEPTH_COMPONENT:We.DEPTH_COMPONENT16;default:throw new Error("whoops")}},e.prototype.translateTextureType=function(r){var t=ch(r);switch(t){case Rr.U8:return We.UNSIGNED_BYTE;case Rr.U16:return We.UNSIGNED_SHORT;case Rr.U32:return We.UNSIGNED_INT;case Rr.S8:return We.BYTE;case Rr.F16:return We.HALF_FLOAT;case Rr.F32:return We.FLOAT;case Rr.U16_PACKED_5551:return We.UNSIGNED_SHORT_5_5_5_1;case Rr.D32F:return Hn(this.gl)?We.FLOAT:this.WEBGL_depth_texture?We.UNSIGNED_INT:We.UNSIGNED_BYTE;case Rr.D24:return Hn(this.gl)?We.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?We.UNSIGNED_SHORT:We.UNSIGNED_BYTE;case Rr.D24S8:return Hn(this.gl)?We.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?We.UNSIGNED_INT_24_8_WEBGL:We.UNSIGNED_BYTE;case Rr.D32FS8:return We.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},e.prototype.translateTextureFormat=function(r){if(UE(r)||r===Mt.F32_LUMINANCE||r===Mt.U8_LUMINANCE)return this.translateTextureInternalFormat(r);var t=Hn(this.gl)||!Hn(this.gl)&&!!this.WEBGL_depth_texture;switch(r){case Mt.D24_S8:case Mt.D32F_S8:return t?We.DEPTH_STENCIL:We.RGBA;case Mt.D24:case Mt.D32F:return t?We.DEPTH_COMPONENT:We.RGBA}var n=zE(r),i=Qg(r);switch(i){case Wn.A:return We.ALPHA;case Wn.R:return n?We.RED_INTEGER:We.RED;case Wn.RG:return n?We.RG_INTEGER:We.RG;case Wn.RGB:return n?We.RGB_INTEGER:We.RGB;case Wn.RGBA:return We.RGBA}},e.prototype.setActiveTexture=function(r){this.currentActiveTexture!==r&&(this.gl.activeTexture(r),this.currentActiveTexture=r)},e.prototype.bindVAO=function(r){this.currentBoundVAO!==r&&(Hn(this.gl)?this.gl.bindVertexArray(r):this.OES_vertex_array_object.bindVertexArrayOES(r),this.currentBoundVAO=r)},e.prototype.programCompiled=function(r){Bi(r.compileState!==Gl.NeedsCompile),r.compileState===Gl.Compiling&&(r.compileState=Gl.NeedsBind,this.shaderDebug&&this.checkProgramCompilationForErrors(r))},e.prototype.useProgram=function(r){this.currentProgram!==r&&(this.programCompiled(r),this.gl.useProgram(r.gl_program),this.currentProgram=r)},e.prototype.ensureResourceExists=function(r){if(r===null){var t=this.gl.getError();throw new Error("Created resource is null; GL error encountered: ".concat(t))}else return r},e.prototype.createBuffer=function(r){return new eD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createTexture=function(r){return new M_({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createSampler=function(r){return new lD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderTarget=function(r){return new rD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderTargetFromTexture=function(r){var t=r,n=t.format,i=t.width,o=t.height,s=t.mipLevelCount;return Bi(s===1),this.createRenderTarget({format:n,width:i,height:o,sampleCount:1,texture:r})},e.prototype.createProgram=function(r){var t,n,i,o=(t=r.vertex)===null||t===void 0?void 0:t.glsl;return!((n=r.vertex)===null||n===void 0)&&n.glsl&&(r.vertex.glsl=Np(this.queryVendorInfo(),"vert",r.vertex.glsl)),!((i=r.fragment)===null||i===void 0)&&i.glsl&&(r.fragment.glsl=Np(this.queryVendorInfo(),"frag",r.fragment.glsl)),this.createProgramSimple(r,o)},e.prototype.createProgramSimple=function(r,t){var n=new nD({id:this.getNextUniqueId(),device:this,descriptor:r},t);return n},e.prototype.createBindings=function(r){return new W4({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createInputLayout=function(r){return new tD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderPipeline=function(r){return new oD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createComputePass=function(){return new cD},e.prototype.createComputePipeline=function(r){return new sD({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createReadback=function(){return new aD({id:this.getNextUniqueId(),device:this})},e.prototype.createQueryPool=function(r,t){return new iD({id:this.getNextUniqueId(),device:this,descriptor:{type:r,elemCount:t}})},e.prototype.formatRenderPassDescriptor=function(r){var t,n,i,o,s,l,f=r.colorAttachment;r.depthClearValue=(t=r.depthClearValue)!==null&&t!==void 0?t:"load",r.stencilClearValue=(n=r.stencilClearValue)!==null&&n!==void 0?n:"load";for(var v=0;v=0;t--)this.debugGroupStack[t].drawCallCount+=r},e.prototype.debugGroupStatisticsBufferUpload=function(r){r===void 0&&(r=1);for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].bufferUploadCount+=r},e.prototype.debugGroupStatisticsTextureBind=function(r){r===void 0&&(r=1);for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].textureBindCount+=r},e.prototype.debugGroupStatisticsTriangles=function(r){for(var t=this.debugGroupStack.length-1;t>=0;t--)this.debugGroupStack[t].triangleCount+=r},e.prototype.reportShaderError=function(r,t){var n=this.gl,i=n.getShaderParameter(r,n.COMPILE_STATUS);if(!i){console.error(y4(t));var o=n.getExtension("WEBGL_debug_shaders");o&&console.error(o.getTranslatedShaderSource(r)),console.error(n.getShaderInfoLog(r))}return i},e.prototype.checkProgramCompilationForErrors=function(r){var t=this.gl,n=r.gl_program;if(!t.getProgramParameter(n,t.LINK_STATUS)){var i=r.descriptor;if(!this.reportShaderError(r.gl_shader_vert,i.vertex.glsl)||!this.reportShaderError(r.gl_shader_frag,i.fragment.glsl))return;console.error(t.getProgramInfoLog(r.gl_program))}},e.prototype.bindFramebufferAttachment=function(r,t,n,i){var o=this.gl;if((0,Bp.Z)(n))o.framebufferRenderbuffer(r,t,o.RENDERBUFFER,null);else if(n.type===ya.RenderTarget)n.gl_renderbuffer!==null?o.framebufferRenderbuffer(r,t,o.RENDERBUFFER,n.gl_renderbuffer):n.texture!==null&&o.framebufferTexture2D(r,t,We.TEXTURE_2D,Mv(n.texture),i);else if(n.type===ya.Texture){var s=Mv(n);n.dimension===Gi.TEXTURE_2D?o.framebufferTexture2D(r,t,We.TEXTURE_2D,s,i):Hn(o)&&(n.dimension,Gi.TEXTURE_2D_ARRAY)}},e.prototype.bindFramebufferDepthStencilAttachment=function(r,t){var n=this.gl,i=(0,Bp.Z)(t)?wn.Depth|wn.Stencil:Sv(t.format),o=!!(i&wn.Depth),s=!!(i&wn.Stencil);if(o&&s){var l=Hn(this.gl)||!Hn(this.gl)&&!!this.WEBGL_depth_texture;l?this.bindFramebufferAttachment(r,n.DEPTH_STENCIL_ATTACHMENT,t,0):this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,t,0)}else o?(this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,t,0),this.bindFramebufferAttachment(r,n.STENCIL_ATTACHMENT,null,0)):s&&(this.bindFramebufferAttachment(r,n.STENCIL_ATTACHMENT,t,0),this.bindFramebufferAttachment(r,n.DEPTH_ATTACHMENT,null,0))},e.prototype.validateCurrentAttachments=function(){for(var r=-1,t=-1,n=-1,i=0;i=f.numUniformBuffers),Bi(s.length>=f.numSamplers);for(var v=0;v{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&HE.decode();let Fm=null;function o0(){return(Fm===null||Fm.byteLength===0)&&(Fm=new Uint8Array(gs.memory.buffer)),Fm}function s0(e,r){return e=e>>>0,HE.decode(o0().subarray(e,e+r))}const $h=new Array(128).fill(void 0);$h.push(void 0,null,!0,!1);let Bm=$h.length;function pD(e){Bm===$h.length&&$h.push($h.length+1);const r=Bm;return Bm=$h[r],$h[r]=e,r}function u0(e){return $h[e]}function dD(e){e<132||($h[e]=Bm,Bm=e)}function vD(e){const r=u0(e);return dD(e),r}let Lm=0;const l0=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},mD=typeof l0.encodeInto=="function"?function(e,r){return l0.encodeInto(e,r)}:function(e,r){const t=l0.encode(e);return r.set(t),{read:e.length,written:t.length}};function I_(e,r,t){if(t===void 0){const l=l0.encode(e),f=r(l.length,1)>>>0;return o0().subarray(f,f+l.length).set(l),Lm=l.length,f}let n=e.length,i=r(n,1)>>>0;const o=o0();let s=0;for(;s127)break;o[i+s]=l}if(s!==n){s!==0&&(e=e.slice(s)),i=t(i,n,n=s+e.length*3,1)>>>0;const l=o0().subarray(i+s,i+n),f=mD(e,l);s+=f.written}return Lm=s,i}let Nm=null;function c0(){return(Nm===null||Nm.byteLength===0)&&(Nm=new Int32Array(gs.memory.buffer)),Nm}function gD(e,r,t){let n,i;try{const l=gs.__wbindgen_add_to_stack_pointer(-16),f=I_(e,gs.__wbindgen_malloc,gs.__wbindgen_realloc),v=Lm,y=I_(r,gs.__wbindgen_malloc,gs.__wbindgen_realloc),b=Lm;gs.glsl_compile(l,f,v,y,b,t);var o=c0()[l/4+0],s=c0()[l/4+1];return n=o,i=s,s0(o,s)}finally{gs.__wbindgen_add_to_stack_pointer(16),gs.__wbindgen_free(n,i,1)}}class Um{static __wrap(r){r=r>>>0;const t=Object.create(Um.prototype);return t.__wbg_ptr=r,t}__destroy_into_raw(){const r=this.__wbg_ptr;return this.__wbg_ptr=0,r}free(){const r=this.__destroy_into_raw();gs.__wbg_wgslcomposer_free(r)}constructor(){const r=gs.wgslcomposer_new();return Um.__wrap(r)}wgsl_compile(r){let t,n;try{const s=gs.__wbindgen_add_to_stack_pointer(-16),l=I_(r,gs.__wbindgen_malloc,gs.__wbindgen_realloc),f=Lm;gs.wgslcomposer_wgsl_compile(s,this.__wbg_ptr,l,f);var i=c0()[s/4+0],o=c0()[s/4+1];return t=i,n=o,s0(i,o)}finally{gs.__wbindgen_add_to_stack_pointer(16),gs.__wbindgen_free(t,n,1)}}}function _D(e,r){return Z_(this,null,function*(){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return yield WebAssembly.instantiateStreaming(e,r)}catch(n){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=yield e.arrayBuffer();return yield WebAssembly.instantiate(t,r)}else{const t=yield WebAssembly.instantiate(e,r);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}})}function yD(){const e={};return e.wbg={},e.wbg.__wbindgen_string_new=function(r,t){const n=s0(r,t);return pD(n)},e.wbg.__wbindgen_object_drop_ref=function(r){vD(r)},e.wbg.__wbg_log_1d3ae0273d8f4f8a=function(r){console.log(u0(r))},e.wbg.__wbg_log_576ca876af0d4a77=function(r,t){console.log(u0(r),u0(t))},e.wbg.__wbindgen_throw=function(r,t){throw new Error(s0(r,t))},e}function xD(e,r){return gs=e.exports,WE.__wbindgen_wasm_module=r,Nm=null,Fm=null,gs}function WE(e){return Z_(this,null,function*(){if(gs!==void 0)return gs;const r=yD();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:t,module:n}=yield _D(yield e,r);return xD(t,n)})}var yl;(function(e){e[e.COPY_SRC=1]="COPY_SRC",e[e.COPY_DST=2]="COPY_DST",e[e.TEXTURE_BINDING=4]="TEXTURE_BINDING",e[e.STORAGE_BINDING=8]="STORAGE_BINDING",e[e.STORAGE=8]="STORAGE",e[e.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(yl||(yl={}));var P_;(function(e){e[e.READ=1]="READ",e[e.WRITE=2]="WRITE"})(P_||(P_={}));function bD(e){var r=0;return e&Ec.SAMPLED&&(r|=yl.TEXTURE_BINDING|yl.COPY_DST),e&Ec.RENDER_TARGET&&(r|=yl.RENDER_ATTACHMENT|yl.TEXTURE_BINDING|yl.COPY_SRC|yl.COPY_DST),r}function O_(e){if(e===Tt.U8_R_NORM)return"r8unorm";if(e===Tt.U8_RG_NORM)return"rg8unorm";if(e===Tt.U8_RGBA_RT)return"bgra8unorm";if(e===Tt.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(e===Tt.U8_RGBA_NORM)return"rgba8unorm";if(e===Tt.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(e===Tt.S8_R_NORM)return"r8snorm";if(e===Tt.S8_RG_NORM)return"rg8snorm";if(e===Tt.S8_RGBA_NORM)return"rgba8snorm";if(e===Tt.U32_R)return"r32uint";if(e===Tt.F16_RGBA)return"rgba16float";if(e===Tt.F32_RGBA)return"rgba32float";if(e===Tt.D24)return"depth24plus";if(e===Tt.D24_S8)return"depth24plus-stencil8";if(e===Tt.D32F)return"depth32float";if(e===Tt.D32F_S8)return"depth32float-stencil8";if(e===Tt.BC1)return"bc1-rgba-unorm";if(e===Tt.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(e===Tt.BC2)return"bc2-rgba-unorm";if(e===Tt.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(e===Tt.BC3)return"bc3-rgba-unorm";if(e===Tt.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(e===Tt.BC4_SNORM)return"bc4-r-snorm";if(e===Tt.BC4_UNORM)return"bc4-r-unorm";if(e===Tt.BC5_SNORM)return"bc5-rg-snorm";if(e===Tt.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function ED(e){if(e===Hi.TEXTURE_2D)return"2d";if(e===Hi.TEXTURE_CUBE_MAP)return"2d";if(e===Hi.TEXTURE_2D_ARRAY)return"2d";if(e===Hi.TEXTURE_3D)return"3d";throw new Error("whoops")}function SD(e){if(e===Hi.TEXTURE_2D)return"2d";if(e===Hi.TEXTURE_CUBE_MAP)return"cube";if(e===Hi.TEXTURE_2D_ARRAY)return"2d-array";if(e===Hi.TEXTURE_3D)return"3d";throw new Error("whoops")}function AD(e){var r=0;return e&ro.INDEX&&(r|=GPUBufferUsage.INDEX),e&ro.VERTEX&&(r|=GPUBufferUsage.VERTEX),e&ro.UNIFORM&&(r|=GPUBufferUsage.UNIFORM),e&ro.STORAGE&&(r|=GPUBufferUsage.STORAGE),e&ro.COPY_SRC&&(r|=GPUBufferUsage.COPY_SRC),r|=GPUBufferUsage.COPY_DST,r}function D_(e){if(e===gl.CLAMP_TO_EDGE)return"clamp-to-edge";if(e===gl.REPEAT)return"repeat";if(e===gl.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function GE(e){if(e===vs.BILINEAR)return"linear";if(e===vs.POINT)return"nearest";throw new Error("whoops")}function TD(e){if(e===Gs.LINEAR)return"linear";if(e===Gs.NEAREST)return"nearest";if(e===Gs.NO_MIP)return"nearest";throw new Error("whoops")}function Iv(e){var r=e;return r.gpuBuffer}function wD(e){var r=e;return r.gpuSampler}function CD(e){var r=e;return r.querySet}function RD(e){if(e===Kg.OcclusionConservative)return"occlusion";throw new Error("whoops")}function MD(e){switch(e){case ms.TRIANGLES:return"triangle-list";case ms.POINTS:return"point-list";case ms.TRIANGLE_STRIP:return"triangle-strip";case ms.LINES:return"line-list";case ms.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function ID(e){if(e===Wl.NONE)return"none";if(e===Wl.FRONT)return"front";if(e===Wl.BACK)return"back";throw new Error("whoops")}function PD(e){if(e===Im.CCW)return"ccw";if(e===Im.CW)return"cw";throw new Error("whoops")}function OD(e,r){return{topology:MD(e),cullMode:ID(r.cullMode),frontFace:PD(r.frontFace)}}function XE(e){if(e===ua.ZERO)return"zero";if(e===ua.ONE)return"one";if(e===ua.SRC)return"src";if(e===ua.ONE_MINUS_SRC)return"one-minus-src";if(e===ua.DST)return"dst";if(e===ua.ONE_MINUS_DST)return"one-minus-dst";if(e===ua.SRC_ALPHA)return"src-alpha";if(e===ua.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(e===ua.DST_ALPHA)return"dst-alpha";if(e===ua.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(e===ua.CONST)return"constant";if(e===ua.ONE_MINUS_CONSTANT)return"one-minus-constant";if(e===ua.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function DD(e){if(e===Tu.ADD)return"add";if(e===Tu.SUBSTRACT)return"subtract";if(e===Tu.REVERSE_SUBSTRACT)return"reverse-subtract";if(e===Tu.MIN)return"min";if(e===Tu.MAX)return"max";throw new Error("whoops")}function $E(e){return{operation:DD(e.blendMode),srcFactor:XE(e.blendSrcFactor),dstFactor:XE(e.blendDstFactor)}}function YE(e){return e.blendMode===Tu.ADD&&e.blendSrcFactor===ua.ONE&&e.blendDstFactor===ua.ZERO}function kD(e){if(!(YE(e.rgbBlendState)&&YE(e.alphaBlendState)))return{color:$E(e.rgbBlendState),alpha:$E(e.alphaBlendState)}}function FD(e,r){return{format:O_(r),blend:kD(e),writeMask:e.channelWriteMask}}function BD(e,r){return r.attachmentsState.map(function(t,n){return FD(t,e[n])})}function f0(e){if(e===_a.NEVER)return"never";if(e===_a.LESS)return"less";if(e===_a.EQUAL)return"equal";if(e===_a.LEQUAL)return"less-equal";if(e===_a.GREATER)return"greater";if(e===_a.NOTEQUAL)return"not-equal";if(e===_a.GEQUAL)return"greater-equal";if(e===_a.ALWAYS)return"always";throw new Error("whoops")}function Pv(e){if(e===qu.KEEP)return"keep";if(e===qu.REPLACE)return"replace";if(e===qu.ZERO)return"zero";if(e===qu.DECREMENT_CLAMP)return"decrement-clamp";if(e===qu.DECREMENT_WRAP)return"decrement-wrap";if(e===qu.INCREMENT_CLAMP)return"increment-clamp";if(e===qu.INCREMENT_WRAP)return"increment-wrap";if(e===qu.INVERT)return"invert";throw new Error("whoops")}function LD(e,r){if(!(0,Bp.Z)(e))return{format:O_(e),depthWriteEnabled:!!r.depthWrite,depthCompare:f0(r.depthCompare),depthBias:r.polygonOffset?1:0,depthBiasSlopeScale:r.polygonOffset?1:0,stencilFront:{compare:f0(r.stencilFront.compare),passOp:Pv(r.stencilFront.passOp),failOp:Pv(r.stencilFront.failOp),depthFailOp:Pv(r.stencilFront.depthFailOp)},stencilBack:{compare:f0(r.stencilBack.compare),passOp:Pv(r.stencilBack.passOp),failOp:Pv(r.stencilBack.failOp),depthFailOp:Pv(r.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function ND(e){if(e!==null){if(e===Tt.U16_R)return"uint16";if(e===Tt.U32_R)return"uint32";throw new Error("whoops")}}function UD(e){if(e===Sd.VERTEX)return"vertex";if(e===Sd.INSTANCE)return"instance";throw new Error("whoops")}function zD(e){if(e===Tt.U8_R)return"uint8x2";if(e===Tt.U8_RG)return"uint8x2";if(e===Tt.U8_RGB)return"uint8x4";if(e===Tt.U8_RGBA)return"uint8x4";if(e===Tt.U8_RG_NORM)return"unorm8x2";if(e===Tt.U8_RGBA_NORM)return"unorm8x4";if(e===Tt.S8_RGB_NORM)return"snorm8x4";if(e===Tt.S8_RGBA_NORM)return"snorm8x4";if(e===Tt.U16_RG_NORM)return"unorm16x2";if(e===Tt.U16_RGBA_NORM)return"unorm16x4";if(e===Tt.S16_RG_NORM)return"snorm16x2";if(e===Tt.S16_RGBA_NORM)return"snorm16x4";if(e===Tt.S16_RG)return"uint16x2";if(e===Tt.F16_RG)return"float16x2";if(e===Tt.F16_RGBA)return"float16x4";if(e===Tt.F32_R)return"float32";if(e===Tt.F32_RG)return"float32x2";if(e===Tt.F32_RGB)return"float32x3";if(e===Tt.F32_RGBA)return"float32x4";throw"whoops"}function ZD(e){var r=ch(e);switch(r){case Cr.BC1:case Cr.BC2:case Cr.BC3:case Cr.BC4_SNORM:case Cr.BC4_UNORM:case Cr.BC5_SNORM:case Cr.BC5_UNORM:return!0;default:return!1}}function VD(e){var r=ch(e);switch(r){case Cr.BC1:case Cr.BC2:case Cr.BC3:case Cr.BC4_SNORM:case Cr.BC4_UNORM:case Cr.BC5_SNORM:case Cr.BC5_UNORM:return 4;default:return 1}}function qE(e,r,t,n){switch(t===void 0&&(t=!1),e){case Tt.S8_R:case Tt.S8_R_NORM:case Tt.S8_RG_NORM:case Tt.S8_RGB_NORM:case Tt.S8_RGBA_NORM:{var i=r instanceof ArrayBuffer?new Int8Array(r):new Int8Array(r);return n&&i.set(new Int8Array(n)),i}case Tt.U8_R:case Tt.U8_R_NORM:case Tt.U8_RG:case Tt.U8_RG_NORM:case Tt.U8_RGB:case Tt.U8_RGB_NORM:case Tt.U8_RGB_SRGB:case Tt.U8_RGBA:case Tt.U8_RGBA_NORM:case Tt.U8_RGBA_SRGB:{var o=r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r);return n&&o.set(new Uint8Array(n)),o}case Tt.S16_R:case Tt.S16_RG:case Tt.S16_RG_NORM:case Tt.S16_RGB_NORM:case Tt.S16_RGBA:case Tt.S16_RGBA_NORM:{var s=r instanceof ArrayBuffer?new Int16Array(r):new Int16Array(t?r/2:r);return n&&s.set(new Int16Array(n)),s}case Tt.U16_R:case Tt.U16_RGB:case Tt.U16_RGBA_5551:case Tt.U16_RGBA_NORM:case Tt.U16_RG_NORM:case Tt.U16_R_NORM:{var l=r instanceof ArrayBuffer?new Uint16Array(r):new Uint16Array(t?r/2:r);return n&&l.set(new Uint16Array(n)),l}case Tt.S32_R:{var f=r instanceof ArrayBuffer?new Int32Array(r):new Int32Array(t?r/4:r);return n&&f.set(new Int32Array(n)),f}case Tt.U32_R:case Tt.U32_RG:{var v=r instanceof ArrayBuffer?new Uint32Array(r):new Uint32Array(t?r/4:r);return n&&v.set(new Uint32Array(n)),v}case Tt.F32_R:case Tt.F32_RG:case Tt.F32_RGB:case Tt.F32_RGBA:{var y=r instanceof ArrayBuffer?new Float32Array(r):new Float32Array(t?r/4:r);return n&&y.set(new Float32Array(n)),y}}var b=r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r);return n&&b.set(new Uint8Array(n)),b}function jD(e){var r=(e&32768)>>15,t=(e&31744)>>10,n=e&1023;return t===0?(r?-1:1)*Math.pow(2,-14)*(n/Math.pow(2,10)):t==31?n?NaN:(r?-1:1)*(1/0):(r?-1:1)*Math.pow(2,t-15)*(1+n/Math.pow(2,10))}var fh=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=e.call(this)||this;return o.id=n,o.device=i,o}return r.prototype.destroy=function(){},r}(bE.Z),HD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Bindings;var l=o.pipeline;Di(!!l);var f=o.uniformBufferBindings,v=o.storageBufferBindings,y=o.samplerBindings;s.numUniformBuffers=(f==null?void 0:f.length)||0;var b=[[],[]],T=0;if(v&&v.length)for(var M=0;M0}).map(function(Mr,br){return s.device.device.createBindGroup({layout:l.getBindGroupLayout(br),entries:Mr})}),s}return r}(fh),WD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Buffer;var l=o.usage,f=o.viewOrSize,v=!!(l&ro.MAP_READ);s.usage=AD(l),v&&(s.usage=ro.MAP_READ|ro.COPY_DST);var y=!(0,xv.Z)(f);if(s.view=(0,xv.Z)(f)?null:f,s.size=(0,xv.Z)(f)?t0(f,4):t0(f.byteLength,4),(0,xv.Z)(f))s.gpuBuffer=s.device.device.createBuffer({usage:s.usage,size:s.size,mappedAtCreation:v?y:!1});else{s.gpuBuffer=s.device.device.createBuffer({usage:s.usage,size:s.size,mappedAtCreation:!0});var b=f&&f.constructor||Float32Array;new b(s.gpuBuffer.getMappedRange()).set(f),s.gpuBuffer.unmap()}return s}return r.prototype.setSubData=function(t,n,i,o){i===void 0&&(i=0),o===void 0&&(o=0);var s=this.gpuBuffer;o=o||n.byteLength,o=Math.min(o,this.size-t);var l=n.byteOffset+i,f=l+o,v=o+3&-4;if(v!==o){var y=new Uint8Array(n.buffer.slice(l,f));n=new Uint8Array(v),n.set(y),i=0,l=0,f=v,o=v}for(var b=1024*1024*15,T=0;f-(l+T)>b;)this.device.device.queue.writeBuffer(s,t+T,n.buffer,l+T,b),T+=b;this.device.device.queue.writeBuffer(s,t+T,n.buffer,l+T,o-T)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gpuBuffer.destroy()},r}(fh),GD=function(){function e(){this.commandEncoder=null,this.gpuComputePassEncoder=null}return e.prototype.dispatchWorkgroups=function(r,t,n){this.gpuComputePassEncoder.dispatchWorkgroups(r,t,n)},e.prototype.dispatchWorkgroupsIndirect=function(r,t){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(r.gpuBuffer,t)},e.prototype.finish=function(){return this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.commandEncoder.finish()},e.prototype.beginComputePass=function(){Di(this.gpuComputePassEncoder===null),this.gpuComputePassEncoder=this.commandEncoder.beginComputePass(this.gpuComputePassDescriptor)},e.prototype.setPipeline=function(r){var t=r,n=Ad(t.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(n)},e.prototype.setBindings=function(r){var t=r;this.gpuComputePassEncoder.setBindGroup(0,t.gpuBindGroup[0])},e.prototype.pushDebugGroup=function(r){this.gpuComputePassEncoder.pushDebugGroup(r)},e.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},e.prototype.insertDebugMarker=function(r){this.gpuComputePassEncoder.insertDebugMarker(r)},e}(),XD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.ComputePipeline,s.gpuComputePipeline=null,s.descriptor=o;var l=o.program,f=l.computeStage;if(f===null)return s;var v={layout:"auto",compute:(0,wn.pi)({},f)};return s.gpuComputePipeline=s.device.device.createComputePipeline(v),s.name!==void 0&&(s.gpuComputePipeline.label=s.name),s}return r.prototype.getBindGroupLayout=function(t){return this.gpuComputePipeline.getBindGroupLayout(t)},r}(fh),$D=function(e){(0,wn.ZT)(r,e);function r(t){var n,i,o,s,l=t.id,f=t.device,v=t.descriptor,y=e.call(this,{id:l,device:f})||this;y.type=ya.InputLayout;var b=[];try{for(var T=(0,wn.XA)(v.vertexBufferDescriptors),M=T.next();!M.done;M=T.next()){var O=M.value,k=O.arrayStride,$=O.stepMode,G=O.attributes;b.push({arrayStride:k,stepMode:UD($),attributes:[]});try{for(var oe=(o=void 0,(0,wn.XA)(G)),ye=oe.next();!ye.done;ye=oe.next()){var Le=ye.value,$e=Le.shaderLocation,ut=Le.format,vt=Le.offset;b[b.length-1].attributes.push({shaderLocation:$e,format:zD(ut),offset:vt})}}catch(Rt){o={error:Rt}}finally{try{ye&&!ye.done&&(s=oe.return)&&s.call(oe)}finally{if(o)throw o.error}}}}catch(Rt){n={error:Rt}}finally{try{M&&!M.done&&(i=T.return)&&i.call(T)}finally{if(n)throw n.error}}return y.indexFormat=ND(v.indexBufferFormat),y.buffers=b,y}return r}(fh),KE=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;return s.type=ya.Program,s.vertexStage=null,s.fragmentStage=null,s.computeStage=null,s.descriptor=o,o.vertex&&(s.vertexStage=s.createShaderStage(o.vertex,"vertex")),o.fragment&&(s.fragmentStage=s.createShaderStage(o.fragment,"fragment")),o.compute&&(s.computeStage=s.createShaderStage(o.compute,"compute")),s}return r.prototype.setUniformsLegacy=function(t){},r.prototype.createShaderStage=function(t,n){var i,o,s=t.glsl,l=t.wgsl,f=t.entryPoint,v=!1,y=l;if(!y)try{y=this.device.glsl_compile(s,n,v)}catch($){throw console.error($,s),new Error("whoops")}var b=function($){if(!y.includes($))return"continue";y=y.replace("var T_".concat($,": texture_2d;"),"var T_".concat($,": texture_depth_2d;")),y=y.replace(new RegExp("textureSample\\(T_".concat($,"(.*)\\);$"),"gm"),function(G,oe){return"vec4(textureSample(T_".concat($).concat(oe,"), 0.0, 0.0, 0.0);")})};try{for(var T=(0,wn.XA)(["u_TextureFramebufferDepth"]),M=T.next();!M.done;M=T.next()){var O=M.value;b(O)}}catch($){i={error:$}}finally{try{M&&!M.done&&(o=T.return)&&o.call(T)}finally{if(i)throw i.error}}var k=this.device.device.createShaderModule({code:y});return{module:k,entryPoint:f||"main"}},r}(fh),YD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.QueryPool;var l=o.elemCount,f=o.type;return s.querySet=s.device.device.createQuerySet({type:RD(f),count:l}),s.resolveBuffer=s.device.device.createBuffer({size:l*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),s.cpuBuffer=s.device.device.createBuffer({size:l*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),s.results=null,s}return r.prototype.queryResultOcclusion=function(t){return this.results===null?null:this.results[t]!==BigInt(0)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},r}(fh),qD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=e.call(this,{id:n,device:i})||this;return o.type=ya.Readback,o}return r.prototype.readTexture=function(t,n,i,o,s,l,f,v){return f===void 0&&(f=0),(0,wn.mG)(this,void 0,void 0,function(){var y,b,T,M,O,k,$,G;return(0,wn.Jh)(this,function(oe){return y=t,b=0,T=this.getBlockInformationFromFormat(y.gpuTextureformat),M=Math.ceil(o/T.width)*T.length,O=Math.ceil(M/256)*256,k=O*s,$=this.device.createBuffer({usage:ro.STORAGE|ro.MAP_READ|ro.COPY_DST,hint:Af.STATIC,viewOrSize:k}),G=this.device.device.createCommandEncoder(),G.copyTextureToBuffer({texture:y.gpuTexture,mipLevel:0,origin:{x:n,y:i,z:Math.max(b,0)}},{buffer:$.gpuBuffer,offset:0,bytesPerRow:O},{width:o,height:s,depthOrArrayLayers:1}),this.device.device.queue.submit([G.finish()]),[2,this.readBuffer($,0,l.byteLength===k?l:null,f,k,y.format)]})})},r.prototype.readTextureSync=function(t,n,i,o,s,l,f,v){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},r.prototype.readBuffer=function(t,n,i,o,s,l,f,v){var y=this;n===void 0&&(n=0),i===void 0&&(i=null),s===void 0&&(s=0),l===void 0&&(l=Tt.U8_RGB),f===void 0&&(f=!1);var b=t,T=s||b.size,M=i||b.view,O=M&&M.constructor&&M.constructor.BYTES_PER_ELEMENT||AE(l),k=b;if(!(b.usage&ro.MAP_READ&&b.usage&ro.COPY_DST)){var $=this.device.device.createCommandEncoder();k=this.device.createBuffer({usage:ro.STORAGE|ro.MAP_READ|ro.COPY_DST,hint:Af.STATIC,viewOrSize:T}),$.copyBufferToBuffer(b.gpuBuffer,n,k.gpuBuffer,0,T),this.device.device.queue.submit([$.finish()])}return new Promise(function(G,oe){k.gpuBuffer.mapAsync(P_.READ,n,T).then(function(){var ye=k.gpuBuffer.getMappedRange(n,T),Le=M;if(f)Le===null?Le=qE(l,T,!0,ye):Le=qE(l,Le.buffer,void 0,ye);else if(Le===null)switch(O){case 1:Le=new Uint8Array(T),Le.set(new Uint8Array(ye));break;case 2:Le=y.getHalfFloatAsFloatRGBAArrayBuffer(T/2,ye);break;case 4:Le=new Float32Array(T/4),Le.set(new Float32Array(ye));break}else switch(O){case 1:Le=new Uint8Array(Le.buffer),Le.set(new Uint8Array(ye));break;case 2:Le=y.getHalfFloatAsFloatRGBAArrayBuffer(T/2,ye,M);break;case 4:var $e=M&&M.constructor||Float32Array;Le=new $e(Le.buffer),Le.set(new $e(ye));break}k.gpuBuffer.unmap(),G(Le)},function(ye){return oe(ye)})})},r.prototype.getHalfFloatAsFloatRGBAArrayBuffer=function(t,n,i){i||(i=new Float32Array(t));for(var o=new Uint16Array(n);t--;)i[t]=jD(o[t]);return i},r.prototype.getBlockInformationFromFormat=function(t){switch(t){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}},r}(fh),KD=function(){function e(r){this.device=r,this.commandEncoder=null,this.gpuRenderPassEncoder=null,this.gfxColorAttachment=[],this.gfxColorAttachmentLevel=[],this.gfxColorResolveTo=[],this.gfxColorResolveToLevel=[],this.gfxDepthStencilAttachment=null,this.gfxDepthStencilResolveTo=null,this.gpuColorAttachments=[],this.gpuDepthStencilAttachment={view:null,depthLoadOp:"load",depthStoreOp:"store",stencilLoadOp:"load",stencilStoreOp:"store"},this.gpuRenderPassDescriptor={colorAttachments:this.gpuColorAttachments,depthStencilAttachment:this.gpuDepthStencilAttachment}}return e.prototype.getTextureView=function(r,t){return Di(t1?T.resolveTarget=this.getTextureView(b,this.gfxColorResolveToLevel[v]):T.storeOp="store")}else{this.gpuColorAttachments.length=v,this.gfxColorAttachment.length=v,this.gfxColorResolveTo.length=v;break}}if(this.gfxDepthStencilAttachment=r.depthStencilAttachment,this.gfxDepthStencilResolveTo=r.depthStencilResolveTo,r.depthStencilAttachment){var O=r.depthStencilAttachment,T=this.gpuDepthStencilAttachment;T.view=O.gpuTextureView;var k=!!(Sv(O.format)&An.Depth);k?(r.depthClearValue==="load"?T.depthLoadOp="load":(T.depthLoadOp="clear",T.depthClearValue=r.depthClearValue),r.depthStencilStore||this.gfxDepthStencilResolveTo!==null?T.depthStoreOp="store":T.depthStoreOp="discard"):(T.depthLoadOp=void 0,T.depthStoreOp=void 0);var $=!!(Sv(O.format)&An.Stencil);$?(r.stencilClearValue==="load"?T.stencilLoadOp="load":(T.stencilLoadOp="clear",T.stencilClearValue=r.stencilClearValue),r.depthStencilStore||this.gfxDepthStencilResolveTo!==null?T.stencilStoreOp="store":T.stencilStoreOp="discard"):(T.stencilLoadOp=void 0,T.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=(0,Bp.Z)(r.occlusionQueryPool)?void 0:CD(r.occlusionQueryPool)},e.prototype.beginRenderPass=function(r){Di(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(r),this.gpuRenderPassEncoder=this.commandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},e.prototype.flipY=function(r,t){var n=this.device.swapChainHeight;return n-r-t},e.prototype.setViewport=function(r,t,n,i,o,s){o===void 0&&(o=0),s===void 0&&(s=1),this.gpuRenderPassEncoder.setViewport(r,this.flipY(t,i),n,i,o,s)},e.prototype.setScissorRect=function(r,t,n,i){this.gpuRenderPassEncoder.setScissorRect(r,this.flipY(t,i),n,i)},e.prototype.setPipeline=function(r){var t=r,n=Ad(t.gpuRenderPipeline);this.gpuRenderPassEncoder.setPipeline(n)},e.prototype.setVertexInput=function(r,t,n){if(r!==null){var i=r;n!==null&&this.gpuRenderPassEncoder.setIndexBuffer(Iv(n.buffer),Ad(i.indexFormat),n.offset);for(var o=0;o1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.commandEncoder.finish()},e.prototype.copyAttachment=function(r,t,n,i){Di(n.sampleCount===1);var o={texture:n.gpuTexture,mipLevel:i},s={texture:r.gpuTexture,mipLevel:t};Di(n.width>>>i===r.width>>>t),Di(n.height>>>i===r.height>>>t),Di(!!(n.usage&yl.COPY_SRC)),Di(!!(r.usage&yl.COPY_DST)),this.commandEncoder.copyTextureToTexture(o,s,[r.width,r.height,1])},e}(),QD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;return s.type=ya.RenderPipeline,s.isCreatingAsync=!1,s.gpuRenderPipeline=null,s.descriptor=o,s.device.createRenderPipelineInternal(s,!1),s}return r.prototype.getBindGroupLayout=function(t){return this.gpuRenderPipeline.getBindGroupLayout(t)},r}(fh),JD=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s,l,f=e.call(this,{id:n,device:i})||this;f.type=ya.Sampler;var v=o.lodMinClamp,y=o.mipmapFilter===Gs.NO_MIP?o.lodMinClamp:o.lodMaxClamp,b=(s=o.maxAnisotropy)!==null&&s!==void 0?s:1;return b>1&&Di(o.minFilter===vs.BILINEAR&&o.magFilter===vs.BILINEAR&&o.mipmapFilter===Gs.LINEAR),f.gpuSampler=f.device.device.createSampler({addressModeU:D_(o.addressModeU),addressModeV:D_(o.addressModeV),addressModeW:D_((l=o.addressModeW)!==null&&l!==void 0?l:o.addressModeU),lodMinClamp:v,lodMaxClamp:y,minFilter:GE(o.minFilter),magFilter:GE(o.magFilter),mipmapFilter:TD(o.mipmapFilter),compare:o.compareFunction!==void 0?f0(o.compareFunction):void 0,maxAnisotropy:b}),f}return r}(fh),h0=function(e){(0,wn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=t.skipCreate,l=t.sampleCount,f=e.call(this,{id:n,device:i})||this;f.type=ya.Texture;var v=o.format,y=o.dimension,b=o.width,T=o.height,M=o.depthOrArrayLayers,O=o.mipLevelCount,k=o.usage;return f.device.createTextureShared({format:v,dimension:y!=null?y:Hi.TEXTURE_2D,width:b,height:T,depthOrArrayLayers:M!=null?M:1,mipLevelCount:O!=null?O:1,usage:k,sampleCount:l!=null?l:1},f,s),f}return r.prototype.textureFromImageBitmapOrCanvas=function(t,n,i){for(var o=n[0].width,s=n[0].height,l={size:{width:o,height:s,depthOrArrayLayers:i},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},f=t.createTexture(l),v=0;v>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},e.prototype.queryTextureFormatSupported=function(r,t,n){if(ZD(r)){if(!this.featureTextureCompressionBC)return!1;var i=VD(r);return t%i!==0||n%i!==0?!1:this.featureTextureCompressionBC}switch(r){case Tt.U16_RGBA_NORM:return!1;case Tt.F32_RGBA:return!1}return!0},e.prototype.queryPlatformAvailable=function(){return!0},e.prototype.queryVendorInfo=function(){return this},e.prototype.queryRenderPass=function(r){var t=r;return t.descriptor},e.prototype.queryRenderTarget=function(r){var t=r;return t},e.prototype.setResourceName=function(r,t){if(r.name=t,r.type===ya.Buffer){var n=r;n.gpuBuffer.label=t}else if(r.type===ya.Texture){var n=r;n.gpuTexture.label=t,n.gpuTextureView.label=t}else if(r.type===ya.RenderTarget){var n=r;n.gpuTexture.label=t,n.gpuTextureView.label=t}else if(r.type===ya.Sampler){var n=r;n.gpuSampler.label=t}else if(r.type===ya.RenderPipeline){var n=r;n.gpuRenderPipeline!==null&&(n.gpuRenderPipeline.label=t)}},e.prototype.setResourceLeakCheck=function(r,t){},e.prototype.checkForLeaks=function(){},e.prototype.programPatched=function(r){},e.prototype.pipelineQueryReady=function(r){var t=r;return t.gpuRenderPipeline!==null},e.prototype.pipelineForceReady=function(r){var t=r;this.createRenderPipelineInternal(t,!1)},e}(),tk=function(){function e(r){this.pluginOptions=r}return e.prototype.createSwapChain=function(r){return(0,wn.mG)(this,void 0,void 0,function(){var t,n,i,o,s,l,f,v;return(0,wn.Jh)(this,function(y){switch(y.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];t=null,y.label=1;case 1:return y.trys.push([1,3,,4]),n=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:n})];case 2:return t=y.sent(),[3,4];case 3:return i=y.sent(),console.log(i),[3,4];case 4:return t===null?[2,null]:(o=["depth32float-stencil8","texture-compression-bc"],s=o.filter(function(b){return t.features.has(b)}),[4,t.requestDevice({requiredFeatures:s})]);case 5:if(l=y.sent(),l&&(f=this.pluginOptions.onContextLost,l.lost.then(function(){f&&f()})),l===null)return[2,null];if(v=r.getContext("webgpu"),!v)return[2,null];y.label=6;case 6:return y.trys.push([6,8,,9]),[4,WE(this.pluginOptions.shaderCompilerPath)];case 7:return y.sent(),[3,9];case 8:return y.sent(),[3,9];case 9:return[2,new ek(t,l,r,v,gD,Um&&new Um)]}})})},e}(),rk=ii.isPlainObject,nk=ii.isTypedArray,ik=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"destroyed",!1),(0,B.Z)(this,"uniforms",{}),this.reGl=r;var n=t.vs,i=t.fs,o=t.attributes,s=t.uniforms,l=t.primitive,f=t.count,v=t.elements,y=t.depth,b=t.cull,T=t.instances,M={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:bv.LOWER_LEFT,clipSpaceNearZ:Ev.NEGATIVE_ONE,supportMRT:!1},O={};this.options=t,s&&(this.uniforms=this.extractUniforms(s),Object.keys(s).forEach(function(G){O[G]=r.prop(G)}));var k={};Object.keys(o).forEach(function(G){k[G]=o[G].get()});var $={attributes:k,frag:om(Np(M,"frag",i,null,!1)),uniforms:O,vert:om(Np(M,"vert",n,null,!1)),colorMask:r.prop("colorMask"),lineWidth:1,blend:{enable:r.prop("blend.enable"),func:r.prop("blend.func"),equation:r.prop("blend.equation"),color:r.prop("blend.color")},stencil:{enable:r.prop("stencil.enable"),mask:r.prop("stencil.mask"),func:r.prop("stencil.func"),opFront:r.prop("stencil.opFront"),opBack:r.prop("stencil.opBack")},primitive:rO[l===void 0?R.TRIANGLES:l]};T&&($.instances=T),f?$.count=f:v&&($.elements=v.get()),this.initDepthDrawParams({depth:y},$),this.initCullDrawParams({cull:b},$),this.drawCommand=r($),this.drawParams=$}return(0,V.Z)(e,[{key:"updateAttributesAndElements",value:function(t,n){var i={};Object.keys(t).forEach(function(o){i[o]=t[o].get()}),this.drawParams.attributes=i,this.drawParams.elements=n.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(t){var n={};Object.keys(t).forEach(function(i){n[i]=t[i].get()}),this.drawParams.attributes=n,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(t){this.uniforms=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(t))}},{key:"draw",value:function(t,n){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var i=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(t.uniforms||{})),o={};Object.keys(i).forEach(function(s){var l=(0,cl.Z)(i[s]);l==="boolean"||l==="number"||Array.isArray(i[s])||i[s].BYTES_PER_ELEMENT?o[s]=i[s]:o[s]=i[s].get()}),o.blend=n?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(t),o.stencil=this.getStencilDrawParams(t),o.colorMask=this.getColorMaskDrawParams(t,n),this.drawCommand(o)}}},{key:"destroy",value:function(){var t;(t=this.drawParams)===null||t===void 0||(t=t.elements)===null||t===void 0||t.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(n){n==null||n.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(t,n){var i=t.depth;i&&(n.depth={enable:i.enable===void 0?!0:!!i.enable,mask:i.mask===void 0?!0:!!i.mask,func:oO[i.func||R.LESS],range:i.range||[0,1]})}},{key:"getBlendDrawParams",value:function(t){var n=t.blend,i=n||{},o=i.enable,s=i.func,l=i.equation,f=i.color,v=f===void 0?[0,0,0,0]:f;return{enable:!!o,func:{srcRGB:qg[s&&s.srcRGB||R.SRC_ALPHA],srcAlpha:qg[s&&s.srcAlpha||R.SRC_ALPHA],dstRGB:qg[s&&s.dstRGB||R.ONE_MINUS_SRC_ALPHA],dstAlpha:qg[s&&s.dstAlpha||R.ONE_MINUS_SRC_ALPHA]},equation:{rgb:xE[l&&l.rgb||R.FUNC_ADD],alpha:xE[l&&l.alpha||R.FUNC_ADD]},color:v}}},{key:"getStencilDrawParams",value:function(t){var n=t.stencil,i=n||{},o=i.enable,s=i.mask,l=s===void 0?-1:s,f=i.func,v=f===void 0?{cmp:R.ALWAYS,ref:0,mask:-1}:f,y=i.opFront,b=y===void 0?{fail:R.KEEP,zfail:R.KEEP,zpass:R.KEEP}:y,T=i.opBack,M=T===void 0?{fail:R.KEEP,zfail:R.KEEP,zpass:R.KEEP}:T;return{enable:!!o,mask:l,func:(0,H.Z)((0,H.Z)({},v),{},{cmp:sO[v.cmp]}),opFront:{fail:yv[b.fail],zfail:yv[b.zfail],zpass:yv[b.zpass]},opBack:{fail:yv[M.fail],zfail:yv[M.zfail],zpass:yv[M.zpass]}}}},{key:"getColorMaskDrawParams",value:function(t,n){var i=t.stencil,o=i!=null&&i.enable&&i.opFront&&!n?[!1,!1,!1,!1]:[!0,!0,!0,!0];return o}},{key:"initCullDrawParams",value:function(t,n){var i=t.cull;if(i){var o=i.enable,s=i.face,l=s===void 0?R.BACK:s;n.cull={enable:!!o,face:uO[l]}}}},{key:"extractUniforms",value:function(t){var n=this,i={};return Object.keys(t).forEach(function(o){n.extractUniformsRecursively(o,t[o],i,"")}),i}},{key:"extractUniformsRecursively",value:function(t,n,i,o){var s=this;if(n===null||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&typeof n[0]=="number"||nk(n)||n===""||"resize"in n){i["".concat(o&&o+".").concat(t)]=n;return}rk(n)&&Object.keys(n).forEach(function(l){s.extractUniformsRecursively(l,n[l],i,"".concat(o&&o+".").concat(t))}),Array.isArray(n)&&n.forEach(function(l,f){Object.keys(l).forEach(function(v){s.extractUniformsRecursively(v,l[v],i,"".concat(o&&o+".").concat(t,"[").concat(f,"]"))})})}}]),e}(),ak=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"isDestroy",!1);var n=t.data,i=t.type,o=i===void 0?R.UNSIGNED_BYTE:i,s=t.width,l=t.height,f=t.flipY,v=f===void 0?!1:f,y=t.format,b=y===void 0?R.RGBA:y,T=t.mipmap,M=T===void 0?!1:T,O=t.wrapS,k=O===void 0?R.CLAMP_TO_EDGE:O,$=t.wrapT,G=$===void 0?R.CLAMP_TO_EDGE:$,oe=t.aniso,ye=oe===void 0?0:oe,Le=t.alignment,$e=Le===void 0?1:Le,ut=t.premultiplyAlpha,vt=ut===void 0?!1:ut,Rt=t.mag,Jt=Rt===void 0?R.NEAREST:Rt,Mr=t.min,br=Mr===void 0?R.NEAREST:Mr,pn=t.colorSpace,kn=pn===void 0?R.BROWSER_DEFAULT_WEBGL:pn,Pi=t.x,xa=Pi===void 0?0:Pi,is=t.y,_s=is===void 0?0:is,as=t.copy,lu=as===void 0?!1:as;this.width=s,this.height=l;var Ac={width:s,height:l,type:S_[o],format:nO[b],wrapS:yE[k],wrapT:yE[G],mag:_E[Jt],min:_E[br],alignment:$e,flipY:v,colorSpace:aO[kn],premultiplyAlpha:vt,aniso:ye,x:xa,y:_s,copy:lu};n&&(Ac.data=n),typeof M=="number"?Ac.mipmap=iO[M]:typeof M=="boolean"&&(Ac.mipmap=M),this.texture=r.texture(Ac)}return(0,V.Z)(e,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(t)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(t){var n=t.width,i=t.height;this.texture.resize(n,i),this.width=n,this.height=i}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var t;(t=this.texture)===null||t===void 0||t.destroy()}this.isDestroy=!0}}]),e}(),QE,JE,ok=(QE=(0,gt.b2)(),QE(JE=function(){function e(){var r=this;(0,q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"createModel",function(t){return new ik(r.gl,t)}),(0,B.Z)(this,"createAttribute",function(t){return new tO(r.gl,t)}),(0,B.Z)(this,"createBuffer",function(t){return new lO(r.gl,t)}),(0,B.Z)(this,"createElements",function(t){return new cO(r.gl,t)}),(0,B.Z)(this,"createTexture2D",function(t){return new ak(r.gl,t)}),(0,B.Z)(this,"createFramebuffer",function(t){return new fO(r.gl,t)}),(0,B.Z)(this,"useFramebuffer",function(t,n){r.gl({framebuffer:t?t.get():null})(n)}),(0,B.Z)(this,"clear",function(t){var n,i=t.color,o=t.depth,s=t.stencil,l=t.framebuffer,f=l===void 0?null:l,v={color:i,depth:o,stencil:s};v.framebuffer=f===null?f:f.get(),(n=r.gl)===null||n===void 0||n.clear(v)}),(0,B.Z)(this,"viewport",function(t){var n=t.x,i=t.y,o=t.width,s=t.height;r.gl._gl.viewport(n,i,o,s),r.width=o,r.height=s,r.gl._refresh()}),(0,B.Z)(this,"readPixels",function(t){var n=t.framebuffer,i=t.x,o=t.y,s=t.width,l=t.height,f={x:i,y:o,width:s,height:l};return n&&(f.framebuffer=n.get()),r.gl.read(f)}),(0,B.Z)(this,"getViewportSize",function(){return{width:r.gl._gl.drawingBufferWidth,height:r.gl._gl.drawingBufferHeight}}),(0,B.Z)(this,"getContainer",function(){var t;return(t=r.canvas)===null||t===void 0?void 0:t.parentElement}),(0,B.Z)(this,"getCanvas",function(){return r.canvas}),(0,B.Z)(this,"getGLContext",function(){return r.gl._gl}),(0,B.Z)(this,"destroy",function(){var t;r.canvas=null,(t=r.gl)===null||t===void 0||(t=t._gl)===null||t===void 0||(t=t.getExtension("WEBGL_lose_context"))===null||t===void 0||t.loseContext(),r.gl.destroy(),r.gl=null})}return(0,V.Z)(e,[{key:"init",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o,s){var l=this;return me().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.canvas=i,!s){v.next=5;break}this.gl=s,v.next=8;break;case 5:return v.next=7,new Promise(function(y,b){eO()({canvas:l.canvas,attributes:{alpha:!0,antialias:o.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:o.preserveDrawingBuffer,stencil:o.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:function(M,O){(M||!O)&&b(M),y(O)}})});case 7:this.gl=v.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return v.stop()}},n,this)}));function t(n,i,o){return r.apply(this,arguments)}return t}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(t){return!!this.getGLContext().getExtension(t)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var t=this.getGLContext();t.disable(t.CULL_FACE)}},{key:"setDirty",value:function(t){this.isDirty=t}},{key:"getDirty",value:function(){return this.isDirty}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),e}())||JE),sk=function(){function e(r,t){(0,q.Z)(this,e);var n=t.buffer,i=t.offset,o=t.stride,s=t.normalized,l=t.size,f=t.divisor,v=t.shaderLocation;this.buffer=n,this.attribute={shaderLocation:v,buffer:n.get(),offset:i||0,stride:o||0,normalized:s||!1,divisor:f||0},l&&(this.attribute.size=l)}return(0,V.Z)(e,[{key:"get",value:function(){return this.buffer}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),e}(),zp,Yh,Ov,zm,Zm,hh,p0,wd,Cu,d0=(zp={},(0,B.Z)(zp,R.FLOAT,Float32Array),(0,B.Z)(zp,R.UNSIGNED_BYTE,Uint8Array),(0,B.Z)(zp,R.SHORT,Int16Array),(0,B.Z)(zp,R.UNSIGNED_SHORT,Uint16Array),(0,B.Z)(zp,R.INT,Int32Array),(0,B.Z)(zp,R.UNSIGNED_INT,Uint32Array),zp),uk=(Yh={},(0,B.Z)(Yh,R.POINTS,ms.POINTS),(0,B.Z)(Yh,R.LINES,ms.LINES),(0,B.Z)(Yh,R.LINE_LOOP,ms.LINES),(0,B.Z)(Yh,R.LINE_STRIP,ms.LINE_STRIP),(0,B.Z)(Yh,R.TRIANGLES,ms.TRIANGLES),(0,B.Z)(Yh,R.TRIANGLE_FAN,ms.TRIANGLES),(0,B.Z)(Yh,R.TRIANGLE_STRIP,ms.TRIANGLE_STRIP),Yh),lk=(Ov={},(0,B.Z)(Ov,1,Tt.F32_R),(0,B.Z)(Ov,2,Tt.F32_RG),(0,B.Z)(Ov,3,Tt.F32_RGB),(0,B.Z)(Ov,4,Tt.F32_RGBA),Ov),ck=(zm={},(0,B.Z)(zm,R.STATIC_DRAW,Af.STATIC),(0,B.Z)(zm,R.DYNAMIC_DRAW,Af.DYNAMIC),(0,B.Z)(zm,R.STREAM_DRAW,Af.DYNAMIC),zm),e2=(Zm={},(0,B.Z)(Zm,R.REPEAT,gl.REPEAT),(0,B.Z)(Zm,R.CLAMP_TO_EDGE,gl.CLAMP_TO_EDGE),(0,B.Z)(Zm,R.MIRRORED_REPEAT,gl.MIRRORED_REPEAT),Zm),fk=(hh={},(0,B.Z)(hh,R.NEVER,_a.NEVER),(0,B.Z)(hh,R.ALWAYS,_a.ALWAYS),(0,B.Z)(hh,R.LESS,_a.LESS),(0,B.Z)(hh,R.LEQUAL,_a.LEQUAL),(0,B.Z)(hh,R.GREATER,_a.GREATER),(0,B.Z)(hh,R.GEQUAL,_a.GEQUAL),(0,B.Z)(hh,R.EQUAL,_a.EQUAL),(0,B.Z)(hh,R.NOTEQUAL,_a.NOTEQUAL),hh),hk=(p0={},(0,B.Z)(p0,R.FRONT,Wl.FRONT),(0,B.Z)(p0,R.BACK,Wl.BACK),p0),t2=(wd={},(0,B.Z)(wd,R.FUNC_ADD,Tu.ADD),(0,B.Z)(wd,R.MIN_EXT,Tu.MIN),(0,B.Z)(wd,R.MAX_EXT,Tu.MAX),(0,B.Z)(wd,R.FUNC_SUBTRACT,Tu.SUBSTRACT),(0,B.Z)(wd,R.FUNC_REVERSE_SUBTRACT,Tu.REVERSE_SUBSTRACT),wd),v0=(Cu={},(0,B.Z)(Cu,R.ZERO,ua.ZERO),(0,B.Z)(Cu,R.ONE,ua.ONE),(0,B.Z)(Cu,R.SRC_COLOR,ua.SRC),(0,B.Z)(Cu,R.ONE_MINUS_SRC_COLOR,ua.ONE_MINUS_SRC),(0,B.Z)(Cu,R.SRC_ALPHA,ua.SRC_ALPHA),(0,B.Z)(Cu,R.ONE_MINUS_SRC_ALPHA,ua.ONE_MINUS_SRC_ALPHA),(0,B.Z)(Cu,R.DST_COLOR,ua.DST),(0,B.Z)(Cu,R.ONE_MINUS_DST_COLOR,ua.ONE_MINUS_DST),(0,B.Z)(Cu,R.DST_ALPHA,ua.DST_ALPHA),(0,B.Z)(Cu,R.ONE_MINUS_DST_ALPHA,ua.ONE_MINUS_DST_ALPHA),(0,B.Z)(Cu,R.CONSTANT_COLOR,ua.CONST),(0,B.Z)(Cu,R.ONE_MINUS_CONSTANT_COLOR,ua.ONE_MINUS_CONSTANT),(0,B.Z)(Cu,R.CONSTANT_ALPHA,ua.CONST),(0,B.Z)(Cu,R.ONE_MINUS_CONSTANT_ALPHA,ua.ONE_MINUS_CONSTANT),(0,B.Z)(Cu,R.SRC_ALPHA_SATURATE,ua.SRC_ALPHA_SATURATE),Cu),pk={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function m0(e){return Object.prototype.toString.call(e)in pk}var dk=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"isDestroyed",!1);var n=t.data,i=t.usage,o=t.type,s=t.isUBO,l;m0(n)?l=n:l=new d0[this.type||R.FLOAT](n),this.type=o,this.size=l.byteLength,this.buffer=r.createBuffer({viewOrSize:l,usage:s?ro.UNIFORM:ro.VERTEX,hint:ck[i||R.STATIC_DRAW]})}return(0,V.Z)(e,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(t){var n=t.data,i=t.offset,o;m0(n)?o=n:o=new d0[this.type||R.FLOAT](n),this.buffer.setSubData(i,new Uint8Array(o.buffer))}}]),e}(),vk=function(){function e(r,t){(0,q.Z)(this,e);var n=t.data,i=t.type,o=t.count,s=o===void 0?0:o,l;m0(n)?l=n:l=new d0[this.type||R.UNSIGNED_INT](n),this.type=i,this.count=s,this.indexBuffer=r.createBuffer({viewOrSize:l,usage:ro.INDEX})}return(0,V.Z)(e,[{key:"get",value:function(){return this.indexBuffer}},{key:"subData",value:function(t){var n=t.data,i;m0(n)?i=n:i=new d0[this.type||R.UNSIGNED_INT](n),this.indexBuffer.setSubData(0,new Uint8Array(i.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),e}();function mk(e){return!1}var gk=function(){function e(r,t){(0,q.Z)(this,e),(0,B.Z)(this,"isDestroy",!1);var n=t.data,i=t.type,o=i===void 0?R.UNSIGNED_BYTE:i,s=t.width,l=t.height,f=t.flipY,v=f===void 0?!1:f,y=t.format,b=y===void 0?R.RGBA:y,T=t.wrapS,M=T===void 0?R.CLAMP_TO_EDGE:T,O=t.wrapT,k=O===void 0?R.CLAMP_TO_EDGE:O,$=t.alignment,G=$===void 0?1:$;this.width=s,this.height=l;var oe=Tt.U8_RGBA_RT;if(o===R.UNSIGNED_BYTE&&b===R.RGBA)oe=Tt.U8_RGBA_RT;else if(b===R.LUMINANCE&&o===R.FLOAT)oe=Tt.F32_LUMINANCE;else if(b===R.LUMINANCE&&o===R.UNSIGNED_BYTE)oe=Tt.U8_LUMINANCE;else throw new Error("create texture error, type: ".concat(o,", format: ").concat(b));this.texture=r.createTexture({format:oe,width:s,height:l,usage:Ec.SAMPLED,pixelStore:{unpackFlipY:v,packAlignment:G}}),n&&this.texture.setImageData([n]),this.sampler=r.createSampler({addressModeU:e2[M],addressModeV:e2[k],minFilter:vs.POINT,magFilter:vs.BILINEAR,mipmapFilter:Gs.NO_MIP,lodMinClamp:0,lodMaxClamp:0})}return(0,V.Z)(e,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(t){var n=t.data;this.texture.setImageData([n])}},{key:"bind",value:function(){}},{key:"resize",value:function(t){var n=t.width,i=t.height;this.width=n,this.height=i}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var t;(t=this.texture)===null||t===void 0||t.destroy()}this.isDestroy=!0}}]),e}(),_k=function(){function e(r,t){(0,q.Z)(this,e),this.device=r;var n=t.width,i=t.height,o=t.color;mk(o)?(this.renderTarget=r.createRenderTargetFromTexture(o.get()),this.width=o.width,this.height=o.height):n&&i&&(this.renderTarget=r.createRenderTarget({format:Tt.U8_RGBA_RT,width:n,height:i}),this.width=n,this.height=i)}return(0,V.Z)(e,[{key:"get",value:function(){return this.renderTarget}},{key:"destroy",value:function(){this.renderTarget.destroy()}},{key:"resize",value:function(t){var n=t.width,i=t.height;(this.width!==n||this.height!==i)&&(this.renderTarget&&this.renderTarget.destroy(),this.renderTarget=this.device.createRenderTarget({format:Tt.U8_RGBA_RT,width:n,height:i}),this.width=n,this.height=i)}}]),e}(),yk=ii.isPlainObject,xk=ii.isTypedArray,bk=function(){function e(r,t){var n=this;(0,q.Z)(this,e),(0,B.Z)(this,"destroyed",!1),(0,B.Z)(this,"uniforms",{}),(0,B.Z)(this,"vertexBuffers",[]),this.device=r,this.options=t;var i=t.vs,o=t.fs,s=t.attributes,l=t.uniforms,f=t.count,v=t.elements;this.options=t;var y=r.createProgram({vertex:{glsl:i},fragment:{glsl:o}});this.program=y,l&&(this.uniforms=this.extractUniforms(l));var b=[],T=0;Object.keys(s).forEach(function(O){var k=s[O],$=k.get();n.vertexBuffers.push($.get());var G=k.attribute,oe=G.offset,ye=oe===void 0?0:oe,Le=G.stride,$e=Le===void 0?0:Le,ut=G.size,vt=ut===void 0?1:ut,Rt=G.divisor,Jt=Rt===void 0?0:Rt,Mr=G.shaderLocation,br=Mr===void 0?0:Mr;b.push({arrayStride:$e||vt*4,stepMode:Sd.VERTEX,attributes:[{format:lk[vt],shaderLocation:br,offset:ye,divisor:Jt}]}),T=$.size/vt}),f||(this.options.count=T),v&&(this.indexBuffer=v.get());var M=r.createInputLayout({vertexBufferDescriptors:b,indexBufferFormat:v?Tt.U32_R:null,program:y});this.inputLayout=M,this.pipeline=this.createPipeline(t)}return(0,V.Z)(e,[{key:"createPipeline",value:function(t){var n=t.primitive,i=n===void 0?R.TRIANGLES:n,o=t.depth,s=t.cull,l=t.blend,f=this.initDepthDrawParams({depth:o}),v=!!(f&&f.enable),y=this.initCullDrawParams({cull:s}),b=!!(y&&y.enable),T=this.getBlendDrawParams({blend:l}),M=!!(T&&T.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:uk[i],colorAttachmentFormats:[Tt.U8_RGBA_RT],depthStencilAttachmentFormat:Tt.D24_S8,megaStateDescriptor:{attachmentsState:[{channelWriteMask:wu.ALL,rgbBlendState:{blendMode:M&&T.equation.rgb||Tu.ADD,blendSrcFactor:M&&T.func.srcRGB||ua.SRC_ALPHA,blendDstFactor:M&&T.func.dstRGB||ua.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:M&&T.equation.alpha||Tu.ADD,blendSrcFactor:M&&T.func.srcAlpha||ua.ONE,blendDstFactor:M&&T.func.dstAlpha||ua.ONE_MINUS_SRC_ALPHA}}],blendConstant:A_,depthWrite:v,depthCompare:v&&f.func||_a.LESS,cullMode:b&&y.face||Wl.NONE,stencilWrite:!1}})}},{key:"updateAttributesAndElements",value:function(){}},{key:"updateAttributes",value:function(){}},{key:"addUniforms",value:function(t){this.uniforms=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(t))}},{key:"draw",value:function(t){var n=(0,H.Z)((0,H.Z)({},this.options),t),i=n.count,o=i===void 0?0:i,s=n.instances,l=n.elements,f=n.uniforms,v=f===void 0?{}:f,y=n.uniformBuffers,b=n.textures;this.uniforms=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(v));var T=this.device,M=T.width,O=T.height,k=this.device.renderPass;if(this.pipeline=this.createPipeline(n),k.setPipeline(this.pipeline),k.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(G){return{buffer:G}}),l?{buffer:this.indexBuffer,offset:0}:null),k.setViewport(0,0,M,O),y&&(this.bindings=this.device.createBindings({pipeline:this.pipeline,uniformBufferBindings:y.map(function(G,oe){var ye=G;return{binding:oe,buffer:ye.get(),size:ye.size}}),samplerBindings:b==null?void 0:b.map(function(G){return{texture:G.texture,sampler:G.sampler}})})),this.bindings&&(k.setBindings(this.bindings),this.program.setUniformsLegacy(this.uniforms)),l){var $=l.count;$===0?k.draw(o,s):k.drawIndexed($,s)}else k.draw(o,s)}},{key:"destroy",value:function(){var t,n,i;this.program.destroy(),(t=this.vertexBuffers)===null||t===void 0||t.forEach(function(o){return o.destroy()}),(n=this.indexBuffer)===null||n===void 0||n.destroy(),(i=this.bindings)===null||i===void 0||i.destroy(),this.inputLayout.destroy(),this.pipeline.destroy(),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(t){var n=t.depth;if(n)return{enable:n.enable===void 0?!0:!!n.enable,mask:n.mask===void 0?!0:!!n.mask,func:fk[n.func||R.LESS],range:n.range||[0,1]}}},{key:"getBlendDrawParams",value:function(t){var n=t.blend,i=n||{},o=i.enable,s=i.func,l=i.equation,f=i.color,v=f===void 0?[0,0,0,0]:f;return{enable:!!o,func:{srcRGB:v0[s&&s.srcRGB||R.SRC_ALPHA],srcAlpha:v0[s&&s.srcAlpha||R.SRC_ALPHA],dstRGB:v0[s&&s.dstRGB||R.ONE_MINUS_SRC_ALPHA],dstAlpha:v0[s&&s.dstAlpha||R.ONE_MINUS_SRC_ALPHA]},equation:{rgb:t2[l&&l.rgb||R.FUNC_ADD],alpha:t2[l&&l.alpha||R.FUNC_ADD]},color:v}}},{key:"initCullDrawParams",value:function(t){var n=t.cull;if(n){var i=n.enable,o=n.face,s=o===void 0?R.BACK:o;return{enable:!!i,face:hk[s]}}}},{key:"extractUniforms",value:function(t){var n=this,i={};return Object.keys(t).forEach(function(o){n.extractUniformsRecursively(o,t[o],i,"")}),i}},{key:"extractUniformsRecursively",value:function(t,n,i,o){var s=this;if(n===null||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&typeof n[0]=="number"||xk(n)||n===""||"resize"in n){i["".concat(o&&o+".").concat(t)]=n;return}yk(n)&&Object.keys(n).forEach(function(l){s.extractUniformsRecursively(l,n[l],i,"".concat(o&&o+".").concat(t))}),Array.isArray(n)&&n.forEach(function(l,f){Object.keys(l).forEach(function(v){s.extractUniformsRecursively(v,l[v],i,"".concat(o&&o+".").concat(t,"[").concat(f,"]"))})})}}]),e}();function Ek(e){return typeof WebGL2RenderingContext!="undefined"&&e instanceof WebGL2RenderingContext?!0:!!(e&&e._version===2)}var r2,n2,Sk=(r2=(0,gt.b2)(),r2(n2=function(){function e(){var r=this;(0,q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"createModel",function(t){return new bk(r.device,t)}),(0,B.Z)(this,"createAttribute",function(t){return new sk(r.device,t)}),(0,B.Z)(this,"createBuffer",function(t){return new dk(r.device,t)}),(0,B.Z)(this,"createElements",function(t){return new vk(r.device,t)}),(0,B.Z)(this,"createTexture2D",function(t){return new gk(r.device,t)}),(0,B.Z)(this,"createFramebuffer",function(t){return new _k(r.device,t)}),(0,B.Z)(this,"useFramebuffer",function(){}),(0,B.Z)(this,"clear",function(){}),(0,B.Z)(this,"viewport",function(t){var n=t.width,i=t.height;r.width=n,r.height=i,r.device.width=n,r.device.height=i}),(0,B.Z)(this,"readPixels",function(){return new Uint8Array}),(0,B.Z)(this,"getViewportSize",function(){return{width:r.device.width,height:r.device.height}}),(0,B.Z)(this,"getContainer",function(){var t;return(t=r.canvas)===null||t===void 0?void 0:t.parentElement}),(0,B.Z)(this,"getCanvas",function(){return r.canvas}),(0,B.Z)(this,"getGLContext",function(){return r.device.gl}),(0,B.Z)(this,"destroy",function(){var t;r.canvas=null,(t=r.uniformBuffers)===null||t===void 0||t.forEach(function(n){n.destroy()}),r.device.destroy()})}return(0,V.Z)(e,[{key:"init",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o){var s,l,f,v,y,b;return me().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s=o.enableWebGPU,l=o.shaderCompilerPath,this.canvas=i,f=s?new tk({shaderCompilerPath:l}):new hD({targets:["webgl2","webgl1"],onContextLost:function(k){console.warn("context lost",k)},onContextCreationError:function(k){console.warn("context creation error",k)},onContextRestored:function(k){console.warn("context restored",k)}}),M.next=5,f.createSwapChain(i);case 5:v=M.sent,v.configureSwapChain(i.width,i.height),this.device=v.getDevice(),this.swapChain=v,y=this.device.gl,this.extensionObject={OES_texture_float:!Ek(y)&&this.device.OES_texture_float},b=this.device.createTexture({format:Tt.U8_RGBA_RT,width:i.width,height:i.height,usage:Ec.RENDER_TARGET}),this.renderTarget=this.device.createRenderTargetFromTexture(b),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:Tt.D24_S8,width:i.width,height:i.height,usage:Ec.RENDER_TARGET}));case 14:case"end":return M.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"beginFrame",value:function(){var t=this.swapChain.getOnscreenTexture();this.renderPass=this.device.createRenderPass({colorAttachment:[this.renderTarget],colorResolveTo:[t],colorClearColor:[A_],depthStencilAttachment:this.mainDepthRT,depthClearValue:1}),this.device.renderPass=this.renderPass}},{key:"endFrame",value:function(){this.device.submitPass(this.renderPass)}},{key:"getPointSizeRange",value:function(){var t=this.device.gl;return t.getParameter(t.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(t){return!!this.getGLContext().getExtension(t)}},{key:"setState",value:function(){}},{key:"setBaseState",value:function(){}},{key:"setCustomLayerDefaults",value:function(){}},{key:"setDirty",value:function(t){this.isDirty=t}},{key:"getDirty",value:function(){return this.isDirty}}]),e}())||n2);function Ak(e){var r=Tk();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function Tk(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var k_=["selectstart","selecting","selectend"],wk=function(e){(0,De.Z)(t,e);var r=Ak(t);function t(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Ie.Z)(i),"isEnable",!1),(0,B.Z)((0,Ie.Z)(i),"onDragStart",function(s){i.box.style.display="block",i.startEvent=i.endEvent=s,i.syncBoxBound(),i.emit("selectstart",i.getLngLatBox(),i.startEvent,i.endEvent)}),(0,B.Z)((0,Ie.Z)(i),"onDragging",function(s){i.endEvent=s,i.syncBoxBound(),i.emit("selecting",i.getLngLatBox(),i.startEvent,i.endEvent)}),(0,B.Z)((0,Ie.Z)(i),"onDragEnd",function(s){i.endEvent=s,i.box.style.display="none",i.emit("selectend",i.getLngLatBox(),i.startEvent,i.endEvent)}),i.scene=n,i.options=o,i}return(0,V.Z)(t,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var i=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var o=Ji("div",void 0,this.container);o.classList.add("l7-select-box"),i&&o.classList.add(i),o.style.display="none",this.box=o}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var i=this.startEvent,o=i.x,s=i.y,l=this.endEvent,f=l.x,v=l.y,y=Math.min(o,f),b=Math.min(s,v),T=Math.abs(o-f),M=Math.abs(s-v);this.box.style.top="".concat(b,"px"),this.box.style.left="".concat(y,"px"),this.box.style.width="".concat(T,"px"),this.box.style.height="".concat(M,"px")}},{key:"getLngLatBox",value:function(){var i=this.startEvent.lngLat,o=i.lng,s=i.lat,l=this.endEvent.lngLat,f=l.lng,v=l.lat;return op([[o,s],[f,v]])}}]),t}(no.EventEmitter),Ck=function(){function e(r){(0,q.Z)(this,e);var t=r.id,n=r.map,i=r.canvas,o=r.hasBaseMap,s=r.renderer,l=s===void 0?"regl":s,f=xA();this.container=f,n.setContainer(f,t,i,o),f.bind(tt.IRendererService).to(l==="regl"?ok:Sk).inSingletonScope(),this.sceneService=f.get(tt.ISceneService),this.mapService=f.get(tt.IMapService),this.iconService=f.get(tt.IIconService),this.fontService=f.get(tt.IFontService),this.controlService=f.get(tt.IControlService),this.layerService=f.get(tt.ILayerService),this.debugService=f.get(tt.IDebugService),this.debugService.setEnable(r.debug),this.markerService=f.get(tt.IMarkerService),this.interactionService=f.get(tt.IInteractionService),this.popupService=f.get(tt.IPopupService),this.boxSelect=new wk(this,{}),this.initComponent(t),this.sceneService.init(r),this.initControl()}return(0,V.Z)(e,[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var r=(0,Ct.Z)(me().mark(function n(i){return me().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",this.sceneService.exportPng(i));case 1:case"end":return s.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"exportMap",value:function(){var r=(0,Ct.Z)(me().mark(function n(i){return me().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",this.sceneService.exportPng(i));case 1:case"end":return s.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"registerRenderService",value:function(t){var n=this;if(this.sceneService.loaded){var i=new t(this);i.init()}else this.on("loaded",function(){var o=new t(n);o.init()})}},{key:"setBgColor",value:function(t){this.mapService.setBgColor(t)}},{key:"addLayer",value:function(t){var n=this,i=lm(this.container);if(t.setContainer(i,this.container),this.sceneService.addLayer(t),t.inited){var o=this.initMask(t);this.addMask(o,t.id)}else t.on("inited",function(){var s=n.initMask(t);n.addMask(s,t.id)})}},{key:"initMask",value:function(t){var n=t.getLayerConfig(),i=n.mask,o=n.maskfence,s=n.maskColor,l=s===void 0?"#000":s,f=n.maskOpacity,v=f===void 0?0:f;if(!(!i||!o)){var y=new ix().source(o).shape("fill").style({color:l,opacity:v});return y}}},{key:"addMask",value:function(t,n){if(t){var i=this.getLayer(n);if(i){var o=lm(this.container);t.setContainer(o,this.container),i.addMaskLayer(t),this.sceneService.addMask(t)}else console.warn("parent layer not find!")}}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(t){return this.layerService.getLayer(t)}},{key:"getLayerByName",value:function(t){return this.layerService.getLayerByName(t)}},{key:"removeLayer",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.layerService.remove(i,o);case 2:case"end":return l.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"removeAllLayer",value:function(){var r=(0,Ct.Z)(me().mark(function n(){return me().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.layerService.removeAllLayers();case 2:case"end":return o.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(t){this.layerService.setEnableRender(t)}},{key:"addIconFont",value:function(t,n){this.fontService.addIconFont(t,n)}},{key:"addIconFonts",value:function(t){var n=this;t.forEach(function(i){var o=(0,yn.Z)(i,2),s=o[0],l=o[1];n.fontService.addIconFont(s,l)})}},{key:"addFontFace",value:function(t,n){var i=this;this.fontService.once("fontloaded",function(o){i.emit("fontloaded",o)}),this.fontService.addFontFace(t,n)}},{key:"addImage",value:function(){var r=(0,Ct.Z)(me().mark(function n(i,o){return me().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.iconService.addImage(i,o);case 2:case"end":return l.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"hasImage",value:function(t){return this.iconService.hasImage(t)}},{key:"removeImage",value:function(t){this.iconService.removeImage(t)}},{key:"addIconFontGlyphs",value:function(t,n){this.fontService.addIconGlyphs(n)}},{key:"addControl",value:function(t){this.controlService.addControl(t,this.container)}},{key:"removeControl",value:function(t){this.controlService.removeControl(t)}},{key:"getControlByName",value:function(t){return this.controlService.getControlByName(t)}},{key:"addMarker",value:function(t){this.markerService.addMarker(t)}},{key:"addMarkerLayer",value:function(t){this.markerService.addMarkerLayer(t)}},{key:"removeMarkerLayer",value:function(t){this.markerService.removeMarkerLayer(t)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(t){this.popupService.addPopup(t)}},{key:"removePopup",value:function(t){this.popupService.removePopup(t)}},{key:"on",value:function(t,n){if(k_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.on(t,n)}else gg.includes(t)?this.sceneService.on(t,n):this.mapService.on(t,n)}},{key:"once",value:function(t,n){if(k_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.once(t,n)}else gg.includes(t)?this.sceneService.once(t,n):this.mapService.once(t,n)}},{key:"emit",value:function(t,n){gg.indexOf(t)===-1?this.mapService.on(t,n):this.sceneService.emit(t,n)}},{key:"off",value:function(t,n){if(k_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.off(t,n)}else gg.includes(t)?this.sceneService.off(t,n):this.mapService.off(t,n)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(t){return this.mapService.getCenter(t)}},{key:"setCenter",value:function(t,n){return this.mapService.setCenter(t,n)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(t){return this.mapService.setPitch(t)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(t){this.mapService.setRotation(t)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(t){this.mapService.panTo(t)}},{key:"panBy",value:function(t,n){this.mapService.panBy(t,n)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(t){this.mapService.setZoom(t)}},{key:"fitBounds",value:function(t,n){var i=this.sceneService.getSceneConfig(),o=i.fitBoundsOptions,s=i.animate;this.mapService.fitBounds(t,n||(0,H.Z)((0,H.Z)({},o),{},{animate:s}))}},{key:"setZoomAndCenter",value:function(t,n){this.mapService.setZoomAndCenter(t,n)}},{key:"setMapStyle",value:function(t){this.mapService.setMapStyle(t)}},{key:"setMapStatus",value:function(t){this.mapService.setMapStatus(t)}},{key:"pixelToLngLat",value:function(t){return this.mapService.pixelToLngLat(t)}},{key:"lngLatToPixel",value:function(t){return this.mapService.lngLatToPixel(t)}},{key:"containerToLngLat",value:function(t){return this.mapService.containerToLngLat(t)}},{key:"lngLatToContainer",value:function(t){return this.mapService.lngLatToContainer(t)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(t,n){this.container.bind(tt.IPostProcessingPass).to(t).whenTargetNamed(n)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),n&&this.boxSelect.once("selectend",function(){t.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(t){return Kr.REGISTERED_PROTOCOLS[t]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(t){this.controlService.init({container:Os(t)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var t=this.sceneService.getSceneConfig(),n=t.logoVisible,i=t.logoPosition;n&&this.addControl(new t1({position:i}))}}],[{key:"addProtocol",value:function(t,n){Kr.REGISTERED_PROTOCOLS[t]=n}},{key:"removeProtocol",value:function(t){delete Kr.REGISTERED_PROTOCOLS[t]}}]),e}(),ZN="2.20.5";function Vm(e){"@babel/helpers - typeof";return Vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vm(e)}function i2(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function VN(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([t,n])}},{key:"fitBounds",value:function(t,n){this.map.fitBounds(t,n)}},{key:"setMaxZoom",value:function(t){this.map.setMaxZoom(t)}},{key:"setMinZoom",value:function(t){this.map.setMinZoom(t)}},{key:"setMapStatus",value:function(t){t.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),t.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),t.dragEnable===!1&&this.map.dragPan.disable(),t.dragEnable===!0&&this.map.dragPan.enable(),t.rotateEnable===!1&&this.map.dragRotate.disable(),t.dragEnable===!0&&this.map.dragRotate.enable(),t.keyboardEnable===!1&&this.map.keyboard.disable(),t.keyboardEnable===!0&&this.map.keyboard.enable(),t.zoomEnable===!1&&this.map.scrollZoom.disable(),t.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(t,n){this.map.flyTo({zoom:t,center:n})}},{key:"setMapStyle",value:function(t){this.map.setStyle(this.getMapStyleValue(t))}},{key:"meterToCoord",value:function(t,n){return 1}},{key:"pixelToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToPixel",value:function(t){return this.map.project(t)}},{key:"containerToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToContainer",value:function(t){return this.map.project(t)}},{key:"getMapStyle",value:function(){try{var t,n=(t=this.map.getStyle().sprite)!==null&&t!==void 0?t:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(n)?n==null?void 0:n.replace(/\/\w+$/,"").replace(/sprites/,"styles"):n}catch(i){return""}}},{key:"getMapStyleConfig",value:function(){return Nk}},{key:"getMapStyleValue",value:function(t){var n;return(n=this.getMapStyleConfig()[t])!==null&&n!==void 0?n:t}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(t){for(var n,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1?i-1:0),s=1;sUk&&n?this.coordinateSystemService.setCoordinateSystem(zl.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(zl.LNGLAT)}}]),e}(),d2=Oi(Dv.prototype,"config",[l2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v2=Oi(Dv.prototype,"configService",[c2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m2=Oi(Dv.prototype,"coordinateSystemService",[f2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g2=Oi(Dv.prototype,"eventEmitter",[h2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dv))||p2);function Hm(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function g0(e,r){var t=kh.fF([],r,e);return kh.bA(t,t,1/t[3]),t}function GN(e,r){var t=e%r;return t<0?r+t:t}function XN(e,r,t){return t*r+(1-t)*e}function Cd(e,r){if(!e)throw new Error(r||"viewport-mercator-project: assertion failed.")}var wf=Math.PI,y2=wf/4,qh=wf/180,x2=180/wf,B_=512,L_=4003e4,Zk=1.5;function b2(e){return Math.pow(2,e)}function Vk(e){return Math.log2(e)}function _0(e,r){var t=(0,yn.Z)(e,2),n=t[0],i=t[1];Cd(Number.isFinite(n)&&Number.isFinite(r)),Cd(Number.isFinite(i)&&i>=-90&&i<=90,"invalid latitude"),r*=B_;var o=n*qh,s=i*qh,l=r*(o+wf)/(2*wf),f=r*(wf-Math.log(Math.tan(y2+s*.5)))/(2*wf);return[l,f]}function N_(e,r){var t=(0,yn.Z)(e,2),n=t[0],i=t[1];r*=B_;var o=n/r*(2*wf)-wf,s=2*(Math.atan(Math.exp(wf-i/r*(2*wf)))-y2);return[o*x2,s*x2]}function $N(e){var r=e.latitude;assert(Number.isFinite(r));var t=Math.cos(r*qh);return Vk(L_*t)-9}function E2(e){var r=e.latitude,t=e.longitude,n=e.zoom,i=e.scale,o=e.highPrecision,s=o===void 0?!1:o;i=i!==void 0?i:b2(n),Cd(Number.isFinite(r)&&Number.isFinite(t)&&Number.isFinite(i));var l={},f=B_*i,v=Math.cos(r*qh),y=f/360,b=y/v,T=f/L_/v;if(l.pixelsPerMeter=[T,-T,T],l.metersPerPixel=[1/T,-1/T,1/T],l.pixelsPerDegree=[y,-b,T],l.degreesPerPixel=[1/y,-1/b,1/T],s){var M=qh*Math.tan(r*qh)/v,O=y*M/2,k=f/L_*M,$=k/b*T;l.pixelsPerDegree2=[0,-O,k],l.pixelsPerMeter2=[$,0,$]}return l}function YN(e,r){var t=_slicedToArray(e,3),n=t[0],i=t[1],o=t[2],s=_slicedToArray(r,3),l=s[0],f=s[1],v=s[2],y=1,b=E2({longitude:n,latitude:i,scale:y,highPrecision:!0}),T=b.pixelsPerMeter,M=b.pixelsPerMeter2,O=_0(e,y);O[0]+=l*(T[0]+M[0]*f),O[1]+=f*(T[1]+M[1]*f);var k=N_(O,y),$=(o||0)+(v||0);return Number.isFinite(o)||Number.isFinite(v)?[k[0],k[1],$]:k}function jk(e){var r=e.height,t=e.pitch,n=e.bearing,i=e.altitude,o=e.center,s=o===void 0?null:o,l=e.flipY,f=l===void 0?!1:l,v=Hm();return ve.translate(v,v,[0,0,-i]),ve.scale(v,v,[1,1,1/r]),ve.rotateX(v,v,-t*qh),ve.rotateZ(v,v,n*qh),f&&ve.scale(v,v,[1,-1,1]),s&&ve.translate(v,v,La.negate([],s)),v}function Hk(e){var r=e.width,t=e.height,n=e.altitude,i=n===void 0?Zk:n,o=e.pitch,s=o===void 0?0:o,l=e.nearZMultiplier,f=l===void 0?1:l,v=e.farZMultiplier,y=v===void 0?1:v,b=s*qh,T=Math.atan(.5/i),M=Math.sin(T)*i/Math.sin(Math.PI/2-b-T),O=Math.cos(Math.PI/2-b)*M+i;return{fov:2*Math.atan(t/2/i),aspect:r/t,focalDistance:i,near:f,far:O*y}}function Wk(e){var r=e.width,t=e.height,n=e.pitch,i=e.altitude,o=e.nearZMultiplier,s=e.farZMultiplier,l=Hk({width:r,height:t,altitude:i,pitch:n,nearZMultiplier:o,farZMultiplier:s}),f=l.fov,v=l.aspect,y=l.near,b=l.far,T=ve.perspective([],f,v,y,b);return T}function Gk(e,r){var t=(0,yn.Z)(e,3),n=t[0],i=t[1],o=t[2],s=o===void 0?0:o;return Cd(Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(s)),g0(r,[n,i,s,1])}function S2(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=(0,yn.Z)(e,3),i=n[0],o=n[1],s=n[2];if(Cd(Number.isFinite(i)&&Number.isFinite(o),"invalid pixel coordinate"),Number.isFinite(s)){var l=g0(r,[i,o,s,1]);return l}var f=g0(r,[i,o,0,1]),v=g0(r,[i,o,1,1]),y=f[2],b=v[2],T=y===b?0:((t||0)-y)/(b-y);return Or.t7([],f,v,T)}var A2=Hm(),Xk=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.width,n=r.height,i=r.viewMatrix,o=i===void 0?A2:i,s=r.projectionMatrix,l=s===void 0?A2:s;(0,q.Z)(this,e),this.width=t||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=o,this.projectionMatrix=l;var f=Hm();ve.multiply(f,f,this.projectionMatrix),ve.multiply(f,f,this.viewMatrix),this.viewProjectionMatrix=f;var v=Hm();ve.scale(v,v,[this.width/2,-this.height/2,1]),ve.translate(v,v,[1,-1,0]),ve.multiply(v,v,this.viewProjectionMatrix);var y=ve.invert(Hm(),v);if(!y)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=v,this.pixelUnprojectionMatrix=y,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,V.Z)(e,[{key:"equals",value:function(t){return t instanceof e?t.width===this.width&&t.height===this.height&&ve.equals(t.projectionMatrix,this.projectionMatrix)&&ve.equals(t.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.topLeft,o=i===void 0?!0:i,s=this.projectPosition(t),l=Gk(s,this.pixelProjectionMatrix),f=(0,yn.Z)(l,2),v=f[0],y=f[1],b=o?y:this.height-y;return t.length===2?[v,b]:[v,b,l[2]]}},{key:"unproject",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.topLeft,o=i===void 0?!0:i,s=n.targetZ,l=(0,yn.Z)(t,3),f=l[0],v=l[1],y=l[2],b=o?v:this.height-v,T=s&&s*this.pixelsPerMeter,M=S2([f,b,y],this.pixelUnprojectionMatrix,T),O=this.unprojectPosition(M),k=(0,yn.Z)(O,3),$=k[0],G=k[1],oe=k[2];return Number.isFinite(y)?[$,G,oe]:Number.isFinite(s)?[$,G,s]:[$,G]}},{key:"projectPosition",value:function(t){var n=this.projectFlat(t),i=(0,yn.Z)(n,2),o=i[0],s=i[1],l=(t[2]||0)*this.pixelsPerMeter;return[o,s,l]}},{key:"unprojectPosition",value:function(t){var n=this.unprojectFlat(t),i=(0,yn.Z)(n,2),o=i[0],s=i[1],l=(t[2]||0)/this.pixelsPerMeter;return[o,s,l]}},{key:"projectFlat",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return t}},{key:"unprojectFlat",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return t}}]),e}();function $k(e){var r=e.width,t=e.height,n=e.bounds,i=e.minExtent,o=i===void 0?0:i,s=e.maxZoom,l=s===void 0?24:s,f=e.padding,v=f===void 0?0:f,y=e.offset,b=y===void 0?[0,0]:y,T=(0,yn.Z)(n,2),M=(0,yn.Z)(T[0],2),O=M[0],k=M[1],$=(0,yn.Z)(T[1],2),G=$[0],oe=$[1];if(Number.isFinite(v)){var ye=v;v={top:ye,bottom:ye,left:ye,right:ye}}else Cd(Number.isFinite(v.top)&&Number.isFinite(v.bottom)&&Number.isFinite(v.left)&&Number.isFinite(v.right));var Le=new T2({width:r,height:t,longitude:0,latitude:0,zoom:0}),$e=Le.project([O,oe]),ut=Le.project([G,k]),vt=[Math.max(Math.abs(ut[0]-$e[0]),o),Math.max(Math.abs(ut[1]-$e[1]),o)],Rt=[r-v.left-v.right-Math.abs(b[0])*2,t-v.top-v.bottom-Math.abs(b[1])*2];Cd(Rt[0]>0&&Rt[1]>0);var Jt=Rt[0]/vt[0],Mr=Rt[1]/vt[1],br=(v.right-v.left)/2/Jt,pn=(v.bottom-v.top)/2/Mr,kn=[(ut[0]+$e[0])/2+br,(ut[1]+$e[1])/2+pn],Pi=Le.unproject(kn),xa=Le.zoom+Math.log2(Math.abs(Math.min(Jt,Mr)));return{longitude:Pi[0],latitude:Pi[1],zoom:Math.min(xa,l)}}var T2=function(e){(0,De.Z)(r,e);function r(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width,o=n.height,s=n.latitude,l=s===void 0?0:s,f=n.longitude,v=f===void 0?0:f,y=n.zoom,b=y===void 0?0:y,T=n.pitch,M=T===void 0?0:T,O=n.bearing,k=O===void 0?0:O,$=n.altitude,G=$===void 0?1.5:$,oe=n.nearZMultiplier,ye=n.farZMultiplier;(0,q.Z)(this,r),i=i||1,o=o||1;var Le=b2(b);G=Math.max(.75,G);var $e=_0([v,l],Le);$e[2]=0;var ut=Wk({width:i,height:o,pitch:M,bearing:k,altitude:G,nearZMultiplier:oe||1/o,farZMultiplier:ye||1.01}),vt=jk({height:o,center:$e,pitch:M,bearing:k,altitude:G,flipY:!0});return t=(0,et.Z)(this,(0,be.Z)(r).call(this,{width:i,height:o,viewMatrix:vt,projectionMatrix:ut})),t.latitude=l,t.longitude=v,t.zoom=b,t.pitch=M,t.bearing=k,t.altitude=G,t.scale=Le,t.center=$e,t.pixelsPerMeter=E2((0,Ie.Z)((0,Ie.Z)(t))).pixelsPerMeter[2],Object.freeze((0,Ie.Z)((0,Ie.Z)(t))),t}return(0,V.Z)(r,[{key:"projectFlat",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return _0(n,i)}},{key:"unprojectFlat",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return N_(n,i)}},{key:"getMapCenterByLngLatPosition",value:function(n){var i=n.lngLat,o=n.pos,s=S2(o,this.pixelUnprojectionMatrix),l=_0(i,this.scale),f=Or.IH([],l,Or.tk([],s)),v=Or.IH([],this.center,f);return N_(v,this.scale)}},{key:"getLocationAtPoint",value:function(n){var i=n.lngLat,o=n.pos;return this.getMapCenterByLngLatPosition({lngLat:i,pos:o})}},{key:"fitBounds",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.width,s=this.height,l=$k(Object.assign({width:o,height:s,bounds:n},i)),f=l.longitude,v=l.latitude,y=l.zoom;return new r({width:o,height:s,longitude:f,latitude:v,zoom:y})}}]),r}(Xk),Yk=function(){function e(){(0,q.Z)(this,e)}return(0,V.Z)(e,[{key:"syncWithMapCamera",value:function(t){var n=t.center,i=t.zoom,o=t.pitch,s=t.bearing,l=t.viewportHeight,f=t.viewportWidth;this.viewport=new T2({width:f,height:l,longitude:n&&n[0],latitude:n&&n[1],zoom:i,pitch:o,bearing:s})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(t,n){return this.viewport.projectFlat(t,n)}}]),e}(),qk=["id","attributionControl","style","token","rotation","mapInstance"],w2,C2;function Kk(e){var r=Qk();return function(){var n=(0,be.Z)(e),i;if(r){var o=(0,be.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function Qk(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function Jk(e,r){var t=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(t||n)&&(r||(r=document),!!r)){var i=r.head||r.getElementsByTagName("head")[0];if(!i){i=r.createElement("head");var o=r.body||r.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):r.documentElement.appendChild(i)}var s=r.createElement("style");return s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(r.createTextNode(e)),i.appendChild(s),s}}Jk(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=jm();var eF=0,R2="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",tF=(w2=(0,gt.b2)(),w2(C2=function(e){(0,De.Z)(t,e);var r=Kk(t);function t(){var n;(0,q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},s=this.lngLatToMercator(i,0),l=s.x,f=s.y;return[l-o.x,f-o.y]}},{key:"lngLatToMercator",value:function(i,o){var s=window.mapboxgl.MercatorCoordinate.fromLngLat(i,o),l=s.x,f=l===void 0?0:l,v=s.y,y=v===void 0?0:v,b=s.z,T=b===void 0?0:b;return{x:f,y,z:T}}},{key:"getModelMatrix",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},v=window.mapboxgl.MercatorCoordinate.fromLngLat(i,o),y=v.meterInMercatorCoordinateUnits(),b=ve.create();return ve.translate(b,b,La.fromValues(v.x-f.x,v.y-f.y,v.z||0-f.z)),ve.scale(b,b,La.fromValues(y*l[0],-y*l[1],y*l[2])),ve.rotateX(b,b,s[0]),ve.rotateY(b,b,s[1]),ve.rotateZ(b,b,s[2]),b}},{key:"init",value:function(){var n=(0,Ct.Z)(me().mark(function o(){var s=this,l,f,v,y,b,T,M,O,k,$,G,oe,ye;return me().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:l=this.config,f=l.id,v=f===void 0?"map":f,y=l.attributionControl,b=y===void 0?!1:y,T=l.style,M=T===void 0?"light":T,O=l.token,k=O===void 0?R2:O,$=l.rotation,G=$===void 0?0:$,oe=l.mapInstance,ye=(0,Fa.Z)(l,qk),this.viewport=new Yk,!oe&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),k===R2&&M!=="blank"&&!window.mapboxgl.accessToken&&!oe&&console.warn(this.configService.getSceneWarninfo("MapToken")),!oe&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=k),oe?(this.map=oe,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(v),this.map=new window.mapboxgl.Map((0,H.Z)({container:this.$mapContainer,style:this.getMapStyleValue(M),attributionControl:b,bearing:G},ye))),this.map.on("load",function(){s.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return $e.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"destroy",value:function(){var i;(i=this.$mapContainer)===null||i===void 0||(i=i.parentNode)===null||i===void 0||i.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(i){for(var o,s=arguments.length,l=new Array(s>1?s-1:0),f=1;f1?s-1:0),f=1;f{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&HE.decode();let km=null;function o0(){return(km===null||km.byteLength===0)&&(km=new Uint8Array(gs.memory.buffer)),km}function s0(e,r){return e=e>>>0,HE.decode(o0().subarray(e,e+r))}const $h=new Array(128).fill(void 0);$h.push(void 0,null,!0,!1);let Bm=$h.length;function dD(e){Bm===$h.length&&$h.push($h.length+1);const r=Bm;return Bm=$h[r],$h[r]=e,r}function u0(e){return $h[e]}function vD(e){e<132||($h[e]=Bm,Bm=e)}function mD(e){const r=u0(e);return vD(e),r}let Lm=0;const l0=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},gD=typeof l0.encodeInto=="function"?function(e,r){return l0.encodeInto(e,r)}:function(e,r){const t=l0.encode(e);return r.set(t),{read:e.length,written:t.length}};function I_(e,r,t){if(t===void 0){const l=l0.encode(e),f=r(l.length,1)>>>0;return o0().subarray(f,f+l.length).set(l),Lm=l.length,f}let n=e.length,i=r(n,1)>>>0;const o=o0();let s=0;for(;s127)break;o[i+s]=l}if(s!==n){s!==0&&(e=e.slice(s)),i=t(i,n,n=s+e.length*3,1)>>>0;const l=o0().subarray(i+s,i+n),f=gD(e,l);s+=f.written}return Lm=s,i}let Nm=null;function c0(){return(Nm===null||Nm.byteLength===0)&&(Nm=new Int32Array(gs.memory.buffer)),Nm}function _D(e,r,t){let n,i;try{const l=gs.__wbindgen_add_to_stack_pointer(-16),f=I_(e,gs.__wbindgen_malloc,gs.__wbindgen_realloc),v=Lm,y=I_(r,gs.__wbindgen_malloc,gs.__wbindgen_realloc),b=Lm;gs.glsl_compile(l,f,v,y,b,t);var o=c0()[l/4+0],s=c0()[l/4+1];return n=o,i=s,s0(o,s)}finally{gs.__wbindgen_add_to_stack_pointer(16),gs.__wbindgen_free(n,i,1)}}class Um{static __wrap(r){r=r>>>0;const t=Object.create(Um.prototype);return t.__wbg_ptr=r,t}__destroy_into_raw(){const r=this.__wbg_ptr;return this.__wbg_ptr=0,r}free(){const r=this.__destroy_into_raw();gs.__wbg_wgslcomposer_free(r)}constructor(){const r=gs.wgslcomposer_new();return Um.__wrap(r)}wgsl_compile(r){let t,n;try{const s=gs.__wbindgen_add_to_stack_pointer(-16),l=I_(r,gs.__wbindgen_malloc,gs.__wbindgen_realloc),f=Lm;gs.wgslcomposer_wgsl_compile(s,this.__wbg_ptr,l,f);var i=c0()[s/4+0],o=c0()[s/4+1];return t=i,n=o,s0(i,o)}finally{gs.__wbindgen_add_to_stack_pointer(16),gs.__wbindgen_free(t,n,1)}}}function yD(e,r){return Z_(this,null,function*(){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return yield WebAssembly.instantiateStreaming(e,r)}catch(n){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const t=yield e.arrayBuffer();return yield WebAssembly.instantiate(t,r)}else{const t=yield WebAssembly.instantiate(e,r);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}})}function xD(){const e={};return e.wbg={},e.wbg.__wbindgen_string_new=function(r,t){const n=s0(r,t);return dD(n)},e.wbg.__wbindgen_object_drop_ref=function(r){mD(r)},e.wbg.__wbg_log_1d3ae0273d8f4f8a=function(r){console.log(u0(r))},e.wbg.__wbg_log_576ca876af0d4a77=function(r,t){console.log(u0(r),u0(t))},e.wbg.__wbindgen_throw=function(r,t){throw new Error(s0(r,t))},e}function bD(e,r){return gs=e.exports,WE.__wbindgen_wasm_module=r,Nm=null,km=null,gs}function WE(e){return Z_(this,null,function*(){if(gs!==void 0)return gs;const r=xD();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:t,module:n}=yield yD(yield e,r);return bD(t,n)})}var yl;(function(e){e[e.COPY_SRC=1]="COPY_SRC",e[e.COPY_DST=2]="COPY_DST",e[e.TEXTURE_BINDING=4]="TEXTURE_BINDING",e[e.STORAGE_BINDING=8]="STORAGE_BINDING",e[e.STORAGE=8]="STORAGE",e[e.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(yl||(yl={}));var P_;(function(e){e[e.READ=1]="READ",e[e.WRITE=2]="WRITE"})(P_||(P_={}));function ED(e){var r=0;return e&Ec.SAMPLED&&(r|=yl.TEXTURE_BINDING|yl.COPY_DST),e&Ec.RENDER_TARGET&&(r|=yl.RENDER_ATTACHMENT|yl.TEXTURE_BINDING|yl.COPY_SRC|yl.COPY_DST),r}function O_(e){if(e===Mt.U8_R_NORM)return"r8unorm";if(e===Mt.U8_RG_NORM)return"rg8unorm";if(e===Mt.U8_RGBA_RT)return"bgra8unorm";if(e===Mt.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(e===Mt.U8_RGBA_NORM)return"rgba8unorm";if(e===Mt.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(e===Mt.S8_R_NORM)return"r8snorm";if(e===Mt.S8_RG_NORM)return"rg8snorm";if(e===Mt.S8_RGBA_NORM)return"rgba8snorm";if(e===Mt.U32_R)return"r32uint";if(e===Mt.F16_RGBA)return"rgba16float";if(e===Mt.F32_RGBA)return"rgba32float";if(e===Mt.D24)return"depth24plus";if(e===Mt.D24_S8)return"depth24plus-stencil8";if(e===Mt.D32F)return"depth32float";if(e===Mt.D32F_S8)return"depth32float-stencil8";if(e===Mt.BC1)return"bc1-rgba-unorm";if(e===Mt.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(e===Mt.BC2)return"bc2-rgba-unorm";if(e===Mt.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(e===Mt.BC3)return"bc3-rgba-unorm";if(e===Mt.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(e===Mt.BC4_SNORM)return"bc4-r-snorm";if(e===Mt.BC4_UNORM)return"bc4-r-unorm";if(e===Mt.BC5_SNORM)return"bc5-rg-snorm";if(e===Mt.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function SD(e){if(e===Gi.TEXTURE_2D)return"2d";if(e===Gi.TEXTURE_CUBE_MAP)return"2d";if(e===Gi.TEXTURE_2D_ARRAY)return"2d";if(e===Gi.TEXTURE_3D)return"3d";throw new Error("whoops")}function AD(e){if(e===Gi.TEXTURE_2D)return"2d";if(e===Gi.TEXTURE_CUBE_MAP)return"cube";if(e===Gi.TEXTURE_2D_ARRAY)return"2d-array";if(e===Gi.TEXTURE_3D)return"3d";throw new Error("whoops")}function TD(e){var r=0;return e&no.INDEX&&(r|=GPUBufferUsage.INDEX),e&no.VERTEX&&(r|=GPUBufferUsage.VERTEX),e&no.UNIFORM&&(r|=GPUBufferUsage.UNIFORM),e&no.STORAGE&&(r|=GPUBufferUsage.STORAGE),e&no.COPY_SRC&&(r|=GPUBufferUsage.COPY_SRC),r|=GPUBufferUsage.COPY_DST,r}function D_(e){if(e===gl.CLAMP_TO_EDGE)return"clamp-to-edge";if(e===gl.REPEAT)return"repeat";if(e===gl.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function GE(e){if(e===vs.BILINEAR)return"linear";if(e===vs.POINT)return"nearest";throw new Error("whoops")}function wD(e){if(e===Xs.LINEAR)return"linear";if(e===Xs.NEAREST)return"nearest";if(e===Xs.NO_MIP)return"nearest";throw new Error("whoops")}function Iv(e){var r=e;return r.gpuBuffer}function CD(e){var r=e;return r.gpuSampler}function RD(e){var r=e;return r.querySet}function MD(e){if(e===Kg.OcclusionConservative)return"occlusion";throw new Error("whoops")}function ID(e){switch(e){case ms.TRIANGLES:return"triangle-list";case ms.POINTS:return"point-list";case ms.TRIANGLE_STRIP:return"triangle-strip";case ms.LINES:return"line-list";case ms.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function PD(e){if(e===Wl.NONE)return"none";if(e===Wl.FRONT)return"front";if(e===Wl.BACK)return"back";throw new Error("whoops")}function OD(e){if(e===Im.CCW)return"ccw";if(e===Im.CW)return"cw";throw new Error("whoops")}function DD(e,r){return{topology:ID(e),cullMode:PD(r.cullMode),frontFace:OD(r.frontFace)}}function XE(e){if(e===la.ZERO)return"zero";if(e===la.ONE)return"one";if(e===la.SRC)return"src";if(e===la.ONE_MINUS_SRC)return"one-minus-src";if(e===la.DST)return"dst";if(e===la.ONE_MINUS_DST)return"one-minus-dst";if(e===la.SRC_ALPHA)return"src-alpha";if(e===la.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(e===la.DST_ALPHA)return"dst-alpha";if(e===la.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(e===la.CONST)return"constant";if(e===la.ONE_MINUS_CONSTANT)return"one-minus-constant";if(e===la.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function FD(e){if(e===Tu.ADD)return"add";if(e===Tu.SUBSTRACT)return"subtract";if(e===Tu.REVERSE_SUBSTRACT)return"reverse-subtract";if(e===Tu.MIN)return"min";if(e===Tu.MAX)return"max";throw new Error("whoops")}function $E(e){return{operation:FD(e.blendMode),srcFactor:XE(e.blendSrcFactor),dstFactor:XE(e.blendDstFactor)}}function YE(e){return e.blendMode===Tu.ADD&&e.blendSrcFactor===la.ONE&&e.blendDstFactor===la.ZERO}function kD(e){if(!(YE(e.rgbBlendState)&&YE(e.alphaBlendState)))return{color:$E(e.rgbBlendState),alpha:$E(e.alphaBlendState)}}function BD(e,r){return{format:O_(r),blend:kD(e),writeMask:e.channelWriteMask}}function LD(e,r){return r.attachmentsState.map(function(t,n){return BD(t,e[n])})}function f0(e){if(e===_a.NEVER)return"never";if(e===_a.LESS)return"less";if(e===_a.EQUAL)return"equal";if(e===_a.LEQUAL)return"less-equal";if(e===_a.GREATER)return"greater";if(e===_a.NOTEQUAL)return"not-equal";if(e===_a.GEQUAL)return"greater-equal";if(e===_a.ALWAYS)return"always";throw new Error("whoops")}function Pv(e){if(e===qu.KEEP)return"keep";if(e===qu.REPLACE)return"replace";if(e===qu.ZERO)return"zero";if(e===qu.DECREMENT_CLAMP)return"decrement-clamp";if(e===qu.DECREMENT_WRAP)return"decrement-wrap";if(e===qu.INCREMENT_CLAMP)return"increment-clamp";if(e===qu.INCREMENT_WRAP)return"increment-wrap";if(e===qu.INVERT)return"invert";throw new Error("whoops")}function ND(e,r){if(!(0,Bp.Z)(e))return{format:O_(e),depthWriteEnabled:!!r.depthWrite,depthCompare:f0(r.depthCompare),depthBias:r.polygonOffset?1:0,depthBiasSlopeScale:r.polygonOffset?1:0,stencilFront:{compare:f0(r.stencilFront.compare),passOp:Pv(r.stencilFront.passOp),failOp:Pv(r.stencilFront.failOp),depthFailOp:Pv(r.stencilFront.depthFailOp)},stencilBack:{compare:f0(r.stencilBack.compare),passOp:Pv(r.stencilBack.passOp),failOp:Pv(r.stencilBack.failOp),depthFailOp:Pv(r.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function UD(e){if(e!==null){if(e===Mt.U16_R)return"uint16";if(e===Mt.U32_R)return"uint32";throw new Error("whoops")}}function zD(e){if(e===Sd.VERTEX)return"vertex";if(e===Sd.INSTANCE)return"instance";throw new Error("whoops")}function ZD(e){if(e===Mt.U8_R)return"uint8x2";if(e===Mt.U8_RG)return"uint8x2";if(e===Mt.U8_RGB)return"uint8x4";if(e===Mt.U8_RGBA)return"uint8x4";if(e===Mt.U8_RG_NORM)return"unorm8x2";if(e===Mt.U8_RGBA_NORM)return"unorm8x4";if(e===Mt.S8_RGB_NORM)return"snorm8x4";if(e===Mt.S8_RGBA_NORM)return"snorm8x4";if(e===Mt.U16_RG_NORM)return"unorm16x2";if(e===Mt.U16_RGBA_NORM)return"unorm16x4";if(e===Mt.S16_RG_NORM)return"snorm16x2";if(e===Mt.S16_RGBA_NORM)return"snorm16x4";if(e===Mt.S16_RG)return"uint16x2";if(e===Mt.F16_RG)return"float16x2";if(e===Mt.F16_RGBA)return"float16x4";if(e===Mt.F32_R)return"float32";if(e===Mt.F32_RG)return"float32x2";if(e===Mt.F32_RGB)return"float32x3";if(e===Mt.F32_RGBA)return"float32x4";throw"whoops"}function VD(e){var r=ch(e);switch(r){case Rr.BC1:case Rr.BC2:case Rr.BC3:case Rr.BC4_SNORM:case Rr.BC4_UNORM:case Rr.BC5_SNORM:case Rr.BC5_UNORM:return!0;default:return!1}}function jD(e){var r=ch(e);switch(r){case Rr.BC1:case Rr.BC2:case Rr.BC3:case Rr.BC4_SNORM:case Rr.BC4_UNORM:case Rr.BC5_SNORM:case Rr.BC5_UNORM:return 4;default:return 1}}function qE(e,r,t,n){switch(t===void 0&&(t=!1),e){case Mt.S8_R:case Mt.S8_R_NORM:case Mt.S8_RG_NORM:case Mt.S8_RGB_NORM:case Mt.S8_RGBA_NORM:{var i=r instanceof ArrayBuffer?new Int8Array(r):new Int8Array(r);return n&&i.set(new Int8Array(n)),i}case Mt.U8_R:case Mt.U8_R_NORM:case Mt.U8_RG:case Mt.U8_RG_NORM:case Mt.U8_RGB:case Mt.U8_RGB_NORM:case Mt.U8_RGB_SRGB:case Mt.U8_RGBA:case Mt.U8_RGBA_NORM:case Mt.U8_RGBA_SRGB:{var o=r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r);return n&&o.set(new Uint8Array(n)),o}case Mt.S16_R:case Mt.S16_RG:case Mt.S16_RG_NORM:case Mt.S16_RGB_NORM:case Mt.S16_RGBA:case Mt.S16_RGBA_NORM:{var s=r instanceof ArrayBuffer?new Int16Array(r):new Int16Array(t?r/2:r);return n&&s.set(new Int16Array(n)),s}case Mt.U16_R:case Mt.U16_RGB:case Mt.U16_RGBA_5551:case Mt.U16_RGBA_NORM:case Mt.U16_RG_NORM:case Mt.U16_R_NORM:{var l=r instanceof ArrayBuffer?new Uint16Array(r):new Uint16Array(t?r/2:r);return n&&l.set(new Uint16Array(n)),l}case Mt.S32_R:{var f=r instanceof ArrayBuffer?new Int32Array(r):new Int32Array(t?r/4:r);return n&&f.set(new Int32Array(n)),f}case Mt.U32_R:case Mt.U32_RG:{var v=r instanceof ArrayBuffer?new Uint32Array(r):new Uint32Array(t?r/4:r);return n&&v.set(new Uint32Array(n)),v}case Mt.F32_R:case Mt.F32_RG:case Mt.F32_RGB:case Mt.F32_RGBA:{var y=r instanceof ArrayBuffer?new Float32Array(r):new Float32Array(t?r/4:r);return n&&y.set(new Float32Array(n)),y}}var b=r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r);return n&&b.set(new Uint8Array(n)),b}function HD(e){var r=(e&32768)>>15,t=(e&31744)>>10,n=e&1023;return t===0?(r?-1:1)*Math.pow(2,-14)*(n/Math.pow(2,10)):t==31?n?NaN:(r?-1:1)*(1/0):(r?-1:1)*Math.pow(2,t-15)*(1+n/Math.pow(2,10))}var fh=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=e.call(this)||this;return o.id=n,o.device=i,o}return r.prototype.destroy=function(){},r}(bE.Z),WD=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Bindings;var l=o.pipeline;Bi(!!l);var f=o.uniformBufferBindings,v=o.storageBufferBindings,y=o.samplerBindings;s.numUniformBuffers=(f==null?void 0:f.length)||0;var b=[[],[]],T=0;if(v&&v.length)for(var M=0;M0}).map(function(Ir,Er){return s.device.device.createBindGroup({layout:l.getBindGroupLayout(Er),entries:Ir})}),s}return r}(fh),GD=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.Buffer;var l=o.usage,f=o.viewOrSize,v=!!(l&no.MAP_READ);s.usage=TD(l),v&&(s.usage=no.MAP_READ|no.COPY_DST);var y=!(0,xv.Z)(f);if(s.view=(0,xv.Z)(f)?null:f,s.size=(0,xv.Z)(f)?t0(f,4):t0(f.byteLength,4),(0,xv.Z)(f))s.gpuBuffer=s.device.device.createBuffer({usage:s.usage,size:s.size,mappedAtCreation:v?y:!1});else{s.gpuBuffer=s.device.device.createBuffer({usage:s.usage,size:s.size,mappedAtCreation:!0});var b=f&&f.constructor||Float32Array;new b(s.gpuBuffer.getMappedRange()).set(f),s.gpuBuffer.unmap()}return s}return r.prototype.setSubData=function(t,n,i,o){i===void 0&&(i=0),o===void 0&&(o=0);var s=this.gpuBuffer;o=o||n.byteLength,o=Math.min(o,this.size-t);var l=n.byteOffset+i,f=l+o,v=o+3&-4;if(v!==o){var y=new Uint8Array(n.buffer.slice(l,f));n=new Uint8Array(v),n.set(y),i=0,l=0,f=v,o=v}for(var b=1024*1024*15,T=0;f-(l+T)>b;)this.device.device.queue.writeBuffer(s,t+T,n.buffer,l+T,b),T+=b;this.device.device.queue.writeBuffer(s,t+T,n.buffer,l+T,o-T)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gpuBuffer.destroy()},r}(fh),XD=function(){function e(){this.commandEncoder=null,this.gpuComputePassEncoder=null}return e.prototype.dispatchWorkgroups=function(r,t,n){this.gpuComputePassEncoder.dispatchWorkgroups(r,t,n)},e.prototype.dispatchWorkgroupsIndirect=function(r,t){this.gpuComputePassEncoder.dispatchWorkgroupsIndirect(r.gpuBuffer,t)},e.prototype.finish=function(){return this.gpuComputePassEncoder.end(),this.gpuComputePassEncoder=null,this.commandEncoder.finish()},e.prototype.beginComputePass=function(){Bi(this.gpuComputePassEncoder===null),this.gpuComputePassEncoder=this.commandEncoder.beginComputePass(this.gpuComputePassDescriptor)},e.prototype.setPipeline=function(r){var t=r,n=Ad(t.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(n)},e.prototype.setBindings=function(r){var t=r;this.gpuComputePassEncoder.setBindGroup(0,t.gpuBindGroup[0])},e.prototype.pushDebugGroup=function(r){this.gpuComputePassEncoder.pushDebugGroup(r)},e.prototype.popDebugGroup=function(){this.gpuComputePassEncoder.popDebugGroup()},e.prototype.insertDebugMarker=function(r){this.gpuComputePassEncoder.insertDebugMarker(r)},e}(),$D=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.ComputePipeline,s.gpuComputePipeline=null,s.descriptor=o;var l=o.program,f=l.computeStage;if(f===null)return s;var v={layout:"auto",compute:(0,Mn.pi)({},f)};return s.gpuComputePipeline=s.device.device.createComputePipeline(v),s.name!==void 0&&(s.gpuComputePipeline.label=s.name),s}return r.prototype.getBindGroupLayout=function(t){return this.gpuComputePipeline.getBindGroupLayout(t)},r}(fh),YD=function(e){(0,Mn.ZT)(r,e);function r(t){var n,i,o,s,l=t.id,f=t.device,v=t.descriptor,y=e.call(this,{id:l,device:f})||this;y.type=ya.InputLayout;var b=[];try{for(var T=(0,Mn.XA)(v.vertexBufferDescriptors),M=T.next();!M.done;M=T.next()){var O=M.value,F=O.arrayStride,$=O.stepMode,G=O.attributes;b.push({arrayStride:F,stepMode:zD($),attributes:[]});try{for(var ue=(o=void 0,(0,Mn.XA)(G)),xe=ue.next();!xe.done;xe=ue.next()){var ze=xe.value,Je=ze.shaderLocation,ht=ze.format,gt=ze.offset;b[b.length-1].attributes.push({shaderLocation:Je,format:ZD(ht),offset:gt})}}catch(Ot){o={error:Ot}}finally{try{xe&&!xe.done&&(s=ue.return)&&s.call(ue)}finally{if(o)throw o.error}}}}catch(Ot){n={error:Ot}}finally{try{M&&!M.done&&(i=T.return)&&i.call(T)}finally{if(n)throw n.error}}return y.indexFormat=UD(v.indexBufferFormat),y.buffers=b,y}return r}(fh),KE=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;return s.type=ya.Program,s.vertexStage=null,s.fragmentStage=null,s.computeStage=null,s.descriptor=o,o.vertex&&(s.vertexStage=s.createShaderStage(o.vertex,"vertex")),o.fragment&&(s.fragmentStage=s.createShaderStage(o.fragment,"fragment")),o.compute&&(s.computeStage=s.createShaderStage(o.compute,"compute")),s}return r.prototype.setUniformsLegacy=function(t){},r.prototype.createShaderStage=function(t,n){var i,o,s=t.glsl,l=t.wgsl,f=t.entryPoint,v=!1,y=l;if(!y)try{y=this.device.glsl_compile(s,n,v)}catch($){throw console.error($,s),new Error("whoops")}var b=function($){if(!y.includes($))return"continue";y=y.replace("var T_".concat($,": texture_2d;"),"var T_".concat($,": texture_depth_2d;")),y=y.replace(new RegExp("textureSample\\(T_".concat($,"(.*)\\);$"),"gm"),function(G,ue){return"vec4(textureSample(T_".concat($).concat(ue,"), 0.0, 0.0, 0.0);")})};try{for(var T=(0,Mn.XA)(["u_TextureFramebufferDepth"]),M=T.next();!M.done;M=T.next()){var O=M.value;b(O)}}catch($){i={error:$}}finally{try{M&&!M.done&&(o=T.return)&&o.call(T)}finally{if(i)throw i.error}}var F=this.device.device.createShaderModule({code:y});return{module:F,entryPoint:f||"main"}},r}(fh),qD=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=ya.QueryPool;var l=o.elemCount,f=o.type;return s.querySet=s.device.device.createQuerySet({type:MD(f),count:l}),s.resolveBuffer=s.device.device.createBuffer({size:l*8,usage:GPUBufferUsage.QUERY_RESOLVE|GPUBufferUsage.COPY_SRC}),s.cpuBuffer=s.device.device.createBuffer({size:l*8,usage:GPUBufferUsage.COPY_DST|GPUBufferUsage.MAP_READ}),s.results=null,s}return r.prototype.queryResultOcclusion=function(t){return this.results===null?null:this.results[t]!==BigInt(0)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.querySet.destroy(),this.resolveBuffer.destroy(),this.cpuBuffer.destroy()},r}(fh),KD=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=e.call(this,{id:n,device:i})||this;return o.type=ya.Readback,o}return r.prototype.readTexture=function(t,n,i,o,s,l,f,v){return f===void 0&&(f=0),(0,Mn.mG)(this,void 0,void 0,function(){var y,b,T,M,O,F,$,G;return(0,Mn.Jh)(this,function(ue){return y=t,b=0,T=this.getBlockInformationFromFormat(y.gpuTextureformat),M=Math.ceil(o/T.width)*T.length,O=Math.ceil(M/256)*256,F=O*s,$=this.device.createBuffer({usage:no.STORAGE|no.MAP_READ|no.COPY_DST,hint:Af.STATIC,viewOrSize:F}),G=this.device.device.createCommandEncoder(),G.copyTextureToBuffer({texture:y.gpuTexture,mipLevel:0,origin:{x:n,y:i,z:Math.max(b,0)}},{buffer:$.gpuBuffer,offset:0,bytesPerRow:O},{width:o,height:s,depthOrArrayLayers:1}),this.device.device.queue.submit([G.finish()]),[2,this.readBuffer($,0,l.byteLength===F?l:null,f,F,y.format)]})})},r.prototype.readTextureSync=function(t,n,i,o,s,l,f,v){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},r.prototype.readBuffer=function(t,n,i,o,s,l,f,v){var y=this;n===void 0&&(n=0),i===void 0&&(i=null),s===void 0&&(s=0),l===void 0&&(l=Mt.U8_RGB),f===void 0&&(f=!1);var b=t,T=s||b.size,M=i||b.view,O=M&&M.constructor&&M.constructor.BYTES_PER_ELEMENT||AE(l),F=b;if(!(b.usage&no.MAP_READ&&b.usage&no.COPY_DST)){var $=this.device.device.createCommandEncoder();F=this.device.createBuffer({usage:no.STORAGE|no.MAP_READ|no.COPY_DST,hint:Af.STATIC,viewOrSize:T}),$.copyBufferToBuffer(b.gpuBuffer,n,F.gpuBuffer,0,T),this.device.device.queue.submit([$.finish()])}return new Promise(function(G,ue){F.gpuBuffer.mapAsync(P_.READ,n,T).then(function(){var xe=F.gpuBuffer.getMappedRange(n,T),ze=M;if(f)ze===null?ze=qE(l,T,!0,xe):ze=qE(l,ze.buffer,void 0,xe);else if(ze===null)switch(O){case 1:ze=new Uint8Array(T),ze.set(new Uint8Array(xe));break;case 2:ze=y.getHalfFloatAsFloatRGBAArrayBuffer(T/2,xe);break;case 4:ze=new Float32Array(T/4),ze.set(new Float32Array(xe));break}else switch(O){case 1:ze=new Uint8Array(ze.buffer),ze.set(new Uint8Array(xe));break;case 2:ze=y.getHalfFloatAsFloatRGBAArrayBuffer(T/2,xe,M);break;case 4:var Je=M&&M.constructor||Float32Array;ze=new Je(ze.buffer),ze.set(new Je(xe));break}F.gpuBuffer.unmap(),G(ze)},function(xe){return ue(xe)})})},r.prototype.getHalfFloatAsFloatRGBAArrayBuffer=function(t,n,i){i||(i=new Float32Array(t));for(var o=new Uint16Array(n);t--;)i[t]=HD(o[t]);return i},r.prototype.getBlockInformationFromFormat=function(t){switch(t){case"r8unorm":case"r8snorm":case"r8uint":case"r8sint":return{width:1,height:1,length:1};case"r16uint":case"r16sint":case"r16float":case"rg8unorm":case"rg8snorm":case"rg8uint":case"rg8sint":return{width:1,height:1,length:2};case"r32uint":case"r32sint":case"r32float":case"rg16uint":case"rg16sint":case"rg16float":case"rgba8unorm":case"rgba8unorm-srgb":case"rgba8snorm":case"rgba8uint":case"rgba8sint":case"bgra8unorm":case"bgra8unorm-srgb":case"rgb9e5ufloat":case"rgb10a2unorm":case"rg11b10ufloat":return{width:1,height:1,length:4};case"rg32uint":case"rg32sint":case"rg32float":case"rgba16uint":case"rgba16sint":case"rgba16float":return{width:1,height:1,length:8};case"rgba32uint":case"rgba32sint":case"rgba32float":return{width:1,height:1,length:16};case"stencil8":throw new Error("No fixed size for Stencil8 format!");case"depth16unorm":return{width:1,height:1,length:2};case"depth24plus":throw new Error("No fixed size for Depth24Plus format!");case"depth24plus-stencil8":throw new Error("No fixed size for Depth24PlusStencil8 format!");case"depth32float":return{width:1,height:1,length:4};case"depth32float-stencil8":return{width:1,height:1,length:5};case"bc7-rgba-unorm":case"bc7-rgba-unorm-srgb":case"bc6h-rgb-ufloat":case"bc6h-rgb-float":case"bc2-rgba-unorm":case"bc2-rgba-unorm-srgb":case"bc3-rgba-unorm":case"bc3-rgba-unorm-srgb":case"bc5-rg-unorm":case"bc5-rg-snorm":return{width:4,height:4,length:16};case"bc4-r-unorm":case"bc4-r-snorm":case"bc1-rgba-unorm":case"bc1-rgba-unorm-srgb":return{width:4,height:4,length:8};default:return{width:1,height:1,length:4}}},r}(fh),QD=function(){function e(r){this.device=r,this.commandEncoder=null,this.gpuRenderPassEncoder=null,this.gfxColorAttachment=[],this.gfxColorAttachmentLevel=[],this.gfxColorResolveTo=[],this.gfxColorResolveToLevel=[],this.gfxDepthStencilAttachment=null,this.gfxDepthStencilResolveTo=null,this.gpuColorAttachments=[],this.gpuDepthStencilAttachment={view:null,depthLoadOp:"load",depthStoreOp:"store",stencilLoadOp:"load",stencilStoreOp:"store"},this.gpuRenderPassDescriptor={colorAttachments:this.gpuColorAttachments,depthStencilAttachment:this.gpuDepthStencilAttachment}}return e.prototype.getTextureView=function(r,t){return Bi(t1?T.resolveTarget=this.getTextureView(b,this.gfxColorResolveToLevel[v]):T.storeOp="store")}else{this.gpuColorAttachments.length=v,this.gfxColorAttachment.length=v,this.gfxColorResolveTo.length=v;break}}if(this.gfxDepthStencilAttachment=r.depthStencilAttachment,this.gfxDepthStencilResolveTo=r.depthStencilResolveTo,r.depthStencilAttachment){var O=r.depthStencilAttachment,T=this.gpuDepthStencilAttachment;T.view=O.gpuTextureView;var F=!!(Sv(O.format)&wn.Depth);F?(r.depthClearValue==="load"?T.depthLoadOp="load":(T.depthLoadOp="clear",T.depthClearValue=r.depthClearValue),r.depthStencilStore||this.gfxDepthStencilResolveTo!==null?T.depthStoreOp="store":T.depthStoreOp="discard"):(T.depthLoadOp=void 0,T.depthStoreOp=void 0);var $=!!(Sv(O.format)&wn.Stencil);$?(r.stencilClearValue==="load"?T.stencilLoadOp="load":(T.stencilLoadOp="clear",T.stencilClearValue=r.stencilClearValue),r.depthStencilStore||this.gfxDepthStencilResolveTo!==null?T.stencilStoreOp="store":T.stencilStoreOp="discard"):(T.stencilLoadOp=void 0,T.stencilStoreOp=void 0),this.gpuRenderPassDescriptor.depthStencilAttachment=this.gpuDepthStencilAttachment}else this.gpuRenderPassDescriptor.depthStencilAttachment=void 0;this.gpuRenderPassDescriptor.occlusionQuerySet=(0,Bp.Z)(r.occlusionQueryPool)?void 0:RD(r.occlusionQueryPool)},e.prototype.beginRenderPass=function(r){Bi(this.gpuRenderPassEncoder===null),this.setRenderPassDescriptor(r),this.gpuRenderPassEncoder=this.commandEncoder.beginRenderPass(this.gpuRenderPassDescriptor)},e.prototype.flipY=function(r,t){var n=this.device.swapChainHeight;return n-r-t},e.prototype.setViewport=function(r,t,n,i,o,s){o===void 0&&(o=0),s===void 0&&(s=1),this.gpuRenderPassEncoder.setViewport(r,this.flipY(t,i),n,i,o,s)},e.prototype.setScissorRect=function(r,t,n,i){this.gpuRenderPassEncoder.setScissorRect(r,this.flipY(t,i),n,i)},e.prototype.setPipeline=function(r){var t=r,n=Ad(t.gpuRenderPipeline);this.gpuRenderPassEncoder.setPipeline(n)},e.prototype.setVertexInput=function(r,t,n){if(r!==null){var i=r;n!==null&&this.gpuRenderPassEncoder.setIndexBuffer(Iv(n.buffer),Ad(i.indexFormat),n.offset);for(var o=0;o1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.commandEncoder.finish()},e.prototype.copyAttachment=function(r,t,n,i){Bi(n.sampleCount===1);var o={texture:n.gpuTexture,mipLevel:i},s={texture:r.gpuTexture,mipLevel:t};Bi(n.width>>>i===r.width>>>t),Bi(n.height>>>i===r.height>>>t),Bi(!!(n.usage&yl.COPY_SRC)),Bi(!!(r.usage&yl.COPY_DST)),this.commandEncoder.copyTextureToTexture(o,s,[r.width,r.height,1])},e}(),JD=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=e.call(this,{id:n,device:i})||this;return s.type=ya.RenderPipeline,s.isCreatingAsync=!1,s.gpuRenderPipeline=null,s.descriptor=o,s.device.createRenderPipelineInternal(s,!1),s}return r.prototype.getBindGroupLayout=function(t){return this.gpuRenderPipeline.getBindGroupLayout(t)},r}(fh),eF=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s,l,f=e.call(this,{id:n,device:i})||this;f.type=ya.Sampler;var v=o.lodMinClamp,y=o.mipmapFilter===Xs.NO_MIP?o.lodMinClamp:o.lodMaxClamp,b=(s=o.maxAnisotropy)!==null&&s!==void 0?s:1;return b>1&&Bi(o.minFilter===vs.BILINEAR&&o.magFilter===vs.BILINEAR&&o.mipmapFilter===Xs.LINEAR),f.gpuSampler=f.device.device.createSampler({addressModeU:D_(o.addressModeU),addressModeV:D_(o.addressModeV),addressModeW:D_((l=o.addressModeW)!==null&&l!==void 0?l:o.addressModeU),lodMinClamp:v,lodMaxClamp:y,minFilter:GE(o.minFilter),magFilter:GE(o.magFilter),mipmapFilter:wD(o.mipmapFilter),compare:o.compareFunction!==void 0?f0(o.compareFunction):void 0,maxAnisotropy:b}),f}return r}(fh),h0=function(e){(0,Mn.ZT)(r,e);function r(t){var n=t.id,i=t.device,o=t.descriptor,s=t.skipCreate,l=t.sampleCount,f=e.call(this,{id:n,device:i})||this;f.type=ya.Texture;var v=o.format,y=o.dimension,b=o.width,T=o.height,M=o.depthOrArrayLayers,O=o.mipLevelCount,F=o.usage;return f.device.createTextureShared({format:v,dimension:y!=null?y:Gi.TEXTURE_2D,width:b,height:T,depthOrArrayLayers:M!=null?M:1,mipLevelCount:O!=null?O:1,usage:F,sampleCount:l!=null?l:1},f,s),f}return r.prototype.textureFromImageBitmapOrCanvas=function(t,n,i){for(var o=n[0].width,s=n[0].height,l={size:{width:o,height:s,depthOrArrayLayers:i},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},f=t.createTexture(l),v=0;v>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},e.prototype.queryTextureFormatSupported=function(r,t,n){if(VD(r)){if(!this.featureTextureCompressionBC)return!1;var i=jD(r);return t%i!==0||n%i!==0?!1:this.featureTextureCompressionBC}switch(r){case Mt.U16_RGBA_NORM:return!1;case Mt.F32_RGBA:return!1}return!0},e.prototype.queryPlatformAvailable=function(){return!0},e.prototype.queryVendorInfo=function(){return this},e.prototype.queryRenderPass=function(r){var t=r;return t.descriptor},e.prototype.queryRenderTarget=function(r){var t=r;return t},e.prototype.setResourceName=function(r,t){if(r.name=t,r.type===ya.Buffer){var n=r;n.gpuBuffer.label=t}else if(r.type===ya.Texture){var n=r;n.gpuTexture.label=t,n.gpuTextureView.label=t}else if(r.type===ya.RenderTarget){var n=r;n.gpuTexture.label=t,n.gpuTextureView.label=t}else if(r.type===ya.Sampler){var n=r;n.gpuSampler.label=t}else if(r.type===ya.RenderPipeline){var n=r;n.gpuRenderPipeline!==null&&(n.gpuRenderPipeline.label=t)}},e.prototype.setResourceLeakCheck=function(r,t){},e.prototype.checkForLeaks=function(){},e.prototype.programPatched=function(r){},e.prototype.pipelineQueryReady=function(r){var t=r;return t.gpuRenderPipeline!==null},e.prototype.pipelineForceReady=function(r){var t=r;this.createRenderPipelineInternal(t,!1)},e}(),rF=function(){function e(r){this.pluginOptions=r}return e.prototype.createSwapChain=function(r){return(0,Mn.mG)(this,void 0,void 0,function(){var t,n,i,o,s,l,f,v;return(0,Mn.Jh)(this,function(y){switch(y.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];t=null,y.label=1;case 1:return y.trys.push([1,3,,4]),n=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:n})];case 2:return t=y.sent(),[3,4];case 3:return i=y.sent(),console.log(i),[3,4];case 4:return t===null?[2,null]:(o=["depth32float-stencil8","texture-compression-bc"],s=o.filter(function(b){return t.features.has(b)}),[4,t.requestDevice({requiredFeatures:s})]);case 5:if(l=y.sent(),l&&(f=this.pluginOptions.onContextLost,l.lost.then(function(){f&&f()})),l===null)return[2,null];if(v=r.getContext("webgpu"),!v)return[2,null];y.label=6;case 6:return y.trys.push([6,8,,9]),[4,WE(this.pluginOptions.shaderCompilerPath)];case 7:return y.sent(),[3,9];case 8:return y.sent(),[3,9];case 9:return[2,new tF(t,l,r,v,_D,Um&&new Um)]}})})},e}(),nF=oi.isPlainObject,iF=oi.isTypedArray,aF=function(){function e(r,t){(0,Q.Z)(this,e),(0,B.Z)(this,"destroyed",!1),(0,B.Z)(this,"uniforms",{}),this.reGl=r;var n=t.vs,i=t.fs,o=t.attributes,s=t.uniforms,l=t.primitive,f=t.count,v=t.elements,y=t.depth,b=t.cull,T=t.instances,M={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:bv.LOWER_LEFT,clipSpaceNearZ:Ev.NEGATIVE_ONE,supportMRT:!1},O={};this.options=t,s&&(this.uniforms=this.extractUniforms(s),Object.keys(s).forEach(function(G){O[G]=r.prop(G)}));var F={};Object.keys(o).forEach(function(G){F[G]=o[G].get()});var $={attributes:F,frag:om(Np(M,"frag",i,null,!1)),uniforms:O,vert:om(Np(M,"vert",n,null,!1)),colorMask:r.prop("colorMask"),lineWidth:1,blend:{enable:r.prop("blend.enable"),func:r.prop("blend.func"),equation:r.prop("blend.equation"),color:r.prop("blend.color")},stencil:{enable:r.prop("stencil.enable"),mask:r.prop("stencil.mask"),func:r.prop("stencil.func"),opFront:r.prop("stencil.opFront"),opBack:r.prop("stencil.opBack")},primitive:r4[l===void 0?R.TRIANGLES:l]};T&&($.instances=T),f?$.count=f:v&&($.elements=v.get()),this.initDepthDrawParams({depth:y},$),this.initCullDrawParams({cull:b},$),this.drawCommand=r($),this.drawParams=$}return(0,j.Z)(e,[{key:"updateAttributesAndElements",value:function(t,n){var i={};Object.keys(t).forEach(function(o){i[o]=t[o].get()}),this.drawParams.attributes=i,this.drawParams.elements=n.get(),this.drawCommand=this.reGl(this.drawParams)}},{key:"updateAttributes",value:function(t){var n={};Object.keys(t).forEach(function(i){n[i]=t[i].get()}),this.drawParams.attributes=n,this.drawCommand=this.reGl(this.drawParams)}},{key:"addUniforms",value:function(t){this.uniforms=(0,V.Z)((0,V.Z)({},this.uniforms),this.extractUniforms(t))}},{key:"draw",value:function(t,n){if(!(this.drawParams.attributes&&Object.keys(this.drawParams.attributes).length===0)){var i=(0,V.Z)((0,V.Z)({},this.uniforms),this.extractUniforms(t.uniforms||{})),o={};Object.keys(i).forEach(function(s){var l=(0,cl.Z)(i[s]);l==="boolean"||l==="number"||Array.isArray(i[s])||i[s].BYTES_PER_ELEMENT?o[s]=i[s]:o[s]=i[s].get()}),o.blend=n?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(t),o.stencil=this.getStencilDrawParams(t),o.colorMask=this.getColorMaskDrawParams(t,n),this.drawCommand(o)}}},{key:"destroy",value:function(){var t;(t=this.drawParams)===null||t===void 0||(t=t.elements)===null||t===void 0||t.destroy(),this.options.attributes&&Object.values(this.options.attributes).forEach(function(n){n==null||n.destroy()}),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(t,n){var i=t.depth;i&&(n.depth={enable:i.enable===void 0?!0:!!i.enable,mask:i.mask===void 0?!0:!!i.mask,func:o4[i.func||R.LESS],range:i.range||[0,1]})}},{key:"getBlendDrawParams",value:function(t){var n=t.blend,i=n||{},o=i.enable,s=i.func,l=i.equation,f=i.color,v=f===void 0?[0,0,0,0]:f;return{enable:!!o,func:{srcRGB:qg[s&&s.srcRGB||R.SRC_ALPHA],srcAlpha:qg[s&&s.srcAlpha||R.SRC_ALPHA],dstRGB:qg[s&&s.dstRGB||R.ONE_MINUS_SRC_ALPHA],dstAlpha:qg[s&&s.dstAlpha||R.ONE_MINUS_SRC_ALPHA]},equation:{rgb:xE[l&&l.rgb||R.FUNC_ADD],alpha:xE[l&&l.alpha||R.FUNC_ADD]},color:v}}},{key:"getStencilDrawParams",value:function(t){var n=t.stencil,i=n||{},o=i.enable,s=i.mask,l=s===void 0?-1:s,f=i.func,v=f===void 0?{cmp:R.ALWAYS,ref:0,mask:-1}:f,y=i.opFront,b=y===void 0?{fail:R.KEEP,zfail:R.KEEP,zpass:R.KEEP}:y,T=i.opBack,M=T===void 0?{fail:R.KEEP,zfail:R.KEEP,zpass:R.KEEP}:T;return{enable:!!o,mask:l,func:(0,V.Z)((0,V.Z)({},v),{},{cmp:s4[v.cmp]}),opFront:{fail:yv[b.fail],zfail:yv[b.zfail],zpass:yv[b.zpass]},opBack:{fail:yv[M.fail],zfail:yv[M.zfail],zpass:yv[M.zpass]}}}},{key:"getColorMaskDrawParams",value:function(t,n){var i=t.stencil,o=i!=null&&i.enable&&i.opFront&&!n?[!1,!1,!1,!1]:[!0,!0,!0,!0];return o}},{key:"initCullDrawParams",value:function(t,n){var i=t.cull;if(i){var o=i.enable,s=i.face,l=s===void 0?R.BACK:s;n.cull={enable:!!o,face:u4[l]}}}},{key:"extractUniforms",value:function(t){var n=this,i={};return Object.keys(t).forEach(function(o){n.extractUniformsRecursively(o,t[o],i,"")}),i}},{key:"extractUniformsRecursively",value:function(t,n,i,o){var s=this;if(n===null||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&typeof n[0]=="number"||iF(n)||n===""||"resize"in n){i["".concat(o&&o+".").concat(t)]=n;return}nF(n)&&Object.keys(n).forEach(function(l){s.extractUniformsRecursively(l,n[l],i,"".concat(o&&o+".").concat(t))}),Array.isArray(n)&&n.forEach(function(l,f){Object.keys(l).forEach(function(v){s.extractUniformsRecursively(v,l[v],i,"".concat(o&&o+".").concat(t,"[").concat(f,"]"))})})}}]),e}(),oF=function(){function e(r,t){(0,Q.Z)(this,e),(0,B.Z)(this,"isDestroy",!1);var n=t.data,i=t.type,o=i===void 0?R.UNSIGNED_BYTE:i,s=t.width,l=t.height,f=t.flipY,v=f===void 0?!1:f,y=t.format,b=y===void 0?R.RGBA:y,T=t.mipmap,M=T===void 0?!1:T,O=t.wrapS,F=O===void 0?R.CLAMP_TO_EDGE:O,$=t.wrapT,G=$===void 0?R.CLAMP_TO_EDGE:$,ue=t.aniso,xe=ue===void 0?0:ue,ze=t.alignment,Je=ze===void 0?1:ze,ht=t.premultiplyAlpha,gt=ht===void 0?!1:ht,Ot=t.mag,tr=Ot===void 0?R.NEAREST:Ot,Ir=t.min,Er=Ir===void 0?R.NEAREST:Ir,mn=t.colorSpace,Ln=mn===void 0?R.BROWSER_DEFAULT_WEBGL:mn,Fi=t.x,xa=Fi===void 0?0:Fi,is=t.y,_s=is===void 0?0:is,as=t.copy,lu=as===void 0?!1:as;this.width=s,this.height=l;var Ac={width:s,height:l,type:S_[o],format:n4[b],wrapS:yE[F],wrapT:yE[G],mag:_E[tr],min:_E[Er],alignment:Je,flipY:v,colorSpace:a4[Ln],premultiplyAlpha:gt,aniso:xe,x:xa,y:_s,copy:lu};n&&(Ac.data=n),typeof M=="number"?Ac.mipmap=i4[M]:typeof M=="boolean"&&(Ac.mipmap=M),this.texture=r.texture(Ac)}return(0,j.Z)(e,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.texture(t)}},{key:"bind",value:function(){this.texture._texture.bind()}},{key:"resize",value:function(t){var n=t.width,i=t.height;this.texture.resize(n,i),this.width=n,this.height=i}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var t;(t=this.texture)===null||t===void 0||t.destroy()}this.isDestroy=!0}}]),e}(),QE,JE,sF=(QE=(0,yt.b2)(),QE(JE=function(){function e(){var r=this;(0,Q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"createModel",function(t){return new aF(r.gl,t)}),(0,B.Z)(this,"createAttribute",function(t){return new t4(r.gl,t)}),(0,B.Z)(this,"createBuffer",function(t){return new l4(r.gl,t)}),(0,B.Z)(this,"createElements",function(t){return new c4(r.gl,t)}),(0,B.Z)(this,"createTexture2D",function(t){return new oF(r.gl,t)}),(0,B.Z)(this,"createFramebuffer",function(t){return new f4(r.gl,t)}),(0,B.Z)(this,"useFramebuffer",function(t,n){r.gl({framebuffer:t?t.get():null})(n)}),(0,B.Z)(this,"clear",function(t){var n,i=t.color,o=t.depth,s=t.stencil,l=t.framebuffer,f=l===void 0?null:l,v={color:i,depth:o,stencil:s};v.framebuffer=f===null?f:f.get(),(n=r.gl)===null||n===void 0||n.clear(v)}),(0,B.Z)(this,"viewport",function(t){var n=t.x,i=t.y,o=t.width,s=t.height;r.gl._gl.viewport(n,i,o,s),r.width=o,r.height=s,r.gl._refresh()}),(0,B.Z)(this,"readPixels",function(t){var n=t.framebuffer,i=t.x,o=t.y,s=t.width,l=t.height,f={x:i,y:o,width:s,height:l};return n&&(f.framebuffer=n.get()),r.gl.read(f)}),(0,B.Z)(this,"getViewportSize",function(){return{width:r.gl._gl.drawingBufferWidth,height:r.gl._gl.drawingBufferHeight}}),(0,B.Z)(this,"getContainer",function(){var t;return(t=r.canvas)===null||t===void 0?void 0:t.parentElement}),(0,B.Z)(this,"getCanvas",function(){return r.canvas}),(0,B.Z)(this,"getGLContext",function(){return r.gl._gl}),(0,B.Z)(this,"destroy",function(){var t;r.canvas=null,(t=r.gl)===null||t===void 0||(t=t._gl)===null||t===void 0||(t=t.getExtension("WEBGL_lose_context"))===null||t===void 0||t.loseContext(),r.gl.destroy(),r.gl=null})}return(0,j.Z)(e,[{key:"init",value:function(){var r=(0,Pt.Z)(ge().mark(function n(i,o,s){var l=this;return ge().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.canvas=i,!s){v.next=5;break}this.gl=s,v.next=8;break;case 5:return v.next=7,new Promise(function(y,b){e4()({canvas:l.canvas,attributes:{alpha:!0,antialias:o.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:o.preserveDrawingBuffer,stencil:o.stencil},extensions:["OES_element_index_uint","OES_standard_derivatives","ANGLE_instanced_arrays"],optionalExtensions:["oes_texture_float_linear","OES_texture_float","EXT_texture_filter_anisotropic","EXT_blend_minmax","WEBGL_depth_texture","WEBGL_lose_context"],profile:!0,onDone:function(M,O){(M||!O)&&b(M),y(O)}})});case 7:this.gl=v.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return v.stop()}},n,this)}));function t(n,i,o){return r.apply(this,arguments)}return t}()},{key:"getPointSizeRange",value:function(){return this.gl._gl.getParameter(this.gl._gl.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(t){return!!this.getGLContext().getExtension(t)}},{key:"setState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!0,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setBaseState",value:function(){this.gl({cull:{enable:!1,face:"back"},viewport:{x:0,y:0,height:this.width,width:this.height},blend:{enable:!1,equation:"add"},framebuffer:null}),this.gl._refresh()}},{key:"setCustomLayerDefaults",value:function(){var t=this.getGLContext();t.disable(t.CULL_FACE)}},{key:"setDirty",value:function(t){this.isDirty=t}},{key:"getDirty",value:function(){return this.isDirty}},{key:"beginFrame",value:function(){}},{key:"endFrame",value:function(){}}]),e}())||JE),uF=function(){function e(r,t){(0,Q.Z)(this,e);var n=t.buffer,i=t.offset,o=t.stride,s=t.normalized,l=t.size,f=t.divisor,v=t.shaderLocation;this.buffer=n,this.attribute={shaderLocation:v,buffer:n.get(),offset:i||0,stride:o||0,normalized:s||!1,divisor:f||0},l&&(this.attribute.size=l)}return(0,j.Z)(e,[{key:"get",value:function(){return this.buffer}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),e}(),zp,Yh,Ov,zm,Zm,hh,p0,wd,Cu,d0=(zp={},(0,B.Z)(zp,R.FLOAT,Float32Array),(0,B.Z)(zp,R.UNSIGNED_BYTE,Uint8Array),(0,B.Z)(zp,R.SHORT,Int16Array),(0,B.Z)(zp,R.UNSIGNED_SHORT,Uint16Array),(0,B.Z)(zp,R.INT,Int32Array),(0,B.Z)(zp,R.UNSIGNED_INT,Uint32Array),zp),lF=(Yh={},(0,B.Z)(Yh,R.POINTS,ms.POINTS),(0,B.Z)(Yh,R.LINES,ms.LINES),(0,B.Z)(Yh,R.LINE_LOOP,ms.LINES),(0,B.Z)(Yh,R.LINE_STRIP,ms.LINE_STRIP),(0,B.Z)(Yh,R.TRIANGLES,ms.TRIANGLES),(0,B.Z)(Yh,R.TRIANGLE_FAN,ms.TRIANGLES),(0,B.Z)(Yh,R.TRIANGLE_STRIP,ms.TRIANGLE_STRIP),Yh),cF=(Ov={},(0,B.Z)(Ov,1,Mt.F32_R),(0,B.Z)(Ov,2,Mt.F32_RG),(0,B.Z)(Ov,3,Mt.F32_RGB),(0,B.Z)(Ov,4,Mt.F32_RGBA),Ov),fF=(zm={},(0,B.Z)(zm,R.STATIC_DRAW,Af.STATIC),(0,B.Z)(zm,R.DYNAMIC_DRAW,Af.DYNAMIC),(0,B.Z)(zm,R.STREAM_DRAW,Af.DYNAMIC),zm),e2=(Zm={},(0,B.Z)(Zm,R.REPEAT,gl.REPEAT),(0,B.Z)(Zm,R.CLAMP_TO_EDGE,gl.CLAMP_TO_EDGE),(0,B.Z)(Zm,R.MIRRORED_REPEAT,gl.MIRRORED_REPEAT),Zm),hF=(hh={},(0,B.Z)(hh,R.NEVER,_a.NEVER),(0,B.Z)(hh,R.ALWAYS,_a.ALWAYS),(0,B.Z)(hh,R.LESS,_a.LESS),(0,B.Z)(hh,R.LEQUAL,_a.LEQUAL),(0,B.Z)(hh,R.GREATER,_a.GREATER),(0,B.Z)(hh,R.GEQUAL,_a.GEQUAL),(0,B.Z)(hh,R.EQUAL,_a.EQUAL),(0,B.Z)(hh,R.NOTEQUAL,_a.NOTEQUAL),hh),pF=(p0={},(0,B.Z)(p0,R.FRONT,Wl.FRONT),(0,B.Z)(p0,R.BACK,Wl.BACK),p0),t2=(wd={},(0,B.Z)(wd,R.FUNC_ADD,Tu.ADD),(0,B.Z)(wd,R.MIN_EXT,Tu.MIN),(0,B.Z)(wd,R.MAX_EXT,Tu.MAX),(0,B.Z)(wd,R.FUNC_SUBTRACT,Tu.SUBSTRACT),(0,B.Z)(wd,R.FUNC_REVERSE_SUBTRACT,Tu.REVERSE_SUBSTRACT),wd),v0=(Cu={},(0,B.Z)(Cu,R.ZERO,la.ZERO),(0,B.Z)(Cu,R.ONE,la.ONE),(0,B.Z)(Cu,R.SRC_COLOR,la.SRC),(0,B.Z)(Cu,R.ONE_MINUS_SRC_COLOR,la.ONE_MINUS_SRC),(0,B.Z)(Cu,R.SRC_ALPHA,la.SRC_ALPHA),(0,B.Z)(Cu,R.ONE_MINUS_SRC_ALPHA,la.ONE_MINUS_SRC_ALPHA),(0,B.Z)(Cu,R.DST_COLOR,la.DST),(0,B.Z)(Cu,R.ONE_MINUS_DST_COLOR,la.ONE_MINUS_DST),(0,B.Z)(Cu,R.DST_ALPHA,la.DST_ALPHA),(0,B.Z)(Cu,R.ONE_MINUS_DST_ALPHA,la.ONE_MINUS_DST_ALPHA),(0,B.Z)(Cu,R.CONSTANT_COLOR,la.CONST),(0,B.Z)(Cu,R.ONE_MINUS_CONSTANT_COLOR,la.ONE_MINUS_CONSTANT),(0,B.Z)(Cu,R.CONSTANT_ALPHA,la.CONST),(0,B.Z)(Cu,R.ONE_MINUS_CONSTANT_ALPHA,la.ONE_MINUS_CONSTANT),(0,B.Z)(Cu,R.SRC_ALPHA_SATURATE,la.SRC_ALPHA_SATURATE),Cu),dF={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121};function m0(e){return Object.prototype.toString.call(e)in dF}var vF=function(){function e(r,t){(0,Q.Z)(this,e),(0,B.Z)(this,"isDestroyed",!1);var n=t.data,i=t.usage,o=t.type,s=t.isUBO,l;m0(n)?l=n:l=new d0[this.type||R.FLOAT](n),this.type=o,this.size=l.byteLength,this.buffer=r.createBuffer({viewOrSize:l,usage:s?no.UNIFORM:no.VERTEX,hint:fF[i||R.STATIC_DRAW]})}return(0,j.Z)(e,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){this.isDestroyed||this.buffer.destroy(),this.isDestroyed=!0}},{key:"subData",value:function(t){var n=t.data,i=t.offset,o;m0(n)?o=n:o=new d0[this.type||R.FLOAT](n),this.buffer.setSubData(i,new Uint8Array(o.buffer))}}]),e}(),mF=function(){function e(r,t){(0,Q.Z)(this,e);var n=t.data,i=t.type,o=t.count,s=o===void 0?0:o,l;m0(n)?l=n:l=new d0[this.type||R.UNSIGNED_INT](n),this.type=i,this.count=s,this.indexBuffer=r.createBuffer({viewOrSize:l,usage:no.INDEX})}return(0,j.Z)(e,[{key:"get",value:function(){return this.indexBuffer}},{key:"subData",value:function(t){var n=t.data,i;m0(n)?i=n:i=new d0[this.type||R.UNSIGNED_INT](n),this.indexBuffer.setSubData(0,new Uint8Array(i.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),e}();function gF(e){return!1}var _F=function(){function e(r,t){(0,Q.Z)(this,e),(0,B.Z)(this,"isDestroy",!1);var n=t.data,i=t.type,o=i===void 0?R.UNSIGNED_BYTE:i,s=t.width,l=t.height,f=t.flipY,v=f===void 0?!1:f,y=t.format,b=y===void 0?R.RGBA:y,T=t.wrapS,M=T===void 0?R.CLAMP_TO_EDGE:T,O=t.wrapT,F=O===void 0?R.CLAMP_TO_EDGE:O,$=t.alignment,G=$===void 0?1:$;this.width=s,this.height=l;var ue=Mt.U8_RGBA_RT;if(o===R.UNSIGNED_BYTE&&b===R.RGBA)ue=Mt.U8_RGBA_RT;else if(b===R.LUMINANCE&&o===R.FLOAT)ue=Mt.F32_LUMINANCE;else if(b===R.LUMINANCE&&o===R.UNSIGNED_BYTE)ue=Mt.U8_LUMINANCE;else throw new Error("create texture error, type: ".concat(o,", format: ").concat(b));this.texture=r.createTexture({format:ue,width:s,height:l,usage:Ec.SAMPLED,pixelStore:{unpackFlipY:v,packAlignment:G}}),n&&this.texture.setImageData([n]),this.sampler=r.createSampler({addressModeU:e2[M],addressModeV:e2[F],minFilter:vs.POINT,magFilter:vs.BILINEAR,mipmapFilter:Xs.NO_MIP,lodMinClamp:0,lodMaxClamp:0})}return(0,j.Z)(e,[{key:"get",value:function(){return this.texture}},{key:"update",value:function(t){var n=t.data;this.texture.setImageData([n])}},{key:"bind",value:function(){}},{key:"resize",value:function(t){var n=t.width,i=t.height;this.width=n,this.height=i}},{key:"getSize",value:function(){return[this.width,this.height]}},{key:"destroy",value:function(){if(!this.isDestroy){var t;(t=this.texture)===null||t===void 0||t.destroy()}this.isDestroy=!0}}]),e}(),yF=function(){function e(r,t){(0,Q.Z)(this,e),this.device=r;var n=t.width,i=t.height,o=t.color;gF(o)?(this.renderTarget=r.createRenderTargetFromTexture(o.get()),this.width=o.width,this.height=o.height):n&&i&&(this.renderTarget=r.createRenderTarget({format:Mt.U8_RGBA_RT,width:n,height:i}),this.width=n,this.height=i)}return(0,j.Z)(e,[{key:"get",value:function(){return this.renderTarget}},{key:"destroy",value:function(){this.renderTarget.destroy()}},{key:"resize",value:function(t){var n=t.width,i=t.height;(this.width!==n||this.height!==i)&&(this.renderTarget&&this.renderTarget.destroy(),this.renderTarget=this.device.createRenderTarget({format:Mt.U8_RGBA_RT,width:n,height:i}),this.width=n,this.height=i)}}]),e}(),xF=oi.isPlainObject,bF=oi.isTypedArray,EF=function(){function e(r,t){var n=this;(0,Q.Z)(this,e),(0,B.Z)(this,"destroyed",!1),(0,B.Z)(this,"uniforms",{}),(0,B.Z)(this,"vertexBuffers",[]),this.device=r,this.options=t;var i=t.vs,o=t.fs,s=t.attributes,l=t.uniforms,f=t.count,v=t.elements;this.options=t;var y=r.createProgram({vertex:{glsl:i},fragment:{glsl:o}});this.program=y,l&&(this.uniforms=this.extractUniforms(l));var b=[],T=0;Object.keys(s).forEach(function(O){var F=s[O],$=F.get();n.vertexBuffers.push($.get());var G=F.attribute,ue=G.offset,xe=ue===void 0?0:ue,ze=G.stride,Je=ze===void 0?0:ze,ht=G.size,gt=ht===void 0?1:ht,Ot=G.divisor,tr=Ot===void 0?0:Ot,Ir=G.shaderLocation,Er=Ir===void 0?0:Ir;b.push({arrayStride:Je||gt*4,stepMode:Sd.VERTEX,attributes:[{format:cF[gt],shaderLocation:Er,offset:xe,divisor:tr}]}),T=$.size/gt}),f||(this.options.count=T),v&&(this.indexBuffer=v.get());var M=r.createInputLayout({vertexBufferDescriptors:b,indexBufferFormat:v?Mt.U32_R:null,program:y});this.inputLayout=M,this.pipeline=this.createPipeline(t)}return(0,j.Z)(e,[{key:"createPipeline",value:function(t){var n=t.primitive,i=n===void 0?R.TRIANGLES:n,o=t.depth,s=t.cull,l=t.blend,f=this.initDepthDrawParams({depth:o}),v=!!(f&&f.enable),y=this.initCullDrawParams({cull:s}),b=!!(y&&y.enable),T=this.getBlendDrawParams({blend:l}),M=!!(T&&T.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:lF[i],colorAttachmentFormats:[Mt.U8_RGBA_RT],depthStencilAttachmentFormat:Mt.D24_S8,megaStateDescriptor:{attachmentsState:[{channelWriteMask:wu.ALL,rgbBlendState:{blendMode:M&&T.equation.rgb||Tu.ADD,blendSrcFactor:M&&T.func.srcRGB||la.SRC_ALPHA,blendDstFactor:M&&T.func.dstRGB||la.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:M&&T.equation.alpha||Tu.ADD,blendSrcFactor:M&&T.func.srcAlpha||la.ONE,blendDstFactor:M&&T.func.dstAlpha||la.ONE_MINUS_SRC_ALPHA}}],blendConstant:A_,depthWrite:v,depthCompare:v&&f.func||_a.LESS,cullMode:b&&y.face||Wl.NONE,stencilWrite:!1}})}},{key:"updateAttributesAndElements",value:function(){}},{key:"updateAttributes",value:function(){}},{key:"addUniforms",value:function(t){this.uniforms=(0,V.Z)((0,V.Z)({},this.uniforms),this.extractUniforms(t))}},{key:"draw",value:function(t){var n=(0,V.Z)((0,V.Z)({},this.options),t),i=n.count,o=i===void 0?0:i,s=n.instances,l=n.elements,f=n.uniforms,v=f===void 0?{}:f,y=n.uniformBuffers,b=n.textures;this.uniforms=(0,V.Z)((0,V.Z)({},this.uniforms),this.extractUniforms(v));var T=this.device,M=T.width,O=T.height,F=this.device.renderPass;if(this.pipeline=this.createPipeline(n),F.setPipeline(this.pipeline),F.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(G){return{buffer:G}}),l?{buffer:this.indexBuffer,offset:0}:null),F.setViewport(0,0,M,O),y&&(this.bindings=this.device.createBindings({pipeline:this.pipeline,uniformBufferBindings:y.map(function(G,ue){var xe=G;return{binding:ue,buffer:xe.get(),size:xe.size}}),samplerBindings:b==null?void 0:b.map(function(G){return{texture:G.texture,sampler:G.sampler}})})),this.bindings&&(F.setBindings(this.bindings),this.program.setUniformsLegacy(this.uniforms)),l){var $=l.count;$===0?F.draw(o,s):F.drawIndexed($,s)}else F.draw(o,s)}},{key:"destroy",value:function(){var t,n,i;this.program.destroy(),(t=this.vertexBuffers)===null||t===void 0||t.forEach(function(o){return o.destroy()}),(n=this.indexBuffer)===null||n===void 0||n.destroy(),(i=this.bindings)===null||i===void 0||i.destroy(),this.inputLayout.destroy(),this.pipeline.destroy(),this.destroyed=!0}},{key:"initDepthDrawParams",value:function(t){var n=t.depth;if(n)return{enable:n.enable===void 0?!0:!!n.enable,mask:n.mask===void 0?!0:!!n.mask,func:hF[n.func||R.LESS],range:n.range||[0,1]}}},{key:"getBlendDrawParams",value:function(t){var n=t.blend,i=n||{},o=i.enable,s=i.func,l=i.equation,f=i.color,v=f===void 0?[0,0,0,0]:f;return{enable:!!o,func:{srcRGB:v0[s&&s.srcRGB||R.SRC_ALPHA],srcAlpha:v0[s&&s.srcAlpha||R.SRC_ALPHA],dstRGB:v0[s&&s.dstRGB||R.ONE_MINUS_SRC_ALPHA],dstAlpha:v0[s&&s.dstAlpha||R.ONE_MINUS_SRC_ALPHA]},equation:{rgb:t2[l&&l.rgb||R.FUNC_ADD],alpha:t2[l&&l.alpha||R.FUNC_ADD]},color:v}}},{key:"initCullDrawParams",value:function(t){var n=t.cull;if(n){var i=n.enable,o=n.face,s=o===void 0?R.BACK:o;return{enable:!!i,face:pF[s]}}}},{key:"extractUniforms",value:function(t){var n=this,i={};return Object.keys(t).forEach(function(o){n.extractUniformsRecursively(o,t[o],i,"")}),i}},{key:"extractUniformsRecursively",value:function(t,n,i,o){var s=this;if(n===null||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&typeof n[0]=="number"||bF(n)||n===""||"resize"in n){i["".concat(o&&o+".").concat(t)]=n;return}xF(n)&&Object.keys(n).forEach(function(l){s.extractUniformsRecursively(l,n[l],i,"".concat(o&&o+".").concat(t))}),Array.isArray(n)&&n.forEach(function(l,f){Object.keys(l).forEach(function(v){s.extractUniformsRecursively(v,l[v],i,"".concat(o&&o+".").concat(t,"[").concat(f,"]"))})})}}]),e}();function SF(e){return typeof WebGL2RenderingContext!="undefined"&&e instanceof WebGL2RenderingContext?!0:!!(e&&e._version===2)}var r2,n2,AF=(r2=(0,yt.b2)(),r2(n2=function(){function e(){var r=this;(0,Q.Z)(this,e),(0,B.Z)(this,"uniformBuffers",[]),(0,B.Z)(this,"createModel",function(t){return new EF(r.device,t)}),(0,B.Z)(this,"createAttribute",function(t){return new uF(r.device,t)}),(0,B.Z)(this,"createBuffer",function(t){return new vF(r.device,t)}),(0,B.Z)(this,"createElements",function(t){return new mF(r.device,t)}),(0,B.Z)(this,"createTexture2D",function(t){return new _F(r.device,t)}),(0,B.Z)(this,"createFramebuffer",function(t){return new yF(r.device,t)}),(0,B.Z)(this,"useFramebuffer",function(){}),(0,B.Z)(this,"clear",function(){}),(0,B.Z)(this,"viewport",function(t){var n=t.width,i=t.height;r.width=n,r.height=i,r.device.width=n,r.device.height=i}),(0,B.Z)(this,"readPixels",function(){return new Uint8Array}),(0,B.Z)(this,"getViewportSize",function(){return{width:r.device.width,height:r.device.height}}),(0,B.Z)(this,"getContainer",function(){var t;return(t=r.canvas)===null||t===void 0?void 0:t.parentElement}),(0,B.Z)(this,"getCanvas",function(){return r.canvas}),(0,B.Z)(this,"getGLContext",function(){return r.device.gl}),(0,B.Z)(this,"destroy",function(){var t;r.canvas=null,(t=r.uniformBuffers)===null||t===void 0||t.forEach(function(n){n.destroy()}),r.device.destroy()})}return(0,j.Z)(e,[{key:"init",value:function(){var r=(0,Pt.Z)(ge().mark(function n(i,o){var s,l,f,v,y,b;return ge().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s=o.enableWebGPU,l=o.shaderCompilerPath,this.canvas=i,f=s?new rF({shaderCompilerPath:l}):new pD({targets:["webgl2","webgl1"],onContextLost:function(F){console.warn("context lost",F)},onContextCreationError:function(F){console.warn("context creation error",F)},onContextRestored:function(F){console.warn("context restored",F)}}),M.next=5,f.createSwapChain(i);case 5:v=M.sent,v.configureSwapChain(i.width,i.height),this.device=v.getDevice(),this.swapChain=v,y=this.device.gl,this.extensionObject={OES_texture_float:!SF(y)&&this.device.OES_texture_float},b=this.device.createTexture({format:Mt.U8_RGBA_RT,width:i.width,height:i.height,usage:Ec.RENDER_TARGET}),this.renderTarget=this.device.createRenderTargetFromTexture(b),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:Mt.D24_S8,width:i.width,height:i.height,usage:Ec.RENDER_TARGET}));case 14:case"end":return M.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"beginFrame",value:function(){var t=this.swapChain.getOnscreenTexture();this.renderPass=this.device.createRenderPass({colorAttachment:[this.renderTarget],colorResolveTo:[t],colorClearColor:[A_],depthStencilAttachment:this.mainDepthRT,depthClearValue:1}),this.device.renderPass=this.renderPass}},{key:"endFrame",value:function(){this.device.submitPass(this.renderPass)}},{key:"getPointSizeRange",value:function(){var t=this.device.gl;return t.getParameter(t.ALIASED_POINT_SIZE_RANGE)}},{key:"testExtension",value:function(t){return!!this.getGLContext().getExtension(t)}},{key:"setState",value:function(){}},{key:"setBaseState",value:function(){}},{key:"setCustomLayerDefaults",value:function(){}},{key:"setDirty",value:function(t){this.isDirty=t}},{key:"getDirty",value:function(){return this.isDirty}}]),e}())||n2);function TF(e){var r=wF();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function wF(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var F_=["selectstart","selecting","selectend"],CF=function(e){(0,Le.Z)(t,e);var r=TF(t);function t(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,Q.Z)(this,t),i=r.call(this),(0,B.Z)((0,Fe.Z)(i),"isEnable",!1),(0,B.Z)((0,Fe.Z)(i),"onDragStart",function(s){i.box.style.display="block",i.startEvent=i.endEvent=s,i.syncBoxBound(),i.emit("selectstart",i.getLngLatBox(),i.startEvent,i.endEvent)}),(0,B.Z)((0,Fe.Z)(i),"onDragging",function(s){i.endEvent=s,i.syncBoxBound(),i.emit("selecting",i.getLngLatBox(),i.startEvent,i.endEvent)}),(0,B.Z)((0,Fe.Z)(i),"onDragEnd",function(s){i.endEvent=s,i.box.style.display="none",i.emit("selectend",i.getLngLatBox(),i.startEvent,i.endEvent)}),i.scene=n,i.options=o,i}return(0,j.Z)(t,[{key:"container",get:function(){return this.scene.getMapService().getMarkerContainer()}},{key:"enable",value:function(){if(!this.isEnable){var i=this.options.className;if(this.scene.setMapStatus({dragEnable:!1}),this.container.style.cursor="crosshair",!this.box){var o=ta("div",void 0,this.container);o.classList.add("l7-select-box"),i&&o.classList.add(i),o.style.display="none",this.box=o}this.scene.on("dragstart",this.onDragStart),this.scene.on("dragging",this.onDragging),this.scene.on("dragend",this.onDragEnd),this.isEnable=!0}}},{key:"disable",value:function(){this.isEnable&&(this.scene.setMapStatus({dragEnable:!0}),this.container.style.cursor="auto",this.scene.off("dragstart",this.onDragStart),this.scene.off("dragging",this.onDragging),this.scene.off("dragend",this.onDragEnd),this.isEnable=!1)}},{key:"syncBoxBound",value:function(){var i=this.startEvent,o=i.x,s=i.y,l=this.endEvent,f=l.x,v=l.y,y=Math.min(o,f),b=Math.min(s,v),T=Math.abs(o-f),M=Math.abs(s-v);this.box.style.top="".concat(b,"px"),this.box.style.left="".concat(y,"px"),this.box.style.width="".concat(T,"px"),this.box.style.height="".concat(M,"px")}},{key:"getLngLatBox",value:function(){var i=this.startEvent.lngLat,o=i.lng,s=i.lat,l=this.endEvent.lngLat,f=l.lng,v=l.lat;return op([[o,s],[f,v]])}}]),t}(io.EventEmitter),RF=function(){function e(r){(0,Q.Z)(this,e);var t=r.id,n=r.map,i=r.canvas,o=r.hasBaseMap,s=r.renderer,l=s===void 0?"regl":s,f=xA();this.container=f,n.setContainer(f,t,i,o),f.bind(ot.IRendererService).to(l==="regl"?sF:AF).inSingletonScope(),this.sceneService=f.get(ot.ISceneService),this.mapService=f.get(ot.IMapService),this.iconService=f.get(ot.IIconService),this.fontService=f.get(ot.IFontService),this.controlService=f.get(ot.IControlService),this.layerService=f.get(ot.ILayerService),this.debugService=f.get(ot.IDebugService),this.debugService.setEnable(r.debug),this.markerService=f.get(ot.IMarkerService),this.interactionService=f.get(ot.IInteractionService),this.popupService=f.get(ot.IPopupService),this.boxSelect=new CF(this,{}),this.initComponent(t),this.sceneService.init(r),this.initControl()}return(0,j.Z)(e,[{key:"map",get:function(){return this.mapService.map}},{key:"loaded",get:function(){return this.sceneService.loaded}},{key:"getServiceContainer",value:function(){return this.container}},{key:"getSize",value:function(){return this.mapService.getSize()}},{key:"getMinZoom",value:function(){return this.mapService.getMinZoom()}},{key:"getMaxZoom",value:function(){return this.mapService.getMaxZoom()}},{key:"getType",value:function(){return this.mapService.getType()}},{key:"getMapContainer",value:function(){return this.mapService.getMapContainer()}},{key:"getMapCanvasContainer",value:function(){return this.mapService.getMapCanvasContainer()}},{key:"getMapService",value:function(){return this.mapService}},{key:"getDebugService",value:function(){return this.debugService}},{key:"exportPng",value:function(){var r=(0,Pt.Z)(ge().mark(function n(i){return ge().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",this.sceneService.exportPng(i));case 1:case"end":return s.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"exportMap",value:function(){var r=(0,Pt.Z)(ge().mark(function n(i){return ge().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",this.sceneService.exportPng(i));case 1:case"end":return s.stop()}},n,this)}));function t(n){return r.apply(this,arguments)}return t}()},{key:"registerRenderService",value:function(t){var n=this;if(this.sceneService.loaded){var i=new t(this);i.init()}else this.on("loaded",function(){var o=new t(n);o.init()})}},{key:"setBgColor",value:function(t){this.mapService.setBgColor(t)}},{key:"addLayer",value:function(t){var n=this,i=lm(this.container);if(t.setContainer(i,this.container),this.sceneService.addLayer(t),t.inited){var o=this.initMask(t);this.addMask(o,t.id)}else t.on("inited",function(){var s=n.initMask(t);n.addMask(s,t.id)})}},{key:"initMask",value:function(t){var n=t.getLayerConfig(),i=n.mask,o=n.maskfence,s=n.maskColor,l=s===void 0?"#000":s,f=n.maskOpacity,v=f===void 0?0:f;if(!(!i||!o)){var y=new ix().source(o).shape("fill").style({color:l,opacity:v});return y}}},{key:"addMask",value:function(t,n){if(t){var i=this.getLayer(n);if(i){var o=lm(this.container);t.setContainer(o,this.container),i.addMaskLayer(t),this.sceneService.addMask(t)}else console.warn("parent layer not find!")}}},{key:"getPickedLayer",value:function(){return this.layerService.pickedLayerId}},{key:"getLayers",value:function(){return this.layerService.getLayers()}},{key:"getLayer",value:function(t){return this.layerService.getLayer(t)}},{key:"getLayerByName",value:function(t){return this.layerService.getLayerByName(t)}},{key:"removeLayer",value:function(){var r=(0,Pt.Z)(ge().mark(function n(i,o){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.layerService.remove(i,o);case 2:case"end":return l.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"removeAllLayer",value:function(){var r=(0,Pt.Z)(ge().mark(function n(){return ge().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.layerService.removeAllLayers();case 2:case"end":return o.stop()}},n,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"render",value:function(){this.sceneService.render()}},{key:"setEnableRender",value:function(t){this.layerService.setEnableRender(t)}},{key:"addIconFont",value:function(t,n){this.fontService.addIconFont(t,n)}},{key:"addIconFonts",value:function(t){var n=this;t.forEach(function(i){var o=(0,Sn.Z)(i,2),s=o[0],l=o[1];n.fontService.addIconFont(s,l)})}},{key:"addFontFace",value:function(t,n){var i=this;this.fontService.once("fontloaded",function(o){i.emit("fontloaded",o)}),this.fontService.addFontFace(t,n)}},{key:"addImage",value:function(){var r=(0,Pt.Z)(ge().mark(function n(i,o){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.iconService.addImage(i,o);case 2:case"end":return l.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"hasImage",value:function(t){return this.iconService.hasImage(t)}},{key:"removeImage",value:function(t){this.iconService.removeImage(t)}},{key:"addIconFontGlyphs",value:function(t,n){this.fontService.addIconGlyphs(n)}},{key:"addControl",value:function(t){this.controlService.addControl(t,this.container)}},{key:"removeControl",value:function(t){this.controlService.removeControl(t)}},{key:"getControlByName",value:function(t){return this.controlService.getControlByName(t)}},{key:"addMarker",value:function(t){this.markerService.addMarker(t)}},{key:"addMarkerLayer",value:function(t){this.markerService.addMarkerLayer(t)}},{key:"removeMarkerLayer",value:function(t){this.markerService.removeMarkerLayer(t)}},{key:"removeAllMarkers",value:function(){this.markerService.removeAllMarkers()}},{key:"removeAllMakers",value:function(){console.warn("removeAllMakers \u5DF2\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 removeAllMarkers"),this.markerService.removeAllMarkers()}},{key:"addPopup",value:function(t){this.popupService.addPopup(t)}},{key:"removePopup",value:function(t){this.popupService.removePopup(t)}},{key:"on",value:function(t,n){if(F_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.on(t,n)}else gg.includes(t)?this.sceneService.on(t,n):this.mapService.on(t,n)}},{key:"once",value:function(t,n){if(F_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.once(t,n)}else gg.includes(t)?this.sceneService.once(t,n):this.mapService.once(t,n)}},{key:"emit",value:function(t,n){gg.indexOf(t)===-1?this.mapService.on(t,n):this.sceneService.emit(t,n)}},{key:"off",value:function(t,n){if(F_.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.off(t,n)}else gg.includes(t)?this.sceneService.off(t,n):this.mapService.off(t,n)}},{key:"getZoom",value:function(){return this.mapService.getZoom()}},{key:"getCenter",value:function(t){return this.mapService.getCenter(t)}},{key:"setCenter",value:function(t,n){return this.mapService.setCenter(t,n)}},{key:"getPitch",value:function(){return this.mapService.getPitch()}},{key:"setPitch",value:function(t){return this.mapService.setPitch(t)}},{key:"getRotation",value:function(){return this.mapService.getRotation()}},{key:"getBounds",value:function(){return this.mapService.getBounds()}},{key:"setRotation",value:function(t){this.mapService.setRotation(t)}},{key:"zoomIn",value:function(){this.mapService.zoomIn()}},{key:"zoomOut",value:function(){this.mapService.zoomOut()}},{key:"panTo",value:function(t){this.mapService.panTo(t)}},{key:"panBy",value:function(t,n){this.mapService.panBy(t,n)}},{key:"getContainer",value:function(){return this.mapService.getContainer()}},{key:"setZoom",value:function(t){this.mapService.setZoom(t)}},{key:"fitBounds",value:function(t,n){var i=this.sceneService.getSceneConfig(),o=i.fitBoundsOptions,s=i.animate;this.mapService.fitBounds(t,n||(0,V.Z)((0,V.Z)({},o),{},{animate:s}))}},{key:"setZoomAndCenter",value:function(t,n){this.mapService.setZoomAndCenter(t,n)}},{key:"setMapStyle",value:function(t){this.mapService.setMapStyle(t)}},{key:"setMapStatus",value:function(t){this.mapService.setMapStatus(t)}},{key:"pixelToLngLat",value:function(t){return this.mapService.pixelToLngLat(t)}},{key:"lngLatToPixel",value:function(t){return this.mapService.lngLatToPixel(t)}},{key:"containerToLngLat",value:function(t){return this.mapService.containerToLngLat(t)}},{key:"lngLatToContainer",value:function(t){return this.mapService.lngLatToContainer(t)}},{key:"destroy",value:function(){this.sceneService.destroy()}},{key:"registerPostProcessingPass",value:function(t,n){this.container.bind(ot.IPostProcessingPass).to(t).whenTargetNamed(n)}},{key:"enableShaderPick",value:function(){this.layerService.enableShaderPick()}},{key:"diasbleShaderPick",value:function(){this.layerService.disableShaderPick()}},{key:"enableBoxSelect",value:function(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.boxSelect.enable(),n&&this.boxSelect.once("selectend",function(){t.disableBoxSelect()})}},{key:"disableBoxSelect",value:function(){this.boxSelect.disable()}},{key:"getProtocol",value:function(t){return en.REGISTERED_PROTOCOLS[t]}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(t){this.controlService.init({container:Ds(t)},this.container),this.markerService.init(this.container),this.popupService.init(this.container)}},{key:"initControl",value:function(){var t=this.sceneService.getSceneConfig(),n=t.logoVisible,i=t.logoPosition;n&&this.addControl(new t1({position:i}))}}],[{key:"addProtocol",value:function(t,n){en.REGISTERED_PROTOCOLS[t]=n}},{key:"removeProtocol",value:function(t){delete en.REGISTERED_PROTOCOLS[t]}}]),e}(),VN="2.20.5";function Vm(e){"@babel/helpers - typeof";return Vm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Vm(e)}function i2(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function jN(e){for(var r=1;re.length)&&(r=e.length);for(var t=0,n=new Array(r);t0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.map.panBy([t,n])}},{key:"fitBounds",value:function(t,n){this.map.fitBounds(t,n)}},{key:"setMaxZoom",value:function(t){this.map.setMaxZoom(t)}},{key:"setMinZoom",value:function(t){this.map.setMinZoom(t)}},{key:"setMapStatus",value:function(t){t.doubleClickZoom===!0&&this.map.doubleClickZoom.enable(),t.doubleClickZoom===!1&&this.map.doubleClickZoom.disable(),t.dragEnable===!1&&this.map.dragPan.disable(),t.dragEnable===!0&&this.map.dragPan.enable(),t.rotateEnable===!1&&this.map.dragRotate.disable(),t.dragEnable===!0&&this.map.dragRotate.enable(),t.keyboardEnable===!1&&this.map.keyboard.disable(),t.keyboardEnable===!0&&this.map.keyboard.enable(),t.zoomEnable===!1&&this.map.scrollZoom.disable(),t.zoomEnable===!0&&this.map.scrollZoom.enable()}},{key:"setZoomAndCenter",value:function(t,n){this.map.flyTo({zoom:t,center:n})}},{key:"setMapStyle",value:function(t){this.map.setStyle(this.getMapStyleValue(t))}},{key:"meterToCoord",value:function(t,n){return 1}},{key:"pixelToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToPixel",value:function(t){return this.map.project(t)}},{key:"containerToLngLat",value:function(t){return this.map.unproject(t)}},{key:"lngLatToContainer",value:function(t){return this.map.project(t)}},{key:"getMapStyle",value:function(){try{var t,n=(t=this.map.getStyle().sprite)!==null&&t!==void 0?t:"";return/^mapbox:\/\/sprites\/zcxduo\/\w+\/\w+$/.test(n)?n==null?void 0:n.replace(/\/\w+$/,"").replace(/sprites/,"styles"):n}catch(i){return""}}},{key:"getMapStyleConfig",value:function(){return UF}},{key:"getMapStyleValue",value:function(t){var n;return(n=this.getMapStyleConfig()[t])!==null&&n!==void 0?n:t}},{key:"destroy",value:function(){this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(t){for(var n,i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1?i-1:0),s=1;szF&&n?this.coordinateSystemService.setCoordinateSystem(zl.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(zl.LNGLAT)}}]),e}(),d2=ki(Dv.prototype,"config",[l2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),v2=ki(Dv.prototype,"configService",[c2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m2=ki(Dv.prototype,"coordinateSystemService",[f2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),g2=ki(Dv.prototype,"eventEmitter",[h2],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Dv))||p2);function Hm(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function g0(e,r){var t=Fh.fF([],r,e);return Fh.bA(t,t,1/t[3]),t}function XN(e,r){var t=e%r;return t<0?r+t:t}function $N(e,r,t){return t*r+(1-t)*e}function Cd(e,r){if(!e)throw new Error(r||"viewport-mercator-project: assertion failed.")}var wf=Math.PI,y2=wf/4,qh=wf/180,x2=180/wf,B_=512,L_=4003e4,VF=1.5;function b2(e){return Math.pow(2,e)}function jF(e){return Math.log2(e)}function _0(e,r){var t=(0,Sn.Z)(e,2),n=t[0],i=t[1];Cd(Number.isFinite(n)&&Number.isFinite(r)),Cd(Number.isFinite(i)&&i>=-90&&i<=90,"invalid latitude"),r*=B_;var o=n*qh,s=i*qh,l=r*(o+wf)/(2*wf),f=r*(wf-Math.log(Math.tan(y2+s*.5)))/(2*wf);return[l,f]}function N_(e,r){var t=(0,Sn.Z)(e,2),n=t[0],i=t[1];r*=B_;var o=n/r*(2*wf)-wf,s=2*(Math.atan(Math.exp(wf-i/r*(2*wf)))-y2);return[o*x2,s*x2]}function YN(e){var r=e.latitude;assert(Number.isFinite(r));var t=Math.cos(r*qh);return jF(L_*t)-9}function E2(e){var r=e.latitude,t=e.longitude,n=e.zoom,i=e.scale,o=e.highPrecision,s=o===void 0?!1:o;i=i!==void 0?i:b2(n),Cd(Number.isFinite(r)&&Number.isFinite(t)&&Number.isFinite(i));var l={},f=B_*i,v=Math.cos(r*qh),y=f/360,b=y/v,T=f/L_/v;if(l.pixelsPerMeter=[T,-T,T],l.metersPerPixel=[1/T,-1/T,1/T],l.pixelsPerDegree=[y,-b,T],l.degreesPerPixel=[1/y,-1/b,1/T],s){var M=qh*Math.tan(r*qh)/v,O=y*M/2,F=f/L_*M,$=F/b*T;l.pixelsPerDegree2=[0,-O,F],l.pixelsPerMeter2=[$,0,$]}return l}function qN(e,r){var t=_slicedToArray(e,3),n=t[0],i=t[1],o=t[2],s=_slicedToArray(r,3),l=s[0],f=s[1],v=s[2],y=1,b=E2({longitude:n,latitude:i,scale:y,highPrecision:!0}),T=b.pixelsPerMeter,M=b.pixelsPerMeter2,O=_0(e,y);O[0]+=l*(T[0]+M[0]*f),O[1]+=f*(T[1]+M[1]*f);var F=N_(O,y),$=(o||0)+(v||0);return Number.isFinite(o)||Number.isFinite(v)?[F[0],F[1],$]:F}function HF(e){var r=e.height,t=e.pitch,n=e.bearing,i=e.altitude,o=e.center,s=o===void 0?null:o,l=e.flipY,f=l===void 0?!1:l,v=Hm();return me.translate(v,v,[0,0,-i]),me.scale(v,v,[1,1,1/r]),me.rotateX(v,v,-t*qh),me.rotateZ(v,v,n*qh),f&&me.scale(v,v,[1,-1,1]),s&&me.translate(v,v,La.negate([],s)),v}function WF(e){var r=e.width,t=e.height,n=e.altitude,i=n===void 0?VF:n,o=e.pitch,s=o===void 0?0:o,l=e.nearZMultiplier,f=l===void 0?1:l,v=e.farZMultiplier,y=v===void 0?1:v,b=s*qh,T=Math.atan(.5/i),M=Math.sin(T)*i/Math.sin(Math.PI/2-b-T),O=Math.cos(Math.PI/2-b)*M+i;return{fov:2*Math.atan(t/2/i),aspect:r/t,focalDistance:i,near:f,far:O*y}}function GF(e){var r=e.width,t=e.height,n=e.pitch,i=e.altitude,o=e.nearZMultiplier,s=e.farZMultiplier,l=WF({width:r,height:t,altitude:i,pitch:n,nearZMultiplier:o,farZMultiplier:s}),f=l.fov,v=l.aspect,y=l.near,b=l.far,T=me.perspective([],f,v,y,b);return T}function XF(e,r){var t=(0,Sn.Z)(e,3),n=t[0],i=t[1],o=t[2],s=o===void 0?0:o;return Cd(Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(s)),g0(r,[n,i,s,1])}function S2(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=(0,Sn.Z)(e,3),i=n[0],o=n[1],s=n[2];if(Cd(Number.isFinite(i)&&Number.isFinite(o),"invalid pixel coordinate"),Number.isFinite(s)){var l=g0(r,[i,o,s,1]);return l}var f=g0(r,[i,o,0,1]),v=g0(r,[i,o,1,1]),y=f[2],b=v[2],T=y===b?0:((t||0)-y)/(b-y);return Or.t7([],f,v,T)}var A2=Hm(),$F=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.width,n=r.height,i=r.viewMatrix,o=i===void 0?A2:i,s=r.projectionMatrix,l=s===void 0?A2:s;(0,Q.Z)(this,e),this.width=t||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=o,this.projectionMatrix=l;var f=Hm();me.multiply(f,f,this.projectionMatrix),me.multiply(f,f,this.viewMatrix),this.viewProjectionMatrix=f;var v=Hm();me.scale(v,v,[this.width/2,-this.height/2,1]),me.translate(v,v,[1,-1,0]),me.multiply(v,v,this.viewProjectionMatrix);var y=me.invert(Hm(),v);if(!y)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=v,this.pixelUnprojectionMatrix=y,this.equals=this.equals.bind(this),this.project=this.project.bind(this),this.unproject=this.unproject.bind(this),this.projectPosition=this.projectPosition.bind(this),this.unprojectPosition=this.unprojectPosition.bind(this),this.projectFlat=this.projectFlat.bind(this),this.unprojectFlat=this.unprojectFlat.bind(this)}return(0,j.Z)(e,[{key:"equals",value:function(t){return t instanceof e?t.width===this.width&&t.height===this.height&&me.equals(t.projectionMatrix,this.projectionMatrix)&&me.equals(t.viewMatrix,this.viewMatrix):!1}},{key:"project",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.topLeft,o=i===void 0?!0:i,s=this.projectPosition(t),l=XF(s,this.pixelProjectionMatrix),f=(0,Sn.Z)(l,2),v=f[0],y=f[1],b=o?y:this.height-y;return t.length===2?[v,b]:[v,b,l[2]]}},{key:"unproject",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.topLeft,o=i===void 0?!0:i,s=n.targetZ,l=(0,Sn.Z)(t,3),f=l[0],v=l[1],y=l[2],b=o?v:this.height-v,T=s&&s*this.pixelsPerMeter,M=S2([f,b,y],this.pixelUnprojectionMatrix,T),O=this.unprojectPosition(M),F=(0,Sn.Z)(O,3),$=F[0],G=F[1],ue=F[2];return Number.isFinite(y)?[$,G,ue]:Number.isFinite(s)?[$,G,s]:[$,G]}},{key:"projectPosition",value:function(t){var n=this.projectFlat(t),i=(0,Sn.Z)(n,2),o=i[0],s=i[1],l=(t[2]||0)*this.pixelsPerMeter;return[o,s,l]}},{key:"unprojectPosition",value:function(t){var n=this.unprojectFlat(t),i=(0,Sn.Z)(n,2),o=i[0],s=i[1],l=(t[2]||0)/this.pixelsPerMeter;return[o,s,l]}},{key:"projectFlat",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return t}},{key:"unprojectFlat",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return t}}]),e}();function YF(e){var r=e.width,t=e.height,n=e.bounds,i=e.minExtent,o=i===void 0?0:i,s=e.maxZoom,l=s===void 0?24:s,f=e.padding,v=f===void 0?0:f,y=e.offset,b=y===void 0?[0,0]:y,T=(0,Sn.Z)(n,2),M=(0,Sn.Z)(T[0],2),O=M[0],F=M[1],$=(0,Sn.Z)(T[1],2),G=$[0],ue=$[1];if(Number.isFinite(v)){var xe=v;v={top:xe,bottom:xe,left:xe,right:xe}}else Cd(Number.isFinite(v.top)&&Number.isFinite(v.bottom)&&Number.isFinite(v.left)&&Number.isFinite(v.right));var ze=new T2({width:r,height:t,longitude:0,latitude:0,zoom:0}),Je=ze.project([O,ue]),ht=ze.project([G,F]),gt=[Math.max(Math.abs(ht[0]-Je[0]),o),Math.max(Math.abs(ht[1]-Je[1]),o)],Ot=[r-v.left-v.right-Math.abs(b[0])*2,t-v.top-v.bottom-Math.abs(b[1])*2];Cd(Ot[0]>0&&Ot[1]>0);var tr=Ot[0]/gt[0],Ir=Ot[1]/gt[1],Er=(v.right-v.left)/2/tr,mn=(v.bottom-v.top)/2/Ir,Ln=[(ht[0]+Je[0])/2+Er,(ht[1]+Je[1])/2+mn],Fi=ze.unproject(Ln),xa=ze.zoom+Math.log2(Math.abs(Math.min(tr,Ir)));return{longitude:Fi[0],latitude:Fi[1],zoom:Math.min(xa,l)}}var T2=function(e){(0,Le.Z)(r,e);function r(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width,o=n.height,s=n.latitude,l=s===void 0?0:s,f=n.longitude,v=f===void 0?0:f,y=n.zoom,b=y===void 0?0:y,T=n.pitch,M=T===void 0?0:T,O=n.bearing,F=O===void 0?0:O,$=n.altitude,G=$===void 0?1.5:$,ue=n.nearZMultiplier,xe=n.farZMultiplier;(0,Q.Z)(this,r),i=i||1,o=o||1;var ze=b2(b);G=Math.max(.75,G);var Je=_0([v,l],ze);Je[2]=0;var ht=GF({width:i,height:o,pitch:M,bearing:F,altitude:G,nearZMultiplier:ue||1/o,farZMultiplier:xe||1.01}),gt=HF({height:o,center:Je,pitch:M,bearing:F,altitude:G,flipY:!0});return t=(0,at.Z)(this,(0,Ee.Z)(r).call(this,{width:i,height:o,viewMatrix:gt,projectionMatrix:ht})),t.latitude=l,t.longitude=v,t.zoom=b,t.pitch=M,t.bearing=F,t.altitude=G,t.scale=ze,t.center=Je,t.pixelsPerMeter=E2((0,Fe.Z)((0,Fe.Z)(t))).pixelsPerMeter[2],Object.freeze((0,Fe.Z)((0,Fe.Z)(t))),t}return(0,j.Z)(r,[{key:"projectFlat",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return _0(n,i)}},{key:"unprojectFlat",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return N_(n,i)}},{key:"getMapCenterByLngLatPosition",value:function(n){var i=n.lngLat,o=n.pos,s=S2(o,this.pixelUnprojectionMatrix),l=_0(i,this.scale),f=Or.IH([],l,Or.tk([],s)),v=Or.IH([],this.center,f);return N_(v,this.scale)}},{key:"getLocationAtPoint",value:function(n){var i=n.lngLat,o=n.pos;return this.getMapCenterByLngLatPosition({lngLat:i,pos:o})}},{key:"fitBounds",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.width,s=this.height,l=YF(Object.assign({width:o,height:s,bounds:n},i)),f=l.longitude,v=l.latitude,y=l.zoom;return new r({width:o,height:s,longitude:f,latitude:v,zoom:y})}}]),r}($F),qF=function(){function e(){(0,Q.Z)(this,e)}return(0,j.Z)(e,[{key:"syncWithMapCamera",value:function(t){var n=t.center,i=t.zoom,o=t.pitch,s=t.bearing,l=t.viewportHeight,f=t.viewportWidth;this.viewport=new T2({width:f,height:l,longitude:n&&n[0],latitude:n&&n[1],zoom:i,pitch:o,bearing:s})}},{key:"getZoom",value:function(){return this.viewport.zoom}},{key:"getZoomScale",value:function(){return Math.pow(2,this.getZoom())}},{key:"getCenter",value:function(){return[this.viewport.longitude,this.viewport.latitude]}},{key:"getProjectionMatrix",value:function(){return this.viewport.projectionMatrix}},{key:"getModelMatrix",value:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},{key:"getViewMatrix",value:function(){return this.viewport.viewMatrix}},{key:"getViewMatrixUncentered",value:function(){return this.viewport.viewMatrixUncentered}},{key:"getViewProjectionMatrix",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getViewProjectionMatrixUncentered",value:function(){return this.viewport.viewProjectionMatrix}},{key:"getFocalDistance",value:function(){return 1}},{key:"projectFlat",value:function(t,n){return this.viewport.projectFlat(t,n)}}]),e}(),KF=["id","attributionControl","style","token","rotation","mapInstance"],w2,C2;function QF(e){var r=JF();return function(){var n=(0,Ee.Z)(e),i;if(r){var o=(0,Ee.Z)(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return(0,at.Z)(this,i)}}function JF(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ek(e,r){var t=typeof my!="undefined"&&!!my&&typeof my.showToast=="function"&&my.isFRM!==!0,n=typeof wx!="undefined"&&wx!==null&&(typeof wx.request!="undefined"||typeof wx.miniProgram!="undefined");if(!(t||n)&&(r||(r=document),!!r)){var i=r.head||r.getElementsByTagName("head")[0];if(!i){i=r.createElement("head");var o=r.body||r.getElementsByTagName("body")[0];o?o.parentNode.insertBefore(i,o):r.documentElement.appendChild(i)}var s=r.createElement("style");return s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(r.createTextNode(e)),i.appendChild(s),s}}ek(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mapboxgl-canvas{position:absolute;left:0;top:0}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:pinch-zoom;touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{-ms-touch-action:none;touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2}.mapboxgl-ctrl-top-left{top:0;left:0}.mapboxgl-ctrl-top-right{top:0;right:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{right:0;bottom:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;-webkit-transform:translate(0);transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right}.mapboxgl-ctrl-group{border-radius:4px;background:#fff}.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 2px rgba(0,0,0,.1);box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){-webkit-box-shadow:0 0 0 2px ButtonText;box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:transparent;cursor:pointer}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-group button:focus:focus-visible{-webkit-box-shadow:0 0 2px 2px #0096ff;box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){-webkit-box-shadow:none;box-shadow:none}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E")}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(1turn)}}@keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,.5);margin:0}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:2px 24px 2px 0;margin:10px;position:relative;background-color:#fff;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 8px 2px 28px;border-radius:12px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{display:none;cursor:pointer;position:absolute;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");background-color:hsla(0,0%,100%,.5);width:24px;height:24px;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:12px;outline:none;top:0;right:0;border:0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner,.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:rgba(0,0,0,.05)}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;-webkit-box-sizing:border-box;box-sizing:border-box}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;will-change:transform;pointer-events:none}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.mapboxgl-popup-anchor-left{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.mapboxgl-popup-anchor-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-top:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;-ms-flex-item-align:end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;border-right:none;border-left-color:#fff}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,.05)}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.1);box-shadow:0 1px 2px rgba(0,0,0,.1);padding:10px 10px 15px;pointer-events:auto}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:-webkit-box;display:-ms-flexbox;display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%}.mapboxgl-user-location-dot:before{content:"";position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 3px rgba(0,0,0,.35);box-shadow:0 0 3px rgba(0,0,0,.35)}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);opacity:0}to{-webkit-transform:scale(1);opacity:0}}@keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}70%{-webkit-transform:scale(3);transform:scale(3);opacity:0}to{-webkit-transform:scale(1);transform:scale(1);opacity:0}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:rgba(29,161,242,.2);width:1px;height:1px;border-radius:100%}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:.5}@media print{.mapbox-improve-map{display:none}}`),window.mapboxgl=jm();var tk=0,R2="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",rk=(w2=(0,yt.b2)(),w2(C2=function(e){(0,Le.Z)(t,e);var r=QF(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0,z:0},s=this.lngLatToMercator(i,0),l=s.x,f=s.y;return[l-o.x,f-o.y]}},{key:"lngLatToMercator",value:function(i,o){var s=window.mapboxgl.MercatorCoordinate.fromLngLat(i,o),l=s.x,f=l===void 0?0:l,v=s.y,y=v===void 0?0:v,b=s.z,T=b===void 0?0:b;return{x:f,y,z:T}}},{key:"getModelMatrix",value:function(i,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1,1,1],f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{x:0,y:0,z:0},v=window.mapboxgl.MercatorCoordinate.fromLngLat(i,o),y=v.meterInMercatorCoordinateUnits(),b=me.create();return me.translate(b,b,La.fromValues(v.x-f.x,v.y-f.y,v.z||0-f.z)),me.scale(b,b,La.fromValues(y*l[0],-y*l[1],y*l[2])),me.rotateX(b,b,s[0]),me.rotateY(b,b,s[1]),me.rotateZ(b,b,s[2]),b}},{key:"init",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s=this,l,f,v,y,b,T,M,O,F,$,G,ue,xe;return ge().wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:l=this.config,f=l.id,v=f===void 0?"map":f,y=l.attributionControl,b=y===void 0?!1:y,T=l.style,M=T===void 0?"light":T,O=l.token,F=O===void 0?R2:O,$=l.rotation,G=$===void 0?0:$,ue=l.mapInstance,xe=(0,ka.Z)(l,KF),this.viewport=new qF,!ue&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),F===R2&&M!=="blank"&&!window.mapboxgl.accessToken&&!ue&&console.warn(this.configService.getSceneWarninfo("MapToken")),!ue&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=F),ue?(this.map=ue,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(v),this.map=new window.mapboxgl.Map((0,V.Z)({container:this.$mapContainer,style:this.getMapStyleValue(M),attributionControl:b,bearing:G},xe))),this.map.on("load",function(){s.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return Je.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"destroy",value:function(){var i;(i=this.$mapContainer)===null||i===void 0||(i=i.parentNode)===null||i===void 0||i.removeChild(this.$mapContainer),this.eventEmitter.removeAllListeners(),this.map&&(this.map.remove(),this.$mapContainer=null)}},{key:"emit",value:function(i){for(var o,s=arguments.length,l=new Array(s>1?s-1:0),f=1;f1?s-1:0),f=1;fe.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function HF(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,o;for(o=0;o=0)&&(t[i]=e[i]);return t}var p6={exportImage:VT,fullscreen:XT,geoLocate:qT,layer:e1,layerSwitch:e1,logo:t1,mapTheme:aw,mouseLocation:uw,zoom:dw,scale:fw},d6=null,z2=L(10422);function Z2(e,r){return $F(e)||XF(e,r)||GF(e,r)||WF()}function WF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GF(e,r){if(e){if(typeof e=="string")return V2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return V2(e,r)}}function V2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function sB(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,o;for(o=0;o=0)&&(t[i]=e[i]);return t}var uB=re.memo(function(r){var t=r.layer,n=r.source,i=n.data,o=oB(n,aB);return t.inited?t.setData(i,o):t.source(i,o),o.autoFit&&t.fitBounds(o&&o.fitBoundsOptions),null},ys()),g6=re.useEffect,lB=re.memo(function(r){var t=r.layer,n=r.style;return t.style(n),null},ys());function cB(e,r){return dB(e)||pB(e,r)||hB(e,r)||fB()}function fB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hB(e,r){if(e){if(typeof e=="string")return G2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return G2(e,r)}}function G2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=Math.abs(ie)?le-Ke+ie:ie-Ke+le,le=Ke}le+U>=0!=!!_&&pe.reverse()}},96542:function(rr){"use strict";rr.exports=J;function J(L,re){this.x=L,this.y=re}J.prototype={clone:function(){return new J(this.x,this.y)},add:function(L){return this.clone()._add(L)},sub:function(L){return this.clone()._sub(L)},multByPoint:function(L){return this.clone()._multByPoint(L)},divByPoint:function(L){return this.clone()._divByPoint(L)},mult:function(L){return this.clone()._mult(L)},div:function(L){return this.clone()._div(L)},rotate:function(L){return this.clone()._rotate(L)},rotateAround:function(L,re){return this.clone()._rotateAround(L,re)},matMult:function(L){return this.clone()._matMult(L)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(L){return this.x===L.x&&this.y===L.y},dist:function(L){return Math.sqrt(this.distSqr(L))},distSqr:function(L){var re=L.x-this.x,pe=L.y-this.y;return re*re+pe*pe},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(L){return Math.atan2(this.y-L.y,this.x-L.x)},angleWith:function(L){return this.angleWithSep(L.x,L.y)},angleWithSep:function(L,re){return Math.atan2(this.x*re-this.y*L,this.x*L+this.y*re)},_matMult:function(L){var re=L[0]*this.x+L[1]*this.y,pe=L[2]*this.x+L[3]*this.y;return this.x=re,this.y=pe,this},_add:function(L){return this.x+=L.x,this.y+=L.y,this},_sub:function(L){return this.x-=L.x,this.y-=L.y,this},_mult:function(L){return this.x*=L,this.y*=L,this},_div:function(L){return this.x/=L,this.y/=L,this},_multByPoint:function(L){return this.x*=L.x,this.y*=L.y,this},_divByPoint:function(L){return this.x/=L.x,this.y/=L.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var L=this.y;return this.y=this.x,this.x=-L,this},_rotate:function(L){var re=Math.cos(L),pe=Math.sin(L),_=re*this.x-pe*this.y,le=pe*this.x+re*this.y;return this.x=_,this.y=le,this},_rotateAround:function(L,re){var pe=Math.cos(L),_=Math.sin(L),le=re.x+pe*(this.x-re.x)-_*(this.y-re.y),U=re.y+_*(this.x-re.x)+pe*(this.y-re.y);return this.x=le,this.y=U,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},J.convert=function(L){return L instanceof J?L:Array.isArray(L)?new J(L[0],L[1]):L}},25865:function(rr){"use strict";rr.exports=L,rr.exports.default=L;var J=1e20;function L(U,he,ae,qe,ie,Ke){this.fontSize=U||24,this.buffer=he===void 0?3:he,this.cutoff=qe||.25,this.fontFamily=ie||"sans-serif",this.fontWeight=Ke||"normal",this.radius=ae||8;var ht=this.size=this.fontSize+this.buffer*2,mt=ht+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=ht,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(mt*mt),this.gridInner=new Float64Array(mt*mt),this.f=new Float64Array(mt),this.z=new Float64Array(mt+1),this.v=new Uint16Array(mt),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(ht/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function re(U,he,ae,qe,ie,Ke,ht){Ke.fill(J,0,he*ae),ht.fill(0,0,he*ae);for(var mt=(he-qe)/2,Dt=0;Dt-1);Dt++,Ke[Dt]=mt,ht[Dt]=Yt,ht[Dt+1]=J}for(mt=0,Dt=0;mt>3}if(Ke--,ie===1||ie===2)ht+=ae.readSVarint(),mt+=ae.readSVarint(),ie===1&&(Yt&&Dt.push(Yt),Yt=[]),Yt.push(new re(ht,mt));else if(ie===7)Yt&&Yt.push(Yt[0].clone());else throw new Error("unknown command "+ie)}return Yt&&Dt.push(Yt),Dt},pe.prototype.bbox=function(){var ae=this._pbf;ae.pos=this._geometry;for(var qe=ae.readVarint()+ae.pos,ie=1,Ke=0,ht=0,mt=0,Dt=1/0,Yt=-1/0,Ht=1/0,ir=-1/0;ae.pos>3}if(Ke--,ie===1||ie===2)ht+=ae.readSVarint(),mt+=ae.readSVarint(),htYt&&(Yt=ht),mtir&&(ir=mt);else if(ie!==7)throw new Error("unknown command "+ie)}return[Dt,Ht,Yt,ir]},pe.prototype.toGeoJSON=function(ae,qe,ie){var Ke=this.extent*Math.pow(2,ie),ht=this.extent*ae,mt=this.extent*qe,Dt=this.loadGeometry(),Yt=pe.types[this.type],Ht,ir;function Xt(Pr){for(var hr=0;hr>3;he=qe===1?U.readString():qe===2?U.readFloat():qe===3?U.readDouble():qe===4?U.readVarint64():qe===5?U.readVarint():qe===6?U.readSVarint():qe===7?U.readBoolean():null}return he}pe.prototype.feature=function(U){if(U<0||U>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[U];var he=this._pbf.readVarint()+this._pbf.pos;return new re(this._pbf,he,this.extent,this._keys,this._values)}},75734:function(rr){"use strict";rr.exports=J,rr.exports.default=J;function J(K,Be,Ae){Ae=Ae||2;var dt=Be&&Be.length,Ue=dt?Be[0]*Ae:K.length,We=L(K,0,Ue,Ae,!0),it=[];if(!We||We.next===We.prev)return it;var Mt,yr,lr,Cn,mn,un,oi;if(dt&&(We=ae(K,Be,We,Ae)),K.length>80*Ae){Mt=lr=K[0],yr=Cn=K[1];for(var jn=Ae;jnlr&&(lr=mn),un>Cn&&(Cn=un);oi=Math.max(lr-Mt,Cn-yr),oi=oi!==0?32767/oi:0}return pe(We,it,Ae,Mt,yr,oi,0),it}function L(K,Be,Ae,dt,Ue){var We,it;if(Ue===H(K,Be,Ae,dt)>0)for(We=Be;We=Be;We-=dt)it=qt(We,K[We],K[We+1],it);return it&&bt(it,it.next)&&(Sr(it),it=it.next),it}function re(K,Be){if(!K)return K;Be||(Be=K);var Ae=K,dt;do if(dt=!1,!Ae.steiner&&(bt(Ae,Ae.next)||yt(Ae.prev,Ae,Ae.next)===0)){if(Sr(Ae),Ae=Be=Ae.prev,Ae===Ae.next)break;dt=!0}else Ae=Ae.next;while(dt||Ae!==Be);return Be}function pe(K,Be,Ae,dt,Ue,We,it){if(K){!it&&We&&mt(K,dt,Ue,We);for(var Mt=K,yr,lr;K.prev!==K.next;){if(yr=K.prev,lr=K.next,We?le(K,dt,Ue,We):_(K)){Be.push(yr.i/Ae|0),Be.push(K.i/Ae|0),Be.push(lr.i/Ae|0),Sr(K),K=lr.next,Mt=lr.next;continue}if(K=lr,K===Mt){it?it===1?(K=U(re(K),Be,Ae),pe(K,Be,Ae,dt,Ue,We,2)):it===2&&he(K,Be,Ae,dt,Ue,We):pe(re(K),Be,Ae,dt,Ue,We,1);break}}}}function _(K){var Be=K.prev,Ae=K,dt=K.next;if(yt(Be,Ae,dt)>=0)return!1;for(var Ue=Be.x,We=Ae.x,it=dt.x,Mt=Be.y,yr=Ae.y,lr=dt.y,Cn=UeWe?Ue>it?Ue:it:We>it?We:it,oi=Mt>yr?Mt>lr?Mt:lr:yr>lr?yr:lr,jn=dt.next;jn!==Be;){if(jn.x>=Cn&&jn.x<=un&&jn.y>=mn&&jn.y<=oi&&ir(Ue,Mt,We,yr,it,lr,jn.x,jn.y)&&yt(jn.prev,jn,jn.next)>=0)return!1;jn=jn.next}return!0}function le(K,Be,Ae,dt){var Ue=K.prev,We=K,it=K.next;if(yt(Ue,We,it)>=0)return!1;for(var Mt=Ue.x,yr=We.x,lr=it.x,Cn=Ue.y,mn=We.y,un=it.y,oi=Mtyr?Mt>lr?Mt:lr:yr>lr?yr:lr,$i=Cn>mn?Cn>un?Cn:un:mn>un?mn:un,Wi=Yt(oi,jn,Be,Ae,dt),Zi=Yt(rn,$i,Be,Ae,dt),Jn=K.prevZ,Bn=K.nextZ;Jn&&Jn.z>=Wi&&Bn&&Bn.z<=Zi;){if(Jn.x>=oi&&Jn.x<=rn&&Jn.y>=jn&&Jn.y<=$i&&Jn!==Ue&&Jn!==it&&ir(Mt,Cn,yr,mn,lr,un,Jn.x,Jn.y)&&yt(Jn.prev,Jn,Jn.next)>=0||(Jn=Jn.prevZ,Bn.x>=oi&&Bn.x<=rn&&Bn.y>=jn&&Bn.y<=$i&&Bn!==Ue&&Bn!==it&&ir(Mt,Cn,yr,mn,lr,un,Bn.x,Bn.y)&&yt(Bn.prev,Bn,Bn.next)>=0))return!1;Bn=Bn.nextZ}for(;Jn&&Jn.z>=Wi;){if(Jn.x>=oi&&Jn.x<=rn&&Jn.y>=jn&&Jn.y<=$i&&Jn!==Ue&&Jn!==it&&ir(Mt,Cn,yr,mn,lr,un,Jn.x,Jn.y)&&yt(Jn.prev,Jn,Jn.next)>=0)return!1;Jn=Jn.prevZ}for(;Bn&&Bn.z<=Zi;){if(Bn.x>=oi&&Bn.x<=rn&&Bn.y>=jn&&Bn.y<=$i&&Bn!==Ue&&Bn!==it&&ir(Mt,Cn,yr,mn,lr,un,Bn.x,Bn.y)&&yt(Bn.prev,Bn,Bn.next)>=0)return!1;Bn=Bn.nextZ}return!0}function U(K,Be,Ae){var dt=K;do{var Ue=dt.prev,We=dt.next.next;!bt(Ue,We)&&Pr(Ue,dt,dt.next,We)&&nt(Ue,We)&&nt(We,Ue)&&(Be.push(Ue.i/Ae|0),Be.push(dt.i/Ae|0),Be.push(We.i/Ae|0),Sr(dt),Sr(dt.next),dt=K=We),dt=dt.next}while(dt!==K);return re(dt)}function he(K,Be,Ae,dt,Ue,We){var it=K;do{for(var Mt=it.next.next;Mt!==it.prev;){if(it.i!==Mt.i&&Xt(it,Mt)){var yr=ft(it,Mt);it=re(it,it.next),yr=re(yr,yr.next),pe(it,Be,Ae,dt,Ue,We,0),pe(yr,Be,Ae,dt,Ue,We,0);return}Mt=Mt.next}it=it.next}while(it!==K)}function ae(K,Be,Ae,dt){var Ue=[],We,it,Mt,yr,lr;for(We=0,it=Be.length;We=Ae.next.y&&Ae.next.y!==Ae.y){var Mt=Ae.x+(Ue-Ae.y)*(Ae.next.x-Ae.x)/(Ae.next.y-Ae.y);if(Mt<=dt&&Mt>We&&(We=Mt,it=Ae.x=Ae.x&&Ae.x>=lr&&dt!==Ae.x&&ir(Ueit.x||Ae.x===it.x&&ht(it,Ae)))&&(it=Ae,mn=un)),Ae=Ae.next;while(Ae!==yr);return it}function ht(K,Be){return yt(K.prev,K,Be.prev)<0&&yt(Be.next,K,K.next)<0}function mt(K,Be,Ae,dt){var Ue=K;do Ue.z===0&&(Ue.z=Yt(Ue.x,Ue.y,Be,Ae,dt)),Ue.prevZ=Ue.prev,Ue.nextZ=Ue.next,Ue=Ue.next;while(Ue!==K);Ue.prevZ.nextZ=null,Ue.prevZ=null,Dt(Ue)}function Dt(K){var Be,Ae,dt,Ue,We,it,Mt,yr,lr=1;do{for(Ae=K,K=null,We=null,it=0;Ae;){for(it++,dt=Ae,Mt=0,Be=0;Be0||yr>0&&dt;)Mt!==0&&(yr===0||!dt||Ae.z<=dt.z)?(Ue=Ae,Ae=Ae.nextZ,Mt--):(Ue=dt,dt=dt.nextZ,yr--),We?We.nextZ=Ue:K=Ue,Ue.prevZ=We,We=Ue;Ae=dt}We.nextZ=null,lr*=2}while(it>1);return K}function Yt(K,Be,Ae,dt,Ue){return K=(K-Ae)*Ue|0,Be=(Be-dt)*Ue|0,K=(K|K<<8)&16711935,K=(K|K<<4)&252645135,K=(K|K<<2)&858993459,K=(K|K<<1)&1431655765,Be=(Be|Be<<8)&16711935,Be=(Be|Be<<4)&252645135,Be=(Be|Be<<2)&858993459,Be=(Be|Be<<1)&1431655765,K|Be<<1}function Ht(K){var Be=K,Ae=K;do(Be.x=(K-it)*(We-Mt)&&(K-it)*(dt-Mt)>=(Ae-it)*(Be-Mt)&&(Ae-it)*(We-Mt)>=(Ue-it)*(dt-Mt)}function Xt(K,Be){return K.next.i!==Be.i&&K.prev.i!==Be.i&&!Et(K,Be)&&(nt(K,Be)&&nt(Be,K)&&Pt(K,Be)&&(yt(K.prev,K,Be.prev)||yt(K,Be.prev,Be))||bt(K,Be)&&yt(K.prev,K,K.next)>0&&yt(Be.prev,Be,Be.next)>0)}function yt(K,Be,Ae){return(Be.y-K.y)*(Ae.x-Be.x)-(Be.x-K.x)*(Ae.y-Be.y)}function bt(K,Be){return K.x===Be.x&&K.y===Be.y}function Pr(K,Be,Ae,dt){var Ue=ur(yt(K,Be,Ae)),We=ur(yt(K,Be,dt)),it=ur(yt(Ae,dt,K)),Mt=ur(yt(Ae,dt,Be));return!!(Ue!==We&&it!==Mt||Ue===0&&hr(K,Ae,Be)||We===0&&hr(K,dt,Be)||it===0&&hr(Ae,K,dt)||Mt===0&&hr(Ae,Be,dt))}function hr(K,Be,Ae){return Be.x<=Math.max(K.x,Ae.x)&&Be.x>=Math.min(K.x,Ae.x)&&Be.y<=Math.max(K.y,Ae.y)&&Be.y>=Math.min(K.y,Ae.y)}function ur(K){return K>0?1:K<0?-1:0}function Et(K,Be){var Ae=K;do{if(Ae.i!==K.i&&Ae.next.i!==K.i&&Ae.i!==Be.i&&Ae.next.i!==Be.i&&Pr(Ae,Ae.next,K,Be))return!0;Ae=Ae.next}while(Ae!==K);return!1}function nt(K,Be){return yt(K.prev,K,K.next)<0?yt(K,Be,K.next)>=0&&yt(K,K.prev,Be)>=0:yt(K,Be,K.prev)<0||yt(K,K.next,Be)<0}function Pt(K,Be){var Ae=K,dt=!1,Ue=(K.x+Be.x)/2,We=(K.y+Be.y)/2;do Ae.y>We!=Ae.next.y>We&&Ae.next.y!==Ae.y&&Ue<(Ae.next.x-Ae.x)*(We-Ae.y)/(Ae.next.y-Ae.y)+Ae.x&&(dt=!dt),Ae=Ae.next;while(Ae!==K);return dt}function ft(K,Be){var Ae=new te(K.i,K.x,K.y),dt=new te(Be.i,Be.x,Be.y),Ue=K.next,We=Be.prev;return K.next=Be,Be.prev=K,Ae.next=Ue,Ue.prev=Ae,dt.next=Ae,Ae.prev=dt,We.next=dt,dt.prev=We,dt}function qt(K,Be,Ae,dt){var Ue=new te(K,Be,Ae);return dt?(Ue.next=dt.next,Ue.prev=dt,dt.next.prev=Ue,dt.next=Ue):(Ue.prev=Ue,Ue.next=Ue),Ue}function Sr(K){K.next.prev=K.prev,K.prev.next=K.next,K.prevZ&&(K.prevZ.nextZ=K.nextZ),K.nextZ&&(K.nextZ.prevZ=K.prevZ)}function te(K,Be,Ae){this.i=K,this.x=Be,this.y=Ae,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}J.deviation=function(K,Be,Ae,dt){var Ue=Be&&Be.length,We=Ue?Be[0]*Ae:K.length,it=Math.abs(H(K,0,We,Ae));if(Ue)for(var Mt=0,yr=Be.length;Mt0&&(dt+=K[Ue-1].length,Ae.holes.push(dt))}return Ae}},31204:function(rr){function J(re){var pe=re.target||re.srcElement;pe.__resizeRAF__&&cancelAnimationFrame(pe.__resizeRAF__),pe.__resizeRAF__=requestAnimationFrame(function(){var _=pe.__resizeTrigger__,le=_&&_.__resizeListeners__;le&&le.forEach(function(U){U.call(_,re)})})}var L=function(pe,_){var le=this,U=le.document,he,ae=U.attachEvent;typeof navigator!="undefined"&&(he=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function qe(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",J)}if(!pe.__resizeListeners__)if(pe.__resizeListeners__=[],ae)pe.__resizeTrigger__=pe,pe.attachEvent("onresize",J);else{getComputedStyle(pe).position==="static"&&(pe.style.position="relative");var ie=pe.__resizeTrigger__=U.createElement("object");ie.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),ie.setAttribute("class","resize-sensor"),ie.setAttribute("tabindex","-1"),ie.setAttribute("title",""),ie.__resizeElement__=pe,ie.onload=qe,ie.type="text/html",he&&pe.appendChild(ie),ie.data="about:blank",he||pe.appendChild(ie)}pe.__resizeListeners__.push(_)};rr.exports=typeof window=="undefined"?L:L.bind(window),rr.exports.unbind=function(re,pe){var _=document.attachEvent,le=re.__resizeListeners__||[];if(pe){var U=le.indexOf(pe);U!==-1&&le.splice(U,1)}else le=re.__resizeListeners__=[];if(!le.length){if(_)re.detachEvent("onresize",J);else if(re.__resizeTrigger__){var he=re.__resizeTrigger__.contentDocument,ae=he&&he.defaultView;ae&&(ae.removeEventListener("resize",J),delete ae.__resizeTrigger__),re.__resizeTrigger__=!re.removeChild(re.__resizeTrigger__)}delete re.__resizeListeners__}}},11312:function(rr){"use strict";var J=Object.prototype.hasOwnProperty,L="~";function re(){}Object.create&&(re.prototype=Object.create(null),new re().__proto__||(L=!1));function pe(he,ae,qe){this.fn=he,this.context=ae,this.once=qe||!1}function _(he,ae,qe,ie,Ke){if(typeof qe!="function")throw new TypeError("The listener must be a function");var ht=new pe(qe,ie||he,Ke),mt=L?L+ae:ae;return he._events[mt]?he._events[mt].fn?he._events[mt]=[he._events[mt],ht]:he._events[mt].push(ht):(he._events[mt]=ht,he._eventsCount++),he}function le(he,ae){--he._eventsCount===0?he._events=new re:delete he._events[ae]}function U(){this._events=new re,this._eventsCount=0}U.prototype.eventNames=function(){var ae=[],qe,ie;if(this._eventsCount===0)return ae;for(ie in qe=this._events)J.call(qe,ie)&&ae.push(L?ie.slice(1):ie);return Object.getOwnPropertySymbols?ae.concat(Object.getOwnPropertySymbols(qe)):ae},U.prototype.listeners=function(ae){var qe=L?L+ae:ae,ie=this._events[qe];if(!ie)return[];if(ie.fn)return[ie.fn];for(var Ke=0,ht=ie.length,mt=new Array(ht);Ke\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Vi=pe.console&&(pe.console.warn||pe.console.log);return Vi&&Vi.call(pe.console,nr,Mn),fe.apply(this,arguments)}}var ir;typeof Object.assign!="function"?ir=function(Te){if(Te===U||Te===null)throw new TypeError("Cannot convert undefined or null to object");for(var ot=Object(Te),nr=1;nr-1}function qt(fe){return fe.trim().split(/\s+/g)}function Sr(fe,Te,ot){if(fe.indexOf&&!ot)return fe.indexOf(Te);for(var nr=0;nruo[Te]}):nr=nr.sort()),nr}function K(fe,Te){for(var ot,nr,jr=Te[0].toUpperCase()+Te.slice(1),Mn=0;Mn1&&!ot.firstMultiple?ot.firstMultiple=wt(Te):jr===1&&(ot.firstMultiple=!1);var Mn=ot.firstInput,Vi=ot.firstMultiple,ho=Vi?Vi.center:Mn.center,Ao=Te.center=sr(nr);Te.timeStamp=ht(),Te.deltaTime=Te.timeStamp-Mn.timeStamp,Te.angle=En(ho,Ao),Te.distance=Ln(ho,Ao),Ar(ot,Te),Te.offsetDirection=Vr(Te.deltaX,Te.deltaY);var uo=dr(Te.deltaTime,Te.deltaX,Te.deltaY);Te.overallVelocityX=uo.x,Te.overallVelocityY=uo.y,Te.overallVelocity=Ke(uo.x)>Ke(uo.y)?uo.x:uo.y,Te.scale=Vi?xn(Vi.pointers,nr):1,Te.rotation=Vi?Rn(Vi.pointers,nr):0,Te.maxPointers=ot.prevInput?Te.pointers.length>ot.prevInput.maxPointers?Te.pointers.length:ot.prevInput.maxPointers:Te.pointers.length,Ve(ot,Te);var Is=fe.element;Pt(Te.srcEvent.target,Is)&&(Is=Te.srcEvent.target),Te.target=Is}function Ar(fe,Te){var ot=Te.center,nr=fe.offsetDelta||{},jr=fe.prevDelta||{},Mn=fe.prevInput||{};(Te.eventType===oi||Mn.eventType===rn)&&(jr=fe.prevDelta={x:Mn.deltaX||0,y:Mn.deltaY||0},nr=fe.offsetDelta={x:ot.x,y:ot.y}),Te.deltaX=jr.x+(ot.x-nr.x),Te.deltaY=jr.y+(ot.y-nr.y)}function Ve(fe,Te){var ot=fe.lastInterval||Te,nr=Te.timeStamp-ot.timeStamp,jr,Mn,Vi,ho;if(Te.eventType!=$i&&(nr>un||ot.velocity===U)){var Ao=Te.deltaX-ot.deltaX,uo=Te.deltaY-ot.deltaY,Is=dr(nr,Ao,uo);Mn=Is.x,Vi=Is.y,jr=Ke(Is.x)>Ke(Is.y)?Is.x:Is.y,ho=Vr(Ao,uo),fe.lastInterval=Te}else jr=ot.velocity,Mn=ot.velocityX,Vi=ot.velocityY,ho=ot.direction;Te.velocity=jr,Te.velocityX=Mn,Te.velocityY=Vi,Te.direction=ho}function wt(fe){for(var Te=[],ot=0;ot=Ke(Te)?fe<0?Zi:Jn:Te<0?Bn:Do}function Ln(fe,Te,ot){ot||(ot=F);var nr=Te[ot[0]]-fe[ot[0]],jr=Te[ot[1]]-fe[ot[1]];return Math.sqrt(nr*nr+jr*jr)}function En(fe,Te,ot){ot||(ot=F);var nr=Te[ot[0]]-fe[ot[0]],jr=Te[ot[1]]-fe[ot[1]];return Math.atan2(jr,nr)*180/Math.PI}function Rn(fe,Te){return En(Te[1],Te[0],ne)+En(fe[1],fe[0],ne)}function xn(fe,Te){return Ln(Te[0],Te[1],ne)/Ln(fe[0],fe[1],ne)}var si={mousedown:oi,mousemove:jn,mouseup:rn},ei="mousedown",la="mousemove mouseup";function sa(){this.evEl=ei,this.evWin=la,this.pressed=!1,de.apply(this,arguments)}bt(sa,de,{handler:function(Te){var ot=si[Te.type];ot&oi&&Te.button===0&&(this.pressed=!0),ot&jn&&Te.which!==1&&(ot=rn),this.pressed&&(ot&rn&&(this.pressed=!1),this.callback(this.manager,ot,{pointers:[Te],changedPointers:[Te],pointerType:Cn,srcEvent:Te}))}});var Eo={pointerdown:oi,pointermove:jn,pointerup:rn,pointercancel:$i,pointerout:$i},Ks={2:yr,3:lr,4:Cn,5:mn},di="pointerdown",W="pointermove pointerup pointercancel";pe.MSPointerEvent&&!pe.PointerEvent&&(di="MSPointerDown",W="MSPointerMove MSPointerUp MSPointerCancel");function Q(){this.evEl=di,this.evWin=W,de.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}bt(Q,de,{handler:function(Te){var ot=this.store,nr=!1,jr=Te.type.toLowerCase().replace("ms",""),Mn=Eo[jr],Vi=Ks[Te.pointerType]||Te.pointerType,ho=Vi==yr,Ao=Sr(ot,Te.pointerId,"pointerId");Mn&oi&&(Te.button===0||ho)?Ao<0&&(ot.push(Te),Ao=ot.length-1):Mn&(rn|$i)&&(nr=!0),!(Ao<0)&&(ot[Ao]=Te,this.callback(this.manager,Mn,{pointers:ot,changedPointers:[Te],pointerType:Vi,srcEvent:Te}),nr&&ot.splice(Ao,1))}});var se={touchstart:oi,touchmove:jn,touchend:rn,touchcancel:$i},xe="touchstart",Re="touchstart touchmove touchend touchcancel";function Je(){this.evTarget=xe,this.evWin=Re,this.started=!1,de.apply(this,arguments)}bt(Je,de,{handler:function(Te){var ot=se[Te.type];if(ot===oi&&(this.started=!0),!!this.started){var nr=lt.call(this,Te,ot);ot&(rn|$i)&&nr[0].length-nr[1].length===0&&(this.started=!1),this.callback(this.manager,ot,{pointers:nr[0],changedPointers:nr[1],pointerType:yr,srcEvent:Te})}}});function lt(fe,Te){var ot=te(fe.touches),nr=te(fe.changedTouches);return Te&(rn|$i)&&(ot=H(ot.concat(nr),"identifier",!0)),[ot,nr]}var V={touchstart:oi,touchmove:jn,touchend:rn,touchcancel:$i},q="touchstart touchmove touchend touchcancel";function De(){this.evTarget=q,this.targetIds={},de.apply(this,arguments)}bt(De,de,{handler:function(Te){var ot=V[Te.type],nr=et.call(this,Te,ot);nr&&this.callback(this.manager,ot,{pointers:nr[0],changedPointers:nr[1],pointerType:yr,srcEvent:Te})}});function et(fe,Te){var ot=te(fe.touches),nr=this.targetIds;if(Te&(oi|jn)&&ot.length===1)return nr[ot[0].identifier]=!0,[ot,ot];var jr,Mn,Vi=te(fe.changedTouches),ho=[],Ao=this.target;if(Mn=ot.filter(function(uo){return Pt(uo.target,Ao)}),Te===oi)for(jr=0;jr-1&&nr.splice(Mn,1)};setTimeout(jr,be)}}function ar(fe){for(var Te=fe.srcEvent.clientX,ot=fe.srcEvent.clientY,nr=0;nr-1&&this.requireFail.splice(Te,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(fe){return!!this.simultaneous[fe.id]},emit:function(fe){var Te=this,ot=this.state;function nr(jr){Te.manager.emit(jr,fe)}ot=Ti&&nr(Te.options.event+$l(ot))},tryEmit:function(fe){if(this.canEmit())return this.emit(fe);this.state=ma},canEmit:function(){for(var fe=0;feTe.threshold&&jr&Te.direction},attrTest:function(fe){return fi.prototype.attrTest.call(this,fe)&&(this.state&Ai||!(this.state&Ai)&&this.directionTest(fe))},emit:function(fe){this.pX=fe.deltaX,this.pY=fe.deltaY;var Te=os(fe.direction);Te&&(fe.additionalEvent=this.options.event+Te),this._super.emit.call(this,fe)}});function ia(){fi.apply(this,arguments)}bt(ia,fi,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[vi]},attrTest:function(fe){return this._super.attrTest.call(this,fe)&&(Math.abs(fe.scale-1)>this.options.threshold||this.state&Ai)},emit:function(fe){if(fe.scale!==1){var Te=fe.scale<1?"in":"out";fe.additionalEvent=this.options.event+Te}this._super.emit.call(this,fe)}});function So(){Aa.apply(this,arguments),this._timer=null,this._input=null}bt(So,Aa,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hi]},process:function(fe){var Te=this.options,ot=fe.pointers.length===Te.pointers,nr=fe.distanceTe.time;if(this._input=fe,!nr||!ot||fe.eventType&(rn|$i)&&!jr)this.reset();else if(fe.eventType&oi)this.reset(),this._timer=mt(function(){this.state=Pa,this.tryEmit()},Te.time,this);else if(fe.eventType&rn)return Pa;return ma},reset:function(){clearTimeout(this._timer)},emit:function(fe){this.state===Pa&&(fe&&fe.eventType&rn?this.manager.emit(this.options.event+"up",fe):(this._input.timeStamp=ht(),this.manager.emit(this.options.event,this._input)))}});function ha(){fi.apply(this,arguments)}bt(ha,fi,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[vi]},attrTest:function(fe){return this._super.attrTest.call(this,fe)&&(Math.abs(fe.rotation)>this.options.threshold||this.state&Ai)}});function $o(){fi.apply(this,arguments)}bt($o,fi,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:oa|$a,pointers:1},getTouchAction:function(){return Oa.prototype.getTouchAction.call(this)},attrTest:function(fe){var Te=this.options.direction,ot;return Te&(oa|$a)?ot=fe.overallVelocity:Te&oa?ot=fe.overallVelocityX:Te&$a&&(ot=fe.overallVelocityY),this._super.attrTest.call(this,fe)&&Te&fe.offsetDirection&&fe.distance>this.options.threshold&&fe.maxPointers==this.options.pointers&&Ke(ot)>this.options.velocity&&fe.eventType&rn},emit:function(fe){var Te=os(fe.offsetDirection);Te&&this.manager.emit(this.options.event+Te,fe),this.manager.emit(this.options.event,fe)}});function Vo(){Aa.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}bt(Vo,Aa,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Qr]},process:function(fe){var Te=this.options,ot=fe.pointers.length===Te.pointers,nr=fe.distance= than the number of constructor arguments of its base class.")};J.ARGUMENTS_LENGTH_MISMATCH=re,J.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",J.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",J.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",J.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",J.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var pe=function(){for(var le=[],U=0;U0&&ur[ur.length-1])&&(ft[0]===6||ft[0]===2)){bt=0;continue}if(ft[0]===3&&(!ur||ft[1]>ur[0]&&ft[1]0?U._map.set(ae,qe):U._map.delete(ae)})},_.prototype.hasKey=function(le){if(le==null)throw new Error(re.NULL_ARGUMENT);return this._map.has(le)},_.prototype.clone=function(){var le=new _;return this._map.forEach(function(U,he){U.forEach(function(ae){return le.add(he,ae.clone())})}),le},_.prototype.traverse=function(le){this._map.forEach(function(U,he){le(he,U)})},_}();J.Lookup=pe},14156:function(rr,J,L){"use strict";var re;re={value:!0},re=re=re=re=re=re=J.GW=re=re=J.zY=re=re=re=re=re=J.f3=re=re=J.b2=re=re=re=re=re=J.W2=re=void 0;var pe=L(17597);re=pe;var _=L(27877);Object.defineProperty(J,"W2",{enumerable:!0,get:function(){return _.Container}});var le=L(71297);re={enumerable:!0,get:function(){return le.BindingScopeEnum}},re={enumerable:!0,get:function(){return le.BindingTypeEnum}},re={enumerable:!0,get:function(){return le.TargetTypeEnum}};var U=L(66440);re={enumerable:!0,get:function(){return U.AsyncContainerModule}},re={enumerable:!0,get:function(){return U.ContainerModule}};var he=L(66733);Object.defineProperty(J,"b2",{enumerable:!0,get:function(){return he.injectable}});var ae=L(76316);re={enumerable:!0,get:function(){return ae.tagged}};var qe=L(23769);re={enumerable:!0,get:function(){return qe.named}};var ie=L(71791);Object.defineProperty(J,"f3",{enumerable:!0,get:function(){return ie.inject}}),re={enumerable:!0,get:function(){return ie.LazyServiceIdentifer}};var Ke=L(57758);re={enumerable:!0,get:function(){return Ke.optional}};var ht=L(39868);re={enumerable:!0,get:function(){return ht.unmanaged}};var mt=L(33406);re={enumerable:!0,get:function(){return mt.multiInject}};var Dt=L(26805);re={enumerable:!0,get:function(){return Dt.targetName}};var Yt=L(82935);Object.defineProperty(J,"zY",{enumerable:!0,get:function(){return Yt.postConstruct}});var Ht=L(51288);re={enumerable:!0,get:function(){return Ht.MetadataReader}};var ir=L(92452);re={enumerable:!0,get:function(){return ir.id}};var Xt=L(38362);Object.defineProperty(J,"GW",{enumerable:!0,get:function(){return Xt.decorate}});var yt=L(95093);re={enumerable:!0,get:function(){return yt.traverseAncerstors}},re={enumerable:!0,get:function(){return yt.taggedConstraint}},re={enumerable:!0,get:function(){return yt.namedConstraint}},re={enumerable:!0,get:function(){return yt.typeConstraint}};var bt=L(96783);re={enumerable:!0,get:function(){return bt.getServiceIdentifierAsString}};var Pr=L(6024);re={enumerable:!0,get:function(){return Pr.multiBindToService}}},68338:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Context=void 0;var re=L(92452),pe=function(){function _(le){this.id=re.id(),this.container=le}return _.prototype.addPlan=function(le){this.plan=le},_.prototype.setCurrentRequest=function(le){this.currentRequest=le},_}();J.Context=pe},4957:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Metadata=void 0;var re=L(17597),pe=function(){function _(le,U){this.key=le,this.value=U}return _.prototype.toString=function(){return this.key===re.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},_}();J.Metadata=pe},51288:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.MetadataReader=void 0;var re=L(17597),pe=function(){function _(){}return _.prototype.getConstructorMetadata=function(le){var U=Reflect.getMetadata(re.PARAM_TYPES,le),he=Reflect.getMetadata(re.TAGGED,le);return{compilerGeneratedMetadata:U,userGeneratedMetadata:he||{}}},_.prototype.getPropertiesMetadata=function(le){var U=Reflect.getMetadata(re.TAGGED_PROP,le)||[];return U},_}();J.MetadataReader=pe},30515:function(rr,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Plan=void 0;var L=function(){function re(pe,_){this.parentContext=pe,this.rootRequest=_}return re}();J.Plan=L},14346:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.getBindingDictionary=J.createMockRequest=J.plan=void 0;var re=L(53837),pe=L(81463),_=L(71297),le=L(17597),U=L(99438),he=L(96783),ae=L(68338),qe=L(4957),ie=L(30515),Ke=L(4793),ht=L(39373),mt=L(90700);function Dt(hr){return hr._bindingDictionary}J.getBindingDictionary=Dt;function Yt(hr,ur,Et,nt,Pt,ft){var qt=hr?le.MULTI_INJECT_TAG:le.INJECT_TAG,Sr=new qe.Metadata(qt,Et),te=new mt.Target(ur,nt,Et,Sr);if(Pt!==void 0){var H=new qe.Metadata(Pt,ft);te.metadata.push(H)}return te}function Ht(hr,ur,Et,nt,Pt){var ft=yt(Et.container,Pt.serviceIdentifier),qt=[];return ft.length===re.BindingCount.NoBindingsAvailable&&Et.container.options.autoBindInjectable&&typeof Pt.serviceIdentifier=="function"&&hr.getConstructorMetadata(Pt.serviceIdentifier).compilerGeneratedMetadata&&(Et.container.bind(Pt.serviceIdentifier).toSelf(),ft=yt(Et.container,Pt.serviceIdentifier)),ur?qt=ft:qt=ft.filter(function(Sr){var te=new ht.Request(Sr.serviceIdentifier,Et,nt,Sr,Pt);return Sr.constraint(te)}),ir(Pt.serviceIdentifier,qt,Pt,Et.container),qt}function ir(hr,ur,Et,nt){switch(ur.length){case re.BindingCount.NoBindingsAvailable:if(Et.isOptional())return ur;var Pt=he.getServiceIdentifierAsString(hr),ft=pe.NOT_REGISTERED;throw ft+=he.listMetadataForTarget(Pt,Et),ft+=he.listRegisteredBindingsForServiceIdentifier(nt,Pt,yt),new Error(ft);case re.BindingCount.OnlyOneBindingAvailable:if(!Et.isArray())return ur;case re.BindingCount.MultipleBindingsAvailable:default:if(Et.isArray())return ur;var Pt=he.getServiceIdentifierAsString(hr),ft=pe.AMBIGUOUS_MATCH+" "+Pt;throw ft+=he.listRegisteredBindingsForServiceIdentifier(nt,Pt,yt),new Error(ft)}}function Xt(hr,ur,Et,nt,Pt,ft){var qt,Sr;if(Pt===null){qt=Ht(hr,ur,nt,null,ft),Sr=new ht.Request(Et,nt,null,qt,ft);var te=new ie.Plan(nt,Sr);nt.addPlan(te)}else qt=Ht(hr,ur,nt,Pt,ft),Sr=Pt.addChildRequest(ft.serviceIdentifier,qt,ft);qt.forEach(function(H){var K=null;if(ft.isArray())K=Sr.addChildRequest(H.serviceIdentifier,H,ft);else{if(H.cache)return;K=Sr}if(H.type===_.BindingTypeEnum.Instance&&H.implementationType!==null){var Be=Ke.getDependencies(hr,H.implementationType);if(!nt.container.options.skipBaseClassChecks){var Ae=Ke.getBaseClassDependencyCount(hr,H.implementationType);if(Be.length0,Pt=Et.length>Xt.length,ft=nt||Pt?Et.length:Xt.length,qt=ht(yt,ir,Pr,ur,ft),Sr=mt(Ht,Xt),te=re(re([],qt),Sr);return te}function Ke(Ht,ir,Xt,yt,bt){var Pr=bt[Ht.toString()]||[],hr=Yt(Pr),ur=hr.unmanaged!==!0,Et=yt[Ht],nt=hr.inject||hr.multiInject;if(Et=nt||Et,Et instanceof pe.LazyServiceIdentifer&&(Et=Et.unwrap()),ur){var Pt=Et===Object,ft=Et===Function,qt=Et===void 0,Sr=Pt||ft||qt;if(!ir&&Sr){var te=_.MISSING_INJECT_ANNOTATION+" argument "+Ht+" in class "+Xt+".";throw new Error(te)}var H=new ae.Target(le.TargetTypeEnum.ConstructorArgument,hr.targetName,Et);return H.metadata=Pr,H}return null}function ht(Ht,ir,Xt,yt,bt){for(var Pr=[],hr=0;hr0?ur:Dt(Ht,Xt)}else return 0}J.getBaseClassDependencyCount=Dt;function Yt(Ht){var ir={};return Ht.forEach(function(Xt){ir[Xt.key.toString()]=Xt.value}),{inject:ir[U.INJECT_TAG],multiInject:ir[U.MULTI_INJECT_TAG],targetName:ir[U.NAME_TAG],unmanaged:ir[U.UNMANAGED_TAG]}}},39373:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Request=void 0;var re=L(92452),pe=function(){function _(le,U,he,ae,qe){this.id=re.id(),this.serviceIdentifier=le,this.parentContext=U,this.parentRequest=he,this.target=qe,this.childRequests=[],this.bindings=Array.isArray(ae)?ae:[ae],this.requestScope=he===null?new Map:null}return _.prototype.addChildRequest=function(le,U,he){var ae=new _(le,this.parentContext,this,U,he);return this.childRequests.push(ae),ae},_}();J.Request=pe},90700:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.Target=void 0;var re=L(17597),pe=L(92452),_=L(4957),le=L(41141),U=function(){function he(ae,qe,ie,Ke){this.id=pe.id(),this.type=ae,this.serviceIdentifier=ie,this.name=new le.QueryableString(qe||""),this.metadata=new Array;var ht=null;typeof Ke=="string"?ht=new _.Metadata(re.NAMED_TAG,Ke):Ke instanceof _.Metadata&&(ht=Ke),ht!==null&&this.metadata.push(ht)}return he.prototype.hasTag=function(ae){for(var qe=0,ie=this.metadata;qe0){var Dt=Ke.filter(function(Ht){return Ht.target!==null&&Ht.target.type===_.TargetTypeEnum.ConstructorArgument}),Yt=Dt.map(ht);mt=he(ie,Yt),mt=U(mt,Ke,ht)}else mt=new ie;return ae(ie,mt),mt}J.resolveInstance=qe},50857:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.resolve=void 0;var re=L(81463),pe=L(71297),_=L(99438),le=L(96783),U=L(31831),he=function(ie,Ke,ht){try{return ht()}catch(mt){throw _.isStackOverflowExeption(mt)?new Error(re.CIRCULAR_DEPENDENCY_IN_FACTORY(ie,Ke.toString())):mt}},ae=function(ie){return function(Ke){Ke.parentContext.setCurrentRequest(Ke);var ht=Ke.bindings,mt=Ke.childRequests,Dt=Ke.target&&Ke.target.isArray(),Yt=!Ke.parentRequest||!Ke.parentRequest.target||!Ke.target||!Ke.parentRequest.target.matchesArray(Ke.target.serviceIdentifier);if(Dt&&Yt)return mt.map(function(Pr){var hr=ae(ie);return hr(Pr)});var Ht=null;if(Ke.target.isOptional()&&ht.length===0)return;var ir=ht[0],Xt=ir.scope===pe.BindingScopeEnum.Singleton,yt=ir.scope===pe.BindingScopeEnum.Request;if(Xt&&ir.activated)return ir.cache;if(yt&&ie!==null&&ie.has(ir.id))return ie.get(ir.id);if(ir.type===pe.BindingTypeEnum.ConstantValue)Ht=ir.cache,ir.activated=!0;else if(ir.type===pe.BindingTypeEnum.Function)Ht=ir.cache,ir.activated=!0;else if(ir.type===pe.BindingTypeEnum.Constructor)Ht=ir.implementationType;else if(ir.type===pe.BindingTypeEnum.DynamicValue&&ir.dynamicValue!==null)Ht=he("toDynamicValue",ir.serviceIdentifier,function(){return ir.dynamicValue(Ke.parentContext)});else if(ir.type===pe.BindingTypeEnum.Factory&&ir.factory!==null)Ht=he("toFactory",ir.serviceIdentifier,function(){return ir.factory(Ke.parentContext)});else if(ir.type===pe.BindingTypeEnum.Provider&&ir.provider!==null)Ht=he("toProvider",ir.serviceIdentifier,function(){return ir.provider(Ke.parentContext)});else if(ir.type===pe.BindingTypeEnum.Instance&&ir.implementationType!==null)Ht=U.resolveInstance(ir.implementationType,mt,ae(ie));else{var bt=le.getServiceIdentifierAsString(Ke.serviceIdentifier);throw new Error(re.INVALID_BINDING_TYPE+" "+bt)}return typeof ir.onActivation=="function"&&(Ht=ir.onActivation(Ke.parentContext,Ht)),Xt&&(ir.cache=Ht,ir.activated=!0),yt&&ie!==null&&!ie.has(ir.id)&&ie.set(ir.id,Ht),Ht}};function qe(ie){var Ke=ae(ie.plan.rootRequest.requestScope);return Ke(ie.plan.rootRequest)}J.resolve=qe},29664:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingInSyntax=void 0;var re=L(71297),pe=L(62923),_=function(){function le(U){this._binding=U}return le.prototype.inRequestScope=function(){return this._binding.scope=re.BindingScopeEnum.Request,new pe.BindingWhenOnSyntax(this._binding)},le.prototype.inSingletonScope=function(){return this._binding.scope=re.BindingScopeEnum.Singleton,new pe.BindingWhenOnSyntax(this._binding)},le.prototype.inTransientScope=function(){return this._binding.scope=re.BindingScopeEnum.Transient,new pe.BindingWhenOnSyntax(this._binding)},le}();J.BindingInSyntax=_},35268:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingInWhenOnSyntax=void 0;var re=L(29664),pe=L(85370),_=L(76199),le=function(){function U(he){this._binding=he,this._bindingWhenSyntax=new _.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new pe.BindingOnSyntax(this._binding),this._bindingInSyntax=new re.BindingInSyntax(he)}return U.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},U.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},U.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},U.prototype.when=function(he){return this._bindingWhenSyntax.when(he)},U.prototype.whenTargetNamed=function(he){return this._bindingWhenSyntax.whenTargetNamed(he)},U.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},U.prototype.whenTargetTagged=function(he,ae){return this._bindingWhenSyntax.whenTargetTagged(he,ae)},U.prototype.whenInjectedInto=function(he){return this._bindingWhenSyntax.whenInjectedInto(he)},U.prototype.whenParentNamed=function(he){return this._bindingWhenSyntax.whenParentNamed(he)},U.prototype.whenParentTagged=function(he,ae){return this._bindingWhenSyntax.whenParentTagged(he,ae)},U.prototype.whenAnyAncestorIs=function(he){return this._bindingWhenSyntax.whenAnyAncestorIs(he)},U.prototype.whenNoAncestorIs=function(he){return this._bindingWhenSyntax.whenNoAncestorIs(he)},U.prototype.whenAnyAncestorNamed=function(he){return this._bindingWhenSyntax.whenAnyAncestorNamed(he)},U.prototype.whenAnyAncestorTagged=function(he,ae){return this._bindingWhenSyntax.whenAnyAncestorTagged(he,ae)},U.prototype.whenNoAncestorNamed=function(he){return this._bindingWhenSyntax.whenNoAncestorNamed(he)},U.prototype.whenNoAncestorTagged=function(he,ae){return this._bindingWhenSyntax.whenNoAncestorTagged(he,ae)},U.prototype.whenAnyAncestorMatches=function(he){return this._bindingWhenSyntax.whenAnyAncestorMatches(he)},U.prototype.whenNoAncestorMatches=function(he){return this._bindingWhenSyntax.whenNoAncestorMatches(he)},U.prototype.onActivation=function(he){return this._bindingOnSyntax.onActivation(he)},U}();J.BindingInWhenOnSyntax=le},85370:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingOnSyntax=void 0;var re=L(76199),pe=function(){function _(le){this._binding=le}return _.prototype.onActivation=function(le){return this._binding.onActivation=le,new re.BindingWhenSyntax(this._binding)},_}();J.BindingOnSyntax=pe},98e3:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingToSyntax=void 0;var re=L(81463),pe=L(71297),_=L(35268),le=L(62923),U=function(){function he(ae){this._binding=ae}return he.prototype.to=function(ae){return this._binding.type=pe.BindingTypeEnum.Instance,this._binding.implementationType=ae,new _.BindingInWhenOnSyntax(this._binding)},he.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+re.INVALID_TO_SELF_VALUE);var ae=this._binding.serviceIdentifier;return this.to(ae)},he.prototype.toConstantValue=function(ae){return this._binding.type=pe.BindingTypeEnum.ConstantValue,this._binding.cache=ae,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toDynamicValue=function(ae){return this._binding.type=pe.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=ae,this._binding.implementationType=null,new _.BindingInWhenOnSyntax(this._binding)},he.prototype.toConstructor=function(ae){return this._binding.type=pe.BindingTypeEnum.Constructor,this._binding.implementationType=ae,this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toFactory=function(ae){return this._binding.type=pe.BindingTypeEnum.Factory,this._binding.factory=ae,this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toFunction=function(ae){if(typeof ae!="function")throw new Error(re.INVALID_FUNCTION_BINDING);var qe=this.toConstantValue(ae);return this._binding.type=pe.BindingTypeEnum.Function,this._binding.scope=pe.BindingScopeEnum.Singleton,qe},he.prototype.toAutoFactory=function(ae){return this._binding.type=pe.BindingTypeEnum.Factory,this._binding.factory=function(qe){var ie=function(){return qe.container.get(ae)};return ie},this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toProvider=function(ae){return this._binding.type=pe.BindingTypeEnum.Provider,this._binding.provider=ae,this._binding.scope=pe.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},he.prototype.toService=function(ae){this.toDynamicValue(function(qe){return qe.container.get(ae)})},he}();J.BindingToSyntax=U},62923:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingWhenOnSyntax=void 0;var re=L(85370),pe=L(76199),_=function(){function le(U){this._binding=U,this._bindingWhenSyntax=new pe.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new re.BindingOnSyntax(this._binding)}return le.prototype.when=function(U){return this._bindingWhenSyntax.when(U)},le.prototype.whenTargetNamed=function(U){return this._bindingWhenSyntax.whenTargetNamed(U)},le.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},le.prototype.whenTargetTagged=function(U,he){return this._bindingWhenSyntax.whenTargetTagged(U,he)},le.prototype.whenInjectedInto=function(U){return this._bindingWhenSyntax.whenInjectedInto(U)},le.prototype.whenParentNamed=function(U){return this._bindingWhenSyntax.whenParentNamed(U)},le.prototype.whenParentTagged=function(U,he){return this._bindingWhenSyntax.whenParentTagged(U,he)},le.prototype.whenAnyAncestorIs=function(U){return this._bindingWhenSyntax.whenAnyAncestorIs(U)},le.prototype.whenNoAncestorIs=function(U){return this._bindingWhenSyntax.whenNoAncestorIs(U)},le.prototype.whenAnyAncestorNamed=function(U){return this._bindingWhenSyntax.whenAnyAncestorNamed(U)},le.prototype.whenAnyAncestorTagged=function(U,he){return this._bindingWhenSyntax.whenAnyAncestorTagged(U,he)},le.prototype.whenNoAncestorNamed=function(U){return this._bindingWhenSyntax.whenNoAncestorNamed(U)},le.prototype.whenNoAncestorTagged=function(U,he){return this._bindingWhenSyntax.whenNoAncestorTagged(U,he)},le.prototype.whenAnyAncestorMatches=function(U){return this._bindingWhenSyntax.whenAnyAncestorMatches(U)},le.prototype.whenNoAncestorMatches=function(U){return this._bindingWhenSyntax.whenNoAncestorMatches(U)},le.prototype.onActivation=function(U){return this._bindingOnSyntax.onActivation(U)},le}();J.BindingWhenOnSyntax=_},76199:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.BindingWhenSyntax=void 0;var re=L(85370),pe=L(95093),_=function(){function le(U){this._binding=U}return le.prototype.when=function(U){return this._binding.constraint=U,new re.BindingOnSyntax(this._binding)},le.prototype.whenTargetNamed=function(U){return this._binding.constraint=pe.namedConstraint(U),new re.BindingOnSyntax(this._binding)},le.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(U){var he=U.target!==null&&!U.target.isNamed()&&!U.target.isTagged();return he},new re.BindingOnSyntax(this._binding)},le.prototype.whenTargetTagged=function(U,he){return this._binding.constraint=pe.taggedConstraint(U)(he),new re.BindingOnSyntax(this._binding)},le.prototype.whenInjectedInto=function(U){return this._binding.constraint=function(he){return pe.typeConstraint(U)(he.parentRequest)},new re.BindingOnSyntax(this._binding)},le.prototype.whenParentNamed=function(U){return this._binding.constraint=function(he){return pe.namedConstraint(U)(he.parentRequest)},new re.BindingOnSyntax(this._binding)},le.prototype.whenParentTagged=function(U,he){return this._binding.constraint=function(ae){return pe.taggedConstraint(U)(he)(ae.parentRequest)},new re.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorIs=function(U){return this._binding.constraint=function(he){return pe.traverseAncerstors(he,pe.typeConstraint(U))},new re.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorIs=function(U){return this._binding.constraint=function(he){return!pe.traverseAncerstors(he,pe.typeConstraint(U))},new re.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorNamed=function(U){return this._binding.constraint=function(he){return pe.traverseAncerstors(he,pe.namedConstraint(U))},new re.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorNamed=function(U){return this._binding.constraint=function(he){return!pe.traverseAncerstors(he,pe.namedConstraint(U))},new re.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorTagged=function(U,he){return this._binding.constraint=function(ae){return pe.traverseAncerstors(ae,pe.taggedConstraint(U)(he))},new re.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorTagged=function(U,he){return this._binding.constraint=function(ae){return!pe.traverseAncerstors(ae,pe.taggedConstraint(U)(he))},new re.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorMatches=function(U){return this._binding.constraint=function(he){return pe.traverseAncerstors(he,U)},new re.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorMatches=function(U){return this._binding.constraint=function(he){return!pe.traverseAncerstors(he,U)},new re.BindingOnSyntax(this._binding)},le}();J.BindingWhenSyntax=_},95093:function(rr,J,L){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.typeConstraint=J.namedConstraint=J.taggedConstraint=J.traverseAncerstors=void 0;var re=L(17597),pe=L(4957),_=function(ae,qe){var ie=ae.parentRequest;return ie!==null?qe(ie)?!0:_(ie,qe):!1};J.traverseAncerstors=_;var le=function(ae){return function(qe){var ie=function(Ke){return Ke!==null&&Ke.target!==null&&Ke.target.matchesTag(ae)(qe)};return ie.metaData=new pe.Metadata(ae,qe),ie}};J.taggedConstraint=le;var U=le(re.NAMED_TAG);J.namedConstraint=U;var he=function(ae){return function(qe){var ie=null;if(qe!==null)if(ie=qe.bindings[0],typeof ae=="string"){var Ke=ie.serviceIdentifier;return Ke===ae}else{var ht=qe.bindings[0].implementationType;return ae===ht}return!1}};J.typeConstraint=he},6024:function(rr,J){"use strict";Object.defineProperty(J,"__esModule",{value:!0}),J.multiBindToService=void 0;var L=function(re){return function(pe){return function(){for(var _=[],le=0;le ")}function he(ie){ie.childRequests.forEach(function(Ke){if(le(Ke,Ke.serviceIdentifier)){var ht=U(Ke);throw new Error(re.CIRCULAR_DEPENDENCY+" "+ht)}else he(Ke)})}J.circularDependencyToException=he;function ae(ie,Ke){if(Ke.isTagged()||Ke.isNamed()){var ht="",mt=Ke.getNamedTag(),Dt=Ke.getCustomTags();return mt!==null&&(ht+=mt.toString()+` -`),Dt!==null&&Dt.forEach(function(Yt){ht+=Yt.toString()+` -`})," "+ie+` - `+ie+" - "+ht}else return" "+ie}J.listMetadataForTarget=ae;function qe(ie){if(ie.name)return ie.name;var Ke=ie.toString(),ht=Ke.match(/^function\s*([^\s(]+)/);return ht?ht[1]:"Anonymous function: "+Ke}J.getFunctionName=qe},45170:function(rr,J,L){var re=L(13807);function pe(_,le){var U=_==null?0:_.length;return!!U&&re(_,le,0)>-1}rr.exports=pe},94936:function(rr){function J(L,re,pe){for(var _=-1,le=L==null?0:L.length;++_=re?L:re)),L}rr.exports=J},92504:function(rr){function J(L,re,pe,_){for(var le=L.length,U=pe+(_?1:-1);_?U--:++U-1;)ir!==ie&&ae.call(ir,Xt,1),ae.call(ie,Xt,1);return ie}rr.exports=qe},95453:function(rr,J,L){var re=L(78188),pe=L(45170),_=L(94936),le=L(29880),U=L(17319),he=L(79967),ae=200;function qe(ie,Ke,ht){var mt=-1,Dt=pe,Yt=ie.length,Ht=!0,ir=[],Xt=ir;if(ht)Ht=!1,Dt=_;else if(Yt>=ae){var yt=Ke?null:U(ie);if(yt)return he(yt);Ht=!1,Dt=le,Xt=new re}else Xt=Ke?[]:ir;e:for(;++mt(m=1))return m;for(;cE?c=x:m=x,x=.5*(m-c)+c}return x},he.prototype.solve=function(a,u){return this.sampleCurveY(this.solveCurveX(a,u))};var ae=qe;function qe(a,u){this.x=a,this.y=u}qe.prototype={clone:function(){return new qe(this.x,this.y)},add:function(a){return this.clone()._add(a)},sub:function(a){return this.clone()._sub(a)},multByPoint:function(a){return this.clone()._multByPoint(a)},divByPoint:function(a){return this.clone()._divByPoint(a)},mult:function(a){return this.clone()._mult(a)},div:function(a){return this.clone()._div(a)},rotate:function(a){return this.clone()._rotate(a)},rotateAround:function(a,u){return this.clone()._rotateAround(a,u)},matMult:function(a){return this.clone()._matMult(a)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(a){return this.x===a.x&&this.y===a.y},dist:function(a){return Math.sqrt(this.distSqr(a))},distSqr:function(a){var u=a.x-this.x,c=a.y-this.y;return u*u+c*c},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(a){return Math.atan2(this.y-a.y,this.x-a.x)},angleWith:function(a){return this.angleWithSep(a.x,a.y)},angleWithSep:function(a,u){return Math.atan2(this.x*u-this.y*a,this.x*a+this.y*u)},_matMult:function(a){var u=a[2]*this.x+a[3]*this.y;return this.x=a[0]*this.x+a[1]*this.y,this.y=u,this},_add:function(a){return this.x+=a.x,this.y+=a.y,this},_sub:function(a){return this.x-=a.x,this.y-=a.y,this},_mult:function(a){return this.x*=a,this.y*=a,this},_div:function(a){return this.x/=a,this.y/=a,this},_multByPoint:function(a){return this.x*=a.x,this.y*=a.y,this},_divByPoint:function(a){return this.x/=a.x,this.y/=a.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var a=this.y;return this.y=this.x,this.x=-a,this},_rotate:function(a){var u=Math.cos(a),c=Math.sin(a),m=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=m,this},_rotateAround:function(a,u){var c=Math.cos(a),m=Math.sin(a),x=u.y+m*(this.x-u.x)+c*(this.y-u.y);return this.x=u.x+c*(this.x-u.x)-m*(this.y-u.y),this.y=x,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},qe.convert=function(a){return a instanceof qe?a:Array.isArray(a)?new qe(a[0],a[1]):a};var ie=typeof self!="undefined"?self:{},Ke=Math.pow(2,53)-1;function ht(a,u,c,m){var x=new U(a,u,c,m);return function(E){return x.solve(E)}}var mt=ht(.25,.1,.25,1);function Dt(a,u,c){return Math.min(c,Math.max(u,a))}function Yt(a,u,c){var m=c-u,x=((a-u)%m+m)%m+u;return x===u?c:x}function Ht(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];for(var m=0,x=u;m>u/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,a)}()}function bt(a){return!!a&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(a)}function Pr(a,u){a.forEach(function(c){u[c]&&(u[c]=u[c].bind(u))})}function hr(a,u){return a.indexOf(u,a.length-u.length)!==-1}function ur(a,u,c){var m={};for(var x in a)m[x]=u.call(c||this,a[x],x,a);return m}function Et(a,u,c){var m={};for(var x in a)u.call(c||this,a[x],x,a)&&(m[x]=a[x]);return m}function nt(a){return Array.isArray(a)?a.map(nt):typeof a=="object"&&a?ur(a,nt):a}var Pt={};function ft(a){Pt[a]||(typeof console!="undefined"&&console.warn(a),Pt[a]=!0)}function qt(a,u,c){return(c.y-a.y)*(u.x-a.x)>(u.y-a.y)*(c.x-a.x)}function Sr(a){for(var u=0,c=0,m=a.length,x=m-1,E=void 0,A=void 0;c@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(m,x,E,A){var I=E||A;return u[x]=!I||I.toLowerCase(),""}),u["max-age"]){var c=parseInt(u["max-age"],10);isNaN(c)?delete u["max-age"]:u["max-age"]=c}return u}var K=null;function Be(a){if(K==null){var u=a.navigator?a.navigator.userAgent:null;K=!!a.safari||!(!u||!(/\b(iPad|iPhone|iPod)\b/.test(u)||u.match("Safari")&&!u.match("Chrome")))}return K}function Ae(a){try{var u=ie[a];return u.setItem("_mapbox_test_",1),u.removeItem("_mapbox_test_"),!0}catch(c){return!1}}var dt,Ue,We,it,Mt=ie.performance&&ie.performance.now?ie.performance.now.bind(ie.performance):Date.now.bind(Date),yr=ie.requestAnimationFrame||ie.mozRequestAnimationFrame||ie.webkitRequestAnimationFrame||ie.msRequestAnimationFrame,lr=ie.cancelAnimationFrame||ie.mozCancelAnimationFrame||ie.webkitCancelAnimationFrame||ie.msCancelAnimationFrame,Cn={now:Mt,frame:function(a){var u=yr(a);return{cancel:function(){return lr(u)}}},getImageData:function(a,u){u===void 0&&(u=0);var c=ie.document.createElement("canvas"),m=c.getContext("2d");if(!m)throw new Error("failed to create canvas 2d context");return c.width=a.width,c.height=a.height,m.drawImage(a,0,0,a.width,a.height),m.getImageData(-u,-u,a.width+2*u,a.height+2*u)},resolveURL:function(a){return dt||(dt=ie.document.createElement("a")),dt.href=a,dt.href},hardwareConcurrency:ie.navigator&&ie.navigator.hardwareConcurrency||4,get devicePixelRatio(){return ie.devicePixelRatio},get prefersReducedMotion(){return!!ie.matchMedia&&(Ue==null&&(Ue=ie.matchMedia("(prefers-reduced-motion: reduce)")),Ue.matches)}},mn={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},un={supported:!1,testSupport:function(a){!oi&&it&&(jn?rn(a):We=a)}},oi=!1,jn=!1;function rn(a){var u=a.createTexture();a.bindTexture(a.TEXTURE_2D,u);try{if(a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,it),a.isContextLost())return;un.supported=!0}catch(c){}a.deleteTexture(u),oi=!0}ie.document&&((it=ie.document.createElement("img")).onload=function(){We&&rn(We),We=null,jn=!0},it.onerror=function(){oi=!0,We=null},it.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var $i="01",Wi=function(a,u){this._transformRequestFn=a,this._customAccessToken=u,this._createSkuToken()};function Zi(a){return a.indexOf("mapbox:")===0}Wi.prototype._createSkuToken=function(){var a=function(){for(var u="",c=0;c<10;c++)u+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",$i,u].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=a.token,this._skuTokenExpiresAt=a.tokenExpiresAt},Wi.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Wi.prototype.transformRequest=function(a,u){return this._transformRequestFn&&this._transformRequestFn(a,u)||{url:a}},Wi.prototype.normalizeStyleURL=function(a,u){if(!Zi(a))return a;var c=oa(a);return c.path="/styles/v1"+c.path,this._makeAPIURL(c,this._customAccessToken||u)},Wi.prototype.normalizeGlyphsURL=function(a,u){if(!Zi(a))return a;var c=oa(a);return c.path="/fonts/v1"+c.path,this._makeAPIURL(c,this._customAccessToken||u)},Wi.prototype.normalizeSourceURL=function(a,u){if(!Zi(a))return a;var c=oa(a);return c.path="/v4/"+c.authority+".json",c.params.push("secure"),this._makeAPIURL(c,this._customAccessToken||u)},Wi.prototype.normalizeSpriteURL=function(a,u,c,m){var x=oa(a);return Zi(a)?(x.path="/styles/v1"+x.path+"/sprite"+u+c,this._makeAPIURL(x,this._customAccessToken||m)):(x.path+=""+u+c,$a(x))},Wi.prototype.normalizeTileURL=function(a,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),a&&!Zi(a))return a;var c=oa(a);c.path=c.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Cn.devicePixelRatio>=2||u===512?"@2x":"")+(un.supported?".webp":"$1")),c.path=c.path.replace(/^.+\/v4\//,"/"),c.path="/v4"+c.path;var m=this._customAccessToken||function(x){for(var E=0,A=x;E=0&&a.params.splice(x,1)}if(m.path!=="/"&&(a.path=""+m.path+a.path),!mn.REQUIRE_ACCESS_TOKEN)return $a(a);if(!(u=u||mn.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+c);if(u[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+c);return a.params=a.params.filter(function(E){return E.indexOf("access_token")===-1}),a.params.push("access_token="+u),$a(a)};var Jn=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Bn(a){return Jn.test(a)}var Do=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function oa(a){var u=a.match(Do);if(!u)throw new Error("Unable to parse URL object");return{protocol:u[1],authority:u[2],path:u[3]||"/",params:u[4]?u[4].split("&"):[]}}function $a(a){var u=a.params.length?"?"+a.params.join("&"):"";return a.protocol+"://"+a.authority+a.path+u}function Ot(a){if(!a)return null;var u=a.split(".");if(!u||u.length!==3)return null;try{return JSON.parse(decodeURIComponent(ie.atob(u[1]).split("").map(function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(c){return null}}var F=function(a){this.type=a,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};F.prototype.getStorageKey=function(a){var u,c=Ot(mn.ACCESS_TOKEN);return u=c&&c.u?ie.btoa(encodeURIComponent(c.u).replace(/%([0-9A-F]{2})/g,function(m,x){return String.fromCharCode(+("0x"+x))})):mn.ACCESS_TOKEN||"",a?"mapbox.eventData."+a+":"+u:"mapbox.eventData:"+u},F.prototype.fetchEventData=function(){var a=Ae("localStorage"),u=this.getStorageKey(),c=this.getStorageKey("uuid");if(a)try{var m=ie.localStorage.getItem(u);m&&(this.eventData=JSON.parse(m));var x=ie.localStorage.getItem(c);x&&(this.anonId=x)}catch(E){ft("Unable to read from LocalStorage")}},F.prototype.saveEventData=function(){var a=Ae("localStorage"),u=this.getStorageKey(),c=this.getStorageKey("uuid");if(a)try{ie.localStorage.setItem(c,this.anonId),Object.keys(this.eventData).length>=1&&ie.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(m){ft("Unable to write to LocalStorage")}},F.prototype.processRequests=function(a){},F.prototype.postEvent=function(a,u,c,m){var x=this;if(mn.EVENTS_URL){var E=oa(mn.EVENTS_URL);E.params.push("access_token="+(m||mn.ACCESS_TOKEN||""));var A={event:this.type,created:new Date(a).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:$i,userId:this.anonId},I=u?Ht(A,u):A,D={url:$a(E),headers:{"Content-Type":"text/plain"},body:JSON.stringify([I])};this.pendingRequest=di(D,function(N){x.pendingRequest=null,c(N),x.saveEventData(),x.processRequests(m)})}},F.prototype.queueRequest=function(a,u){this.queue.push(a),this.processRequests(u)};var ne,de,Ne=function(a){function u(){a.call(this,"map.load"),this.success={},this.skuToken=""}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.postMapLoadEvent=function(c,m,x,E){this.skuToken=x;var A=!(!E&&!mn.ACCESS_TOKEN),I=Array.isArray(c)&&c.some(function(D){return Zi(D)||Bn(D)});mn.EVENTS_URL&&A&&I&&this.queueRequest({id:m,timestamp:Date.now()},E)},u.prototype.processRequests=function(c){var m=this;if(!this.pendingRequest&&this.queue.length!==0){var x=this.queue.shift(),E=x.id,A=x.timestamp;E&&this.success[E]||(this.anonId||this.fetchEventData(),bt(this.anonId)||(this.anonId=yt()),this.postEvent(A,{skuToken:this.skuToken},function(I){I||E&&(m.success[E]=!0)},c))}},u}(F),_t=new(function(a){function u(c){a.call(this,"appUserTurnstile"),this._customAccessToken=c}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.postTurnstileEvent=function(c,m){mn.EVENTS_URL&&mn.ACCESS_TOKEN&&Array.isArray(c)&&c.some(function(x){return Zi(x)||Bn(x)})&&this.queueRequest(Date.now(),m)},u.prototype.processRequests=function(c){var m=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var x=Ot(mn.ACCESS_TOKEN),E=x?x.u:mn.ACCESS_TOKEN,A=E!==this.eventData.tokenU;bt(this.anonId)||(this.anonId=yt(),A=!0);var I=this.queue.shift();if(this.eventData.lastSuccess){var D=new Date(this.eventData.lastSuccess),N=new Date(I),j=(I-this.eventData.lastSuccess)/864e5;A=A||j>=1||j<-1||D.getDate()!==N.getDate()}else A=!0;if(!A)return this.processRequests();this.postEvent(I,{"enabled.telemetry":!1},function(X){X||(m.eventData.lastSuccess=I,m.eventData.tokenU=E)},c)}},u}(F)),Kt=_t.postTurnstileEvent.bind(_t),Ar=new Ne,Ve=Ar.postMapLoadEvent.bind(Ar),wt=500,sr=50;function dr(){ie.caches&&!ne&&(ne=ie.caches.open("mapbox-tiles"))}function Vr(a){var u=a.indexOf("?");return u<0?a:a.slice(0,u)}var Ln,En=1/0;function Rn(){return Ln==null&&(Ln=ie.OffscreenCanvas&&new ie.OffscreenCanvas(1,1).getContext("2d")&&typeof ie.createImageBitmap=="function"),Ln}var xn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(xn);var si=function(a){function u(c,m,x){m===401&&Bn(x)&&(c+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),a.call(this,c),this.status=m,this.url=x,this.name=this.constructor.name,this.message=c}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},u}(Error),ei=te()?function(){return self.worker&&self.worker.referrer}:function(){return(ie.location.protocol==="blob:"?ie.parent:ie).location.href},la,sa,Eo=function(a,u){if(!(/^file:/.test(c=a.url)||/^file:/.test(ei())&&!/^\w+:/.test(c))){if(ie.fetch&&ie.Request&&ie.AbortController&&ie.Request.prototype.hasOwnProperty("signal"))return function(m,x){var E,A=new ie.AbortController,I=new ie.Request(m.url,{method:m.method||"GET",body:m.body,credentials:m.credentials,headers:m.headers,referrer:ei(),signal:A.signal}),D=!1,N=!1,j=(E=I.url).indexOf("sku=")>0&&Bn(E);m.type==="json"&&I.headers.set("Accept","application/json");var X=function(R,Ce,Oe){if(!N){if(R&&R.message!=="SecurityError"&&ft(R),Ce&&Oe)return ee(Ce);var Qe=Date.now();ie.fetch(I).then(function(He){if(He.ok){var xt=j?He.clone():null;return ee(He,xt,Qe)}return x(new si(He.statusText,He.status,m.url))}).catch(function(He){He.code!==20&&x(new Error(He.message))})}},ee=function(R,Ce,Oe){(m.type==="arrayBuffer"?R.arrayBuffer():m.type==="json"?R.json():R.text()).then(function(Qe){N||(Ce&&Oe&&function(He,xt,It){if(dr(),ne){var Vt={status:xt.status,statusText:xt.statusText,headers:new ie.Headers};xt.headers.forEach(function(fr,Lr){return Vt.headers.set(Lr,fr)});var jt=H(xt.headers.get("Cache-Control")||"");jt["no-store"]||(jt["max-age"]&&Vt.headers.set("Expires",new Date(It+1e3*jt["max-age"]).toUTCString()),new Date(Vt.headers.get("Expires")).getTime()-It<42e4||function(fr,Lr){if(de===void 0)try{new Response(new ReadableStream),de=!0}catch(Gr){de=!1}de?Lr(fr.body):fr.blob().then(Lr)}(xt,function(fr){var Lr=new ie.Response(fr,Vt);dr(),ne&&ne.then(function(Gr){return Gr.put(Vr(He.url),Lr)}).catch(function(Gr){return ft(Gr.message)})}))}}(I,Ce,Oe),D=!0,x(null,Qe,R.headers.get("Cache-Control"),R.headers.get("Expires")))}).catch(function(Qe){N||x(new Error(Qe.message))})};return j?function(R,Ce){if(dr(),!ne)return Ce(null);var Oe=Vr(R.url);ne.then(function(Qe){Qe.match(Oe).then(function(He){var xt=function(It){if(!It)return!1;var Vt=new Date(It.headers.get("Expires")||0),jt=H(It.headers.get("Cache-Control")||"");return Vt>Date.now()&&!jt["no-cache"]}(He);Qe.delete(Oe),xt&&Qe.put(Oe,He.clone()),Ce(null,He,xt)}).catch(Ce)}).catch(Ce)}(I,X):X(null,null),{cancel:function(){N=!0,D||A.abort()}}}(a,u);if(te()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",a,u,void 0,!0)}var c;return function(m,x){var E=new ie.XMLHttpRequest;for(var A in E.open(m.method||"GET",m.url,!0),m.type==="arrayBuffer"&&(E.responseType="arraybuffer"),m.headers)E.setRequestHeader(A,m.headers[A]);return m.type==="json"&&(E.responseType="text",E.setRequestHeader("Accept","application/json")),E.withCredentials=m.credentials==="include",E.onerror=function(){x(new Error(E.statusText))},E.onload=function(){if((E.status>=200&&E.status<300||E.status===0)&&E.response!==null){var I=E.response;if(m.type==="json")try{I=JSON.parse(E.response)}catch(D){return x(D)}x(null,I,E.getResponseHeader("Cache-Control"),E.getResponseHeader("Expires"))}else x(new si(E.statusText,E.status,m.url))},E.send(m.body),{cancel:function(){return E.abort()}}}(a,u)},Ks=function(a,u){return Eo(Ht(a,{type:"arrayBuffer"}),u)},di=function(a,u){return Eo(Ht(a,{method:"POST"}),u)},W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";la=[],sa=0;var Q=function(a,u){if(un.supported&&(a.headers||(a.headers={}),a.headers.accept="image/webp,*/*"),sa>=mn.MAX_PARALLEL_IMAGE_REQUESTS){var c={requestParameters:a,callback:u,cancelled:!1,cancel:function(){this.cancelled=!0}};return la.push(c),c}sa++;var m=!1,x=function(){if(!m)for(m=!0,sa--;la.length&&sa0||this._oneTimeListeners&&this._oneTimeListeners[a]&&this._oneTimeListeners[a].length>0||this._eventedParent&&this._eventedParent.listens(a)},lt.prototype.setEventedParent=function(a,u){return this._eventedParent=a,this._eventedParentData=u,this};var V={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},q=function(a,u,c,m){this.message=(a?a+": ":"")+c,m&&(this.identifier=m),u!=null&&u.__line__&&(this.line=u.__line__)};function De(a){var u=a.value;return u?[new q(a.key,u,"constants have been deprecated as of v8")]:[]}function et(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];for(var m=0,x=u;m":a.itemType.kind==="value"?"array":"array<"+u+">"}return a.kind}var Xo=[nn,ar,Kr,Hr,$r,Yi,hi,Li(Qr),ci];function Ki(a,u){if(u.kind==="error")return null;if(a.kind==="array"){if(u.kind==="array"&&(u.N===0&&u.itemType.kind==="value"||!Ki(a.itemType,u.itemType))&&(typeof a.N!="number"||a.N===u.N))return null}else{if(a.kind===u.kind)return null;if(a.kind==="value"){for(var c=0,m=Xo;c255?255:I}function x(I){return m(I[I.length-1]==="%"?parseFloat(I)/100*255:parseInt(I))}function E(I){return(D=I[I.length-1]==="%"?parseFloat(I)/100:parseFloat(I))<0?0:D>1?1:D;var D}function A(I,D,N){return N<0?N+=1:N>1&&(N-=1),6*N<1?I+(D-I)*N*6:2*N<1?D:3*N<2?I+(D-I)*(2/3-N)*6:I}try{u.parseCSSColor=function(I){var D,N=I.replace(/ /g,"").toLowerCase();if(N in c)return c[N].slice();if(N[0]==="#")return N.length===4?(D=parseInt(N.substr(1),16))>=0&&D<=4095?[(3840&D)>>4|(3840&D)>>8,240&D|(240&D)>>4,15&D|(15&D)<<4,1]:null:N.length===7&&(D=parseInt(N.substr(1),16))>=0&&D<=16777215?[(16711680&D)>>16,(65280&D)>>8,255&D,1]:null;var j=N.indexOf("("),X=N.indexOf(")");if(j!==-1&&X+1===N.length){var ee=N.substr(0,j),R=N.substr(j+1,X-(j+1)).split(","),Ce=1;switch(ee){case"rgba":if(R.length!==4)return null;Ce=E(R.pop());case"rgb":return R.length!==3?null:[x(R[0]),x(R[1]),x(R[2]),Ce];case"hsla":if(R.length!==4)return null;Ce=E(R.pop());case"hsl":if(R.length!==3)return null;var Oe=(parseFloat(R[0])%360+360)%360/360,Qe=E(R[1]),He=E(R[2]),xt=He<=.5?He*(Qe+1):He+Qe-He*Qe,It=2*He-xt;return[m(255*A(It,xt,Oe+1/3)),m(255*A(It,xt,Oe)),m(255*A(It,xt,Oe-1/3)),Ce];default:return null}}return null}}catch(I){}}).parseCSSColor,Ti=function(a,u,c,m){m===void 0&&(m=1),this.r=a,this.g=u,this.b=c,this.a=m};Ti.parse=function(a){if(a){if(a instanceof Ti)return a;if(typeof a=="string"){var u=mi(a);if(u)return new Ti(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},Ti.prototype.toString=function(){var a=this.toArray(),u=a[1],c=a[2],m=a[3];return"rgba("+Math.round(a[0])+","+Math.round(u)+","+Math.round(c)+","+m+")"},Ti.prototype.toArray=function(){var a=this.a;return a===0?[0,0,0,0]:[255*this.r/a,255*this.g/a,255*this.b/a,a]},Ti.black=new Ti(0,0,0,1),Ti.white=new Ti(1,1,1,1),Ti.transparent=new Ti(0,0,0,0),Ti.red=new Ti(1,0,0,1);var Pa=function(a,u,c){this.sensitivity=a?u?"variant":"case":u?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Pa.prototype.compare=function(a,u){return this.collator.compare(a,u)},Pa.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var cu=function(a,u,c,m,x){this.text=a,this.image=u,this.scale=c,this.fontStack=m,this.textColor=x},ma=function(a){this.sections=a};ma.fromString=function(a){return new ma([new cu(a,null,null,null,null)])},ma.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(a){return a.text.length!==0||a.image&&a.image.name.length!==0})},ma.factory=function(a){return a instanceof ma?a:ma.fromString(a)},ma.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(a){return a.text}).join("")},ma.prototype.serialize=function(){for(var a=["format"],u=0,c=this.sections;u=0&&a<=255&&typeof u=="number"&&u>=0&&u<=255&&typeof c=="number"&&c>=0&&c<=255?m===void 0||typeof m=="number"&&m>=0&&m<=1?null:"Invalid rgba value ["+[a,u,c,m].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof m=="number"?[a,u,c,m]:[a,u,c]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function os(a){if(a===null||typeof a=="string"||typeof a=="boolean"||typeof a=="number"||a instanceof Ti||a instanceof Pa||a instanceof ma||a instanceof Aa)return!0;if(Array.isArray(a)){for(var u=0,c=a;u2){var I=a[1];if(typeof I!="string"||!(I in So)||I==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);E=So[I],m++}else E=Qr;if(a.length>3){if(a[2]!==null&&(typeof a[2]!="number"||a[2]<0||a[2]!==Math.floor(a[2])))return u.error('The length argument to "array" must be a positive integer literal',2);A=a[2],m++}c=Li(E,A)}else c=So[x];for(var D=[];m1)&&u.push(m)}}return u.concat(this.args.map(function(x){return x.serialize()}))};var $o=function(a){this.type=Yi,this.sections=a};$o.parse=function(a,u){if(a.length<2)return u.error("Expected at least one argument.");var c=a[1];if(!Array.isArray(c)&&typeof c=="object")return u.error("First argument must be an image or text section.");for(var m=[],x=!1,E=1;E<=a.length-1;++E){var A=a[E];if(x&&typeof A=="object"&&!Array.isArray(A)){x=!1;var I=null;if(A["font-scale"]&&!(I=u.parse(A["font-scale"],1,ar)))return null;var D=null;if(A["text-font"]&&!(D=u.parse(A["text-font"],1,Li(Kr))))return null;var N=null;if(A["text-color"]&&!(N=u.parse(A["text-color"],1,$r)))return null;var j=m[m.length-1];j.scale=I,j.font=D,j.textColor=N}else{var X=u.parse(a[E],1,Qr);if(!X)return null;var ee=X.type.kind;if(ee!=="string"&&ee!=="value"&&ee!=="null"&&ee!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");x=!0,m.push({content:X,scale:null,font:null,textColor:null})}}return new $o(m)},$o.prototype.evaluate=function(a){return new ma(this.sections.map(function(u){var c=u.content.evaluate(a);return Ta(c)===ci?new cu("",c,null,null,null):new cu(fi(c),null,u.scale?u.scale.evaluate(a):null,u.font?u.font.evaluate(a).join(","):null,u.textColor?u.textColor.evaluate(a):null)}))},$o.prototype.eachChild=function(a){for(var u=0,c=this.sections;u-1),c},Vo.prototype.eachChild=function(a){a(this.input)},Vo.prototype.outputDefined=function(){return!1},Vo.prototype.serialize=function(){return["image",this.input.serialize()]};var Ru={"to-boolean":Hr,"to-color":$r,"to-number":ar,"to-string":Kr},ss=function(a,u){this.type=a,this.args=u};ss.parse=function(a,u){if(a.length<2)return u.error("Expected at least one argument.");var c=a[0];if((c==="to-boolean"||c==="to-string")&&a.length!==2)return u.error("Expected one argument.");for(var m=Ru[c],x=[],E=1;E4?"Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":$l(u[0],u[1],u[2],u[3])))return new Ti(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new ia(c||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}if(this.type.kind==="number"){for(var A=null,I=0,D=this.args;I=u[2]||a[1]<=u[1]||a[3]>=u[3])}function Te(a,u){var c=(180+a[0])/360,m=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a[1]*Math.PI/360)))/360,x=Math.pow(2,u.z);return[Math.round(c*x*8192),Math.round(m*x*8192)]}function ot(a,u,c){return u[1]>a[1]!=c[1]>a[1]&&a[0]<(c[0]-u[0])*(a[1]-u[1])/(c[1]-u[1])+u[0]}function nr(a,u){for(var c,m,x,E,A,I,D,N=!1,j=0,X=u.length;j0&&I<0||A<0&&I>0}function Vi(a,u,c){for(var m=0,x=c;mc[2]){var x=.5*m,E=a[0]-c[0]>x?-m:c[0]-a[0]>x?m:0;E===0&&(E=a[0]-c[2]>x?-m:c[2]-a[0]>x?m:0),a[0]+=E}yn(u,a)}function Kh(a,u,c,m){for(var x=8192*Math.pow(2,m.z),E=[8192*m.x,8192*m.y],A=[],I=0,D=a;I=0)return!1;var c=!0;return a.eachChild(function(m){c&&!Mu(m,u)&&(c=!1)}),c}jo.parse=function(a,u){if(a.length!==2)return u.error("'within' expression requires exactly one argument, but found "+(a.length-1)+" instead.");if(os(a[1])){var c=a[1];if(c.type==="FeatureCollection")for(var m=0;mu))throw new ia("Input is not a number.");E=A-1}return 0}Qu.prototype.parse=function(a,u,c,m,x){return x===void 0&&(x={}),u?this.concat(u,c,m)._parse(a,x):this._parse(a,x)},Qu.prototype._parse=function(a,u){function c(N,j,X){return X==="assert"?new ha(j,[N]):X==="coerce"?new ss(j,[N]):N}if(a!==null&&typeof a!="string"&&typeof a!="boolean"&&typeof a!="number"||(a=["literal",a]),Array.isArray(a)){if(a.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var m=a[0];if(typeof m!="string")return this.error("Expression name must be a string, but found "+typeof m+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var x=this.registry[m];if(x){var E=x.parse(a,this);if(!E)return null;if(this.expectedType){var A=this.expectedType,I=E.type;if(A.kind!=="string"&&A.kind!=="number"&&A.kind!=="boolean"&&A.kind!=="object"&&A.kind!=="array"||I.kind!=="value")if(A.kind!=="color"&&A.kind!=="formatted"&&A.kind!=="resolvedImage"||I.kind!=="value"&&I.kind!=="string"){if(this.checkSubtype(A,I))return null}else E=c(E,A,u.typeAnnotation||"coerce");else E=c(E,A,u.typeAnnotation||"assert")}if(!(E instanceof Oa)&&E.type.kind!=="resolvedImage"&&function N(j){if(j instanceof Iu)return N(j.boundExpression);if(j instanceof Qi&&j.name==="error"||j instanceof Wt||j instanceof jo)return!1;var X=j instanceof ss||j instanceof ha,ee=!0;return j.eachChild(function(R){ee=X?ee&&N(R):ee&&R instanceof Oa}),!!ee&&xl(j)&&Mu(j,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(E)){var D=new Ea;try{E=new Oa(E.type,E.evaluate(D))}catch(N){return this.error(N.message),null}}return E}return this.error('Unknown expression "'+m+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(a===void 0?"'undefined' value invalid. Use null instead.":typeof a=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof a+" instead.")},Qu.prototype.concat=function(a,u,c){var m=typeof a=="number"?this.path.concat(a):this.path,x=c?this.scope.concat(c):this.scope;return new Qu(this.registry,m,u||null,x,this.errors)},Qu.prototype.error=function(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];var m=""+this.key+u.map(function(x){return"["+x+"]"}).join("");this.errors.push(new Tr(m,a))},Qu.prototype.checkSubtype=function(a,u){var c=Ki(a,u);return c&&this.error(c),c};var Ps=function(a,u,c){this.type=a,this.input=u,this.labels=[],this.outputs=[];for(var m=0,x=c;m=A)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',D);var j=u.parse(I,N,x);if(!j)return null;x=x||j.type,m.push([A,j])}return new Ps(x,c,m)},Ps.prototype.evaluate=function(a){var u=this.labels,c=this.outputs;if(u.length===1)return c[0].evaluate(a);var m=this.input.evaluate(a);if(m<=u[0])return c[0].evaluate(a);var x=u.length;return m>=u[x-1]?c[x-1].evaluate(a):c[Qc(u,m)].evaluate(a)},Ps.prototype.eachChild=function(a){a(this.input);for(var u=0,c=this.outputs;u0&&a.push(this.labels[u]),a.push(this.outputs[u].serialize());return a};var El=Object.freeze({__proto__:null,number:Ya,color:function(a,u,c){return new Ti(Ya(a.r,u.r,c),Ya(a.g,u.g,c),Ya(a.b,u.b,c),Ya(a.a,u.a,c))},array:function(a,u,c){return a.map(function(m,x){return Ya(m,u[x],c)})}}),Ju=6/29*3*(6/29),Rf=Math.PI/180,Qh=180/Math.PI;function Mf(a){return a>.008856451679035631?Math.pow(a,1/3):a/Ju+4/29}function ph(a){return a>6/29?a*a*a:Ju*(a-4/29)}function dh(a){return 255*(a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}function vh(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Jh(a){var u=vh(a.r),c=vh(a.g),m=vh(a.b),x=Mf((.4124564*u+.3575761*c+.1804375*m)/.95047),E=Mf((.2126729*u+.7151522*c+.072175*m)/1);return{l:116*E-16,a:500*(x-E),b:200*(E-Mf((.0193339*u+.119192*c+.9503041*m)/1.08883)),alpha:a.a}}function ep(a){var u=(a.l+16)/116,c=isNaN(a.a)?u:u+a.a/500,m=isNaN(a.b)?u:u-a.b/200;return u=1*ph(u),c=.95047*ph(c),m=1.08883*ph(m),new Ti(dh(3.2404542*c-1.5371385*u-.4985314*m),dh(-.969266*c+1.8760108*u+.041556*m),dh(.0556434*c-.2040259*u+1.0572252*m),a.alpha)}function Zp(a,u,c){var m=u-a;return a+c*(m>180||m<-180?m-360*Math.round(m/360):m)}var Jc={forward:Jh,reverse:ep,interpolate:function(a,u,c){return{l:Ya(a.l,u.l,c),a:Ya(a.a,u.a,c),b:Ya(a.b,u.b,c),alpha:Ya(a.alpha,u.alpha,c)}}},Pu={forward:function(a){var u=Jh(a),c=u.l,m=u.a,x=u.b,E=Math.atan2(x,m)*Qh;return{h:E<0?E+360:E,c:Math.sqrt(m*m+x*x),l:c,alpha:a.a}},reverse:function(a){var u=a.h*Rf,c=a.c;return ep({l:a.l,a:Math.cos(u)*c,b:Math.sin(u)*c,alpha:a.alpha})},interpolate:function(a,u,c){return{h:Zp(a.h,u.h,c),c:Ya(a.c,u.c,c),l:Ya(a.l,u.l,c),alpha:Ya(a.alpha,u.alpha,c)}}},tp=Object.freeze({__proto__:null,lab:Jc,hcl:Pu}),Ho=function(a,u,c,m,x){this.type=a,this.operator=u,this.interpolation=c,this.input=m,this.labels=[],this.outputs=[];for(var E=0,A=x;E1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);m={name:"cubic-bezier",controlPoints:I}}if(a.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(a.length-1)+".");if((a.length-1)%2!=0)return u.error("Expected an even number of arguments.");if(!(x=u.parse(x,2,ar)))return null;var D=[],N=null;c==="interpolate-hcl"||c==="interpolate-lab"?N=$r:u.expectedType&&u.expectedType.kind!=="value"&&(N=u.expectedType);for(var j=0;j=X)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',R);var Oe=u.parse(ee,Ce,N);if(!Oe)return null;N=N||Oe.type,D.push([X,Oe])}return N.kind==="number"||N.kind==="color"||N.kind==="array"&&N.itemType.kind==="number"&&typeof N.N=="number"?new Ho(N,c,m,x,D):u.error("Type "+Si(N)+" is not interpolatable.")},Ho.prototype.evaluate=function(a){var u=this.labels,c=this.outputs;if(u.length===1)return c[0].evaluate(a);var m=this.input.evaluate(a);if(m<=u[0])return c[0].evaluate(a);var x=u.length;if(m>=u[x-1])return c[x-1].evaluate(a);var E=Qc(u,m),A=Ho.interpolationFactor(this.interpolation,m,u[E],u[E+1]),I=c[E].evaluate(a),D=c[E+1].evaluate(a);return this.operator==="interpolate"?El[this.type.kind.toLowerCase()](I,D,A):this.operator==="interpolate-hcl"?Pu.reverse(Pu.interpolate(Pu.forward(I),Pu.forward(D),A)):Jc.reverse(Jc.interpolate(Jc.forward(I),Jc.forward(D),A))},Ho.prototype.eachChild=function(a){a(this.input);for(var u=0,c=this.outputs;u=c.length)throw new ia("Array index out of bounds: "+u+" > "+(c.length-1)+".");if(u!==Math.floor(u))throw new ia("Array index must be an integer, but found "+u+" instead.");return c[u]},Al.prototype.eachChild=function(a){a(this.index),a(this.input)},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ii=function(a,u){this.type=Hr,this.needle=a,this.haystack=u};ii.parse=function(a,u){if(a.length!==3)return u.error("Expected 2 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,Qr),m=u.parse(a[2],2,Qr);return c&&m?Ia(c.type,[Hr,Kr,ar,nn,Qr])?new ii(c,m):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Si(c.type)+" instead"):null},ii.prototype.evaluate=function(a){var u=this.needle.evaluate(a),c=this.haystack.evaluate(a);if(!c)return!1;if(!Ai(u,["boolean","string","number","null"]))throw new ia("Expected first argument to be of type boolean, string, number or null, but found "+Si(Ta(u))+" instead.");if(!Ai(c,["string","array"]))throw new ia("Expected second argument to be of type array or string, but found "+Si(Ta(c))+" instead.");return c.indexOf(u)>=0},ii.prototype.eachChild=function(a){a(this.needle),a(this.haystack)},ii.prototype.outputDefined=function(){return!0},ii.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var el=function(a,u,c){this.type=ar,this.needle=a,this.haystack=u,this.fromIndex=c};el.parse=function(a,u){if(a.length<=2||a.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,Qr),m=u.parse(a[2],2,Qr);if(!c||!m)return null;if(!Ia(c.type,[Hr,Kr,ar,nn,Qr]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Si(c.type)+" instead");if(a.length===4){var x=u.parse(a[3],3,ar);return x?new el(c,m,x):null}return new el(c,m)},el.prototype.evaluate=function(a){var u=this.needle.evaluate(a),c=this.haystack.evaluate(a);if(!Ai(u,["boolean","string","number","null"]))throw new ia("Expected first argument to be of type boolean, string, number or null, but found "+Si(Ta(u))+" instead.");if(!Ai(c,["string","array"]))throw new ia("Expected second argument to be of type array or string, but found "+Si(Ta(c))+" instead.");if(this.fromIndex){var m=this.fromIndex.evaluate(a);return c.indexOf(u,m)}return c.indexOf(u)},el.prototype.eachChild=function(a){a(this.needle),a(this.haystack),this.fromIndex&&a(this.fromIndex)},el.prototype.outputDefined=function(){return!1},el.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var a=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),a]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Os=function(a,u,c,m,x,E){this.inputType=a,this.type=u,this.input=c,this.cases=m,this.outputs=x,this.otherwise=E};Os.parse=function(a,u){if(a.length<5)return u.error("Expected at least 4 arguments, but found only "+(a.length-1)+".");if(a.length%2!=1)return u.error("Expected an even number of arguments.");var c,m;u.expectedType&&u.expectedType.kind!=="value"&&(m=u.expectedType);for(var x={},E=[],A=2;ANumber.MAX_SAFE_INTEGER)return N.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof ee=="number"&&Math.floor(ee)!==ee)return N.error("Numeric branch labels must be integer values.");if(c){if(N.checkSubtype(c,Ta(ee)))return null}else c=Ta(ee);if(x[String(ee)]!==void 0)return N.error("Branch labels must be unique.");x[String(ee)]=E.length}var R=u.parse(D,A,m);if(!R)return null;m=m||R.type,E.push(R)}var Ce=u.parse(a[1],1,Qr);if(!Ce)return null;var Oe=u.parse(a[a.length-1],a.length-1,m);return Oe?Ce.type.kind!=="value"&&u.concat(1).checkSubtype(c,Ce.type)?null:new Os(c,m,Ce,x,E,Oe):null},Os.prototype.evaluate=function(a){var u=this.input.evaluate(a);return(Ta(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise).evaluate(a)},Os.prototype.eachChild=function(a){a(this.input),this.outputs.forEach(a),a(this.otherwise)},Os.prototype.outputDefined=function(){return this.outputs.every(function(a){return a.outputDefined()})&&this.otherwise.outputDefined()},Os.prototype.serialize=function(){for(var a=this,u=["match",this.input.serialize()],c=[],m={},x=0,E=Object.keys(this.cases).sort();x=5)return u.error("Expected 3 or 4 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,Qr),m=u.parse(a[2],2,ar);if(!c||!m)return null;if(!Ia(c.type,[Li(Qr),Kr,Qr]))return u.error("Expected first argument to be of type array or string, but found "+Si(c.type)+" instead");if(a.length===4){var x=u.parse(a[3],3,ar);return x?new tl(c.type,c,m,x):null}return new tl(c.type,c,m)},tl.prototype.evaluate=function(a){var u=this.input.evaluate(a),c=this.beginIndex.evaluate(a);if(!Ai(u,["string","array"]))throw new ia("Expected first argument to be of type array or string, but found "+Si(Ta(u))+" instead.");if(this.endIndex){var m=this.endIndex.evaluate(a);return u.slice(c,m)}return u.slice(c)},tl.prototype.eachChild=function(a){a(this.input),a(this.beginIndex),this.endIndex&&a(this.endIndex)},tl.prototype.outputDefined=function(){return!1},tl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var a=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),a]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var fu=Ci("==",function(a,u,c){return u===c},Ji),Du=Ci("!=",function(a,u,c){return u!==c},function(a,u,c,m){return!Ji(0,u,c,m)}),mh=Ci("<",function(a,u,c){return u",function(a,u,c){return u>c},function(a,u,c,m){return m.compare(u,c)>0}),ef=Ci("<=",function(a,u,c){return u<=c},function(a,u,c,m){return m.compare(u,c)<=0}),Vp=Ci(">=",function(a,u,c){return u>=c},function(a,u,c,m){return m.compare(u,c)>=0}),xs=function(a,u,c,m,x){this.type=Kr,this.number=a,this.locale=u,this.currency=c,this.minFractionDigits=m,this.maxFractionDigits=x};xs.parse=function(a,u){if(a.length!==3)return u.error("Expected two arguments.");var c=u.parse(a[1],1,ar);if(!c)return null;var m=a[2];if(typeof m!="object"||Array.isArray(m))return u.error("NumberFormat options argument must be an object.");var x=null;if(m.locale&&!(x=u.parse(m.locale,1,Kr)))return null;var E=null;if(m.currency&&!(E=u.parse(m.currency,1,Kr)))return null;var A=null;if(m["min-fraction-digits"]&&!(A=u.parse(m["min-fraction-digits"],1,ar)))return null;var I=null;return m["max-fraction-digits"]&&!(I=u.parse(m["max-fraction-digits"],1,ar))?null:new xs(c,x,E,A,I)},xs.prototype.evaluate=function(a){return new Intl.NumberFormat(this.locale?this.locale.evaluate(a):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(a):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(a):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(a):void 0}).format(this.number.evaluate(a))},xs.prototype.eachChild=function(a){a(this.number),this.locale&&a(this.locale),this.currency&&a(this.currency),this.minFractionDigits&&a(this.minFractionDigits),this.maxFractionDigits&&a(this.maxFractionDigits)},xs.prototype.outputDefined=function(){return!1},xs.prototype.serialize=function(){var a={};return this.locale&&(a.locale=this.locale.serialize()),this.currency&&(a.currency=this.currency.serialize()),this.minFractionDigits&&(a["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(a["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),a]};var ku=function(a){this.type=ar,this.input=a};ku.parse=function(a,u){if(a.length!==2)return u.error("Expected 1 argument, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1);return c?c.type.kind!=="array"&&c.type.kind!=="string"&&c.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+Si(c.type)+" instead."):new ku(c):null},ku.prototype.evaluate=function(a){var u=this.input.evaluate(a);if(typeof u=="string"||Array.isArray(u))return u.length;throw new ia("Expected value to be of type string or array, but found "+Si(Ta(u))+" instead.")},ku.prototype.eachChild=function(a){a(this.input)},ku.prototype.outputDefined=function(){return!1},ku.prototype.serialize=function(){var a=["length"];return this.eachChild(function(u){a.push(u.serialize())}),a};var Fu={"==":fu,"!=":Du,">":ja,"<":mh,">=":Vp,"<=":ef,array:ha,at:Al,boolean:ha,case:Ou,coalesce:Sl,collator:Wt,format:$o,image:Vo,in:ii,"index-of":el,interpolate:Ho,"interpolate-hcl":Ho,"interpolate-lab":Ho,length:ku,let:Xs,literal:Oa,match:Os,number:ha,"number-format":xs,object:ha,slice:tl,step:Ps,string:ha,"to-boolean":ss,"to-color":ss,"to-number":ss,"to-string":ss,var:Iu,within:jo};function ql(a,u){var c=u[0],m=u[1],x=u[2],E=u[3];c=c.evaluate(a),m=m.evaluate(a),x=x.evaluate(a);var A=E?E.evaluate(a):1,I=$l(c,m,x,A);if(I)throw new ia(I);return new Ti(c/255*A,m/255*A,x/255*A,A)}function If(a,u){return a in u}function wa(a,u){var c=u[a];return c===void 0?null:c}function Qs(a){return{type:a}}function Rc(a){return{result:"success",value:a}}function Kl(a){return{result:"error",value:a}}function rl(a){return a["property-type"]==="data-driven"||a["property-type"]==="cross-faded-data-driven"}function gh(a){return!!a.expression&&a.expression.parameters.indexOf("zoom")>-1}function Ql(a){return!!a.expression&&a.expression.interpolated}function ca(a){return a instanceof Number?"number":a instanceof String?"string":a instanceof Boolean?"boolean":Array.isArray(a)?"array":a===null?"null":typeof a}function tf(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function np(a){return a}function Tl(a,u,c){return a!==void 0?a:u!==void 0?u:c!==void 0?c:void 0}function Jl(a,u,c,m,x){return Tl(typeof c===x?m[c]:void 0,a.default,u.default)}function _h(a,u,c){if(ca(c)!=="number")return Tl(a.default,u.default);var m=a.stops.length;if(m===1||c<=a.stops[0][0])return a.stops[0][1];if(c>=a.stops[m-1][0])return a.stops[m-1][1];var x=Qc(a.stops.map(function(E){return E[0]}),c);return a.stops[x][1]}function Pf(a,u,c){var m=a.base!==void 0?a.base:1;if(ca(c)!=="number")return Tl(a.default,u.default);var x=a.stops.length;if(x===1||c<=a.stops[0][0])return a.stops[0][1];if(c>=a.stops[x-1][0])return a.stops[x-1][1];var E=Qc(a.stops.map(function(X){return X[0]}),c),A=function(X,ee,R,Ce){var Oe=Ce-R,Qe=X-R;return Oe===0?0:ee===1?Qe/Oe:(Math.pow(ee,Qe)-1)/(Math.pow(ee,Oe)-1)}(c,m,a.stops[E][0],a.stops[E+1][0]),I=a.stops[E][1],D=a.stops[E+1][1],N=El[u.type]||np;if(a.colorSpace&&a.colorSpace!=="rgb"){var j=tp[a.colorSpace];N=function(X,ee){return j.reverse(j.interpolate(j.forward(X),j.forward(ee),A))}}return typeof I.evaluate=="function"?{evaluate:function(){for(var X=[],ee=arguments.length;ee--;)X[ee]=arguments[ee];var R=I.evaluate.apply(void 0,X),Ce=D.evaluate.apply(void 0,X);if(R!==void 0&&Ce!==void 0)return N(R,Ce,A)}}:N(I,D,A)}function wl(a,u,c){return u.type==="color"?c=Ti.parse(c):u.type==="formatted"?c=ma.fromString(c.toString()):u.type==="resolvedImage"?c=Aa.fromString(c.toString()):ca(c)===u.type||u.type==="enum"&&u.values[c]||(c=void 0),Tl(c,a.default,u.default)}Qi.register(Fu,{error:[{kind:"error"},[Kr],function(a,u){throw new ia(u[0].evaluate(a))}],typeof:[Kr,[Qr],function(a,u){return Si(Ta(u[0].evaluate(a)))}],"to-rgba":[Li(ar,4),[$r],function(a,u){return u[0].evaluate(a).toArray()}],rgb:[$r,[ar,ar,ar],ql],rgba:[$r,[ar,ar,ar,ar],ql],has:{type:Hr,overloads:[[[Kr],function(a,u){return If(u[0].evaluate(a),a.properties())}],[[Kr,hi],function(a,u){var c=u[1];return If(u[0].evaluate(a),c.evaluate(a))}]]},get:{type:Qr,overloads:[[[Kr],function(a,u){return wa(u[0].evaluate(a),a.properties())}],[[Kr,hi],function(a,u){var c=u[1];return wa(u[0].evaluate(a),c.evaluate(a))}]]},"feature-state":[Qr,[Kr],function(a,u){return wa(u[0].evaluate(a),a.featureState||{})}],properties:[hi,[],function(a){return a.properties()}],"geometry-type":[Kr,[],function(a){return a.geometryType()}],id:[Qr,[],function(a){return a.id()}],zoom:[ar,[],function(a){return a.globals.zoom}],"heatmap-density":[ar,[],function(a){return a.globals.heatmapDensity||0}],"line-progress":[ar,[],function(a){return a.globals.lineProgress||0}],accumulated:[Qr,[],function(a){return a.globals.accumulated===void 0?null:a.globals.accumulated}],"+":[ar,Qs(ar),function(a,u){for(var c=0,m=0,x=u;m":[Hr,[Kr,Qr],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x>E}],"filter-id->":[Hr,[Qr],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m>x}],"filter-<=":[Hr,[Kr,Qr],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x<=E}],"filter-id-<=":[Hr,[Qr],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m<=x}],"filter->=":[Hr,[Kr,Qr],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x>=E}],"filter-id->=":[Hr,[Qr],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m>=x}],"filter-has":[Hr,[Qr],function(a,u){return u[0].value in a.properties()}],"filter-has-id":[Hr,[],function(a){return a.id()!==null&&a.id()!==void 0}],"filter-type-in":[Hr,[Li(Kr)],function(a,u){return u[0].value.indexOf(a.geometryType())>=0}],"filter-id-in":[Hr,[Li(Qr)],function(a,u){return u[0].value.indexOf(a.id())>=0}],"filter-in-small":[Hr,[Kr,Li(Qr)],function(a,u){var c=u[0];return u[1].value.indexOf(a.properties()[c.value])>=0}],"filter-in-large":[Hr,[Kr,Li(Qr)],function(a,u){var c=u[0],m=u[1];return function(x,E,A,I){for(;A<=I;){var D=A+I>>1;if(E[D]===x)return!0;E[D]>x?I=D-1:A=D+1}return!1}(a.properties()[c.value],m.value,0,m.value.length-1)}],all:{type:Hr,overloads:[[[Hr,Hr],function(a,u){var c=u[1];return u[0].evaluate(a)&&c.evaluate(a)}],[Qs(Hr),function(a,u){for(var c=0,m=u;c0&&typeof a[0]=="string"&&a[0]in Fu}function rf(a,u){var c=new Qu(Fu,[],u?function(x){var E={color:$r,string:Kr,number:ar,enum:Kr,boolean:Hr,formatted:Yi,resolvedImage:ci};return x.type==="array"?Li(E[x.value]||Qr,x.length):E[x.type]}(u):void 0),m=c.parse(a,void 0,void 0,void 0,u&&u.type==="string"?{typeAnnotation:"coerce"}:void 0);return m?Rc(new hu(m,u)):Kl(c.errors)}hu.prototype.evaluateWithoutErrorHandling=function(a,u,c,m,x,E){return this._evaluator.globals=a,this._evaluator.feature=u,this._evaluator.featureState=c,this._evaluator.canonical=m,this._evaluator.availableImages=x||null,this._evaluator.formattedSection=E,this.expression.evaluate(this._evaluator)},hu.prototype.evaluate=function(a,u,c,m,x,E){this._evaluator.globals=a,this._evaluator.feature=u||null,this._evaluator.featureState=c||null,this._evaluator.canonical=m,this._evaluator.availableImages=x||null,this._evaluator.formattedSection=E||null;try{var A=this.expression.evaluate(this._evaluator);if(A==null||typeof A=="number"&&A!=A)return this._defaultValue;if(this._enumValues&&!(A in this._enumValues))throw new ia("Expected value to be one of "+Object.keys(this._enumValues).map(function(I){return JSON.stringify(I)}).join(", ")+", but found "+JSON.stringify(A)+" instead.");return A}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console!="undefined"&&console.warn(I.message)),this._defaultValue}};var ec=function(a,u){this.kind=a,this._styleExpression=u,this.isStateDependent=a!=="constant"&&!bl(u.expression)};ec.prototype.evaluateWithoutErrorHandling=function(a,u,c,m,x,E){return this._styleExpression.evaluateWithoutErrorHandling(a,u,c,m,x,E)},ec.prototype.evaluate=function(a,u,c,m,x,E){return this._styleExpression.evaluate(a,u,c,m,x,E)};var tc=function(a,u,c,m){this.kind=a,this.zoomStops=c,this._styleExpression=u,this.isStateDependent=a!=="camera"&&!bl(u.expression),this.interpolationType=m};function ip(a,u){if((a=rf(a,u)).result==="error")return a;var c=a.value.expression,m=xl(c);if(!m&&!rl(u))return Kl([new Tr("","data expressions not supported")]);var x=Mu(c,["zoom"]);if(!x&&!gh(u))return Kl([new Tr("","zoom expressions not supported")]);var E=function A(I){var D=null;if(I instanceof Xs)D=A(I.result);else if(I instanceof Sl)for(var N=0,j=I.args;Nm.maximum?[new q(u,c,c+" is greater than the maximum value "+m.maximum)]:[]}function yh(a){var u,c,m,x=a.valueSpec,E=be(a.value.type),A={},I=E!=="categorical"&&a.value.property===void 0,D=!I,N=ca(a.value.stops)==="array"&&ca(a.value.stops[0])==="array"&&ca(a.value.stops[0][0])==="object",j=Js({key:a.key,value:a.value,valueSpec:a.styleSpec.function,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{stops:function(R){if(E==="identity")return[new q(R.key,R.value,'identity function may not have a "stops" property')];var Ce=[],Oe=R.value;return Ce=Ce.concat(nf({key:R.key,value:Oe,valueSpec:R.valueSpec,style:R.style,styleSpec:R.styleSpec,arrayElementValidator:X})),ca(Oe)==="array"&&Oe.length===0&&Ce.push(new q(R.key,Oe,"array must have at least one stop")),Ce},default:function(R){return ki({key:R.key,value:R.value,valueSpec:x,style:R.style,styleSpec:R.styleSpec})}}});return E==="identity"&&I&&j.push(new q(a.key,a.value,'missing required property "property"')),E==="identity"||a.value.stops||j.push(new q(a.key,a.value,'missing required property "stops"')),E==="exponential"&&a.valueSpec.expression&&!Ql(a.valueSpec)&&j.push(new q(a.key,a.value,"exponential functions not supported")),a.styleSpec.$version>=8&&(D&&!rl(a.valueSpec)?j.push(new q(a.key,a.value,"property functions not supported")):I&&!gh(a.valueSpec)&&j.push(new q(a.key,a.value,"zoom functions not supported"))),E!=="categorical"&&!N||a.value.property!==void 0||j.push(new q(a.key,a.value,'"property" property is required')),j;function X(R){var Ce=[],Oe=R.value,Qe=R.key;if(ca(Oe)!=="array")return[new q(Qe,Oe,"array expected, "+ca(Oe)+" found")];if(Oe.length!==2)return[new q(Qe,Oe,"array length 2 expected, length "+Oe.length+" found")];if(N){if(ca(Oe[0])!=="object")return[new q(Qe,Oe,"object expected, "+ca(Oe[0])+" found")];if(Oe[0].zoom===void 0)return[new q(Qe,Oe,"object stop key must have zoom")];if(Oe[0].value===void 0)return[new q(Qe,Oe,"object stop key must have value")];if(m&&m>be(Oe[0].zoom))return[new q(Qe,Oe[0].zoom,"stop zoom values must appear in ascending order")];be(Oe[0].zoom)!==m&&(m=be(Oe[0].zoom),c=void 0,A={}),Ce=Ce.concat(Js({key:Qe+"[0]",value:Oe[0],valueSpec:{zoom:{}},style:R.style,styleSpec:R.styleSpec,objectElementValidators:{zoom:Ic,value:ee}}))}else Ce=Ce.concat(ee({key:Qe+"[0]",value:Oe[0],valueSpec:{},style:R.style,styleSpec:R.styleSpec},Oe));return Mc(er(Oe[1]))?Ce.concat([new q(Qe+"[1]",Oe[1],"expressions are not allowed in function stops.")]):Ce.concat(ki({key:Qe+"[1]",value:Oe[1],valueSpec:x,style:R.style,styleSpec:R.styleSpec}))}function ee(R,Ce){var Oe=ca(R.value),Qe=be(R.value),He=R.value!==null?R.value:Ce;if(u){if(Oe!==u)return[new q(R.key,He,Oe+" stop domain type must match previous stop domain type "+u)]}else u=Oe;if(Oe!=="number"&&Oe!=="string"&&Oe!=="boolean")return[new q(R.key,He,"stop domain value must be a number, string, or boolean")];if(Oe!=="number"&&E!=="categorical"){var xt="number expected, "+Oe+" found";return rl(x)&&E===void 0&&(xt+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new q(R.key,He,xt)]}return E!=="categorical"||Oe!=="number"||isFinite(Qe)&&Math.floor(Qe)===Qe?E!=="categorical"&&Oe==="number"&&c!==void 0&&Qe=2&&a[1]!=="$id"&&a[1]!=="$type";case"in":return a.length>=3&&(typeof a[1]!="string"||Array.isArray(a[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return a.length!==3||Array.isArray(a[1])||Array.isArray(a[2]);case"any":case"all":for(var u=0,c=a.slice(1);uu?1:0}function Of(a){if(!a)return!0;var u,c=a[0];return a.length<=1?c!=="any":c==="=="?xh(a[1],a[2],"=="):c==="!="?bh(xh(a[1],a[2],"==")):c==="<"||c===">"||c==="<="||c===">="?xh(a[1],a[2],c):c==="any"?(u=a.slice(1),["any"].concat(u.map(Of))):c==="all"?["all"].concat(a.slice(1).map(Of)):c==="none"?["all"].concat(a.slice(1).map(Of).map(bh)):c==="in"?Df(a[1],a.slice(2)):c==="!in"?bh(Df(a[1],a.slice(2))):c==="has"?ko(a[1]):c==="!has"?bh(ko(a[1])):c!=="within"||a}function xh(a,u,c){switch(a){case"$type":return["filter-type-"+c,u];case"$id":return["filter-id-"+c,u];default:return["filter-"+c,a,u]}}function Df(a,u){if(u.length===0)return!1;switch(a){case"$type":return["filter-type-in",["literal",u]];case"$id":return["filter-id-in",["literal",u]];default:return u.length>200&&!u.some(function(c){return typeof c!=typeof u[0]})?["filter-in-large",a,["literal",u.sort(Md)]]:["filter-in-small",a,["literal",u]]}}function ko(a){switch(a){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",a]}}function bh(a){return["!",a]}function ap(a){return af(er(a.value))?Cl(et({},a,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function u(c){var m=c.value,x=c.key;if(ca(m)!=="array")return[new q(x,m,"array expected, "+ca(m)+" found")];var E,A=c.styleSpec,I=[];if(m.length<1)return[new q(x,m,"filter array must have at least 1 element")];switch(I=I.concat(pu({key:x+"[0]",value:m[0],valueSpec:A.filter_operator,style:c.style,styleSpec:c.styleSpec})),be(m[0])){case"<":case"<=":case">":case">=":m.length>=2&&be(m[1])==="$type"&&I.push(new q(x,m,'"$type" cannot be use with operator "'+m[0]+'"'));case"==":case"!=":m.length!==3&&I.push(new q(x,m,'filter array for operator "'+m[0]+'" must have 3 elements'));case"in":case"!in":m.length>=2&&(E=ca(m[1]))!=="string"&&I.push(new q(x+"[1]",m[1],"string expected, "+E+" found"));for(var D=2;D=j[R+0]&&m>=j[R+1])?(A[ee]=!0,E.push(N[ee])):A[ee]=!1}}},Ha.prototype._forEachCell=function(a,u,c,m,x,E,A,I){for(var D=this._convertToCellCoord(a),N=this._convertToCellCoord(u),j=this._convertToCellCoord(c),X=this._convertToCellCoord(m),ee=D;ee<=j;ee++)for(var R=N;R<=X;R++){var Ce=this.d*R+ee;if((!I||I(this._convertFromCellCoord(ee),this._convertFromCellCoord(R),this._convertFromCellCoord(ee+1),this._convertFromCellCoord(R+1)))&&x.call(this,a,u,c,m,Ce,E,A,I))return}},Ha.prototype._convertFromCellCoord=function(a){return(a-this.padding)/this.scale},Ha.prototype._convertToCellCoord=function(a){return Math.max(0,Math.min(this.d-1,Math.floor(a*this.scale)+this.padding))},Ha.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var a=this.cells,u=3+this.cells.length+1+1,c=0,m=0;m=0)){var j=a[N];D[N]=qa[I].shallow.indexOf(N)>=0?j:us(j,u)}a instanceof Error&&(D.message=a.message)}if(D.$name)throw new Error("$name property is reserved for worker serialization logic.");return I!=="Object"&&(D.$name=I),D}throw new Error("can't serialize object of type "+typeof a)}function ga(a){if(a==null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp||uf(a)||rc(a)||ArrayBuffer.isView(a)||a instanceof al)return a;if(Array.isArray(a))return a.map(ga);if(typeof a=="object"){var u=a.$name||"Object",c=qa[u].klass;if(!c)throw new Error("can't deserialize unregistered class "+u);if(c.deserialize)return c.deserialize(a);for(var m=Object.create(c.prototype),x=0,E=Object.keys(a);x=0?I:ga(I)}}return m}throw new Error("can't deserialize object of type "+typeof a)}var Th=function(){this.first=!0};Th.prototype.update=function(a,u){var c=Math.floor(a);return this.first?(this.first=!1,this.lastIntegerZoom=c,this.lastIntegerZoomTime=0,this.lastZoom=a,this.lastFloorZoom=c,!0):(this.lastFloorZoom>c?(this.lastIntegerZoom=c+1,this.lastIntegerZoomTime=u):this.lastFloorZoom=128&&a<=255},Arabic:function(a){return a>=1536&&a<=1791},"Arabic Supplement":function(a){return a>=1872&&a<=1919},"Arabic Extended-A":function(a){return a>=2208&&a<=2303},"Hangul Jamo":function(a){return a>=4352&&a<=4607},"Unified Canadian Aboriginal Syllabics":function(a){return a>=5120&&a<=5759},Khmer:function(a){return a>=6016&&a<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(a){return a>=6320&&a<=6399},"General Punctuation":function(a){return a>=8192&&a<=8303},"Letterlike Symbols":function(a){return a>=8448&&a<=8527},"Number Forms":function(a){return a>=8528&&a<=8591},"Miscellaneous Technical":function(a){return a>=8960&&a<=9215},"Control Pictures":function(a){return a>=9216&&a<=9279},"Optical Character Recognition":function(a){return a>=9280&&a<=9311},"Enclosed Alphanumerics":function(a){return a>=9312&&a<=9471},"Geometric Shapes":function(a){return a>=9632&&a<=9727},"Miscellaneous Symbols":function(a){return a>=9728&&a<=9983},"Miscellaneous Symbols and Arrows":function(a){return a>=11008&&a<=11263},"CJK Radicals Supplement":function(a){return a>=11904&&a<=12031},"Kangxi Radicals":function(a){return a>=12032&&a<=12255},"Ideographic Description Characters":function(a){return a>=12272&&a<=12287},"CJK Symbols and Punctuation":function(a){return a>=12288&&a<=12351},Hiragana:function(a){return a>=12352&&a<=12447},Katakana:function(a){return a>=12448&&a<=12543},Bopomofo:function(a){return a>=12544&&a<=12591},"Hangul Compatibility Jamo":function(a){return a>=12592&&a<=12687},Kanbun:function(a){return a>=12688&&a<=12703},"Bopomofo Extended":function(a){return a>=12704&&a<=12735},"CJK Strokes":function(a){return a>=12736&&a<=12783},"Katakana Phonetic Extensions":function(a){return a>=12784&&a<=12799},"Enclosed CJK Letters and Months":function(a){return a>=12800&&a<=13055},"CJK Compatibility":function(a){return a>=13056&&a<=13311},"CJK Unified Ideographs Extension A":function(a){return a>=13312&&a<=19903},"Yijing Hexagram Symbols":function(a){return a>=19904&&a<=19967},"CJK Unified Ideographs":function(a){return a>=19968&&a<=40959},"Yi Syllables":function(a){return a>=40960&&a<=42127},"Yi Radicals":function(a){return a>=42128&&a<=42191},"Hangul Jamo Extended-A":function(a){return a>=43360&&a<=43391},"Hangul Syllables":function(a){return a>=44032&&a<=55215},"Hangul Jamo Extended-B":function(a){return a>=55216&&a<=55295},"Private Use Area":function(a){return a>=57344&&a<=63743},"CJK Compatibility Ideographs":function(a){return a>=63744&&a<=64255},"Arabic Presentation Forms-A":function(a){return a>=64336&&a<=65023},"Vertical Forms":function(a){return a>=65040&&a<=65055},"CJK Compatibility Forms":function(a){return a>=65072&&a<=65103},"Small Form Variants":function(a){return a>=65104&&a<=65135},"Arabic Presentation Forms-B":function(a){return a>=65136&&a<=65279},"Halfwidth and Fullwidth Forms":function(a){return a>=65280&&a<=65519}};function ol(a){for(var u=0,c=a;u=65097&&a<=65103)||Yr["CJK Compatibility Ideographs"](a)||Yr["CJK Compatibility"](a)||Yr["CJK Radicals Supplement"](a)||Yr["CJK Strokes"](a)||!(!Yr["CJK Symbols and Punctuation"](a)||a>=12296&&a<=12305||a>=12308&&a<=12319||a===12336)||Yr["CJK Unified Ideographs Extension A"](a)||Yr["CJK Unified Ideographs"](a)||Yr["Enclosed CJK Letters and Months"](a)||Yr["Hangul Compatibility Jamo"](a)||Yr["Hangul Jamo Extended-A"](a)||Yr["Hangul Jamo Extended-B"](a)||Yr["Hangul Jamo"](a)||Yr["Hangul Syllables"](a)||Yr.Hiragana(a)||Yr["Ideographic Description Characters"](a)||Yr.Kanbun(a)||Yr["Kangxi Radicals"](a)||Yr["Katakana Phonetic Extensions"](a)||Yr.Katakana(a)&&a!==12540||!(!Yr["Halfwidth and Fullwidth Forms"](a)||a===65288||a===65289||a===65293||a>=65306&&a<=65310||a===65339||a===65341||a===65343||a>=65371&&a<=65503||a===65507||a>=65512&&a<=65519)||!(!Yr["Small Form Variants"](a)||a>=65112&&a<=65118||a>=65123&&a<=65126)||Yr["Unified Canadian Aboriginal Syllabics"](a)||Yr["Unified Canadian Aboriginal Syllabics Extended"](a)||Yr["Vertical Forms"](a)||Yr["Yijing Hexagram Symbols"](a)||Yr["Yi Syllables"](a)||Yr["Yi Radicals"](a))))}function wh(a){return!(Dc(a)||function(u){return!!(Yr["Latin-1 Supplement"](u)&&(u===167||u===169||u===174||u===177||u===188||u===189||u===190||u===215||u===247)||Yr["General Punctuation"](u)&&(u===8214||u===8224||u===8225||u===8240||u===8241||u===8251||u===8252||u===8258||u===8263||u===8264||u===8265||u===8273)||Yr["Letterlike Symbols"](u)||Yr["Number Forms"](u)||Yr["Miscellaneous Technical"](u)&&(u>=8960&&u<=8967||u>=8972&&u<=8991||u>=8996&&u<=9e3||u===9003||u>=9085&&u<=9114||u>=9150&&u<=9165||u===9167||u>=9169&&u<=9179||u>=9186&&u<=9215)||Yr["Control Pictures"](u)&&u!==9251||Yr["Optical Character Recognition"](u)||Yr["Enclosed Alphanumerics"](u)||Yr["Geometric Shapes"](u)||Yr["Miscellaneous Symbols"](u)&&!(u>=9754&&u<=9759)||Yr["Miscellaneous Symbols and Arrows"](u)&&(u>=11026&&u<=11055||u>=11088&&u<=11097||u>=11192&&u<=11243)||Yr["CJK Symbols and Punctuation"](u)||Yr.Katakana(u)||Yr["Private Use Area"](u)||Yr["CJK Compatibility Forms"](u)||Yr["Small Form Variants"](u)||Yr["Halfwidth and Fullwidth Forms"](u)||u===8734||u===8756||u===8757||u>=9984&&u<=10087||u>=10102&&u<=10131||u===65532||u===65533)}(a))}function eu(a){return a>=1424&&a<=2303||Yr["Arabic Presentation Forms-A"](a)||Yr["Arabic Presentation Forms-B"](a)}function Fs(a,u){return!(!u&&eu(a)||a>=2304&&a<=3583||a>=3840&&a<=4255||Yr.Khmer(a))}function Nf(a){for(var u=0,c=a;u-1&&(Yo="error"),Uf&&Uf(a)};function Il(){lf.fire(new Re("pluginStateChange",{pluginStatus:Yo,pluginURL:Lu}))}var lf=new lt,up=function(){return Yo},Ct=function(){if(Yo!=="deferred"||!Lu)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Yo="loading",Il(),Lu&&Ks({url:Lu},function(a){a?sp(a):(Yo="loaded",Il())})},Ie={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Yo==="loaded"||Ie.applyArabicShaping!=null},isLoading:function(){return Yo==="loading"},setState:function(a){Yo=a.pluginStatus,Lu=a.pluginURL},isParsed:function(){return Ie.applyArabicShaping!=null&&Ie.processBidirectionalText!=null&&Ie.processStyledBidirectionalText!=null},getPluginURL:function(){return Lu}},B=function(a,u){this.zoom=a,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Th,this.transition={})};B.prototype.isSupportedScript=function(a){return function(u,c){for(var m=0,x=u;mthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*c}:{fromScale:.5,toScale:1,t:1-(1-c)*u}};var Ys=function(a,u){this.property=a,this.value=u,this.expression=function(c,m){if(tf(c))return new nl(c,m);if(Mc(c)){var x=ip(c,m);if(x.result==="error")throw new Error(x.value.map(function(A){return A.key+": "+A.message}).join(", "));return x.value}var E=c;return typeof c=="string"&&m.type==="color"&&(E=Ti.parse(c)),{kind:"constant",evaluate:function(){return E}}}(u===void 0?a.specification.default:u,a.specification)};Ys.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ys.prototype.possiblyEvaluate=function(a,u,c){return this.property.possiblyEvaluate(this,a,u,c)};var me=function(a){this.property=a,this.value=new Ys(a,void 0)};me.prototype.transitioned=function(a,u){return new no(this.property,this.value,u,Ht({},a.transition,this.transition),a.now)},me.prototype.untransitioned=function(){return new no(this.property,this.value,null,{},0)};var Bo=function(a){this._properties=a,this._values=Object.create(a.defaultTransitionablePropertyValues)};Bo.prototype.getValue=function(a){return nt(this._values[a].value.value)},Bo.prototype.setValue=function(a,u){this._values.hasOwnProperty(a)||(this._values[a]=new me(this._values[a].property)),this._values[a].value=new Ys(this._values[a].property,u===null?void 0:nt(u))},Bo.prototype.getTransition=function(a){return nt(this._values[a].transition)},Bo.prototype.setTransition=function(a,u){this._values.hasOwnProperty(a)||(this._values[a]=new me(this._values[a].property)),this._values[a].transition=nt(u)||void 0},Bo.prototype.serialize=function(){for(var a={},u=0,c=Object.keys(this._values);uthis.end)return this.prior=null,x;if(this.value.isDataDriven())return this.prior=null,x;if(m=1)return 1;var D=I*I,N=D*I;return 4*(I<.5?N:3*(I-D)+N-.75)}(A))}return x};var vu=function(a){this._properties=a,this._values=Object.create(a.defaultTransitioningPropertyValues)};vu.prototype.possiblyEvaluate=function(a,u,c){for(var m=new nc(this._properties),x=0,E=Object.keys(this._values);xE.zoomHistory.lastIntegerZoom?{from:c,to:m}:{from:x,to:m}},u.prototype.interpolate=function(c){return c},u}(gn),qo=function(a){this.specification=a};qo.prototype.possiblyEvaluate=function(a,u,c,m){if(a.value!==void 0){if(a.expression.kind==="constant"){var x=a.expression.evaluate(u,null,{},c,m);return this._calculate(x,x,x,u)}return this._calculate(a.expression.evaluate(new B(Math.floor(u.zoom-1),u)),a.expression.evaluate(new B(Math.floor(u.zoom),u)),a.expression.evaluate(new B(Math.floor(u.zoom+1),u)),u)}},qo.prototype._calculate=function(a,u,c,m){return m.zoom>m.zoomHistory.lastIntegerZoom?{from:a,to:u}:{from:c,to:u}},qo.prototype.interpolate=function(a){return a};var mu=function(a){this.specification=a};mu.prototype.possiblyEvaluate=function(a,u,c,m){return!!a.expression.evaluate(u,null,{},c,m)},mu.prototype.interpolate=function(){return!1};var ka=function(a){for(var u in this.properties=a,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],a){var c=a[u];c.specification.overridable&&this.overridableProperties.push(u);var m=this.defaultPropertyValues[u]=new Ys(c,void 0),x=this.defaultTransitionablePropertyValues[u]=new me(c);this.defaultTransitioningPropertyValues[u]=x.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=m.possiblyEvaluate({})}};vn("DataDrivenProperty",gn),vn("DataConstantProperty",On),vn("CrossFadedDataDrivenProperty",Bs),vn("CrossFadedProperty",qo),vn("ColorRampProperty",mu);var Ls=function(a){function u(c,m){if(a.call(this),this.id=c.id,this.type=c.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},c.type!=="custom"&&(this.metadata=(c=c).metadata,this.minzoom=c.minzoom,this.maxzoom=c.maxzoom,c.type!=="background"&&(this.source=c.source,this.sourceLayer=c["source-layer"],this.filter=c.filter),m.layout&&(this._unevaluatedLayout=new bs(m.layout)),m.paint)){for(var x in this._transitionablePaint=new Bo(m.paint),c.paint)this.setPaintProperty(x,c.paint[x],{validate:!1});for(var E in c.layout)this.setLayoutProperty(E,c.layout[E],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new nc(m.paint)}}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},u.prototype.getLayoutProperty=function(c){return c==="visibility"?this.visibility:this._unevaluatedLayout.getValue(c)},u.prototype.setLayoutProperty=function(c,m,x){x===void 0&&(x={}),m!=null&&this._validate(Lf,"layers."+this.id+".layout."+c,c,m,x)||(c!=="visibility"?this._unevaluatedLayout.setValue(c,m):this.visibility=m)},u.prototype.getPaintProperty=function(c){return hr(c,"-transition")?this._transitionablePaint.getTransition(c.slice(0,-11)):this._transitionablePaint.getValue(c)},u.prototype.setPaintProperty=function(c,m,x){if(x===void 0&&(x={}),m!=null&&this._validate(Sh,"layers."+this.id+".paint."+c,c,m,x))return!1;if(hr(c,"-transition"))return this._transitionablePaint.setTransition(c.slice(0,-11),m||void 0),!1;var E=this._transitionablePaint._values[c],A=E.property.specification["property-type"]==="cross-faded-data-driven",I=E.value.isDataDriven(),D=E.value;this._transitionablePaint.setValue(c,m),this._handleSpecialPaintPropertyUpdate(c);var N=this._transitionablePaint._values[c].value;return N.isDataDriven()||I||A||this._handleOverridablePaintPropertyUpdate(c,D,N)},u.prototype._handleSpecialPaintPropertyUpdate=function(c){},u.prototype._handleOverridablePaintPropertyUpdate=function(c,m,x){return!1},u.prototype.isHidden=function(c){return!!(this.minzoom&&c=this.maxzoom)||this.visibility==="none"},u.prototype.updateTransitions=function(c){this._transitioningPaint=this._transitionablePaint.transitioned(c,this._transitioningPaint)},u.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},u.prototype.recalculate=function(c,m){c.getCrossfadeParameters&&(this._crossfadeParameters=c.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(c,void 0,m)),this.paint=this._transitioningPaint.possiblyEvaluate(c,void 0,m)},u.prototype.serialize=function(){var c={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(c.layout=c.layout||{},c.layout.visibility=this.visibility),Et(c,function(m,x){return!(m===void 0||x==="layout"&&!Object.keys(m).length||x==="paint"&&!Object.keys(m).length)})},u.prototype._validate=function(c,m,x,E,A){return A===void 0&&(A={}),(!A||A.validate!==!1)&&Ml(this,c.call(sf,{key:m,layerType:this.type,objectKey:x,value:E,styleSpec:V,style:{glyphs:!0,sprite:!0}}))},u.prototype.is3D=function(){return!1},u.prototype.isTileClipped=function(){return!1},u.prototype.hasOffscreenPass=function(){return!1},u.prototype.resize=function(){},u.prototype.isStateDependent=function(){for(var c in this.paint._values){var m=this.paint.get(c);if(m instanceof Da&&rl(m.property.specification)&&(m.value.kind==="source"||m.value.kind==="composite")&&m.value.isStateDependent)return!0}return!1},u}(lt),qs={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},kc=function(a,u){this._structArray=a,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ea=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function To(a,u){u===void 0&&(u=1);var c=0,m=0;return{members:a.map(function(x){var E=qs[x.type].BYTES_PER_ELEMENT,A=c=Ch(c,Math.max(u,E)),I=x.components||1;return m=Math.max(m,E),c+=E*I,{name:x.name,type:x.type,components:I,offset:A}}),size:Ch(c,Math.max(m,u)),alignment:u}}function Ch(a,u){return Math.ceil(a/u)*u}ea.serialize=function(a,u){return a._trim(),u&&(a.isTransferred=!0,u.push(a.arrayBuffer)),{length:a.length,arrayBuffer:a.arrayBuffer}},ea.deserialize=function(a){var u=Object.create(this.prototype);return u.arrayBuffer=a.arrayBuffer,u.length=a.length,u.capacity=a.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},ea.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ea.prototype.clear=function(){this.length=0},ea.prototype.resize=function(a){this.reserve(a),this.length=a},ea.prototype.reserve=function(a){if(a>this.capacity){this.capacity=Math.max(a,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},ea.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Pl=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.int16[E+0]=m,this.int16[E+1]=x,c},u}(ea);Pl.prototype.bytesPerElement=4,vn("StructArrayLayout2i4",Pl);var zf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=4*c;return this.int16[I+0]=m,this.int16[I+1]=x,this.int16[I+2]=E,this.int16[I+3]=A,c},u}(ea);zf.prototype.bytesPerElement=8,vn("StructArrayLayout4i8",zf);var gu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=6*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.int16[N+2]=E,this.int16[N+3]=A,this.int16[N+4]=I,this.int16[N+5]=D,c},u}(ea);gu.prototype.bytesPerElement=12,vn("StructArrayLayout2i4i12",gu);var Es=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=4*c,j=8*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.uint8[j+4]=E,this.uint8[j+5]=A,this.uint8[j+6]=I,this.uint8[j+7]=D,c},u}(ea);Es.prototype.bytesPerElement=8,vn("StructArrayLayout2i4ub8",Es);var ic=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.float32[E+0]=m,this.float32[E+1]=x,c},u}(ea);ic.prototype.bytesPerElement=8,vn("StructArrayLayout2f8",ic);var Nu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j,X){var ee=this.length;return this.resize(ee+1),this.emplace(ee,c,m,x,E,A,I,D,N,j,X)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X,ee){var R=10*c;return this.uint16[R+0]=m,this.uint16[R+1]=x,this.uint16[R+2]=E,this.uint16[R+3]=A,this.uint16[R+4]=I,this.uint16[R+5]=D,this.uint16[R+6]=N,this.uint16[R+7]=j,this.uint16[R+8]=X,this.uint16[R+9]=ee,c},u}(ea);Nu.prototype.bytesPerElement=20,vn("StructArrayLayout10ui20",Nu);var Zf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j,X,ee,R){var Ce=this.length;return this.resize(Ce+1),this.emplace(Ce,c,m,x,E,A,I,D,N,j,X,ee,R)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce){var Oe=12*c;return this.int16[Oe+0]=m,this.int16[Oe+1]=x,this.int16[Oe+2]=E,this.int16[Oe+3]=A,this.uint16[Oe+4]=I,this.uint16[Oe+5]=D,this.uint16[Oe+6]=N,this.uint16[Oe+7]=j,this.int16[Oe+8]=X,this.int16[Oe+9]=ee,this.int16[Oe+10]=R,this.int16[Oe+11]=Ce,c},u}(ea);Zf.prototype.bytesPerElement=24,vn("StructArrayLayout4i4ui4i24",Zf);var Fc=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.float32[A+0]=m,this.float32[A+1]=x,this.float32[A+2]=E,c},u}(ea);Fc.prototype.bytesPerElement=12,vn("StructArrayLayout3f12",Fc);var cf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.uint32[1*c+0]=m,c},u}(ea);cf.prototype.bytesPerElement=4,vn("StructArrayLayout1ul4",cf);var Vf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j){var X=this.length;return this.resize(X+1),this.emplace(X,c,m,x,E,A,I,D,N,j)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X){var ee=10*c,R=5*c;return this.int16[ee+0]=m,this.int16[ee+1]=x,this.int16[ee+2]=E,this.int16[ee+3]=A,this.int16[ee+4]=I,this.int16[ee+5]=D,this.uint32[R+3]=N,this.uint16[ee+8]=j,this.uint16[ee+9]=X,c},u}(ea);Vf.prototype.bytesPerElement=20,vn("StructArrayLayout6i1ul2ui20",Vf);var ac=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=6*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.int16[N+2]=E,this.int16[N+3]=A,this.int16[N+4]=I,this.int16[N+5]=D,c},u}(ea);ac.prototype.bytesPerElement=12,vn("StructArrayLayout2i2i2i12",ac);var oc=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A){var I=this.length;return this.resize(I+1),this.emplace(I,c,m,x,E,A)},u.prototype.emplace=function(c,m,x,E,A,I){var D=4*c,N=8*c;return this.float32[D+0]=m,this.float32[D+1]=x,this.float32[D+2]=E,this.int16[N+6]=A,this.int16[N+7]=I,c},u}(ea);oc.prototype.bytesPerElement=16,vn("StructArrayLayout2f1f2i16",oc);var Uu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=12*c,D=3*c;return this.uint8[I+0]=m,this.uint8[I+1]=x,this.float32[D+1]=E,this.float32[D+2]=A,c},u}(ea);Uu.prototype.bytesPerElement=12,vn("StructArrayLayout2ub2f12",Uu);var zu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.uint16[A+0]=m,this.uint16[A+1]=x,this.uint16[A+2]=E,c},u}(ea);zu.prototype.bytesPerElement=6,vn("StructArrayLayout3ui6",zu);var tu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt){var It=this.length;return this.resize(It+1),this.emplace(It,c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt,It){var Vt=24*c,jt=12*c,fr=48*c;return this.int16[Vt+0]=m,this.int16[Vt+1]=x,this.uint16[Vt+2]=E,this.uint16[Vt+3]=A,this.uint32[jt+2]=I,this.uint32[jt+3]=D,this.uint32[jt+4]=N,this.uint16[Vt+10]=j,this.uint16[Vt+11]=X,this.uint16[Vt+12]=ee,this.float32[jt+7]=R,this.float32[jt+8]=Ce,this.uint8[fr+36]=Oe,this.uint8[fr+37]=Qe,this.uint8[fr+38]=He,this.uint32[jt+10]=xt,this.int16[Vt+22]=It,c},u}(ea);tu.prototype.bytesPerElement=48,vn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",tu);var jf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt,It,Vt,jt,fr,Lr,Gr,Dn,sn,zn,cn,Ei){var Qn=this.length;return this.resize(Qn+1),this.emplace(Qn,c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt,It,Vt,jt,fr,Lr,Gr,Dn,sn,zn,cn,Ei)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe,Qe,He,xt,It,Vt,jt,fr,Lr,Gr,Dn,sn,zn,cn,Ei,Qn){var Tn=34*c,Ii=17*c;return this.int16[Tn+0]=m,this.int16[Tn+1]=x,this.int16[Tn+2]=E,this.int16[Tn+3]=A,this.int16[Tn+4]=I,this.int16[Tn+5]=D,this.int16[Tn+6]=N,this.int16[Tn+7]=j,this.uint16[Tn+8]=X,this.uint16[Tn+9]=ee,this.uint16[Tn+10]=R,this.uint16[Tn+11]=Ce,this.uint16[Tn+12]=Oe,this.uint16[Tn+13]=Qe,this.uint16[Tn+14]=He,this.uint16[Tn+15]=xt,this.uint16[Tn+16]=It,this.uint16[Tn+17]=Vt,this.uint16[Tn+18]=jt,this.uint16[Tn+19]=fr,this.uint16[Tn+20]=Lr,this.uint16[Tn+21]=Gr,this.uint16[Tn+22]=Dn,this.uint32[Ii+12]=sn,this.float32[Ii+13]=zn,this.float32[Ii+14]=cn,this.float32[Ii+15]=Ei,this.float32[Ii+16]=Qn,c},u}(ea);jf.prototype.bytesPerElement=68,vn("StructArrayLayout8i15ui1ul4f68",jf);var Ol=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.float32[1*c+0]=m,c},u}(ea);Ol.prototype.bytesPerElement=4,vn("StructArrayLayout1f4",Ol);var ru=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.int16[A+0]=m,this.int16[A+1]=x,this.int16[A+2]=E,c},u}(ea);ru.prototype.bytesPerElement=6,vn("StructArrayLayout3i6",ru);var Dl=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=4*c;return this.uint32[2*c+0]=m,this.uint16[A+2]=x,this.uint16[A+3]=E,c},u}(ea);Dl.prototype.bytesPerElement=8,vn("StructArrayLayout1ul2ui8",Dl);var ff=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.uint16[E+0]=m,this.uint16[E+1]=x,c},u}(ea);ff.prototype.bytesPerElement=4,vn("StructArrayLayout2ui4",ff);var Rh=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.uint16[1*c+0]=m,c},u}(ea);Rh.prototype.bytesPerElement=2,vn("StructArrayLayout1ui2",Rh);var Hf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=4*c;return this.float32[I+0]=m,this.float32[I+1]=x,this.float32[I+2]=E,this.float32[I+3]=A,c},u}(ea);Hf.prototype.bytesPerElement=16,vn("StructArrayLayout4f16",Hf);var h=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return c.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},c.x1.get=function(){return this._structArray.int16[this._pos2+2]},c.y1.get=function(){return this._structArray.int16[this._pos2+3]},c.x2.get=function(){return this._structArray.int16[this._pos2+4]},c.y2.get=function(){return this._structArray.int16[this._pos2+5]},c.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},c.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},c.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},c.anchorPoint.get=function(){return new ae(this.anchorPointX,this.anchorPointY)},Object.defineProperties(u.prototype,c),u}(kc);h.prototype.size=20;var d=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new h(this,c)},u}(Vf);vn("CollisionBoxArray",d);var p=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return c.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},c.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},c.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},c.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},c.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},c.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},c.segment.get=function(){return this._structArray.uint16[this._pos2+10]},c.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},c.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},c.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},c.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},c.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},c.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},c.placedOrientation.set=function(m){this._structArray.uint8[this._pos1+37]=m},c.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},c.hidden.set=function(m){this._structArray.uint8[this._pos1+38]=m},c.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},c.crossTileID.set=function(m){this._structArray.uint32[this._pos4+10]=m},c.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(u.prototype,c),u}(kc);p.prototype.size=48;var g=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new p(this,c)},u}(tu);vn("PlacedSymbolArray",g);var S=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return c.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},c.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},c.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},c.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},c.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},c.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},c.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},c.key.get=function(){return this._structArray.uint16[this._pos2+8]},c.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},c.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},c.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},c.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},c.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},c.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},c.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},c.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},c.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},c.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},c.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},c.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},c.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},c.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},c.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},c.crossTileID.set=function(m){this._structArray.uint32[this._pos4+12]=m},c.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},c.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},c.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},c.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(u.prototype,c),u}(kc);S.prototype.size=68;var w=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new S(this,c)},u}(jf);vn("SymbolInstanceArray",w);var C=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getoffsetX=function(c){return this.float32[1*c+0]},u}(Ol);vn("GlyphOffsetArray",C);var P=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getx=function(c){return this.int16[3*c+0]},u.prototype.gety=function(c){return this.int16[3*c+1]},u.prototype.gettileUnitDistanceFromAnchor=function(c){return this.int16[3*c+2]},u}(ru);vn("SymbolLineVertexArray",P);var Z=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return c.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},c.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},c.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(u.prototype,c),u}(kc);Z.prototype.size=8;var Y=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new Z(this,c)},u}(Dl);vn("FeatureIndexArray",Y);var ce=To([{name:"a_pos",components:2,type:"Int16"}],4).members,ge=function(a){a===void 0&&(a=[]),this.segments=a};function _e(a,u){return 256*(a=Dt(Math.floor(a),0,255))+Dt(Math.floor(u),0,255)}ge.prototype.prepareSegment=function(a,u,c,m){var x=this.segments[this.segments.length-1];return a>ge.MAX_VERTEX_ARRAY_LENGTH&&ft("Max vertices per segment is "+ge.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+a),(!x||x.vertexLength+a>ge.MAX_VERTEX_ARRAY_LENGTH||x.sortKey!==m)&&(x={vertexOffset:u.length,primitiveOffset:c.length,vertexLength:0,primitiveLength:0},m!==void 0&&(x.sortKey=m),this.segments.push(x)),x},ge.prototype.get=function(){return this.segments},ge.prototype.destroy=function(){for(var a=0,u=this.segments;a>>16)*I&65535)<<16)&4294967295)<<15|N>>>17))*D+(((N>>>16)*D&65535)<<16)&4294967295)<<13|E>>>19))+((5*(E>>>16)&65535)<<16)&4294967295))+((58964+(A>>>16)&65535)<<16);switch(N=0,m){case 3:N^=(255&u.charCodeAt(j+2))<<16;case 2:N^=(255&u.charCodeAt(j+1))<<8;case 1:E^=N=(65535&(N=(N=(65535&(N^=255&u.charCodeAt(j)))*I+(((N>>>16)*I&65535)<<16)&4294967295)<<15|N>>>17))*D+(((N>>>16)*D&65535)<<16)&4294967295}return E^=u.length,E=2246822507*(65535&(E^=E>>>16))+((2246822507*(E>>>16)&65535)<<16)&4294967295,E=3266489909*(65535&(E^=E>>>13))+((3266489909*(E>>>16)&65535)<<16)&4294967295,(E^=E>>>16)>>>0}}),Xe=le(function(a){a.exports=function(u,c){for(var m,x=u.length,E=c^x,A=0;x>=4;)m=1540483477*(65535&(m=255&u.charCodeAt(A)|(255&u.charCodeAt(++A))<<8|(255&u.charCodeAt(++A))<<16|(255&u.charCodeAt(++A))<<24))+((1540483477*(m>>>16)&65535)<<16),E=1540483477*(65535&E)+((1540483477*(E>>>16)&65535)<<16)^(m=1540483477*(65535&(m^=m>>>24))+((1540483477*(m>>>16)&65535)<<16)),x-=4,++A;switch(x){case 3:E^=(255&u.charCodeAt(A+2))<<16;case 2:E^=(255&u.charCodeAt(A+1))<<8;case 1:E=1540483477*(65535&(E^=255&u.charCodeAt(A)))+((1540483477*(E>>>16)&65535)<<16)}return E=1540483477*(65535&(E^=E>>>13))+((1540483477*(E>>>16)&65535)<<16),(E^=E>>>15)>>>0}}),we=Pe,Ge=Xe;we.murmur3=Pe,we.murmur2=Ge;var ct=function(){this.ids=[],this.positions=[],this.indexed=!1};ct.prototype.add=function(a,u,c,m){this.ids.push($t(a)),this.positions.push(u,c,m)},ct.prototype.getPositions=function(a){for(var u=$t(a),c=0,m=this.ids.length-1;c>1;this.ids[x]>=u?m=x:c=x+1}for(var E=[];this.ids[c]===u;)E.push({index:this.positions[3*c],start:this.positions[3*c+1],end:this.positions[3*c+2]}),c++;return E},ct.serialize=function(a,u){var c=new Float64Array(a.ids),m=new Uint32Array(a.positions);return function x(E,A,I,D){for(;I>1],j=I-1,X=D+1;;){do j++;while(E[j]N);if(j>=X)break;Nt(E,j,X),Nt(A,3*j,3*X),Nt(A,3*j+1,3*X+1),Nt(A,3*j+2,3*X+2)}X-IA.x+1||DA.y+1)&&ft("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return c}function Ga(a,u){return{type:a.type,id:a.id,properties:a.properties,geometry:u?Wa(a):[]}}function Ss(a,u,c,m,x){a.emplaceBack(2*u+(m+1)/2,2*c+(x+1)/2)}var ls=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new Pl,this.indexArray=new zu,this.segments=new ge,this.programConfigurations=new $n(a.layers,a.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};function Zu(a,u){for(var c=0;c1){if(sl(a,u))return!0;for(var m=0;m1?c:c.sub(u)._mult(x)._add(u))}function Vu(a,u){for(var c,m,x,E=!1,A=0;Au.y!=(x=c[D]).y>u.y&&u.x<(x.x-m.x)*(u.y-m.y)/(x.y-m.y)+m.x&&(E=!E);return E}function iu(a,u){for(var c=!1,m=0,x=a.length-1;mu.y!=A.y>u.y&&u.x<(A.x-E.x)*(u.y-E.y)/(A.y-E.y)+E.x&&(c=!c)}return c}function ju(a,u,c){var m=c[0],x=c[2];if(a.xx.x&&u.x>x.x||a.yx.y&&u.y>x.y)return!1;var E=qt(a,u,c[0]);return E!==qt(a,u,c[1])||E!==qt(a,u,c[2])||E!==qt(a,u,c[3])}function Ko(a,u,c){var m=u.paint.get(a).value;return m.kind==="constant"?m.value:c.programConfigurations.get(u.id).getMaxValue(a)}function Ka(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function As(a,u,c,m,x){if(!u[0]&&!u[1])return a;var E=ae.convert(u)._mult(x);c==="viewport"&&E._rotate(-m);for(var A=[],I=0;I=8192||j<0||j>=8192)){var X=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,a.sortKey),ee=X.vertexLength;Ss(this.layoutVertexArray,N,j,-1,-1),Ss(this.layoutVertexArray,N,j,1,-1),Ss(this.layoutVertexArray,N,j,1,1),Ss(this.layoutVertexArray,N,j,-1,1),this.indexArray.emplaceBack(ee,ee+1,ee+2),this.indexArray.emplaceBack(ee,ee+3,ee+2),X.vertexLength+=4,X.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,{},m)},vn("CircleBucket",ls,{omit:["layers"]});var au=new ka({"circle-sort-key":new gn(V.layout_circle["circle-sort-key"])}),Hu={paint:new ka({"circle-radius":new gn(V.paint_circle["circle-radius"]),"circle-color":new gn(V.paint_circle["circle-color"]),"circle-blur":new gn(V.paint_circle["circle-blur"]),"circle-opacity":new gn(V.paint_circle["circle-opacity"]),"circle-translate":new On(V.paint_circle["circle-translate"]),"circle-translate-anchor":new On(V.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new On(V.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new On(V.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new gn(V.paint_circle["circle-stroke-width"]),"circle-stroke-color":new gn(V.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new gn(V.paint_circle["circle-stroke-opacity"])}),layout:au},Ni=typeof Float32Array!="undefined"?Float32Array:Array;function po(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function io(a,u,c){var m=u[0],x=u[1],E=u[2],A=u[3],I=u[4],D=u[5],N=u[6],j=u[7],X=u[8],ee=u[9],R=u[10],Ce=u[11],Oe=u[12],Qe=u[13],He=u[14],xt=u[15],It=c[0],Vt=c[1],jt=c[2],fr=c[3];return a[0]=It*m+Vt*I+jt*X+fr*Oe,a[1]=It*x+Vt*D+jt*ee+fr*Qe,a[2]=It*E+Vt*N+jt*R+fr*He,a[3]=It*A+Vt*j+jt*Ce+fr*xt,a[4]=(It=c[4])*m+(Vt=c[5])*I+(jt=c[6])*X+(fr=c[7])*Oe,a[5]=It*x+Vt*D+jt*ee+fr*Qe,a[6]=It*E+Vt*N+jt*R+fr*He,a[7]=It*A+Vt*j+jt*Ce+fr*xt,a[8]=(It=c[8])*m+(Vt=c[9])*I+(jt=c[10])*X+(fr=c[11])*Oe,a[9]=It*x+Vt*D+jt*ee+fr*Qe,a[10]=It*E+Vt*N+jt*R+fr*He,a[11]=It*A+Vt*j+jt*Ce+fr*xt,a[12]=(It=c[12])*m+(Vt=c[13])*I+(jt=c[14])*X+(fr=c[15])*Oe,a[13]=It*x+Vt*D+jt*ee+fr*Qe,a[14]=It*E+Vt*N+jt*R+fr*He,a[15]=It*A+Vt*j+jt*Ce+fr*xt,a}Math.hypot||(Math.hypot=function(){for(var a=arguments,u=0,c=arguments.length;c--;)u+=a[c]*a[c];return Math.sqrt(u)});var ou,Bc=io;function Bl(a,u,c){var m=u[0],x=u[1],E=u[2],A=u[3];return a[0]=c[0]*m+c[4]*x+c[8]*E+c[12]*A,a[1]=c[1]*m+c[5]*x+c[9]*E+c[13]*A,a[2]=c[2]*m+c[6]*x+c[10]*E+c[14]*A,a[3]=c[3]*m+c[7]*x+c[11]*E+c[15]*A,a}ou=new Ni(3),Ni!=Float32Array&&(ou[0]=0,ou[1]=0,ou[2]=0),function(){var a=new Ni(4);Ni!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0)}();var fs=(function(){var a=new Ni(2);Ni!=Float32Array&&(a[0]=0,a[1]=0)}(),function(a){function u(c){a.call(this,c,Hu)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.createBucket=function(c){return new ls(c)},u.prototype.queryRadius=function(c){var m=c;return Ko("circle-radius",this,m)+Ko("circle-stroke-width",this,m)+Ka(this.paint.get("circle-translate"))},u.prototype.queryIntersectsFeature=function(c,m,x,E,A,I,D,N){for(var j=As(c,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),I.angle,D),X=this.paint.get("circle-radius").evaluate(m,x)+this.paint.get("circle-stroke-width").evaluate(m,x),ee=this.paint.get("circle-pitch-alignment")==="map",R=ee?j:function(Lr,Gr){return Lr.map(function(Dn){return Or(Dn,Gr)})}(j,N),Ce=ee?X*D:X,Oe=0,Qe=E;Oea.width||x.height>a.height||c.x>a.width-x.width||c.y>a.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>u.width||x.height>u.height||m.x>u.width-x.width||m.y>u.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var A=a.data,I=u.data,D=0;D80*c){m=E=a[0],x=A=a[1];for(var Ce=c;CeE&&(E=I),D>A&&(A=D);N=(N=Math.max(E-m,A-x))!==0?1/N:0}return Mh(ee,R,c,m,x,N),R}function Pd(a,u,c,m,x){var E,A;if(x===_f(a,u,c,m)>0)for(E=u;E=u;E-=m)A=gf(E,a[E],a[E+1],A);return A&&uc(A,A.next)&&(ll(A),A=A.next),A}function Nc(a,u){if(!a)return a;u||(u=a);var c,m=a;do if(c=!1,m.steiner||!uc(m,m.next)&&oo(m.prev,m,m.next)!==0)m=m.next;else{if(ll(m),(m=u=m.prev)===m.next)break;c=!0}while(c||m!==u);return u}function Mh(a,u,c,m,x,E,A){if(a){!A&&E&&function(j,X,ee,R){var Ce=j;do Ce.z===null&&(Ce.z=Wf(Ce.x,Ce.y,X,ee,R)),Ce.prevZ=Ce.prev,Ce.nextZ=Ce.next,Ce=Ce.next;while(Ce!==j);Ce.prevZ.nextZ=null,Ce.prevZ=null,function(Oe){var Qe,He,xt,It,Vt,jt,fr,Lr,Gr=1;do{for(He=Oe,Oe=null,Vt=null,jt=0;He;){for(jt++,xt=He,fr=0,Qe=0;Qe0||Lr>0&&xt;)fr!==0&&(Lr===0||!xt||He.z<=xt.z)?(It=He,He=He.nextZ,fr--):(It=xt,xt=xt.nextZ,Lr--),Vt?Vt.nextZ=It:Oe=It,It.prevZ=Vt,Vt=It;He=xt}Vt.nextZ=null,Gr*=2}while(jt>1)}(Ce)}(a,m,x,E);for(var I,D,N=a;a.prev!==a.next;)if(I=a.prev,D=a.next,E?Qm(a,m,x,E):Od(a))u.push(I.i/c),u.push(a.i/c),u.push(D.i/c),ll(a),a=D.next,N=D.next;else if((a=D)===N){A?A===1?Mh(a=Hp(Nc(a),u,c),u,c,m,x,E,2):A===2&&Dd(a,u,c,m,x,E):Mh(Nc(a),u,c,m,x,E,1);break}}}function Od(a){var u=a.prev,c=a,m=a.next;if(oo(u,c,m)>=0)return!1;for(var x=a.next.next;x!==a.prev;){if(df(u.x,u.y,c.x,c.y,m.x,m.y,x.x,x.y)&&oo(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function Qm(a,u,c,m){var x=a.prev,E=a,A=a.next;if(oo(x,E,A)>=0)return!1;for(var I=x.x>E.x?x.x>A.x?x.x:A.x:E.x>A.x?E.x:A.x,D=x.y>E.y?x.y>A.y?x.y:A.y:E.y>A.y?E.y:A.y,N=Wf(x.x=N&&ee&&ee.z<=j;){if(X!==a.prev&&X!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,X.x,X.y)&&oo(X.prev,X,X.next)>=0||(X=X.prevZ,ee!==a.prev&&ee!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,ee.x,ee.y)&&oo(ee.prev,ee,ee.next)>=0))return!1;ee=ee.nextZ}for(;X&&X.z>=N;){if(X!==a.prev&&X!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,X.x,X.y)&&oo(X.prev,X,X.next)>=0)return!1;X=X.prevZ}for(;ee&&ee.z<=j;){if(ee!==a.prev&&ee!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,ee.x,ee.y)&&oo(ee.prev,ee,ee.next)>=0)return!1;ee=ee.nextZ}return!0}function Hp(a,u,c){var m=a;do{var x=m.prev,E=m.next.next;!uc(x,E)&&hp(x,m,m.next,E)&&zc(x,E)&&zc(E,x)&&(u.push(x.i/c),u.push(m.i/c),u.push(E.i/c),ll(m),ll(m.next),m=a=E),m=m.next}while(m!==a);return Nc(m)}function Dd(a,u,c,m,x,E){var A=a;do{for(var I=A.next.next;I!==A.prev;){if(A.i!==I.i&&fp(A,I)){var D=Ih(A,I);return A=Nc(A,A.next),D=Nc(D,D.next),Mh(A,u,c,m,x,E),void Mh(D,u,c,m,x,E)}I=I.next}A=A.next}while(A!==a)}function Jm(a,u){return a.x-u.x}function kd(a,u){if(u=function(m,x){var E,A=x,I=m.x,D=m.y,N=-1/0;do{if(D<=A.y&&D>=A.next.y&&A.next.y!==A.y){var j=A.x+(D-A.y)*(A.next.x-A.x)/(A.next.y-A.y);if(j<=I&&j>N){if(N=j,j===I){if(D===A.y)return A;if(D===A.next.y)return A.next}E=A.x=A.x&&A.x>=R&&I!==A.x&&df(DE.x||A.x===E.x&&Uc(E,A)))&&(E=A,Oe=X)),A=A.next;while(A!==ee);return E}(a,u)){var c=Ih(u,a);Nc(u,u.next),Nc(c,c.next)}}function Uc(a,u){return oo(a.prev,a,u.prev)<0&&oo(u.next,a,a.next)<0}function Wf(a,u,c,m,x){return(a=1431655765&((a=858993459&((a=252645135&((a=16711935&((a=32767*(a-c)*x)|a<<8))|a<<4))|a<<2))|a<<1))|(u=1431655765&((u=858993459&((u=252645135&((u=16711935&((u=32767*(u-m)*x)|u<<8))|u<<4))|u<<2))|u<<1))<<1}function cp(a){var u=a,c=a;do(u.x=0&&(a-A)*(m-I)-(c-A)*(u-I)>=0&&(c-A)*(E-I)-(x-A)*(m-I)>=0}function fp(a,u){return a.next.i!==u.i&&a.prev.i!==u.i&&!function(c,m){var x=c;do{if(x.i!==c.i&&x.next.i!==c.i&&x.i!==m.i&&x.next.i!==m.i&&hp(x,x.next,c,m))return!0;x=x.next}while(x!==c);return!1}(a,u)&&(zc(a,u)&&zc(u,a)&&function(c,m){var x=c,E=!1,A=(c.x+m.x)/2,I=(c.y+m.y)/2;do x.y>I!=x.next.y>I&&x.next.y!==x.y&&A<(x.next.x-x.x)*(I-x.y)/(x.next.y-x.y)+x.x&&(E=!E),x=x.next;while(x!==c);return E}(a,u)&&(oo(a.prev,a,u.prev)||oo(a,u.prev,u))||uc(a,u)&&oo(a.prev,a,a.next)>0&&oo(u.prev,u,u.next)>0)}function oo(a,u,c){return(u.y-a.y)*(c.x-u.x)-(u.x-a.x)*(c.y-u.y)}function uc(a,u){return a.x===u.x&&a.y===u.y}function hp(a,u,c,m){var x=mf(oo(a,u,c)),E=mf(oo(a,u,m)),A=mf(oo(c,m,a)),I=mf(oo(c,m,u));return x!==E&&A!==I||!(x!==0||!vf(a,c,u))||!(E!==0||!vf(a,m,u))||!(A!==0||!vf(c,a,m))||!(I!==0||!vf(c,u,m))}function vf(a,u,c){return u.x<=Math.max(a.x,c.x)&&u.x>=Math.min(a.x,c.x)&&u.y<=Math.max(a.y,c.y)&&u.y>=Math.min(a.y,c.y)}function mf(a){return a>0?1:a<0?-1:0}function zc(a,u){return oo(a.prev,a,a.next)<0?oo(a,u,a.next)>=0&&oo(a,a.prev,u)>=0:oo(a,u,a.prev)<0||oo(a,a.next,u)<0}function Ih(a,u){var c=new Zc(a.i,a.x,a.y),m=new Zc(u.i,u.x,u.y),x=a.next,E=u.prev;return a.next=u,u.prev=a,c.next=x,x.prev=c,m.next=c,c.prev=m,E.next=m,m.prev=E,m}function gf(a,u,c,m){var x=new Zc(a,u,c);return m?(x.next=m.next,x.prev=m,m.next.prev=x,m.next=x):(x.prev=x,x.next=x),x}function ll(a){a.next.prev=a.prev,a.prev.next=a.next,a.prevZ&&(a.prevZ.nextZ=a.nextZ),a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function Zc(a,u,c){this.i=a,this.x=u,this.y=c,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function _f(a,u,c,m){for(var x=0,E=u,A=c-m;ED;){if(N-D>600){var X=N-D+1,ee=I-D+1,R=Math.log(X),Ce=.5*Math.exp(2*R/3),Oe=.5*Math.sqrt(R*Ce*(X-Ce)/X)*(ee-X/2<0?-1:1);E(A,I,Math.max(D,Math.floor(I-ee*Ce/X+Oe)),Math.min(N,Math.floor(I+(X-ee)*Ce/X+Oe)),j)}var Qe=A[I],He=D,xt=N;for(lc(A,D,I),j(A[N],Qe)>0&&lc(A,D,N);He0;)xt--}j(A[D],Qe)===0?lc(A,D,xt):lc(A,++xt,N),xt<=I&&(D=xt+1),I<=xt&&(N=xt-1)}})(a,u,c||0,m||a.length-1,x||yf)}function lc(a,u,c){var m=a[u];a[u]=a[c],a[c]=m}function yf(a,u){return au?1:0}function pp(a,u){var c=a.length;if(c<=1)return[a];for(var m,x,E=[],A=0;A1)for(var D=0;D0&&c.holes.push(m+=a[x-1].length)}return c},pf.default=Id;var fl=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Pl,this.indexArray=new zu,this.indexArray2=new ff,this.programConfigurations=new $n(a.layers,a.zoom),this.segments=new ge,this.segments2=new ge,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};fl.prototype.populate=function(a,u,c){this.hasPattern=Wp("fill",this.layers,u);for(var m=this.layers[0].layout.get("fill-sort-key"),x=[],E=0,A=a;E>3}if(x--,m===1||m===2)E+=a.readSVarint(),A+=a.readSVarint(),m===1&&(u&&I.push(u),u=[]),u.push(new ae(E,A));else{if(m!==7)throw new Error("unknown command "+m);u&&u.push(u[0].clone())}}return u&&I.push(u),I},cc.prototype.bbox=function(){var a=this._pbf;a.pos=this._geometry;for(var u=a.readVarint()+a.pos,c=1,m=0,x=0,E=0,A=1/0,I=-1/0,D=1/0,N=-1/0;a.pos>3}if(m--,c===1||c===2)(x+=a.readSVarint())I&&(I=x),(E+=a.readSVarint())N&&(N=E);else if(c!==7)throw new Error("unknown command "+c)}return[A,D,I,N]},cc.prototype.toGeoJSON=function(a,u,c){var m,x,E=this.extent*Math.pow(2,c),A=this.extent*a,I=this.extent*u,D=this.loadGeometry(),N=cc.types[this.type];function j(R){for(var Ce=0;Ce>3;x=A===1?m.readString():A===2?m.readFloat():A===3?m.readDouble():A===4?m.readVarint64():A===5?m.readVarint():A===6?m.readSVarint():A===7?m.readBoolean():null}return x}(c))}function Xp(a,u,c){if(a===3){var m=new pl(c,c.readVarint()+c.pos);m.length&&(u[m.name]=m)}}bf.prototype.feature=function(a){if(a<0||a>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[a];var u=this._pbf.readVarint()+this._pbf.pos;return new dp(this._pbf,u,this.extent,this._keys,this._values)};var Ul={VectorTile:function(a,u){this.layers=a.readFields(Xp,{},u)},VectorTileFeature:dp,VectorTileLayer:pl},Gf=Ul.VectorTileFeature.types,vp=Math.pow(2,13);function Ts(a,u,c,m,x,E,A,I){a.emplaceBack(u,c,2*Math.floor(m*vp)+A,x*vp*2,E*vp*2,Math.round(I))}var hs=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new gu,this.indexArray=new zu,this.programConfigurations=new $n(a.layers,a.zoom),this.segments=new ge,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};function vo(a,u){return a.x===u.x&&(a.x<0||a.x>8192)||a.y===u.y&&(a.y<0||a.y>8192)}hs.prototype.populate=function(a,u,c){this.features=[],this.hasPattern=Wp("fill-extrusion",this.layers,u);for(var m=0,x=a;m8192})||Ii.every(function(gi){return gi.y<0})||Ii.every(function(gi){return gi.y>8192})))for(var Oe=0,Qe=0;Qe=1){var xt=Ce[Qe-1];if(!vo(He,xt)){X.vertexLength+4>ge.MAX_VERTEX_ARRAY_LENGTH&&(X=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var It=He.sub(xt)._perp()._unit(),Vt=xt.dist(He);Oe+Vt>32768&&(Oe=0),Ts(this.layoutVertexArray,He.x,He.y,It.x,It.y,0,0,Oe),Ts(this.layoutVertexArray,He.x,He.y,It.x,It.y,0,1,Oe),Ts(this.layoutVertexArray,xt.x,xt.y,It.x,It.y,0,0,Oe+=Vt),Ts(this.layoutVertexArray,xt.x,xt.y,It.x,It.y,0,1,Oe);var jt=X.vertexLength;this.indexArray.emplaceBack(jt,jt+2,jt+1),this.indexArray.emplaceBack(jt+1,jt+2,jt+3),X.vertexLength+=4,X.primitiveLength+=2}}}}if(X.vertexLength+D>ge.MAX_VERTEX_ARRAY_LENGTH&&(X=this.segments.prepareSegment(D,this.layoutVertexArray,this.indexArray)),Gf[a.type]==="Polygon"){for(var fr=[],Lr=[],Gr=X.vertexLength,Dn=0,sn=I;Dn=2&&a[D-1].equals(a[D-2]);)D--;for(var N=0;N0;if(Lr&&He>N){var Dn=j.dist(R);if(Dn>2*X){var sn=j.sub(j.sub(R)._mult(X/Dn)._round());this.updateDistance(R,sn),this.addCurrentVertex(sn,Oe,0,0,ee),R=sn}}var zn=R&&Ce,cn=zn?c:I?"butt":m;if(zn&&cn==="round"&&(jtx&&(cn="bevel"),cn==="bevel"&&(jt>2&&(cn="flipbevel"),jt100)xt=Qe.mult(-1);else{var Ei=jt*Oe.add(Qe).mag()/Oe.sub(Qe).mag();xt._perp()._mult(Ei*(Gr?-1:1))}this.addCurrentVertex(j,xt,0,0,ee),this.addCurrentVertex(j,xt.mult(-1),0,0,ee)}else if(cn==="bevel"||cn==="fakeround"){var Qn=-Math.sqrt(jt*jt-1),Tn=Gr?Qn:0,Ii=Gr?0:Qn;if(R&&this.addCurrentVertex(j,Oe,Tn,Ii,ee),cn==="fakeround")for(var gi=Math.round(180*fr/Math.PI/20),Bi=1;Bi2*X){var za=j.add(Ce.sub(j)._mult(X/so)._round());this.updateDistance(j,za),this.addCurrentVertex(za,Qe,0,0,ee),j=za}}}}},Jo.prototype.addCurrentVertex=function(a,u,c,m,x,E){E===void 0&&(E=!1);var A=u.y*m-u.x,I=-u.y-u.x*m;this.addHalfVertex(a,u.x+u.y*c,u.y-u.x*c,E,!1,c,x),this.addHalfVertex(a,A,I,E,!0,-m,x),this.distance>Dh/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(a,u,c,m,x,E))},Jo.prototype.addHalfVertex=function(a,u,c,m,x,E,A){var I=.5*(this.lineClips?this.scaledDistance*(Dh-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((a.x<<1)+(m?1:0),(a.y<<1)+(x?1:0),Math.round(63*u)+128,Math.round(63*c)+128,1+(E===0?0:E<0?-1:1)|(63&I)<<2,I>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var D=A.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,D),A.primitiveLength++),x?this.e2=D:this.e1=D},Jo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Jo.prototype.updateDistance=function(a,u){this.distance+=a.dist(u),this.updateScaledDistance()},vn("LineBucket",Jo,{omit:["layers","patternFeatures"]});var Uv=new ka({"line-cap":new On(V.layout_line["line-cap"]),"line-join":new gn(V.layout_line["line-join"]),"line-miter-limit":new On(V.layout_line["line-miter-limit"]),"line-round-limit":new On(V.layout_line["line-round-limit"]),"line-sort-key":new gn(V.layout_line["line-sort-key"])}),$f={paint:new ka({"line-opacity":new gn(V.paint_line["line-opacity"]),"line-color":new gn(V.paint_line["line-color"]),"line-translate":new On(V.paint_line["line-translate"]),"line-translate-anchor":new On(V.paint_line["line-translate-anchor"]),"line-width":new gn(V.paint_line["line-width"]),"line-gap-width":new gn(V.paint_line["line-gap-width"]),"line-offset":new gn(V.paint_line["line-offset"]),"line-blur":new gn(V.paint_line["line-blur"]),"line-dasharray":new qo(V.paint_line["line-dasharray"]),"line-pattern":new Bs(V.paint_line["line-pattern"]),"line-gradient":new mu(V.paint_line["line-gradient"])}),layout:Uv},qp=new(function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.possiblyEvaluate=function(c,m){return m=new B(Math.floor(m.zoom),{now:m.now,fadeDuration:m.fadeDuration,zoomHistory:m.zoomHistory,transition:m.transition}),a.prototype.possiblyEvaluate.call(this,c,m)},u.prototype.evaluate=function(c,m,x,E){return m=Ht({},m,{zoom:Math.floor(m.zoom)}),a.prototype.evaluate.call(this,c,m,x,E)},u}(gn))($f.paint.properties["line-width"].specification);qp.useIntegerZoom=!0;var Ud=function(a){function u(c){a.call(this,c,$f),this.gradientVersion=0}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._handleSpecialPaintPropertyUpdate=function(c){c==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ps,this.gradientVersion=(this.gradientVersion+1)%Ke)},u.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},u.prototype.recalculate=function(c,m){a.prototype.recalculate.call(this,c,m),this.paint._values["line-floorwidth"]=qp.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,c)},u.prototype.createBucket=function(c){return new Jo(c)},u.prototype.queryRadius=function(c){var m=c,x=Kp(Ko("line-width",this,m),Ko("line-gap-width",this,m)),E=Ko("line-offset",this,m);return x/2+Math.abs(E)+Ka(this.paint.get("line-translate"))},u.prototype.queryIntersectsFeature=function(c,m,x,E,A,I,D){var N=As(c,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),I.angle,D),j=D/2*Kp(this.paint.get("line-width").evaluate(m,x),this.paint.get("line-gap-width").evaluate(m,x)),X=this.paint.get("line-offset").evaluate(m,x);return X&&(E=function(ee,R){for(var Ce=[],Oe=new ae(0,0),Qe=0;Qe=3){for(var He=0;He0?u+2*a:a}var zv=To([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Zv=To([{name:"a_projected_pos",components:3,type:"Float32"}],4),zd=(To([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),To([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Zd=(To([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),To([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),z=To([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ee(a,u,c){return a.sections.forEach(function(m){m.text=function(x,E,A){var I=E.layout.get("text-transform").evaluate(A,{});return I==="uppercase"?x=x.toLocaleUpperCase():I==="lowercase"&&(x=x.toLocaleLowerCase()),Ie.applyArabicShaping&&(x=Ie.applyArabicShaping(x)),x}(m.text,u,c)}),a}To([{name:"triangle",components:3,type:"Uint16"}]),To([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),To([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),To([{type:"Float32",name:"offsetX"}]),To([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Ze={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},Ut=function(a,u,c,m,x){var E,A,I=8*x-m-1,D=(1<>1,j=-7,X=c?x-1:0,ee=c?-1:1,R=a[u+X];for(X+=ee,E=R&(1<<-j)-1,R>>=-j,j+=I;j>0;E=256*E+a[u+X],X+=ee,j-=8);for(A=E&(1<<-j)-1,E>>=-j,j+=m;j>0;A=256*A+a[u+X],X+=ee,j-=8);if(E===0)E=1-N;else{if(E===D)return A?NaN:1/0*(R?-1:1);A+=Math.pow(2,m),E-=N}return(R?-1:1)*A*Math.pow(2,E-m)},cr=function(a,u,c,m,x,E){var A,I,D,N=8*E-x-1,j=(1<>1,ee=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=m?0:E-1,Ce=m?1:-1,Oe=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(I=isNaN(u)?1:0,A=j):(A=Math.floor(Math.log(u)/Math.LN2),u*(D=Math.pow(2,-A))<1&&(A--,D*=2),(u+=A+X>=1?ee/D:ee*Math.pow(2,1-X))*D>=2&&(A++,D/=2),A+X>=j?(I=0,A=j):A+X>=1?(I=(u*D-1)*Math.pow(2,x),A+=X):(I=u*Math.pow(2,X-1)*Math.pow(2,x),A=0));x>=8;a[c+R]=255&I,R+=Ce,I/=256,x-=8);for(A=A<0;a[c+R]=255&A,R+=Ce,A/=256,N-=8);a[c+R-Ce]|=128*Oe},zt=kt;function kt(a){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0),this.pos=0,this.type=0,this.length=this.buf.length}kt.Varint=0,kt.Fixed64=1,kt.Bytes=2,kt.Fixed32=5;var Dr=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function wr(a){return a.type===kt.Bytes?a.readVarint()+a.pos:a.pos+1}function Zr(a,u,c){return c?4294967296*u+(a>>>0):4294967296*(u>>>0)+(a>>>0)}function Br(a,u,c){var m=u<=16383?1:u<=2097151?2:u<=268435455?3:Math.floor(Math.log(u)/(7*Math.LN2));c.realloc(m);for(var x=c.pos-1;x>=a;x--)c.buf[x+m]=c.buf[x]}function Ur(a,u){for(var c=0;c>>8,a[c+2]=u>>>16,a[c+3]=u>>>24}function en(a,u){return(a[u]|a[u+1]<<8|a[u+2]<<16)+(a[u+3]<<24)}function xr(a,u,c){a===1&&c.readMessage(Xr,u)}function Xr(a,u,c){if(a===3){var m=c.readMessage(Fn,{}),x=m.width,E=m.height,A=m.left,I=m.top,D=m.advance;u.push({id:m.id,bitmap:new _u({width:x+6,height:E+6},m.bitmap),metrics:{width:x,height:E,left:A,top:I,advance:D}})}}function Fn(a,u,c){a===1?u.id=c.readVarint():a===2?u.bitmap=c.readBytes():a===3?u.width=c.readVarint():a===4?u.height=c.readVarint():a===5?u.left=c.readSVarint():a===6?u.top=c.readSVarint():a===7&&(u.advance=c.readVarint())}function ui(a){for(var u=0,c=0,m=0,x=a;m=0;ee--){var R=A[ee];if(!(X.w>R.w||X.h>R.h)){if(X.x=R.x,X.y=R.y,D=Math.max(D,X.y+X.h),I=Math.max(I,X.x+X.w),X.w===R.w&&X.h===R.h){var Ce=A.pop();ee>3,E=this.pos;this.type=7&m,a(x,u,this),this.pos===E&&this.skip(m)}return u},readMessage:function(a,u){return this.readFields(a,u,this.readVarint()+this.pos)},readFixed32:function(){var a=tn(this.buf,this.pos);return this.pos+=4,a},readSFixed32:function(){var a=en(this.buf,this.pos);return this.pos+=4,a},readFixed64:function(){var a=tn(this.buf,this.pos)+4294967296*tn(this.buf,this.pos+4);return this.pos+=8,a},readSFixed64:function(){var a=tn(this.buf,this.pos)+4294967296*en(this.buf,this.pos+4);return this.pos+=8,a},readFloat:function(){var a=Ut(this.buf,this.pos,!0,23,4);return this.pos+=4,a},readDouble:function(){var a=Ut(this.buf,this.pos,!0,52,8);return this.pos+=8,a},readVarint:function(a){var u,c,m=this.buf;return u=127&(c=m[this.pos++]),c<128?u:(u|=(127&(c=m[this.pos++]))<<7,c<128?u:(u|=(127&(c=m[this.pos++]))<<14,c<128?u:(u|=(127&(c=m[this.pos++]))<<21,c<128?u:function(x,E,A){var I,D,N=A.buf;if(I=(112&(D=N[A.pos++]))>>4,D<128||(I|=(127&(D=N[A.pos++]))<<3,D<128)||(I|=(127&(D=N[A.pos++]))<<10,D<128)||(I|=(127&(D=N[A.pos++]))<<17,D<128)||(I|=(127&(D=N[A.pos++]))<<24,D<128)||(I|=(1&(D=N[A.pos++]))<<31,D<128))return Zr(x,I,E);throw new Error("Expected varint not more than 10 bytes")}(u|=(15&(c=m[this.pos]))<<28,a,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var a=this.readVarint();return a%2==1?(a+1)/-2:a/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var a=this.readVarint()+this.pos,u=this.pos;return this.pos=a,a-u>=12&&Dr?function(c,m,x){return Dr.decode(c.subarray(m,x))}(this.buf,u,a):function(c,m,x){for(var E="",A=m;A239?4:j>223?3:j>191?2:1;if(A+ee>x)break;ee===1?j<128&&(X=j):ee===2?(192&(I=c[A+1]))==128&&(X=(31&j)<<6|63&I)<=127&&(X=null):ee===3?(D=c[A+2],(192&(I=c[A+1]))==128&&(192&D)==128&&((X=(15&j)<<12|(63&I)<<6|63&D)<=2047||X>=55296&&X<=57343)&&(X=null)):ee===4&&(D=c[A+2],N=c[A+3],(192&(I=c[A+1]))==128&&(192&D)==128&&(192&N)==128&&((X=(15&j)<<18|(63&I)<<12|(63&D)<<6|63&N)<=65535||X>=1114112)&&(X=null)),X===null?(X=65533,ee=1):X>65535&&(X-=65536,E+=String.fromCharCode(X>>>10&1023|55296),X=56320|1023&X),E+=String.fromCharCode(X),A+=ee}return E}(this.buf,u,a)},readBytes:function(){var a=this.readVarint()+this.pos,u=this.buf.subarray(this.pos,a);return this.pos=a,u},readPackedVarint:function(a,u){if(this.type!==kt.Bytes)return a.push(this.readVarint(u));var c=wr(this);for(a=a||[];this.pos127;);else if(u===kt.Bytes)this.pos=this.readVarint()+this.pos;else if(u===kt.Fixed32)this.pos+=4;else{if(u!==kt.Fixed64)throw new Error("Unimplemented type: "+u);this.pos+=8}},writeTag:function(a,u){this.writeVarint(a<<3|u)},realloc:function(a){for(var u=this.length||16;u268435455||a<0?function(u,c){var m,x;if(u>=0?(m=u%4294967296|0,x=u/4294967296|0):(x=~(-u/4294967296),4294967295^(m=~(-u%4294967296))?m=m+1|0:(m=0,x=x+1|0)),u>=18446744073709552e3||u<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");c.realloc(10),function(E,A,I){I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,I.buf[I.pos]=127&(E>>>=7)}(m,0,c),function(E,A){var I=(7&E)<<4;A.buf[A.pos++]|=I|((E>>>=3)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E)))))}(x,c)}(a,this):(this.realloc(4),this.buf[this.pos++]=127&a|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=a>>>7&127))))},writeSVarint:function(a){this.writeVarint(a<0?2*-a-1:2*a)},writeBoolean:function(a){this.writeVarint(!!a)},writeString:function(a){a=String(a),this.realloc(4*a.length),this.pos++;var u=this.pos;this.pos=function(m,x,E){for(var A,I,D=0;D55295&&A<57344){if(!I){A>56319||D+1===x.length?(m[E++]=239,m[E++]=191,m[E++]=189):I=A;continue}if(A<56320){m[E++]=239,m[E++]=191,m[E++]=189,I=A;continue}A=I-55296<<10|A-56320|65536,I=null}else I&&(m[E++]=239,m[E++]=191,m[E++]=189,I=null);A<128?m[E++]=A:(A<2048?m[E++]=A>>6|192:(A<65536?m[E++]=A>>12|224:(m[E++]=A>>18|240,m[E++]=A>>12&63|128),m[E++]=A>>6&63|128),m[E++]=63&A|128)}return E}(this.buf,a,this.pos);var c=this.pos-u;c>=128&&Br(u,c,this),this.pos=u-1,this.writeVarint(c),this.pos+=c},writeFloat:function(a){this.realloc(4),cr(this.buf,a,this.pos,!0,23,4),this.pos+=4},writeDouble:function(a){this.realloc(8),cr(this.buf,a,this.pos,!0,52,8),this.pos+=8},writeBytes:function(a){var u=a.length;this.writeVarint(u),this.realloc(u);for(var c=0;c=128&&Br(c,m,this),this.pos=c-1,this.writeVarint(m),this.pos+=m},writeMessage:function(a,u,c){this.writeTag(a,kt.Bytes),this.writeRawMessage(u,c)},writePackedVarint:function(a,u){u.length&&this.writeMessage(a,Ur,u)},writePackedSVarint:function(a,u){u.length&&this.writeMessage(a,Wr,u)},writePackedBoolean:function(a,u){u.length&&this.writeMessage(a,St,u)},writePackedFloat:function(a,u){u.length&&this.writeMessage(a,Er,u)},writePackedDouble:function(a,u){u.length&&this.writeMessage(a,zr,u)},writePackedFixed32:function(a,u){u.length&&this.writeMessage(a,Qt,u)},writePackedSFixed32:function(a,u){u.length&&this.writeMessage(a,kr,u)},writePackedFixed64:function(a,u){u.length&&this.writeMessage(a,Jr,u)},writePackedSFixed64:function(a,u){u.length&&this.writeMessage(a,gr,u)},writeBytesField:function(a,u){this.writeTag(a,kt.Bytes),this.writeBytes(u)},writeFixed32Field:function(a,u){this.writeTag(a,kt.Fixed32),this.writeFixed32(u)},writeSFixed32Field:function(a,u){this.writeTag(a,kt.Fixed32),this.writeSFixed32(u)},writeFixed64Field:function(a,u){this.writeTag(a,kt.Fixed64),this.writeFixed64(u)},writeSFixed64Field:function(a,u){this.writeTag(a,kt.Fixed64),this.writeSFixed64(u)},writeVarintField:function(a,u){this.writeTag(a,kt.Varint),this.writeVarint(u)},writeSVarintField:function(a,u){this.writeTag(a,kt.Varint),this.writeSVarint(u)},writeStringField:function(a,u){this.writeTag(a,kt.Bytes),this.writeString(u)},writeFloatField:function(a,u){this.writeTag(a,kt.Fixed32),this.writeFloat(u)},writeDoubleField:function(a,u){this.writeTag(a,kt.Fixed64),this.writeDouble(u)},writeBooleanField:function(a,u){this.writeVarintField(a,!!u)}};var qr=function(a,u){var c=u.pixelRatio,m=u.version,x=u.stretchX,E=u.stretchY,A=u.content;this.paddedRect=a,this.pixelRatio=c,this.stretchX=x,this.stretchY=E,this.content=A,this.version=m},gt={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};gt.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},gt.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},gt.tlbr.get=function(){return this.tl.concat(this.br)},gt.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(qr.prototype,gt);var pr=function(a,u){var c={},m={};this.haveRenderCallbacks=[];var x=[];this.addImages(a,c,x),this.addImages(u,m,x);var E=ui(x),A=new Qo({width:E.w||1,height:E.h||1});for(var I in a){var D=a[I],N=c[I].paddedRect;Qo.copy(D.data,A,{x:0,y:0},{x:N.x+1,y:N.y+1},D.data)}for(var j in u){var X=u[j],ee=m[j].paddedRect,R=ee.x+1,Ce=ee.y+1,Oe=X.data.width,Qe=X.data.height;Qo.copy(X.data,A,{x:0,y:0},{x:R,y:Ce},X.data),Qo.copy(X.data,A,{x:0,y:Qe-1},{x:R,y:Ce-1},{width:Oe,height:1}),Qo.copy(X.data,A,{x:0,y:0},{x:R,y:Ce+Qe},{width:Oe,height:1}),Qo.copy(X.data,A,{x:Oe-1,y:0},{x:R-1,y:Ce},{width:1,height:Qe}),Qo.copy(X.data,A,{x:0,y:0},{x:R+Oe,y:Ce},{width:1,height:Qe})}this.image=A,this.iconPositions=c,this.patternPositions=m};pr.prototype.addImages=function(a,u,c){for(var m in a){var x=a[m],E={x:0,y:0,w:x.data.width+2,h:x.data.height+2};c.push(E),u[m]=new qr(E,x),x.hasRenderCallback&&this.haveRenderCallbacks.push(m)}},pr.prototype.patchUpdatedImages=function(a,u){for(var c in a.dispatchRenderCallbacks(this.haveRenderCallbacks),a.updatedImages)this.patchUpdatedImage(this.iconPositions[c],a.getImage(c),u),this.patchUpdatedImage(this.patternPositions[c],a.getImage(c),u)},pr.prototype.patchUpdatedImage=function(a,u,c){if(a&&u&&a.version!==u.version){a.version=u.version;var m=a.tl;c.update(u.data,void 0,{x:m[0],y:m[1]})}},vn("ImagePosition",qr),vn("ImageAtlas",pr);var tt={horizontal:1,vertical:2,horizontalOnly:3},wi=function(){this.scale=1,this.fontStack="",this.imageName=null};wi.forText=function(a,u){var c=new wi;return c.scale=a||1,c.fontStack=u,c},wi.forImage=function(a){var u=new wi;return u.imageName=a,u};var on=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yi(a,u,c,m,x,E,A,I,D,N,j,X,ee,R,Ce,Oe){var Qe,He=on.fromFeature(a,x);X===tt.vertical&&He.verticalizePunctuation();var xt=Ie.processBidirectionalText,It=Ie.processStyledBidirectionalText;if(xt&&He.sections.length===1){Qe=[];for(var Vt=0,jt=xt(He.toString(),lo(He,N,E,u,m,R,Ce));Vt0&&Jf>Po&&(Po=Jf)}else{var vc=gi[qi.fontStack],Ep=vc&&vc[su];if(Ep&&Ep.rect)Vl=Ep.rect,eo=Ep.metrics;else{var ed=Ii[qi.fontStack],Xd=ed&&ed[su];if(!Xd)continue;eo=Xd.metrics}vl=24*(Xi-qi.scale)}pc?(Tn.verticalizable=!0,Ba.push({glyph:su,imageName:$u,x:Uo,y:Zs+vl,vertical:pc,scale:qi.scale,fontStack:qi.fontStack,sectionIndex:Zl,metrics:eo,rect:Vl}),Uo+=Ef*qi.scale+za):(Ba.push({glyph:su,imageName:$u,x:Uo,y:Zs+vl,vertical:pc,scale:qi.scale,fontStack:qi.fontStack,sectionIndex:Zl,metrics:eo,rect:Vl}),Uo+=eo.advance*qi.scale+za)}Ba.length!==0&&(Fa=Math.max(Uo-za,Fa),go(Ba,0,Ba.length-1,bo,Po)),Uo=0;var td=ra*Xi+Po;ns.lineOffset=Math.max(Po,js),Zs+=td,Vs=Math.max(td,Vs),++rs}else Zs+=ra,++rs}var Hc,Sf=Zs- -17,Sp=Sa(Ua),eh=Sp.horizontalAlign,Ap=Sp.verticalAlign;(function(rd,$d,nd,id,Wc,Fh,th,Bh,rh){var nh,Tp=($d-nd)*Wc;nh=Fh!==th?-Bh*id- -17:(-id*rh+.5)*th;for(var Gc=0,Lh=rd;Gc=0&&m>=a&&ai[this.text.charCodeAt(m)];m--)c--;this.text=this.text.substring(a,c),this.sectionIndex=this.sectionIndex.slice(a,c)},on.prototype.substring=function(a,u){var c=new on;return c.text=this.text.substring(a,u),c.sectionIndex=this.sectionIndex.slice(a,u),c.sections=this.sections,c},on.prototype.toString=function(){return this.text},on.prototype.getMaxScale=function(){var a=this;return this.sectionIndex.reduce(function(u,c){return Math.max(u,a.sections[c].scale)},0)},on.prototype.addTextSection=function(a,u){this.text+=a.text,this.sections.push(wi.forText(a.scale,a.fontStack||u));for(var c=this.sections.length-1,m=0;m=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var ai={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Yn={};function Ui(a,u,c,m,x,E){if(u.imageName){var A=m[u.imageName];return A?A.displaySize[0]*u.scale*24/E+x:0}var I=c[u.fontStack],D=I&&I[a];return D?D.metrics.advance*u.scale+x:0}function mo(a,u,c,m){var x=Math.pow(a-u,2);return m?a=0,X=0,ee=0;ee-c/2;){if(--A<0)return!1;I-=a[A].dist(E),E=a[A]}I+=a[A].dist(a[A+1]),A++;for(var D=[],N=0;Im;)N-=D.shift().angleDelta;if(N>x)return!1;A++,I+=j.dist(X)}return!0}function aa(a){for(var u=0,c=0;cN){var Ce=(N-D)/R,Oe=Ya(X.x,ee.x,Ce),Qe=Ya(X.y,ee.y,Ce),He=new Qa(Oe,Qe,ee.angleTo(X),j);return He._round(),!A||es(a,He,I,A,u)?He:void 0}D+=R}}function yo(a,u,c,m,x,E,A,I,D){var N=Wn(m,E,A),j=Mi(m,x),X=j*A,ee=a[0].x===0||a[0].x===D||a[0].y===0||a[0].y===D;return u-X=0&&Bi=0&&Zn=0&&sn+Lr<=Gr){var ra=new Qa(Bi,Zn,Ii,cn);ra._round(),He&&!es(Ce,ra,It,He,xt)||zn.push(ra)}}Dn+=Tn}return jt||zn.length||Vt||(zn=R(Ce,Dn/2,Qe,He,xt,It,Vt,!0,fr)),zn}(a,ee?u/2*I%u:(j/2+2*E)*A*I%u,u,N,c,X,ee,!1,D)}function Xu(a,u,c,m,x){for(var E=[],A=0;A=m&&X.x>=m||(j.x>=m?j=new ae(m,j.y+(m-j.x)/(X.x-j.x)*(X.y-j.y))._round():X.x>=m&&(X=new ae(m,j.y+(m-j.x)/(X.x-j.x)*(X.y-j.y))._round()),j.y>=x&&X.y>=x||(j.y>=x?j=new ae(j.x+(x-j.y)/(X.y-j.y)*(X.x-j.x),x)._round():X.y>=x&&(X=new ae(j.x+(x-j.y)/(X.y-j.y)*(X.x-j.x),x)._round()),D&&j.equals(D[D.length-1])||E.push(D=[j]),D.push(X)))))}return E}function ke(a,u,c,m){var x=[],E=a.image,A=E.pixelRatio,I=E.paddedRect.w-2,D=E.paddedRect.h-2,N=a.right-a.left,j=a.bottom-a.top,X=E.stretchX||[[0,I]],ee=E.stretchY||[[0,D]],R=function(Bi,Zn){return Bi+Zn[1]-Zn[0]},Ce=X.reduce(R,0),Oe=ee.reduce(R,0),Qe=I-Ce,He=D-Oe,xt=0,It=Ce,Vt=0,jt=Oe,fr=0,Lr=Qe,Gr=0,Dn=He;if(E.content&&m){var sn=E.content;xt=Zt(X,0,sn[0]),Vt=Zt(ee,0,sn[1]),It=Zt(X,sn[0],sn[2]),jt=Zt(ee,sn[1],sn[3]),fr=sn[0]-xt,Gr=sn[1]-Vt,Lr=sn[2]-sn[0]-It,Dn=sn[3]-sn[1]-jt}var zn=function(Bi,Zn,ra,Ua){var Ja=ln(Bi.stretch-xt,It,N,a.left),so=bi(Bi.fixed-fr,Lr,Bi.stretch,Ce),za=ln(Zn.stretch-Vt,jt,j,a.top),co=bi(Zn.fixed-Gr,Dn,Zn.stretch,Oe),Go=ln(ra.stretch-xt,It,N,a.left),Uo=bi(ra.fixed-fr,Lr,ra.stretch,Ce),Zs=ln(Ua.stretch-Vt,jt,j,a.top),Fa=bi(Ua.fixed-Gr,Dn,Ua.stretch,Oe),Vs=new ae(Ja,za),bo=new ae(Go,za),rs=new ae(Go,Zs),zi=new ae(Ja,Zs),fa=new ae(so/A,co/A),va=new ae(Uo/A,Fa/A),Xi=u*Math.PI/180;if(Xi){var js=Math.sin(Xi),ns=Math.cos(Xi),Ba=[ns,-js,js,ns];Vs._matMult(Ba),bo._matMult(Ba),zi._matMult(Ba),rs._matMult(Ba)}var Po=Bi.stretch+Bi.fixed,ws=Zn.stretch+Zn.fixed;return{tl:Vs,tr:bo,bl:zi,br:rs,tex:{x:E.paddedRect.x+1+Po,y:E.paddedRect.y+1+ws,w:ra.stretch+ra.fixed-Po,h:Ua.stretch+Ua.fixed-ws},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fa,pixelOffsetBR:va,minFontScaleX:Lr/A/N,minFontScaleY:Dn/A/j,isSDF:c}};if(m&&(E.stretchX||E.stretchY))for(var cn=Bt(X,Qe,Ce),Ei=Bt(ee,He,Oe),Qn=0;Qn0&&(R=Math.max(10,R),this.circleDiameter=R)}else{var Ce=E.top*A-I,Oe=E.bottom*A+I,Qe=E.left*A-I,He=E.right*A+I,xt=E.collisionPadding;if(xt&&(Qe-=xt[0]*A,Ce-=xt[1]*A,He+=xt[2]*A,Oe+=xt[3]*A),N){var It=new ae(Qe,Ce),Vt=new ae(He,Ce),jt=new ae(Qe,Oe),fr=new ae(He,Oe),Lr=N*Math.PI/180;It._rotate(Lr),Vt._rotate(Lr),jt._rotate(Lr),fr._rotate(Lr),Qe=Math.min(It.x,Vt.x,jt.x,fr.x),He=Math.max(It.x,Vt.x,jt.x,fr.x),Ce=Math.min(It.y,Vt.y,jt.y,fr.y),Oe=Math.max(It.y,Vt.y,jt.y,fr.y)}a.emplaceBack(u.x,u.y,Qe,Ce,He,Oe,c,m,x)}this.boxEndIndex=a.length},ue=function(a,u){if(a===void 0&&(a=[]),u===void 0&&(u=Se),this.data=a,this.length=this.data.length,this.compare=u,this.length>0)for(var c=(this.length>>1)-1;c>=0;c--)this._down(c)};function Se(a,u){return au?1:0}function ze(a,u,c){u===void 0&&(u=1),c===void 0&&(c=!1);for(var m=1/0,x=1/0,E=-1/0,A=-1/0,I=a[0],D=0;DE)&&(E=N.x),(!D||N.y>A)&&(A=N.y)}var j=Math.min(E-m,A-x),X=j/2,ee=new ue([],Lt);if(j===0)return new ae(m,x);for(var R=m;ROe.d||!Oe.d)&&(Oe=He,c&&console.log("found best %d after %d probes",Math.round(1e4*He.d)/1e4,Qe)),He.max-Oe.d<=u||(ee.push(new Ft(He.p.x-(X=He.h/2),He.p.y-X,X,a)),ee.push(new Ft(He.p.x+X,He.p.y-X,X,a)),ee.push(new Ft(He.p.x-X,He.p.y+X,X,a)),ee.push(new Ft(He.p.x+X,He.p.y+X,X,a)),Qe+=4)}return c&&(console.log("num probes: "+Qe),console.log("best distance: "+Oe.d)),Oe.p}function Lt(a,u){return u.max-a.max}function Ft(a,u,c,m){this.p=new ae(a,u),this.h=c,this.d=function(x,E){for(var A=!1,I=1/0,D=0;Dx.y!=Ce.y>x.y&&x.x<(Ce.x-R.x)*(x.y-R.y)/(Ce.y-R.y)+R.x&&(A=!A),I=Math.min(I,Fl(x,R,Ce))}return(A?1:-1)*Math.sqrt(I)}(this.p,m),this.max=this.d+this.h*Math.SQRT2}ue.prototype.push=function(a){this.data.push(a),this.length++,this._up(this.length-1)},ue.prototype.pop=function(){if(this.length!==0){var a=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),a}},ue.prototype.peek=function(){return this.data[0]},ue.prototype._up=function(a){for(var u=this.data,c=this.compare,m=u[a];a>0;){var x=a-1>>1,E=u[x];if(c(m,E)>=0)break;u[a]=E,a=x}u[a]=m},ue.prototype._down=function(a){for(var u=this.data,c=this.compare,m=this.length>>1,x=u[a];a=0)break;u[a]=A,a=E}u[a]=x};var Ye=Number.POSITIVE_INFINITY;function st(a,u){return u[1]!==Ye?function(c,m,x){var E=0,A=0;switch(m=Math.abs(m),x=Math.abs(x),c){case"top-right":case"top-left":case"top":A=x-7;break;case"bottom-right":case"bottom-left":case"bottom":A=7-x}switch(c){case"top-right":case"bottom-right":case"right":E=-m;break;case"top-left":case"bottom-left":case"left":E=m}return[E,A]}(a,u[0],u[1]):function(c,m){var x=0,E=0;m<0&&(m=0);var A=m/Math.sqrt(2);switch(c){case"top-right":case"top-left":E=A-7;break;case"bottom-right":case"bottom-left":E=7-A;break;case"bottom":E=7-m;break;case"top":E=m-7}switch(c){case"top-right":case"bottom-right":x=-A;break;case"top-left":case"bottom-left":x=A;break;case"left":x=m;break;case"right":x=-m}return[x,E]}(a,u[0])}function pt(a){switch(a){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Me(a,u,c,m,x,E,A,I,D,N,j,X,ee,R,Ce){var Oe=function(Vt,jt,fr,Lr,Gr,Dn,sn,zn){for(var cn=Lr.layout.get("text-rotate").evaluate(Dn,{})*Math.PI/180,Ei=[],Qn=0,Tn=jt.positionedLines;Qn32640&&ft(a.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):Qe.kind==="composite"&&((He=[128*R.compositeTextSizes[0].evaluate(A,{},Ce),128*R.compositeTextSizes[1].evaluate(A,{},Ce)])[0]>32640||He[1]>32640)&&ft(a.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),a.addSymbols(a.text,Oe,He,I,E,A,N,u,D.lineStartIndex,D.lineLength,ee,Ce);for(var xt=0,It=j;xt=0;A--)if(m.dist(E[A])0)&&(E.value.kind!=="constant"||E.value.value.length>0),N=I.value.kind!=="constant"||!!I.value.value||Object.keys(I.parameters).length>0,j=x.get("symbol-sort-key");if(this.features=[],D||N){for(var X=u.iconDependencies,ee=u.glyphDependencies,R=u.availableImages,Ce=new B(this.zoom),Oe=0,Qe=a;Oe=0;for(var Ii=0,gi=Gr.sections;Ii=0;I--)E[I]={x:u[I].x,y:u[I].y,tileUnitDistanceFromAnchor:x},I>0&&(x+=u[I-1].dist(u[I]));for(var D=0;D0},_n.prototype.hasIconData=function(){return this.icon.segments.get().length>0},_n.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},_n.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},_n.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},_n.prototype.addIndicesForPlacedSymbol=function(a,u){for(var c=a.placedSymbolArray.get(u),m=c.vertexStartIndex+4*c.numGlyphs,x=c.vertexStartIndex;x1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(a),this.sortedAngle=a,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var c=0,m=this.symbolInstanceIndexes;c=0&&I.indexOf(E)===A&&u.addIndicesForPlacedSymbol(u.text,E)}),x.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,x.verticalPlacedTextSymbolIndex),x.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,x.placedIconSymbolIndex),x.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,x.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},vn("SymbolBucket",_n,{omit:["layers","collisionBoxArray","features","compareText"]}),_n.MAX_GLYPHS=65535,_n.addDynamicAttributes=_r;var Sn=new ka({"symbol-placement":new On(V.layout_symbol["symbol-placement"]),"symbol-spacing":new On(V.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new On(V.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new gn(V.layout_symbol["symbol-sort-key"]),"symbol-z-order":new On(V.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new On(V.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new On(V.layout_symbol["icon-ignore-placement"]),"icon-optional":new On(V.layout_symbol["icon-optional"]),"icon-rotation-alignment":new On(V.layout_symbol["icon-rotation-alignment"]),"icon-size":new gn(V.layout_symbol["icon-size"]),"icon-text-fit":new On(V.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new On(V.layout_symbol["icon-text-fit-padding"]),"icon-image":new gn(V.layout_symbol["icon-image"]),"icon-rotate":new gn(V.layout_symbol["icon-rotate"]),"icon-padding":new On(V.layout_symbol["icon-padding"]),"icon-keep-upright":new On(V.layout_symbol["icon-keep-upright"]),"icon-offset":new gn(V.layout_symbol["icon-offset"]),"icon-anchor":new gn(V.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new On(V.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new On(V.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new On(V.layout_symbol["text-rotation-alignment"]),"text-field":new gn(V.layout_symbol["text-field"]),"text-font":new gn(V.layout_symbol["text-font"]),"text-size":new gn(V.layout_symbol["text-size"]),"text-max-width":new gn(V.layout_symbol["text-max-width"]),"text-line-height":new On(V.layout_symbol["text-line-height"]),"text-letter-spacing":new gn(V.layout_symbol["text-letter-spacing"]),"text-justify":new gn(V.layout_symbol["text-justify"]),"text-radial-offset":new gn(V.layout_symbol["text-radial-offset"]),"text-variable-anchor":new On(V.layout_symbol["text-variable-anchor"]),"text-anchor":new gn(V.layout_symbol["text-anchor"]),"text-max-angle":new On(V.layout_symbol["text-max-angle"]),"text-writing-mode":new On(V.layout_symbol["text-writing-mode"]),"text-rotate":new gn(V.layout_symbol["text-rotate"]),"text-padding":new On(V.layout_symbol["text-padding"]),"text-keep-upright":new On(V.layout_symbol["text-keep-upright"]),"text-transform":new gn(V.layout_symbol["text-transform"]),"text-offset":new gn(V.layout_symbol["text-offset"]),"text-allow-overlap":new On(V.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new On(V.layout_symbol["text-ignore-placement"]),"text-optional":new On(V.layout_symbol["text-optional"])}),Gn={paint:new ka({"icon-opacity":new gn(V.paint_symbol["icon-opacity"]),"icon-color":new gn(V.paint_symbol["icon-color"]),"icon-halo-color":new gn(V.paint_symbol["icon-halo-color"]),"icon-halo-width":new gn(V.paint_symbol["icon-halo-width"]),"icon-halo-blur":new gn(V.paint_symbol["icon-halo-blur"]),"icon-translate":new On(V.paint_symbol["icon-translate"]),"icon-translate-anchor":new On(V.paint_symbol["icon-translate-anchor"]),"text-opacity":new gn(V.paint_symbol["text-opacity"]),"text-color":new gn(V.paint_symbol["text-color"],{runtimeType:$r,getOverride:function(a){return a.textColor},hasOverride:function(a){return!!a.textColor}}),"text-halo-color":new gn(V.paint_symbol["text-halo-color"]),"text-halo-width":new gn(V.paint_symbol["text-halo-width"]),"text-halo-blur":new gn(V.paint_symbol["text-halo-blur"]),"text-translate":new On(V.paint_symbol["text-translate"]),"text-translate-anchor":new On(V.paint_symbol["text-translate-anchor"])}),layout:Sn},ri=function(a){this.type=a.property.overrides?a.property.overrides.runtimeType:nn,this.defaultValue=a};ri.prototype.evaluate=function(a){if(a.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(a.formattedSection))return u.getOverride(a.formattedSection)}return a.feature&&a.featureState?this.defaultValue.evaluate(a.feature,a.featureState):this.defaultValue.property.specification.default},ri.prototype.eachChild=function(a){this.defaultValue.isConstant()||a(this.defaultValue.value._styleExpression.expression)},ri.prototype.outputDefined=function(){return!1},ri.prototype.serialize=function(){return null},vn("FormatSectionOverride",ri,{omit:["defaultValue"]});var ta=function(a){function u(c){a.call(this,c,Gn)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.recalculate=function(c,m){if(a.prototype.recalculate.call(this,c,m),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var x=this.layout.get("text-writing-mode");if(x){for(var E=[],A=0,I=x;A",targetMapId:m,sourceMapId:E.mapId})}}},gp.prototype.receive=function(a){var u=a.data,c=u.id;if(c&&(!u.targetMapId||this.mapId===u.targetMapId))if(u.type===""){delete this.tasks[c];var m=this.cancelCallbacks[c];delete this.cancelCallbacks[c],m&&m()}else te()||u.mustQueue?(this.tasks[c]=u,this.taskQueue.push(c),this.invoker.trigger()):this.processTask(c,u)},gp.prototype.process=function(){if(this.taskQueue.length){var a=this.taskQueue.shift(),u=this.tasks[a];delete this.tasks[a],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(a,u)}},gp.prototype.processTask=function(a,u){var c=this;if(u.type===""){var m=this.callbacks[a];delete this.callbacks[a],m&&(u.error?m(ga(u.error)):m(null,ga(u.data)))}else{var x=!1,E=Be(this.globalScope)?void 0:[],A=u.hasCallback?function(j,X){x=!0,delete c.cancelCallbacks[a],c.target.postMessage({id:a,type:"",sourceMapId:c.mapId,error:j?us(j):null,data:us(X,E)},E)}:function(j){x=!0},I=null,D=ga(u.data);if(this.parent[u.type])I=this.parent[u.type](u.sourceMapId,D,A);else if(this.parent.getWorkerSource){var N=u.type.split(".");I=this.parent.getWorkerSource(u.sourceMapId,N[0],D.source)[N[1]](D,A)}else A(new Error("Could not find function "+u.type));!x&&I&&I.cancel&&(this.cancelCallbacks[a]=I.cancel)}},gp.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var No=function(a,u){a&&(u?this.setSouthWest(a).setNorthEast(u):a.length===4?this.setSouthWest([a[0],a[1]]).setNorthEast([a[2],a[3]]):this.setSouthWest(a[0]).setNorthEast(a[1]))};No.prototype.setNorthEast=function(a){return this._ne=a instanceof Xa?new Xa(a.lng,a.lat):Xa.convert(a),this},No.prototype.setSouthWest=function(a){return this._sw=a instanceof Xa?new Xa(a.lng,a.lat):Xa.convert(a),this},No.prototype.extend=function(a){var u,c,m=this._sw,x=this._ne;if(a instanceof Xa)u=a,c=a;else{if(!(a instanceof No))return Array.isArray(a)?a.length===4||a.every(Array.isArray)?this.extend(No.convert(a)):this.extend(Xa.convert(a)):this;if(c=a._ne,!(u=a._sw)||!c)return this}return m||x?(m.lng=Math.min(u.lng,m.lng),m.lat=Math.min(u.lat,m.lat),x.lng=Math.max(c.lng,x.lng),x.lat=Math.max(c.lat,x.lat)):(this._sw=new Xa(u.lng,u.lat),this._ne=new Xa(c.lng,c.lat)),this},No.prototype.getCenter=function(){return new Xa((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},No.prototype.getSouthWest=function(){return this._sw},No.prototype.getNorthEast=function(){return this._ne},No.prototype.getNorthWest=function(){return new Xa(this.getWest(),this.getNorth())},No.prototype.getSouthEast=function(){return new Xa(this.getEast(),this.getSouth())},No.prototype.getWest=function(){return this._sw.lng},No.prototype.getSouth=function(){return this._sw.lat},No.prototype.getEast=function(){return this._ne.lng},No.prototype.getNorth=function(){return this._ne.lat},No.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},No.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},No.prototype.isEmpty=function(){return!(this._sw&&this._ne)},No.prototype.contains=function(a){var u=Xa.convert(a),c=u.lng,m=u.lat,x=this._sw.lng<=c&&c<=this._ne.lng;return this._sw.lng>this._ne.lng&&(x=this._sw.lng>=c&&c>=this._ne.lng),this._sw.lat<=m&&m<=this._ne.lat&&x},No.convert=function(a){return!a||a instanceof No?a:new No(a)};var Xa=function(a,u){if(isNaN(a)||isNaN(u))throw new Error("Invalid LngLat object: ("+a+", "+u+")");if(this.lng=+a,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Xa.prototype.wrap=function(){return new Xa(Yt(this.lng,-180,180),this.lat)},Xa.prototype.toArray=function(){return[this.lng,this.lat]},Xa.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Xa.prototype.distanceTo=function(a){var u=Math.PI/180,c=this.lat*u,m=a.lat*u,x=Math.sin(c)*Math.sin(m)+Math.cos(c)*Math.cos(m)*Math.cos((a.lng-this.lng)*u);return 63710088e-1*Math.acos(Math.min(x,1))},Xa.prototype.toBounds=function(a){a===void 0&&(a=0);var u=360*a/40075017,c=u/Math.cos(Math.PI/180*this.lat);return new No(new Xa(this.lng-c,this.lat-u),new Xa(this.lng+c,this.lat+u))},Xa.convert=function(a){if(a instanceof Xa)return a;if(Array.isArray(a)&&(a.length===2||a.length===3))return new Xa(Number(a[0]),Number(a[1]));if(!Array.isArray(a)&&typeof a=="object"&&a!==null)return new Xa(Number("lng"in a?a.lng:a.lon),Number(a.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Fi=2*Math.PI*63710088e-1;function Oi(a){return Fi*Math.cos(a*Math.PI/180)}function kh(a){return(180+a)/360}function Wd(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function rg(a,u){return a/Oi(u)}function Gd(a){return 360/Math.PI*Math.atan(Math.exp((180-360*a)*Math.PI/180))-90}var qf=function(a,u,c){c===void 0&&(c=0),this.x=+a,this.y=+u,this.z=+c};qf.fromLngLat=function(a,u){u===void 0&&(u=0);var c=Xa.convert(a);return new qf(kh(c.lng),Wd(c.lat),rg(u,c.lat))},qf.prototype.toLngLat=function(){return new Xa(360*this.x-180,Gd(this.y))},qf.prototype.toAltitude=function(){return this.z*Oi(Gd(this.y))},qf.prototype.meterInMercatorCoordinateUnits=function(){return 1/Fi*(a=Gd(this.y),1/Math.cos(a*Math.PI/180));var a};var zl=function(a,u,c){this.z=a,this.x=u,this.y=c,this.key=_p(0,a,a,u,c)};zl.prototype.equals=function(a){return this.z===a.z&&this.x===a.x&&this.y===a.y},zl.prototype.url=function(a,u){var c,m,x,E,A,I=(m=this.y,x=this.z,E=tg(256*(c=this.x),256*(m=Math.pow(2,x)-m-1),x),A=tg(256*(c+1),256*(m+1),x),E[0]+","+E[1]+","+A[0]+","+A[1]),D=function(N,j,X){for(var ee,R="",Ce=N;Ce>0;Ce--)R+=(j&(ee=1<this.canonical.z?new Io(a,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Io(a,this.wrap,a,this.canonical.x>>u,this.canonical.y>>u)},Io.prototype.calculateScaledKey=function(a,u){var c=this.canonical.z-a;return a>this.canonical.z?_p(this.wrap*+u,a,this.canonical.z,this.canonical.x,this.canonical.y):_p(this.wrap*+u,a,a,this.canonical.x>>c,this.canonical.y>>c)},Io.prototype.isChildOf=function(a){if(a.wrap!==this.wrap)return!1;var u=this.canonical.z-a.canonical.z;return a.overscaledZ===0||a.overscaledZ>u&&a.canonical.y===this.canonical.y>>u},Io.prototype.children=function(a){if(this.overscaledZ>=a)return[new Io(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var u=this.canonical.z+1,c=2*this.canonical.x,m=2*this.canonical.y;return[new Io(u,this.wrap,u,c,m),new Io(u,this.wrap,u,c+1,m),new Io(u,this.wrap,u,c,m+1),new Io(u,this.wrap,u,c+1,m+1)]},Io.prototype.isLessThan=function(a){return this.wrapa.wrap)&&(this.overscaledZa.overscaledZ)&&(this.canonical.xa.canonical.x)&&this.canonical.y=this.dim+1||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(a+1)},Vc.prototype._unpackMapbox=function(a,u,c){return(256*a*256+256*u+c)/10-1e4},Vc.prototype._unpackTerrarium=function(a,u,c){return 256*a+u+c/256-32768},Vc.prototype.getPixels=function(){return new Qo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Vc.prototype.backfillBorder=function(a,u,c){if(this.dim!==a.dim)throw new Error("dem dimension mismatch");var m=u*this.dim,x=u*this.dim+this.dim,E=c*this.dim,A=c*this.dim+this.dim;switch(u){case-1:m=x-1;break;case 1:x=m+1}switch(c){case-1:E=A-1;break;case 1:A=E+1}for(var I=-u*this.dim,D=-c*this.dim,N=E;N=0&&j[3]>=0&&I.insert(A,j[0],j[1],j[2],j[3])}},jc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Ul.VectorTile(new zt(this.rawTileData)).layers,this.sourceLayerCoder=new yp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},jc.prototype.query=function(a,u,c,m){var x=this;this.loadVTLayers();for(var E=a.params||{},A=8192/a.tileSize/a.scale,I=Bu(E.filter),D=a.queryGeometry,N=a.queryPadding*A,j=ng(D),X=this.grid.query(j.minX-N,j.minY-N,j.maxX+N,j.maxY+N),ee=ng(a.cameraQueryGeometry),R=this.grid3D.query(ee.minX-N,ee.minY-N,ee.maxX+N,ee.maxY+N,function(Vt,jt,fr,Lr){return function(Gr,Dn,sn,zn,cn){for(var Ei=0,Qn=Gr;Ei=Tn.x&&cn>=Tn.y)return!0}var Ii=[new ae(Dn,sn),new ae(Dn,cn),new ae(zn,cn),new ae(zn,sn)];if(Gr.length>2){for(var gi=0,Bi=Ii;gi=0)return!0;return!1}(E,X)){var ee=this.sourceLayerCoder.decode(c),R=this.vtLayers[ee].feature(m);if(x.needGeometry){var Ce=Ga(R,!0);if(!x.filter(new B(this.tileID.overscaledZ),Ce,this.tileID.canonical))return}else if(!x.filter(new B(this.tileID.overscaledZ),R))return;for(var Oe=this.getId(R,ee),Qe=0;Qem)x=!1;else if(u)if(this.expirationTimesr&&(a.getActor().send("enforceCacheSizeLimit",wt),En=0)},_.clamp=Dt,_.clearTileCache=function(a){var u=ie.caches.delete("mapbox-tiles");a&&u.catch(a).then(function(){return a()})},_.clipLine=Xu,_.clone=function(a){var u=new Ni(16);return u[0]=a[0],u[1]=a[1],u[2]=a[2],u[3]=a[3],u[4]=a[4],u[5]=a[5],u[6]=a[6],u[7]=a[7],u[8]=a[8],u[9]=a[9],u[10]=a[10],u[11]=a[11],u[12]=a[12],u[13]=a[13],u[14]=a[14],u[15]=a[15],u},_.clone$1=nt,_.clone$2=function(a){var u=new Ni(3);return u[0]=a[0],u[1]=a[1],u[2]=a[2],u},_.collisionCircleLayout=z,_.config=mn,_.create=function(){var a=new Ni(16);return Ni!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=0,a[12]=0,a[13]=0,a[14]=0),a[0]=1,a[5]=1,a[10]=1,a[15]=1,a},_.create$1=function(){var a=new Ni(9);return Ni!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[5]=0,a[6]=0,a[7]=0),a[0]=1,a[4]=1,a[8]=1,a},_.create$2=function(){var a=new Ni(4);return Ni!=Float32Array&&(a[1]=0,a[2]=0),a[0]=1,a[3]=1,a},_.createCommonjsModule=le,_.createExpression=rf,_.createLayout=To,_.createStyleLayer=function(a){return a.type==="custom"?new Vd(a):new zs[a.type](a)},_.cross=function(a,u,c){var m=u[0],x=u[1],E=u[2],A=c[0],I=c[1],D=c[2];return a[0]=x*D-E*I,a[1]=E*A-m*D,a[2]=m*I-x*A,a},_.deepEqual=function a(u,c){if(Array.isArray(u)){if(!Array.isArray(c)||u.length!==c.length)return!1;for(var m=0;m0&&(E=1/Math.sqrt(E)),a[0]=u[0]*E,a[1]=u[1]*E,a[2]=u[2]*E,a},_.number=Ya,_.offscreenCanvasSupported=Rn,_.ortho=function(a,u,c,m,x,E,A){var I=1/(u-c),D=1/(m-x),N=1/(E-A);return a[0]=-2*I,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*D,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*N,a[11]=0,a[12]=(u+c)*I,a[13]=(x+m)*D,a[14]=(A+E)*N,a[15]=1,a},_.parseGlyphPBF=function(a){return new zt(a).readFields(xr,[])},_.pbf=zt,_.performSymbolLayout=function(a,u,c,m,x,E,A){a.createArrays(),a.tilePixelRatio=8192/(512*a.overscaling),a.compareText={},a.iconsNeedLinear=!1;var I=a.layers[0].layout,D=a.layers[0]._unevaluatedLayout._values,N={};if(a.textSizeData.kind==="composite"){var j=a.textSizeData,X=j.maxZoom;N.compositeTextSizes=[D["text-size"].possiblyEvaluate(new B(j.minZoom),A),D["text-size"].possiblyEvaluate(new B(X),A)]}if(a.iconSizeData.kind==="composite"){var ee=a.iconSizeData,R=ee.maxZoom;N.compositeIconSizes=[D["icon-size"].possiblyEvaluate(new B(ee.minZoom),A),D["icon-size"].possiblyEvaluate(new B(R),A)]}N.layoutTextSize=D["text-size"].possiblyEvaluate(new B(a.zoom+1),A),N.layoutIconSize=D["icon-size"].possiblyEvaluate(new B(a.zoom+1),A),N.textMaxSize=D["text-size"].possiblyEvaluate(new B(18));for(var Ce=24*I.get("text-line-height"),Oe=I.get("text-rotation-alignment")==="map"&&I.get("symbol-placement")!=="point",Qe=I.get("text-keep-upright"),He=I.get("text-size"),xt=function(){var jt=Vt[It],fr=I.get("text-font").evaluate(jt,{},A).join(","),Lr=He.evaluate(jt,{},A),Gr=N.layoutTextSize.evaluate(jt,{},A),Dn=N.layoutIconSize.evaluate(jt,{},A),sn={horizontal:{},vertical:void 0},zn=jt.text,cn=[0,0];if(zn){var Ei=zn.toString(),Qn=24*I.get("text-letter-spacing").evaluate(jt,{},A),Tn=function(zi){for(var fa=0,va=zi;fa=8192||qd.y<0||qd.y>=8192||function(fo,gc,A0,ah,Kd,ag,sd,_c,ud,wp,ld,cd,Qd,Wv,Cp,Gv,Xv,$v,Yv,qv,bu,fd,Kv,yc,Hs){var Qv,oh,Nh,Uh,zh,Zh=fo.addToLineVertexArray(gc,A0),Jv=0,em=0,tm=0,rm=0,Jd=-1,ev=-1,Xc={},nm=we(""),tv=0,rv=0;if(_c._unevaluatedLayout.getValue("text-radial-offset")===void 0?(tv=(Qv=_c.layout.get("text-offset").evaluate(bu,{},yc).map(function(dd){return 24*dd}))[0],rv=Qv[1]):(tv=24*_c.layout.get("text-radial-offset").evaluate(bu,{},yc),rv=Ye),fo.allowVerticalPlacement&&ah.vertical){var og=_c.layout.get("text-rotate").evaluate(bu,{},yc)+90;Uh=new da(ud,gc,wp,ld,cd,ah.vertical,Qd,Wv,Cp,og),sd&&(zh=new da(ud,gc,wp,ld,cd,sd,Xv,$v,Cp,og))}if(Kd){var im=_c.layout.get("icon-rotate").evaluate(bu,{}),sg=_c.layout.get("icon-text-fit")!=="none",ug=ke(Kd,im,Kv,sg),nv=sd?ke(sd,im,Kv,sg):void 0;Nh=new da(ud,gc,wp,ld,cd,Kd,Xv,$v,!1,im),Jv=4*ug.length;var am=fo.iconSizeData,Vh=null;am.kind==="source"?(Vh=[128*_c.layout.get("icon-size").evaluate(bu,{})])[0]>32640&&ft(fo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):am.kind==="composite"&&((Vh=[128*fd.compositeIconSizes[0].evaluate(bu,{},yc),128*fd.compositeIconSizes[1].evaluate(bu,{},yc)])[0]>32640||Vh[1]>32640)&&ft(fo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),fo.addSymbols(fo.icon,ug,Vh,qv,Yv,bu,!1,gc,Zh.lineStartIndex,Zh.lineLength,-1,yc),Jd=fo.icon.placedSymbolArray.length-1,nv&&(em=4*nv.length,fo.addSymbols(fo.icon,nv,Vh,qv,Yv,bu,tt.vertical,gc,Zh.lineStartIndex,Zh.lineLength,-1,yc),ev=fo.icon.placedSymbolArray.length-1)}for(var om in ah.horizontal){var hd=ah.horizontal[om];if(!oh){nm=we(hd.text);var lg=_c.layout.get("text-rotate").evaluate(bu,{},yc);oh=new da(ud,gc,wp,ld,cd,hd,Qd,Wv,Cp,lg)}var cg=hd.positionedLines.length===1;if(tm+=Me(fo,gc,hd,ag,_c,Cp,bu,Gv,Zh,ah.vertical?tt.horizontal:tt.horizontalOnly,cg?Object.keys(ah.horizontal):[om],Xc,Jd,fd,yc),cg)break}ah.vertical&&(rm+=Me(fo,gc,ah.vertical,ag,_c,Cp,bu,Gv,Zh,tt.vertical,["vertical"],Xc,ev,fd,yc));var fg=oh?oh.boxStartIndex:fo.collisionBoxArray.length,T0=oh?oh.boxEndIndex:fo.collisionBoxArray.length,hg=Uh?Uh.boxStartIndex:fo.collisionBoxArray.length,pg=Uh?Uh.boxEndIndex:fo.collisionBoxArray.length,w0=Nh?Nh.boxStartIndex:fo.collisionBoxArray.length,C0=Nh?Nh.boxEndIndex:fo.collisionBoxArray.length,R0=zh?zh.boxStartIndex:fo.collisionBoxArray.length,M0=zh?zh.boxEndIndex:fo.collisionBoxArray.length,$c=-1,pd=function(dd,sm){return dd&&dd.circleDiameter?Math.max(dd.circleDiameter,sm):sm};$c=pd(oh,$c),$c=pd(Uh,$c),$c=pd(Nh,$c);var dg=($c=pd(zh,$c))>-1?1:0;dg&&($c*=Hs/24),fo.glyphOffsetArray.length>=_n.MAX_GLYPHS&&ft("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),bu.sortKey!==void 0&&fo.addToSortKeyRanges(fo.symbolInstances.length,bu.sortKey),fo.symbolInstances.emplaceBack(gc.x,gc.y,Xc.right>=0?Xc.right:-1,Xc.center>=0?Xc.center:-1,Xc.left>=0?Xc.left:-1,Xc.vertical||-1,Jd,ev,nm,fg,T0,hg,pg,w0,C0,R0,M0,wp,tm,rm,Jv,em,dg,0,Qd,tv,rv,$c)}(zi,qd,ig,va,Xi,js,vl,zi.layers[0],zi.collisionBoxArray,fa.index,fa.sourceLayerIndex,zi.index,pc,vc,Xd,ws,dc,Ep,td,Vl,fa,ns,qi,Zl,Ba)};if(Hc==="line")for(var Ap=0,rd=Xu(fa.geometry,0,0,8192,8192);Ap1){var rh=Gi(Bh,ed,va.vertical||$u,Xi,24,Cs);rh&&eh(Bh,rh)}}else if(fa.type==="Polygon")for(var nh=0,Tp=pp(fa.geometry,0);nh=Li.maxzoom||Li.visibility!=="none"&&(ie(ci,this.zoom,se),(er[Li.id]=Li.createBucket({index:V.bucketLayerIDs.length,layers:ci,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Kr,sourceID:this.source})).populate(Hr,Tr,this.tileID.canonical),V.bucketLayerIDs.push(ci.map(function(Ai){return Ai.id})))}}}var Si=_.mapObject(Tr.glyphDependencies,function(Ai){return Object.keys(Ai).map(Number)});Object.keys(Si).length?xe.send("getGlyphs",{uid:this.uid,stacks:Si},function(Ai,mi){q||(q=Ai,De=mi,Ia.call(Je))}):De={};var Xo=Object.keys(Tr.iconDependencies);Xo.length?xe.send("getImages",{icons:Xo,source:this.source,tileID:this.tileID,type:"icons"},function(Ai,mi){q||(q=Ai,et=mi,Ia.call(Je))}):et={};var Ki=Object.keys(Tr.patternDependencies);function Ia(){if(q)return Re(q);if(De&&et&&be){var Ai=new ae(De),mi=new _.ImageAtlas(et,be);for(var Ti in er){var Pa=er[Ti];Pa instanceof _.SymbolBucket?(ie(Pa.layers,this.zoom,se),_.performSymbolLayout(Pa,De,Ai.positions,et,mi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Pa.hasPattern&&(Pa instanceof _.LineBucket||Pa instanceof _.FillBucket||Pa instanceof _.FillExtrusionBucket)&&(ie(Pa.layers,this.zoom,se),Pa.addFeatures(Tr,this.tileID.canonical,mi.patternPositions))}this.status="done",Re(null,{buckets:_.values(er).filter(function(cu){return!cu.isEmpty()}),featureIndex:V,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ai.image,imageAtlas:mi,glyphMap:this.returnDependencies?De:null,iconMap:this.returnDependencies?et:null,glyphPositions:this.returnDependencies?Ai.positions:null})}}Ki.length?xe.send("getImages",{icons:Ki,source:this.source,tileID:this.tileID,type:"patterns"},function(Ai,mi){q||(q=Ai,be=mi,Ia.call(Je))}):be={},Ia.call(this)};var ht=function(W,Q,se,xe){this.actor=W,this.layerIndex=Q,this.availableImages=se,this.loadVectorData=xe||Ke,this.loading={},this.loaded={}};ht.prototype.loadTile=function(W,Q){var se=this,xe=W.uid;this.loading||(this.loading={});var Re=!!(W&&W.request&&W.request.collectResourceTiming)&&new _.RequestPerformance(W.request),Je=this.loading[xe]=new qe(W);Je.abort=this.loadVectorData(W,function(lt,V){if(delete se.loading[xe],lt||!V)return Je.status="done",se.loaded[xe]=Je,Q(lt);var q=V.rawData,De={};V.expires&&(De.expires=V.expires),V.cacheControl&&(De.cacheControl=V.cacheControl);var et={};if(Re){var be=Re.finish();be&&(et.resourceTiming=JSON.parse(JSON.stringify(be)))}Je.vectorTile=V.vectorTile,Je.parse(V.vectorTile,se.layerIndex,se.availableImages,se.actor,function(er,Tr){if(er||!Tr)return Q(er);Q(null,_.extend({rawTileData:q.slice(0)},Tr,De,et))}),se.loaded=se.loaded||{},se.loaded[xe]=Je})},ht.prototype.reloadTile=function(W,Q){var se=this,xe=this.loaded,Re=W.uid,Je=this;if(xe&&xe[Re]){var lt=xe[Re];lt.showCollisionBoxes=W.showCollisionBoxes;var V=function(q,De){var et=lt.reloadCallback;et&&(delete lt.reloadCallback,lt.parse(lt.vectorTile,Je.layerIndex,se.availableImages,Je.actor,et)),Q(q,De)};lt.status==="parsing"?lt.reloadCallback=V:lt.status==="done"&&(lt.vectorTile?lt.parse(lt.vectorTile,this.layerIndex,this.availableImages,this.actor,V):V())}},ht.prototype.abortTile=function(W,Q){var se=this.loading,xe=W.uid;se&&se[xe]&&se[xe].abort&&(se[xe].abort(),delete se[xe]),Q()},ht.prototype.removeTile=function(W,Q){var se=this.loaded,xe=W.uid;se&&se[xe]&&delete se[xe],Q()};var mt=_.window.ImageBitmap,Dt=function(){this.loaded={}};function Yt(W,Q){if(W.length!==0){Ht(W[0],Q);for(var se=1;se=Math.abs(V)?se-q+V:V-q+se,se=q}se+xe>=0!=!!Q&&W.reverse()}Dt.prototype.loadTile=function(W,Q){var se=W.uid,xe=W.encoding,Re=W.rawImageData,Je=mt&&Re instanceof mt?this.getImageData(Re):Re,lt=new _.DEMData(se,Je,xe);this.loaded=this.loaded||{},this.loaded[se]=lt,Q(null,lt)},Dt.prototype.getImageData=function(W){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(W.width,W.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=W.width,this.offscreenCanvas.height=W.height,this.offscreenCanvasContext.drawImage(W,0,0,W.width,W.height);var Q=this.offscreenCanvasContext.getImageData(-1,-1,W.width+2,W.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new _.RGBAImage({width:Q.width,height:Q.height},Q.data)},Dt.prototype.removeTile=function(W){var Q=this.loaded,se=W.uid;Q&&Q[se]&&delete Q[se]};var ir=_.vectorTile.VectorTileFeature.prototype.toGeoJSON,Xt=function(W){this._feature=W,this.extent=_.EXTENT,this.type=W.type,this.properties=W.tags,"id"in W&&!isNaN(W.id)&&(this.id=parseInt(W.id,10))};Xt.prototype.loadGeometry=function(){if(this._feature.type===1){for(var W=[],Q=0,se=this._feature.geometry;Q>31}function K(W,Q){for(var se=W.loadGeometry(),xe=W.type,Re=0,Je=0,lt=se.length,V=0;V>1;(function Kr(Hr,$r,hi,Qr,vi,Yi){for(;vi>Qr;){if(vi-Qr>600){var ci=vi-Qr+1,Li=hi-Qr+1,Si=Math.log(ci),Xo=.5*Math.exp(2*Si/3),Ki=.5*Math.sqrt(Si*Xo*(ci-Xo)/ci)*(Li-ci/2<0?-1:1);Kr(Hr,$r,hi,Math.max(Qr,Math.floor(hi-Li*Xo/ci+Ki)),Math.min(vi,Math.floor(hi+(ci-Li)*Xo/ci+Ki)),Yi)}var Ia=$r[2*hi+Yi],Ai=Qr,mi=vi;for(Ae(Hr,$r,Qr,hi),$r[2*vi+Yi]>Ia&&Ae(Hr,$r,Qr,vi);AiIa;)mi--}$r[2*Qr+Yi]===Ia?Ae(Hr,$r,Qr,mi):Ae(Hr,$r,++mi,vi),mi<=hi&&(Qr=mi+1),hi<=mi&&(vi=mi-1)}})(et,be,ar,Tr,bn,nn%2),De(et,be,er,Tr,ar-1,nn+1),De(et,be,er,ar+1,bn,nn+1)}})(lt,V,xe,0,lt.length-1,0)};Mt.prototype.range=function(W,Q,se,xe){return function(Re,Je,lt,V,q,De,et){for(var be,er,Tr=[0,Re.length-1,0],bn=[];Tr.length;){var nn=Tr.pop(),ar=Tr.pop(),Kr=Tr.pop();if(ar-Kr<=et)for(var Hr=Kr;Hr<=ar;Hr++)er=Je[2*Hr+1],(be=Je[2*Hr])>=lt&&be<=q&&er>=V&&er<=De&&bn.push(Re[Hr]);else{var $r=Math.floor((Kr+ar)/2);er=Je[2*$r+1],(be=Je[2*$r])>=lt&&be<=q&&er>=V&&er<=De&&bn.push(Re[$r]);var hi=(nn+1)%2;(nn===0?lt<=be:V<=er)&&(Tr.push(Kr),Tr.push($r-1),Tr.push(hi)),(nn===0?q>=be:De>=er)&&(Tr.push($r+1),Tr.push(ar),Tr.push(hi))}}return bn}(this.ids,this.coords,W,Q,se,xe,this.nodeSize)},Mt.prototype.within=function(W,Q,se){return function(xe,Re,Je,lt,V,q){for(var De=[0,xe.length-1,0],et=[],be=V*V;De.length;){var er=De.pop(),Tr=De.pop(),bn=De.pop();if(Tr-bn<=q)for(var nn=bn;nn<=Tr;nn++)Ue(Re[2*nn],Re[2*nn+1],Je,lt)<=be&&et.push(xe[nn]);else{var ar=Math.floor((bn+Tr)/2),Kr=Re[2*ar],Hr=Re[2*ar+1];Ue(Kr,Hr,Je,lt)<=be&&et.push(xe[ar]);var $r=(er+1)%2;(er===0?Je-V<=Kr:lt-V<=Hr)&&(De.push(bn),De.push(ar-1),De.push($r)),(er===0?Je+V>=Kr:lt+V>=Hr)&&(De.push(ar+1),De.push(Tr),De.push($r))}}return et}(this.ids,this.coords,W,Q,se,this.nodeSize)};var yr={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(W){return W}},lr=function(W){this.options=$i(Object.create(yr),W),this.trees=new Array(this.options.maxZoom+1)};function Cn(W,Q,se,xe,Re){return{x:W,y:Q,zoom:1/0,id:se,parentId:-1,numPoints:xe,properties:Re}}function mn(W,Q){var se=W.geometry.coordinates,xe=se[1];return{x:jn(se[0]),y:rn(xe),zoom:1/0,index:Q,parentId:-1}}function un(W){return{type:"Feature",id:W.id,properties:oi(W),geometry:{type:"Point",coordinates:[(xe=W.x,360*(xe-.5)),(Q=W.y,se=(180-360*Q)*Math.PI/180,360*Math.atan(Math.exp(se))/Math.PI-90)]}};var Q,se,xe}function oi(W){var Q=W.numPoints,se=Q>=1e4?Math.round(Q/1e3)+"k":Q>=1e3?Math.round(Q/100)/10+"k":Q;return $i($i({},W.properties),{cluster:!0,cluster_id:W.id,point_count:Q,point_count_abbreviated:se})}function jn(W){return W/360+.5}function rn(W){var Q=Math.sin(W*Math.PI/180),se=.5-.25*Math.log((1+Q)/(1-Q))/Math.PI;return se<0?0:se>1?1:se}function $i(W,Q){for(var se in Q)W[se]=Q[se];return W}function Wi(W){return W.x}function Zi(W){return W.y}function Jn(W,Q,se,xe,Re,Je){var lt=Re-se,V=Je-xe;if(lt!==0||V!==0){var q=((W-se)*lt+(Q-xe)*V)/(lt*lt+V*V);q>1?(se=Re,xe=Je):q>0&&(se+=lt*q,xe+=V*q)}return(lt=W-se)*lt+(V=Q-xe)*V}function Bn(W,Q,se,xe){var Re={id:W===void 0?null:W,type:Q,geometry:se,tags:xe,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Je){var lt=Je.geometry,V=Je.type;if(V==="Point"||V==="MultiPoint"||V==="LineString")Do(Je,lt);else if(V==="Polygon"||V==="MultiLineString")for(var q=0;q0&&(lt+=xe?(Re*De-q*Je)/2:Math.sqrt(Math.pow(q-Re,2)+Math.pow(De-Je,2))),Re=q,Je=De}var et=Q.length-3;Q[2]=1,function be(er,Tr,bn,nn){for(var ar,Kr=nn,Hr=bn-Tr>>1,$r=bn-Tr,hi=er[Tr],Qr=er[Tr+1],vi=er[bn],Yi=er[bn+1],ci=Tr+3;ciKr)ar=ci,Kr=Li;else if(Li===Kr){var Si=Math.abs(ci-Hr);Si<$r&&(ar=ci,$r=Si)}}Kr>nn&&(ar-Tr>3&&be(er,Tr,ar,nn),er[ar+2]=Kr,bn-ar>3&&be(er,ar,bn,nn))}(Q,0,et,se),Q[et+2]=1,Q.size=Math.abs(lt),Q.start=0,Q.end=Q.size}function F(W,Q,se,xe){for(var Re=0;Re1?1:se}function Ne(W,Q,se,xe,Re,Je,lt,V){if(xe/=Q,Je>=(se/=Q)&<=xe)return null;for(var q=[],De=0;De=se&&bn=xe)){var nn=[];if(er==="Point"||er==="MultiPoint")_t(be,nn,se,xe,Re);else if(er==="LineString")Kt(be,nn,se,xe,Re,!1,V.lineMetrics);else if(er==="MultiLineString")Ve(be,nn,se,xe,Re,!1);else if(er==="Polygon")Ve(be,nn,se,xe,Re,!0);else if(er==="MultiPolygon")for(var ar=0;ar=se&<<=xe&&(Q.push(W[Je]),Q.push(W[Je+1]),Q.push(W[Je+2]))}}function Kt(W,Q,se,xe,Re,Je,lt){for(var V,q,De=Ar(W),et=Re===0?sr:dr,be=W.start,er=0;erse&&(q=et(De,Tr,bn,ar,Kr,se),lt&&(De.start=be+V*q)):Hr>xe?$r=se&&(q=et(De,Tr,bn,ar,Kr,se),hi=!0),$r>xe&&Hr<=xe&&(q=et(De,Tr,bn,ar,Kr,xe),hi=!0),!Je&&hi&&(lt&&(De.end=be+V*q),Q.push(De),De=Ar(W)),lt&&(be+=V)}var Qr=W.length-3;Tr=W[Qr],bn=W[Qr+1],nn=W[Qr+2],(Hr=Re===0?Tr:bn)>=se&&Hr<=xe&&wt(De,Tr,bn,nn),Qr=De.length-3,Je&&Qr>=3&&(De[Qr]!==De[0]||De[Qr+1]!==De[1])&&wt(De,De[0],De[1],De[2]),De.length&&Q.push(De)}function Ar(W){var Q=[];return Q.size=W.size,Q.start=W.start,Q.end=W.end,Q}function Ve(W,Q,se,xe,Re,Je){for(var lt=0;ltlt.maxX&&(lt.maxX=et),be>lt.maxY&&(lt.maxY=be)}return lt}function si(W,Q,se,xe){var Re=Q.geometry,Je=Q.type,lt=[];if(Je==="Point"||Je==="MultiPoint")for(var V=0;V0&&Q.size<(Re?lt:xe))se.numPoints+=Q.length/3;else{for(var V=[],q=0;qlt)&&(se.numSimplified++,V.push(Q[q]),V.push(Q[q+1])),se.numPoints++;Re&&function(De,et){for(var be=0,er=0,Tr=De.length,bn=Tr-2;er0===et)for(er=0,Tr=De.length;er24)throw new Error("maxZoom should be in the 0-24 range");if(Q.promoteId&&Q.generateId)throw new Error("promoteId and generateId cannot be used together.");var xe=function(Re,Je){var lt=[];if(Re.type==="FeatureCollection")for(var V=0;V=xe;De--){var et=+Date.now();V=this._cluster(V,De),this.trees[De]=new Mt(V,Wi,Zi,Je,Float32Array),se&&console.log("z%d: %d clusters in %dms",De,V.length,+Date.now()-et)}return se&&console.timeEnd("total time"),this},lr.prototype.getClusters=function(W,Q){var se=((W[0]+180)%360+360)%360-180,xe=Math.max(-90,Math.min(90,W[1])),Re=W[2]===180?180:((W[2]+180)%360+360)%360-180,Je=Math.max(-90,Math.min(90,W[3]));if(W[2]-W[0]>=360)se=-180,Re=180;else if(se>Re){var lt=this.getClusters([se,xe,180,Je],Q),V=this.getClusters([-180,xe,Re,Je],Q);return lt.concat(V)}for(var q=this.trees[this._limitZoom(Q)],De=[],et=0,be=q.range(jn(se),rn(Je),jn(Re),rn(xe));etQ&&(er+=nn.numPoints||1)}if(er>=Je){for(var ar=q.x*be,Kr=q.y*be,Hr=Re&&be>1?this._map(q,!0):null,$r=(V<<5)+(Q+1)+this.points.length,hi=0,Qr=et;hi1)for(var ci=0,Li=et;ci>5},lr.prototype._getOriginZoom=function(W){return(W-this.points.length)%32},lr.prototype._map=function(W,Q){if(W.numPoints)return Q?$i({},W.properties):W.properties;var se=this.points[W.index].properties,xe=this.options.map(se);return Q&&xe===se?$i({},xe):xe},la.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},la.prototype.splitTile=function(W,Q,se,xe,Re,Je,lt){for(var V=[W,Q,se,xe],q=this.options,De=q.debug;V.length;){xe=V.pop(),se=V.pop(),Q=V.pop(),W=V.pop();var et=1<1&&console.time("creation"),er=this.tiles[be]=xn(W,Q,se,xe,q),this.tileCoords.push({z:Q,x:se,y:xe}),De)){De>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Q,se,xe,er.numFeatures,er.numPoints,er.numSimplified),console.timeEnd("creation"));var Tr="z"+Q;this.stats[Tr]=(this.stats[Tr]||0)+1,this.total++}if(er.source=W,Re){if(Q===q.maxZoom||Q===Re)continue;var bn=1<1&&console.time("clipping");var nn,ar,Kr,Hr,$r,hi,Qr=.5*q.buffer/q.extent,vi=.5-Qr,Yi=.5+Qr,ci=1+Qr;nn=ar=Kr=Hr=null,$r=Ne(W,et,se-Qr,se+Yi,0,er.minX,er.maxX,q),hi=Ne(W,et,se+vi,se+ci,0,er.minX,er.maxX,q),W=null,$r&&(nn=Ne($r,et,xe-Qr,xe+Yi,1,er.minY,er.maxY,q),ar=Ne($r,et,xe+vi,xe+ci,1,er.minY,er.maxY,q),$r=null),hi&&(Kr=Ne(hi,et,xe-Qr,xe+Yi,1,er.minY,er.maxY,q),Hr=Ne(hi,et,xe+vi,xe+ci,1,er.minY,er.maxY,q),hi=null),De>1&&console.timeEnd("clipping"),V.push(nn||[],Q+1,2*se,2*xe),V.push(ar||[],Q+1,2*se,2*xe+1),V.push(Kr||[],Q+1,2*se+1,2*xe),V.push(Hr||[],Q+1,2*se+1,2*xe+1)}}},la.prototype.getTile=function(W,Q,se){var xe=this.options,Re=xe.extent,Je=xe.debug;if(W<0||W>24)return null;var lt=1<1&&console.log("drilling down to z%d-%d-%d",W,Q,se);for(var q,De=W,et=Q,be=se;!q&&De>0;)De--,et=Math.floor(et/2),be=Math.floor(be/2),q=this.tiles[sa(De,et,be)];return q&&q.source?(Je>1&&console.log("found parent tile z%d-%d-%d",De,et,be),Je>1&&console.time("drilling down"),this.splitTile(q.source,De,et,be,W,Q,se),Je>1&&console.timeEnd("drilling down"),this.tiles[V]?En(this.tiles[V],Re):null):null};var Ks=function(W){function Q(se,xe,Re,Je){W.call(this,se,xe,Re,Eo),Je&&(this.loadGeoJSON=Je)}return W&&(Q.__proto__=W),(Q.prototype=Object.create(W&&W.prototype)).constructor=Q,Q.prototype.loadData=function(se,xe){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=xe,this._pendingLoadDataParams=se,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},Q.prototype._loadData=function(){var se=this;if(this._pendingCallback&&this._pendingLoadDataParams){var xe=this._pendingCallback,Re=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Je=!!(Re&&Re.request&&Re.request.collectResourceTiming)&&new _.RequestPerformance(Re.request);this.loadGeoJSON(Re,function(lt,V){if(lt||!V)return xe(lt);if(typeof V!="object")return xe(new Error("Input data given to '"+Re.source+"' is not a valid GeoJSON object."));(function er(Tr,bn){var nn,ar=Tr&&Tr.type;if(ar==="FeatureCollection")for(nn=0;nn=0?0:h.button},U.remove=function(h){h.parentNode&&h.parentNode.removeChild(h)};var Ht=function(h){function d(){h.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new _.RGBAImage({width:1,height:1}),this.dirty=!0}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.isLoaded=function(){return this.loaded},d.prototype.setLoaded=function(p){if(this.loaded!==p&&(this.loaded=p,p)){for(var g=0,S=this.requestors;g=0?1.2:1))}function Pr(h,d,p,g,S,w,C){for(var P=0;P65535)Z(new Error("glyphs > 65535 not supported"));else if(ge.ranges[Fe])Z(null,{stack:Y,id:ce,glyph:_e});else{var Pe=ge.requests[Fe];Pe||(Pe=ge.requests[Fe]=[],ur.loadGlyphRange(Y,Fe,p.url,p.requestManager,function(Xe,we){if(we){for(var Ge in we)p._doesCharSupportLocalGlyph(+Ge)||(ge.glyphs[+Ge]=we[+Ge]);ge.ranges[Fe]=!0}for(var ct=0,At=Pe;ct1&&(P=h[++C]);var Y=Math.abs(Z-P.left),ce=Math.abs(Z-P.right),ge=Math.min(Y,ce),_e=void 0,Fe=S/p*(g+1);if(P.isDash){var Pe=g-Math.abs(Fe);_e=Math.sqrt(ge*ge+Pe*Pe)}else _e=g-Math.sqrt(ge*ge+Fe*Fe);this.data[w+Z]=Math.max(0,Math.min(255,_e+128))}},ft.prototype.addRegularDash=function(h){for(var d=h.length-1;d>=0;--d){var p=h[d],g=h[d+1];p.zeroLength?h.splice(d,1):g&&g.isDash===p.isDash&&(g.left=p.left,h.splice(d,1))}var S=h[0],w=h[h.length-1];S.isDash===w.isDash&&(S.left=w.left-this.width,w.right=S.right+this.width);for(var C=this.width*this.nextRow,P=0,Z=h[P],Y=0;Y1&&(Z=h[++P]);var ce=Math.abs(Y-Z.left),ge=Math.abs(Y-Z.right),_e=Math.min(ce,ge);this.data[C+Y]=Math.max(0,Math.min(255,(Z.isDash?_e:-_e)+128))}},ft.prototype.addDash=function(h,d){var p=d?7:0,g=2*p+1;if(this.nextRow+g>this.height)return _.warnOnce("LineAtlas out of space"),null;for(var S=0,w=0;w=p&&h.x=g&&h.y0&&(Y[new _.OverscaledTileID(p.overscaledZ,C,g.z,w,g.y-1).key]={backfilled:!1},Y[new _.OverscaledTileID(p.overscaledZ,p.wrap,g.z,g.x,g.y-1).key]={backfilled:!1},Y[new _.OverscaledTileID(p.overscaledZ,Z,g.z,P,g.y-1).key]={backfilled:!1}),g.y+10&&(S.resourceTiming=p._resourceTiming,p._resourceTiming=[]),p.fire(new _.Event("data",S))}})},d.prototype.onAdd=function(p){this.map=p,this.load()},d.prototype.setData=function(p){var g=this;return this._data=p,this.fire(new _.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(S){if(S)g.fire(new _.ErrorEvent(S));else{var w={dataType:"source",sourceDataType:"content"};g._collectResourceTiming&&g._resourceTiming&&g._resourceTiming.length>0&&(w.resourceTiming=g._resourceTiming,g._resourceTiming=[]),g.fire(new _.Event("data",w))}}),this},d.prototype.getClusterExpansionZoom=function(p,g){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:p,source:this.id},g),this},d.prototype.getClusterChildren=function(p,g){return this.actor.send("geojson.getClusterChildren",{clusterId:p,source:this.id},g),this},d.prototype.getClusterLeaves=function(p,g,S,w){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:p,limit:g,offset:S},w),this},d.prototype._updateWorkerData=function(p){var g=this;this._loaded=!1;var S=_.extend({},this.workerOptions),w=this._data;typeof w=="string"?(S.request=this.map._requestManager.transformRequest(_.browser.resolveURL(w),_.ResourceType.Source),S.request.collectResourceTiming=this._collectResourceTiming):S.data=JSON.stringify(w),this.actor.send(this.type+".loadData",S,function(C,P){g._removed||P&&P.abandoned||(g._loaded=!0,P&&P.resourceTiming&&P.resourceTiming[g.id]&&(g._resourceTiming=P.resourceTiming[g.id].slice(0)),g.actor.send(g.type+".coalesce",{source:S.source},null),p(C))})},d.prototype.loaded=function(){return this._loaded},d.prototype.loadTile=function(p,g){var S=this,w=p.actor?"reloadTile":"loadTile";p.actor=this.actor,p.request=this.actor.send(w,{type:this.type,uid:p.uid,tileID:p.tileID,zoom:p.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:_.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(C,P){return delete p.request,p.unloadVectorData(),p.aborted?g(null):C?g(C):(p.loadVectorData(P,S.map.painter,w==="reloadTile"),g(null))})},d.prototype.abortTile=function(p){p.request&&(p.request.cancel(),delete p.request),p.aborted=!0},d.prototype.unloadTile=function(p){p.unloadVectorData(),this.actor.send("removeTile",{uid:p.uid,type:this.type,source:this.id})},d.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},d.prototype.serialize=function(){return _.extend({},this._options,{type:this.type,data:this._data})},d.prototype.hasTransition=function(){return!1},d}(_.Evented),dt=_.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),Ue=function(h){function d(p,g,S,w){h.call(this),this.id=p,this.dispatcher=S,this.coordinates=g.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(w),this.options=g}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.load=function(p,g){var S=this;this._loaded=!1,this.fire(new _.Event("dataloading",{dataType:"source"})),this.url=this.options.url,_.getImage(this.map._requestManager.transformRequest(this.url,_.ResourceType.Image),function(w,C){S._loaded=!0,w?S.fire(new _.ErrorEvent(w)):C&&(S.image=C,p&&(S.coordinates=p),g&&g(),S._finishLoading())})},d.prototype.loaded=function(){return this._loaded},d.prototype.updateImage=function(p){var g=this;return this.image&&p.url?(this.options.url=p.url,this.load(p.coordinates,function(){g.texture=null}),this):this},d.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new _.Event("data",{dataType:"source",sourceDataType:"metadata"})))},d.prototype.onAdd=function(p){this.map=p,this.load()},d.prototype.setCoordinates=function(p){var g=this;this.coordinates=p;var S=p.map(_.MercatorCoordinate.fromLngLat);this.tileID=function(C){for(var P=1/0,Z=1/0,Y=-1/0,ce=-1/0,ge=0,_e=C;ge<_e.length;ge+=1){var Fe=_e[ge];P=Math.min(P,Fe.x),Z=Math.min(Z,Fe.y),Y=Math.max(Y,Fe.x),ce=Math.max(ce,Fe.y)}var Pe=Math.max(Y-P,ce-Z),Xe=Math.max(0,Math.floor(-Math.log(Pe)/Math.LN2)),we=Math.pow(2,Xe);return new _.CanonicalTileID(Xe,Math.floor((P+Y)/2*we),Math.floor((Z+ce)/2*we))}(S),this.minzoom=this.maxzoom=this.tileID.z;var w=S.map(function(C){return g.tileID.getTilePoint(C)._round()});return this._boundsArray=new _.StructArrayLayout4i8,this._boundsArray.emplaceBack(w[0].x,w[0].y,0,0),this._boundsArray.emplaceBack(w[1].x,w[1].y,_.EXTENT,0),this._boundsArray.emplaceBack(w[3].x,w[3].y,0,_.EXTENT),this._boundsArray.emplaceBack(w[2].x,w[2].y,_.EXTENT,_.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new _.Event("data",{dataType:"source",sourceDataType:"content"})),this},d.prototype.prepare=function(){if(Object.keys(this.tiles).length!==0&&this.image){var p=this.map.painter.context,g=p.gl;for(var S in this.boundsBuffer||(this.boundsBuffer=p.createVertexBuffer(this._boundsArray,dt.members)),this.boundsSegments||(this.boundsSegments=_.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new _.Texture(p,this.image,g.RGBA),this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE)),this.tiles){var w=this.tiles[S];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},d.prototype.loadTile=function(p,g){this.tileID&&this.tileID.equals(p.tileID.canonical)?(this.tiles[String(p.tileID.wrap)]=p,p.buckets={},g(null)):(p.state="errored",g(null))},d.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},d.prototype.hasTransition=function(){return!1},d}(_.Evented),We=function(h){function d(p,g,S,w){h.call(this,p,g,S,w),this.roundZoom=!0,this.type="video",this.options=g}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.load=function(){var p=this;this._loaded=!1;var g=this.options;this.urls=[];for(var S=0,w=g.urls;Sg.end(0)?this.fire(new _.ErrorEvent(new _.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+g.start(0)+" and "+g.end(0)+"-second mark."))):this.video.currentTime=p}},d.prototype.getVideo=function(){return this.video},d.prototype.onAdd=function(p){this.map||(this.map=p,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},d.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var p=this.map.painter.context,g=p.gl;for(var S in this.boundsBuffer||(this.boundsBuffer=p.createVertexBuffer(this._boundsArray,dt.members)),this.boundsSegments||(this.boundsSegments=_.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE),g.texSubImage2D(g.TEXTURE_2D,0,0,0,g.RGBA,g.UNSIGNED_BYTE,this.video)):(this.texture=new _.Texture(p,this.video,g.RGBA),this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE)),this.tiles){var w=this.tiles[S];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},d.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},d.prototype.hasTransition=function(){return this.video&&!this.video.paused},d}(Ue),it=function(h){function d(p,g,S,w){h.call(this,p,g,S,w),g.coordinates?Array.isArray(g.coordinates)&&g.coordinates.length===4&&!g.coordinates.some(function(C){return!Array.isArray(C)||C.length!==2||C.some(function(P){return typeof P!="number"})})||this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'missing required property "coordinates"'))),g.animate&&typeof g.animate!="boolean"&&this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'optional "animate" property must be a boolean value'))),g.canvas?typeof g.canvas=="string"||g.canvas instanceof _.window.HTMLCanvasElement||this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'missing required property "canvas"'))),this.options=g,this.animate=g.animate===void 0||g.animate}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof _.window.HTMLCanvasElement?this.options.canvas:_.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new _.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},d.prototype.getCanvas=function(){return this.canvas},d.prototype.onAdd=function(p){this.map=p,this.load(),this.canvas&&this.animate&&this.play()},d.prototype.onRemove=function(){this.pause()},d.prototype.prepare=function(){var p=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,p=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,p=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var g=this.map.painter.context,S=g.gl;for(var w in this.boundsBuffer||(this.boundsBuffer=g.createVertexBuffer(this._boundsArray,dt.members)),this.boundsSegments||(this.boundsSegments=_.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(p||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new _.Texture(g,this.canvas,S.RGBA,{premultiply:!0}),this.tiles){var C=this.tiles[w];C.state!=="loaded"&&(C.state="loaded",C.texture=this.texture)}}},d.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},d.prototype.hasTransition=function(){return this._playing},d.prototype._hasInvalidDimensions=function(){for(var p=0,g=[this.canvas.width,this.canvas.height];pthis.max){var C=this._getAndRemoveByKey(this.order[0]);C&&this.onRemove(C)}return this},mn.prototype.has=function(h){return h.wrapped().key in this.data},mn.prototype.getAndRemove=function(h){return this.has(h)?this._getAndRemoveByKey(h.wrapped().key):null},mn.prototype._getAndRemoveByKey=function(h){var d=this.data[h].shift();return d.timeout&&clearTimeout(d.timeout),this.data[h].length===0&&delete this.data[h],this.order.splice(this.order.indexOf(h),1),d.value},mn.prototype.getByKey=function(h){var d=this.data[h];return d?d[0].value:null},mn.prototype.get=function(h){return this.has(h)?this.data[h.wrapped().key][0].value:null},mn.prototype.remove=function(h,d){if(!this.has(h))return this;var p=h.wrapped().key,g=d===void 0?0:this.data[p].indexOf(d),S=this.data[p][g];return this.data[p].splice(g,1),S.timeout&&clearTimeout(S.timeout),this.data[p].length===0&&delete this.data[p],this.onRemove(S.value),this.order.splice(this.order.indexOf(p),1),this},mn.prototype.setMaxSize=function(h){for(this.max=h;this.order.length>this.max;){var d=this._getAndRemoveByKey(this.order[0]);d&&this.onRemove(d)}return this},mn.prototype.filter=function(h){var d=[];for(var p in this.data)for(var g=0,S=this.data[p];g1||(Math.abs(ce)>1&&(Math.abs(ce+_e)===1?ce+=_e:Math.abs(ce-_e)===1&&(ce-=_e)),Y.dem&&Z.dem&&(Z.dem.backfillBorder(Y.dem,ce,ge),Z.neighboringTiles&&Z.neighboringTiles[Fe]&&(Z.neighboringTiles[Fe].backfilled=!0)))}},d.prototype.getTile=function(p){return this.getTileByID(p.key)},d.prototype.getTileByID=function(p){return this._tiles[p]},d.prototype._retainLoadedChildren=function(p,g,S,w){for(var C in this._tiles){var P=this._tiles[C];if(!(w[C]||!P.hasData()||P.tileID.overscaledZ<=g||P.tileID.overscaledZ>S)){for(var Z=P.tileID;P&&P.tileID.overscaledZ>g+1;){var Y=P.tileID.scaledTo(P.tileID.overscaledZ-1);(P=this._tiles[Y.key])&&P.hasData()&&(Z=Y)}for(var ce=Z;ce.overscaledZ>g;)if(p[(ce=ce.scaledTo(ce.overscaledZ-1)).key]){w[Z.key]=Z;break}}}},d.prototype.findLoadedParent=function(p,g){if(p.key in this._loadedParentTiles){var S=this._loadedParentTiles[p.key];return S&&S.tileID.overscaledZ>=g?S:null}for(var w=p.overscaledZ-1;w>=g;w--){var C=p.scaledTo(w),P=this._getLoadedTile(C);if(P)return P}},d.prototype._getLoadedTile=function(p){var g=this._tiles[p.key];return g&&g.hasData()?g:this._cache.getByKey(p.wrapped().key)},d.prototype.updateCacheSize=function(p){var g=Math.ceil(p.width/this._source.tileSize)+1,S=Math.ceil(p.height/this._source.tileSize)+1,w=Math.floor(g*S*5),C=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,w):w;this._cache.setMaxSize(C)},d.prototype.handleWrapJump=function(p){var g=Math.round((p-(this._prevLng===void 0?p:this._prevLng))/360);if(this._prevLng=p,g){var S={};for(var w in this._tiles){var C=this._tiles[w];C.tileID=C.tileID.unwrapTo(C.tileID.wrap+g),S[C.tileID.key]=C}for(var P in this._tiles=S,this._timers)clearTimeout(this._timers[P]),delete this._timers[P];for(var Z in this._tiles)this._setTileReloadTimer(Z,this._tiles[Z])}},d.prototype.update=function(p){var g=this;if(this.transform=p,this._sourceLoaded&&!this._paused){var S;this.updateCacheSize(p),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?S=p.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(mr){return new _.OverscaledTileID(mr.canonical.z,mr.wrap,mr.canonical.z,mr.canonical.x,mr.canonical.y)}):(S=p.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(S=S.filter(function(mr){return g._source.hasTile(mr)}))):S=[];var w=p.coveringZoomLevel(this._source),C=Math.max(w-d.maxOverzooming,this._source.minzoom),P=Math.max(w+d.maxUnderzooming,this._source.minzoom),Z=this._updateRetainedTiles(S,w);if(et(this._source.type)){for(var Y={},ce={},ge=0,_e=Object.keys(Z);ge<_e.length;ge+=1){var Fe=_e[ge],Pe=Z[Fe],Xe=this._tiles[Fe];if(Xe&&!(Xe.fadeEndTime&&Xe.fadeEndTime<=_.browser.now())){var we=this.findLoadedParent(Pe,C);we&&(this._addTile(we.tileID),Y[we.tileID.key]=we.tileID),ce[Fe]=Pe}}for(var Ge in this._retainLoadedChildren(ce,w,P,Z),Y)Z[Ge]||(this._coveredTiles[Ge]=!0,Z[Ge]=Y[Ge])}for(var ct in Z)this._tiles[ct].clearFadeHold();for(var At=0,$t=_.keysDifference(this._tiles,Z);At<$t.length;At+=1){var Nt=$t[At],tr=this._tiles[Nt];tr.hasSymbolBuckets&&!tr.holdingForFade()?tr.setHoldDuration(this.map._fadeDuration):tr.hasSymbolBuckets&&!tr.symbolFadeFinished()||this._removeTile(Nt)}this._updateLoadedParentTileCache()}},d.prototype.releaseSymbolFadeTiles=function(){for(var p in this._tiles)this._tiles[p].holdingForFade()&&this._removeTile(p)},d.prototype._updateRetainedTiles=function(p,g){for(var S={},w={},C=Math.max(g-d.maxOverzooming,this._source.minzoom),P=Math.max(g+d.maxUnderzooming,this._source.minzoom),Z={},Y=0,ce=p;Ythis._source.maxzoom){var Ge=Xe.children(this._source.maxzoom)[0],ct=this.getTile(Ge);if(ct&&ct.hasData()){S[Ge.key]=Ge;continue}}else{var At=Xe.children(this._source.maxzoom);if(S[At[0].key]&&S[At[1].key]&&S[At[2].key]&&S[At[3].key])continue}for(var $t=we.wasRequested(),Nt=Xe.overscaledZ-1;Nt>=C;--Nt){var tr=Xe.scaledTo(Nt);if(w[tr.key]||(w[tr.key]=!0,!(we=this.getTile(tr))&&$t&&(we=this._addTile(tr)),we&&(S[tr.key]=tr,$t=we.wasRequested(),we.hasData())))break}}}return S},d.prototype._updateLoadedParentTileCache=function(){for(var p in this._loadedParentTiles={},this._tiles){for(var g=[],S=void 0,w=this._tiles[p].tileID;w.overscaledZ>0;){if(w.key in this._loadedParentTiles){S=this._loadedParentTiles[w.key];break}g.push(w.key);var C=w.scaledTo(w.overscaledZ-1);if(S=this._getLoadedTile(C))break;w=C}for(var P=0,Z=g;P0||(g.hasData()&&g.state!=="reloading"?this._cache.add(g.tileID,g,g.getExpiryTimeout()):(g.aborted=!0,this._abortTile(g),this._unloadTile(g))))},d.prototype.clearTiles=function(){for(var p in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(p);this._cache.reset()},d.prototype.tilesIn=function(p,g,S){var w=this,C=[],P=this.transform;if(!P)return C;for(var Z=S?P.getCameraQueryGeometry(p):p,Y=p.map(function(Nt){return P.pointCoordinate(Nt)}),ce=Z.map(function(Nt){return P.pointCoordinate(Nt)}),ge=this.getIds(),_e=1/0,Fe=1/0,Pe=-1/0,Xe=-1/0,we=0,Ge=ce;we=0&&an[1].y+Fr>=0){var In=Y.map(function(Un){return mr.getTilePoint(Un)}),Nn=ce.map(function(Un){return mr.getTilePoint(Un)});C.push({tile:tr,tileID:mr,queryGeometry:In,cameraQueryGeometry:Nn,scale:Nr})}}},$t=0;$t=_.browser.now())return!0}return!1},d.prototype.setFeatureState=function(p,g,S){this._state.updateState(p=p||"_geojsonTileLayer",g,S)},d.prototype.removeFeatureState=function(p,g,S){this._state.removeFeatureState(p=p||"_geojsonTileLayer",g,S)},d.prototype.getFeatureState=function(p,g){return this._state.getState(p=p||"_geojsonTileLayer",g)},d.prototype.setDependencies=function(p,g,S){var w=this._tiles[p];w&&w.setDependencies(g,S)},d.prototype.reloadTilesForDependencies=function(p,g){for(var S in this._tiles)this._tiles[S].hasDependency(p,g)&&this._reloadTile(S,"reloading");this._cache.filter(function(w){return!w.hasDependency(p,g)})},d}(_.Evented);function De(h,d){var p=Math.abs(2*h.wrap)-+(h.wrap<0),g=Math.abs(2*d.wrap)-+(d.wrap<0);return h.overscaledZ-d.overscaledZ||g-p||d.canonical.y-h.canonical.y||d.canonical.x-h.canonical.x}function et(h){return h==="raster"||h==="image"||h==="video"}function be(){return new _.window.Worker(Hf.workerUrl)}q.maxOverzooming=10,q.maxUnderzooming=3;var er="mapboxgl_preloaded_worker_pool",Tr=function(){this.active={}};Tr.prototype.acquire=function(h){if(!this.workers)for(this.workers=[];this.workers.length0?(g-w)/C:0;return this.points[S].mult(1-P).add(this.points[d].mult(P))};var Ki=function(h,d,p){var g=this.boxCells=[],S=this.circleCells=[];this.xCellCount=Math.ceil(h/p),this.yCellCount=Math.ceil(d/p);for(var w=0;w=-d[0]&&p<=d[0]&&g>=-d[1]&&g<=d[1]}function cu(h,d,p,g,S,w,C,P){var Z=g?h.textSizeData:h.iconSizeData,Y=_.evaluateSizeForZoom(Z,p.transform.zoom),ce=[256/p.width*2+1,256/p.height*2+1],ge=g?h.text.dynamicLayoutVertexArray:h.icon.dynamicLayoutVertexArray;ge.clear();for(var _e=h.lineVertexArray,Fe=g?h.text.placedSymbolArray:h.icon.placedSymbolArray,Pe=p.transform.width/p.transform.height,Xe=!1,we=0;weMath.abs(p.x-d.x)*g?{useVertical:!0}:(h===_.WritingMode.vertical?d.yp.x)?{needsFlipping:!0}:null}function $l(h,d,p,g,S,w,C,P,Z,Y,ce,ge,_e,Fe){var Pe,Xe=d/24,we=h.lineOffsetX*Xe,Ge=h.lineOffsetY*Xe;if(h.numGlyphs>1){var ct=h.glyphStartIndex+h.numGlyphs,At=h.lineStartIndex,$t=h.lineStartIndex+h.lineLength,Nt=ma(Xe,P,we,Ge,p,ce,ge,h,Z,w,_e);if(!Nt)return{notEnoughRoom:!0};var tr=mi(Nt.first.point,C).point,mr=mi(Nt.last.point,C).point;if(g&&!p){var Nr=Aa(h.writingMode,tr,mr,Fe);if(Nr)return Nr}Pe=[Nt.first];for(var Fr=h.glyphStartIndex+1;Fr0?Un.point:os(ge,Nn,an,1,S),hn=Aa(h.writingMode,an,ji,Fe);if(hn)return hn}var Kn=Ta(Xe*P.getoffsetX(h.glyphStartIndex),we,Ge,p,ce,ge,h.segment,h.lineStartIndex,h.lineStartIndex+h.lineLength,Z,w,_e);if(!Kn)return{notEnoughRoom:!0};Pe=[Kn]}for(var _i=0,ti=Pe;_i0?1:-1,Pe=0;g&&(Fe*=-1,Pe=Math.PI),Fe<0&&(Pe+=Math.PI);for(var Xe=Fe>0?P+C:P+C+1,we=S,Ge=S,ct=0,At=0,$t=Math.abs(_e),Nt=[];ct+At<=$t;){if((Xe+=Fe)=Z)return null;if(Ge=we,Nt.push(we),(we=ge[Xe])===void 0){var tr=new _.Point(Y.getx(Xe),Y.gety(Xe)),mr=mi(tr,ce);if(mr.signedDistanceFromCamera>0)we=ge[Xe]=mr.point;else{var Nr=Xe-Fe;we=os(ct===0?w:new _.Point(Y.getx(Nr),Y.gety(Nr)),tr,Ge,$t-ct+1,ce)}}ct+=At,At=Ge.dist(we)}var Fr=($t-ct)/At,an=we.sub(Ge),In=an.mult(Fr)._add(Ge);In._add(an._unit()._perp()._mult(p*Fe));var Nn=Pe+Math.atan2(we.y-Ge.y,we.x-Ge.x);return Nt.push(In),{point:In,angle:Nn,path:Nt}}Ki.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Ki.prototype.insert=function(h,d,p,g,S){this._forEachCell(d,p,g,S,this._insertBoxCell,this.boxUid++),this.boxKeys.push(h),this.bboxes.push(d),this.bboxes.push(p),this.bboxes.push(g),this.bboxes.push(S)},Ki.prototype.insertCircle=function(h,d,p,g){this._forEachCell(d-g,p-g,d+g,p+g,this._insertCircleCell,this.circleUid++),this.circleKeys.push(h),this.circles.push(d),this.circles.push(p),this.circles.push(g)},Ki.prototype._insertBoxCell=function(h,d,p,g,S,w){this.boxCells[S].push(w)},Ki.prototype._insertCircleCell=function(h,d,p,g,S,w){this.circleCells[S].push(w)},Ki.prototype._query=function(h,d,p,g,S,w){if(p<0||h>this.width||g<0||d>this.height)return!S&&[];var C=[];if(h<=0&&d<=0&&this.width<=p&&this.height<=g){if(S)return!0;for(var P=0;P0:C},Ki.prototype._queryCircle=function(h,d,p,g,S){var w=h-p,C=h+p,P=d-p,Z=d+p;if(C<0||w>this.width||Z<0||P>this.height)return!g&&[];var Y=[];return this._forEachCell(w,P,C,Z,this._queryCellCircle,Y,{hitTest:g,circle:{x:h,y:d,radius:p},seenUids:{box:{},circle:{}}},S),g?Y.length>0:Y},Ki.prototype.query=function(h,d,p,g,S){return this._query(h,d,p,g,!1,S)},Ki.prototype.hitTest=function(h,d,p,g,S){return this._query(h,d,p,g,!0,S)},Ki.prototype.hitTestCircle=function(h,d,p,g){return this._queryCircle(h,d,p,!0,g)},Ki.prototype._queryCell=function(h,d,p,g,S,w,C,P){var Z=C.seenUids,Y=this.boxCells[S];if(Y!==null)for(var ce=this.bboxes,ge=0,_e=Y;ge<_e.length;ge+=1){var Fe=_e[ge];if(!Z.box[Fe]){Z.box[Fe]=!0;var Pe=4*Fe;if(h<=ce[Pe+2]&&d<=ce[Pe+3]&&p>=ce[Pe+0]&&g>=ce[Pe+1]&&(!P||P(this.boxKeys[Fe]))){if(C.hitTest)return w.push(!0),!0;w.push({key:this.boxKeys[Fe],x1:ce[Pe],y1:ce[Pe+1],x2:ce[Pe+2],y2:ce[Pe+3]})}}}var Xe=this.circleCells[S];if(Xe!==null)for(var we=this.circles,Ge=0,ct=Xe;GeC*C+P*P},Ki.prototype._circleAndRectCollide=function(h,d,p,g,S,w,C){var P=(w-g)/2,Z=Math.abs(h-(g+P));if(Z>P+p)return!1;var Y=(C-S)/2,ce=Math.abs(d-(S+Y));if(ce>Y+p)return!1;if(Z<=P||ce<=Y)return!0;var ge=Z-P,_e=ce-Y;return ge*ge+_e*_e<=p*p};var fi=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Oa(h,d){for(var p=0;p=1;ji--)Un.push(In.path[ji]);for(var hn=1;hn0){for(var Xn=Un[0].clone(),pi=Un[0].clone(),qn=1;qn=Nr.x&&pi.x<=Fr.x&&Xn.y>=Nr.y&&pi.y<=Fr.y?[Un]:pi.xFr.x||pi.yFr.y?[]:_.clipLine([Un],Nr.x,Nr.y,Fr.x,Fr.y)}for(var $n=0,wo=ti;$n=this.screenRightBoundary||g<100||d>this.screenBottomBoundary},So.prototype.isInsideGrid=function(h,d,p,g){return p>=0&&h=0&&d0?(this.prevPlacement&&this.prevPlacement.variableOffsets[ge.crossTileID]&&this.prevPlacement.placements[ge.crossTileID]&&this.prevPlacement.placements[ge.crossTileID].text&&(Xe=this.prevPlacement.variableOffsets[ge.crossTileID].anchor),this.variableOffsets[ge.crossTileID]={textOffset:we,width:p,height:g,anchor:h,textBoxScale:S,prevAnchor:Xe},this.markUsedJustification(_e,h,ge,Fe),_e.allowVerticalPlacement&&(this.markUsedOrientation(_e,Fe,ge),this.placedOrientations[ge.crossTileID]=Fe),{shift:Ge,placedGlyphBoxes:ct}):void 0},yn.prototype.placeLayerBucketPart=function(h,d,p){var g=this,S=h.parameters,w=S.bucket,C=S.layout,P=S.posMatrix,Z=S.textLabelPlaneMatrix,Y=S.labelToScreenMatrix,ce=S.textPixelRatio,ge=S.holdingForFade,_e=S.collisionBoxArray,Fe=S.partiallyEvaluatedTextSize,Pe=S.collisionGroup,Xe=C.get("text-optional"),we=C.get("icon-optional"),Ge=C.get("text-allow-overlap"),ct=C.get("icon-allow-overlap"),At=C.get("text-rotation-alignment")==="map",$t=C.get("text-pitch-alignment")==="map",Nt=C.get("icon-text-fit")!=="none",tr=C.get("symbol-z-order")==="viewport-y",mr=Ge&&(ct||!w.hasIconData()||we),Nr=ct&&(Ge||!w.hasTextData()||Xe);!w.collisionArrays&&_e&&w.deserializeCollisionBoxes(_e);var Fr=function(hn,Kn){if(!d[hn.crossTileID])if(ge)g.placements[hn.crossTileID]=new Ru(!1,!1,!1);else{var _i,ti=!1,Xn=!1,pi=!0,qn=null,$n={box:null,offscreen:null},wo={box:null,offscreen:null},Na=null,Co=null,Lo=0,Wa=0,Ga=0;Kn.textFeatureIndex?Lo=Kn.textFeatureIndex:hn.useRuntimeCollisionCircles&&(Lo=hn.featureIndex),Kn.verticalTextFeatureIndex&&(Wa=Kn.verticalTextFeatureIndex);var Ss=Kn.textBox;if(Ss){var ls=function(Ni){var po=_.WritingMode.horizontal;if(w.allowVerticalPlacement&&!Ni&&g.prevPlacement){var io=g.prevPlacement.placedOrientations[hn.crossTileID];io&&(g.placedOrientations[hn.crossTileID]=io,g.markUsedOrientation(w,po=io,hn))}return po},Zu=function(Ni,po){if(w.allowVerticalPlacement&&hn.numVerticalGlyphVertices>0&&Kn.verticalTextBox)for(var io=0,ou=w.writingModes;io0&&(cs=cs.filter(function(Ni){return Ni!==nu.anchor})).unshift(nu.anchor)}var Ns=function(Ni,po,io){for(var ou=Ni.x2-Ni.x1,Bc=Ni.y2-Ni.y1,Bl=hn.textBoxScale,fs=Nt&&!ct?po:null,Or={box:[],offscreen:!1},Wu=Ge?2*cs.length:cs.length,Gu=0;Gu=cs.length,hn,w,io,fs);if(ao&&(Or=ao.placedGlyphBoxes)&&Or.box&&Or.box.length){ti=!0,qn=ao.shift;break}}return Or};Zu(function(){return Ns(Ss,Kn.iconBox,_.WritingMode.horizontal)},function(){var Ni=Kn.verticalTextBox;return w.allowVerticalPlacement&&!($n&&$n.box&&$n.box.length)&&hn.numVerticalGlyphVertices>0&&Ni?Ns(Ni,Kn.verticalIconBox,_.WritingMode.vertical):{box:null,offscreen:null}}),$n&&(ti=$n.box,pi=$n.offscreen);var sl=ls($n&&$n.box);if(!ti&&g.prevPlacement){var kl=g.prevPlacement.variableOffsets[hn.crossTileID];kl&&(g.variableOffsets[hn.crossTileID]=kl,g.markUsedJustification(w,kl.anchor,hn,sl))}}else{var ul=function(Ni,po){var io=g.collisionIndex.placeCollisionBox(Ni,Ge,ce,P,Pe.predicate);return io&&io.box&&io.box.length&&(g.markUsedOrientation(w,po,hn),g.placedOrientations[hn.crossTileID]=po),io};Zu(function(){return ul(Ss,_.WritingMode.horizontal)},function(){var Ni=Kn.verticalTextBox;return w.allowVerticalPlacement&&hn.numVerticalGlyphVertices>0&&Ni?ul(Ni,_.WritingMode.vertical):{box:null,offscreen:null}}),ls($n&&$n.box&&$n.box.length)}}if(ti=(_i=$n)&&_i.box&&_i.box.length>0,pi=_i&&_i.offscreen,hn.useRuntimeCollisionCircles){var Fl=w.text.placedSymbolArray.get(hn.centerJustifiedTextSymbolIndex),Vu=_.evaluateSizeForFeature(w.textSizeData,Fe,Fl),iu=C.get("text-padding");Na=g.collisionIndex.placeCollisionCircles(Ge,Fl,w.lineVertexArray,w.glyphOffsetArray,Vu,P,Z,Y,p,$t,Pe.predicate,hn.collisionCircleDiameter,iu),ti=Ge||Na.circles.length>0&&!Na.collisionDetected,pi=pi&&Na.offscreen}if(Kn.iconFeatureIndex&&(Ga=Kn.iconFeatureIndex),Kn.iconBox){var ju=function(Ni){var po=Nt&&qn?Wt(Ni,qn.x,qn.y,At,$t,g.transform.angle):Ni;return g.collisionIndex.placeCollisionBox(po,ct,ce,P,Pe.predicate)};Xn=wo&&wo.box&&wo.box.length&&Kn.verticalIconBox?(Co=ju(Kn.verticalIconBox)).box.length>0:(Co=ju(Kn.iconBox)).box.length>0,pi=pi&&Co.offscreen}var Ko=Xe||hn.numHorizontalGlyphVertices===0&&hn.numVerticalGlyphVertices===0,Ka=we||hn.numIconVertices===0;if(Ko||Ka?Ka?Ko||(Xn=Xn&&ti):ti=Xn&&ti:Xn=ti=Xn&&ti,ti&&_i&&_i.box&&g.collisionIndex.insertCollisionBox(_i.box,C.get("text-ignore-placement"),w.bucketInstanceId,wo&&wo.box&&Wa?Wa:Lo,Pe.ID),Xn&&Co&&g.collisionIndex.insertCollisionBox(Co.box,C.get("icon-ignore-placement"),w.bucketInstanceId,Ga,Pe.ID),Na&&(ti&&g.collisionIndex.insertCollisionCircles(Na.circles,C.get("text-ignore-placement"),w.bucketInstanceId,Lo,Pe.ID),p)){var As=w.bucketInstanceId,au=g.collisionCircleArrays[As];au===void 0&&(au=g.collisionCircleArrays[As]=new ss);for(var Hu=0;Hu=0;--In){var Nn=an[In];Fr(w.symbolInstances.get(Nn),w.collisionArrays[Nn])}else for(var Un=h.symbolInstanceStart;Un=0&&(h.text.placedSymbolArray.get(P).crossTileID=S>=0&&P!==S?0:p.crossTileID)}},yn.prototype.markUsedOrientation=function(h,d,p){for(var g=d===_.WritingMode.horizontal||d===_.WritingMode.horizontalOnly?d:0,S=d===_.WritingMode.vertical?d:0,w=0,C=[p.leftJustifiedTextSymbolIndex,p.centerJustifiedTextSymbolIndex,p.rightJustifiedTextSymbolIndex];w0,Nr=g.placedOrientations[ct.crossTileID],Fr=Nr===_.WritingMode.vertical,an=Nr===_.WritingMode.horizontal||Nr===_.WritingMode.horizontalOnly;if(At>0||$t>0){var In=Ao(tr.text);Fe(h.text,At,Fr?uo:In),Fe(h.text,$t,an?uo:In);var Nn=tr.text.isHidden();[ct.rightJustifiedTextSymbolIndex,ct.centerJustifiedTextSymbolIndex,ct.leftJustifiedTextSymbolIndex].forEach(function($n){$n>=0&&(h.text.placedSymbolArray.get($n).hidden=Nn||Fr?1:0)}),ct.verticalPlacedTextSymbolIndex>=0&&(h.text.placedSymbolArray.get(ct.verticalPlacedTextSymbolIndex).hidden=Nn||an?1:0);var Un=g.variableOffsets[ct.crossTileID];Un&&g.markUsedJustification(h,Un.anchor,ct,Nr);var ji=g.placedOrientations[ct.crossTileID];ji&&(g.markUsedJustification(h,"left",ct,ji),g.markUsedOrientation(h,ji,ct))}if(mr){var hn=Ao(tr.icon),Kn=!(ge&&ct.verticalPlacedIconSymbolIndex&&Fr);ct.placedIconSymbolIndex>=0&&(Fe(h.icon,ct.numIconVertices,Kn?hn:uo),h.icon.placedSymbolArray.get(ct.placedIconSymbolIndex).hidden=tr.icon.isHidden()),ct.verticalPlacedIconSymbolIndex>=0&&(Fe(h.icon,ct.numVerticalIconVertices,Kn?uo:hn),h.icon.placedSymbolArray.get(ct.verticalPlacedIconSymbolIndex).hidden=tr.icon.isHidden())}if(h.hasIconCollisionBoxData()||h.hasTextCollisionBoxData()){var _i=h.collisionArrays[Ge];if(_i){var ti=new _.Point(0,0);if(_i.textBox||_i.verticalTextBox){var Xn=!0;if(Z){var pi=g.variableOffsets[Nt];pi?(ti=Qi(pi.anchor,pi.width,pi.height,pi.textOffset,pi.textBoxScale),Y&&ti._rotate(ce?g.transform.angle:-g.transform.angle)):Xn=!1}_i.textBox&&fe(h.textCollisionBox.collisionVertexArray,tr.text.placed,!Xn||Fr,ti.x,ti.y),_i.verticalTextBox&&fe(h.textCollisionBox.collisionVertexArray,tr.text.placed,!Xn||an,ti.x,ti.y)}var qn=!!(!an&&_i.verticalIconBox);_i.iconBox&&fe(h.iconCollisionBox.collisionVertexArray,tr.icon.placed,qn,ge?ti.x:0,ge?ti.y:0),_i.verticalIconBox&&fe(h.iconCollisionBox.collisionVertexArray,tr.icon.placed,!qn,ge?ti.x:0,ge?ti.y:0)}}},Xe=0;Xeh},yn.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),ot=Math.pow(2,24),nr=Math.pow(2,17),jr=Math.pow(2,16),Mn=Math.pow(2,9),Vi=Math.pow(2,8),ho=Math.pow(2,1);function Ao(h){if(h.opacity===0&&!h.placed)return 0;if(h.opacity===1&&h.placed)return 4294967295;var d=h.placed?1:0,p=Math.floor(127*h.opacity);return p*Te+d*ot+p*nr+d*jr+p*Mn+d*Vi+p*ho+d}var uo=0,Is=function(h){this._sortAcrossTiles=h.layout.get("symbol-z-order")!=="viewport-y"&&h.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Is.prototype.continuePlacement=function(h,d,p,g,S){for(var w=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var C=d[h[this._currentPlacementIndex]],P=this.placement.collisionIndex.transform.zoom;if(C.type==="symbol"&&(!C.minzoom||C.minzoom<=P)&&(!C.maxzoom||C.maxzoom>P)){if(this._inProgressLayer||(this._inProgressLayer=new Is(C)),this._inProgressLayer.continuePlacement(p[C.source],this.placement,this._showCollisionBoxes,C,w))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ys.prototype.commit=function(h){return this.placement.commit(h),this.placement};var Kh=512/_.EXTENT/2,Cf=function(h,d,p){this.tileID=h,this.indexedSymbolInstances={},this.bucketInstanceId=p;for(var g=0;gh.overscaledZ)for(var P in C){var Z=C[P];Z.tileID.isChildOf(h)&&Z.findMatches(d.symbolInstances,h,S)}else{var Y=C[h.scaledTo(Number(w)).key];Y&&Y.findMatches(d.symbolInstances,h,S)}}for(var ce=0;ce1?"@2x":"",ge=_.getJSON(w.transformRequest(w.normalizeSpriteURL(S,ce,".json"),_.ResourceType.SpriteJSON),function(Pe,Xe){ge=null,Y||(Y=Pe,P=Xe,Fe())}),_e=_.getImage(w.transformRequest(w.normalizeSpriteURL(S,ce,".png"),_.ResourceType.SpriteImage),function(Pe,Xe){_e=null,Y||(Y=Pe,Z=Xe,Fe())});function Fe(){if(Y)C(Y);else if(P&&Z){var Pe=_.browser.getImageData(Z),Xe={};for(var we in P){var Ge=P[we],ct=Ge.width,At=Ge.height,$t=Ge.x,Nt=Ge.y,tr=Ge.sdf,mr=Ge.pixelRatio,Nr=Ge.stretchX,Fr=Ge.stretchY,an=Ge.content,In=new _.RGBAImage({width:ct,height:At});_.RGBAImage.copy(Pe,In,{x:$t,y:Nt},{x:0,y:0},{width:ct,height:At}),Xe[we]={data:In,pixelRatio:mr,sdf:tr,stretchX:Nr,stretchY:Fr,content:an}}C(null,Xe)}}return{cancel:function(){ge&&(ge.cancel(),ge=null),_e&&(_e.cancel(),_e=null)}}}(p,this.map._requestManager,function(S,w){if(g._spriteRequest=null,S)g.fire(new _.ErrorEvent(S));else if(w)for(var C in w)g.imageManager.addImage(C,w[C]);g.imageManager.setLoaded(!0),g._availableImages=g.imageManager.listImages(),g.dispatcher.broadcast("setImages",g._availableImages),g.fire(new _.Event("data",{dataType:"style"}))})},d.prototype._validateLayer=function(p){var g=this.sourceCaches[p.source];if(g){var S=p.sourceLayer;if(S){var w=g.getSource();(w.type==="geojson"||w.vectorLayerIds&&w.vectorLayerIds.indexOf(S)===-1)&&this.fire(new _.ErrorEvent(new Error('Source layer "'+S+'" does not exist on source "'+w.id+'" as specified by style layer "'+p.id+'"')))}}},d.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var p in this.sourceCaches)if(!this.sourceCaches[p].loaded())return!1;return!!this.imageManager.isLoaded()},d.prototype._serializeLayers=function(p){for(var g=[],S=0,w=p;S0)throw new Error("Unimplemented: "+w.map(function(C){return C.command}).join(", ")+".");return S.forEach(function(C){C.command!=="setTransition"&&g[C.command].apply(g,C.args)}),this.stylesheet=p,!0},d.prototype.addImage=function(p,g){if(this.getImage(p))return this.fire(new _.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(p,g),this._afterImageUpdated(p)},d.prototype.updateImage=function(p,g){this.imageManager.updateImage(p,g)},d.prototype.getImage=function(p){return this.imageManager.getImage(p)},d.prototype.removeImage=function(p){if(!this.getImage(p))return this.fire(new _.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(p),this._afterImageUpdated(p)},d.prototype._afterImageUpdated=function(p){this._availableImages=this.imageManager.listImages(),this._changedImages[p]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new _.Event("data",{dataType:"style"}))},d.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},d.prototype.addSource=function(p,g,S){var w=this;if(S===void 0&&(S={}),this._checkLoaded(),this.sourceCaches[p]!==void 0)throw new Error("There is already a source with this ID");if(!g.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(g).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(g.type)>=0&&this._validate(_.validateStyle.source,"sources."+p,g,null,S))){this.map&&this.map._collectResourceTiming&&(g.collectResourceTiming=!0);var C=this.sourceCaches[p]=new q(p,g,this.dispatcher);C.style=this,C.setEventedParent(this,function(){return{isSourceLoaded:w.loaded(),source:C.serialize(),sourceId:p}}),C.onAdd(this.map),this._changed=!0}},d.prototype.removeSource=function(p){if(this._checkLoaded(),this.sourceCaches[p]===void 0)throw new Error("There is no source with this ID");for(var g in this._layers)if(this._layers[g].source===p)return this.fire(new _.ErrorEvent(new Error('Source "'+p+'" cannot be removed while layer "'+g+'" is using it.')));var S=this.sourceCaches[p];delete this.sourceCaches[p],delete this._updatedSources[p],S.fire(new _.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:p})),S.setEventedParent(null),S.clearTiles(),S.onRemove&&S.onRemove(this.map),this._changed=!0},d.prototype.setGeoJSONSourceData=function(p,g){this._checkLoaded(),this.sourceCaches[p].getSource().setData(g),this._changed=!0},d.prototype.getSource=function(p){return this.sourceCaches[p]&&this.sourceCaches[p].getSource()},d.prototype.addLayer=function(p,g,S){S===void 0&&(S={}),this._checkLoaded();var w=p.id;if(this.getLayer(w))this.fire(new _.ErrorEvent(new Error('Layer with id "'+w+'" already exists on this map')));else{var C;if(p.type==="custom"){if(Mu(this,_.validateCustomStyleLayer(p)))return;C=_.createStyleLayer(p)}else{if(typeof p.source=="object"&&(this.addSource(w,p.source),p=_.clone$1(p),p=_.extend(p,{source:w})),this._validate(_.validateStyle.layer,"layers."+w,p,{arrayIndex:-1},S))return;C=_.createStyleLayer(p),this._validateLayer(C),C.setEventedParent(this,{layer:{id:w}}),this._serializedLayers[C.id]=C.serialize()}var P=g?this._order.indexOf(g):this._order.length;if(g&&P===-1)this.fire(new _.ErrorEvent(new Error('Layer with id "'+g+'" does not exist on this map.')));else{if(this._order.splice(P,0,w),this._layerOrderChanged=!0,this._layers[w]=C,this._removedLayers[w]&&C.source&&C.type!=="custom"){var Z=this._removedLayers[w];delete this._removedLayers[w],Z.type!==C.type?this._updatedSources[C.source]="clear":(this._updatedSources[C.source]="reload",this.sourceCaches[C.source].pause())}this._updateLayer(C),C.onAdd&&C.onAdd(this.map)}}},d.prototype.moveLayer=function(p,g){if(this._checkLoaded(),this._changed=!0,this._layers[p]){if(p!==g){var S=this._order.indexOf(p);this._order.splice(S,1);var w=g?this._order.indexOf(g):this._order.length;g&&w===-1?this.fire(new _.ErrorEvent(new Error('Layer with id "'+g+'" does not exist on this map.'))):(this._order.splice(w,0,p),this._layerOrderChanged=!0)}}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be moved.")))},d.prototype.removeLayer=function(p){this._checkLoaded();var g=this._layers[p];if(g){g.setEventedParent(null);var S=this._order.indexOf(p);this._order.splice(S,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[p]=g,delete this._layers[p],delete this._serializedLayers[p],delete this._updatedLayers[p],delete this._updatedPaintProps[p],g.onRemove&&g.onRemove(this.map)}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be removed.")))},d.prototype.getLayer=function(p){return this._layers[p]},d.prototype.hasLayer=function(p){return p in this._layers},d.prototype.setLayerZoomRange=function(p,g,S){this._checkLoaded();var w=this.getLayer(p);w?w.minzoom===g&&w.maxzoom===S||(g!=null&&(w.minzoom=g),S!=null&&(w.maxzoom=S),this._updateLayer(w)):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot have zoom extent.")))},d.prototype.setFilter=function(p,g,S){S===void 0&&(S={}),this._checkLoaded();var w=this.getLayer(p);if(w){if(!_.deepEqual(w.filter,g))return g==null?(w.filter=void 0,void this._updateLayer(w)):void(this._validate(_.validateStyle.filter,"layers."+w.id+".filter",g,null,S)||(w.filter=_.clone$1(g),this._updateLayer(w)))}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be filtered.")))},d.prototype.getFilter=function(p){return _.clone$1(this.getLayer(p).filter)},d.prototype.setLayoutProperty=function(p,g,S,w){w===void 0&&(w={}),this._checkLoaded();var C=this.getLayer(p);C?_.deepEqual(C.getLayoutProperty(g),S)||(C.setLayoutProperty(g,S,w),this._updateLayer(C)):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be styled.")))},d.prototype.getLayoutProperty=function(p,g){var S=this.getLayer(p);if(S)return S.getLayoutProperty(g);this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style.")))},d.prototype.setPaintProperty=function(p,g,S,w){w===void 0&&(w={}),this._checkLoaded();var C=this.getLayer(p);C?_.deepEqual(C.getPaintProperty(g),S)||(C.setPaintProperty(g,S,w)&&this._updateLayer(C),this._changed=!0,this._updatedPaintProps[p]=!0):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be styled.")))},d.prototype.getPaintProperty=function(p,g){return this.getLayer(p).getPaintProperty(g)},d.prototype.setFeatureState=function(p,g){this._checkLoaded();var S=p.source,w=p.sourceLayer,C=this.sourceCaches[S];if(C!==void 0){var P=C.getSource().type;P==="geojson"&&w?this.fire(new _.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):P!=="vector"||w?(p.id===void 0&&this.fire(new _.ErrorEvent(new Error("The feature id parameter must be provided."))),C.setFeatureState(w,p.id,g)):this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+S+"' does not exist in the map's style.")))},d.prototype.removeFeatureState=function(p,g){this._checkLoaded();var S=p.source,w=this.sourceCaches[S];if(w!==void 0){var C=w.getSource().type,P=C==="vector"?p.sourceLayer:void 0;C!=="vector"||P?g&&typeof p.id!="string"&&typeof p.id!="number"?this.fire(new _.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):w.removeFeatureState(P,p.id,g):this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+S+"' does not exist in the map's style.")))},d.prototype.getFeatureState=function(p){this._checkLoaded();var g=p.source,S=p.sourceLayer,w=this.sourceCaches[g];if(w!==void 0){if(w.getSource().type!=="vector"||S)return p.id===void 0&&this.fire(new _.ErrorEvent(new Error("The feature id parameter must be provided."))),w.getFeatureState(S,p.id);this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+g+"' does not exist in the map's style.")))},d.prototype.getTransition=function(){return _.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},d.prototype.serialize=function(){return _.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:_.mapObject(this.sourceCaches,function(p){return p.serialize()}),layers:this._serializeLayers(this._order)},function(p){return p!==void 0})},d.prototype._updateLayer=function(p){this._updatedLayers[p.id]=!0,p.source&&!this._updatedSources[p.source]&&this.sourceCaches[p.source].getSource().type!=="raster"&&(this._updatedSources[p.source]="reload",this.sourceCaches[p.source].pause()),this._changed=!0},d.prototype._flattenAndSortRenderedFeatures=function(p){for(var g=this,S=function(Nr){return g._layers[Nr].type==="fill-extrusion"},w={},C=[],P=this._order.length-1;P>=0;P--){var Z=this._order[P];if(S(Z)){w[Z]=P;for(var Y=0,ce=p;Y=0;Xe--){var we=this._order[Xe];if(S(we))for(var Ge=C.length-1;Ge>=0;Ge--){var ct=C[Ge].feature;if(w[ct.layer.id]e.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);te.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function Wk(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,o;for(o=0;o=0)&&(t[i]=e[i]);return t}var d6={exportImage:VT,fullscreen:XT,geoLocate:qT,layer:e1,layerSwitch:e1,logo:t1,mapTheme:aw,mouseLocation:uw,zoom:dw,scale:fw},v6=null,z2=L(50374);function Z2(e,r){return Yk(e)||$k(e,r)||Xk(e,r)||Gk()}function Gk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xk(e,r){if(e){if(typeof e=="string")return V2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return V2(e,r)}}function V2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}function uB(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,o;for(o=0;o=0)&&(t[i]=e[i]);return t}var lB=q.memo(function(r){var t=r.layer,n=r.source,i=n.data,o=sB(n,oB);return t.inited?t.setData(i,o):t.source(i,o),o.autoFit&&t.fitBounds(o&&o.fitBoundsOptions),null},ys()),_6=q.useEffect,cB=q.memo(function(r){var t=r.layer,n=r.style;return t.style(n),null},ys());function fB(e,r){return vB(e)||dB(e,r)||pB(e,r)||hB()}function hB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pB(e,r){if(e){if(typeof e=="string")return G2(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return G2(e,r)}}function G2(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=Math.abs(ae)?le-et+ae:ae-et+le,le=et}le+U>=0!=!!_&&he.reverse()}},56834:function(rr){"use strict";rr.exports=ee;function ee(L,q){this.x=L,this.y=q}ee.prototype={clone:function(){return new ee(this.x,this.y)},add:function(L){return this.clone()._add(L)},sub:function(L){return this.clone()._sub(L)},multByPoint:function(L){return this.clone()._multByPoint(L)},divByPoint:function(L){return this.clone()._divByPoint(L)},mult:function(L){return this.clone()._mult(L)},div:function(L){return this.clone()._div(L)},rotate:function(L){return this.clone()._rotate(L)},rotateAround:function(L,q){return this.clone()._rotateAround(L,q)},matMult:function(L){return this.clone()._matMult(L)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(L){return this.x===L.x&&this.y===L.y},dist:function(L){return Math.sqrt(this.distSqr(L))},distSqr:function(L){var q=L.x-this.x,he=L.y-this.y;return q*q+he*he},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(L){return Math.atan2(this.y-L.y,this.x-L.x)},angleWith:function(L){return this.angleWithSep(L.x,L.y)},angleWithSep:function(L,q){return Math.atan2(this.x*q-this.y*L,this.x*L+this.y*q)},_matMult:function(L){var q=L[0]*this.x+L[1]*this.y,he=L[2]*this.x+L[3]*this.y;return this.x=q,this.y=he,this},_add:function(L){return this.x+=L.x,this.y+=L.y,this},_sub:function(L){return this.x-=L.x,this.y-=L.y,this},_mult:function(L){return this.x*=L,this.y*=L,this},_div:function(L){return this.x/=L,this.y/=L,this},_multByPoint:function(L){return this.x*=L.x,this.y*=L.y,this},_divByPoint:function(L){return this.x/=L.x,this.y/=L.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var L=this.y;return this.y=this.x,this.x=-L,this},_rotate:function(L){var q=Math.cos(L),he=Math.sin(L),_=q*this.x-he*this.y,le=he*this.x+q*this.y;return this.x=_,this.y=le,this},_rotateAround:function(L,q){var he=Math.cos(L),_=Math.sin(L),le=q.x+he*(this.x-q.x)-_*(this.y-q.y),U=q.y+_*(this.x-q.x)+he*(this.y-q.y);return this.x=le,this.y=U,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},ee.convert=function(L){return L instanceof ee?L:Array.isArray(L)?new ee(L[0],L[1]):L}},45188:function(rr){"use strict";rr.exports=L,rr.exports.default=L;var ee=1e20;function L(U,fe,se,Qe,ae,et){this.fontSize=U||24,this.buffer=fe===void 0?3:fe,this.cutoff=Qe||.25,this.fontFamily=ae||"sans-serif",this.fontWeight=et||"normal",this.radius=se||8;var dt=this.size=this.fontSize+this.buffer*2,Ye=dt+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=dt,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textAlign="left",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(Ye*Ye),this.gridInner=new Float64Array(Ye*Ye),this.f=new Float64Array(Ye),this.z=new Float64Array(Ye+1),this.v=new Uint16Array(Ye),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(dt/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function q(U,fe,se,Qe,ae,et,dt){et.fill(ee,0,fe*se),dt.fill(0,0,fe*se);for(var Ye=(fe-Qe)/2,wt=0;wt-1);wt++,et[wt]=Ye,dt[wt]=Xt,dt[wt+1]=ee}for(Ye=0,wt=0;Ye>3}if(et--,ae===1||ae===2)dt+=se.readSVarint(),Ye+=se.readSVarint(),ae===1&&(Xt&&wt.push(Xt),Xt=[]),Xt.push(new q(dt,Ye));else if(ae===7)Xt&&Xt.push(Xt[0].clone());else throw new Error("unknown command "+ae)}return Xt&&wt.push(Xt),wt},he.prototype.bbox=function(){var se=this._pbf;se.pos=this._geometry;for(var Qe=se.readVarint()+se.pos,ae=1,et=0,dt=0,Ye=0,wt=1/0,Xt=-1/0,Zt=1/0,nr=-1/0;se.pos>3}if(et--,ae===1||ae===2)dt+=se.readSVarint(),Ye+=se.readSVarint(),dtXt&&(Xt=dt),Yenr&&(nr=Ye);else if(ae!==7)throw new Error("unknown command "+ae)}return[wt,Zt,Xt,nr]},he.prototype.toGeoJSON=function(se,Qe,ae){var et=this.extent*Math.pow(2,ae),dt=this.extent*se,Ye=this.extent*Qe,wt=this.loadGeometry(),Xt=he.types[this.type],Zt,nr;function Vt(Tr){for(var hr=0;hr>3;fe=Qe===1?U.readString():Qe===2?U.readFloat():Qe===3?U.readDouble():Qe===4?U.readVarint64():Qe===5?U.readVarint():Qe===6?U.readSVarint():Qe===7?U.readBoolean():null}return fe}he.prototype.feature=function(U){if(U<0||U>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[U];var fe=this._pbf.readVarint()+this._pbf.pos;return new q(this._pbf,fe,this.extent,this._keys,this._values)}},18283:function(rr,ee,L){"use strict";L.d(ee,{Z:function(){return nt}});var q=L(79685),he=L(68591),_=L.n(he),le=L(3139),U=L(99248),fe=L(73064),se=L(57196),Qe=L(55095),ae=function(te,Ce){var we={};for(var Xe in te)Object.prototype.hasOwnProperty.call(te,Xe)&&Ce.indexOf(Xe)<0&&(we[Xe]=te[Xe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Xe=Object.getOwnPropertySymbols(te);Lt{var{prefixCls:Ce,className:we,hoverable:Xe=!0}=te,Lt=ae(te,["prefixCls","className","hoverable"]);const{getPrefixCls:Ht}=q.useContext(U.E_),on=Ht("card",Ce),Jr=_()(`${on}-grid`,we,{[`${on}-grid-hoverable`]:Xe});return q.createElement("div",Object.assign({},Lt,{className:Jr}))},Ye=L(26477),wt=L(4614),Xt=L(44244),Zt=L(25830);const nr=te=>{const{antCls:Ce,componentCls:we,headerHeight:Xe,cardPaddingBase:Lt,tabsMarginBottom:Ht}=te;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:Xe,marginBottom:-1,padding:`0 ${(0,Ye.bf)(Lt)}`,color:te.colorTextHeading,fontWeight:te.fontWeightStrong,fontSize:te.headerFontSize,background:te.headerBg,borderBottom:`${(0,Ye.bf)(te.lineWidth)} ${te.lineType} ${te.colorBorderSecondary}`,borderRadius:`${(0,Ye.bf)(te.borderRadiusLG)} ${(0,Ye.bf)(te.borderRadiusLG)} 0 0`},(0,wt.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},wt.vS),{[` + > ${we}-typography, + > ${we}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${Ce}-tabs-top`]:{clear:"both",marginBottom:Ht,color:te.colorText,fontWeight:"normal",fontSize:te.fontSize,"&-bar":{borderBottom:`${(0,Ye.bf)(te.lineWidth)} ${te.lineType} ${te.colorBorderSecondary}`}}})},Vt=te=>{const{cardPaddingBase:Ce,colorBorderSecondary:we,cardShadow:Xe,lineWidth:Lt}=te;return{width:"33.33%",padding:Ce,border:0,borderRadius:0,boxShadow:` + ${(0,Ye.bf)(Lt)} 0 0 0 ${we}, + 0 ${(0,Ye.bf)(Lt)} 0 0 ${we}, + ${(0,Ye.bf)(Lt)} ${(0,Ye.bf)(Lt)} 0 0 ${we}, + ${(0,Ye.bf)(Lt)} 0 0 0 ${we} inset, + 0 ${(0,Ye.bf)(Lt)} 0 0 ${we} inset; + `,transition:`all ${te.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:Xe}}},xt=te=>{const{componentCls:Ce,iconCls:we,actionsLiMargin:Xe,cardActionsIconSize:Lt,colorBorderSecondary:Ht,actionsBg:on}=te;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:on,borderTop:`${(0,Ye.bf)(te.lineWidth)} ${te.lineType} ${Ht}`,display:"flex",borderRadius:`0 0 ${(0,Ye.bf)(te.borderRadiusLG)} ${(0,Ye.bf)(te.borderRadiusLG)}`},(0,wt.dF)()),{"& > li":{margin:Xe,color:te.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:te.calc(te.cardActionsIconSize).mul(2).equal(),fontSize:te.fontSize,lineHeight:te.lineHeight,cursor:"pointer","&:hover":{color:te.colorPrimary,transition:`color ${te.motionDurationMid}`},[`a:not(${Ce}-btn), > ${we}`]:{display:"inline-block",width:"100%",color:te.colorTextDescription,lineHeight:(0,Ye.bf)(te.fontHeight),transition:`color ${te.motionDurationMid}`,"&:hover":{color:te.colorPrimary}},[`> ${we}`]:{fontSize:Lt,lineHeight:(0,Ye.bf)(te.calc(Lt).mul(te.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,Ye.bf)(te.lineWidth)} ${te.lineType} ${Ht}`}}})},bt=te=>Object.assign(Object.assign({margin:`${(0,Ye.bf)(te.calc(te.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,wt.dF)()),{"&-avatar":{paddingInlineEnd:te.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:te.marginXS}},"&-title":Object.assign({color:te.colorTextHeading,fontWeight:te.fontWeightStrong,fontSize:te.fontSizeLG},wt.vS),"&-description":{color:te.colorTextDescription}}),Tr=te=>{const{componentCls:Ce,cardPaddingBase:we,colorFillAlter:Xe}=te;return{[`${Ce}-head`]:{padding:`0 ${(0,Ye.bf)(we)}`,background:Xe,"&-title":{fontSize:te.fontSize}},[`${Ce}-body`]:{padding:`${(0,Ye.bf)(te.padding)} ${(0,Ye.bf)(we)}`}}},hr=te=>{const{componentCls:Ce}=te;return{overflow:"hidden",[`${Ce}-body`]:{userSelect:"none"}}},lr=te=>{const{antCls:Ce,componentCls:we,cardShadow:Xe,cardHeadPadding:Lt,colorBorderSecondary:Ht,boxShadowTertiary:on,cardPaddingBase:Jr,extraColor:Hr}=te;return{[we]:Object.assign(Object.assign({},(0,wt.Wf)(te)),{position:"relative",background:te.colorBgContainer,borderRadius:te.borderRadiusLG,[`&:not(${we}-bordered)`]:{boxShadow:on},[`${we}-head`]:nr(te),[`${we}-extra`]:{marginInlineStart:"auto",color:Hr,fontWeight:"normal",fontSize:te.fontSize},[`${we}-body`]:Object.assign({padding:Jr,borderRadius:` 0 0 ${(0,Ye.bf)(te.borderRadiusLG)} ${(0,Ye.bf)(te.borderRadiusLG)}`},(0,wt.dF)()),[`${we}-grid`]:Vt(te),[`${we}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${Ce}-image-mask`]:{borderRadius:`${(0,Ye.bf)(te.borderRadiusLG)} ${(0,Ye.bf)(te.borderRadiusLG)} 0 0`}},[`${we}-actions`]:xt(te),[`${we}-meta`]:bt(te)}),[`${we}-bordered`]:{border:`${(0,Ye.bf)(te.lineWidth)} ${te.lineType} ${Ht}`,[`${we}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${we}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${te.motionDurationMid}, border-color ${te.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:Xe}},[`${we}-contain-grid`]:{borderRadius:`${(0,Ye.bf)(te.borderRadiusLG)} ${(0,Ye.bf)(te.borderRadiusLG)} 0 0 `,[`${we}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${we}-loading) ${we}-body`]:{marginBlockStart:te.calc(te.lineWidth).mul(-1).equal(),marginInlineStart:te.calc(te.lineWidth).mul(-1).equal(),padding:0}},[`${we}-contain-tabs`]:{[`> ${we}-head`]:{minHeight:0,[`${we}-head-title, ${we}-extra`]:{paddingTop:Lt}}},[`${we}-type-inner`]:Tr(te),[`${we}-loading`]:hr(te),[`${we}-rtl`]:{direction:"rtl"}}},At=te=>{const{componentCls:Ce,cardPaddingSM:we,headerHeightSM:Xe,headerFontSizeSM:Lt}=te;return{[`${Ce}-small`]:{[`> ${Ce}-head`]:{minHeight:Xe,padding:`0 ${(0,Ye.bf)(we)}`,fontSize:Lt,[`> ${Ce}-head-wrapper`]:{[`> ${Ce}-extra`]:{fontSize:te.fontSize}}},[`> ${Ce}-body`]:{padding:we}},[`${Ce}-small${Ce}-contain-tabs`]:{[`> ${Ce}-head`]:{[`${Ce}-head-title, ${Ce}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ut=te=>({headerBg:"transparent",headerFontSize:te.fontSizeLG,headerFontSizeSM:te.fontSize,headerHeight:te.fontSizeLG*te.lineHeightLG+te.padding*2,headerHeightSM:te.fontSize*te.lineHeight+te.paddingXS*2,actionsBg:te.colorBgContainer,actionsLiMargin:`${te.paddingSM}px 0`,tabsMarginBottom:-te.padding-te.lineWidth,extraColor:te.colorText});var It=(0,Xt.I$)("Card",te=>{const Ce=(0,Zt.TS)(te,{cardShadow:te.boxShadowCard,cardHeadPadding:te.padding,cardPaddingBase:te.paddingLG,cardActionsIconSize:te.fontSize,cardPaddingSM:12});return[lr(Ce),At(Ce)]},ut),qe=function(te,Ce){var we={};for(var Xe in te)Object.prototype.hasOwnProperty.call(te,Xe)&&Ce.indexOf(Xe)<0&&(we[Xe]=te[Xe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Xe=Object.getOwnPropertySymbols(te);Lt{const{prefixCls:Ce,actions:we=[]}=te;return q.createElement("ul",{className:`${Ce}-actions`},we.map((Xe,Lt)=>{const Ht=`action-${Lt}`;return q.createElement("li",{style:{width:`${100/we.length}%`},key:Ht},q.createElement("span",null,Xe))}))};var re=q.forwardRef((te,Ce)=>{const{prefixCls:we,className:Xe,rootClassName:Lt,style:Ht,extra:on,headStyle:Jr={},bodyStyle:Hr={},title:Un,loading:bn,bordered:Kr=!0,size:Mi,type:Si,cover:Ri,actions:Gn,tabList:Dn,children:Ya,activeTabKey:Yi,defaultActiveTabKey:Na,tabBarExtraContent:Dt,hoverable:k,tabProps:ie={}}=te,ve=qe(te,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:Ze,direction:_t,card:Wt}=q.useContext(U.E_),Sr=J=>{var oe;(oe=te.onTabChange)===null||oe===void 0||oe.call(te,J)},He=q.useMemo(()=>{let J=!1;return q.Children.forEach(Ya,oe=>{oe&&oe.type&&oe.type===dt&&(J=!0)}),J},[Ya]),Et=Ze("card",we),[cr,mr]=It(Et),Zr=q.createElement(se.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},Ya),Fn=Yi!==void 0,En=Object.assign(Object.assign({},ie),{[Fn?"activeKey":"defaultActiveKey"]:Fn?Yi:Na,tabBarExtraContent:Dt});let Cn;const fn=(0,fe.Z)(Mi),ni=!fn||fn==="default"?"large":fn,Yn=Dn?q.createElement(Qe.Z,Object.assign({size:ni},En,{className:`${Et}-head-tabs`,onChange:Sr,items:Dn.map(J=>{var{tab:oe}=J,be=qe(J,["tab"]);return Object.assign({label:oe},be)})})):null;(Un||on||Yn)&&(Cn=q.createElement("div",{className:`${Et}-head`,style:Jr},q.createElement("div",{className:`${Et}-head-wrapper`},Un&&q.createElement("div",{className:`${Et}-head-title`},Un),on&&q.createElement("div",{className:`${Et}-extra`},on)),Yn));const oa=Ri?q.createElement("div",{className:`${Et}-cover`},Ri):null,Qi=q.createElement("div",{className:`${Et}-body`,style:Hr},bn?Zr:Ya),lo=Gn&&Gn.length?q.createElement(Ct,{prefixCls:Et,actions:Gn}):null,Is=(0,le.Z)(ve,["onTabChange"]),hi=_()(Et,Wt==null?void 0:Wt.className,{[`${Et}-loading`]:bn,[`${Et}-bordered`]:Kr,[`${Et}-hoverable`]:k,[`${Et}-contain-grid`]:He,[`${Et}-contain-tabs`]:Dn&&Dn.length,[`${Et}-${fn}`]:fn,[`${Et}-type-${Si}`]:!!Si,[`${Et}-rtl`]:_t==="rtl"},Xe,Lt,mr),W=Object.assign(Object.assign({},Wt==null?void 0:Wt.style),Ht);return cr(q.createElement("div",Object.assign({ref:Ce},Is,{className:hi,style:W}),Cn,oa,Qi,lo))}),V=function(te,Ce){var we={};for(var Xe in te)Object.prototype.hasOwnProperty.call(te,Xe)&&Ce.indexOf(Xe)<0&&(we[Xe]=te[Xe]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Xe=Object.getOwnPropertySymbols(te);Lt{const{prefixCls:Ce,className:we,avatar:Xe,title:Lt,description:Ht}=te,on=V(te,["prefixCls","className","avatar","title","description"]),{getPrefixCls:Jr}=q.useContext(U.E_),Hr=Jr("card",Ce),Un=_()(`${Hr}-meta`,we),bn=Xe?q.createElement("div",{className:`${Hr}-meta-avatar`},Xe):null,Kr=Lt?q.createElement("div",{className:`${Hr}-meta-title`},Lt):null,Mi=Ht?q.createElement("div",{className:`${Hr}-meta-description`},Ht):null,Si=Kr||Mi?q.createElement("div",{className:`${Hr}-meta-detail`},Kr,Mi):null;return q.createElement("div",Object.assign({},on,{className:Un}),bn,Si)};const Se=re;Se.Grid=dt,Se.Meta=Me;var nt=Se},45161:function(rr,ee,L){"use strict";L.d(ee,{Z:function(){return It}});var q=L(79685),he=L(28120),_=L(23196),le=L(68591),U=L.n(le),fe=L(99248),se=L(57196),ae=qe=>{const{value:Ct,formatter:fr,precision:re,decimalSeparator:V,groupSeparator:K="",prefixCls:Me}=qe;let Se;if(typeof fr=="function")Se=fr(Ct);else{const nt=String(Ct),te=nt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!te||nt==="-")Se=nt;else{const Ce=te[1];let we=te[2]||"0",Xe=te[4]||"";we=we.replace(/\B(?=(\d{3})+(?!\d))/g,K),typeof re=="number"&&(Xe=Xe.padEnd(re,"0").slice(0,re>0?re:0)),Xe&&(Xe=`${V}${Xe}`),Se=[q.createElement("span",{key:"int",className:`${Me}-content-value-int`},Ce,we),Xe&&q.createElement("span",{key:"decimal",className:`${Me}-content-value-decimal`},Xe)]}}return q.createElement("span",{className:`${Me}-content-value`},Se)},et=L(4614),dt=L(44244),Ye=L(25830);const wt=qe=>{const{componentCls:Ct,marginXXS:fr,padding:re,colorTextDescription:V,titleFontSize:K,colorTextHeading:Me,contentFontSize:Se,fontFamily:nt}=qe;return{[`${Ct}`]:Object.assign(Object.assign({},(0,et.Wf)(qe)),{[`${Ct}-title`]:{marginBottom:fr,color:V,fontSize:K},[`${Ct}-skeleton`]:{paddingTop:re},[`${Ct}-content`]:{color:Me,fontSize:Se,fontFamily:nt,[`${Ct}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ct}-content-prefix, ${Ct}-content-suffix`]:{display:"inline-block"},[`${Ct}-content-prefix`]:{marginInlineEnd:fr},[`${Ct}-content-suffix`]:{marginInlineStart:fr}}})}},Xt=qe=>{const{fontSizeHeading3:Ct,fontSize:fr}=qe;return{titleFontSize:fr,contentFontSize:Ct}};var Zt=(0,dt.I$)("Statistic",qe=>{const Ct=(0,Ye.TS)(qe,{});return[wt(Ct)]},Xt),Vt=qe=>{const{prefixCls:Ct,className:fr,rootClassName:re,style:V,valueStyle:K,value:Me=0,title:Se,valueRender:nt,prefix:te,suffix:Ce,loading:we=!1,onMouseEnter:Xe,onMouseLeave:Lt,decimalSeparator:Ht=".",groupSeparator:on=","}=qe,{getPrefixCls:Jr,direction:Hr,statistic:Un}=q.useContext(fe.E_),bn=Jr("statistic",Ct),[Kr,Mi]=Zt(bn),Si=q.createElement(ae,Object.assign({decimalSeparator:Ht,groupSeparator:on,prefixCls:bn},qe,{value:Me})),Ri=U()(bn,{[`${bn}-rtl`]:Hr==="rtl"},Un==null?void 0:Un.className,fr,re,Mi);return Kr(q.createElement("div",{className:Ri,style:Object.assign(Object.assign({},Un==null?void 0:Un.style),V),onMouseEnter:Xe,onMouseLeave:Lt},Se&&q.createElement("div",{className:`${bn}-title`},Se),q.createElement(se.Z,{paragraph:!1,loading:we,className:`${bn}-skeleton`},q.createElement("div",{style:K,className:`${bn}-content`},te&&q.createElement("span",{className:`${bn}-content-prefix`},te),nt?nt(Si):Si,Ce&&q.createElement("span",{className:`${bn}-content-suffix`},Ce)))))};const xt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function bt(qe,Ct){let fr=qe;const re=/\[[^\]]*]/g,V=(Ct.match(re)||[]).map(nt=>nt.slice(1,-1)),K=Ct.replace(re,"[]"),Me=xt.reduce((nt,te)=>{let[Ce,we]=te;if(nt.includes(Ce)){const Xe=Math.floor(fr/we);return fr-=Xe*we,nt.replace(new RegExp(`${Ce}+`,"g"),Lt=>{const Ht=Lt.length;return Xe.toString().padStart(Ht,"0")})}return nt},K);let Se=0;return Me.replace(re,()=>{const nt=V[Se];return Se+=1,nt})}function Tr(qe,Ct){const{format:fr=""}=Ct,re=new Date(qe).getTime(),V=Date.now(),K=Math.max(re-V,0);return bt(K,fr)}const hr=1e3/30;function lr(qe){return new Date(qe).getTime()}const At=qe=>{const{value:Ct,format:fr="HH:mm:ss",onChange:re,onFinish:V}=qe,K=(0,he.Z)(),Me=q.useRef(null),Se=()=>{V==null||V(),Me.current&&(clearInterval(Me.current),Me.current=null)},nt=()=>{const we=lr(Ct);we>=Date.now()&&(Me.current=setInterval(()=>{K(),re==null||re(we-Date.now()),we(nt(),()=>{Me.current&&(clearInterval(Me.current),Me.current=null)}),[Ct]);const te=(we,Xe)=>Tr(we,Object.assign(Object.assign({},Xe),{format:fr})),Ce=we=>(0,_.Tm)(we,{title:void 0});return q.createElement(Vt,Object.assign({},qe,{valueRender:Ce,formatter:te}))};var ut=q.memo(At);Vt.Countdown=ut;var It=Vt},89675:function(rr){"use strict";rr.exports=ee,rr.exports.default=ee;function ee(K,Me,Se){Se=Se||2;var nt=Me&&Me.length,te=nt?Me[0]*Se:K.length,Ce=L(K,0,te,Se,!0),we=[];if(!Ce||Ce.next===Ce.prev)return we;var Xe,Lt,Ht,on,Jr,Hr,Un;if(nt&&(Ce=se(K,Me,Ce,Se)),K.length>80*Se){Xe=Ht=K[0],Lt=on=K[1];for(var bn=Se;bnHt&&(Ht=Jr),Hr>on&&(on=Hr);Un=Math.max(Ht-Xe,on-Lt),Un=Un!==0?32767/Un:0}return he(Ce,we,Se,Xe,Lt,Un,0),we}function L(K,Me,Se,nt,te){var Ce,we;if(te===V(K,Me,Se,nt)>0)for(Ce=Me;Ce=Me;Ce-=nt)we=Ct(Ce,K[Ce],K[Ce+1],we);return we&&bt(we,we.next)&&(fr(we),we=we.next),we}function q(K,Me){if(!K)return K;Me||(Me=K);var Se=K,nt;do if(nt=!1,!Se.steiner&&(bt(Se,Se.next)||xt(Se.prev,Se,Se.next)===0)){if(fr(Se),Se=Me=Se.prev,Se===Se.next)break;nt=!0}else Se=Se.next;while(nt||Se!==Me);return Me}function he(K,Me,Se,nt,te,Ce,we){if(K){!we&&Ce&&Ye(K,nt,te,Ce);for(var Xe=K,Lt,Ht;K.prev!==K.next;){if(Lt=K.prev,Ht=K.next,Ce?le(K,nt,te,Ce):_(K)){Me.push(Lt.i/Se|0),Me.push(K.i/Se|0),Me.push(Ht.i/Se|0),fr(K),K=Ht.next,Xe=Ht.next;continue}if(K=Ht,K===Xe){we?we===1?(K=U(q(K),Me,Se),he(K,Me,Se,nt,te,Ce,2)):we===2&&fe(K,Me,Se,nt,te,Ce):he(q(K),Me,Se,nt,te,Ce,1);break}}}}function _(K){var Me=K.prev,Se=K,nt=K.next;if(xt(Me,Se,nt)>=0)return!1;for(var te=Me.x,Ce=Se.x,we=nt.x,Xe=Me.y,Lt=Se.y,Ht=nt.y,on=teCe?te>we?te:we:Ce>we?Ce:we,Un=Xe>Lt?Xe>Ht?Xe:Ht:Lt>Ht?Lt:Ht,bn=nt.next;bn!==Me;){if(bn.x>=on&&bn.x<=Hr&&bn.y>=Jr&&bn.y<=Un&&nr(te,Xe,Ce,Lt,we,Ht,bn.x,bn.y)&&xt(bn.prev,bn,bn.next)>=0)return!1;bn=bn.next}return!0}function le(K,Me,Se,nt){var te=K.prev,Ce=K,we=K.next;if(xt(te,Ce,we)>=0)return!1;for(var Xe=te.x,Lt=Ce.x,Ht=we.x,on=te.y,Jr=Ce.y,Hr=we.y,Un=XeLt?Xe>Ht?Xe:Ht:Lt>Ht?Lt:Ht,Mi=on>Jr?on>Hr?on:Hr:Jr>Hr?Jr:Hr,Si=Xt(Un,bn,Me,Se,nt),Ri=Xt(Kr,Mi,Me,Se,nt),Gn=K.prevZ,Dn=K.nextZ;Gn&&Gn.z>=Si&&Dn&&Dn.z<=Ri;){if(Gn.x>=Un&&Gn.x<=Kr&&Gn.y>=bn&&Gn.y<=Mi&&Gn!==te&&Gn!==we&&nr(Xe,on,Lt,Jr,Ht,Hr,Gn.x,Gn.y)&&xt(Gn.prev,Gn,Gn.next)>=0||(Gn=Gn.prevZ,Dn.x>=Un&&Dn.x<=Kr&&Dn.y>=bn&&Dn.y<=Mi&&Dn!==te&&Dn!==we&&nr(Xe,on,Lt,Jr,Ht,Hr,Dn.x,Dn.y)&&xt(Dn.prev,Dn,Dn.next)>=0))return!1;Dn=Dn.nextZ}for(;Gn&&Gn.z>=Si;){if(Gn.x>=Un&&Gn.x<=Kr&&Gn.y>=bn&&Gn.y<=Mi&&Gn!==te&&Gn!==we&&nr(Xe,on,Lt,Jr,Ht,Hr,Gn.x,Gn.y)&&xt(Gn.prev,Gn,Gn.next)>=0)return!1;Gn=Gn.prevZ}for(;Dn&&Dn.z<=Ri;){if(Dn.x>=Un&&Dn.x<=Kr&&Dn.y>=bn&&Dn.y<=Mi&&Dn!==te&&Dn!==we&&nr(Xe,on,Lt,Jr,Ht,Hr,Dn.x,Dn.y)&&xt(Dn.prev,Dn,Dn.next)>=0)return!1;Dn=Dn.nextZ}return!0}function U(K,Me,Se){var nt=K;do{var te=nt.prev,Ce=nt.next.next;!bt(te,Ce)&&Tr(te,nt,nt.next,Ce)&&ut(te,Ce)&&ut(Ce,te)&&(Me.push(te.i/Se|0),Me.push(nt.i/Se|0),Me.push(Ce.i/Se|0),fr(nt),fr(nt.next),nt=K=Ce),nt=nt.next}while(nt!==K);return q(nt)}function fe(K,Me,Se,nt,te,Ce){var we=K;do{for(var Xe=we.next.next;Xe!==we.prev;){if(we.i!==Xe.i&&Vt(we,Xe)){var Lt=qe(we,Xe);we=q(we,we.next),Lt=q(Lt,Lt.next),he(we,Me,Se,nt,te,Ce,0),he(Lt,Me,Se,nt,te,Ce,0);return}Xe=Xe.next}we=we.next}while(we!==K)}function se(K,Me,Se,nt){var te=[],Ce,we,Xe,Lt,Ht;for(Ce=0,we=Me.length;Ce=Se.next.y&&Se.next.y!==Se.y){var Xe=Se.x+(te-Se.y)*(Se.next.x-Se.x)/(Se.next.y-Se.y);if(Xe<=nt&&Xe>Ce&&(Ce=Xe,we=Se.x=Se.x&&Se.x>=Ht&&nt!==Se.x&&nr(tewe.x||Se.x===we.x&&dt(we,Se)))&&(we=Se,Jr=Hr)),Se=Se.next;while(Se!==Lt);return we}function dt(K,Me){return xt(K.prev,K,Me.prev)<0&&xt(Me.next,K,K.next)<0}function Ye(K,Me,Se,nt){var te=K;do te.z===0&&(te.z=Xt(te.x,te.y,Me,Se,nt)),te.prevZ=te.prev,te.nextZ=te.next,te=te.next;while(te!==K);te.prevZ.nextZ=null,te.prevZ=null,wt(te)}function wt(K){var Me,Se,nt,te,Ce,we,Xe,Lt,Ht=1;do{for(Se=K,K=null,Ce=null,we=0;Se;){for(we++,nt=Se,Xe=0,Me=0;Me0||Lt>0&&nt;)Xe!==0&&(Lt===0||!nt||Se.z<=nt.z)?(te=Se,Se=Se.nextZ,Xe--):(te=nt,nt=nt.nextZ,Lt--),Ce?Ce.nextZ=te:K=te,te.prevZ=Ce,Ce=te;Se=nt}Ce.nextZ=null,Ht*=2}while(we>1);return K}function Xt(K,Me,Se,nt,te){return K=(K-Se)*te|0,Me=(Me-nt)*te|0,K=(K|K<<8)&16711935,K=(K|K<<4)&252645135,K=(K|K<<2)&858993459,K=(K|K<<1)&1431655765,Me=(Me|Me<<8)&16711935,Me=(Me|Me<<4)&252645135,Me=(Me|Me<<2)&858993459,Me=(Me|Me<<1)&1431655765,K|Me<<1}function Zt(K){var Me=K,Se=K;do(Me.x=(K-we)*(Ce-Xe)&&(K-we)*(nt-Xe)>=(Se-we)*(Me-Xe)&&(Se-we)*(Ce-Xe)>=(te-we)*(nt-Xe)}function Vt(K,Me){return K.next.i!==Me.i&&K.prev.i!==Me.i&&!At(K,Me)&&(ut(K,Me)&&ut(Me,K)&&It(K,Me)&&(xt(K.prev,K,Me.prev)||xt(K,Me.prev,Me))||bt(K,Me)&&xt(K.prev,K,K.next)>0&&xt(Me.prev,Me,Me.next)>0)}function xt(K,Me,Se){return(Me.y-K.y)*(Se.x-Me.x)-(Me.x-K.x)*(Se.y-Me.y)}function bt(K,Me){return K.x===Me.x&&K.y===Me.y}function Tr(K,Me,Se,nt){var te=lr(xt(K,Me,Se)),Ce=lr(xt(K,Me,nt)),we=lr(xt(Se,nt,K)),Xe=lr(xt(Se,nt,Me));return!!(te!==Ce&&we!==Xe||te===0&&hr(K,Se,Me)||Ce===0&&hr(K,nt,Me)||we===0&&hr(Se,K,nt)||Xe===0&&hr(Se,Me,nt))}function hr(K,Me,Se){return Me.x<=Math.max(K.x,Se.x)&&Me.x>=Math.min(K.x,Se.x)&&Me.y<=Math.max(K.y,Se.y)&&Me.y>=Math.min(K.y,Se.y)}function lr(K){return K>0?1:K<0?-1:0}function At(K,Me){var Se=K;do{if(Se.i!==K.i&&Se.next.i!==K.i&&Se.i!==Me.i&&Se.next.i!==Me.i&&Tr(Se,Se.next,K,Me))return!0;Se=Se.next}while(Se!==K);return!1}function ut(K,Me){return xt(K.prev,K,K.next)<0?xt(K,Me,K.next)>=0&&xt(K,K.prev,Me)>=0:xt(K,Me,K.prev)<0||xt(K,K.next,Me)<0}function It(K,Me){var Se=K,nt=!1,te=(K.x+Me.x)/2,Ce=(K.y+Me.y)/2;do Se.y>Ce!=Se.next.y>Ce&&Se.next.y!==Se.y&&te<(Se.next.x-Se.x)*(Ce-Se.y)/(Se.next.y-Se.y)+Se.x&&(nt=!nt),Se=Se.next;while(Se!==K);return nt}function qe(K,Me){var Se=new re(K.i,K.x,K.y),nt=new re(Me.i,Me.x,Me.y),te=K.next,Ce=Me.prev;return K.next=Me,Me.prev=K,Se.next=te,te.prev=Se,nt.next=Se,Se.prev=nt,Ce.next=nt,nt.prev=Ce,nt}function Ct(K,Me,Se,nt){var te=new re(K,Me,Se);return nt?(te.next=nt.next,te.prev=nt,nt.next.prev=te,nt.next=te):(te.prev=te,te.next=te),te}function fr(K){K.next.prev=K.prev,K.prev.next=K.next,K.prevZ&&(K.prevZ.nextZ=K.nextZ),K.nextZ&&(K.nextZ.prevZ=K.prevZ)}function re(K,Me,Se){this.i=K,this.x=Me,this.y=Se,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}ee.deviation=function(K,Me,Se,nt){var te=Me&&Me.length,Ce=te?Me[0]*Se:K.length,we=Math.abs(V(K,0,Ce,Se));if(te)for(var Xe=0,Lt=Me.length;Xe0&&(nt+=K[te-1].length,Se.holes.push(nt))}return Se}},73827:function(rr){function ee(q){var he=q.target||q.srcElement;he.__resizeRAF__&&cancelAnimationFrame(he.__resizeRAF__),he.__resizeRAF__=requestAnimationFrame(function(){var _=he.__resizeTrigger__,le=_&&_.__resizeListeners__;le&&le.forEach(function(U){U.call(_,q)})})}var L=function(he,_){var le=this,U=le.document,fe,se=U.attachEvent;typeof navigator!="undefined"&&(fe=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function Qe(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",ee)}if(!he.__resizeListeners__)if(he.__resizeListeners__=[],se)he.__resizeTrigger__=he,he.attachEvent("onresize",ee);else{getComputedStyle(he).position==="static"&&(he.style.position="relative");var ae=he.__resizeTrigger__=U.createElement("object");ae.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),ae.setAttribute("class","resize-sensor"),ae.setAttribute("tabindex","-1"),ae.setAttribute("title",""),ae.__resizeElement__=he,ae.onload=Qe,ae.type="text/html",fe&&he.appendChild(ae),ae.data="about:blank",fe||he.appendChild(ae)}he.__resizeListeners__.push(_)};rr.exports=typeof window=="undefined"?L:L.bind(window),rr.exports.unbind=function(q,he){var _=document.attachEvent,le=q.__resizeListeners__||[];if(he){var U=le.indexOf(he);U!==-1&&le.splice(U,1)}else le=q.__resizeListeners__=[];if(!le.length){if(_)q.detachEvent("onresize",ee);else if(q.__resizeTrigger__){var fe=q.__resizeTrigger__.contentDocument,se=fe&&fe.defaultView;se&&(se.removeEventListener("resize",ee),delete se.__resizeTrigger__),q.__resizeTrigger__=!q.removeChild(q.__resizeTrigger__)}delete q.__resizeListeners__}}},11488:function(rr){"use strict";var ee=Object.prototype.hasOwnProperty,L="~";function q(){}Object.create&&(q.prototype=Object.create(null),new q().__proto__||(L=!1));function he(fe,se,Qe){this.fn=fe,this.context=se,this.once=Qe||!1}function _(fe,se,Qe,ae,et){if(typeof Qe!="function")throw new TypeError("The listener must be a function");var dt=new he(Qe,ae||fe,et),Ye=L?L+se:se;return fe._events[Ye]?fe._events[Ye].fn?fe._events[Ye]=[fe._events[Ye],dt]:fe._events[Ye].push(dt):(fe._events[Ye]=dt,fe._eventsCount++),fe}function le(fe,se){--fe._eventsCount===0?fe._events=new q:delete fe._events[se]}function U(){this._events=new q,this._eventsCount=0}U.prototype.eventNames=function(){var se=[],Qe,ae;if(this._eventsCount===0)return se;for(ae in Qe=this._events)ee.call(Qe,ae)&&se.push(L?ae.slice(1):ae);return Object.getOwnPropertySymbols?se.concat(Object.getOwnPropertySymbols(Qe)):se},U.prototype.listeners=function(se){var Qe=L?L+se:se,ae=this._events[Qe];if(!ae)return[];if(ae.fn)return[ae.fn];for(var et=0,dt=ae.length,Ye=new Array(dt);et\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Hi=he.console&&(he.console.warn||he.console.log);return Hi&&Hi.call(he.console,or,In),de.apply(this,arguments)}}var nr;typeof Object.assign!="function"?nr=function(Re){if(Re===U||Re===null)throw new TypeError("Cannot convert undefined or null to object");for(var ct=Object(Re),or=1;or-1}function Ct(de){return de.trim().split(/\s+/g)}function fr(de,Re,ct){if(de.indexOf&&!ct)return de.indexOf(Re);for(var or=0;orco[Re]}):or=or.sort()),or}function K(de,Re){for(var ct,or,jr=Re[0].toUpperCase()+Re.slice(1),In=0;In1&&!ct.firstMultiple?ct.firstMultiple=Et(Re):jr===1&&(ct.firstMultiple=!1);var In=ct.firstInput,Hi=ct.firstMultiple,vo=Hi?Hi.center:In.center,To=Re.center=cr(or);Re.timeStamp=dt(),Re.deltaTime=Re.timeStamp-In.timeStamp,Re.angle=En(vo,To),Re.distance=Fn(vo,To),Sr(ct,Re),Re.offsetDirection=Zr(Re.deltaX,Re.deltaY);var co=mr(Re.deltaTime,Re.deltaX,Re.deltaY);Re.overallVelocityX=co.x,Re.overallVelocityY=co.y,Re.overallVelocity=et(co.x)>et(co.y)?co.x:co.y,Re.scale=Hi?fn(Hi.pointers,or):1,Re.rotation=Hi?Cn(Hi.pointers,or):0,Re.maxPointers=ct.prevInput?Re.pointers.length>ct.prevInput.maxPointers?Re.pointers.length:ct.prevInput.maxPointers:Re.pointers.length,He(ct,Re);var Ps=de.element;It(Re.srcEvent.target,Ps)&&(Ps=Re.srcEvent.target),Re.target=Ps}function Sr(de,Re){var ct=Re.center,or=de.offsetDelta||{},jr=de.prevDelta||{},In=de.prevInput||{};(Re.eventType===Un||In.eventType===Kr)&&(jr=de.prevDelta={x:In.deltaX||0,y:In.deltaY||0},or=de.offsetDelta={x:ct.x,y:ct.y}),Re.deltaX=jr.x+(ct.x-or.x),Re.deltaY=jr.y+(ct.y-or.y)}function He(de,Re){var ct=de.lastInterval||Re,or=Re.timeStamp-ct.timeStamp,jr,In,Hi,vo;if(Re.eventType!=Mi&&(or>Hr||ct.velocity===U)){var To=Re.deltaX-ct.deltaX,co=Re.deltaY-ct.deltaY,Ps=mr(or,To,co);In=Ps.x,Hi=Ps.y,jr=et(Ps.x)>et(Ps.y)?Ps.x:Ps.y,vo=Zr(To,co),de.lastInterval=Re}else jr=ct.velocity,In=ct.velocityX,Hi=ct.velocityY,vo=ct.direction;Re.velocity=jr,Re.velocityX=In,Re.velocityY=Hi,Re.direction=vo}function Et(de){for(var Re=[],ct=0;ct=et(Re)?de<0?Ri:Gn:Re<0?Dn:Ya}function Fn(de,Re,ct){ct||(ct=k);var or=Re[ct[0]]-de[ct[0]],jr=Re[ct[1]]-de[ct[1]];return Math.sqrt(or*or+jr*jr)}function En(de,Re,ct){ct||(ct=k);var or=Re[ct[0]]-de[ct[0]],jr=Re[ct[1]]-de[ct[1]];return Math.atan2(jr,or)*180/Math.PI}function Cn(de,Re){return En(Re[1],Re[0],ie)+En(de[1],de[0],ie)}function fn(de,Re){return Fn(Re[0],Re[1],ie)/Fn(de[0],de[1],ie)}var ni={mousedown:Un,mousemove:bn,mouseup:Kr},Yn="mousedown",oa="mousemove mouseup";function Qi(){this.evEl=Yn,this.evWin=oa,this.pressed=!1,ve.apply(this,arguments)}bt(Qi,ve,{handler:function(Re){var ct=ni[Re.type];ct&Un&&Re.button===0&&(this.pressed=!0),ct&bn&&Re.which!==1&&(ct=Kr),this.pressed&&(ct&Kr&&(this.pressed=!1),this.callback(this.manager,ct,{pointers:[Re],changedPointers:[Re],pointerType:on,srcEvent:Re}))}});var lo={pointerdown:Un,pointermove:bn,pointerup:Kr,pointercancel:Mi,pointerout:Mi},Is={2:Lt,3:Ht,4:on,5:Jr},hi="pointerdown",W="pointermove pointerup pointercancel";he.MSPointerEvent&&!he.PointerEvent&&(hi="MSPointerDown",W="MSPointerMove MSPointerUp MSPointerCancel");function J(){this.evEl=hi,this.evWin=W,ve.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}bt(J,ve,{handler:function(Re){var ct=this.store,or=!1,jr=Re.type.toLowerCase().replace("ms",""),In=lo[jr],Hi=Is[Re.pointerType]||Re.pointerType,vo=Hi==Lt,To=fr(ct,Re.pointerId,"pointerId");In&Un&&(Re.button===0||vo)?To<0&&(ct.push(Re),To=ct.length-1):In&(Kr|Mi)&&(or=!0),!(To<0)&&(ct[To]=Re,this.callback(this.manager,In,{pointers:ct,changedPointers:[Re],pointerType:Hi,srcEvent:Re}),or&&ct.splice(To,1))}});var oe={touchstart:Un,touchmove:bn,touchend:Kr,touchcancel:Mi},be="touchstart",Oe="touchstart touchmove touchend touchcancel";function it(){this.evTarget=be,this.evWin=Oe,this.started=!1,ve.apply(this,arguments)}bt(it,ve,{handler:function(Re){var ct=oe[Re.type];if(ct===Un&&(this.started=!0),!!this.started){var or=pt.call(this,Re,ct);ct&(Kr|Mi)&&or[0].length-or[1].length===0&&(this.started=!1),this.callback(this.manager,ct,{pointers:or[0],changedPointers:or[1],pointerType:Lt,srcEvent:Re})}}});function pt(de,Re){var ct=re(de.touches),or=re(de.changedTouches);return Re&(Kr|Mi)&&(ct=V(ct.concat(or),"identifier",!0)),[ct,or]}var j={touchstart:Un,touchmove:bn,touchend:Kr,touchcancel:Mi},Q="touchstart touchmove touchend touchcancel";function Le(){this.evTarget=Q,this.targetIds={},ve.apply(this,arguments)}bt(Le,ve,{handler:function(Re){var ct=j[Re.type],or=at.call(this,Re,ct);or&&this.callback(this.manager,ct,{pointers:or[0],changedPointers:or[1],pointerType:Lt,srcEvent:Re})}});function at(de,Re){var ct=re(de.touches),or=this.targetIds;if(Re&(Un|bn)&&ct.length===1)return or[ct[0].identifier]=!0,[ct,ct];var jr,In,Hi=re(de.changedTouches),vo=[],To=this.target;if(In=ct.filter(function(co){return It(co.target,To)}),Re===Un)for(jr=0;jr-1&&or.splice(In,1)};setTimeout(jr,Ee)}}function sr(de){for(var Re=de.srcEvent.clientX,ct=de.srcEvent.clientY,or=0;or-1&&this.requireFail.splice(Re,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(de){return!!this.simultaneous[de.id]},emit:function(de){var Re=this,ct=this.state;function or(jr){Re.manager.emit(jr,de)}ct=wi&&or(Re.options.event+$l(ct))},tryEmit:function(de){if(this.canEmit())return this.emit(de);this.state=ma},canEmit:function(){for(var de=0;deRe.threshold&&jr&Re.direction},attrTest:function(de){return fi.prototype.attrTest.call(this,de)&&(this.state&Ti||!(this.state&Ti)&&this.directionTest(de))},emit:function(de){this.pX=de.deltaX,this.pY=de.deltaY;var Re=os(de.direction);Re&&(de.additionalEvent=this.options.event+Re),this._super.emit.call(this,de)}});function sa(){fi.apply(this,arguments)}bt(sa,fi,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[vi]},attrTest:function(de){return this._super.attrTest.call(this,de)&&(Math.abs(de.scale-1)>this.options.threshold||this.state&Ti)},emit:function(de){if(de.scale!==1){var Re=de.scale<1?"in":"out";de.additionalEvent=this.options.event+Re}this._super.emit.call(this,de)}});function Ao(){Aa.apply(this,arguments),this._timer=null,this._input=null}bt(Ao,Aa,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[pi]},process:function(de){var Re=this.options,ct=de.pointers.length===Re.pointers,or=de.distanceRe.time;if(this._input=de,!or||!ct||de.eventType&(Kr|Mi)&&!jr)this.reset();else if(de.eventType&Un)this.reset(),this._timer=Ye(function(){this.state=Pa,this.tryEmit()},Re.time,this);else if(de.eventType&Kr)return Pa;return ma},reset:function(){clearTimeout(this._timer)},emit:function(de){this.state===Pa&&(de&&de.eventType&Kr?this.manager.emit(this.options.event+"up",de):(this._input.timeStamp=dt(),this.manager.emit(this.options.event,this._input)))}});function ha(){fi.apply(this,arguments)}bt(ha,fi,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[vi]},attrTest:function(de){return this._super.attrTest.call(this,de)&&(Math.abs(de.rotation)>this.options.threshold||this.state&Ti)}});function $o(){fi.apply(this,arguments)}bt($o,fi,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Yi|Na,pointers:1},getTouchAction:function(){return Oa.prototype.getTouchAction.call(this)},attrTest:function(de){var Re=this.options.direction,ct;return Re&(Yi|Na)?ct=de.overallVelocity:Re&Yi?ct=de.overallVelocityX:Re&Na&&(ct=de.overallVelocityY),this._super.attrTest.call(this,de)&&Re&de.offsetDirection&&de.distance>this.options.threshold&&de.maxPointers==this.options.pointers&&et(ct)>this.options.velocity&&de.eventType&Kr},emit:function(de){var Re=os(de.offsetDirection);Re&&this.manager.emit(this.options.event+Re,de),this.manager.emit(this.options.event,de)}});function Vo(){Aa.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}bt(Vo,Aa,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tn]},process:function(de){var Re=this.options,ct=de.pointers.length===Re.pointers,or=de.distance= than the number of constructor arguments of its base class.")};ee.ARGUMENTS_LENGTH_MISMATCH=q,ee.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",ee.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",ee.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",ee.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",ee.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var he=function(){for(var le=[],U=0;U0&&lr[lr.length-1])&&(qe[0]===6||qe[0]===2)){bt=0;continue}if(qe[0]===3&&(!lr||qe[1]>lr[0]&&qe[1]0?U._map.set(se,Qe):U._map.delete(se)})},_.prototype.hasKey=function(le){if(le==null)throw new Error(q.NULL_ARGUMENT);return this._map.has(le)},_.prototype.clone=function(){var le=new _;return this._map.forEach(function(U,fe){U.forEach(function(se){return le.add(fe,se.clone())})}),le},_.prototype.traverse=function(le){this._map.forEach(function(U,fe){le(fe,U)})},_}();ee.Lookup=he},31331:function(rr,ee,L){"use strict";var q;q={value:!0},q=q=q=q=q=q=ee.GW=q=q=ee.zY=q=q=q=q=q=ee.f3=q=q=ee.b2=q=q=q=q=q=ee.W2=q=void 0;var he=L(91193);q=he;var _=L(46769);Object.defineProperty(ee,"W2",{enumerable:!0,get:function(){return _.Container}});var le=L(88795);q={enumerable:!0,get:function(){return le.BindingScopeEnum}},q={enumerable:!0,get:function(){return le.BindingTypeEnum}},q={enumerable:!0,get:function(){return le.TargetTypeEnum}};var U=L(69377);q={enumerable:!0,get:function(){return U.AsyncContainerModule}},q={enumerable:!0,get:function(){return U.ContainerModule}};var fe=L(9719);Object.defineProperty(ee,"b2",{enumerable:!0,get:function(){return fe.injectable}});var se=L(97404);q={enumerable:!0,get:function(){return se.tagged}};var Qe=L(69481);q={enumerable:!0,get:function(){return Qe.named}};var ae=L(70105);Object.defineProperty(ee,"f3",{enumerable:!0,get:function(){return ae.inject}}),q={enumerable:!0,get:function(){return ae.LazyServiceIdentifer}};var et=L(35231);q={enumerable:!0,get:function(){return et.optional}};var dt=L(8814);q={enumerable:!0,get:function(){return dt.unmanaged}};var Ye=L(81623);q={enumerable:!0,get:function(){return Ye.multiInject}};var wt=L(11580);q={enumerable:!0,get:function(){return wt.targetName}};var Xt=L(17419);Object.defineProperty(ee,"zY",{enumerable:!0,get:function(){return Xt.postConstruct}});var Zt=L(54594);q={enumerable:!0,get:function(){return Zt.MetadataReader}};var nr=L(18576);q={enumerable:!0,get:function(){return nr.id}};var Vt=L(90333);Object.defineProperty(ee,"GW",{enumerable:!0,get:function(){return Vt.decorate}});var xt=L(18307);q={enumerable:!0,get:function(){return xt.traverseAncerstors}},q={enumerable:!0,get:function(){return xt.taggedConstraint}},q={enumerable:!0,get:function(){return xt.namedConstraint}},q={enumerable:!0,get:function(){return xt.typeConstraint}};var bt=L(80030);q={enumerable:!0,get:function(){return bt.getServiceIdentifierAsString}};var Tr=L(55605);q={enumerable:!0,get:function(){return Tr.multiBindToService}}},52887:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Context=void 0;var q=L(18576),he=function(){function _(le){this.id=q.id(),this.container=le}return _.prototype.addPlan=function(le){this.plan=le},_.prototype.setCurrentRequest=function(le){this.currentRequest=le},_}();ee.Context=he},55650:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Metadata=void 0;var q=L(91193),he=function(){function _(le,U){this.key=le,this.value=U}return _.prototype.toString=function(){return this.key===q.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},_}();ee.Metadata=he},54594:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.MetadataReader=void 0;var q=L(91193),he=function(){function _(){}return _.prototype.getConstructorMetadata=function(le){var U=Reflect.getMetadata(q.PARAM_TYPES,le),fe=Reflect.getMetadata(q.TAGGED,le);return{compilerGeneratedMetadata:U,userGeneratedMetadata:fe||{}}},_.prototype.getPropertiesMetadata=function(le){var U=Reflect.getMetadata(q.TAGGED_PROP,le)||[];return U},_}();ee.MetadataReader=he},21800:function(rr,ee){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Plan=void 0;var L=function(){function q(he,_){this.parentContext=he,this.rootRequest=_}return q}();ee.Plan=L},53353:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.getBindingDictionary=ee.createMockRequest=ee.plan=void 0;var q=L(44276),he=L(52050),_=L(88795),le=L(91193),U=L(83817),fe=L(80030),se=L(52887),Qe=L(55650),ae=L(21800),et=L(73630),dt=L(13571),Ye=L(79060);function wt(hr){return hr._bindingDictionary}ee.getBindingDictionary=wt;function Xt(hr,lr,At,ut,It,qe){var Ct=hr?le.MULTI_INJECT_TAG:le.INJECT_TAG,fr=new Qe.Metadata(Ct,At),re=new Ye.Target(lr,ut,At,fr);if(It!==void 0){var V=new Qe.Metadata(It,qe);re.metadata.push(V)}return re}function Zt(hr,lr,At,ut,It){var qe=xt(At.container,It.serviceIdentifier),Ct=[];return qe.length===q.BindingCount.NoBindingsAvailable&&At.container.options.autoBindInjectable&&typeof It.serviceIdentifier=="function"&&hr.getConstructorMetadata(It.serviceIdentifier).compilerGeneratedMetadata&&(At.container.bind(It.serviceIdentifier).toSelf(),qe=xt(At.container,It.serviceIdentifier)),lr?Ct=qe:Ct=qe.filter(function(fr){var re=new dt.Request(fr.serviceIdentifier,At,ut,fr,It);return fr.constraint(re)}),nr(It.serviceIdentifier,Ct,It,At.container),Ct}function nr(hr,lr,At,ut){switch(lr.length){case q.BindingCount.NoBindingsAvailable:if(At.isOptional())return lr;var It=fe.getServiceIdentifierAsString(hr),qe=he.NOT_REGISTERED;throw qe+=fe.listMetadataForTarget(It,At),qe+=fe.listRegisteredBindingsForServiceIdentifier(ut,It,xt),new Error(qe);case q.BindingCount.OnlyOneBindingAvailable:if(!At.isArray())return lr;case q.BindingCount.MultipleBindingsAvailable:default:if(At.isArray())return lr;var It=fe.getServiceIdentifierAsString(hr),qe=he.AMBIGUOUS_MATCH+" "+It;throw qe+=fe.listRegisteredBindingsForServiceIdentifier(ut,It,xt),new Error(qe)}}function Vt(hr,lr,At,ut,It,qe){var Ct,fr;if(It===null){Ct=Zt(hr,lr,ut,null,qe),fr=new dt.Request(At,ut,null,Ct,qe);var re=new ae.Plan(ut,fr);ut.addPlan(re)}else Ct=Zt(hr,lr,ut,It,qe),fr=It.addChildRequest(qe.serviceIdentifier,Ct,qe);Ct.forEach(function(V){var K=null;if(qe.isArray())K=fr.addChildRequest(V.serviceIdentifier,V,qe);else{if(V.cache)return;K=fr}if(V.type===_.BindingTypeEnum.Instance&&V.implementationType!==null){var Me=et.getDependencies(hr,V.implementationType);if(!ut.container.options.skipBaseClassChecks){var Se=et.getBaseClassDependencyCount(hr,V.implementationType);if(Me.length0,It=At.length>Vt.length,qe=ut||It?At.length:Vt.length,Ct=dt(xt,nr,Tr,lr,qe),fr=Ye(Zt,Vt),re=q(q([],Ct),fr);return re}function et(Zt,nr,Vt,xt,bt){var Tr=bt[Zt.toString()]||[],hr=Xt(Tr),lr=hr.unmanaged!==!0,At=xt[Zt],ut=hr.inject||hr.multiInject;if(At=ut||At,At instanceof he.LazyServiceIdentifer&&(At=At.unwrap()),lr){var It=At===Object,qe=At===Function,Ct=At===void 0,fr=It||qe||Ct;if(!nr&&fr){var re=_.MISSING_INJECT_ANNOTATION+" argument "+Zt+" in class "+Vt+".";throw new Error(re)}var V=new se.Target(le.TargetTypeEnum.ConstructorArgument,hr.targetName,At);return V.metadata=Tr,V}return null}function dt(Zt,nr,Vt,xt,bt){for(var Tr=[],hr=0;hr0?lr:wt(Zt,Vt)}else return 0}ee.getBaseClassDependencyCount=wt;function Xt(Zt){var nr={};return Zt.forEach(function(Vt){nr[Vt.key.toString()]=Vt.value}),{inject:nr[U.INJECT_TAG],multiInject:nr[U.MULTI_INJECT_TAG],targetName:nr[U.NAME_TAG],unmanaged:nr[U.UNMANAGED_TAG]}}},13571:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Request=void 0;var q=L(18576),he=function(){function _(le,U,fe,se,Qe){this.id=q.id(),this.serviceIdentifier=le,this.parentContext=U,this.parentRequest=fe,this.target=Qe,this.childRequests=[],this.bindings=Array.isArray(se)?se:[se],this.requestScope=fe===null?new Map:null}return _.prototype.addChildRequest=function(le,U,fe){var se=new _(le,this.parentContext,this,U,fe);return this.childRequests.push(se),se},_}();ee.Request=he},79060:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Target=void 0;var q=L(91193),he=L(18576),_=L(55650),le=L(83925),U=function(){function fe(se,Qe,ae,et){this.id=he.id(),this.type=se,this.serviceIdentifier=ae,this.name=new le.QueryableString(Qe||""),this.metadata=new Array;var dt=null;typeof et=="string"?dt=new _.Metadata(q.NAMED_TAG,et):et instanceof _.Metadata&&(dt=et),dt!==null&&this.metadata.push(dt)}return fe.prototype.hasTag=function(se){for(var Qe=0,ae=this.metadata;Qe0){var wt=et.filter(function(Zt){return Zt.target!==null&&Zt.target.type===_.TargetTypeEnum.ConstructorArgument}),Xt=wt.map(dt);Ye=fe(ae,Xt),Ye=U(Ye,et,dt)}else Ye=new ae;return se(ae,Ye),Ye}ee.resolveInstance=Qe},87536:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.resolve=void 0;var q=L(52050),he=L(88795),_=L(83817),le=L(80030),U=L(10003),fe=function(ae,et,dt){try{return dt()}catch(Ye){throw _.isStackOverflowExeption(Ye)?new Error(q.CIRCULAR_DEPENDENCY_IN_FACTORY(ae,et.toString())):Ye}},se=function(ae){return function(et){et.parentContext.setCurrentRequest(et);var dt=et.bindings,Ye=et.childRequests,wt=et.target&&et.target.isArray(),Xt=!et.parentRequest||!et.parentRequest.target||!et.target||!et.parentRequest.target.matchesArray(et.target.serviceIdentifier);if(wt&&Xt)return Ye.map(function(Tr){var hr=se(ae);return hr(Tr)});var Zt=null;if(et.target.isOptional()&&dt.length===0)return;var nr=dt[0],Vt=nr.scope===he.BindingScopeEnum.Singleton,xt=nr.scope===he.BindingScopeEnum.Request;if(Vt&&nr.activated)return nr.cache;if(xt&&ae!==null&&ae.has(nr.id))return ae.get(nr.id);if(nr.type===he.BindingTypeEnum.ConstantValue)Zt=nr.cache,nr.activated=!0;else if(nr.type===he.BindingTypeEnum.Function)Zt=nr.cache,nr.activated=!0;else if(nr.type===he.BindingTypeEnum.Constructor)Zt=nr.implementationType;else if(nr.type===he.BindingTypeEnum.DynamicValue&&nr.dynamicValue!==null)Zt=fe("toDynamicValue",nr.serviceIdentifier,function(){return nr.dynamicValue(et.parentContext)});else if(nr.type===he.BindingTypeEnum.Factory&&nr.factory!==null)Zt=fe("toFactory",nr.serviceIdentifier,function(){return nr.factory(et.parentContext)});else if(nr.type===he.BindingTypeEnum.Provider&&nr.provider!==null)Zt=fe("toProvider",nr.serviceIdentifier,function(){return nr.provider(et.parentContext)});else if(nr.type===he.BindingTypeEnum.Instance&&nr.implementationType!==null)Zt=U.resolveInstance(nr.implementationType,Ye,se(ae));else{var bt=le.getServiceIdentifierAsString(et.serviceIdentifier);throw new Error(q.INVALID_BINDING_TYPE+" "+bt)}return typeof nr.onActivation=="function"&&(Zt=nr.onActivation(et.parentContext,Zt)),Vt&&(nr.cache=Zt,nr.activated=!0),xt&&ae!==null&&!ae.has(nr.id)&&ae.set(nr.id,Zt),Zt}};function Qe(ae){var et=se(ae.plan.rootRequest.requestScope);return et(ae.plan.rootRequest)}ee.resolve=Qe},55404:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BindingInSyntax=void 0;var q=L(88795),he=L(65408),_=function(){function le(U){this._binding=U}return le.prototype.inRequestScope=function(){return this._binding.scope=q.BindingScopeEnum.Request,new he.BindingWhenOnSyntax(this._binding)},le.prototype.inSingletonScope=function(){return this._binding.scope=q.BindingScopeEnum.Singleton,new he.BindingWhenOnSyntax(this._binding)},le.prototype.inTransientScope=function(){return this._binding.scope=q.BindingScopeEnum.Transient,new he.BindingWhenOnSyntax(this._binding)},le}();ee.BindingInSyntax=_},48971:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BindingInWhenOnSyntax=void 0;var q=L(55404),he=L(37326),_=L(64957),le=function(){function U(fe){this._binding=fe,this._bindingWhenSyntax=new _.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new he.BindingOnSyntax(this._binding),this._bindingInSyntax=new q.BindingInSyntax(fe)}return U.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},U.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},U.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},U.prototype.when=function(fe){return this._bindingWhenSyntax.when(fe)},U.prototype.whenTargetNamed=function(fe){return this._bindingWhenSyntax.whenTargetNamed(fe)},U.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},U.prototype.whenTargetTagged=function(fe,se){return this._bindingWhenSyntax.whenTargetTagged(fe,se)},U.prototype.whenInjectedInto=function(fe){return this._bindingWhenSyntax.whenInjectedInto(fe)},U.prototype.whenParentNamed=function(fe){return this._bindingWhenSyntax.whenParentNamed(fe)},U.prototype.whenParentTagged=function(fe,se){return this._bindingWhenSyntax.whenParentTagged(fe,se)},U.prototype.whenAnyAncestorIs=function(fe){return this._bindingWhenSyntax.whenAnyAncestorIs(fe)},U.prototype.whenNoAncestorIs=function(fe){return this._bindingWhenSyntax.whenNoAncestorIs(fe)},U.prototype.whenAnyAncestorNamed=function(fe){return this._bindingWhenSyntax.whenAnyAncestorNamed(fe)},U.prototype.whenAnyAncestorTagged=function(fe,se){return this._bindingWhenSyntax.whenAnyAncestorTagged(fe,se)},U.prototype.whenNoAncestorNamed=function(fe){return this._bindingWhenSyntax.whenNoAncestorNamed(fe)},U.prototype.whenNoAncestorTagged=function(fe,se){return this._bindingWhenSyntax.whenNoAncestorTagged(fe,se)},U.prototype.whenAnyAncestorMatches=function(fe){return this._bindingWhenSyntax.whenAnyAncestorMatches(fe)},U.prototype.whenNoAncestorMatches=function(fe){return this._bindingWhenSyntax.whenNoAncestorMatches(fe)},U.prototype.onActivation=function(fe){return this._bindingOnSyntax.onActivation(fe)},U}();ee.BindingInWhenOnSyntax=le},37326:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BindingOnSyntax=void 0;var q=L(64957),he=function(){function _(le){this._binding=le}return _.prototype.onActivation=function(le){return this._binding.onActivation=le,new q.BindingWhenSyntax(this._binding)},_}();ee.BindingOnSyntax=he},43085:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BindingToSyntax=void 0;var q=L(52050),he=L(88795),_=L(48971),le=L(65408),U=function(){function fe(se){this._binding=se}return fe.prototype.to=function(se){return this._binding.type=he.BindingTypeEnum.Instance,this._binding.implementationType=se,new _.BindingInWhenOnSyntax(this._binding)},fe.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+q.INVALID_TO_SELF_VALUE);var se=this._binding.serviceIdentifier;return this.to(se)},fe.prototype.toConstantValue=function(se){return this._binding.type=he.BindingTypeEnum.ConstantValue,this._binding.cache=se,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=he.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},fe.prototype.toDynamicValue=function(se){return this._binding.type=he.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=se,this._binding.implementationType=null,new _.BindingInWhenOnSyntax(this._binding)},fe.prototype.toConstructor=function(se){return this._binding.type=he.BindingTypeEnum.Constructor,this._binding.implementationType=se,this._binding.scope=he.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},fe.prototype.toFactory=function(se){return this._binding.type=he.BindingTypeEnum.Factory,this._binding.factory=se,this._binding.scope=he.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},fe.prototype.toFunction=function(se){if(typeof se!="function")throw new Error(q.INVALID_FUNCTION_BINDING);var Qe=this.toConstantValue(se);return this._binding.type=he.BindingTypeEnum.Function,this._binding.scope=he.BindingScopeEnum.Singleton,Qe},fe.prototype.toAutoFactory=function(se){return this._binding.type=he.BindingTypeEnum.Factory,this._binding.factory=function(Qe){var ae=function(){return Qe.container.get(se)};return ae},this._binding.scope=he.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},fe.prototype.toProvider=function(se){return this._binding.type=he.BindingTypeEnum.Provider,this._binding.provider=se,this._binding.scope=he.BindingScopeEnum.Singleton,new le.BindingWhenOnSyntax(this._binding)},fe.prototype.toService=function(se){this.toDynamicValue(function(Qe){return Qe.container.get(se)})},fe}();ee.BindingToSyntax=U},65408:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BindingWhenOnSyntax=void 0;var q=L(37326),he=L(64957),_=function(){function le(U){this._binding=U,this._bindingWhenSyntax=new he.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new q.BindingOnSyntax(this._binding)}return le.prototype.when=function(U){return this._bindingWhenSyntax.when(U)},le.prototype.whenTargetNamed=function(U){return this._bindingWhenSyntax.whenTargetNamed(U)},le.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},le.prototype.whenTargetTagged=function(U,fe){return this._bindingWhenSyntax.whenTargetTagged(U,fe)},le.prototype.whenInjectedInto=function(U){return this._bindingWhenSyntax.whenInjectedInto(U)},le.prototype.whenParentNamed=function(U){return this._bindingWhenSyntax.whenParentNamed(U)},le.prototype.whenParentTagged=function(U,fe){return this._bindingWhenSyntax.whenParentTagged(U,fe)},le.prototype.whenAnyAncestorIs=function(U){return this._bindingWhenSyntax.whenAnyAncestorIs(U)},le.prototype.whenNoAncestorIs=function(U){return this._bindingWhenSyntax.whenNoAncestorIs(U)},le.prototype.whenAnyAncestorNamed=function(U){return this._bindingWhenSyntax.whenAnyAncestorNamed(U)},le.prototype.whenAnyAncestorTagged=function(U,fe){return this._bindingWhenSyntax.whenAnyAncestorTagged(U,fe)},le.prototype.whenNoAncestorNamed=function(U){return this._bindingWhenSyntax.whenNoAncestorNamed(U)},le.prototype.whenNoAncestorTagged=function(U,fe){return this._bindingWhenSyntax.whenNoAncestorTagged(U,fe)},le.prototype.whenAnyAncestorMatches=function(U){return this._bindingWhenSyntax.whenAnyAncestorMatches(U)},le.prototype.whenNoAncestorMatches=function(U){return this._bindingWhenSyntax.whenNoAncestorMatches(U)},le.prototype.onActivation=function(U){return this._bindingOnSyntax.onActivation(U)},le}();ee.BindingWhenOnSyntax=_},64957:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BindingWhenSyntax=void 0;var q=L(37326),he=L(18307),_=function(){function le(U){this._binding=U}return le.prototype.when=function(U){return this._binding.constraint=U,new q.BindingOnSyntax(this._binding)},le.prototype.whenTargetNamed=function(U){return this._binding.constraint=he.namedConstraint(U),new q.BindingOnSyntax(this._binding)},le.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(U){var fe=U.target!==null&&!U.target.isNamed()&&!U.target.isTagged();return fe},new q.BindingOnSyntax(this._binding)},le.prototype.whenTargetTagged=function(U,fe){return this._binding.constraint=he.taggedConstraint(U)(fe),new q.BindingOnSyntax(this._binding)},le.prototype.whenInjectedInto=function(U){return this._binding.constraint=function(fe){return he.typeConstraint(U)(fe.parentRequest)},new q.BindingOnSyntax(this._binding)},le.prototype.whenParentNamed=function(U){return this._binding.constraint=function(fe){return he.namedConstraint(U)(fe.parentRequest)},new q.BindingOnSyntax(this._binding)},le.prototype.whenParentTagged=function(U,fe){return this._binding.constraint=function(se){return he.taggedConstraint(U)(fe)(se.parentRequest)},new q.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorIs=function(U){return this._binding.constraint=function(fe){return he.traverseAncerstors(fe,he.typeConstraint(U))},new q.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorIs=function(U){return this._binding.constraint=function(fe){return!he.traverseAncerstors(fe,he.typeConstraint(U))},new q.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorNamed=function(U){return this._binding.constraint=function(fe){return he.traverseAncerstors(fe,he.namedConstraint(U))},new q.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorNamed=function(U){return this._binding.constraint=function(fe){return!he.traverseAncerstors(fe,he.namedConstraint(U))},new q.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorTagged=function(U,fe){return this._binding.constraint=function(se){return he.traverseAncerstors(se,he.taggedConstraint(U)(fe))},new q.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorTagged=function(U,fe){return this._binding.constraint=function(se){return!he.traverseAncerstors(se,he.taggedConstraint(U)(fe))},new q.BindingOnSyntax(this._binding)},le.prototype.whenAnyAncestorMatches=function(U){return this._binding.constraint=function(fe){return he.traverseAncerstors(fe,U)},new q.BindingOnSyntax(this._binding)},le.prototype.whenNoAncestorMatches=function(U){return this._binding.constraint=function(fe){return!he.traverseAncerstors(fe,U)},new q.BindingOnSyntax(this._binding)},le}();ee.BindingWhenSyntax=_},18307:function(rr,ee,L){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.typeConstraint=ee.namedConstraint=ee.taggedConstraint=ee.traverseAncerstors=void 0;var q=L(91193),he=L(55650),_=function(se,Qe){var ae=se.parentRequest;return ae!==null?Qe(ae)?!0:_(ae,Qe):!1};ee.traverseAncerstors=_;var le=function(se){return function(Qe){var ae=function(et){return et!==null&&et.target!==null&&et.target.matchesTag(se)(Qe)};return ae.metaData=new he.Metadata(se,Qe),ae}};ee.taggedConstraint=le;var U=le(q.NAMED_TAG);ee.namedConstraint=U;var fe=function(se){return function(Qe){var ae=null;if(Qe!==null)if(ae=Qe.bindings[0],typeof se=="string"){var et=ae.serviceIdentifier;return et===se}else{var dt=Qe.bindings[0].implementationType;return se===dt}return!1}};ee.typeConstraint=fe},55605:function(rr,ee){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.multiBindToService=void 0;var L=function(q){return function(he){return function(){for(var _=[],le=0;le ")}function fe(ae){ae.childRequests.forEach(function(et){if(le(et,et.serviceIdentifier)){var dt=U(et);throw new Error(q.CIRCULAR_DEPENDENCY+" "+dt)}else fe(et)})}ee.circularDependencyToException=fe;function se(ae,et){if(et.isTagged()||et.isNamed()){var dt="",Ye=et.getNamedTag(),wt=et.getCustomTags();return Ye!==null&&(dt+=Ye.toString()+` +`),wt!==null&&wt.forEach(function(Xt){dt+=Xt.toString()+` +`})," "+ae+` + `+ae+" - "+dt}else return" "+ae}ee.listMetadataForTarget=se;function Qe(ae){if(ae.name)return ae.name;var et=ae.toString(),dt=et.match(/^function\s*([^\s(]+)/);return dt?dt[1]:"Anonymous function: "+et}ee.getFunctionName=Qe},91746:function(rr,ee,L){var q=L(28889);function he(_,le){var U=_==null?0:_.length;return!!U&&q(_,le,0)>-1}rr.exports=he},88416:function(rr){function ee(L,q,he){for(var _=-1,le=L==null?0:L.length;++_=q?L:q)),L}rr.exports=ee},31187:function(rr){function ee(L,q,he,_){for(var le=L.length,U=he+(_?1:-1);_?U--:++U-1;)nr!==ae&&se.call(nr,Vt,1),se.call(ae,Vt,1);return ae}rr.exports=Qe},90798:function(rr,ee,L){var q=L(89023),he=L(91746),_=L(88416),le=L(32959),U=L(51407),fe=L(13772),se=200;function Qe(ae,et,dt){var Ye=-1,wt=he,Xt=ae.length,Zt=!0,nr=[],Vt=nr;if(dt)Zt=!1,wt=_;else if(Xt>=se){var xt=et?null:U(ae);if(xt)return fe(xt);Zt=!1,wt=le,Vt=new q}else Vt=et?[]:nr;e:for(;++Ye(m=1))return m;for(;cE?c=x:m=x,x=.5*(m-c)+c}return x},fe.prototype.solve=function(a,u){return this.sampleCurveY(this.solveCurveX(a,u))};var se=Qe;function Qe(a,u){this.x=a,this.y=u}Qe.prototype={clone:function(){return new Qe(this.x,this.y)},add:function(a){return this.clone()._add(a)},sub:function(a){return this.clone()._sub(a)},multByPoint:function(a){return this.clone()._multByPoint(a)},divByPoint:function(a){return this.clone()._divByPoint(a)},mult:function(a){return this.clone()._mult(a)},div:function(a){return this.clone()._div(a)},rotate:function(a){return this.clone()._rotate(a)},rotateAround:function(a,u){return this.clone()._rotateAround(a,u)},matMult:function(a){return this.clone()._matMult(a)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(a){return this.x===a.x&&this.y===a.y},dist:function(a){return Math.sqrt(this.distSqr(a))},distSqr:function(a){var u=a.x-this.x,c=a.y-this.y;return u*u+c*c},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(a){return Math.atan2(this.y-a.y,this.x-a.x)},angleWith:function(a){return this.angleWithSep(a.x,a.y)},angleWithSep:function(a,u){return Math.atan2(this.x*u-this.y*a,this.x*a+this.y*u)},_matMult:function(a){var u=a[2]*this.x+a[3]*this.y;return this.x=a[0]*this.x+a[1]*this.y,this.y=u,this},_add:function(a){return this.x+=a.x,this.y+=a.y,this},_sub:function(a){return this.x-=a.x,this.y-=a.y,this},_mult:function(a){return this.x*=a,this.y*=a,this},_div:function(a){return this.x/=a,this.y/=a,this},_multByPoint:function(a){return this.x*=a.x,this.y*=a.y,this},_divByPoint:function(a){return this.x/=a.x,this.y/=a.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var a=this.y;return this.y=this.x,this.x=-a,this},_rotate:function(a){var u=Math.cos(a),c=Math.sin(a),m=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=m,this},_rotateAround:function(a,u){var c=Math.cos(a),m=Math.sin(a),x=u.y+m*(this.x-u.x)+c*(this.y-u.y);return this.x=u.x+c*(this.x-u.x)-m*(this.y-u.y),this.y=x,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Qe.convert=function(a){return a instanceof Qe?a:Array.isArray(a)?new Qe(a[0],a[1]):a};var ae=typeof self!="undefined"?self:{},et=Math.pow(2,53)-1;function dt(a,u,c,m){var x=new U(a,u,c,m);return function(E){return x.solve(E)}}var Ye=dt(.25,.1,.25,1);function wt(a,u,c){return Math.min(c,Math.max(u,a))}function Xt(a,u,c){var m=c-u,x=((a-u)%m+m)%m+u;return x===u?c:x}function Zt(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];for(var m=0,x=u;m>u/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,a)}()}function bt(a){return!!a&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(a)}function Tr(a,u){a.forEach(function(c){u[c]&&(u[c]=u[c].bind(u))})}function hr(a,u){return a.indexOf(u,a.length-u.length)!==-1}function lr(a,u,c){var m={};for(var x in a)m[x]=u.call(c||this,a[x],x,a);return m}function At(a,u,c){var m={};for(var x in a)u.call(c||this,a[x],x,a)&&(m[x]=a[x]);return m}function ut(a){return Array.isArray(a)?a.map(ut):typeof a=="object"&&a?lr(a,ut):a}var It={};function qe(a){It[a]||(typeof console!="undefined"&&console.warn(a),It[a]=!0)}function Ct(a,u,c){return(c.y-a.y)*(u.x-a.x)>(u.y-a.y)*(c.x-a.x)}function fr(a){for(var u=0,c=0,m=a.length,x=m-1,E=void 0,A=void 0;c@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(m,x,E,A){var I=E||A;return u[x]=!I||I.toLowerCase(),""}),u["max-age"]){var c=parseInt(u["max-age"],10);isNaN(c)?delete u["max-age"]:u["max-age"]=c}return u}var K=null;function Me(a){if(K==null){var u=a.navigator?a.navigator.userAgent:null;K=!!a.safari||!(!u||!(/\b(iPad|iPhone|iPod)\b/.test(u)||u.match("Safari")&&!u.match("Chrome")))}return K}function Se(a){try{var u=ae[a];return u.setItem("_mapbox_test_",1),u.removeItem("_mapbox_test_"),!0}catch(c){return!1}}var nt,te,Ce,we,Xe=ae.performance&&ae.performance.now?ae.performance.now.bind(ae.performance):Date.now.bind(Date),Lt=ae.requestAnimationFrame||ae.mozRequestAnimationFrame||ae.webkitRequestAnimationFrame||ae.msRequestAnimationFrame,Ht=ae.cancelAnimationFrame||ae.mozCancelAnimationFrame||ae.webkitCancelAnimationFrame||ae.msCancelAnimationFrame,on={now:Xe,frame:function(a){var u=Lt(a);return{cancel:function(){return Ht(u)}}},getImageData:function(a,u){u===void 0&&(u=0);var c=ae.document.createElement("canvas"),m=c.getContext("2d");if(!m)throw new Error("failed to create canvas 2d context");return c.width=a.width,c.height=a.height,m.drawImage(a,0,0,a.width,a.height),m.getImageData(-u,-u,a.width+2*u,a.height+2*u)},resolveURL:function(a){return nt||(nt=ae.document.createElement("a")),nt.href=a,nt.href},hardwareConcurrency:ae.navigator&&ae.navigator.hardwareConcurrency||4,get devicePixelRatio(){return ae.devicePixelRatio},get prefersReducedMotion(){return!!ae.matchMedia&&(te==null&&(te=ae.matchMedia("(prefers-reduced-motion: reduce)")),te.matches)}},Jr={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Hr={supported:!1,testSupport:function(a){!Un&&we&&(bn?Kr(a):Ce=a)}},Un=!1,bn=!1;function Kr(a){var u=a.createTexture();a.bindTexture(a.TEXTURE_2D,u);try{if(a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,we),a.isContextLost())return;Hr.supported=!0}catch(c){}a.deleteTexture(u),Un=!0}ae.document&&((we=ae.document.createElement("img")).onload=function(){Ce&&Kr(Ce),Ce=null,bn=!0},we.onerror=function(){Un=!0,Ce=null},we.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var Mi="01",Si=function(a,u){this._transformRequestFn=a,this._customAccessToken=u,this._createSkuToken()};function Ri(a){return a.indexOf("mapbox:")===0}Si.prototype._createSkuToken=function(){var a=function(){for(var u="",c=0;c<10;c++)u+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Mi,u].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=a.token,this._skuTokenExpiresAt=a.tokenExpiresAt},Si.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Si.prototype.transformRequest=function(a,u){return this._transformRequestFn&&this._transformRequestFn(a,u)||{url:a}},Si.prototype.normalizeStyleURL=function(a,u){if(!Ri(a))return a;var c=Yi(a);return c.path="/styles/v1"+c.path,this._makeAPIURL(c,this._customAccessToken||u)},Si.prototype.normalizeGlyphsURL=function(a,u){if(!Ri(a))return a;var c=Yi(a);return c.path="/fonts/v1"+c.path,this._makeAPIURL(c,this._customAccessToken||u)},Si.prototype.normalizeSourceURL=function(a,u){if(!Ri(a))return a;var c=Yi(a);return c.path="/v4/"+c.authority+".json",c.params.push("secure"),this._makeAPIURL(c,this._customAccessToken||u)},Si.prototype.normalizeSpriteURL=function(a,u,c,m){var x=Yi(a);return Ri(a)?(x.path="/styles/v1"+x.path+"/sprite"+u+c,this._makeAPIURL(x,this._customAccessToken||m)):(x.path+=""+u+c,Na(x))},Si.prototype.normalizeTileURL=function(a,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),a&&!Ri(a))return a;var c=Yi(a);c.path=c.path.replace(/(\.(png|jpg)\d*)(?=$)/,(on.devicePixelRatio>=2||u===512?"@2x":"")+(Hr.supported?".webp":"$1")),c.path=c.path.replace(/^.+\/v4\//,"/"),c.path="/v4"+c.path;var m=this._customAccessToken||function(x){for(var E=0,A=x;E=0&&a.params.splice(x,1)}if(m.path!=="/"&&(a.path=""+m.path+a.path),!Jr.REQUIRE_ACCESS_TOKEN)return Na(a);if(!(u=u||Jr.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+c);if(u[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+c);return a.params=a.params.filter(function(E){return E.indexOf("access_token")===-1}),a.params.push("access_token="+u),Na(a)};var Gn=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Dn(a){return Gn.test(a)}var Ya=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Yi(a){var u=a.match(Ya);if(!u)throw new Error("Unable to parse URL object");return{protocol:u[1],authority:u[2],path:u[3]||"/",params:u[4]?u[4].split("&"):[]}}function Na(a){var u=a.params.length?"?"+a.params.join("&"):"";return a.protocol+"://"+a.authority+a.path+u}function Dt(a){if(!a)return null;var u=a.split(".");if(!u||u.length!==3)return null;try{return JSON.parse(decodeURIComponent(ae.atob(u[1]).split("").map(function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(c){return null}}var k=function(a){this.type=a,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};k.prototype.getStorageKey=function(a){var u,c=Dt(Jr.ACCESS_TOKEN);return u=c&&c.u?ae.btoa(encodeURIComponent(c.u).replace(/%([0-9A-F]{2})/g,function(m,x){return String.fromCharCode(+("0x"+x))})):Jr.ACCESS_TOKEN||"",a?"mapbox.eventData."+a+":"+u:"mapbox.eventData:"+u},k.prototype.fetchEventData=function(){var a=Se("localStorage"),u=this.getStorageKey(),c=this.getStorageKey("uuid");if(a)try{var m=ae.localStorage.getItem(u);m&&(this.eventData=JSON.parse(m));var x=ae.localStorage.getItem(c);x&&(this.anonId=x)}catch(E){qe("Unable to read from LocalStorage")}},k.prototype.saveEventData=function(){var a=Se("localStorage"),u=this.getStorageKey(),c=this.getStorageKey("uuid");if(a)try{ae.localStorage.setItem(c,this.anonId),Object.keys(this.eventData).length>=1&&ae.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(m){qe("Unable to write to LocalStorage")}},k.prototype.processRequests=function(a){},k.prototype.postEvent=function(a,u,c,m){var x=this;if(Jr.EVENTS_URL){var E=Yi(Jr.EVENTS_URL);E.params.push("access_token="+(m||Jr.ACCESS_TOKEN||""));var A={event:this.type,created:new Date(a).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:Mi,userId:this.anonId},I=u?Zt(A,u):A,D={url:Na(E),headers:{"Content-Type":"text/plain"},body:JSON.stringify([I])};this.pendingRequest=hi(D,function(N){x.pendingRequest=null,c(N),x.saveEventData(),x.processRequests(m)})}},k.prototype.queueRequest=function(a,u){this.queue.push(a),this.processRequests(u)};var ie,ve,Ze=function(a){function u(){a.call(this,"map.load"),this.success={},this.skuToken=""}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.postMapLoadEvent=function(c,m,x,E){this.skuToken=x;var A=!(!E&&!Jr.ACCESS_TOKEN),I=Array.isArray(c)&&c.some(function(D){return Ri(D)||Dn(D)});Jr.EVENTS_URL&&A&&I&&this.queueRequest({id:m,timestamp:Date.now()},E)},u.prototype.processRequests=function(c){var m=this;if(!this.pendingRequest&&this.queue.length!==0){var x=this.queue.shift(),E=x.id,A=x.timestamp;E&&this.success[E]||(this.anonId||this.fetchEventData(),bt(this.anonId)||(this.anonId=xt()),this.postEvent(A,{skuToken:this.skuToken},function(I){I||E&&(m.success[E]=!0)},c))}},u}(k),_t=new(function(a){function u(c){a.call(this,"appUserTurnstile"),this._customAccessToken=c}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.postTurnstileEvent=function(c,m){Jr.EVENTS_URL&&Jr.ACCESS_TOKEN&&Array.isArray(c)&&c.some(function(x){return Ri(x)||Dn(x)})&&this.queueRequest(Date.now(),m)},u.prototype.processRequests=function(c){var m=this;if(!this.pendingRequest&&this.queue.length!==0){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var x=Dt(Jr.ACCESS_TOKEN),E=x?x.u:Jr.ACCESS_TOKEN,A=E!==this.eventData.tokenU;bt(this.anonId)||(this.anonId=xt(),A=!0);var I=this.queue.shift();if(this.eventData.lastSuccess){var D=new Date(this.eventData.lastSuccess),N=new Date(I),H=(I-this.eventData.lastSuccess)/864e5;A=A||H>=1||H<-1||D.getDate()!==N.getDate()}else A=!0;if(!A)return this.processRequests();this.postEvent(I,{"enabled.telemetry":!1},function(X){X||(m.eventData.lastSuccess=I,m.eventData.tokenU=E)},c)}},u}(k)),Wt=_t.postTurnstileEvent.bind(_t),Sr=new Ze,He=Sr.postMapLoadEvent.bind(Sr),Et=500,cr=50;function mr(){ae.caches&&!ie&&(ie=ae.caches.open("mapbox-tiles"))}function Zr(a){var u=a.indexOf("?");return u<0?a:a.slice(0,u)}var Fn,En=1/0;function Cn(){return Fn==null&&(Fn=ae.OffscreenCanvas&&new ae.OffscreenCanvas(1,1).getContext("2d")&&typeof ae.createImageBitmap=="function"),Fn}var fn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(fn);var ni=function(a){function u(c,m,x){m===401&&Dn(x)&&(c+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),a.call(this,c),this.status=m,this.url=x,this.name=this.constructor.name,this.message=c}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},u}(Error),Yn=re()?function(){return self.worker&&self.worker.referrer}:function(){return(ae.location.protocol==="blob:"?ae.parent:ae).location.href},oa,Qi,lo=function(a,u){if(!(/^file:/.test(c=a.url)||/^file:/.test(Yn())&&!/^\w+:/.test(c))){if(ae.fetch&&ae.Request&&ae.AbortController&&ae.Request.prototype.hasOwnProperty("signal"))return function(m,x){var E,A=new ae.AbortController,I=new ae.Request(m.url,{method:m.method||"GET",body:m.body,credentials:m.credentials,headers:m.headers,referrer:Yn(),signal:A.signal}),D=!1,N=!1,H=(E=I.url).indexOf("sku=")>0&&Dn(E);m.type==="json"&&I.headers.set("Accept","application/json");var X=function(R,Pe,Be){if(!N){if(R&&R.message!=="SecurityError"&&qe(R),Pe&&Be)return ne(Pe);var rt=Date.now();ae.fetch(I).then(function(Ge){if(Ge.ok){var St=H?Ge.clone():null;return ne(Ge,St,rt)}return x(new ni(Ge.statusText,Ge.status,m.url))}).catch(function(Ge){Ge.code!==20&&x(new Error(Ge.message))})}},ne=function(R,Pe,Be){(m.type==="arrayBuffer"?R.arrayBuffer():m.type==="json"?R.json():R.text()).then(function(rt){N||(Pe&&Be&&function(Ge,St,Ft){if(mr(),ie){var Yt={status:St.status,statusText:St.statusText,headers:new ae.Headers};St.headers.forEach(function(dr,Lr){return Yt.headers.set(Lr,dr)});var qt=V(St.headers.get("Cache-Control")||"");qt["no-store"]||(qt["max-age"]&&Yt.headers.set("Expires",new Date(Ft+1e3*qt["max-age"]).toUTCString()),new Date(Yt.headers.get("Expires")).getTime()-Ft<42e4||function(dr,Lr){if(ve===void 0)try{new Response(new ReadableStream),ve=!0}catch(Xr){ve=!1}ve?Lr(dr.body):dr.blob().then(Lr)}(St,function(dr){var Lr=new ae.Response(dr,Yt);mr(),ie&&ie.then(function(Xr){return Xr.put(Zr(Ge.url),Lr)}).catch(function(Xr){return qe(Xr.message)})}))}}(I,Pe,Be),D=!0,x(null,rt,R.headers.get("Cache-Control"),R.headers.get("Expires")))}).catch(function(rt){N||x(new Error(rt.message))})};return H?function(R,Pe){if(mr(),!ie)return Pe(null);var Be=Zr(R.url);ie.then(function(rt){rt.match(Be).then(function(Ge){var St=function(Ft){if(!Ft)return!1;var Yt=new Date(Ft.headers.get("Expires")||0),qt=V(Ft.headers.get("Cache-Control")||"");return Yt>Date.now()&&!qt["no-cache"]}(Ge);rt.delete(Be),St&&rt.put(Be,Ge.clone()),Pe(null,Ge,St)}).catch(Pe)}).catch(Pe)}(I,X):X(null,null),{cancel:function(){N=!0,D||A.abort()}}}(a,u);if(re()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",a,u,void 0,!0)}var c;return function(m,x){var E=new ae.XMLHttpRequest;for(var A in E.open(m.method||"GET",m.url,!0),m.type==="arrayBuffer"&&(E.responseType="arraybuffer"),m.headers)E.setRequestHeader(A,m.headers[A]);return m.type==="json"&&(E.responseType="text",E.setRequestHeader("Accept","application/json")),E.withCredentials=m.credentials==="include",E.onerror=function(){x(new Error(E.statusText))},E.onload=function(){if((E.status>=200&&E.status<300||E.status===0)&&E.response!==null){var I=E.response;if(m.type==="json")try{I=JSON.parse(E.response)}catch(D){return x(D)}x(null,I,E.getResponseHeader("Cache-Control"),E.getResponseHeader("Expires"))}else x(new ni(E.statusText,E.status,m.url))},E.send(m.body),{cancel:function(){return E.abort()}}}(a,u)},Is=function(a,u){return lo(Zt(a,{type:"arrayBuffer"}),u)},hi=function(a,u){return lo(Zt(a,{method:"POST"}),u)},W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";oa=[],Qi=0;var J=function(a,u){if(Hr.supported&&(a.headers||(a.headers={}),a.headers.accept="image/webp,*/*"),Qi>=Jr.MAX_PARALLEL_IMAGE_REQUESTS){var c={requestParameters:a,callback:u,cancelled:!1,cancel:function(){this.cancelled=!0}};return oa.push(c),c}Qi++;var m=!1,x=function(){if(!m)for(m=!0,Qi--;oa.length&&Qi0||this._oneTimeListeners&&this._oneTimeListeners[a]&&this._oneTimeListeners[a].length>0||this._eventedParent&&this._eventedParent.listens(a)},pt.prototype.setEventedParent=function(a,u){return this._eventedParent=a,this._eventedParentData=u,this};var j={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Q=function(a,u,c,m){this.message=(a?a+": ":"")+c,m&&(this.identifier=m),u!=null&&u.__line__&&(this.line=u.__line__)};function Le(a){var u=a.value;return u?[new Q(a.key,u,"constants have been deprecated as of v8")]:[]}function at(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];for(var m=0,x=u;m":a.itemType.kind==="value"?"array":"array<"+u+">"}return a.kind}var Xo=[sn,sr,en,Wr,Yr,qi,pi,zi(tn),ci];function Ji(a,u){if(u.kind==="error")return null;if(a.kind==="array"){if(u.kind==="array"&&(u.N===0&&u.itemType.kind==="value"||!Ji(a.itemType,u.itemType))&&(typeof a.N!="number"||a.N===u.N))return null}else{if(a.kind===u.kind)return null;if(a.kind==="value"){for(var c=0,m=Xo;c255?255:I}function x(I){return m(I[I.length-1]==="%"?parseFloat(I)/100*255:parseInt(I))}function E(I){return(D=I[I.length-1]==="%"?parseFloat(I)/100:parseFloat(I))<0?0:D>1?1:D;var D}function A(I,D,N){return N<0?N+=1:N>1&&(N-=1),6*N<1?I+(D-I)*N*6:2*N<1?D:3*N<2?I+(D-I)*(2/3-N)*6:I}try{u.parseCSSColor=function(I){var D,N=I.replace(/ /g,"").toLowerCase();if(N in c)return c[N].slice();if(N[0]==="#")return N.length===4?(D=parseInt(N.substr(1),16))>=0&&D<=4095?[(3840&D)>>4|(3840&D)>>8,240&D|(240&D)>>4,15&D|(15&D)<<4,1]:null:N.length===7&&(D=parseInt(N.substr(1),16))>=0&&D<=16777215?[(16711680&D)>>16,(65280&D)>>8,255&D,1]:null;var H=N.indexOf("("),X=N.indexOf(")");if(H!==-1&&X+1===N.length){var ne=N.substr(0,H),R=N.substr(H+1,X-(H+1)).split(","),Pe=1;switch(ne){case"rgba":if(R.length!==4)return null;Pe=E(R.pop());case"rgb":return R.length!==3?null:[x(R[0]),x(R[1]),x(R[2]),Pe];case"hsla":if(R.length!==4)return null;Pe=E(R.pop());case"hsl":if(R.length!==3)return null;var Be=(parseFloat(R[0])%360+360)%360/360,rt=E(R[1]),Ge=E(R[2]),St=Ge<=.5?Ge*(rt+1):Ge+rt-Ge*rt,Ft=2*Ge-St;return[m(255*A(Ft,St,Be+1/3)),m(255*A(Ft,St,Be)),m(255*A(Ft,St,Be-1/3)),Pe];default:return null}}return null}}catch(I){}}).parseCSSColor,wi=function(a,u,c,m){m===void 0&&(m=1),this.r=a,this.g=u,this.b=c,this.a=m};wi.parse=function(a){if(a){if(a instanceof wi)return a;if(typeof a=="string"){var u=mi(a);if(u)return new wi(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},wi.prototype.toString=function(){var a=this.toArray(),u=a[1],c=a[2],m=a[3];return"rgba("+Math.round(a[0])+","+Math.round(u)+","+Math.round(c)+","+m+")"},wi.prototype.toArray=function(){var a=this.a;return a===0?[0,0,0,0]:[255*this.r/a,255*this.g/a,255*this.b/a,a]},wi.black=new wi(0,0,0,1),wi.white=new wi(1,1,1,1),wi.transparent=new wi(0,0,0,0),wi.red=new wi(1,0,0,1);var Pa=function(a,u,c){this.sensitivity=a?u?"variant":"case":u?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Pa.prototype.compare=function(a,u){return this.collator.compare(a,u)},Pa.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var cu=function(a,u,c,m,x){this.text=a,this.image=u,this.scale=c,this.fontStack=m,this.textColor=x},ma=function(a){this.sections=a};ma.fromString=function(a){return new ma([new cu(a,null,null,null,null)])},ma.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(a){return a.text.length!==0||a.image&&a.image.name.length!==0})},ma.factory=function(a){return a instanceof ma?a:ma.fromString(a)},ma.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(a){return a.text}).join("")},ma.prototype.serialize=function(){for(var a=["format"],u=0,c=this.sections;u=0&&a<=255&&typeof u=="number"&&u>=0&&u<=255&&typeof c=="number"&&c>=0&&c<=255?m===void 0||typeof m=="number"&&m>=0&&m<=1?null:"Invalid rgba value ["+[a,u,c,m].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof m=="number"?[a,u,c,m]:[a,u,c]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function os(a){if(a===null||typeof a=="string"||typeof a=="boolean"||typeof a=="number"||a instanceof wi||a instanceof Pa||a instanceof ma||a instanceof Aa)return!0;if(Array.isArray(a)){for(var u=0,c=a;u2){var I=a[1];if(typeof I!="string"||!(I in Ao)||I==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);E=Ao[I],m++}else E=tn;if(a.length>3){if(a[2]!==null&&(typeof a[2]!="number"||a[2]<0||a[2]!==Math.floor(a[2])))return u.error('The length argument to "array" must be a positive integer literal',2);A=a[2],m++}c=zi(E,A)}else c=Ao[x];for(var D=[];m1)&&u.push(m)}}return u.concat(this.args.map(function(x){return x.serialize()}))};var $o=function(a){this.type=qi,this.sections=a};$o.parse=function(a,u){if(a.length<2)return u.error("Expected at least one argument.");var c=a[1];if(!Array.isArray(c)&&typeof c=="object")return u.error("First argument must be an image or text section.");for(var m=[],x=!1,E=1;E<=a.length-1;++E){var A=a[E];if(x&&typeof A=="object"&&!Array.isArray(A)){x=!1;var I=null;if(A["font-scale"]&&!(I=u.parse(A["font-scale"],1,sr)))return null;var D=null;if(A["text-font"]&&!(D=u.parse(A["text-font"],1,zi(en))))return null;var N=null;if(A["text-color"]&&!(N=u.parse(A["text-color"],1,Yr)))return null;var H=m[m.length-1];H.scale=I,H.font=D,H.textColor=N}else{var X=u.parse(a[E],1,tn);if(!X)return null;var ne=X.type.kind;if(ne!=="string"&&ne!=="value"&&ne!=="null"&&ne!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");x=!0,m.push({content:X,scale:null,font:null,textColor:null})}}return new $o(m)},$o.prototype.evaluate=function(a){return new ma(this.sections.map(function(u){var c=u.content.evaluate(a);return Ta(c)===ci?new cu("",c,null,null,null):new cu(fi(c),null,u.scale?u.scale.evaluate(a):null,u.font?u.font.evaluate(a).join(","):null,u.textColor?u.textColor.evaluate(a):null)}))},$o.prototype.eachChild=function(a){for(var u=0,c=this.sections;u-1),c},Vo.prototype.eachChild=function(a){a(this.input)},Vo.prototype.outputDefined=function(){return!1},Vo.prototype.serialize=function(){return["image",this.input.serialize()]};var Ru={"to-boolean":Wr,"to-color":Yr,"to-number":sr,"to-string":en},ss=function(a,u){this.type=a,this.args=u};ss.parse=function(a,u){if(a.length<2)return u.error("Expected at least one argument.");var c=a[0];if((c==="to-boolean"||c==="to-string")&&a.length!==2)return u.error("Expected one argument.");for(var m=Ru[c],x=[],E=1;E4?"Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":$l(u[0],u[1],u[2],u[3])))return new wi(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new sa(c||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}if(this.type.kind==="number"){for(var A=null,I=0,D=this.args;I=u[2]||a[1]<=u[1]||a[3]>=u[3])}function Re(a,u){var c=(180+a[0])/360,m=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a[1]*Math.PI/360)))/360,x=Math.pow(2,u.z);return[Math.round(c*x*8192),Math.round(m*x*8192)]}function ct(a,u,c){return u[1]>a[1]!=c[1]>a[1]&&a[0]<(c[0]-u[0])*(a[1]-u[1])/(c[1]-u[1])+u[0]}function or(a,u){for(var c,m,x,E,A,I,D,N=!1,H=0,X=u.length;H0&&I<0||A<0&&I>0}function Hi(a,u,c){for(var m=0,x=c;mc[2]){var x=.5*m,E=a[0]-c[0]>x?-m:c[0]-a[0]>x?m:0;E===0&&(E=a[0]-c[2]>x?-m:c[2]-a[0]>x?m:0),a[0]+=E}Sn(u,a)}function Kh(a,u,c,m){for(var x=8192*Math.pow(2,m.z),E=[8192*m.x,8192*m.y],A=[],I=0,D=a;I=0)return!1;var c=!0;return a.eachChild(function(m){c&&!Mu(m,u)&&(c=!1)}),c}jo.parse=function(a,u){if(a.length!==2)return u.error("'within' expression requires exactly one argument, but found "+(a.length-1)+" instead.");if(os(a[1])){var c=a[1];if(c.type==="FeatureCollection")for(var m=0;mu))throw new sa("Input is not a number.");E=A-1}return 0}Qu.prototype.parse=function(a,u,c,m,x){return x===void 0&&(x={}),u?this.concat(u,c,m)._parse(a,x):this._parse(a,x)},Qu.prototype._parse=function(a,u){function c(N,H,X){return X==="assert"?new ha(H,[N]):X==="coerce"?new ss(H,[N]):N}if(a!==null&&typeof a!="string"&&typeof a!="boolean"&&typeof a!="number"||(a=["literal",a]),Array.isArray(a)){if(a.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var m=a[0];if(typeof m!="string")return this.error("Expression name must be a string, but found "+typeof m+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var x=this.registry[m];if(x){var E=x.parse(a,this);if(!E)return null;if(this.expectedType){var A=this.expectedType,I=E.type;if(A.kind!=="string"&&A.kind!=="number"&&A.kind!=="boolean"&&A.kind!=="object"&&A.kind!=="array"||I.kind!=="value")if(A.kind!=="color"&&A.kind!=="formatted"&&A.kind!=="resolvedImage"||I.kind!=="value"&&I.kind!=="string"){if(this.checkSubtype(A,I))return null}else E=c(E,A,u.typeAnnotation||"coerce");else E=c(E,A,u.typeAnnotation||"assert")}if(!(E instanceof Oa)&&E.type.kind!=="resolvedImage"&&function N(H){if(H instanceof Iu)return N(H.boundExpression);if(H instanceof ea&&H.name==="error"||H instanceof Kt||H instanceof jo)return!1;var X=H instanceof ss||H instanceof ha,ne=!0;return H.eachChild(function(R){ne=X?ne&&N(R):ne&&R instanceof Oa}),!!ne&&xl(H)&&Mu(H,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(E)){var D=new Ea;try{E=new Oa(E.type,E.evaluate(D))}catch(N){return this.error(N.message),null}}return E}return this.error('Unknown expression "'+m+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(a===void 0?"'undefined' value invalid. Use null instead.":typeof a=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof a+" instead.")},Qu.prototype.concat=function(a,u,c){var m=typeof a=="number"?this.path.concat(a):this.path,x=c?this.scope.concat(c):this.scope;return new Qu(this.registry,m,u||null,x,this.errors)},Qu.prototype.error=function(a){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];var m=""+this.key+u.map(function(x){return"["+x+"]"}).join("");this.errors.push(new wr(m,a))},Qu.prototype.checkSubtype=function(a,u){var c=Ji(a,u);return c&&this.error(c),c};var Os=function(a,u,c){this.type=a,this.input=u,this.labels=[],this.outputs=[];for(var m=0,x=c;m=A)return u.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',D);var H=u.parse(I,N,x);if(!H)return null;x=x||H.type,m.push([A,H])}return new Os(x,c,m)},Os.prototype.evaluate=function(a){var u=this.labels,c=this.outputs;if(u.length===1)return c[0].evaluate(a);var m=this.input.evaluate(a);if(m<=u[0])return c[0].evaluate(a);var x=u.length;return m>=u[x-1]?c[x-1].evaluate(a):c[Qc(u,m)].evaluate(a)},Os.prototype.eachChild=function(a){a(this.input);for(var u=0,c=this.outputs;u0&&a.push(this.labels[u]),a.push(this.outputs[u].serialize());return a};var El=Object.freeze({__proto__:null,number:qa,color:function(a,u,c){return new wi(qa(a.r,u.r,c),qa(a.g,u.g,c),qa(a.b,u.b,c),qa(a.a,u.a,c))},array:function(a,u,c){return a.map(function(m,x){return qa(m,u[x],c)})}}),Ju=6/29*3*(6/29),Rf=Math.PI/180,Qh=180/Math.PI;function Mf(a){return a>.008856451679035631?Math.pow(a,1/3):a/Ju+4/29}function ph(a){return a>6/29?a*a*a:Ju*(a-4/29)}function dh(a){return 255*(a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}function vh(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Jh(a){var u=vh(a.r),c=vh(a.g),m=vh(a.b),x=Mf((.4124564*u+.3575761*c+.1804375*m)/.95047),E=Mf((.2126729*u+.7151522*c+.072175*m)/1);return{l:116*E-16,a:500*(x-E),b:200*(E-Mf((.0193339*u+.119192*c+.9503041*m)/1.08883)),alpha:a.a}}function ep(a){var u=(a.l+16)/116,c=isNaN(a.a)?u:u+a.a/500,m=isNaN(a.b)?u:u-a.b/200;return u=1*ph(u),c=.95047*ph(c),m=1.08883*ph(m),new wi(dh(3.2404542*c-1.5371385*u-.4985314*m),dh(-.969266*c+1.8760108*u+.041556*m),dh(.0556434*c-.2040259*u+1.0572252*m),a.alpha)}function Zp(a,u,c){var m=u-a;return a+c*(m>180||m<-180?m-360*Math.round(m/360):m)}var Jc={forward:Jh,reverse:ep,interpolate:function(a,u,c){return{l:qa(a.l,u.l,c),a:qa(a.a,u.a,c),b:qa(a.b,u.b,c),alpha:qa(a.alpha,u.alpha,c)}}},Pu={forward:function(a){var u=Jh(a),c=u.l,m=u.a,x=u.b,E=Math.atan2(x,m)*Qh;return{h:E<0?E+360:E,c:Math.sqrt(m*m+x*x),l:c,alpha:a.a}},reverse:function(a){var u=a.h*Rf,c=a.c;return ep({l:a.l,a:Math.cos(u)*c,b:Math.sin(u)*c,alpha:a.alpha})},interpolate:function(a,u,c){return{h:Zp(a.h,u.h,c),c:qa(a.c,u.c,c),l:qa(a.l,u.l,c),alpha:qa(a.alpha,u.alpha,c)}}},tp=Object.freeze({__proto__:null,lab:Jc,hcl:Pu}),Ho=function(a,u,c,m,x){this.type=a,this.operator=u,this.interpolation=c,this.input=m,this.labels=[],this.outputs=[];for(var E=0,A=x;E1}))return u.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);m={name:"cubic-bezier",controlPoints:I}}if(a.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(a.length-1)+".");if((a.length-1)%2!=0)return u.error("Expected an even number of arguments.");if(!(x=u.parse(x,2,sr)))return null;var D=[],N=null;c==="interpolate-hcl"||c==="interpolate-lab"?N=Yr:u.expectedType&&u.expectedType.kind!=="value"&&(N=u.expectedType);for(var H=0;H=X)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',R);var Be=u.parse(ne,Pe,N);if(!Be)return null;N=N||Be.type,D.push([X,Be])}return N.kind==="number"||N.kind==="color"||N.kind==="array"&&N.itemType.kind==="number"&&typeof N.N=="number"?new Ho(N,c,m,x,D):u.error("Type "+Ai(N)+" is not interpolatable.")},Ho.prototype.evaluate=function(a){var u=this.labels,c=this.outputs;if(u.length===1)return c[0].evaluate(a);var m=this.input.evaluate(a);if(m<=u[0])return c[0].evaluate(a);var x=u.length;if(m>=u[x-1])return c[x-1].evaluate(a);var E=Qc(u,m),A=Ho.interpolationFactor(this.interpolation,m,u[E],u[E+1]),I=c[E].evaluate(a),D=c[E+1].evaluate(a);return this.operator==="interpolate"?El[this.type.kind.toLowerCase()](I,D,A):this.operator==="interpolate-hcl"?Pu.reverse(Pu.interpolate(Pu.forward(I),Pu.forward(D),A)):Jc.reverse(Jc.interpolate(Jc.forward(I),Jc.forward(D),A))},Ho.prototype.eachChild=function(a){a(this.input);for(var u=0,c=this.outputs;u=c.length)throw new sa("Array index out of bounds: "+u+" > "+(c.length-1)+".");if(u!==Math.floor(u))throw new sa("Array index must be an integer, but found "+u+" instead.");return c[u]},Al.prototype.eachChild=function(a){a(this.index),a(this.input)},Al.prototype.outputDefined=function(){return!1},Al.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var oi=function(a,u){this.type=Wr,this.needle=a,this.haystack=u};oi.parse=function(a,u){if(a.length!==3)return u.error("Expected 2 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,tn),m=u.parse(a[2],2,tn);return c&&m?Ia(c.type,[Wr,en,sr,sn,tn])?new oi(c,m):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Ai(c.type)+" instead"):null},oi.prototype.evaluate=function(a){var u=this.needle.evaluate(a),c=this.haystack.evaluate(a);if(!c)return!1;if(!Ti(u,["boolean","string","number","null"]))throw new sa("Expected first argument to be of type boolean, string, number or null, but found "+Ai(Ta(u))+" instead.");if(!Ti(c,["string","array"]))throw new sa("Expected second argument to be of type array or string, but found "+Ai(Ta(c))+" instead.");return c.indexOf(u)>=0},oi.prototype.eachChild=function(a){a(this.needle),a(this.haystack)},oi.prototype.outputDefined=function(){return!0},oi.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var el=function(a,u,c){this.type=sr,this.needle=a,this.haystack=u,this.fromIndex=c};el.parse=function(a,u){if(a.length<=2||a.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,tn),m=u.parse(a[2],2,tn);if(!c||!m)return null;if(!Ia(c.type,[Wr,en,sr,sn,tn]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Ai(c.type)+" instead");if(a.length===4){var x=u.parse(a[3],3,sr);return x?new el(c,m,x):null}return new el(c,m)},el.prototype.evaluate=function(a){var u=this.needle.evaluate(a),c=this.haystack.evaluate(a);if(!Ti(u,["boolean","string","number","null"]))throw new sa("Expected first argument to be of type boolean, string, number or null, but found "+Ai(Ta(u))+" instead.");if(!Ti(c,["string","array"]))throw new sa("Expected second argument to be of type array or string, but found "+Ai(Ta(c))+" instead.");if(this.fromIndex){var m=this.fromIndex.evaluate(a);return c.indexOf(u,m)}return c.indexOf(u)},el.prototype.eachChild=function(a){a(this.needle),a(this.haystack),this.fromIndex&&a(this.fromIndex)},el.prototype.outputDefined=function(){return!1},el.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var a=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),a]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ds=function(a,u,c,m,x,E){this.inputType=a,this.type=u,this.input=c,this.cases=m,this.outputs=x,this.otherwise=E};Ds.parse=function(a,u){if(a.length<5)return u.error("Expected at least 4 arguments, but found only "+(a.length-1)+".");if(a.length%2!=1)return u.error("Expected an even number of arguments.");var c,m;u.expectedType&&u.expectedType.kind!=="value"&&(m=u.expectedType);for(var x={},E=[],A=2;ANumber.MAX_SAFE_INTEGER)return N.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof ne=="number"&&Math.floor(ne)!==ne)return N.error("Numeric branch labels must be integer values.");if(c){if(N.checkSubtype(c,Ta(ne)))return null}else c=Ta(ne);if(x[String(ne)]!==void 0)return N.error("Branch labels must be unique.");x[String(ne)]=E.length}var R=u.parse(D,A,m);if(!R)return null;m=m||R.type,E.push(R)}var Pe=u.parse(a[1],1,tn);if(!Pe)return null;var Be=u.parse(a[a.length-1],a.length-1,m);return Be?Pe.type.kind!=="value"&&u.concat(1).checkSubtype(c,Pe.type)?null:new Ds(c,m,Pe,x,E,Be):null},Ds.prototype.evaluate=function(a){var u=this.input.evaluate(a);return(Ta(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise).evaluate(a)},Ds.prototype.eachChild=function(a){a(this.input),this.outputs.forEach(a),a(this.otherwise)},Ds.prototype.outputDefined=function(){return this.outputs.every(function(a){return a.outputDefined()})&&this.otherwise.outputDefined()},Ds.prototype.serialize=function(){for(var a=this,u=["match",this.input.serialize()],c=[],m={},x=0,E=Object.keys(this.cases).sort();x=5)return u.error("Expected 3 or 4 arguments, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1,tn),m=u.parse(a[2],2,sr);if(!c||!m)return null;if(!Ia(c.type,[zi(tn),en,tn]))return u.error("Expected first argument to be of type array or string, but found "+Ai(c.type)+" instead");if(a.length===4){var x=u.parse(a[3],3,sr);return x?new tl(c.type,c,m,x):null}return new tl(c.type,c,m)},tl.prototype.evaluate=function(a){var u=this.input.evaluate(a),c=this.beginIndex.evaluate(a);if(!Ti(u,["string","array"]))throw new sa("Expected first argument to be of type array or string, but found "+Ai(Ta(u))+" instead.");if(this.endIndex){var m=this.endIndex.evaluate(a);return u.slice(c,m)}return u.slice(c)},tl.prototype.eachChild=function(a){a(this.input),a(this.beginIndex),this.endIndex&&a(this.endIndex)},tl.prototype.outputDefined=function(){return!1},tl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var a=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),a]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var fu=Ii("==",function(a,u,c){return u===c},ta),Du=Ii("!=",function(a,u,c){return u!==c},function(a,u,c,m){return!ta(0,u,c,m)}),mh=Ii("<",function(a,u,c){return u",function(a,u,c){return u>c},function(a,u,c,m){return m.compare(u,c)>0}),ef=Ii("<=",function(a,u,c){return u<=c},function(a,u,c,m){return m.compare(u,c)<=0}),Vp=Ii(">=",function(a,u,c){return u>=c},function(a,u,c,m){return m.compare(u,c)>=0}),xs=function(a,u,c,m,x){this.type=en,this.number=a,this.locale=u,this.currency=c,this.minFractionDigits=m,this.maxFractionDigits=x};xs.parse=function(a,u){if(a.length!==3)return u.error("Expected two arguments.");var c=u.parse(a[1],1,sr);if(!c)return null;var m=a[2];if(typeof m!="object"||Array.isArray(m))return u.error("NumberFormat options argument must be an object.");var x=null;if(m.locale&&!(x=u.parse(m.locale,1,en)))return null;var E=null;if(m.currency&&!(E=u.parse(m.currency,1,en)))return null;var A=null;if(m["min-fraction-digits"]&&!(A=u.parse(m["min-fraction-digits"],1,sr)))return null;var I=null;return m["max-fraction-digits"]&&!(I=u.parse(m["max-fraction-digits"],1,sr))?null:new xs(c,x,E,A,I)},xs.prototype.evaluate=function(a){return new Intl.NumberFormat(this.locale?this.locale.evaluate(a):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(a):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(a):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(a):void 0}).format(this.number.evaluate(a))},xs.prototype.eachChild=function(a){a(this.number),this.locale&&a(this.locale),this.currency&&a(this.currency),this.minFractionDigits&&a(this.minFractionDigits),this.maxFractionDigits&&a(this.maxFractionDigits)},xs.prototype.outputDefined=function(){return!1},xs.prototype.serialize=function(){var a={};return this.locale&&(a.locale=this.locale.serialize()),this.currency&&(a.currency=this.currency.serialize()),this.minFractionDigits&&(a["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(a["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),a]};var Fu=function(a){this.type=sr,this.input=a};Fu.parse=function(a,u){if(a.length!==2)return u.error("Expected 1 argument, but found "+(a.length-1)+" instead.");var c=u.parse(a[1],1);return c?c.type.kind!=="array"&&c.type.kind!=="string"&&c.type.kind!=="value"?u.error("Expected argument of type string or array, but found "+Ai(c.type)+" instead."):new Fu(c):null},Fu.prototype.evaluate=function(a){var u=this.input.evaluate(a);if(typeof u=="string"||Array.isArray(u))return u.length;throw new sa("Expected value to be of type string or array, but found "+Ai(Ta(u))+" instead.")},Fu.prototype.eachChild=function(a){a(this.input)},Fu.prototype.outputDefined=function(){return!1},Fu.prototype.serialize=function(){var a=["length"];return this.eachChild(function(u){a.push(u.serialize())}),a};var ku={"==":fu,"!=":Du,">":Ha,"<":mh,">=":Vp,"<=":ef,array:ha,at:Al,boolean:ha,case:Ou,coalesce:Sl,collator:Kt,format:$o,image:Vo,in:oi,"index-of":el,interpolate:Ho,"interpolate-hcl":Ho,"interpolate-lab":Ho,length:Fu,let:$s,literal:Oa,match:Ds,number:ha,"number-format":xs,object:ha,slice:tl,step:Os,string:ha,"to-boolean":ss,"to-color":ss,"to-number":ss,"to-string":ss,var:Iu,within:jo};function ql(a,u){var c=u[0],m=u[1],x=u[2],E=u[3];c=c.evaluate(a),m=m.evaluate(a),x=x.evaluate(a);var A=E?E.evaluate(a):1,I=$l(c,m,x,A);if(I)throw new sa(I);return new wi(c/255*A,m/255*A,x/255*A,A)}function If(a,u){return a in u}function wa(a,u){var c=u[a];return c===void 0?null:c}function Qs(a){return{type:a}}function Rc(a){return{result:"success",value:a}}function Kl(a){return{result:"error",value:a}}function rl(a){return a["property-type"]==="data-driven"||a["property-type"]==="cross-faded-data-driven"}function gh(a){return!!a.expression&&a.expression.parameters.indexOf("zoom")>-1}function Ql(a){return!!a.expression&&a.expression.interpolated}function ca(a){return a instanceof Number?"number":a instanceof String?"string":a instanceof Boolean?"boolean":Array.isArray(a)?"array":a===null?"null":typeof a}function tf(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function np(a){return a}function Tl(a,u,c){return a!==void 0?a:u!==void 0?u:c!==void 0?c:void 0}function Jl(a,u,c,m,x){return Tl(typeof c===x?m[c]:void 0,a.default,u.default)}function _h(a,u,c){if(ca(c)!=="number")return Tl(a.default,u.default);var m=a.stops.length;if(m===1||c<=a.stops[0][0])return a.stops[0][1];if(c>=a.stops[m-1][0])return a.stops[m-1][1];var x=Qc(a.stops.map(function(E){return E[0]}),c);return a.stops[x][1]}function Pf(a,u,c){var m=a.base!==void 0?a.base:1;if(ca(c)!=="number")return Tl(a.default,u.default);var x=a.stops.length;if(x===1||c<=a.stops[0][0])return a.stops[0][1];if(c>=a.stops[x-1][0])return a.stops[x-1][1];var E=Qc(a.stops.map(function(X){return X[0]}),c),A=function(X,ne,R,Pe){var Be=Pe-R,rt=X-R;return Be===0?0:ne===1?rt/Be:(Math.pow(ne,rt)-1)/(Math.pow(ne,Be)-1)}(c,m,a.stops[E][0],a.stops[E+1][0]),I=a.stops[E][1],D=a.stops[E+1][1],N=El[u.type]||np;if(a.colorSpace&&a.colorSpace!=="rgb"){var H=tp[a.colorSpace];N=function(X,ne){return H.reverse(H.interpolate(H.forward(X),H.forward(ne),A))}}return typeof I.evaluate=="function"?{evaluate:function(){for(var X=[],ne=arguments.length;ne--;)X[ne]=arguments[ne];var R=I.evaluate.apply(void 0,X),Pe=D.evaluate.apply(void 0,X);if(R!==void 0&&Pe!==void 0)return N(R,Pe,A)}}:N(I,D,A)}function wl(a,u,c){return u.type==="color"?c=wi.parse(c):u.type==="formatted"?c=ma.fromString(c.toString()):u.type==="resolvedImage"?c=Aa.fromString(c.toString()):ca(c)===u.type||u.type==="enum"&&u.values[c]||(c=void 0),Tl(c,a.default,u.default)}ea.register(ku,{error:[{kind:"error"},[en],function(a,u){throw new sa(u[0].evaluate(a))}],typeof:[en,[tn],function(a,u){return Ai(Ta(u[0].evaluate(a)))}],"to-rgba":[zi(sr,4),[Yr],function(a,u){return u[0].evaluate(a).toArray()}],rgb:[Yr,[sr,sr,sr],ql],rgba:[Yr,[sr,sr,sr,sr],ql],has:{type:Wr,overloads:[[[en],function(a,u){return If(u[0].evaluate(a),a.properties())}],[[en,pi],function(a,u){var c=u[1];return If(u[0].evaluate(a),c.evaluate(a))}]]},get:{type:tn,overloads:[[[en],function(a,u){return wa(u[0].evaluate(a),a.properties())}],[[en,pi],function(a,u){var c=u[1];return wa(u[0].evaluate(a),c.evaluate(a))}]]},"feature-state":[tn,[en],function(a,u){return wa(u[0].evaluate(a),a.featureState||{})}],properties:[pi,[],function(a){return a.properties()}],"geometry-type":[en,[],function(a){return a.geometryType()}],id:[tn,[],function(a){return a.id()}],zoom:[sr,[],function(a){return a.globals.zoom}],"heatmap-density":[sr,[],function(a){return a.globals.heatmapDensity||0}],"line-progress":[sr,[],function(a){return a.globals.lineProgress||0}],accumulated:[tn,[],function(a){return a.globals.accumulated===void 0?null:a.globals.accumulated}],"+":[sr,Qs(sr),function(a,u){for(var c=0,m=0,x=u;m":[Wr,[en,tn],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x>E}],"filter-id->":[Wr,[tn],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m>x}],"filter-<=":[Wr,[en,tn],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x<=E}],"filter-id-<=":[Wr,[tn],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m<=x}],"filter->=":[Wr,[en,tn],function(a,u){var c=u[0],m=u[1],x=a.properties()[c.value],E=m.value;return typeof x==typeof E&&x>=E}],"filter-id->=":[Wr,[tn],function(a,u){var c=u[0],m=a.id(),x=c.value;return typeof m==typeof x&&m>=x}],"filter-has":[Wr,[tn],function(a,u){return u[0].value in a.properties()}],"filter-has-id":[Wr,[],function(a){return a.id()!==null&&a.id()!==void 0}],"filter-type-in":[Wr,[zi(en)],function(a,u){return u[0].value.indexOf(a.geometryType())>=0}],"filter-id-in":[Wr,[zi(tn)],function(a,u){return u[0].value.indexOf(a.id())>=0}],"filter-in-small":[Wr,[en,zi(tn)],function(a,u){var c=u[0];return u[1].value.indexOf(a.properties()[c.value])>=0}],"filter-in-large":[Wr,[en,zi(tn)],function(a,u){var c=u[0],m=u[1];return function(x,E,A,I){for(;A<=I;){var D=A+I>>1;if(E[D]===x)return!0;E[D]>x?I=D-1:A=D+1}return!1}(a.properties()[c.value],m.value,0,m.value.length-1)}],all:{type:Wr,overloads:[[[Wr,Wr],function(a,u){var c=u[1];return u[0].evaluate(a)&&c.evaluate(a)}],[Qs(Wr),function(a,u){for(var c=0,m=u;c0&&typeof a[0]=="string"&&a[0]in ku}function rf(a,u){var c=new Qu(ku,[],u?function(x){var E={color:Yr,string:en,number:sr,enum:en,boolean:Wr,formatted:qi,resolvedImage:ci};return x.type==="array"?zi(E[x.value]||tn,x.length):E[x.type]}(u):void 0),m=c.parse(a,void 0,void 0,void 0,u&&u.type==="string"?{typeAnnotation:"coerce"}:void 0);return m?Rc(new hu(m,u)):Kl(c.errors)}hu.prototype.evaluateWithoutErrorHandling=function(a,u,c,m,x,E){return this._evaluator.globals=a,this._evaluator.feature=u,this._evaluator.featureState=c,this._evaluator.canonical=m,this._evaluator.availableImages=x||null,this._evaluator.formattedSection=E,this.expression.evaluate(this._evaluator)},hu.prototype.evaluate=function(a,u,c,m,x,E){this._evaluator.globals=a,this._evaluator.feature=u||null,this._evaluator.featureState=c||null,this._evaluator.canonical=m,this._evaluator.availableImages=x||null,this._evaluator.formattedSection=E||null;try{var A=this.expression.evaluate(this._evaluator);if(A==null||typeof A=="number"&&A!=A)return this._defaultValue;if(this._enumValues&&!(A in this._enumValues))throw new sa("Expected value to be one of "+Object.keys(this._enumValues).map(function(I){return JSON.stringify(I)}).join(", ")+", but found "+JSON.stringify(A)+" instead.");return A}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console!="undefined"&&console.warn(I.message)),this._defaultValue}};var ec=function(a,u){this.kind=a,this._styleExpression=u,this.isStateDependent=a!=="constant"&&!bl(u.expression)};ec.prototype.evaluateWithoutErrorHandling=function(a,u,c,m,x,E){return this._styleExpression.evaluateWithoutErrorHandling(a,u,c,m,x,E)},ec.prototype.evaluate=function(a,u,c,m,x,E){return this._styleExpression.evaluate(a,u,c,m,x,E)};var tc=function(a,u,c,m){this.kind=a,this.zoomStops=c,this._styleExpression=u,this.isStateDependent=a!=="camera"&&!bl(u.expression),this.interpolationType=m};function ip(a,u){if((a=rf(a,u)).result==="error")return a;var c=a.value.expression,m=xl(c);if(!m&&!rl(u))return Kl([new wr("","data expressions not supported")]);var x=Mu(c,["zoom"]);if(!x&&!gh(u))return Kl([new wr("","zoom expressions not supported")]);var E=function A(I){var D=null;if(I instanceof $s)D=A(I.result);else if(I instanceof Sl)for(var N=0,H=I.args;Nm.maximum?[new Q(u,c,c+" is greater than the maximum value "+m.maximum)]:[]}function yh(a){var u,c,m,x=a.valueSpec,E=Ee(a.value.type),A={},I=E!=="categorical"&&a.value.property===void 0,D=!I,N=ca(a.value.stops)==="array"&&ca(a.value.stops[0])==="array"&&ca(a.value.stops[0][0])==="object",H=Js({key:a.key,value:a.value,valueSpec:a.styleSpec.function,style:a.style,styleSpec:a.styleSpec,objectElementValidators:{stops:function(R){if(E==="identity")return[new Q(R.key,R.value,'identity function may not have a "stops" property')];var Pe=[],Be=R.value;return Pe=Pe.concat(nf({key:R.key,value:Be,valueSpec:R.valueSpec,style:R.style,styleSpec:R.styleSpec,arrayElementValidator:X})),ca(Be)==="array"&&Be.length===0&&Pe.push(new Q(R.key,Be,"array must have at least one stop")),Pe},default:function(R){return Li({key:R.key,value:R.value,valueSpec:x,style:R.style,styleSpec:R.styleSpec})}}});return E==="identity"&&I&&H.push(new Q(a.key,a.value,'missing required property "property"')),E==="identity"||a.value.stops||H.push(new Q(a.key,a.value,'missing required property "stops"')),E==="exponential"&&a.valueSpec.expression&&!Ql(a.valueSpec)&&H.push(new Q(a.key,a.value,"exponential functions not supported")),a.styleSpec.$version>=8&&(D&&!rl(a.valueSpec)?H.push(new Q(a.key,a.value,"property functions not supported")):I&&!gh(a.valueSpec)&&H.push(new Q(a.key,a.value,"zoom functions not supported"))),E!=="categorical"&&!N||a.value.property!==void 0||H.push(new Q(a.key,a.value,'"property" property is required')),H;function X(R){var Pe=[],Be=R.value,rt=R.key;if(ca(Be)!=="array")return[new Q(rt,Be,"array expected, "+ca(Be)+" found")];if(Be.length!==2)return[new Q(rt,Be,"array length 2 expected, length "+Be.length+" found")];if(N){if(ca(Be[0])!=="object")return[new Q(rt,Be,"object expected, "+ca(Be[0])+" found")];if(Be[0].zoom===void 0)return[new Q(rt,Be,"object stop key must have zoom")];if(Be[0].value===void 0)return[new Q(rt,Be,"object stop key must have value")];if(m&&m>Ee(Be[0].zoom))return[new Q(rt,Be[0].zoom,"stop zoom values must appear in ascending order")];Ee(Be[0].zoom)!==m&&(m=Ee(Be[0].zoom),c=void 0,A={}),Pe=Pe.concat(Js({key:rt+"[0]",value:Be[0],valueSpec:{zoom:{}},style:R.style,styleSpec:R.styleSpec,objectElementValidators:{zoom:Ic,value:ne}}))}else Pe=Pe.concat(ne({key:rt+"[0]",value:Be[0],valueSpec:{},style:R.style,styleSpec:R.styleSpec},Be));return Mc(ir(Be[1]))?Pe.concat([new Q(rt+"[1]",Be[1],"expressions are not allowed in function stops.")]):Pe.concat(Li({key:rt+"[1]",value:Be[1],valueSpec:x,style:R.style,styleSpec:R.styleSpec}))}function ne(R,Pe){var Be=ca(R.value),rt=Ee(R.value),Ge=R.value!==null?R.value:Pe;if(u){if(Be!==u)return[new Q(R.key,Ge,Be+" stop domain type must match previous stop domain type "+u)]}else u=Be;if(Be!=="number"&&Be!=="string"&&Be!=="boolean")return[new Q(R.key,Ge,"stop domain value must be a number, string, or boolean")];if(Be!=="number"&&E!=="categorical"){var St="number expected, "+Be+" found";return rl(x)&&E===void 0&&(St+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Q(R.key,Ge,St)]}return E!=="categorical"||Be!=="number"||isFinite(rt)&&Math.floor(rt)===rt?E!=="categorical"&&Be==="number"&&c!==void 0&&rt=2&&a[1]!=="$id"&&a[1]!=="$type";case"in":return a.length>=3&&(typeof a[1]!="string"||Array.isArray(a[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return a.length!==3||Array.isArray(a[1])||Array.isArray(a[2]);case"any":case"all":for(var u=0,c=a.slice(1);uu?1:0}function Of(a){if(!a)return!0;var u,c=a[0];return a.length<=1?c!=="any":c==="=="?xh(a[1],a[2],"=="):c==="!="?bh(xh(a[1],a[2],"==")):c==="<"||c===">"||c==="<="||c===">="?xh(a[1],a[2],c):c==="any"?(u=a.slice(1),["any"].concat(u.map(Of))):c==="all"?["all"].concat(a.slice(1).map(Of)):c==="none"?["all"].concat(a.slice(1).map(Of).map(bh)):c==="in"?Df(a[1],a.slice(2)):c==="!in"?bh(Df(a[1],a.slice(2))):c==="has"?Fo(a[1]):c==="!has"?bh(Fo(a[1])):c!=="within"||a}function xh(a,u,c){switch(a){case"$type":return["filter-type-"+c,u];case"$id":return["filter-id-"+c,u];default:return["filter-"+c,a,u]}}function Df(a,u){if(u.length===0)return!1;switch(a){case"$type":return["filter-type-in",["literal",u]];case"$id":return["filter-id-in",["literal",u]];default:return u.length>200&&!u.some(function(c){return typeof c!=typeof u[0]})?["filter-in-large",a,["literal",u.sort(Md)]]:["filter-in-small",a,["literal",u]]}}function Fo(a){switch(a){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",a]}}function bh(a){return["!",a]}function ap(a){return af(ir(a.value))?Cl(at({},a,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function u(c){var m=c.value,x=c.key;if(ca(m)!=="array")return[new Q(x,m,"array expected, "+ca(m)+" found")];var E,A=c.styleSpec,I=[];if(m.length<1)return[new Q(x,m,"filter array must have at least 1 element")];switch(I=I.concat(pu({key:x+"[0]",value:m[0],valueSpec:A.filter_operator,style:c.style,styleSpec:c.styleSpec})),Ee(m[0])){case"<":case"<=":case">":case">=":m.length>=2&&Ee(m[1])==="$type"&&I.push(new Q(x,m,'"$type" cannot be use with operator "'+m[0]+'"'));case"==":case"!=":m.length!==3&&I.push(new Q(x,m,'filter array for operator "'+m[0]+'" must have 3 elements'));case"in":case"!in":m.length>=2&&(E=ca(m[1]))!=="string"&&I.push(new Q(x+"[1]",m[1],"string expected, "+E+" found"));for(var D=2;D=H[R+0]&&m>=H[R+1])?(A[ne]=!0,E.push(N[ne])):A[ne]=!1}}},Wa.prototype._forEachCell=function(a,u,c,m,x,E,A,I){for(var D=this._convertToCellCoord(a),N=this._convertToCellCoord(u),H=this._convertToCellCoord(c),X=this._convertToCellCoord(m),ne=D;ne<=H;ne++)for(var R=N;R<=X;R++){var Pe=this.d*R+ne;if((!I||I(this._convertFromCellCoord(ne),this._convertFromCellCoord(R),this._convertFromCellCoord(ne+1),this._convertFromCellCoord(R+1)))&&x.call(this,a,u,c,m,Pe,E,A,I))return}},Wa.prototype._convertFromCellCoord=function(a){return(a-this.padding)/this.scale},Wa.prototype._convertToCellCoord=function(a){return Math.max(0,Math.min(this.d-1,Math.floor(a*this.scale)+this.padding))},Wa.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var a=this.cells,u=3+this.cells.length+1+1,c=0,m=0;m=0)){var H=a[N];D[N]=Ka[I].shallow.indexOf(N)>=0?H:us(H,u)}a instanceof Error&&(D.message=a.message)}if(D.$name)throw new Error("$name property is reserved for worker serialization logic.");return I!=="Object"&&(D.$name=I),D}throw new Error("can't serialize object of type "+typeof a)}function ga(a){if(a==null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp||uf(a)||rc(a)||ArrayBuffer.isView(a)||a instanceof al)return a;if(Array.isArray(a))return a.map(ga);if(typeof a=="object"){var u=a.$name||"Object",c=Ka[u].klass;if(!c)throw new Error("can't deserialize unregistered class "+u);if(c.deserialize)return c.deserialize(a);for(var m=Object.create(c.prototype),x=0,E=Object.keys(a);x=0?I:ga(I)}}return m}throw new Error("can't deserialize object of type "+typeof a)}var Th=function(){this.first=!0};Th.prototype.update=function(a,u){var c=Math.floor(a);return this.first?(this.first=!1,this.lastIntegerZoom=c,this.lastIntegerZoomTime=0,this.lastZoom=a,this.lastFloorZoom=c,!0):(this.lastFloorZoom>c?(this.lastIntegerZoom=c+1,this.lastIntegerZoomTime=u):this.lastFloorZoom=128&&a<=255},Arabic:function(a){return a>=1536&&a<=1791},"Arabic Supplement":function(a){return a>=1872&&a<=1919},"Arabic Extended-A":function(a){return a>=2208&&a<=2303},"Hangul Jamo":function(a){return a>=4352&&a<=4607},"Unified Canadian Aboriginal Syllabics":function(a){return a>=5120&&a<=5759},Khmer:function(a){return a>=6016&&a<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(a){return a>=6320&&a<=6399},"General Punctuation":function(a){return a>=8192&&a<=8303},"Letterlike Symbols":function(a){return a>=8448&&a<=8527},"Number Forms":function(a){return a>=8528&&a<=8591},"Miscellaneous Technical":function(a){return a>=8960&&a<=9215},"Control Pictures":function(a){return a>=9216&&a<=9279},"Optical Character Recognition":function(a){return a>=9280&&a<=9311},"Enclosed Alphanumerics":function(a){return a>=9312&&a<=9471},"Geometric Shapes":function(a){return a>=9632&&a<=9727},"Miscellaneous Symbols":function(a){return a>=9728&&a<=9983},"Miscellaneous Symbols and Arrows":function(a){return a>=11008&&a<=11263},"CJK Radicals Supplement":function(a){return a>=11904&&a<=12031},"Kangxi Radicals":function(a){return a>=12032&&a<=12255},"Ideographic Description Characters":function(a){return a>=12272&&a<=12287},"CJK Symbols and Punctuation":function(a){return a>=12288&&a<=12351},Hiragana:function(a){return a>=12352&&a<=12447},Katakana:function(a){return a>=12448&&a<=12543},Bopomofo:function(a){return a>=12544&&a<=12591},"Hangul Compatibility Jamo":function(a){return a>=12592&&a<=12687},Kanbun:function(a){return a>=12688&&a<=12703},"Bopomofo Extended":function(a){return a>=12704&&a<=12735},"CJK Strokes":function(a){return a>=12736&&a<=12783},"Katakana Phonetic Extensions":function(a){return a>=12784&&a<=12799},"Enclosed CJK Letters and Months":function(a){return a>=12800&&a<=13055},"CJK Compatibility":function(a){return a>=13056&&a<=13311},"CJK Unified Ideographs Extension A":function(a){return a>=13312&&a<=19903},"Yijing Hexagram Symbols":function(a){return a>=19904&&a<=19967},"CJK Unified Ideographs":function(a){return a>=19968&&a<=40959},"Yi Syllables":function(a){return a>=40960&&a<=42127},"Yi Radicals":function(a){return a>=42128&&a<=42191},"Hangul Jamo Extended-A":function(a){return a>=43360&&a<=43391},"Hangul Syllables":function(a){return a>=44032&&a<=55215},"Hangul Jamo Extended-B":function(a){return a>=55216&&a<=55295},"Private Use Area":function(a){return a>=57344&&a<=63743},"CJK Compatibility Ideographs":function(a){return a>=63744&&a<=64255},"Arabic Presentation Forms-A":function(a){return a>=64336&&a<=65023},"Vertical Forms":function(a){return a>=65040&&a<=65055},"CJK Compatibility Forms":function(a){return a>=65072&&a<=65103},"Small Form Variants":function(a){return a>=65104&&a<=65135},"Arabic Presentation Forms-B":function(a){return a>=65136&&a<=65279},"Halfwidth and Fullwidth Forms":function(a){return a>=65280&&a<=65519}};function ol(a){for(var u=0,c=a;u=65097&&a<=65103)||qr["CJK Compatibility Ideographs"](a)||qr["CJK Compatibility"](a)||qr["CJK Radicals Supplement"](a)||qr["CJK Strokes"](a)||!(!qr["CJK Symbols and Punctuation"](a)||a>=12296&&a<=12305||a>=12308&&a<=12319||a===12336)||qr["CJK Unified Ideographs Extension A"](a)||qr["CJK Unified Ideographs"](a)||qr["Enclosed CJK Letters and Months"](a)||qr["Hangul Compatibility Jamo"](a)||qr["Hangul Jamo Extended-A"](a)||qr["Hangul Jamo Extended-B"](a)||qr["Hangul Jamo"](a)||qr["Hangul Syllables"](a)||qr.Hiragana(a)||qr["Ideographic Description Characters"](a)||qr.Kanbun(a)||qr["Kangxi Radicals"](a)||qr["Katakana Phonetic Extensions"](a)||qr.Katakana(a)&&a!==12540||!(!qr["Halfwidth and Fullwidth Forms"](a)||a===65288||a===65289||a===65293||a>=65306&&a<=65310||a===65339||a===65341||a===65343||a>=65371&&a<=65503||a===65507||a>=65512&&a<=65519)||!(!qr["Small Form Variants"](a)||a>=65112&&a<=65118||a>=65123&&a<=65126)||qr["Unified Canadian Aboriginal Syllabics"](a)||qr["Unified Canadian Aboriginal Syllabics Extended"](a)||qr["Vertical Forms"](a)||qr["Yijing Hexagram Symbols"](a)||qr["Yi Syllables"](a)||qr["Yi Radicals"](a))))}function wh(a){return!(Dc(a)||function(u){return!!(qr["Latin-1 Supplement"](u)&&(u===167||u===169||u===174||u===177||u===188||u===189||u===190||u===215||u===247)||qr["General Punctuation"](u)&&(u===8214||u===8224||u===8225||u===8240||u===8241||u===8251||u===8252||u===8258||u===8263||u===8264||u===8265||u===8273)||qr["Letterlike Symbols"](u)||qr["Number Forms"](u)||qr["Miscellaneous Technical"](u)&&(u>=8960&&u<=8967||u>=8972&&u<=8991||u>=8996&&u<=9e3||u===9003||u>=9085&&u<=9114||u>=9150&&u<=9165||u===9167||u>=9169&&u<=9179||u>=9186&&u<=9215)||qr["Control Pictures"](u)&&u!==9251||qr["Optical Character Recognition"](u)||qr["Enclosed Alphanumerics"](u)||qr["Geometric Shapes"](u)||qr["Miscellaneous Symbols"](u)&&!(u>=9754&&u<=9759)||qr["Miscellaneous Symbols and Arrows"](u)&&(u>=11026&&u<=11055||u>=11088&&u<=11097||u>=11192&&u<=11243)||qr["CJK Symbols and Punctuation"](u)||qr.Katakana(u)||qr["Private Use Area"](u)||qr["CJK Compatibility Forms"](u)||qr["Small Form Variants"](u)||qr["Halfwidth and Fullwidth Forms"](u)||u===8734||u===8756||u===8757||u>=9984&&u<=10087||u>=10102&&u<=10131||u===65532||u===65533)}(a))}function eu(a){return a>=1424&&a<=2303||qr["Arabic Presentation Forms-A"](a)||qr["Arabic Presentation Forms-B"](a)}function Bs(a,u){return!(!u&&eu(a)||a>=2304&&a<=3583||a>=3840&&a<=4255||qr.Khmer(a))}function Nf(a){for(var u=0,c=a;u-1&&(Yo="error"),Uf&&Uf(a)};function Il(){lf.fire(new Oe("pluginStateChange",{pluginStatus:Yo,pluginURL:Lu}))}var lf=new pt,up=function(){return Yo},Pt=function(){if(Yo!=="deferred"||!Lu)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Yo="loading",Il(),Lu&&Is({url:Lu},function(a){a?sp(a):(Yo="loaded",Il())})},Fe={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Yo==="loaded"||Fe.applyArabicShaping!=null},isLoading:function(){return Yo==="loading"},setState:function(a){Yo=a.pluginStatus,Lu=a.pluginURL},isParsed:function(){return Fe.applyArabicShaping!=null&&Fe.processBidirectionalText!=null&&Fe.processStyledBidirectionalText!=null},getPluginURL:function(){return Lu}},B=function(a,u){this.zoom=a,u?(this.now=u.now,this.fadeDuration=u.fadeDuration,this.zoomHistory=u.zoomHistory,this.transition=u.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Th,this.transition={})};B.prototype.isSupportedScript=function(a){return function(u,c){for(var m=0,x=u;mthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:u+(1-u)*c}:{fromScale:.5,toScale:1,t:1-(1-c)*u}};var qs=function(a,u){this.property=a,this.value=u,this.expression=function(c,m){if(tf(c))return new nl(c,m);if(Mc(c)){var x=ip(c,m);if(x.result==="error")throw new Error(x.value.map(function(A){return A.key+": "+A.message}).join(", "));return x.value}var E=c;return typeof c=="string"&&m.type==="color"&&(E=wi.parse(c)),{kind:"constant",evaluate:function(){return E}}}(u===void 0?a.specification.default:u,a.specification)};qs.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},qs.prototype.possiblyEvaluate=function(a,u,c){return this.property.possiblyEvaluate(this,a,u,c)};var ge=function(a){this.property=a,this.value=new qs(a,void 0)};ge.prototype.transitioned=function(a,u){return new io(this.property,this.value,u,Zt({},a.transition,this.transition),a.now)},ge.prototype.untransitioned=function(){return new io(this.property,this.value,null,{},0)};var Bo=function(a){this._properties=a,this._values=Object.create(a.defaultTransitionablePropertyValues)};Bo.prototype.getValue=function(a){return ut(this._values[a].value.value)},Bo.prototype.setValue=function(a,u){this._values.hasOwnProperty(a)||(this._values[a]=new ge(this._values[a].property)),this._values[a].value=new qs(this._values[a].property,u===null?void 0:ut(u))},Bo.prototype.getTransition=function(a){return ut(this._values[a].transition)},Bo.prototype.setTransition=function(a,u){this._values.hasOwnProperty(a)||(this._values[a]=new ge(this._values[a].property)),this._values[a].transition=ut(u)||void 0},Bo.prototype.serialize=function(){for(var a={},u=0,c=Object.keys(this._values);uthis.end)return this.prior=null,x;if(this.value.isDataDriven())return this.prior=null,x;if(m=1)return 1;var D=I*I,N=D*I;return 4*(I<.5?N:3*(I-D)+N-.75)}(A))}return x};var vu=function(a){this._properties=a,this._values=Object.create(a.defaultTransitioningPropertyValues)};vu.prototype.possiblyEvaluate=function(a,u,c){for(var m=new nc(this._properties),x=0,E=Object.keys(this._values);xE.zoomHistory.lastIntegerZoom?{from:c,to:m}:{from:x,to:m}},u.prototype.interpolate=function(c){return c},u}(yn),qo=function(a){this.specification=a};qo.prototype.possiblyEvaluate=function(a,u,c,m){if(a.value!==void 0){if(a.expression.kind==="constant"){var x=a.expression.evaluate(u,null,{},c,m);return this._calculate(x,x,x,u)}return this._calculate(a.expression.evaluate(new B(Math.floor(u.zoom-1),u)),a.expression.evaluate(new B(Math.floor(u.zoom),u)),a.expression.evaluate(new B(Math.floor(u.zoom+1),u)),u)}},qo.prototype._calculate=function(a,u,c,m){return m.zoom>m.zoomHistory.lastIntegerZoom?{from:a,to:u}:{from:c,to:u}},qo.prototype.interpolate=function(a){return a};var mu=function(a){this.specification=a};mu.prototype.possiblyEvaluate=function(a,u,c,m){return!!a.expression.evaluate(u,null,{},c,m)},mu.prototype.interpolate=function(){return!1};var Fa=function(a){for(var u in this.properties=a,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],a){var c=a[u];c.specification.overridable&&this.overridableProperties.push(u);var m=this.defaultPropertyValues[u]=new qs(c,void 0),x=this.defaultTransitionablePropertyValues[u]=new ge(c);this.defaultTransitioningPropertyValues[u]=x.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=m.possiblyEvaluate({})}};_n("DataDrivenProperty",yn),_n("DataConstantProperty",kn),_n("CrossFadedDataDrivenProperty",Ls),_n("CrossFadedProperty",qo),_n("ColorRampProperty",mu);var Ns=function(a){function u(c,m){if(a.call(this),this.id=c.id,this.type=c.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},c.type!=="custom"&&(this.metadata=(c=c).metadata,this.minzoom=c.minzoom,this.maxzoom=c.maxzoom,c.type!=="background"&&(this.source=c.source,this.sourceLayer=c["source-layer"],this.filter=c.filter),m.layout&&(this._unevaluatedLayout=new bs(m.layout)),m.paint)){for(var x in this._transitionablePaint=new Bo(m.paint),c.paint)this.setPaintProperty(x,c.paint[x],{validate:!1});for(var E in c.layout)this.setLayoutProperty(E,c.layout[E],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new nc(m.paint)}}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},u.prototype.getLayoutProperty=function(c){return c==="visibility"?this.visibility:this._unevaluatedLayout.getValue(c)},u.prototype.setLayoutProperty=function(c,m,x){x===void 0&&(x={}),m!=null&&this._validate(Lf,"layers."+this.id+".layout."+c,c,m,x)||(c!=="visibility"?this._unevaluatedLayout.setValue(c,m):this.visibility=m)},u.prototype.getPaintProperty=function(c){return hr(c,"-transition")?this._transitionablePaint.getTransition(c.slice(0,-11)):this._transitionablePaint.getValue(c)},u.prototype.setPaintProperty=function(c,m,x){if(x===void 0&&(x={}),m!=null&&this._validate(Sh,"layers."+this.id+".paint."+c,c,m,x))return!1;if(hr(c,"-transition"))return this._transitionablePaint.setTransition(c.slice(0,-11),m||void 0),!1;var E=this._transitionablePaint._values[c],A=E.property.specification["property-type"]==="cross-faded-data-driven",I=E.value.isDataDriven(),D=E.value;this._transitionablePaint.setValue(c,m),this._handleSpecialPaintPropertyUpdate(c);var N=this._transitionablePaint._values[c].value;return N.isDataDriven()||I||A||this._handleOverridablePaintPropertyUpdate(c,D,N)},u.prototype._handleSpecialPaintPropertyUpdate=function(c){},u.prototype._handleOverridablePaintPropertyUpdate=function(c,m,x){return!1},u.prototype.isHidden=function(c){return!!(this.minzoom&&c=this.maxzoom)||this.visibility==="none"},u.prototype.updateTransitions=function(c){this._transitioningPaint=this._transitionablePaint.transitioned(c,this._transitioningPaint)},u.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},u.prototype.recalculate=function(c,m){c.getCrossfadeParameters&&(this._crossfadeParameters=c.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(c,void 0,m)),this.paint=this._transitioningPaint.possiblyEvaluate(c,void 0,m)},u.prototype.serialize=function(){var c={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(c.layout=c.layout||{},c.layout.visibility=this.visibility),At(c,function(m,x){return!(m===void 0||x==="layout"&&!Object.keys(m).length||x==="paint"&&!Object.keys(m).length)})},u.prototype._validate=function(c,m,x,E,A){return A===void 0&&(A={}),(!A||A.validate!==!1)&&Ml(this,c.call(sf,{key:m,layerType:this.type,objectKey:x,value:E,styleSpec:j,style:{glyphs:!0,sprite:!0}}))},u.prototype.is3D=function(){return!1},u.prototype.isTileClipped=function(){return!1},u.prototype.hasOffscreenPass=function(){return!1},u.prototype.resize=function(){},u.prototype.isStateDependent=function(){for(var c in this.paint._values){var m=this.paint.get(c);if(m instanceof Da&&rl(m.property.specification)&&(m.value.kind==="source"||m.value.kind==="composite")&&m.value.isStateDependent)return!0}return!1},u}(pt),Ks={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Fc=function(a,u){this._structArray=a,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},ra=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function wo(a,u){u===void 0&&(u=1);var c=0,m=0;return{members:a.map(function(x){var E=Ks[x.type].BYTES_PER_ELEMENT,A=c=Ch(c,Math.max(u,E)),I=x.components||1;return m=Math.max(m,E),c+=E*I,{name:x.name,type:x.type,components:I,offset:A}}),size:Ch(c,Math.max(m,u)),alignment:u}}function Ch(a,u){return Math.ceil(a/u)*u}ra.serialize=function(a,u){return a._trim(),u&&(a.isTransferred=!0,u.push(a.arrayBuffer)),{length:a.length,arrayBuffer:a.arrayBuffer}},ra.deserialize=function(a){var u=Object.create(this.prototype);return u.arrayBuffer=a.arrayBuffer,u.length=a.length,u.capacity=a.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},ra.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},ra.prototype.clear=function(){this.length=0},ra.prototype.resize=function(a){this.reserve(a),this.length=a},ra.prototype.reserve=function(a){if(a>this.capacity){this.capacity=Math.max(a,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var u=this.uint8;this._refreshViews(),u&&this.uint8.set(u)}},ra.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Pl=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.int16[E+0]=m,this.int16[E+1]=x,c},u}(ra);Pl.prototype.bytesPerElement=4,_n("StructArrayLayout2i4",Pl);var zf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=4*c;return this.int16[I+0]=m,this.int16[I+1]=x,this.int16[I+2]=E,this.int16[I+3]=A,c},u}(ra);zf.prototype.bytesPerElement=8,_n("StructArrayLayout4i8",zf);var gu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=6*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.int16[N+2]=E,this.int16[N+3]=A,this.int16[N+4]=I,this.int16[N+5]=D,c},u}(ra);gu.prototype.bytesPerElement=12,_n("StructArrayLayout2i4i12",gu);var Es=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=4*c,H=8*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.uint8[H+4]=E,this.uint8[H+5]=A,this.uint8[H+6]=I,this.uint8[H+7]=D,c},u}(ra);Es.prototype.bytesPerElement=8,_n("StructArrayLayout2i4ub8",Es);var ic=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.float32[E+0]=m,this.float32[E+1]=x,c},u}(ra);ic.prototype.bytesPerElement=8,_n("StructArrayLayout2f8",ic);var Nu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,H,X){var ne=this.length;return this.resize(ne+1),this.emplace(ne,c,m,x,E,A,I,D,N,H,X)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,H,X,ne){var R=10*c;return this.uint16[R+0]=m,this.uint16[R+1]=x,this.uint16[R+2]=E,this.uint16[R+3]=A,this.uint16[R+4]=I,this.uint16[R+5]=D,this.uint16[R+6]=N,this.uint16[R+7]=H,this.uint16[R+8]=X,this.uint16[R+9]=ne,c},u}(ra);Nu.prototype.bytesPerElement=20,_n("StructArrayLayout10ui20",Nu);var Zf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,H,X,ne,R){var Pe=this.length;return this.resize(Pe+1),this.emplace(Pe,c,m,x,E,A,I,D,N,H,X,ne,R)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,H,X,ne,R,Pe){var Be=12*c;return this.int16[Be+0]=m,this.int16[Be+1]=x,this.int16[Be+2]=E,this.int16[Be+3]=A,this.uint16[Be+4]=I,this.uint16[Be+5]=D,this.uint16[Be+6]=N,this.uint16[Be+7]=H,this.int16[Be+8]=X,this.int16[Be+9]=ne,this.int16[Be+10]=R,this.int16[Be+11]=Pe,c},u}(ra);Zf.prototype.bytesPerElement=24,_n("StructArrayLayout4i4ui4i24",Zf);var kc=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.float32[A+0]=m,this.float32[A+1]=x,this.float32[A+2]=E,c},u}(ra);kc.prototype.bytesPerElement=12,_n("StructArrayLayout3f12",kc);var cf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.uint32[1*c+0]=m,c},u}(ra);cf.prototype.bytesPerElement=4,_n("StructArrayLayout1ul4",cf);var Vf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,H){var X=this.length;return this.resize(X+1),this.emplace(X,c,m,x,E,A,I,D,N,H)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,H,X){var ne=10*c,R=5*c;return this.int16[ne+0]=m,this.int16[ne+1]=x,this.int16[ne+2]=E,this.int16[ne+3]=A,this.int16[ne+4]=I,this.int16[ne+5]=D,this.uint32[R+3]=N,this.uint16[ne+8]=H,this.uint16[ne+9]=X,c},u}(ra);Vf.prototype.bytesPerElement=20,_n("StructArrayLayout6i1ul2ui20",Vf);var ac=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I){var D=this.length;return this.resize(D+1),this.emplace(D,c,m,x,E,A,I)},u.prototype.emplace=function(c,m,x,E,A,I,D){var N=6*c;return this.int16[N+0]=m,this.int16[N+1]=x,this.int16[N+2]=E,this.int16[N+3]=A,this.int16[N+4]=I,this.int16[N+5]=D,c},u}(ra);ac.prototype.bytesPerElement=12,_n("StructArrayLayout2i2i2i12",ac);var oc=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A){var I=this.length;return this.resize(I+1),this.emplace(I,c,m,x,E,A)},u.prototype.emplace=function(c,m,x,E,A,I){var D=4*c,N=8*c;return this.float32[D+0]=m,this.float32[D+1]=x,this.float32[D+2]=E,this.int16[N+6]=A,this.int16[N+7]=I,c},u}(ra);oc.prototype.bytesPerElement=16,_n("StructArrayLayout2f1f2i16",oc);var Uu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=12*c,D=3*c;return this.uint8[I+0]=m,this.uint8[I+1]=x,this.float32[D+1]=E,this.float32[D+2]=A,c},u}(ra);Uu.prototype.bytesPerElement=12,_n("StructArrayLayout2ub2f12",Uu);var zu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.uint16[A+0]=m,this.uint16[A+1]=x,this.uint16[A+2]=E,c},u}(ra);zu.prototype.bytesPerElement=6,_n("StructArrayLayout3ui6",zu);var tu=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,H,X,ne,R,Pe,Be,rt,Ge,St){var Ft=this.length;return this.resize(Ft+1),this.emplace(Ft,c,m,x,E,A,I,D,N,H,X,ne,R,Pe,Be,rt,Ge,St)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,H,X,ne,R,Pe,Be,rt,Ge,St,Ft){var Yt=24*c,qt=12*c,dr=48*c;return this.int16[Yt+0]=m,this.int16[Yt+1]=x,this.uint16[Yt+2]=E,this.uint16[Yt+3]=A,this.uint32[qt+2]=I,this.uint32[qt+3]=D,this.uint32[qt+4]=N,this.uint16[Yt+10]=H,this.uint16[Yt+11]=X,this.uint16[Yt+12]=ne,this.float32[qt+7]=R,this.float32[qt+8]=Pe,this.uint8[dr+36]=Be,this.uint8[dr+37]=rt,this.uint8[dr+38]=Ge,this.uint32[qt+10]=St,this.int16[Yt+22]=Ft,c},u}(ra);tu.prototype.bytesPerElement=48,_n("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",tu);var jf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E,A,I,D,N,H,X,ne,R,Pe,Be,rt,Ge,St,Ft,Yt,qt,dr,Lr,Xr,Bn,cn,Vn,pn,Ei){var ti=this.length;return this.resize(ti+1),this.emplace(ti,c,m,x,E,A,I,D,N,H,X,ne,R,Pe,Be,rt,Ge,St,Ft,Yt,qt,dr,Lr,Xr,Bn,cn,Vn,pn,Ei)},u.prototype.emplace=function(c,m,x,E,A,I,D,N,H,X,ne,R,Pe,Be,rt,Ge,St,Ft,Yt,qt,dr,Lr,Xr,Bn,cn,Vn,pn,Ei,ti){var Rn=34*c,Di=17*c;return this.int16[Rn+0]=m,this.int16[Rn+1]=x,this.int16[Rn+2]=E,this.int16[Rn+3]=A,this.int16[Rn+4]=I,this.int16[Rn+5]=D,this.int16[Rn+6]=N,this.int16[Rn+7]=H,this.uint16[Rn+8]=X,this.uint16[Rn+9]=ne,this.uint16[Rn+10]=R,this.uint16[Rn+11]=Pe,this.uint16[Rn+12]=Be,this.uint16[Rn+13]=rt,this.uint16[Rn+14]=Ge,this.uint16[Rn+15]=St,this.uint16[Rn+16]=Ft,this.uint16[Rn+17]=Yt,this.uint16[Rn+18]=qt,this.uint16[Rn+19]=dr,this.uint16[Rn+20]=Lr,this.uint16[Rn+21]=Xr,this.uint16[Rn+22]=Bn,this.uint32[Di+12]=cn,this.float32[Di+13]=Vn,this.float32[Di+14]=pn,this.float32[Di+15]=Ei,this.float32[Di+16]=ti,c},u}(ra);jf.prototype.bytesPerElement=68,_n("StructArrayLayout8i15ui1ul4f68",jf);var Ol=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.float32[1*c+0]=m,c},u}(ra);Ol.prototype.bytesPerElement=4,_n("StructArrayLayout1f4",Ol);var ru=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=3*c;return this.int16[A+0]=m,this.int16[A+1]=x,this.int16[A+2]=E,c},u}(ra);ru.prototype.bytesPerElement=6,_n("StructArrayLayout3i6",ru);var Dl=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x){var E=this.length;return this.resize(E+1),this.emplace(E,c,m,x)},u.prototype.emplace=function(c,m,x,E){var A=4*c;return this.uint32[2*c+0]=m,this.uint16[A+2]=x,this.uint16[A+3]=E,c},u}(ra);Dl.prototype.bytesPerElement=8,_n("StructArrayLayout1ul2ui8",Dl);var ff=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m){var x=this.length;return this.resize(x+1),this.emplace(x,c,m)},u.prototype.emplace=function(c,m,x){var E=2*c;return this.uint16[E+0]=m,this.uint16[E+1]=x,c},u}(ra);ff.prototype.bytesPerElement=4,_n("StructArrayLayout2ui4",ff);var Rh=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c){var m=this.length;return this.resize(m+1),this.emplace(m,c)},u.prototype.emplace=function(c,m){return this.uint16[1*c+0]=m,c},u}(ra);Rh.prototype.bytesPerElement=2,_n("StructArrayLayout1ui2",Rh);var Hf=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},u.prototype.emplaceBack=function(c,m,x,E){var A=this.length;return this.resize(A+1),this.emplace(A,c,m,x,E)},u.prototype.emplace=function(c,m,x,E,A){var I=4*c;return this.float32[I+0]=m,this.float32[I+1]=x,this.float32[I+2]=E,this.float32[I+3]=A,c},u}(ra);Hf.prototype.bytesPerElement=16,_n("StructArrayLayout4f16",Hf);var h=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return c.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},c.x1.get=function(){return this._structArray.int16[this._pos2+2]},c.y1.get=function(){return this._structArray.int16[this._pos2+3]},c.x2.get=function(){return this._structArray.int16[this._pos2+4]},c.y2.get=function(){return this._structArray.int16[this._pos2+5]},c.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},c.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},c.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},c.anchorPoint.get=function(){return new se(this.anchorPointX,this.anchorPointY)},Object.defineProperties(u.prototype,c),u}(Fc);h.prototype.size=20;var d=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new h(this,c)},u}(Vf);_n("CollisionBoxArray",d);var p=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return c.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},c.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},c.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},c.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},c.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},c.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},c.segment.get=function(){return this._structArray.uint16[this._pos2+10]},c.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},c.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},c.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},c.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},c.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},c.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},c.placedOrientation.set=function(m){this._structArray.uint8[this._pos1+37]=m},c.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},c.hidden.set=function(m){this._structArray.uint8[this._pos1+38]=m},c.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},c.crossTileID.set=function(m){this._structArray.uint32[this._pos4+10]=m},c.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(u.prototype,c),u}(Fc);p.prototype.size=48;var g=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new p(this,c)},u}(tu);_n("PlacedSymbolArray",g);var S=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return c.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},c.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},c.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},c.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},c.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},c.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},c.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},c.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},c.key.get=function(){return this._structArray.uint16[this._pos2+8]},c.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},c.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},c.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},c.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},c.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},c.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},c.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},c.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},c.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},c.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},c.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},c.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},c.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},c.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},c.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},c.crossTileID.set=function(m){this._structArray.uint32[this._pos4+12]=m},c.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},c.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},c.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},c.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(u.prototype,c),u}(Fc);S.prototype.size=68;var w=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new S(this,c)},u}(jf);_n("SymbolInstanceArray",w);var C=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getoffsetX=function(c){return this.float32[1*c+0]},u}(Ol);_n("GlyphOffsetArray",C);var P=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.getx=function(c){return this.int16[3*c+0]},u.prototype.gety=function(c){return this.int16[3*c+1]},u.prototype.gettileUnitDistanceFromAnchor=function(c){return this.int16[3*c+2]},u}(ru);_n("SymbolLineVertexArray",P);var Z=function(a){function u(){a.apply(this,arguments)}a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u;var c={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return c.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},c.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},c.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(u.prototype,c),u}(Fc);Z.prototype.size=8;var Y=function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.get=function(c){return new Z(this,c)},u}(Dl);_n("FeatureIndexArray",Y);var pe=wo([{name:"a_pos",components:2,type:"Int16"}],4).members,_e=function(a){a===void 0&&(a=[]),this.segments=a};function ye(a,u){return 256*(a=wt(Math.floor(a),0,255))+wt(Math.floor(u),0,255)}_e.prototype.prepareSegment=function(a,u,c,m){var x=this.segments[this.segments.length-1];return a>_e.MAX_VERTEX_ARRAY_LENGTH&&qe("Max vertices per segment is "+_e.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+a),(!x||x.vertexLength+a>_e.MAX_VERTEX_ARRAY_LENGTH||x.sortKey!==m)&&(x={vertexOffset:u.length,primitiveOffset:c.length,vertexLength:0,primitiveLength:0},m!==void 0&&(x.sortKey=m),this.segments.push(x)),x},_e.prototype.get=function(){return this.segments},_e.prototype.destroy=function(){for(var a=0,u=this.segments;a>>16)*I&65535)<<16)&4294967295)<<15|N>>>17))*D+(((N>>>16)*D&65535)<<16)&4294967295)<<13|E>>>19))+((5*(E>>>16)&65535)<<16)&4294967295))+((58964+(A>>>16)&65535)<<16);switch(N=0,m){case 3:N^=(255&u.charCodeAt(H+2))<<16;case 2:N^=(255&u.charCodeAt(H+1))<<8;case 1:E^=N=(65535&(N=(N=(65535&(N^=255&u.charCodeAt(H)))*I+(((N>>>16)*I&65535)<<16)&4294967295)<<15|N>>>17))*D+(((N>>>16)*D&65535)<<16)&4294967295}return E^=u.length,E=2246822507*(65535&(E^=E>>>16))+((2246822507*(E>>>16)&65535)<<16)&4294967295,E=3266489909*(65535&(E^=E>>>13))+((3266489909*(E>>>16)&65535)<<16)&4294967295,(E^=E>>>16)>>>0}}),Ke=le(function(a){a.exports=function(u,c){for(var m,x=u.length,E=c^x,A=0;x>=4;)m=1540483477*(65535&(m=255&u.charCodeAt(A)|(255&u.charCodeAt(++A))<<8|(255&u.charCodeAt(++A))<<16|(255&u.charCodeAt(++A))<<24))+((1540483477*(m>>>16)&65535)<<16),E=1540483477*(65535&E)+((1540483477*(E>>>16)&65535)<<16)^(m=1540483477*(65535&(m^=m>>>24))+((1540483477*(m>>>16)&65535)<<16)),x-=4,++A;switch(x){case 3:E^=(255&u.charCodeAt(A+2))<<16;case 2:E^=(255&u.charCodeAt(A+1))<<8;case 1:E=1540483477*(65535&(E^=255&u.charCodeAt(A)))+((1540483477*(E>>>16)&65535)<<16)}return E=1540483477*(65535&(E^=E>>>13))+((1540483477*(E>>>16)&65535)<<16),(E^=E>>>15)>>>0}}),Ie=ke,$e=Ke;Ie.murmur3=ke,Ie.murmur2=$e;var vt=function(){this.ids=[],this.positions=[],this.indexed=!1};vt.prototype.add=function(a,u,c,m){this.ids.push(Jt(a)),this.positions.push(u,c,m)},vt.prototype.getPositions=function(a){for(var u=Jt(a),c=0,m=this.ids.length-1;c>1;this.ids[x]>=u?m=x:c=x+1}for(var E=[];this.ids[c]===u;)E.push({index:this.positions[3*c],start:this.positions[3*c+1],end:this.positions[3*c+2]}),c++;return E},vt.serialize=function(a,u){var c=new Float64Array(a.ids),m=new Uint32Array(a.positions);return function x(E,A,I,D){for(;I>1],H=I-1,X=D+1;;){do H++;while(E[H]N);if(H>=X)break;zt(E,H,X),zt(A,3*H,3*X),zt(A,3*H+1,3*X+1),zt(A,3*H+2,3*X+2)}X-IA.x+1||DA.y+1)&&qe("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return c}function Xa(a,u){return{type:a.type,id:a.id,properties:a.properties,geometry:u?Ga(a):[]}}function Ss(a,u,c,m,x){a.emplaceBack(2*u+(m+1)/2,2*c+(x+1)/2)}var ls=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new Pl,this.indexArray=new zu,this.segments=new _e,this.programConfigurations=new Kn(a.layers,a.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};function Zu(a,u){for(var c=0;c1){if(sl(a,u))return!0;for(var m=0;m1?c:c.sub(u)._mult(x)._add(u))}function Vu(a,u){for(var c,m,x,E=!1,A=0;Au.y!=(x=c[D]).y>u.y&&u.x<(x.x-m.x)*(u.y-m.y)/(x.y-m.y)+m.x&&(E=!E);return E}function iu(a,u){for(var c=!1,m=0,x=a.length-1;mu.y!=A.y>u.y&&u.x<(A.x-E.x)*(u.y-E.y)/(A.y-E.y)+E.x&&(c=!c)}return c}function ju(a,u,c){var m=c[0],x=c[2];if(a.xx.x&&u.x>x.x||a.yx.y&&u.y>x.y)return!1;var E=Ct(a,u,c[0]);return E!==Ct(a,u,c[1])||E!==Ct(a,u,c[2])||E!==Ct(a,u,c[3])}function Ko(a,u,c){var m=u.paint.get(a).value;return m.kind==="constant"?m.value:c.programConfigurations.get(u.id).getMaxValue(a)}function Qa(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1])}function As(a,u,c,m,x){if(!u[0]&&!u[1])return a;var E=se.convert(u)._mult(x);c==="viewport"&&E._rotate(-m);for(var A=[],I=0;I=8192||H<0||H>=8192)){var X=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,a.sortKey),ne=X.vertexLength;Ss(this.layoutVertexArray,N,H,-1,-1),Ss(this.layoutVertexArray,N,H,1,-1),Ss(this.layoutVertexArray,N,H,1,1),Ss(this.layoutVertexArray,N,H,-1,1),this.indexArray.emplaceBack(ne,ne+1,ne+2),this.indexArray.emplaceBack(ne,ne+3,ne+2),X.vertexLength+=4,X.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,a,c,{},m)},_n("CircleBucket",ls,{omit:["layers"]});var au=new Fa({"circle-sort-key":new yn(j.layout_circle["circle-sort-key"])}),Hu={paint:new Fa({"circle-radius":new yn(j.paint_circle["circle-radius"]),"circle-color":new yn(j.paint_circle["circle-color"]),"circle-blur":new yn(j.paint_circle["circle-blur"]),"circle-opacity":new yn(j.paint_circle["circle-opacity"]),"circle-translate":new kn(j.paint_circle["circle-translate"]),"circle-translate-anchor":new kn(j.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new kn(j.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new kn(j.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new yn(j.paint_circle["circle-stroke-width"]),"circle-stroke-color":new yn(j.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new yn(j.paint_circle["circle-stroke-opacity"])}),layout:au},Zi=typeof Float32Array!="undefined"?Float32Array:Array;function mo(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function ao(a,u,c){var m=u[0],x=u[1],E=u[2],A=u[3],I=u[4],D=u[5],N=u[6],H=u[7],X=u[8],ne=u[9],R=u[10],Pe=u[11],Be=u[12],rt=u[13],Ge=u[14],St=u[15],Ft=c[0],Yt=c[1],qt=c[2],dr=c[3];return a[0]=Ft*m+Yt*I+qt*X+dr*Be,a[1]=Ft*x+Yt*D+qt*ne+dr*rt,a[2]=Ft*E+Yt*N+qt*R+dr*Ge,a[3]=Ft*A+Yt*H+qt*Pe+dr*St,a[4]=(Ft=c[4])*m+(Yt=c[5])*I+(qt=c[6])*X+(dr=c[7])*Be,a[5]=Ft*x+Yt*D+qt*ne+dr*rt,a[6]=Ft*E+Yt*N+qt*R+dr*Ge,a[7]=Ft*A+Yt*H+qt*Pe+dr*St,a[8]=(Ft=c[8])*m+(Yt=c[9])*I+(qt=c[10])*X+(dr=c[11])*Be,a[9]=Ft*x+Yt*D+qt*ne+dr*rt,a[10]=Ft*E+Yt*N+qt*R+dr*Ge,a[11]=Ft*A+Yt*H+qt*Pe+dr*St,a[12]=(Ft=c[12])*m+(Yt=c[13])*I+(qt=c[14])*X+(dr=c[15])*Be,a[13]=Ft*x+Yt*D+qt*ne+dr*rt,a[14]=Ft*E+Yt*N+qt*R+dr*Ge,a[15]=Ft*A+Yt*H+qt*Pe+dr*St,a}Math.hypot||(Math.hypot=function(){for(var a=arguments,u=0,c=arguments.length;c--;)u+=a[c]*a[c];return Math.sqrt(u)});var ou,Bc=ao;function Bl(a,u,c){var m=u[0],x=u[1],E=u[2],A=u[3];return a[0]=c[0]*m+c[4]*x+c[8]*E+c[12]*A,a[1]=c[1]*m+c[5]*x+c[9]*E+c[13]*A,a[2]=c[2]*m+c[6]*x+c[10]*E+c[14]*A,a[3]=c[3]*m+c[7]*x+c[11]*E+c[15]*A,a}ou=new Zi(3),Zi!=Float32Array&&(ou[0]=0,ou[1]=0,ou[2]=0),function(){var a=new Zi(4);Zi!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0)}();var fs=(function(){var a=new Zi(2);Zi!=Float32Array&&(a[0]=0,a[1]=0)}(),function(a){function u(c){a.call(this,c,Hu)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.createBucket=function(c){return new ls(c)},u.prototype.queryRadius=function(c){var m=c;return Ko("circle-radius",this,m)+Ko("circle-stroke-width",this,m)+Qa(this.paint.get("circle-translate"))},u.prototype.queryIntersectsFeature=function(c,m,x,E,A,I,D,N){for(var H=As(c,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),I.angle,D),X=this.paint.get("circle-radius").evaluate(m,x)+this.paint.get("circle-stroke-width").evaluate(m,x),ne=this.paint.get("circle-pitch-alignment")==="map",R=ne?H:function(Lr,Xr){return Lr.map(function(Bn){return Or(Bn,Xr)})}(H,N),Pe=ne?X*D:X,Be=0,rt=E;Bea.width||x.height>a.height||c.x>a.width-x.width||c.y>a.height-x.height)throw new RangeError("out of range source coordinates for image copy");if(x.width>u.width||x.height>u.height||m.x>u.width-x.width||m.y>u.height-x.height)throw new RangeError("out of range destination coordinates for image copy");for(var A=a.data,I=u.data,D=0;D80*c){m=E=a[0],x=A=a[1];for(var Pe=c;PeE&&(E=I),D>A&&(A=D);N=(N=Math.max(E-m,A-x))!==0?1/N:0}return Mh(ne,R,c,m,x,N),R}function Pd(a,u,c,m,x){var E,A;if(x===_f(a,u,c,m)>0)for(E=u;E=u;E-=m)A=gf(E,a[E],a[E+1],A);return A&&uc(A,A.next)&&(ll(A),A=A.next),A}function Nc(a,u){if(!a)return a;u||(u=a);var c,m=a;do if(c=!1,m.steiner||!uc(m,m.next)&&so(m.prev,m,m.next)!==0)m=m.next;else{if(ll(m),(m=u=m.prev)===m.next)break;c=!0}while(c||m!==u);return u}function Mh(a,u,c,m,x,E,A){if(a){!A&&E&&function(H,X,ne,R){var Pe=H;do Pe.z===null&&(Pe.z=Wf(Pe.x,Pe.y,X,ne,R)),Pe.prevZ=Pe.prev,Pe.nextZ=Pe.next,Pe=Pe.next;while(Pe!==H);Pe.prevZ.nextZ=null,Pe.prevZ=null,function(Be){var rt,Ge,St,Ft,Yt,qt,dr,Lr,Xr=1;do{for(Ge=Be,Be=null,Yt=null,qt=0;Ge;){for(qt++,St=Ge,dr=0,rt=0;rt0||Lr>0&&St;)dr!==0&&(Lr===0||!St||Ge.z<=St.z)?(Ft=Ge,Ge=Ge.nextZ,dr--):(Ft=St,St=St.nextZ,Lr--),Yt?Yt.nextZ=Ft:Be=Ft,Ft.prevZ=Yt,Yt=Ft;Ge=St}Yt.nextZ=null,Xr*=2}while(qt>1)}(Pe)}(a,m,x,E);for(var I,D,N=a;a.prev!==a.next;)if(I=a.prev,D=a.next,E?Qm(a,m,x,E):Od(a))u.push(I.i/c),u.push(a.i/c),u.push(D.i/c),ll(a),a=D.next,N=D.next;else if((a=D)===N){A?A===1?Mh(a=Hp(Nc(a),u,c),u,c,m,x,E,2):A===2&&Dd(a,u,c,m,x,E):Mh(Nc(a),u,c,m,x,E,1);break}}}function Od(a){var u=a.prev,c=a,m=a.next;if(so(u,c,m)>=0)return!1;for(var x=a.next.next;x!==a.prev;){if(df(u.x,u.y,c.x,c.y,m.x,m.y,x.x,x.y)&&so(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function Qm(a,u,c,m){var x=a.prev,E=a,A=a.next;if(so(x,E,A)>=0)return!1;for(var I=x.x>E.x?x.x>A.x?x.x:A.x:E.x>A.x?E.x:A.x,D=x.y>E.y?x.y>A.y?x.y:A.y:E.y>A.y?E.y:A.y,N=Wf(x.x=N&&ne&&ne.z<=H;){if(X!==a.prev&&X!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,X.x,X.y)&&so(X.prev,X,X.next)>=0||(X=X.prevZ,ne!==a.prev&&ne!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,ne.x,ne.y)&&so(ne.prev,ne,ne.next)>=0))return!1;ne=ne.nextZ}for(;X&&X.z>=N;){if(X!==a.prev&&X!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,X.x,X.y)&&so(X.prev,X,X.next)>=0)return!1;X=X.prevZ}for(;ne&&ne.z<=H;){if(ne!==a.prev&&ne!==a.next&&df(x.x,x.y,E.x,E.y,A.x,A.y,ne.x,ne.y)&&so(ne.prev,ne,ne.next)>=0)return!1;ne=ne.nextZ}return!0}function Hp(a,u,c){var m=a;do{var x=m.prev,E=m.next.next;!uc(x,E)&&hp(x,m,m.next,E)&&zc(x,E)&&zc(E,x)&&(u.push(x.i/c),u.push(m.i/c),u.push(E.i/c),ll(m),ll(m.next),m=a=E),m=m.next}while(m!==a);return Nc(m)}function Dd(a,u,c,m,x,E){var A=a;do{for(var I=A.next.next;I!==A.prev;){if(A.i!==I.i&&fp(A,I)){var D=Ih(A,I);return A=Nc(A,A.next),D=Nc(D,D.next),Mh(A,u,c,m,x,E),void Mh(D,u,c,m,x,E)}I=I.next}A=A.next}while(A!==a)}function Jm(a,u){return a.x-u.x}function Fd(a,u){if(u=function(m,x){var E,A=x,I=m.x,D=m.y,N=-1/0;do{if(D<=A.y&&D>=A.next.y&&A.next.y!==A.y){var H=A.x+(D-A.y)*(A.next.x-A.x)/(A.next.y-A.y);if(H<=I&&H>N){if(N=H,H===I){if(D===A.y)return A;if(D===A.next.y)return A.next}E=A.x=A.x&&A.x>=R&&I!==A.x&&df(DE.x||A.x===E.x&&Uc(E,A)))&&(E=A,Be=X)),A=A.next;while(A!==ne);return E}(a,u)){var c=Ih(u,a);Nc(u,u.next),Nc(c,c.next)}}function Uc(a,u){return so(a.prev,a,u.prev)<0&&so(u.next,a,a.next)<0}function Wf(a,u,c,m,x){return(a=1431655765&((a=858993459&((a=252645135&((a=16711935&((a=32767*(a-c)*x)|a<<8))|a<<4))|a<<2))|a<<1))|(u=1431655765&((u=858993459&((u=252645135&((u=16711935&((u=32767*(u-m)*x)|u<<8))|u<<4))|u<<2))|u<<1))<<1}function cp(a){var u=a,c=a;do(u.x=0&&(a-A)*(m-I)-(c-A)*(u-I)>=0&&(c-A)*(E-I)-(x-A)*(m-I)>=0}function fp(a,u){return a.next.i!==u.i&&a.prev.i!==u.i&&!function(c,m){var x=c;do{if(x.i!==c.i&&x.next.i!==c.i&&x.i!==m.i&&x.next.i!==m.i&&hp(x,x.next,c,m))return!0;x=x.next}while(x!==c);return!1}(a,u)&&(zc(a,u)&&zc(u,a)&&function(c,m){var x=c,E=!1,A=(c.x+m.x)/2,I=(c.y+m.y)/2;do x.y>I!=x.next.y>I&&x.next.y!==x.y&&A<(x.next.x-x.x)*(I-x.y)/(x.next.y-x.y)+x.x&&(E=!E),x=x.next;while(x!==c);return E}(a,u)&&(so(a.prev,a,u.prev)||so(a,u.prev,u))||uc(a,u)&&so(a.prev,a,a.next)>0&&so(u.prev,u,u.next)>0)}function so(a,u,c){return(u.y-a.y)*(c.x-u.x)-(u.x-a.x)*(c.y-u.y)}function uc(a,u){return a.x===u.x&&a.y===u.y}function hp(a,u,c,m){var x=mf(so(a,u,c)),E=mf(so(a,u,m)),A=mf(so(c,m,a)),I=mf(so(c,m,u));return x!==E&&A!==I||!(x!==0||!vf(a,c,u))||!(E!==0||!vf(a,m,u))||!(A!==0||!vf(c,a,m))||!(I!==0||!vf(c,u,m))}function vf(a,u,c){return u.x<=Math.max(a.x,c.x)&&u.x>=Math.min(a.x,c.x)&&u.y<=Math.max(a.y,c.y)&&u.y>=Math.min(a.y,c.y)}function mf(a){return a>0?1:a<0?-1:0}function zc(a,u){return so(a.prev,a,a.next)<0?so(a,u,a.next)>=0&&so(a,a.prev,u)>=0:so(a,u,a.prev)<0||so(a,a.next,u)<0}function Ih(a,u){var c=new Zc(a.i,a.x,a.y),m=new Zc(u.i,u.x,u.y),x=a.next,E=u.prev;return a.next=u,u.prev=a,c.next=x,x.prev=c,m.next=c,c.prev=m,E.next=m,m.prev=E,m}function gf(a,u,c,m){var x=new Zc(a,u,c);return m?(x.next=m.next,x.prev=m,m.next.prev=x,m.next=x):(x.prev=x,x.next=x),x}function ll(a){a.next.prev=a.prev,a.prev.next=a.next,a.prevZ&&(a.prevZ.nextZ=a.nextZ),a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function Zc(a,u,c){this.i=a,this.x=u,this.y=c,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function _f(a,u,c,m){for(var x=0,E=u,A=c-m;ED;){if(N-D>600){var X=N-D+1,ne=I-D+1,R=Math.log(X),Pe=.5*Math.exp(2*R/3),Be=.5*Math.sqrt(R*Pe*(X-Pe)/X)*(ne-X/2<0?-1:1);E(A,I,Math.max(D,Math.floor(I-ne*Pe/X+Be)),Math.min(N,Math.floor(I+(X-ne)*Pe/X+Be)),H)}var rt=A[I],Ge=D,St=N;for(lc(A,D,I),H(A[N],rt)>0&&lc(A,D,N);Ge0;)St--}H(A[D],rt)===0?lc(A,D,St):lc(A,++St,N),St<=I&&(D=St+1),I<=St&&(N=St-1)}})(a,u,c||0,m||a.length-1,x||yf)}function lc(a,u,c){var m=a[u];a[u]=a[c],a[c]=m}function yf(a,u){return au?1:0}function pp(a,u){var c=a.length;if(c<=1)return[a];for(var m,x,E=[],A=0;A1)for(var D=0;D0&&c.holes.push(m+=a[x-1].length)}return c},pf.default=Id;var fl=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Pl,this.indexArray=new zu,this.indexArray2=new ff,this.programConfigurations=new Kn(a.layers,a.zoom),this.segments=new _e,this.segments2=new _e,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};fl.prototype.populate=function(a,u,c){this.hasPattern=Wp("fill",this.layers,u);for(var m=this.layers[0].layout.get("fill-sort-key"),x=[],E=0,A=a;E>3}if(x--,m===1||m===2)E+=a.readSVarint(),A+=a.readSVarint(),m===1&&(u&&I.push(u),u=[]),u.push(new se(E,A));else{if(m!==7)throw new Error("unknown command "+m);u&&u.push(u[0].clone())}}return u&&I.push(u),I},cc.prototype.bbox=function(){var a=this._pbf;a.pos=this._geometry;for(var u=a.readVarint()+a.pos,c=1,m=0,x=0,E=0,A=1/0,I=-1/0,D=1/0,N=-1/0;a.pos>3}if(m--,c===1||c===2)(x+=a.readSVarint())I&&(I=x),(E+=a.readSVarint())N&&(N=E);else if(c!==7)throw new Error("unknown command "+c)}return[A,D,I,N]},cc.prototype.toGeoJSON=function(a,u,c){var m,x,E=this.extent*Math.pow(2,c),A=this.extent*a,I=this.extent*u,D=this.loadGeometry(),N=cc.types[this.type];function H(R){for(var Pe=0;Pe>3;x=A===1?m.readString():A===2?m.readFloat():A===3?m.readDouble():A===4?m.readVarint64():A===5?m.readVarint():A===6?m.readSVarint():A===7?m.readBoolean():null}return x}(c))}function Xp(a,u,c){if(a===3){var m=new pl(c,c.readVarint()+c.pos);m.length&&(u[m.name]=m)}}bf.prototype.feature=function(a){if(a<0||a>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[a];var u=this._pbf.readVarint()+this._pbf.pos;return new dp(this._pbf,u,this.extent,this._keys,this._values)};var Ul={VectorTile:function(a,u){this.layers=a.readFields(Xp,{},u)},VectorTileFeature:dp,VectorTileLayer:pl},Gf=Ul.VectorTileFeature.types,vp=Math.pow(2,13);function Ts(a,u,c,m,x,E,A,I){a.emplaceBack(u,c,2*Math.floor(m*vp)+A,x*vp*2,E*vp*2,Math.round(I))}var hs=function(a){this.zoom=a.zoom,this.overscaling=a.overscaling,this.layers=a.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=a.index,this.hasPattern=!1,this.layoutVertexArray=new gu,this.indexArray=new zu,this.programConfigurations=new Kn(a.layers,a.zoom),this.segments=new _e,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};function go(a,u){return a.x===u.x&&(a.x<0||a.x>8192)||a.y===u.y&&(a.y<0||a.y>8192)}hs.prototype.populate=function(a,u,c){this.features=[],this.hasPattern=Wp("fill-extrusion",this.layers,u);for(var m=0,x=a;m8192})||Di.every(function(gi){return gi.y<0})||Di.every(function(gi){return gi.y>8192})))for(var Be=0,rt=0;rt=1){var St=Pe[rt-1];if(!go(Ge,St)){X.vertexLength+4>_e.MAX_VERTEX_ARRAY_LENGTH&&(X=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Ft=Ge.sub(St)._perp()._unit(),Yt=St.dist(Ge);Be+Yt>32768&&(Be=0),Ts(this.layoutVertexArray,Ge.x,Ge.y,Ft.x,Ft.y,0,0,Be),Ts(this.layoutVertexArray,Ge.x,Ge.y,Ft.x,Ft.y,0,1,Be),Ts(this.layoutVertexArray,St.x,St.y,Ft.x,Ft.y,0,0,Be+=Yt),Ts(this.layoutVertexArray,St.x,St.y,Ft.x,Ft.y,0,1,Be);var qt=X.vertexLength;this.indexArray.emplaceBack(qt,qt+2,qt+1),this.indexArray.emplaceBack(qt+1,qt+2,qt+3),X.vertexLength+=4,X.primitiveLength+=2}}}}if(X.vertexLength+D>_e.MAX_VERTEX_ARRAY_LENGTH&&(X=this.segments.prepareSegment(D,this.layoutVertexArray,this.indexArray)),Gf[a.type]==="Polygon"){for(var dr=[],Lr=[],Xr=X.vertexLength,Bn=0,cn=I;Bn=2&&a[D-1].equals(a[D-2]);)D--;for(var N=0;N0;if(Lr&&Ge>N){var Bn=H.dist(R);if(Bn>2*X){var cn=H.sub(H.sub(R)._mult(X/Bn)._round());this.updateDistance(R,cn),this.addCurrentVertex(cn,Be,0,0,ne),R=cn}}var Vn=R&&Pe,pn=Vn?c:I?"butt":m;if(Vn&&pn==="round"&&(qtx&&(pn="bevel"),pn==="bevel"&&(qt>2&&(pn="flipbevel"),qt100)St=rt.mult(-1);else{var Ei=qt*Be.add(rt).mag()/Be.sub(rt).mag();St._perp()._mult(Ei*(Xr?-1:1))}this.addCurrentVertex(H,St,0,0,ne),this.addCurrentVertex(H,St.mult(-1),0,0,ne)}else if(pn==="bevel"||pn==="fakeround"){var ti=-Math.sqrt(qt*qt-1),Rn=Xr?ti:0,Di=Xr?0:ti;if(R&&this.addCurrentVertex(H,Be,Rn,Di,ne),pn==="fakeround")for(var gi=Math.round(180*dr/Math.PI/20),Ui=1;Ui2*X){var Za=H.add(Pe.sub(H)._mult(X/uo)._round());this.updateDistance(H,Za),this.addCurrentVertex(Za,rt,0,0,ne),H=Za}}}}},Jo.prototype.addCurrentVertex=function(a,u,c,m,x,E){E===void 0&&(E=!1);var A=u.y*m-u.x,I=-u.y-u.x*m;this.addHalfVertex(a,u.x+u.y*c,u.y-u.x*c,E,!1,c,x),this.addHalfVertex(a,A,I,E,!0,-m,x),this.distance>Dh/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(a,u,c,m,x,E))},Jo.prototype.addHalfVertex=function(a,u,c,m,x,E,A){var I=.5*(this.lineClips?this.scaledDistance*(Dh-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((a.x<<1)+(m?1:0),(a.y<<1)+(x?1:0),Math.round(63*u)+128,Math.round(63*c)+128,1+(E===0?0:E<0?-1:1)|(63&I)<<2,I>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var D=A.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,D),A.primitiveLength++),x?this.e2=D:this.e1=D},Jo.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Jo.prototype.updateDistance=function(a,u){this.distance+=a.dist(u),this.updateScaledDistance()},_n("LineBucket",Jo,{omit:["layers","patternFeatures"]});var Uv=new Fa({"line-cap":new kn(j.layout_line["line-cap"]),"line-join":new yn(j.layout_line["line-join"]),"line-miter-limit":new kn(j.layout_line["line-miter-limit"]),"line-round-limit":new kn(j.layout_line["line-round-limit"]),"line-sort-key":new yn(j.layout_line["line-sort-key"])}),$f={paint:new Fa({"line-opacity":new yn(j.paint_line["line-opacity"]),"line-color":new yn(j.paint_line["line-color"]),"line-translate":new kn(j.paint_line["line-translate"]),"line-translate-anchor":new kn(j.paint_line["line-translate-anchor"]),"line-width":new yn(j.paint_line["line-width"]),"line-gap-width":new yn(j.paint_line["line-gap-width"]),"line-offset":new yn(j.paint_line["line-offset"]),"line-blur":new yn(j.paint_line["line-blur"]),"line-dasharray":new qo(j.paint_line["line-dasharray"]),"line-pattern":new Ls(j.paint_line["line-pattern"]),"line-gradient":new mu(j.paint_line["line-gradient"])}),layout:Uv},qp=new(function(a){function u(){a.apply(this,arguments)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.possiblyEvaluate=function(c,m){return m=new B(Math.floor(m.zoom),{now:m.now,fadeDuration:m.fadeDuration,zoomHistory:m.zoomHistory,transition:m.transition}),a.prototype.possiblyEvaluate.call(this,c,m)},u.prototype.evaluate=function(c,m,x,E){return m=Zt({},m,{zoom:Math.floor(m.zoom)}),a.prototype.evaluate.call(this,c,m,x,E)},u}(yn))($f.paint.properties["line-width"].specification);qp.useIntegerZoom=!0;var Ud=function(a){function u(c){a.call(this,c,$f),this.gradientVersion=0}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype._handleSpecialPaintPropertyUpdate=function(c){c==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Os,this.gradientVersion=(this.gradientVersion+1)%et)},u.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},u.prototype.recalculate=function(c,m){a.prototype.recalculate.call(this,c,m),this.paint._values["line-floorwidth"]=qp.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,c)},u.prototype.createBucket=function(c){return new Jo(c)},u.prototype.queryRadius=function(c){var m=c,x=Kp(Ko("line-width",this,m),Ko("line-gap-width",this,m)),E=Ko("line-offset",this,m);return x/2+Math.abs(E)+Qa(this.paint.get("line-translate"))},u.prototype.queryIntersectsFeature=function(c,m,x,E,A,I,D){var N=As(c,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),I.angle,D),H=D/2*Kp(this.paint.get("line-width").evaluate(m,x),this.paint.get("line-gap-width").evaluate(m,x)),X=this.paint.get("line-offset").evaluate(m,x);return X&&(E=function(ne,R){for(var Pe=[],Be=new se(0,0),rt=0;rt=3){for(var Ge=0;Ge0?u+2*a:a}var zv=wo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Zv=wo([{name:"a_projected_pos",components:3,type:"Float32"}],4),zd=(wo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),wo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Zd=(wo([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),wo([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),z=wo([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ae(a,u,c){return a.sections.forEach(function(m){m.text=function(x,E,A){var I=E.layout.get("text-transform").evaluate(A,{});return I==="uppercase"?x=x.toLocaleUpperCase():I==="lowercase"&&(x=x.toLocaleLowerCase()),Fe.applyArabicShaping&&(x=Fe.applyArabicShaping(x)),x}(m.text,u,c)}),a}wo([{name:"triangle",components:3,type:"Uint16"}]),wo([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),wo([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),wo([{type:"Float32",name:"offsetX"}]),wo([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var je={"!":"\uFE15","#":"\uFF03",$:"\uFF04","%":"\uFF05","&":"\uFF06","(":"\uFE35",")":"\uFE36","*":"\uFF0A","+":"\uFF0B",",":"\uFE10","-":"\uFE32",".":"\u30FB","/":"\uFF0F",":":"\uFE13",";":"\uFE14","<":"\uFE3F","=":"\uFF1D",">":"\uFE40","?":"\uFE16","@":"\uFF20","[":"\uFE47","\\":"\uFF3C","]":"\uFE48","^":"\uFF3E",_:"\uFE33","`":"\uFF40","{":"\uFE37","|":"\u2015","}":"\uFE38","~":"\uFF5E","\xA2":"\uFFE0","\xA3":"\uFFE1","\xA5":"\uFFE5","\xA6":"\uFFE4","\xAC":"\uFFE2","\xAF":"\uFFE3","\u2013":"\uFE32","\u2014":"\uFE31","\u2018":"\uFE43","\u2019":"\uFE44","\u201C":"\uFE41","\u201D":"\uFE42","\u2026":"\uFE19","\u2027":"\u30FB","\u20A9":"\uFFE6","\u3001":"\uFE11","\u3002":"\uFE12","\u3008":"\uFE3F","\u3009":"\uFE40","\u300A":"\uFE3D","\u300B":"\uFE3E","\u300C":"\uFE41","\u300D":"\uFE42","\u300E":"\uFE43","\u300F":"\uFE44","\u3010":"\uFE3B","\u3011":"\uFE3C","\u3014":"\uFE39","\u3015":"\uFE3A","\u3016":"\uFE17","\u3017":"\uFE18","\uFF01":"\uFE15","\uFF08":"\uFE35","\uFF09":"\uFE36","\uFF0C":"\uFE10","\uFF0D":"\uFE32","\uFF0E":"\u30FB","\uFF1A":"\uFE13","\uFF1B":"\uFE14","\uFF1C":"\uFE3F","\uFF1E":"\uFE40","\uFF1F":"\uFE16","\uFF3B":"\uFE47","\uFF3D":"\uFE48","\uFF3F":"\uFE33","\uFF5B":"\uFE37","\uFF5C":"\u2015","\uFF5D":"\uFE38","\uFF5F":"\uFE35","\uFF60":"\uFE36","\uFF61":"\uFE12","\uFF62":"\uFE41","\uFF63":"\uFE42"},jt=function(a,u,c,m,x){var E,A,I=8*x-m-1,D=(1<>1,H=-7,X=c?x-1:0,ne=c?-1:1,R=a[u+X];for(X+=ne,E=R&(1<<-H)-1,R>>=-H,H+=I;H>0;E=256*E+a[u+X],X+=ne,H-=8);for(A=E&(1<<-H)-1,E>>=-H,H+=m;H>0;A=256*A+a[u+X],X+=ne,H-=8);if(E===0)E=1-N;else{if(E===D)return A?NaN:1/0*(R?-1:1);A+=Math.pow(2,m),E-=N}return(R?-1:1)*A*Math.pow(2,E-m)},pr=function(a,u,c,m,x,E){var A,I,D,N=8*E-x-1,H=(1<>1,ne=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,R=m?0:E-1,Pe=m?1:-1,Be=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(I=isNaN(u)?1:0,A=H):(A=Math.floor(Math.log(u)/Math.LN2),u*(D=Math.pow(2,-A))<1&&(A--,D*=2),(u+=A+X>=1?ne/D:ne*Math.pow(2,1-X))*D>=2&&(A++,D/=2),A+X>=H?(I=0,A=H):A+X>=1?(I=(u*D-1)*Math.pow(2,x),A+=X):(I=u*Math.pow(2,X-1)*Math.pow(2,x),A=0));x>=8;a[c+R]=255&I,R+=Pe,I/=256,x-=8);for(A=A<0;a[c+R]=255&A,R+=Pe,A/=256,N-=8);a[c+R-Pe]|=128*Be},Gt=kt;function kt(a){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(a)?a:new Uint8Array(a||0),this.pos=0,this.type=0,this.length=this.buf.length}kt.Varint=0,kt.Fixed64=1,kt.Bytes=2,kt.Fixed32=5;var Dr=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Cr(a){return a.type===kt.Bytes?a.readVarint()+a.pos:a.pos+1}function Vr(a,u,c){return c?4294967296*u+(a>>>0):4294967296*(u>>>0)+(a>>>0)}function Br(a,u,c){var m=u<=16383?1:u<=2097151?2:u<=268435455?3:Math.floor(Math.log(u)/(7*Math.LN2));c.realloc(m);for(var x=c.pos-1;x>=a;x--)c.buf[x+m]=c.buf[x]}function Ur(a,u){for(var c=0;c>>8,a[c+2]=u>>>16,a[c+3]=u>>>24}function nn(a,u){return(a[u]|a[u+1]<<8|a[u+2]<<16)+(a[u+3]<<24)}function br(a,u,c){a===1&&c.readMessage($r,u)}function $r(a,u,c){if(a===3){var m=c.readMessage(Nn,{}),x=m.width,E=m.height,A=m.left,I=m.top,D=m.advance;u.push({id:m.id,bitmap:new _u({width:x+6,height:E+6},m.bitmap),metrics:{width:x,height:E,left:A,top:I,advance:D}})}}function Nn(a,u,c){a===1?u.id=c.readVarint():a===2?u.bitmap=c.readBytes():a===3?u.width=c.readVarint():a===4?u.height=c.readVarint():a===5?u.left=c.readSVarint():a===6?u.top=c.readSVarint():a===7&&(u.advance=c.readVarint())}function ui(a){for(var u=0,c=0,m=0,x=a;m=0;ne--){var R=A[ne];if(!(X.w>R.w||X.h>R.h)){if(X.x=R.x,X.y=R.y,D=Math.max(D,X.y+X.h),I=Math.max(I,X.x+X.w),X.w===R.w&&X.h===R.h){var Pe=A.pop();ne>3,E=this.pos;this.type=7&m,a(x,u,this),this.pos===E&&this.skip(m)}return u},readMessage:function(a,u){return this.readFields(a,u,this.readVarint()+this.pos)},readFixed32:function(){var a=an(this.buf,this.pos);return this.pos+=4,a},readSFixed32:function(){var a=nn(this.buf,this.pos);return this.pos+=4,a},readFixed64:function(){var a=an(this.buf,this.pos)+4294967296*an(this.buf,this.pos+4);return this.pos+=8,a},readSFixed64:function(){var a=an(this.buf,this.pos)+4294967296*nn(this.buf,this.pos+4);return this.pos+=8,a},readFloat:function(){var a=jt(this.buf,this.pos,!0,23,4);return this.pos+=4,a},readDouble:function(){var a=jt(this.buf,this.pos,!0,52,8);return this.pos+=8,a},readVarint:function(a){var u,c,m=this.buf;return u=127&(c=m[this.pos++]),c<128?u:(u|=(127&(c=m[this.pos++]))<<7,c<128?u:(u|=(127&(c=m[this.pos++]))<<14,c<128?u:(u|=(127&(c=m[this.pos++]))<<21,c<128?u:function(x,E,A){var I,D,N=A.buf;if(I=(112&(D=N[A.pos++]))>>4,D<128||(I|=(127&(D=N[A.pos++]))<<3,D<128)||(I|=(127&(D=N[A.pos++]))<<10,D<128)||(I|=(127&(D=N[A.pos++]))<<17,D<128)||(I|=(127&(D=N[A.pos++]))<<24,D<128)||(I|=(1&(D=N[A.pos++]))<<31,D<128))return Vr(x,I,E);throw new Error("Expected varint not more than 10 bytes")}(u|=(15&(c=m[this.pos]))<<28,a,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var a=this.readVarint();return a%2==1?(a+1)/-2:a/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var a=this.readVarint()+this.pos,u=this.pos;return this.pos=a,a-u>=12&&Dr?function(c,m,x){return Dr.decode(c.subarray(m,x))}(this.buf,u,a):function(c,m,x){for(var E="",A=m;A239?4:H>223?3:H>191?2:1;if(A+ne>x)break;ne===1?H<128&&(X=H):ne===2?(192&(I=c[A+1]))==128&&(X=(31&H)<<6|63&I)<=127&&(X=null):ne===3?(D=c[A+2],(192&(I=c[A+1]))==128&&(192&D)==128&&((X=(15&H)<<12|(63&I)<<6|63&D)<=2047||X>=55296&&X<=57343)&&(X=null)):ne===4&&(D=c[A+2],N=c[A+3],(192&(I=c[A+1]))==128&&(192&D)==128&&(192&N)==128&&((X=(15&H)<<18|(63&I)<<12|(63&D)<<6|63&N)<=65535||X>=1114112)&&(X=null)),X===null?(X=65533,ne=1):X>65535&&(X-=65536,E+=String.fromCharCode(X>>>10&1023|55296),X=56320|1023&X),E+=String.fromCharCode(X),A+=ne}return E}(this.buf,u,a)},readBytes:function(){var a=this.readVarint()+this.pos,u=this.buf.subarray(this.pos,a);return this.pos=a,u},readPackedVarint:function(a,u){if(this.type!==kt.Bytes)return a.push(this.readVarint(u));var c=Cr(this);for(a=a||[];this.pos127;);else if(u===kt.Bytes)this.pos=this.readVarint()+this.pos;else if(u===kt.Fixed32)this.pos+=4;else{if(u!==kt.Fixed64)throw new Error("Unimplemented type: "+u);this.pos+=8}},writeTag:function(a,u){this.writeVarint(a<<3|u)},realloc:function(a){for(var u=this.length||16;u268435455||a<0?function(u,c){var m,x;if(u>=0?(m=u%4294967296|0,x=u/4294967296|0):(x=~(-u/4294967296),4294967295^(m=~(-u%4294967296))?m=m+1|0:(m=0,x=x+1|0)),u>=18446744073709552e3||u<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");c.realloc(10),function(E,A,I){I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,E>>>=7,I.buf[I.pos++]=127&E|128,I.buf[I.pos]=127&(E>>>=7)}(m,0,c),function(E,A){var I=(7&E)<<4;A.buf[A.pos++]|=I|((E>>>=3)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E|((E>>>=7)?128:0),E&&(A.buf[A.pos++]=127&E)))))}(x,c)}(a,this):(this.realloc(4),this.buf[this.pos++]=127&a|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=127&(a>>>=7)|(a>127?128:0),a<=127||(this.buf[this.pos++]=a>>>7&127))))},writeSVarint:function(a){this.writeVarint(a<0?2*-a-1:2*a)},writeBoolean:function(a){this.writeVarint(!!a)},writeString:function(a){a=String(a),this.realloc(4*a.length),this.pos++;var u=this.pos;this.pos=function(m,x,E){for(var A,I,D=0;D55295&&A<57344){if(!I){A>56319||D+1===x.length?(m[E++]=239,m[E++]=191,m[E++]=189):I=A;continue}if(A<56320){m[E++]=239,m[E++]=191,m[E++]=189,I=A;continue}A=I-55296<<10|A-56320|65536,I=null}else I&&(m[E++]=239,m[E++]=191,m[E++]=189,I=null);A<128?m[E++]=A:(A<2048?m[E++]=A>>6|192:(A<65536?m[E++]=A>>12|224:(m[E++]=A>>18|240,m[E++]=A>>12&63|128),m[E++]=A>>6&63|128),m[E++]=63&A|128)}return E}(this.buf,a,this.pos);var c=this.pos-u;c>=128&&Br(u,c,this),this.pos=u-1,this.writeVarint(c),this.pos+=c},writeFloat:function(a){this.realloc(4),pr(this.buf,a,this.pos,!0,23,4),this.pos+=4},writeDouble:function(a){this.realloc(8),pr(this.buf,a,this.pos,!0,52,8),this.pos+=8},writeBytes:function(a){var u=a.length;this.writeVarint(u),this.realloc(u);for(var c=0;c=128&&Br(c,m,this),this.pos=c-1,this.writeVarint(m),this.pos+=m},writeMessage:function(a,u,c){this.writeTag(a,kt.Bytes),this.writeRawMessage(u,c)},writePackedVarint:function(a,u){u.length&&this.writeMessage(a,Ur,u)},writePackedSVarint:function(a,u){u.length&&this.writeMessage(a,Gr,u)},writePackedBoolean:function(a,u){u.length&&this.writeMessage(a,Tt,u)},writePackedFloat:function(a,u){u.length&&this.writeMessage(a,Ar,u)},writePackedDouble:function(a,u){u.length&&this.writeMessage(a,zr,u)},writePackedFixed32:function(a,u){u.length&&this.writeMessage(a,er,u)},writePackedSFixed32:function(a,u){u.length&&this.writeMessage(a,Fr,u)},writePackedFixed64:function(a,u){u.length&&this.writeMessage(a,rn,u)},writePackedSFixed64:function(a,u){u.length&&this.writeMessage(a,yr,u)},writeBytesField:function(a,u){this.writeTag(a,kt.Bytes),this.writeBytes(u)},writeFixed32Field:function(a,u){this.writeTag(a,kt.Fixed32),this.writeFixed32(u)},writeSFixed32Field:function(a,u){this.writeTag(a,kt.Fixed32),this.writeSFixed32(u)},writeFixed64Field:function(a,u){this.writeTag(a,kt.Fixed64),this.writeFixed64(u)},writeSFixed64Field:function(a,u){this.writeTag(a,kt.Fixed64),this.writeSFixed64(u)},writeVarintField:function(a,u){this.writeTag(a,kt.Varint),this.writeVarint(u)},writeSVarintField:function(a,u){this.writeTag(a,kt.Varint),this.writeSVarint(u)},writeStringField:function(a,u){this.writeTag(a,kt.Bytes),this.writeString(u)},writeFloatField:function(a,u){this.writeTag(a,kt.Fixed32),this.writeFloat(u)},writeDoubleField:function(a,u){this.writeTag(a,kt.Fixed64),this.writeDouble(u)},writeBooleanField:function(a,u){this.writeVarintField(a,!!u)}};var Qr=function(a,u){var c=u.pixelRatio,m=u.version,x=u.stretchX,E=u.stretchY,A=u.content;this.paddedRect=a,this.pixelRatio=c,this.stretchX=x,this.stretchY=E,this.content=A,this.version=m},yt={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};yt.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},yt.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},yt.tlbr.get=function(){return this.tl.concat(this.br)},yt.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Qr.prototype,yt);var vr=function(a,u){var c={},m={};this.haveRenderCallbacks=[];var x=[];this.addImages(a,c,x),this.addImages(u,m,x);var E=ui(x),A=new Qo({width:E.w||1,height:E.h||1});for(var I in a){var D=a[I],N=c[I].paddedRect;Qo.copy(D.data,A,{x:0,y:0},{x:N.x+1,y:N.y+1},D.data)}for(var H in u){var X=u[H],ne=m[H].paddedRect,R=ne.x+1,Pe=ne.y+1,Be=X.data.width,rt=X.data.height;Qo.copy(X.data,A,{x:0,y:0},{x:R,y:Pe},X.data),Qo.copy(X.data,A,{x:0,y:rt-1},{x:R,y:Pe-1},{width:Be,height:1}),Qo.copy(X.data,A,{x:0,y:0},{x:R,y:Pe+rt},{width:Be,height:1}),Qo.copy(X.data,A,{x:Be-1,y:0},{x:R-1,y:Pe},{width:1,height:rt}),Qo.copy(X.data,A,{x:0,y:0},{x:R+Be,y:Pe},{width:1,height:rt})}this.image=A,this.iconPositions=c,this.patternPositions=m};vr.prototype.addImages=function(a,u,c){for(var m in a){var x=a[m],E={x:0,y:0,w:x.data.width+2,h:x.data.height+2};c.push(E),u[m]=new Qr(E,x),x.hasRenderCallback&&this.haveRenderCallbacks.push(m)}},vr.prototype.patchUpdatedImages=function(a,u){for(var c in a.dispatchRenderCallbacks(this.haveRenderCallbacks),a.updatedImages)this.patchUpdatedImage(this.iconPositions[c],a.getImage(c),u),this.patchUpdatedImage(this.patternPositions[c],a.getImage(c),u)},vr.prototype.patchUpdatedImage=function(a,u,c){if(a&&u&&a.version!==u.version){a.version=u.version;var m=a.tl;c.update(u.data,void 0,{x:m[0],y:m[1]})}},_n("ImagePosition",Qr),_n("ImageAtlas",vr);var ot={horizontal:1,vertical:2,horizontalOnly:3},Ci=function(){this.scale=1,this.fontStack="",this.imageName=null};Ci.forText=function(a,u){var c=new Ci;return c.scale=a||1,c.fontStack=u,c},Ci.forImage=function(a){var u=new Ci;return u.imageName=a,u};var ln=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yi(a,u,c,m,x,E,A,I,D,N,H,X,ne,R,Pe,Be){var rt,Ge=ln.fromFeature(a,x);X===ot.vertical&&Ge.verticalizePunctuation();var St=Fe.processBidirectionalText,Ft=Fe.processStyledBidirectionalText;if(St&&Ge.sections.length===1){rt=[];for(var Yt=0,qt=St(Ge.toString(),fo(Ge,N,E,u,m,R,Pe));Yt0&&Jf>Oo&&(Oo=Jf)}else{var vc=gi[Ki.fontStack],Ep=vc&&vc[su];if(Ep&&Ep.rect)Vl=Ep.rect,to=Ep.metrics;else{var ed=Di[Ki.fontStack],Xd=ed&&ed[su];if(!Xd)continue;to=Xd.metrics}vl=24*($i-Ki.scale)}pc?(Rn.verticalizable=!0,Ba.push({glyph:su,imageName:$u,x:Uo,y:Vs+vl,vertical:pc,scale:Ki.scale,fontStack:Ki.fontStack,sectionIndex:Zl,metrics:to,rect:Vl}),Uo+=Ef*Ki.scale+Za):(Ba.push({glyph:su,imageName:$u,x:Uo,y:Vs+vl,vertical:pc,scale:Ki.scale,fontStack:Ki.fontStack,sectionIndex:Zl,metrics:to,rect:Vl}),Uo+=to.advance*Ki.scale+Za)}Ba.length!==0&&(ka=Math.max(Uo-Za,ka),yo(Ba,0,Ba.length-1,So,Oo)),Uo=0;var td=ia*$i+Oo;ns.lineOffset=Math.max(Oo,Hs),Vs+=td,js=Math.max(td,js),++rs}else Vs+=ia,++rs}var Hc,Sf=Vs- -17,Sp=Sa(za),eh=Sp.horizontalAlign,Ap=Sp.verticalAlign;(function(rd,$d,nd,id,Wc,kh,th,Bh,rh){var nh,Tp=($d-nd)*Wc;nh=kh!==th?-Bh*id- -17:(-id*rh+.5)*th;for(var Gc=0,Lh=rd;Gc=0&&m>=a&&si[this.text.charCodeAt(m)];m--)c--;this.text=this.text.substring(a,c),this.sectionIndex=this.sectionIndex.slice(a,c)},ln.prototype.substring=function(a,u){var c=new ln;return c.text=this.text.substring(a,u),c.sectionIndex=this.sectionIndex.slice(a,u),c.sections=this.sections,c},ln.prototype.toString=function(){return this.text},ln.prototype.getMaxScale=function(){var a=this;return this.sectionIndex.reduce(function(u,c){return Math.max(u,a.sections[c].scale)},0)},ln.prototype.addTextSection=function(a,u){this.text+=a.text,this.sections.push(Ci.forText(a.scale,a.fontStack||u));for(var c=this.sections.length-1,m=0;m=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var si={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Qn={};function Vi(a,u,c,m,x,E){if(u.imageName){var A=m[u.imageName];return A?A.displaySize[0]*u.scale*24/E+x:0}var I=c[u.fontStack],D=I&&I[a];return D?D.metrics.advance*u.scale+x:0}function _o(a,u,c,m){var x=Math.pow(a-u,2);return m?a=0,X=0,ne=0;ne-c/2;){if(--A<0)return!1;I-=a[A].dist(E),E=a[A]}I+=a[A].dist(a[A+1]),A++;for(var D=[],N=0;Im;)N-=D.shift().angleDelta;if(N>x)return!1;A++,I+=H.dist(X)}return!0}function ua(a){for(var u=0,c=0;cN){var Pe=(N-D)/R,Be=qa(X.x,ne.x,Pe),rt=qa(X.y,ne.y,Pe),Ge=new Ja(Be,rt,ne.angleTo(X),H);return Ge._round(),!A||es(a,Ge,I,A,u)?Ge:void 0}D+=R}}function bo(a,u,c,m,x,E,A,I,D){var N=Xn(m,E,A),H=Oi(m,x),X=H*A,ne=a[0].x===0||a[0].x===D||a[0].y===0||a[0].y===D;return u-X=0&&Ui=0&&jn=0&&cn+Lr<=Xr){var ia=new Ja(Ui,jn,Di,pn);ia._round(),Ge&&!es(Pe,ia,Ft,Ge,St)||Vn.push(ia)}}Bn+=Rn}return qt||Vn.length||Yt||(Vn=R(Pe,Bn/2,rt,Ge,St,Ft,Yt,!0,dr)),Vn}(a,ne?u/2*I%u:(H/2+2*E)*A*I%u,u,N,c,X,ne,!1,D)}function Xu(a,u,c,m,x){for(var E=[],A=0;A=m&&X.x>=m||(H.x>=m?H=new se(m,H.y+(m-H.x)/(X.x-H.x)*(X.y-H.y))._round():X.x>=m&&(X=new se(m,H.y+(m-H.x)/(X.x-H.x)*(X.y-H.y))._round()),H.y>=x&&X.y>=x||(H.y>=x?H=new se(H.x+(x-H.y)/(X.y-H.y)*(X.x-H.x),x)._round():X.y>=x&&(X=new se(H.x+(x-H.y)/(X.y-H.y)*(X.x-H.x),x)._round()),D&&H.equals(D[D.length-1])||E.push(D=[H]),D.push(X)))))}return E}function Ne(a,u,c,m){var x=[],E=a.image,A=E.pixelRatio,I=E.paddedRect.w-2,D=E.paddedRect.h-2,N=a.right-a.left,H=a.bottom-a.top,X=E.stretchX||[[0,I]],ne=E.stretchY||[[0,D]],R=function(Ui,jn){return Ui+jn[1]-jn[0]},Pe=X.reduce(R,0),Be=ne.reduce(R,0),rt=I-Pe,Ge=D-Be,St=0,Ft=Pe,Yt=0,qt=Be,dr=0,Lr=rt,Xr=0,Bn=Ge;if(E.content&&m){var cn=E.content;St=$t(X,0,cn[0]),Yt=$t(ne,0,cn[1]),Ft=$t(X,cn[0],cn[2]),qt=$t(ne,cn[1],cn[3]),dr=cn[0]-St,Xr=cn[1]-Yt,Lr=cn[2]-cn[0]-Ft,Bn=cn[3]-cn[1]-qt}var Vn=function(Ui,jn,ia,za){var eo=hn(Ui.stretch-St,Ft,N,a.left),uo=bi(Ui.fixed-dr,Lr,Ui.stretch,Pe),Za=hn(jn.stretch-Yt,qt,H,a.top),ho=bi(jn.fixed-Xr,Bn,jn.stretch,Be),Go=hn(ia.stretch-St,Ft,N,a.left),Uo=bi(ia.fixed-dr,Lr,ia.stretch,Pe),Vs=hn(za.stretch-Yt,qt,H,a.top),ka=bi(za.fixed-Xr,Bn,za.stretch,Be),js=new se(eo,Za),So=new se(Go,Za),rs=new se(Go,Vs),ji=new se(eo,Vs),fa=new se(uo/A,ho/A),va=new se(Uo/A,ka/A),$i=u*Math.PI/180;if($i){var Hs=Math.sin($i),ns=Math.cos($i),Ba=[ns,-Hs,Hs,ns];js._matMult(Ba),So._matMult(Ba),ji._matMult(Ba),rs._matMult(Ba)}var Oo=Ui.stretch+Ui.fixed,ws=jn.stretch+jn.fixed;return{tl:js,tr:So,bl:ji,br:rs,tex:{x:E.paddedRect.x+1+Oo,y:E.paddedRect.y+1+ws,w:ia.stretch+ia.fixed-Oo,h:za.stretch+za.fixed-ws},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:fa,pixelOffsetBR:va,minFontScaleX:Lr/A/N,minFontScaleY:Bn/A/H,isSDF:c}};if(m&&(E.stretchX||E.stretchY))for(var pn=Nt(X,rt,Pe),Ei=Nt(ne,Ge,Be),ti=0;ti0&&(R=Math.max(10,R),this.circleDiameter=R)}else{var Pe=E.top*A-I,Be=E.bottom*A+I,rt=E.left*A-I,Ge=E.right*A+I,St=E.collisionPadding;if(St&&(rt-=St[0]*A,Pe-=St[1]*A,Ge+=St[2]*A,Be+=St[3]*A),N){var Ft=new se(rt,Pe),Yt=new se(Ge,Pe),qt=new se(rt,Be),dr=new se(Ge,Be),Lr=N*Math.PI/180;Ft._rotate(Lr),Yt._rotate(Lr),qt._rotate(Lr),dr._rotate(Lr),rt=Math.min(Ft.x,Yt.x,qt.x,dr.x),Ge=Math.max(Ft.x,Yt.x,qt.x,dr.x),Pe=Math.min(Ft.y,Yt.y,qt.y,dr.y),Be=Math.max(Ft.y,Yt.y,qt.y,dr.y)}a.emplaceBack(u.x,u.y,rt,Pe,Ge,Be,c,m,x)}this.boxEndIndex=a.length},ce=function(a,u){if(a===void 0&&(a=[]),u===void 0&&(u=Te),this.data=a,this.length=this.data.length,this.compare=u,this.length>0)for(var c=(this.length>>1)-1;c>=0;c--)this._down(c)};function Te(a,u){return au?1:0}function Ve(a,u,c){u===void 0&&(u=1),c===void 0&&(c=!1);for(var m=1/0,x=1/0,E=-1/0,A=-1/0,I=a[0],D=0;DE)&&(E=N.x),(!D||N.y>A)&&(A=N.y)}var H=Math.min(E-m,A-x),X=H/2,ne=new ce([],Ut);if(H===0)return new se(m,x);for(var R=m;RBe.d||!Be.d)&&(Be=Ge,c&&console.log("found best %d after %d probes",Math.round(1e4*Ge.d)/1e4,rt)),Ge.max-Be.d<=u||(ne.push(new Bt(Ge.p.x-(X=Ge.h/2),Ge.p.y-X,X,a)),ne.push(new Bt(Ge.p.x+X,Ge.p.y-X,X,a)),ne.push(new Bt(Ge.p.x-X,Ge.p.y+X,X,a)),ne.push(new Bt(Ge.p.x+X,Ge.p.y+X,X,a)),rt+=4)}return c&&(console.log("num probes: "+rt),console.log("best distance: "+Be.d)),Be.p}function Ut(a,u){return u.max-a.max}function Bt(a,u,c,m){this.p=new se(a,u),this.h=c,this.d=function(x,E){for(var A=!1,I=1/0,D=0;Dx.y!=Pe.y>x.y&&x.x<(Pe.x-R.x)*(x.y-R.y)/(Pe.y-R.y)+R.x&&(A=!A),I=Math.min(I,kl(x,R,Pe))}return(A?1:-1)*Math.sqrt(I)}(this.p,m),this.max=this.d+this.h*Math.SQRT2}ce.prototype.push=function(a){this.data.push(a),this.length++,this._up(this.length-1)},ce.prototype.pop=function(){if(this.length!==0){var a=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),a}},ce.prototype.peek=function(){return this.data[0]},ce.prototype._up=function(a){for(var u=this.data,c=this.compare,m=u[a];a>0;){var x=a-1>>1,E=u[x];if(c(m,E)>=0)break;u[a]=E,a=x}u[a]=m},ce.prototype._down=function(a){for(var u=this.data,c=this.compare,m=this.length>>1,x=u[a];a=0)break;u[a]=A,a=E}u[a]=x};var tt=Number.POSITIVE_INFINITY;function ft(a,u){return u[1]!==tt?function(c,m,x){var E=0,A=0;switch(m=Math.abs(m),x=Math.abs(x),c){case"top-right":case"top-left":case"top":A=x-7;break;case"bottom-right":case"bottom-left":case"bottom":A=7-x}switch(c){case"top-right":case"bottom-right":case"right":E=-m;break;case"top-left":case"bottom-left":case"left":E=m}return[E,A]}(a,u[0],u[1]):function(c,m){var x=0,E=0;m<0&&(m=0);var A=m/Math.sqrt(2);switch(c){case"top-right":case"top-left":E=A-7;break;case"bottom-right":case"bottom-left":E=7-A;break;case"bottom":E=7-m;break;case"top":E=m-7}switch(c){case"top-right":case"bottom-right":x=-A;break;case"top-left":case"bottom-left":x=A;break;case"left":x=m;break;case"right":x=-m}return[x,E]}(a,u[0])}function mt(a){switch(a){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function De(a,u,c,m,x,E,A,I,D,N,H,X,ne,R,Pe){var Be=function(Yt,qt,dr,Lr,Xr,Bn,cn,Vn){for(var pn=Lr.layout.get("text-rotate").evaluate(Bn,{})*Math.PI/180,Ei=[],ti=0,Rn=qt.positionedLines;ti32640&&qe(a.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):rt.kind==="composite"&&((Ge=[128*R.compositeTextSizes[0].evaluate(A,{},Pe),128*R.compositeTextSizes[1].evaluate(A,{},Pe)])[0]>32640||Ge[1]>32640)&&qe(a.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),a.addSymbols(a.text,Be,Ge,I,E,A,N,u,D.lineStartIndex,D.lineLength,ne,Pe);for(var St=0,Ft=H;St=0;A--)if(m.dist(E[A])0)&&(E.value.kind!=="constant"||E.value.value.length>0),N=I.value.kind!=="constant"||!!I.value.value||Object.keys(I.parameters).length>0,H=x.get("symbol-sort-key");if(this.features=[],D||N){for(var X=u.iconDependencies,ne=u.glyphDependencies,R=u.availableImages,Pe=new B(this.zoom),Be=0,rt=a;Be=0;for(var Di=0,gi=Xr.sections;Di=0;I--)E[I]={x:u[I].x,y:u[I].y,tileUnitDistanceFromAnchor:x},I>0&&(x+=u[I-1].dist(u[I]));for(var D=0;D0},xn.prototype.hasIconData=function(){return this.icon.segments.get().length>0},xn.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},xn.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},xn.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},xn.prototype.addIndicesForPlacedSymbol=function(a,u){for(var c=a.placedSymbolArray.get(u),m=c.vertexStartIndex+4*c.numGlyphs,x=c.vertexStartIndex;x1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(a),this.sortedAngle=a,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var c=0,m=this.symbolInstanceIndexes;c=0&&I.indexOf(E)===A&&u.addIndicesForPlacedSymbol(u.text,E)}),x.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,x.verticalPlacedTextSymbolIndex),x.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,x.placedIconSymbolIndex),x.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,x.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},_n("SymbolBucket",xn,{omit:["layers","collisionBoxArray","features","compareText"]}),xn.MAX_GLYPHS=65535,xn.addDynamicAttributes=xr;var Tn=new Fa({"symbol-placement":new kn(j.layout_symbol["symbol-placement"]),"symbol-spacing":new kn(j.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new kn(j.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new yn(j.layout_symbol["symbol-sort-key"]),"symbol-z-order":new kn(j.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new kn(j.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new kn(j.layout_symbol["icon-ignore-placement"]),"icon-optional":new kn(j.layout_symbol["icon-optional"]),"icon-rotation-alignment":new kn(j.layout_symbol["icon-rotation-alignment"]),"icon-size":new yn(j.layout_symbol["icon-size"]),"icon-text-fit":new kn(j.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new kn(j.layout_symbol["icon-text-fit-padding"]),"icon-image":new yn(j.layout_symbol["icon-image"]),"icon-rotate":new yn(j.layout_symbol["icon-rotate"]),"icon-padding":new kn(j.layout_symbol["icon-padding"]),"icon-keep-upright":new kn(j.layout_symbol["icon-keep-upright"]),"icon-offset":new yn(j.layout_symbol["icon-offset"]),"icon-anchor":new yn(j.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new kn(j.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new kn(j.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new kn(j.layout_symbol["text-rotation-alignment"]),"text-field":new yn(j.layout_symbol["text-field"]),"text-font":new yn(j.layout_symbol["text-font"]),"text-size":new yn(j.layout_symbol["text-size"]),"text-max-width":new yn(j.layout_symbol["text-max-width"]),"text-line-height":new kn(j.layout_symbol["text-line-height"]),"text-letter-spacing":new yn(j.layout_symbol["text-letter-spacing"]),"text-justify":new yn(j.layout_symbol["text-justify"]),"text-radial-offset":new yn(j.layout_symbol["text-radial-offset"]),"text-variable-anchor":new kn(j.layout_symbol["text-variable-anchor"]),"text-anchor":new yn(j.layout_symbol["text-anchor"]),"text-max-angle":new kn(j.layout_symbol["text-max-angle"]),"text-writing-mode":new kn(j.layout_symbol["text-writing-mode"]),"text-rotate":new yn(j.layout_symbol["text-rotate"]),"text-padding":new kn(j.layout_symbol["text-padding"]),"text-keep-upright":new kn(j.layout_symbol["text-keep-upright"]),"text-transform":new yn(j.layout_symbol["text-transform"]),"text-offset":new yn(j.layout_symbol["text-offset"]),"text-allow-overlap":new kn(j.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new kn(j.layout_symbol["text-ignore-placement"]),"text-optional":new kn(j.layout_symbol["text-optional"])}),$n={paint:new Fa({"icon-opacity":new yn(j.paint_symbol["icon-opacity"]),"icon-color":new yn(j.paint_symbol["icon-color"]),"icon-halo-color":new yn(j.paint_symbol["icon-halo-color"]),"icon-halo-width":new yn(j.paint_symbol["icon-halo-width"]),"icon-halo-blur":new yn(j.paint_symbol["icon-halo-blur"]),"icon-translate":new kn(j.paint_symbol["icon-translate"]),"icon-translate-anchor":new kn(j.paint_symbol["icon-translate-anchor"]),"text-opacity":new yn(j.paint_symbol["text-opacity"]),"text-color":new yn(j.paint_symbol["text-color"],{runtimeType:Yr,getOverride:function(a){return a.textColor},hasOverride:function(a){return!!a.textColor}}),"text-halo-color":new yn(j.paint_symbol["text-halo-color"]),"text-halo-width":new yn(j.paint_symbol["text-halo-width"]),"text-halo-blur":new yn(j.paint_symbol["text-halo-blur"]),"text-translate":new kn(j.paint_symbol["text-translate"]),"text-translate-anchor":new kn(j.paint_symbol["text-translate-anchor"])}),layout:Tn},ii=function(a){this.type=a.property.overrides?a.property.overrides.runtimeType:sn,this.defaultValue=a};ii.prototype.evaluate=function(a){if(a.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(a.formattedSection))return u.getOverride(a.formattedSection)}return a.feature&&a.featureState?this.defaultValue.evaluate(a.feature,a.featureState):this.defaultValue.property.specification.default},ii.prototype.eachChild=function(a){this.defaultValue.isConstant()||a(this.defaultValue.value._styleExpression.expression)},ii.prototype.outputDefined=function(){return!1},ii.prototype.serialize=function(){return null},_n("FormatSectionOverride",ii,{omit:["defaultValue"]});var na=function(a){function u(c){a.call(this,c,$n)}return a&&(u.__proto__=a),(u.prototype=Object.create(a&&a.prototype)).constructor=u,u.prototype.recalculate=function(c,m){if(a.prototype.recalculate.call(this,c,m),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var x=this.layout.get("text-writing-mode");if(x){for(var E=[],A=0,I=x;A",targetMapId:m,sourceMapId:E.mapId})}}},gp.prototype.receive=function(a){var u=a.data,c=u.id;if(c&&(!u.targetMapId||this.mapId===u.targetMapId))if(u.type===""){delete this.tasks[c];var m=this.cancelCallbacks[c];delete this.cancelCallbacks[c],m&&m()}else re()||u.mustQueue?(this.tasks[c]=u,this.taskQueue.push(c),this.invoker.trigger()):this.processTask(c,u)},gp.prototype.process=function(){if(this.taskQueue.length){var a=this.taskQueue.shift(),u=this.tasks[a];delete this.tasks[a],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(a,u)}},gp.prototype.processTask=function(a,u){var c=this;if(u.type===""){var m=this.callbacks[a];delete this.callbacks[a],m&&(u.error?m(ga(u.error)):m(null,ga(u.data)))}else{var x=!1,E=Me(this.globalScope)?void 0:[],A=u.hasCallback?function(H,X){x=!0,delete c.cancelCallbacks[a],c.target.postMessage({id:a,type:"",sourceMapId:c.mapId,error:H?us(H):null,data:us(X,E)},E)}:function(H){x=!0},I=null,D=ga(u.data);if(this.parent[u.type])I=this.parent[u.type](u.sourceMapId,D,A);else if(this.parent.getWorkerSource){var N=u.type.split(".");I=this.parent.getWorkerSource(u.sourceMapId,N[0],D.source)[N[1]](D,A)}else A(new Error("Could not find function "+u.type));!x&&I&&I.cancel&&(this.cancelCallbacks[a]=I.cancel)}},gp.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var No=function(a,u){a&&(u?this.setSouthWest(a).setNorthEast(u):a.length===4?this.setSouthWest([a[0],a[1]]).setNorthEast([a[2],a[3]]):this.setSouthWest(a[0]).setNorthEast(a[1]))};No.prototype.setNorthEast=function(a){return this._ne=a instanceof $a?new $a(a.lng,a.lat):$a.convert(a),this},No.prototype.setSouthWest=function(a){return this._sw=a instanceof $a?new $a(a.lng,a.lat):$a.convert(a),this},No.prototype.extend=function(a){var u,c,m=this._sw,x=this._ne;if(a instanceof $a)u=a,c=a;else{if(!(a instanceof No))return Array.isArray(a)?a.length===4||a.every(Array.isArray)?this.extend(No.convert(a)):this.extend($a.convert(a)):this;if(c=a._ne,!(u=a._sw)||!c)return this}return m||x?(m.lng=Math.min(u.lng,m.lng),m.lat=Math.min(u.lat,m.lat),x.lng=Math.max(c.lng,x.lng),x.lat=Math.max(c.lat,x.lat)):(this._sw=new $a(u.lng,u.lat),this._ne=new $a(c.lng,c.lat)),this},No.prototype.getCenter=function(){return new $a((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},No.prototype.getSouthWest=function(){return this._sw},No.prototype.getNorthEast=function(){return this._ne},No.prototype.getNorthWest=function(){return new $a(this.getWest(),this.getNorth())},No.prototype.getSouthEast=function(){return new $a(this.getEast(),this.getSouth())},No.prototype.getWest=function(){return this._sw.lng},No.prototype.getSouth=function(){return this._sw.lat},No.prototype.getEast=function(){return this._ne.lng},No.prototype.getNorth=function(){return this._ne.lat},No.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},No.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},No.prototype.isEmpty=function(){return!(this._sw&&this._ne)},No.prototype.contains=function(a){var u=$a.convert(a),c=u.lng,m=u.lat,x=this._sw.lng<=c&&c<=this._ne.lng;return this._sw.lng>this._ne.lng&&(x=this._sw.lng>=c&&c>=this._ne.lng),this._sw.lat<=m&&m<=this._ne.lat&&x},No.convert=function(a){return!a||a instanceof No?a:new No(a)};var $a=function(a,u){if(isNaN(a)||isNaN(u))throw new Error("Invalid LngLat object: ("+a+", "+u+")");if(this.lng=+a,this.lat=+u,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};$a.prototype.wrap=function(){return new $a(Xt(this.lng,-180,180),this.lat)},$a.prototype.toArray=function(){return[this.lng,this.lat]},$a.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},$a.prototype.distanceTo=function(a){var u=Math.PI/180,c=this.lat*u,m=a.lat*u,x=Math.sin(c)*Math.sin(m)+Math.cos(c)*Math.cos(m)*Math.cos((a.lng-this.lng)*u);return 63710088e-1*Math.acos(Math.min(x,1))},$a.prototype.toBounds=function(a){a===void 0&&(a=0);var u=360*a/40075017,c=u/Math.cos(Math.PI/180*this.lat);return new No(new $a(this.lng-c,this.lat-u),new $a(this.lng+c,this.lat+u))},$a.convert=function(a){if(a instanceof $a)return a;if(Array.isArray(a)&&(a.length===2||a.length===3))return new $a(Number(a[0]),Number(a[1]));if(!Array.isArray(a)&&typeof a=="object"&&a!==null)return new $a(Number("lng"in a?a.lng:a.lon),Number(a.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Ni=2*Math.PI*63710088e-1;function ki(a){return Ni*Math.cos(a*Math.PI/180)}function Fh(a){return(180+a)/360}function Wd(a){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360}function rg(a,u){return a/ki(u)}function Gd(a){return 360/Math.PI*Math.atan(Math.exp((180-360*a)*Math.PI/180))-90}var qf=function(a,u,c){c===void 0&&(c=0),this.x=+a,this.y=+u,this.z=+c};qf.fromLngLat=function(a,u){u===void 0&&(u=0);var c=$a.convert(a);return new qf(Fh(c.lng),Wd(c.lat),rg(u,c.lat))},qf.prototype.toLngLat=function(){return new $a(360*this.x-180,Gd(this.y))},qf.prototype.toAltitude=function(){return this.z*ki(Gd(this.y))},qf.prototype.meterInMercatorCoordinateUnits=function(){return 1/Ni*(a=Gd(this.y),1/Math.cos(a*Math.PI/180));var a};var zl=function(a,u,c){this.z=a,this.x=u,this.y=c,this.key=_p(0,a,a,u,c)};zl.prototype.equals=function(a){return this.z===a.z&&this.x===a.x&&this.y===a.y},zl.prototype.url=function(a,u){var c,m,x,E,A,I=(m=this.y,x=this.z,E=tg(256*(c=this.x),256*(m=Math.pow(2,x)-m-1),x),A=tg(256*(c+1),256*(m+1),x),E[0]+","+E[1]+","+A[0]+","+A[1]),D=function(N,H,X){for(var ne,R="",Pe=N;Pe>0;Pe--)R+=(H&(ne=1<this.canonical.z?new Po(a,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Po(a,this.wrap,a,this.canonical.x>>u,this.canonical.y>>u)},Po.prototype.calculateScaledKey=function(a,u){var c=this.canonical.z-a;return a>this.canonical.z?_p(this.wrap*+u,a,this.canonical.z,this.canonical.x,this.canonical.y):_p(this.wrap*+u,a,a,this.canonical.x>>c,this.canonical.y>>c)},Po.prototype.isChildOf=function(a){if(a.wrap!==this.wrap)return!1;var u=this.canonical.z-a.canonical.z;return a.overscaledZ===0||a.overscaledZ>u&&a.canonical.y===this.canonical.y>>u},Po.prototype.children=function(a){if(this.overscaledZ>=a)return[new Po(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var u=this.canonical.z+1,c=2*this.canonical.x,m=2*this.canonical.y;return[new Po(u,this.wrap,u,c,m),new Po(u,this.wrap,u,c+1,m),new Po(u,this.wrap,u,c,m+1),new Po(u,this.wrap,u,c+1,m+1)]},Po.prototype.isLessThan=function(a){return this.wrapa.wrap)&&(this.overscaledZa.overscaledZ)&&(this.canonical.xa.canonical.x)&&this.canonical.y=this.dim+1||u<-1||u>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(u+1)*this.stride+(a+1)},Vc.prototype._unpackMapbox=function(a,u,c){return(256*a*256+256*u+c)/10-1e4},Vc.prototype._unpackTerrarium=function(a,u,c){return 256*a+u+c/256-32768},Vc.prototype.getPixels=function(){return new Qo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Vc.prototype.backfillBorder=function(a,u,c){if(this.dim!==a.dim)throw new Error("dem dimension mismatch");var m=u*this.dim,x=u*this.dim+this.dim,E=c*this.dim,A=c*this.dim+this.dim;switch(u){case-1:m=x-1;break;case 1:x=m+1}switch(c){case-1:E=A-1;break;case 1:A=E+1}for(var I=-u*this.dim,D=-c*this.dim,N=E;N=0&&H[3]>=0&&I.insert(A,H[0],H[1],H[2],H[3])}},jc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Ul.VectorTile(new Gt(this.rawTileData)).layers,this.sourceLayerCoder=new yp(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},jc.prototype.query=function(a,u,c,m){var x=this;this.loadVTLayers();for(var E=a.params||{},A=8192/a.tileSize/a.scale,I=Bu(E.filter),D=a.queryGeometry,N=a.queryPadding*A,H=ng(D),X=this.grid.query(H.minX-N,H.minY-N,H.maxX+N,H.maxY+N),ne=ng(a.cameraQueryGeometry),R=this.grid3D.query(ne.minX-N,ne.minY-N,ne.maxX+N,ne.maxY+N,function(Yt,qt,dr,Lr){return function(Xr,Bn,cn,Vn,pn){for(var Ei=0,ti=Xr;Ei=Rn.x&&pn>=Rn.y)return!0}var Di=[new se(Bn,cn),new se(Bn,pn),new se(Vn,pn),new se(Vn,cn)];if(Xr.length>2){for(var gi=0,Ui=Di;gi=0)return!0;return!1}(E,X)){var ne=this.sourceLayerCoder.decode(c),R=this.vtLayers[ne].feature(m);if(x.needGeometry){var Pe=Xa(R,!0);if(!x.filter(new B(this.tileID.overscaledZ),Pe,this.tileID.canonical))return}else if(!x.filter(new B(this.tileID.overscaledZ),R))return;for(var Be=this.getId(R,ne),rt=0;rtm)x=!1;else if(u)if(this.expirationTimecr&&(a.getActor().send("enforceCacheSizeLimit",Et),En=0)},_.clamp=wt,_.clearTileCache=function(a){var u=ae.caches.delete("mapbox-tiles");a&&u.catch(a).then(function(){return a()})},_.clipLine=Xu,_.clone=function(a){var u=new Zi(16);return u[0]=a[0],u[1]=a[1],u[2]=a[2],u[3]=a[3],u[4]=a[4],u[5]=a[5],u[6]=a[6],u[7]=a[7],u[8]=a[8],u[9]=a[9],u[10]=a[10],u[11]=a[11],u[12]=a[12],u[13]=a[13],u[14]=a[14],u[15]=a[15],u},_.clone$1=ut,_.clone$2=function(a){var u=new Zi(3);return u[0]=a[0],u[1]=a[1],u[2]=a[2],u},_.collisionCircleLayout=z,_.config=Jr,_.create=function(){var a=new Zi(16);return Zi!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=0,a[12]=0,a[13]=0,a[14]=0),a[0]=1,a[5]=1,a[10]=1,a[15]=1,a},_.create$1=function(){var a=new Zi(9);return Zi!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[5]=0,a[6]=0,a[7]=0),a[0]=1,a[4]=1,a[8]=1,a},_.create$2=function(){var a=new Zi(4);return Zi!=Float32Array&&(a[1]=0,a[2]=0),a[0]=1,a[3]=1,a},_.createCommonjsModule=le,_.createExpression=rf,_.createLayout=wo,_.createStyleLayer=function(a){return a.type==="custom"?new Vd(a):new Zs[a.type](a)},_.cross=function(a,u,c){var m=u[0],x=u[1],E=u[2],A=c[0],I=c[1],D=c[2];return a[0]=x*D-E*I,a[1]=E*A-m*D,a[2]=m*I-x*A,a},_.deepEqual=function a(u,c){if(Array.isArray(u)){if(!Array.isArray(c)||u.length!==c.length)return!1;for(var m=0;m0&&(E=1/Math.sqrt(E)),a[0]=u[0]*E,a[1]=u[1]*E,a[2]=u[2]*E,a},_.number=qa,_.offscreenCanvasSupported=Cn,_.ortho=function(a,u,c,m,x,E,A){var I=1/(u-c),D=1/(m-x),N=1/(E-A);return a[0]=-2*I,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=-2*D,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=2*N,a[11]=0,a[12]=(u+c)*I,a[13]=(x+m)*D,a[14]=(A+E)*N,a[15]=1,a},_.parseGlyphPBF=function(a){return new Gt(a).readFields(br,[])},_.pbf=Gt,_.performSymbolLayout=function(a,u,c,m,x,E,A){a.createArrays(),a.tilePixelRatio=8192/(512*a.overscaling),a.compareText={},a.iconsNeedLinear=!1;var I=a.layers[0].layout,D=a.layers[0]._unevaluatedLayout._values,N={};if(a.textSizeData.kind==="composite"){var H=a.textSizeData,X=H.maxZoom;N.compositeTextSizes=[D["text-size"].possiblyEvaluate(new B(H.minZoom),A),D["text-size"].possiblyEvaluate(new B(X),A)]}if(a.iconSizeData.kind==="composite"){var ne=a.iconSizeData,R=ne.maxZoom;N.compositeIconSizes=[D["icon-size"].possiblyEvaluate(new B(ne.minZoom),A),D["icon-size"].possiblyEvaluate(new B(R),A)]}N.layoutTextSize=D["text-size"].possiblyEvaluate(new B(a.zoom+1),A),N.layoutIconSize=D["icon-size"].possiblyEvaluate(new B(a.zoom+1),A),N.textMaxSize=D["text-size"].possiblyEvaluate(new B(18));for(var Pe=24*I.get("text-line-height"),Be=I.get("text-rotation-alignment")==="map"&&I.get("symbol-placement")!=="point",rt=I.get("text-keep-upright"),Ge=I.get("text-size"),St=function(){var qt=Yt[Ft],dr=I.get("text-font").evaluate(qt,{},A).join(","),Lr=Ge.evaluate(qt,{},A),Xr=N.layoutTextSize.evaluate(qt,{},A),Bn=N.layoutIconSize.evaluate(qt,{},A),cn={horizontal:{},vertical:void 0},Vn=qt.text,pn=[0,0];if(Vn){var Ei=Vn.toString(),ti=24*I.get("text-letter-spacing").evaluate(qt,{},A),Rn=function(ji){for(var fa=0,va=ji;fa=8192||qd.y<0||qd.y>=8192||function(po,gc,A0,ah,Kd,ag,sd,_c,ud,wp,ld,cd,Qd,Wv,Cp,Gv,Xv,$v,Yv,qv,bu,fd,Kv,yc,Ws){var Qv,oh,Nh,Uh,zh,Zh=po.addToLineVertexArray(gc,A0),Jv=0,em=0,tm=0,rm=0,Jd=-1,ev=-1,Xc={},nm=Ie(""),tv=0,rv=0;if(_c._unevaluatedLayout.getValue("text-radial-offset")===void 0?(tv=(Qv=_c.layout.get("text-offset").evaluate(bu,{},yc).map(function(dd){return 24*dd}))[0],rv=Qv[1]):(tv=24*_c.layout.get("text-radial-offset").evaluate(bu,{},yc),rv=tt),po.allowVerticalPlacement&&ah.vertical){var og=_c.layout.get("text-rotate").evaluate(bu,{},yc)+90;Uh=new da(ud,gc,wp,ld,cd,ah.vertical,Qd,Wv,Cp,og),sd&&(zh=new da(ud,gc,wp,ld,cd,sd,Xv,$v,Cp,og))}if(Kd){var im=_c.layout.get("icon-rotate").evaluate(bu,{}),sg=_c.layout.get("icon-text-fit")!=="none",ug=Ne(Kd,im,Kv,sg),nv=sd?Ne(sd,im,Kv,sg):void 0;Nh=new da(ud,gc,wp,ld,cd,Kd,Xv,$v,!1,im),Jv=4*ug.length;var am=po.iconSizeData,Vh=null;am.kind==="source"?(Vh=[128*_c.layout.get("icon-size").evaluate(bu,{})])[0]>32640&&qe(po.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):am.kind==="composite"&&((Vh=[128*fd.compositeIconSizes[0].evaluate(bu,{},yc),128*fd.compositeIconSizes[1].evaluate(bu,{},yc)])[0]>32640||Vh[1]>32640)&&qe(po.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),po.addSymbols(po.icon,ug,Vh,qv,Yv,bu,!1,gc,Zh.lineStartIndex,Zh.lineLength,-1,yc),Jd=po.icon.placedSymbolArray.length-1,nv&&(em=4*nv.length,po.addSymbols(po.icon,nv,Vh,qv,Yv,bu,ot.vertical,gc,Zh.lineStartIndex,Zh.lineLength,-1,yc),ev=po.icon.placedSymbolArray.length-1)}for(var om in ah.horizontal){var hd=ah.horizontal[om];if(!oh){nm=Ie(hd.text);var lg=_c.layout.get("text-rotate").evaluate(bu,{},yc);oh=new da(ud,gc,wp,ld,cd,hd,Qd,Wv,Cp,lg)}var cg=hd.positionedLines.length===1;if(tm+=De(po,gc,hd,ag,_c,Cp,bu,Gv,Zh,ah.vertical?ot.horizontal:ot.horizontalOnly,cg?Object.keys(ah.horizontal):[om],Xc,Jd,fd,yc),cg)break}ah.vertical&&(rm+=De(po,gc,ah.vertical,ag,_c,Cp,bu,Gv,Zh,ot.vertical,["vertical"],Xc,ev,fd,yc));var fg=oh?oh.boxStartIndex:po.collisionBoxArray.length,T0=oh?oh.boxEndIndex:po.collisionBoxArray.length,hg=Uh?Uh.boxStartIndex:po.collisionBoxArray.length,pg=Uh?Uh.boxEndIndex:po.collisionBoxArray.length,w0=Nh?Nh.boxStartIndex:po.collisionBoxArray.length,C0=Nh?Nh.boxEndIndex:po.collisionBoxArray.length,R0=zh?zh.boxStartIndex:po.collisionBoxArray.length,M0=zh?zh.boxEndIndex:po.collisionBoxArray.length,$c=-1,pd=function(dd,sm){return dd&&dd.circleDiameter?Math.max(dd.circleDiameter,sm):sm};$c=pd(oh,$c),$c=pd(Uh,$c),$c=pd(Nh,$c);var dg=($c=pd(zh,$c))>-1?1:0;dg&&($c*=Ws/24),po.glyphOffsetArray.length>=xn.MAX_GLYPHS&&qe("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),bu.sortKey!==void 0&&po.addToSortKeyRanges(po.symbolInstances.length,bu.sortKey),po.symbolInstances.emplaceBack(gc.x,gc.y,Xc.right>=0?Xc.right:-1,Xc.center>=0?Xc.center:-1,Xc.left>=0?Xc.left:-1,Xc.vertical||-1,Jd,ev,nm,fg,T0,hg,pg,w0,C0,R0,M0,wp,tm,rm,Jv,em,dg,0,Qd,tv,rv,$c)}(ji,qd,ig,va,$i,Hs,vl,ji.layers[0],ji.collisionBoxArray,fa.index,fa.sourceLayerIndex,ji.index,pc,vc,Xd,ws,dc,Ep,td,Vl,fa,ns,Ki,Zl,Ba)};if(Hc==="line")for(var Ap=0,rd=Xu(fa.geometry,0,0,8192,8192);Ap1){var rh=Xi(Bh,ed,va.vertical||$u,$i,24,Cs);rh&&eh(Bh,rh)}}else if(fa.type==="Polygon")for(var nh=0,Tp=pp(fa.geometry,0);nh=zi.maxzoom||zi.visibility!=="none"&&(ae(ci,this.zoom,oe),(ir[zi.id]=zi.createBucket({index:j.bucketLayerIDs.length,layers:ci,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:en,sourceID:this.source})).populate(Wr,wr,this.tileID.canonical),j.bucketLayerIDs.push(ci.map(function(Ti){return Ti.id})))}}}var Ai=_.mapObject(wr.glyphDependencies,function(Ti){return Object.keys(Ti).map(Number)});Object.keys(Ai).length?be.send("getGlyphs",{uid:this.uid,stacks:Ai},function(Ti,mi){Q||(Q=Ti,Le=mi,Ia.call(it))}):Le={};var Xo=Object.keys(wr.iconDependencies);Xo.length?be.send("getImages",{icons:Xo,source:this.source,tileID:this.tileID,type:"icons"},function(Ti,mi){Q||(Q=Ti,at=mi,Ia.call(it))}):at={};var Ji=Object.keys(wr.patternDependencies);function Ia(){if(Q)return Oe(Q);if(Le&&at&&Ee){var Ti=new se(Le),mi=new _.ImageAtlas(at,Ee);for(var wi in ir){var Pa=ir[wi];Pa instanceof _.SymbolBucket?(ae(Pa.layers,this.zoom,oe),_.performSymbolLayout(Pa,Le,Ti.positions,at,mi.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Pa.hasPattern&&(Pa instanceof _.LineBucket||Pa instanceof _.FillBucket||Pa instanceof _.FillExtrusionBucket)&&(ae(Pa.layers,this.zoom,oe),Pa.addFeatures(wr,this.tileID.canonical,mi.patternPositions))}this.status="done",Oe(null,{buckets:_.values(ir).filter(function(cu){return!cu.isEmpty()}),featureIndex:j,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Ti.image,imageAtlas:mi,glyphMap:this.returnDependencies?Le:null,iconMap:this.returnDependencies?at:null,glyphPositions:this.returnDependencies?Ti.positions:null})}}Ji.length?be.send("getImages",{icons:Ji,source:this.source,tileID:this.tileID,type:"patterns"},function(Ti,mi){Q||(Q=Ti,Ee=mi,Ia.call(it))}):Ee={},Ia.call(this)};var dt=function(W,J,oe,be){this.actor=W,this.layerIndex=J,this.availableImages=oe,this.loadVectorData=be||et,this.loading={},this.loaded={}};dt.prototype.loadTile=function(W,J){var oe=this,be=W.uid;this.loading||(this.loading={});var Oe=!!(W&&W.request&&W.request.collectResourceTiming)&&new _.RequestPerformance(W.request),it=this.loading[be]=new Qe(W);it.abort=this.loadVectorData(W,function(pt,j){if(delete oe.loading[be],pt||!j)return it.status="done",oe.loaded[be]=it,J(pt);var Q=j.rawData,Le={};j.expires&&(Le.expires=j.expires),j.cacheControl&&(Le.cacheControl=j.cacheControl);var at={};if(Oe){var Ee=Oe.finish();Ee&&(at.resourceTiming=JSON.parse(JSON.stringify(Ee)))}it.vectorTile=j.vectorTile,it.parse(j.vectorTile,oe.layerIndex,oe.availableImages,oe.actor,function(ir,wr){if(ir||!wr)return J(ir);J(null,_.extend({rawTileData:Q.slice(0)},wr,Le,at))}),oe.loaded=oe.loaded||{},oe.loaded[be]=it})},dt.prototype.reloadTile=function(W,J){var oe=this,be=this.loaded,Oe=W.uid,it=this;if(be&&be[Oe]){var pt=be[Oe];pt.showCollisionBoxes=W.showCollisionBoxes;var j=function(Q,Le){var at=pt.reloadCallback;at&&(delete pt.reloadCallback,pt.parse(pt.vectorTile,it.layerIndex,oe.availableImages,it.actor,at)),J(Q,Le)};pt.status==="parsing"?pt.reloadCallback=j:pt.status==="done"&&(pt.vectorTile?pt.parse(pt.vectorTile,this.layerIndex,this.availableImages,this.actor,j):j())}},dt.prototype.abortTile=function(W,J){var oe=this.loading,be=W.uid;oe&&oe[be]&&oe[be].abort&&(oe[be].abort(),delete oe[be]),J()},dt.prototype.removeTile=function(W,J){var oe=this.loaded,be=W.uid;oe&&oe[be]&&delete oe[be],J()};var Ye=_.window.ImageBitmap,wt=function(){this.loaded={}};function Xt(W,J){if(W.length!==0){Zt(W[0],J);for(var oe=1;oe=Math.abs(j)?oe-Q+j:j-Q+oe,oe=Q}oe+be>=0!=!!J&&W.reverse()}wt.prototype.loadTile=function(W,J){var oe=W.uid,be=W.encoding,Oe=W.rawImageData,it=Ye&&Oe instanceof Ye?this.getImageData(Oe):Oe,pt=new _.DEMData(oe,it,be);this.loaded=this.loaded||{},this.loaded[oe]=pt,J(null,pt)},wt.prototype.getImageData=function(W){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(W.width,W.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=W.width,this.offscreenCanvas.height=W.height,this.offscreenCanvasContext.drawImage(W,0,0,W.width,W.height);var J=this.offscreenCanvasContext.getImageData(-1,-1,W.width+2,W.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new _.RGBAImage({width:J.width,height:J.height},J.data)},wt.prototype.removeTile=function(W){var J=this.loaded,oe=W.uid;J&&J[oe]&&delete J[oe]};var nr=_.vectorTile.VectorTileFeature.prototype.toGeoJSON,Vt=function(W){this._feature=W,this.extent=_.EXTENT,this.type=W.type,this.properties=W.tags,"id"in W&&!isNaN(W.id)&&(this.id=parseInt(W.id,10))};Vt.prototype.loadGeometry=function(){if(this._feature.type===1){for(var W=[],J=0,oe=this._feature.geometry;J>31}function K(W,J){for(var oe=W.loadGeometry(),be=W.type,Oe=0,it=0,pt=oe.length,j=0;j>1;(function en(Wr,Yr,pi,tn,vi,qi){for(;vi>tn;){if(vi-tn>600){var ci=vi-tn+1,zi=pi-tn+1,Ai=Math.log(ci),Xo=.5*Math.exp(2*Ai/3),Ji=.5*Math.sqrt(Ai*Xo*(ci-Xo)/ci)*(zi-ci/2<0?-1:1);en(Wr,Yr,pi,Math.max(tn,Math.floor(pi-zi*Xo/ci+Ji)),Math.min(vi,Math.floor(pi+(ci-zi)*Xo/ci+Ji)),qi)}var Ia=Yr[2*pi+qi],Ti=tn,mi=vi;for(Se(Wr,Yr,tn,pi),Yr[2*vi+qi]>Ia&&Se(Wr,Yr,tn,vi);TiIa;)mi--}Yr[2*tn+qi]===Ia?Se(Wr,Yr,tn,mi):Se(Wr,Yr,++mi,vi),mi<=pi&&(tn=mi+1),pi<=mi&&(vi=mi-1)}})(at,Ee,sr,wr,An,sn%2),Le(at,Ee,ir,wr,sr-1,sn+1),Le(at,Ee,ir,sr+1,An,sn+1)}})(pt,j,be,0,pt.length-1,0)};Xe.prototype.range=function(W,J,oe,be){return function(Oe,it,pt,j,Q,Le,at){for(var Ee,ir,wr=[0,Oe.length-1,0],An=[];wr.length;){var sn=wr.pop(),sr=wr.pop(),en=wr.pop();if(sr-en<=at)for(var Wr=en;Wr<=sr;Wr++)ir=it[2*Wr+1],(Ee=it[2*Wr])>=pt&&Ee<=Q&&ir>=j&&ir<=Le&&An.push(Oe[Wr]);else{var Yr=Math.floor((en+sr)/2);ir=it[2*Yr+1],(Ee=it[2*Yr])>=pt&&Ee<=Q&&ir>=j&&ir<=Le&&An.push(Oe[Yr]);var pi=(sn+1)%2;(sn===0?pt<=Ee:j<=ir)&&(wr.push(en),wr.push(Yr-1),wr.push(pi)),(sn===0?Q>=Ee:Le>=ir)&&(wr.push(Yr+1),wr.push(sr),wr.push(pi))}}return An}(this.ids,this.coords,W,J,oe,be,this.nodeSize)},Xe.prototype.within=function(W,J,oe){return function(be,Oe,it,pt,j,Q){for(var Le=[0,be.length-1,0],at=[],Ee=j*j;Le.length;){var ir=Le.pop(),wr=Le.pop(),An=Le.pop();if(wr-An<=Q)for(var sn=An;sn<=wr;sn++)te(Oe[2*sn],Oe[2*sn+1],it,pt)<=Ee&&at.push(be[sn]);else{var sr=Math.floor((An+wr)/2),en=Oe[2*sr],Wr=Oe[2*sr+1];te(en,Wr,it,pt)<=Ee&&at.push(be[sr]);var Yr=(ir+1)%2;(ir===0?it-j<=en:pt-j<=Wr)&&(Le.push(An),Le.push(sr-1),Le.push(Yr)),(ir===0?it+j>=en:pt+j>=Wr)&&(Le.push(sr+1),Le.push(wr),Le.push(Yr))}}return at}(this.ids,this.coords,W,J,oe,this.nodeSize)};var Lt={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(W){return W}},Ht=function(W){this.options=Mi(Object.create(Lt),W),this.trees=new Array(this.options.maxZoom+1)};function on(W,J,oe,be,Oe){return{x:W,y:J,zoom:1/0,id:oe,parentId:-1,numPoints:be,properties:Oe}}function Jr(W,J){var oe=W.geometry.coordinates,be=oe[1];return{x:bn(oe[0]),y:Kr(be),zoom:1/0,index:J,parentId:-1}}function Hr(W){return{type:"Feature",id:W.id,properties:Un(W),geometry:{type:"Point",coordinates:[(be=W.x,360*(be-.5)),(J=W.y,oe=(180-360*J)*Math.PI/180,360*Math.atan(Math.exp(oe))/Math.PI-90)]}};var J,oe,be}function Un(W){var J=W.numPoints,oe=J>=1e4?Math.round(J/1e3)+"k":J>=1e3?Math.round(J/100)/10+"k":J;return Mi(Mi({},W.properties),{cluster:!0,cluster_id:W.id,point_count:J,point_count_abbreviated:oe})}function bn(W){return W/360+.5}function Kr(W){var J=Math.sin(W*Math.PI/180),oe=.5-.25*Math.log((1+J)/(1-J))/Math.PI;return oe<0?0:oe>1?1:oe}function Mi(W,J){for(var oe in J)W[oe]=J[oe];return W}function Si(W){return W.x}function Ri(W){return W.y}function Gn(W,J,oe,be,Oe,it){var pt=Oe-oe,j=it-be;if(pt!==0||j!==0){var Q=((W-oe)*pt+(J-be)*j)/(pt*pt+j*j);Q>1?(oe=Oe,be=it):Q>0&&(oe+=pt*Q,be+=j*Q)}return(pt=W-oe)*pt+(j=J-be)*j}function Dn(W,J,oe,be){var Oe={id:W===void 0?null:W,type:J,geometry:oe,tags:be,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(it){var pt=it.geometry,j=it.type;if(j==="Point"||j==="MultiPoint"||j==="LineString")Ya(it,pt);else if(j==="Polygon"||j==="MultiLineString")for(var Q=0;Q0&&(pt+=be?(Oe*Le-Q*it)/2:Math.sqrt(Math.pow(Q-Oe,2)+Math.pow(Le-it,2))),Oe=Q,it=Le}var at=J.length-3;J[2]=1,function Ee(ir,wr,An,sn){for(var sr,en=sn,Wr=An-wr>>1,Yr=An-wr,pi=ir[wr],tn=ir[wr+1],vi=ir[An],qi=ir[An+1],ci=wr+3;cien)sr=ci,en=zi;else if(zi===en){var Ai=Math.abs(ci-Wr);Aisn&&(sr-wr>3&&Ee(ir,wr,sr,sn),ir[sr+2]=en,An-sr>3&&Ee(ir,sr,An,sn))}(J,0,at,oe),J[at+2]=1,J.size=Math.abs(pt),J.start=0,J.end=J.size}function k(W,J,oe,be){for(var Oe=0;Oe1?1:oe}function Ze(W,J,oe,be,Oe,it,pt,j){if(be/=J,it>=(oe/=J)&&pt=be)return null;for(var Q=[],Le=0;Le=oe&&An=be)){var sn=[];if(ir==="Point"||ir==="MultiPoint")_t(Ee,sn,oe,be,Oe);else if(ir==="LineString")Wt(Ee,sn,oe,be,Oe,!1,j.lineMetrics);else if(ir==="MultiLineString")He(Ee,sn,oe,be,Oe,!1);else if(ir==="Polygon")He(Ee,sn,oe,be,Oe,!0);else if(ir==="MultiPolygon")for(var sr=0;sr=oe&&pt<=be&&(J.push(W[it]),J.push(W[it+1]),J.push(W[it+2]))}}function Wt(W,J,oe,be,Oe,it,pt){for(var j,Q,Le=Sr(W),at=Oe===0?cr:mr,Ee=W.start,ir=0;iroe&&(Q=at(Le,wr,An,sr,en,oe),pt&&(Le.start=Ee+j*Q)):Wr>be?Yr=oe&&(Q=at(Le,wr,An,sr,en,oe),pi=!0),Yr>be&&Wr<=be&&(Q=at(Le,wr,An,sr,en,be),pi=!0),!it&&pi&&(pt&&(Le.end=Ee+j*Q),J.push(Le),Le=Sr(W)),pt&&(Ee+=j)}var tn=W.length-3;wr=W[tn],An=W[tn+1],sn=W[tn+2],(Wr=Oe===0?wr:An)>=oe&&Wr<=be&&Et(Le,wr,An,sn),tn=Le.length-3,it&&tn>=3&&(Le[tn]!==Le[0]||Le[tn+1]!==Le[1])&&Et(Le,Le[0],Le[1],Le[2]),Le.length&&J.push(Le)}function Sr(W){var J=[];return J.size=W.size,J.start=W.start,J.end=W.end,J}function He(W,J,oe,be,Oe,it){for(var pt=0;ptpt.maxX&&(pt.maxX=at),Ee>pt.maxY&&(pt.maxY=Ee)}return pt}function ni(W,J,oe,be){var Oe=J.geometry,it=J.type,pt=[];if(it==="Point"||it==="MultiPoint")for(var j=0;j0&&J.size<(Oe?pt:be))oe.numPoints+=J.length/3;else{for(var j=[],Q=0;Qpt)&&(oe.numSimplified++,j.push(J[Q]),j.push(J[Q+1])),oe.numPoints++;Oe&&function(Le,at){for(var Ee=0,ir=0,wr=Le.length,An=wr-2;ir0===at)for(ir=0,wr=Le.length;ir24)throw new Error("maxZoom should be in the 0-24 range");if(J.promoteId&&J.generateId)throw new Error("promoteId and generateId cannot be used together.");var be=function(Oe,it){var pt=[];if(Oe.type==="FeatureCollection")for(var j=0;j=be;Le--){var at=+Date.now();j=this._cluster(j,Le),this.trees[Le]=new Xe(j,Si,Ri,it,Float32Array),oe&&console.log("z%d: %d clusters in %dms",Le,j.length,+Date.now()-at)}return oe&&console.timeEnd("total time"),this},Ht.prototype.getClusters=function(W,J){var oe=((W[0]+180)%360+360)%360-180,be=Math.max(-90,Math.min(90,W[1])),Oe=W[2]===180?180:((W[2]+180)%360+360)%360-180,it=Math.max(-90,Math.min(90,W[3]));if(W[2]-W[0]>=360)oe=-180,Oe=180;else if(oe>Oe){var pt=this.getClusters([oe,be,180,it],J),j=this.getClusters([-180,be,Oe,it],J);return pt.concat(j)}for(var Q=this.trees[this._limitZoom(J)],Le=[],at=0,Ee=Q.range(bn(oe),Kr(it),bn(Oe),Kr(be));atJ&&(ir+=sn.numPoints||1)}if(ir>=it){for(var sr=Q.x*Ee,en=Q.y*Ee,Wr=Oe&&Ee>1?this._map(Q,!0):null,Yr=(j<<5)+(J+1)+this.points.length,pi=0,tn=at;pi1)for(var ci=0,zi=at;ci>5},Ht.prototype._getOriginZoom=function(W){return(W-this.points.length)%32},Ht.prototype._map=function(W,J){if(W.numPoints)return J?Mi({},W.properties):W.properties;var oe=this.points[W.index].properties,be=this.options.map(oe);return J&&be===oe?Mi({},be):be},oa.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},oa.prototype.splitTile=function(W,J,oe,be,Oe,it,pt){for(var j=[W,J,oe,be],Q=this.options,Le=Q.debug;j.length;){be=j.pop(),oe=j.pop(),J=j.pop(),W=j.pop();var at=1<1&&console.time("creation"),ir=this.tiles[Ee]=fn(W,J,oe,be,Q),this.tileCoords.push({z:J,x:oe,y:be}),Le)){Le>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",J,oe,be,ir.numFeatures,ir.numPoints,ir.numSimplified),console.timeEnd("creation"));var wr="z"+J;this.stats[wr]=(this.stats[wr]||0)+1,this.total++}if(ir.source=W,Oe){if(J===Q.maxZoom||J===Oe)continue;var An=1<1&&console.time("clipping");var sn,sr,en,Wr,Yr,pi,tn=.5*Q.buffer/Q.extent,vi=.5-tn,qi=.5+tn,ci=1+tn;sn=sr=en=Wr=null,Yr=Ze(W,at,oe-tn,oe+qi,0,ir.minX,ir.maxX,Q),pi=Ze(W,at,oe+vi,oe+ci,0,ir.minX,ir.maxX,Q),W=null,Yr&&(sn=Ze(Yr,at,be-tn,be+qi,1,ir.minY,ir.maxY,Q),sr=Ze(Yr,at,be+vi,be+ci,1,ir.minY,ir.maxY,Q),Yr=null),pi&&(en=Ze(pi,at,be-tn,be+qi,1,ir.minY,ir.maxY,Q),Wr=Ze(pi,at,be+vi,be+ci,1,ir.minY,ir.maxY,Q),pi=null),Le>1&&console.timeEnd("clipping"),j.push(sn||[],J+1,2*oe,2*be),j.push(sr||[],J+1,2*oe,2*be+1),j.push(en||[],J+1,2*oe+1,2*be),j.push(Wr||[],J+1,2*oe+1,2*be+1)}}},oa.prototype.getTile=function(W,J,oe){var be=this.options,Oe=be.extent,it=be.debug;if(W<0||W>24)return null;var pt=1<1&&console.log("drilling down to z%d-%d-%d",W,J,oe);for(var Q,Le=W,at=J,Ee=oe;!Q&&Le>0;)Le--,at=Math.floor(at/2),Ee=Math.floor(Ee/2),Q=this.tiles[Qi(Le,at,Ee)];return Q&&Q.source?(it>1&&console.log("found parent tile z%d-%d-%d",Le,at,Ee),it>1&&console.time("drilling down"),this.splitTile(Q.source,Le,at,Ee,W,J,oe),it>1&&console.timeEnd("drilling down"),this.tiles[j]?En(this.tiles[j],Oe):null):null};var Is=function(W){function J(oe,be,Oe,it){W.call(this,oe,be,Oe,lo),it&&(this.loadGeoJSON=it)}return W&&(J.__proto__=W),(J.prototype=Object.create(W&&W.prototype)).constructor=J,J.prototype.loadData=function(oe,be){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=be,this._pendingLoadDataParams=oe,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},J.prototype._loadData=function(){var oe=this;if(this._pendingCallback&&this._pendingLoadDataParams){var be=this._pendingCallback,Oe=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var it=!!(Oe&&Oe.request&&Oe.request.collectResourceTiming)&&new _.RequestPerformance(Oe.request);this.loadGeoJSON(Oe,function(pt,j){if(pt||!j)return be(pt);if(typeof j!="object")return be(new Error("Input data given to '"+Oe.source+"' is not a valid GeoJSON object."));(function ir(wr,An){var sn,sr=wr&&wr.type;if(sr==="FeatureCollection")for(sn=0;sn=0?0:h.button},U.remove=function(h){h.parentNode&&h.parentNode.removeChild(h)};var Zt=function(h){function d(){h.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new _.RGBAImage({width:1,height:1}),this.dirty=!0}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.isLoaded=function(){return this.loaded},d.prototype.setLoaded=function(p){if(this.loaded!==p&&(this.loaded=p,p)){for(var g=0,S=this.requestors;g=0?1.2:1))}function Tr(h,d,p,g,S,w,C){for(var P=0;P65535)Z(new Error("glyphs > 65535 not supported"));else if(_e.ranges[Ue])Z(null,{stack:Y,id:pe,glyph:ye});else{var ke=_e.requests[Ue];ke||(ke=_e.requests[Ue]=[],lr.loadGlyphRange(Y,Ue,p.url,p.requestManager,function(Ke,Ie){if(Ie){for(var $e in Ie)p._doesCharSupportLocalGlyph(+$e)||(_e.glyphs[+$e]=Ie[+$e]);_e.ranges[Ue]=!0}for(var vt=0,Rt=ke;vt1&&(P=h[++C]);var Y=Math.abs(Z-P.left),pe=Math.abs(Z-P.right),_e=Math.min(Y,pe),ye=void 0,Ue=S/p*(g+1);if(P.isDash){var ke=g-Math.abs(Ue);ye=Math.sqrt(_e*_e+ke*ke)}else ye=g-Math.sqrt(_e*_e+Ue*Ue);this.data[w+Z]=Math.max(0,Math.min(255,ye+128))}},qe.prototype.addRegularDash=function(h){for(var d=h.length-1;d>=0;--d){var p=h[d],g=h[d+1];p.zeroLength?h.splice(d,1):g&&g.isDash===p.isDash&&(g.left=p.left,h.splice(d,1))}var S=h[0],w=h[h.length-1];S.isDash===w.isDash&&(S.left=w.left-this.width,w.right=S.right+this.width);for(var C=this.width*this.nextRow,P=0,Z=h[P],Y=0;Y1&&(Z=h[++P]);var pe=Math.abs(Y-Z.left),_e=Math.abs(Y-Z.right),ye=Math.min(pe,_e);this.data[C+Y]=Math.max(0,Math.min(255,(Z.isDash?ye:-ye)+128))}},qe.prototype.addDash=function(h,d){var p=d?7:0,g=2*p+1;if(this.nextRow+g>this.height)return _.warnOnce("LineAtlas out of space"),null;for(var S=0,w=0;w=p&&h.x=g&&h.y0&&(Y[new _.OverscaledTileID(p.overscaledZ,C,g.z,w,g.y-1).key]={backfilled:!1},Y[new _.OverscaledTileID(p.overscaledZ,p.wrap,g.z,g.x,g.y-1).key]={backfilled:!1},Y[new _.OverscaledTileID(p.overscaledZ,Z,g.z,P,g.y-1).key]={backfilled:!1}),g.y+10&&(S.resourceTiming=p._resourceTiming,p._resourceTiming=[]),p.fire(new _.Event("data",S))}})},d.prototype.onAdd=function(p){this.map=p,this.load()},d.prototype.setData=function(p){var g=this;return this._data=p,this.fire(new _.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(S){if(S)g.fire(new _.ErrorEvent(S));else{var w={dataType:"source",sourceDataType:"content"};g._collectResourceTiming&&g._resourceTiming&&g._resourceTiming.length>0&&(w.resourceTiming=g._resourceTiming,g._resourceTiming=[]),g.fire(new _.Event("data",w))}}),this},d.prototype.getClusterExpansionZoom=function(p,g){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:p,source:this.id},g),this},d.prototype.getClusterChildren=function(p,g){return this.actor.send("geojson.getClusterChildren",{clusterId:p,source:this.id},g),this},d.prototype.getClusterLeaves=function(p,g,S,w){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:p,limit:g,offset:S},w),this},d.prototype._updateWorkerData=function(p){var g=this;this._loaded=!1;var S=_.extend({},this.workerOptions),w=this._data;typeof w=="string"?(S.request=this.map._requestManager.transformRequest(_.browser.resolveURL(w),_.ResourceType.Source),S.request.collectResourceTiming=this._collectResourceTiming):S.data=JSON.stringify(w),this.actor.send(this.type+".loadData",S,function(C,P){g._removed||P&&P.abandoned||(g._loaded=!0,P&&P.resourceTiming&&P.resourceTiming[g.id]&&(g._resourceTiming=P.resourceTiming[g.id].slice(0)),g.actor.send(g.type+".coalesce",{source:S.source},null),p(C))})},d.prototype.loaded=function(){return this._loaded},d.prototype.loadTile=function(p,g){var S=this,w=p.actor?"reloadTile":"loadTile";p.actor=this.actor,p.request=this.actor.send(w,{type:this.type,uid:p.uid,tileID:p.tileID,zoom:p.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:_.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(C,P){return delete p.request,p.unloadVectorData(),p.aborted?g(null):C?g(C):(p.loadVectorData(P,S.map.painter,w==="reloadTile"),g(null))})},d.prototype.abortTile=function(p){p.request&&(p.request.cancel(),delete p.request),p.aborted=!0},d.prototype.unloadTile=function(p){p.unloadVectorData(),this.actor.send("removeTile",{uid:p.uid,type:this.type,source:this.id})},d.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},d.prototype.serialize=function(){return _.extend({},this._options,{type:this.type,data:this._data})},d.prototype.hasTransition=function(){return!1},d}(_.Evented),nt=_.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),te=function(h){function d(p,g,S,w){h.call(this),this.id=p,this.dispatcher=S,this.coordinates=g.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(w),this.options=g}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.load=function(p,g){var S=this;this._loaded=!1,this.fire(new _.Event("dataloading",{dataType:"source"})),this.url=this.options.url,_.getImage(this.map._requestManager.transformRequest(this.url,_.ResourceType.Image),function(w,C){S._loaded=!0,w?S.fire(new _.ErrorEvent(w)):C&&(S.image=C,p&&(S.coordinates=p),g&&g(),S._finishLoading())})},d.prototype.loaded=function(){return this._loaded},d.prototype.updateImage=function(p){var g=this;return this.image&&p.url?(this.options.url=p.url,this.load(p.coordinates,function(){g.texture=null}),this):this},d.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new _.Event("data",{dataType:"source",sourceDataType:"metadata"})))},d.prototype.onAdd=function(p){this.map=p,this.load()},d.prototype.setCoordinates=function(p){var g=this;this.coordinates=p;var S=p.map(_.MercatorCoordinate.fromLngLat);this.tileID=function(C){for(var P=1/0,Z=1/0,Y=-1/0,pe=-1/0,_e=0,ye=C;_eg.end(0)?this.fire(new _.ErrorEvent(new _.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+g.start(0)+" and "+g.end(0)+"-second mark."))):this.video.currentTime=p}},d.prototype.getVideo=function(){return this.video},d.prototype.onAdd=function(p){this.map||(this.map=p,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},d.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var p=this.map.painter.context,g=p.gl;for(var S in this.boundsBuffer||(this.boundsBuffer=p.createVertexBuffer(this._boundsArray,nt.members)),this.boundsSegments||(this.boundsSegments=_.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE),g.texSubImage2D(g.TEXTURE_2D,0,0,0,g.RGBA,g.UNSIGNED_BYTE,this.video)):(this.texture=new _.Texture(p,this.video,g.RGBA),this.texture.bind(g.LINEAR,g.CLAMP_TO_EDGE)),this.tiles){var w=this.tiles[S];w.state!=="loaded"&&(w.state="loaded",w.texture=this.texture)}}},d.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},d.prototype.hasTransition=function(){return this.video&&!this.video.paused},d}(te),we=function(h){function d(p,g,S,w){h.call(this,p,g,S,w),g.coordinates?Array.isArray(g.coordinates)&&g.coordinates.length===4&&!g.coordinates.some(function(C){return!Array.isArray(C)||C.length!==2||C.some(function(P){return typeof P!="number"})})||this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'missing required property "coordinates"'))),g.animate&&typeof g.animate!="boolean"&&this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'optional "animate" property must be a boolean value'))),g.canvas?typeof g.canvas=="string"||g.canvas instanceof _.window.HTMLCanvasElement||this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new _.ErrorEvent(new _.ValidationError("sources."+p,null,'missing required property "canvas"'))),this.options=g,this.animate=g.animate===void 0||g.animate}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof _.window.HTMLCanvasElement?this.options.canvas:_.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new _.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},d.prototype.getCanvas=function(){return this.canvas},d.prototype.onAdd=function(p){this.map=p,this.load(),this.canvas&&this.animate&&this.play()},d.prototype.onRemove=function(){this.pause()},d.prototype.prepare=function(){var p=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,p=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,p=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var g=this.map.painter.context,S=g.gl;for(var w in this.boundsBuffer||(this.boundsBuffer=g.createVertexBuffer(this._boundsArray,nt.members)),this.boundsSegments||(this.boundsSegments=_.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(p||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new _.Texture(g,this.canvas,S.RGBA,{premultiply:!0}),this.tiles){var C=this.tiles[w];C.state!=="loaded"&&(C.state="loaded",C.texture=this.texture)}}},d.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},d.prototype.hasTransition=function(){return this._playing},d.prototype._hasInvalidDimensions=function(){for(var p=0,g=[this.canvas.width,this.canvas.height];pthis.max){var C=this._getAndRemoveByKey(this.order[0]);C&&this.onRemove(C)}return this},Jr.prototype.has=function(h){return h.wrapped().key in this.data},Jr.prototype.getAndRemove=function(h){return this.has(h)?this._getAndRemoveByKey(h.wrapped().key):null},Jr.prototype._getAndRemoveByKey=function(h){var d=this.data[h].shift();return d.timeout&&clearTimeout(d.timeout),this.data[h].length===0&&delete this.data[h],this.order.splice(this.order.indexOf(h),1),d.value},Jr.prototype.getByKey=function(h){var d=this.data[h];return d?d[0].value:null},Jr.prototype.get=function(h){return this.has(h)?this.data[h.wrapped().key][0].value:null},Jr.prototype.remove=function(h,d){if(!this.has(h))return this;var p=h.wrapped().key,g=d===void 0?0:this.data[p].indexOf(d),S=this.data[p][g];return this.data[p].splice(g,1),S.timeout&&clearTimeout(S.timeout),this.data[p].length===0&&delete this.data[p],this.onRemove(S.value),this.order.splice(this.order.indexOf(p),1),this},Jr.prototype.setMaxSize=function(h){for(this.max=h;this.order.length>this.max;){var d=this._getAndRemoveByKey(this.order[0]);d&&this.onRemove(d)}return this},Jr.prototype.filter=function(h){var d=[];for(var p in this.data)for(var g=0,S=this.data[p];g1||(Math.abs(pe)>1&&(Math.abs(pe+ye)===1?pe+=ye:Math.abs(pe-ye)===1&&(pe-=ye)),Y.dem&&Z.dem&&(Z.dem.backfillBorder(Y.dem,pe,_e),Z.neighboringTiles&&Z.neighboringTiles[Ue]&&(Z.neighboringTiles[Ue].backfilled=!0)))}},d.prototype.getTile=function(p){return this.getTileByID(p.key)},d.prototype.getTileByID=function(p){return this._tiles[p]},d.prototype._retainLoadedChildren=function(p,g,S,w){for(var C in this._tiles){var P=this._tiles[C];if(!(w[C]||!P.hasData()||P.tileID.overscaledZ<=g||P.tileID.overscaledZ>S)){for(var Z=P.tileID;P&&P.tileID.overscaledZ>g+1;){var Y=P.tileID.scaledTo(P.tileID.overscaledZ-1);(P=this._tiles[Y.key])&&P.hasData()&&(Z=Y)}for(var pe=Z;pe.overscaledZ>g;)if(p[(pe=pe.scaledTo(pe.overscaledZ-1)).key]){w[Z.key]=Z;break}}}},d.prototype.findLoadedParent=function(p,g){if(p.key in this._loadedParentTiles){var S=this._loadedParentTiles[p.key];return S&&S.tileID.overscaledZ>=g?S:null}for(var w=p.overscaledZ-1;w>=g;w--){var C=p.scaledTo(w),P=this._getLoadedTile(C);if(P)return P}},d.prototype._getLoadedTile=function(p){var g=this._tiles[p.key];return g&&g.hasData()?g:this._cache.getByKey(p.wrapped().key)},d.prototype.updateCacheSize=function(p){var g=Math.ceil(p.width/this._source.tileSize)+1,S=Math.ceil(p.height/this._source.tileSize)+1,w=Math.floor(g*S*5),C=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,w):w;this._cache.setMaxSize(C)},d.prototype.handleWrapJump=function(p){var g=Math.round((p-(this._prevLng===void 0?p:this._prevLng))/360);if(this._prevLng=p,g){var S={};for(var w in this._tiles){var C=this._tiles[w];C.tileID=C.tileID.unwrapTo(C.tileID.wrap+g),S[C.tileID.key]=C}for(var P in this._tiles=S,this._timers)clearTimeout(this._timers[P]),delete this._timers[P];for(var Z in this._tiles)this._setTileReloadTimer(Z,this._tiles[Z])}},d.prototype.update=function(p){var g=this;if(this.transform=p,this._sourceLoaded&&!this._paused){var S;this.updateCacheSize(p),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?S=p.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(_r){return new _.OverscaledTileID(_r.canonical.z,_r.wrap,_r.canonical.z,_r.canonical.x,_r.canonical.y)}):(S=p.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(S=S.filter(function(_r){return g._source.hasTile(_r)}))):S=[];var w=p.coveringZoomLevel(this._source),C=Math.max(w-d.maxOverzooming,this._source.minzoom),P=Math.max(w+d.maxUnderzooming,this._source.minzoom),Z=this._updateRetainedTiles(S,w);if(at(this._source.type)){for(var Y={},pe={},_e=0,ye=Object.keys(Z);_ethis._source.maxzoom){var $e=Ke.children(this._source.maxzoom)[0],vt=this.getTile($e);if(vt&&vt.hasData()){S[$e.key]=$e;continue}}else{var Rt=Ke.children(this._source.maxzoom);if(S[Rt[0].key]&&S[Rt[1].key]&&S[Rt[2].key]&&S[Rt[3].key])continue}for(var Jt=Ie.wasRequested(),zt=Ke.overscaledZ-1;zt>=C;--zt){var ar=Ke.scaledTo(zt);if(w[ar.key]||(w[ar.key]=!0,!(Ie=this.getTile(ar))&&Jt&&(Ie=this._addTile(ar)),Ie&&(S[ar.key]=ar,Jt=Ie.wasRequested(),Ie.hasData())))break}}}return S},d.prototype._updateLoadedParentTileCache=function(){for(var p in this._loadedParentTiles={},this._tiles){for(var g=[],S=void 0,w=this._tiles[p].tileID;w.overscaledZ>0;){if(w.key in this._loadedParentTiles){S=this._loadedParentTiles[w.key];break}g.push(w.key);var C=w.scaledTo(w.overscaledZ-1);if(S=this._getLoadedTile(C))break;w=C}for(var P=0,Z=g;P0||(g.hasData()&&g.state!=="reloading"?this._cache.add(g.tileID,g,g.getExpiryTimeout()):(g.aborted=!0,this._abortTile(g),this._unloadTile(g))))},d.prototype.clearTiles=function(){for(var p in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(p);this._cache.reset()},d.prototype.tilesIn=function(p,g,S){var w=this,C=[],P=this.transform;if(!P)return C;for(var Z=S?P.getCameraQueryGeometry(p):p,Y=p.map(function(zt){return P.pointCoordinate(zt)}),pe=Z.map(function(zt){return P.pointCoordinate(zt)}),_e=this.getIds(),ye=1/0,Ue=1/0,ke=-1/0,Ke=-1/0,Ie=0,$e=pe;Ie<$e.length;Ie+=1){var vt=$e[Ie];ye=Math.min(ye,vt.x),Ue=Math.min(Ue,vt.y),ke=Math.max(ke,vt.x),Ke=Math.max(Ke,vt.y)}for(var Rt=function(zt){var ar=w._tiles[_e[zt]];if(!ar.holdingForFade()){var _r=ar.tileID,Nr=Math.pow(2,P.zoom-ar.tileID.overscaledZ),kr=g*ar.queryPadding*_.EXTENT/ar.tileSize/Nr,un=[_r.getTilePoint(new _.MercatorCoordinate(ye,Ue)),_r.getTilePoint(new _.MercatorCoordinate(ke,Ke))];if(un[0].x-kr<_.EXTENT&&un[0].y-kr<_.EXTENT&&un[1].x+kr>=0&&un[1].y+kr>=0){var Pn=Y.map(function(Zn){return _r.getTilePoint(Zn)}),zn=pe.map(function(Zn){return _r.getTilePoint(Zn)});C.push({tile:ar,tileID:_r,queryGeometry:Pn,cameraQueryGeometry:zn,scale:Nr})}}},Jt=0;Jt<_e.length;Jt++)Rt(Jt);return C},d.prototype.getVisibleCoordinates=function(p){for(var g=this,S=this.getRenderableIds(p).map(function(Z){return g._tiles[Z].tileID}),w=0,C=S;w=_.browser.now())return!0}return!1},d.prototype.setFeatureState=function(p,g,S){this._state.updateState(p=p||"_geojsonTileLayer",g,S)},d.prototype.removeFeatureState=function(p,g,S){this._state.removeFeatureState(p=p||"_geojsonTileLayer",g,S)},d.prototype.getFeatureState=function(p,g){return this._state.getState(p=p||"_geojsonTileLayer",g)},d.prototype.setDependencies=function(p,g,S){var w=this._tiles[p];w&&w.setDependencies(g,S)},d.prototype.reloadTilesForDependencies=function(p,g){for(var S in this._tiles)this._tiles[S].hasDependency(p,g)&&this._reloadTile(S,"reloading");this._cache.filter(function(w){return!w.hasDependency(p,g)})},d}(_.Evented);function Le(h,d){var p=Math.abs(2*h.wrap)-+(h.wrap<0),g=Math.abs(2*d.wrap)-+(d.wrap<0);return h.overscaledZ-d.overscaledZ||g-p||d.canonical.y-h.canonical.y||d.canonical.x-h.canonical.x}function at(h){return h==="raster"||h==="image"||h==="video"}function Ee(){return new _.window.Worker(Hf.workerUrl)}Q.maxOverzooming=10,Q.maxUnderzooming=3;var ir="mapboxgl_preloaded_worker_pool",wr=function(){this.active={}};wr.prototype.acquire=function(h){if(!this.workers)for(this.workers=[];this.workers.length0?(g-w)/C:0;return this.points[S].mult(1-P).add(this.points[d].mult(P))};var Ji=function(h,d,p){var g=this.boxCells=[],S=this.circleCells=[];this.xCellCount=Math.ceil(h/p),this.yCellCount=Math.ceil(d/p);for(var w=0;w=-d[0]&&p<=d[0]&&g>=-d[1]&&g<=d[1]}function cu(h,d,p,g,S,w,C,P){var Z=g?h.textSizeData:h.iconSizeData,Y=_.evaluateSizeForZoom(Z,p.transform.zoom),pe=[256/p.width*2+1,256/p.height*2+1],_e=g?h.text.dynamicLayoutVertexArray:h.icon.dynamicLayoutVertexArray;_e.clear();for(var ye=h.lineVertexArray,Ue=g?h.text.placedSymbolArray:h.icon.placedSymbolArray,ke=p.transform.width/p.transform.height,Ke=!1,Ie=0;IeMath.abs(p.x-d.x)*g?{useVertical:!0}:(h===_.WritingMode.vertical?d.yp.x)?{needsFlipping:!0}:null}function $l(h,d,p,g,S,w,C,P,Z,Y,pe,_e,ye,Ue){var ke,Ke=d/24,Ie=h.lineOffsetX*Ke,$e=h.lineOffsetY*Ke;if(h.numGlyphs>1){var vt=h.glyphStartIndex+h.numGlyphs,Rt=h.lineStartIndex,Jt=h.lineStartIndex+h.lineLength,zt=ma(Ke,P,Ie,$e,p,pe,_e,h,Z,w,ye);if(!zt)return{notEnoughRoom:!0};var ar=mi(zt.first.point,C).point,_r=mi(zt.last.point,C).point;if(g&&!p){var Nr=Aa(h.writingMode,ar,_r,Ue);if(Nr)return Nr}ke=[zt.first];for(var kr=h.glyphStartIndex+1;kr0?Zn.point:os(_e,zn,un,1,S),vn=Aa(h.writingMode,un,Wi,Ue);if(vn)return vn}var ei=Ta(Ke*P.getoffsetX(h.glyphStartIndex),Ie,$e,p,pe,_e,h.segment,h.lineStartIndex,h.lineStartIndex+h.lineLength,Z,w,ye);if(!ei)return{notEnoughRoom:!0};ke=[ei]}for(var _i=0,ri=ke;_i0?1:-1,ke=0;g&&(Ue*=-1,ke=Math.PI),Ue<0&&(ke+=Math.PI);for(var Ke=Ue>0?P+C:P+C+1,Ie=S,$e=S,vt=0,Rt=0,Jt=Math.abs(ye),zt=[];vt+Rt<=Jt;){if((Ke+=Ue)=Z)return null;if($e=Ie,zt.push(Ie),(Ie=_e[Ke])===void 0){var ar=new _.Point(Y.getx(Ke),Y.gety(Ke)),_r=mi(ar,pe);if(_r.signedDistanceFromCamera>0)Ie=_e[Ke]=_r.point;else{var Nr=Ke-Ue;Ie=os(vt===0?w:new _.Point(Y.getx(Nr),Y.gety(Nr)),ar,$e,Jt-vt+1,pe)}}vt+=Rt,Rt=$e.dist(Ie)}var kr=(Jt-vt)/Rt,un=Ie.sub($e),Pn=un.mult(kr)._add($e);Pn._add(un._unit()._perp()._mult(p*Ue));var zn=ke+Math.atan2(Ie.y-$e.y,Ie.x-$e.x);return zt.push(Pn),{point:Pn,angle:zn,path:zt}}Ji.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Ji.prototype.insert=function(h,d,p,g,S){this._forEachCell(d,p,g,S,this._insertBoxCell,this.boxUid++),this.boxKeys.push(h),this.bboxes.push(d),this.bboxes.push(p),this.bboxes.push(g),this.bboxes.push(S)},Ji.prototype.insertCircle=function(h,d,p,g){this._forEachCell(d-g,p-g,d+g,p+g,this._insertCircleCell,this.circleUid++),this.circleKeys.push(h),this.circles.push(d),this.circles.push(p),this.circles.push(g)},Ji.prototype._insertBoxCell=function(h,d,p,g,S,w){this.boxCells[S].push(w)},Ji.prototype._insertCircleCell=function(h,d,p,g,S,w){this.circleCells[S].push(w)},Ji.prototype._query=function(h,d,p,g,S,w){if(p<0||h>this.width||g<0||d>this.height)return!S&&[];var C=[];if(h<=0&&d<=0&&this.width<=p&&this.height<=g){if(S)return!0;for(var P=0;P0:C},Ji.prototype._queryCircle=function(h,d,p,g,S){var w=h-p,C=h+p,P=d-p,Z=d+p;if(C<0||w>this.width||Z<0||P>this.height)return!g&&[];var Y=[];return this._forEachCell(w,P,C,Z,this._queryCellCircle,Y,{hitTest:g,circle:{x:h,y:d,radius:p},seenUids:{box:{},circle:{}}},S),g?Y.length>0:Y},Ji.prototype.query=function(h,d,p,g,S){return this._query(h,d,p,g,!1,S)},Ji.prototype.hitTest=function(h,d,p,g,S){return this._query(h,d,p,g,!0,S)},Ji.prototype.hitTestCircle=function(h,d,p,g){return this._queryCircle(h,d,p,!0,g)},Ji.prototype._queryCell=function(h,d,p,g,S,w,C,P){var Z=C.seenUids,Y=this.boxCells[S];if(Y!==null)for(var pe=this.bboxes,_e=0,ye=Y;_e=pe[ke+0]&&g>=pe[ke+1]&&(!P||P(this.boxKeys[Ue]))){if(C.hitTest)return w.push(!0),!0;w.push({key:this.boxKeys[Ue],x1:pe[ke],y1:pe[ke+1],x2:pe[ke+2],y2:pe[ke+3]})}}}var Ke=this.circleCells[S];if(Ke!==null)for(var Ie=this.circles,$e=0,vt=Ke;$eC*C+P*P},Ji.prototype._circleAndRectCollide=function(h,d,p,g,S,w,C){var P=(w-g)/2,Z=Math.abs(h-(g+P));if(Z>P+p)return!1;var Y=(C-S)/2,pe=Math.abs(d-(S+Y));if(pe>Y+p)return!1;if(Z<=P||pe<=Y)return!0;var _e=Z-P,ye=pe-Y;return _e*_e+ye*ye<=p*p};var fi=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Oa(h,d){for(var p=0;p=1;Wi--)Zn.push(Pn.path[Wi]);for(var vn=1;vn0){for(var qn=Zn[0].clone(),di=Zn[0].clone(),Jn=1;Jn=Nr.x&&di.x<=kr.x&&qn.y>=Nr.y&&di.y<=kr.y?[Zn]:di.xkr.x||di.ykr.y?[]:_.clipLine([Zn],Nr.x,Nr.y,kr.x,kr.y)}for(var Kn=0,Co=ri;Kn=this.screenRightBoundary||g<100||d>this.screenBottomBoundary},Ao.prototype.isInsideGrid=function(h,d,p,g){return p>=0&&h=0&&d0?(this.prevPlacement&&this.prevPlacement.variableOffsets[_e.crossTileID]&&this.prevPlacement.placements[_e.crossTileID]&&this.prevPlacement.placements[_e.crossTileID].text&&(Ke=this.prevPlacement.variableOffsets[_e.crossTileID].anchor),this.variableOffsets[_e.crossTileID]={textOffset:Ie,width:p,height:g,anchor:h,textBoxScale:S,prevAnchor:Ke},this.markUsedJustification(ye,h,_e,Ue),ye.allowVerticalPlacement&&(this.markUsedOrientation(ye,Ue,_e),this.placedOrientations[_e.crossTileID]=Ue),{shift:$e,placedGlyphBoxes:vt}):void 0},Sn.prototype.placeLayerBucketPart=function(h,d,p){var g=this,S=h.parameters,w=S.bucket,C=S.layout,P=S.posMatrix,Z=S.textLabelPlaneMatrix,Y=S.labelToScreenMatrix,pe=S.textPixelRatio,_e=S.holdingForFade,ye=S.collisionBoxArray,Ue=S.partiallyEvaluatedTextSize,ke=S.collisionGroup,Ke=C.get("text-optional"),Ie=C.get("icon-optional"),$e=C.get("text-allow-overlap"),vt=C.get("icon-allow-overlap"),Rt=C.get("text-rotation-alignment")==="map",Jt=C.get("text-pitch-alignment")==="map",zt=C.get("icon-text-fit")!=="none",ar=C.get("symbol-z-order")==="viewport-y",_r=$e&&(vt||!w.hasIconData()||Ie),Nr=vt&&($e||!w.hasTextData()||Ke);!w.collisionArrays&&ye&&w.deserializeCollisionBoxes(ye);var kr=function(vn,ei){if(!d[vn.crossTileID])if(_e)g.placements[vn.crossTileID]=new Ru(!1,!1,!1);else{var _i,ri=!1,qn=!1,di=!0,Jn=null,Kn={box:null,offscreen:null},Co={box:null,offscreen:null},Ua=null,Ro=null,Lo=0,Ga=0,Xa=0;ei.textFeatureIndex?Lo=ei.textFeatureIndex:vn.useRuntimeCollisionCircles&&(Lo=vn.featureIndex),ei.verticalTextFeatureIndex&&(Ga=ei.verticalTextFeatureIndex);var Ss=ei.textBox;if(Ss){var ls=function(Zi){var mo=_.WritingMode.horizontal;if(w.allowVerticalPlacement&&!Zi&&g.prevPlacement){var ao=g.prevPlacement.placedOrientations[vn.crossTileID];ao&&(g.placedOrientations[vn.crossTileID]=ao,g.markUsedOrientation(w,mo=ao,vn))}return mo},Zu=function(Zi,mo){if(w.allowVerticalPlacement&&vn.numVerticalGlyphVertices>0&&ei.verticalTextBox)for(var ao=0,ou=w.writingModes;ao0&&(cs=cs.filter(function(Zi){return Zi!==nu.anchor})).unshift(nu.anchor)}var Us=function(Zi,mo,ao){for(var ou=Zi.x2-Zi.x1,Bc=Zi.y2-Zi.y1,Bl=vn.textBoxScale,fs=zt&&!vt?mo:null,Or={box:[],offscreen:!1},Wu=$e?2*cs.length:cs.length,Gu=0;Gu=cs.length,vn,w,ao,fs);if(oo&&(Or=oo.placedGlyphBoxes)&&Or.box&&Or.box.length){ri=!0,Jn=oo.shift;break}}return Or};Zu(function(){return Us(Ss,ei.iconBox,_.WritingMode.horizontal)},function(){var Zi=ei.verticalTextBox;return w.allowVerticalPlacement&&!(Kn&&Kn.box&&Kn.box.length)&&vn.numVerticalGlyphVertices>0&&Zi?Us(Zi,ei.verticalIconBox,_.WritingMode.vertical):{box:null,offscreen:null}}),Kn&&(ri=Kn.box,di=Kn.offscreen);var sl=ls(Kn&&Kn.box);if(!ri&&g.prevPlacement){var Fl=g.prevPlacement.variableOffsets[vn.crossTileID];Fl&&(g.variableOffsets[vn.crossTileID]=Fl,g.markUsedJustification(w,Fl.anchor,vn,sl))}}else{var ul=function(Zi,mo){var ao=g.collisionIndex.placeCollisionBox(Zi,$e,pe,P,ke.predicate);return ao&&ao.box&&ao.box.length&&(g.markUsedOrientation(w,mo,vn),g.placedOrientations[vn.crossTileID]=mo),ao};Zu(function(){return ul(Ss,_.WritingMode.horizontal)},function(){var Zi=ei.verticalTextBox;return w.allowVerticalPlacement&&vn.numVerticalGlyphVertices>0&&Zi?ul(Zi,_.WritingMode.vertical):{box:null,offscreen:null}}),ls(Kn&&Kn.box&&Kn.box.length)}}if(ri=(_i=Kn)&&_i.box&&_i.box.length>0,di=_i&&_i.offscreen,vn.useRuntimeCollisionCircles){var kl=w.text.placedSymbolArray.get(vn.centerJustifiedTextSymbolIndex),Vu=_.evaluateSizeForFeature(w.textSizeData,Ue,kl),iu=C.get("text-padding");Ua=g.collisionIndex.placeCollisionCircles($e,kl,w.lineVertexArray,w.glyphOffsetArray,Vu,P,Z,Y,p,Jt,ke.predicate,vn.collisionCircleDiameter,iu),ri=$e||Ua.circles.length>0&&!Ua.collisionDetected,di=di&&Ua.offscreen}if(ei.iconFeatureIndex&&(Xa=ei.iconFeatureIndex),ei.iconBox){var ju=function(Zi){var mo=zt&&Jn?Kt(Zi,Jn.x,Jn.y,Rt,Jt,g.transform.angle):Zi;return g.collisionIndex.placeCollisionBox(mo,vt,pe,P,ke.predicate)};qn=Co&&Co.box&&Co.box.length&&ei.verticalIconBox?(Ro=ju(ei.verticalIconBox)).box.length>0:(Ro=ju(ei.iconBox)).box.length>0,di=di&&Ro.offscreen}var Ko=Ke||vn.numHorizontalGlyphVertices===0&&vn.numVerticalGlyphVertices===0,Qa=Ie||vn.numIconVertices===0;if(Ko||Qa?Qa?Ko||(qn=qn&&ri):ri=qn&&ri:qn=ri=qn&&ri,ri&&_i&&_i.box&&g.collisionIndex.insertCollisionBox(_i.box,C.get("text-ignore-placement"),w.bucketInstanceId,Co&&Co.box&&Ga?Ga:Lo,ke.ID),qn&&Ro&&g.collisionIndex.insertCollisionBox(Ro.box,C.get("icon-ignore-placement"),w.bucketInstanceId,Xa,ke.ID),Ua&&(ri&&g.collisionIndex.insertCollisionCircles(Ua.circles,C.get("text-ignore-placement"),w.bucketInstanceId,Lo,ke.ID),p)){var As=w.bucketInstanceId,au=g.collisionCircleArrays[As];au===void 0&&(au=g.collisionCircleArrays[As]=new ss);for(var Hu=0;Hu=0;--Pn){var zn=un[Pn];kr(w.symbolInstances.get(zn),w.collisionArrays[zn])}else for(var Zn=h.symbolInstanceStart;Zn=0&&(h.text.placedSymbolArray.get(P).crossTileID=S>=0&&P!==S?0:p.crossTileID)}},Sn.prototype.markUsedOrientation=function(h,d,p){for(var g=d===_.WritingMode.horizontal||d===_.WritingMode.horizontalOnly?d:0,S=d===_.WritingMode.vertical?d:0,w=0,C=[p.leftJustifiedTextSymbolIndex,p.centerJustifiedTextSymbolIndex,p.rightJustifiedTextSymbolIndex];w0,Nr=g.placedOrientations[vt.crossTileID],kr=Nr===_.WritingMode.vertical,un=Nr===_.WritingMode.horizontal||Nr===_.WritingMode.horizontalOnly;if(Rt>0||Jt>0){var Pn=To(ar.text);Ue(h.text,Rt,kr?co:Pn),Ue(h.text,Jt,un?co:Pn);var zn=ar.text.isHidden();[vt.rightJustifiedTextSymbolIndex,vt.centerJustifiedTextSymbolIndex,vt.leftJustifiedTextSymbolIndex].forEach(function(Kn){Kn>=0&&(h.text.placedSymbolArray.get(Kn).hidden=zn||kr?1:0)}),vt.verticalPlacedTextSymbolIndex>=0&&(h.text.placedSymbolArray.get(vt.verticalPlacedTextSymbolIndex).hidden=zn||un?1:0);var Zn=g.variableOffsets[vt.crossTileID];Zn&&g.markUsedJustification(h,Zn.anchor,vt,Nr);var Wi=g.placedOrientations[vt.crossTileID];Wi&&(g.markUsedJustification(h,"left",vt,Wi),g.markUsedOrientation(h,Wi,vt))}if(_r){var vn=To(ar.icon),ei=!(_e&&vt.verticalPlacedIconSymbolIndex&&kr);vt.placedIconSymbolIndex>=0&&(Ue(h.icon,vt.numIconVertices,ei?vn:co),h.icon.placedSymbolArray.get(vt.placedIconSymbolIndex).hidden=ar.icon.isHidden()),vt.verticalPlacedIconSymbolIndex>=0&&(Ue(h.icon,vt.numVerticalIconVertices,ei?co:vn),h.icon.placedSymbolArray.get(vt.verticalPlacedIconSymbolIndex).hidden=ar.icon.isHidden())}if(h.hasIconCollisionBoxData()||h.hasTextCollisionBoxData()){var _i=h.collisionArrays[$e];if(_i){var ri=new _.Point(0,0);if(_i.textBox||_i.verticalTextBox){var qn=!0;if(Z){var di=g.variableOffsets[zt];di?(ri=ea(di.anchor,di.width,di.height,di.textOffset,di.textBoxScale),Y&&ri._rotate(pe?g.transform.angle:-g.transform.angle)):qn=!1}_i.textBox&&de(h.textCollisionBox.collisionVertexArray,ar.text.placed,!qn||kr,ri.x,ri.y),_i.verticalTextBox&&de(h.textCollisionBox.collisionVertexArray,ar.text.placed,!qn||un,ri.x,ri.y)}var Jn=!!(!un&&_i.verticalIconBox);_i.iconBox&&de(h.iconCollisionBox.collisionVertexArray,ar.icon.placed,Jn,_e?ri.x:0,_e?ri.y:0),_i.verticalIconBox&&de(h.iconCollisionBox.collisionVertexArray,ar.icon.placed,!Jn,_e?ri.x:0,_e?ri.y:0)}}},Ke=0;Keh},Sn.prototype.setStale=function(){this.stale=!0};var Re=Math.pow(2,25),ct=Math.pow(2,24),or=Math.pow(2,17),jr=Math.pow(2,16),In=Math.pow(2,9),Hi=Math.pow(2,8),vo=Math.pow(2,1);function To(h){if(h.opacity===0&&!h.placed)return 0;if(h.opacity===1&&h.placed)return 4294967295;var d=h.placed?1:0,p=Math.floor(127*h.opacity);return p*Re+d*ct+p*or+d*jr+p*In+d*Hi+p*vo+d}var co=0,Ps=function(h){this._sortAcrossTiles=h.layout.get("symbol-z-order")!=="viewport-y"&&h.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Ps.prototype.continuePlacement=function(h,d,p,g,S){for(var w=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var C=d[h[this._currentPlacementIndex]],P=this.placement.collisionIndex.transform.zoom;if(C.type==="symbol"&&(!C.minzoom||C.minzoom<=P)&&(!C.maxzoom||C.maxzoom>P)){if(this._inProgressLayer||(this._inProgressLayer=new Ps(C)),this._inProgressLayer.continuePlacement(p[C.source],this.placement,this._showCollisionBoxes,C,w))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ys.prototype.commit=function(h){return this.placement.commit(h),this.placement};var Kh=512/_.EXTENT/2,Cf=function(h,d,p){this.tileID=h,this.indexedSymbolInstances={},this.bucketInstanceId=p;for(var g=0;gh.overscaledZ)for(var P in C){var Z=C[P];Z.tileID.isChildOf(h)&&Z.findMatches(d.symbolInstances,h,S)}else{var Y=C[h.scaledTo(Number(w)).key];Y&&Y.findMatches(d.symbolInstances,h,S)}}for(var pe=0;pe1?"@2x":"",_e=_.getJSON(w.transformRequest(w.normalizeSpriteURL(S,pe,".json"),_.ResourceType.SpriteJSON),function(ke,Ke){_e=null,Y||(Y=ke,P=Ke,Ue())}),ye=_.getImage(w.transformRequest(w.normalizeSpriteURL(S,pe,".png"),_.ResourceType.SpriteImage),function(ke,Ke){ye=null,Y||(Y=ke,Z=Ke,Ue())});function Ue(){if(Y)C(Y);else if(P&&Z){var ke=_.browser.getImageData(Z),Ke={};for(var Ie in P){var $e=P[Ie],vt=$e.width,Rt=$e.height,Jt=$e.x,zt=$e.y,ar=$e.sdf,_r=$e.pixelRatio,Nr=$e.stretchX,kr=$e.stretchY,un=$e.content,Pn=new _.RGBAImage({width:vt,height:Rt});_.RGBAImage.copy(ke,Pn,{x:Jt,y:zt},{x:0,y:0},{width:vt,height:Rt}),Ke[Ie]={data:Pn,pixelRatio:_r,sdf:ar,stretchX:Nr,stretchY:kr,content:un}}C(null,Ke)}}return{cancel:function(){_e&&(_e.cancel(),_e=null),ye&&(ye.cancel(),ye=null)}}}(p,this.map._requestManager,function(S,w){if(g._spriteRequest=null,S)g.fire(new _.ErrorEvent(S));else if(w)for(var C in w)g.imageManager.addImage(C,w[C]);g.imageManager.setLoaded(!0),g._availableImages=g.imageManager.listImages(),g.dispatcher.broadcast("setImages",g._availableImages),g.fire(new _.Event("data",{dataType:"style"}))})},d.prototype._validateLayer=function(p){var g=this.sourceCaches[p.source];if(g){var S=p.sourceLayer;if(S){var w=g.getSource();(w.type==="geojson"||w.vectorLayerIds&&w.vectorLayerIds.indexOf(S)===-1)&&this.fire(new _.ErrorEvent(new Error('Source layer "'+S+'" does not exist on source "'+w.id+'" as specified by style layer "'+p.id+'"')))}}},d.prototype.loaded=function(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(var p in this.sourceCaches)if(!this.sourceCaches[p].loaded())return!1;return!!this.imageManager.isLoaded()},d.prototype._serializeLayers=function(p){for(var g=[],S=0,w=p;S0)throw new Error("Unimplemented: "+w.map(function(C){return C.command}).join(", ")+".");return S.forEach(function(C){C.command!=="setTransition"&&g[C.command].apply(g,C.args)}),this.stylesheet=p,!0},d.prototype.addImage=function(p,g){if(this.getImage(p))return this.fire(new _.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(p,g),this._afterImageUpdated(p)},d.prototype.updateImage=function(p,g){this.imageManager.updateImage(p,g)},d.prototype.getImage=function(p){return this.imageManager.getImage(p)},d.prototype.removeImage=function(p){if(!this.getImage(p))return this.fire(new _.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(p),this._afterImageUpdated(p)},d.prototype._afterImageUpdated=function(p){this._availableImages=this.imageManager.listImages(),this._changedImages[p]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new _.Event("data",{dataType:"style"}))},d.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},d.prototype.addSource=function(p,g,S){var w=this;if(S===void 0&&(S={}),this._checkLoaded(),this.sourceCaches[p]!==void 0)throw new Error("There is already a source with this ID");if(!g.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(g).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(g.type)>=0&&this._validate(_.validateStyle.source,"sources."+p,g,null,S))){this.map&&this.map._collectResourceTiming&&(g.collectResourceTiming=!0);var C=this.sourceCaches[p]=new Q(p,g,this.dispatcher);C.style=this,C.setEventedParent(this,function(){return{isSourceLoaded:w.loaded(),source:C.serialize(),sourceId:p}}),C.onAdd(this.map),this._changed=!0}},d.prototype.removeSource=function(p){if(this._checkLoaded(),this.sourceCaches[p]===void 0)throw new Error("There is no source with this ID");for(var g in this._layers)if(this._layers[g].source===p)return this.fire(new _.ErrorEvent(new Error('Source "'+p+'" cannot be removed while layer "'+g+'" is using it.')));var S=this.sourceCaches[p];delete this.sourceCaches[p],delete this._updatedSources[p],S.fire(new _.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:p})),S.setEventedParent(null),S.clearTiles(),S.onRemove&&S.onRemove(this.map),this._changed=!0},d.prototype.setGeoJSONSourceData=function(p,g){this._checkLoaded(),this.sourceCaches[p].getSource().setData(g),this._changed=!0},d.prototype.getSource=function(p){return this.sourceCaches[p]&&this.sourceCaches[p].getSource()},d.prototype.addLayer=function(p,g,S){S===void 0&&(S={}),this._checkLoaded();var w=p.id;if(this.getLayer(w))this.fire(new _.ErrorEvent(new Error('Layer with id "'+w+'" already exists on this map')));else{var C;if(p.type==="custom"){if(Mu(this,_.validateCustomStyleLayer(p)))return;C=_.createStyleLayer(p)}else{if(typeof p.source=="object"&&(this.addSource(w,p.source),p=_.clone$1(p),p=_.extend(p,{source:w})),this._validate(_.validateStyle.layer,"layers."+w,p,{arrayIndex:-1},S))return;C=_.createStyleLayer(p),this._validateLayer(C),C.setEventedParent(this,{layer:{id:w}}),this._serializedLayers[C.id]=C.serialize()}var P=g?this._order.indexOf(g):this._order.length;if(g&&P===-1)this.fire(new _.ErrorEvent(new Error('Layer with id "'+g+'" does not exist on this map.')));else{if(this._order.splice(P,0,w),this._layerOrderChanged=!0,this._layers[w]=C,this._removedLayers[w]&&C.source&&C.type!=="custom"){var Z=this._removedLayers[w];delete this._removedLayers[w],Z.type!==C.type?this._updatedSources[C.source]="clear":(this._updatedSources[C.source]="reload",this.sourceCaches[C.source].pause())}this._updateLayer(C),C.onAdd&&C.onAdd(this.map)}}},d.prototype.moveLayer=function(p,g){if(this._checkLoaded(),this._changed=!0,this._layers[p]){if(p!==g){var S=this._order.indexOf(p);this._order.splice(S,1);var w=g?this._order.indexOf(g):this._order.length;g&&w===-1?this.fire(new _.ErrorEvent(new Error('Layer with id "'+g+'" does not exist on this map.'))):(this._order.splice(w,0,p),this._layerOrderChanged=!0)}}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be moved.")))},d.prototype.removeLayer=function(p){this._checkLoaded();var g=this._layers[p];if(g){g.setEventedParent(null);var S=this._order.indexOf(p);this._order.splice(S,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[p]=g,delete this._layers[p],delete this._serializedLayers[p],delete this._updatedLayers[p],delete this._updatedPaintProps[p],g.onRemove&&g.onRemove(this.map)}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be removed.")))},d.prototype.getLayer=function(p){return this._layers[p]},d.prototype.hasLayer=function(p){return p in this._layers},d.prototype.setLayerZoomRange=function(p,g,S){this._checkLoaded();var w=this.getLayer(p);w?w.minzoom===g&&w.maxzoom===S||(g!=null&&(w.minzoom=g),S!=null&&(w.maxzoom=S),this._updateLayer(w)):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot have zoom extent.")))},d.prototype.setFilter=function(p,g,S){S===void 0&&(S={}),this._checkLoaded();var w=this.getLayer(p);if(w){if(!_.deepEqual(w.filter,g))return g==null?(w.filter=void 0,void this._updateLayer(w)):void(this._validate(_.validateStyle.filter,"layers."+w.id+".filter",g,null,S)||(w.filter=_.clone$1(g),this._updateLayer(w)))}else this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be filtered.")))},d.prototype.getFilter=function(p){return _.clone$1(this.getLayer(p).filter)},d.prototype.setLayoutProperty=function(p,g,S,w){w===void 0&&(w={}),this._checkLoaded();var C=this.getLayer(p);C?_.deepEqual(C.getLayoutProperty(g),S)||(C.setLayoutProperty(g,S,w),this._updateLayer(C)):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be styled.")))},d.prototype.getLayoutProperty=function(p,g){var S=this.getLayer(p);if(S)return S.getLayoutProperty(g);this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style.")))},d.prototype.setPaintProperty=function(p,g,S,w){w===void 0&&(w={}),this._checkLoaded();var C=this.getLayer(p);C?_.deepEqual(C.getPaintProperty(g),S)||(C.setPaintProperty(g,S,w)&&this._updateLayer(C),this._changed=!0,this._updatedPaintProps[p]=!0):this.fire(new _.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be styled.")))},d.prototype.getPaintProperty=function(p,g){return this.getLayer(p).getPaintProperty(g)},d.prototype.setFeatureState=function(p,g){this._checkLoaded();var S=p.source,w=p.sourceLayer,C=this.sourceCaches[S];if(C!==void 0){var P=C.getSource().type;P==="geojson"&&w?this.fire(new _.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):P!=="vector"||w?(p.id===void 0&&this.fire(new _.ErrorEvent(new Error("The feature id parameter must be provided."))),C.setFeatureState(w,p.id,g)):this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+S+"' does not exist in the map's style.")))},d.prototype.removeFeatureState=function(p,g){this._checkLoaded();var S=p.source,w=this.sourceCaches[S];if(w!==void 0){var C=w.getSource().type,P=C==="vector"?p.sourceLayer:void 0;C!=="vector"||P?g&&typeof p.id!="string"&&typeof p.id!="number"?this.fire(new _.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):w.removeFeatureState(P,p.id,g):this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+S+"' does not exist in the map's style.")))},d.prototype.getFeatureState=function(p){this._checkLoaded();var g=p.source,S=p.sourceLayer,w=this.sourceCaches[g];if(w!==void 0){if(w.getSource().type!=="vector"||S)return p.id===void 0&&this.fire(new _.ErrorEvent(new Error("The feature id parameter must be provided."))),w.getFeatureState(S,p.id);this.fire(new _.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new _.ErrorEvent(new Error("The source '"+g+"' does not exist in the map's style.")))},d.prototype.getTransition=function(){return _.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},d.prototype.serialize=function(){return _.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:_.mapObject(this.sourceCaches,function(p){return p.serialize()}),layers:this._serializeLayers(this._order)},function(p){return p!==void 0})},d.prototype._updateLayer=function(p){this._updatedLayers[p.id]=!0,p.source&&!this._updatedSources[p.source]&&this.sourceCaches[p.source].getSource().type!=="raster"&&(this._updatedSources[p.source]="reload",this.sourceCaches[p.source].pause()),this._changed=!0},d.prototype._flattenAndSortRenderedFeatures=function(p){for(var g=this,S=function(Nr){return g._layers[Nr].type==="fill-extrusion"},w={},C=[],P=this._order.length-1;P>=0;P--){var Z=this._order[P];if(S(Z)){w[Z]=P;for(var Y=0,pe=p;Y=0;Ke--){var Ie=this._order[Ke];if(S(Ie))for(var $e=C.length-1;$e>=0;$e--){var vt=C[$e].feature;if(w[vt.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Jh=Ci("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),ep=Ci("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Zp=Ci(`#pragma mapbox: define highp vec4 color +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),vh=Ii("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Jh=Ii("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),ep=Ii("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),Zp=Ii(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color @@ -7150,7 +7159,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),Jc=Ci(`varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);}`),Jc=Ii(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { @@ -7166,7 +7175,7 @@ gl_FragColor=vec4(1.0); void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),Pu=Ci(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),Pu=Ii(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -7190,7 +7199,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),tp=Ci(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),tp=Ii(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to @@ -7214,7 +7223,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Ho=Ci(`varying vec4 v_color;void main() {gl_FragColor=v_color; +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Ho=Ii(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif @@ -7226,7 +7235,7 @@ void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),Yl=Ci(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),Yl=Ii(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from @@ -7260,20 +7269,20 @@ void main() { #pragma mapbox: initialize lowp float pixel_ratio_to vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 ? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Sl=Ci(`#ifdef GL_ES +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Sl=Ii(`#ifdef GL_ES precision highp float; #endif uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Xs=Ci(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),$s=Ii(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; #define PI 3.141592653589793 void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Al=Ci(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),Al=Ii(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -7301,7 +7310,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),ii=Ci(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),oi=Ii(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { @@ -7325,7 +7334,7 @@ void main() { #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),el=Ci(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),el=Ii(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from @@ -7368,7 +7377,7 @@ void main() { #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),Os=Ci(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),Ds=Ii(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity @@ -7403,11 +7412,11 @@ void main() { #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),Ou=Ci(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),Ou=Ii(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),tl=Ci(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),tl=Ii(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity @@ -7421,7 +7430,7 @@ void main() { #pragma mapbox: initialize lowp float opacity vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),rp=Ci(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),rp=Ii(`#define SDF_PX 8.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color @@ -7452,7 +7461,7 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Ji=Ci(`#define SDF_PX 8.0 +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),ta=Ii(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; @@ -7489,64 +7498,64 @@ void main() { #pragma mapbox: initialize lowp float halo_blur vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function Ci(h,d){var p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,g=d.match(/attribute ([\w]+) ([\w]+)/g),S=h.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),w=d.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),C=w?w.concat(S):S,P={};return{fragmentSource:h=h.replace(p,function(Z,Y,ce,ge,_e){return P[_e]=!0,Y==="define"?` -#ifndef HAS_UNIFORM_u_`+_e+` -varying `+ce+" "+ge+" "+_e+`; +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function Ii(h,d){var p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,g=d.match(/attribute ([\w]+) ([\w]+)/g),S=h.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),w=d.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),C=w?w.concat(S):S,P={};return{fragmentSource:h=h.replace(p,function(Z,Y,pe,_e,ye){return P[ye]=!0,Y==="define"?` +#ifndef HAS_UNIFORM_u_`+ye+` +varying `+pe+" "+_e+" "+ye+`; #else -uniform `+ce+" "+ge+" u_"+_e+`; +uniform `+pe+" "+_e+" u_"+ye+`; #endif `:` -#ifdef HAS_UNIFORM_u_`+_e+` - `+ce+" "+ge+" "+_e+" = u_"+_e+`; +#ifdef HAS_UNIFORM_u_`+ye+` + `+pe+" "+_e+" "+ye+" = u_"+ye+`; #endif -`}),vertexSource:d=d.replace(p,function(Z,Y,ce,ge,_e){var Fe=ge==="float"?"vec2":"vec4",Pe=_e.match(/color/)?"color":Fe;return P[_e]?Y==="define"?` -#ifndef HAS_UNIFORM_u_`+_e+` -uniform lowp float u_`+_e+`_t; -attribute `+ce+" "+Fe+" a_"+_e+`; -varying `+ce+" "+ge+" "+_e+`; +`}),vertexSource:d=d.replace(p,function(Z,Y,pe,_e,ye){var Ue=_e==="float"?"vec2":"vec4",ke=ye.match(/color/)?"color":Ue;return P[ye]?Y==="define"?` +#ifndef HAS_UNIFORM_u_`+ye+` +uniform lowp float u_`+ye+`_t; +attribute `+pe+" "+Ue+" a_"+ye+`; +varying `+pe+" "+_e+" "+ye+`; #else -uniform `+ce+" "+ge+" u_"+_e+`; +uniform `+pe+" "+_e+" u_"+ye+`; #endif -`:Pe==="vec4"?` -#ifndef HAS_UNIFORM_u_`+_e+` - `+_e+" = a_"+_e+`; +`:ke==="vec4"?` +#ifndef HAS_UNIFORM_u_`+ye+` + `+ye+" = a_"+ye+`; #else - `+ce+" "+ge+" "+_e+" = u_"+_e+`; + `+pe+" "+_e+" "+ye+" = u_"+ye+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+_e+` - `+_e+" = unpack_mix_"+Pe+"(a_"+_e+", u_"+_e+`_t); +#ifndef HAS_UNIFORM_u_`+ye+` + `+ye+" = unpack_mix_"+ke+"(a_"+ye+", u_"+ye+`_t); #else - `+ce+" "+ge+" "+_e+" = u_"+_e+`; + `+pe+" "+_e+" "+ye+" = u_"+ye+`; #endif `:Y==="define"?` -#ifndef HAS_UNIFORM_u_`+_e+` -uniform lowp float u_`+_e+`_t; -attribute `+ce+" "+Fe+" a_"+_e+`; +#ifndef HAS_UNIFORM_u_`+ye+` +uniform lowp float u_`+ye+`_t; +attribute `+pe+" "+Ue+" a_"+ye+`; #else -uniform `+ce+" "+ge+" u_"+_e+`; +uniform `+pe+" "+_e+" u_"+ye+`; #endif -`:Pe==="vec4"?` -#ifndef HAS_UNIFORM_u_`+_e+` - `+ce+" "+ge+" "+_e+" = a_"+_e+`; +`:ke==="vec4"?` +#ifndef HAS_UNIFORM_u_`+ye+` + `+pe+" "+_e+" "+ye+" = a_"+ye+`; #else - `+ce+" "+ge+" "+_e+" = u_"+_e+`; + `+pe+" "+_e+" "+ye+" = u_"+ye+`; #endif `:` -#ifndef HAS_UNIFORM_u_`+_e+` - `+ce+" "+ge+" "+_e+" = unpack_mix_"+Pe+"(a_"+_e+", u_"+_e+`_t); +#ifndef HAS_UNIFORM_u_`+ye+` + `+pe+" "+_e+" "+ye+" = unpack_mix_"+ke+"(a_"+ye+", u_"+ye+`_t); #else - `+ce+" "+ge+" "+_e+" = u_"+_e+`; + `+pe+" "+_e+" "+ye+" = u_"+ye+`; #endif -`}),staticAttributes:g,staticUniforms:C}}var fu=Object.freeze({__proto__:null,prelude:El,background:Ju,backgroundPattern:Rf,circle:Qh,clippingMask:Mf,heatmap:ph,heatmapTexture:dh,collisionBox:vh,collisionCircle:Jh,debug:ep,fill:Zp,fillOutline:Jc,fillOutlinePattern:Pu,fillPattern:tp,fillExtrusion:Ho,fillExtrusionPattern:Yl,hillshadePrepare:Sl,hillshade:Xs,line:Al,lineGradient:ii,linePattern:el,lineSDF:Os,raster:Ou,symbolIcon:tl,symbolSDF:rp,symbolTextAndIcon:Ji}),Du=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function mh(h){for(var d=[],p=0;p>16,P>>16],u_pixel_coord_lower:[65535&C,65535&P]}}ja.prototype.draw=function(h,d,p,g,S,w,C,P,Z,Y,ce,ge,_e,Fe,Pe,Xe){var we,Ge=h.gl;if(!this.failedToCreate){for(var ct in h.program.set(this.program),h.setDepthMode(p),h.setStencilMode(g),h.setColorMode(S),h.setCullFace(w),this.fixedUniforms)this.fixedUniforms[ct].set(C[ct]);Fe&&Fe.setUniforms(h,this.binderUniforms,ge,{zoom:_e});for(var At=(we={},we[Ge.LINES]=2,we[Ge.TRIANGLES]=3,we[Ge.LINE_STRIP]=1,we)[d],$t=0,Nt=ce.get();$t0?1-1/(1.001-C):-C),u_contrast_factor:(w=S.paint.get("raster-contrast"),w>0?1/(1-w):1+w),u_spin_weights:Pf(S.paint.get("raster-hue-rotate"))};var w,C};function Pf(h){h*=Math.PI/180;var d=Math.sin(h),p=Math.cos(h);return[(2*p+1)/3,(-Math.sqrt(3)*d-p+1)/3,(Math.sqrt(3)*d-p+1)/3]}var wl,hu=function(h,d,p,g,S,w,C,P,Z,Y){var ce=S.transform;return{u_is_size_zoom_constant:+(h==="constant"||h==="source"),u_is_size_feature_constant:+(h==="constant"||h==="camera"),u_size_t:d?d.uSizeT:0,u_size:d?d.uSize:0,u_camera_to_center_distance:ce.cameraToCenterDistance,u_pitch:ce.pitch/360*2*Math.PI,u_rotate_symbol:+p,u_aspect_ratio:ce.width/ce.height,u_fade_change:S.options.fadeDuration?S.symbolFadeChange:1,u_matrix:w,u_label_plane_matrix:C,u_coord_matrix:P,u_is_text:+Z,u_pitch_with_map:+g,u_texsize:Y,u_texture:0}},Mc=function(h,d,p,g,S,w,C,P,Z,Y,ce){var ge=S.transform;return _.extend(hu(h,d,p,g,S,w,C,P,Z,Y),{u_gamma_scale:g?Math.cos(ge._pitch)*ge.cameraToCenterDistance:1,u_device_pixel_ratio:_.browser.devicePixelRatio,u_is_halo:+ce})},rf=function(h,d,p,g,S,w,C,P,Z,Y){return _.extend(Mc(h,d,p,g,S,w,C,P,!0,Z,!0),{u_texsize_icon:Y,u_texture_icon:1})},ec=function(h,d,p){return{u_matrix:h,u_opacity:d,u_color:p}},tc=function(h,d,p,g,S,w){return _.extend(function(C,P,Z,Y){var ce=Z.imageManager.getPattern(C.from.toString()),ge=Z.imageManager.getPattern(C.to.toString()),_e=Z.imageManager.getPixelSize(),Fe=_e.width,Pe=_e.height,Xe=Math.pow(2,Y.tileID.overscaledZ),we=Y.tileSize*Math.pow(2,Z.transform.tileZoom)/Xe,Ge=we*(Y.tileID.canonical.x+Y.tileID.wrap*Xe),ct=we*Y.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ce.tl,u_pattern_br_a:ce.br,u_pattern_tl_b:ge.tl,u_pattern_br_b:ge.br,u_texsize:[Fe,Pe],u_mix:P.t,u_pattern_size_a:ce.displaySize,u_pattern_size_b:ge.displaySize,u_scale_a:P.fromScale,u_scale_b:P.toScale,u_tile_units_to_pixels:1/ha(Y,1,Z.transform.tileZoom),u_pixel_coord_upper:[Ge>>16,ct>>16],u_pixel_coord_lower:[65535&Ge,65535&ct]}}(g,w,p,S),{u_matrix:h,u_opacity:d})},ip={fillExtrusion:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_lightpos:new _.Uniform3f(h,d.u_lightpos),u_lightintensity:new _.Uniform1f(h,d.u_lightintensity),u_lightcolor:new _.Uniform3f(h,d.u_lightcolor),u_vertical_gradient:new _.Uniform1f(h,d.u_vertical_gradient),u_opacity:new _.Uniform1f(h,d.u_opacity)}},fillExtrusionPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_lightpos:new _.Uniform3f(h,d.u_lightpos),u_lightintensity:new _.Uniform1f(h,d.u_lightintensity),u_lightcolor:new _.Uniform3f(h,d.u_lightcolor),u_vertical_gradient:new _.Uniform1f(h,d.u_vertical_gradient),u_height_factor:new _.Uniform1f(h,d.u_height_factor),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade),u_opacity:new _.Uniform1f(h,d.u_opacity)}},fill:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},fillPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},fillOutline:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world)}},fillOutlinePattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},circle:function(h,d){return{u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_scale_with_map:new _.Uniform1i(h,d.u_scale_with_map),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_extrude_scale:new _.Uniform2f(h,d.u_extrude_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},collisionBox:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pixels_to_tile_units:new _.Uniform1f(h,d.u_pixels_to_tile_units),u_extrude_scale:new _.Uniform2f(h,d.u_extrude_scale),u_overscale_factor:new _.Uniform1f(h,d.u_overscale_factor)}},collisionCircle:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_inv_matrix:new _.UniformMatrix4f(h,d.u_inv_matrix),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_viewport_size:new _.Uniform2f(h,d.u_viewport_size)}},debug:function(h,d){return{u_color:new _.UniformColor(h,d.u_color),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_overlay:new _.Uniform1i(h,d.u_overlay),u_overlay_scale:new _.Uniform1f(h,d.u_overlay_scale)}},clippingMask:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},heatmap:function(h,d){return{u_extrude_scale:new _.Uniform1f(h,d.u_extrude_scale),u_intensity:new _.Uniform1f(h,d.u_intensity),u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},heatmapTexture:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world),u_image:new _.Uniform1i(h,d.u_image),u_color_ramp:new _.Uniform1i(h,d.u_color_ramp),u_opacity:new _.Uniform1f(h,d.u_opacity)}},hillshade:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_latrange:new _.Uniform2f(h,d.u_latrange),u_light:new _.Uniform2f(h,d.u_light),u_shadow:new _.UniformColor(h,d.u_shadow),u_highlight:new _.UniformColor(h,d.u_highlight),u_accent:new _.UniformColor(h,d.u_accent)}},hillshadePrepare:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_dimension:new _.Uniform2f(h,d.u_dimension),u_zoom:new _.Uniform1f(h,d.u_zoom),u_unpack:new _.Uniform4f(h,d.u_unpack)}},line:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels)}},lineGradient:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_image:new _.Uniform1i(h,d.u_image),u_image_height:new _.Uniform1f(h,d.u_image_height)}},linePattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_texsize:new _.Uniform2f(h,d.u_texsize),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_image:new _.Uniform1i(h,d.u_image),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},lineSDF:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_patternscale_a:new _.Uniform2f(h,d.u_patternscale_a),u_patternscale_b:new _.Uniform2f(h,d.u_patternscale_b),u_sdfgamma:new _.Uniform1f(h,d.u_sdfgamma),u_image:new _.Uniform1i(h,d.u_image),u_tex_y_a:new _.Uniform1f(h,d.u_tex_y_a),u_tex_y_b:new _.Uniform1f(h,d.u_tex_y_b),u_mix:new _.Uniform1f(h,d.u_mix)}},raster:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_tl_parent:new _.Uniform2f(h,d.u_tl_parent),u_scale_parent:new _.Uniform1f(h,d.u_scale_parent),u_buffer_scale:new _.Uniform1f(h,d.u_buffer_scale),u_fade_t:new _.Uniform1f(h,d.u_fade_t),u_opacity:new _.Uniform1f(h,d.u_opacity),u_image0:new _.Uniform1i(h,d.u_image0),u_image1:new _.Uniform1i(h,d.u_image1),u_brightness_low:new _.Uniform1f(h,d.u_brightness_low),u_brightness_high:new _.Uniform1f(h,d.u_brightness_high),u_saturation_factor:new _.Uniform1f(h,d.u_saturation_factor),u_contrast_factor:new _.Uniform1f(h,d.u_contrast_factor),u_spin_weights:new _.Uniform3f(h,d.u_spin_weights)}},symbolIcon:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texture:new _.Uniform1i(h,d.u_texture)}},symbolSDF:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texture:new _.Uniform1i(h,d.u_texture),u_gamma_scale:new _.Uniform1f(h,d.u_gamma_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_is_halo:new _.Uniform1i(h,d.u_is_halo)}},symbolTextAndIcon:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texsize_icon:new _.Uniform2f(h,d.u_texsize_icon),u_texture:new _.Uniform1i(h,d.u_texture),u_texture_icon:new _.Uniform1i(h,d.u_texture_icon),u_gamma_scale:new _.Uniform1f(h,d.u_gamma_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_is_halo:new _.Uniform1i(h,d.u_is_halo)}},background:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_opacity:new _.Uniform1f(h,d.u_opacity),u_color:new _.UniformColor(h,d.u_color)}},backgroundPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_opacity:new _.Uniform1f(h,d.u_opacity),u_image:new _.Uniform1i(h,d.u_image),u_pattern_tl_a:new _.Uniform2f(h,d.u_pattern_tl_a),u_pattern_br_a:new _.Uniform2f(h,d.u_pattern_br_a),u_pattern_tl_b:new _.Uniform2f(h,d.u_pattern_tl_b),u_pattern_br_b:new _.Uniform2f(h,d.u_pattern_br_b),u_texsize:new _.Uniform2f(h,d.u_texsize),u_mix:new _.Uniform1f(h,d.u_mix),u_pattern_size_a:new _.Uniform2f(h,d.u_pattern_size_a),u_pattern_size_b:new _.Uniform2f(h,d.u_pattern_size_b),u_scale_a:new _.Uniform1f(h,d.u_scale_a),u_scale_b:new _.Uniform1f(h,d.u_scale_b),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_tile_units_to_pixels:new _.Uniform1f(h,d.u_tile_units_to_pixels)}}};function nl(h,d,p,g,S,w,C){for(var P=h.context,Z=P.gl,Y=h.useProgram("collisionBox"),ce=[],ge=0,_e=0,Fe=0;Fe0){var $t=_.create(),Nt=Ge;_.mul($t,we.placementInvProjMatrix,h.transform.glCoordMatrix),_.mul($t,$t,we.placementViewportMatrix),ce.push({circleArray:At,circleOffset:_e,transform:Nt,invTransform:$t}),_e=ge+=At.length/4}ct&&Y.draw(P,Z.LINES,xe.disabled,Re.disabled,h.colorModeForRenderPass(),lt.disabled,Qs(Ge,h.transform,Xe),p.id,ct.layoutVertexBuffer,ct.indexBuffer,ct.segments,null,h.transform.zoom,null,null,ct.collisionVertexBuffer)}}if(C&&ce.length){var tr=h.useProgram("collisionCircle"),mr=new _.StructArrayLayout2f1f2i16;mr.resize(4*ge),mr._trim();for(var Nr=0,Fr=0,an=ce;Fr=0&&(Pe[we.associatedIconIndex]={shiftedAnchor:mr,angle:Nr})}else Oa(we.numGlyphs,_e)}if(ce){Fe.clear();for(var an=h.icon.placedSymbolArray,In=0;In0){var C=_.browser.now(),P=(C-h.timeAdded)/w,Z=d?(C-d.timeAdded)/w:-1,Y=p.getSource(),ce=S.coveringZoomLevel({tileSize:Y.tileSize,roundZoom:Y.roundZoom}),ge=!d||Math.abs(d.tileID.overscaledZ-ce)>Math.abs(h.tileID.overscaledZ-ce),_e=ge&&h.refreshedUponExpiration?1:_.clamp(ge?P:1-Z,0,1);return h.refreshedUponExpiration&&P>=1&&(h.refreshedUponExpiration=!1),d?{opacity:1,mix:1-_e}:{opacity:_e,mix:0}}return{opacity:1,mix:0}}var xh=new _.Color(1,0,0,1),Df=new _.Color(0,1,0,1),ko=new _.Color(0,0,1,1),bh=new _.Color(1,0,1,1),ap=new _.Color(0,1,1,1);function kf(h,d,p,g){Oc(h,0,d+p/2,h.transform.width,p,g)}function Eh(h,d,p,g){Oc(h,d-p/2,0,p,h.transform.height,g)}function Oc(h,d,p,g,S,w){var C=h.context,P=C.gl;P.enable(P.SCISSOR_TEST),P.scissor(d*_.browser.devicePixelRatio,p*_.browser.devicePixelRatio,g*_.browser.devicePixelRatio,S*_.browser.devicePixelRatio),C.clear({color:w}),P.disable(P.SCISSOR_TEST)}function of(h,d,p){var g=h.context,S=g.gl,w=p.posMatrix,C=h.useProgram("debug"),P=xe.disabled,Z=Re.disabled,Y=h.colorModeForRenderPass();g.activeTexture.set(S.TEXTURE0),h.emptyTexture.bind(S.LINEAR,S.CLAMP_TO_EDGE),C.draw(g,S.LINE_STRIP,P,Z,Y,lt.disabled,Kl(w,_.Color.red),"$debug",h.debugBuffer,h.tileBorderIndexBuffer,h.debugSegments);var ce=d.getTileByID(p.key).latestRawTileData,ge=Math.floor((ce&&ce.byteLength||0)/1024),_e=d.getTile(p).tileSize,Fe=512/Math.min(_e,512)*(p.overscaledZ/h.transform.zoom)*.5,Pe=p.canonical.toString();p.overscaledZ!==p.canonical.z&&(Pe+=" => "+p.overscaledZ),function(Xe,we){Xe.initDebugOverlayCanvas();var Ge=Xe.debugOverlayCanvas,ct=Xe.context.gl,At=Xe.debugOverlayCanvas.getContext("2d");At.clearRect(0,0,Ge.width,Ge.height),At.shadowColor="white",At.shadowBlur=2,At.lineWidth=1.5,At.strokeStyle="white",At.textBaseline="top",At.font="bold 36px Open Sans, sans-serif",At.fillText(we,5,5),At.strokeText(we,5,5),Xe.debugOverlayTexture.update(Ge),Xe.debugOverlayTexture.bind(ct.LINEAR,ct.CLAMP_TO_EDGE)}(h,Pe+" "+ge+"kb"),C.draw(g,S.TRIANGLES,P,Z,Je.alphaBlended,lt.disabled,Kl(w,_.Color.transparent,Fe),"$debug",h.debugBuffer,h.quadTriangleIndexBuffer,h.debugSegments)}var il={symbol:function(h,d,p,g,S){if(h.renderPass==="translucent"){var w=Re.disabled,C=h.colorModeForRenderPass();p.layout.get("text-variable-anchor")&&function(P,Z,Y,ce,ge,_e,Fe){for(var Pe=Z.transform,Xe=ge==="map",we=_e==="map",Ge=0,ct=P;Ge256&&this.clearStencil(),p.setColorMode(Je.disabled),p.setDepthMode(xe.disabled);var S=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var w=0,C=d;w256&&this.clearStencil();var h=this.nextStencilID++,d=this.context.gl;return new Re({func:d.NOTEQUAL,mask:255},h,255,d.KEEP,d.KEEP,d.REPLACE)},pa.prototype.stencilModeForClipping=function(h){var d=this.context.gl;return new Re({func:d.EQUAL,mask:255},this._tileClippingMaskIDs[h.key],0,d.KEEP,d.KEEP,d.REPLACE)},pa.prototype.stencilConfigForOverlap=function(h){var d,p=this.context.gl,g=h.sort(function(Z,Y){return Y.overscaledZ-Z.overscaledZ}),S=g[g.length-1].overscaledZ,w=g[0].overscaledZ-S+1;if(w>1){this.currentStencilSource=void 0,this.nextStencilID+w>256&&this.clearStencil();for(var C={},P=0;P=0;this.currentLayer--){var At=this.style._layers[g[this.currentLayer]],$t=S[At.source],Nt=Y[At.source];this._renderTileClippingMasks(At,Nt),this.renderLayer(this,$t,At,Nt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?d.pop():null},pa.prototype.isPatternMissing=function(h){if(!h)return!1;if(!h.from||!h.to)return!0;var d=this.imageManager.getPattern(h.from.toString()),p=this.imageManager.getPattern(h.to.toString());return!d||!p},pa.prototype.useProgram=function(h,d){this.cache=this.cache||{};var p=""+h+(d?d.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[p]||(this.cache[p]=new ja(this.context,h,fu[h],d,ip[h],this._showOverdrawInspector)),this.cache[p]},pa.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},pa.prototype.setBaseState=function(){var h=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(h.FUNC_ADD)},pa.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=_.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new _.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},pa.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Ff=function(h,d){this.points=h,this.planes=d};Ff.fromInvProjectionMatrix=function(h,d,p){var g=Math.pow(2,p),S=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(C){return _.transformMat4([],C,h)}).map(function(C){return _.scale$1([],C,1/C[3]/d*g)}),w=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(C){var P=_.sub([],S[C[0]],S[C[1]]),Z=_.sub([],S[C[2]],S[C[1]]),Y=_.normalize([],_.cross([],P,Z)),ce=-_.dot(Y,S[C[1]]);return Y.concat(ce)});return new Ff(S,w)};var du=function(h,d){this.min=h,this.max=d,this.center=_.scale$2([],_.add([],this.min,this.max),.5)};du.prototype.quadrant=function(h){for(var d=[h%2==0,h<2],p=_.clone$2(this.min),g=_.clone$2(this.max),S=0;S=0;if(w===0)return 0;w!==d.length&&(p=!1)}if(p)return 2;for(var P=0;P<3;P++){for(var Z=Number.MAX_VALUE,Y=-Number.MAX_VALUE,ce=0;cethis.max[P]-this.min[P])return 0}return 1};var Rl=function(h,d,p,g){if(h===void 0&&(h=0),d===void 0&&(d=0),p===void 0&&(p=0),g===void 0&&(g=0),isNaN(h)||h<0||isNaN(d)||d<0||isNaN(p)||p<0||isNaN(g)||g<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=h,this.bottom=d,this.left=p,this.right=g};Rl.prototype.interpolate=function(h,d,p){return d.top!=null&&h.top!=null&&(this.top=_.number(h.top,d.top,p)),d.bottom!=null&&h.bottom!=null&&(this.bottom=_.number(h.bottom,d.bottom,p)),d.left!=null&&h.left!=null&&(this.left=_.number(h.left,d.left,p)),d.right!=null&&h.right!=null&&(this.right=_.number(h.right,d.right,p)),this},Rl.prototype.getCenter=function(h,d){var p=_.clamp((this.left+h-this.right)/2,0,h),g=_.clamp((this.top+d-this.bottom)/2,0,d);return new _.Point(p,g)},Rl.prototype.equals=function(h){return this.top===h.top&&this.bottom===h.bottom&&this.left===h.left&&this.right===h.right},Rl.prototype.clone=function(){return new Rl(this.top,this.bottom,this.left,this.right)},Rl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var ki=function(h,d,p,g,S){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=S===void 0||S,this._minZoom=h||0,this._maxZoom=d||22,this._minPitch=p==null?0:p,this._maxPitch=g==null?60:g,this.setMaxBounds(),this.width=0,this.height=0,this._center=new _.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Rl,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ca={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ki.prototype.clone=function(){var h=new ki(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return h.tileSize=this.tileSize,h.latRange=this.latRange,h.width=this.width,h.height=this.height,h._center=this._center,h.zoom=this.zoom,h.angle=this.angle,h._fov=this._fov,h._pitch=this._pitch,h._unmodified=this._unmodified,h._edgeInsets=this._edgeInsets.clone(),h._calcMatrices(),h},Ca.minZoom.get=function(){return this._minZoom},Ca.minZoom.set=function(h){this._minZoom!==h&&(this._minZoom=h,this.zoom=Math.max(this.zoom,h))},Ca.maxZoom.get=function(){return this._maxZoom},Ca.maxZoom.set=function(h){this._maxZoom!==h&&(this._maxZoom=h,this.zoom=Math.min(this.zoom,h))},Ca.minPitch.get=function(){return this._minPitch},Ca.minPitch.set=function(h){this._minPitch!==h&&(this._minPitch=h,this.pitch=Math.max(this.pitch,h))},Ca.maxPitch.get=function(){return this._maxPitch},Ca.maxPitch.set=function(h){this._maxPitch!==h&&(this._maxPitch=h,this.pitch=Math.min(this.pitch,h))},Ca.renderWorldCopies.get=function(){return this._renderWorldCopies},Ca.renderWorldCopies.set=function(h){h===void 0?h=!0:h===null&&(h=!1),this._renderWorldCopies=h},Ca.worldSize.get=function(){return this.tileSize*this.scale},Ca.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ca.size.get=function(){return new _.Point(this.width,this.height)},Ca.bearing.get=function(){return-this.angle/Math.PI*180},Ca.bearing.set=function(h){var d=-_.wrap(h,-180,180)*Math.PI/180;this.angle!==d&&(this._unmodified=!1,this.angle=d,this._calcMatrices(),this.rotationMatrix=_.create$2(),_.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ca.pitch.get=function(){return this._pitch/Math.PI*180},Ca.pitch.set=function(h){var d=_.clamp(h,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==d&&(this._unmodified=!1,this._pitch=d,this._calcMatrices())},Ca.fov.get=function(){return this._fov/Math.PI*180},Ca.fov.set=function(h){h=Math.max(.01,Math.min(60,h)),this._fov!==h&&(this._unmodified=!1,this._fov=h/180*Math.PI,this._calcMatrices())},Ca.zoom.get=function(){return this._zoom},Ca.zoom.set=function(h){var d=Math.min(Math.max(h,this.minZoom),this.maxZoom);this._zoom!==d&&(this._unmodified=!1,this._zoom=d,this.scale=this.zoomScale(d),this.tileZoom=Math.floor(d),this.zoomFraction=d-this.tileZoom,this._constrain(),this._calcMatrices())},Ca.center.get=function(){return this._center},Ca.center.set=function(h){h.lat===this._center.lat&&h.lng===this._center.lng||(this._unmodified=!1,this._center=h,this._constrain(),this._calcMatrices())},Ca.padding.get=function(){return this._edgeInsets.toJSON()},Ca.padding.set=function(h){this._edgeInsets.equals(h)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,h,1),this._calcMatrices())},Ca.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},ki.prototype.isPaddingEqual=function(h){return this._edgeInsets.equals(h)},ki.prototype.interpolatePadding=function(h,d,p){this._unmodified=!1,this._edgeInsets.interpolate(h,d,p),this._constrain(),this._calcMatrices()},ki.prototype.coveringZoomLevel=function(h){var d=(h.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/h.tileSize));return Math.max(0,d)},ki.prototype.getVisibleUnwrappedCoordinates=function(h){var d=[new _.UnwrappedTileID(0,h)];if(this._renderWorldCopies)for(var p=this.pointCoordinate(new _.Point(0,0)),g=this.pointCoordinate(new _.Point(this.width,0)),S=this.pointCoordinate(new _.Point(this.width,this.height)),w=this.pointCoordinate(new _.Point(0,this.height)),C=Math.floor(Math.min(p.x,g.x,S.x,w.x)),P=Math.floor(Math.max(p.x,g.x,S.x,w.x)),Z=C-1;Z<=P+1;Z++)Z!==0&&d.push(new _.UnwrappedTileID(Z,h));return d},ki.prototype.coveringTiles=function(h){var d=this.coveringZoomLevel(h),p=d;if(h.minzoom!==void 0&&dh.maxzoom&&(d=h.maxzoom);var g=_.MercatorCoordinate.fromLngLat(this.center),S=Math.pow(2,d),w=[S*g.x,S*g.y,0],C=Ff.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,d),P=h.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(P=d);var Z=function(Fr){return{aabb:new du([Fr*S,0,0],[(Fr+1)*S,S,0]),zoom:0,x:0,y:0,wrap:Fr,fullyVisible:!1}},Y=[],ce=[],ge=d,_e=h.reparseOverscaled?p:d;if(this._renderWorldCopies)for(var Fe=1;Fe<=3;Fe++)Y.push(Z(-Fe)),Y.push(Z(Fe));for(Y.push(Z(0));Y.length>0;){var Pe=Y.pop(),Xe=Pe.x,we=Pe.y,Ge=Pe.fullyVisible;if(!Ge){var ct=Pe.aabb.intersects(C);if(ct===0)continue;Ge=ct===2}var At=Pe.aabb.distanceX(w),$t=Pe.aabb.distanceY(w),Nt=Math.max(Math.abs(At),Math.abs($t));if(Pe.zoom===ge||Nt>3+(1<=P)ce.push({tileID:new _.OverscaledTileID(Pe.zoom===ge?_e:Pe.zoom,Pe.wrap,Pe.zoom,Xe,we),distanceSq:_.sqrLen([w[0]-.5-Xe,w[1]-.5-we])});else for(var tr=0;tr<4;tr++){var mr=(Xe<<1)+tr%2,Nr=(we<<1)+(tr>>1);Y.push({aabb:Pe.aabb.quadrant(tr),zoom:Pe.zoom+1,x:mr,y:Nr,wrap:Pe.wrap,fullyVisible:Ge})}}return ce.sort(function(Fr,an){return Fr.distanceSq-an.distanceSq}).map(function(Fr){return Fr.tileID})},ki.prototype.resize=function(h,d){this.width=h,this.height=d,this.pixelsToGLUnits=[2/h,-2/d],this._constrain(),this._calcMatrices()},Ca.unmodified.get=function(){return this._unmodified},ki.prototype.zoomScale=function(h){return Math.pow(2,h)},ki.prototype.scaleZoom=function(h){return Math.log(h)/Math.LN2},ki.prototype.project=function(h){var d=_.clamp(h.lat,-this.maxValidLatitude,this.maxValidLatitude);return new _.Point(_.mercatorXfromLng(h.lng)*this.worldSize,_.mercatorYfromLat(d)*this.worldSize)},ki.prototype.unproject=function(h){return new _.MercatorCoordinate(h.x/this.worldSize,h.y/this.worldSize).toLngLat()},Ca.point.get=function(){return this.project(this.center)},ki.prototype.setLocationAtPoint=function(h,d){var p=this.pointCoordinate(d),g=this.pointCoordinate(this.centerPoint),S=this.locationCoordinate(h),w=new _.MercatorCoordinate(S.x-(p.x-g.x),S.y-(p.y-g.y));this.center=this.coordinateLocation(w),this._renderWorldCopies&&(this.center=this.center.wrap())},ki.prototype.locationPoint=function(h){return this.coordinatePoint(this.locationCoordinate(h))},ki.prototype.pointLocation=function(h){return this.coordinateLocation(this.pointCoordinate(h))},ki.prototype.locationCoordinate=function(h){return _.MercatorCoordinate.fromLngLat(h)},ki.prototype.coordinateLocation=function(h){return h.toLngLat()},ki.prototype.pointCoordinate=function(h){var d=[h.x,h.y,0,1],p=[h.x,h.y,1,1];_.transformMat4(d,d,this.pixelMatrixInverse),_.transformMat4(p,p,this.pixelMatrixInverse);var g=d[3],S=p[3],w=d[1]/g,C=p[1]/S,P=d[2]/g,Z=p[2]/S,Y=P===Z?0:(0-P)/(Z-P);return new _.MercatorCoordinate(_.number(d[0]/g,p[0]/S,Y)/this.worldSize,_.number(w,C,Y)/this.worldSize)},ki.prototype.coordinatePoint=function(h){var d=[h.x*this.worldSize,h.y*this.worldSize,0,1];return _.transformMat4(d,d,this.pixelMatrix),new _.Point(d[0]/d[3],d[1]/d[3])},ki.prototype.getBounds=function(){return new _.LngLatBounds().extend(this.pointLocation(new _.Point(0,0))).extend(this.pointLocation(new _.Point(this.width,0))).extend(this.pointLocation(new _.Point(this.width,this.height))).extend(this.pointLocation(new _.Point(0,this.height)))},ki.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new _.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},ki.prototype.setMaxBounds=function(h){h?(this.lngRange=[h.getWest(),h.getEast()],this.latRange=[h.getSouth(),h.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ki.prototype.calculatePosMatrix=function(h,d){d===void 0&&(d=!1);var p=h.key,g=d?this._alignedPosMatrixCache:this._posMatrixCache;if(g[p])return g[p];var S=h.canonical,w=this.worldSize/this.zoomScale(S.z),C=S.x+Math.pow(2,S.z)*h.wrap,P=_.identity(new Float64Array(16));return _.translate(P,P,[C*w,S.y*w,0]),_.scale(P,P,[w/_.EXTENT,w/_.EXTENT,1]),_.multiply(P,d?this.alignedProjMatrix:this.projMatrix,P),g[p]=new Float32Array(P),g[p]},ki.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ki.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var h,d,p,g,S=-90,w=90,C=-180,P=180,Z=this.size,Y=this._unmodified;if(this.latRange){var ce=this.latRange;S=_.mercatorYfromLat(ce[1])*this.worldSize,h=(w=_.mercatorYfromLat(ce[0])*this.worldSize)-Sw&&(g=w-Xe)}if(this.lngRange){var we=_e.x,Ge=Z.x/2;we-GeP&&(p=P-Ge)}p===void 0&&g===void 0||(this.center=this.unproject(new _.Point(p!==void 0?p:_e.x,g!==void 0?g:_e.y))),this._unmodified=Y,this._constraining=!1}},ki.prototype._calcMatrices=function(){if(this.height){var h=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var d=Math.PI/2+this._pitch,p=this._fov*(.5+h.y/this.height),g=Math.sin(p)*this.cameraToCenterDistance/Math.sin(_.clamp(Math.PI-d-p,.01,Math.PI-.01)),S=this.point,w=S.x,C=S.y,P=1.01*(Math.cos(Math.PI/2-this._pitch)*g+this.cameraToCenterDistance),Z=this.height/50,Y=new Float64Array(16);_.perspective(Y,this._fov,this.width/this.height,Z,P),Y[8]=2*-h.x/this.width,Y[9]=2*h.y/this.height,_.scale(Y,Y,[1,-1,1]),_.translate(Y,Y,[0,0,-this.cameraToCenterDistance]),_.rotateX(Y,Y,this._pitch),_.rotateZ(Y,Y,this.angle),_.translate(Y,Y,[-w,-C,0]),this.mercatorMatrix=_.scale([],Y,[this.worldSize,this.worldSize,this.worldSize]),_.scale(Y,Y,[1,1,_.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Y,this.invProjMatrix=_.invert([],this.projMatrix);var ce=this.width%2/2,ge=this.height%2/2,_e=Math.cos(this.angle),Fe=Math.sin(this.angle),Pe=w-Math.round(w)+_e*ce+Fe*ge,Xe=C-Math.round(C)+_e*ge+Fe*ce,we=new Float64Array(Y);if(_.translate(we,we,[Pe>.5?Pe-1:Pe,Xe>.5?Xe-1:Xe,0]),this.alignedProjMatrix=we,Y=_.create(),_.scale(Y,Y,[this.width/2,-this.height/2,1]),_.translate(Y,Y,[1,-1,0]),this.labelPlaneMatrix=Y,Y=_.create(),_.scale(Y,Y,[1,-1,1]),_.translate(Y,Y,[-1,-1,0]),_.scale(Y,Y,[2/this.width,2/this.height,1]),this.glCoordMatrix=Y,this.pixelMatrix=_.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(Y=_.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=Y,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ki.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var h=this.pointCoordinate(new _.Point(0,0)),d=[h.x*this.worldSize,h.y*this.worldSize,0,1];return _.transformMat4(d,d,this.pixelMatrix)[3]/this.cameraToCenterDistance},ki.prototype.getCameraPoint=function(){var h=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new _.Point(0,h))},ki.prototype.getCameraQueryGeometry=function(h){var d=this.getCameraPoint();if(h.length===1)return[h[0],d];for(var p=d.x,g=d.y,S=d.x,w=d.y,C=0,P=h;C=3&&!h.some(function(p){return isNaN(p)})){var d=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(h[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+h[2],+h[1]],zoom:+h[0],bearing:d,pitch:+(h[4]||0)}),!0}return!1},$s.prototype._updateHashUnthrottled=function(){var h=_.window.location.href.replace(/(#.+)?$/,this.getHashString());try{_.window.history.replaceState(_.window.history.state,null,h)}catch(d){}};var Bf={linearity:.3,easing:_.bezier(0,0,.3,1)},Ds=_.extend({deceleration:2500,maxSpeed:1400},Bf),sf=_.extend({deceleration:20,maxSpeed:1400},Bf),op=_.extend({deceleration:1e3,maxSpeed:360},Bf),Sh=_.extend({deceleration:1e3,maxSpeed:90},Bf),Lf=function(h){this._map=h,this.clear()};function Ml(h,d){(!h.duration||h.duration0&&d-h[0].time>160;)h.shift()},Lf.prototype._onMoveEnd=function(h){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var d={zoom:0,bearing:0,pitch:0,pan:new _.Point(0,0),pinchAround:void 0,around:void 0},p=0,g=this._inertiaBuffer;p=this._clickTolerance||this._map.fire(new Ha(h.type,this._map,h))},qa.prototype.dblclick=function(h){return this._firePreventable(new Ha(h.type,this._map,h))},qa.prototype.mouseover=function(h){this._map.fire(new Ha(h.type,this._map,h))},qa.prototype.mouseout=function(h){this._map.fire(new Ha(h.type,this._map,h))},qa.prototype.touchstart=function(h){return this._firePreventable(new al(h.type,this._map,h))},qa.prototype.touchmove=function(h){this._map.fire(new al(h.type,this._map,h))},qa.prototype.touchend=function(h){this._map.fire(new al(h.type,this._map,h))},qa.prototype.touchcancel=function(h){this._map.fire(new al(h.type,this._map,h))},qa.prototype._firePreventable=function(h){if(this._map.fire(h),h.defaultPrevented)return{}},qa.prototype.isEnabled=function(){return!0},qa.prototype.isActive=function(){return!1},qa.prototype.enable=function(){},qa.prototype.disable=function(){};var vn=function(h){this._map=h};vn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},vn.prototype.mousemove=function(h){this._map.fire(new Ha(h.type,this._map,h))},vn.prototype.mousedown=function(){this._delayContextMenu=!0},vn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ha("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},vn.prototype.contextmenu=function(h){this._delayContextMenu?this._contextMenuEvent=h:this._map.fire(new Ha(h.type,this._map,h)),this._map.listens("contextmenu")&&h.preventDefault()},vn.prototype.isEnabled=function(){return!0},vn.prototype.isActive=function(){return!1},vn.prototype.enable=function(){},vn.prototype.disable=function(){};var ks=function(h,d){this._map=h,this._el=h.getCanvasContainer(),this._container=h.getContainer(),this._clickTolerance=d.clickTolerance||1};function uf(h,d){for(var p={},g=0;gthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=h.timeStamp),p.length===this.numTouches&&(this.centroid=function(g){for(var S=new _.Point(0,0),w=0,C=g;w30)&&(this.aborted=!0)}}},rc.prototype.touchend=function(h,d,p){if((!this.centroid||h.timeStamp-this.startTime>500)&&(this.aborted=!0),p.length===0){var g=!this.aborted&&this.centroid;if(this.reset(),g)return g}};var us=function(h){this.singleTap=new rc(h),this.numTaps=h.numTaps,this.reset()};us.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},us.prototype.touchstart=function(h,d,p){this.singleTap.touchstart(h,d,p)},us.prototype.touchmove=function(h,d,p){this.singleTap.touchmove(h,d,p)},us.prototype.touchend=function(h,d,p){var g=this.singleTap.touchend(h,d,p);if(g){var S=h.timeStamp-this.lastTime<500,w=!this.lastTap||this.lastTap.dist(g)<30;if(S&&w||this.reset(),this.count++,this.lastTime=h.timeStamp,this.lastTap=g,this.count===this.numTaps)return this.reset(),g}};var ga=function(){this._zoomIn=new us({numTouches:1,numTaps:2}),this._zoomOut=new us({numTouches:2,numTaps:1}),this.reset()};ga.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},ga.prototype.touchstart=function(h,d,p){this._zoomIn.touchstart(h,d,p),this._zoomOut.touchstart(h,d,p)},ga.prototype.touchmove=function(h,d,p){this._zoomIn.touchmove(h,d,p),this._zoomOut.touchmove(h,d,p)},ga.prototype.touchend=function(h,d,p){var g=this,S=this._zoomIn.touchend(h,d,p),w=this._zoomOut.touchend(h,d,p);return S?(this._active=!0,h.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(C){return C.easeTo({duration:300,zoom:C.getZoom()+1,around:C.unproject(S)},{originalEvent:h})}}):w?(this._active=!0,h.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(C){return C.easeTo({duration:300,zoom:C.getZoom()-1,around:C.unproject(w)},{originalEvent:h})}}):void 0},ga.prototype.touchcancel=function(){this.reset()},ga.prototype.enable=function(){this._enabled=!0},ga.prototype.disable=function(){this._enabled=!1,this.reset()},ga.prototype.isEnabled=function(){return this._enabled},ga.prototype.isActive=function(){return this._active};var Th={0:1,2:2},Yr=function(h){this.reset(),this._clickTolerance=h.clickTolerance||1};Yr.prototype.blur=function(){this.reset()},Yr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Yr.prototype._correctButton=function(h,d){return!1},Yr.prototype._move=function(h,d){return{}},Yr.prototype.mousedown=function(h,d){if(!this._lastPoint){var p=U.mouseButton(h);this._correctButton(h,p)&&(this._lastPoint=d,this._eventButton=p)}},Yr.prototype.mousemoveWindow=function(h,d){var p=this._lastPoint;if(p){if(h.preventDefault(),function(g,S){var w=Th[S];return g.buttons===void 0||(g.buttons&w)!==w}(h,this._eventButton))this.reset();else if(this._moved||!(d.dist(p)0&&(this._active=!0);var g=uf(p,d),S=new _.Point(0,0),w=new _.Point(0,0),C=0;for(var P in g){var Z=g[P],Y=this._touches[P];Y&&(S._add(Z),w._add(Z.sub(Y)),C++,g[P]=Z)}if(this._touches=g,!(CMath.abs(h.x)}var lf=function(h){function d(){h.apply(this,arguments)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.reset=function(){h.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},d.prototype._start=function(p){this._lastPoints=p,Il(p[0].sub(p[1]))&&(this._valid=!1)},d.prototype._move=function(p,g,S){var w=p[0].sub(this._lastPoints[0]),C=p[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(w,C,S.timeStamp),this._valid)return this._lastPoints=p,this._active=!0,{pitchDelta:(w.y+C.y)/2*-.5}},d.prototype.gestureBeginsVertically=function(p,g,S){if(this._valid!==void 0)return this._valid;var w=p.mag()>=2,C=g.mag()>=2;if(w||C){if(!w||!C)return this._firstMove===void 0&&(this._firstMove=S),S-this._firstMove<100&&void 0;var P=p.y>0==g.y>0;return Il(p)&&Il(g)&&P}},d}(Fs),up={panStep:100,bearingStep:15,pitchStep:10},Ct=function(){var h=up;this._panStep=h.panStep,this._bearingStep=h.bearingStep,this._pitchStep=h.pitchStep,this._rotationDisabled=!1};function Ie(h){return h*(2-h)}Ct.prototype.blur=function(){this.reset()},Ct.prototype.reset=function(){this._active=!1},Ct.prototype.keydown=function(h){var d=this;if(!(h.altKey||h.ctrlKey||h.metaKey)){var p=0,g=0,S=0,w=0,C=0;switch(h.keyCode){case 61:case 107:case 171:case 187:p=1;break;case 189:case 109:case 173:p=-1;break;case 37:h.shiftKey?g=-1:(h.preventDefault(),w=-1);break;case 39:h.shiftKey?g=1:(h.preventDefault(),w=1);break;case 38:h.shiftKey?S=1:(h.preventDefault(),C=-1);break;case 40:h.shiftKey?S=-1:(h.preventDefault(),C=1);break;default:return}return this._rotationDisabled&&(g=0,S=0),{cameraAnimation:function(P){var Z=P.getZoom();P.easeTo({duration:300,easeId:"keyboardHandler",easing:Ie,zoom:p?Math.round(Z)+p*(h.shiftKey?2:1):Z,bearing:P.getBearing()+g*d._bearingStep,pitch:P.getPitch()+S*d._pitchStep,offset:[-w*d._panStep,-C*d._panStep],center:P.getCenter()},{originalEvent:h})}}}},Ct.prototype.enable=function(){this._enabled=!0},Ct.prototype.disable=function(){this._enabled=!1,this.reset()},Ct.prototype.isEnabled=function(){return this._enabled},Ct.prototype.isActive=function(){return this._active},Ct.prototype.disableRotation=function(){this._rotationDisabled=!0},Ct.prototype.enableRotation=function(){this._rotationDisabled=!1};var B=function(h,d){this._map=h,this._el=h.getCanvasContainer(),this._handler=d,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,_.bindAll(["_onTimeout"],this)};B.prototype.setZoomRate=function(h){this._defaultZoomRate=h},B.prototype.setWheelZoomRate=function(h){this._wheelZoomRate=h},B.prototype.isEnabled=function(){return!!this._enabled},B.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},B.prototype.isZooming=function(){return!!this._zooming},B.prototype.enable=function(h){this.isEnabled()||(this._enabled=!0,this._aroundCenter=h&&h.around==="center")},B.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},B.prototype.wheel=function(h){if(this.isEnabled()){var d=h.deltaMode===_.window.WheelEvent.DOM_DELTA_LINE?40*h.deltaY:h.deltaY,p=_.browser.now(),g=p-(this._lastWheelEventTime||0);this._lastWheelEventTime=p,d!==0&&d%4.000244140625==0?this._type="wheel":d!==0&&Math.abs(d)<4?this._type="trackpad":g>400?(this._type=null,this._lastValue=d,this._timeout=setTimeout(this._onTimeout,40,h)):this._type||(this._type=Math.abs(g*d)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,d+=this._lastValue)),h.shiftKey&&d&&(d/=4),this._type&&(this._lastWheelEvent=h,this._delta-=d,this._active||this._start(h)),h.preventDefault()}},B.prototype._onTimeout=function(h){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(h)},B.prototype._start=function(h){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var d=U.mousePos(this._el,h);this._around=_.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(d)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},B.prototype.renderFrame=function(){var h=this;if(this._frameId&&(this._frameId=null,this.isActive())){var d=this._map.transform;if(this._delta!==0){var p=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,g=2/(1+Math.exp(-Math.abs(this._delta*p)));this._delta<0&&g!==0&&(g=1/g);var S=typeof this._targetZoom=="number"?d.zoomScale(this._targetZoom):d.scale;this._targetZoom=Math.min(d.maxZoom,Math.max(d.minZoom,d.scaleZoom(S*g))),this._type==="wheel"&&(this._startZoom=d.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var w,C=typeof this._targetZoom=="number"?this._targetZoom:d.zoom,P=this._startZoom,Z=this._easing,Y=!1;if(this._type==="wheel"&&P&&Z){var ce=Math.min((_.browser.now()-this._lastWheelEventTime)/200,1),ge=Z(ce);w=_.number(P,C,ge),ce<1?this._frameId||(this._frameId=!0):Y=!0}else w=C,Y=!0;return this._active=!0,Y&&(this._active=!1,this._finishTimeout=setTimeout(function(){h._zooming=!1,h._handler._triggerRenderFrame(),delete h._targetZoom,delete h._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Y,zoomDelta:w-d.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},B.prototype._smoothOutEasing=function(h){var d=_.ease;if(this._prevEase){var p=this._prevEase,g=(_.browser.now()-p.start)/p.duration,S=p.easing(g+.01)-p.easing(g),w=.27/Math.sqrt(S*S+1e-4)*.01,C=Math.sqrt(.0729-w*w);d=_.bezier(w,C,.25,1)}return this._prevEase={start:_.browser.now(),duration:h,easing:d},d},B.prototype.blur=function(){this.reset()},B.prototype.reset=function(){this._active=!1};var Ys=function(h,d){this._clickZoom=h,this._tapZoom=d};Ys.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Ys.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Ys.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Ys.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var me=function(){this.reset()};me.prototype.reset=function(){this._active=!1},me.prototype.blur=function(){this.reset()},me.prototype.dblclick=function(h,d){return h.preventDefault(),{cameraAnimation:function(p){p.easeTo({duration:300,zoom:p.getZoom()+(h.shiftKey?-1:1),around:p.unproject(d)},{originalEvent:h})}}},me.prototype.enable=function(){this._enabled=!0},me.prototype.disable=function(){this._enabled=!1,this.reset()},me.prototype.isEnabled=function(){return this._enabled},me.prototype.isActive=function(){return this._active};var Bo=function(){this._tap=new us({numTouches:1,numTaps:1}),this.reset()};Bo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Bo.prototype.touchstart=function(h,d,p){this._swipePoint||(this._tapTime&&h.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?p.length>0&&(this._swipePoint=d[0],this._swipeTouch=p[0].identifier):this._tap.touchstart(h,d,p))},Bo.prototype.touchmove=function(h,d,p){if(this._tapTime){if(this._swipePoint){if(p[0].identifier!==this._swipeTouch)return;var g=d[0],S=g.y-this._swipePoint.y;return this._swipePoint=g,h.preventDefault(),this._active=!0,{zoomDelta:S/128}}}else this._tap.touchmove(h,d,p)},Bo.prototype.touchend=function(h,d,p){this._tapTime?this._swipePoint&&p.length===0&&this.reset():this._tap.touchend(h,d,p)&&(this._tapTime=h.timeStamp)},Bo.prototype.touchcancel=function(){this.reset()},Bo.prototype.enable=function(){this._enabled=!0},Bo.prototype.disable=function(){this._enabled=!1,this.reset()},Bo.prototype.isEnabled=function(){return this._enabled},Bo.prototype.isActive=function(){return this._active};var no=function(h,d,p){this._el=h,this._mousePan=d,this._touchPan=p};no.prototype.enable=function(h){this._inertiaOptions=h||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},no.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},no.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},no.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var vu=function(h,d,p){this._pitchWithRotate=h.pitchWithRotate,this._mouseRotate=d,this._mousePitch=p};vu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},vu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},vu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},vu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var bs=function(h,d,p,g){this._el=h,this._touchZoom=d,this._touchRotate=p,this._tapDragZoom=g,this._rotationDisabled=!1,this._enabled=!0};bs.prototype.enable=function(h){this._touchZoom.enable(h),this._rotationDisabled||this._touchRotate.enable(h),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},bs.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},bs.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},bs.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},bs.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},bs.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Da=function(h){return h.zoom||h.drag||h.pitch||h.rotate},nc=function(h){function d(){h.apply(this,arguments)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d}(_.Event);function On(h){return h.panDelta&&h.panDelta.mag()||h.zoomDelta||h.bearingDelta||h.pitchDelta}var gn=function(h,d){this._map=h,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Lf(h),this._bearingSnap=d.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(d),_.bindAll(["handleEvent","handleWindowEvent"],this);var p=this._el;this._listeners=[[p,"touchstart",{passive:!0}],[p,"touchmove",{passive:!1}],[p,"touchend",void 0],[p,"touchcancel",void 0],[p,"mousedown",void 0],[p,"mousemove",void 0],[p,"mouseup",void 0],[_.window.document,"mousemove",{capture:!0}],[_.window.document,"mouseup",void 0],[p,"mouseover",void 0],[p,"mouseout",void 0],[p,"dblclick",void 0],[p,"click",void 0],[p,"keydown",{capture:!1}],[p,"keyup",void 0],[p,"wheel",{passive:!1}],[p,"contextmenu",void 0],[_.window,"blur",void 0]];for(var g=0,S=this._listeners;gC?Math.min(2,tr):Math.max(.5,tr),In=Math.pow(an,1-Nr),Nn=w.unproject($t.add(Nt.mult(Nr*In)).mult(Fr));w.setLocationAtPoint(w.renderWorldCopies?Nn.wrap():Nn,Xe)}S._fireMoveEvents(g)},function(Nr){S._afterEase(g,Nr)},p),this},d.prototype._prepareEase=function(p,g,S){S===void 0&&(S={}),this._moving=!0,g||S.moving||this.fire(new _.Event("movestart",p)),this._zooming&&!S.zooming&&this.fire(new _.Event("zoomstart",p)),this._rotating&&!S.rotating&&this.fire(new _.Event("rotatestart",p)),this._pitching&&!S.pitching&&this.fire(new _.Event("pitchstart",p))},d.prototype._fireMoveEvents=function(p){this.fire(new _.Event("move",p)),this._zooming&&this.fire(new _.Event("zoom",p)),this._rotating&&this.fire(new _.Event("rotate",p)),this._pitching&&this.fire(new _.Event("pitch",p))},d.prototype._afterEase=function(p,g){if(!this._easeId||!g||this._easeId!==g){delete this._easeId;var S=this._zooming,w=this._rotating,C=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,S&&this.fire(new _.Event("zoomend",p)),w&&this.fire(new _.Event("rotateend",p)),C&&this.fire(new _.Event("pitchend",p)),this.fire(new _.Event("moveend",p))}},d.prototype.flyTo=function(p,g){var S=this;if(!p.essential&&_.browser.prefersReducedMotion){var w=_.pick(p,["center","zoom","bearing","pitch","around"]);return this.jumpTo(w,g)}this.stop(),p=_.extend({offset:[0,0],speed:1.2,curve:1.42,easing:_.ease},p);var C=this.transform,P=this.getZoom(),Z=this.getBearing(),Y=this.getPitch(),ce=this.getPadding(),ge="zoom"in p?_.clamp(+p.zoom,C.minZoom,C.maxZoom):P,_e="bearing"in p?this._normalizeBearing(p.bearing,Z):Z,Fe="pitch"in p?+p.pitch:Y,Pe="padding"in p?p.padding:C.padding,Xe=C.zoomScale(ge-P),we=_.Point.convert(p.offset),Ge=C.centerPoint.add(we),ct=C.pointLocation(Ge),At=_.LngLat.convert(p.center||ct);this._normalizeCenter(At);var $t=C.project(ct),Nt=C.project(At).sub($t),tr=p.curve,mr=Math.max(C.width,C.height),Nr=mr/Xe,Fr=Nt.mag();if("minZoom"in p){var an=_.clamp(Math.min(p.minZoom,P,ge),C.minZoom,C.maxZoom),In=mr/C.zoomScale(an-P);tr=Math.sqrt(In/Fr*2)}var Nn=tr*tr;function Un(qn){var $n=(Nr*Nr-mr*mr+(qn?-1:1)*Nn*Nn*Fr*Fr)/(2*(qn?Nr:mr)*Nn*Fr);return Math.log(Math.sqrt($n*$n+1)-$n)}function ji(qn){return(Math.exp(qn)-Math.exp(-qn))/2}function hn(qn){return(Math.exp(qn)+Math.exp(-qn))/2}var Kn=Un(0),_i=function(qn){return hn(Kn)/hn(Kn+tr*qn)},ti=function(qn){return mr*((hn(Kn)*(ji($n=Kn+tr*qn)/hn($n))-ji(Kn))/Nn)/Fr;var $n},Xn=(Un(1)-Kn)/tr;if(Math.abs(Fr)<1e-6||!isFinite(Xn)){if(Math.abs(mr-Nr)<1e-6)return this.easeTo(p,g);var pi=Nrp.maxDuration&&(p.duration=0),this._zooming=!0,this._rotating=Z!==_e,this._pitching=Fe!==Y,this._padding=!C.isPaddingEqual(Pe),this._prepareEase(g,!1),this._ease(function(qn){var $n=qn*Xn,wo=1/_i($n);C.zoom=qn===1?ge:P+C.scaleZoom(wo),S._rotating&&(C.bearing=_.number(Z,_e,qn)),S._pitching&&(C.pitch=_.number(Y,Fe,qn)),S._padding&&(C.interpolatePadding(ce,Pe,qn),Ge=C.centerPoint.add(we));var Na=qn===1?At:C.unproject($t.add(Nt.mult(ti($n))).mult(wo));C.setLocationAtPoint(C.renderWorldCopies?Na.wrap():Na,Ge),S._fireMoveEvents(g)},function(){return S._afterEase(g)},p),this},d.prototype.isEasing=function(){return!!this._easeFrameId},d.prototype.stop=function(){return this._stop()},d.prototype._stop=function(p,g){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var S=this._onEaseEnd;delete this._onEaseEnd,S.call(this,g)}if(!p){var w=this.handlers;w&&w.stop(!1)}return this},d.prototype._ease=function(p,g,S){S.animate===!1||S.duration===0?(p(1),g()):(this._easeStart=_.browser.now(),this._easeOptions=S,this._onEaseFrame=p,this._onEaseEnd=g,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},d.prototype._renderFrameCallback=function(){var p=Math.min((_.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(p)),p<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},d.prototype._normalizeBearing=function(p,g){p=_.wrap(p,-180,180);var S=Math.abs(p-g);return Math.abs(p-360-g)180?-360:S<-180?360:0}},d}(_.Evented),qo=function(h){h===void 0&&(h={}),this.options=h,_.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};qo.prototype.getDefaultPosition=function(){return"bottom-right"},qo.prototype.onAdd=function(h){var d=this.options&&this.options.compact;return this._map=h,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=U.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=U.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),d&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),d===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},qo.prototype.onRemove=function(){U.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},qo.prototype._setElementTitle=function(h,d){var p=this._map._getUIString("AttributionControl."+d);h.title=p,h.setAttribute("aria-label",p)},qo.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},qo.prototype._updateEditLink=function(){var h=this._editLink;h||(h=this._editLink=this._container.querySelector(".mapbox-improve-map"));var d=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||_.config.ACCESS_TOKEN}];if(h){var p=d.reduce(function(g,S,w){return S.value&&(g+=S.key+"="+S.value+(w=0)return!1;return!0})).join(" | ");C!==this._attribHTML&&(this._attribHTML=C,h.length?(this._innerContainer.innerHTML=C,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},qo.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var mu=function(){_.bindAll(["_updateLogo"],this),_.bindAll(["_updateCompact"],this)};mu.prototype.onAdd=function(h){this._map=h,this._container=U.create("div","mapboxgl-ctrl");var d=U.create("a","mapboxgl-ctrl-logo");return d.target="_blank",d.rel="noopener nofollow",d.href="https://www.mapbox.com/",d.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),d.setAttribute("rel","noopener nofollow"),this._container.appendChild(d),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},mu.prototype.onRemove=function(){U.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},mu.prototype.getDefaultPosition=function(){return"bottom-left"},mu.prototype._updateLogo=function(h){h&&h.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},mu.prototype._logoRequired=function(){if(this._map.style){var h=this._map.style.sourceCaches;for(var d in h)if(h[d].getSource().mapbox_logo)return!0;return!1}},mu.prototype._updateCompact=function(){var h=this._container.children;if(h.length){var d=h[0];this._map.getCanvasContainer().offsetWidth<250?d.classList.add("mapboxgl-compact"):d.classList.remove("mapboxgl-compact")}};var ka=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};ka.prototype.add=function(h){var d=++this._id;return this._queue.push({callback:h,id:d,cancelled:!1}),d},ka.prototype.remove=function(h){for(var d=this._currentlyRunning,p=0,g=d?this._queue.concat(d):this._queue;pg.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(g.minPitch!=null&&g.maxPitch!=null&&g.minPitch>g.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(g.minPitch!=null&&g.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(g.maxPitch!=null&&g.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var w=new ki(g.minZoom,g.maxZoom,g.minPitch,g.maxPitch,g.renderWorldCopies);if(h.call(this,w,g),this._interactive=g.interactive,this._maxTileCacheSize=g.maxTileCacheSize,this._failIfMajorPerformanceCaveat=g.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=g.preserveDrawingBuffer,this._antialias=g.antialias,this._trackResize=g.trackResize,this._bearingSnap=g.bearingSnap,this._refreshExpiredTiles=g.refreshExpiredTiles,this._fadeDuration=g.fadeDuration,this._crossSourceCollisions=g.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=g.collectResourceTiming,this._renderTaskQueue=new ka,this._controls=[],this._mapId=_.uniqueId(),this._locale=_.extend({},Ls,g.locale),this._clickTolerance=g.clickTolerance,this._requestManager=new _.RequestManager(g.transformRequest,g.accessToken),typeof g.container=="string"){if(this._container=_.window.document.getElementById(g.container),!this._container)throw new Error("Container '"+g.container+"' not found.")}else{if(!(g.container instanceof kc))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=g.container}if(g.maxBounds&&this.setMaxBounds(g.maxBounds),_.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return S._update(!1)}),this.on("moveend",function(){return S._update(!1)}),this.on("zoom",function(){return S._update(!0)}),_.window!==void 0&&(_.window.addEventListener("online",this._onWindowOnline,!1),_.window.addEventListener("resize",this._onWindowResize,!1),_.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new gn(this,g),this._hash=g.hash&&new $s(typeof g.hash=="string"&&g.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:g.center,zoom:g.zoom,bearing:g.bearing,pitch:g.pitch}),g.bounds&&(this.resize(),this.fitBounds(g.bounds,_.extend({},g.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=g.localIdeographFontFamily,g.style&&this.setStyle(g.style,{localIdeographFontFamily:g.localIdeographFontFamily}),g.attributionControl&&this.addControl(new qo({customAttribution:g.customAttribution})),this.addControl(new mu,g.logoPosition),this.on("style.load",function(){S.transform.unmodified&&S.jumpTo(S.style.stylesheet)}),this.on("data",function(C){S._update(C.dataType==="style"),S.fire(new _.Event(C.dataType+"data",C))}),this.on("dataloading",function(C){S.fire(new _.Event(C.dataType+"dataloading",C))})}h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d;var p={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return d.prototype._getMapId=function(){return this._mapId},d.prototype.addControl=function(g,S){if(S===void 0&&(S=g.getDefaultPosition?g.getDefaultPosition():"top-right"),!g||!g.onAdd)return this.fire(new _.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var w=g.onAdd(this);this._controls.push(g);var C=this._controlPositions[S];return S.indexOf("bottom")!==-1?C.insertBefore(w,C.firstChild):C.appendChild(w),this},d.prototype.removeControl=function(g){if(!g||!g.onRemove)return this.fire(new _.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var S=this._controls.indexOf(g);return S>-1&&this._controls.splice(S,1),g.onRemove(this),this},d.prototype.hasControl=function(g){return this._controls.indexOf(g)>-1},d.prototype.resize=function(g){var S=this._containerDimensions(),w=S[0],C=S[1];if(w===this.transform.width&&C===this.transform.height)return this;this._resizeCanvas(w,C),this.transform.resize(w,C),this.painter.resize(w,C);var P=!this._moving;return P&&this.fire(new _.Event("movestart",g)).fire(new _.Event("move",g)),this.fire(new _.Event("resize",g)),P&&this.fire(new _.Event("moveend",g)),this},d.prototype.getBounds=function(){return this.transform.getBounds()},d.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},d.prototype.setMaxBounds=function(g){return this.transform.setMaxBounds(_.LngLatBounds.convert(g)),this._update()},d.prototype.setMinZoom=function(g){if((g=g==null?-2:g)>=-2&&g<=this.transform.maxZoom)return this.transform.minZoom=g,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=g,this._update(),this.getZoom()>g&&this.setZoom(g),this;throw new Error("maxZoom must be greater than the current minZoom")},d.prototype.getMaxZoom=function(){return this.transform.maxZoom},d.prototype.setMinPitch=function(g){if((g=g==null?0:g)<0)throw new Error("minPitch must be greater than or equal to 0");if(g>=0&&g<=this.transform.maxPitch)return this.transform.minPitch=g,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(g>=this.transform.minPitch)return this.transform.maxPitch=g,this._update(),this.getPitch()>g&&this.setPitch(g),this;throw new Error("maxPitch must be greater than the current minPitch")},d.prototype.getMaxPitch=function(){return this.transform.maxPitch},d.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},d.prototype.setRenderWorldCopies=function(g){return this.transform.renderWorldCopies=g,this._update()},d.prototype.project=function(g){return this.transform.locationPoint(_.LngLat.convert(g))},d.prototype.unproject=function(g){return this.transform.pointLocation(_.Point.convert(g))},d.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},d.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},d.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},d.prototype._createDelegatedListener=function(g,S,w){var C,P=this;if(g==="mouseenter"||g==="mouseover"){var Z=!1;return{layer:S,listener:w,delegates:{mousemove:function(ce){var ge=P.getLayer(S)?P.queryRenderedFeatures(ce.point,{layers:[S]}):[];ge.length?Z||(Z=!0,w.call(P,new Ha(g,P,ce.originalEvent,{features:ge}))):Z=!1},mouseout:function(){Z=!1}}}}if(g==="mouseleave"||g==="mouseout"){var Y=!1;return{layer:S,listener:w,delegates:{mousemove:function(ce){(P.getLayer(S)?P.queryRenderedFeatures(ce.point,{layers:[S]}):[]).length?Y=!0:Y&&(Y=!1,w.call(P,new Ha(g,P,ce.originalEvent)))},mouseout:function(ce){Y&&(Y=!1,w.call(P,new Ha(g,P,ce.originalEvent)))}}}}return{layer:S,listener:w,delegates:(C={},C[g]=function(ce){var ge=P.getLayer(S)?P.queryRenderedFeatures(ce.point,{layers:[S]}):[];ge.length&&(ce.features=ge,w.call(P,ce),delete ce.features)},C)}},d.prototype.on=function(g,S,w){if(w===void 0)return h.prototype.on.call(this,g,S);var C=this._createDelegatedListener(g,S,w);for(var P in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[g]=this._delegatedListeners[g]||[],this._delegatedListeners[g].push(C),C.delegates)this.on(P,C.delegates[P]);return this},d.prototype.once=function(g,S,w){if(w===void 0)return h.prototype.once.call(this,g,S);var C=this._createDelegatedListener(g,S,w);for(var P in C.delegates)this.once(P,C.delegates[P]);return this},d.prototype.off=function(g,S,w){var C=this;return w===void 0?h.prototype.off.call(this,g,S):(this._delegatedListeners&&this._delegatedListeners[g]&&function(P){for(var Z=P[g],Y=0;Y180;){var C=p.locationPoint(h);if(C.x>=0&&C.y>=0&&C.x<=p.width&&C.y<=p.height)break;h.lng>p.center.lng?h.lng-=360:h.lng+=360}return h}Es.prototype.down=function(h,d){this.mouseRotate.mousedown(h,d),this.mousePitch&&this.mousePitch.mousedown(h,d),U.disableDrag()},Es.prototype.move=function(h,d){var p=this.map,g=this.mouseRotate.mousemoveWindow(h,d);if(g&&g.bearingDelta&&p.setBearing(p.getBearing()+g.bearingDelta),this.mousePitch){var S=this.mousePitch.mousemoveWindow(h,d);S&&S.pitchDelta&&p.setPitch(p.getPitch()+S.pitchDelta)}},Es.prototype.off=function(){var h=this.element;U.removeEventListener(h,"mousedown",this.mousedown),U.removeEventListener(h,"touchstart",this.touchstart,{passive:!1}),U.removeEventListener(h,"touchmove",this.touchmove),U.removeEventListener(h,"touchend",this.touchend),U.removeEventListener(h,"touchcancel",this.reset),this.offTemp()},Es.prototype.offTemp=function(){U.enableDrag(),U.removeEventListener(_.window,"mousemove",this.mousemove),U.removeEventListener(_.window,"mouseup",this.mouseup)},Es.prototype.mousedown=function(h){this.down(_.extend({},h,{ctrlKey:!0,preventDefault:function(){return h.preventDefault()}}),U.mousePos(this.element,h)),U.addEventListener(_.window,"mousemove",this.mousemove),U.addEventListener(_.window,"mouseup",this.mouseup)},Es.prototype.mousemove=function(h){this.move(h,U.mousePos(this.element,h))},Es.prototype.mouseup=function(h){this.mouseRotate.mouseupWindow(h),this.mousePitch&&this.mousePitch.mouseupWindow(h),this.offTemp()},Es.prototype.touchstart=function(h){h.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=U.touchPos(this.element,h.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return h.preventDefault()}},this._startPos))},Es.prototype.touchmove=function(h){h.targetTouches.length!==1?this.reset():(this._lastPos=U.touchPos(this.element,h.targetTouches)[0],this.move({preventDefault:function(){return h.preventDefault()}},this._lastPos))},Es.prototype.touchend=function(h){h.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=g}this._isDragging&&(this._pos=p.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new _.Event("dragstart"))),this.fire(new _.Event("drag")))},d.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new _.Event("dragend")),this._state="inactive"},d.prototype._addDragHandler=function(p){this._element.contains(p.originalEvent.target)&&(p.preventDefault(),this._positionDelta=p.point.sub(this._pos).add(this._offset),this._pointerdownPos=p.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},d.prototype.setDraggable=function(p){return this._draggable=!!p,this._map&&(p?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},d.prototype.isDraggable=function(){return this._draggable},d.prototype.setRotation=function(p){return this._rotation=p||0,this._update(),this},d.prototype.getRotation=function(){return this._rotation},d.prototype.setRotationAlignment=function(p){return this._rotationAlignment=p||"auto",this._update(),this},d.prototype.getRotationAlignment=function(){return this._rotationAlignment},d.prototype.setPitchAlignment=function(p){return this._pitchAlignment=p&&p!=="auto"?p:this._rotationAlignment,this._update(),this},d.prototype.getPitchAlignment=function(){return this._pitchAlignment},d}(_.Evented),Vf={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ac=0,oc=!1,Uu=function(h){function d(p){h.call(this),this.options=_.extend({},Vf,p),_.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.onAdd=function(p){var g;return this._map=p,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),g=this._setupUI,Fc!==void 0?g(Fc):_.window.navigator.permissions!==void 0?_.window.navigator.permissions.query({name:"geolocation"}).then(function(S){g(Fc=S.state!=="denied")}):g(Fc=!!_.window.navigator.geolocation),this._container},d.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(_.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),U.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,ac=0,oc=!1},d.prototype._isOutOfMapMaxBounds=function(p){var g=this._map.getMaxBounds(),S=p.coords;return g&&(S.longitudeg.getEast()||S.latitudeg.getNorth())},d.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},d.prototype._onSuccess=function(p){if(this._map){if(this._isOutOfMapMaxBounds(p))return this._setErrorState(),this.fire(new _.Event("outofmaxbounds",p)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=p,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(p),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(p),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new _.Event("geolocate",p)),this._finish()}},d.prototype._updateCamera=function(p){var g=new _.LngLat(p.coords.longitude,p.coords.latitude),S=p.coords.accuracy,w=this._map.getBearing(),C=_.extend({bearing:w},this.options.fitBoundsOptions);this._map.fitBounds(g.toBounds(S),C,{geolocateSource:!0})},d.prototype._updateMarker=function(p){if(p){var g=new _.LngLat(p.coords.longitude,p.coords.latitude);this._accuracyCircleMarker.setLngLat(g).addTo(this._map),this._userLocationDotMarker.setLngLat(g).addTo(this._map),this._accuracy=p.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},d.prototype._updateCircleRadius=function(){var p=this._map._container.clientHeight/2,g=this._map.unproject([0,p]),S=this._map.unproject([1,p]),w=g.distanceTo(S),C=Math.ceil(2*this._accuracy/w);this._circleElement.style.width=C+"px",this._circleElement.style.height=C+"px"},d.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},d.prototype._onError=function(p){if(this._map){if(this.options.trackUserLocation)if(p.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var g=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=g,this._geolocateButton.setAttribute("aria-label",g),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(p.code===3&&oc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new _.Event("error",p)),this._finish()}},d.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},d.prototype._setupUI=function(p){var g=this;if(this._container.addEventListener("contextmenu",function(C){return C.preventDefault()}),this._geolocateButton=U.create("button","mapboxgl-ctrl-geolocate",this._container),U.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",p===!1){_.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var S=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=S,this._geolocateButton.setAttribute("aria-label",S)}else{var w=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=U.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new cf(this._dotElement),this._circleElement=U.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new cf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(C){C.geolocateSource||g._watchState!=="ACTIVE_LOCK"||C.originalEvent&&C.originalEvent.type==="resize"||(g._watchState="BACKGROUND",g._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),g._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),g.fire(new _.Event("trackuserlocationend")))})},d.prototype.trigger=function(){if(!this._setup)return _.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new _.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":ac--,oc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new _.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new _.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var p;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++ac>1?(p={maximumAge:6e5,timeout:0},oc=!0):(p=this.options.positionOptions,oc=!1),this._geolocationWatchID=_.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,p)}}else _.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},d.prototype._clearWatch=function(){_.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},d}(_.Evented),zu={maxWidth:100,unit:"metric"},tu=function(h){this.options=_.extend({},zu,h),_.bindAll(["_onMove","setUnit"],this)};function jf(h,d,p){var g=p&&p.maxWidth||100,S=h._container.clientHeight/2,w=h.unproject([0,S]),C=h.unproject([g,S]),P=w.distanceTo(C);if(p&&p.unit==="imperial"){var Z=3.2808*P;Z>5280?Ol(d,g,Z/5280,h._getUIString("ScaleControl.Miles")):Ol(d,g,Z,h._getUIString("ScaleControl.Feet"))}else p&&p.unit==="nautical"?Ol(d,g,P/1852,h._getUIString("ScaleControl.NauticalMiles")):P>=1e3?Ol(d,g,P/1e3,h._getUIString("ScaleControl.Kilometers")):Ol(d,g,P,h._getUIString("ScaleControl.Meters"))}function Ol(h,d,p,g){var S,w,C,P=(S=p,(w=Math.pow(10,(""+Math.floor(S)).length-1))*(C=(C=S/w)>=10?10:C>=5?5:C>=3?3:C>=2?2:C>=1?1:function(Z){var Y=Math.pow(10,Math.ceil(-Math.log(Z)/Math.LN10));return Math.round(Z*Y)/Y}(C)));h.style.width=d*(P/p)+"px",h.innerHTML=P+" "+g}tu.prototype.getDefaultPosition=function(){return"bottom-left"},tu.prototype._onMove=function(){jf(this._map,this._container,this.options)},tu.prototype.onAdd=function(h){return this._map=h,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",h.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},tu.prototype.onRemove=function(){U.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},tu.prototype.setUnit=function(h){this.options.unit=h,jf(this._map,this._container,this.options)};var ru=function(h){this._fullscreen=!1,h&&h.container&&(h.container instanceof _.window.HTMLElement?this._container=h.container:_.warnOnce("Full screen control 'container' must be a DOM element.")),_.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in _.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in _.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in _.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in _.window.document&&(this._fullscreenchange="MSFullscreenChange")};ru.prototype.onAdd=function(h){return this._map=h,this._container||(this._container=this._map.getContainer()),this._controlContainer=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",_.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ru.prototype.onRemove=function(){U.remove(this._controlContainer),this._map=null,_.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ru.prototype._checkFullscreenSupport=function(){return!!(_.window.document.fullscreenEnabled||_.window.document.mozFullScreenEnabled||_.window.document.msFullscreenEnabled||_.window.document.webkitFullscreenEnabled)},ru.prototype._setupUI=function(){var h=this._fullscreenButton=U.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);U.create("span","mapboxgl-ctrl-icon",h).setAttribute("aria-hidden",!0),h.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),_.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ru.prototype._updateTitle=function(){var h=this._getTitle();this._fullscreenButton.setAttribute("aria-label",h),this._fullscreenButton.title=h},ru.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ru.prototype._isFullscreen=function(){return this._fullscreen},ru.prototype._changeIcon=function(){(_.window.document.fullscreenElement||_.window.document.mozFullScreenElement||_.window.document.webkitFullscreenElement||_.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ru.prototype._onClickFullscreen=function(){this._isFullscreen()?_.window.document.exitFullscreen?_.window.document.exitFullscreen():_.window.document.mozCancelFullScreen?_.window.document.mozCancelFullScreen():_.window.document.msExitFullscreen?_.window.document.msExitFullscreen():_.window.document.webkitCancelFullScreen&&_.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Dl={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ff=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Rh=function(h){function d(p){h.call(this),this.options=_.extend(Object.create(Dl),p),_.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.addTo=function(p){return this._map&&this.remove(),this._map=p,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new _.Event("open")),this},d.prototype.isOpen=function(){return!!this._map},d.prototype.remove=function(){return this._content&&U.remove(this._content),this._container&&(U.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new _.Event("close")),this},d.prototype.getLngLat=function(){return this._lngLat},d.prototype.setLngLat=function(p){return this._lngLat=_.LngLat.convert(p),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},d.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},d.prototype.getElement=function(){return this._container},d.prototype.setText=function(p){return this.setDOMContent(_.window.document.createTextNode(p))},d.prototype.setHTML=function(p){var g,S=_.window.document.createDocumentFragment(),w=_.window.document.createElement("body");for(w.innerHTML=p;g=w.firstChild;)S.appendChild(g);return this.setDOMContent(S)},d.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},d.prototype.setMaxWidth=function(p){return this.options.maxWidth=p,this._update(),this},d.prototype.setDOMContent=function(p){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=U.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(p),this._createCloseButton(),this._update(),this._focusFirstElement(),this},d.prototype.addClassName=function(p){this._container&&this._container.classList.add(p)},d.prototype.removeClassName=function(p){this._container&&this._container.classList.remove(p)},d.prototype.setOffset=function(p){return this.options.offset=p,this._update(),this},d.prototype.toggleClassName=function(p){if(this._container)return this._container.classList.toggle(p)},d.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=U.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},d.prototype._onMouseUp=function(p){this._update(p.point)},d.prototype._onMouseMove=function(p){this._update(p.point)},d.prototype._onDrag=function(p){this._update(p.point)},d.prototype._update=function(p){var g=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=U.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=U.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(ge){return g._container.classList.add(ge)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=ic(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||p)){var S=this._pos=this._trackPointer&&p?p:this._map.project(this._lngLat),w=this.options.anchor,C=function ge(_e){if(_e){if(typeof _e=="number"){var Fe=Math.round(Math.sqrt(.5*Math.pow(_e,2)));return{center:new _.Point(0,0),top:new _.Point(0,_e),"top-left":new _.Point(Fe,Fe),"top-right":new _.Point(-Fe,Fe),bottom:new _.Point(0,-_e),"bottom-left":new _.Point(Fe,-Fe),"bottom-right":new _.Point(-Fe,-Fe),left:new _.Point(_e,0),right:new _.Point(-_e,0)}}if(_e instanceof _.Point||Array.isArray(_e)){var Pe=_.Point.convert(_e);return{center:Pe,top:Pe,"top-left":Pe,"top-right":Pe,bottom:Pe,"bottom-left":Pe,"bottom-right":Pe,left:Pe,right:Pe}}return{center:_.Point.convert(_e.center||[0,0]),top:_.Point.convert(_e.top||[0,0]),"top-left":_.Point.convert(_e["top-left"]||[0,0]),"top-right":_.Point.convert(_e["top-right"]||[0,0]),bottom:_.Point.convert(_e.bottom||[0,0]),"bottom-left":_.Point.convert(_e["bottom-left"]||[0,0]),"bottom-right":_.Point.convert(_e["bottom-right"]||[0,0]),left:_.Point.convert(_e.left||[0,0]),right:_.Point.convert(_e.right||[0,0])}}return ge(new _.Point(0,0))}(this.options.offset);if(!w){var P,Z=this._container.offsetWidth,Y=this._container.offsetHeight;P=S.y+C.bottom.ythis._map.transform.height-Y?["bottom"]:[],S.xthis._map.transform.width-Z/2&&P.push("right"),w=P.length===0?"bottom":P.join("-")}var ce=S.add(C[w]).round();U.setTransform(this._container,Nu[w]+" translate("+ce.x+"px,"+ce.y+"px)"),Zf(this._container,w,"popup")}},d.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var p=this._container.querySelector(ff);p&&p.focus()}},d.prototype._onClose=function(){this.remove()},d}(_.Evented),Hf={version:_.version,supported:le,setRTLTextPlugin:_.setRTLTextPlugin,getRTLTextPluginStatus:_.getRTLTextPluginStatus,Map:Ch,NavigationControl:gu,GeolocateControl:Uu,AttributionControl:qo,ScaleControl:tu,FullscreenControl:ru,Popup:Rh,Marker:cf,Style:Ps,LngLat:_.LngLat,LngLatBounds:_.LngLatBounds,Point:_.Point,MercatorCoordinate:_.MercatorCoordinate,Evented:_.Evented,config:_.config,prewarm:function(){ar().acquire(er)},clearPrewarmedResources:function(){var h=bn;h&&(h.isPreloaded()&&h.numActive()===1?(h.release(er),bn=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return _.config.ACCESS_TOKEN},set accessToken(h){_.config.ACCESS_TOKEN=h},get baseApiUrl(){return _.config.API_URL},set baseApiUrl(h){_.config.API_URL=h},get workerCount(){return Tr.workerCount},set workerCount(h){Tr.workerCount=h},get maxParallelImageRequests(){return _.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(h){_.config.MAX_PARALLEL_IMAGE_REQUESTS=h},clearStorage:function(h){_.clearTileCache(h)},workerUrl:""};return Hf}),re})},63713:function(rr,J,L){"use strict";rr.exports=pe;var re=L(30551);function pe(te){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(te)?te:new Uint8Array(te||0),this.pos=0,this.type=0,this.length=this.buf.length}pe.Varint=0,pe.Fixed64=1,pe.Bytes=2,pe.Fixed32=5;var _=65536*65536,le=1/_,U=12,he=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");pe.prototype={destroy:function(){this.buf=null},readFields:function(te,H,K){for(K=K||this.length;this.pos>3,dt=this.pos;this.type=Be&7,te(Ae,H,this),this.pos===dt&&this.skip(Be)}return H},readMessage:function(te,H){return this.readFields(te,H,this.readVarint()+this.pos)},readFixed32:function(){var te=Et(this.buf,this.pos);return this.pos+=4,te},readSFixed32:function(){var te=Pt(this.buf,this.pos);return this.pos+=4,te},readFixed64:function(){var te=Et(this.buf,this.pos)+Et(this.buf,this.pos+4)*_;return this.pos+=8,te},readSFixed64:function(){var te=Et(this.buf,this.pos)+Pt(this.buf,this.pos+4)*_;return this.pos+=8,te},readFloat:function(){var te=re.read(this.buf,this.pos,!0,23,4);return this.pos+=4,te},readDouble:function(){var te=re.read(this.buf,this.pos,!0,52,8);return this.pos+=8,te},readVarint:function(te){var H=this.buf,K,Be;return Be=H[this.pos++],K=Be&127,Be<128||(Be=H[this.pos++],K|=(Be&127)<<7,Be<128)||(Be=H[this.pos++],K|=(Be&127)<<14,Be<128)||(Be=H[this.pos++],K|=(Be&127)<<21,Be<128)?K:(Be=H[this.pos],K|=(Be&15)<<28,ae(K,te,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var te=this.readVarint();return te%2===1?(te+1)/-2:te/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var te=this.readVarint()+this.pos,H=this.pos;return this.pos=te,te-H>=U&&he?qt(this.buf,H,te):ft(this.buf,H,te)},readBytes:function(){var te=this.readVarint()+this.pos,H=this.buf.subarray(this.pos,te);return this.pos=te,H},readPackedVarint:function(te,H){if(this.type!==pe.Bytes)return te.push(this.readVarint(H));var K=qe(this);for(te=te||[];this.pos127;);else if(H===pe.Bytes)this.pos=this.readVarint()+this.pos;else if(H===pe.Fixed32)this.pos+=4;else if(H===pe.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+H)},writeTag:function(te,H){this.writeVarint(te<<3|H)},realloc:function(te){for(var H=this.length||16;H268435455||te<0){Ke(te,this);return}this.realloc(4),this.buf[this.pos++]=te&127|(te>127?128:0),!(te<=127)&&(this.buf[this.pos++]=(te>>>=7)&127|(te>127?128:0),!(te<=127)&&(this.buf[this.pos++]=(te>>>=7)&127|(te>127?128:0),!(te<=127)&&(this.buf[this.pos++]=te>>>7&127)))},writeSVarint:function(te){this.writeVarint(te<0?-te*2-1:te*2)},writeBoolean:function(te){this.writeVarint(!!te)},writeString:function(te){te=String(te),this.realloc(te.length*4),this.pos++;var H=this.pos;this.pos=Sr(this.buf,te,this.pos);var K=this.pos-H;K>=128&&Dt(H,K,this),this.pos=H-1,this.writeVarint(K),this.pos+=K},writeFloat:function(te){this.realloc(4),re.write(this.buf,te,this.pos,!0,23,4),this.pos+=4},writeDouble:function(te){this.realloc(8),re.write(this.buf,te,this.pos,!0,52,8),this.pos+=8},writeBytes:function(te){var H=te.length;this.writeVarint(H),this.realloc(H);for(var K=0;K=128&&Dt(K,Be,this),this.pos=K-1,this.writeVarint(Be),this.pos+=Be},writeMessage:function(te,H,K){this.writeTag(te,pe.Bytes),this.writeRawMessage(H,K)},writePackedVarint:function(te,H){H.length&&this.writeMessage(te,Yt,H)},writePackedSVarint:function(te,H){H.length&&this.writeMessage(te,Ht,H)},writePackedBoolean:function(te,H){H.length&&this.writeMessage(te,yt,H)},writePackedFloat:function(te,H){H.length&&this.writeMessage(te,ir,H)},writePackedDouble:function(te,H){H.length&&this.writeMessage(te,Xt,H)},writePackedFixed32:function(te,H){H.length&&this.writeMessage(te,bt,H)},writePackedSFixed32:function(te,H){H.length&&this.writeMessage(te,Pr,H)},writePackedFixed64:function(te,H){H.length&&this.writeMessage(te,hr,H)},writePackedSFixed64:function(te,H){H.length&&this.writeMessage(te,ur,H)},writeBytesField:function(te,H){this.writeTag(te,pe.Bytes),this.writeBytes(H)},writeFixed32Field:function(te,H){this.writeTag(te,pe.Fixed32),this.writeFixed32(H)},writeSFixed32Field:function(te,H){this.writeTag(te,pe.Fixed32),this.writeSFixed32(H)},writeFixed64Field:function(te,H){this.writeTag(te,pe.Fixed64),this.writeFixed64(H)},writeSFixed64Field:function(te,H){this.writeTag(te,pe.Fixed64),this.writeSFixed64(H)},writeVarintField:function(te,H){this.writeTag(te,pe.Varint),this.writeVarint(H)},writeSVarintField:function(te,H){this.writeTag(te,pe.Varint),this.writeSVarint(H)},writeStringField:function(te,H){this.writeTag(te,pe.Bytes),this.writeString(H)},writeFloatField:function(te,H){this.writeTag(te,pe.Fixed32),this.writeFloat(H)},writeDoubleField:function(te,H){this.writeTag(te,pe.Fixed64),this.writeDouble(H)},writeBooleanField:function(te,H){this.writeVarintField(te,!!H)}};function ae(te,H,K){var Be=K.buf,Ae,dt;if(dt=Be[K.pos++],Ae=(dt&112)>>4,dt<128||(dt=Be[K.pos++],Ae|=(dt&127)<<3,dt<128)||(dt=Be[K.pos++],Ae|=(dt&127)<<10,dt<128)||(dt=Be[K.pos++],Ae|=(dt&127)<<17,dt<128)||(dt=Be[K.pos++],Ae|=(dt&127)<<24,dt<128)||(dt=Be[K.pos++],Ae|=(dt&1)<<31,dt<128))return ie(te,Ae,H);throw new Error("Expected varint not more than 10 bytes")}function qe(te){return te.type===pe.Bytes?te.readVarint()+te.pos:te.pos+1}function ie(te,H,K){return K?H*4294967296+(te>>>0):(H>>>0)*4294967296+(te>>>0)}function Ke(te,H){var K,Be;if(te>=0?(K=te%4294967296|0,Be=te/4294967296|0):(K=~(-te%4294967296),Be=~(-te/4294967296),K^4294967295?K=K+1|0:(K=0,Be=Be+1|0)),te>=18446744073709552e3||te<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");H.realloc(10),ht(K,Be,H),mt(Be,H)}function ht(te,H,K){K.buf[K.pos++]=te&127|128,te>>>=7,K.buf[K.pos++]=te&127|128,te>>>=7,K.buf[K.pos++]=te&127|128,te>>>=7,K.buf[K.pos++]=te&127|128,te>>>=7,K.buf[K.pos]=te&127}function mt(te,H){var K=(te&7)<<4;H.buf[H.pos++]|=K|((te>>>=3)?128:0),te&&(H.buf[H.pos++]=te&127|((te>>>=7)?128:0),te&&(H.buf[H.pos++]=te&127|((te>>>=7)?128:0),te&&(H.buf[H.pos++]=te&127|((te>>>=7)?128:0),te&&(H.buf[H.pos++]=te&127|((te>>>=7)?128:0),te&&(H.buf[H.pos++]=te&127)))))}function Dt(te,H,K){var Be=H<=16383?1:H<=2097151?2:H<=268435455?3:Math.floor(Math.log(H)/(Math.LN2*7));K.realloc(Be);for(var Ae=K.pos-1;Ae>=te;Ae--)K.buf[Ae+Be]=K.buf[Ae]}function Yt(te,H){for(var K=0;K>>8,te[K+2]=H>>>16,te[K+3]=H>>>24}function Pt(te,H){return(te[H]|te[H+1]<<8|te[H+2]<<16)+(te[H+3]<<24)}function ft(te,H,K){for(var Be="",Ae=H;Ae239?4:dt>223?3:dt>191?2:1;if(Ae+We>K)break;var it,Mt,yr;We===1?dt<128&&(Ue=dt):We===2?(it=te[Ae+1],(it&192)===128&&(Ue=(dt&31)<<6|it&63,Ue<=127&&(Ue=null))):We===3?(it=te[Ae+1],Mt=te[Ae+2],(it&192)===128&&(Mt&192)===128&&(Ue=(dt&15)<<12|(it&63)<<6|Mt&63,(Ue<=2047||Ue>=55296&&Ue<=57343)&&(Ue=null))):We===4&&(it=te[Ae+1],Mt=te[Ae+2],yr=te[Ae+3],(it&192)===128&&(Mt&192)===128&&(yr&192)===128&&(Ue=(dt&15)<<18|(it&63)<<12|(Mt&63)<<6|yr&63,(Ue<=65535||Ue>=1114112)&&(Ue=null))),Ue===null?(Ue=65533,We=1):Ue>65535&&(Ue-=65536,Be+=String.fromCharCode(Ue>>>10&1023|55296),Ue=56320|Ue&1023),Be+=String.fromCharCode(Ue),Ae+=We}return Be}function qt(te,H,K){return he.decode(te.subarray(H,K))}function Sr(te,H,K){for(var Be=0,Ae,dt;Be55295&&Ae<57344)if(dt)if(Ae<56320){te[K++]=239,te[K++]=191,te[K++]=189,dt=Ae;continue}else Ae=dt-55296<<10|Ae-56320|65536,dt=null;else{Ae>56319||Be+1===H.length?(te[K++]=239,te[K++]=191,te[K++]=189):dt=Ae;continue}else dt&&(te[K++]=239,te[K++]=191,te[K++]=189,dt=null);Ae<128?te[K++]=Ae:(Ae<2048?te[K++]=Ae>>6|192:(Ae<65536?te[K++]=Ae>>12|224:(te[K++]=Ae>>18|240,te[K++]=Ae>>12&63|128),te[K++]=Ae>>6&63|128),te[K++]=Ae&63|128)}return K}},23167:function(rr,J,L){var re=L(14224);(function(pe,_){rr.exports=_()})(this,function(){"use strict";function pe(Ot,F){if(!(Ot instanceof F))throw new TypeError("Cannot call a class as a function")}function _(Ot,F){for(var ne=0;neF?1:Ot0){if(F.right===null)break;if(ne(Ot,F.right.key)>0){var Ar=F.right;if(F.right=Ar.left,Ar.left=F,F=Ar,F.right===null)break}Ne.right=F,Ne=F,F=F.right}else break}return Ne.right=F.left,_t.left=F.right,F.left=de.right,F.right=de.left,F}function qe(Ot,F,ne,de){var Ne=new U(Ot,F);if(ne===null)return Ne.left=Ne.right=null,Ne;ne=ae(Ot,ne,de);var _t=de(Ot,ne.key);return _t<0?(Ne.left=ne.left,Ne.right=ne,ne.left=null):_t>=0&&(Ne.right=ne.right,Ne.left=ne,ne.right=null),Ne}function ie(Ot,F,ne){var de=null,Ne=null;if(F){F=ae(Ot,F,ne);var _t=ne(F.key,Ot);_t===0?(de=F.left,Ne=F.right):_t<0?(Ne=F.right,F.right=null,de=F):(de=F.left,F.left=null,Ne=F)}return{left:de,right:Ne}}function Ke(Ot,F,ne){return F===null?Ot:(Ot===null||(F=ae(Ot.key,F,ne),F.left=Ot),F)}function ht(Ot,F,ne,de,Ne){if(Ot){de(""+F+(ne?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ")+Ne(Ot)+` -`);var _t=F+(ne?" ":"\u2502 ");Ot.left&&ht(Ot.left,_t,!1,de,Ne),Ot.right&&ht(Ot.right,_t,!0,de,Ne)}}var mt=function(){function Ot(F){F===void 0&&(F=he),this._root=null,this._size=0,this._comparator=F}return Ot.prototype.insert=function(F,ne){return this._size++,this._root=qe(F,ne,this._root,this._comparator)},Ot.prototype.add=function(F,ne){var de=new U(F,ne);this._root===null&&(de.left=de.right=null,this._size++,this._root=de);var Ne=this._comparator,_t=ae(F,this._root,Ne),Kt=Ne(F,_t.key);return Kt===0?this._root=_t:(Kt<0?(de.left=_t.left,de.right=_t,_t.left=null):Kt>0&&(de.right=_t.right,de.left=_t,_t.right=null),this._size++,this._root=de),this._root},Ot.prototype.remove=function(F){this._root=this._remove(F,this._root,this._comparator)},Ot.prototype._remove=function(F,ne,de){var Ne;if(ne===null)return null;ne=ae(F,ne,de);var _t=de(F,ne.key);return _t===0?(ne.left===null?Ne=ne.right:(Ne=ae(F,ne.left,de),Ne.right=ne.right),this._size--,Ne):ne},Ot.prototype.pop=function(){var F=this._root;if(F){for(;F.left;)F=F.left;return this._root=ae(F.key,this._root,this._comparator),this._root=this._remove(F.key,this._root,this._comparator),{key:F.key,data:F.data}}return null},Ot.prototype.findStatic=function(F){for(var ne=this._root,de=this._comparator;ne;){var Ne=de(F,ne.key);if(Ne===0)return ne;Ne<0?ne=ne.left:ne=ne.right}return null},Ot.prototype.find=function(F){return this._root&&(this._root=ae(F,this._root,this._comparator),this._comparator(F,this._root.key)!==0)?null:this._root},Ot.prototype.contains=function(F){for(var ne=this._root,de=this._comparator;ne;){var Ne=de(F,ne.key);if(Ne===0)return!0;Ne<0?ne=ne.left:ne=ne.right}return!1},Ot.prototype.forEach=function(F,ne){for(var de=this._root,Ne=[],_t=!1;!_t;)de!==null?(Ne.push(de),de=de.left):Ne.length!==0?(de=Ne.pop(),F.call(ne,de),de=de.right):_t=!0;return this},Ot.prototype.range=function(F,ne,de,Ne){for(var _t=[],Kt=this._comparator,Ar=this._root,Ve;_t.length!==0||Ar;)if(Ar)_t.push(Ar),Ar=Ar.left;else{if(Ar=_t.pop(),Ve=Kt(Ar.key,ne),Ve>0)break;if(Kt(Ar.key,F)>=0&&de.call(Ne,Ar))return this;Ar=Ar.right}return this},Ot.prototype.keys=function(){var F=[];return this.forEach(function(ne){var de=ne.key;return F.push(de)}),F},Ot.prototype.values=function(){var F=[];return this.forEach(function(ne){var de=ne.data;return F.push(de)}),F},Ot.prototype.min=function(){return this._root?this.minNode(this._root).key:null},Ot.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},Ot.prototype.minNode=function(F){if(F===void 0&&(F=this._root),F)for(;F.left;)F=F.left;return F},Ot.prototype.maxNode=function(F){if(F===void 0&&(F=this._root),F)for(;F.right;)F=F.right;return F},Ot.prototype.at=function(F){for(var ne=this._root,de=!1,Ne=0,_t=[];!de;)if(ne)_t.push(ne),ne=ne.left;else if(_t.length>0){if(ne=_t.pop(),Ne===F)return ne;Ne++,ne=ne.right}else de=!0;return null},Ot.prototype.next=function(F){var ne=this._root,de=null;if(F.right){for(de=F.right;de.left;)de=de.left;return de}for(var Ne=this._comparator;ne;){var _t=Ne(F.key,ne.key);if(_t===0)break;_t<0?(de=ne,ne=ne.left):ne=ne.right}return de},Ot.prototype.prev=function(F){var ne=this._root,de=null;if(F.left!==null){for(de=F.left;de.right;)de=de.right;return de}for(var Ne=this._comparator;ne;){var _t=Ne(F.key,ne.key);if(_t===0)break;_t<0?ne=ne.left:(de=ne,ne=ne.right)}return de},Ot.prototype.clear=function(){return this._root=null,this._size=0,this},Ot.prototype.toList=function(){return Ht(this._root)},Ot.prototype.load=function(F,ne,de){ne===void 0&&(ne=[]),de===void 0&&(de=!1);var Ne=F.length,_t=this._comparator;if(de&&yt(F,ne,0,Ne-1,_t),this._root===null)this._root=Dt(F,ne,0,Ne),this._size=Ne;else{var Kt=Xt(this.toList(),Yt(F,ne),_t);Ne=this._size+Ne,this._root=ir({head:Kt},0,Ne)}return this},Ot.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(Ot.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(Ot.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),Ot.prototype.toString=function(F){F===void 0&&(F=function(Ne){return String(Ne.key)});var ne=[];return ht(this._root,"",!0,function(de){return ne.push(de)},F),ne.join("")},Ot.prototype.update=function(F,ne,de){var Ne=this._comparator,_t=ie(F,this._root,Ne),Kt=_t.left,Ar=_t.right;Ne(F,ne)<0?Ar=qe(ne,de,Ar,Ne):Kt=qe(ne,de,Kt,Ne),this._root=Ke(Kt,Ar,Ne)},Ot.prototype.split=function(F){return ie(F,this._root,this._comparator)},Ot}();function Dt(Ot,F,ne,de){var Ne=de-ne;if(Ne>0){var _t=ne+Math.floor(Ne/2),Kt=Ot[_t],Ar=F[_t],Ve=new U(Kt,Ar);return Ve.left=Dt(Ot,F,ne,_t),Ve.right=Dt(Ot,F,_t+1,de),Ve}return null}function Yt(Ot,F){for(var ne=new U(null,null),de=ne,Ne=0;Ne0?(F=_t=_t.next=ne.pop(),F=F.right):de=!0;return _t.next=null,Ne.next}function ir(Ot,F,ne){var de=ne-F;if(de>0){var Ne=F+Math.floor(de/2),_t=ir(Ot,F,Ne),Kt=Ot.head;return Kt.left=_t,Ot.head=Ot.head.next,Kt.right=ir(Ot,Ne+1,ne),Kt}return null}function Xt(Ot,F,ne){for(var de=new U(null,null),Ne=de,_t=Ot,Kt=F;_t!==null&&Kt!==null;)ne(_t.key,Kt.key)<0?(Ne.next=_t,_t=_t.next):(Ne.next=Kt,Kt=Kt.next),Ne=Ne.next;return _t!==null?Ne.next=_t:Kt!==null&&(Ne.next=Kt),de.next}function yt(Ot,F,ne,de,Ne){if(!(ne>=de)){for(var _t=Ot[ne+de>>1],Kt=ne-1,Ar=de+1;;){do Kt++;while(Ne(Ot[Kt],_t)<0);do Ar--;while(Ne(Ot[Ar],_t)>0);if(Kt>=Ar)break;var Ve=Ot[Kt];Ot[Kt]=Ot[Ar],Ot[Ar]=Ve,Ve=F[Kt],F[Kt]=F[Ar],F[Ar]=Ve}yt(Ot,F,ne,Ar,Ne),yt(Ot,F,Ar+1,de,Ne)}}var bt=function(F,ne){return F.ll.x<=ne.x&&ne.x<=F.ur.x&&F.ll.y<=ne.y&&ne.y<=F.ur.y},Pr=function(F,ne){if(ne.ur.xde.x?1:ne.yde.y?1:0}}]);function Ot(F,ne){pe(this,Ot),F.events===void 0?F.events=[this]:F.events.push(this),this.point=F,this.isLeft=ne}return le(Ot,[{key:"link",value:function(ne){if(ne.point===this.point)throw new Error("Tried to link already linked events");for(var de=ne.point.events,Ne=0,_t=de.length;Ne<_t;Ne++){var Kt=de[Ne];this.point.events.push(Kt),Kt.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var ne=this.point.events.length,de=0;de=0&&Vr>=0?srLn?-1:0:wt<0&&Vr<0?srLn?1:0:Vrwt?1:0}}}]),Ot}(),it=0,Mt=function(){le(Ot,null,[{key:"compare",value:function(ne,de){var Ne=ne.leftSE.point.x,_t=de.leftSE.point.x,Kt=ne.rightSE.point.x,Ar=de.rightSE.point.x;if(ArVe&&wt>sr)return-1;var Vr=ne.comparePoint(de.leftSE.point);if(Vr<0)return 1;if(Vr>0)return-1;var Ln=de.comparePoint(ne.rightSE.point);return Ln!==0?Ln:-1}if(Ne>_t){if(Vewt&&Ve>dr)return 1;var En=de.comparePoint(ne.leftSE.point);if(En!==0)return En;var Rn=ne.comparePoint(de.rightSE.point);return Rn<0?1:Rn>0?-1:1}if(Vewt)return 1;if(KtAr){var si=ne.comparePoint(de.rightSE.point);if(si<0)return 1;if(si>0)return-1}if(Kt!==Ar){var ei=sr-Ve,la=Kt-Ne,sa=dr-wt,Eo=Ar-_t;if(ei>la&&saEo)return-1}return Kt>Ar?1:Ktdr?1:ne.idde.id?1:0}}]);function Ot(F,ne,de,Ne){pe(this,Ot),this.id=++it,this.leftSE=F,F.segment=this,F.otherSE=ne,this.rightSE=ne,ne.segment=this,ne.otherSE=F,this.rings=de,this.windings=Ne}return le(Ot,[{key:"replaceRightSE",value:function(ne){this.rightSE=ne,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var ne=this.leftSE.point.y,de=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:nede?ne:de}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(ne){return ne.x===this.leftSE.point.x&&ne.y===this.leftSE.point.y||ne.x===this.rightSE.point.x&&ne.y===this.rightSE.point.y}},{key:"comparePoint",value:function(ne){if(this.isAnEndpoint(ne))return 0;var de=this.leftSE.point,Ne=this.rightSE.point,_t=this.vector();if(de.x===Ne.x)return ne.x===de.x?0:ne.x0&&Ve.swapEvents(),We.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),Ne&&(_t.checkForConsuming(),Kt.checkForConsuming()),de}},{key:"swapEvents",value:function(){var ne=this.rightSE;this.rightSE=this.leftSE,this.leftSE=ne,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var de=0,Ne=this.windings.length;de0){var Kt=de;de=Ne,Ne=Kt}if(de.prev===Ne){var Ar=de;de=Ne,Ne=Ar}for(var Ve=0,wt=Ne.rings.length;Ve0)_t=de,Kt=ne,Ar=-1;else throw new Error("Tried to create degenerate segment at [".concat(ne.x,", ").concat(ne.y,"]"));var wt=new We(_t,!0),sr=new We(Kt,!1);return new Ot(wt,sr,[Ne],[Ar])}}]),Ot}(),yr=function(){function Ot(F,ne,de){if(pe(this,Ot),!Array.isArray(F)||F.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=ne,this.isExterior=de,this.segments=[],typeof F[0][0]!="number"||typeof F[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var Ne=ft.round(F[0][0],F[0][1]);this.bbox={ll:{x:Ne.x,y:Ne.y},ur:{x:Ne.x,y:Ne.y}};for(var _t=Ne,Kt=1,Ar=F.length;Ktthis.bbox.ur.x&&(this.bbox.ur.x=Ve.x),Ve.y>this.bbox.ur.y&&(this.bbox.ur.y=Ve.y),_t=Ve)}(Ne.x!==_t.x||Ne.y!==_t.y)&&this.segments.push(Mt.fromRing(_t,Ne,this))}return le(Ot,[{key:"getSweepEvents",value:function(){for(var ne=[],de=0,Ne=this.segments.length;dethis.bbox.ur.x&&(this.bbox.ur.x=_t.bbox.ur.x),_t.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=_t.bbox.ur.y),this.interiorRings.push(_t)}this.multiPoly=ne}return le(Ot,[{key:"getSweepEvents",value:function(){for(var ne=this.exteriorRing.getSweepEvents(),de=0,Ne=this.interiorRings.length;dethis.bbox.ur.x&&(this.bbox.ur.x=_t.bbox.ur.x),_t.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=_t.bbox.ur.y),this.polys.push(_t)}this.isSubject=ne}return le(Ot,[{key:"getSweepEvents",value:function(){for(var ne=[],de=0,Ne=this.polys.length;de0&&(ne=_t)}for(var Kt=ne.segment.prevInResult(),Ar=Kt?Kt.prevInResult():null;;){if(!Kt)return null;if(!Ar)return Kt.ringOut;if(Ar.ringOut!==Kt.ringOut)return Ar.ringOut.enclosingRing()!==Kt.ringOut?Kt.ringOut:Kt.ringOut.enclosingRing();Kt=Ar.prevInResult(),Ar=Kt?Kt.prevInResult():null}}}]),Ot}(),un=function(){function Ot(F){pe(this,Ot),this.exteriorRing=F,F.poly=this,this.interiorRings=[]}return le(Ot,[{key:"addInterior",value:function(ne){this.interiorRings.push(ne),ne.poly=this}},{key:"getGeom",value:function(){var ne=[this.exteriorRing.getGeom()];if(ne[0]===null)return null;for(var de=0,Ne=this.interiorRings.length;de1&&arguments[1]!==void 0?arguments[1]:Mt.compare;pe(this,Ot),this.queue=F,this.tree=new mt(ne),this.segments=[]}return le(Ot,[{key:"process",value:function(ne){var de=ne.segment,Ne=[];if(ne.consumedBy)return ne.isLeft?this.queue.remove(ne.otherSE):this.tree.remove(de),Ne;var _t=ne.isLeft?this.tree.insert(de):this.tree.find(de);if(!_t)throw new Error("Unable to find segment #".concat(de.id," ")+"[".concat(de.leftSE.point.x,", ").concat(de.leftSE.point.y,"] -> ")+"[".concat(de.rightSE.point.x,", ").concat(de.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var Kt=_t,Ar=_t,Ve=void 0,wt=void 0;Ve===void 0;)Kt=this.tree.prev(Kt),Kt===null?Ve=null:Kt.key.consumedBy===void 0&&(Ve=Kt.key);for(;wt===void 0;)Ar=this.tree.next(Ar),Ar===null?wt=null:Ar.key.consumedBy===void 0&&(wt=Ar.key);if(ne.isLeft){var sr=null;if(Ve){var dr=Ve.getIntersection(de);if(dr!==null&&(de.isAnEndpoint(dr)||(sr=dr),!Ve.isAnEndpoint(dr)))for(var Vr=this._splitSafely(Ve,dr),Ln=0,En=Vr.length;Ln0?(this.tree.remove(de),Ne.push(ne)):(this.segments.push(de),de.prev=Ve)}else{if(Ve&&wt){var Q=Ve.getIntersection(wt);if(Q!==null){if(!Ve.isAnEndpoint(Q))for(var se=this._splitSafely(Ve,Q),xe=0,Re=se.length;xern)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var Eo=new jn(Rn),Ks=Rn.size,di=Rn.pop();di;){var W=di.key;if(Rn.size===Ks){var Q=W.segment;throw new Error("Unable to pop() ".concat(W.isLeft?"left":"right"," SweepEvent ")+"[".concat(W.point.x,", ").concat(W.point.y,"] from segment #").concat(Q.id," ")+"[".concat(Q.leftSE.point.x,", ").concat(Q.leftSE.point.y,"] -> ")+"[".concat(Q.rightSE.point.x,", ").concat(Q.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(Rn.size>rn)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(Eo.segments.length>$i)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var se=Eo.process(W),xe=0,Re=se.length;xe1?ne-1:0),Ne=1;Ne1?ne-1:0),Ne=1;Ne1?ne-1:0),Ne=1;Ne1?ne-1:0),Ne=1;Ne0)return!0;var Vr=yt.get(wt);return Vr.delete(sr),Vr.size>0||yt.delete(wt),!0}le("deleteMetadata",Sr);function te(Ve,wt){for(var sr=Ve.length-1;sr>=0;--sr){var dr=Ve[sr],Vr=dr(wt);if(!lr(Vr)&&!Cn(Vr)){if(!Bn(Vr))throw new TypeError;wt=Vr}}return wt}function H(Ve,wt,sr,dr){for(var Vr=Ve.length-1;Vr>=0;--Vr){var Ln=Ve[Vr],En=Ln(wt,sr,dr);if(!lr(En)&&!Cn(En)){if(!un(En))throw new TypeError;dr=En}}return dr}function K(Ve,wt,sr){var dr=yt.get(Ve);if(lr(dr)){if(!sr)return;dr=new Ht,yt.set(Ve,dr)}var Vr=dr.get(wt);if(lr(Vr)){if(!sr)return;Vr=new Ht,dr.set(wt,Vr)}return Vr}function Be(Ve,wt,sr){var dr=Ae(Ve,wt,sr);if(dr)return!0;var Vr=de(wt);return Cn(Vr)?!1:Be(Ve,Vr,sr)}function Ae(Ve,wt,sr){var dr=K(wt,sr,!1);return lr(dr)?!1:rn(dr.has(Ve))}function dt(Ve,wt,sr){var dr=Ae(Ve,wt,sr);if(dr)return Ue(Ve,wt,sr);var Vr=de(wt);if(!Cn(Vr))return dt(Ve,Vr,sr)}function Ue(Ve,wt,sr){var dr=K(wt,sr,!1);if(!lr(dr))return dr.get(Ve)}function We(Ve,wt,sr,dr){var Vr=K(sr,dr,!0);Vr.set(Ve,wt)}function it(Ve,wt){var sr=Mt(Ve,wt),dr=de(Ve);if(dr===null)return sr;var Vr=it(dr,wt);if(Vr.length<=0)return sr;if(sr.length<=0)return Vr;for(var Ln=new ir,En=[],Rn=0,xn=sr;Rn=0&&Rn=this._keys.length?(this._index=-1,this._keys=wt,this._values=wt):this._index++,{value:xn,done:!1}}return{value:void 0,done:!0}},En.prototype.throw=function(Rn){throw this._index>=0&&(this._index=-1,this._keys=wt,this._values=wt),Rn},En.prototype.return=function(Rn){return this._index>=0&&(this._index=-1,this._keys=wt,this._values=wt),{value:Rn,done:!0}},En}();return function(){function En(){this._keys=[],this._values=[],this._cacheKey=Ve,this._cacheIndex=-2}return Object.defineProperty(En.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),En.prototype.has=function(Rn){return this._find(Rn,!1)>=0},En.prototype.get=function(Rn){var xn=this._find(Rn,!1);return xn>=0?this._values[xn]:void 0},En.prototype.set=function(Rn,xn){var si=this._find(Rn,!0);return this._values[si]=xn,this},En.prototype.delete=function(Rn){var xn=this._find(Rn,!1);if(xn>=0){for(var si=this._keys.length,ei=xn+1;ei=0&&(z|0)===z||_("invalid parameter type, ("+z+")"+U(Ee)+". must be a nonnegative integer")}function ht(z,Ee,Ze){Ee.indexOf(z)<0&&_("invalid value"+U(Ze)+". must be one of: "+Ee)}var mt=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function Dt(z){Object.keys(z).forEach(function(Ee){mt.indexOf(Ee)<0&&_('invalid regl constructor argument "'+Ee+'". must be one of '+mt)})}function Yt(z,Ee){for(z=z+"";z.length0&&Ee.push(new Xt("unknown",0,Ze))}}),Ee}function ur(z,Ee){Ee.forEach(function(Ze){var Ut=z[Ze.file];if(Ut){var cr=Ut.index[Ze.line];if(cr){cr.errors.push(Ze),Ut.hasErrors=!0;return}}z.unknown.hasErrors=!0,z.unknown.lines[0].errors.push(Ze)})}function Et(z,Ee,Ze,Ut,cr){if(!z.getShaderParameter(Ee,z.COMPILE_STATUS)){var zt=z.getShaderInfoLog(Ee),kt=Ut===z.FRAGMENT_SHADER?"fragment":"vertex";H(Ze,"string",kt+" shader source must be a string",cr);var Dr=Pr(Ze,cr),wr=hr(zt);ur(Dr,wr),Object.keys(Dr).forEach(function(Zr){var Br=Dr[Zr];if(!Br.hasErrors)return;var Ur=[""],Wr=[""];function Er(zr,St){Ur.push(zr),Wr.push(St||"")}Er("file number "+Zr+": "+Br.name+` -`,"color:red;text-decoration:underline;font-weight:bold"),Br.lines.forEach(function(zr){if(zr.errors.length>0){Er(Yt(zr.number,4)+"| ","background-color:yellow; font-weight:bold"),Er(zr.line+re,"color:red; background-color:yellow; font-weight:bold");var St=0;zr.errors.forEach(function(Qt){var kr=Qt.message,Jr=/^\s*'(.*)'\s*:\s*(.*)$/.exec(kr);if(Jr){var gr=Jr[1];switch(kr=Jr[2],gr){case"assign":gr="=";break}St=Math.max(zr.line.indexOf(gr,St),0)}else St=0;Er(Yt("| ",6)),Er(Yt("^^^",St+3)+re,"font-weight:bold"),Er(Yt("| ",6)),Er(kr+re,"font-weight:bold")}),Er(Yt("| ",6)+re)}else Er(Yt(zr.number,4)+"| "),Er(zr.line+re,"color:red")}),typeof document!="undefined"&&!window.chrome?(Wr[0]=Ur.join("%c"),console.log.apply(console,Wr)):console.log(Ur.join(""))}),le.raise("Error compiling "+kt+" shader, "+Dr[0].name)}}function nt(z,Ee,Ze,Ut,cr){if(!z.getProgramParameter(Ee,z.LINK_STATUS)){var zt=z.getProgramInfoLog(Ee),kt=Pr(Ze,cr),Dr=Pr(Ut,cr),wr='Error linking program with vertex shader, "'+Dr[0].name+'", and fragment shader "'+kt[0].name+'"';typeof document!="undefined"?console.log("%c"+wr+re+"%c"+zt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(wr+re+zt),le.raise(wr)}}function Pt(z){z._commandRef=yt()}function ft(z,Ee,Ze,Ut){Pt(z);function cr(wr){return wr?Ut.id(wr):0}z._fragId=cr(z.static.frag),z._vertId=cr(z.static.vert);function zt(wr,Zr){Object.keys(Zr).forEach(function(Br){wr[Ut.id(Br)]=!0})}var kt=z._uniformSet={};zt(kt,Ee.static),zt(kt,Ee.dynamic);var Dr=z._attributeSet={};zt(Dr,Ze.static),zt(Dr,Ze.dynamic),z._hasCount="count"in z.static||"count"in z.dynamic||"elements"in z.static||"elements"in z.dynamic}function qt(z,Ee){var Ze=bt();_(z+" in command "+(Ee||yt())+(Ze==="unknown"?"":" called from "+Ze))}function Sr(z,Ee,Ze){z||qt(Ee,Ze||yt())}function te(z,Ee,Ze,Ut){z in Ee||qt("unknown parameter ("+z+")"+U(Ze)+". possible values: "+Object.keys(Ee).join(),Ut||yt())}function H(z,Ee,Ze,Ut){qe(z,Ee)||qt("invalid parameter type"+U(Ze)+". expected "+Ee+", got "+typeof z,Ut||yt())}function K(z){z()}function Be(z,Ee,Ze){z.texture?ht(z.texture._texture.internalformat,Ee,"unsupported texture format for attachment"):ht(z.renderbuffer._renderbuffer.format,Ze,"unsupported renderbuffer format for attachment")}var Ae=33071,dt=9728,Ue=9984,We=9985,it=9986,Mt=9987,yr=5120,lr=5121,Cn=5122,mn=5123,un=5124,oi=5125,jn=5126,rn=32819,$i=32820,Wi=33635,Zi=34042,Jn=36193,Bn={};Bn[yr]=Bn[lr]=1,Bn[Cn]=Bn[mn]=Bn[Jn]=Bn[Wi]=Bn[rn]=Bn[$i]=2,Bn[un]=Bn[oi]=Bn[jn]=Bn[Zi]=4;function Do(z,Ee){return z===$i||z===rn||z===Wi?2:z===Zi?4:Bn[z]*Ee}function oa(z){return!(z&z-1)&&!!z}function $a(z,Ee,Ze){var Ut,cr=Ee.width,zt=Ee.height,kt=Ee.channels;le(cr>0&&cr<=Ze.maxTextureSize&&zt>0&&zt<=Ze.maxTextureSize,"invalid texture shape"),(z.wrapS!==Ae||z.wrapT!==Ae)&&le(oa(cr)&&oa(zt),"incompatible wrap mode for texture, both width and height must be power of 2"),Ee.mipmask===1?cr!==1&&zt!==1&&le(z.minFilter!==Ue&&z.minFilter!==it&&z.minFilter!==We&&z.minFilter!==Mt,"min filter requires mipmap"):(le(oa(cr)&&oa(zt),"texture must be a square power of 2 to support mipmapping"),le(Ee.mipmask===(cr<<1)-1,"missing or incomplete mipmap data")),Ee.type===jn&&(Ze.extensions.indexOf("oes_texture_float_linear")<0&&le(z.minFilter===dt&&z.magFilter===dt,"filter not supported, must enable oes_texture_float_linear"),le(!z.genMipmaps,"mipmap generation not supported with float textures"));var Dr=Ee.images;for(Ut=0;Ut<16;++Ut)if(Dr[Ut]){var wr=cr>>Ut,Zr=zt>>Ut;le(Ee.mipmask&1<0&&cr<=Ut.maxTextureSize&&zt>0&&zt<=Ut.maxTextureSize,"invalid texture shape"),le(cr===zt,"cube map must be square"),le(Ee.wrapS===Ae&&Ee.wrapT===Ae,"wrap mode not supported by cube map");for(var Dr=0;Dr>Br,Er=zt>>Br;le(wr.mipmask&1<1&&Ee===Ze&&(Ee==='"'||Ee==="'"))return['"'+_t(z.substr(1,z.length-2))+'"'];var Ut=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(z);if(Ut)return Kt(z.substr(0,Ut.index)).concat(Kt(Ut[1])).concat(Kt(z.substr(Ut.index+Ut[0].length)));var cr=z.split(".");if(cr.length===1)return['"'+_t(z)+'"'];for(var zt=[],kt=0;kt0,"invalid pixel ratio"))):F.raise("invalid arguments to regl"),Ze&&(Ze.nodeName.toLowerCase()==="canvas"?cr=Ze:Ut=Ze),!zt){if(!cr){F(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var Er=Rn(Ut||document.body,Ur,Zr);if(!Er)return null;cr=Er.canvas,Wr=Er.onDestroy}kt.premultipliedAlpha===void 0&&(kt.premultipliedAlpha=!0),zt=xn(cr,kt)}return zt?{gl:zt,canvas:cr,container:Ut,extensions:Dr,optionalExtensions:wr,pixelRatio:Zr,profile:Br,onDone:Ur,onDestroy:Wr}:(Wr(),Ur("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Ks(z,Ee){var Ze={};function Ut(kt){F.type(kt,"string","extension name must be string");var Dr=kt.toLowerCase(),wr;try{wr=Ze[Dr]=z.getExtension(Dr)}catch(Zr){}return!!wr}for(var cr=0;cr65535)<<4,z>>>=Ee,Ze=(z>255)<<3,z>>>=Ze,Ee|=Ze,Ze=(z>15)<<2,z>>>=Ze,Ee|=Ze,Ze=(z>3)<<1,z>>>=Ze,Ee|=Ze,Ee|z>>1}function De(){var z=di(8,function(){return[]});function Ee(zt){var kt=V(zt),Dr=z[q(kt)>>2];return Dr.length>0?Dr.pop():new ArrayBuffer(kt)}function Ze(zt){z[q(zt.byteLength)>>2].push(zt)}function Ut(zt,kt){var Dr=null;switch(zt){case W:Dr=new Int8Array(Ee(kt),0,kt);break;case Q:Dr=new Uint8Array(Ee(kt),0,kt);break;case se:Dr=new Int16Array(Ee(2*kt),0,kt);break;case xe:Dr=new Uint16Array(Ee(2*kt),0,kt);break;case Re:Dr=new Int32Array(Ee(4*kt),0,kt);break;case Je:Dr=new Uint32Array(Ee(4*kt),0,kt);break;case lt:Dr=new Float32Array(Ee(4*kt),0,kt);break;default:return null}return Dr.length!==kt?Dr.subarray(0,kt):Dr}function cr(zt){Ze(zt.buffer)}return{alloc:Ee,free:Ze,allocType:Ut,freeType:cr}}var et=De();et.zero=De();var be=3408,er=3410,Tr=3411,bn=3412,nn=3413,ar=3414,Kr=3415,Hr=33901,$r=33902,hi=3379,Qr=3386,vi=34921,Yi=36347,ci=36348,Li=35661,Si=35660,Xo=34930,Ki=36349,Ia=34076,Ai=34024,mi=7936,Ti=7937,Pa=7938,cu=35724,ma=34047,Aa=36063,$l=34852,os=3553,Ta=34067,fi=34069,Oa=33984,ia=6408,So=5126,ha=5121,$o=36160,Vo=36053,Ru=36064,ss=16384,Cc=function(z,Ee){var Ze=1;Ee.ext_texture_filter_anisotropic&&(Ze=z.getParameter(ma));var Ut=1,cr=1;Ee.webgl_draw_buffers&&(Ut=z.getParameter($l),cr=z.getParameter(Aa));var zt=!!Ee.oes_texture_float;if(zt){var kt=z.createTexture();z.bindTexture(os,kt),z.texImage2D(os,0,ia,1,1,0,ia,So,null);var Dr=z.createFramebuffer();if(z.bindFramebuffer($o,Dr),z.framebufferTexture2D($o,Ru,os,kt,0),z.bindTexture(os,null),z.checkFramebufferStatus($o)!==Vo)zt=!1;else{z.viewport(0,0,1,1),z.clearColor(1,0,0,1),z.clear(ss);var wr=et.allocType(So,4);z.readPixels(0,0,1,1,ia,So,wr),z.getError()?zt=!1:(z.deleteFramebuffer(Dr),z.deleteTexture(kt),zt=wr[0]===1),et.freeType(wr)}}var Zr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Br=!0;if(!Zr){var Ur=z.createTexture(),Wr=et.allocType(ha,36);z.activeTexture(Oa),z.bindTexture(Ta,Ur),z.texImage2D(fi,0,ia,3,3,0,ia,ha,Wr),et.freeType(Wr),z.bindTexture(Ta,null),z.deleteTexture(Ur),Br=!z.getError()}return{colorBits:[z.getParameter(er),z.getParameter(Tr),z.getParameter(bn),z.getParameter(nn)],depthBits:z.getParameter(ar),stencilBits:z.getParameter(Kr),subpixelBits:z.getParameter(be),extensions:Object.keys(Ee).filter(function(Er){return!!Ee[Er]}),maxAnisotropic:Ze,maxDrawbuffers:Ut,maxColorAttachments:cr,pointSizeDims:z.getParameter(Hr),lineWidthDims:z.getParameter($r),maxViewportDims:z.getParameter(Qr),maxCombinedTextureUnits:z.getParameter(Li),maxCubeMapSize:z.getParameter(Ia),maxRenderbufferSize:z.getParameter(Ai),maxTextureUnits:z.getParameter(Xo),maxTextureSize:z.getParameter(hi),maxAttributes:z.getParameter(vi),maxVertexUniforms:z.getParameter(Yi),maxVertexTextureUnits:z.getParameter(Si),maxVaryingVectors:z.getParameter(ci),maxFragmentUniforms:z.getParameter(Ki),glsl:z.getParameter(cu),renderer:z.getParameter(Ti),vendor:z.getParameter(mi),version:z.getParameter(Pa),readFloat:zt,npotTextureCube:Br}};function Ea(z){return!!z&&typeof z=="object"&&Array.isArray(z.shape)&&Array.isArray(z.stride)&&typeof z.offset=="number"&&z.shape.length===z.stride.length&&(Array.isArray(z.data)||J(z.data))}var Qi=function(z){return Object.keys(z).map(function(Ee){return z[Ee]})},Wt={shape:jr,flatten:nr};function yn(z,Ee,Ze){for(var Ut=0;Ut0){var en;if(Array.isArray(Qt[0])){Ir=Qu(Qt);for(var xr=1,Xr=1;Xr0)if(typeof xr[0]=="number"){var qr=et.allocType(gr.dtype,xr.length);Qh(qr,xr),Ir(qr,Fn),et.freeType(qr)}else if(Array.isArray(xr[0])||J(xr[0])){ui=Qu(xr);var gt=Iu(xr,ui,gr.dtype);Ir(gt,Fn),et.freeType(gt)}else F.raise("invalid buffer data")}else if(Ea(xr)){ui=xr.shape;var pr=xr.stride,tt=0,wi=0,on=0,yi=0;ui.length===1?(tt=ui[0],wi=1,on=pr[0],yi=0):ui.length===2?(tt=ui[0],wi=ui[1],on=pr[0],yi=pr[1]):F.raise("invalid shape");var ai=Array.isArray(xr.data)?gr.dtype:Rf(xr.data),Yn=et.allocType(ai,tt*wi);Mf(Yn,xr.data,tt,wi,on,yi,xr.offset),Ir(Yn,Fn),et.freeType(Yn)}else F.raise("invalid data for buffer subdata");return tn}return kr||tn(St),tn._reglType="buffer",tn._buffer=gr,tn.subdata=en,Ze.profile&&(tn.stats=gr.stats),tn.destroy=function(){Wr(gr)},tn}function zr(){Qi(zt).forEach(function(St){St.buffer=z.createBuffer(),z.bindBuffer(St.type,St.buffer),z.bufferData(St.type,St.persistentData||St.byteLength,St.usage)})}return Ze.profile&&(Ee.getTotalBufferSize=function(){var St=0;return Object.keys(zt).forEach(function(Qt){St+=zt[Qt].stats.size}),St}),{create:Er,createStream:wr,destroyStream:Zr,clear:function(){Qi(zt).forEach(Wr),Dr.forEach(Wr)},getBuffer:function(St){return St&&St._buffer instanceof kt?St._buffer:null},restore:zr,_initBuffer:Ur}}var dh=0,vh=0,Jh=1,ep=1,Zp=4,Jc=4,Pu={points:dh,point:vh,lines:Jh,line:ep,triangles:Zp,triangle:Jc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},tp=0,Ho=1,Yl=4,Sl=5120,Xs=5121,Al=5122,ii=5123,el=5124,Os=5125,Ou=34963,tl=35040,rp=35044;function Ji(z,Ee,Ze,Ut){var cr={},zt=0,kt={uint8:Xs,uint16:ii};Ee.oes_element_index_uint&&(kt.uint32=Os);function Dr(zr){this.id=zt++,cr[this.id]=this,this.buffer=zr,this.primType=Yl,this.vertCount=0,this.type=0}Dr.prototype.bind=function(){this.buffer.bind()};var wr=[];function Zr(zr){var St=wr.pop();return St||(St=new Dr(Ze.create(null,Ou,!0,!1)._buffer)),Ur(St,zr,tl,-1,-1,0,0),St}function Br(zr){wr.push(zr)}function Ur(zr,St,Qt,kr,Jr,gr,tn){zr.buffer.bind();var Ir;if(St){var en=tn;!tn&&(!J(St)||Ea(St)&&!J(St.data))&&(en=Ee.oes_element_index_uint?Os:ii),Ze._initBuffer(zr.buffer,St,Qt,en,3)}else z.bufferData(Ou,gr,Qt),zr.buffer.dtype=Ir||Xs,zr.buffer.usage=Qt,zr.buffer.dimension=3,zr.buffer.byteLength=gr;if(Ir=tn,!tn){switch(zr.buffer.dtype){case Xs:case Sl:Ir=Xs;break;case ii:case Al:Ir=ii;break;case Os:case el:Ir=Os;break;default:F.raise("unsupported type for element array")}zr.buffer.dtype=Ir}zr.type=Ir,F(Ir!==Os||!!Ee.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var xr=Jr;xr<0&&(xr=zr.buffer.byteLength,Ir===ii?xr>>=1:Ir===Os&&(xr>>=2)),zr.vertCount=xr;var Xr=kr;if(kr<0){Xr=Yl;var Fn=zr.buffer.dimension;Fn===1&&(Xr=tp),Fn===2&&(Xr=Ho),Fn===3&&(Xr=Yl)}zr.primType=Xr}function Wr(zr){Ut.elementsCount--,F(zr.buffer!==null,"must not double destroy elements"),delete cr[zr.id],zr.buffer.destroy(),zr.buffer=null}function Er(zr,St){var Qt=Ze.create(null,Ou,!0),kr=new Dr(Qt._buffer);Ut.elementsCount++;function Jr(gr){if(!gr)Qt(),kr.primType=Yl,kr.vertCount=0,kr.type=Xs;else if(typeof gr=="number")Qt(gr),kr.primType=Yl,kr.vertCount=gr|0,kr.type=Xs;else{var tn=null,Ir=rp,en=-1,xr=-1,Xr=0,Fn=0;Array.isArray(gr)||J(gr)||Ea(gr)?tn=gr:(F.type(gr,"object","invalid arguments for elements"),"data"in gr&&(tn=gr.data,F(Array.isArray(tn)||J(tn)||Ea(tn),"invalid data for element buffer")),"usage"in gr&&(F.parameter(gr.usage,Mu,"invalid element buffer usage"),Ir=Mu[gr.usage]),"primitive"in gr&&(F.parameter(gr.primitive,Pu,"invalid element buffer primitive"),en=Pu[gr.primitive]),"count"in gr&&(F(typeof gr.count=="number"&&gr.count>=0,"invalid vertex count for elements"),xr=gr.count|0),"type"in gr&&(F.parameter(gr.type,kt,"invalid buffer type"),Fn=kt[gr.type]),"length"in gr?Xr=gr.length|0:(Xr=xr,Fn===ii||Fn===Al?Xr*=2:(Fn===Os||Fn===el)&&(Xr*=4))),Ur(kr,tn,Ir,en,xr,Xr,Fn)}return Jr}return Jr(zr),Jr._reglType="elements",Jr._elements=kr,Jr.subdata=function(gr,tn){return Qt.subdata(gr,tn),Jr},Jr.destroy=function(){Wr(kr)},Jr}return{create:Er,createStream:Zr,destroyStream:Br,getElements:function(zr){return typeof zr=="function"&&zr._elements instanceof Dr?zr._elements:null},clear:function(){Qi(cr).forEach(Wr)}}}var Ci=new Float32Array(1),fu=new Uint32Array(Ci.buffer),Du=5123;function mh(z){for(var Ee=et.allocType(Du,z.length),Ze=0;Ze>>31<<15,zt=(Ut<<1>>>24)-127,kt=Ut>>13&1024-1;if(zt<-24)Ee[Ze]=cr;else if(zt<-14){var Dr=-14-zt;Ee[Ze]=cr+(kt+1024>>Dr)}else zt>15?Ee[Ze]=cr+31744:Ee[Ze]=cr+(zt+15<<10)+kt}return Ee}function ja(z){return Array.isArray(z)||J(z)}var ef=function(z){return!(z&z-1)&&!!z},Vp=34467,xs=3553,ku=34067,Fu=34069,ql=6408,If=6406,wa=6407,Qs=6409,Rc=6410,Kl=32854,rl=32855,gh=36194,Ql=32819,ca=32820,tf=33635,np=34042,Tl=6402,Jl=34041,_h=35904,Pf=35906,wl=36193,hu=33776,Mc=33777,rf=33778,ec=33779,tc=35986,ip=35987,nl=34798,Js=35840,nf=35841,Ic=35842,yh=35843,Cl=36196,pu=5121,af=5123,Pc=5125,Bu=5126,Md=10242,Of=10243,xh=10497,Df=33071,ko=33648,bh=10240,ap=10241,kf=9728,Eh=9729,Oc=9984,of=9985,il=9986,pa=9987,Ff=33170,du=4352,Rl=4353,ki=4354,Ca=34046,$s=3317,Bf=37440,Ds=37441,sf=37443,op=37444,Sh=33984,Lf=[Oc,il,of,pa],Ml=[0,Qs,Rc,wa,ql],Fo={};Fo[Qs]=Fo[If]=Fo[Tl]=1,Fo[Jl]=Fo[Rc]=2,Fo[wa]=Fo[_h]=3,Fo[ql]=Fo[Pf]=4;function Ha(z){return"[object "+z+"]"}var al=Ha("HTMLCanvasElement"),Ah=Ha("OffscreenCanvas"),qa=Ha("CanvasRenderingContext2D"),vn=Ha("ImageBitmap"),ks=Ha("HTMLImageElement"),uf=Ha("HTMLVideoElement"),rc=Object.keys(Mn).concat([al,Ah,qa,vn,ks,uf]),us=[];us[pu]=1,us[Bu]=4,us[wl]=2,us[af]=2,us[Pc]=4;var ga=[];ga[Kl]=2,ga[rl]=2,ga[gh]=2,ga[Jl]=4,ga[hu]=.5,ga[Mc]=.5,ga[rf]=1,ga[ec]=1,ga[tc]=.5,ga[ip]=1,ga[nl]=1,ga[Js]=.5,ga[nf]=.25,ga[Ic]=.5,ga[yh]=.25,ga[Cl]=.5;function Th(z){return Array.isArray(z)&&(z.length===0||typeof z[0]=="number")}function Yr(z){if(!Array.isArray(z))return!1;var Ee=z.length;return!(Ee===0||!ja(z[0]))}function ol(z){return Object.prototype.toString.call(z)}function Dc(z){return ol(z)===al}function wh(z){return ol(z)===Ah}function eu(z){return ol(z)===qa}function Fs(z){return ol(z)===vn}function Nf(z){return ol(z)===ks}function Uf(z){return ol(z)===uf}function Yo(z){if(!z)return!1;var Ee=ol(z);return rc.indexOf(Ee)>=0?!0:Th(z)||Yr(z)||Ea(z)}function Lu(z){return Mn[Object.prototype.toString.call(z)]|0}function sp(z,Ee){var Ze=Ee.length;switch(z.type){case pu:case af:case Pc:case Bu:var Ut=et.allocType(z.type,Ze);Ut.set(Ee),z.data=Ut;break;case wl:z.data=mh(Ee);break;default:F.raise("unsupported texture type, must specify a typed array")}}function Il(z,Ee){return et.allocType(z.type===wl?Bu:z.type,Ee)}function lf(z,Ee){z.type===wl?(z.data=mh(Ee),et.freeType(Ee)):z.data=Ee}function up(z,Ee,Ze,Ut,cr,zt){for(var kt=z.width,Dr=z.height,wr=z.channels,Zr=kt*Dr*wr,Br=Il(z,Zr),Ur=0,Wr=0;Wr=1;)Dr+=kt*wr*wr,wr/=2;return Dr}else return kt*Ze*Ut}function Ie(z,Ee,Ze,Ut,cr,zt,kt){var Dr={"don't care":du,"dont care":du,nice:ki,fast:Rl},wr={repeat:xh,clamp:Df,mirror:ko},Zr={nearest:kf,linear:Eh},Br=L({mipmap:pa,"nearest mipmap nearest":Oc,"linear mipmap nearest":of,"nearest mipmap linear":il,"linear mipmap linear":pa},Zr),Ur={none:0,browser:op},Wr={uint8:pu,rgba4:Ql,rgb565:tf,"rgb5 a1":ca},Er={alpha:If,luminance:Qs,"luminance alpha":Rc,rgb:wa,rgba:ql,rgba4:Kl,"rgb5 a1":rl,rgb565:gh},zr={};Ee.ext_srgb&&(Er.srgb=_h,Er.srgba=Pf),Ee.oes_texture_float&&(Wr.float32=Wr.float=Bu),Ee.oes_texture_half_float&&(Wr.float16=Wr["half float"]=wl),Ee.webgl_depth_texture&&(L(Er,{depth:Tl,"depth stencil":Jl}),L(Wr,{uint16:af,uint32:Pc,"depth stencil":np})),Ee.webgl_compressed_texture_s3tc&&L(zr,{"rgb s3tc dxt1":hu,"rgba s3tc dxt1":Mc,"rgba s3tc dxt3":rf,"rgba s3tc dxt5":ec}),Ee.webgl_compressed_texture_atc&&L(zr,{"rgb atc":tc,"rgba atc explicit alpha":ip,"rgba atc interpolated alpha":nl}),Ee.webgl_compressed_texture_pvrtc&&L(zr,{"rgb pvrtc 4bppv1":Js,"rgb pvrtc 2bppv1":nf,"rgba pvrtc 4bppv1":Ic,"rgba pvrtc 2bppv1":yh}),Ee.webgl_compressed_texture_etc1&&(zr["rgb etc1"]=Cl);var St=Array.prototype.slice.call(z.getParameter(Vp));Object.keys(zr).forEach(function(ke){var Zt=zr[ke];St.indexOf(Zt)>=0&&(Er[ke]=Zt)});var Qt=Object.keys(Er);Ze.textureFormats=Qt;var kr=[];Object.keys(Er).forEach(function(ke){var Zt=Er[ke];kr[Zt]=ke});var Jr=[];Object.keys(Wr).forEach(function(ke){var Zt=Wr[ke];Jr[Zt]=ke});var gr=[];Object.keys(Zr).forEach(function(ke){var Zt=Zr[ke];gr[Zt]=ke});var tn=[];Object.keys(Br).forEach(function(ke){var Zt=Br[ke];tn[Zt]=ke});var Ir=[];Object.keys(wr).forEach(function(ke){var Zt=wr[ke];Ir[Zt]=ke});var en=Qt.reduce(function(ke,Zt){var Bt=Er[Zt];return Bt===Qs||Bt===If||Bt===Qs||Bt===Rc||Bt===Tl||Bt===Jl||Ee.ext_srgb&&(Bt===_h||Bt===Pf)?ke[Bt]=Bt:Bt===rl||Zt.indexOf("rgba")>=0?ke[Bt]=ql:ke[Bt]=wa,ke},{});function xr(){this.internalformat=ql,this.format=ql,this.type=pu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=op,this.width=0,this.height=0,this.channels=0}function Xr(ke,Zt){ke.internalformat=Zt.internalformat,ke.format=Zt.format,ke.type=Zt.type,ke.compressed=Zt.compressed,ke.premultiplyAlpha=Zt.premultiplyAlpha,ke.flipY=Zt.flipY,ke.unpackAlignment=Zt.unpackAlignment,ke.colorSpace=Zt.colorSpace,ke.width=Zt.width,ke.height=Zt.height,ke.channels=Zt.channels}function Fn(ke,Zt){if(!(typeof Zt!="object"||!Zt)){if("premultiplyAlpha"in Zt&&(F.type(Zt.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),ke.premultiplyAlpha=Zt.premultiplyAlpha),"flipY"in Zt&&(F.type(Zt.flipY,"boolean","invalid texture flip"),ke.flipY=Zt.flipY),"alignment"in Zt&&(F.oneOf(Zt.alignment,[1,2,4,8],"invalid texture unpack alignment"),ke.unpackAlignment=Zt.alignment),"colorSpace"in Zt&&(F.parameter(Zt.colorSpace,Ur,"invalid colorSpace"),ke.colorSpace=Ur[Zt.colorSpace]),"type"in Zt){var Bt=Zt.type;F(Ee.oes_texture_float||!(Bt==="float"||Bt==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),F(Ee.oes_texture_half_float||!(Bt==="half float"||Bt==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),F(Ee.webgl_depth_texture||!(Bt==="uint16"||Bt==="uint32"||Bt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),F.parameter(Bt,Wr,"invalid texture type"),ke.type=Wr[Bt]}var ln=ke.width,bi=ke.height,da=ke.channels,ue=!1;"shape"in Zt?(F(Array.isArray(Zt.shape)&&Zt.shape.length>=2,"shape must be an array"),ln=Zt.shape[0],bi=Zt.shape[1],Zt.shape.length===3&&(da=Zt.shape[2],F(da>0&&da<=4,"invalid number of channels"),ue=!0),F(ln>=0&&ln<=Ze.maxTextureSize,"invalid width"),F(bi>=0&&bi<=Ze.maxTextureSize,"invalid height")):("radius"in Zt&&(ln=bi=Zt.radius,F(ln>=0&&ln<=Ze.maxTextureSize,"invalid radius")),"width"in Zt&&(ln=Zt.width,F(ln>=0&&ln<=Ze.maxTextureSize,"invalid width")),"height"in Zt&&(bi=Zt.height,F(bi>=0&&bi<=Ze.maxTextureSize,"invalid height")),"channels"in Zt&&(da=Zt.channels,F(da>0&&da<=4,"invalid number of channels"),ue=!0)),ke.width=ln|0,ke.height=bi|0,ke.channels=da|0;var Se=!1;if("format"in Zt){var ze=Zt.format;F(Ee.webgl_depth_texture||!(ze==="depth"||ze==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),F.parameter(ze,Er,"invalid texture format");var Lt=ke.internalformat=Er[ze];ke.format=en[Lt],ze in Wr&&("type"in Zt||(ke.type=Wr[ze])),ze in zr&&(ke.compressed=!0),Se=!0}!ue&&Se?ke.channels=Fo[ke.format]:ue&&!Se?ke.channels!==Ml[ke.format]&&(ke.format=ke.internalformat=Ml[ke.channels]):Se&&ue&&F(ke.channels===Fo[ke.format],"number of channels inconsistent with specified format")}}function ui(ke){z.pixelStorei(Bf,ke.flipY),z.pixelStorei(Ds,ke.premultiplyAlpha),z.pixelStorei(sf,ke.colorSpace),z.pixelStorei($s,ke.unpackAlignment)}function qr(){xr.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function gt(ke,Zt){var Bt=null;if(Yo(Zt)?Bt=Zt:Zt&&(F.type(Zt,"object","invalid pixel data type"),Fn(ke,Zt),"x"in Zt&&(ke.xOffset=Zt.x|0),"y"in Zt&&(ke.yOffset=Zt.y|0),Yo(Zt.data)&&(Bt=Zt.data)),F(!ke.compressed||Bt instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),Zt.copy){F(!Bt,"can not specify copy and data field for the same texture");var ln=cr.viewportWidth,bi=cr.viewportHeight;ke.width=ke.width||ln-ke.xOffset,ke.height=ke.height||bi-ke.yOffset,ke.needsCopy=!0,F(ke.xOffset>=0&&ke.xOffset=0&&ke.yOffset0&&ke.width<=ln&&ke.height>0&&ke.height<=bi,"copy texture read out of bounds")}else if(!Bt)ke.width=ke.width||1,ke.height=ke.height||1,ke.channels=ke.channels||4;else if(J(Bt))ke.channels=ke.channels||4,ke.data=Bt,!("type"in Zt)&&ke.type===pu&&(ke.type=Lu(Bt));else if(Th(Bt))ke.channels=ke.channels||4,sp(ke,Bt),ke.alignment=1,ke.needsFree=!0;else if(Ea(Bt)){var da=Bt.data;!Array.isArray(da)&&ke.type===pu&&(ke.type=Lu(da));var ue=Bt.shape,Se=Bt.stride,ze,Lt,Ft,Ye,st,pt;ue.length===3?(Ft=ue[2],pt=Se[2]):(F(ue.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Ft=1,pt=1),ze=ue[0],Lt=ue[1],Ye=Se[0],st=Se[1],ke.alignment=1,ke.width=ze,ke.height=Lt,ke.channels=Ft,ke.format=ke.internalformat=Ml[Ft],ke.needsFree=!0,up(ke,da,Ye,st,pt,Bt.offset)}else if(Dc(Bt)||wh(Bt)||eu(Bt))Dc(Bt)||wh(Bt)?ke.element=Bt:ke.element=Bt.canvas,ke.width=ke.element.width,ke.height=ke.element.height,ke.channels=4;else if(Fs(Bt))ke.element=Bt,ke.width=Bt.width,ke.height=Bt.height,ke.channels=4;else if(Nf(Bt))ke.element=Bt,ke.width=Bt.naturalWidth,ke.height=Bt.naturalHeight,ke.channels=4;else if(Uf(Bt))ke.element=Bt,ke.width=Bt.videoWidth,ke.height=Bt.videoHeight,ke.channels=4;else if(Yr(Bt)){var Me=ke.width||Bt[0].length,rt=ke.height||Bt.length,ve=ke.channels;ja(Bt[0][0])?ve=ve||Bt[0][0].length:ve=ve||1;for(var at=Wt.shape(Bt),Gt=1,or=0;or=0,"oes_texture_float extension not enabled"):ke.type===wl&&F(Ze.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function pr(ke,Zt,Bt){var ln=ke.element,bi=ke.data,da=ke.internalformat,ue=ke.format,Se=ke.type,ze=ke.width,Lt=ke.height;ui(ke),ln?z.texImage2D(Zt,Bt,ue,ue,Se,ln):ke.compressed?z.compressedTexImage2D(Zt,Bt,da,ze,Lt,0,bi):ke.needsCopy?(Ut(),z.copyTexImage2D(Zt,Bt,ue,ke.xOffset,ke.yOffset,ze,Lt,0)):z.texImage2D(Zt,Bt,ue,ze,Lt,0,ue,Se,bi||null)}function tt(ke,Zt,Bt,ln,bi){var da=ke.element,ue=ke.data,Se=ke.internalformat,ze=ke.format,Lt=ke.type,Ft=ke.width,Ye=ke.height;ui(ke),da?z.texSubImage2D(Zt,bi,Bt,ln,ze,Lt,da):ke.compressed?z.compressedTexSubImage2D(Zt,bi,Bt,ln,Se,Ft,Ye,ue):ke.needsCopy?(Ut(),z.copyTexSubImage2D(Zt,bi,Bt,ln,ke.xOffset,ke.yOffset,Ft,Ye)):z.texSubImage2D(Zt,bi,Bt,ln,Ft,Ye,ze,Lt,ue)}var wi=[];function on(){return wi.pop()||new qr}function yi(ke){ke.needsFree&&et.freeType(ke.data),qr.call(ke),wi.push(ke)}function ai(){xr.call(this),this.genMipmaps=!1,this.mipmapHint=du,this.mipmask=0,this.images=Array(16)}function Yn(ke,Zt,Bt){var ln=ke.images[0]=on();ke.mipmask=1,ln.width=ke.width=Zt,ln.height=ke.height=Bt,ln.channels=ke.channels=4}function Ui(ke,Zt){var Bt=null;if(Yo(Zt))Bt=ke.images[0]=on(),Xr(Bt,ke),gt(Bt,Zt),ke.mipmask=1;else if(Fn(ke,Zt),Array.isArray(Zt.mipmap))for(var ln=Zt.mipmap,bi=0;bi>=bi,Bt.height>>=bi,gt(Bt,ln[bi]),ke.mipmask|=1<=0&&!("faces"in Zt)&&(ke.genMipmaps=!0)}if("mag"in Zt){var ln=Zt.mag;F.parameter(ln,Zr),ke.magFilter=Zr[ln]}var bi=ke.wrapS,da=ke.wrapT;if("wrap"in Zt){var ue=Zt.wrap;typeof ue=="string"?(F.parameter(ue,wr),bi=da=wr[ue]):Array.isArray(ue)&&(F.parameter(ue[0],wr),F.parameter(ue[1],wr),bi=wr[ue[0]],da=wr[ue[1]])}else{if("wrapS"in Zt){var Se=Zt.wrapS;F.parameter(Se,wr),bi=wr[Se]}if("wrapT"in Zt){var ze=Zt.wrapT;F.parameter(ze,wr),da=wr[ze]}}if(ke.wrapS=bi,ke.wrapT=da,"anisotropic"in Zt){var Lt=Zt.anisotropic;F(typeof Lt=="number"&&Lt>=1&&Lt<=Ze.maxAnisotropic,"aniso samples must be between 1 and "),ke.anisotropic=Zt.anisotropic}if("mipmap"in Zt){var Ft=!1;switch(typeof Zt.mipmap){case"string":F.parameter(Zt.mipmap,Dr,"invalid mipmap hint"),ke.mipmapHint=Dr[Zt.mipmap],ke.genMipmaps=!0,Ft=!0;break;case"boolean":Ft=ke.genMipmaps=Zt.mipmap;break;case"object":F(Array.isArray(Zt.mipmap),"invalid mipmap type"),ke.genMipmaps=!1,Ft=!0;break;default:F.raise("invalid mipmap type")}Ft&&!("min"in Zt)&&(ke.minFilter=Oc)}}function _o(ke,Zt){z.texParameteri(Zt,ap,ke.minFilter),z.texParameteri(Zt,bh,ke.magFilter),z.texParameteri(Zt,Md,ke.wrapS),z.texParameteri(Zt,Of,ke.wrapT),Ee.ext_texture_filter_anisotropic&&z.texParameteri(Zt,Ca,ke.anisotropic),ke.genMipmaps&&(z.hint(Ff,ke.mipmapHint),z.generateMipmap(Zt))}var Qa=0,Ro={},ps=Ze.maxTextureUnits,Mo=Array(ps).map(function(){return null});function xi(ke){xr.call(this),this.mipmask=0,this.internalformat=ql,this.id=Qa++,this.refCount=1,this.target=ke,this.texture=z.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Sa,kt.profile&&(this.stats={size:0})}function es(ke){z.activeTexture(Sh),z.bindTexture(ke.target,ke.texture)}function aa(){var ke=Mo[0];ke?z.bindTexture(ke.target,ke.texture):z.bindTexture(xs,null)}function Wn(ke){var Zt=ke.texture;F(Zt,"must not double destroy texture");var Bt=ke.unit,ln=ke.target;Bt>=0&&(z.activeTexture(Sh+Bt),z.bindTexture(ln,null),Mo[Bt]=null),z.deleteTexture(Zt),ke.texture=null,ke.params=null,ke.pixels=null,ke.refCount=0,delete Ro[ke.id],zt.textureCount--}L(xi.prototype,{bind:function(){var ke=this;ke.bindCount+=1;var Zt=ke.unit;if(Zt<0){for(var Bt=0;Bt0)continue;ln.unit=-1}Mo[Bt]=ke,Zt=Bt;break}Zt>=ps&&F.raise("insufficient number of texture units"),kt.profile&&zt.maxTextureUnits>st)-Ft,pt.height=pt.height||(Bt.height>>st)-Ye,F(Bt.type===pt.type&&Bt.format===pt.format&&Bt.internalformat===pt.internalformat,"incompatible format for texture.subimage"),F(Ft>=0&&Ye>=0&&Ft+pt.width<=Bt.width&&Ye+pt.height<=Bt.height,"texture.subimage write out of bounds"),F(Bt.mipmask&1<>Ft;++Ft){var Ye=ze>>Ft,st=Lt>>Ft;if(!Ye||!st)break;z.texImage2D(xs,Ft,Bt.format,Ye,st,0,Bt.format,Bt.type,null)}return aa(),kt.profile&&(Bt.stats.size=Ct(Bt.internalformat,Bt.type,ze,Lt,!1,!1)),ln}return ln(ke,Zt),ln.subimage=bi,ln.resize=da,ln._reglType="texture2d",ln._texture=Bt,kt.profile&&(ln.stats=Bt.stats),ln.destroy=function(){Bt.decRef()},ln}function Gi(ke,Zt,Bt,ln,bi,da){var ue=new xi(ku);Ro[ue.id]=ue,zt.cubeCount++;var Se=new Array(6);function ze(Ye,st,pt,Me,rt,ve){var at,Gt=ue.texInfo;for(Sa.call(Gt),at=0;at<6;++at)Se[at]=Ri();if(typeof Ye=="number"||!Ye){var or=Ye|0||1;for(at=0;at<6;++at)Yn(Se[at],or,or)}else if(typeof Ye=="object")if(st)Ui(Se[0],Ye),Ui(Se[1],st),Ui(Se[2],pt),Ui(Se[3],Me),Ui(Se[4],rt),Ui(Se[5],ve);else if(go(Gt,Ye),Fn(ue,Ye),"faces"in Ye){var _r=Ye.faces;for(F(Array.isArray(_r)&&_r.length===6,"cube faces must be a length 6 array"),at=0;at<6;++at)F(typeof _r[at]=="object"&&!!_r[at],"invalid input for cube map face"),Xr(Se[at],ue),Ui(Se[at],_r[at])}else for(at=0;at<6;++at)Ui(Se[at],Ye);else F.raise("invalid arguments to cube map");for(Xr(ue,Se[0]),Ze.npotTextureCube||F(ef(ue.width)&&ef(ue.height),"your browser does not support non power or two texture dimensions"),Gt.genMipmaps?ue.mipmask=(Se[0].width<<1)-1:ue.mipmask=Se[0].mipmask,F.textureCube(ue,Gt,Se,Ze),ue.internalformat=Se[0].internalformat,ze.width=Se[0].width,ze.height=Se[0].height,es(ue),at=0;at<6;++at)mo(Se[at],Fu+at);for(_o(Gt,ku),aa(),kt.profile&&(ue.stats.size=Ct(ue.internalformat,ue.type,ze.width,ze.height,Gt.genMipmaps,!0)),ze.format=kr[ue.internalformat],ze.type=Jr[ue.type],ze.mag=gr[Gt.magFilter],ze.min=tn[Gt.minFilter],ze.wrapS=Ir[Gt.wrapS],ze.wrapT=Ir[Gt.wrapT],at=0;at<6;++at)lo(Se[at]);return ze}function Lt(Ye,st,pt,Me,rt){F(!!st,"must specify image data"),F(typeof Ye=="number"&&Ye===(Ye|0)&&Ye>=0&&Ye<6,"invalid face");var ve=pt|0,at=Me|0,Gt=rt|0,or=on();return Xr(or,ue),or.width=0,or.height=0,gt(or,st),or.width=or.width||(ue.width>>Gt)-ve,or.height=or.height||(ue.height>>Gt)-at,F(ue.type===or.type&&ue.format===or.format&&ue.internalformat===or.internalformat,"incompatible format for texture.subimage"),F(ve>=0&&at>=0&&ve+or.width<=ue.width&&at+or.height<=ue.height,"texture.subimage write out of bounds"),F(ue.mipmask&1<>Me;++Me)z.texImage2D(Fu+pt,Me,ue.format,st>>Me,st>>Me,0,ue.format,ue.type,null);return aa(),kt.profile&&(ue.stats.size=Ct(ue.internalformat,ue.type,ze.width,ze.height,!1,!0)),ze}}return ze(ke,Zt,Bt,ln,bi,da),ze.subimage=Lt,ze.resize=Ft,ze._reglType="textureCube",ze._texture=ue,kt.profile&&(ze.stats=ue.stats),ze.destroy=function(){ue.decRef()},ze}function yo(){for(var ke=0;ke>ln,Bt.height>>ln,0,Bt.internalformat,Bt.type,null);else for(var bi=0;bi<6;++bi)z.texImage2D(Fu+bi,ln,Bt.internalformat,Bt.width>>ln,Bt.height>>ln,0,Bt.internalformat,Bt.type,null);_o(Bt.texInfo,Bt.target)})}return{create2D:Mi,createCube:Gi,clear:yo,getTexture:function(ke){return null},restore:Xu}}var B=36161,Ys=32854,me=32855,Bo=36194,no=33189,vu=36168,bs=34041,Da=35907,nc=34836,On=34842,gn=34843,Bs=[];Bs[Ys]=2,Bs[me]=2,Bs[Bo]=2,Bs[no]=2,Bs[vu]=1,Bs[bs]=4,Bs[Da]=4,Bs[nc]=16,Bs[On]=8,Bs[gn]=6;function qo(z,Ee,Ze){return Bs[z]*Ee*Ze}var mu=function(z,Ee,Ze,Ut,cr){var zt={rgba4:Ys,rgb565:Bo,"rgb5 a1":me,depth:no,stencil:vu,"depth stencil":bs};Ee.ext_srgb&&(zt.srgba=Da),Ee.ext_color_buffer_half_float&&(zt.rgba16f=On,zt.rgb16f=gn),Ee.webgl_color_buffer_float&&(zt.rgba32f=nc);var kt=[];Object.keys(zt).forEach(function(Er){var zr=zt[Er];kt[zr]=Er});var Dr=0,wr={};function Zr(Er){this.id=Dr++,this.refCount=1,this.renderbuffer=Er,this.format=Ys,this.width=0,this.height=0,cr.profile&&(this.stats={size:0})}Zr.prototype.decRef=function(){--this.refCount<=0&&Br(this)};function Br(Er){var zr=Er.renderbuffer;F(zr,"must not double destroy renderbuffer"),z.bindRenderbuffer(B,null),z.deleteRenderbuffer(zr),Er.renderbuffer=null,Er.refCount=0,delete wr[Er.id],Ut.renderbufferCount--}function Ur(Er,zr){var St=new Zr(z.createRenderbuffer());wr[St.id]=St,Ut.renderbufferCount++;function Qt(Jr,gr){var tn=0,Ir=0,en=Ys;if(typeof Jr=="object"&&Jr){var xr=Jr;if("shape"in xr){var Xr=xr.shape;F(Array.isArray(Xr)&&Xr.length>=2,"invalid renderbuffer shape"),tn=Xr[0]|0,Ir=Xr[1]|0}else"radius"in xr&&(tn=Ir=xr.radius|0),"width"in xr&&(tn=xr.width|0),"height"in xr&&(Ir=xr.height|0);"format"in xr&&(F.parameter(xr.format,zt,"invalid renderbuffer format"),en=zt[xr.format])}else typeof Jr=="number"?(tn=Jr|0,typeof gr=="number"?Ir=gr|0:Ir=tn):Jr?F.raise("invalid arguments to renderbuffer constructor"):tn=Ir=1;if(F(tn>0&&Ir>0&&tn<=Ze.maxRenderbufferSize&&Ir<=Ze.maxRenderbufferSize,"invalid renderbuffer size"),!(tn===St.width&&Ir===St.height&&en===St.format))return Qt.width=St.width=tn,Qt.height=St.height=Ir,St.format=en,z.bindRenderbuffer(B,St.renderbuffer),z.renderbufferStorage(B,en,tn,Ir),F(z.getError()===0,"invalid render buffer format"),cr.profile&&(St.stats.size=qo(St.format,St.width,St.height)),Qt.format=kt[St.format],Qt}function kr(Jr,gr){var tn=Jr|0,Ir=gr|0||tn;return tn===St.width&&Ir===St.height||(F(tn>0&&Ir>0&&tn<=Ze.maxRenderbufferSize&&Ir<=Ze.maxRenderbufferSize,"invalid renderbuffer size"),Qt.width=St.width=tn,Qt.height=St.height=Ir,z.bindRenderbuffer(B,St.renderbuffer),z.renderbufferStorage(B,St.format,tn,Ir),F(z.getError()===0,"invalid render buffer format"),cr.profile&&(St.stats.size=qo(St.format,St.width,St.height))),Qt}return Qt(Er,zr),Qt.resize=kr,Qt._reglType="renderbuffer",Qt._renderbuffer=St,cr.profile&&(Qt.stats=St.stats),Qt.destroy=function(){St.decRef()},Qt}cr.profile&&(Ut.getTotalRenderbufferSize=function(){var Er=0;return Object.keys(wr).forEach(function(zr){Er+=wr[zr].stats.size}),Er});function Wr(){Qi(wr).forEach(function(Er){Er.renderbuffer=z.createRenderbuffer(),z.bindRenderbuffer(B,Er.renderbuffer),z.renderbufferStorage(B,Er.format,Er.width,Er.height)}),z.bindRenderbuffer(B,null)}return{create:Ur,clear:function(){Qi(wr).forEach(Br)},restore:Wr}},ka=36160,Ls=36161,qs=3553,kc=34069,ea=36064,To=36096,Ch=36128,Pl=33306,zf=36053,gu=36054,Es=36055,ic=36057,Nu=36061,Zf=36193,Fc=5121,cf=5126,Vf=6407,ac=6408,oc=6402,Uu=[Vf,ac],zu=[];zu[ac]=4,zu[Vf]=3;var tu=[];tu[Fc]=1,tu[cf]=4,tu[Zf]=2;var jf=32854,Ol=32855,ru=36194,Dl=33189,ff=36168,Rh=34041,Hf=35907,h=34836,d=34842,p=34843,g=[jf,Ol,ru,Hf,d,p,h],S={};S[zf]="complete",S[gu]="incomplete attachment",S[ic]="incomplete dimensions",S[Es]="incomplete, missing attachment",S[Nu]="unsupported";function w(z,Ee,Ze,Ut,cr,zt){var kt={cur:null,next:null,dirty:!1,setFBO:null},Dr=["rgba"],wr=["rgba4","rgb565","rgb5 a1"];Ee.ext_srgb&&wr.push("srgba"),Ee.ext_color_buffer_half_float&&wr.push("rgba16f","rgb16f"),Ee.webgl_color_buffer_float&&wr.push("rgba32f");var Zr=["uint8"];Ee.oes_texture_half_float&&Zr.push("half float","float16"),Ee.oes_texture_float&&Zr.push("float","float32");function Br(qr,gt,pr){this.target=qr,this.texture=gt,this.renderbuffer=pr;var tt=0,wi=0;gt?(tt=gt.width,wi=gt.height):pr&&(tt=pr.width,wi=pr.height),this.width=tt,this.height=wi}function Ur(qr){qr&&(qr.texture&&qr.texture._texture.decRef(),qr.renderbuffer&&qr.renderbuffer._renderbuffer.decRef())}function Wr(qr,gt,pr){if(qr)if(qr.texture){var tt=qr.texture._texture,wi=Math.max(1,tt.width),on=Math.max(1,tt.height);F(wi===gt&&on===pr,"inconsistent width/height for supplied texture"),tt.refCount+=1}else{var yi=qr.renderbuffer._renderbuffer;F(yi.width===gt&&yi.height===pr,"inconsistent width/height for renderbuffer"),yi.refCount+=1}}function Er(qr,gt){gt&&(gt.texture?z.framebufferTexture2D(ka,qr,gt.target,gt.texture._texture.texture,0):z.framebufferRenderbuffer(ka,qr,Ls,gt.renderbuffer._renderbuffer.renderbuffer))}function zr(qr){var gt=qs,pr=null,tt=null,wi=qr;typeof qr=="object"&&(wi=qr.data,"target"in qr&&(gt=qr.target|0)),F.type(wi,"function","invalid attachment data");var on=wi._reglType;return on==="texture2d"?(pr=wi,F(gt===qs)):on==="textureCube"?(pr=wi,F(gt>=kc&>=2,"invalid shape for framebuffer"),Yn=es[0],Ui=es[1]}else"radius"in xi&&(Yn=Ui=xi.radius),"width"in xi&&(Yn=xi.width),"height"in xi&&(Ui=xi.height);("color"in xi||"colors"in xi)&&(Ri=xi.color||xi.colors,Array.isArray(Ri)&&F(Ri.length===1||Ee.webgl_draw_buffers,"multiple render targets not supported")),Ri||("colorCount"in xi&&(_o=xi.colorCount|0,F(_o>0,"invalid color buffer count")),"colorTexture"in xi&&(lo=!!xi.colorTexture,Sa="rgba4"),"colorType"in xi&&(go=xi.colorType,lo?(F(Ee.oes_texture_float||!(go==="float"||go==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),F(Ee.oes_texture_half_float||!(go==="half float"||go==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):go==="half float"||go==="float16"?(F(Ee.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),Sa="rgba16f"):(go==="float"||go==="float32")&&(F(Ee.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),Sa="rgba32f"),F.oneOf(go,Zr,"invalid color type")),"colorFormat"in xi&&(Sa=xi.colorFormat,Dr.indexOf(Sa)>=0?lo=!0:wr.indexOf(Sa)>=0?lo=!1:lo?F.oneOf(xi.colorFormat,Dr,"invalid color format for texture"):F.oneOf(xi.colorFormat,wr,"invalid color format for renderbuffer"))),("depthTexture"in xi||"depthStencilTexture"in xi)&&(Mo=!!(xi.depthTexture||xi.depthStencilTexture),F(!Mo||Ee.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in xi&&(typeof xi.depth=="boolean"?mo=xi.depth:(Qa=xi.depth,Wo=!1)),"stencil"in xi&&(typeof xi.stencil=="boolean"?Wo=xi.stencil:(Ro=xi.stencil,mo=!1)),"depthStencil"in xi&&(typeof xi.depthStencil=="boolean"?mo=Wo=xi.depthStencil:(ps=xi.depthStencil,mo=!1,Wo=!1))}var aa=null,Wn=null,Mi=null,Gi=null;if(Array.isArray(Ri))aa=Ri.map(zr);else if(Ri)aa=[zr(Ri)];else for(aa=new Array(_o),ai=0;ai<_o;++ai)aa[ai]=St(Yn,Ui,lo,Sa,go);F(Ee.webgl_draw_buffers||aa.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),F(aa.length<=Ze.maxColorAttachments,"too many color attachments, not supported"),Yn=Yn||aa[0].width,Ui=Ui||aa[0].height,Qa?Wn=zr(Qa):mo&&!Wo&&(Wn=St(Yn,Ui,Mo,"depth","uint32")),Ro?Mi=zr(Ro):Wo&&!mo&&(Mi=St(Yn,Ui,!1,"stencil","uint8")),ps?Gi=zr(ps):!Qa&&!Ro&&Wo&&mo&&(Gi=St(Yn,Ui,Mo,"depth stencil","depth stencil")),F(!!Qa+!!Ro+!!ps<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var yo=null;for(ai=0;ai=0||aa[ai].renderbuffer&&g.indexOf(aa[ai].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+ai+" is invalid"),aa[ai]&&aa[ai].texture){var Xu=zu[aa[ai].texture._texture.format]*tu[aa[ai].texture._texture.type];yo===null?yo=Xu:F(yo===Xu,"all color attachments much have the same number of bits per pixel.")}return Wr(Wn,Yn,Ui),F(!Wn||Wn.texture&&Wn.texture._texture.format===oc||Wn.renderbuffer&&Wn.renderbuffer._renderbuffer.format===Dl,"invalid depth attachment for framebuffer object"),Wr(Mi,Yn,Ui),F(!Mi||Mi.renderbuffer&&Mi.renderbuffer._renderbuffer.format===ff,"invalid stencil attachment for framebuffer object"),Wr(Gi,Yn,Ui),F(!Gi||Gi.texture&&Gi.texture._texture.format===Rh||Gi.renderbuffer&&Gi.renderbuffer._renderbuffer.format===Rh,"invalid depth-stencil attachment for framebuffer object"),Ir(pr),pr.width=Yn,pr.height=Ui,pr.colorAttachments=aa,pr.depthAttachment=Wn,pr.stencilAttachment=Mi,pr.depthStencilAttachment=Gi,tt.color=aa.map(Qt),tt.depth=Qt(Wn),tt.stencil=Qt(Mi),tt.depthStencil=Qt(Gi),tt.width=pr.width,tt.height=pr.height,xr(pr),tt}function wi(on,yi){F(kt.next!==pr,"can not resize a framebuffer which is currently in use");var ai=Math.max(on|0,1),Yn=Math.max(yi|0||ai,1);if(ai===pr.width&&Yn===pr.height)return tt;for(var Ui=pr.colorAttachments,mo=0;mo=2,"invalid shape for framebuffer"),F(lo[0]===lo[1],"cube framebuffer must be square"),ai=lo[0]}else"radius"in Ri&&(ai=Ri.radius|0),"width"in Ri?(ai=Ri.width|0,"height"in Ri&&F(Ri.height===ai,"must be square")):"height"in Ri&&(ai=Ri.height|0);("color"in Ri||"colors"in Ri)&&(Yn=Ri.color||Ri.colors,Array.isArray(Yn)&&F(Yn.length===1||Ee.webgl_draw_buffers,"multiple render targets not supported")),Yn||("colorCount"in Ri&&(Wo=Ri.colorCount|0,F(Wo>0,"invalid color buffer count")),"colorType"in Ri&&(F.oneOf(Ri.colorType,Zr,"invalid color type"),mo=Ri.colorType),"colorFormat"in Ri&&(Ui=Ri.colorFormat,F.oneOf(Ri.colorFormat,Dr,"invalid color format for texture"))),"depth"in Ri&&(yi.depth=Ri.depth),"stencil"in Ri&&(yi.stencil=Ri.stencil),"depthStencil"in Ri&&(yi.depthStencil=Ri.depthStencil)}var Sa;if(Yn)if(Array.isArray(Yn))for(Sa=[],on=0;on0&&(yi.depth=gt[0].depth,yi.stencil=gt[0].stencil,yi.depthStencil=gt[0].depthStencil),gt[on]?gt[on](yi):gt[on]=Xr(yi)}return L(pr,{width:ai,height:ai,color:Sa})}function tt(wi){var on,yi=wi|0;if(F(yi>0&&yi<=Ze.maxCubeMapSize,"invalid radius for cube fbo"),yi===pr.width)return pr;var ai=pr.color;for(on=0;on0,"must specify at least one attribute");for(var Fn=0;Fn=1&&pr.size<=4,"size must be between 1 and 4"),F(pr.offset>=0,"invalid offset"),F(pr.stride>=0&&pr.stride<=255,"stride must be between 0 and 255"),F(pr.divisor>=0,"divisor must be positive"),F(!pr.divisor||!!Ee.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in gt?(F(qr>0,"first attribute must not be a constant"),pr.x=+gt.x||0,pr.y=+gt.y||0,pr.z=+gt.z||0,pr.w=+gt.w||0,pr.state=2):F(!1,"invalid attribute spec for location "+qr)}return en.refresh(),xr}return xr.destroy=function(){en.destroy()},xr._vao=en,xr._reglType="vao",xr(Ir)}return Br}var ce=35632,ge=35633,_e=35718,Fe=35721;function Pe(z,Ee,Ze,Ut){var cr={},zt={};function kt(St,Qt,kr,Jr){this.name=St,this.id=Qt,this.location=kr,this.info=Jr}function Dr(St,Qt){for(var kr=0;kr1)for(var ui=0;uiSt&&(St=Qt.stats.uniformsCount)}),St},Ze.getMaxAttributesCount=function(){var St=0;return Br.forEach(function(Qt){Qt.stats.attributesCount>St&&(St=Qt.stats.attributesCount)}),St});function zr(){cr={},zt={};for(var St=0;St=0,"missing vertex shader",kr),F.command(Qt>=0,"missing fragment shader",kr);var gr=Zr[Qt];gr||(gr=Zr[Qt]={});var tn=gr[St];if(tn&&!Jr)return tn;var Ir=new Wr(Qt,St);return Ze.shaderCount++,Er(Ir,kr,Jr),tn||(gr[St]=Ir),Br.push(Ir),Ir},restore:zr,shader:wr,frag:-1,vert:-1}}var Xe=6408,we=5121,Ge=3333,ct=5126;function At(z,Ee,Ze,Ut,cr,zt,kt){function Dr(Br){var Ur;Ee.next===null?(F(cr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Ur=we):(F(Ee.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Ur=Ee.next.colorAttachments[0].texture._texture.type,zt.oes_texture_float?(F(Ur===we||Ur===ct,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Ur===ct&&F(kt.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):F(Ur===we,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Wr=0,Er=0,zr=Ut.framebufferWidth,St=Ut.framebufferHeight,Qt=null;J(Br)?Qt=Br:Br&&(F.type(Br,"object","invalid arguments to regl.read()"),Wr=Br.x|0,Er=Br.y|0,F(Wr>=0&&Wr=0&&Er0&&zr+Wr<=Ut.framebufferWidth,"invalid width for read pixels"),F(St>0&&St+Er<=Ut.framebufferHeight,"invalid height for read pixels"),Ze();var kr=zr*St*4;return Qt||(Ur===we?Qt=new Uint8Array(kr):Ur===ct&&(Qt=Qt||new Float32Array(kr))),F.isTypedArray(Qt,"data buffer for regl.read() must be a typedarray"),F(Qt.byteLength>=kr,"data buffer for regl.read() too small"),z.pixelStorei(Ge,4),z.readPixels(Wr,Er,zr,St,Xe,Ur,Qt),Qt}function wr(Br){var Ur;return Ee.setFBO({framebuffer:Br.framebuffer},function(){Ur=Dr(Br)}),Ur}function Zr(Br){return!Br||!("framebuffer"in Br)?Dr(Br):wr(Br)}return Zr}function $t(z){return Array.prototype.slice.call(z)}function Nt(z){return $t(z).join("")}function tr(){var z=0,Ee=[],Ze=[];function Ut(Ur){for(var Wr=0;Wr0&&(Ur.push(St,"="),Ur.push.apply(Ur,$t(arguments)),Ur.push(";")),St}return L(Wr,{def:zr,toString:function(){return Nt([Er.length>0?"var "+Er.join(",")+";":"",Nt(Ur)])}})}function zt(){var Ur=cr(),Wr=cr(),Er=Ur.toString,zr=Wr.toString;function St(Qt,kr){Wr(Qt,kr,"=",Ur.def(Qt,kr),";")}return L(function(){Ur.apply(Ur,$t(arguments))},{def:Ur.def,entry:Ur,exit:Wr,save:St,set:function(Qt,kr,Jr){St(Qt,kr),Ur(Qt,kr,"=",Jr,";")},toString:function(){return Er()+zr()}})}function kt(){var Ur=Nt(arguments),Wr=zt(),Er=zt(),zr=Wr.toString,St=Er.toString;return L(Wr,{then:function(){return Wr.apply(Wr,$t(arguments)),this},else:function(){return Er.apply(Er,$t(arguments)),this},toString:function(){var Qt=St();return Qt&&(Qt="else{"+Qt+"}"),Nt(["if(",Ur,"){",zr(),"}",Qt])}})}var Dr=cr(),wr={};function Zr(Ur,Wr){var Er=[];function zr(){var gr="a"+Er.length;return Er.push(gr),gr}Wr=Wr||0;for(var St=0;St>16,P>>16],u_pixel_coord_lower:[65535&C,65535&P]}}Ha.prototype.draw=function(h,d,p,g,S,w,C,P,Z,Y,pe,_e,ye,Ue,ke,Ke){var Ie,$e=h.gl;if(!this.failedToCreate){for(var vt in h.program.set(this.program),h.setDepthMode(p),h.setStencilMode(g),h.setColorMode(S),h.setCullFace(w),this.fixedUniforms)this.fixedUniforms[vt].set(C[vt]);Ue&&Ue.setUniforms(h,this.binderUniforms,_e,{zoom:ye});for(var Rt=(Ie={},Ie[$e.LINES]=2,Ie[$e.TRIANGLES]=3,Ie[$e.LINE_STRIP]=1,Ie)[d],Jt=0,zt=pe.get();Jt0?1-1/(1.001-C):-C),u_contrast_factor:(w=S.paint.get("raster-contrast"),w>0?1/(1-w):1+w),u_spin_weights:Pf(S.paint.get("raster-hue-rotate"))};var w,C};function Pf(h){h*=Math.PI/180;var d=Math.sin(h),p=Math.cos(h);return[(2*p+1)/3,(-Math.sqrt(3)*d-p+1)/3,(Math.sqrt(3)*d-p+1)/3]}var wl,hu=function(h,d,p,g,S,w,C,P,Z,Y){var pe=S.transform;return{u_is_size_zoom_constant:+(h==="constant"||h==="source"),u_is_size_feature_constant:+(h==="constant"||h==="camera"),u_size_t:d?d.uSizeT:0,u_size:d?d.uSize:0,u_camera_to_center_distance:pe.cameraToCenterDistance,u_pitch:pe.pitch/360*2*Math.PI,u_rotate_symbol:+p,u_aspect_ratio:pe.width/pe.height,u_fade_change:S.options.fadeDuration?S.symbolFadeChange:1,u_matrix:w,u_label_plane_matrix:C,u_coord_matrix:P,u_is_text:+Z,u_pitch_with_map:+g,u_texsize:Y,u_texture:0}},Mc=function(h,d,p,g,S,w,C,P,Z,Y,pe){var _e=S.transform;return _.extend(hu(h,d,p,g,S,w,C,P,Z,Y),{u_gamma_scale:g?Math.cos(_e._pitch)*_e.cameraToCenterDistance:1,u_device_pixel_ratio:_.browser.devicePixelRatio,u_is_halo:+pe})},rf=function(h,d,p,g,S,w,C,P,Z,Y){return _.extend(Mc(h,d,p,g,S,w,C,P,!0,Z,!0),{u_texsize_icon:Y,u_texture_icon:1})},ec=function(h,d,p){return{u_matrix:h,u_opacity:d,u_color:p}},tc=function(h,d,p,g,S,w){return _.extend(function(C,P,Z,Y){var pe=Z.imageManager.getPattern(C.from.toString()),_e=Z.imageManager.getPattern(C.to.toString()),ye=Z.imageManager.getPixelSize(),Ue=ye.width,ke=ye.height,Ke=Math.pow(2,Y.tileID.overscaledZ),Ie=Y.tileSize*Math.pow(2,Z.transform.tileZoom)/Ke,$e=Ie*(Y.tileID.canonical.x+Y.tileID.wrap*Ke),vt=Ie*Y.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:pe.tl,u_pattern_br_a:pe.br,u_pattern_tl_b:_e.tl,u_pattern_br_b:_e.br,u_texsize:[Ue,ke],u_mix:P.t,u_pattern_size_a:pe.displaySize,u_pattern_size_b:_e.displaySize,u_scale_a:P.fromScale,u_scale_b:P.toScale,u_tile_units_to_pixels:1/ha(Y,1,Z.transform.tileZoom),u_pixel_coord_upper:[$e>>16,vt>>16],u_pixel_coord_lower:[65535&$e,65535&vt]}}(g,w,p,S),{u_matrix:h,u_opacity:d})},ip={fillExtrusion:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_lightpos:new _.Uniform3f(h,d.u_lightpos),u_lightintensity:new _.Uniform1f(h,d.u_lightintensity),u_lightcolor:new _.Uniform3f(h,d.u_lightcolor),u_vertical_gradient:new _.Uniform1f(h,d.u_vertical_gradient),u_opacity:new _.Uniform1f(h,d.u_opacity)}},fillExtrusionPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_lightpos:new _.Uniform3f(h,d.u_lightpos),u_lightintensity:new _.Uniform1f(h,d.u_lightintensity),u_lightcolor:new _.Uniform3f(h,d.u_lightcolor),u_vertical_gradient:new _.Uniform1f(h,d.u_vertical_gradient),u_height_factor:new _.Uniform1f(h,d.u_height_factor),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade),u_opacity:new _.Uniform1f(h,d.u_opacity)}},fill:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},fillPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},fillOutline:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world)}},fillOutlinePattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world),u_image:new _.Uniform1i(h,d.u_image),u_texsize:new _.Uniform2f(h,d.u_texsize),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},circle:function(h,d){return{u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_scale_with_map:new _.Uniform1i(h,d.u_scale_with_map),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_extrude_scale:new _.Uniform2f(h,d.u_extrude_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},collisionBox:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pixels_to_tile_units:new _.Uniform1f(h,d.u_pixels_to_tile_units),u_extrude_scale:new _.Uniform2f(h,d.u_extrude_scale),u_overscale_factor:new _.Uniform1f(h,d.u_overscale_factor)}},collisionCircle:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_inv_matrix:new _.UniformMatrix4f(h,d.u_inv_matrix),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_viewport_size:new _.Uniform2f(h,d.u_viewport_size)}},debug:function(h,d){return{u_color:new _.UniformColor(h,d.u_color),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_overlay:new _.Uniform1i(h,d.u_overlay),u_overlay_scale:new _.Uniform1f(h,d.u_overlay_scale)}},clippingMask:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},heatmap:function(h,d){return{u_extrude_scale:new _.Uniform1f(h,d.u_extrude_scale),u_intensity:new _.Uniform1f(h,d.u_intensity),u_matrix:new _.UniformMatrix4f(h,d.u_matrix)}},heatmapTexture:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_world:new _.Uniform2f(h,d.u_world),u_image:new _.Uniform1i(h,d.u_image),u_color_ramp:new _.Uniform1i(h,d.u_color_ramp),u_opacity:new _.Uniform1f(h,d.u_opacity)}},hillshade:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_latrange:new _.Uniform2f(h,d.u_latrange),u_light:new _.Uniform2f(h,d.u_light),u_shadow:new _.UniformColor(h,d.u_shadow),u_highlight:new _.UniformColor(h,d.u_highlight),u_accent:new _.UniformColor(h,d.u_accent)}},hillshadePrepare:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_image:new _.Uniform1i(h,d.u_image),u_dimension:new _.Uniform2f(h,d.u_dimension),u_zoom:new _.Uniform1f(h,d.u_zoom),u_unpack:new _.Uniform4f(h,d.u_unpack)}},line:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels)}},lineGradient:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_image:new _.Uniform1i(h,d.u_image),u_image_height:new _.Uniform1f(h,d.u_image_height)}},linePattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_texsize:new _.Uniform2f(h,d.u_texsize),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_image:new _.Uniform1i(h,d.u_image),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_scale:new _.Uniform3f(h,d.u_scale),u_fade:new _.Uniform1f(h,d.u_fade)}},lineSDF:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_ratio:new _.Uniform1f(h,d.u_ratio),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_units_to_pixels:new _.Uniform2f(h,d.u_units_to_pixels),u_patternscale_a:new _.Uniform2f(h,d.u_patternscale_a),u_patternscale_b:new _.Uniform2f(h,d.u_patternscale_b),u_sdfgamma:new _.Uniform1f(h,d.u_sdfgamma),u_image:new _.Uniform1i(h,d.u_image),u_tex_y_a:new _.Uniform1f(h,d.u_tex_y_a),u_tex_y_b:new _.Uniform1f(h,d.u_tex_y_b),u_mix:new _.Uniform1f(h,d.u_mix)}},raster:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_tl_parent:new _.Uniform2f(h,d.u_tl_parent),u_scale_parent:new _.Uniform1f(h,d.u_scale_parent),u_buffer_scale:new _.Uniform1f(h,d.u_buffer_scale),u_fade_t:new _.Uniform1f(h,d.u_fade_t),u_opacity:new _.Uniform1f(h,d.u_opacity),u_image0:new _.Uniform1i(h,d.u_image0),u_image1:new _.Uniform1i(h,d.u_image1),u_brightness_low:new _.Uniform1f(h,d.u_brightness_low),u_brightness_high:new _.Uniform1f(h,d.u_brightness_high),u_saturation_factor:new _.Uniform1f(h,d.u_saturation_factor),u_contrast_factor:new _.Uniform1f(h,d.u_contrast_factor),u_spin_weights:new _.Uniform3f(h,d.u_spin_weights)}},symbolIcon:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texture:new _.Uniform1i(h,d.u_texture)}},symbolSDF:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texture:new _.Uniform1i(h,d.u_texture),u_gamma_scale:new _.Uniform1f(h,d.u_gamma_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_is_halo:new _.Uniform1i(h,d.u_is_halo)}},symbolTextAndIcon:function(h,d){return{u_is_size_zoom_constant:new _.Uniform1i(h,d.u_is_size_zoom_constant),u_is_size_feature_constant:new _.Uniform1i(h,d.u_is_size_feature_constant),u_size_t:new _.Uniform1f(h,d.u_size_t),u_size:new _.Uniform1f(h,d.u_size),u_camera_to_center_distance:new _.Uniform1f(h,d.u_camera_to_center_distance),u_pitch:new _.Uniform1f(h,d.u_pitch),u_rotate_symbol:new _.Uniform1i(h,d.u_rotate_symbol),u_aspect_ratio:new _.Uniform1f(h,d.u_aspect_ratio),u_fade_change:new _.Uniform1f(h,d.u_fade_change),u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_label_plane_matrix:new _.UniformMatrix4f(h,d.u_label_plane_matrix),u_coord_matrix:new _.UniformMatrix4f(h,d.u_coord_matrix),u_is_text:new _.Uniform1i(h,d.u_is_text),u_pitch_with_map:new _.Uniform1i(h,d.u_pitch_with_map),u_texsize:new _.Uniform2f(h,d.u_texsize),u_texsize_icon:new _.Uniform2f(h,d.u_texsize_icon),u_texture:new _.Uniform1i(h,d.u_texture),u_texture_icon:new _.Uniform1i(h,d.u_texture_icon),u_gamma_scale:new _.Uniform1f(h,d.u_gamma_scale),u_device_pixel_ratio:new _.Uniform1f(h,d.u_device_pixel_ratio),u_is_halo:new _.Uniform1i(h,d.u_is_halo)}},background:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_opacity:new _.Uniform1f(h,d.u_opacity),u_color:new _.UniformColor(h,d.u_color)}},backgroundPattern:function(h,d){return{u_matrix:new _.UniformMatrix4f(h,d.u_matrix),u_opacity:new _.Uniform1f(h,d.u_opacity),u_image:new _.Uniform1i(h,d.u_image),u_pattern_tl_a:new _.Uniform2f(h,d.u_pattern_tl_a),u_pattern_br_a:new _.Uniform2f(h,d.u_pattern_br_a),u_pattern_tl_b:new _.Uniform2f(h,d.u_pattern_tl_b),u_pattern_br_b:new _.Uniform2f(h,d.u_pattern_br_b),u_texsize:new _.Uniform2f(h,d.u_texsize),u_mix:new _.Uniform1f(h,d.u_mix),u_pattern_size_a:new _.Uniform2f(h,d.u_pattern_size_a),u_pattern_size_b:new _.Uniform2f(h,d.u_pattern_size_b),u_scale_a:new _.Uniform1f(h,d.u_scale_a),u_scale_b:new _.Uniform1f(h,d.u_scale_b),u_pixel_coord_upper:new _.Uniform2f(h,d.u_pixel_coord_upper),u_pixel_coord_lower:new _.Uniform2f(h,d.u_pixel_coord_lower),u_tile_units_to_pixels:new _.Uniform1f(h,d.u_tile_units_to_pixels)}}};function nl(h,d,p,g,S,w,C){for(var P=h.context,Z=P.gl,Y=h.useProgram("collisionBox"),pe=[],_e=0,ye=0,Ue=0;Ue0){var Jt=_.create(),zt=$e;_.mul(Jt,Ie.placementInvProjMatrix,h.transform.glCoordMatrix),_.mul(Jt,Jt,Ie.placementViewportMatrix),pe.push({circleArray:Rt,circleOffset:ye,transform:zt,invTransform:Jt}),ye=_e+=Rt.length/4}vt&&Y.draw(P,Z.LINES,be.disabled,Oe.disabled,h.colorModeForRenderPass(),pt.disabled,Qs($e,h.transform,Ke),p.id,vt.layoutVertexBuffer,vt.indexBuffer,vt.segments,null,h.transform.zoom,null,null,vt.collisionVertexBuffer)}}if(C&&pe.length){var ar=h.useProgram("collisionCircle"),_r=new _.StructArrayLayout2f1f2i16;_r.resize(4*_e),_r._trim();for(var Nr=0,kr=0,un=pe;kr=0&&(ke[Ie.associatedIconIndex]={shiftedAnchor:_r,angle:Nr})}else Oa(Ie.numGlyphs,ye)}if(pe){Ue.clear();for(var un=h.icon.placedSymbolArray,Pn=0;Pn0){var C=_.browser.now(),P=(C-h.timeAdded)/w,Z=d?(C-d.timeAdded)/w:-1,Y=p.getSource(),pe=S.coveringZoomLevel({tileSize:Y.tileSize,roundZoom:Y.roundZoom}),_e=!d||Math.abs(d.tileID.overscaledZ-pe)>Math.abs(h.tileID.overscaledZ-pe),ye=_e&&h.refreshedUponExpiration?1:_.clamp(_e?P:1-Z,0,1);return h.refreshedUponExpiration&&P>=1&&(h.refreshedUponExpiration=!1),d?{opacity:1,mix:1-ye}:{opacity:ye,mix:0}}return{opacity:1,mix:0}}var xh=new _.Color(1,0,0,1),Df=new _.Color(0,1,0,1),Fo=new _.Color(0,0,1,1),bh=new _.Color(1,0,1,1),ap=new _.Color(0,1,1,1);function Ff(h,d,p,g){Oc(h,0,d+p/2,h.transform.width,p,g)}function Eh(h,d,p,g){Oc(h,d-p/2,0,p,h.transform.height,g)}function Oc(h,d,p,g,S,w){var C=h.context,P=C.gl;P.enable(P.SCISSOR_TEST),P.scissor(d*_.browser.devicePixelRatio,p*_.browser.devicePixelRatio,g*_.browser.devicePixelRatio,S*_.browser.devicePixelRatio),C.clear({color:w}),P.disable(P.SCISSOR_TEST)}function of(h,d,p){var g=h.context,S=g.gl,w=p.posMatrix,C=h.useProgram("debug"),P=be.disabled,Z=Oe.disabled,Y=h.colorModeForRenderPass();g.activeTexture.set(S.TEXTURE0),h.emptyTexture.bind(S.LINEAR,S.CLAMP_TO_EDGE),C.draw(g,S.LINE_STRIP,P,Z,Y,pt.disabled,Kl(w,_.Color.red),"$debug",h.debugBuffer,h.tileBorderIndexBuffer,h.debugSegments);var pe=d.getTileByID(p.key).latestRawTileData,_e=Math.floor((pe&&pe.byteLength||0)/1024),ye=d.getTile(p).tileSize,Ue=512/Math.min(ye,512)*(p.overscaledZ/h.transform.zoom)*.5,ke=p.canonical.toString();p.overscaledZ!==p.canonical.z&&(ke+=" => "+p.overscaledZ),function(Ke,Ie){Ke.initDebugOverlayCanvas();var $e=Ke.debugOverlayCanvas,vt=Ke.context.gl,Rt=Ke.debugOverlayCanvas.getContext("2d");Rt.clearRect(0,0,$e.width,$e.height),Rt.shadowColor="white",Rt.shadowBlur=2,Rt.lineWidth=1.5,Rt.strokeStyle="white",Rt.textBaseline="top",Rt.font="bold 36px Open Sans, sans-serif",Rt.fillText(Ie,5,5),Rt.strokeText(Ie,5,5),Ke.debugOverlayTexture.update($e),Ke.debugOverlayTexture.bind(vt.LINEAR,vt.CLAMP_TO_EDGE)}(h,ke+" "+_e+"kb"),C.draw(g,S.TRIANGLES,P,Z,it.alphaBlended,pt.disabled,Kl(w,_.Color.transparent,Ue),"$debug",h.debugBuffer,h.quadTriangleIndexBuffer,h.debugSegments)}var il={symbol:function(h,d,p,g,S){if(h.renderPass==="translucent"){var w=Oe.disabled,C=h.colorModeForRenderPass();p.layout.get("text-variable-anchor")&&function(P,Z,Y,pe,_e,ye,Ue){for(var ke=Z.transform,Ke=_e==="map",Ie=ye==="map",$e=0,vt=P;$e256&&this.clearStencil(),p.setColorMode(it.disabled),p.setDepthMode(be.disabled);var S=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var w=0,C=d;w256&&this.clearStencil();var h=this.nextStencilID++,d=this.context.gl;return new Oe({func:d.NOTEQUAL,mask:255},h,255,d.KEEP,d.KEEP,d.REPLACE)},pa.prototype.stencilModeForClipping=function(h){var d=this.context.gl;return new Oe({func:d.EQUAL,mask:255},this._tileClippingMaskIDs[h.key],0,d.KEEP,d.KEEP,d.REPLACE)},pa.prototype.stencilConfigForOverlap=function(h){var d,p=this.context.gl,g=h.sort(function(Z,Y){return Y.overscaledZ-Z.overscaledZ}),S=g[g.length-1].overscaledZ,w=g[0].overscaledZ-S+1;if(w>1){this.currentStencilSource=void 0,this.nextStencilID+w>256&&this.clearStencil();for(var C={},P=0;P=0;this.currentLayer--){var Rt=this.style._layers[g[this.currentLayer]],Jt=S[Rt.source],zt=Y[Rt.source];this._renderTileClippingMasks(Rt,zt),this.renderLayer(this,Jt,Rt,zt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?d.pop():null},pa.prototype.isPatternMissing=function(h){if(!h)return!1;if(!h.from||!h.to)return!0;var d=this.imageManager.getPattern(h.from.toString()),p=this.imageManager.getPattern(h.to.toString());return!d||!p},pa.prototype.useProgram=function(h,d){this.cache=this.cache||{};var p=""+h+(d?d.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[p]||(this.cache[p]=new Ha(this.context,h,fu[h],d,ip[h],this._showOverdrawInspector)),this.cache[p]},pa.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},pa.prototype.setBaseState=function(){var h=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(h.FUNC_ADD)},pa.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=_.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new _.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},pa.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var kf=function(h,d){this.points=h,this.planes=d};kf.fromInvProjectionMatrix=function(h,d,p){var g=Math.pow(2,p),S=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(function(C){return _.transformMat4([],C,h)}).map(function(C){return _.scale$1([],C,1/C[3]/d*g)}),w=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(C){var P=_.sub([],S[C[0]],S[C[1]]),Z=_.sub([],S[C[2]],S[C[1]]),Y=_.normalize([],_.cross([],P,Z)),pe=-_.dot(Y,S[C[1]]);return Y.concat(pe)});return new kf(S,w)};var du=function(h,d){this.min=h,this.max=d,this.center=_.scale$2([],_.add([],this.min,this.max),.5)};du.prototype.quadrant=function(h){for(var d=[h%2==0,h<2],p=_.clone$2(this.min),g=_.clone$2(this.max),S=0;S=0;if(w===0)return 0;w!==d.length&&(p=!1)}if(p)return 2;for(var P=0;P<3;P++){for(var Z=Number.MAX_VALUE,Y=-Number.MAX_VALUE,pe=0;pethis.max[P]-this.min[P])return 0}return 1};var Rl=function(h,d,p,g){if(h===void 0&&(h=0),d===void 0&&(d=0),p===void 0&&(p=0),g===void 0&&(g=0),isNaN(h)||h<0||isNaN(d)||d<0||isNaN(p)||p<0||isNaN(g)||g<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=h,this.bottom=d,this.left=p,this.right=g};Rl.prototype.interpolate=function(h,d,p){return d.top!=null&&h.top!=null&&(this.top=_.number(h.top,d.top,p)),d.bottom!=null&&h.bottom!=null&&(this.bottom=_.number(h.bottom,d.bottom,p)),d.left!=null&&h.left!=null&&(this.left=_.number(h.left,d.left,p)),d.right!=null&&h.right!=null&&(this.right=_.number(h.right,d.right,p)),this},Rl.prototype.getCenter=function(h,d){var p=_.clamp((this.left+h-this.right)/2,0,h),g=_.clamp((this.top+d-this.bottom)/2,0,d);return new _.Point(p,g)},Rl.prototype.equals=function(h){return this.top===h.top&&this.bottom===h.bottom&&this.left===h.left&&this.right===h.right},Rl.prototype.clone=function(){return new Rl(this.top,this.bottom,this.left,this.right)},Rl.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Li=function(h,d,p,g,S){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=S===void 0||S,this._minZoom=h||0,this._maxZoom=d||22,this._minPitch=p==null?0:p,this._maxPitch=g==null?60:g,this.setMaxBounds(),this.width=0,this.height=0,this._center=new _.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Rl,this._posMatrixCache={},this._alignedPosMatrixCache={}},Ca={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Li.prototype.clone=function(){var h=new Li(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return h.tileSize=this.tileSize,h.latRange=this.latRange,h.width=this.width,h.height=this.height,h._center=this._center,h.zoom=this.zoom,h.angle=this.angle,h._fov=this._fov,h._pitch=this._pitch,h._unmodified=this._unmodified,h._edgeInsets=this._edgeInsets.clone(),h._calcMatrices(),h},Ca.minZoom.get=function(){return this._minZoom},Ca.minZoom.set=function(h){this._minZoom!==h&&(this._minZoom=h,this.zoom=Math.max(this.zoom,h))},Ca.maxZoom.get=function(){return this._maxZoom},Ca.maxZoom.set=function(h){this._maxZoom!==h&&(this._maxZoom=h,this.zoom=Math.min(this.zoom,h))},Ca.minPitch.get=function(){return this._minPitch},Ca.minPitch.set=function(h){this._minPitch!==h&&(this._minPitch=h,this.pitch=Math.max(this.pitch,h))},Ca.maxPitch.get=function(){return this._maxPitch},Ca.maxPitch.set=function(h){this._maxPitch!==h&&(this._maxPitch=h,this.pitch=Math.min(this.pitch,h))},Ca.renderWorldCopies.get=function(){return this._renderWorldCopies},Ca.renderWorldCopies.set=function(h){h===void 0?h=!0:h===null&&(h=!1),this._renderWorldCopies=h},Ca.worldSize.get=function(){return this.tileSize*this.scale},Ca.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Ca.size.get=function(){return new _.Point(this.width,this.height)},Ca.bearing.get=function(){return-this.angle/Math.PI*180},Ca.bearing.set=function(h){var d=-_.wrap(h,-180,180)*Math.PI/180;this.angle!==d&&(this._unmodified=!1,this.angle=d,this._calcMatrices(),this.rotationMatrix=_.create$2(),_.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Ca.pitch.get=function(){return this._pitch/Math.PI*180},Ca.pitch.set=function(h){var d=_.clamp(h,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==d&&(this._unmodified=!1,this._pitch=d,this._calcMatrices())},Ca.fov.get=function(){return this._fov/Math.PI*180},Ca.fov.set=function(h){h=Math.max(.01,Math.min(60,h)),this._fov!==h&&(this._unmodified=!1,this._fov=h/180*Math.PI,this._calcMatrices())},Ca.zoom.get=function(){return this._zoom},Ca.zoom.set=function(h){var d=Math.min(Math.max(h,this.minZoom),this.maxZoom);this._zoom!==d&&(this._unmodified=!1,this._zoom=d,this.scale=this.zoomScale(d),this.tileZoom=Math.floor(d),this.zoomFraction=d-this.tileZoom,this._constrain(),this._calcMatrices())},Ca.center.get=function(){return this._center},Ca.center.set=function(h){h.lat===this._center.lat&&h.lng===this._center.lng||(this._unmodified=!1,this._center=h,this._constrain(),this._calcMatrices())},Ca.padding.get=function(){return this._edgeInsets.toJSON()},Ca.padding.set=function(h){this._edgeInsets.equals(h)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,h,1),this._calcMatrices())},Ca.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Li.prototype.isPaddingEqual=function(h){return this._edgeInsets.equals(h)},Li.prototype.interpolatePadding=function(h,d,p){this._unmodified=!1,this._edgeInsets.interpolate(h,d,p),this._constrain(),this._calcMatrices()},Li.prototype.coveringZoomLevel=function(h){var d=(h.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/h.tileSize));return Math.max(0,d)},Li.prototype.getVisibleUnwrappedCoordinates=function(h){var d=[new _.UnwrappedTileID(0,h)];if(this._renderWorldCopies)for(var p=this.pointCoordinate(new _.Point(0,0)),g=this.pointCoordinate(new _.Point(this.width,0)),S=this.pointCoordinate(new _.Point(this.width,this.height)),w=this.pointCoordinate(new _.Point(0,this.height)),C=Math.floor(Math.min(p.x,g.x,S.x,w.x)),P=Math.floor(Math.max(p.x,g.x,S.x,w.x)),Z=C-1;Z<=P+1;Z++)Z!==0&&d.push(new _.UnwrappedTileID(Z,h));return d},Li.prototype.coveringTiles=function(h){var d=this.coveringZoomLevel(h),p=d;if(h.minzoom!==void 0&&dh.maxzoom&&(d=h.maxzoom);var g=_.MercatorCoordinate.fromLngLat(this.center),S=Math.pow(2,d),w=[S*g.x,S*g.y,0],C=kf.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,d),P=h.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(P=d);var Z=function(kr){return{aabb:new du([kr*S,0,0],[(kr+1)*S,S,0]),zoom:0,x:0,y:0,wrap:kr,fullyVisible:!1}},Y=[],pe=[],_e=d,ye=h.reparseOverscaled?p:d;if(this._renderWorldCopies)for(var Ue=1;Ue<=3;Ue++)Y.push(Z(-Ue)),Y.push(Z(Ue));for(Y.push(Z(0));Y.length>0;){var ke=Y.pop(),Ke=ke.x,Ie=ke.y,$e=ke.fullyVisible;if(!$e){var vt=ke.aabb.intersects(C);if(vt===0)continue;$e=vt===2}var Rt=ke.aabb.distanceX(w),Jt=ke.aabb.distanceY(w),zt=Math.max(Math.abs(Rt),Math.abs(Jt));if(ke.zoom===_e||zt>3+(1<<_e-ke.zoom)-2&&ke.zoom>=P)pe.push({tileID:new _.OverscaledTileID(ke.zoom===_e?ye:ke.zoom,ke.wrap,ke.zoom,Ke,Ie),distanceSq:_.sqrLen([w[0]-.5-Ke,w[1]-.5-Ie])});else for(var ar=0;ar<4;ar++){var _r=(Ke<<1)+ar%2,Nr=(Ie<<1)+(ar>>1);Y.push({aabb:ke.aabb.quadrant(ar),zoom:ke.zoom+1,x:_r,y:Nr,wrap:ke.wrap,fullyVisible:$e})}}return pe.sort(function(kr,un){return kr.distanceSq-un.distanceSq}).map(function(kr){return kr.tileID})},Li.prototype.resize=function(h,d){this.width=h,this.height=d,this.pixelsToGLUnits=[2/h,-2/d],this._constrain(),this._calcMatrices()},Ca.unmodified.get=function(){return this._unmodified},Li.prototype.zoomScale=function(h){return Math.pow(2,h)},Li.prototype.scaleZoom=function(h){return Math.log(h)/Math.LN2},Li.prototype.project=function(h){var d=_.clamp(h.lat,-this.maxValidLatitude,this.maxValidLatitude);return new _.Point(_.mercatorXfromLng(h.lng)*this.worldSize,_.mercatorYfromLat(d)*this.worldSize)},Li.prototype.unproject=function(h){return new _.MercatorCoordinate(h.x/this.worldSize,h.y/this.worldSize).toLngLat()},Ca.point.get=function(){return this.project(this.center)},Li.prototype.setLocationAtPoint=function(h,d){var p=this.pointCoordinate(d),g=this.pointCoordinate(this.centerPoint),S=this.locationCoordinate(h),w=new _.MercatorCoordinate(S.x-(p.x-g.x),S.y-(p.y-g.y));this.center=this.coordinateLocation(w),this._renderWorldCopies&&(this.center=this.center.wrap())},Li.prototype.locationPoint=function(h){return this.coordinatePoint(this.locationCoordinate(h))},Li.prototype.pointLocation=function(h){return this.coordinateLocation(this.pointCoordinate(h))},Li.prototype.locationCoordinate=function(h){return _.MercatorCoordinate.fromLngLat(h)},Li.prototype.coordinateLocation=function(h){return h.toLngLat()},Li.prototype.pointCoordinate=function(h){var d=[h.x,h.y,0,1],p=[h.x,h.y,1,1];_.transformMat4(d,d,this.pixelMatrixInverse),_.transformMat4(p,p,this.pixelMatrixInverse);var g=d[3],S=p[3],w=d[1]/g,C=p[1]/S,P=d[2]/g,Z=p[2]/S,Y=P===Z?0:(0-P)/(Z-P);return new _.MercatorCoordinate(_.number(d[0]/g,p[0]/S,Y)/this.worldSize,_.number(w,C,Y)/this.worldSize)},Li.prototype.coordinatePoint=function(h){var d=[h.x*this.worldSize,h.y*this.worldSize,0,1];return _.transformMat4(d,d,this.pixelMatrix),new _.Point(d[0]/d[3],d[1]/d[3])},Li.prototype.getBounds=function(){return new _.LngLatBounds().extend(this.pointLocation(new _.Point(0,0))).extend(this.pointLocation(new _.Point(this.width,0))).extend(this.pointLocation(new _.Point(this.width,this.height))).extend(this.pointLocation(new _.Point(0,this.height)))},Li.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new _.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Li.prototype.setMaxBounds=function(h){h?(this.lngRange=[h.getWest(),h.getEast()],this.latRange=[h.getSouth(),h.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Li.prototype.calculatePosMatrix=function(h,d){d===void 0&&(d=!1);var p=h.key,g=d?this._alignedPosMatrixCache:this._posMatrixCache;if(g[p])return g[p];var S=h.canonical,w=this.worldSize/this.zoomScale(S.z),C=S.x+Math.pow(2,S.z)*h.wrap,P=_.identity(new Float64Array(16));return _.translate(P,P,[C*w,S.y*w,0]),_.scale(P,P,[w/_.EXTENT,w/_.EXTENT,1]),_.multiply(P,d?this.alignedProjMatrix:this.projMatrix,P),g[p]=new Float32Array(P),g[p]},Li.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Li.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var h,d,p,g,S=-90,w=90,C=-180,P=180,Z=this.size,Y=this._unmodified;if(this.latRange){var pe=this.latRange;S=_.mercatorYfromLat(pe[1])*this.worldSize,h=(w=_.mercatorYfromLat(pe[0])*this.worldSize)-Sw&&(g=w-Ke)}if(this.lngRange){var Ie=ye.x,$e=Z.x/2;Ie-$eP&&(p=P-$e)}p===void 0&&g===void 0||(this.center=this.unproject(new _.Point(p!==void 0?p:ye.x,g!==void 0?g:ye.y))),this._unmodified=Y,this._constraining=!1}},Li.prototype._calcMatrices=function(){if(this.height){var h=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var d=Math.PI/2+this._pitch,p=this._fov*(.5+h.y/this.height),g=Math.sin(p)*this.cameraToCenterDistance/Math.sin(_.clamp(Math.PI-d-p,.01,Math.PI-.01)),S=this.point,w=S.x,C=S.y,P=1.01*(Math.cos(Math.PI/2-this._pitch)*g+this.cameraToCenterDistance),Z=this.height/50,Y=new Float64Array(16);_.perspective(Y,this._fov,this.width/this.height,Z,P),Y[8]=2*-h.x/this.width,Y[9]=2*h.y/this.height,_.scale(Y,Y,[1,-1,1]),_.translate(Y,Y,[0,0,-this.cameraToCenterDistance]),_.rotateX(Y,Y,this._pitch),_.rotateZ(Y,Y,this.angle),_.translate(Y,Y,[-w,-C,0]),this.mercatorMatrix=_.scale([],Y,[this.worldSize,this.worldSize,this.worldSize]),_.scale(Y,Y,[1,1,_.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=Y,this.invProjMatrix=_.invert([],this.projMatrix);var pe=this.width%2/2,_e=this.height%2/2,ye=Math.cos(this.angle),Ue=Math.sin(this.angle),ke=w-Math.round(w)+ye*pe+Ue*_e,Ke=C-Math.round(C)+ye*_e+Ue*pe,Ie=new Float64Array(Y);if(_.translate(Ie,Ie,[ke>.5?ke-1:ke,Ke>.5?Ke-1:Ke,0]),this.alignedProjMatrix=Ie,Y=_.create(),_.scale(Y,Y,[this.width/2,-this.height/2,1]),_.translate(Y,Y,[1,-1,0]),this.labelPlaneMatrix=Y,Y=_.create(),_.scale(Y,Y,[1,-1,1]),_.translate(Y,Y,[-1,-1,0]),_.scale(Y,Y,[2/this.width,2/this.height,1]),this.glCoordMatrix=Y,this.pixelMatrix=_.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(Y=_.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=Y,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Li.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var h=this.pointCoordinate(new _.Point(0,0)),d=[h.x*this.worldSize,h.y*this.worldSize,0,1];return _.transformMat4(d,d,this.pixelMatrix)[3]/this.cameraToCenterDistance},Li.prototype.getCameraPoint=function(){var h=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new _.Point(0,h))},Li.prototype.getCameraQueryGeometry=function(h){var d=this.getCameraPoint();if(h.length===1)return[h[0],d];for(var p=d.x,g=d.y,S=d.x,w=d.y,C=0,P=h;C=3&&!h.some(function(p){return isNaN(p)})){var d=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(h[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+h[2],+h[1]],zoom:+h[0],bearing:d,pitch:+(h[4]||0)}),!0}return!1},Ys.prototype._updateHashUnthrottled=function(){var h=_.window.location.href.replace(/(#.+)?$/,this.getHashString());try{_.window.history.replaceState(_.window.history.state,null,h)}catch(d){}};var Bf={linearity:.3,easing:_.bezier(0,0,.3,1)},Fs=_.extend({deceleration:2500,maxSpeed:1400},Bf),sf=_.extend({deceleration:20,maxSpeed:1400},Bf),op=_.extend({deceleration:1e3,maxSpeed:360},Bf),Sh=_.extend({deceleration:1e3,maxSpeed:90},Bf),Lf=function(h){this._map=h,this.clear()};function Ml(h,d){(!h.duration||h.duration0&&d-h[0].time>160;)h.shift()},Lf.prototype._onMoveEnd=function(h){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var d={zoom:0,bearing:0,pitch:0,pan:new _.Point(0,0),pinchAround:void 0,around:void 0},p=0,g=this._inertiaBuffer;p=this._clickTolerance||this._map.fire(new Wa(h.type,this._map,h))},Ka.prototype.dblclick=function(h){return this._firePreventable(new Wa(h.type,this._map,h))},Ka.prototype.mouseover=function(h){this._map.fire(new Wa(h.type,this._map,h))},Ka.prototype.mouseout=function(h){this._map.fire(new Wa(h.type,this._map,h))},Ka.prototype.touchstart=function(h){return this._firePreventable(new al(h.type,this._map,h))},Ka.prototype.touchmove=function(h){this._map.fire(new al(h.type,this._map,h))},Ka.prototype.touchend=function(h){this._map.fire(new al(h.type,this._map,h))},Ka.prototype.touchcancel=function(h){this._map.fire(new al(h.type,this._map,h))},Ka.prototype._firePreventable=function(h){if(this._map.fire(h),h.defaultPrevented)return{}},Ka.prototype.isEnabled=function(){return!0},Ka.prototype.isActive=function(){return!1},Ka.prototype.enable=function(){},Ka.prototype.disable=function(){};var _n=function(h){this._map=h};_n.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},_n.prototype.mousemove=function(h){this._map.fire(new Wa(h.type,this._map,h))},_n.prototype.mousedown=function(){this._delayContextMenu=!0},_n.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Wa("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},_n.prototype.contextmenu=function(h){this._delayContextMenu?this._contextMenuEvent=h:this._map.fire(new Wa(h.type,this._map,h)),this._map.listens("contextmenu")&&h.preventDefault()},_n.prototype.isEnabled=function(){return!0},_n.prototype.isActive=function(){return!1},_n.prototype.enable=function(){},_n.prototype.disable=function(){};var ks=function(h,d){this._map=h,this._el=h.getCanvasContainer(),this._container=h.getContainer(),this._clickTolerance=d.clickTolerance||1};function uf(h,d){for(var p={},g=0;gthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=h.timeStamp),p.length===this.numTouches&&(this.centroid=function(g){for(var S=new _.Point(0,0),w=0,C=g;w30)&&(this.aborted=!0)}}},rc.prototype.touchend=function(h,d,p){if((!this.centroid||h.timeStamp-this.startTime>500)&&(this.aborted=!0),p.length===0){var g=!this.aborted&&this.centroid;if(this.reset(),g)return g}};var us=function(h){this.singleTap=new rc(h),this.numTaps=h.numTaps,this.reset()};us.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},us.prototype.touchstart=function(h,d,p){this.singleTap.touchstart(h,d,p)},us.prototype.touchmove=function(h,d,p){this.singleTap.touchmove(h,d,p)},us.prototype.touchend=function(h,d,p){var g=this.singleTap.touchend(h,d,p);if(g){var S=h.timeStamp-this.lastTime<500,w=!this.lastTap||this.lastTap.dist(g)<30;if(S&&w||this.reset(),this.count++,this.lastTime=h.timeStamp,this.lastTap=g,this.count===this.numTaps)return this.reset(),g}};var ga=function(){this._zoomIn=new us({numTouches:1,numTaps:2}),this._zoomOut=new us({numTouches:2,numTaps:1}),this.reset()};ga.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},ga.prototype.touchstart=function(h,d,p){this._zoomIn.touchstart(h,d,p),this._zoomOut.touchstart(h,d,p)},ga.prototype.touchmove=function(h,d,p){this._zoomIn.touchmove(h,d,p),this._zoomOut.touchmove(h,d,p)},ga.prototype.touchend=function(h,d,p){var g=this,S=this._zoomIn.touchend(h,d,p),w=this._zoomOut.touchend(h,d,p);return S?(this._active=!0,h.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(C){return C.easeTo({duration:300,zoom:C.getZoom()+1,around:C.unproject(S)},{originalEvent:h})}}):w?(this._active=!0,h.preventDefault(),setTimeout(function(){return g.reset()},0),{cameraAnimation:function(C){return C.easeTo({duration:300,zoom:C.getZoom()-1,around:C.unproject(w)},{originalEvent:h})}}):void 0},ga.prototype.touchcancel=function(){this.reset()},ga.prototype.enable=function(){this._enabled=!0},ga.prototype.disable=function(){this._enabled=!1,this.reset()},ga.prototype.isEnabled=function(){return this._enabled},ga.prototype.isActive=function(){return this._active};var Th={0:1,2:2},qr=function(h){this.reset(),this._clickTolerance=h.clickTolerance||1};qr.prototype.blur=function(){this.reset()},qr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},qr.prototype._correctButton=function(h,d){return!1},qr.prototype._move=function(h,d){return{}},qr.prototype.mousedown=function(h,d){if(!this._lastPoint){var p=U.mouseButton(h);this._correctButton(h,p)&&(this._lastPoint=d,this._eventButton=p)}},qr.prototype.mousemoveWindow=function(h,d){var p=this._lastPoint;if(p){if(h.preventDefault(),function(g,S){var w=Th[S];return g.buttons===void 0||(g.buttons&w)!==w}(h,this._eventButton))this.reset();else if(this._moved||!(d.dist(p)0&&(this._active=!0);var g=uf(p,d),S=new _.Point(0,0),w=new _.Point(0,0),C=0;for(var P in g){var Z=g[P],Y=this._touches[P];Y&&(S._add(Z),w._add(Z.sub(Y)),C++,g[P]=Z)}if(this._touches=g,!(CMath.abs(h.x)}var lf=function(h){function d(){h.apply(this,arguments)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.reset=function(){h.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},d.prototype._start=function(p){this._lastPoints=p,Il(p[0].sub(p[1]))&&(this._valid=!1)},d.prototype._move=function(p,g,S){var w=p[0].sub(this._lastPoints[0]),C=p[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(w,C,S.timeStamp),this._valid)return this._lastPoints=p,this._active=!0,{pitchDelta:(w.y+C.y)/2*-.5}},d.prototype.gestureBeginsVertically=function(p,g,S){if(this._valid!==void 0)return this._valid;var w=p.mag()>=2,C=g.mag()>=2;if(w||C){if(!w||!C)return this._firstMove===void 0&&(this._firstMove=S),S-this._firstMove<100&&void 0;var P=p.y>0==g.y>0;return Il(p)&&Il(g)&&P}},d}(Bs),up={panStep:100,bearingStep:15,pitchStep:10},Pt=function(){var h=up;this._panStep=h.panStep,this._bearingStep=h.bearingStep,this._pitchStep=h.pitchStep,this._rotationDisabled=!1};function Fe(h){return h*(2-h)}Pt.prototype.blur=function(){this.reset()},Pt.prototype.reset=function(){this._active=!1},Pt.prototype.keydown=function(h){var d=this;if(!(h.altKey||h.ctrlKey||h.metaKey)){var p=0,g=0,S=0,w=0,C=0;switch(h.keyCode){case 61:case 107:case 171:case 187:p=1;break;case 189:case 109:case 173:p=-1;break;case 37:h.shiftKey?g=-1:(h.preventDefault(),w=-1);break;case 39:h.shiftKey?g=1:(h.preventDefault(),w=1);break;case 38:h.shiftKey?S=1:(h.preventDefault(),C=-1);break;case 40:h.shiftKey?S=-1:(h.preventDefault(),C=1);break;default:return}return this._rotationDisabled&&(g=0,S=0),{cameraAnimation:function(P){var Z=P.getZoom();P.easeTo({duration:300,easeId:"keyboardHandler",easing:Fe,zoom:p?Math.round(Z)+p*(h.shiftKey?2:1):Z,bearing:P.getBearing()+g*d._bearingStep,pitch:P.getPitch()+S*d._pitchStep,offset:[-w*d._panStep,-C*d._panStep],center:P.getCenter()},{originalEvent:h})}}}},Pt.prototype.enable=function(){this._enabled=!0},Pt.prototype.disable=function(){this._enabled=!1,this.reset()},Pt.prototype.isEnabled=function(){return this._enabled},Pt.prototype.isActive=function(){return this._active},Pt.prototype.disableRotation=function(){this._rotationDisabled=!0},Pt.prototype.enableRotation=function(){this._rotationDisabled=!1};var B=function(h,d){this._map=h,this._el=h.getCanvasContainer(),this._handler=d,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,_.bindAll(["_onTimeout"],this)};B.prototype.setZoomRate=function(h){this._defaultZoomRate=h},B.prototype.setWheelZoomRate=function(h){this._wheelZoomRate=h},B.prototype.isEnabled=function(){return!!this._enabled},B.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},B.prototype.isZooming=function(){return!!this._zooming},B.prototype.enable=function(h){this.isEnabled()||(this._enabled=!0,this._aroundCenter=h&&h.around==="center")},B.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},B.prototype.wheel=function(h){if(this.isEnabled()){var d=h.deltaMode===_.window.WheelEvent.DOM_DELTA_LINE?40*h.deltaY:h.deltaY,p=_.browser.now(),g=p-(this._lastWheelEventTime||0);this._lastWheelEventTime=p,d!==0&&d%4.000244140625==0?this._type="wheel":d!==0&&Math.abs(d)<4?this._type="trackpad":g>400?(this._type=null,this._lastValue=d,this._timeout=setTimeout(this._onTimeout,40,h)):this._type||(this._type=Math.abs(g*d)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,d+=this._lastValue)),h.shiftKey&&d&&(d/=4),this._type&&(this._lastWheelEvent=h,this._delta-=d,this._active||this._start(h)),h.preventDefault()}},B.prototype._onTimeout=function(h){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(h)},B.prototype._start=function(h){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var d=U.mousePos(this._el,h);this._around=_.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(d)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},B.prototype.renderFrame=function(){var h=this;if(this._frameId&&(this._frameId=null,this.isActive())){var d=this._map.transform;if(this._delta!==0){var p=this._type==="wheel"&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,g=2/(1+Math.exp(-Math.abs(this._delta*p)));this._delta<0&&g!==0&&(g=1/g);var S=typeof this._targetZoom=="number"?d.zoomScale(this._targetZoom):d.scale;this._targetZoom=Math.min(d.maxZoom,Math.max(d.minZoom,d.scaleZoom(S*g))),this._type==="wheel"&&(this._startZoom=d.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var w,C=typeof this._targetZoom=="number"?this._targetZoom:d.zoom,P=this._startZoom,Z=this._easing,Y=!1;if(this._type==="wheel"&&P&&Z){var pe=Math.min((_.browser.now()-this._lastWheelEventTime)/200,1),_e=Z(pe);w=_.number(P,C,_e),pe<1?this._frameId||(this._frameId=!0):Y=!0}else w=C,Y=!0;return this._active=!0,Y&&(this._active=!1,this._finishTimeout=setTimeout(function(){h._zooming=!1,h._handler._triggerRenderFrame(),delete h._targetZoom,delete h._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Y,zoomDelta:w-d.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},B.prototype._smoothOutEasing=function(h){var d=_.ease;if(this._prevEase){var p=this._prevEase,g=(_.browser.now()-p.start)/p.duration,S=p.easing(g+.01)-p.easing(g),w=.27/Math.sqrt(S*S+1e-4)*.01,C=Math.sqrt(.0729-w*w);d=_.bezier(w,C,.25,1)}return this._prevEase={start:_.browser.now(),duration:h,easing:d},d},B.prototype.blur=function(){this.reset()},B.prototype.reset=function(){this._active=!1};var qs=function(h,d){this._clickZoom=h,this._tapZoom=d};qs.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},qs.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},qs.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},qs.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ge=function(){this.reset()};ge.prototype.reset=function(){this._active=!1},ge.prototype.blur=function(){this.reset()},ge.prototype.dblclick=function(h,d){return h.preventDefault(),{cameraAnimation:function(p){p.easeTo({duration:300,zoom:p.getZoom()+(h.shiftKey?-1:1),around:p.unproject(d)},{originalEvent:h})}}},ge.prototype.enable=function(){this._enabled=!0},ge.prototype.disable=function(){this._enabled=!1,this.reset()},ge.prototype.isEnabled=function(){return this._enabled},ge.prototype.isActive=function(){return this._active};var Bo=function(){this._tap=new us({numTouches:1,numTaps:1}),this.reset()};Bo.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Bo.prototype.touchstart=function(h,d,p){this._swipePoint||(this._tapTime&&h.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?p.length>0&&(this._swipePoint=d[0],this._swipeTouch=p[0].identifier):this._tap.touchstart(h,d,p))},Bo.prototype.touchmove=function(h,d,p){if(this._tapTime){if(this._swipePoint){if(p[0].identifier!==this._swipeTouch)return;var g=d[0],S=g.y-this._swipePoint.y;return this._swipePoint=g,h.preventDefault(),this._active=!0,{zoomDelta:S/128}}}else this._tap.touchmove(h,d,p)},Bo.prototype.touchend=function(h,d,p){this._tapTime?this._swipePoint&&p.length===0&&this.reset():this._tap.touchend(h,d,p)&&(this._tapTime=h.timeStamp)},Bo.prototype.touchcancel=function(){this.reset()},Bo.prototype.enable=function(){this._enabled=!0},Bo.prototype.disable=function(){this._enabled=!1,this.reset()},Bo.prototype.isEnabled=function(){return this._enabled},Bo.prototype.isActive=function(){return this._active};var io=function(h,d,p){this._el=h,this._mousePan=d,this._touchPan=p};io.prototype.enable=function(h){this._inertiaOptions=h||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},io.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},io.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},io.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var vu=function(h,d,p){this._pitchWithRotate=h.pitchWithRotate,this._mouseRotate=d,this._mousePitch=p};vu.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},vu.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},vu.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},vu.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var bs=function(h,d,p,g){this._el=h,this._touchZoom=d,this._touchRotate=p,this._tapDragZoom=g,this._rotationDisabled=!1,this._enabled=!0};bs.prototype.enable=function(h){this._touchZoom.enable(h),this._rotationDisabled||this._touchRotate.enable(h),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},bs.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},bs.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},bs.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},bs.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},bs.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Da=function(h){return h.zoom||h.drag||h.pitch||h.rotate},nc=function(h){function d(){h.apply(this,arguments)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d}(_.Event);function kn(h){return h.panDelta&&h.panDelta.mag()||h.zoomDelta||h.bearingDelta||h.pitchDelta}var yn=function(h,d){this._map=h,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Lf(h),this._bearingSnap=d.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(d),_.bindAll(["handleEvent","handleWindowEvent"],this);var p=this._el;this._listeners=[[p,"touchstart",{passive:!0}],[p,"touchmove",{passive:!1}],[p,"touchend",void 0],[p,"touchcancel",void 0],[p,"mousedown",void 0],[p,"mousemove",void 0],[p,"mouseup",void 0],[_.window.document,"mousemove",{capture:!0}],[_.window.document,"mouseup",void 0],[p,"mouseover",void 0],[p,"mouseout",void 0],[p,"dblclick",void 0],[p,"click",void 0],[p,"keydown",{capture:!1}],[p,"keyup",void 0],[p,"wheel",{passive:!1}],[p,"contextmenu",void 0],[_.window,"blur",void 0]];for(var g=0,S=this._listeners;gC?Math.min(2,ar):Math.max(.5,ar),Pn=Math.pow(un,1-Nr),zn=w.unproject(Jt.add(zt.mult(Nr*Pn)).mult(kr));w.setLocationAtPoint(w.renderWorldCopies?zn.wrap():zn,Ke)}S._fireMoveEvents(g)},function(Nr){S._afterEase(g,Nr)},p),this},d.prototype._prepareEase=function(p,g,S){S===void 0&&(S={}),this._moving=!0,g||S.moving||this.fire(new _.Event("movestart",p)),this._zooming&&!S.zooming&&this.fire(new _.Event("zoomstart",p)),this._rotating&&!S.rotating&&this.fire(new _.Event("rotatestart",p)),this._pitching&&!S.pitching&&this.fire(new _.Event("pitchstart",p))},d.prototype._fireMoveEvents=function(p){this.fire(new _.Event("move",p)),this._zooming&&this.fire(new _.Event("zoom",p)),this._rotating&&this.fire(new _.Event("rotate",p)),this._pitching&&this.fire(new _.Event("pitch",p))},d.prototype._afterEase=function(p,g){if(!this._easeId||!g||this._easeId!==g){delete this._easeId;var S=this._zooming,w=this._rotating,C=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,S&&this.fire(new _.Event("zoomend",p)),w&&this.fire(new _.Event("rotateend",p)),C&&this.fire(new _.Event("pitchend",p)),this.fire(new _.Event("moveend",p))}},d.prototype.flyTo=function(p,g){var S=this;if(!p.essential&&_.browser.prefersReducedMotion){var w=_.pick(p,["center","zoom","bearing","pitch","around"]);return this.jumpTo(w,g)}this.stop(),p=_.extend({offset:[0,0],speed:1.2,curve:1.42,easing:_.ease},p);var C=this.transform,P=this.getZoom(),Z=this.getBearing(),Y=this.getPitch(),pe=this.getPadding(),_e="zoom"in p?_.clamp(+p.zoom,C.minZoom,C.maxZoom):P,ye="bearing"in p?this._normalizeBearing(p.bearing,Z):Z,Ue="pitch"in p?+p.pitch:Y,ke="padding"in p?p.padding:C.padding,Ke=C.zoomScale(_e-P),Ie=_.Point.convert(p.offset),$e=C.centerPoint.add(Ie),vt=C.pointLocation($e),Rt=_.LngLat.convert(p.center||vt);this._normalizeCenter(Rt);var Jt=C.project(vt),zt=C.project(Rt).sub(Jt),ar=p.curve,_r=Math.max(C.width,C.height),Nr=_r/Ke,kr=zt.mag();if("minZoom"in p){var un=_.clamp(Math.min(p.minZoom,P,_e),C.minZoom,C.maxZoom),Pn=_r/C.zoomScale(un-P);ar=Math.sqrt(Pn/kr*2)}var zn=ar*ar;function Zn(Jn){var Kn=(Nr*Nr-_r*_r+(Jn?-1:1)*zn*zn*kr*kr)/(2*(Jn?Nr:_r)*zn*kr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Wi(Jn){return(Math.exp(Jn)-Math.exp(-Jn))/2}function vn(Jn){return(Math.exp(Jn)+Math.exp(-Jn))/2}var ei=Zn(0),_i=function(Jn){return vn(ei)/vn(ei+ar*Jn)},ri=function(Jn){return _r*((vn(ei)*(Wi(Kn=ei+ar*Jn)/vn(Kn))-Wi(ei))/zn)/kr;var Kn},qn=(Zn(1)-ei)/ar;if(Math.abs(kr)<1e-6||!isFinite(qn)){if(Math.abs(_r-Nr)<1e-6)return this.easeTo(p,g);var di=Nr<_r?-1:1;qn=Math.abs(Math.log(Nr/_r))/ar,ri=function(){return 0},_i=function(Jn){return Math.exp(di*ar*Jn)}}return p.duration="duration"in p?+p.duration:1e3*qn/("screenSpeed"in p?+p.screenSpeed/ar:+p.speed),p.maxDuration&&p.duration>p.maxDuration&&(p.duration=0),this._zooming=!0,this._rotating=Z!==ye,this._pitching=Ue!==Y,this._padding=!C.isPaddingEqual(ke),this._prepareEase(g,!1),this._ease(function(Jn){var Kn=Jn*qn,Co=1/_i(Kn);C.zoom=Jn===1?_e:P+C.scaleZoom(Co),S._rotating&&(C.bearing=_.number(Z,ye,Jn)),S._pitching&&(C.pitch=_.number(Y,Ue,Jn)),S._padding&&(C.interpolatePadding(pe,ke,Jn),$e=C.centerPoint.add(Ie));var Ua=Jn===1?Rt:C.unproject(Jt.add(zt.mult(ri(Kn))).mult(Co));C.setLocationAtPoint(C.renderWorldCopies?Ua.wrap():Ua,$e),S._fireMoveEvents(g)},function(){return S._afterEase(g)},p),this},d.prototype.isEasing=function(){return!!this._easeFrameId},d.prototype.stop=function(){return this._stop()},d.prototype._stop=function(p,g){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var S=this._onEaseEnd;delete this._onEaseEnd,S.call(this,g)}if(!p){var w=this.handlers;w&&w.stop(!1)}return this},d.prototype._ease=function(p,g,S){S.animate===!1||S.duration===0?(p(1),g()):(this._easeStart=_.browser.now(),this._easeOptions=S,this._onEaseFrame=p,this._onEaseEnd=g,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},d.prototype._renderFrameCallback=function(){var p=Math.min((_.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(p)),p<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},d.prototype._normalizeBearing=function(p,g){p=_.wrap(p,-180,180);var S=Math.abs(p-g);return Math.abs(p-360-g)180?-360:S<-180?360:0}},d}(_.Evented),qo=function(h){h===void 0&&(h={}),this.options=h,_.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};qo.prototype.getDefaultPosition=function(){return"bottom-right"},qo.prototype.onAdd=function(h){var d=this.options&&this.options.compact;return this._map=h,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=U.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=U.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),d&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),d===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},qo.prototype.onRemove=function(){U.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},qo.prototype._setElementTitle=function(h,d){var p=this._map._getUIString("AttributionControl."+d);h.title=p,h.setAttribute("aria-label",p)},qo.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},qo.prototype._updateEditLink=function(){var h=this._editLink;h||(h=this._editLink=this._container.querySelector(".mapbox-improve-map"));var d=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||_.config.ACCESS_TOKEN}];if(h){var p=d.reduce(function(g,S,w){return S.value&&(g+=S.key+"="+S.value+(w=0)return!1;return!0})).join(" | ");C!==this._attribHTML&&(this._attribHTML=C,h.length?(this._innerContainer.innerHTML=C,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},qo.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var mu=function(){_.bindAll(["_updateLogo"],this),_.bindAll(["_updateCompact"],this)};mu.prototype.onAdd=function(h){this._map=h,this._container=U.create("div","mapboxgl-ctrl");var d=U.create("a","mapboxgl-ctrl-logo");return d.target="_blank",d.rel="noopener nofollow",d.href="https://www.mapbox.com/",d.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),d.setAttribute("rel","noopener nofollow"),this._container.appendChild(d),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},mu.prototype.onRemove=function(){U.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},mu.prototype.getDefaultPosition=function(){return"bottom-left"},mu.prototype._updateLogo=function(h){h&&h.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},mu.prototype._logoRequired=function(){if(this._map.style){var h=this._map.style.sourceCaches;for(var d in h)if(h[d].getSource().mapbox_logo)return!0;return!1}},mu.prototype._updateCompact=function(){var h=this._container.children;if(h.length){var d=h[0];this._map.getCanvasContainer().offsetWidth<250?d.classList.add("mapboxgl-compact"):d.classList.remove("mapboxgl-compact")}};var Fa=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Fa.prototype.add=function(h){var d=++this._id;return this._queue.push({callback:h,id:d,cancelled:!1}),d},Fa.prototype.remove=function(h){for(var d=this._currentlyRunning,p=0,g=d?this._queue.concat(d):this._queue;pg.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(g.minPitch!=null&&g.maxPitch!=null&&g.minPitch>g.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(g.minPitch!=null&&g.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(g.maxPitch!=null&&g.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var w=new Li(g.minZoom,g.maxZoom,g.minPitch,g.maxPitch,g.renderWorldCopies);if(h.call(this,w,g),this._interactive=g.interactive,this._maxTileCacheSize=g.maxTileCacheSize,this._failIfMajorPerformanceCaveat=g.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=g.preserveDrawingBuffer,this._antialias=g.antialias,this._trackResize=g.trackResize,this._bearingSnap=g.bearingSnap,this._refreshExpiredTiles=g.refreshExpiredTiles,this._fadeDuration=g.fadeDuration,this._crossSourceCollisions=g.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=g.collectResourceTiming,this._renderTaskQueue=new Fa,this._controls=[],this._mapId=_.uniqueId(),this._locale=_.extend({},Ns,g.locale),this._clickTolerance=g.clickTolerance,this._requestManager=new _.RequestManager(g.transformRequest,g.accessToken),typeof g.container=="string"){if(this._container=_.window.document.getElementById(g.container),!this._container)throw new Error("Container '"+g.container+"' not found.")}else{if(!(g.container instanceof Fc))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=g.container}if(g.maxBounds&&this.setMaxBounds(g.maxBounds),_.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return S._update(!1)}),this.on("moveend",function(){return S._update(!1)}),this.on("zoom",function(){return S._update(!0)}),_.window!==void 0&&(_.window.addEventListener("online",this._onWindowOnline,!1),_.window.addEventListener("resize",this._onWindowResize,!1),_.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new yn(this,g),this._hash=g.hash&&new Ys(typeof g.hash=="string"&&g.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:g.center,zoom:g.zoom,bearing:g.bearing,pitch:g.pitch}),g.bounds&&(this.resize(),this.fitBounds(g.bounds,_.extend({},g.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=g.localIdeographFontFamily,g.style&&this.setStyle(g.style,{localIdeographFontFamily:g.localIdeographFontFamily}),g.attributionControl&&this.addControl(new qo({customAttribution:g.customAttribution})),this.addControl(new mu,g.logoPosition),this.on("style.load",function(){S.transform.unmodified&&S.jumpTo(S.style.stylesheet)}),this.on("data",function(C){S._update(C.dataType==="style"),S.fire(new _.Event(C.dataType+"data",C))}),this.on("dataloading",function(C){S.fire(new _.Event(C.dataType+"dataloading",C))})}h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d;var p={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return d.prototype._getMapId=function(){return this._mapId},d.prototype.addControl=function(g,S){if(S===void 0&&(S=g.getDefaultPosition?g.getDefaultPosition():"top-right"),!g||!g.onAdd)return this.fire(new _.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var w=g.onAdd(this);this._controls.push(g);var C=this._controlPositions[S];return S.indexOf("bottom")!==-1?C.insertBefore(w,C.firstChild):C.appendChild(w),this},d.prototype.removeControl=function(g){if(!g||!g.onRemove)return this.fire(new _.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var S=this._controls.indexOf(g);return S>-1&&this._controls.splice(S,1),g.onRemove(this),this},d.prototype.hasControl=function(g){return this._controls.indexOf(g)>-1},d.prototype.resize=function(g){var S=this._containerDimensions(),w=S[0],C=S[1];if(w===this.transform.width&&C===this.transform.height)return this;this._resizeCanvas(w,C),this.transform.resize(w,C),this.painter.resize(w,C);var P=!this._moving;return P&&this.fire(new _.Event("movestart",g)).fire(new _.Event("move",g)),this.fire(new _.Event("resize",g)),P&&this.fire(new _.Event("moveend",g)),this},d.prototype.getBounds=function(){return this.transform.getBounds()},d.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},d.prototype.setMaxBounds=function(g){return this.transform.setMaxBounds(_.LngLatBounds.convert(g)),this._update()},d.prototype.setMinZoom=function(g){if((g=g==null?-2:g)>=-2&&g<=this.transform.maxZoom)return this.transform.minZoom=g,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=g,this._update(),this.getZoom()>g&&this.setZoom(g),this;throw new Error("maxZoom must be greater than the current minZoom")},d.prototype.getMaxZoom=function(){return this.transform.maxZoom},d.prototype.setMinPitch=function(g){if((g=g==null?0:g)<0)throw new Error("minPitch must be greater than or equal to 0");if(g>=0&&g<=this.transform.maxPitch)return this.transform.minPitch=g,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(g>=this.transform.minPitch)return this.transform.maxPitch=g,this._update(),this.getPitch()>g&&this.setPitch(g),this;throw new Error("maxPitch must be greater than the current minPitch")},d.prototype.getMaxPitch=function(){return this.transform.maxPitch},d.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},d.prototype.setRenderWorldCopies=function(g){return this.transform.renderWorldCopies=g,this._update()},d.prototype.project=function(g){return this.transform.locationPoint(_.LngLat.convert(g))},d.prototype.unproject=function(g){return this.transform.pointLocation(_.Point.convert(g))},d.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},d.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},d.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},d.prototype._createDelegatedListener=function(g,S,w){var C,P=this;if(g==="mouseenter"||g==="mouseover"){var Z=!1;return{layer:S,listener:w,delegates:{mousemove:function(pe){var _e=P.getLayer(S)?P.queryRenderedFeatures(pe.point,{layers:[S]}):[];_e.length?Z||(Z=!0,w.call(P,new Wa(g,P,pe.originalEvent,{features:_e}))):Z=!1},mouseout:function(){Z=!1}}}}if(g==="mouseleave"||g==="mouseout"){var Y=!1;return{layer:S,listener:w,delegates:{mousemove:function(pe){(P.getLayer(S)?P.queryRenderedFeatures(pe.point,{layers:[S]}):[]).length?Y=!0:Y&&(Y=!1,w.call(P,new Wa(g,P,pe.originalEvent)))},mouseout:function(pe){Y&&(Y=!1,w.call(P,new Wa(g,P,pe.originalEvent)))}}}}return{layer:S,listener:w,delegates:(C={},C[g]=function(pe){var _e=P.getLayer(S)?P.queryRenderedFeatures(pe.point,{layers:[S]}):[];_e.length&&(pe.features=_e,w.call(P,pe),delete pe.features)},C)}},d.prototype.on=function(g,S,w){if(w===void 0)return h.prototype.on.call(this,g,S);var C=this._createDelegatedListener(g,S,w);for(var P in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[g]=this._delegatedListeners[g]||[],this._delegatedListeners[g].push(C),C.delegates)this.on(P,C.delegates[P]);return this},d.prototype.once=function(g,S,w){if(w===void 0)return h.prototype.once.call(this,g,S);var C=this._createDelegatedListener(g,S,w);for(var P in C.delegates)this.once(P,C.delegates[P]);return this},d.prototype.off=function(g,S,w){var C=this;return w===void 0?h.prototype.off.call(this,g,S):(this._delegatedListeners&&this._delegatedListeners[g]&&function(P){for(var Z=P[g],Y=0;Y180;){var C=p.locationPoint(h);if(C.x>=0&&C.y>=0&&C.x<=p.width&&C.y<=p.height)break;h.lng>p.center.lng?h.lng-=360:h.lng+=360}return h}Es.prototype.down=function(h,d){this.mouseRotate.mousedown(h,d),this.mousePitch&&this.mousePitch.mousedown(h,d),U.disableDrag()},Es.prototype.move=function(h,d){var p=this.map,g=this.mouseRotate.mousemoveWindow(h,d);if(g&&g.bearingDelta&&p.setBearing(p.getBearing()+g.bearingDelta),this.mousePitch){var S=this.mousePitch.mousemoveWindow(h,d);S&&S.pitchDelta&&p.setPitch(p.getPitch()+S.pitchDelta)}},Es.prototype.off=function(){var h=this.element;U.removeEventListener(h,"mousedown",this.mousedown),U.removeEventListener(h,"touchstart",this.touchstart,{passive:!1}),U.removeEventListener(h,"touchmove",this.touchmove),U.removeEventListener(h,"touchend",this.touchend),U.removeEventListener(h,"touchcancel",this.reset),this.offTemp()},Es.prototype.offTemp=function(){U.enableDrag(),U.removeEventListener(_.window,"mousemove",this.mousemove),U.removeEventListener(_.window,"mouseup",this.mouseup)},Es.prototype.mousedown=function(h){this.down(_.extend({},h,{ctrlKey:!0,preventDefault:function(){return h.preventDefault()}}),U.mousePos(this.element,h)),U.addEventListener(_.window,"mousemove",this.mousemove),U.addEventListener(_.window,"mouseup",this.mouseup)},Es.prototype.mousemove=function(h){this.move(h,U.mousePos(this.element,h))},Es.prototype.mouseup=function(h){this.mouseRotate.mouseupWindow(h),this.mousePitch&&this.mousePitch.mouseupWindow(h),this.offTemp()},Es.prototype.touchstart=function(h){h.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=U.touchPos(this.element,h.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return h.preventDefault()}},this._startPos))},Es.prototype.touchmove=function(h){h.targetTouches.length!==1?this.reset():(this._lastPos=U.touchPos(this.element,h.targetTouches)[0],this.move({preventDefault:function(){return h.preventDefault()}},this._lastPos))},Es.prototype.touchend=function(h){h.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=g}this._isDragging&&(this._pos=p.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new _.Event("dragstart"))),this.fire(new _.Event("drag")))},d.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new _.Event("dragend")),this._state="inactive"},d.prototype._addDragHandler=function(p){this._element.contains(p.originalEvent.target)&&(p.preventDefault(),this._positionDelta=p.point.sub(this._pos).add(this._offset),this._pointerdownPos=p.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},d.prototype.setDraggable=function(p){return this._draggable=!!p,this._map&&(p?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},d.prototype.isDraggable=function(){return this._draggable},d.prototype.setRotation=function(p){return this._rotation=p||0,this._update(),this},d.prototype.getRotation=function(){return this._rotation},d.prototype.setRotationAlignment=function(p){return this._rotationAlignment=p||"auto",this._update(),this},d.prototype.getRotationAlignment=function(){return this._rotationAlignment},d.prototype.setPitchAlignment=function(p){return this._pitchAlignment=p&&p!=="auto"?p:this._rotationAlignment,this._update(),this},d.prototype.getPitchAlignment=function(){return this._pitchAlignment},d}(_.Evented),Vf={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ac=0,oc=!1,Uu=function(h){function d(p){h.call(this),this.options=_.extend({},Vf,p),_.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.onAdd=function(p){var g;return this._map=p,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),g=this._setupUI,kc!==void 0?g(kc):_.window.navigator.permissions!==void 0?_.window.navigator.permissions.query({name:"geolocation"}).then(function(S){g(kc=S.state!=="denied")}):g(kc=!!_.window.navigator.geolocation),this._container},d.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(_.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),U.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,ac=0,oc=!1},d.prototype._isOutOfMapMaxBounds=function(p){var g=this._map.getMaxBounds(),S=p.coords;return g&&(S.longitudeg.getEast()||S.latitudeg.getNorth())},d.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},d.prototype._onSuccess=function(p){if(this._map){if(this._isOutOfMapMaxBounds(p))return this._setErrorState(),this.fire(new _.Event("outofmaxbounds",p)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=p,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(p),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(p),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new _.Event("geolocate",p)),this._finish()}},d.prototype._updateCamera=function(p){var g=new _.LngLat(p.coords.longitude,p.coords.latitude),S=p.coords.accuracy,w=this._map.getBearing(),C=_.extend({bearing:w},this.options.fitBoundsOptions);this._map.fitBounds(g.toBounds(S),C,{geolocateSource:!0})},d.prototype._updateMarker=function(p){if(p){var g=new _.LngLat(p.coords.longitude,p.coords.latitude);this._accuracyCircleMarker.setLngLat(g).addTo(this._map),this._userLocationDotMarker.setLngLat(g).addTo(this._map),this._accuracy=p.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},d.prototype._updateCircleRadius=function(){var p=this._map._container.clientHeight/2,g=this._map.unproject([0,p]),S=this._map.unproject([1,p]),w=g.distanceTo(S),C=Math.ceil(2*this._accuracy/w);this._circleElement.style.width=C+"px",this._circleElement.style.height=C+"px"},d.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},d.prototype._onError=function(p){if(this._map){if(this.options.trackUserLocation)if(p.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var g=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=g,this._geolocateButton.setAttribute("aria-label",g),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(p.code===3&&oc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new _.Event("error",p)),this._finish()}},d.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},d.prototype._setupUI=function(p){var g=this;if(this._container.addEventListener("contextmenu",function(C){return C.preventDefault()}),this._geolocateButton=U.create("button","mapboxgl-ctrl-geolocate",this._container),U.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",p===!1){_.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var S=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=S,this._geolocateButton.setAttribute("aria-label",S)}else{var w=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=w,this._geolocateButton.setAttribute("aria-label",w)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=U.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new cf(this._dotElement),this._circleElement=U.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new cf({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(C){C.geolocateSource||g._watchState!=="ACTIVE_LOCK"||C.originalEvent&&C.originalEvent.type==="resize"||(g._watchState="BACKGROUND",g._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),g._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),g.fire(new _.Event("trackuserlocationend")))})},d.prototype.trigger=function(){if(!this._setup)return _.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new _.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":ac--,oc=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new _.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new _.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){var p;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++ac>1?(p={maximumAge:6e5,timeout:0},oc=!0):(p=this.options.positionOptions,oc=!1),this._geolocationWatchID=_.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,p)}}else _.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},d.prototype._clearWatch=function(){_.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},d}(_.Evented),zu={maxWidth:100,unit:"metric"},tu=function(h){this.options=_.extend({},zu,h),_.bindAll(["_onMove","setUnit"],this)};function jf(h,d,p){var g=p&&p.maxWidth||100,S=h._container.clientHeight/2,w=h.unproject([0,S]),C=h.unproject([g,S]),P=w.distanceTo(C);if(p&&p.unit==="imperial"){var Z=3.2808*P;Z>5280?Ol(d,g,Z/5280,h._getUIString("ScaleControl.Miles")):Ol(d,g,Z,h._getUIString("ScaleControl.Feet"))}else p&&p.unit==="nautical"?Ol(d,g,P/1852,h._getUIString("ScaleControl.NauticalMiles")):P>=1e3?Ol(d,g,P/1e3,h._getUIString("ScaleControl.Kilometers")):Ol(d,g,P,h._getUIString("ScaleControl.Meters"))}function Ol(h,d,p,g){var S,w,C,P=(S=p,(w=Math.pow(10,(""+Math.floor(S)).length-1))*(C=(C=S/w)>=10?10:C>=5?5:C>=3?3:C>=2?2:C>=1?1:function(Z){var Y=Math.pow(10,Math.ceil(-Math.log(Z)/Math.LN10));return Math.round(Z*Y)/Y}(C)));h.style.width=d*(P/p)+"px",h.innerHTML=P+" "+g}tu.prototype.getDefaultPosition=function(){return"bottom-left"},tu.prototype._onMove=function(){jf(this._map,this._container,this.options)},tu.prototype.onAdd=function(h){return this._map=h,this._container=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",h.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},tu.prototype.onRemove=function(){U.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},tu.prototype.setUnit=function(h){this.options.unit=h,jf(this._map,this._container,this.options)};var ru=function(h){this._fullscreen=!1,h&&h.container&&(h.container instanceof _.window.HTMLElement?this._container=h.container:_.warnOnce("Full screen control 'container' must be a DOM element.")),_.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in _.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in _.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in _.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in _.window.document&&(this._fullscreenchange="MSFullscreenChange")};ru.prototype.onAdd=function(h){return this._map=h,this._container||(this._container=this._map.getContainer()),this._controlContainer=U.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",_.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ru.prototype.onRemove=function(){U.remove(this._controlContainer),this._map=null,_.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ru.prototype._checkFullscreenSupport=function(){return!!(_.window.document.fullscreenEnabled||_.window.document.mozFullScreenEnabled||_.window.document.msFullscreenEnabled||_.window.document.webkitFullscreenEnabled)},ru.prototype._setupUI=function(){var h=this._fullscreenButton=U.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);U.create("span","mapboxgl-ctrl-icon",h).setAttribute("aria-hidden",!0),h.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),_.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ru.prototype._updateTitle=function(){var h=this._getTitle();this._fullscreenButton.setAttribute("aria-label",h),this._fullscreenButton.title=h},ru.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ru.prototype._isFullscreen=function(){return this._fullscreen},ru.prototype._changeIcon=function(){(_.window.document.fullscreenElement||_.window.document.mozFullScreenElement||_.window.document.webkitFullscreenElement||_.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ru.prototype._onClickFullscreen=function(){this._isFullscreen()?_.window.document.exitFullscreen?_.window.document.exitFullscreen():_.window.document.mozCancelFullScreen?_.window.document.mozCancelFullScreen():_.window.document.msExitFullscreen?_.window.document.msExitFullscreen():_.window.document.webkitCancelFullScreen&&_.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Dl={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ff=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Rh=function(h){function d(p){h.call(this),this.options=_.extend(Object.create(Dl),p),_.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return h&&(d.__proto__=h),(d.prototype=Object.create(h&&h.prototype)).constructor=d,d.prototype.addTo=function(p){return this._map&&this.remove(),this._map=p,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new _.Event("open")),this},d.prototype.isOpen=function(){return!!this._map},d.prototype.remove=function(){return this._content&&U.remove(this._content),this._container&&(U.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new _.Event("close")),this},d.prototype.getLngLat=function(){return this._lngLat},d.prototype.setLngLat=function(p){return this._lngLat=_.LngLat.convert(p),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},d.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},d.prototype.getElement=function(){return this._container},d.prototype.setText=function(p){return this.setDOMContent(_.window.document.createTextNode(p))},d.prototype.setHTML=function(p){var g,S=_.window.document.createDocumentFragment(),w=_.window.document.createElement("body");for(w.innerHTML=p;g=w.firstChild;)S.appendChild(g);return this.setDOMContent(S)},d.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},d.prototype.setMaxWidth=function(p){return this.options.maxWidth=p,this._update(),this},d.prototype.setDOMContent=function(p){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=U.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(p),this._createCloseButton(),this._update(),this._focusFirstElement(),this},d.prototype.addClassName=function(p){this._container&&this._container.classList.add(p)},d.prototype.removeClassName=function(p){this._container&&this._container.classList.remove(p)},d.prototype.setOffset=function(p){return this.options.offset=p,this._update(),this},d.prototype.toggleClassName=function(p){if(this._container)return this._container.classList.toggle(p)},d.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=U.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},d.prototype._onMouseUp=function(p){this._update(p.point)},d.prototype._onMouseMove=function(p){this._update(p.point)},d.prototype._onDrag=function(p){this._update(p.point)},d.prototype._update=function(p){var g=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=U.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=U.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(_e){return g._container.classList.add(_e)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=ic(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||p)){var S=this._pos=this._trackPointer&&p?p:this._map.project(this._lngLat),w=this.options.anchor,C=function _e(ye){if(ye){if(typeof ye=="number"){var Ue=Math.round(Math.sqrt(.5*Math.pow(ye,2)));return{center:new _.Point(0,0),top:new _.Point(0,ye),"top-left":new _.Point(Ue,Ue),"top-right":new _.Point(-Ue,Ue),bottom:new _.Point(0,-ye),"bottom-left":new _.Point(Ue,-Ue),"bottom-right":new _.Point(-Ue,-Ue),left:new _.Point(ye,0),right:new _.Point(-ye,0)}}if(ye instanceof _.Point||Array.isArray(ye)){var ke=_.Point.convert(ye);return{center:ke,top:ke,"top-left":ke,"top-right":ke,bottom:ke,"bottom-left":ke,"bottom-right":ke,left:ke,right:ke}}return{center:_.Point.convert(ye.center||[0,0]),top:_.Point.convert(ye.top||[0,0]),"top-left":_.Point.convert(ye["top-left"]||[0,0]),"top-right":_.Point.convert(ye["top-right"]||[0,0]),bottom:_.Point.convert(ye.bottom||[0,0]),"bottom-left":_.Point.convert(ye["bottom-left"]||[0,0]),"bottom-right":_.Point.convert(ye["bottom-right"]||[0,0]),left:_.Point.convert(ye.left||[0,0]),right:_.Point.convert(ye.right||[0,0])}}return _e(new _.Point(0,0))}(this.options.offset);if(!w){var P,Z=this._container.offsetWidth,Y=this._container.offsetHeight;P=S.y+C.bottom.ythis._map.transform.height-Y?["bottom"]:[],S.xthis._map.transform.width-Z/2&&P.push("right"),w=P.length===0?"bottom":P.join("-")}var pe=S.add(C[w]).round();U.setTransform(this._container,Nu[w]+" translate("+pe.x+"px,"+pe.y+"px)"),Zf(this._container,w,"popup")}},d.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var p=this._container.querySelector(ff);p&&p.focus()}},d.prototype._onClose=function(){this.remove()},d}(_.Evented),Hf={version:_.version,supported:le,setRTLTextPlugin:_.setRTLTextPlugin,getRTLTextPluginStatus:_.getRTLTextPluginStatus,Map:Ch,NavigationControl:gu,GeolocateControl:Uu,AttributionControl:qo,ScaleControl:tu,FullscreenControl:ru,Popup:Rh,Marker:cf,Style:Os,LngLat:_.LngLat,LngLatBounds:_.LngLatBounds,Point:_.Point,MercatorCoordinate:_.MercatorCoordinate,Evented:_.Evented,config:_.config,prewarm:function(){sr().acquire(ir)},clearPrewarmedResources:function(){var h=An;h&&(h.isPreloaded()&&h.numActive()===1?(h.release(ir),An=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return _.config.ACCESS_TOKEN},set accessToken(h){_.config.ACCESS_TOKEN=h},get baseApiUrl(){return _.config.API_URL},set baseApiUrl(h){_.config.API_URL=h},get workerCount(){return wr.workerCount},set workerCount(h){wr.workerCount=h},get maxParallelImageRequests(){return _.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(h){_.config.MAX_PARALLEL_IMAGE_REQUESTS=h},clearStorage:function(h){_.clearTileCache(h)},workerUrl:""};return Hf}),q})},43548:function(rr,ee,L){"use strict";rr.exports=he;var q=L(11542);function he(re){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(re)?re:new Uint8Array(re||0),this.pos=0,this.type=0,this.length=this.buf.length}he.Varint=0,he.Fixed64=1,he.Bytes=2,he.Fixed32=5;var _=65536*65536,le=1/_,U=12,fe=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");he.prototype={destroy:function(){this.buf=null},readFields:function(re,V,K){for(K=K||this.length;this.pos>3,nt=this.pos;this.type=Me&7,re(Se,V,this),this.pos===nt&&this.skip(Me)}return V},readMessage:function(re,V){return this.readFields(re,V,this.readVarint()+this.pos)},readFixed32:function(){var re=At(this.buf,this.pos);return this.pos+=4,re},readSFixed32:function(){var re=It(this.buf,this.pos);return this.pos+=4,re},readFixed64:function(){var re=At(this.buf,this.pos)+At(this.buf,this.pos+4)*_;return this.pos+=8,re},readSFixed64:function(){var re=At(this.buf,this.pos)+It(this.buf,this.pos+4)*_;return this.pos+=8,re},readFloat:function(){var re=q.read(this.buf,this.pos,!0,23,4);return this.pos+=4,re},readDouble:function(){var re=q.read(this.buf,this.pos,!0,52,8);return this.pos+=8,re},readVarint:function(re){var V=this.buf,K,Me;return Me=V[this.pos++],K=Me&127,Me<128||(Me=V[this.pos++],K|=(Me&127)<<7,Me<128)||(Me=V[this.pos++],K|=(Me&127)<<14,Me<128)||(Me=V[this.pos++],K|=(Me&127)<<21,Me<128)?K:(Me=V[this.pos],K|=(Me&15)<<28,se(K,re,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var re=this.readVarint();return re%2===1?(re+1)/-2:re/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var re=this.readVarint()+this.pos,V=this.pos;return this.pos=re,re-V>=U&&fe?Ct(this.buf,V,re):qe(this.buf,V,re)},readBytes:function(){var re=this.readVarint()+this.pos,V=this.buf.subarray(this.pos,re);return this.pos=re,V},readPackedVarint:function(re,V){if(this.type!==he.Bytes)return re.push(this.readVarint(V));var K=Qe(this);for(re=re||[];this.pos127;);else if(V===he.Bytes)this.pos=this.readVarint()+this.pos;else if(V===he.Fixed32)this.pos+=4;else if(V===he.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+V)},writeTag:function(re,V){this.writeVarint(re<<3|V)},realloc:function(re){for(var V=this.length||16;V268435455||re<0){et(re,this);return}this.realloc(4),this.buf[this.pos++]=re&127|(re>127?128:0),!(re<=127)&&(this.buf[this.pos++]=(re>>>=7)&127|(re>127?128:0),!(re<=127)&&(this.buf[this.pos++]=(re>>>=7)&127|(re>127?128:0),!(re<=127)&&(this.buf[this.pos++]=re>>>7&127)))},writeSVarint:function(re){this.writeVarint(re<0?-re*2-1:re*2)},writeBoolean:function(re){this.writeVarint(!!re)},writeString:function(re){re=String(re),this.realloc(re.length*4),this.pos++;var V=this.pos;this.pos=fr(this.buf,re,this.pos);var K=this.pos-V;K>=128&&wt(V,K,this),this.pos=V-1,this.writeVarint(K),this.pos+=K},writeFloat:function(re){this.realloc(4),q.write(this.buf,re,this.pos,!0,23,4),this.pos+=4},writeDouble:function(re){this.realloc(8),q.write(this.buf,re,this.pos,!0,52,8),this.pos+=8},writeBytes:function(re){var V=re.length;this.writeVarint(V),this.realloc(V);for(var K=0;K=128&&wt(K,Me,this),this.pos=K-1,this.writeVarint(Me),this.pos+=Me},writeMessage:function(re,V,K){this.writeTag(re,he.Bytes),this.writeRawMessage(V,K)},writePackedVarint:function(re,V){V.length&&this.writeMessage(re,Xt,V)},writePackedSVarint:function(re,V){V.length&&this.writeMessage(re,Zt,V)},writePackedBoolean:function(re,V){V.length&&this.writeMessage(re,xt,V)},writePackedFloat:function(re,V){V.length&&this.writeMessage(re,nr,V)},writePackedDouble:function(re,V){V.length&&this.writeMessage(re,Vt,V)},writePackedFixed32:function(re,V){V.length&&this.writeMessage(re,bt,V)},writePackedSFixed32:function(re,V){V.length&&this.writeMessage(re,Tr,V)},writePackedFixed64:function(re,V){V.length&&this.writeMessage(re,hr,V)},writePackedSFixed64:function(re,V){V.length&&this.writeMessage(re,lr,V)},writeBytesField:function(re,V){this.writeTag(re,he.Bytes),this.writeBytes(V)},writeFixed32Field:function(re,V){this.writeTag(re,he.Fixed32),this.writeFixed32(V)},writeSFixed32Field:function(re,V){this.writeTag(re,he.Fixed32),this.writeSFixed32(V)},writeFixed64Field:function(re,V){this.writeTag(re,he.Fixed64),this.writeFixed64(V)},writeSFixed64Field:function(re,V){this.writeTag(re,he.Fixed64),this.writeSFixed64(V)},writeVarintField:function(re,V){this.writeTag(re,he.Varint),this.writeVarint(V)},writeSVarintField:function(re,V){this.writeTag(re,he.Varint),this.writeSVarint(V)},writeStringField:function(re,V){this.writeTag(re,he.Bytes),this.writeString(V)},writeFloatField:function(re,V){this.writeTag(re,he.Fixed32),this.writeFloat(V)},writeDoubleField:function(re,V){this.writeTag(re,he.Fixed64),this.writeDouble(V)},writeBooleanField:function(re,V){this.writeVarintField(re,!!V)}};function se(re,V,K){var Me=K.buf,Se,nt;if(nt=Me[K.pos++],Se=(nt&112)>>4,nt<128||(nt=Me[K.pos++],Se|=(nt&127)<<3,nt<128)||(nt=Me[K.pos++],Se|=(nt&127)<<10,nt<128)||(nt=Me[K.pos++],Se|=(nt&127)<<17,nt<128)||(nt=Me[K.pos++],Se|=(nt&127)<<24,nt<128)||(nt=Me[K.pos++],Se|=(nt&1)<<31,nt<128))return ae(re,Se,V);throw new Error("Expected varint not more than 10 bytes")}function Qe(re){return re.type===he.Bytes?re.readVarint()+re.pos:re.pos+1}function ae(re,V,K){return K?V*4294967296+(re>>>0):(V>>>0)*4294967296+(re>>>0)}function et(re,V){var K,Me;if(re>=0?(K=re%4294967296|0,Me=re/4294967296|0):(K=~(-re%4294967296),Me=~(-re/4294967296),K^4294967295?K=K+1|0:(K=0,Me=Me+1|0)),re>=18446744073709552e3||re<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");V.realloc(10),dt(K,Me,V),Ye(Me,V)}function dt(re,V,K){K.buf[K.pos++]=re&127|128,re>>>=7,K.buf[K.pos++]=re&127|128,re>>>=7,K.buf[K.pos++]=re&127|128,re>>>=7,K.buf[K.pos++]=re&127|128,re>>>=7,K.buf[K.pos]=re&127}function Ye(re,V){var K=(re&7)<<4;V.buf[V.pos++]|=K|((re>>>=3)?128:0),re&&(V.buf[V.pos++]=re&127|((re>>>=7)?128:0),re&&(V.buf[V.pos++]=re&127|((re>>>=7)?128:0),re&&(V.buf[V.pos++]=re&127|((re>>>=7)?128:0),re&&(V.buf[V.pos++]=re&127|((re>>>=7)?128:0),re&&(V.buf[V.pos++]=re&127)))))}function wt(re,V,K){var Me=V<=16383?1:V<=2097151?2:V<=268435455?3:Math.floor(Math.log(V)/(Math.LN2*7));K.realloc(Me);for(var Se=K.pos-1;Se>=re;Se--)K.buf[Se+Me]=K.buf[Se]}function Xt(re,V){for(var K=0;K>>8,re[K+2]=V>>>16,re[K+3]=V>>>24}function It(re,V){return(re[V]|re[V+1]<<8|re[V+2]<<16)+(re[V+3]<<24)}function qe(re,V,K){for(var Me="",Se=V;Se239?4:nt>223?3:nt>191?2:1;if(Se+Ce>K)break;var we,Xe,Lt;Ce===1?nt<128&&(te=nt):Ce===2?(we=re[Se+1],(we&192)===128&&(te=(nt&31)<<6|we&63,te<=127&&(te=null))):Ce===3?(we=re[Se+1],Xe=re[Se+2],(we&192)===128&&(Xe&192)===128&&(te=(nt&15)<<12|(we&63)<<6|Xe&63,(te<=2047||te>=55296&&te<=57343)&&(te=null))):Ce===4&&(we=re[Se+1],Xe=re[Se+2],Lt=re[Se+3],(we&192)===128&&(Xe&192)===128&&(Lt&192)===128&&(te=(nt&15)<<18|(we&63)<<12|(Xe&63)<<6|Lt&63,(te<=65535||te>=1114112)&&(te=null))),te===null?(te=65533,Ce=1):te>65535&&(te-=65536,Me+=String.fromCharCode(te>>>10&1023|55296),te=56320|te&1023),Me+=String.fromCharCode(te),Se+=Ce}return Me}function Ct(re,V,K){return fe.decode(re.subarray(V,K))}function fr(re,V,K){for(var Me=0,Se,nt;Me55295&&Se<57344)if(nt)if(Se<56320){re[K++]=239,re[K++]=191,re[K++]=189,nt=Se;continue}else Se=nt-55296<<10|Se-56320|65536,nt=null;else{Se>56319||Me+1===V.length?(re[K++]=239,re[K++]=191,re[K++]=189):nt=Se;continue}else nt&&(re[K++]=239,re[K++]=191,re[K++]=189,nt=null);Se<128?re[K++]=Se:(Se<2048?re[K++]=Se>>6|192:(Se<65536?re[K++]=Se>>12|224:(re[K++]=Se>>18|240,re[K++]=Se>>12&63|128),re[K++]=Se>>6&63|128),re[K++]=Se&63|128)}return K}},37824:function(rr,ee,L){var q=L(93738);(function(he,_){rr.exports=_()})(this,function(){"use strict";function he(Dt,k){if(!(Dt instanceof k))throw new TypeError("Cannot call a class as a function")}function _(Dt,k){for(var ie=0;iek?1:Dt0){if(k.right===null)break;if(ie(Dt,k.right.key)>0){var Sr=k.right;if(k.right=Sr.left,Sr.left=k,k=Sr,k.right===null)break}Ze.right=k,Ze=k,k=k.right}else break}return Ze.right=k.left,_t.left=k.right,k.left=ve.right,k.right=ve.left,k}function Qe(Dt,k,ie,ve){var Ze=new U(Dt,k);if(ie===null)return Ze.left=Ze.right=null,Ze;ie=se(Dt,ie,ve);var _t=ve(Dt,ie.key);return _t<0?(Ze.left=ie.left,Ze.right=ie,ie.left=null):_t>=0&&(Ze.right=ie.right,Ze.left=ie,ie.right=null),Ze}function ae(Dt,k,ie){var ve=null,Ze=null;if(k){k=se(Dt,k,ie);var _t=ie(k.key,Dt);_t===0?(ve=k.left,Ze=k.right):_t<0?(Ze=k.right,k.right=null,ve=k):(ve=k.left,k.left=null,Ze=k)}return{left:ve,right:Ze}}function et(Dt,k,ie){return k===null?Dt:(Dt===null||(k=se(Dt.key,k,ie),k.left=Dt),k)}function dt(Dt,k,ie,ve,Ze){if(Dt){ve(""+k+(ie?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ")+Ze(Dt)+` +`);var _t=k+(ie?" ":"\u2502 ");Dt.left&&dt(Dt.left,_t,!1,ve,Ze),Dt.right&&dt(Dt.right,_t,!0,ve,Ze)}}var Ye=function(){function Dt(k){k===void 0&&(k=fe),this._root=null,this._size=0,this._comparator=k}return Dt.prototype.insert=function(k,ie){return this._size++,this._root=Qe(k,ie,this._root,this._comparator)},Dt.prototype.add=function(k,ie){var ve=new U(k,ie);this._root===null&&(ve.left=ve.right=null,this._size++,this._root=ve);var Ze=this._comparator,_t=se(k,this._root,Ze),Wt=Ze(k,_t.key);return Wt===0?this._root=_t:(Wt<0?(ve.left=_t.left,ve.right=_t,_t.left=null):Wt>0&&(ve.right=_t.right,ve.left=_t,_t.right=null),this._size++,this._root=ve),this._root},Dt.prototype.remove=function(k){this._root=this._remove(k,this._root,this._comparator)},Dt.prototype._remove=function(k,ie,ve){var Ze;if(ie===null)return null;ie=se(k,ie,ve);var _t=ve(k,ie.key);return _t===0?(ie.left===null?Ze=ie.right:(Ze=se(k,ie.left,ve),Ze.right=ie.right),this._size--,Ze):ie},Dt.prototype.pop=function(){var k=this._root;if(k){for(;k.left;)k=k.left;return this._root=se(k.key,this._root,this._comparator),this._root=this._remove(k.key,this._root,this._comparator),{key:k.key,data:k.data}}return null},Dt.prototype.findStatic=function(k){for(var ie=this._root,ve=this._comparator;ie;){var Ze=ve(k,ie.key);if(Ze===0)return ie;Ze<0?ie=ie.left:ie=ie.right}return null},Dt.prototype.find=function(k){return this._root&&(this._root=se(k,this._root,this._comparator),this._comparator(k,this._root.key)!==0)?null:this._root},Dt.prototype.contains=function(k){for(var ie=this._root,ve=this._comparator;ie;){var Ze=ve(k,ie.key);if(Ze===0)return!0;Ze<0?ie=ie.left:ie=ie.right}return!1},Dt.prototype.forEach=function(k,ie){for(var ve=this._root,Ze=[],_t=!1;!_t;)ve!==null?(Ze.push(ve),ve=ve.left):Ze.length!==0?(ve=Ze.pop(),k.call(ie,ve),ve=ve.right):_t=!0;return this},Dt.prototype.range=function(k,ie,ve,Ze){for(var _t=[],Wt=this._comparator,Sr=this._root,He;_t.length!==0||Sr;)if(Sr)_t.push(Sr),Sr=Sr.left;else{if(Sr=_t.pop(),He=Wt(Sr.key,ie),He>0)break;if(Wt(Sr.key,k)>=0&&ve.call(Ze,Sr))return this;Sr=Sr.right}return this},Dt.prototype.keys=function(){var k=[];return this.forEach(function(ie){var ve=ie.key;return k.push(ve)}),k},Dt.prototype.values=function(){var k=[];return this.forEach(function(ie){var ve=ie.data;return k.push(ve)}),k},Dt.prototype.min=function(){return this._root?this.minNode(this._root).key:null},Dt.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},Dt.prototype.minNode=function(k){if(k===void 0&&(k=this._root),k)for(;k.left;)k=k.left;return k},Dt.prototype.maxNode=function(k){if(k===void 0&&(k=this._root),k)for(;k.right;)k=k.right;return k},Dt.prototype.at=function(k){for(var ie=this._root,ve=!1,Ze=0,_t=[];!ve;)if(ie)_t.push(ie),ie=ie.left;else if(_t.length>0){if(ie=_t.pop(),Ze===k)return ie;Ze++,ie=ie.right}else ve=!0;return null},Dt.prototype.next=function(k){var ie=this._root,ve=null;if(k.right){for(ve=k.right;ve.left;)ve=ve.left;return ve}for(var Ze=this._comparator;ie;){var _t=Ze(k.key,ie.key);if(_t===0)break;_t<0?(ve=ie,ie=ie.left):ie=ie.right}return ve},Dt.prototype.prev=function(k){var ie=this._root,ve=null;if(k.left!==null){for(ve=k.left;ve.right;)ve=ve.right;return ve}for(var Ze=this._comparator;ie;){var _t=Ze(k.key,ie.key);if(_t===0)break;_t<0?ie=ie.left:(ve=ie,ie=ie.right)}return ve},Dt.prototype.clear=function(){return this._root=null,this._size=0,this},Dt.prototype.toList=function(){return Zt(this._root)},Dt.prototype.load=function(k,ie,ve){ie===void 0&&(ie=[]),ve===void 0&&(ve=!1);var Ze=k.length,_t=this._comparator;if(ve&&xt(k,ie,0,Ze-1,_t),this._root===null)this._root=wt(k,ie,0,Ze),this._size=Ze;else{var Wt=Vt(this.toList(),Xt(k,ie),_t);Ze=this._size+Ze,this._root=nr({head:Wt},0,Ze)}return this},Dt.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(Dt.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(Dt.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),Dt.prototype.toString=function(k){k===void 0&&(k=function(Ze){return String(Ze.key)});var ie=[];return dt(this._root,"",!0,function(ve){return ie.push(ve)},k),ie.join("")},Dt.prototype.update=function(k,ie,ve){var Ze=this._comparator,_t=ae(k,this._root,Ze),Wt=_t.left,Sr=_t.right;Ze(k,ie)<0?Sr=Qe(ie,ve,Sr,Ze):Wt=Qe(ie,ve,Wt,Ze),this._root=et(Wt,Sr,Ze)},Dt.prototype.split=function(k){return ae(k,this._root,this._comparator)},Dt}();function wt(Dt,k,ie,ve){var Ze=ve-ie;if(Ze>0){var _t=ie+Math.floor(Ze/2),Wt=Dt[_t],Sr=k[_t],He=new U(Wt,Sr);return He.left=wt(Dt,k,ie,_t),He.right=wt(Dt,k,_t+1,ve),He}return null}function Xt(Dt,k){for(var ie=new U(null,null),ve=ie,Ze=0;Ze0?(k=_t=_t.next=ie.pop(),k=k.right):ve=!0;return _t.next=null,Ze.next}function nr(Dt,k,ie){var ve=ie-k;if(ve>0){var Ze=k+Math.floor(ve/2),_t=nr(Dt,k,Ze),Wt=Dt.head;return Wt.left=_t,Dt.head=Dt.head.next,Wt.right=nr(Dt,Ze+1,ie),Wt}return null}function Vt(Dt,k,ie){for(var ve=new U(null,null),Ze=ve,_t=Dt,Wt=k;_t!==null&&Wt!==null;)ie(_t.key,Wt.key)<0?(Ze.next=_t,_t=_t.next):(Ze.next=Wt,Wt=Wt.next),Ze=Ze.next;return _t!==null?Ze.next=_t:Wt!==null&&(Ze.next=Wt),ve.next}function xt(Dt,k,ie,ve,Ze){if(!(ie>=ve)){for(var _t=Dt[ie+ve>>1],Wt=ie-1,Sr=ve+1;;){do Wt++;while(Ze(Dt[Wt],_t)<0);do Sr--;while(Ze(Dt[Sr],_t)>0);if(Wt>=Sr)break;var He=Dt[Wt];Dt[Wt]=Dt[Sr],Dt[Sr]=He,He=k[Wt],k[Wt]=k[Sr],k[Sr]=He}xt(Dt,k,ie,Sr,Ze),xt(Dt,k,Sr+1,ve,Ze)}}var bt=function(k,ie){return k.ll.x<=ie.x&&ie.x<=k.ur.x&&k.ll.y<=ie.y&&ie.y<=k.ur.y},Tr=function(k,ie){if(ie.ur.xve.x?1:ie.yve.y?1:0}}]);function Dt(k,ie){he(this,Dt),k.events===void 0?k.events=[this]:k.events.push(this),this.point=k,this.isLeft=ie}return le(Dt,[{key:"link",value:function(ie){if(ie.point===this.point)throw new Error("Tried to link already linked events");for(var ve=ie.point.events,Ze=0,_t=ve.length;Ze<_t;Ze++){var Wt=ve[Ze];this.point.events.push(Wt),Wt.point=this.point}this.checkForConsuming()}},{key:"checkForConsuming",value:function(){for(var ie=this.point.events.length,ve=0;ve=0&&Zr>=0?crFn?-1:0:Et<0&&Zr<0?crFn?1:0:ZrEt?1:0}}}]),Dt}(),we=0,Xe=function(){le(Dt,null,[{key:"compare",value:function(ie,ve){var Ze=ie.leftSE.point.x,_t=ve.leftSE.point.x,Wt=ie.rightSE.point.x,Sr=ve.rightSE.point.x;if(SrHe&&Et>cr)return-1;var Zr=ie.comparePoint(ve.leftSE.point);if(Zr<0)return 1;if(Zr>0)return-1;var Fn=ve.comparePoint(ie.rightSE.point);return Fn!==0?Fn:-1}if(Ze>_t){if(HeEt&&He>mr)return 1;var En=ve.comparePoint(ie.leftSE.point);if(En!==0)return En;var Cn=ie.comparePoint(ve.rightSE.point);return Cn<0?1:Cn>0?-1:1}if(HeEt)return 1;if(WtSr){var ni=ie.comparePoint(ve.rightSE.point);if(ni<0)return 1;if(ni>0)return-1}if(Wt!==Sr){var Yn=cr-He,oa=Wt-Ze,Qi=mr-Et,lo=Sr-_t;if(Yn>oa&&Qilo)return-1}return Wt>Sr?1:Wtmr?1:ie.idve.id?1:0}}]);function Dt(k,ie,ve,Ze){he(this,Dt),this.id=++we,this.leftSE=k,k.segment=this,k.otherSE=ie,this.rightSE=ie,ie.segment=this,ie.otherSE=k,this.rings=ve,this.windings=Ze}return le(Dt,[{key:"replaceRightSE",value:function(ie){this.rightSE=ie,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}},{key:"bbox",value:function(){var ie=this.leftSE.point.y,ve=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:ieve?ie:ve}}}},{key:"vector",value:function(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}},{key:"isAnEndpoint",value:function(ie){return ie.x===this.leftSE.point.x&&ie.y===this.leftSE.point.y||ie.x===this.rightSE.point.x&&ie.y===this.rightSE.point.y}},{key:"comparePoint",value:function(ie){if(this.isAnEndpoint(ie))return 0;var ve=this.leftSE.point,Ze=this.rightSE.point,_t=this.vector();if(ve.x===Ze.x)return ie.x===ve.x?0:ie.x0&&He.swapEvents(),Ce.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),Ze&&(_t.checkForConsuming(),Wt.checkForConsuming()),ve}},{key:"swapEvents",value:function(){var ie=this.rightSE;this.rightSE=this.leftSE,this.leftSE=ie,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(var ve=0,Ze=this.windings.length;ve0){var Wt=ve;ve=Ze,Ze=Wt}if(ve.prev===Ze){var Sr=ve;ve=Ze,Ze=Sr}for(var He=0,Et=Ze.rings.length;He0)_t=ve,Wt=ie,Sr=-1;else throw new Error("Tried to create degenerate segment at [".concat(ie.x,", ").concat(ie.y,"]"));var Et=new Ce(_t,!0),cr=new Ce(Wt,!1);return new Dt(Et,cr,[Ze],[Sr])}}]),Dt}(),Lt=function(){function Dt(k,ie,ve){if(he(this,Dt),!Array.isArray(k)||k.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=ie,this.isExterior=ve,this.segments=[],typeof k[0][0]!="number"||typeof k[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");var Ze=qe.round(k[0][0],k[0][1]);this.bbox={ll:{x:Ze.x,y:Ze.y},ur:{x:Ze.x,y:Ze.y}};for(var _t=Ze,Wt=1,Sr=k.length;Wtthis.bbox.ur.x&&(this.bbox.ur.x=He.x),He.y>this.bbox.ur.y&&(this.bbox.ur.y=He.y),_t=He)}(Ze.x!==_t.x||Ze.y!==_t.y)&&this.segments.push(Xe.fromRing(_t,Ze,this))}return le(Dt,[{key:"getSweepEvents",value:function(){for(var ie=[],ve=0,Ze=this.segments.length;vethis.bbox.ur.x&&(this.bbox.ur.x=_t.bbox.ur.x),_t.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=_t.bbox.ur.y),this.interiorRings.push(_t)}this.multiPoly=ie}return le(Dt,[{key:"getSweepEvents",value:function(){for(var ie=this.exteriorRing.getSweepEvents(),ve=0,Ze=this.interiorRings.length;vethis.bbox.ur.x&&(this.bbox.ur.x=_t.bbox.ur.x),_t.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=_t.bbox.ur.y),this.polys.push(_t)}this.isSubject=ie}return le(Dt,[{key:"getSweepEvents",value:function(){for(var ie=[],ve=0,Ze=this.polys.length;ve0&&(ie=_t)}for(var Wt=ie.segment.prevInResult(),Sr=Wt?Wt.prevInResult():null;;){if(!Wt)return null;if(!Sr)return Wt.ringOut;if(Sr.ringOut!==Wt.ringOut)return Sr.ringOut.enclosingRing()!==Wt.ringOut?Wt.ringOut:Wt.ringOut.enclosingRing();Wt=Sr.prevInResult(),Sr=Wt?Wt.prevInResult():null}}}]),Dt}(),Hr=function(){function Dt(k){he(this,Dt),this.exteriorRing=k,k.poly=this,this.interiorRings=[]}return le(Dt,[{key:"addInterior",value:function(ie){this.interiorRings.push(ie),ie.poly=this}},{key:"getGeom",value:function(){var ie=[this.exteriorRing.getGeom()];if(ie[0]===null)return null;for(var ve=0,Ze=this.interiorRings.length;ve1&&arguments[1]!==void 0?arguments[1]:Xe.compare;he(this,Dt),this.queue=k,this.tree=new Ye(ie),this.segments=[]}return le(Dt,[{key:"process",value:function(ie){var ve=ie.segment,Ze=[];if(ie.consumedBy)return ie.isLeft?this.queue.remove(ie.otherSE):this.tree.remove(ve),Ze;var _t=ie.isLeft?this.tree.insert(ve):this.tree.find(ve);if(!_t)throw new Error("Unable to find segment #".concat(ve.id," ")+"[".concat(ve.leftSE.point.x,", ").concat(ve.leftSE.point.y,"] -> ")+"[".concat(ve.rightSE.point.x,", ").concat(ve.rightSE.point.y,"] ")+"in SweepLine tree. Please submit a bug report.");for(var Wt=_t,Sr=_t,He=void 0,Et=void 0;He===void 0;)Wt=this.tree.prev(Wt),Wt===null?He=null:Wt.key.consumedBy===void 0&&(He=Wt.key);for(;Et===void 0;)Sr=this.tree.next(Sr),Sr===null?Et=null:Sr.key.consumedBy===void 0&&(Et=Sr.key);if(ie.isLeft){var cr=null;if(He){var mr=He.getIntersection(ve);if(mr!==null&&(ve.isAnEndpoint(mr)||(cr=mr),!He.isAnEndpoint(mr)))for(var Zr=this._splitSafely(He,mr),Fn=0,En=Zr.length;Fn0?(this.tree.remove(ve),Ze.push(ie)):(this.segments.push(ve),ve.prev=He)}else{if(He&&Et){var J=He.getIntersection(Et);if(J!==null){if(!He.isAnEndpoint(J))for(var oe=this._splitSafely(He,J),be=0,Oe=oe.length;beKr)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big). Please file a bug report.");for(var lo=new bn(Cn),Is=Cn.size,hi=Cn.pop();hi;){var W=hi.key;if(Cn.size===Is){var J=W.segment;throw new Error("Unable to pop() ".concat(W.isLeft?"left":"right"," SweepEvent ")+"[".concat(W.point.x,", ").concat(W.point.y,"] from segment #").concat(J.id," ")+"[".concat(J.leftSE.point.x,", ").concat(J.leftSE.point.y,"] -> ")+"[".concat(J.rightSE.point.x,", ").concat(J.rightSE.point.y,"] from queue. ")+"Please file a bug report.")}if(Cn.size>Kr)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big). Please file a bug report.");if(lo.segments.length>Mi)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments). Please file a bug report.");for(var oe=lo.process(W),be=0,Oe=oe.length;be1?ie-1:0),Ze=1;Ze1?ie-1:0),Ze=1;Ze1?ie-1:0),Ze=1;Ze1?ie-1:0),Ze=1;Ze0)return!0;var Zr=xt.get(Et);return Zr.delete(cr),Zr.size>0||xt.delete(Et),!0}le("deleteMetadata",fr);function re(He,Et){for(var cr=He.length-1;cr>=0;--cr){var mr=He[cr],Zr=mr(Et);if(!Ht(Zr)&&!on(Zr)){if(!Dn(Zr))throw new TypeError;Et=Zr}}return Et}function V(He,Et,cr,mr){for(var Zr=He.length-1;Zr>=0;--Zr){var Fn=He[Zr],En=Fn(Et,cr,mr);if(!Ht(En)&&!on(En)){if(!Hr(En))throw new TypeError;mr=En}}return mr}function K(He,Et,cr){var mr=xt.get(He);if(Ht(mr)){if(!cr)return;mr=new Zt,xt.set(He,mr)}var Zr=mr.get(Et);if(Ht(Zr)){if(!cr)return;Zr=new Zt,mr.set(Et,Zr)}return Zr}function Me(He,Et,cr){var mr=Se(He,Et,cr);if(mr)return!0;var Zr=ve(Et);return on(Zr)?!1:Me(He,Zr,cr)}function Se(He,Et,cr){var mr=K(Et,cr,!1);return Ht(mr)?!1:Kr(mr.has(He))}function nt(He,Et,cr){var mr=Se(He,Et,cr);if(mr)return te(He,Et,cr);var Zr=ve(Et);if(!on(Zr))return nt(He,Zr,cr)}function te(He,Et,cr){var mr=K(Et,cr,!1);if(!Ht(mr))return mr.get(He)}function Ce(He,Et,cr,mr){var Zr=K(cr,mr,!0);Zr.set(He,Et)}function we(He,Et){var cr=Xe(He,Et),mr=ve(He);if(mr===null)return cr;var Zr=we(mr,Et);if(Zr.length<=0)return cr;if(cr.length<=0)return Zr;for(var Fn=new nr,En=[],Cn=0,fn=cr;Cn=0&&Cn=this._keys.length?(this._index=-1,this._keys=Et,this._values=Et):this._index++,{value:fn,done:!1}}return{value:void 0,done:!0}},En.prototype.throw=function(Cn){throw this._index>=0&&(this._index=-1,this._keys=Et,this._values=Et),Cn},En.prototype.return=function(Cn){return this._index>=0&&(this._index=-1,this._keys=Et,this._values=Et),{value:Cn,done:!0}},En}();return function(){function En(){this._keys=[],this._values=[],this._cacheKey=He,this._cacheIndex=-2}return Object.defineProperty(En.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),En.prototype.has=function(Cn){return this._find(Cn,!1)>=0},En.prototype.get=function(Cn){var fn=this._find(Cn,!1);return fn>=0?this._values[fn]:void 0},En.prototype.set=function(Cn,fn){var ni=this._find(Cn,!0);return this._values[ni]=fn,this},En.prototype.delete=function(Cn){var fn=this._find(Cn,!1);if(fn>=0){for(var ni=this._keys.length,Yn=fn+1;Yn=0&&(z|0)===z||_("invalid parameter type, ("+z+")"+U(Ae)+". must be a nonnegative integer")}function dt(z,Ae,je){Ae.indexOf(z)<0&&_("invalid value"+U(je)+". must be one of: "+Ae)}var Ye=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function wt(z){Object.keys(z).forEach(function(Ae){Ye.indexOf(Ae)<0&&_('invalid regl constructor argument "'+Ae+'". must be one of '+Ye)})}function Xt(z,Ae){for(z=z+"";z.length0&&Ae.push(new Vt("unknown",0,je))}}),Ae}function lr(z,Ae){Ae.forEach(function(je){var jt=z[je.file];if(jt){var pr=jt.index[je.line];if(pr){pr.errors.push(je),jt.hasErrors=!0;return}}z.unknown.hasErrors=!0,z.unknown.lines[0].errors.push(je)})}function At(z,Ae,je,jt,pr){if(!z.getShaderParameter(Ae,z.COMPILE_STATUS)){var Gt=z.getShaderInfoLog(Ae),kt=jt===z.FRAGMENT_SHADER?"fragment":"vertex";V(je,"string",kt+" shader source must be a string",pr);var Dr=Tr(je,pr),Cr=hr(Gt);lr(Dr,Cr),Object.keys(Dr).forEach(function(Vr){var Br=Dr[Vr];if(!Br.hasErrors)return;var Ur=[""],Gr=[""];function Ar(zr,Tt){Ur.push(zr),Gr.push(Tt||"")}Ar("file number "+Vr+": "+Br.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Br.lines.forEach(function(zr){if(zr.errors.length>0){Ar(Xt(zr.number,4)+"| ","background-color:yellow; font-weight:bold"),Ar(zr.line+q,"color:red; background-color:yellow; font-weight:bold");var Tt=0;zr.errors.forEach(function(er){var Fr=er.message,rn=/^\s*'(.*)'\s*:\s*(.*)$/.exec(Fr);if(rn){var yr=rn[1];switch(Fr=rn[2],yr){case"assign":yr="=";break}Tt=Math.max(zr.line.indexOf(yr,Tt),0)}else Tt=0;Ar(Xt("| ",6)),Ar(Xt("^^^",Tt+3)+q,"font-weight:bold"),Ar(Xt("| ",6)),Ar(Fr+q,"font-weight:bold")}),Ar(Xt("| ",6)+q)}else Ar(Xt(zr.number,4)+"| "),Ar(zr.line+q,"color:red")}),typeof document!="undefined"&&!window.chrome?(Gr[0]=Ur.join("%c"),console.log.apply(console,Gr)):console.log(Ur.join(""))}),le.raise("Error compiling "+kt+" shader, "+Dr[0].name)}}function ut(z,Ae,je,jt,pr){if(!z.getProgramParameter(Ae,z.LINK_STATUS)){var Gt=z.getProgramInfoLog(Ae),kt=Tr(je,pr),Dr=Tr(jt,pr),Cr='Error linking program with vertex shader, "'+Dr[0].name+'", and fragment shader "'+kt[0].name+'"';typeof document!="undefined"?console.log("%c"+Cr+q+"%c"+Gt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Cr+q+Gt),le.raise(Cr)}}function It(z){z._commandRef=xt()}function qe(z,Ae,je,jt){It(z);function pr(Cr){return Cr?jt.id(Cr):0}z._fragId=pr(z.static.frag),z._vertId=pr(z.static.vert);function Gt(Cr,Vr){Object.keys(Vr).forEach(function(Br){Cr[jt.id(Br)]=!0})}var kt=z._uniformSet={};Gt(kt,Ae.static),Gt(kt,Ae.dynamic);var Dr=z._attributeSet={};Gt(Dr,je.static),Gt(Dr,je.dynamic),z._hasCount="count"in z.static||"count"in z.dynamic||"elements"in z.static||"elements"in z.dynamic}function Ct(z,Ae){var je=bt();_(z+" in command "+(Ae||xt())+(je==="unknown"?"":" called from "+je))}function fr(z,Ae,je){z||Ct(Ae,je||xt())}function re(z,Ae,je,jt){z in Ae||Ct("unknown parameter ("+z+")"+U(je)+". possible values: "+Object.keys(Ae).join(),jt||xt())}function V(z,Ae,je,jt){Qe(z,Ae)||Ct("invalid parameter type"+U(je)+". expected "+Ae+", got "+typeof z,jt||xt())}function K(z){z()}function Me(z,Ae,je){z.texture?dt(z.texture._texture.internalformat,Ae,"unsupported texture format for attachment"):dt(z.renderbuffer._renderbuffer.format,je,"unsupported renderbuffer format for attachment")}var Se=33071,nt=9728,te=9984,Ce=9985,we=9986,Xe=9987,Lt=5120,Ht=5121,on=5122,Jr=5123,Hr=5124,Un=5125,bn=5126,Kr=32819,Mi=32820,Si=33635,Ri=34042,Gn=36193,Dn={};Dn[Lt]=Dn[Ht]=1,Dn[on]=Dn[Jr]=Dn[Gn]=Dn[Si]=Dn[Kr]=Dn[Mi]=2,Dn[Hr]=Dn[Un]=Dn[bn]=Dn[Ri]=4;function Ya(z,Ae){return z===Mi||z===Kr||z===Si?2:z===Ri?4:Dn[z]*Ae}function Yi(z){return!(z&z-1)&&!!z}function Na(z,Ae,je){var jt,pr=Ae.width,Gt=Ae.height,kt=Ae.channels;le(pr>0&&pr<=je.maxTextureSize&&Gt>0&&Gt<=je.maxTextureSize,"invalid texture shape"),(z.wrapS!==Se||z.wrapT!==Se)&&le(Yi(pr)&&Yi(Gt),"incompatible wrap mode for texture, both width and height must be power of 2"),Ae.mipmask===1?pr!==1&&Gt!==1&&le(z.minFilter!==te&&z.minFilter!==we&&z.minFilter!==Ce&&z.minFilter!==Xe,"min filter requires mipmap"):(le(Yi(pr)&&Yi(Gt),"texture must be a square power of 2 to support mipmapping"),le(Ae.mipmask===(pr<<1)-1,"missing or incomplete mipmap data")),Ae.type===bn&&(je.extensions.indexOf("oes_texture_float_linear")<0&&le(z.minFilter===nt&&z.magFilter===nt,"filter not supported, must enable oes_texture_float_linear"),le(!z.genMipmaps,"mipmap generation not supported with float textures"));var Dr=Ae.images;for(jt=0;jt<16;++jt)if(Dr[jt]){var Cr=pr>>jt,Vr=Gt>>jt;le(Ae.mipmask&1<0&&pr<=jt.maxTextureSize&&Gt>0&&Gt<=jt.maxTextureSize,"invalid texture shape"),le(pr===Gt,"cube map must be square"),le(Ae.wrapS===Se&&Ae.wrapT===Se,"wrap mode not supported by cube map");for(var Dr=0;Dr>Br,Ar=Gt>>Br;le(Cr.mipmask&1<1&&Ae===je&&(Ae==='"'||Ae==="'"))return['"'+_t(z.substr(1,z.length-2))+'"'];var jt=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(z);if(jt)return Wt(z.substr(0,jt.index)).concat(Wt(jt[1])).concat(Wt(z.substr(jt.index+jt[0].length)));var pr=z.split(".");if(pr.length===1)return['"'+_t(z)+'"'];for(var Gt=[],kt=0;kt0,"invalid pixel ratio"))):k.raise("invalid arguments to regl"),je&&(je.nodeName.toLowerCase()==="canvas"?pr=je:jt=je),!Gt){if(!pr){k(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var Ar=Cn(jt||document.body,Ur,Vr);if(!Ar)return null;pr=Ar.canvas,Gr=Ar.onDestroy}kt.premultipliedAlpha===void 0&&(kt.premultipliedAlpha=!0),Gt=fn(pr,kt)}return Gt?{gl:Gt,canvas:pr,container:jt,extensions:Dr,optionalExtensions:Cr,pixelRatio:Vr,profile:Br,onDone:Ur,onDestroy:Gr}:(Gr(),Ur("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Is(z,Ae){var je={};function jt(kt){k.type(kt,"string","extension name must be string");var Dr=kt.toLowerCase(),Cr;try{Cr=je[Dr]=z.getExtension(Dr)}catch(Vr){}return!!Cr}for(var pr=0;pr65535)<<4,z>>>=Ae,je=(z>255)<<3,z>>>=je,Ae|=je,je=(z>15)<<2,z>>>=je,Ae|=je,je=(z>3)<<1,z>>>=je,Ae|=je,Ae|z>>1}function Le(){var z=hi(8,function(){return[]});function Ae(Gt){var kt=j(Gt),Dr=z[Q(kt)>>2];return Dr.length>0?Dr.pop():new ArrayBuffer(kt)}function je(Gt){z[Q(Gt.byteLength)>>2].push(Gt)}function jt(Gt,kt){var Dr=null;switch(Gt){case W:Dr=new Int8Array(Ae(kt),0,kt);break;case J:Dr=new Uint8Array(Ae(kt),0,kt);break;case oe:Dr=new Int16Array(Ae(2*kt),0,kt);break;case be:Dr=new Uint16Array(Ae(2*kt),0,kt);break;case Oe:Dr=new Int32Array(Ae(4*kt),0,kt);break;case it:Dr=new Uint32Array(Ae(4*kt),0,kt);break;case pt:Dr=new Float32Array(Ae(4*kt),0,kt);break;default:return null}return Dr.length!==kt?Dr.subarray(0,kt):Dr}function pr(Gt){je(Gt.buffer)}return{alloc:Ae,free:je,allocType:jt,freeType:pr}}var at=Le();at.zero=Le();var Ee=3408,ir=3410,wr=3411,An=3412,sn=3413,sr=3414,en=3415,Wr=33901,Yr=33902,pi=3379,tn=3386,vi=34921,qi=36347,ci=36348,zi=35661,Ai=35660,Xo=34930,Ji=36349,Ia=34076,Ti=34024,mi=7936,wi=7937,Pa=7938,cu=35724,ma=34047,Aa=36063,$l=34852,os=3553,Ta=34067,fi=34069,Oa=33984,sa=6408,Ao=5126,ha=5121,$o=36160,Vo=36053,Ru=36064,ss=16384,Cc=function(z,Ae){var je=1;Ae.ext_texture_filter_anisotropic&&(je=z.getParameter(ma));var jt=1,pr=1;Ae.webgl_draw_buffers&&(jt=z.getParameter($l),pr=z.getParameter(Aa));var Gt=!!Ae.oes_texture_float;if(Gt){var kt=z.createTexture();z.bindTexture(os,kt),z.texImage2D(os,0,sa,1,1,0,sa,Ao,null);var Dr=z.createFramebuffer();if(z.bindFramebuffer($o,Dr),z.framebufferTexture2D($o,Ru,os,kt,0),z.bindTexture(os,null),z.checkFramebufferStatus($o)!==Vo)Gt=!1;else{z.viewport(0,0,1,1),z.clearColor(1,0,0,1),z.clear(ss);var Cr=at.allocType(Ao,4);z.readPixels(0,0,1,1,sa,Ao,Cr),z.getError()?Gt=!1:(z.deleteFramebuffer(Dr),z.deleteTexture(kt),Gt=Cr[0]===1),at.freeType(Cr)}}var Vr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Br=!0;if(!Vr){var Ur=z.createTexture(),Gr=at.allocType(ha,36);z.activeTexture(Oa),z.bindTexture(Ta,Ur),z.texImage2D(fi,0,sa,3,3,0,sa,ha,Gr),at.freeType(Gr),z.bindTexture(Ta,null),z.deleteTexture(Ur),Br=!z.getError()}return{colorBits:[z.getParameter(ir),z.getParameter(wr),z.getParameter(An),z.getParameter(sn)],depthBits:z.getParameter(sr),stencilBits:z.getParameter(en),subpixelBits:z.getParameter(Ee),extensions:Object.keys(Ae).filter(function(Ar){return!!Ae[Ar]}),maxAnisotropic:je,maxDrawbuffers:jt,maxColorAttachments:pr,pointSizeDims:z.getParameter(Wr),lineWidthDims:z.getParameter(Yr),maxViewportDims:z.getParameter(tn),maxCombinedTextureUnits:z.getParameter(zi),maxCubeMapSize:z.getParameter(Ia),maxRenderbufferSize:z.getParameter(Ti),maxTextureUnits:z.getParameter(Xo),maxTextureSize:z.getParameter(pi),maxAttributes:z.getParameter(vi),maxVertexUniforms:z.getParameter(qi),maxVertexTextureUnits:z.getParameter(Ai),maxVaryingVectors:z.getParameter(ci),maxFragmentUniforms:z.getParameter(Ji),glsl:z.getParameter(cu),renderer:z.getParameter(wi),vendor:z.getParameter(mi),version:z.getParameter(Pa),readFloat:Gt,npotTextureCube:Br}};function Ea(z){return!!z&&typeof z=="object"&&Array.isArray(z.shape)&&Array.isArray(z.stride)&&typeof z.offset=="number"&&z.shape.length===z.stride.length&&(Array.isArray(z.data)||ee(z.data))}var ea=function(z){return Object.keys(z).map(function(Ae){return z[Ae]})},Kt={shape:jr,flatten:or};function Sn(z,Ae,je){for(var jt=0;jt0){var nn;if(Array.isArray(er[0])){Pr=Qu(er);for(var br=1,$r=1;$r0)if(typeof br[0]=="number"){var Qr=at.allocType(yr.dtype,br.length);Qh(Qr,br),Pr(Qr,Nn),at.freeType(Qr)}else if(Array.isArray(br[0])||ee(br[0])){ui=Qu(br);var yt=Iu(br,ui,yr.dtype);Pr(yt,Nn),at.freeType(yt)}else k.raise("invalid buffer data")}else if(Ea(br)){ui=br.shape;var vr=br.stride,ot=0,Ci=0,ln=0,yi=0;ui.length===1?(ot=ui[0],Ci=1,ln=vr[0],yi=0):ui.length===2?(ot=ui[0],Ci=ui[1],ln=vr[0],yi=vr[1]):k.raise("invalid shape");var si=Array.isArray(br.data)?yr.dtype:Rf(br.data),Qn=at.allocType(si,ot*Ci);Mf(Qn,br.data,ot,Ci,ln,yi,br.offset),Pr(Qn,Nn),at.freeType(Qn)}else k.raise("invalid data for buffer subdata");return an}return Fr||an(Tt),an._reglType="buffer",an._buffer=yr,an.subdata=nn,je.profile&&(an.stats=yr.stats),an.destroy=function(){Gr(yr)},an}function zr(){ea(Gt).forEach(function(Tt){Tt.buffer=z.createBuffer(),z.bindBuffer(Tt.type,Tt.buffer),z.bufferData(Tt.type,Tt.persistentData||Tt.byteLength,Tt.usage)})}return je.profile&&(Ae.getTotalBufferSize=function(){var Tt=0;return Object.keys(Gt).forEach(function(er){Tt+=Gt[er].stats.size}),Tt}),{create:Ar,createStream:Cr,destroyStream:Vr,clear:function(){ea(Gt).forEach(Gr),Dr.forEach(Gr)},getBuffer:function(Tt){return Tt&&Tt._buffer instanceof kt?Tt._buffer:null},restore:zr,_initBuffer:Ur}}var dh=0,vh=0,Jh=1,ep=1,Zp=4,Jc=4,Pu={points:dh,point:vh,lines:Jh,line:ep,triangles:Zp,triangle:Jc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},tp=0,Ho=1,Yl=4,Sl=5120,$s=5121,Al=5122,oi=5123,el=5124,Ds=5125,Ou=34963,tl=35040,rp=35044;function ta(z,Ae,je,jt){var pr={},Gt=0,kt={uint8:$s,uint16:oi};Ae.oes_element_index_uint&&(kt.uint32=Ds);function Dr(zr){this.id=Gt++,pr[this.id]=this,this.buffer=zr,this.primType=Yl,this.vertCount=0,this.type=0}Dr.prototype.bind=function(){this.buffer.bind()};var Cr=[];function Vr(zr){var Tt=Cr.pop();return Tt||(Tt=new Dr(je.create(null,Ou,!0,!1)._buffer)),Ur(Tt,zr,tl,-1,-1,0,0),Tt}function Br(zr){Cr.push(zr)}function Ur(zr,Tt,er,Fr,rn,yr,an){zr.buffer.bind();var Pr;if(Tt){var nn=an;!an&&(!ee(Tt)||Ea(Tt)&&!ee(Tt.data))&&(nn=Ae.oes_element_index_uint?Ds:oi),je._initBuffer(zr.buffer,Tt,er,nn,3)}else z.bufferData(Ou,yr,er),zr.buffer.dtype=Pr||$s,zr.buffer.usage=er,zr.buffer.dimension=3,zr.buffer.byteLength=yr;if(Pr=an,!an){switch(zr.buffer.dtype){case $s:case Sl:Pr=$s;break;case oi:case Al:Pr=oi;break;case Ds:case el:Pr=Ds;break;default:k.raise("unsupported type for element array")}zr.buffer.dtype=Pr}zr.type=Pr,k(Pr!==Ds||!!Ae.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var br=rn;br<0&&(br=zr.buffer.byteLength,Pr===oi?br>>=1:Pr===Ds&&(br>>=2)),zr.vertCount=br;var $r=Fr;if(Fr<0){$r=Yl;var Nn=zr.buffer.dimension;Nn===1&&($r=tp),Nn===2&&($r=Ho),Nn===3&&($r=Yl)}zr.primType=$r}function Gr(zr){jt.elementsCount--,k(zr.buffer!==null,"must not double destroy elements"),delete pr[zr.id],zr.buffer.destroy(),zr.buffer=null}function Ar(zr,Tt){var er=je.create(null,Ou,!0),Fr=new Dr(er._buffer);jt.elementsCount++;function rn(yr){if(!yr)er(),Fr.primType=Yl,Fr.vertCount=0,Fr.type=$s;else if(typeof yr=="number")er(yr),Fr.primType=Yl,Fr.vertCount=yr|0,Fr.type=$s;else{var an=null,Pr=rp,nn=-1,br=-1,$r=0,Nn=0;Array.isArray(yr)||ee(yr)||Ea(yr)?an=yr:(k.type(yr,"object","invalid arguments for elements"),"data"in yr&&(an=yr.data,k(Array.isArray(an)||ee(an)||Ea(an),"invalid data for element buffer")),"usage"in yr&&(k.parameter(yr.usage,Mu,"invalid element buffer usage"),Pr=Mu[yr.usage]),"primitive"in yr&&(k.parameter(yr.primitive,Pu,"invalid element buffer primitive"),nn=Pu[yr.primitive]),"count"in yr&&(k(typeof yr.count=="number"&&yr.count>=0,"invalid vertex count for elements"),br=yr.count|0),"type"in yr&&(k.parameter(yr.type,kt,"invalid buffer type"),Nn=kt[yr.type]),"length"in yr?$r=yr.length|0:($r=br,Nn===oi||Nn===Al?$r*=2:(Nn===Ds||Nn===el)&&($r*=4))),Ur(Fr,an,Pr,nn,br,$r,Nn)}return rn}return rn(zr),rn._reglType="elements",rn._elements=Fr,rn.subdata=function(yr,an){return er.subdata(yr,an),rn},rn.destroy=function(){Gr(Fr)},rn}return{create:Ar,createStream:Vr,destroyStream:Br,getElements:function(zr){return typeof zr=="function"&&zr._elements instanceof Dr?zr._elements:null},clear:function(){ea(pr).forEach(Gr)}}}var Ii=new Float32Array(1),fu=new Uint32Array(Ii.buffer),Du=5123;function mh(z){for(var Ae=at.allocType(Du,z.length),je=0;je>>31<<15,Gt=(jt<<1>>>24)-127,kt=jt>>13&1024-1;if(Gt<-24)Ae[je]=pr;else if(Gt<-14){var Dr=-14-Gt;Ae[je]=pr+(kt+1024>>Dr)}else Gt>15?Ae[je]=pr+31744:Ae[je]=pr+(Gt+15<<10)+kt}return Ae}function Ha(z){return Array.isArray(z)||ee(z)}var ef=function(z){return!(z&z-1)&&!!z},Vp=34467,xs=3553,Fu=34067,ku=34069,ql=6408,If=6406,wa=6407,Qs=6409,Rc=6410,Kl=32854,rl=32855,gh=36194,Ql=32819,ca=32820,tf=33635,np=34042,Tl=6402,Jl=34041,_h=35904,Pf=35906,wl=36193,hu=33776,Mc=33777,rf=33778,ec=33779,tc=35986,ip=35987,nl=34798,Js=35840,nf=35841,Ic=35842,yh=35843,Cl=36196,pu=5121,af=5123,Pc=5125,Bu=5126,Md=10242,Of=10243,xh=10497,Df=33071,Fo=33648,bh=10240,ap=10241,Ff=9728,Eh=9729,Oc=9984,of=9985,il=9986,pa=9987,kf=33170,du=4352,Rl=4353,Li=4354,Ca=34046,Ys=3317,Bf=37440,Fs=37441,sf=37443,op=37444,Sh=33984,Lf=[Oc,il,of,pa],Ml=[0,Qs,Rc,wa,ql],ko={};ko[Qs]=ko[If]=ko[Tl]=1,ko[Jl]=ko[Rc]=2,ko[wa]=ko[_h]=3,ko[ql]=ko[Pf]=4;function Wa(z){return"[object "+z+"]"}var al=Wa("HTMLCanvasElement"),Ah=Wa("OffscreenCanvas"),Ka=Wa("CanvasRenderingContext2D"),_n=Wa("ImageBitmap"),ks=Wa("HTMLImageElement"),uf=Wa("HTMLVideoElement"),rc=Object.keys(In).concat([al,Ah,Ka,_n,ks,uf]),us=[];us[pu]=1,us[Bu]=4,us[wl]=2,us[af]=2,us[Pc]=4;var ga=[];ga[Kl]=2,ga[rl]=2,ga[gh]=2,ga[Jl]=4,ga[hu]=.5,ga[Mc]=.5,ga[rf]=1,ga[ec]=1,ga[tc]=.5,ga[ip]=1,ga[nl]=1,ga[Js]=.5,ga[nf]=.25,ga[Ic]=.5,ga[yh]=.25,ga[Cl]=.5;function Th(z){return Array.isArray(z)&&(z.length===0||typeof z[0]=="number")}function qr(z){if(!Array.isArray(z))return!1;var Ae=z.length;return!(Ae===0||!Ha(z[0]))}function ol(z){return Object.prototype.toString.call(z)}function Dc(z){return ol(z)===al}function wh(z){return ol(z)===Ah}function eu(z){return ol(z)===Ka}function Bs(z){return ol(z)===_n}function Nf(z){return ol(z)===ks}function Uf(z){return ol(z)===uf}function Yo(z){if(!z)return!1;var Ae=ol(z);return rc.indexOf(Ae)>=0?!0:Th(z)||qr(z)||Ea(z)}function Lu(z){return In[Object.prototype.toString.call(z)]|0}function sp(z,Ae){var je=Ae.length;switch(z.type){case pu:case af:case Pc:case Bu:var jt=at.allocType(z.type,je);jt.set(Ae),z.data=jt;break;case wl:z.data=mh(Ae);break;default:k.raise("unsupported texture type, must specify a typed array")}}function Il(z,Ae){return at.allocType(z.type===wl?Bu:z.type,Ae)}function lf(z,Ae){z.type===wl?(z.data=mh(Ae),at.freeType(Ae)):z.data=Ae}function up(z,Ae,je,jt,pr,Gt){for(var kt=z.width,Dr=z.height,Cr=z.channels,Vr=kt*Dr*Cr,Br=Il(z,Vr),Ur=0,Gr=0;Gr=1;)Dr+=kt*Cr*Cr,Cr/=2;return Dr}else return kt*je*jt}function Fe(z,Ae,je,jt,pr,Gt,kt){var Dr={"don't care":du,"dont care":du,nice:Li,fast:Rl},Cr={repeat:xh,clamp:Df,mirror:Fo},Vr={nearest:Ff,linear:Eh},Br=L({mipmap:pa,"nearest mipmap nearest":Oc,"linear mipmap nearest":of,"nearest mipmap linear":il,"linear mipmap linear":pa},Vr),Ur={none:0,browser:op},Gr={uint8:pu,rgba4:Ql,rgb565:tf,"rgb5 a1":ca},Ar={alpha:If,luminance:Qs,"luminance alpha":Rc,rgb:wa,rgba:ql,rgba4:Kl,"rgb5 a1":rl,rgb565:gh},zr={};Ae.ext_srgb&&(Ar.srgb=_h,Ar.srgba=Pf),Ae.oes_texture_float&&(Gr.float32=Gr.float=Bu),Ae.oes_texture_half_float&&(Gr.float16=Gr["half float"]=wl),Ae.webgl_depth_texture&&(L(Ar,{depth:Tl,"depth stencil":Jl}),L(Gr,{uint16:af,uint32:Pc,"depth stencil":np})),Ae.webgl_compressed_texture_s3tc&&L(zr,{"rgb s3tc dxt1":hu,"rgba s3tc dxt1":Mc,"rgba s3tc dxt3":rf,"rgba s3tc dxt5":ec}),Ae.webgl_compressed_texture_atc&&L(zr,{"rgb atc":tc,"rgba atc explicit alpha":ip,"rgba atc interpolated alpha":nl}),Ae.webgl_compressed_texture_pvrtc&&L(zr,{"rgb pvrtc 4bppv1":Js,"rgb pvrtc 2bppv1":nf,"rgba pvrtc 4bppv1":Ic,"rgba pvrtc 2bppv1":yh}),Ae.webgl_compressed_texture_etc1&&(zr["rgb etc1"]=Cl);var Tt=Array.prototype.slice.call(z.getParameter(Vp));Object.keys(zr).forEach(function(Ne){var $t=zr[Ne];Tt.indexOf($t)>=0&&(Ar[Ne]=$t)});var er=Object.keys(Ar);je.textureFormats=er;var Fr=[];Object.keys(Ar).forEach(function(Ne){var $t=Ar[Ne];Fr[$t]=Ne});var rn=[];Object.keys(Gr).forEach(function(Ne){var $t=Gr[Ne];rn[$t]=Ne});var yr=[];Object.keys(Vr).forEach(function(Ne){var $t=Vr[Ne];yr[$t]=Ne});var an=[];Object.keys(Br).forEach(function(Ne){var $t=Br[Ne];an[$t]=Ne});var Pr=[];Object.keys(Cr).forEach(function(Ne){var $t=Cr[Ne];Pr[$t]=Ne});var nn=er.reduce(function(Ne,$t){var Nt=Ar[$t];return Nt===Qs||Nt===If||Nt===Qs||Nt===Rc||Nt===Tl||Nt===Jl||Ae.ext_srgb&&(Nt===_h||Nt===Pf)?Ne[Nt]=Nt:Nt===rl||$t.indexOf("rgba")>=0?Ne[Nt]=ql:Ne[Nt]=wa,Ne},{});function br(){this.internalformat=ql,this.format=ql,this.type=pu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=op,this.width=0,this.height=0,this.channels=0}function $r(Ne,$t){Ne.internalformat=$t.internalformat,Ne.format=$t.format,Ne.type=$t.type,Ne.compressed=$t.compressed,Ne.premultiplyAlpha=$t.premultiplyAlpha,Ne.flipY=$t.flipY,Ne.unpackAlignment=$t.unpackAlignment,Ne.colorSpace=$t.colorSpace,Ne.width=$t.width,Ne.height=$t.height,Ne.channels=$t.channels}function Nn(Ne,$t){if(!(typeof $t!="object"||!$t)){if("premultiplyAlpha"in $t&&(k.type($t.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),Ne.premultiplyAlpha=$t.premultiplyAlpha),"flipY"in $t&&(k.type($t.flipY,"boolean","invalid texture flip"),Ne.flipY=$t.flipY),"alignment"in $t&&(k.oneOf($t.alignment,[1,2,4,8],"invalid texture unpack alignment"),Ne.unpackAlignment=$t.alignment),"colorSpace"in $t&&(k.parameter($t.colorSpace,Ur,"invalid colorSpace"),Ne.colorSpace=Ur[$t.colorSpace]),"type"in $t){var Nt=$t.type;k(Ae.oes_texture_float||!(Nt==="float"||Nt==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),k(Ae.oes_texture_half_float||!(Nt==="half float"||Nt==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),k(Ae.webgl_depth_texture||!(Nt==="uint16"||Nt==="uint32"||Nt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),k.parameter(Nt,Gr,"invalid texture type"),Ne.type=Gr[Nt]}var hn=Ne.width,bi=Ne.height,da=Ne.channels,ce=!1;"shape"in $t?(k(Array.isArray($t.shape)&&$t.shape.length>=2,"shape must be an array"),hn=$t.shape[0],bi=$t.shape[1],$t.shape.length===3&&(da=$t.shape[2],k(da>0&&da<=4,"invalid number of channels"),ce=!0),k(hn>=0&&hn<=je.maxTextureSize,"invalid width"),k(bi>=0&&bi<=je.maxTextureSize,"invalid height")):("radius"in $t&&(hn=bi=$t.radius,k(hn>=0&&hn<=je.maxTextureSize,"invalid radius")),"width"in $t&&(hn=$t.width,k(hn>=0&&hn<=je.maxTextureSize,"invalid width")),"height"in $t&&(bi=$t.height,k(bi>=0&&bi<=je.maxTextureSize,"invalid height")),"channels"in $t&&(da=$t.channels,k(da>0&&da<=4,"invalid number of channels"),ce=!0)),Ne.width=hn|0,Ne.height=bi|0,Ne.channels=da|0;var Te=!1;if("format"in $t){var Ve=$t.format;k(Ae.webgl_depth_texture||!(Ve==="depth"||Ve==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),k.parameter(Ve,Ar,"invalid texture format");var Ut=Ne.internalformat=Ar[Ve];Ne.format=nn[Ut],Ve in Gr&&("type"in $t||(Ne.type=Gr[Ve])),Ve in zr&&(Ne.compressed=!0),Te=!0}!ce&&Te?Ne.channels=ko[Ne.format]:ce&&!Te?Ne.channels!==Ml[Ne.format]&&(Ne.format=Ne.internalformat=Ml[Ne.channels]):Te&&ce&&k(Ne.channels===ko[Ne.format],"number of channels inconsistent with specified format")}}function ui(Ne){z.pixelStorei(Bf,Ne.flipY),z.pixelStorei(Fs,Ne.premultiplyAlpha),z.pixelStorei(sf,Ne.colorSpace),z.pixelStorei(Ys,Ne.unpackAlignment)}function Qr(){br.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function yt(Ne,$t){var Nt=null;if(Yo($t)?Nt=$t:$t&&(k.type($t,"object","invalid pixel data type"),Nn(Ne,$t),"x"in $t&&(Ne.xOffset=$t.x|0),"y"in $t&&(Ne.yOffset=$t.y|0),Yo($t.data)&&(Nt=$t.data)),k(!Ne.compressed||Nt instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),$t.copy){k(!Nt,"can not specify copy and data field for the same texture");var hn=pr.viewportWidth,bi=pr.viewportHeight;Ne.width=Ne.width||hn-Ne.xOffset,Ne.height=Ne.height||bi-Ne.yOffset,Ne.needsCopy=!0,k(Ne.xOffset>=0&&Ne.xOffset=0&&Ne.yOffset0&&Ne.width<=hn&&Ne.height>0&&Ne.height<=bi,"copy texture read out of bounds")}else if(!Nt)Ne.width=Ne.width||1,Ne.height=Ne.height||1,Ne.channels=Ne.channels||4;else if(ee(Nt))Ne.channels=Ne.channels||4,Ne.data=Nt,!("type"in $t)&&Ne.type===pu&&(Ne.type=Lu(Nt));else if(Th(Nt))Ne.channels=Ne.channels||4,sp(Ne,Nt),Ne.alignment=1,Ne.needsFree=!0;else if(Ea(Nt)){var da=Nt.data;!Array.isArray(da)&&Ne.type===pu&&(Ne.type=Lu(da));var ce=Nt.shape,Te=Nt.stride,Ve,Ut,Bt,tt,ft,mt;ce.length===3?(Bt=ce[2],mt=Te[2]):(k(ce.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Bt=1,mt=1),Ve=ce[0],Ut=ce[1],tt=Te[0],ft=Te[1],Ne.alignment=1,Ne.width=Ve,Ne.height=Ut,Ne.channels=Bt,Ne.format=Ne.internalformat=Ml[Bt],Ne.needsFree=!0,up(Ne,da,tt,ft,mt,Nt.offset)}else if(Dc(Nt)||wh(Nt)||eu(Nt))Dc(Nt)||wh(Nt)?Ne.element=Nt:Ne.element=Nt.canvas,Ne.width=Ne.element.width,Ne.height=Ne.element.height,Ne.channels=4;else if(Bs(Nt))Ne.element=Nt,Ne.width=Nt.width,Ne.height=Nt.height,Ne.channels=4;else if(Nf(Nt))Ne.element=Nt,Ne.width=Nt.naturalWidth,Ne.height=Nt.naturalHeight,Ne.channels=4;else if(Uf(Nt))Ne.element=Nt,Ne.width=Nt.videoWidth,Ne.height=Nt.videoHeight,Ne.channels=4;else if(qr(Nt)){var De=Ne.width||Nt[0].length,st=Ne.height||Nt.length,me=Ne.channels;Ha(Nt[0][0])?me=me||Nt[0][0].length:me=me||1;for(var lt=Kt.shape(Nt),Qt=1,ur=0;ur=0,"oes_texture_float extension not enabled"):Ne.type===wl&&k(je.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function vr(Ne,$t,Nt){var hn=Ne.element,bi=Ne.data,da=Ne.internalformat,ce=Ne.format,Te=Ne.type,Ve=Ne.width,Ut=Ne.height;ui(Ne),hn?z.texImage2D($t,Nt,ce,ce,Te,hn):Ne.compressed?z.compressedTexImage2D($t,Nt,da,Ve,Ut,0,bi):Ne.needsCopy?(jt(),z.copyTexImage2D($t,Nt,ce,Ne.xOffset,Ne.yOffset,Ve,Ut,0)):z.texImage2D($t,Nt,ce,Ve,Ut,0,ce,Te,bi||null)}function ot(Ne,$t,Nt,hn,bi){var da=Ne.element,ce=Ne.data,Te=Ne.internalformat,Ve=Ne.format,Ut=Ne.type,Bt=Ne.width,tt=Ne.height;ui(Ne),da?z.texSubImage2D($t,bi,Nt,hn,Ve,Ut,da):Ne.compressed?z.compressedTexSubImage2D($t,bi,Nt,hn,Te,Bt,tt,ce):Ne.needsCopy?(jt(),z.copyTexSubImage2D($t,bi,Nt,hn,Ne.xOffset,Ne.yOffset,Bt,tt)):z.texSubImage2D($t,bi,Nt,hn,Bt,tt,Ve,Ut,ce)}var Ci=[];function ln(){return Ci.pop()||new Qr}function yi(Ne){Ne.needsFree&&at.freeType(Ne.data),Qr.call(Ne),Ci.push(Ne)}function si(){br.call(this),this.genMipmaps=!1,this.mipmapHint=du,this.mipmask=0,this.images=Array(16)}function Qn(Ne,$t,Nt){var hn=Ne.images[0]=ln();Ne.mipmask=1,hn.width=Ne.width=$t,hn.height=Ne.height=Nt,hn.channels=Ne.channels=4}function Vi(Ne,$t){var Nt=null;if(Yo($t))Nt=Ne.images[0]=ln(),$r(Nt,Ne),yt(Nt,$t),Ne.mipmask=1;else if(Nn(Ne,$t),Array.isArray($t.mipmap))for(var hn=$t.mipmap,bi=0;bi>=bi,Nt.height>>=bi,yt(Nt,hn[bi]),Ne.mipmask|=1<=0&&!("faces"in $t)&&(Ne.genMipmaps=!0)}if("mag"in $t){var hn=$t.mag;k.parameter(hn,Vr),Ne.magFilter=Vr[hn]}var bi=Ne.wrapS,da=Ne.wrapT;if("wrap"in $t){var ce=$t.wrap;typeof ce=="string"?(k.parameter(ce,Cr),bi=da=Cr[ce]):Array.isArray(ce)&&(k.parameter(ce[0],Cr),k.parameter(ce[1],Cr),bi=Cr[ce[0]],da=Cr[ce[1]])}else{if("wrapS"in $t){var Te=$t.wrapS;k.parameter(Te,Cr),bi=Cr[Te]}if("wrapT"in $t){var Ve=$t.wrapT;k.parameter(Ve,Cr),da=Cr[Ve]}}if(Ne.wrapS=bi,Ne.wrapT=da,"anisotropic"in $t){var Ut=$t.anisotropic;k(typeof Ut=="number"&&Ut>=1&&Ut<=je.maxAnisotropic,"aniso samples must be between 1 and "),Ne.anisotropic=$t.anisotropic}if("mipmap"in $t){var Bt=!1;switch(typeof $t.mipmap){case"string":k.parameter($t.mipmap,Dr,"invalid mipmap hint"),Ne.mipmapHint=Dr[$t.mipmap],Ne.genMipmaps=!0,Bt=!0;break;case"boolean":Bt=Ne.genMipmaps=$t.mipmap;break;case"object":k(Array.isArray($t.mipmap),"invalid mipmap type"),Ne.genMipmaps=!1,Bt=!0;break;default:k.raise("invalid mipmap type")}Bt&&!("min"in $t)&&(Ne.minFilter=Oc)}}function xo(Ne,$t){z.texParameteri($t,ap,Ne.minFilter),z.texParameteri($t,bh,Ne.magFilter),z.texParameteri($t,Md,Ne.wrapS),z.texParameteri($t,Of,Ne.wrapT),Ae.ext_texture_filter_anisotropic&&z.texParameteri($t,Ca,Ne.anisotropic),Ne.genMipmaps&&(z.hint(kf,Ne.mipmapHint),z.generateMipmap($t))}var Ja=0,Mo={},ps=je.maxTextureUnits,Io=Array(ps).map(function(){return null});function xi(Ne){br.call(this),this.mipmask=0,this.internalformat=ql,this.id=Ja++,this.refCount=1,this.target=Ne,this.texture=z.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Sa,kt.profile&&(this.stats={size:0})}function es(Ne){z.activeTexture(Sh),z.bindTexture(Ne.target,Ne.texture)}function ua(){var Ne=Io[0];Ne?z.bindTexture(Ne.target,Ne.texture):z.bindTexture(xs,null)}function Xn(Ne){var $t=Ne.texture;k($t,"must not double destroy texture");var Nt=Ne.unit,hn=Ne.target;Nt>=0&&(z.activeTexture(Sh+Nt),z.bindTexture(hn,null),Io[Nt]=null),z.deleteTexture($t),Ne.texture=null,Ne.params=null,Ne.pixels=null,Ne.refCount=0,delete Mo[Ne.id],Gt.textureCount--}L(xi.prototype,{bind:function(){var Ne=this;Ne.bindCount+=1;var $t=Ne.unit;if($t<0){for(var Nt=0;Nt0)continue;hn.unit=-1}Io[Nt]=Ne,$t=Nt;break}$t>=ps&&k.raise("insufficient number of texture units"),kt.profile&&Gt.maxTextureUnits<$t+1&&(Gt.maxTextureUnits=$t+1),Ne.unit=$t,z.activeTexture(Sh+$t),z.bindTexture(Ne.target,Ne.texture)}return $t},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Xn(this)}});function Oi(Ne,$t){var Nt=new xi(xs);Mo[Nt.id]=Nt,Gt.textureCount++;function hn(ce,Te){var Ve=Nt.texInfo;Sa.call(Ve);var Ut=Pi();return typeof ce=="number"?typeof Te=="number"?Qn(Ut,ce|0,Te|0):Qn(Ut,ce|0,ce|0):ce?(k.type(ce,"object","invalid arguments to regl.texture"),yo(Ve,ce),Vi(Ut,ce)):Qn(Ut,1,1),Ve.genMipmaps&&(Ut.mipmask=(Ut.width<<1)-1),Nt.mipmask=Ut.mipmask,$r(Nt,Ut),k.texture2D(Ve,Ut,je),Nt.internalformat=Ut.internalformat,hn.width=Ut.width,hn.height=Ut.height,es(Nt),_o(Ut,xs),xo(Ve,xs),ua(),fo(Ut),kt.profile&&(Nt.stats.size=Pt(Nt.internalformat,Nt.type,Ut.width,Ut.height,Ve.genMipmaps,!1)),hn.format=Fr[Nt.internalformat],hn.type=rn[Nt.type],hn.mag=yr[Ve.magFilter],hn.min=an[Ve.minFilter],hn.wrapS=Pr[Ve.wrapS],hn.wrapT=Pr[Ve.wrapT],hn}function bi(ce,Te,Ve,Ut){k(!!ce,"must specify image data");var Bt=Te|0,tt=Ve|0,ft=Ut|0,mt=ln();return $r(mt,Nt),mt.width=0,mt.height=0,yt(mt,ce),mt.width=mt.width||(Nt.width>>ft)-Bt,mt.height=mt.height||(Nt.height>>ft)-tt,k(Nt.type===mt.type&&Nt.format===mt.format&&Nt.internalformat===mt.internalformat,"incompatible format for texture.subimage"),k(Bt>=0&&tt>=0&&Bt+mt.width<=Nt.width&&tt+mt.height<=Nt.height,"texture.subimage write out of bounds"),k(Nt.mipmask&1<>Bt;++Bt){var tt=Ve>>Bt,ft=Ut>>Bt;if(!tt||!ft)break;z.texImage2D(xs,Bt,Nt.format,tt,ft,0,Nt.format,Nt.type,null)}return ua(),kt.profile&&(Nt.stats.size=Pt(Nt.internalformat,Nt.type,Ve,Ut,!1,!1)),hn}return hn(Ne,$t),hn.subimage=bi,hn.resize=da,hn._reglType="texture2d",hn._texture=Nt,kt.profile&&(hn.stats=Nt.stats),hn.destroy=function(){Nt.decRef()},hn}function Xi(Ne,$t,Nt,hn,bi,da){var ce=new xi(Fu);Mo[ce.id]=ce,Gt.cubeCount++;var Te=new Array(6);function Ve(tt,ft,mt,De,st,me){var lt,Qt=ce.texInfo;for(Sa.call(Qt),lt=0;lt<6;++lt)Te[lt]=Pi();if(typeof tt=="number"||!tt){var ur=tt|0||1;for(lt=0;lt<6;++lt)Qn(Te[lt],ur,ur)}else if(typeof tt=="object")if(ft)Vi(Te[0],tt),Vi(Te[1],ft),Vi(Te[2],mt),Vi(Te[3],De),Vi(Te[4],st),Vi(Te[5],me);else if(yo(Qt,tt),Nn(ce,tt),"faces"in tt){var xr=tt.faces;for(k(Array.isArray(xr)&&xr.length===6,"cube faces must be a length 6 array"),lt=0;lt<6;++lt)k(typeof xr[lt]=="object"&&!!xr[lt],"invalid input for cube map face"),$r(Te[lt],ce),Vi(Te[lt],xr[lt])}else for(lt=0;lt<6;++lt)Vi(Te[lt],tt);else k.raise("invalid arguments to cube map");for($r(ce,Te[0]),je.npotTextureCube||k(ef(ce.width)&&ef(ce.height),"your browser does not support non power or two texture dimensions"),Qt.genMipmaps?ce.mipmask=(Te[0].width<<1)-1:ce.mipmask=Te[0].mipmask,k.textureCube(ce,Qt,Te,je),ce.internalformat=Te[0].internalformat,Ve.width=Te[0].width,Ve.height=Te[0].height,es(ce),lt=0;lt<6;++lt)_o(Te[lt],ku+lt);for(xo(Qt,Fu),ua(),kt.profile&&(ce.stats.size=Pt(ce.internalformat,ce.type,Ve.width,Ve.height,Qt.genMipmaps,!0)),Ve.format=Fr[ce.internalformat],Ve.type=rn[ce.type],Ve.mag=yr[Qt.magFilter],Ve.min=an[Qt.minFilter],Ve.wrapS=Pr[Qt.wrapS],Ve.wrapT=Pr[Qt.wrapT],lt=0;lt<6;++lt)fo(Te[lt]);return Ve}function Ut(tt,ft,mt,De,st){k(!!ft,"must specify image data"),k(typeof tt=="number"&&tt===(tt|0)&&tt>=0&&tt<6,"invalid face");var me=mt|0,lt=De|0,Qt=st|0,ur=ln();return $r(ur,ce),ur.width=0,ur.height=0,yt(ur,ft),ur.width=ur.width||(ce.width>>Qt)-me,ur.height=ur.height||(ce.height>>Qt)-lt,k(ce.type===ur.type&&ce.format===ur.format&&ce.internalformat===ur.internalformat,"incompatible format for texture.subimage"),k(me>=0&<>=0&&me+ur.width<=ce.width&<+ur.height<=ce.height,"texture.subimage write out of bounds"),k(ce.mipmask&1<>De;++De)z.texImage2D(ku+mt,De,ce.format,ft>>De,ft>>De,0,ce.format,ce.type,null);return ua(),kt.profile&&(ce.stats.size=Pt(ce.internalformat,ce.type,Ve.width,Ve.height,!1,!0)),Ve}}return Ve(Ne,$t,Nt,hn,bi,da),Ve.subimage=Ut,Ve.resize=Bt,Ve._reglType="textureCube",Ve._texture=ce,kt.profile&&(Ve.stats=ce.stats),Ve.destroy=function(){ce.decRef()},Ve}function bo(){for(var Ne=0;Ne>hn,Nt.height>>hn,0,Nt.internalformat,Nt.type,null);else for(var bi=0;bi<6;++bi)z.texImage2D(ku+bi,hn,Nt.internalformat,Nt.width>>hn,Nt.height>>hn,0,Nt.internalformat,Nt.type,null);xo(Nt.texInfo,Nt.target)})}return{create2D:Oi,createCube:Xi,clear:bo,getTexture:function(Ne){return null},restore:Xu}}var B=36161,qs=32854,ge=32855,Bo=36194,io=33189,vu=36168,bs=34041,Da=35907,nc=34836,kn=34842,yn=34843,Ls=[];Ls[qs]=2,Ls[ge]=2,Ls[Bo]=2,Ls[io]=2,Ls[vu]=1,Ls[bs]=4,Ls[Da]=4,Ls[nc]=16,Ls[kn]=8,Ls[yn]=6;function qo(z,Ae,je){return Ls[z]*Ae*je}var mu=function(z,Ae,je,jt,pr){var Gt={rgba4:qs,rgb565:Bo,"rgb5 a1":ge,depth:io,stencil:vu,"depth stencil":bs};Ae.ext_srgb&&(Gt.srgba=Da),Ae.ext_color_buffer_half_float&&(Gt.rgba16f=kn,Gt.rgb16f=yn),Ae.webgl_color_buffer_float&&(Gt.rgba32f=nc);var kt=[];Object.keys(Gt).forEach(function(Ar){var zr=Gt[Ar];kt[zr]=Ar});var Dr=0,Cr={};function Vr(Ar){this.id=Dr++,this.refCount=1,this.renderbuffer=Ar,this.format=qs,this.width=0,this.height=0,pr.profile&&(this.stats={size:0})}Vr.prototype.decRef=function(){--this.refCount<=0&&Br(this)};function Br(Ar){var zr=Ar.renderbuffer;k(zr,"must not double destroy renderbuffer"),z.bindRenderbuffer(B,null),z.deleteRenderbuffer(zr),Ar.renderbuffer=null,Ar.refCount=0,delete Cr[Ar.id],jt.renderbufferCount--}function Ur(Ar,zr){var Tt=new Vr(z.createRenderbuffer());Cr[Tt.id]=Tt,jt.renderbufferCount++;function er(rn,yr){var an=0,Pr=0,nn=qs;if(typeof rn=="object"&&rn){var br=rn;if("shape"in br){var $r=br.shape;k(Array.isArray($r)&&$r.length>=2,"invalid renderbuffer shape"),an=$r[0]|0,Pr=$r[1]|0}else"radius"in br&&(an=Pr=br.radius|0),"width"in br&&(an=br.width|0),"height"in br&&(Pr=br.height|0);"format"in br&&(k.parameter(br.format,Gt,"invalid renderbuffer format"),nn=Gt[br.format])}else typeof rn=="number"?(an=rn|0,typeof yr=="number"?Pr=yr|0:Pr=an):rn?k.raise("invalid arguments to renderbuffer constructor"):an=Pr=1;if(k(an>0&&Pr>0&&an<=je.maxRenderbufferSize&&Pr<=je.maxRenderbufferSize,"invalid renderbuffer size"),!(an===Tt.width&&Pr===Tt.height&&nn===Tt.format))return er.width=Tt.width=an,er.height=Tt.height=Pr,Tt.format=nn,z.bindRenderbuffer(B,Tt.renderbuffer),z.renderbufferStorage(B,nn,an,Pr),k(z.getError()===0,"invalid render buffer format"),pr.profile&&(Tt.stats.size=qo(Tt.format,Tt.width,Tt.height)),er.format=kt[Tt.format],er}function Fr(rn,yr){var an=rn|0,Pr=yr|0||an;return an===Tt.width&&Pr===Tt.height||(k(an>0&&Pr>0&&an<=je.maxRenderbufferSize&&Pr<=je.maxRenderbufferSize,"invalid renderbuffer size"),er.width=Tt.width=an,er.height=Tt.height=Pr,z.bindRenderbuffer(B,Tt.renderbuffer),z.renderbufferStorage(B,Tt.format,an,Pr),k(z.getError()===0,"invalid render buffer format"),pr.profile&&(Tt.stats.size=qo(Tt.format,Tt.width,Tt.height))),er}return er(Ar,zr),er.resize=Fr,er._reglType="renderbuffer",er._renderbuffer=Tt,pr.profile&&(er.stats=Tt.stats),er.destroy=function(){Tt.decRef()},er}pr.profile&&(jt.getTotalRenderbufferSize=function(){var Ar=0;return Object.keys(Cr).forEach(function(zr){Ar+=Cr[zr].stats.size}),Ar});function Gr(){ea(Cr).forEach(function(Ar){Ar.renderbuffer=z.createRenderbuffer(),z.bindRenderbuffer(B,Ar.renderbuffer),z.renderbufferStorage(B,Ar.format,Ar.width,Ar.height)}),z.bindRenderbuffer(B,null)}return{create:Ur,clear:function(){ea(Cr).forEach(Br)},restore:Gr}},Fa=36160,Ns=36161,Ks=3553,Fc=34069,ra=36064,wo=36096,Ch=36128,Pl=33306,zf=36053,gu=36054,Es=36055,ic=36057,Nu=36061,Zf=36193,kc=5121,cf=5126,Vf=6407,ac=6408,oc=6402,Uu=[Vf,ac],zu=[];zu[ac]=4,zu[Vf]=3;var tu=[];tu[kc]=1,tu[cf]=4,tu[Zf]=2;var jf=32854,Ol=32855,ru=36194,Dl=33189,ff=36168,Rh=34041,Hf=35907,h=34836,d=34842,p=34843,g=[jf,Ol,ru,Hf,d,p,h],S={};S[zf]="complete",S[gu]="incomplete attachment",S[ic]="incomplete dimensions",S[Es]="incomplete, missing attachment",S[Nu]="unsupported";function w(z,Ae,je,jt,pr,Gt){var kt={cur:null,next:null,dirty:!1,setFBO:null},Dr=["rgba"],Cr=["rgba4","rgb565","rgb5 a1"];Ae.ext_srgb&&Cr.push("srgba"),Ae.ext_color_buffer_half_float&&Cr.push("rgba16f","rgb16f"),Ae.webgl_color_buffer_float&&Cr.push("rgba32f");var Vr=["uint8"];Ae.oes_texture_half_float&&Vr.push("half float","float16"),Ae.oes_texture_float&&Vr.push("float","float32");function Br(Qr,yt,vr){this.target=Qr,this.texture=yt,this.renderbuffer=vr;var ot=0,Ci=0;yt?(ot=yt.width,Ci=yt.height):vr&&(ot=vr.width,Ci=vr.height),this.width=ot,this.height=Ci}function Ur(Qr){Qr&&(Qr.texture&&Qr.texture._texture.decRef(),Qr.renderbuffer&&Qr.renderbuffer._renderbuffer.decRef())}function Gr(Qr,yt,vr){if(Qr)if(Qr.texture){var ot=Qr.texture._texture,Ci=Math.max(1,ot.width),ln=Math.max(1,ot.height);k(Ci===yt&&ln===vr,"inconsistent width/height for supplied texture"),ot.refCount+=1}else{var yi=Qr.renderbuffer._renderbuffer;k(yi.width===yt&&yi.height===vr,"inconsistent width/height for renderbuffer"),yi.refCount+=1}}function Ar(Qr,yt){yt&&(yt.texture?z.framebufferTexture2D(Fa,Qr,yt.target,yt.texture._texture.texture,0):z.framebufferRenderbuffer(Fa,Qr,Ns,yt.renderbuffer._renderbuffer.renderbuffer))}function zr(Qr){var yt=Ks,vr=null,ot=null,Ci=Qr;typeof Qr=="object"&&(Ci=Qr.data,"target"in Qr&&(yt=Qr.target|0)),k.type(Ci,"function","invalid attachment data");var ln=Ci._reglType;return ln==="texture2d"?(vr=Ci,k(yt===Ks)):ln==="textureCube"?(vr=Ci,k(yt>=Fc&&yt=2,"invalid shape for framebuffer"),Qn=es[0],Vi=es[1]}else"radius"in xi&&(Qn=Vi=xi.radius),"width"in xi&&(Qn=xi.width),"height"in xi&&(Vi=xi.height);("color"in xi||"colors"in xi)&&(Pi=xi.color||xi.colors,Array.isArray(Pi)&&k(Pi.length===1||Ae.webgl_draw_buffers,"multiple render targets not supported")),Pi||("colorCount"in xi&&(xo=xi.colorCount|0,k(xo>0,"invalid color buffer count")),"colorTexture"in xi&&(fo=!!xi.colorTexture,Sa="rgba4"),"colorType"in xi&&(yo=xi.colorType,fo?(k(Ae.oes_texture_float||!(yo==="float"||yo==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),k(Ae.oes_texture_half_float||!(yo==="half float"||yo==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):yo==="half float"||yo==="float16"?(k(Ae.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),Sa="rgba16f"):(yo==="float"||yo==="float32")&&(k(Ae.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),Sa="rgba32f"),k.oneOf(yo,Vr,"invalid color type")),"colorFormat"in xi&&(Sa=xi.colorFormat,Dr.indexOf(Sa)>=0?fo=!0:Cr.indexOf(Sa)>=0?fo=!1:fo?k.oneOf(xi.colorFormat,Dr,"invalid color format for texture"):k.oneOf(xi.colorFormat,Cr,"invalid color format for renderbuffer"))),("depthTexture"in xi||"depthStencilTexture"in xi)&&(Io=!!(xi.depthTexture||xi.depthStencilTexture),k(!Io||Ae.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in xi&&(typeof xi.depth=="boolean"?_o=xi.depth:(Ja=xi.depth,Wo=!1)),"stencil"in xi&&(typeof xi.stencil=="boolean"?Wo=xi.stencil:(Mo=xi.stencil,_o=!1)),"depthStencil"in xi&&(typeof xi.depthStencil=="boolean"?_o=Wo=xi.depthStencil:(ps=xi.depthStencil,_o=!1,Wo=!1))}var ua=null,Xn=null,Oi=null,Xi=null;if(Array.isArray(Pi))ua=Pi.map(zr);else if(Pi)ua=[zr(Pi)];else for(ua=new Array(xo),si=0;si=0||ua[si].renderbuffer&&g.indexOf(ua[si].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+si+" is invalid"),ua[si]&&ua[si].texture){var Xu=zu[ua[si].texture._texture.format]*tu[ua[si].texture._texture.type];bo===null?bo=Xu:k(bo===Xu,"all color attachments much have the same number of bits per pixel.")}return Gr(Xn,Qn,Vi),k(!Xn||Xn.texture&&Xn.texture._texture.format===oc||Xn.renderbuffer&&Xn.renderbuffer._renderbuffer.format===Dl,"invalid depth attachment for framebuffer object"),Gr(Oi,Qn,Vi),k(!Oi||Oi.renderbuffer&&Oi.renderbuffer._renderbuffer.format===ff,"invalid stencil attachment for framebuffer object"),Gr(Xi,Qn,Vi),k(!Xi||Xi.texture&&Xi.texture._texture.format===Rh||Xi.renderbuffer&&Xi.renderbuffer._renderbuffer.format===Rh,"invalid depth-stencil attachment for framebuffer object"),Pr(vr),vr.width=Qn,vr.height=Vi,vr.colorAttachments=ua,vr.depthAttachment=Xn,vr.stencilAttachment=Oi,vr.depthStencilAttachment=Xi,ot.color=ua.map(er),ot.depth=er(Xn),ot.stencil=er(Oi),ot.depthStencil=er(Xi),ot.width=vr.width,ot.height=vr.height,br(vr),ot}function Ci(ln,yi){k(kt.next!==vr,"can not resize a framebuffer which is currently in use");var si=Math.max(ln|0,1),Qn=Math.max(yi|0||si,1);if(si===vr.width&&Qn===vr.height)return ot;for(var Vi=vr.colorAttachments,_o=0;_o=2,"invalid shape for framebuffer"),k(fo[0]===fo[1],"cube framebuffer must be square"),si=fo[0]}else"radius"in Pi&&(si=Pi.radius|0),"width"in Pi?(si=Pi.width|0,"height"in Pi&&k(Pi.height===si,"must be square")):"height"in Pi&&(si=Pi.height|0);("color"in Pi||"colors"in Pi)&&(Qn=Pi.color||Pi.colors,Array.isArray(Qn)&&k(Qn.length===1||Ae.webgl_draw_buffers,"multiple render targets not supported")),Qn||("colorCount"in Pi&&(Wo=Pi.colorCount|0,k(Wo>0,"invalid color buffer count")),"colorType"in Pi&&(k.oneOf(Pi.colorType,Vr,"invalid color type"),_o=Pi.colorType),"colorFormat"in Pi&&(Vi=Pi.colorFormat,k.oneOf(Pi.colorFormat,Dr,"invalid color format for texture"))),"depth"in Pi&&(yi.depth=Pi.depth),"stencil"in Pi&&(yi.stencil=Pi.stencil),"depthStencil"in Pi&&(yi.depthStencil=Pi.depthStencil)}var Sa;if(Qn)if(Array.isArray(Qn))for(Sa=[],ln=0;ln0&&(yi.depth=yt[0].depth,yi.stencil=yt[0].stencil,yi.depthStencil=yt[0].depthStencil),yt[ln]?yt[ln](yi):yt[ln]=$r(yi)}return L(vr,{width:si,height:si,color:Sa})}function ot(Ci){var ln,yi=Ci|0;if(k(yi>0&&yi<=je.maxCubeMapSize,"invalid radius for cube fbo"),yi===vr.width)return vr;var si=vr.color;for(ln=0;ln0,"must specify at least one attribute");for(var Nn=0;Nn=1&&vr.size<=4,"size must be between 1 and 4"),k(vr.offset>=0,"invalid offset"),k(vr.stride>=0&&vr.stride<=255,"stride must be between 0 and 255"),k(vr.divisor>=0,"divisor must be positive"),k(!vr.divisor||!!Ae.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in yt?(k(Qr>0,"first attribute must not be a constant"),vr.x=+yt.x||0,vr.y=+yt.y||0,vr.z=+yt.z||0,vr.w=+yt.w||0,vr.state=2):k(!1,"invalid attribute spec for location "+Qr)}return nn.refresh(),br}return br.destroy=function(){nn.destroy()},br._vao=nn,br._reglType="vao",br(Pr)}return Br}var pe=35632,_e=35633,ye=35718,Ue=35721;function ke(z,Ae,je,jt){var pr={},Gt={};function kt(Tt,er,Fr,rn){this.name=Tt,this.id=er,this.location=Fr,this.info=rn}function Dr(Tt,er){for(var Fr=0;Fr1)for(var ui=0;uiTt&&(Tt=er.stats.uniformsCount)}),Tt},je.getMaxAttributesCount=function(){var Tt=0;return Br.forEach(function(er){er.stats.attributesCount>Tt&&(Tt=er.stats.attributesCount)}),Tt});function zr(){pr={},Gt={};for(var Tt=0;Tt=0,"missing vertex shader",Fr),k.command(er>=0,"missing fragment shader",Fr);var yr=Vr[er];yr||(yr=Vr[er]={});var an=yr[Tt];if(an&&!rn)return an;var Pr=new Gr(er,Tt);return je.shaderCount++,Ar(Pr,Fr,rn),an||(yr[Tt]=Pr),Br.push(Pr),Pr},restore:zr,shader:Cr,frag:-1,vert:-1}}var Ke=6408,Ie=5121,$e=3333,vt=5126;function Rt(z,Ae,je,jt,pr,Gt,kt){function Dr(Br){var Ur;Ae.next===null?(k(pr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Ur=Ie):(k(Ae.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Ur=Ae.next.colorAttachments[0].texture._texture.type,Gt.oes_texture_float?(k(Ur===Ie||Ur===vt,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Ur===vt&&k(kt.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):k(Ur===Ie,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Gr=0,Ar=0,zr=jt.framebufferWidth,Tt=jt.framebufferHeight,er=null;ee(Br)?er=Br:Br&&(k.type(Br,"object","invalid arguments to regl.read()"),Gr=Br.x|0,Ar=Br.y|0,k(Gr>=0&&Gr=0&&Ar0&&zr+Gr<=jt.framebufferWidth,"invalid width for read pixels"),k(Tt>0&&Tt+Ar<=jt.framebufferHeight,"invalid height for read pixels"),je();var Fr=zr*Tt*4;return er||(Ur===Ie?er=new Uint8Array(Fr):Ur===vt&&(er=er||new Float32Array(Fr))),k.isTypedArray(er,"data buffer for regl.read() must be a typedarray"),k(er.byteLength>=Fr,"data buffer for regl.read() too small"),z.pixelStorei($e,4),z.readPixels(Gr,Ar,zr,Tt,Ke,Ur,er),er}function Cr(Br){var Ur;return Ae.setFBO({framebuffer:Br.framebuffer},function(){Ur=Dr(Br)}),Ur}function Vr(Br){return!Br||!("framebuffer"in Br)?Dr(Br):Cr(Br)}return Vr}function Jt(z){return Array.prototype.slice.call(z)}function zt(z){return Jt(z).join("")}function ar(){var z=0,Ae=[],je=[];function jt(Ur){for(var Gr=0;Gr0&&(Ur.push(Tt,"="),Ur.push.apply(Ur,Jt(arguments)),Ur.push(";")),Tt}return L(Gr,{def:zr,toString:function(){return zt([Ar.length>0?"var "+Ar.join(",")+";":"",zt(Ur)])}})}function Gt(){var Ur=pr(),Gr=pr(),Ar=Ur.toString,zr=Gr.toString;function Tt(er,Fr){Gr(er,Fr,"=",Ur.def(er,Fr),";")}return L(function(){Ur.apply(Ur,Jt(arguments))},{def:Ur.def,entry:Ur,exit:Gr,save:Tt,set:function(er,Fr,rn){Tt(er,Fr),Ur(er,Fr,"=",rn,";")},toString:function(){return Ar()+zr()}})}function kt(){var Ur=zt(arguments),Gr=Gt(),Ar=Gt(),zr=Gr.toString,Tt=Ar.toString;return L(Gr,{then:function(){return Gr.apply(Gr,Jt(arguments)),this},else:function(){return Ar.apply(Ar,Jt(arguments)),this},toString:function(){var er=Tt();return er&&(er="else{"+er+"}"),zt(["if(",Ur,"){",zr(),"}",er])}})}var Dr=pr(),Cr={};function Vr(Ur,Gr){var Ar=[];function zr(){var yr="a"+Ar.length;return Ar.push(yr),yr}Gr=Gr||0;for(var Tt=0;Tt":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},fc={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xp={frag:Bv,vert:jp},Ul={cw:pp,ccw:Ph};function Gf(z){return Array.isArray(z)||J(z)||Ea(z)}function vp(z){return z.sort(function(Ee,Ze){return Ee===Ko?-1:Ze===Ko?1:Ee=1,Ut>=2,Ee)}else if(Ze===hn){var cr=z.data;return new Ts(cr.thisDep,cr.contextDep,cr.propDep,Ee)}else return new Ts(Ze===ji,Ze===Un,Ze===Nn,Ee)}var $p=new Ts(!1,!1,!1,function(){});function Xf(z,Ee,Ze,Ut,cr,zt,kt,Dr,wr,Zr,Br,Ur,Wr,Er,zr){var St=Zr.Record,Qt={add:32774,subtract:32778,"reverse subtract":32779};Ze.ext_blend_minmax&&(Qt.min=Wp,Qt.max=xf);var kr=Ze.angle_instanced_arrays,Jr=Ze.webgl_draw_buffers,gr={dirty:!0,profile:zr.profile},tn={},Ir=[],en={},xr={};function Xr(ue){return ue.replace(".","_")}function Fn(ue,Se,ze){var Lt=Xr(ue);Ir.push(ue),tn[Lt]=gr[Lt]=!!ze,en[Lt]=Se}function ui(ue,Se,ze){var Lt=Xr(ue);Ir.push(ue),Array.isArray(ze)?(gr[Lt]=ze.slice(),tn[Lt]=ze.slice()):gr[Lt]=tn[Lt]=ze,xr[Lt]=Se}Fn(Kn,Nc),Fn(_i,Pd),ui(ti,"blendColor",[0,0,0,0]),ui(Xn,"blendEquationSeparate",[Gp,Gp]),ui(pi,"blendFuncSeparate",[Oh,Fd,Oh,Fd]),Fn(qn,Od,!0),ui($n,"depthFunc",dp),ui(wo,"depthRange",[0,1]),ui(Na,"depthMask",!0),ui(Co,Co,[!0,!0,!0,!0]),Fn(Lo,lp),ui(Wa,"cullFace",yf),ui(Ga,Ga,Ph),ui(Ss,Ss,1),Fn(ls,Hp),ui(Zu,"polygonOffset",[0,0]),Fn(cs,Dd),Fn(nu,Jm),ui(Ns,"sampleCoverage",[1,!1]),Fn(sl,Mh),ui(kl,"stencilMask",-1),ui(ul,"stencilFunc",[fl,0,-1]),ui(Fl,"stencilOpSeparate",[lc,Nl,Nl,Nl]),ui(Vu,"stencilOpSeparate",[yf,Nl,Nl,Nl]),Fn(iu,Qm),ui(ju,"scissor",[0,0,z.drawingBufferWidth,z.drawingBufferHeight]),ui(Ko,Ko,[0,0,z.drawingBufferWidth,z.drawingBufferHeight]);var qr={gl:z,context:Wr,strings:Ee,next:tn,current:gr,draw:Ur,elements:zt,buffer:cr,shader:Br,attributes:Zr.state,vao:Zr,uniforms:wr,framebuffer:Dr,extensions:Ze,timer:Er,isBufferArgs:Gf},gt={primTypes:Pu,compareFuncs:bf,blendFuncs:hl,blendEquations:Qt,stencilOps:fc,glTypes:jo,orientationType:Ul};F.optional(function(){qr.isArrayLike=ja}),Jr&&(gt.backBuffer=[yf],gt.drawBuffer=di(Ut.maxDrawbuffers,function(ue){return ue===0?[0]:di(ue,function(Se){return Bd+Se})}));var pr=0;function tt(){var ue=tr(),Se=ue.link,ze=ue.global;ue.id=pr++,ue.batchId="0";var Lt=Se(qr),Ft=ue.shared={props:"a0"};Object.keys(qr).forEach(function(rt){Ft[rt]=ze.def(Lt,".",rt)}),F.optional(function(){ue.CHECK=Se(F),ue.commandStr=F.guessCommand(),ue.command=Se(ue.commandStr),ue.assert=function(rt,ve,at){rt("if(!(",ve,"))",this.CHECK,".commandRaise(",Se(at),",",this.command,");")},gt.invalidBlendCombinations=pl});var Ye=ue.next={},st=ue.current={};Object.keys(xr).forEach(function(rt){Array.isArray(gr[rt])&&(Ye[rt]=ze.def(Ft.next,".",rt),st[rt]=ze.def(Ft.current,".",rt))});var pt=ue.constants={};Object.keys(gt).forEach(function(rt){pt[rt]=ze.def(JSON.stringify(gt[rt]))}),ue.invoke=function(rt,ve){switch(ve.type){case In:var at=["this",Ft.context,Ft.props,ue.batchId];return rt.def(Se(ve.data),".call(",at.slice(0,Math.max(ve.data.length+1,4)),")");case Nn:return rt.def(Ft.props,ve.data);case Un:return rt.def(Ft.context,ve.data);case ji:return rt.def("this",ve.data);case hn:return ve.data.append(ue,rt),ve.data.ref}},ue.attribCache={};var Me={};return ue.scopeAttrib=function(rt){var ve=Ee.id(rt);if(ve in Me)return Me[ve];var at=Zr.scope[ve];at||(at=Zr.scope[ve]=new St);var Gt=Me[ve]=Se(at);return Gt},ue}function wi(ue){var Se=ue.static,ze=ue.dynamic,Lt;if(Ka in Se){var Ft=!!Se[Ka];Lt=vo(function(st,pt){return Ft}),Lt.enable=Ft}else if(Ka in ze){var Ye=ze[Ka];Lt=Us(Ye,function(st,pt){return st.invoke(pt,Ye)})}return Lt}function on(ue,Se){var ze=ue.static,Lt=ue.dynamic;if(As in ze){var Ft=ze[As];return Ft?(Ft=Dr.getFramebuffer(Ft),F.command(Ft,"invalid framebuffer object"),vo(function(st,pt){var Me=st.link(Ft),rt=st.shared;pt.set(rt.framebuffer,".next",Me);var ve=rt.context;return pt.set(ve,"."+Wu,Me+".width"),pt.set(ve,"."+Gu,Me+".height"),Me})):vo(function(st,pt){var Me=st.shared;pt.set(Me.framebuffer,".next","null");var rt=Me.context;return pt.set(rt,"."+Wu,rt+"."+Qo),pt.set(rt,"."+Gu,rt+"."+sc),"null"})}else if(As in Lt){var Ye=Lt[As];return Us(Ye,function(st,pt){var Me=st.invoke(pt,Ye),rt=st.shared,ve=rt.framebuffer,at=pt.def(ve,".getFramebuffer(",Me,")");F.optional(function(){st.assert(pt,"!"+Me+"||"+at,"invalid framebuffer object")}),pt.set(ve,".next",at);var Gt=rt.context;return pt.set(Gt,"."+Wu,at+"?"+at+".width:"+Gt+"."+Qo),pt.set(Gt,"."+Gu,at+"?"+at+".height:"+Gt+"."+sc),at})}else return null}function yi(ue,Se,ze){var Lt=ue.static,Ft=ue.dynamic;function Ye(Me){if(Me in Lt){var rt=Lt[Me];F.commandType(rt,"object","invalid "+Me,ze.commandStr);var ve=!0,at=rt.x|0,Gt=rt.y|0,or,_r;return"width"in rt?(or=rt.width|0,F.command(or>=0,"invalid "+Me,ze.commandStr)):ve=!1,"height"in rt?(_r=rt.height|0,F.command(_r>=0,"invalid "+Me,ze.commandStr)):ve=!1,new Ts(!ve&&Se&&Se.thisDep,!ve&&Se&&Se.contextDep,!ve&&Se&&Se.propDep,function(Pn,_n){var Sn=Pn.shared.context,Gn=or;"width"in rt||(Gn=_n.def(Sn,".",Wu,"-",at));var ri=_r;return"height"in rt||(ri=_n.def(Sn,".",Gu,"-",Gt)),[at,Gt,Gn,ri]})}else if(Me in Ft){var vr=Ft[Me],Rr=Us(vr,function(Pn,_n){var Sn=Pn.invoke(_n,vr);F.optional(function(){Pn.assert(_n,Sn+"&&typeof "+Sn+'==="object"',"invalid "+Me)});var Gn=Pn.shared.context,ri=_n.def(Sn,".x|0"),ta=_n.def(Sn,".y|0"),xo=_n.def('"width" in ',Sn,"?",Sn,".width|0:","(",Gn,".",Wu,"-",ri,")"),dl=_n.def('"height" in ',Sn,"?",Sn,".height|0:","(",Gn,".",Gu,"-",ta,")");return F.optional(function(){Pn.assert(_n,xo+">=0&&"+dl+">=0","invalid "+Me)}),[ri,ta,xo,dl]});return Se&&(Rr.thisDep=Rr.thisDep||Se.thisDep,Rr.contextDep=Rr.contextDep||Se.contextDep,Rr.propDep=Rr.propDep||Se.propDep),Rr}else return Se?new Ts(Se.thisDep,Se.contextDep,Se.propDep,function(Pn,_n){var Sn=Pn.shared.context;return[0,0,_n.def(Sn,".",Wu),_n.def(Sn,".",Gu)]}):null}var st=Ye(Ko);if(st){var pt=st;st=new Ts(st.thisDep,st.contextDep,st.propDep,function(Me,rt){var ve=pt.append(Me,rt),at=Me.shared.context;return rt.set(at,"."+ao,ve[2]),rt.set(at,"."+Ll,ve[3]),ve})}return{viewport:st,scissor_box:Ye(ju)}}function ai(ue,Se){var ze=ue.static,Lt=typeof ze[Hu]=="string"&&typeof ze[au]=="string";if(Lt){if(Object.keys(Se.dynamic).length>0)return null;var Ft=Se.static,Ye=Object.keys(Ft);if(Ye.length>0&&typeof Ft[Ye[0]]=="number"){for(var st=[],pt=0;pt=0,"invalid "+ve,Se.commandStr),vo(function(_r,vr){return at&&(_r.OFFSET=Gt),Gt})}else if(ve in Lt){var or=Lt[ve];return Us(or,function(_r,vr){var Rr=_r.invoke(vr,or);return at&&(_r.OFFSET=Rr,F.optional(function(){_r.assert(vr,Rr+">=0","invalid "+ve)})),Rr})}else if(at&&Ye)return vo(function(_r,vr){return _r.OFFSET="0",0});return null}var Me=pt(ou,!0);function rt(){if(io in ze){var ve=ze[io]|0;return F.command(typeof ve=="number"&&ve>=0,"invalid vertex count",Se.commandStr),vo(function(){return ve})}else if(io in Lt){var at=Lt[io];return Us(at,function(_r,vr){var Rr=_r.invoke(vr,at);return F.optional(function(){_r.assert(vr,"typeof "+Rr+'==="number"&&'+Rr+">=0&&"+Rr+"===("+Rr+"|0)","invalid vertex count")}),Rr})}else if(Ye)if(hs(Ye)){if(Ye)return Me?new Ts(Me.thisDep,Me.contextDep,Me.propDep,function(_r,vr){var Rr=vr.def(_r.ELEMENTS,".vertCount-",_r.OFFSET);return F.optional(function(){_r.assert(vr,Rr+">=0","invalid vertex offset/element buffer too small")}),Rr}):vo(function(_r,vr){return vr.def(_r.ELEMENTS,".vertCount")});var Gt=vo(function(){return-1});return F.optional(function(){Gt.MISSING=!0}),Gt}else{var or=new Ts(Ye.thisDep||Me.thisDep,Ye.contextDep||Me.contextDep,Ye.propDep||Me.propDep,function(_r,vr){var Rr=_r.ELEMENTS;return _r.OFFSET?vr.def(Rr,"?",Rr,".vertCount-",_r.OFFSET,":-1"):vr.def(Rr,"?",Rr,".vertCount:-1")});return F.optional(function(){or.DYNAMIC=!0}),or}return null}return{elements:Ye,primitive:st(),count:rt(),instances:pt(Bc,!1),offset:Me}}function mo(ue,Se){var ze=ue.static,Lt=ue.dynamic,Ft={};return Ir.forEach(function(Ye){var st=Xr(Ye);function pt(Me,rt){if(Ye in ze){var ve=Me(ze[Ye]);Ft[st]=vo(function(){return ve})}else if(Ye in Lt){var at=Lt[Ye];Ft[st]=Us(at,function(Gt,or){return rt(Gt,or,Gt.invoke(or,at))})}}switch(Ye){case Lo:case _i:case Kn:case sl:case qn:case iu:case ls:case cs:case nu:case Na:return pt(function(Me){return F.commandType(Me,"boolean",Ye,Se.commandStr),Me},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,"typeof "+ve+'==="boolean"',"invalid flag "+Ye,Me.commandStr)}),ve});case $n:return pt(function(Me){return F.commandParameter(Me,bf,"invalid "+Ye,Se.commandStr),bf[Me]},function(Me,rt,ve){var at=Me.constants.compareFuncs;return F.optional(function(){Me.assert(rt,ve+" in "+at,"invalid "+Ye+", must be one of "+Object.keys(bf))}),rt.def(at,"[",ve,"]")});case wo:return pt(function(Me){return F.command(ja(Me)&&Me.length===2&&typeof Me[0]=="number"&&typeof Me[1]=="number"&&Me[0]<=Me[1],"depth range is 2d array",Se.commandStr),Me},function(Me,rt,ve){F.optional(function(){Me.assert(rt,Me.shared.isArrayLike+"("+ve+")&&"+ve+".length===2&&typeof "+ve+'[0]==="number"&&typeof '+ve+'[1]==="number"&&'+ve+"[0]<="+ve+"[1]","depth range must be a 2d array")});var at=rt.def("+",ve,"[0]"),Gt=rt.def("+",ve,"[1]");return[at,Gt]});case pi:return pt(function(Me){F.commandType(Me,"object","blend.func",Se.commandStr);var rt="srcRGB"in Me?Me.srcRGB:Me.src,ve="srcAlpha"in Me?Me.srcAlpha:Me.src,at="dstRGB"in Me?Me.dstRGB:Me.dst,Gt="dstAlpha"in Me?Me.dstAlpha:Me.dst;return F.commandParameter(rt,hl,st+".srcRGB",Se.commandStr),F.commandParameter(ve,hl,st+".srcAlpha",Se.commandStr),F.commandParameter(at,hl,st+".dstRGB",Se.commandStr),F.commandParameter(Gt,hl,st+".dstAlpha",Se.commandStr),F.command(pl.indexOf(rt+", "+at)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+rt+", "+at+")",Se.commandStr),[hl[rt],hl[at],hl[ve],hl[Gt]]},function(Me,rt,ve){var at=Me.constants.blendFuncs;F.optional(function(){Me.assert(rt,ve+"&&typeof "+ve+'==="object"',"invalid blend func, must be an object")});function Gt(Sn,Gn){var ri=rt.def('"',Sn,Gn,'" in ',ve,"?",ve,".",Sn,Gn,":",ve,".",Sn);return F.optional(function(){Me.assert(rt,ri+" in "+at,"invalid "+Ye+"."+Sn+Gn+", must be one of "+Object.keys(hl))}),ri}var or=Gt("src","RGB"),_r=Gt("dst","RGB");F.optional(function(){var Sn=Me.constants.invalidBlendCombinations;Me.assert(rt,Sn+".indexOf("+or+'+", "+'+_r+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var vr=rt.def(at,"[",or,"]"),Rr=rt.def(at,"[",Gt("src","Alpha"),"]"),Pn=rt.def(at,"[",_r,"]"),_n=rt.def(at,"[",Gt("dst","Alpha"),"]");return[vr,Pn,Rr,_n]});case Xn:return pt(function(Me){if(typeof Me=="string")return F.commandParameter(Me,Qt,"invalid "+Ye,Se.commandStr),[Qt[Me],Qt[Me]];if(typeof Me=="object")return F.commandParameter(Me.rgb,Qt,Ye+".rgb",Se.commandStr),F.commandParameter(Me.alpha,Qt,Ye+".alpha",Se.commandStr),[Qt[Me.rgb],Qt[Me.alpha]];F.commandRaise("invalid blend.equation",Se.commandStr)},function(Me,rt,ve){var at=Me.constants.blendEquations,Gt=rt.def(),or=rt.def(),_r=Me.cond("typeof ",ve,'==="string"');return F.optional(function(){function vr(Rr,Pn,_n){Me.assert(Rr,_n+" in "+at,"invalid "+Pn+", must be one of "+Object.keys(Qt))}vr(_r.then,Ye,ve),Me.assert(_r.else,ve+"&&typeof "+ve+'==="object"',"invalid "+Ye),vr(_r.else,Ye+".rgb",ve+".rgb"),vr(_r.else,Ye+".alpha",ve+".alpha")}),_r.then(Gt,"=",or,"=",at,"[",ve,"];"),_r.else(Gt,"=",at,"[",ve,".rgb];",or,"=",at,"[",ve,".alpha];"),rt(_r),[Gt,or]});case ti:return pt(function(Me){return F.command(ja(Me)&&Me.length===4,"blend.color must be a 4d array",Se.commandStr),di(4,function(rt){return+Me[rt]})},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,Me.shared.isArrayLike+"("+ve+")&&"+ve+".length===4","blend.color must be a 4d array")}),di(4,function(at){return rt.def("+",ve,"[",at,"]")})});case kl:return pt(function(Me){return F.commandType(Me,"number",st,Se.commandStr),Me|0},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,"typeof "+ve+'==="number"',"invalid stencil.mask")}),rt.def(ve,"|0")});case ul:return pt(function(Me){F.commandType(Me,"object",st,Se.commandStr);var rt=Me.cmp||"keep",ve=Me.ref||0,at="mask"in Me?Me.mask:-1;return F.commandParameter(rt,bf,Ye+".cmp",Se.commandStr),F.commandType(ve,"number",Ye+".ref",Se.commandStr),F.commandType(at,"number",Ye+".mask",Se.commandStr),[bf[rt],ve,at]},function(Me,rt,ve){var at=Me.constants.compareFuncs;F.optional(function(){function vr(){Me.assert(rt,Array.prototype.join.call(arguments,""),"invalid stencil.func")}vr(ve+"&&typeof ",ve,'==="object"'),vr('!("cmp" in ',ve,")||(",ve,".cmp in ",at,")")});var Gt=rt.def('"cmp" in ',ve,"?",at,"[",ve,".cmp]",":",Nl),or=rt.def(ve,".ref|0"),_r=rt.def('"mask" in ',ve,"?",ve,".mask|0:-1");return[Gt,or,_r]});case Fl:case Vu:return pt(function(Me){F.commandType(Me,"object",st,Se.commandStr);var rt=Me.fail||"keep",ve=Me.zfail||"keep",at=Me.zpass||"keep";return F.commandParameter(rt,fc,Ye+".fail",Se.commandStr),F.commandParameter(ve,fc,Ye+".zfail",Se.commandStr),F.commandParameter(at,fc,Ye+".zpass",Se.commandStr),[Ye===Vu?yf:lc,fc[rt],fc[ve],fc[at]]},function(Me,rt,ve){var at=Me.constants.stencilOps;F.optional(function(){Me.assert(rt,ve+"&&typeof "+ve+'==="object"',"invalid "+Ye)});function Gt(or){return F.optional(function(){Me.assert(rt,'!("'+or+'" in '+ve+")||("+ve+"."+or+" in "+at+")","invalid "+Ye+"."+or+", must be one of "+Object.keys(fc))}),rt.def('"',or,'" in ',ve,"?",at,"[",ve,".",or,"]:",Nl)}return[Ye===Vu?yf:lc,Gt("fail"),Gt("zfail"),Gt("zpass")]});case Zu:return pt(function(Me){F.commandType(Me,"object",st,Se.commandStr);var rt=Me.factor|0,ve=Me.units|0;return F.commandType(rt,"number",st+".factor",Se.commandStr),F.commandType(ve,"number",st+".units",Se.commandStr),[rt,ve]},function(Me,rt,ve){F.optional(function(){Me.assert(rt,ve+"&&typeof "+ve+'==="object"',"invalid "+Ye)});var at=rt.def(ve,".factor|0"),Gt=rt.def(ve,".units|0");return[at,Gt]});case Wa:return pt(function(Me){var rt=0;return Me==="front"?rt=lc:Me==="back"&&(rt=yf),F.command(!!rt,st,Se.commandStr),rt},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,ve+'==="front"||'+ve+'==="back"',"invalid cull.face")}),rt.def(ve,'==="front"?',lc,":",yf)});case Ss:return pt(function(Me){return F.command(typeof Me=="number"&&Me>=Ut.lineWidthDims[0]&&Me<=Ut.lineWidthDims[1],"invalid line width, must be a positive number between "+Ut.lineWidthDims[0]+" and "+Ut.lineWidthDims[1],Se.commandStr),Me},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,"typeof "+ve+'==="number"&&'+ve+">="+Ut.lineWidthDims[0]+"&&"+ve+"<="+Ut.lineWidthDims[1],"invalid line width")}),ve});case Ga:return pt(function(Me){return F.commandParameter(Me,Ul,st,Se.commandStr),Ul[Me]},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,ve+'==="cw"||'+ve+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),rt.def(ve+'==="cw"?'+pp+":"+Ph)});case Co:return pt(function(Me){return F.command(ja(Me)&&Me.length===4,"color.mask must be length 4 array",Se.commandStr),Me.map(function(rt){return!!rt})},function(Me,rt,ve){return F.optional(function(){Me.assert(rt,Me.shared.isArrayLike+"("+ve+")&&"+ve+".length===4","invalid color.mask")}),di(4,function(at){return"!!"+ve+"["+at+"]"})});case Ns:return pt(function(Me){F.command(typeof Me=="object"&&Me,st,Se.commandStr);var rt="value"in Me?Me.value:1,ve=!!Me.invert;return F.command(typeof rt=="number"&&rt>=0&&rt<=1,"sample.coverage.value must be a number between 0 and 1",Se.commandStr),[rt,ve]},function(Me,rt,ve){F.optional(function(){Me.assert(rt,ve+"&&typeof "+ve+'==="object"',"invalid sample.coverage")});var at=rt.def('"value" in ',ve,"?+",ve,".value:1"),Gt=rt.def("!!",ve,".invert");return[at,Gt]})}}),Ft}function Wo(ue,Se){var ze=ue.static,Lt=ue.dynamic,Ft={};return Object.keys(ze).forEach(function(Ye){var st=ze[Ye],pt;if(typeof st=="number"||typeof st=="boolean")pt=vo(function(){return st});else if(typeof st=="function"){var Me=st._reglType;Me==="texture2d"||Me==="textureCube"?pt=vo(function(rt){return rt.link(st)}):Me==="framebuffer"||Me==="framebufferCube"?(F.command(st.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Ye+'"',Se.commandStr),pt=vo(function(rt){return rt.link(st.color[0])})):F.commandRaise('invalid data for uniform "'+Ye+'"',Se.commandStr)}else ja(st)?pt=vo(function(rt){var ve=rt.global.def("[",di(st.length,function(at){return F.command(typeof st[at]=="number"||typeof st[at]=="boolean","invalid uniform "+Ye,rt.commandStr),st[at]}),"]");return ve}):F.commandRaise('invalid or missing data for uniform "'+Ye+'"',Se.commandStr);pt.value=st,Ft[Ye]=pt}),Object.keys(Lt).forEach(function(Ye){var st=Lt[Ye];Ft[Ye]=Us(st,function(pt,Me){return pt.invoke(Me,st)})}),Ft}function Ri(ue,Se){var ze=ue.static,Lt=ue.dynamic,Ft={};return Object.keys(ze).forEach(function(Ye){var st=ze[Ye],pt=Ee.id(Ye),Me=new St;if(Gf(st))Me.state=Fr,Me.buffer=cr.getBuffer(cr.create(st,Lc,!1,!0)),Me.type=0;else{var rt=cr.getBuffer(st);if(rt)Me.state=Fr,Me.buffer=rt,Me.type=0;else if(F.command(typeof st=="object"&&st,"invalid data for attribute "+Ye,Se.commandStr),"constant"in st){var ve=st.constant;Me.buffer="null",Me.state=an,typeof ve=="number"?Me.x=ve:(F.command(ja(ve)&&ve.length>0&&ve.length<=4,"invalid constant for attribute "+Ye,Se.commandStr),mr.forEach(function(Pn,_n){_n=0,'invalid offset for attribute "'+Ye+'"',Se.commandStr);var Gt=st.stride|0;F.command(Gt>=0&&Gt<256,'invalid stride for attribute "'+Ye+'", must be integer betweeen [0, 255]',Se.commandStr);var or=st.size|0;F.command(!("size"in st)||or>0&&or<=4,'invalid size for attribute "'+Ye+'", must be 1,2,3,4',Se.commandStr);var _r=!!st.normalized,vr=0;"type"in st&&(F.commandParameter(st.type,jo,"invalid type for attribute "+Ye,Se.commandStr),vr=jo[st.type]);var Rr=st.divisor|0;"divisor"in st&&(F.command(Rr===0||kr,'cannot specify divisor for attribute "'+Ye+'", instancing not supported',Se.commandStr),F.command(Rr>=0,'invalid divisor for attribute "'+Ye+'"',Se.commandStr)),F.optional(function(){var Pn=Se.commandStr,_n=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(st).forEach(function(Sn){F.command(_n.indexOf(Sn)>=0,'unknown parameter "'+Sn+'" for attribute pointer "'+Ye+'" (valid parameters are '+_n+")",Pn)})}),Me.buffer=rt,Me.state=Fr,Me.size=or,Me.normalized=_r,Me.type=vr||rt.dtype,Me.offset=at,Me.stride=Gt,Me.divisor=Rr}}Ft[Ye]=vo(function(Pn,_n){var Sn=Pn.attribCache;if(pt in Sn)return Sn[pt];var Gn={isStream:!1};return Object.keys(Me).forEach(function(ri){Gn[ri]=Me[ri]}),Me.buffer&&(Gn.buffer=Pn.link(Me.buffer),Gn.type=Gn.type||Gn.buffer+".dtype"),Sn[pt]=Gn,Gn})}),Object.keys(Lt).forEach(function(Ye){var st=Lt[Ye];function pt(Me,rt){var ve=Me.invoke(rt,st),at=Me.shared,Gt=Me.constants,or=at.isBufferArgs,_r=at.buffer;F.optional(function(){Me.assert(rt,ve+"&&(typeof "+ve+'==="object"||typeof '+ve+'==="function")&&('+or+"("+ve+")||"+_r+".getBuffer("+ve+")||"+_r+".getBuffer("+ve+".buffer)||"+or+"("+ve+'.buffer)||("constant" in '+ve+"&&(typeof "+ve+'.constant==="number"||'+at.isArrayLike+"("+ve+".constant))))",'invalid dynamic attribute "'+Ye+'"')});var vr={isStream:rt.def(!1)},Rr=new St;Rr.state=Fr,Object.keys(Rr).forEach(function(Gn){vr[Gn]=rt.def(""+Rr[Gn])});var Pn=vr.buffer,_n=vr.type;rt("if(",or,"(",ve,")){",vr.isStream,"=true;",Pn,"=",_r,".createStream(",Lc,",",ve,");",_n,"=",Pn,".dtype;","}else{",Pn,"=",_r,".getBuffer(",ve,");","if(",Pn,"){",_n,"=",Pn,".dtype;",'}else if("constant" in ',ve,"){",vr.state,"=",an,";","if(typeof "+ve+'.constant === "number"){',vr[mr[0]],"=",ve,".constant;",mr.slice(1).map(function(Gn){return vr[Gn]}).join("="),"=0;","}else{",mr.map(function(Gn,ri){return vr[Gn]+"="+ve+".constant.length>"+ri+"?"+ve+".constant["+ri+"]:0;"}).join(""),"}}else{","if(",or,"(",ve,".buffer)){",Pn,"=",_r,".createStream(",Lc,",",ve,".buffer);","}else{",Pn,"=",_r,".getBuffer(",ve,".buffer);","}",_n,'="type" in ',ve,"?",Gt.glTypes,"[",ve,".type]:",Pn,".dtype;",vr.normalized,"=!!",ve,".normalized;");function Sn(Gn){rt(vr[Gn],"=",ve,".",Gn,"|0;")}return Sn("size"),Sn("offset"),Sn("stride"),Sn("divisor"),rt("}}"),rt.exit("if(",vr.isStream,"){",_r,".destroyStream(",Pn,");","}"),vr}Ft[Ye]=Us(st,pt)}),Ft}function lo(ue,Se){var ze=ue.static,Lt=ue.dynamic;if(Bl in ze){var Ft=ze[Bl];return Ft!==null&&Zr.getVAO(Ft)===null&&(Ft=Zr.createVAO(Ft)),vo(function(st){return st.link(Zr.getVAO(Ft))})}else if(Bl in Lt){var Ye=Lt[Bl];return Us(Ye,function(st,pt){var Me=st.invoke(pt,Ye);return pt.def(st.shared.vao+".getVAO("+Me+")")})}return null}function Sa(ue){var Se=ue.static,ze=ue.dynamic,Lt={};return Object.keys(Se).forEach(function(Ft){var Ye=Se[Ft];Lt[Ft]=vo(function(st,pt){return typeof Ye=="number"||typeof Ye=="boolean"?""+Ye:st.link(Ye)})}),Object.keys(ze).forEach(function(Ft){var Ye=ze[Ft];Lt[Ft]=Us(Ye,function(st,pt){return st.invoke(pt,Ye)})}),Lt}function go(ue,Se,ze,Lt,Ft){var Ye=ue.static,st=ue.dynamic;F.optional(function(){var Sn=[As,au,Hu,Ni,po,ou,io,Bc,Ka,Bl].concat(Ir);function Gn(ri){Object.keys(ri).forEach(function(ta){F.command(Sn.indexOf(ta)>=0,'unknown parameter "'+ta+'"',Ft.commandStr)})}Gn(Ye),Gn(st)});var pt=ai(ue,Se),Me=on(ue,Ft),rt=yi(ue,Me,Ft),ve=Ui(ue,Ft),at=mo(ue,Ft),Gt=Yn(ue,Ft,pt);function or(Sn){var Gn=rt[Sn];Gn&&(at[Sn]=Gn)}or(Ko),or(Xr(ju));var _r=Object.keys(at).length>0,vr={framebuffer:Me,draw:ve,shader:Gt,state:at,dirty:_r,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(vr.profile=wi(ue,Ft),vr.uniforms=Wo(ze,Ft),vr.drawVAO=vr.scopeVAO=lo(ue,Ft),!vr.drawVAO&&Gt.program&&!pt&&Ze.angle_instanced_arrays){var Rr=!0,Pn=Gt.program.attributes.map(function(Sn){var Gn=Se.static[Sn];return Rr=Rr&&!!Gn,Gn});if(Rr&&Pn.length>0){var _n=Zr.getVAO(Zr.createVAO(Pn));vr.drawVAO=new Ts(null,null,null,function(Sn,Gn){return Sn.link(_n)}),vr.useVAO=!0}}return pt?vr.useVAO=!0:vr.attributes=Ri(Se,Ft),vr.context=Sa(Lt,Ft),vr}function _o(ue,Se,ze){var Lt=ue.shared,Ft=Lt.context,Ye=ue.scope();Object.keys(ze).forEach(function(st){Se.save(Ft,"."+st);var pt=ze[st];Ye(Ft,".",st,"=",pt.append(ue,Se),";")}),Se(Ye)}function Qa(ue,Se,ze,Lt){var Ft=ue.shared,Ye=Ft.gl,st=Ft.framebuffer,pt;Jr&&(pt=Se.def(Ft.extensions,".webgl_draw_buffers"));var Me=ue.constants,rt=Me.drawBuffer,ve=Me.backBuffer,at;ze?at=ze.append(ue,Se):at=Se.def(st,".next"),Lt||Se("if(",at,"!==",st,".cur){"),Se("if(",at,"){",Ye,".bindFramebuffer(",cc,",",at,".framebuffer);"),Jr&&Se(pt,".drawBuffersWEBGL(",rt,"[",at,".colorAttachments.length]);"),Se("}else{",Ye,".bindFramebuffer(",cc,",null);"),Jr&&Se(pt,".drawBuffersWEBGL(",ve,");"),Se("}",st,".cur=",at,";"),Lt||Se("}")}function Ro(ue,Se,ze){var Lt=ue.shared,Ft=Lt.gl,Ye=ue.current,st=ue.next,pt=Lt.current,Me=Lt.next,rt=ue.cond(pt,".dirty");Ir.forEach(function(ve){var at=Xr(ve);if(!(at in ze.state)){var Gt,or;if(at in st){Gt=st[at],or=Ye[at];var _r=di(gr[at].length,function(Rr){return rt.def(Gt,"[",Rr,"]")});rt(ue.cond(_r.map(function(Rr,Pn){return Rr+"!=="+or+"["+Pn+"]"}).join("||")).then(Ft,".",xr[at],"(",_r,");",_r.map(function(Rr,Pn){return or+"["+Pn+"]="+Rr}).join(";"),";"))}else{Gt=rt.def(Me,".",at);var vr=ue.cond(Gt,"!==",pt,".",at);rt(vr),at in en?vr(ue.cond(Gt).then(Ft,".enable(",en[at],");").else(Ft,".disable(",en[at],");"),pt,".",at,"=",Gt,";"):vr(Ft,".",xr[at],"(",Gt,");",pt,".",at,"=",Gt,";")}}}),Object.keys(ze.state).length===0&&rt(pt,".dirty=false;"),Se(rt)}function ps(ue,Se,ze,Lt){var Ft=ue.shared,Ye=ue.current,st=Ft.current,pt=Ft.gl;vp(Object.keys(ze)).forEach(function(Me){var rt=ze[Me];if(!(Lt&&!Lt(rt))){var ve=rt.append(ue,Se);if(en[Me]){var at=en[Me];hs(rt)?ve?Se(pt,".enable(",at,");"):Se(pt,".disable(",at,");"):Se(ue.cond(ve).then(pt,".enable(",at,");").else(pt,".disable(",at,");")),Se(st,".",Me,"=",ve,";")}else if(ja(ve)){var Gt=Ye[Me];Se(pt,".",xr[Me],"(",ve,");",ve.map(function(or,_r){return Gt+"["+_r+"]="+or}).join(";"),";")}else Se(pt,".",xr[Me],"(",ve,");",st,".",Me,"=",ve,";")}})}function Mo(ue,Se){kr&&(ue.instancing=Se.def(ue.shared.extensions,".angle_instanced_arrays"))}function xi(ue,Se,ze,Lt,Ft){var Ye=ue.shared,st=ue.stats,pt=Ye.current,Me=Ye.timer,rt=ze.profile;function ve(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var at,Gt;function or(Sn){at=Se.def(),Sn(at,"=",ve(),";"),typeof Ft=="string"?Sn(st,".count+=",Ft,";"):Sn(st,".count++;"),Er&&(Lt?(Gt=Se.def(),Sn(Gt,"=",Me,".getNumPendingQueries();")):Sn(Me,".beginQuery(",st,");"))}function _r(Sn){Sn(st,".cpuTime+=",ve(),"-",at,";"),Er&&(Lt?Sn(Me,".pushScopeStats(",Gt,",",Me,".getNumPendingQueries(),",st,");"):Sn(Me,".endQuery();"))}function vr(Sn){var Gn=Se.def(pt,".profile");Se(pt,".profile=",Sn,";"),Se.exit(pt,".profile=",Gn,";")}var Rr;if(rt){if(hs(rt)){rt.enable?(or(Se),_r(Se.exit),vr("true")):vr("false");return}Rr=rt.append(ue,Se),vr(Rr)}else Rr=Se.def(pt,".profile");var Pn=ue.block();or(Pn),Se("if(",Rr,"){",Pn,"}");var _n=ue.block();_r(_n),Se.exit("if(",Rr,"){",_n,"}")}function es(ue,Se,ze,Lt,Ft){var Ye=ue.shared;function st(Me){switch(Me){case Uc:case fp:case vf:return 2;case Wf:case oo:case mf:return 3;case cp:case uc:case zc:return 4;default:return 1}}function pt(Me,rt,ve){var at=Ye.gl,Gt=Se.def(Me,".location"),or=Se.def(Ye.attributes,"[",Gt,"]"),_r=ve.state,vr=ve.buffer,Rr=[ve.x,ve.y,ve.z,ve.w],Pn=["buffer","normalized","offset","stride"];function _n(){Se("if(!",or,".buffer){",at,".enableVertexAttribArray(",Gt,");}");var Gn=ve.type,ri;if(ve.size?ri=Se.def(ve.size,"||",rt):ri=rt,Se("if(",or,".type!==",Gn,"||",or,".size!==",ri,"||",Pn.map(function(xo){return or+"."+xo+"!=="+ve[xo]}).join("||"),"){",at,".bindBuffer(",Lc,",",vr,".buffer);",at,".vertexAttribPointer(",[Gt,ri,Gn,ve.normalized,ve.stride,ve.offset],");",or,".type=",Gn,";",or,".size=",ri,";",Pn.map(function(xo){return or+"."+xo+"="+ve[xo]+";"}).join(""),"}"),kr){var ta=ve.divisor;Se("if(",or,".divisor!==",ta,"){",ue.instancing,".vertexAttribDivisorANGLE(",[Gt,ta],");",or,".divisor=",ta,";}")}}function Sn(){Se("if(",or,".buffer){",at,".disableVertexAttribArray(",Gt,");",or,".buffer=null;","}if(",mr.map(function(Gn,ri){return or+"."+Gn+"!=="+Rr[ri]}).join("||"),"){",at,".vertexAttrib4f(",Gt,",",Rr,");",mr.map(function(Gn,ri){return or+"."+Gn+"="+Rr[ri]+";"}).join(""),"}")}_r===Fr?_n():_r===an?Sn():(Se("if(",_r,"===",Fr,"){"),_n(),Se("}else{"),Sn(),Se("}"))}Lt.forEach(function(Me){var rt=Me.name,ve=ze.attributes[rt],at;if(ve){if(!Ft(ve))return;at=ve.append(ue,Se)}else{if(!Ft($p))return;var Gt=ue.scopeAttrib(rt);F.optional(function(){ue.assert(Se,Gt+".state","missing attribute "+rt)}),at={},Object.keys(new St).forEach(function(or){at[or]=Se.def(Gt,".",or)})}pt(ue.link(Me),st(Me.info.type),at)})}function aa(ue,Se,ze,Lt,Ft){for(var Ye=ue.shared,st=Ye.gl,pt,Me=0;Me1?Se(di(Gn,function(dl){return vr+"["+dl+"]"})):Se(vr);Se(");")}}function Wn(ue,Se,ze,Lt){var Ft=ue.shared,Ye=Ft.gl,st=Ft.draw,pt=Lt.draw;function Me(){var ri=pt.elements,ta,xo=Se;return ri?((ri.contextDep&&Lt.contextDynamic||ri.propDep)&&(xo=ze),ta=ri.append(ue,xo)):ta=xo.def(st,".",Ni),ta&&xo("if("+ta+")"+Ye+".bindBuffer("+Km+","+ta+".buffer.buffer);"),ta}function rt(){var ri=pt.count,ta,xo=Se;return ri?((ri.contextDep&&Lt.contextDynamic||ri.propDep)&&(xo=ze),ta=ri.append(ue,xo),F.optional(function(){ri.MISSING&&ue.assert(Se,"false","missing vertex count"),ri.DYNAMIC&&ue.assert(xo,ta+">=0","missing vertex count")})):(ta=xo.def(st,".",io),F.optional(function(){ue.assert(xo,ta+">=0","missing vertex count")})),ta}var ve=Me();function at(ri){var ta=pt[ri];return ta?ta.contextDep&&Lt.contextDynamic||ta.propDep?ta.append(ue,ze):ta.append(ue,Se):Se.def(st,".",ri)}var Gt=at(po),or=at(ou),_r=rt();if(typeof _r=="number"){if(_r===0)return}else ze("if(",_r,"){"),ze.exit("}");var vr,Rr;kr&&(vr=at(Bc),Rr=ue.instancing);var Pn=ve+".type",_n=pt.elements&&hs(pt.elements);function Sn(){function ri(){ze(Rr,".drawElementsInstancedANGLE(",[Gt,_r,Pn,or+"<<(("+Pn+"-"+Nr+")>>1)",vr],");")}function ta(){ze(Rr,".drawArraysInstancedANGLE(",[Gt,or,_r,vr],");")}ve?_n?ri():(ze("if(",ve,"){"),ri(),ze("}else{"),ta(),ze("}")):ta()}function Gn(){function ri(){ze(Ye+".drawElements("+[Gt,_r,Pn,or+"<<(("+Pn+"-"+Nr+")>>1)"]+");")}function ta(){ze(Ye+".drawArrays("+[Gt,or,_r]+");")}ve?_n?ri():(ze("if(",ve,"){"),ri(),ze("}else{"),ta(),ze("}")):ta()}kr&&(typeof vr!="number"||vr>=0)?typeof vr=="string"?(ze("if(",vr,">0){"),Sn(),ze("}else if(",vr,"<0){"),Gn(),ze("}")):Sn():Gn()}function Mi(ue,Se,ze,Lt,Ft){var Ye=tt(),st=Ye.proc("body",Ft);return F.optional(function(){Ye.commandStr=Se.commandStr,Ye.command=Ye.link(Se.commandStr)}),kr&&(Ye.instancing=st.def(Ye.shared.extensions,".angle_instanced_arrays")),ue(Ye,st,ze,Lt),Ye.compile().body}function Gi(ue,Se,ze,Lt){Mo(ue,Se),ze.useVAO?ze.drawVAO?Se(ue.shared.vao,".setVAO(",ze.drawVAO.append(ue,Se),");"):Se(ue.shared.vao,".setVAO(",ue.shared.vao,".targetVAO);"):(Se(ue.shared.vao,".setVAO(null);"),es(ue,Se,ze,Lt.attributes,function(){return!0})),aa(ue,Se,ze,Lt.uniforms,function(){return!0}),Wn(ue,Se,Se,ze)}function yo(ue,Se){var ze=ue.proc("draw",1);Mo(ue,ze),_o(ue,ze,Se.context),Qa(ue,ze,Se.framebuffer),Ro(ue,ze,Se),ps(ue,ze,Se.state),xi(ue,ze,Se,!1,!0);var Lt=Se.shader.progVar.append(ue,ze);if(ze(ue.shared.gl,".useProgram(",Lt,".program);"),Se.shader.program)Gi(ue,ze,Se,Se.shader.program);else{ze(ue.shared.vao,".setVAO(null);");var Ft=ue.global.def("{}"),Ye=ze.def(Lt,".id"),st=ze.def(Ft,"[",Ye,"]");ze(ue.cond(st).then(st,".call(this,a0);").else(st,"=",Ft,"[",Ye,"]=",ue.link(function(pt){return Mi(Gi,ue,Se,pt,1)}),"(",Lt,");",st,".call(this,a0);"))}Object.keys(Se.state).length>0&&ze(ue.shared.current,".dirty=true;")}function Xu(ue,Se,ze,Lt){ue.batchId="a1",Mo(ue,Se);function Ft(){return!0}es(ue,Se,ze,Lt.attributes,Ft),aa(ue,Se,ze,Lt.uniforms,Ft),Wn(ue,Se,Se,ze)}function ke(ue,Se,ze,Lt){Mo(ue,Se);var Ft=ze.contextDep,Ye=Se.def(),st="a0",pt="a1",Me=Se.def();ue.shared.props=Me,ue.batchId=Ye;var rt=ue.scope(),ve=ue.scope();Se(rt.entry,"for(",Ye,"=0;",Ye,"<",pt,";++",Ye,"){",Me,"=",st,"[",Ye,"];",ve,"}",rt.exit);function at(Pn){return Pn.contextDep&&Ft||Pn.propDep}function Gt(Pn){return!at(Pn)}if(ze.needsContext&&_o(ue,ve,ze.context),ze.needsFramebuffer&&Qa(ue,ve,ze.framebuffer),ps(ue,ve,ze.state,at),ze.profile&&at(ze.profile)&&xi(ue,ve,ze,!1,!0),Lt)ze.useVAO?ze.drawVAO?at(ze.drawVAO)?ve(ue.shared.vao,".setVAO(",ze.drawVAO.append(ue,ve),");"):rt(ue.shared.vao,".setVAO(",ze.drawVAO.append(ue,rt),");"):rt(ue.shared.vao,".setVAO(",ue.shared.vao,".targetVAO);"):(rt(ue.shared.vao,".setVAO(null);"),es(ue,rt,ze,Lt.attributes,Gt),es(ue,ve,ze,Lt.attributes,at)),aa(ue,rt,ze,Lt.uniforms,Gt),aa(ue,ve,ze,Lt.uniforms,at),Wn(ue,rt,ve,ze);else{var or=ue.global.def("{}"),_r=ze.shader.progVar.append(ue,ve),vr=ve.def(_r,".id"),Rr=ve.def(or,"[",vr,"]");ve(ue.shared.gl,".useProgram(",_r,".program);","if(!",Rr,"){",Rr,"=",or,"[",vr,"]=",ue.link(function(Pn){return Mi(Xu,ue,ze,Pn,2)}),"(",_r,");}",Rr,".call(this,a0[",Ye,"],",Ye,");")}}function Zt(ue,Se){var ze=ue.proc("batch",2);ue.batchId="0",Mo(ue,ze);var Lt=!1,Ft=!0;Object.keys(Se.context).forEach(function(or){Lt=Lt||Se.context[or].propDep}),Lt||(_o(ue,ze,Se.context),Ft=!1);var Ye=Se.framebuffer,st=!1;Ye?(Ye.propDep?Lt=st=!0:Ye.contextDep&&Lt&&(st=!0),st||Qa(ue,ze,Ye)):Qa(ue,ze,null),Se.state.viewport&&Se.state.viewport.propDep&&(Lt=!0);function pt(or){return or.contextDep&&Lt||or.propDep}Ro(ue,ze,Se),ps(ue,ze,Se.state,function(or){return!pt(or)}),(!Se.profile||!pt(Se.profile))&&xi(ue,ze,Se,!1,"a1"),Se.contextDep=Lt,Se.needsContext=Ft,Se.needsFramebuffer=st;var Me=Se.shader.progVar;if(Me.contextDep&&Lt||Me.propDep)ke(ue,ze,Se,null);else{var rt=Me.append(ue,ze);if(ze(ue.shared.gl,".useProgram(",rt,".program);"),Se.shader.program)ke(ue,ze,Se,Se.shader.program);else{ze(ue.shared.vao,".setVAO(null);");var ve=ue.global.def("{}"),at=ze.def(rt,".id"),Gt=ze.def(ve,"[",at,"]");ze(ue.cond(Gt).then(Gt,".call(this,a0,a1);").else(Gt,"=",ve,"[",at,"]=",ue.link(function(or){return Mi(ke,ue,Se,or,2)}),"(",rt,");",Gt,".call(this,a0,a1);"))}}Object.keys(Se.state).length>0&&ze(ue.shared.current,".dirty=true;")}function Bt(ue,Se){var ze=ue.proc("scope",3);ue.batchId="a2";var Lt=ue.shared,Ft=Lt.current;_o(ue,ze,Se.context),Se.framebuffer&&Se.framebuffer.append(ue,ze),vp(Object.keys(Se.state)).forEach(function(st){var pt=Se.state[st],Me=pt.append(ue,ze);ja(Me)?Me.forEach(function(rt,ve){ze.set(ue.next[st],"["+ve+"]",rt)}):ze.set(Lt.next,"."+st,Me)}),xi(ue,ze,Se,!0,!0),[Ni,ou,io,Bc,po].forEach(function(st){var pt=Se.draw[st];pt&&ze.set(Lt.draw,"."+st,""+pt.append(ue,ze))}),Object.keys(Se.uniforms).forEach(function(st){ze.set(Lt.uniforms,"["+Ee.id(st)+"]",Se.uniforms[st].append(ue,ze))}),Object.keys(Se.attributes).forEach(function(st){var pt=Se.attributes[st].append(ue,ze),Me=ue.scopeAttrib(st);Object.keys(new St).forEach(function(rt){ze.set(Me,"."+rt,pt[rt])})}),Se.scopeVAO&&ze.set(Lt.vao,".targetVAO",Se.scopeVAO.append(ue,ze));function Ye(st){var pt=Se.shader[st];pt&&ze.set(Lt.shader,"."+st,pt.append(ue,ze))}Ye(au),Ye(Hu),Object.keys(Se.state).length>0&&(ze(Ft,".dirty=true;"),ze.exit(Ft,".dirty=true;")),ze("a1(",ue.shared.context,",a0,",ue.batchId,");")}function ln(ue){if(!(typeof ue!="object"||ja(ue))){for(var Se=Object.keys(ue),ze=0;ze=0;--Wn){var Mi=pr[Wn];Mi&&Mi(Er,null,0)}Ze.flush(),Zr&&Zr.update()}function Yn(){!yi&&pr.length>0&&(yi=Vr.next(ai))}function Ui(){yi&&(Vr.cancel(ai),yi=null)}function mo(Wn){Wn.preventDefault(),cr=!0,Ui(),tt.forEach(function(Mi){Mi()})}function Wo(Wn){Ze.getError(),cr=!1,zt.restore(),Ir.restore(),kr.restore(),en.restore(),xr.restore(),Xr.restore(),Jr.restore(),Zr&&Zr.restore(),Fn.procs.refresh(),Yn(),wi.forEach(function(Mi){Mi()})}gt&&(gt.addEventListener(qp,mo,!1),gt.addEventListener(Ud,Wo,!1));function Ri(){pr.length=0,Ui(),gt&&(gt.removeEventListener(qp,mo),gt.removeEventListener(Ud,Wo)),Ir.clear(),Xr.clear(),xr.clear(),en.clear(),tn.clear(),kr.clear(),Jr.clear(),Zr&&Zr.clear(),on.forEach(function(Wn){Wn()})}function lo(Wn){F(!!Wn,"invalid args to regl({...})"),F.type(Wn,"object","invalid args to regl({...})");function Mi(Ft){var Ye=L({},Ft);delete Ye.uniforms,delete Ye.attributes,delete Ye.context,delete Ye.vao,"stencil"in Ye&&Ye.stencil.op&&(Ye.stencil.opBack=Ye.stencil.opFront=Ye.stencil.op,delete Ye.stencil.op);function st(pt){if(pt in Ye){var Me=Ye[pt];delete Ye[pt],Object.keys(Me).forEach(function(rt){Ye[pt+"."+rt]=Me[rt]})}}return st("blend"),st("depth"),st("cull"),st("stencil"),st("polygonOffset"),st("scissor"),st("sample"),"vao"in Ft&&(Ye.vao=Ft.vao),Ye}function Gi(Ft){var Ye={},st={};return Object.keys(Ft).forEach(function(pt){var Me=Ft[pt];dr.isDynamic(Me)?st[pt]=dr.unbox(Me,pt):Ye[pt]=Me}),{dynamic:st,static:Ye}}var yo=Gi(Wn.context||{}),Xu=Gi(Wn.uniforms||{}),ke=Gi(Wn.attributes||{}),Zt=Gi(Mi(Wn)),Bt={gpuTime:0,cpuTime:0,count:0},ln=Fn.compile(Zt,ke,Xu,yo,Bt),bi=ln.draw,da=ln.batch,ue=ln.scope,Se=[];function ze(Ft){for(;Se.length0)return da.call(this,ze(Ft|0),Ft|0)}else if(Array.isArray(Ft)){if(Ft.length)return da.call(this,Ft,Ft.length)}else return bi.call(this,Ft)}return L(Lt,{stats:Bt})}var Sa=Xr.setFBO=lo({framebuffer:dr.define.call(null,Kp,"framebuffer")});function go(Wn,Mi){var Gi=0;Fn.procs.poll();var yo=Mi.color;yo&&(Ze.clearColor(+yo[0]||0,+yo[1]||0,+yo[2]||0,+yo[3]||0),Gi|=Dh),"depth"in Mi&&(Ze.clearDepth(+Mi.depth),Gi|=Jo),"stencil"in Mi&&(Ze.clearStencil(Mi.stencil|0),Gi|=Uv),F(!!Gi,"called regl.clear with no buffer specified"),Ze.clear(Gi)}function _o(Wn){if(F(typeof Wn=="object"&&Wn,"regl.clear() takes an object as input"),"framebuffer"in Wn)if(Wn.framebuffer&&Wn.framebuffer_reglType==="framebufferCube")for(var Mi=0;Mi<6;++Mi)Sa(L({framebuffer:Wn.framebuffer.faces[Mi]},Wn),go);else Sa(Wn,go);else go(null,Wn)}function Qa(Wn){F.type(Wn,"function","regl.frame() callback must be a function"),pr.push(Wn);function Mi(){var Gi=zd(pr,Wn);F(Gi>=0,"cannot cancel a frame twice");function yo(){var Xu=zd(pr,yo);pr[Xu]=pr[pr.length-1],pr.length-=1,pr.length<=0&&Ui()}pr[Gi]=yo}return Yn(),{cancel:Mi}}function Ro(){var Wn=qr.viewport,Mi=qr.scissor_box;Wn[0]=Wn[1]=Mi[0]=Mi[1]=0,Er.viewportWidth=Er.framebufferWidth=Er.drawingBufferWidth=Wn[2]=Mi[2]=Ze.drawingBufferWidth,Er.viewportHeight=Er.framebufferHeight=Er.drawingBufferHeight=Wn[3]=Mi[3]=Ze.drawingBufferHeight}function ps(){Er.tick+=1,Er.time=xi(),Ro(),Fn.procs.poll()}function Mo(){Ro(),Fn.procs.refresh(),Zr&&Zr.update()}function xi(){return(Ln()-Br)/1e3}Mo();function es(Wn,Mi){F.type(Mi,"function","listener callback must be a function");var Gi;switch(Wn){case"frame":return Qa(Mi);case"lost":Gi=tt;break;case"restore":Gi=wi;break;case"destroy":Gi=on;break;default:F.raise("invalid event, must be one of frame,lost,restore,destroy")}return Gi.push(Mi),{cancel:function(){for(var yo=0;yo=0},read:ui,destroy:Ri,_gl:Ze,_refresh:Mo,poll:function(){ps(),Zr&&Zr.update()},now:xi,stats:Dr});return Ee.onDone(null,aa),aa}return Zd})},48096:function(rr){(function(J,L){rr.exports=L()})(this,function(){"use strict";function J(Et,nt,Pt,ft,qt,Sr){if(!(qt-ft<=Pt)){var te=ft+qt>>1;L(Et,nt,te,ft,qt,Sr%2),J(Et,nt,Pt,ft,te-1,Sr+1),J(Et,nt,Pt,te+1,qt,Sr+1)}}function L(Et,nt,Pt,ft,qt,Sr){for(;qt>ft;){if(qt-ft>600){var te=qt-ft+1,H=Pt-ft+1,K=Math.log(te),Be=.5*Math.exp(2*K/3),Ae=.5*Math.sqrt(K*Be*(te-Be)/te)*(H-te/2<0?-1:1),dt=Math.max(ft,Math.floor(Pt-H*Be/te+Ae)),Ue=Math.min(qt,Math.floor(Pt+(te-H)*Be/te+Ae));L(Et,nt,Pt,dt,Ue,Sr)}var We=nt[2*Pt+Sr],it=ft,Mt=qt;for(re(Et,nt,ft,Pt),nt[2*qt+Sr]>We&&re(Et,nt,ft,qt);itWe;)Mt--}nt[2*ft+Sr]===We?re(Et,nt,ft,Mt):(Mt++,re(Et,nt,Mt,qt)),Mt<=Pt&&(ft=Mt+1),Pt<=Mt&&(qt=Mt-1)}}function re(Et,nt,Pt,ft){pe(Et,Pt,ft),pe(nt,2*Pt,2*ft),pe(nt,2*Pt+1,2*ft+1)}function pe(Et,nt,Pt){var ft=Et[nt];Et[nt]=Et[Pt],Et[Pt]=ft}function _(Et,nt,Pt,ft,qt,Sr,te){for(var H=[0,Et.length-1,0],K=[],Be,Ae;H.length;){var dt=H.pop(),Ue=H.pop(),We=H.pop();if(Ue-We<=te){for(var it=We;it<=Ue;it++)Be=nt[2*it],Ae=nt[2*it+1],Be>=Pt&&Be<=qt&&Ae>=ft&&Ae<=Sr&&K.push(Et[it]);continue}var Mt=Math.floor((We+Ue)/2);Be=nt[2*Mt],Ae=nt[2*Mt+1],Be>=Pt&&Be<=qt&&Ae>=ft&&Ae<=Sr&&K.push(Et[Mt]);var yr=(dt+1)%2;(dt===0?Pt<=Be:ft<=Ae)&&(H.push(We),H.push(Mt-1),H.push(yr)),(dt===0?qt>=Be:Sr>=Ae)&&(H.push(Mt+1),H.push(Ue),H.push(yr))}return K}function le(Et,nt,Pt,ft,qt,Sr){for(var te=[0,Et.length-1,0],H=[],K=qt*qt;te.length;){var Be=te.pop(),Ae=te.pop(),dt=te.pop();if(Ae-dt<=Sr){for(var Ue=dt;Ue<=Ae;Ue++)U(nt[2*Ue],nt[2*Ue+1],Pt,ft)<=K&&H.push(Et[Ue]);continue}var We=Math.floor((dt+Ae)/2),it=nt[2*We],Mt=nt[2*We+1];U(it,Mt,Pt,ft)<=K&&H.push(Et[We]);var yr=(Be+1)%2;(Be===0?Pt-qt<=it:ft-qt<=Mt)&&(te.push(dt),te.push(We-1),te.push(yr)),(Be===0?Pt+qt>=it:ft+qt>=Mt)&&(te.push(We+1),te.push(Ae),te.push(yr))}return H}function U(Et,nt,Pt,ft){var qt=Et-Pt,Sr=nt-ft;return qt*qt+Sr*Sr}var he=function(Et){return Et[0]},ae=function(Et){return Et[1]},qe=function(nt,Pt,ft,qt,Sr){Pt===void 0&&(Pt=he),ft===void 0&&(ft=ae),qt===void 0&&(qt=64),Sr===void 0&&(Sr=Float64Array),this.nodeSize=qt,this.points=nt;for(var te=nt.length<65536?Uint16Array:Uint32Array,H=this.ids=new te(nt.length),K=this.coords=new Sr(nt.length*2),Be=0;Be=qt;Ae--){var dt=+Date.now();K=this._cluster(K,Ae),this.trees[Ae]=new qe(K,hr,ur,te,Float32Array),ft&&console.log("z%d: %d clusters in %dms",Ae,K.length,+Date.now()-dt)}return ft&&console.timeEnd("total time"),this},ht.prototype.getClusters=function(nt,Pt){var ft=((nt[0]+180)%360+360)%360-180,qt=Math.max(-90,Math.min(90,nt[1])),Sr=nt[2]===180?180:((nt[2]+180)%360+360)%360-180,te=Math.max(-90,Math.min(90,nt[3]));if(nt[2]-nt[0]>=360)ft=-180,Sr=180;else if(ft>Sr){var H=this.getClusters([ft,qt,180,te],Pt),K=this.getClusters([-180,qt,Sr,te],Pt);return H.concat(K)}for(var Be=this.trees[this._limitZoom(Pt)],Ae=Be.range(ir(ft),Xt(te),ir(Sr),Xt(qt)),dt=[],Ue=0,We=Ae;UePt&&(Mt+=mn.numPoints||1)}if(Mt>it&&Mt>=K){for(var un=dt.x*it,oi=dt.y*it,jn=H&&it>1?this._map(dt,!0):null,rn=(Ae<<5)+(Pt+1)+this.points.length,$i=0,Wi=We;$i1)for(var Do=0,oa=We;Do>5},ht.prototype._getOriginZoom=function(nt){return(nt-this.points.length)%32},ht.prototype._map=function(nt,Pt){if(nt.numPoints)return Pt?Pr({},nt.properties):nt.properties;var ft=this.points[nt.index].properties,qt=this.options.map(ft);return Pt&&qt===ft?Pr({},qt):qt};function mt(Et,nt,Pt,ft,qt){return{x:Ke(Et),y:Ke(nt),zoom:1/0,id:Pt,parentId:-1,numPoints:ft,properties:qt}}function Dt(Et,nt){var Pt=Et.geometry.coordinates,ft=Pt[0],qt=Pt[1];return{x:Ke(ir(ft)),y:Ke(Xt(qt)),zoom:1/0,index:nt,parentId:-1}}function Yt(Et){return{type:"Feature",id:Et.id,properties:Ht(Et),geometry:{type:"Point",coordinates:[yt(Et.x),bt(Et.y)]}}}function Ht(Et){var nt=Et.numPoints,Pt=nt>=1e4?Math.round(nt/1e3)+"k":nt>=1e3?Math.round(nt/100)/10+"k":nt;return Pr(Pr({},Et.properties),{cluster:!0,cluster_id:Et.id,point_count:nt,point_count_abbreviated:Pt})}function ir(Et){return Et/360+.5}function Xt(Et){var nt=Math.sin(Et*Math.PI/180),Pt=.5-.25*Math.log((1+nt)/(1-nt))/Math.PI;return Pt<0?0:Pt>1?1:Pt}function yt(Et){return(Et-.5)*360}function bt(Et){var nt=(180-Et*360)*Math.PI/180;return 360*Math.atan(Math.exp(nt))/Math.PI-90}function Pr(Et,nt){for(var Pt in nt)Et[Pt]=nt[Pt];return Et}function hr(Et){return Et.x}function ur(Et){return Et.y}return ht})},19684:function(rr,J,L){var re=L(79569).default;function pe(){"use strict";rr.exports=pe=function(){return le},rr.exports.__esModule=!0,rr.exports.default=rr.exports;var _,le={},U=Object.prototype,he=U.hasOwnProperty,ae=Object.defineProperty||function(Ue,We,it){Ue[We]=it.value},qe=typeof Symbol=="function"?Symbol:{},ie=qe.iterator||"@@iterator",Ke=qe.asyncIterator||"@@asyncIterator",ht=qe.toStringTag||"@@toStringTag";function mt(Ue,We,it){return Object.defineProperty(Ue,We,{value:it,enumerable:!0,configurable:!0,writable:!0}),Ue[We]}try{mt({},"")}catch(Ue){mt=function(it,Mt,yr){return it[Mt]=yr}}function Dt(Ue,We,it,Mt){var yr=We&&We.prototype instanceof Pr?We:Pr,lr=Object.create(yr.prototype),Cn=new Ae(Mt||[]);return ae(lr,"_invoke",{value:te(Ue,it,Cn)}),lr}function Yt(Ue,We,it){try{return{type:"normal",arg:Ue.call(We,it)}}catch(Mt){return{type:"throw",arg:Mt}}}le.wrap=Dt;var Ht="suspendedStart",ir="suspendedYield",Xt="executing",yt="completed",bt={};function Pr(){}function hr(){}function ur(){}var Et={};mt(Et,ie,function(){return this});var nt=Object.getPrototypeOf,Pt=nt&&nt(nt(dt([])));Pt&&Pt!==U&&he.call(Pt,ie)&&(Et=Pt);var ft=ur.prototype=Pr.prototype=Object.create(Et);function qt(Ue){["next","throw","return"].forEach(function(We){mt(Ue,We,function(it){return this._invoke(We,it)})})}function Sr(Ue,We){function it(yr,lr,Cn,mn){var un=Yt(Ue[yr],Ue,lr);if(un.type!=="throw"){var oi=un.arg,jn=oi.value;return jn&&re(jn)=="object"&&he.call(jn,"__await")?We.resolve(jn.__await).then(function(rn){it("next",rn,Cn,mn)},function(rn){it("throw",rn,Cn,mn)}):We.resolve(jn).then(function(rn){oi.value=rn,Cn(oi)},function(rn){return it("throw",rn,Cn,mn)})}mn(un.arg)}var Mt;ae(this,"_invoke",{value:function(lr,Cn){function mn(){return new We(function(un,oi){it(lr,Cn,un,oi)})}return Mt=Mt?Mt.then(mn,mn):mn()}})}function te(Ue,We,it){var Mt=Ht;return function(yr,lr){if(Mt===Xt)throw new Error("Generator is already running");if(Mt===yt){if(yr==="throw")throw lr;return{value:_,done:!0}}for(it.method=yr,it.arg=lr;;){var Cn=it.delegate;if(Cn){var mn=H(Cn,it);if(mn){if(mn===bt)continue;return mn}}if(it.method==="next")it.sent=it._sent=it.arg;else if(it.method==="throw"){if(Mt===Ht)throw Mt=yt,it.arg;it.dispatchException(it.arg)}else it.method==="return"&&it.abrupt("return",it.arg);Mt=Xt;var un=Yt(Ue,We,it);if(un.type==="normal"){if(Mt=it.done?yt:ir,un.arg===bt)continue;return{value:un.arg,done:it.done}}un.type==="throw"&&(Mt=yt,it.method="throw",it.arg=un.arg)}}}function H(Ue,We){var it=We.method,Mt=Ue.iterator[it];if(Mt===_)return We.delegate=null,it==="throw"&&Ue.iterator.return&&(We.method="return",We.arg=_,H(Ue,We),We.method==="throw")||it!=="return"&&(We.method="throw",We.arg=new TypeError("The iterator does not provide a '"+it+"' method")),bt;var yr=Yt(Mt,Ue.iterator,We.arg);if(yr.type==="throw")return We.method="throw",We.arg=yr.arg,We.delegate=null,bt;var lr=yr.arg;return lr?lr.done?(We[Ue.resultName]=lr.value,We.next=Ue.nextLoc,We.method!=="return"&&(We.method="next",We.arg=_),We.delegate=null,bt):lr:(We.method="throw",We.arg=new TypeError("iterator result is not an object"),We.delegate=null,bt)}function K(Ue){var We={tryLoc:Ue[0]};1 in Ue&&(We.catchLoc=Ue[1]),2 in Ue&&(We.finallyLoc=Ue[2],We.afterLoc=Ue[3]),this.tryEntries.push(We)}function Be(Ue){var We=Ue.completion||{};We.type="normal",delete We.arg,Ue.completion=We}function Ae(Ue){this.tryEntries=[{tryLoc:"root"}],Ue.forEach(K,this),this.reset(!0)}function dt(Ue){if(Ue||Ue===""){var We=Ue[ie];if(We)return We.call(Ue);if(typeof Ue.next=="function")return Ue;if(!isNaN(Ue.length)){var it=-1,Mt=function yr(){for(;++it=0;--yr){var lr=this.tryEntries[yr],Cn=lr.completion;if(lr.tryLoc==="root")return Mt("end");if(lr.tryLoc<=this.prev){var mn=he.call(lr,"catchLoc"),un=he.call(lr,"finallyLoc");if(mn&&un){if(this.prev=0;--Mt){var yr=this.tryEntries[Mt];if(yr.tryLoc<=this.prev&&he.call(yr,"finallyLoc")&&this.prev=0;--it){var Mt=this.tryEntries[it];if(Mt.finallyLoc===We)return this.complete(Mt.completion,Mt.afterLoc),Be(Mt),bt}},catch:function(We){for(var it=this.tryEntries.length-1;it>=0;--it){var Mt=this.tryEntries[it];if(Mt.tryLoc===We){var yr=Mt.completion;if(yr.type==="throw"){var lr=yr.arg;Be(Mt)}return lr}}throw new Error("illegal catch attempt")},delegateYield:function(We,it,Mt){return this.delegate={iterator:dt(We),resultName:it,nextLoc:Mt},this.method==="next"&&(this.arg=_),bt}},le}rr.exports=pe,rr.exports.__esModule=!0,rr.exports.default=rr.exports},79569:function(rr){function J(L){"@babel/helpers - typeof";return rr.exports=J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(re){return typeof re}:function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},rr.exports.__esModule=!0,rr.exports.default=rr.exports,J(L)}rr.exports=J,rr.exports.__esModule=!0,rr.exports.default=rr.exports},51726:function(rr,J,L){var re=L(19684)();rr.exports=re;try{regeneratorRuntime=re}catch(pe){typeof globalThis=="object"?globalThis.regeneratorRuntime=re:Function("r","regeneratorRuntime = r")(re)}}}]); +`),Ar=Function.apply(null,Ae.concat(Gr));return Ar.apply(null,je)}return{global:Dr,link:jt,block:pr,proc:Vr,scope:Gt,cond:kt,compile:Br}}var _r="xyzw".split(""),Nr=5121,kr=1,un=2,Pn=0,zn=1,Zn=2,Wi=3,vn=4,ei="dither",_i="blend.enable",ri="blend.color",qn="blend.equation",di="blend.func",Jn="depth.enable",Kn="depth.func",Co="depth.range",Ua="depth.mask",Ro="colorMask",Lo="cull.enable",Ga="cull.face",Xa="frontFace",Ss="lineWidth",ls="polygonOffset.enable",Zu="polygonOffset.offset",cs="sample.alpha",nu="sample.enable",Us="sample.coverage",sl="stencil.enable",Fl="stencil.mask",ul="stencil.func",kl="stencil.opFront",Vu="stencil.opBack",iu="scissor.enable",ju="scissor.box",Ko="viewport",Qa="profile",As="framebuffer",au="vert",Hu="frag",Zi="elements",mo="primitive",ao="count",ou="offset",Bc="instances",Bl="vao",fs="Width",Or="Height",Wu=As+fs,Gu=As+Or,oo=Ko+fs,Ll=Ko+Or,_u="drawingBuffer",Qo=_u+fs,sc=_u+Or,hf=[di,qn,ul,kl,Vu,Us,Ko,ju,Zu],Lc=34962,Km=34963,Bv=35632,jp=35633,pf=3553,Id=34067,lp=2884,Pd=3042,Nc=3024,Mh=2960,Od=2929,Qm=3089,Hp=32823,Dd=32926,Jm=32928,Fd=5126,Uc=35664,Wf=35665,cp=35666,df=5124,fp=35667,so=35668,uc=35669,hp=35670,vf=35671,mf=35672,zc=35673,Ih=35674,gf=35675,ll=35676,Zc=35678,_f=35680,cl=4,lc=1028,yf=1029,pp=2304,Ph=2305,Wp=32775,xf=32776,fl=519,Nl=7680,kd=0,Oh=1,Gp=32774,dp=513,cc=36160,Bd=36064,hl={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},pl=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"],bf={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},fc={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Xp={frag:Bv,vert:jp},Ul={cw:pp,ccw:Ph};function Gf(z){return Array.isArray(z)||ee(z)||Ea(z)}function vp(z){return z.sort(function(Ae,je){return Ae===Ko?-1:je===Ko?1:Ae=1,jt>=2,Ae)}else if(je===vn){var pr=z.data;return new Ts(pr.thisDep,pr.contextDep,pr.propDep,Ae)}else return new Ts(je===Wi,je===Zn,je===zn,Ae)}var $p=new Ts(!1,!1,!1,function(){});function Xf(z,Ae,je,jt,pr,Gt,kt,Dr,Cr,Vr,Br,Ur,Gr,Ar,zr){var Tt=Vr.Record,er={add:32774,subtract:32778,"reverse subtract":32779};je.ext_blend_minmax&&(er.min=Wp,er.max=xf);var Fr=je.angle_instanced_arrays,rn=je.webgl_draw_buffers,yr={dirty:!0,profile:zr.profile},an={},Pr=[],nn={},br={};function $r(ce){return ce.replace(".","_")}function Nn(ce,Te,Ve){var Ut=$r(ce);Pr.push(ce),an[Ut]=yr[Ut]=!!Ve,nn[Ut]=Te}function ui(ce,Te,Ve){var Ut=$r(ce);Pr.push(ce),Array.isArray(Ve)?(yr[Ut]=Ve.slice(),an[Ut]=Ve.slice()):yr[Ut]=an[Ut]=Ve,br[Ut]=Te}Nn(ei,Nc),Nn(_i,Pd),ui(ri,"blendColor",[0,0,0,0]),ui(qn,"blendEquationSeparate",[Gp,Gp]),ui(di,"blendFuncSeparate",[Oh,kd,Oh,kd]),Nn(Jn,Od,!0),ui(Kn,"depthFunc",dp),ui(Co,"depthRange",[0,1]),ui(Ua,"depthMask",!0),ui(Ro,Ro,[!0,!0,!0,!0]),Nn(Lo,lp),ui(Ga,"cullFace",yf),ui(Xa,Xa,Ph),ui(Ss,Ss,1),Nn(ls,Hp),ui(Zu,"polygonOffset",[0,0]),Nn(cs,Dd),Nn(nu,Jm),ui(Us,"sampleCoverage",[1,!1]),Nn(sl,Mh),ui(Fl,"stencilMask",-1),ui(ul,"stencilFunc",[fl,0,-1]),ui(kl,"stencilOpSeparate",[lc,Nl,Nl,Nl]),ui(Vu,"stencilOpSeparate",[yf,Nl,Nl,Nl]),Nn(iu,Qm),ui(ju,"scissor",[0,0,z.drawingBufferWidth,z.drawingBufferHeight]),ui(Ko,Ko,[0,0,z.drawingBufferWidth,z.drawingBufferHeight]);var Qr={gl:z,context:Gr,strings:Ae,next:an,current:yr,draw:Ur,elements:Gt,buffer:pr,shader:Br,attributes:Vr.state,vao:Vr,uniforms:Cr,framebuffer:Dr,extensions:je,timer:Ar,isBufferArgs:Gf},yt={primTypes:Pu,compareFuncs:bf,blendFuncs:hl,blendEquations:er,stencilOps:fc,glTypes:jo,orientationType:Ul};k.optional(function(){Qr.isArrayLike=Ha}),rn&&(yt.backBuffer=[yf],yt.drawBuffer=hi(jt.maxDrawbuffers,function(ce){return ce===0?[0]:hi(ce,function(Te){return Bd+Te})}));var vr=0;function ot(){var ce=ar(),Te=ce.link,Ve=ce.global;ce.id=vr++,ce.batchId="0";var Ut=Te(Qr),Bt=ce.shared={props:"a0"};Object.keys(Qr).forEach(function(st){Bt[st]=Ve.def(Ut,".",st)}),k.optional(function(){ce.CHECK=Te(k),ce.commandStr=k.guessCommand(),ce.command=Te(ce.commandStr),ce.assert=function(st,me,lt){st("if(!(",me,"))",this.CHECK,".commandRaise(",Te(lt),",",this.command,");")},yt.invalidBlendCombinations=pl});var tt=ce.next={},ft=ce.current={};Object.keys(br).forEach(function(st){Array.isArray(yr[st])&&(tt[st]=Ve.def(Bt.next,".",st),ft[st]=Ve.def(Bt.current,".",st))});var mt=ce.constants={};Object.keys(yt).forEach(function(st){mt[st]=Ve.def(JSON.stringify(yt[st]))}),ce.invoke=function(st,me){switch(me.type){case Pn:var lt=["this",Bt.context,Bt.props,ce.batchId];return st.def(Te(me.data),".call(",lt.slice(0,Math.max(me.data.length+1,4)),")");case zn:return st.def(Bt.props,me.data);case Zn:return st.def(Bt.context,me.data);case Wi:return st.def("this",me.data);case vn:return me.data.append(ce,st),me.data.ref}},ce.attribCache={};var De={};return ce.scopeAttrib=function(st){var me=Ae.id(st);if(me in De)return De[me];var lt=Vr.scope[me];lt||(lt=Vr.scope[me]=new Tt);var Qt=De[me]=Te(lt);return Qt},ce}function Ci(ce){var Te=ce.static,Ve=ce.dynamic,Ut;if(Qa in Te){var Bt=!!Te[Qa];Ut=go(function(ft,mt){return Bt}),Ut.enable=Bt}else if(Qa in Ve){var tt=Ve[Qa];Ut=zs(tt,function(ft,mt){return ft.invoke(mt,tt)})}return Ut}function ln(ce,Te){var Ve=ce.static,Ut=ce.dynamic;if(As in Ve){var Bt=Ve[As];return Bt?(Bt=Dr.getFramebuffer(Bt),k.command(Bt,"invalid framebuffer object"),go(function(ft,mt){var De=ft.link(Bt),st=ft.shared;mt.set(st.framebuffer,".next",De);var me=st.context;return mt.set(me,"."+Wu,De+".width"),mt.set(me,"."+Gu,De+".height"),De})):go(function(ft,mt){var De=ft.shared;mt.set(De.framebuffer,".next","null");var st=De.context;return mt.set(st,"."+Wu,st+"."+Qo),mt.set(st,"."+Gu,st+"."+sc),"null"})}else if(As in Ut){var tt=Ut[As];return zs(tt,function(ft,mt){var De=ft.invoke(mt,tt),st=ft.shared,me=st.framebuffer,lt=mt.def(me,".getFramebuffer(",De,")");k.optional(function(){ft.assert(mt,"!"+De+"||"+lt,"invalid framebuffer object")}),mt.set(me,".next",lt);var Qt=st.context;return mt.set(Qt,"."+Wu,lt+"?"+lt+".width:"+Qt+"."+Qo),mt.set(Qt,"."+Gu,lt+"?"+lt+".height:"+Qt+"."+sc),lt})}else return null}function yi(ce,Te,Ve){var Ut=ce.static,Bt=ce.dynamic;function tt(De){if(De in Ut){var st=Ut[De];k.commandType(st,"object","invalid "+De,Ve.commandStr);var me=!0,lt=st.x|0,Qt=st.y|0,ur,xr;return"width"in st?(ur=st.width|0,k.command(ur>=0,"invalid "+De,Ve.commandStr)):me=!1,"height"in st?(xr=st.height|0,k.command(xr>=0,"invalid "+De,Ve.commandStr)):me=!1,new Ts(!me&&Te&&Te.thisDep,!me&&Te&&Te.contextDep,!me&&Te&&Te.propDep,function(On,xn){var Tn=On.shared.context,$n=ur;"width"in st||($n=xn.def(Tn,".",Wu,"-",lt));var ii=xr;return"height"in st||(ii=xn.def(Tn,".",Gu,"-",Qt)),[lt,Qt,$n,ii]})}else if(De in Bt){var gr=Bt[De],Mr=zs(gr,function(On,xn){var Tn=On.invoke(xn,gr);k.optional(function(){On.assert(xn,Tn+"&&typeof "+Tn+'==="object"',"invalid "+De)});var $n=On.shared.context,ii=xn.def(Tn,".x|0"),na=xn.def(Tn,".y|0"),Eo=xn.def('"width" in ',Tn,"?",Tn,".width|0:","(",$n,".",Wu,"-",ii,")"),dl=xn.def('"height" in ',Tn,"?",Tn,".height|0:","(",$n,".",Gu,"-",na,")");return k.optional(function(){On.assert(xn,Eo+">=0&&"+dl+">=0","invalid "+De)}),[ii,na,Eo,dl]});return Te&&(Mr.thisDep=Mr.thisDep||Te.thisDep,Mr.contextDep=Mr.contextDep||Te.contextDep,Mr.propDep=Mr.propDep||Te.propDep),Mr}else return Te?new Ts(Te.thisDep,Te.contextDep,Te.propDep,function(On,xn){var Tn=On.shared.context;return[0,0,xn.def(Tn,".",Wu),xn.def(Tn,".",Gu)]}):null}var ft=tt(Ko);if(ft){var mt=ft;ft=new Ts(ft.thisDep,ft.contextDep,ft.propDep,function(De,st){var me=mt.append(De,st),lt=De.shared.context;return st.set(lt,"."+oo,me[2]),st.set(lt,"."+Ll,me[3]),me})}return{viewport:ft,scissor_box:tt(ju)}}function si(ce,Te){var Ve=ce.static,Ut=typeof Ve[Hu]=="string"&&typeof Ve[au]=="string";if(Ut){if(Object.keys(Te.dynamic).length>0)return null;var Bt=Te.static,tt=Object.keys(Bt);if(tt.length>0&&typeof Bt[tt[0]]=="number"){for(var ft=[],mt=0;mt=0,"invalid "+me,Te.commandStr),go(function(xr,gr){return lt&&(xr.OFFSET=Qt),Qt})}else if(me in Ut){var ur=Ut[me];return zs(ur,function(xr,gr){var Mr=xr.invoke(gr,ur);return lt&&(xr.OFFSET=Mr,k.optional(function(){xr.assert(gr,Mr+">=0","invalid "+me)})),Mr})}else if(lt&&tt)return go(function(xr,gr){return xr.OFFSET="0",0});return null}var De=mt(ou,!0);function st(){if(ao in Ve){var me=Ve[ao]|0;return k.command(typeof me=="number"&&me>=0,"invalid vertex count",Te.commandStr),go(function(){return me})}else if(ao in Ut){var lt=Ut[ao];return zs(lt,function(xr,gr){var Mr=xr.invoke(gr,lt);return k.optional(function(){xr.assert(gr,"typeof "+Mr+'==="number"&&'+Mr+">=0&&"+Mr+"===("+Mr+"|0)","invalid vertex count")}),Mr})}else if(tt)if(hs(tt)){if(tt)return De?new Ts(De.thisDep,De.contextDep,De.propDep,function(xr,gr){var Mr=gr.def(xr.ELEMENTS,".vertCount-",xr.OFFSET);return k.optional(function(){xr.assert(gr,Mr+">=0","invalid vertex offset/element buffer too small")}),Mr}):go(function(xr,gr){return gr.def(xr.ELEMENTS,".vertCount")});var Qt=go(function(){return-1});return k.optional(function(){Qt.MISSING=!0}),Qt}else{var ur=new Ts(tt.thisDep||De.thisDep,tt.contextDep||De.contextDep,tt.propDep||De.propDep,function(xr,gr){var Mr=xr.ELEMENTS;return xr.OFFSET?gr.def(Mr,"?",Mr,".vertCount-",xr.OFFSET,":-1"):gr.def(Mr,"?",Mr,".vertCount:-1")});return k.optional(function(){ur.DYNAMIC=!0}),ur}return null}return{elements:tt,primitive:ft(),count:st(),instances:mt(Bc,!1),offset:De}}function _o(ce,Te){var Ve=ce.static,Ut=ce.dynamic,Bt={};return Pr.forEach(function(tt){var ft=$r(tt);function mt(De,st){if(tt in Ve){var me=De(Ve[tt]);Bt[ft]=go(function(){return me})}else if(tt in Ut){var lt=Ut[tt];Bt[ft]=zs(lt,function(Qt,ur){return st(Qt,ur,Qt.invoke(ur,lt))})}}switch(tt){case Lo:case _i:case ei:case sl:case Jn:case iu:case ls:case cs:case nu:case Ua:return mt(function(De){return k.commandType(De,"boolean",tt,Te.commandStr),De},function(De,st,me){return k.optional(function(){De.assert(st,"typeof "+me+'==="boolean"',"invalid flag "+tt,De.commandStr)}),me});case Kn:return mt(function(De){return k.commandParameter(De,bf,"invalid "+tt,Te.commandStr),bf[De]},function(De,st,me){var lt=De.constants.compareFuncs;return k.optional(function(){De.assert(st,me+" in "+lt,"invalid "+tt+", must be one of "+Object.keys(bf))}),st.def(lt,"[",me,"]")});case Co:return mt(function(De){return k.command(Ha(De)&&De.length===2&&typeof De[0]=="number"&&typeof De[1]=="number"&&De[0]<=De[1],"depth range is 2d array",Te.commandStr),De},function(De,st,me){k.optional(function(){De.assert(st,De.shared.isArrayLike+"("+me+")&&"+me+".length===2&&typeof "+me+'[0]==="number"&&typeof '+me+'[1]==="number"&&'+me+"[0]<="+me+"[1]","depth range must be a 2d array")});var lt=st.def("+",me,"[0]"),Qt=st.def("+",me,"[1]");return[lt,Qt]});case di:return mt(function(De){k.commandType(De,"object","blend.func",Te.commandStr);var st="srcRGB"in De?De.srcRGB:De.src,me="srcAlpha"in De?De.srcAlpha:De.src,lt="dstRGB"in De?De.dstRGB:De.dst,Qt="dstAlpha"in De?De.dstAlpha:De.dst;return k.commandParameter(st,hl,ft+".srcRGB",Te.commandStr),k.commandParameter(me,hl,ft+".srcAlpha",Te.commandStr),k.commandParameter(lt,hl,ft+".dstRGB",Te.commandStr),k.commandParameter(Qt,hl,ft+".dstAlpha",Te.commandStr),k.command(pl.indexOf(st+", "+lt)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+st+", "+lt+")",Te.commandStr),[hl[st],hl[lt],hl[me],hl[Qt]]},function(De,st,me){var lt=De.constants.blendFuncs;k.optional(function(){De.assert(st,me+"&&typeof "+me+'==="object"',"invalid blend func, must be an object")});function Qt(Tn,$n){var ii=st.def('"',Tn,$n,'" in ',me,"?",me,".",Tn,$n,":",me,".",Tn);return k.optional(function(){De.assert(st,ii+" in "+lt,"invalid "+tt+"."+Tn+$n+", must be one of "+Object.keys(hl))}),ii}var ur=Qt("src","RGB"),xr=Qt("dst","RGB");k.optional(function(){var Tn=De.constants.invalidBlendCombinations;De.assert(st,Tn+".indexOf("+ur+'+", "+'+xr+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var gr=st.def(lt,"[",ur,"]"),Mr=st.def(lt,"[",Qt("src","Alpha"),"]"),On=st.def(lt,"[",xr,"]"),xn=st.def(lt,"[",Qt("dst","Alpha"),"]");return[gr,On,Mr,xn]});case qn:return mt(function(De){if(typeof De=="string")return k.commandParameter(De,er,"invalid "+tt,Te.commandStr),[er[De],er[De]];if(typeof De=="object")return k.commandParameter(De.rgb,er,tt+".rgb",Te.commandStr),k.commandParameter(De.alpha,er,tt+".alpha",Te.commandStr),[er[De.rgb],er[De.alpha]];k.commandRaise("invalid blend.equation",Te.commandStr)},function(De,st,me){var lt=De.constants.blendEquations,Qt=st.def(),ur=st.def(),xr=De.cond("typeof ",me,'==="string"');return k.optional(function(){function gr(Mr,On,xn){De.assert(Mr,xn+" in "+lt,"invalid "+On+", must be one of "+Object.keys(er))}gr(xr.then,tt,me),De.assert(xr.else,me+"&&typeof "+me+'==="object"',"invalid "+tt),gr(xr.else,tt+".rgb",me+".rgb"),gr(xr.else,tt+".alpha",me+".alpha")}),xr.then(Qt,"=",ur,"=",lt,"[",me,"];"),xr.else(Qt,"=",lt,"[",me,".rgb];",ur,"=",lt,"[",me,".alpha];"),st(xr),[Qt,ur]});case ri:return mt(function(De){return k.command(Ha(De)&&De.length===4,"blend.color must be a 4d array",Te.commandStr),hi(4,function(st){return+De[st]})},function(De,st,me){return k.optional(function(){De.assert(st,De.shared.isArrayLike+"("+me+")&&"+me+".length===4","blend.color must be a 4d array")}),hi(4,function(lt){return st.def("+",me,"[",lt,"]")})});case Fl:return mt(function(De){return k.commandType(De,"number",ft,Te.commandStr),De|0},function(De,st,me){return k.optional(function(){De.assert(st,"typeof "+me+'==="number"',"invalid stencil.mask")}),st.def(me,"|0")});case ul:return mt(function(De){k.commandType(De,"object",ft,Te.commandStr);var st=De.cmp||"keep",me=De.ref||0,lt="mask"in De?De.mask:-1;return k.commandParameter(st,bf,tt+".cmp",Te.commandStr),k.commandType(me,"number",tt+".ref",Te.commandStr),k.commandType(lt,"number",tt+".mask",Te.commandStr),[bf[st],me,lt]},function(De,st,me){var lt=De.constants.compareFuncs;k.optional(function(){function gr(){De.assert(st,Array.prototype.join.call(arguments,""),"invalid stencil.func")}gr(me+"&&typeof ",me,'==="object"'),gr('!("cmp" in ',me,")||(",me,".cmp in ",lt,")")});var Qt=st.def('"cmp" in ',me,"?",lt,"[",me,".cmp]",":",Nl),ur=st.def(me,".ref|0"),xr=st.def('"mask" in ',me,"?",me,".mask|0:-1");return[Qt,ur,xr]});case kl:case Vu:return mt(function(De){k.commandType(De,"object",ft,Te.commandStr);var st=De.fail||"keep",me=De.zfail||"keep",lt=De.zpass||"keep";return k.commandParameter(st,fc,tt+".fail",Te.commandStr),k.commandParameter(me,fc,tt+".zfail",Te.commandStr),k.commandParameter(lt,fc,tt+".zpass",Te.commandStr),[tt===Vu?yf:lc,fc[st],fc[me],fc[lt]]},function(De,st,me){var lt=De.constants.stencilOps;k.optional(function(){De.assert(st,me+"&&typeof "+me+'==="object"',"invalid "+tt)});function Qt(ur){return k.optional(function(){De.assert(st,'!("'+ur+'" in '+me+")||("+me+"."+ur+" in "+lt+")","invalid "+tt+"."+ur+", must be one of "+Object.keys(fc))}),st.def('"',ur,'" in ',me,"?",lt,"[",me,".",ur,"]:",Nl)}return[tt===Vu?yf:lc,Qt("fail"),Qt("zfail"),Qt("zpass")]});case Zu:return mt(function(De){k.commandType(De,"object",ft,Te.commandStr);var st=De.factor|0,me=De.units|0;return k.commandType(st,"number",ft+".factor",Te.commandStr),k.commandType(me,"number",ft+".units",Te.commandStr),[st,me]},function(De,st,me){k.optional(function(){De.assert(st,me+"&&typeof "+me+'==="object"',"invalid "+tt)});var lt=st.def(me,".factor|0"),Qt=st.def(me,".units|0");return[lt,Qt]});case Ga:return mt(function(De){var st=0;return De==="front"?st=lc:De==="back"&&(st=yf),k.command(!!st,ft,Te.commandStr),st},function(De,st,me){return k.optional(function(){De.assert(st,me+'==="front"||'+me+'==="back"',"invalid cull.face")}),st.def(me,'==="front"?',lc,":",yf)});case Ss:return mt(function(De){return k.command(typeof De=="number"&&De>=jt.lineWidthDims[0]&&De<=jt.lineWidthDims[1],"invalid line width, must be a positive number between "+jt.lineWidthDims[0]+" and "+jt.lineWidthDims[1],Te.commandStr),De},function(De,st,me){return k.optional(function(){De.assert(st,"typeof "+me+'==="number"&&'+me+">="+jt.lineWidthDims[0]+"&&"+me+"<="+jt.lineWidthDims[1],"invalid line width")}),me});case Xa:return mt(function(De){return k.commandParameter(De,Ul,ft,Te.commandStr),Ul[De]},function(De,st,me){return k.optional(function(){De.assert(st,me+'==="cw"||'+me+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),st.def(me+'==="cw"?'+pp+":"+Ph)});case Ro:return mt(function(De){return k.command(Ha(De)&&De.length===4,"color.mask must be length 4 array",Te.commandStr),De.map(function(st){return!!st})},function(De,st,me){return k.optional(function(){De.assert(st,De.shared.isArrayLike+"("+me+")&&"+me+".length===4","invalid color.mask")}),hi(4,function(lt){return"!!"+me+"["+lt+"]"})});case Us:return mt(function(De){k.command(typeof De=="object"&&De,ft,Te.commandStr);var st="value"in De?De.value:1,me=!!De.invert;return k.command(typeof st=="number"&&st>=0&&st<=1,"sample.coverage.value must be a number between 0 and 1",Te.commandStr),[st,me]},function(De,st,me){k.optional(function(){De.assert(st,me+"&&typeof "+me+'==="object"',"invalid sample.coverage")});var lt=st.def('"value" in ',me,"?+",me,".value:1"),Qt=st.def("!!",me,".invert");return[lt,Qt]})}}),Bt}function Wo(ce,Te){var Ve=ce.static,Ut=ce.dynamic,Bt={};return Object.keys(Ve).forEach(function(tt){var ft=Ve[tt],mt;if(typeof ft=="number"||typeof ft=="boolean")mt=go(function(){return ft});else if(typeof ft=="function"){var De=ft._reglType;De==="texture2d"||De==="textureCube"?mt=go(function(st){return st.link(ft)}):De==="framebuffer"||De==="framebufferCube"?(k.command(ft.color.length>0,'missing color attachment for framebuffer sent to uniform "'+tt+'"',Te.commandStr),mt=go(function(st){return st.link(ft.color[0])})):k.commandRaise('invalid data for uniform "'+tt+'"',Te.commandStr)}else Ha(ft)?mt=go(function(st){var me=st.global.def("[",hi(ft.length,function(lt){return k.command(typeof ft[lt]=="number"||typeof ft[lt]=="boolean","invalid uniform "+tt,st.commandStr),ft[lt]}),"]");return me}):k.commandRaise('invalid or missing data for uniform "'+tt+'"',Te.commandStr);mt.value=ft,Bt[tt]=mt}),Object.keys(Ut).forEach(function(tt){var ft=Ut[tt];Bt[tt]=zs(ft,function(mt,De){return mt.invoke(De,ft)})}),Bt}function Pi(ce,Te){var Ve=ce.static,Ut=ce.dynamic,Bt={};return Object.keys(Ve).forEach(function(tt){var ft=Ve[tt],mt=Ae.id(tt),De=new Tt;if(Gf(ft))De.state=kr,De.buffer=pr.getBuffer(pr.create(ft,Lc,!1,!0)),De.type=0;else{var st=pr.getBuffer(ft);if(st)De.state=kr,De.buffer=st,De.type=0;else if(k.command(typeof ft=="object"&&ft,"invalid data for attribute "+tt,Te.commandStr),"constant"in ft){var me=ft.constant;De.buffer="null",De.state=un,typeof me=="number"?De.x=me:(k.command(Ha(me)&&me.length>0&&me.length<=4,"invalid constant for attribute "+tt,Te.commandStr),_r.forEach(function(On,xn){xn=0,'invalid offset for attribute "'+tt+'"',Te.commandStr);var Qt=ft.stride|0;k.command(Qt>=0&&Qt<256,'invalid stride for attribute "'+tt+'", must be integer betweeen [0, 255]',Te.commandStr);var ur=ft.size|0;k.command(!("size"in ft)||ur>0&&ur<=4,'invalid size for attribute "'+tt+'", must be 1,2,3,4',Te.commandStr);var xr=!!ft.normalized,gr=0;"type"in ft&&(k.commandParameter(ft.type,jo,"invalid type for attribute "+tt,Te.commandStr),gr=jo[ft.type]);var Mr=ft.divisor|0;"divisor"in ft&&(k.command(Mr===0||Fr,'cannot specify divisor for attribute "'+tt+'", instancing not supported',Te.commandStr),k.command(Mr>=0,'invalid divisor for attribute "'+tt+'"',Te.commandStr)),k.optional(function(){var On=Te.commandStr,xn=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(ft).forEach(function(Tn){k.command(xn.indexOf(Tn)>=0,'unknown parameter "'+Tn+'" for attribute pointer "'+tt+'" (valid parameters are '+xn+")",On)})}),De.buffer=st,De.state=kr,De.size=ur,De.normalized=xr,De.type=gr||st.dtype,De.offset=lt,De.stride=Qt,De.divisor=Mr}}Bt[tt]=go(function(On,xn){var Tn=On.attribCache;if(mt in Tn)return Tn[mt];var $n={isStream:!1};return Object.keys(De).forEach(function(ii){$n[ii]=De[ii]}),De.buffer&&($n.buffer=On.link(De.buffer),$n.type=$n.type||$n.buffer+".dtype"),Tn[mt]=$n,$n})}),Object.keys(Ut).forEach(function(tt){var ft=Ut[tt];function mt(De,st){var me=De.invoke(st,ft),lt=De.shared,Qt=De.constants,ur=lt.isBufferArgs,xr=lt.buffer;k.optional(function(){De.assert(st,me+"&&(typeof "+me+'==="object"||typeof '+me+'==="function")&&('+ur+"("+me+")||"+xr+".getBuffer("+me+")||"+xr+".getBuffer("+me+".buffer)||"+ur+"("+me+'.buffer)||("constant" in '+me+"&&(typeof "+me+'.constant==="number"||'+lt.isArrayLike+"("+me+".constant))))",'invalid dynamic attribute "'+tt+'"')});var gr={isStream:st.def(!1)},Mr=new Tt;Mr.state=kr,Object.keys(Mr).forEach(function($n){gr[$n]=st.def(""+Mr[$n])});var On=gr.buffer,xn=gr.type;st("if(",ur,"(",me,")){",gr.isStream,"=true;",On,"=",xr,".createStream(",Lc,",",me,");",xn,"=",On,".dtype;","}else{",On,"=",xr,".getBuffer(",me,");","if(",On,"){",xn,"=",On,".dtype;",'}else if("constant" in ',me,"){",gr.state,"=",un,";","if(typeof "+me+'.constant === "number"){',gr[_r[0]],"=",me,".constant;",_r.slice(1).map(function($n){return gr[$n]}).join("="),"=0;","}else{",_r.map(function($n,ii){return gr[$n]+"="+me+".constant.length>"+ii+"?"+me+".constant["+ii+"]:0;"}).join(""),"}}else{","if(",ur,"(",me,".buffer)){",On,"=",xr,".createStream(",Lc,",",me,".buffer);","}else{",On,"=",xr,".getBuffer(",me,".buffer);","}",xn,'="type" in ',me,"?",Qt.glTypes,"[",me,".type]:",On,".dtype;",gr.normalized,"=!!",me,".normalized;");function Tn($n){st(gr[$n],"=",me,".",$n,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),st("}}"),st.exit("if(",gr.isStream,"){",xr,".destroyStream(",On,");","}"),gr}Bt[tt]=zs(ft,mt)}),Bt}function fo(ce,Te){var Ve=ce.static,Ut=ce.dynamic;if(Bl in Ve){var Bt=Ve[Bl];return Bt!==null&&Vr.getVAO(Bt)===null&&(Bt=Vr.createVAO(Bt)),go(function(ft){return ft.link(Vr.getVAO(Bt))})}else if(Bl in Ut){var tt=Ut[Bl];return zs(tt,function(ft,mt){var De=ft.invoke(mt,tt);return mt.def(ft.shared.vao+".getVAO("+De+")")})}return null}function Sa(ce){var Te=ce.static,Ve=ce.dynamic,Ut={};return Object.keys(Te).forEach(function(Bt){var tt=Te[Bt];Ut[Bt]=go(function(ft,mt){return typeof tt=="number"||typeof tt=="boolean"?""+tt:ft.link(tt)})}),Object.keys(Ve).forEach(function(Bt){var tt=Ve[Bt];Ut[Bt]=zs(tt,function(ft,mt){return ft.invoke(mt,tt)})}),Ut}function yo(ce,Te,Ve,Ut,Bt){var tt=ce.static,ft=ce.dynamic;k.optional(function(){var Tn=[As,au,Hu,Zi,mo,ou,ao,Bc,Qa,Bl].concat(Pr);function $n(ii){Object.keys(ii).forEach(function(na){k.command(Tn.indexOf(na)>=0,'unknown parameter "'+na+'"',Bt.commandStr)})}$n(tt),$n(ft)});var mt=si(ce,Te),De=ln(ce,Bt),st=yi(ce,De,Bt),me=Vi(ce,Bt),lt=_o(ce,Bt),Qt=Qn(ce,Bt,mt);function ur(Tn){var $n=st[Tn];$n&&(lt[Tn]=$n)}ur(Ko),ur($r(ju));var xr=Object.keys(lt).length>0,gr={framebuffer:De,draw:me,shader:Qt,state:lt,dirty:xr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(gr.profile=Ci(ce,Bt),gr.uniforms=Wo(Ve,Bt),gr.drawVAO=gr.scopeVAO=fo(ce,Bt),!gr.drawVAO&&Qt.program&&!mt&&je.angle_instanced_arrays){var Mr=!0,On=Qt.program.attributes.map(function(Tn){var $n=Te.static[Tn];return Mr=Mr&&!!$n,$n});if(Mr&&On.length>0){var xn=Vr.getVAO(Vr.createVAO(On));gr.drawVAO=new Ts(null,null,null,function(Tn,$n){return Tn.link(xn)}),gr.useVAO=!0}}return mt?gr.useVAO=!0:gr.attributes=Pi(Te,Bt),gr.context=Sa(Ut,Bt),gr}function xo(ce,Te,Ve){var Ut=ce.shared,Bt=Ut.context,tt=ce.scope();Object.keys(Ve).forEach(function(ft){Te.save(Bt,"."+ft);var mt=Ve[ft];tt(Bt,".",ft,"=",mt.append(ce,Te),";")}),Te(tt)}function Ja(ce,Te,Ve,Ut){var Bt=ce.shared,tt=Bt.gl,ft=Bt.framebuffer,mt;rn&&(mt=Te.def(Bt.extensions,".webgl_draw_buffers"));var De=ce.constants,st=De.drawBuffer,me=De.backBuffer,lt;Ve?lt=Ve.append(ce,Te):lt=Te.def(ft,".next"),Ut||Te("if(",lt,"!==",ft,".cur){"),Te("if(",lt,"){",tt,".bindFramebuffer(",cc,",",lt,".framebuffer);"),rn&&Te(mt,".drawBuffersWEBGL(",st,"[",lt,".colorAttachments.length]);"),Te("}else{",tt,".bindFramebuffer(",cc,",null);"),rn&&Te(mt,".drawBuffersWEBGL(",me,");"),Te("}",ft,".cur=",lt,";"),Ut||Te("}")}function Mo(ce,Te,Ve){var Ut=ce.shared,Bt=Ut.gl,tt=ce.current,ft=ce.next,mt=Ut.current,De=Ut.next,st=ce.cond(mt,".dirty");Pr.forEach(function(me){var lt=$r(me);if(!(lt in Ve.state)){var Qt,ur;if(lt in ft){Qt=ft[lt],ur=tt[lt];var xr=hi(yr[lt].length,function(Mr){return st.def(Qt,"[",Mr,"]")});st(ce.cond(xr.map(function(Mr,On){return Mr+"!=="+ur+"["+On+"]"}).join("||")).then(Bt,".",br[lt],"(",xr,");",xr.map(function(Mr,On){return ur+"["+On+"]="+Mr}).join(";"),";"))}else{Qt=st.def(De,".",lt);var gr=ce.cond(Qt,"!==",mt,".",lt);st(gr),lt in nn?gr(ce.cond(Qt).then(Bt,".enable(",nn[lt],");").else(Bt,".disable(",nn[lt],");"),mt,".",lt,"=",Qt,";"):gr(Bt,".",br[lt],"(",Qt,");",mt,".",lt,"=",Qt,";")}}}),Object.keys(Ve.state).length===0&&st(mt,".dirty=false;"),Te(st)}function ps(ce,Te,Ve,Ut){var Bt=ce.shared,tt=ce.current,ft=Bt.current,mt=Bt.gl;vp(Object.keys(Ve)).forEach(function(De){var st=Ve[De];if(!(Ut&&!Ut(st))){var me=st.append(ce,Te);if(nn[De]){var lt=nn[De];hs(st)?me?Te(mt,".enable(",lt,");"):Te(mt,".disable(",lt,");"):Te(ce.cond(me).then(mt,".enable(",lt,");").else(mt,".disable(",lt,");")),Te(ft,".",De,"=",me,";")}else if(Ha(me)){var Qt=tt[De];Te(mt,".",br[De],"(",me,");",me.map(function(ur,xr){return Qt+"["+xr+"]="+ur}).join(";"),";")}else Te(mt,".",br[De],"(",me,");",ft,".",De,"=",me,";")}})}function Io(ce,Te){Fr&&(ce.instancing=Te.def(ce.shared.extensions,".angle_instanced_arrays"))}function xi(ce,Te,Ve,Ut,Bt){var tt=ce.shared,ft=ce.stats,mt=tt.current,De=tt.timer,st=Ve.profile;function me(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var lt,Qt;function ur(Tn){lt=Te.def(),Tn(lt,"=",me(),";"),typeof Bt=="string"?Tn(ft,".count+=",Bt,";"):Tn(ft,".count++;"),Ar&&(Ut?(Qt=Te.def(),Tn(Qt,"=",De,".getNumPendingQueries();")):Tn(De,".beginQuery(",ft,");"))}function xr(Tn){Tn(ft,".cpuTime+=",me(),"-",lt,";"),Ar&&(Ut?Tn(De,".pushScopeStats(",Qt,",",De,".getNumPendingQueries(),",ft,");"):Tn(De,".endQuery();"))}function gr(Tn){var $n=Te.def(mt,".profile");Te(mt,".profile=",Tn,";"),Te.exit(mt,".profile=",$n,";")}var Mr;if(st){if(hs(st)){st.enable?(ur(Te),xr(Te.exit),gr("true")):gr("false");return}Mr=st.append(ce,Te),gr(Mr)}else Mr=Te.def(mt,".profile");var On=ce.block();ur(On),Te("if(",Mr,"){",On,"}");var xn=ce.block();xr(xn),Te.exit("if(",Mr,"){",xn,"}")}function es(ce,Te,Ve,Ut,Bt){var tt=ce.shared;function ft(De){switch(De){case Uc:case fp:case vf:return 2;case Wf:case so:case mf:return 3;case cp:case uc:case zc:return 4;default:return 1}}function mt(De,st,me){var lt=tt.gl,Qt=Te.def(De,".location"),ur=Te.def(tt.attributes,"[",Qt,"]"),xr=me.state,gr=me.buffer,Mr=[me.x,me.y,me.z,me.w],On=["buffer","normalized","offset","stride"];function xn(){Te("if(!",ur,".buffer){",lt,".enableVertexAttribArray(",Qt,");}");var $n=me.type,ii;if(me.size?ii=Te.def(me.size,"||",st):ii=st,Te("if(",ur,".type!==",$n,"||",ur,".size!==",ii,"||",On.map(function(Eo){return ur+"."+Eo+"!=="+me[Eo]}).join("||"),"){",lt,".bindBuffer(",Lc,",",gr,".buffer);",lt,".vertexAttribPointer(",[Qt,ii,$n,me.normalized,me.stride,me.offset],");",ur,".type=",$n,";",ur,".size=",ii,";",On.map(function(Eo){return ur+"."+Eo+"="+me[Eo]+";"}).join(""),"}"),Fr){var na=me.divisor;Te("if(",ur,".divisor!==",na,"){",ce.instancing,".vertexAttribDivisorANGLE(",[Qt,na],");",ur,".divisor=",na,";}")}}function Tn(){Te("if(",ur,".buffer){",lt,".disableVertexAttribArray(",Qt,");",ur,".buffer=null;","}if(",_r.map(function($n,ii){return ur+"."+$n+"!=="+Mr[ii]}).join("||"),"){",lt,".vertexAttrib4f(",Qt,",",Mr,");",_r.map(function($n,ii){return ur+"."+$n+"="+Mr[ii]+";"}).join(""),"}")}xr===kr?xn():xr===un?Tn():(Te("if(",xr,"===",kr,"){"),xn(),Te("}else{"),Tn(),Te("}"))}Ut.forEach(function(De){var st=De.name,me=Ve.attributes[st],lt;if(me){if(!Bt(me))return;lt=me.append(ce,Te)}else{if(!Bt($p))return;var Qt=ce.scopeAttrib(st);k.optional(function(){ce.assert(Te,Qt+".state","missing attribute "+st)}),lt={},Object.keys(new Tt).forEach(function(ur){lt[ur]=Te.def(Qt,".",ur)})}mt(ce.link(De),ft(De.info.type),lt)})}function ua(ce,Te,Ve,Ut,Bt){for(var tt=ce.shared,ft=tt.gl,mt,De=0;De1?Te(hi($n,function(dl){return gr+"["+dl+"]"})):Te(gr);Te(");")}}function Xn(ce,Te,Ve,Ut){var Bt=ce.shared,tt=Bt.gl,ft=Bt.draw,mt=Ut.draw;function De(){var ii=mt.elements,na,Eo=Te;return ii?((ii.contextDep&&Ut.contextDynamic||ii.propDep)&&(Eo=Ve),na=ii.append(ce,Eo)):na=Eo.def(ft,".",Zi),na&&Eo("if("+na+")"+tt+".bindBuffer("+Km+","+na+".buffer.buffer);"),na}function st(){var ii=mt.count,na,Eo=Te;return ii?((ii.contextDep&&Ut.contextDynamic||ii.propDep)&&(Eo=Ve),na=ii.append(ce,Eo),k.optional(function(){ii.MISSING&&ce.assert(Te,"false","missing vertex count"),ii.DYNAMIC&&ce.assert(Eo,na+">=0","missing vertex count")})):(na=Eo.def(ft,".",ao),k.optional(function(){ce.assert(Eo,na+">=0","missing vertex count")})),na}var me=De();function lt(ii){var na=mt[ii];return na?na.contextDep&&Ut.contextDynamic||na.propDep?na.append(ce,Ve):na.append(ce,Te):Te.def(ft,".",ii)}var Qt=lt(mo),ur=lt(ou),xr=st();if(typeof xr=="number"){if(xr===0)return}else Ve("if(",xr,"){"),Ve.exit("}");var gr,Mr;Fr&&(gr=lt(Bc),Mr=ce.instancing);var On=me+".type",xn=mt.elements&&hs(mt.elements);function Tn(){function ii(){Ve(Mr,".drawElementsInstancedANGLE(",[Qt,xr,On,ur+"<<(("+On+"-"+Nr+")>>1)",gr],");")}function na(){Ve(Mr,".drawArraysInstancedANGLE(",[Qt,ur,xr,gr],");")}me?xn?ii():(Ve("if(",me,"){"),ii(),Ve("}else{"),na(),Ve("}")):na()}function $n(){function ii(){Ve(tt+".drawElements("+[Qt,xr,On,ur+"<<(("+On+"-"+Nr+")>>1)"]+");")}function na(){Ve(tt+".drawArrays("+[Qt,ur,xr]+");")}me?xn?ii():(Ve("if(",me,"){"),ii(),Ve("}else{"),na(),Ve("}")):na()}Fr&&(typeof gr!="number"||gr>=0)?typeof gr=="string"?(Ve("if(",gr,">0){"),Tn(),Ve("}else if(",gr,"<0){"),$n(),Ve("}")):Tn():$n()}function Oi(ce,Te,Ve,Ut,Bt){var tt=ot(),ft=tt.proc("body",Bt);return k.optional(function(){tt.commandStr=Te.commandStr,tt.command=tt.link(Te.commandStr)}),Fr&&(tt.instancing=ft.def(tt.shared.extensions,".angle_instanced_arrays")),ce(tt,ft,Ve,Ut),tt.compile().body}function Xi(ce,Te,Ve,Ut){Io(ce,Te),Ve.useVAO?Ve.drawVAO?Te(ce.shared.vao,".setVAO(",Ve.drawVAO.append(ce,Te),");"):Te(ce.shared.vao,".setVAO(",ce.shared.vao,".targetVAO);"):(Te(ce.shared.vao,".setVAO(null);"),es(ce,Te,Ve,Ut.attributes,function(){return!0})),ua(ce,Te,Ve,Ut.uniforms,function(){return!0}),Xn(ce,Te,Te,Ve)}function bo(ce,Te){var Ve=ce.proc("draw",1);Io(ce,Ve),xo(ce,Ve,Te.context),Ja(ce,Ve,Te.framebuffer),Mo(ce,Ve,Te),ps(ce,Ve,Te.state),xi(ce,Ve,Te,!1,!0);var Ut=Te.shader.progVar.append(ce,Ve);if(Ve(ce.shared.gl,".useProgram(",Ut,".program);"),Te.shader.program)Xi(ce,Ve,Te,Te.shader.program);else{Ve(ce.shared.vao,".setVAO(null);");var Bt=ce.global.def("{}"),tt=Ve.def(Ut,".id"),ft=Ve.def(Bt,"[",tt,"]");Ve(ce.cond(ft).then(ft,".call(this,a0);").else(ft,"=",Bt,"[",tt,"]=",ce.link(function(mt){return Oi(Xi,ce,Te,mt,1)}),"(",Ut,");",ft,".call(this,a0);"))}Object.keys(Te.state).length>0&&Ve(ce.shared.current,".dirty=true;")}function Xu(ce,Te,Ve,Ut){ce.batchId="a1",Io(ce,Te);function Bt(){return!0}es(ce,Te,Ve,Ut.attributes,Bt),ua(ce,Te,Ve,Ut.uniforms,Bt),Xn(ce,Te,Te,Ve)}function Ne(ce,Te,Ve,Ut){Io(ce,Te);var Bt=Ve.contextDep,tt=Te.def(),ft="a0",mt="a1",De=Te.def();ce.shared.props=De,ce.batchId=tt;var st=ce.scope(),me=ce.scope();Te(st.entry,"for(",tt,"=0;",tt,"<",mt,";++",tt,"){",De,"=",ft,"[",tt,"];",me,"}",st.exit);function lt(On){return On.contextDep&&Bt||On.propDep}function Qt(On){return!lt(On)}if(Ve.needsContext&&xo(ce,me,Ve.context),Ve.needsFramebuffer&&Ja(ce,me,Ve.framebuffer),ps(ce,me,Ve.state,lt),Ve.profile&<(Ve.profile)&&xi(ce,me,Ve,!1,!0),Ut)Ve.useVAO?Ve.drawVAO?lt(Ve.drawVAO)?me(ce.shared.vao,".setVAO(",Ve.drawVAO.append(ce,me),");"):st(ce.shared.vao,".setVAO(",Ve.drawVAO.append(ce,st),");"):st(ce.shared.vao,".setVAO(",ce.shared.vao,".targetVAO);"):(st(ce.shared.vao,".setVAO(null);"),es(ce,st,Ve,Ut.attributes,Qt),es(ce,me,Ve,Ut.attributes,lt)),ua(ce,st,Ve,Ut.uniforms,Qt),ua(ce,me,Ve,Ut.uniforms,lt),Xn(ce,st,me,Ve);else{var ur=ce.global.def("{}"),xr=Ve.shader.progVar.append(ce,me),gr=me.def(xr,".id"),Mr=me.def(ur,"[",gr,"]");me(ce.shared.gl,".useProgram(",xr,".program);","if(!",Mr,"){",Mr,"=",ur,"[",gr,"]=",ce.link(function(On){return Oi(Xu,ce,Ve,On,2)}),"(",xr,");}",Mr,".call(this,a0[",tt,"],",tt,");")}}function $t(ce,Te){var Ve=ce.proc("batch",2);ce.batchId="0",Io(ce,Ve);var Ut=!1,Bt=!0;Object.keys(Te.context).forEach(function(ur){Ut=Ut||Te.context[ur].propDep}),Ut||(xo(ce,Ve,Te.context),Bt=!1);var tt=Te.framebuffer,ft=!1;tt?(tt.propDep?Ut=ft=!0:tt.contextDep&&Ut&&(ft=!0),ft||Ja(ce,Ve,tt)):Ja(ce,Ve,null),Te.state.viewport&&Te.state.viewport.propDep&&(Ut=!0);function mt(ur){return ur.contextDep&&Ut||ur.propDep}Mo(ce,Ve,Te),ps(ce,Ve,Te.state,function(ur){return!mt(ur)}),(!Te.profile||!mt(Te.profile))&&xi(ce,Ve,Te,!1,"a1"),Te.contextDep=Ut,Te.needsContext=Bt,Te.needsFramebuffer=ft;var De=Te.shader.progVar;if(De.contextDep&&Ut||De.propDep)Ne(ce,Ve,Te,null);else{var st=De.append(ce,Ve);if(Ve(ce.shared.gl,".useProgram(",st,".program);"),Te.shader.program)Ne(ce,Ve,Te,Te.shader.program);else{Ve(ce.shared.vao,".setVAO(null);");var me=ce.global.def("{}"),lt=Ve.def(st,".id"),Qt=Ve.def(me,"[",lt,"]");Ve(ce.cond(Qt).then(Qt,".call(this,a0,a1);").else(Qt,"=",me,"[",lt,"]=",ce.link(function(ur){return Oi(Ne,ce,Te,ur,2)}),"(",st,");",Qt,".call(this,a0,a1);"))}}Object.keys(Te.state).length>0&&Ve(ce.shared.current,".dirty=true;")}function Nt(ce,Te){var Ve=ce.proc("scope",3);ce.batchId="a2";var Ut=ce.shared,Bt=Ut.current;xo(ce,Ve,Te.context),Te.framebuffer&&Te.framebuffer.append(ce,Ve),vp(Object.keys(Te.state)).forEach(function(ft){var mt=Te.state[ft],De=mt.append(ce,Ve);Ha(De)?De.forEach(function(st,me){Ve.set(ce.next[ft],"["+me+"]",st)}):Ve.set(Ut.next,"."+ft,De)}),xi(ce,Ve,Te,!0,!0),[Zi,ou,ao,Bc,mo].forEach(function(ft){var mt=Te.draw[ft];mt&&Ve.set(Ut.draw,"."+ft,""+mt.append(ce,Ve))}),Object.keys(Te.uniforms).forEach(function(ft){Ve.set(Ut.uniforms,"["+Ae.id(ft)+"]",Te.uniforms[ft].append(ce,Ve))}),Object.keys(Te.attributes).forEach(function(ft){var mt=Te.attributes[ft].append(ce,Ve),De=ce.scopeAttrib(ft);Object.keys(new Tt).forEach(function(st){Ve.set(De,"."+st,mt[st])})}),Te.scopeVAO&&Ve.set(Ut.vao,".targetVAO",Te.scopeVAO.append(ce,Ve));function tt(ft){var mt=Te.shader[ft];mt&&Ve.set(Ut.shader,"."+ft,mt.append(ce,Ve))}tt(au),tt(Hu),Object.keys(Te.state).length>0&&(Ve(Bt,".dirty=true;"),Ve.exit(Bt,".dirty=true;")),Ve("a1(",ce.shared.context,",a0,",ce.batchId,");")}function hn(ce){if(!(typeof ce!="object"||Ha(ce))){for(var Te=Object.keys(ce),Ve=0;Ve=0;--Xn){var Oi=vr[Xn];Oi&&Oi(Ar,null,0)}je.flush(),Vr&&Vr.update()}function Qn(){!yi&&vr.length>0&&(yi=Zr.next(si))}function Vi(){yi&&(Zr.cancel(si),yi=null)}function _o(Xn){Xn.preventDefault(),pr=!0,Vi(),ot.forEach(function(Oi){Oi()})}function Wo(Xn){je.getError(),pr=!1,Gt.restore(),Pr.restore(),Fr.restore(),nn.restore(),br.restore(),$r.restore(),rn.restore(),Vr&&Vr.restore(),Nn.procs.refresh(),Qn(),Ci.forEach(function(Oi){Oi()})}yt&&(yt.addEventListener(qp,_o,!1),yt.addEventListener(Ud,Wo,!1));function Pi(){vr.length=0,Vi(),yt&&(yt.removeEventListener(qp,_o),yt.removeEventListener(Ud,Wo)),Pr.clear(),$r.clear(),br.clear(),nn.clear(),an.clear(),Fr.clear(),rn.clear(),Vr&&Vr.clear(),ln.forEach(function(Xn){Xn()})}function fo(Xn){k(!!Xn,"invalid args to regl({...})"),k.type(Xn,"object","invalid args to regl({...})");function Oi(Bt){var tt=L({},Bt);delete tt.uniforms,delete tt.attributes,delete tt.context,delete tt.vao,"stencil"in tt&&tt.stencil.op&&(tt.stencil.opBack=tt.stencil.opFront=tt.stencil.op,delete tt.stencil.op);function ft(mt){if(mt in tt){var De=tt[mt];delete tt[mt],Object.keys(De).forEach(function(st){tt[mt+"."+st]=De[st]})}}return ft("blend"),ft("depth"),ft("cull"),ft("stencil"),ft("polygonOffset"),ft("scissor"),ft("sample"),"vao"in Bt&&(tt.vao=Bt.vao),tt}function Xi(Bt){var tt={},ft={};return Object.keys(Bt).forEach(function(mt){var De=Bt[mt];mr.isDynamic(De)?ft[mt]=mr.unbox(De,mt):tt[mt]=De}),{dynamic:ft,static:tt}}var bo=Xi(Xn.context||{}),Xu=Xi(Xn.uniforms||{}),Ne=Xi(Xn.attributes||{}),$t=Xi(Oi(Xn)),Nt={gpuTime:0,cpuTime:0,count:0},hn=Nn.compile($t,Ne,Xu,bo,Nt),bi=hn.draw,da=hn.batch,ce=hn.scope,Te=[];function Ve(Bt){for(;Te.length0)return da.call(this,Ve(Bt|0),Bt|0)}else if(Array.isArray(Bt)){if(Bt.length)return da.call(this,Bt,Bt.length)}else return bi.call(this,Bt)}return L(Ut,{stats:Nt})}var Sa=$r.setFBO=fo({framebuffer:mr.define.call(null,Kp,"framebuffer")});function yo(Xn,Oi){var Xi=0;Nn.procs.poll();var bo=Oi.color;bo&&(je.clearColor(+bo[0]||0,+bo[1]||0,+bo[2]||0,+bo[3]||0),Xi|=Dh),"depth"in Oi&&(je.clearDepth(+Oi.depth),Xi|=Jo),"stencil"in Oi&&(je.clearStencil(Oi.stencil|0),Xi|=Uv),k(!!Xi,"called regl.clear with no buffer specified"),je.clear(Xi)}function xo(Xn){if(k(typeof Xn=="object"&&Xn,"regl.clear() takes an object as input"),"framebuffer"in Xn)if(Xn.framebuffer&&Xn.framebuffer_reglType==="framebufferCube")for(var Oi=0;Oi<6;++Oi)Sa(L({framebuffer:Xn.framebuffer.faces[Oi]},Xn),yo);else Sa(Xn,yo);else yo(null,Xn)}function Ja(Xn){k.type(Xn,"function","regl.frame() callback must be a function"),vr.push(Xn);function Oi(){var Xi=zd(vr,Xn);k(Xi>=0,"cannot cancel a frame twice");function bo(){var Xu=zd(vr,bo);vr[Xu]=vr[vr.length-1],vr.length-=1,vr.length<=0&&Vi()}vr[Xi]=bo}return Qn(),{cancel:Oi}}function Mo(){var Xn=Qr.viewport,Oi=Qr.scissor_box;Xn[0]=Xn[1]=Oi[0]=Oi[1]=0,Ar.viewportWidth=Ar.framebufferWidth=Ar.drawingBufferWidth=Xn[2]=Oi[2]=je.drawingBufferWidth,Ar.viewportHeight=Ar.framebufferHeight=Ar.drawingBufferHeight=Xn[3]=Oi[3]=je.drawingBufferHeight}function ps(){Ar.tick+=1,Ar.time=xi(),Mo(),Nn.procs.poll()}function Io(){Mo(),Nn.procs.refresh(),Vr&&Vr.update()}function xi(){return(Fn()-Br)/1e3}Io();function es(Xn,Oi){k.type(Oi,"function","listener callback must be a function");var Xi;switch(Xn){case"frame":return Ja(Oi);case"lost":Xi=ot;break;case"restore":Xi=Ci;break;case"destroy":Xi=ln;break;default:k.raise("invalid event, must be one of frame,lost,restore,destroy")}return Xi.push(Oi),{cancel:function(){for(var bo=0;bo=0},read:ui,destroy:Pi,_gl:je,_refresh:Io,poll:function(){ps(),Vr&&Vr.update()},now:xi,stats:Dr});return Ae.onDone(null,ua),ua}return Zd})},39720:function(rr){(function(ee,L){rr.exports=L()})(this,function(){"use strict";function ee(At,ut,It,qe,Ct,fr){if(!(Ct-qe<=It)){var re=qe+Ct>>1;L(At,ut,re,qe,Ct,fr%2),ee(At,ut,It,qe,re-1,fr+1),ee(At,ut,It,re+1,Ct,fr+1)}}function L(At,ut,It,qe,Ct,fr){for(;Ct>qe;){if(Ct-qe>600){var re=Ct-qe+1,V=It-qe+1,K=Math.log(re),Me=.5*Math.exp(2*K/3),Se=.5*Math.sqrt(K*Me*(re-Me)/re)*(V-re/2<0?-1:1),nt=Math.max(qe,Math.floor(It-V*Me/re+Se)),te=Math.min(Ct,Math.floor(It+(re-V)*Me/re+Se));L(At,ut,It,nt,te,fr)}var Ce=ut[2*It+fr],we=qe,Xe=Ct;for(q(At,ut,qe,It),ut[2*Ct+fr]>Ce&&q(At,ut,qe,Ct);weCe;)Xe--}ut[2*qe+fr]===Ce?q(At,ut,qe,Xe):(Xe++,q(At,ut,Xe,Ct)),Xe<=It&&(qe=Xe+1),It<=Xe&&(Ct=Xe-1)}}function q(At,ut,It,qe){he(At,It,qe),he(ut,2*It,2*qe),he(ut,2*It+1,2*qe+1)}function he(At,ut,It){var qe=At[ut];At[ut]=At[It],At[It]=qe}function _(At,ut,It,qe,Ct,fr,re){for(var V=[0,At.length-1,0],K=[],Me,Se;V.length;){var nt=V.pop(),te=V.pop(),Ce=V.pop();if(te-Ce<=re){for(var we=Ce;we<=te;we++)Me=ut[2*we],Se=ut[2*we+1],Me>=It&&Me<=Ct&&Se>=qe&&Se<=fr&&K.push(At[we]);continue}var Xe=Math.floor((Ce+te)/2);Me=ut[2*Xe],Se=ut[2*Xe+1],Me>=It&&Me<=Ct&&Se>=qe&&Se<=fr&&K.push(At[Xe]);var Lt=(nt+1)%2;(nt===0?It<=Me:qe<=Se)&&(V.push(Ce),V.push(Xe-1),V.push(Lt)),(nt===0?Ct>=Me:fr>=Se)&&(V.push(Xe+1),V.push(te),V.push(Lt))}return K}function le(At,ut,It,qe,Ct,fr){for(var re=[0,At.length-1,0],V=[],K=Ct*Ct;re.length;){var Me=re.pop(),Se=re.pop(),nt=re.pop();if(Se-nt<=fr){for(var te=nt;te<=Se;te++)U(ut[2*te],ut[2*te+1],It,qe)<=K&&V.push(At[te]);continue}var Ce=Math.floor((nt+Se)/2),we=ut[2*Ce],Xe=ut[2*Ce+1];U(we,Xe,It,qe)<=K&&V.push(At[Ce]);var Lt=(Me+1)%2;(Me===0?It-Ct<=we:qe-Ct<=Xe)&&(re.push(nt),re.push(Ce-1),re.push(Lt)),(Me===0?It+Ct>=we:qe+Ct>=Xe)&&(re.push(Ce+1),re.push(Se),re.push(Lt))}return V}function U(At,ut,It,qe){var Ct=At-It,fr=ut-qe;return Ct*Ct+fr*fr}var fe=function(At){return At[0]},se=function(At){return At[1]},Qe=function(ut,It,qe,Ct,fr){It===void 0&&(It=fe),qe===void 0&&(qe=se),Ct===void 0&&(Ct=64),fr===void 0&&(fr=Float64Array),this.nodeSize=Ct,this.points=ut;for(var re=ut.length<65536?Uint16Array:Uint32Array,V=this.ids=new re(ut.length),K=this.coords=new fr(ut.length*2),Me=0;Me=Ct;Se--){var nt=+Date.now();K=this._cluster(K,Se),this.trees[Se]=new Qe(K,hr,lr,re,Float32Array),qe&&console.log("z%d: %d clusters in %dms",Se,K.length,+Date.now()-nt)}return qe&&console.timeEnd("total time"),this},dt.prototype.getClusters=function(ut,It){var qe=((ut[0]+180)%360+360)%360-180,Ct=Math.max(-90,Math.min(90,ut[1])),fr=ut[2]===180?180:((ut[2]+180)%360+360)%360-180,re=Math.max(-90,Math.min(90,ut[3]));if(ut[2]-ut[0]>=360)qe=-180,fr=180;else if(qe>fr){var V=this.getClusters([qe,Ct,180,re],It),K=this.getClusters([-180,Ct,fr,re],It);return V.concat(K)}for(var Me=this.trees[this._limitZoom(It)],Se=Me.range(nr(qe),Vt(re),nr(fr),Vt(Ct)),nt=[],te=0,Ce=Se;teIt&&(Xe+=Jr.numPoints||1)}if(Xe>we&&Xe>=K){for(var Hr=nt.x*we,Un=nt.y*we,bn=V&&we>1?this._map(nt,!0):null,Kr=(Se<<5)+(It+1)+this.points.length,Mi=0,Si=Ce;Mi1)for(var Ya=0,Yi=Ce;Ya>5},dt.prototype._getOriginZoom=function(ut){return(ut-this.points.length)%32},dt.prototype._map=function(ut,It){if(ut.numPoints)return It?Tr({},ut.properties):ut.properties;var qe=this.points[ut.index].properties,Ct=this.options.map(qe);return It&&Ct===qe?Tr({},Ct):Ct};function Ye(At,ut,It,qe,Ct){return{x:et(At),y:et(ut),zoom:1/0,id:It,parentId:-1,numPoints:qe,properties:Ct}}function wt(At,ut){var It=At.geometry.coordinates,qe=It[0],Ct=It[1];return{x:et(nr(qe)),y:et(Vt(Ct)),zoom:1/0,index:ut,parentId:-1}}function Xt(At){return{type:"Feature",id:At.id,properties:Zt(At),geometry:{type:"Point",coordinates:[xt(At.x),bt(At.y)]}}}function Zt(At){var ut=At.numPoints,It=ut>=1e4?Math.round(ut/1e3)+"k":ut>=1e3?Math.round(ut/100)/10+"k":ut;return Tr(Tr({},At.properties),{cluster:!0,cluster_id:At.id,point_count:ut,point_count_abbreviated:It})}function nr(At){return At/360+.5}function Vt(At){var ut=Math.sin(At*Math.PI/180),It=.5-.25*Math.log((1+ut)/(1-ut))/Math.PI;return It<0?0:It>1?1:It}function xt(At){return(At-.5)*360}function bt(At){var ut=(180-At*360)*Math.PI/180;return 360*Math.atan(Math.exp(ut))/Math.PI-90}function Tr(At,ut){for(var It in ut)At[It]=ut[It];return At}function hr(At){return At.x}function lr(At){return At.y}return dt})},58576:function(rr,ee,L){var q=L(85057).default;function he(){"use strict";rr.exports=he=function(){return le},rr.exports.__esModule=!0,rr.exports.default=rr.exports;var _,le={},U=Object.prototype,fe=U.hasOwnProperty,se=Object.defineProperty||function(te,Ce,we){te[Ce]=we.value},Qe=typeof Symbol=="function"?Symbol:{},ae=Qe.iterator||"@@iterator",et=Qe.asyncIterator||"@@asyncIterator",dt=Qe.toStringTag||"@@toStringTag";function Ye(te,Ce,we){return Object.defineProperty(te,Ce,{value:we,enumerable:!0,configurable:!0,writable:!0}),te[Ce]}try{Ye({},"")}catch(te){Ye=function(we,Xe,Lt){return we[Xe]=Lt}}function wt(te,Ce,we,Xe){var Lt=Ce&&Ce.prototype instanceof Tr?Ce:Tr,Ht=Object.create(Lt.prototype),on=new Se(Xe||[]);return se(Ht,"_invoke",{value:re(te,we,on)}),Ht}function Xt(te,Ce,we){try{return{type:"normal",arg:te.call(Ce,we)}}catch(Xe){return{type:"throw",arg:Xe}}}le.wrap=wt;var Zt="suspendedStart",nr="suspendedYield",Vt="executing",xt="completed",bt={};function Tr(){}function hr(){}function lr(){}var At={};Ye(At,ae,function(){return this});var ut=Object.getPrototypeOf,It=ut&&ut(ut(nt([])));It&&It!==U&&fe.call(It,ae)&&(At=It);var qe=lr.prototype=Tr.prototype=Object.create(At);function Ct(te){["next","throw","return"].forEach(function(Ce){Ye(te,Ce,function(we){return this._invoke(Ce,we)})})}function fr(te,Ce){function we(Lt,Ht,on,Jr){var Hr=Xt(te[Lt],te,Ht);if(Hr.type!=="throw"){var Un=Hr.arg,bn=Un.value;return bn&&q(bn)=="object"&&fe.call(bn,"__await")?Ce.resolve(bn.__await).then(function(Kr){we("next",Kr,on,Jr)},function(Kr){we("throw",Kr,on,Jr)}):Ce.resolve(bn).then(function(Kr){Un.value=Kr,on(Un)},function(Kr){return we("throw",Kr,on,Jr)})}Jr(Hr.arg)}var Xe;se(this,"_invoke",{value:function(Ht,on){function Jr(){return new Ce(function(Hr,Un){we(Ht,on,Hr,Un)})}return Xe=Xe?Xe.then(Jr,Jr):Jr()}})}function re(te,Ce,we){var Xe=Zt;return function(Lt,Ht){if(Xe===Vt)throw new Error("Generator is already running");if(Xe===xt){if(Lt==="throw")throw Ht;return{value:_,done:!0}}for(we.method=Lt,we.arg=Ht;;){var on=we.delegate;if(on){var Jr=V(on,we);if(Jr){if(Jr===bt)continue;return Jr}}if(we.method==="next")we.sent=we._sent=we.arg;else if(we.method==="throw"){if(Xe===Zt)throw Xe=xt,we.arg;we.dispatchException(we.arg)}else we.method==="return"&&we.abrupt("return",we.arg);Xe=Vt;var Hr=Xt(te,Ce,we);if(Hr.type==="normal"){if(Xe=we.done?xt:nr,Hr.arg===bt)continue;return{value:Hr.arg,done:we.done}}Hr.type==="throw"&&(Xe=xt,we.method="throw",we.arg=Hr.arg)}}}function V(te,Ce){var we=Ce.method,Xe=te.iterator[we];if(Xe===_)return Ce.delegate=null,we==="throw"&&te.iterator.return&&(Ce.method="return",Ce.arg=_,V(te,Ce),Ce.method==="throw")||we!=="return"&&(Ce.method="throw",Ce.arg=new TypeError("The iterator does not provide a '"+we+"' method")),bt;var Lt=Xt(Xe,te.iterator,Ce.arg);if(Lt.type==="throw")return Ce.method="throw",Ce.arg=Lt.arg,Ce.delegate=null,bt;var Ht=Lt.arg;return Ht?Ht.done?(Ce[te.resultName]=Ht.value,Ce.next=te.nextLoc,Ce.method!=="return"&&(Ce.method="next",Ce.arg=_),Ce.delegate=null,bt):Ht:(Ce.method="throw",Ce.arg=new TypeError("iterator result is not an object"),Ce.delegate=null,bt)}function K(te){var Ce={tryLoc:te[0]};1 in te&&(Ce.catchLoc=te[1]),2 in te&&(Ce.finallyLoc=te[2],Ce.afterLoc=te[3]),this.tryEntries.push(Ce)}function Me(te){var Ce=te.completion||{};Ce.type="normal",delete Ce.arg,te.completion=Ce}function Se(te){this.tryEntries=[{tryLoc:"root"}],te.forEach(K,this),this.reset(!0)}function nt(te){if(te||te===""){var Ce=te[ae];if(Ce)return Ce.call(te);if(typeof te.next=="function")return te;if(!isNaN(te.length)){var we=-1,Xe=function Lt(){for(;++we=0;--Lt){var Ht=this.tryEntries[Lt],on=Ht.completion;if(Ht.tryLoc==="root")return Xe("end");if(Ht.tryLoc<=this.prev){var Jr=fe.call(Ht,"catchLoc"),Hr=fe.call(Ht,"finallyLoc");if(Jr&&Hr){if(this.prev=0;--Xe){var Lt=this.tryEntries[Xe];if(Lt.tryLoc<=this.prev&&fe.call(Lt,"finallyLoc")&&this.prev=0;--we){var Xe=this.tryEntries[we];if(Xe.finallyLoc===Ce)return this.complete(Xe.completion,Xe.afterLoc),Me(Xe),bt}},catch:function(Ce){for(var we=this.tryEntries.length-1;we>=0;--we){var Xe=this.tryEntries[we];if(Xe.tryLoc===Ce){var Lt=Xe.completion;if(Lt.type==="throw"){var Ht=Lt.arg;Me(Xe)}return Ht}}throw new Error("illegal catch attempt")},delegateYield:function(Ce,we,Xe){return this.delegate={iterator:nt(Ce),resultName:we,nextLoc:Xe},this.method==="next"&&(this.arg=_),bt}},le}rr.exports=he,rr.exports.__esModule=!0,rr.exports.default=rr.exports},85057:function(rr){function ee(L){"@babel/helpers - typeof";return rr.exports=ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},rr.exports.__esModule=!0,rr.exports.default=rr.exports,ee(L)}rr.exports=ee,rr.exports.__esModule=!0,rr.exports.default=rr.exports},29972:function(rr,ee,L){var q=L(58576)();rr.exports=q;try{regeneratorRuntime=q}catch(he){typeof globalThis=="object"?globalThis.regeneratorRuntime=q:Function("r","regeneratorRuntime = r")(q)}}}]); }()); \ No newline at end of file diff --git a/3960.7f543261.async.js b/3960.7f543261.async.js new file mode 100644 index 00000000..0c014d31 --- /dev/null +++ b/3960.7f543261.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3960],{92933:function(H,E){var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};E.Z=n},37123:function(H,E,n){var i=n(93264),v=n(98787),$=n(79685),C=n(81468),x=n(63342),F=["fieldProps","min","proFieldProps","max"],W=function(c,I){var l=c.fieldProps,m=c.min,O=c.proFieldProps,g=c.max,p=(0,v.Z)(c,F);return(0,x.jsx)(C.Z,(0,i.Z)({valueType:"digit",fieldProps:(0,i.Z)({min:m,max:g},l),ref:I,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:O},p))},z=$.forwardRef(W);E.Z=z},5754:function(H,E,n){var i=n(93264),v=n(98787),$=n(92879),C=n(79685),x=n(77204),F=n(81468),W=n(63342),z=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],L=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],c=function(p,_){var Z=p.fieldProps,d=p.children,s=p.params,y=p.proFieldProps,h=p.mode,M=p.valueEnum,T=p.request,D=p.showSearch,b=p.options,j=(0,v.Z)(p,z),A=(0,C.useContext)(x.Z);return(0,W.jsx)(F.Z,(0,i.Z)((0,i.Z)({valueEnum:(0,$.h)(M),request:T,params:s,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,i.Z)({options:b,mode:h,showSearch:D,getPopupContainer:A.getPopupContainer},Z),ref:_,proFieldProps:y},j),{},{children:d}))},I=C.forwardRef(function(g,p){var _=g.fieldProps,Z=g.children,d=g.params,s=g.proFieldProps,y=g.mode,h=g.valueEnum,M=g.request,T=g.options,D=(0,v.Z)(g,L),b=(0,i.Z)({options:T,mode:y||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},_),j=(0,C.useContext)(x.Z);return(0,W.jsx)(F.Z,(0,i.Z)((0,i.Z)({valueEnum:(0,$.h)(h),request:M,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,i.Z)({getPopupContainer:j.getPopupContainer},b),ref:p,proFieldProps:s},D),{},{children:Z}))}),l=C.forwardRef(c),m=I,O=l;O.SearchSelect=m,O.displayName="ProFormComponent",E.Z=O},30869:function(H,E,n){var i=n(89342),v=n(93264),$=n(98787),C=n(46501),x=n(73952),F=n(8262),W=n(12869),z=n(79685),L=n(81468),c=n(63342),I=["fieldProps","proFieldProps"],l=["fieldProps","proFieldProps"],m="text",O=function(d){var s=d.fieldProps,y=d.proFieldProps,h=(0,$.Z)(d,I);return(0,c.jsx)(L.Z,(0,v.Z)({valueType:m,fieldProps:s,filedConfig:{valueType:m},proFieldProps:y},h))},g=function(d){var s=(0,C.Z)(d.open||!1,{value:d.open,onChange:d.onOpenChange}),y=(0,i.Z)(s,2),h=y[0],M=y[1];return(0,c.jsx)(x.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(D){var b,j=D.getFieldValue(d.name||[]);return(0,c.jsx)(F.Z,(0,v.Z)((0,v.Z)({getPopupContainer:function(P){return P&&P.parentNode?P.parentNode:P},onOpenChange:M,content:(0,c.jsxs)("div",{style:{padding:"4px 0"},children:[(b=d.statusRender)===null||b===void 0?void 0:b.call(d,j),d.strengthText?(0,c.jsx)("div",{style:{marginTop:10},children:(0,c.jsx)("span",{children:d.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},d.popoverProps),{},{open:h,children:d.children}))}})},p=function(d){var s=d.fieldProps,y=d.proFieldProps,h=(0,$.Z)(d,l),M=(0,z.useState)(!1),T=(0,i.Z)(M,2),D=T[0],b=T[1];return s!=null&&s.statusRender&&h.name?(0,c.jsx)(g,{name:h.name,statusRender:s==null?void 0:s.statusRender,popoverProps:s==null?void 0:s.popoverProps,strengthText:s==null?void 0:s.strengthText,open:D,onOpenChange:b,children:(0,c.jsx)(L.Z,(0,v.Z)({valueType:"password",fieldProps:(0,v.Z)((0,v.Z)({},(0,W.Z)(s,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(A){var P;s==null||(P=s.onBlur)===null||P===void 0||P.call(s,A),b(!1)},onClick:function(A){var P;s==null||(P=s.onClick)===null||P===void 0||P.call(s,A),b(!0)}}),proFieldProps:y,filedConfig:{valueType:m}},h))}):(0,c.jsx)(L.Z,(0,v.Z)({valueType:"password",fieldProps:s,proFieldProps:y,filedConfig:{valueType:m}},h))},_=O;_.Password=p,_.displayName="ProFormComponent",E.Z=_},18283:function(H,E,n){n.d(E,{Z:function(){return se}});var i=n(79685),v=n(68591),$=n.n(v),C=n(3139),x=n(99248),F=n(73064),W=n(57196),z=n(55095),L=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{var{prefixCls:o,className:r,hoverable:t=!0}=e,a=L(e,["prefixCls","className","hoverable"]);const{getPrefixCls:f}=i.useContext(x.E_),S=f("card",o),K=$()(`${S}-grid`,r,{[`${S}-grid-hoverable`]:t});return i.createElement("div",Object.assign({},a,{className:K}))},l=n(26477),m=n(4614),O=n(44244),g=n(25830);const p=e=>{const{antCls:o,componentCls:r,headerHeight:t,cardPaddingBase:a,tabsMarginBottom:f}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:t,marginBottom:-1,padding:`0 ${(0,l.bf)(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`},(0,m.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},m.vS),{[` + > ${r}-typography, + > ${r}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${o}-tabs-top`]:{clear:"both",marginBottom:f,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},_=e=>{const{cardPaddingBase:o,colorBorderSecondary:r,cardShadow:t,lineWidth:a}=e;return{width:"33.33%",padding:o,border:0,borderRadius:0,boxShadow:` + ${(0,l.bf)(a)} 0 0 0 ${r}, + 0 ${(0,l.bf)(a)} 0 0 ${r}, + ${(0,l.bf)(a)} ${(0,l.bf)(a)} 0 0 ${r}, + ${(0,l.bf)(a)} 0 0 0 ${r} inset, + 0 ${(0,l.bf)(a)} 0 0 ${r} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:t}}},Z=e=>{const{componentCls:o,iconCls:r,actionsLiMargin:t,cardActionsIconSize:a,colorBorderSecondary:f,actionsBg:S}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:S,borderTop:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${f}`,display:"flex",borderRadius:`0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,m.dF)()),{"& > li":{margin:t,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${o}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,l.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:(0,l.bf)(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${f}`}}})},d=e=>Object.assign(Object.assign({margin:`${(0,l.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,m.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},m.vS),"&-description":{color:e.colorTextDescription}}),s=e=>{const{componentCls:o,cardPaddingBase:r,colorFillAlter:t}=e;return{[`${o}-head`]:{padding:`0 ${(0,l.bf)(r)}`,background:t,"&-title":{fontSize:e.fontSize}},[`${o}-body`]:{padding:`${(0,l.bf)(e.padding)} ${(0,l.bf)(r)}`}}},y=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},h=e=>{const{antCls:o,componentCls:r,cardShadow:t,cardHeadPadding:a,colorBorderSecondary:f,boxShadowTertiary:S,cardPaddingBase:K,extraColor:B}=e;return{[r]:Object.assign(Object.assign({},(0,m.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${r}-bordered)`]:{boxShadow:S},[`${r}-head`]:p(e),[`${r}-extra`]:{marginInlineStart:"auto",color:B,fontWeight:"normal",fontSize:e.fontSize},[`${r}-body`]:Object.assign({padding:K,borderRadius:` 0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,m.dF)()),[`${r}-grid`]:_(e),[`${r}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${o}-image-mask`]:{borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`}},[`${r}-actions`]:Z(e),[`${r}-meta`]:d(e)}),[`${r}-bordered`]:{border:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${f}`,[`${r}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${r}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:t}},[`${r}-contain-grid`]:{borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0 `,[`${r}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${r}-loading) ${r}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${r}-contain-tabs`]:{[`> ${r}-head`]:{minHeight:0,[`${r}-head-title, ${r}-extra`]:{paddingTop:a}}},[`${r}-type-inner`]:s(e),[`${r}-loading`]:y(e),[`${r}-rtl`]:{direction:"rtl"}}},M=e=>{const{componentCls:o,cardPaddingSM:r,headerHeightSM:t,headerFontSizeSM:a}=e;return{[`${o}-small`]:{[`> ${o}-head`]:{minHeight:t,padding:`0 ${(0,l.bf)(r)}`,fontSize:a,[`> ${o}-head-wrapper`]:{[`> ${o}-extra`]:{fontSize:e.fontSize}}},[`> ${o}-body`]:{padding:r}},[`${o}-small${o}-contain-tabs`]:{[`> ${o}-head`]:{[`${o}-head-title, ${o}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},T=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var D=(0,O.I$)("Card",e=>{const o=(0,g.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[h(o),M(o)]},T),b=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{const{prefixCls:o,actions:r=[]}=e;return i.createElement("ul",{className:`${o}-actions`},r.map((t,a)=>{const f=`action-${a}`;return i.createElement("li",{style:{width:`${100/r.length}%`},key:f},i.createElement("span",null,t))}))};var P=i.forwardRef((e,o)=>{const{prefixCls:r,className:t,rootClassName:a,style:f,extra:S,headStyle:K={},bodyStyle:B={},title:G,loading:V,bordered:X=!0,size:J,type:Q,cover:re,actions:ee,tabList:Y,children:q,activeTabKey:te,defaultActiveTabKey:de,tabBarExtraContent:ce,hoverable:pe,tabProps:ue={}}=e,me=b(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:ge,direction:fe,card:w}=i.useContext(x.E_),ve=N=>{var R;(R=e.onTabChange)===null||R===void 0||R.call(e,N)},he=i.useMemo(()=>{let N=!1;return i.Children.forEach(q,R=>{R&&R.type&&R.type===I&&(N=!0)}),N},[q]),u=ge("card",r),[be,Pe]=D(u),ye=i.createElement(W.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},q),ae=te!==void 0,Se=Object.assign(Object.assign({},ue),{[ae?"activeKey":"defaultActiveKey"]:ae?te:de,tabBarExtraContent:ce});let oe;const U=(0,F.Z)(J),$e=!U||U==="default"?"large":U,ne=Y?i.createElement(z.Z,Object.assign({size:$e},Se,{className:`${u}-head-tabs`,onChange:ve,items:Y.map(N=>{var{tab:R}=N,Te=b(N,["tab"]);return Object.assign({label:R},Te)})})):null;(G||S||ne)&&(oe=i.createElement("div",{className:`${u}-head`,style:K},i.createElement("div",{className:`${u}-head-wrapper`},G&&i.createElement("div",{className:`${u}-head-title`},G),S&&i.createElement("div",{className:`${u}-extra`},S)),ne));const Ce=re?i.createElement("div",{className:`${u}-cover`},re):null,xe=i.createElement("div",{className:`${u}-body`,style:B},V?ye:q),Ee=ee&&ee.length?i.createElement(j,{prefixCls:u,actions:ee}):null,Oe=(0,C.Z)(me,["onTabChange"]),_e=$()(u,w==null?void 0:w.className,{[`${u}-loading`]:V,[`${u}-bordered`]:X,[`${u}-hoverable`]:pe,[`${u}-contain-grid`]:he,[`${u}-contain-tabs`]:Y&&Y.length,[`${u}-${U}`]:U,[`${u}-type-${Q}`]:!!Q,[`${u}-rtl`]:fe==="rtl"},t,a,Pe),Me=Object.assign(Object.assign({},w==null?void 0:w.style),f);return be(i.createElement("div",Object.assign({ref:o},Oe,{className:_e,style:Me}),oe,Ce,xe,Ee))}),ie=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(e);a{const{prefixCls:o,className:r,avatar:t,title:a,description:f}=e,S=ie(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:K}=i.useContext(x.E_),B=K("card",o),G=$()(`${B}-meta`,r),V=t?i.createElement("div",{className:`${B}-meta-avatar`},t):null,X=a?i.createElement("div",{className:`${B}-meta-title`},a):null,J=f?i.createElement("div",{className:`${B}-meta-description`},f):null,Q=X||J?i.createElement("div",{className:`${B}-meta-detail`},X,J):null;return i.createElement("div",Object.assign({},S,{className:G}),V,Q)};const k=P;k.Grid=I,k.Meta=le;var se=k}}]); diff --git a/404.html b/404.html index 78b7323a..fc0da4dd 100644 --- a/404.html +++ b/404.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/4154.d5769604.async.js b/4154.d5769604.async.js new file mode 100644 index 00000000..28cd3cfc --- /dev/null +++ b/4154.d5769604.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4154],{94154:function(_,u,r){r.d(u,{ZP:function(){return X}});var e=r(79685),f=r(40139),L=r(96032),v=r(83975),B=r(21137),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},g=C,D=r(83317),W=function(l,a){return e.createElement(D.Z,(0,B.Z)({},l,{ref:a,icon:g}))},A=e.forwardRef(W),j=r(68591),F=r.n(j),z=r(99248),$=()=>e.createElement("svg",{width:"252",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .012)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),e.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),e.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),e.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),e.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),e.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),e.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),e.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),e.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),e.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),e.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),e.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),e.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),e.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),e.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),e.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),e.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),e.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),e.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),e.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),e.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),e.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),e.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),e.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),e.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),e.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),e.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),e.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),e.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),e.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),e.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),e.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),e.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),e.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),e.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),S=()=>e.createElement("svg",{width:"254",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),e.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .067)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),e.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),e.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),e.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),e.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),e.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),e.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),e.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),e.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),e.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),e.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),e.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),e.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),e.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),e.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),e.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),e.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),e.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),e.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),e.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),e.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),e.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),e.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),e.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),e.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),e.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),e.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),e.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),e.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),e.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),e.createElement("mask",{fill:"#fff"}),e.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),e.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),e.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),e.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),E=r(26477),x=r(44244),H=r(25830);const I=t=>{const{componentCls:l,lineHeightHeading3:a,iconCls:n,padding:s,paddingXL:o,paddingXS:M,paddingLG:i,marginXS:p,lineHeight:k}=t;return{[l]:{padding:`${(0,E.bf)(t.calc(i).mul(2).equal())} ${(0,E.bf)(o)}`,"&-rtl":{direction:"rtl"}},[`${l} ${l}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${l} ${l}-icon`]:{marginBottom:i,textAlign:"center",[`& > ${n}`]:{fontSize:t.iconFontSize}},[`${l} ${l}-title`]:{color:t.colorTextHeading,fontSize:t.titleFontSize,lineHeight:a,marginBlock:p,textAlign:"center"},[`${l} ${l}-subtitle`]:{color:t.colorTextDescription,fontSize:t.subtitleFontSize,lineHeight:k,textAlign:"center"},[`${l} ${l}-content`]:{marginTop:i,padding:`${(0,E.bf)(i)} ${(0,E.bf)(t.calc(s).mul(2.5).equal())}`,backgroundColor:t.colorFillAlter},[`${l} ${l}-extra`]:{margin:t.extraMargin,textAlign:"center","& > *":{marginInlineEnd:M,"&:last-child":{marginInlineEnd:0}}}}},N=t=>{const{componentCls:l,iconCls:a}=t;return{[`${l}-success ${l}-icon > ${a}`]:{color:t.resultSuccessIconColor},[`${l}-error ${l}-icon > ${a}`]:{color:t.resultErrorIconColor},[`${l}-info ${l}-icon > ${a}`]:{color:t.resultInfoIconColor},[`${l}-warning ${l}-icon > ${a}`]:{color:t.resultWarningIconColor}}},V=t=>[I(t),N(t)],y=t=>V(t),R=t=>({titleFontSize:t.fontSizeHeading3,subtitleFontSize:t.fontSize,iconFontSize:t.fontSizeHeading3*3,extraMargin:`${t.paddingLG}px 0 0 0`});var T=(0,x.I$)("Result",t=>{const l=t.colorInfo,a=t.colorError,n=t.colorSuccess,s=t.colorWarning,o=(0,H.TS)(t,{resultInfoIconColor:l,resultErrorIconColor:a,resultSuccessIconColor:n,resultWarningIconColor:s,imageWidth:250,imageHeight:295});return[y(o)]},R),b=()=>e.createElement("svg",{width:"251",height:"294"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),e.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),e.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),e.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),e.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),e.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),e.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),e.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),e.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),e.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),e.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),e.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),e.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),e.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),e.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),e.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),e.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),e.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),e.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),e.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),e.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),e.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),e.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),e.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),e.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),e.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),e.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),e.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),e.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),e.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),e.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),e.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),e.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const G={success:f.Z,error:L.Z,info:v.Z,warning:A},h={404:$,500:S,403:b},P=Object.keys(h),Z=t=>{let{prefixCls:l,icon:a,status:n}=t;const s=F()(`${l}-icon`);if(P.includes(`${n}`)){const M=h[n];return e.createElement("div",{className:`${s} ${l}-image`},e.createElement(M,null))}const o=e.createElement(G[n]);return a===null||a===!1?null:e.createElement("div",{className:s},a||o)},O=t=>{let{prefixCls:l,extra:a}=t;return a?e.createElement("div",{className:`${l}-extra`},a):null},m=t=>{let{prefixCls:l,className:a,rootClassName:n,subTitle:s,title:o,style:M,children:i,status:p="info",icon:k,extra:U}=t;const{getPrefixCls:w,direction:J,result:d}=e.useContext(z.E_),c=w("result",l),[K,Q]=T(c),Y=F()(c,`${c}-${p}`,a,d==null?void 0:d.className,n,{[`${c}-rtl`]:J==="rtl"},Q),q=Object.assign(Object.assign({},d==null?void 0:d.style),M);return K(e.createElement("div",{className:Y,style:q},e.createElement(Z,{prefixCls:c,status:p,icon:k}),e.createElement("div",{className:`${c}-title`},o),s&&e.createElement("div",{className:`${c}-subtitle`},s),e.createElement(O,{prefixCls:c,extra:U}),i&&e.createElement("div",{className:`${c}-content`},i)))};m.PRESENTED_IMAGE_403=h[403],m.PRESENTED_IMAGE_404=h[404],m.PRESENTED_IMAGE_500=h[500];var X=m}}]); diff --git a/4462.314aca21.async.js b/4462.314aca21.async.js new file mode 100644 index 00000000..e8b80c53 --- /dev/null +++ b/4462.314aca21.async.js @@ -0,0 +1,10 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4462],{19346:function(Y,E,o){"use strict";var r=o(93264),y=o(79685),x=o(96818),D=o(64507),$=function(p,M){return y.createElement(D.Z,(0,r.Z)((0,r.Z)({},p),{},{ref:M,icon:x.Z}))};$.displayName="PlusOutlined",E.Z=y.forwardRef($)},19409:function(Y,E,o){"use strict";var r=o(79685),y=o(81383),x=function(){return x=Object.assign||function($){for(var c,p=1,M=arguments.length;p{var{prefixCls:a,className:t,hoverable:n=!0}=e,i=j(e,["prefixCls","className","hoverable"]);const{getPrefixCls:g}=r.useContext($.E_),C=g("card",a),w=x()(`${C}-grid`,t,{[`${C}-grid-hoverable`]:n});return r.createElement("div",Object.assign({},i,{className:w}))},s=o(26477),T=o(4614),W=o(44244),G=o(25830);const q=e=>{const{antCls:a,componentCls:t,headerHeight:n,cardPaddingBase:i,tabsMarginBottom:g}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${(0,s.bf)(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0`},(0,T.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},T.vS),{[` + > ${t}-typography, + > ${t}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${a}-tabs-top`]:{clear:"both",marginBottom:g,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},B=e=>{const{cardPaddingBase:a,colorBorderSecondary:t,cardShadow:n,lineWidth:i}=e;return{width:"33.33%",padding:a,border:0,borderRadius:0,boxShadow:` + ${(0,s.bf)(i)} 0 0 0 ${t}, + 0 ${(0,s.bf)(i)} 0 0 ${t}, + ${(0,s.bf)(i)} ${(0,s.bf)(i)} 0 0 ${t}, + ${(0,s.bf)(i)} 0 0 0 ${t} inset, + 0 ${(0,s.bf)(i)} 0 0 ${t} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},P=e=>{const{componentCls:a,iconCls:t,actionsLiMargin:n,cardActionsIconSize:i,colorBorderSecondary:g,actionsBg:C}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:C,borderTop:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${g}`,display:"flex",borderRadius:`0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`},(0,T.dF)()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${a}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,s.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:i,lineHeight:(0,s.bf)(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${g}`}}})},I=e=>Object.assign(Object.assign({margin:`${(0,s.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,T.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},T.vS),"&-description":{color:e.colorTextDescription}}),A=e=>{const{componentCls:a,cardPaddingBase:t,colorFillAlter:n}=e;return{[`${a}-head`]:{padding:`0 ${(0,s.bf)(t)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${a}-body`]:{padding:`${(0,s.bf)(e.padding)} ${(0,s.bf)(t)}`}}},F=e=>{const{componentCls:a}=e;return{overflow:"hidden",[`${a}-body`]:{userSelect:"none"}}},te=e=>{const{antCls:a,componentCls:t,cardShadow:n,cardHeadPadding:i,colorBorderSecondary:g,boxShadowTertiary:C,cardPaddingBase:w,extraColor:R}=e;return{[t]:Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:C},[`${t}-head`]:q(e),[`${t}-extra`]:{marginInlineStart:"auto",color:R,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:w,borderRadius:` 0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`},(0,T.dF)()),[`${t}-grid`]:B(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${a}-image-mask`]:{borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:P(e),[`${t}-meta`]:I(e)}),[`${t}-bordered`]:{border:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${g}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:i}}},[`${t}-type-inner`]:A(e),[`${t}-loading`]:F(e),[`${t}-rtl`]:{direction:"rtl"}}},ne=e=>{const{componentCls:a,cardPaddingSM:t,headerHeightSM:n,headerFontSizeSM:i}=e;return{[`${a}-small`]:{[`> ${a}-head`]:{minHeight:n,padding:`0 ${(0,s.bf)(t)}`,fontSize:i,[`> ${a}-head-wrapper`]:{[`> ${a}-extra`]:{fontSize:e.fontSize}}},[`> ${a}-body`]:{padding:t}},[`${a}-small${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ae=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var re=(0,W.I$)("Card",e=>{const a=(0,G.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[te(a),ne(a)]},ae),d=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:a,actions:t=[]}=e;return r.createElement("ul",{className:`${a}-actions`},t.map((n,i)=>{const g=`action-${i}`;return r.createElement("li",{style:{width:`${100/t.length}%`},key:g},r.createElement("span",null,n))}))};var u=r.forwardRef((e,a)=>{const{prefixCls:t,className:n,rootClassName:i,style:g,extra:C,headStyle:w={},bodyStyle:R={},title:N,loading:O,bordered:U=!0,size:X,type:Z,cover:_,actions:ie,tabList:k,children:ee,activeTabKey:oe,defaultActiveTabKey:de,tabBarExtraContent:ue,hoverable:fe,tabProps:me={}}=e,ge=d(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:pe,direction:be,card:V}=r.useContext($.E_),ve=K=>{var L;(L=e.onTabChange)===null||L===void 0||L.call(e,K)},he=r.useMemo(()=>{let K=!1;return r.Children.forEach(ee,L=>{L&&L.type&&L.type===H&&(K=!0)}),K},[ee]),h=pe("card",t),[$e,ye]=re(h),Se=r.createElement(p.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},ee),se=oe!==void 0,xe=Object.assign(Object.assign({},me),{[se?"activeKey":"defaultActiveKey"]:se?oe:de,tabBarExtraContent:ue});let le;const Q=(0,c.Z)(X),Ce=!Q||Q==="default"?"large":Q,ce=k?r.createElement(M.Z,Object.assign({size:Ce},xe,{className:`${h}-head-tabs`,onChange:ve,items:k.map(K=>{var{tab:L}=K,Ne=d(K,["tab"]);return Object.assign({label:L},Ne)})})):null;(N||C||ce)&&(le=r.createElement("div",{className:`${h}-head`,style:w},r.createElement("div",{className:`${h}-head-wrapper`},N&&r.createElement("div",{className:`${h}-head-title`},N),C&&r.createElement("div",{className:`${h}-extra`},C)),ce));const Oe=_?r.createElement("div",{className:`${h}-cover`},_):null,Ee=r.createElement("div",{className:`${h}-body`,style:R},O?Se:ee),Te=ie&&ie.length?r.createElement(l,{prefixCls:h,actions:ie}):null,Me=(0,D.Z)(ge,["onTabChange"]),Pe=x()(h,V==null?void 0:V.className,{[`${h}-loading`]:O,[`${h}-bordered`]:U,[`${h}-hoverable`]:fe,[`${h}-contain-grid`]:he,[`${h}-contain-tabs`]:k&&k.length,[`${h}-${Q}`]:Q,[`${h}-type-${Z}`]:!!Z,[`${h}-rtl`]:be==="rtl"},n,i,ye),ze=Object.assign(Object.assign({},V==null?void 0:V.style),g);return $e(r.createElement("div",Object.assign({ref:a},Me,{className:Pe,style:ze}),le,Oe,Ee,Te))}),S=function(e,a){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:a,className:t,avatar:n,title:i,description:g}=e,C=S(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:w}=r.useContext($.E_),R=w("card",a),N=x()(`${R}-meta`,t),O=n?r.createElement("div",{className:`${R}-meta-avatar`},n):null,U=i?r.createElement("div",{className:`${R}-meta-title`},i):null,X=g?r.createElement("div",{className:`${R}-meta-description`},g):null,Z=U||X?r.createElement("div",{className:`${R}-meta-detail`},U,X):null;return r.createElement("div",Object.assign({},C,{className:N}),O,Z)};const v=u;v.Grid=H,v.Meta=m;var f=v},45161:function(Y,E,o){"use strict";o.d(E,{Z:function(){return re}});var r=o(79685),y=o(28120),x=o(23196),D=o(68591),$=o.n(D),c=o(99248),p=o(57196),j=d=>{const{value:l,formatter:b,precision:u,decimalSeparator:S,groupSeparator:z="",prefixCls:m}=d;let v;if(typeof b=="function")v=b(l);else{const f=String(l),e=f.match(/^(-?)(\d*)(\.(\d+))?$/);if(!e||f==="-")v=f;else{const a=e[1];let t=e[2]||"0",n=e[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,z),typeof u=="number"&&(n=n.padEnd(u,"0").slice(0,u>0?u:0)),n&&(n=`${S}${n}`),v=[r.createElement("span",{key:"int",className:`${m}-content-value-int`},a,t),n&&r.createElement("span",{key:"decimal",className:`${m}-content-value-decimal`},n)]}}return r.createElement("span",{className:`${m}-content-value`},v)},J=o(4614),H=o(44244),s=o(25830);const T=d=>{const{componentCls:l,marginXXS:b,padding:u,colorTextDescription:S,titleFontSize:z,colorTextHeading:m,contentFontSize:v,fontFamily:f}=d;return{[`${l}`]:Object.assign(Object.assign({},(0,J.Wf)(d)),{[`${l}-title`]:{marginBottom:b,color:S,fontSize:z},[`${l}-skeleton`]:{paddingTop:u},[`${l}-content`]:{color:m,fontSize:v,fontFamily:f,[`${l}-content-value`]:{display:"inline-block",direction:"ltr"},[`${l}-content-prefix, ${l}-content-suffix`]:{display:"inline-block"},[`${l}-content-prefix`]:{marginInlineEnd:b},[`${l}-content-suffix`]:{marginInlineStart:b}}})}},W=d=>{const{fontSizeHeading3:l,fontSize:b}=d;return{titleFontSize:b,contentFontSize:l}};var G=(0,H.I$)("Statistic",d=>{const l=(0,s.TS)(d,{});return[T(l)]},W),B=d=>{const{prefixCls:l,className:b,rootClassName:u,style:S,valueStyle:z,value:m=0,title:v,valueRender:f,prefix:e,suffix:a,loading:t=!1,onMouseEnter:n,onMouseLeave:i,decimalSeparator:g=".",groupSeparator:C=","}=d,{getPrefixCls:w,direction:R,statistic:N}=r.useContext(c.E_),O=w("statistic",l),[U,X]=G(O),Z=r.createElement(j,Object.assign({decimalSeparator:g,groupSeparator:C,prefixCls:O},d,{value:m})),_=$()(O,{[`${O}-rtl`]:R==="rtl"},N==null?void 0:N.className,b,u,X);return U(r.createElement("div",{className:_,style:Object.assign(Object.assign({},N==null?void 0:N.style),S),onMouseEnter:n,onMouseLeave:i},v&&r.createElement("div",{className:`${O}-title`},v),r.createElement(p.Z,{paragraph:!1,loading:t,className:`${O}-skeleton`},r.createElement("div",{style:z,className:`${O}-content`},e&&r.createElement("span",{className:`${O}-content-prefix`},e),f?f(Z):Z,a&&r.createElement("span",{className:`${O}-content-suffix`},a)))))};const P=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(d,l){let b=d;const u=/\[[^\]]*]/g,S=(l.match(u)||[]).map(f=>f.slice(1,-1)),z=l.replace(u,"[]"),m=P.reduce((f,e)=>{let[a,t]=e;if(f.includes(a)){const n=Math.floor(b/t);return b-=n*t,f.replace(new RegExp(`${a}+`,"g"),i=>{const g=i.length;return n.toString().padStart(g,"0")})}return f},z);let v=0;return m.replace(u,()=>{const f=S[v];return v+=1,f})}function A(d,l){const{format:b=""}=l,u=new Date(d).getTime(),S=Date.now(),z=Math.max(u-S,0);return I(z,b)}const F=1e3/30;function te(d){return new Date(d).getTime()}const ne=d=>{const{value:l,format:b="HH:mm:ss",onChange:u,onFinish:S}=d,z=(0,y.Z)(),m=r.useRef(null),v=()=>{S==null||S(),m.current&&(clearInterval(m.current),m.current=null)},f=()=>{const t=te(l);t>=Date.now()&&(m.current=setInterval(()=>{z(),u==null||u(t-Date.now()),t(f(),()=>{m.current&&(clearInterval(m.current),m.current=null)}),[l]);const e=(t,n)=>A(t,Object.assign(Object.assign({},n),{format:b})),a=t=>(0,x.Tm)(t,{title:void 0});return r.createElement(B,Object.assign({},d,{valueRender:a,formatter:e}))};var ae=r.memo(ne);B.Countdown=ae;var re=B},96300:function(Y){(function(E,o){Y.exports=o()})(this,function(){"use strict";return function(E,o,r){E=E||{};var y=o.prototype,x={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function D(c,p,M,j){return y.fromToBase(c,p,M,j)}r.en.relativeTime=x,y.fromToBase=function(c,p,M,j,J){for(var H,s,T,W=M.$locale().relativeTime||x,G=E.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],q=G.length,B=0;B0,I<=P.r||!P.r){I<=1&&B>0&&(P=G[B-1]);var A=W[P.l];J&&(I=J(""+I)),s=typeof A=="string"?A.replace("%d",I):A(I,p,P.l,T);break}}if(p)return s;var F=T?W.future:W.past;return typeof F=="function"?F(s):F.replace("%s",s)},y.to=function(c,p){return D(c,p,this,!0)},y.from=function(c,p){return D(c,p,this)};var $=function(c){return c.$u?r.utc():r()};y.toNow=function(c){return this.to($(this),c)},y.fromNow=function(c){return this.from($(this),c)}}})}}]); diff --git a/4587.d08ff5a6.async.js b/4587.d08ff5a6.async.js deleted file mode 100644 index 2a931ba5..00000000 --- a/4587.d08ff5a6.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4587],{4587:function(T,P,O){var M,v;(function(n,m){M=m,v=typeof M=="function"?M.call(P,O,P,T):M,v!==void 0&&(T.exports=v)})(this,function(){var n,m,L="2.0.6",g={},N={},y={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:y.currentLocale,zeroFormat:y.zeroFormat,nullFormat:y.nullFormat,defaultFormat:y.defaultFormat,scalePercentBy100:y.scalePercentBy100};function E(e,r){this._input=e,this._value=r}return n=function(e){var r,l,i,t;if(n.isNumeral(e))r=e.value();else if(e===0||typeof e=="undefined")r=0;else if(e===null||m.isNaN(e))r=null;else if(typeof e=="string")if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(l in g)if(t=typeof g[l].regexps.unformat=="function"?g[l].regexps.unformat():g[l].regexps.unformat,t&&e.match(t)){i=g[l].unformat;break}i=i||n._.stringToNumber,r=i(e)}else r=Number(e)||null;return new E(e,r)},n.version=L,n.isNumeral=function(e){return e instanceof E},n._=m={numberToFormat:function(e,r,l){var i=N[n.options.currentLocale],t=!1,o=!1,a=0,u="",f=1e12,s=1e9,h=1e6,w=1e3,d="",B=!1,p,x,z,R,A,b,_,k,S,F;if(e=e||0,x=Math.abs(e),n._.includes(r,"(")?(t=!0,r=r.replace(/[\(|\)]/g,"")):(n._.includes(r,"+")||n._.includes(r,"-"))&&(k=n._.includes(r,"+")?r.indexOf("+"):e<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),n._.includes(r,"a")&&(p=r.match(/a(k|m|b|t)?/),p=p?p[1]:!1,n._.includes(r," a")&&(u=" "),r=r.replace(new RegExp(u+"a[kmbt]?"),""),x>=f&&!p||p==="t"?(u+=i.abbreviations.trillion,e=e/f):x=s&&!p||p==="b"?(u+=i.abbreviations.billion,e=e/s):x=h&&!p||p==="m"?(u+=i.abbreviations.million,e=e/h):(x=w&&!p||p==="k")&&(u+=i.abbreviations.thousand,e=e/w)),n._.includes(r,"[.]")&&(o=!0,r=r.replace("[.]",".")),b=e.toString().split(".")[0],_=r.split(".")[1],S=r.indexOf(","),a=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(n._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),d=n._.toFixed(e,_[0].length+_[1].length,l,_[1].length)):d=n._.toFixed(e,_.length,l),b=d.split(".")[0],n._.includes(d,".")?d=i.delimiters.decimal+d.split(".")[1]:d="",o&&Number(d.slice(1))===0&&(d="")):b=n._.toFixed(e,0,l),u&&!p&&Number(b)>=1e3&&u!==i.abbreviations.trillion)switch(b=String(Number(b)/1e3),u){case i.abbreviations.thousand:u=i.abbreviations.million;break;case i.abbreviations.million:u=i.abbreviations.billion;break;case i.abbreviations.billion:u=i.abbreviations.trillion;break}if(n._.includes(b,"-")&&(b=b.slice(1),B=!0),b.length0;$--)b="0"+b;return S>-1&&(b=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)),r.indexOf(".")===0&&(b=""),F=b+d+(u||""),t?F=(t&&B?"(":"")+F+(t&&B?")":""):k>=0?F=k===0?(B?"-":"+")+F:F+(B?"-":"+"):B&&(F="-"+F),F},stringToNumber:function(e){var r=N[c.currentLocale],l=e,i={thousand:3,million:6,billion:9,trillion:12},t,o,a,u;if(c.zeroFormat&&e===c.zeroFormat)o=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)o=null;else{o=1,r.delimiters.decimal!=="."&&(e=e.replace(/\./g,"").replace(r.delimiters.decimal,"."));for(t in i)if(u=new RegExp("[^a-zA-Z]"+r.abbreviations[t]+"(?:\\)|(\\"+r.currency.symbol+")?(?:\\))?)?$"),l.match(u)){o*=Math.pow(10,i[t]);break}o*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),o*=Number(e)}return o},isNaN:function(e){return typeof e=="number"&&isNaN(e)},includes:function(e,r){return e.indexOf(r)!==-1},insert:function(e,r,l){return e.slice(0,l)+r+e.slice(l)},reduce:function(e,r){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof r!="function")throw new TypeError(r+" is not a function");var l=Object(e),i=l.length>>>0,t=0,o;if(arguments.length===3)o=arguments[2];else{for(;t=i)throw new TypeError("Reduce of empty array with no initial value");o=l[t++]}for(;ti?r:i},1)},toFixed:function(e,r,l,i){var t=e.toString().split("."),o=r-(i||0),a,u,f,s;return t.length===2?a=Math.min(Math.max(t[1].length,o),r):a=o,f=Math.pow(10,a),s=(l(e+"e+"+a)/f).toFixed(a),i>r-a&&(u=new RegExp("\\.?0{1,"+(i-(r-a))+"}$"),s=s.replace(u,"")),s}},n.options=c,n.formats=g,n.locales=N,n.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},n.localeData=function(e){if(!e)return N[c.currentLocale];if(e=e.toLowerCase(),!N[e])throw new Error("Unknown locale : "+e);return N[e]},n.reset=function(){for(var e in y)c[e]=y[e]},n.zeroFormat=function(e){c.zeroFormat=typeof e=="string"?e:null},n.nullFormat=function(e){c.nullFormat=typeof e=="string"?e:null},n.defaultFormat=function(e){c.defaultFormat=typeof e=="string"?e:"0.0"},n.register=function(e,r,l){if(r=r.toLowerCase(),this[e+"s"][r])throw new TypeError(r+" "+e+" already registered.");return this[e+"s"][r]=l,l},n.validate=function(e,r){var l,i,t,o,a,u,f,s;if(typeof e!="string"&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(e==="")return!1;try{f=n.localeData(r)}catch(h){f=n.localeData(n.locale())}return t=f.currency.symbol,a=f.abbreviations,l=f.delimiters.decimal,f.delimiters.thousands==="."?i="\\.":i=f.delimiters.thousands,s=e.match(/^[^\d]+/),s!==null&&(e=e.substr(1),s[0]!==t)||(s=e.match(/[^\d]+$/),s!==null&&(e=e.slice(0,-1),s[0]!==a.thousand&&s[0]!==a.million&&s[0]!==a.billion&&s[0]!==a.trillion))?!1:(u=new RegExp(i+"{2}"),e.match(/[^\d.,]/g)?!1:(o=e.split(l),o.length>2?!1:o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u):o[0].length===1?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))},n.fn=E.prototype={clone:function(){return n(this)},format:function(e,r){var l=this._value,i=e||c.defaultFormat,t,o,a;if(r=r||Math.round,l===0&&c.zeroFormat!==null)o=c.zeroFormat;else if(l===null&&c.nullFormat!==null)o=c.nullFormat;else{for(t in g)if(i.match(g[t].regexps.format)){a=g[t].format;break}a=a||n._.numberToFormat,o=a(l,i,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i+Math.round(r*t)}return this._value=m.reduce([this._value,e],l,0)/r,this},subtract:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i-Math.round(r*t)}return this._value=m.reduce([e],l,Math.round(this._value*r))/r,this},multiply:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)*Math.round(i*a)/Math.round(a*a)}return this._value=m.reduce([this._value,e],r,1),this},divide:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)/Math.round(i*a)}return this._value=m.reduce([this._value,e],r),this},difference:function(e){return Math.abs(n(this._value).subtract(e).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var r=e%10;return~~(e%100/10)===1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th"},currency:{symbol:"$"}}),function(){n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,r,l){var i=n._.includes(r," BPS")?" ":"",t;return e=e*1e4,r=r.replace(/\s?BPS/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"BPS"),t=t.join("")):t=t+i+"BPS",t},unformat:function(e){return+(n._.stringToNumber(e)*1e-4).toFixed(15)}})}(),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},l=e.suffixes.concat(r.suffixes.filter(function(t){return e.suffixes.indexOf(t)<0})),i=l.join("|");i="("+i.replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,o,a){var u,f=n._.includes(o,"ib")?r:e,s=n._.includes(o," b")||n._.includes(o," ib")?" ":"",h,w,d;for(o=o.replace(/\s?i?b/,""),h=0;h<=f.suffixes.length;h++)if(w=Math.pow(f.base,h),d=Math.pow(f.base,h+1),t===null||t===0||t>=w&&t0&&(t=t/w);break}return u=n._.numberToFormat(t,o,a),u+s},unformat:function(t){var o=n._.stringToNumber(t),a,u;if(o){for(a=e.suffixes.length-1;a>=0;a--){if(n._.includes(t,e.suffixes[a])){u=Math.pow(e.base,a);break}if(n._.includes(t,r.suffixes[a])){u=Math.pow(r.base,a);break}}o*=u||1}return o}})}(),function(){n.register("format","currency",{regexps:{format:/(\$)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,a,u;for(r=r.replace(/\s?\$\s?/,""),o=n._.numberToFormat(e,r,l),e>=0?(t.before=t.before.replace(/[\-\(]/,""),t.after=t.after.replace(/[\-\)]/,"")):e<0&&!n._.includes(t.before,"-")&&!n._.includes(t.before,"(")&&(t.before="-"+t.before),u=0;u=0;u--)switch(a=t.after[u],a){case"$":o=u===t.after.length-1?o+i.currency.symbol:n._.insert(o,i.currency.symbol,-(t.after.length-(1+u)));break;case" ":o=u===t.after.length-1?o+" ":n._.insert(o," ",-(t.after.length-(1+u)+i.currency.symbol.length-1));break}return o}})}(),function(){n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,r,l){var i,t=typeof e=="number"&&!n._.isNaN(e)?e.toExponential():"0e+0",o=t.split("e");return r=r.replace(/e[\+|\-]{1}0/,""),i=n._.numberToFormat(Number(o[0]),r,l),i+"e"+o[1]},unformat:function(e){var r=n._.includes(e,"e+")?e.split("e+"):e.split("e-"),l=Number(r[0]),i=Number(r[1]);i=n._.includes(e,"e-")?i*=-1:i;function t(o,a,u,f){var s=n._.correctionFactor(o,a),h=o*s*(a*s)/(s*s);return h}return n._.reduce([l,Math.pow(10,i)],t,1)}})}(),function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t,o=n._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(e),t=n._.numberToFormat(e,r,l),t+o}})}(),function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,r,l){var i=n._.includes(r," %")?" ":"",t;return n.options.scalePercentBy100&&(e=e*100),r=r.replace(/\s?\%/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"%"),t=t.join("")):t=t+i+"%",t},unformat:function(e){var r=n._.stringToNumber(e);return n.options.scalePercentBy100?r*.01:r}})}(),function(){n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,r,l){var i=Math.floor(e/60/60),t=Math.floor((e-i*60*60)/60),o=Math.round(e-i*60*60-t*60);return i+":"+(t<10?"0"+t:t)+":"+(o<10?"0"+o:o)},unformat:function(e){var r=e.split(":"),l=0;return r.length===3?(l=l+Number(r[0])*60*60,l=l+Number(r[1])*60,l=l+Number(r[2])):r.length===2&&(l=l+Number(r[0])*60,l=l+Number(r[1])),Number(l)}})}(),n})}}]); diff --git a/4767.6e1e2f14.async.js b/4767.6e1e2f14.async.js new file mode 100644 index 00000000..b432832d --- /dev/null +++ b/4767.6e1e2f14.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4767],{24767:function(o,n,t){t.r(n),t.d(n,{default:function(){return E}});var O=t(79685),u=t(8025),s=t(63342);function E(){var e=(0,u.useOutletContext)();return(0,s.jsx)(u.Outlet,{context:e})}}}]); diff --git a/5095.67961338.async.js b/5095.67961338.async.js new file mode 100644 index 00000000..3184717c --- /dev/null +++ b/5095.67961338.async.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5095],{96818:function(Ue,ve){var u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};ve.Z=u},32678:function(Ue,ve,u){var n=u(21137),$e=u(79685),Ze=u(96818),Ne=u(83317),_e=function(ee,H){return $e.createElement(Ne.Z,(0,n.Z)({},ee,{ref:H,icon:Ze.Z}))};ve.Z=$e.forwardRef(_e)},55095:function(Ue,ve,u){u.d(ve,{Z:function(){return za}});var n=u(79685),$e=u(99992),Ze=u(22901),Ne=u(32678),_e=u(68591),k=u.n(_e),ee=u(21137),H=u(6346),U=u(93264),R=u(89342),ze=u(63195),Se=u(98787),Fe=u(46501),Lt=u(88099),Qa=u(30765);function wt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,U.Z)({inkBar:!0},(0,ze.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ye=(0,n.createContext)(null),Ye=u(57963),Me=u(58718),Zt=u(53327),Nt=u(52401),Qe=u(54272),_t=function(t){var a=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicatorSize,c=(0,n.useState)(),l=(0,R.Z)(c,2),s=l[0],d=l[1],y=(0,n.useRef)(),f=function(I){return typeof o=="function"?o(I):typeof o=="number"?o:I};function $(){Qe.Z.cancel(y.current)}return(0,n.useEffect)(function(){var p={};return a&&(r?(i?(p.right=a.right+a.width/2,p.transform="translateX(50%)"):(p.left=a.left+a.width/2,p.transform="translateX(-50%)"),p.width=f(a.width)):(p.top=a.top+a.height/2,p.transform="translateY(-50%)",p.height=f(a.height))),$(),y.current=(0,Qe.Z)(function(){d(p)}),$},[a,r,i,o]),{style:s}},zt=_t,Je={width:0,height:0,left:0,top:0};function Mt(e,t,a){return(0,n.useMemo)(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Je,c=o.left+o.width,l=0;lP?(m=g,C.current="x"):(m=E,C.current="y"),t(-m,-m)&&b.preventDefault()}var w=(0,n.useRef)(null);w.current={onTouchStart:v,onTouchMove:L,onTouchEnd:A,onWheel:G},n.useEffect(function(){function b(T){w.current.onTouchStart(T)}function g(T){w.current.onTouchMove(T)}function E(T){w.current.onTouchEnd(T)}function m(T){w.current.onWheel(T)}return document.addEventListener("touchmove",g,{passive:!1}),document.addEventListener("touchend",E,{passive:!1}),e.current.addEventListener("touchstart",b,{passive:!1}),e.current.addEventListener("wheel",m),function(){document.removeEventListener("touchmove",g),document.removeEventListener("touchend",E)}},[])}var At=u(79269);function at(e){var t=(0,n.useState)(0),a=(0,R.Z)(t,2),r=a[0],i=a[1],o=(0,n.useRef)(0),c=(0,n.useRef)();return c.current=e,(0,At.o)(function(){var l;(l=c.current)===null||l===void 0||l.call(c)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function Dt(e){var t=(0,n.useRef)([]),a=(0,n.useState)({}),r=(0,R.Z)(a,2),i=r[1],o=(0,n.useRef)(typeof e=="function"?e():e),c=at(function(){var s=o.current;t.current.forEach(function(d){s=d(s)}),t.current=[],o.current=s,i({})});function l(s){t.current.push(s),c()}return[o.current,l]}var nt={width:0,height:0,left:0,top:0,right:0};function Wt(e,t,a,r,i,o,c){var l=c.tabs,s=c.tabPosition,d=c.rtl,y,f,$;return["top","bottom"].includes(s)?(y="width",f=d?"right":"left",$=Math.abs(a)):(y="height",f="top",$=-a),(0,n.useMemo)(function(){if(!l.length)return[0,0];for(var p=l.length,I=p,N=0;N$+t){I=N-1;break}}for(var W=0,M=p-1;M>=0;M-=1){var v=e.get(l[M].key)||nt;if(v[f]<$){W=M+1;break}}return W>=I?[0,0]:[W,I]},[e,t,r,i,o,$,s,l.map(function(p){return p.key}).join("_"),d])}function rt(e){var t;return e instanceof Map?(t={},e.forEach(function(a,r){t[r]=a})):t=e,JSON.stringify(t)}var Gt="TABS_DQ";function it(e){return String(e).replace(/"/g,Gt)}function ot(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var Ht=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:n.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),lt=Ht,jt=n.forwardRef(function(e,t){var a=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,c={};return(0,ze.Z)(i)==="object"&&!n.isValidElement(i)?c=i:c.right=i,a==="right"&&(o=c.right),a==="left"&&(o=c.left),o?n.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),ct=jt,kt=u(58156),st=u(29668),Q=u(66214),Kt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,c=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,d=e.moreTransitionName,y=e.style,f=e.className,$=e.editable,p=e.tabBarGutter,I=e.rtl,N=e.removeAriaLabel,_=e.onTabClick,W=e.getPopupContainer,M=e.popupClassName,v=(0,n.useState)(!1),L=(0,R.Z)(v,2),A=L[0],C=L[1],G=(0,n.useState)(null),w=(0,R.Z)(G,2),b=w[0],g=w[1],E="".concat(r,"-more-popup"),m="".concat(a,"-dropdown"),T=b!==null?"".concat(E,"-").concat(b):null,P=o==null?void 0:o.dropdownAriaLabel;function O(x,B){x.preventDefault(),x.stopPropagation(),$.onEdit("remove",{key:B,event:x})}var Y=n.createElement(st.ZP,{onClick:function(B){var K=B.key,F=B.domEvent;_(K,F),C(!1)},prefixCls:"".concat(m,"-menu"),id:E,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[b],"aria-label":P!==void 0?P:"expanded dropdown"},i.map(function(x){var B=x.closable,K=x.disabled,F=x.closeIcon,X=x.key,J=x.label,ae=ot(B,F,$,K);return n.createElement(st.sN,{key:X,id:"".concat(E,"-").concat(X),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(X),disabled:K},n.createElement("span",null,J),ae&&n.createElement("button",{type:"button","aria-label":N||"remove",tabIndex:0,className:"".concat(m,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),O(re,X)}},F||$.removeIcon||"\xD7"))}));function ne(x){for(var B=i.filter(function(ae){return!ae.disabled}),K=B.findIndex(function(ae){return ae.key===b})||0,F=B.length,X=0;XS?"left":"right"})}),P=(0,R.Z)(T,2),O=P[0],Y=P[1],ne=qe(0,function(z,S){!m&&_&&_({direction:z>S?"top":"bottom"})}),te=(0,R.Z)(ne,2),j=te[0],le=te[1],me=(0,n.useState)([0,0]),x=(0,R.Z)(me,2),B=x[0],K=x[1],F=(0,n.useState)([0,0]),X=(0,R.Z)(F,2),J=X[0],ae=X[1],Te=(0,n.useState)([0,0]),re=(0,R.Z)(Te,2),Oe=re[0],Be=re[1],Ae=(0,n.useState)([0,0]),ge=(0,R.Z)(Ae,2),De=ge[0],Z=ge[1],ce=Dt(new Map),fe=(0,R.Z)(ce,2),Ma=fe[0],Oa=fe[1],Pe=Mt(L,Ma,J[0]),We=Ce(B,m),he=Ce(J,m),Ge=Ce(Oe,m),mt=Ce(De,m),gt=Wese?se:z}var je=(0,n.useRef)(null),Aa=(0,n.useState)(),ht=(0,R.Z)(Aa,2),Ee=ht[0],pt=ht[1];function ke(){pt(Date.now())}function Ke(){je.current&&clearTimeout(je.current)}Bt(w,function(z,S){function D(V,de){V(function(oe){var Le=He(oe+de);return Le})}return gt?(m?D(Y,z):D(le,S),Ke(),ke(),!0):!1}),(0,n.useEffect)(function(){return Ke(),Ee&&(je.current=setTimeout(function(){pt(0)},100)),Ke},[Ee]);var Da=Wt(Pe,q,m?O:j,he,Ge,mt,(0,U.Z)((0,U.Z)({},e),{},{tabs:L})),$t=(0,R.Z)(Da,2),Wa=$t[0],Ga=$t[1],St=(0,Zt.Z)(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,S=Pe.get(z)||{width:0,height:0,left:0,right:0,top:0};if(m){var D=O;s?S.rightO+q&&(D=S.right+S.width-q):S.left<-O?D=-S.left:S.left+S.width>-O+q&&(D=-(S.left+S.width-q)),le(0),Y(He(D))}else{var V=j;S.top<-j?V=-S.top:S.top+S.height>-j+q&&(V=-(S.top+S.height-q)),Y(0),le(He(V))}}),Re={};$==="top"||$==="bottom"?Re[s?"marginRight":"marginLeft"]=p:Re.marginTop=p;var yt=L.map(function(z,S){var D=z.key;return n.createElement(Ut,{id:o,prefixCls:v,key:D,tab:z,style:S===0?void 0:Re,closable:z.closable,editable:y,active:D===l,renderWrapper:I,removeAriaLabel:f==null?void 0:f.removeAriaLabel,onClick:function(de){N(D,de)},onFocus:function(){St(D),ke(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),xt=function(){return Oa(function(){var S,D=new Map,V=(S=b.current)===null||S===void 0?void 0:S.getBoundingClientRect();return L.forEach(function(de){var oe,Le=de.key,It=(oe=b.current)===null||oe===void 0?void 0:oe.querySelector('[data-node-key="'.concat(it(Le),'"]'));if(It){var Xa=Ft(It,V),we=(0,R.Z)(Xa,4),Va=we[0],Ua=we[1],Fa=we[2],Ya=we[3];D.set(Le,{width:Va,height:Ua,left:Fa,top:Ya})}}),D})};(0,n.useEffect)(function(){xt()},[L.map(function(z){return z.key}).join("_")]);var Ie=at(function(){var z=ue(A),S=ue(C),D=ue(G);K([z[0]-S[0]-D[0],z[1]-S[1]-D[1]]);var V=ue(E);Be(V);var de=ue(g);Z(de);var oe=ue(b);ae([oe[0]-V[0],oe[1]-V[1]]),xt()}),Ha=L.slice(0,Wa),ja=L.slice(Ga+1),Ct=[].concat((0,Ye.Z)(Ha),(0,Ye.Z)(ja)),Tt=Pe.get(l),ka=zt({activeTabOffset:Tt,horizontal:m,rtl:s,indicatorSize:W}),Ka=ka.style;(0,n.useEffect)(function(){St()},[l,ie,se,rt(Tt),rt(Pe),m]),(0,n.useEffect)(function(){Ie()},[s]);var Pt=!!Ct.length,pe="".concat(v,"-nav-wrap"),Xe,Ve,Et,Rt;return m?s?(Ve=O>0,Xe=O!==se):(Xe=O<0,Ve=O!==ie):(Et=j<0,Rt=j!==ie),n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{ref:(0,Nt.x1)(t,A),role:"tablist",className:k()("".concat(v,"-nav"),r),style:i,onKeyDown:function(){ke()}},n.createElement(ct,{ref:C,position:"left",extra:d,prefixCls:v}),n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{className:k()(pe,(a={},(0,H.Z)(a,"".concat(pe,"-ping-left"),Xe),(0,H.Z)(a,"".concat(pe,"-ping-right"),Ve),(0,H.Z)(a,"".concat(pe,"-ping-top"),Et),(0,H.Z)(a,"".concat(pe,"-ping-bottom"),Rt),a)),ref:w},n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{ref:b,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(O,"px, ").concat(j,"px)"),transition:Ee?"none":void 0}},yt,n.createElement(lt,{ref:E,prefixCls:v,locale:f,editable:y,style:(0,U.Z)((0,U.Z)({},yt.length===0?void 0:Re),{},{visibility:Pt?"hidden":null})}),n.createElement("div",{className:k()("".concat(v,"-ink-bar"),(0,H.Z)({},"".concat(v,"-ink-bar-animated"),c.inkBar)),style:Ka}))))),n.createElement(Xt,(0,ee.Z)({},e,{removeAriaLabel:f==null?void 0:f.removeAriaLabel,ref:g,prefixCls:v,tabs:Ct,className:!Pt&&Ba,tabMoving:!!Ee})),n.createElement(ct,{ref:G,position:"right",extra:d,prefixCls:v})))}),dt=Yt,Qt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.className,i=e.style,o=e.id,c=e.active,l=e.tabKey,s=e.children;return n.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!c,style:i,className:k()(a,c&&"".concat(a,"-active"),r),ref:t},s)}),ut=Qt,Jt=["renderTabBar"],qt=["label","key"],ea=function(t){var a=t.renderTabBar,r=(0,Se.Z)(t,Jt),i=n.useContext(ye),o=i.tabs;if(a){var c=(0,U.Z)((0,U.Z)({},r),{},{panes:o.map(function(l){var s=l.label,d=l.key,y=(0,Se.Z)(l,qt);return n.createElement(ut,(0,ee.Z)({tab:s,key:d,tabKey:d},y))})});return a(c,dt)}return n.createElement(dt,r)},ta=ea,aa=u(96990),na=["key","forceRender","style","className","destroyInactiveTabPane"],ra=function(t){var a=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,c=t.destroyInactiveTabPane,l=n.useContext(ye),s=l.prefixCls,d=l.tabs,y=i.tabPane,f="".concat(s,"-tabpane");return n.createElement("div",{className:k()("".concat(s,"-content-holder"))},n.createElement("div",{className:k()("".concat(s,"-content"),"".concat(s,"-content-").concat(o),(0,H.Z)({},"".concat(s,"-content-animated"),y))},d.map(function($){var p=$.key,I=$.forceRender,N=$.style,_=$.className,W=$.destroyInactiveTabPane,M=(0,Se.Z)($,na),v=p===r;return n.createElement(aa.ZP,(0,ee.Z)({key:p,visible:v,forceRender:I,removeOnLeave:!!(c||W),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(L,A){var C=L.style,G=L.className;return n.createElement(ut,(0,ee.Z)({},M,{prefixCls:f,id:a,tabKey:p,animated:y,active:v,style:(0,U.Z)((0,U.Z)({},N),C),className:k()(_,G),ref:A}))})})))},ia=ra,oa=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ft=0,la=n.forwardRef(function(e,t){var a,r=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,c=e.className,l=e.items,s=e.direction,d=e.activeKey,y=e.defaultActiveKey,f=e.editable,$=e.animated,p=e.tabPosition,I=p===void 0?"top":p,N=e.tabBarGutter,_=e.tabBarStyle,W=e.tabBarExtraContent,M=e.locale,v=e.moreIcon,L=e.moreTransitionName,A=e.destroyInactiveTabPane,C=e.renderTabBar,G=e.onChange,w=e.onTabClick,b=e.onTabScroll,g=e.getPopupContainer,E=e.popupClassName,m=e.indicatorSize,T=(0,Se.Z)(e,oa),P=n.useMemo(function(){return(l||[]).filter(function(Z){return Z&&(0,ze.Z)(Z)==="object"&&"key"in Z})},[l]),O=s==="rtl",Y=wt($),ne=(0,n.useState)(!1),te=(0,R.Z)(ne,2),j=te[0],le=te[1];(0,n.useEffect)(function(){le((0,Lt.Z)())},[]);var me=(0,Fe.Z)(function(){var Z;return(Z=P[0])===null||Z===void 0?void 0:Z.key},{value:d,defaultValue:y}),x=(0,R.Z)(me,2),B=x[0],K=x[1],F=(0,n.useState)(function(){return P.findIndex(function(Z){return Z.key===B})}),X=(0,R.Z)(F,2),J=X[0],ae=X[1];(0,n.useEffect)(function(){var Z=P.findIndex(function(fe){return fe.key===B});if(Z===-1){var ce;Z=Math.max(0,Math.min(J,P.length-1)),K((ce=P[Z])===null||ce===void 0?void 0:ce.key)}ae(Z)},[P.map(function(Z){return Z.key}).join("_"),B,J]);var Te=(0,Fe.Z)(null,{value:r}),re=(0,R.Z)(Te,2),Oe=re[0],Be=re[1];(0,n.useEffect)(function(){r||(Be("rc-tabs-".concat(ft)),ft+=1)},[]);function Ae(Z,ce){w==null||w(Z,ce);var fe=Z!==B;K(Z),fe&&(G==null||G(Z))}var ge={id:Oe,activeKey:B,animated:Y,tabPosition:I,rtl:O,mobile:j},De=(0,U.Z)((0,U.Z)({},ge),{},{editable:f,locale:M,moreIcon:v,moreTransitionName:L,tabBarGutter:N,onTabClick:Ae,onTabScroll:b,extra:W,style:_,panes:null,getPopupContainer:g,popupClassName:E,indicatorSize:m});return n.createElement(ye.Provider,{value:{tabs:P,prefixCls:o}},n.createElement("div",(0,ee.Z)({ref:t,id:r,className:k()(o,"".concat(o,"-").concat(I),(a={},(0,H.Z)(a,"".concat(o,"-mobile"),j),(0,H.Z)(a,"".concat(o,"-editable"),f),(0,H.Z)(a,"".concat(o,"-rtl"),O),a),c)},T),n.createElement(ta,(0,ee.Z)({},De,{renderTabBar:C})),n.createElement(ia,(0,ee.Z)({destroyInactiveTabPane:A},ge,{animated:Y}))))}),ca=la,sa=ca,da=u(99248),ua=u(73064),fa=u(4477);const va={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ba(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},va),{motionName:(0,fa.m)(e,"switch")})),a}var ma=u(89259),ga=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function pa(e,t){if(e)return e;const a=(0,ma.Z)(t).map(r=>{if(n.isValidElement(r)){const{key:i,props:o}=r,c=o||{},{tab:l}=c,s=ga(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:l})}return null});return ha(a)}var h=u(26477),be=u(4614),$a=u(44244),Sa=u(25830),vt=u(63482),ya=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[(0,vt.oN)(e,"slide-up"),(0,vt.oN)(e,"slide-down")]]};const xa=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:r,border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,h.bf)(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,h.bf)(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,h.bf)(e.borderRadiusLG)} 0 0 ${(0,h.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ca=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,be.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,h.bf)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},be.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,h.bf)(e.paddingXXS)} ${(0,h.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ta=e=>{const{componentCls:t,margin:a,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:c,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:a,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,h.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Pa=e=>{const{componentCls:t,cardPaddingSM:a,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,h.bf)(e.borderRadius)} 0 0 ${(0,h.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ea=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:c,itemSelectedColor:l,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:a}},(0,be.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:o}}}},Ra=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:a},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,h.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,h.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,h.bf)(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ia=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:c,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${(0,h.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:c}},(0,be.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ea(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},La=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}};var wa=(0,$a.I$)("Tabs",e=>{const t=(0,Sa.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,h.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,h.bf)(e.horizontalItemGutter)}`});return[Pa(t),Ra(t),Ta(t),Ca(t),xa(t),Ia(t),ya(t)]},La),Za=u(84477),Na=()=>null,_a=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{type:t,className:a,rootClassName:r,size:i,onEdit:o,hideAdd:c,centered:l,addIcon:s,popupClassName:d,children:y,items:f,animated:$,style:p,indicatorSize:I}=e,N=_a(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:_,moreIcon:W=n.createElement(Ze.Z,null)}=N,{direction:M,tabs:v,getPrefixCls:L,getPopupContainer:A}=n.useContext(da.E_),C=L("tabs",_),G=(0,Za.Z)(C),[w,b]=wa(C,G);let g;t==="editable-card"&&(g={onEdit:(Y,ne)=>{let{key:te,event:j}=ne;o==null||o(Y==="add"?j:te,Y)},removeIcon:n.createElement($e.Z,null),addIcon:s||n.createElement(Ne.Z,null),showAdd:c!==!0});const E=L(),m=pa(f,y),T=ba(C,$),P=(0,ua.Z)(i),O=Object.assign(Object.assign({},v==null?void 0:v.style),p);return w(n.createElement(sa,Object.assign({direction:M,getPopupContainer:A,moreTransitionName:`${E}-slide-up`},N,{items:m,className:k()({[`${C}-${P}`]:P,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:t==="editable-card",[`${C}-centered`]:l},v==null?void 0:v.className,a,r,b,G),popupClassName:k()(d,b,G),style:O,editable:g,moreIcon:W,prefixCls:C,animated:T,indicatorSize:I!=null?I:v==null?void 0:v.indicatorSize})))};bt.TabPane=Na;var za=bt}}]); diff --git a/5279.cbec36a0.async.js b/5279.cbec36a0.async.js deleted file mode 100644 index 421cc473..00000000 --- a/5279.cbec36a0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5279],{8303:function(Ue,Ie,g){g.d(Ie,{Z:function(){return Fe}});var p=g(50959),xe=g(84875),U=g.n(xe),Y=g(51408),le=g(31594),fe=g(17436),z=g(70836),u={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},be=p.createContext({}),Se=g(13763),ze=function(n,o){var d={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(d[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s(0,Se.Z)(n).map(o=>Object.assign(Object.assign({},o==null?void 0:o.props),{key:o.key}));function Ne(n,o,d){const a=p.useMemo(()=>o||he(d),[o,d]);return p.useMemo(()=>a.map(S=>{var{span:$}=S,y=ze(S,["span"]);return Object.assign(Object.assign({},y),{span:typeof $=="number"?$:(0,Y.m9)(n,$)})}),[a,n])}function me(n,o,d){let a=n,s=!1;return(d===void 0||d>o)&&(a=Object.assign(Object.assign({},n),{span:o}),s=d!==void 0),[a,s]}function Ee(n,o){const d=[];let a=[],s=o,S=!1;return n.filter($=>$).forEach(($,y)=>{const N=$==null?void 0:$.span,I=N||1;if(y===n.length-1){const[C,T]=me($,s,N);S=S||T,a.push(C),d.push(a);return}if(I{const[d,a]=(0,p.useMemo)(()=>Ee(o,n),[o,n]);return d},Pe=n=>{let{children:o}=n;return o};function oe(n){return n!=null}var m=n=>{const{itemPrefixCls:o,component:d,span:a,className:s,style:S,labelStyle:$,contentStyle:y,bordered:N,label:I,content:C,colon:T}=n,A=d;return N?p.createElement(A,{className:U()({[`${o}-item-label`]:oe(I),[`${o}-item-content`]:oe(C)},s),style:S,colSpan:a},oe(I)&&p.createElement("span",{style:$},I),oe(C)&&p.createElement("span",{style:y},C)):p.createElement(A,{className:U()(`${o}-item`,s),style:S,colSpan:a},p.createElement("div",{className:`${o}-item-container`},(I||I===0)&&p.createElement("span",{className:U()(`${o}-item-label`,{[`${o}-item-no-colon`]:!T}),style:$},I),(C||C===0)&&p.createElement("span",{className:U()(`${o}-item-content`),style:y},C)))};function Q(n,o,d){let{colon:a,prefixCls:s,bordered:S}=o,{component:$,type:y,showLabel:N,showContent:I,labelStyle:C,contentStyle:T}=d;return n.map((A,G)=>{let{label:J,children:re,prefixCls:_=s,className:k,style:F,labelStyle:M,contentStyle:e,span:t=1,key:i}=A;return typeof $=="string"?p.createElement(m,{key:`${y}-${i||G}`,className:k,style:F,labelStyle:Object.assign(Object.assign({},C),M),contentStyle:Object.assign(Object.assign({},T),e),span:t,colon:a,component:$,itemPrefixCls:_,bordered:S,label:N?J:null,content:I?re:null}):[p.createElement(m,{key:`label-${i||G}`,className:k,style:Object.assign(Object.assign(Object.assign({},C),F),M),span:1,colon:a,component:$[0],itemPrefixCls:_,bordered:S,label:J}),p.createElement(m,{key:`content-${i||G}`,className:k,style:Object.assign(Object.assign(Object.assign({},T),F),e),span:t*2-1,component:$[1],itemPrefixCls:_,bordered:S,content:re})]})}var He=n=>{const o=p.useContext(be),{prefixCls:d,vertical:a,row:s,index:S,bordered:$}=n;return a?p.createElement(p.Fragment,null,p.createElement("tr",{key:`label-${S}`,className:`${d}-row`},Q(s,n,Object.assign({component:"th",type:"label",showLabel:!0},o))),p.createElement("tr",{key:`content-${S}`,className:`${d}-row`},Q(s,n,Object.assign({component:"td",type:"content",showContent:!0},o)))):p.createElement("tr",{key:S,className:`${d}-row`},Q(s,n,Object.assign({component:$?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},o)))},E=g(60076),ve=g(6301),Re=g(81501),Me=g(90467);const qe=n=>{const{componentCls:o,labelBg:d}=n;return{[`&${o}-bordered`]:{[`> ${o}-view`]:{border:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${o}-row`]:{borderBottom:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.padding)} ${(0,E.bf)(n.paddingLG)}`,borderInlineEnd:`${(0,E.bf)(n.lineWidth)} ${n.lineType} ${n.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${o}-item-label`]:{color:n.colorTextSecondary,backgroundColor:d,"&::after":{display:"none"}}}},[`&${o}-middle`]:{[`${o}-row`]:{[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.paddingSM)} ${(0,E.bf)(n.paddingLG)}`}}},[`&${o}-small`]:{[`${o}-row`]:{[`> ${o}-item-label, > ${o}-item-content`]:{padding:`${(0,E.bf)(n.paddingXS)} ${(0,E.bf)(n.padding)}`}}}}}},De=n=>{const{componentCls:o,extraColor:d,itemPaddingBottom:a,colonMarginRight:s,colonMarginLeft:S,titleMarginBottom:$}=n;return{[o]:Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(n)),qe(n)),{["&-rtl"]:{direction:"rtl"},[`${o}-header`]:{display:"flex",alignItems:"center",marginBottom:$},[`${o}-title`]:Object.assign(Object.assign({},ve.vS),{flex:"auto",color:n.titleColor,fontWeight:n.fontWeightStrong,fontSize:n.fontSizeLG,lineHeight:n.lineHeightLG}),[`${o}-extra`]:{marginInlineStart:"auto",color:d,fontSize:n.fontSize},[`${o}-view`]:{width:"100%",borderRadius:n.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${o}-row`]:{"> th, > td":{paddingBottom:a},"&:last-child":{borderBottom:"none"}},[`${o}-item-label`]:{color:n.colorTextTertiary,fontWeight:"normal",fontSize:n.fontSize,lineHeight:n.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,E.bf)(S)} ${(0,E.bf)(s)}`},[`&${o}-item-no-colon::after`]:{content:'""'}},[`${o}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${o}-item-content`]:{display:"table-cell",flex:1,color:n.contentColor,fontSize:n.fontSize,lineHeight:n.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${o}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${o}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${o}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${o}-row`]:{"> th, > td":{paddingBottom:n.paddingSM}}},"&-small":{[`${o}-row`]:{"> th, > td":{paddingBottom:n.paddingXS}}}})}},Ae=n=>({labelBg:n.colorFillAlter,titleColor:n.colorText,titleMarginBottom:n.fontSizeSM*n.lineHeightSM,itemPaddingBottom:n.padding,colonMarginRight:n.marginXS,colonMarginLeft:n.marginXXS/2,contentColor:n.colorText,extraColor:n.colorText});var We=(0,Re.I$)("Descriptions",n=>{const o=(0,Me.TS)(n,{});return De(o)},Ae),Ge=function(n,o){var d={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&o.indexOf(a)<0&&(d[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(n);s{const{prefixCls:o,title:d,extra:a,column:s,colon:S=!0,bordered:$,layout:y,children:N,className:I,rootClassName:C,style:T,size:A,labelStyle:G,contentStyle:J,items:re}=n,_=Ge(n,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:k,direction:F,descriptions:M}=p.useContext(le.E_),e=k("descriptions",o),t=(0,z.Z)(),i=p.useMemo(()=>{var x;return typeof s=="number"?s:(x=(0,Y.m9)(t,Object.assign(Object.assign({},u),s)))!==null&&x!==void 0?x:3},[t,s]),l=Ne(t,re,N),r=(0,fe.Z)(A),c=je(i,l),[f,w]=We(e),b=p.useMemo(()=>({labelStyle:G,contentStyle:J}),[G,J]);return f(p.createElement(be.Provider,{value:b},p.createElement("div",Object.assign({className:U()(e,M==null?void 0:M.className,{[`${e}-${r}`]:r&&r!=="default",[`${e}-bordered`]:!!$,[`${e}-rtl`]:F==="rtl"},I,C,w),style:Object.assign(Object.assign({},M==null?void 0:M.style),T)},_),(d||a)&&p.createElement("div",{className:`${e}-header`},d&&p.createElement("div",{className:`${e}-title`},d),a&&p.createElement("div",{className:`${e}-extra`},a)),p.createElement("div",{className:`${e}-view`},p.createElement("table",null,p.createElement("tbody",null,c.map((x,O)=>p.createElement(He,{key:O,index:O,colon:S,prefixCls:e,vertical:y==="vertical",bordered:$,row:x}))))))))};ye.Item=Pe;var Fe=ye},27575:function(Ue,Ie,g){g.d(Ie,{Z:function(){return M}});var p=g(87132),xe=g(22410),U=g(84875),Y=g.n(U),le=g(38126),fe=g(33346),z=g(73273),Oe=g(10570),u=g(50959),we=g(57),be=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function Se(e){return typeof e=="string"}function ze(e){var t,i=e.className,l=e.prefixCls,r=e.style,c=e.active,f=e.status,w=e.iconPrefix,b=e.icon,x=e.wrapperStyle,O=e.stepNumber,Z=e.disabled,X=e.description,K=e.title,R=e.subTitle,j=e.progressDot,ee=e.stepIcon,te=e.tailContent,h=e.icons,ie=e.stepIndex,D=e.onStepClick,B=e.onClick,ae=e.render,ge=(0,Oe.Z)(e,be),V=!!D&&!Z,q={};V&&(q.role="button",q.tabIndex=0,q.onClick=function(P){B==null||B(P),D(ie)},q.onKeyDown=function(P){var H=P.which;(H===we.Z.ENTER||H===we.Z.SPACE)&&D(ie)});var pe=function(){var H,v,ue=Y()("".concat(l,"-icon"),"".concat(w,"icon"),(H={},(0,z.Z)(H,"".concat(w,"icon-").concat(b),b&&Se(b)),(0,z.Z)(H,"".concat(w,"icon-check"),!b&&f==="finish"&&(h&&!h.finish||!h)),(0,z.Z)(H,"".concat(w,"icon-cross"),!b&&f==="error"&&(h&&!h.error||!h)),H)),$e=u.createElement("span",{className:"".concat(l,"-icon-dot")});return j?typeof j=="function"?v=u.createElement("span",{className:"".concat(l,"-icon")},j($e,{index:O-1,status:f,title:K,description:X})):v=u.createElement("span",{className:"".concat(l,"-icon")},$e):b&&!Se(b)?v=u.createElement("span",{className:"".concat(l,"-icon")},b):h&&h.finish&&f==="finish"?v=u.createElement("span",{className:"".concat(l,"-icon")},h.finish):h&&h.error&&f==="error"?v=u.createElement("span",{className:"".concat(l,"-icon")},h.error):b||f==="finish"||f==="error"?v=u.createElement("span",{className:ue}):v=u.createElement("span",{className:"".concat(l,"-icon")},O),ee&&(v=ee({index:O-1,status:f,title:K,description:X,node:v})),v},ne=f||"wait",ce=Y()("".concat(l,"-item"),"".concat(l,"-item-").concat(ne),i,(t={},(0,z.Z)(t,"".concat(l,"-item-custom"),b),(0,z.Z)(t,"".concat(l,"-item-active"),c),(0,z.Z)(t,"".concat(l,"-item-disabled"),Z===!0),t)),se=(0,fe.Z)({},r),L=u.createElement("div",(0,le.Z)({},ge,{className:ce,style:se}),u.createElement("div",(0,le.Z)({onClick:B},q,{className:"".concat(l,"-item-container")}),u.createElement("div",{className:"".concat(l,"-item-tail")},te),u.createElement("div",{className:"".concat(l,"-item-icon")},pe()),u.createElement("div",{className:"".concat(l,"-item-content")},u.createElement("div",{className:"".concat(l,"-item-title")},K,R&&u.createElement("div",{title:typeof R=="string"?R:void 0,className:"".concat(l,"-item-subtitle")},R)),X&&u.createElement("div",{className:"".concat(l,"-item-description")},X))));return ae&&(L=ae(L)||null),L}var he=ze,Ne=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function me(e){var t,i=e.prefixCls,l=i===void 0?"rc-steps":i,r=e.style,c=r===void 0?{}:r,f=e.className,w=e.children,b=e.direction,x=b===void 0?"horizontal":b,O=e.type,Z=O===void 0?"default":O,X=e.labelPlacement,K=X===void 0?"horizontal":X,R=e.iconPrefix,j=R===void 0?"rc":R,ee=e.status,te=ee===void 0?"process":ee,h=e.size,ie=e.current,D=ie===void 0?0:ie,B=e.progressDot,ae=B===void 0?!1:B,ge=e.stepIcon,V=e.initial,q=V===void 0?0:V,pe=e.icons,ne=e.onChange,ce=e.itemRender,se=e.items,L=se===void 0?[]:se,P=(0,Oe.Z)(e,Ne),H=Z==="navigation",v=Z==="inline",ue=v||ae,$e=v?"horizontal":x,Ke=v?void 0:h,Ye=ue?"vertical":K,Qe=Y()(l,"".concat(l,"-").concat($e),f,(t={},(0,z.Z)(t,"".concat(l,"-").concat(Ke),Ke),(0,z.Z)(t,"".concat(l,"-label-").concat(Ye),$e==="horizontal"),(0,z.Z)(t,"".concat(l,"-dot"),!!ue),(0,z.Z)(t,"".concat(l,"-navigation"),H),(0,z.Z)(t,"".concat(l,"-inline"),v),t)),Je=function(Ce){ne&&D!==Ce&&ne(Ce)},_e=function(Ce,Ve){var W=(0,fe.Z)({},Ce),de=q+Ve;return te==="error"&&Ve===D-1&&(W.className="".concat(l,"-next-error")),W.status||(de===D?W.status=te:de{const{componentCls:t,customIconTop:i,customIconSize:l,customIconFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:i,width:l,height:l,fontSize:r,lineHeight:`${(0,m.bf)(r)}`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Me=e=>{const{componentCls:t,inlineDotSize:i,inlineTitleColor:l,inlineTailColor:r}=e,c=e.calc(e.paddingXS).add(e.lineWidth).equal(),f={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:l}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${(0,m.bf)(c)} ${(0,m.bf)(e.paddingXXS)} 0`,margin:`0 ${(0,m.bf)(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:i,height:i,marginInlineStart:`calc(50% - ${(0,m.bf)(e.calc(i).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal()}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:l,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(i).div(2).add(c).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${r}`}},f),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${r}`}},f),"&-error":f,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:i,height:i,marginInlineStart:`calc(50% - ${(0,m.bf)(e.calc(i).div(2).equal())})`,top:0}},f),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:l}}}}}},De=e=>{const{componentCls:t,iconSize:i,lineHeight:l,iconSizeSM:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(i).div(2).add(e.controlHeightLG).equal(),padding:`${(0,m.bf)(e.paddingXXS)} ${(0,m.bf)(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(i).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:l}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(i).sub(r).div(2).add(e.controlHeightLG).equal()}}}}}},We=e=>{const{componentCls:t,navContentMaxWidth:i,navArrowColor:l,stepsNavActiveColor:r,motionDurationSlow:c}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${c}`,[`${t}-item-content`]:{maxWidth:i},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},Q.vS),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,m.bf)(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,m.bf)(e.lineWidth)} ${e.lineType} ${l}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${c}, inset-inline-start ${c}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,m.bf)(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},ye=e=>{const{antCls:t,componentCls:i}=e;return{[`&${i}-with-progress`]:{[`${i}-item`]:{paddingTop:e.paddingXXS,[`&-process ${i}-item-container ${i}-item-icon ${i}-icon`]:{color:e.processIconColor}},[`&${i}-vertical > ${i}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${i}-item-container > ${i}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.calc(e.iconSize).div(2).sub(e.lineWidth).add(e.paddingXXS).equal()}},[`&, &${i}-small`]:{[`&${i}-horizontal ${i}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${i}-small${i}-vertical > ${i}-item > ${i}-item-container > ${i}-item-tail`]:{insetInlineStart:e.calc(e.iconSizeSM).div(2).sub(e.lineWidth).add(e.paddingXXS).equal()},[`&${i}-label-vertical`]:{[`${i}-item ${i}-item-tail`]:{top:e.calc(e.margin).sub(e.calc(e.lineWidth).mul(2).equal()).equal()}},[`${i}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:e.calc(e.calc(e.iconSize).sub(e.stepsProgressSize).sub(e.calc(e.lineWidth).mul(2).equal()).equal()).div(2).equal(),insetInlineStart:e.calc(e.calc(e.iconSize).sub(e.stepsProgressSize).sub(e.calc(e.lineWidth).mul(2).equal()).equal()).div(2).equal()}}}}},n=e=>{const{componentCls:t,descriptionMaxWidth:i,lineHeight:l,dotCurrentSize:r,dotSize:c,motionDurationSlow:f}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:l},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,m.bf)(e.calc(i).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,m.bf)(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:c,height:c,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(c).div(2).equal(),paddingInlineEnd:0,lineHeight:`${(0,m.bf)(c)}`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${f}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(c).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:i},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(c).sub(r).div(2).equal(),width:r,height:r,lineHeight:`${(0,m.bf)(r)}`,background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(r).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(c).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(r).div(2).equal(),top:0,insetInlineStart:e.calc(c).sub(r).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(c).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,m.bf)(e.calc(c).add(e.paddingXS).equal())} 0 ${(0,m.bf)(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(c).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(c).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(r).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(c).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},d=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},s=e=>{const{componentCls:t,iconSizeSM:i,fontSizeSM:l,fontSize:r,colorTextDescription:c}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:i,height:i,marginTop:0,marginBottom:0,marginInline:`0 ${(0,m.bf)(e.marginXS)}`,fontSize:l,lineHeight:`${(0,m.bf)(i)}`,textAlign:"center",borderRadius:i},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${(0,m.bf)(i)}`,"&::after":{top:e.calc(i).div(2).equal()}},[`${t}-item-description`]:{color:c,fontSize:r},[`${t}-item-tail`]:{top:e.calc(i).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:i,lineHeight:`${(0,m.bf)(i)}`,transform:"none"}}}}},$=e=>{const{componentCls:t,iconSizeSM:i,iconSize:l}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${(0,m.bf)(l)}`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(l).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).add(l).equal())} 0 ${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(i).div(2).sub(e.lineWidth).equal(),padding:`${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).add(i).equal())} 0 ${(0,m.bf)(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:`${(0,m.bf)(i)}`}}}}},y;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(y||(y={}));const N=(e,t)=>{const i=`${t.componentCls}-item`,l=`${e}IconColor`,r=`${e}TitleColor`,c=`${e}DescriptionColor`,f=`${e}TailColor`,w=`${e}IconBgColor`,b=`${e}IconBorderColor`,x=`${e}DotColor`;return{[`${i}-${e} ${i}-icon`]:{backgroundColor:t[w],borderColor:t[b],[`> ${t.componentCls}-icon`]:{color:t[l],[`${t.componentCls}-icon-dot`]:{background:t[x]}}},[`${i}-${e}${i}-custom ${i}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[x]}},[`${i}-${e} > ${i}-container > ${i}-content > ${i}-title`]:{color:t[r],"&::after":{backgroundColor:t[f]}},[`${i}-${e} > ${i}-container > ${i}-content > ${i}-description`]:{color:t[c]},[`${i}-${e} > ${i}-container > ${i}-tail::after`]:{backgroundColor:t[f]}}},I=e=>{const{componentCls:t,motionDurationSlow:i}=e,l=`${t}-item`,r=`${l}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[l]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${l}-container > ${l}-tail, > ${l}-container > ${l}-content > ${l}-title::after`]:{display:"none"}}},[`${l}-container`]:{outline:"none",["&:focus-visible"]:{[r]:Object.assign({},(0,Q.oN)(e))}},[`${r}, ${l}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:`${(0,m.bf)(e.iconSize)}`,textAlign:"center",borderRadius:e.iconSize,border:`${(0,m.bf)(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${i}, border-color ${i}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${l}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).sub(e.paddingXXS).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${i}`,content:'""'}},[`${l}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${(0,m.bf)(e.titleLineHeight)}`,"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${l}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${l}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},N(y.wait,e)),N(y.process,e)),{[`${l}-process > ${l}-container > ${l}-title`]:{fontWeight:e.fontWeightStrong}}),N(y.finish,e)),N(y.error,e)),{[`${l}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${l}-disabled`]:{cursor:"not-allowed"}})},C=e=>{const{componentCls:t,motionDurationSlow:i}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${i}`}},"&:hover":{[`${t}-item`]:{["&-title, &-subtitle, &-description"]:{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},T=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Q.Wf)(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),I(e)),C(e)),ve(e)),s(e)),$(e)),De(e)),n(e)),We(e)),d(e)),ye(e)),Me(e))}},A=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive});var G=(0,Ze.I$)("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:i,colorTextLightSolid:l,colorText:r,colorPrimary:c,colorTextDescription:f,colorTextQuaternary:w,colorError:b,colorBorderSecondary:x,colorSplit:O}=e,Z=(0,He.TS)(e,{processIconColor:l,processTitleColor:r,processDescriptionColor:r,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,processTailColor:O,waitTitleColor:f,waitDescriptionColor:f,waitTailColor:O,waitDotColor:t,finishIconColor:c,finishTitleColor:r,finishDescriptionColor:f,finishTailColor:c,finishDotColor:c,errorIconColor:l,errorTitleColor:b,errorDescriptionColor:b,errorTailColor:O,errorIconBgColor:b,errorIconBorderColor:b,errorDotColor:b,stepsNavActiveColor:c,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:w,inlineTailColor:x});return[T(Z)]},A),J=g(13763);function re(e){return e.filter(t=>t)}function _(e,t){if(e)return e;const i=(0,J.Z)(t).map(l=>{if(u.isValidElement(l)){const{props:r}=l;return Object.assign({},r)}return null});return re(i)}var k=function(e,t){var i={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0&&(i[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,l=Object.getOwnPropertySymbols(e);r{const{percent:t,size:i,className:l,rootClassName:r,direction:c,items:f,responsive:w=!0,current:b=0,children:x,style:O}=e,Z=k(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:X}=(0,Pe.Z)(w),{getPrefixCls:K,direction:R,steps:j}=u.useContext(je.E_),ee=u.useMemo(()=>w&&X?"vertical":c,[X,c]),te=(0,Be.Z)(i),h=K("steps",e.prefixCls),[ie,D]=G(h),B=e.type==="inline",ae=K("",e.iconPrefix),ge=_(f,x),V=B?void 0:t,q=Object.assign(Object.assign({},j==null?void 0:j.style),O),pe=Y()(j==null?void 0:j.className,{[`${h}-rtl`]:R==="rtl",[`${h}-with-progress`]:V!==void 0},l,r,D),ne={finish:u.createElement(p.Z,{className:`${h}-finish-icon`}),error:u.createElement(xe.Z,{className:`${h}-error-icon`})},ce=L=>{let{node:P,status:H}=L;if(H==="process"&&V!==void 0){const v=te==="small"?32:40;return u.createElement("div",{className:`${h}-progress-icon`},u.createElement(oe.Z,{type:"circle",percent:V,size:v,strokeWidth:4,format:()=>null}),P)}return P},se=(L,P)=>L.description?u.createElement(Le.Z,{title:L.description},P):P;return ie(u.createElement(Te,Object.assign({icons:ne},Z,{style:q,current:b,size:te,items:ge,itemRender:B?se:void 0,stepIcon:ce,direction:ee,prefixCls:h,iconPrefix:ae,className:pe})))};F.Step=Te.Step;var M=F}}]); diff --git a/546.790bf438.async.js b/546.790bf438.async.js new file mode 100644 index 00000000..15abda0e --- /dev/null +++ b/546.790bf438.async.js @@ -0,0 +1,78 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[546],{56841:function(on,st){var b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};st.Z=b},83888:function(on,st){var b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};st.Z=b},92933:function(on,st){var b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};st.Z=b},3740:function(on,st,b){b.d(st,{Z:function(){return qe}});var o=b(79685);function qe(ee,ce,mt){const ct=o.useRef({});function xt(Bt){if(!ct.current||ct.current.data!==ee||ct.current.childrenColumnName!==ce||ct.current.getRowKey!==mt){let Pe=function(Ce){Ce.forEach((nt,Xt)=>{const Ft=mt(nt,Xt);Ct.set(Ft,nt),nt&&typeof nt=="object"&&ce in nt&&Pe(nt[ce]||[])})};const Ct=new Map;Pe(ee),ct.current={data:ee,childrenColumnName:ce,kvMap:Ct,getRowKey:mt}}return ct.current.kvMap.get(Bt)}return[xt]}},73198:function(on,st,b){b.d(st,{Z:function(){return Ga}});var o=b(79685),qe={},ee="rc-table-internal-hook",ce=b(89342),mt=b(53327),ct=b(79269),xt=b(18020),Bt=b(50374);function Ct(e){var t=o.createContext(void 0),n=function(l){var a=l.value,c=l.children,s=o.useRef(a);s.current=a;var i=o.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),d=(0,ce.Z)(i,1),f=d[0];return(0,ct.Z)(function(){(0,Bt.unstable_batchedUpdates)(function(){f.listeners.forEach(function(u){u(a)})})},[a]),o.createElement(t.Provider,{value:f},c)};return{Context:t,Provider:n,defaultValue:e}}function Pe(e,t){var n=(0,mt.Z)(typeof t=="function"?t:function(u){if(t===void 0)return u;if(!Array.isArray(t))return u[t];var v={};return t.forEach(function(m){v[m]=u[m]}),v}),r=o.useContext(e==null?void 0:e.Context),l=r||{},a=l.listeners,c=l.getValue,s=o.useRef();s.current=n(r?c():e==null?void 0:e.defaultValue);var i=o.useState({}),d=(0,ce.Z)(i,2),f=d[1];return(0,ct.Z)(function(){if(!r)return;function u(v){var m=n(v);(0,xt.Z)(s.current,m,!0)||f({})}return a.add(u),function(){a.delete(u)}},[r]),s.current}var Ce=b(21137),nt=b(52401);function Xt(){var e=o.createContext(null);function t(){return o.useContext(e)}function n(l,a){var c=(0,nt.Yr)(l),s=function(d,f){var u=c?{ref:f}:{},v=o.useRef(0),m=o.useRef(d),p=t();return p!==null?o.createElement(l,(0,Ce.Z)({},d,u)):((!a||a(m.current,d))&&(v.current+=1),m.current=d,o.createElement(e.Provider,{value:v.current},o.createElement(l,(0,Ce.Z)({},d,u))))};return c?o.forwardRef(s):s}function r(l,a){var c=(0,nt.Yr)(l),s=function(d,f){var u=c?{ref:f}:{};return t(),o.createElement(l,(0,Ce.Z)({},d,u))};return c?o.memo(o.forwardRef(s),a):o.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var Ft=Xt(),ur=Ft.makeImmutable,Bn=Ft.responseImmutable,fr=Ft.useImmutableMark,St=Xt(),ln=St.makeImmutable,wt=St.responseImmutable,Fn=St.useImmutableMark,Hn=Ct(),We=Hn;function Mn(e,t){var n=o.useRef(0);n.current+=1;var r=o.useRef(e),l=[];Object.keys(e||{}).map(function(c){var s;(e==null?void 0:e[c])!==((s=r.current)===null||s===void 0?void 0:s[c])&&l.push(c)}),r.current=e;var a=o.useRef([]);return l.length&&(a.current=l),o.useDebugValue(n.current),o.useDebugValue(a.current.join(", ")),t&&console.log("".concat(t,":"),n.current,a.current),n.current}var mr=null,gn=o.memo(function(){var e=Mn();return o.createElement("h1",null,"Render Times: ",e)});gn.displayName="RenderBlock";var Et=b(63195),P=b(93264),le=b(6346),hn=b(68591),Y=b.n(hn),Ut=b(23398),xn=b(85540),yn=b(30765),bn=o.createContext({renderWithProps:!1}),Cn=bn,Sn="RC_TABLE_KEY";function Kn(e){return e==null?[]:Array.isArray(e)?e:[e]}function an(e){var t=[],n={};return e.forEach(function(r){for(var l=r||{},a=l.key,c=l.dataIndex,s=a||Kn(c).join("-")||Sn;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function sn(e){return e!=null}function cn(e){return e&&(0,Et.Z)(e)==="object"&&!Array.isArray(e)&&!o.isValidElement(e)}function zn(e,t,n,r,l,a){var c=o.useContext(Cn),s=Fn(),i=(0,Ut.Z)(function(){if(sn(r))return[r];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],f=(0,xn.Z)(e,d),u=f,v=void 0;if(l){var m=l(f,e,n);cn(m)?(u=m.children,v=m.props,c.renderWithProps=!0):u=m}return[u,v]},[s,e,r,t,l,n],function(d,f){if(a){var u=(0,ce.Z)(d,2),v=u[1],m=(0,ce.Z)(f,2),p=m[1];return a(p,v)}return c.renderWithProps?!0:!(0,xt.Z)(d,f,!0)});return i}function _(e,t,n,r){var l=e+t-1;return e<=r&&l>=n}function xe(e,t){return Pe(We,function(n){var r=_(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var ge=function(t){var n=t.ellipsis,r=t.rowType,l=t.children,a,c=n===!0?{showTitle:!0}:n;return c&&(c.showTitle||r==="header")&&(typeof l=="string"||typeof l=="number"?a=l.toString():o.isValidElement(l)&&typeof l.props.children=="string"&&(a=l.props.children)),a};function de(e){var t,n,r,l,a,c,s,i,d=e.component,f=e.children,u=e.ellipsis,v=e.scope,m=e.prefixCls,p=e.className,x=e.align,g=e.record,S=e.render,y=e.dataIndex,C=e.renderIndex,T=e.shouldCellUpdate,E=e.index,N=e.rowType,O=e.colSpan,D=e.rowSpan,$=e.fixLeft,j=e.fixRight,R=e.firstFixLeft,w=e.lastFixLeft,h=e.firstFixRight,I=e.lastFixRight,F=e.appendNode,K=e.additionalProps,Z=K===void 0?{}:K,X=e.isSticky,re="".concat(m,"-cell"),z=Pe(We,["supportSticky","allColumnsFixedLeft"]),q=z.supportSticky,Re=z.allColumnsFixedLeft,ke=zn(g,y,C,f,S,T),De=(0,ce.Z)(ke,2),he=De[0],U=De[1],me={},Ie=typeof $=="number"&&q,J=typeof j=="number"&&q;Ie&&(me.position="sticky",me.left=$),J&&(me.position="sticky",me.right=j);var $e=(t=(n=(r=U==null?void 0:U.colSpan)!==null&&r!==void 0?r:Z.colSpan)!==null&&n!==void 0?n:O)!==null&&t!==void 0?t:1,L=(l=(a=(c=U==null?void 0:U.rowSpan)!==null&&c!==void 0?c:Z.rowSpan)!==null&&a!==void 0?a:D)!==null&&l!==void 0?l:1,A=xe(E,L),M=(0,ce.Z)(A,2),B=M[0],W=M[1],k=function(fe){var He;g&&W(E,E+L-1),Z==null||(He=Z.onMouseEnter)===null||He===void 0||He.call(Z,fe)},G=function(fe){var He;g&&W(-1,-1),Z==null||(He=Z.onMouseLeave)===null||He===void 0||He.call(Z,fe)};if($e===0||L===0)return null;var oe=(s=Z.title)!==null&&s!==void 0?s:ge({rowType:N,ellipsis:u,children:he}),Ne=Y()(re,p,(i={},(0,le.Z)(i,"".concat(re,"-fix-left"),Ie&&q),(0,le.Z)(i,"".concat(re,"-fix-left-first"),R&&q),(0,le.Z)(i,"".concat(re,"-fix-left-last"),w&&q),(0,le.Z)(i,"".concat(re,"-fix-left-all"),w&&Re&&q),(0,le.Z)(i,"".concat(re,"-fix-right"),J&&q),(0,le.Z)(i,"".concat(re,"-fix-right-first"),h&&q),(0,le.Z)(i,"".concat(re,"-fix-right-last"),I&&q),(0,le.Z)(i,"".concat(re,"-ellipsis"),u),(0,le.Z)(i,"".concat(re,"-with-append"),F),(0,le.Z)(i,"".concat(re,"-fix-sticky"),(Ie||J)&&X&&q),(0,le.Z)(i,"".concat(re,"-row-hover"),!U&&B),i),Z.className,U==null?void 0:U.className),te={};x&&(te.textAlign=x);var Ye=(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},me),Z.style),te),U==null?void 0:U.style),Oe=he;return(0,Et.Z)(Oe)==="object"&&!Array.isArray(Oe)&&!o.isValidElement(Oe)&&(Oe=null),u&&(w||h)&&(Oe=o.createElement("span",{className:"".concat(re,"-content")},Oe)),o.createElement(d,(0,Ce.Z)({},U,Z,{className:Ne,style:Ye,title:oe,scope:v,onMouseEnter:k,onMouseLeave:G,colSpan:$e!==1?$e:null,rowSpan:L!==1?L:null}),F,Oe)}var ue=o.memo(de);function Q(e,t,n,r,l,a){var c=n[e]||{},s=n[t]||{},i,d;c.fixed==="left"?i=r.left[l==="rtl"?t:e]:s.fixed==="right"&&(d=r.right[l==="rtl"?e:t]);var f=!1,u=!1,v=!1,m=!1,p=n[t+1],x=n[e-1],g=!(a!=null&&a.children);if(l==="rtl"){if(i!==void 0){var S=x&&x.fixed==="left";m=!S&&g}else if(d!==void 0){var y=p&&p.fixed==="right";v=!y&&g}}else if(i!==void 0){var C=p&&p.fixed==="left";f=!C&&g}else if(d!==void 0){var T=x&&x.fixed==="right";u=!T&&g}return{fixLeft:i,fixRight:d,lastFixLeft:f,firstFixRight:u,lastFixRight:v,firstFixLeft:m,isSticky:r.isSticky}}var Be=o.createContext({}),Ze=Be;function Ve(e){var t=e.className,n=e.index,r=e.children,l=e.colSpan,a=l===void 0?1:l,c=e.rowSpan,s=e.align,i=Pe(We,["prefixCls","direction"]),d=i.prefixCls,f=i.direction,u=o.useContext(Ze),v=u.scrollColumnIndex,m=u.stickyOffsets,p=u.flattenColumns,x=u.columns,g=n+a-1,S=g+1===v?a+1:a,y=Q(n,n+S-1,p,m,f,x==null?void 0:x[n]);return o.createElement(ue,(0,Ce.Z)({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:s,colSpan:S,rowSpan:c,render:function(){return r}},y))}var Fe=b(98787),Gt=["children"];function Ht(e){var t=e.children,n=(0,Fe.Z)(e,Gt);return o.createElement("tr",n,t)}function Rt(e){var t=e.children;return t}Rt.Row=Ht,Rt.Cell=Ve;var $t=Rt;function Mt(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,a=Pe(We,"prefixCls"),c=r.length-1,s=r[c],i=o.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:s!=null&&s.scrollbar?c:null,columns:l}},[s,r,c,n,l]);return o.createElement(Ze.Provider,{value:i},o.createElement("tfoot",{className:"".concat(a,"-summary")},t))}var lt=wt(Mt),It=$t,Kt=b(58718),at=b(46222),dn=b(68786),Nt=b(27534),Yt=b(55883);function kt(e,t,n,r,l,a,c){e.push({record:t,indent:n,index:c});var s=a(t),i=l==null?void 0:l.has(s);if(t&&Array.isArray(t[r])&&i)for(var d=0;d1?R-1:0),h=1;h=0;s-=1){var i=t[s],d=n&&n[s],f=d&&d[Xe];if(i||f||c){var u=f||{},v=u.columnType,m=(0,Fe.Z)(u,ho);l.unshift(o.createElement("col",(0,Ce.Z)({key:s,style:{width:i}},m))),c=!0}}return o.createElement("colgroup",null,l)}var vr=xo,Se=b(57963),yo=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function bo(e,t){return(0,o.useMemo)(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:g.title?a:c,prefixCls:f,key:m[x]},S,{additionalProps:y,rowType:"header"}))}))}hr.displayName="HeaderRow";var Co=hr;function So(e){var t=[];function n(c,s){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];var d=s,f=c.filter(Boolean).map(function(u){var v={key:u.key,className:u.className||"",children:u.title,column:u,colStart:d},m=1,p=u.children;return p&&p.length>0&&(m=n(p,d,i+1).reduce(function(x,g){return x+g},0),v.hasSubColumns=!0),"colSpan"in u&&(m=u.colSpan),"rowSpan"in u&&(v.rowSpan=u.rowSpan),v.colSpan=m,v.colEnd=v.colStart+m-1,t[i].push(v),d+=m,m});return f}n(e,0);for(var r=t.length,l=function(s){t[s].forEach(function(i){!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-s)})},a=0;a1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Ro(e,t,n){return o.useMemo(function(){if(t&&t>0){var r=0,l=0;e.forEach(function(v){var m=yr(t,v.width);m?r+=m:l+=1});var a=Math.max(t,n),c=Math.max(a-r,l),s=l,i=c/l,d=0,f=e.map(function(v){var m=(0,P.Z)({},v),p=yr(t,m.width);if(p)m.width=p;else{var x=Math.floor(i);m.width=s===1?c:x,c-=x,s-=1}return d+=m.width,m});if(d1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&(0,Et.Z)(n)==="object"}).reduce(function(n,r,l){var a=r.fixed,c=a===!0?"left":a,s="".concat(t,"-").concat(l),i=r.children;return i&&i.length>0?[].concat((0,Se.Z)(n),(0,Se.Z)(An(i,s).map(function(d){return(0,P.Z)({fixed:c},d)}))):[].concat((0,Se.Z)(n),[(0,P.Z)((0,P.Z)({key:s},r),{},{fixed:c})])},[])}function oi(e){for(var t=!0,n=0;n=0;a-=1){var c=e[a];if(l&&c.fixed!=="right")l=!1;else if(!l&&c.fixed==="right"){warning(!1,"Index ".concat(a+1," of `columns` missing `fixed='right'` prop."));break}}}function No(e){return e.map(function(t){var n=t.fixed,r=(0,Fe.Z)(t,Io),l=n;return n==="left"?l="right":n==="right"&&(l="left"),(0,P.Z)({fixed:l},r)})}function ko(e,t){var n=e.prefixCls,r=e.columns,l=e.children,a=e.expandable,c=e.expandedKeys,s=e.columnTitle,i=e.getRowKey,d=e.onTriggerExpand,f=e.expandIcon,u=e.rowExpandable,v=e.expandIconColumnIndex,m=e.direction,p=e.expandRowByClick,x=e.columnWidth,g=e.fixed,S=e.scrollWidth,y=e.clientWidth,C=o.useMemo(function(){return r||jn(l)},[r,l]),T=o.useMemo(function(){if(a){var R,w=C.slice();if(!w.includes(qe)){var h=v||0;h>=0&&w.splice(h,0,qe)}var I=w.indexOf(qe);w=w.filter(function(X,re){return X!==qe||re===I});var F=C[I],K;(g==="left"||g)&&!v?K="left":(g==="right"||g)&&v===C.length?K="right":K=F?F.fixed:null;var Z=(R={},(0,le.Z)(R,Xe,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,le.Z)(R,"title",s),(0,le.Z)(R,"fixed",K),(0,le.Z)(R,"className","".concat(n,"-row-expand-icon-cell")),(0,le.Z)(R,"width",x),(0,le.Z)(R,"render",function(re,z,q){var Re=i(z,q),ke=c.has(Re),De=u?u(z):!0,he=f({prefixCls:n,expanded:ke,expandable:De,record:z,onExpand:d});return p?o.createElement("span",{onClick:function(me){return me.stopPropagation()}},he):he}),R);return w.map(function(X){return X===qe?Z:X})}return C.filter(function(X){return X!==qe})},[a,C,i,c,f,m]),E=o.useMemo(function(){var R=T;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,T,m]),N=o.useMemo(function(){return m==="rtl"?No(An(E)):An(E)},[E,m,S]),O=Ro(N,S,y),D=(0,ce.Z)(O,2),$=D[0],j=D[1];return[E,$,j]}var To=ko;function Zo(e){var t,n=e.prefixCls,r=e.record,l=e.onExpand,a=e.expanded,c=e.expandable,s="".concat(n,"-row-expand-icon");if(!c)return o.createElement("span",{className:Y()(s,"".concat(n,"-row-spaced"))});var i=function(f){l(r,f),f.stopPropagation()};return o.createElement("span",{className:Y()(s,(t={},(0,le.Z)(t,"".concat(n,"-row-expanded"),a),(0,le.Z)(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:i})}function Oo(e,t,n){var r=[];function l(a){(a||[]).forEach(function(c,s){r.push(t(c,s)),l(c[n])})}return l(e),r}function Po(e,t,n){var r=go(e),l=r.expandIcon,a=r.expandedRowKeys,c=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,i=r.expandedRowRender,d=r.onExpand,f=r.onExpandedRowsChange,u=r.childrenColumnName,v=l||Zo,m=u||"children",p=o.useMemo(function(){return i?"row":e.expandable&&e.internalHooks===ee&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(E){return E&&(0,Et.Z)(E)==="object"&&E[m]})?"nest":!1},[!!i,t]),x=o.useState(function(){return c||(s?Oo(t,n,m):[])}),g=(0,ce.Z)(x,2),S=g[0],y=g[1],C=o.useMemo(function(){return new Set(a||S||[])},[a,S]),T=o.useCallback(function(E){var N=n(E,t.indexOf(E)),O,D=C.has(N);D?(C.delete(N),O=(0,Se.Z)(C)):O=[].concat((0,Se.Z)(C),[N]),y(O),d&&d(!D,E),f&&f(O)},[n,C,t,d,f]);return[r,p,C,v,m,T]}function Bo(e,t,n,r){var l=e.map(function(a,c){return Q(c,c,e,t,n,r==null?void 0:r[c])});return(0,Ut.Z)(function(){return l},[l],function(a,c){return!(0,xt.Z)(a,c)})}function br(e){var t=(0,o.useRef)(e),n=(0,o.useState)({}),r=(0,ce.Z)(n,2),l=r[1],a=(0,o.useRef)(null),c=(0,o.useRef)([]);function s(i){c.current.push(i);var d=Promise.resolve();a.current=d,d.then(function(){if(a.current===d){var f=c.current,u=t.current;c.current=[],f.forEach(function(v){t.current=v(t.current)}),a.current=null,u!==t.current&&l({})}})}return(0,o.useEffect)(function(){return function(){a.current=null}},[]),[t.current,s]}function Fo(e){var t=(0,o.useRef)(e||null),n=(0,o.useRef)();function r(){window.clearTimeout(n.current)}function l(c){t.current=c,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function a(){return t.current}return(0,o.useEffect)(function(){return r},[]),[l,a]}function Ho(){var e=o.useState(-1),t=(0,ce.Z)(e,2),n=t[0],r=t[1],l=o.useState(-1),a=(0,ce.Z)(l,2),c=a[0],s=a[1],i=o.useCallback(function(d,f){r(d),s(f)},[]);return[n,c,i]}var Mo=b(68450),Cr=(0,Mo.Z)()?window:null;function Ko(e,t){var n=(0,Et.Z)(e)==="object"?e:{},r=n.offsetHeader,l=r===void 0?0:r,a=n.offsetSummary,c=a===void 0?0:a,s=n.offsetScroll,i=s===void 0?0:s,d=n.getContainer,f=d===void 0?function(){return Cr}:d,u=f()||Cr;return o.useMemo(function(){var v=!!e;return{isSticky:v,stickyClassName:v?"".concat(t,"-sticky-holder"):"",offsetHeader:l,offsetSummary:c,offsetScroll:i,container:u}},[i,l,c,t,u])}function zo(e,t,n){var r=(0,o.useMemo)(function(){for(var l=[],a=[],c=0,s=0,i=0;i=u&&(Z=u-v),c({scrollLeft:Z/u*(f+2)}),y.current.x=h.pageX},j=function(){if(a.current){var h=(0,wr.os)(a.current).top,I=h+a.current.offsetHeight,F=i===window?document.documentElement.scrollTop+window.innerHeight:(0,wr.os)(i).top+i.clientHeight;I-(0,Nt.Z)()<=F||h>=F-s?S(function(K){return(0,P.Z)((0,P.Z)({},K),{},{isHiddenScrollBar:!0})}):S(function(K){return(0,P.Z)((0,P.Z)({},K),{},{isHiddenScrollBar:!1})})}},R=function(h){S(function(I){return(0,P.Z)((0,P.Z)({},I),{},{scrollLeft:h/f*u||0})})};return o.useImperativeHandle(n,function(){return{setScrollLeft:R}}),o.useEffect(function(){var w=(0,En.Z)(document.body,"mouseup",O,!1),h=(0,En.Z)(document.body,"mousemove",$,!1);return j(),function(){w.remove(),h.remove()}},[v,E]),o.useEffect(function(){var w=(0,En.Z)(i,"scroll",j,!1),h=(0,En.Z)(window,"resize",j,!1);return function(){w.remove(),h.remove()}},[i]),o.useEffect(function(){g.isHiddenScrollBar||S(function(w){var h=a.current;return h?(0,P.Z)((0,P.Z)({},w),{},{scrollLeft:h.scrollLeft/h.scrollWidth*h.clientWidth}):w})},[g.isHiddenScrollBar]),f<=u||!v||g.isHiddenScrollBar?null:o.createElement("div",{style:{height:(0,Nt.Z)(),width:u,bottom:s},className:"".concat(d,"-sticky-scroll")},o.createElement("div",{onMouseDown:D,ref:m,className:Y()("".concat(d,"-sticky-scroll-bar"),(0,le.Z)({},"".concat(d,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))},Ao=o.forwardRef(jo);function Wo(e){return null}var Vo=Wo;function Xo(e){return null}var Uo=Xo,Er="rc-table",Go=[],Yo={};function Jo(){return"No Data"}function Qo(e,t){var n,r=(0,P.Z)({rowKey:"key",prefixCls:Er,emptyText:Jo},e),l=r.prefixCls,a=r.className,c=r.rowClassName,s=r.style,i=r.data,d=r.rowKey,f=r.scroll,u=r.tableLayout,v=r.direction,m=r.title,p=r.footer,x=r.summary,g=r.caption,S=r.id,y=r.showHeader,C=r.components,T=r.emptyText,E=r.onRow,N=r.onHeaderRow,O=r.internalHooks,D=r.transformColumns,$=r.internalRefs,j=r.tailor,R=r.getContainerWidth,w=r.sticky,h=i||Go,I=!!h.length,F=O===ee,K=o.useCallback(function(ne,se){return(0,xn.Z)(C,ne)||se},[C]),Z=o.useMemo(function(){return typeof d=="function"?d:function(ne){var se=ne&&ne[d];return se}},[d]),X=K(["body"]),re=Ho(),z=(0,ce.Z)(re,3),q=z[0],Re=z[1],ke=z[2],De=Po(r,h,Z),he=(0,ce.Z)(De,6),U=he[0],me=he[1],Ie=he[2],J=he[3],$e=he[4],L=he[5],A=f==null?void 0:f.x,M=o.useState(0),B=(0,ce.Z)(M,2),W=B[0],k=B[1],G=To((0,P.Z)((0,P.Z)((0,P.Z)({},r),U),{},{expandable:!!U.expandedRowRender,columnTitle:U.columnTitle,expandedKeys:Ie,getRowKey:Z,onTriggerExpand:L,expandIcon:J,expandIconColumnIndex:U.expandIconColumnIndex,direction:v,scrollWidth:F&&j&&typeof A=="number"?A:null,clientWidth:W}),F?D:null),oe=(0,ce.Z)(G,3),Ne=oe[0],te=oe[1],Ye=oe[2],Oe=Ye!=null?Ye:A,vt=o.useMemo(function(){return{columns:Ne,flattenColumns:te}},[Ne,te]),fe=o.useRef(),He=o.useRef(),we=o.useRef(),jt=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:fe.current,scrollTo:function(se){var Qe;if(we.current instanceof HTMLElement){var Ge=se.index,ft=se.top,rn=se.key;if(ft){var Wt;(Wt=we.current)===null||Wt===void 0||Wt.scrollTo({top:ft})}else{var Vt,pn=rn!=null?rn:Z(h[Ge]);(Vt=we.current.querySelector('[data-row-key="'.concat(pn,'"]')))===null||Vt===void 0||Vt.scrollIntoView()}}else(Qe=we.current)!==null&&Qe!==void 0&&Qe.scrollTo&&we.current.scrollTo(se)}}});var Zt=o.useRef(),tn=o.useState(!1),ie=(0,ce.Z)(tn,2),Ee=ie[0],ve=ie[1],Me=o.useState(!1),Te=(0,ce.Z)(Me,2),pe=Te[0],ye=Te[1],rt=br(new Map),et=(0,ce.Z)(rt,2),bt=et[0],be=et[1],vn=an(te),Ot=vn.map(function(ne){return bt.get(ne)}),At=o.useMemo(function(){return Ot},[Ot.join("_")]),Ue=Lo(At,te.length,v),Ke=f&&sn(f.y),je=f&&sn(Oe)||!!U.fixed,pt=je&&te.some(function(ne){var se=ne.fixed;return se}),gt=o.useRef(),ot=Ko(w,l),ht=ot.isSticky,nr=ot.offsetHeader,rr=ot.offsetSummary,or=ot.offsetScroll,Tn=ot.stickyClassName,lr=ot.container,V=o.useMemo(function(){return x==null?void 0:x(h)},[x,h]),ae=(Ke||ht)&&o.isValidElement(V)&&V.type===$t&&V.props.fixed,ze,Le,Je;Ke&&(Le={overflowY:"scroll",maxHeight:f.y}),je&&(ze={overflowX:"auto"},Ke||(Le={overflowY:"hidden"}),Je={width:Oe===!0?"auto":Oe,minWidth:"100%"});var tt=o.useCallback(function(ne,se){(0,at.Z)(fe.current)&&be(function(Qe){if(Qe.get(ne)!==se){var Ge=new Map(Qe);return Ge.set(ne,se),Ge}return Qe})},[]),it=Fo(null),Pt=(0,ce.Z)(it,2),Ya=Pt[0],eo=Pt[1];function Zn(ne,se){se&&(typeof se=="function"?se(ne):se.scrollLeft!==ne&&(se.scrollLeft=ne,se.scrollLeft!==ne&&setTimeout(function(){se.scrollLeft=ne},0)))}var nn=(0,mt.Z)(function(ne){var se=ne.currentTarget,Qe=ne.scrollLeft,Ge=v==="rtl",ft=typeof Qe=="number"?Qe:se.scrollLeft,rn=se||Yo;if(!eo()||eo()===rn){var Wt;Ya(rn),Zn(ft,He.current),Zn(ft,we.current),Zn(ft,Zt.current),Zn(ft,(Wt=gt.current)===null||Wt===void 0?void 0:Wt.setScrollLeft)}var Vt=se||He.current;if(Vt){var pn=Vt.scrollWidth,dr=Vt.clientWidth;if(pn===dr){ve(!1),ye(!1);return}Ge?(ve(-ft0)):(ve(ft>0),ye(ft1?x-h:0,F=(0,P.Z)((0,P.Z)((0,P.Z)({},O),i),{},{flex:"0 0 ".concat(h,"px"),width:"".concat(h,"px"),marginRight:I,pointerEvents:"auto"}),K=o.useMemo(function(){return f?R<=1:$===0||R===0||R>1},[R,$,f]);K?F.visibility="hidden":f&&(F.height=u==null?void 0:u(R));var Z=K?function(){return null}:v,X={};return(R===0||$===0)&&(X.rowSpan=1,X.colSpan=1),o.createElement(ue,(0,Ce.Z)({className:Y()(p,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:"div",prefixCls:t.prefixCls,key:C,record:s,index:a,renderIndex:c,dataIndex:m,render:Z,shouldCellUpdate:n.shouldCellUpdate},T,{appendNode:E,additionalProps:(0,P.Z)((0,P.Z)({},N),{},{style:F},X)}))}var rl=nl,ol=["data","index","className","rowKey","style","extra","getHeight"],ll=o.forwardRef(function(e,t){var n=e.data,r=e.index,l=e.className,a=e.rowKey,c=e.style,s=e.extra,i=e.getHeight,d=(0,Fe.Z)(e,ol),f=n.record,u=n.indent,v=n.index,m=Pe(We,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=m.scrollX,x=m.flattenColumns,g=m.prefixCls,S=m.fixColumn,y=m.componentWidth,C=_e(f,a,r,u),T=C.rowSupportExpand,E=C.expanded,N=C.rowProps,O=C.expandedRowRender,D=C.expandedRowClassName,$;if(T&&E){var j=O(f,r,u+1,E),R=D==null?void 0:D(f,r,u),w={};S&&(w={style:(0,le.Z)({},"--virtual-width","".concat(y,"px"))});var h="".concat(g,"-expanded-row-cell");$=o.createElement("div",{className:Y()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(u+1),R)},o.createElement(ue,{component:"div",prefixCls:g,className:Y()(h,(0,le.Z)({},"".concat(h,"-fixed"),S)),additionalProps:w},j))}var I=(0,P.Z)((0,P.Z)({},c),{},{width:p});s&&(I.position="absolute",I.pointerEvents="none");var F=o.createElement("div",(0,Ce.Z)({},N,d,{ref:T?null:t,className:Y()(l,"".concat(g,"-row"),N==null?void 0:N.className,(0,le.Z)({},"".concat(g,"-row-extra"),s)),style:(0,P.Z)((0,P.Z)({},I),N==null?void 0:N.style)}),x.map(function(K,Z){return o.createElement(rl,{key:Z,rowInfo:C,column:K,colIndex:Z,indent:u,index:r,renderIndex:v,record:f,inverse:s,getHeight:i})}));return T?o.createElement("div",{ref:t},F,$):F}),al=wt(ll),Nr=al,il=o.forwardRef(function(e,t){var n=e.data,r=e.onScroll,l=Pe(We,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),a=l.flattenColumns,c=l.onColumnResize,s=l.getRowKey,i=l.expandedKeys,d=l.prefixCls,f=l.childrenColumnName,u=l.emptyNode,v=l.scrollX,m=Pe($r),p=m.sticky,x=m.scrollY,g=m.listItemHeight,S=o.useRef(),y=Jt(n,f,i,s),C=o.useMemo(function(){var R=0;return a.map(function(w){var h=w.width,I=w.key;return R+=h,[I,h,R]})},[a]),T=o.useMemo(function(){return C.map(function(R){return R[2]})},[C]);o.useEffect(function(){C.forEach(function(R){var w=(0,ce.Z)(R,2),h=w[0],I=w[1];c(h,I)})},[C]),o.useImperativeHandle(t,function(){var R={scrollTo:function(h){var I;(I=S.current)===null||I===void 0||I.scrollTo(h)}};return Object.defineProperty(R,"scrollLeft",{get:function(){var h;return((h=S.current)===null||h===void 0?void 0:h.getScrollInfo().x)||0},set:function(h){var I;(I=S.current)===null||I===void 0||I.scrollTo({left:h})}}),R});var E=function(w,h){var I,F=(I=y[h])===null||I===void 0?void 0:I.record,K=w.onCell;if(K){var Z,X=K(F,h);return(Z=X==null?void 0:X.rowSpan)!==null&&Z!==void 0?Z:1}return 1},N=function(w){var h=w.start,I=w.end,F=w.getSize,K=w.offsetY;if(I<0)return null;for(var Z=a.filter(function(J){return E(J,h)===0}),X=h,re=function($e){if(Z=Z.filter(function(L){return E(L,$e)===0}),!Z.length)return X=$e,1},z=h;z>=0&&!re(z);z-=1);for(var q=a.filter(function(J){return E(J,I)!==1}),Re=I,ke=function($e){if(q=q.filter(function(L){return E(L,$e)!==1}),!q.length)return Re=Math.max($e-1,I),1},De=I;De1})&&he.push($e)},me=X;me<=Re;me+=1)U(me);var Ie=he.map(function(J){var $e=y[J],L=s($e.record,J),A=function(W){var k=J+W-1,G=s(y[k].record,k),oe=F(L,G);return oe.bottom-oe.top},M=F(L);return o.createElement(Nr,{key:J,data:$e,rowKey:L,index:J,style:{top:-K+M.top},extra:!0,getHeight:A})});return Ie},O=o.useMemo(function(){return{columnsOffset:T}},[T]),D="".concat(d,"-tbody"),$;if(y.length){var j={};p&&(j.position="sticky",j.bottom=0,(0,Et.Z)(p)==="object"&&p.offsetScroll&&(j.bottom=p.offsetScroll)),$=o.createElement(el.Z,{fullHeight:!1,ref:S,styles:{horizontalScrollBar:j},className:Y()(D,"".concat(D,"-virtual")),height:x,itemHeight:g||24,data:y,itemKey:function(w){return s(w.record)},scrollWidth:v,onVirtualScroll:function(w){var h=w.x;r({scrollLeft:h})},extraRender:N},function(R,w,h){var I=s(R.record,w);return o.createElement(Nr,(0,Ce.Z)({data:R,rowKey:I,index:w},h))})}else $=o.createElement("div",{className:Y()("".concat(d,"-placeholder"))},o.createElement(ue,{component:"div",prefixCls:d},u));return o.createElement(Ir.Provider,{value:O},$)}),sl=wt(il),cl=sl,dl=function(t,n){var r=n.ref,l=n.onScroll;return o.createElement(cl,{ref:r,data:t,onScroll:l})};function ul(e,t){var n=e.columns,r=e.scroll,l=e.sticky,a=e.prefixCls,c=a===void 0?Er:a,s=e.className,i=e.listItemHeight,d=e.components,f=r||{},u=f.x,v=f.y;typeof u!="number"&&(u=1),typeof v!="number"&&(v=500);var m=o.useMemo(function(){return{sticky:l,scrollY:v,listItemHeight:i}},[l,v,i]);return o.createElement($r.Provider,{value:m},o.createElement(_o,(0,Ce.Z)({},e,{className:Y()(s,"".concat(c,"-virtual")),scroll:(0,P.Z)((0,P.Z)({},r),{},{x:u}),components:(0,P.Z)((0,P.Z)({},d),{},{body:dl}),columns:n,internalHooks:ee,tailor:!0,ref:t})))}var fl=o.forwardRef(ul);function kr(e){return ln(fl,e)}var li=kr(),ai=null;function ml(e){return null}var vl=ml;function pl(e){return null}var gl=pl,hl=b(13795),Tr=b(55568),Wn=b(25263),xl=b(82921),yl=b(46501);function bl(e){const[t,n]=(0,o.useState)(null);return[(0,o.useCallback)((a,c,s)=>{const i=t!=null?t:a,d=Math.min(i||0,a),f=Math.max(i||0,a),u=c.slice(d,f+1).map(p=>e(p)),v=u.some(p=>!s.has(p)),m=[];return u.forEach(p=>{v?(s.has(p)||m.push(p),s.add(p)):(s.delete(p),m.push(p))}),n(v?f:null),m},[t]),a=>{n(a)}]}var Vn=b(50245),Rn=b(42359),Zr=b(37741),Or=b(48829);const Tt={},Xn="SELECT_ALL",Un="SELECT_INVERT",Gn="SELECT_NONE",Pr=[],Br=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat((0,Se.Z)(n),(0,Se.Z)(Br(e,r[e]))))}),n};var Cl=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:l,getCheckboxProps:a,onChange:c,onSelect:s,onSelectAll:i,onSelectInvert:d,onSelectNone:f,onSelectMultiple:u,columnWidth:v,type:m,selections:p,fixed:x,renderCell:g,hideSelectAll:S,checkStrictly:y=!0}=t||{},{prefixCls:C,data:T,pageData:E,getRecordByKey:N,getRowKey:O,expandType:D,childrenColumnName:$,locale:j,getPopupContainer:R}=e,w=(0,Vn.ln)("Table"),[h,I]=bl(L=>L),[F,K]=(0,yl.Z)(r||l||Pr,{value:r}),Z=o.useRef(new Map),X=(0,o.useCallback)(L=>{if(n){const A=new Map;L.forEach(M=>{let B=N(M);!B&&Z.current.has(M)&&(B=Z.current.get(M)),A.set(M,B)}),Z.current=A}},[N,n]);o.useEffect(()=>{X(F)},[F]);const{keyEntities:re}=(0,o.useMemo)(()=>{if(y)return{keyEntities:null};let L=T;if(n){const A=new Set(T.map((B,W)=>O(B,W))),M=Array.from(Z.current).reduce((B,W)=>{let[k,G]=W;return A.has(k)?B:B.concat(G)},[]);L=[].concat((0,Se.Z)(L),(0,Se.Z)(M))}return(0,xl.I8)(L,{externalGetKey:O,childrenPropName:$})},[T,O,y,$,n]),z=(0,o.useMemo)(()=>Br($,E),[$,E]),q=(0,o.useMemo)(()=>{const L=new Map;return z.forEach((A,M)=>{const B=O(A,M),W=(a?a(A):null)||{};L.set(B,W)}),L},[z,O,a]),Re=(0,o.useCallback)(L=>{var A;return!!(!((A=q.get(O(L)))===null||A===void 0)&&A.disabled)},[q,O]),[ke,De]=(0,o.useMemo)(()=>{if(y)return[F||[],[]];const{checkedKeys:L,halfCheckedKeys:A}=(0,Wn.S)(F,!0,re,Re);return[L||[],A]},[F,y,re,Re]),he=(0,o.useMemo)(()=>{const L=m==="radio"?ke.slice(0,1):ke;return new Set(L)},[ke,m]),U=(0,o.useMemo)(()=>m==="radio"?new Set:new Set(De),[De,m]);o.useEffect(()=>{t||K(Pr)},[!!t]);const me=(0,o.useCallback)((L,A)=>{let M,B;X(L),n?(M=L,B=L.map(W=>Z.current.get(W))):(M=[],B=[],L.forEach(W=>{const k=N(W);k!==void 0&&(M.push(W),B.push(k))})),K(M),c==null||c(M,B,{type:A})},[K,N,c,n]),Ie=(0,o.useCallback)((L,A,M,B)=>{if(s){const W=M.map(k=>N(k));s(N(L),A,W,B)}me(M,"single")},[s,N,me]),J=(0,o.useMemo)(()=>!p||S?null:(p===!0?[Xn,Un,Gn]:p).map(A=>A===Xn?{key:"all",text:j.selectionAll,onSelect(){me(T.map((M,B)=>O(M,B)).filter(M=>{const B=q.get(M);return!(B!=null&&B.disabled)||he.has(M)}),"all")}}:A===Un?{key:"invert",text:j.selectInvert,onSelect(){const M=new Set(he);E.forEach((W,k)=>{const G=O(W,k),oe=q.get(G);oe!=null&&oe.disabled||(M.has(G)?M.delete(G):M.add(G))});const B=Array.from(M);d&&(w.deprecated(!1,"onSelectInvert","onChange"),d(B)),me(B,"invert")}}:A===Gn?{key:"none",text:j.selectNone,onSelect(){f==null||f(),me(Array.from(he).filter(M=>{const B=q.get(M);return B==null?void 0:B.disabled}),"none")}}:A).map(A=>Object.assign(Object.assign({},A),{onSelect:function(){for(var M,B,W=arguments.length,k=new Array(W),G=0;G{var A;if(!t)return L.filter(ie=>ie!==Tt);let M=(0,Se.Z)(L);const B=new Set(he),W=z.map(O).filter(ie=>!q.get(ie).disabled),k=W.every(ie=>B.has(ie)),G=W.some(ie=>B.has(ie)),oe=()=>{const ie=[];k?W.forEach(ve=>{B.delete(ve),ie.push(ve)}):W.forEach(ve=>{B.has(ve)||(B.add(ve),ie.push(ve))});const Ee=Array.from(B);i==null||i(!k,Ee.map(ve=>N(ve)),ie.map(ve=>N(ve))),me(Ee,"all"),I(null)};let Ne,te;if(m!=="radio"){let ie;if(J){const pe={getPopupContainer:R,items:J.map((ye,rt)=>{const{key:et,text:bt,onSelect:be}=ye;return{key:et!=null?et:rt,onClick:()=>{be==null||be(W)},label:bt}})};ie=o.createElement("div",{className:`${C}-selection-extra`},o.createElement(Zr.Z,{menu:pe,getPopupContainer:R},o.createElement("span",null,o.createElement(hl.Z,null))))}const Ee=z.map((pe,ye)=>{const rt=O(pe,ye),et=q.get(rt)||{};return Object.assign({checked:B.has(rt)},et)}).filter(pe=>{let{disabled:ye}=pe;return ye}),ve=!!Ee.length&&Ee.length===z.length,Me=ve&&Ee.every(pe=>{let{checked:ye}=pe;return ye}),Te=ve&&Ee.some(pe=>{let{checked:ye}=pe;return ye});te=o.createElement(Rn.Z,{checked:ve?Me:!!z.length&&k,indeterminate:ve?!Me&&Te:!k&&G,onChange:oe,disabled:z.length===0||ve,"aria-label":ie?"Custom selection":"Select all",skipGroup:!0}),Ne=!S&&o.createElement("div",{className:`${C}-selection`},te,ie)}let Ye;m==="radio"?Ye=(ie,Ee,ve)=>{const Me=O(Ee,ve),Te=B.has(Me);return{node:o.createElement(Or.ZP,Object.assign({},q.get(Me),{checked:Te,onClick:pe=>pe.stopPropagation(),onChange:pe=>{B.has(Me)||Ie(Me,!0,[Me],pe.nativeEvent)}})),checked:Te}}:Ye=(ie,Ee,ve)=>{var Me;const Te=O(Ee,ve),pe=B.has(Te),ye=U.has(Te),rt=q.get(Te);let et;return D==="nest"?et=ye:et=(Me=rt==null?void 0:rt.indeterminate)!==null&&Me!==void 0?Me:ye,{node:o.createElement(Rn.Z,Object.assign({},rt,{indeterminate:et,checked:pe,skipGroup:!0,onClick:bt=>bt.stopPropagation(),onChange:bt=>{let{nativeEvent:be}=bt;const{shiftKey:vn}=be,Ot=W.findIndex(Ue=>Ue===Te),At=ke.some(Ue=>W.includes(Ue));if(vn&&y&&At){const Ue=h(Ot,W,B),Ke=Array.from(B);u==null||u(!pe,Ke.map(je=>N(je)),Ue.map(je=>N(je))),me(Ke,"multiple")}else{const Ue=ke;if(y){const Ke=pe?(0,Tr._5)(Ue,Te):(0,Tr.L0)(Ue,Te);Ie(Te,!pe,Ke,be)}else{const Ke=(0,Wn.S)([].concat((0,Se.Z)(Ue),[Te]),!0,re,Re),{checkedKeys:je,halfCheckedKeys:pt}=Ke;let gt=je;if(pe){const ot=new Set(je);ot.delete(Te),gt=(0,Wn.S)(Array.from(ot),{checked:!1,halfCheckedKeys:pt},re,Re).checkedKeys}Ie(Te,!pe,gt,be)}}I(pe?null:Ot)}})),checked:pe}};const Oe=(ie,Ee,ve)=>{const{node:Me,checked:Te}=Ye(ie,Ee,ve);return g?g(Te,Ee,ve,Me):Me};if(!M.includes(Tt))if(M.findIndex(ie=>{var Ee;return((Ee=ie[Xe])===null||Ee===void 0?void 0:Ee.columnType)==="EXPAND_COLUMN"})===0){const[ie,...Ee]=M;M=[ie,Tt].concat((0,Se.Z)(Ee))}else M=[Tt].concat((0,Se.Z)(M));const vt=M.indexOf(Tt);M=M.filter((ie,Ee)=>ie!==Tt||Ee===vt);const fe=M[vt-1],He=M[vt+1];let we=x;we===void 0&&((He==null?void 0:He.fixed)!==void 0?we=He.fixed:(fe==null?void 0:fe.fixed)!==void 0&&(we=fe.fixed)),we&&fe&&((A=fe[Xe])===null||A===void 0?void 0:A.columnType)==="EXPAND_COLUMN"&&fe.fixed===void 0&&(fe.fixed=we);const jt=Y()(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:p&&m==="checkbox"}),Zt=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(te):t.columnTitle:Ne,tn={fixed:we,width:v,className:`${C}-selection-column`,title:Zt(),render:Oe,onCell:t.onCell,[Xe]:{className:jt}};return M.map(ie=>ie===Tt?tn:ie)},[O,z,t,ke,he,U,v,J,D,q,u,Ie,Re]),he]},Sl=b(3139);function wl(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function El(e,t){return(0,o.useImperativeHandle)(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy!="undefined"?new Proxy(r,{get(l,a){return n[a]?n[a]:Reflect.get(l,a)}}):wl(r,n)})}var Fr=b(54272);function Rl(e,t,n,r){const l=n-t;return e/=r/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}function Yn(e){return e!=null&&e===e.window}function $l(e,t){var n,r;if(typeof window=="undefined")return 0;const l=t?"scrollTop":"scrollLeft";let a=0;return Yn(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[l]:(e instanceof HTMLElement||e)&&(a=e[l]),e&&!Yn(e)&&typeof a!="number"&&(a=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[l]),a}function Il(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:l=450}=t,a=n(),c=$l(a,!0),s=Date.now(),i=()=>{const f=Date.now()-s,u=Rl(f>l?l:f,c,e,l);Yn(a)?a.scrollTo(window.pageXOffset,u):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=u:a.scrollTop=u,f{l(a,d),d.stopPropagation()},className:Y()(i,{[`${i}-spaced`]:!s,[`${i}-expanded`]:s&&c,[`${i}-collapsed`]:s&&!c}),"aria-label":c?e.collapse:e.expand,"aria-expanded":c})}}var Ml=Hl;function Kl(e){return(n,r)=>{const l=n.querySelector(`.${e}-container`);let a=r;if(l){const c=getComputedStyle(l),s=parseInt(c.borderLeftWidth,10),i=parseInt(c.borderRightWidth,10);a=r-s-i}return a}}function Dt(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function fn(e,t){return t?`${t}-${e}`:`${e}`}function $n(e,t){return typeof e=="function"?e(t):e}function zl(e,t){const n=$n(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var Ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Dl=Ll,Jn=b(83317),jl=function(t,n){return o.createElement(Jn.Z,(0,Ce.Z)({},t,{ref:n,icon:Dl}))},Al=o.forwardRef(jl),Wl=b(28120);function Vl(e){const t=o.useRef(e),n=(0,Wl.Z)();return[()=>t.current,r=>{t.current=r,n()}]}var Mr=b(10951),Kr=b(32626),Xl=b(97034),Ul=b(61736),Gl=b(9550),Yl=b(66907),Jl=b(79714);function Ql(e){let{value:t,onChange:n,filterSearch:r,tablePrefixCls:l,locale:a}=e;return r?o.createElement("div",{className:`${l}-filter-dropdown-search`},o.createElement(Jl.Z,{prefix:o.createElement(Yl.Z,null),placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null}var zr=Ql,Lr=b(66214);const ql=e=>{const{keyCode:t}=e;t===Lr.Z.ENTER&&e.stopPropagation()};var _l=o.forwardRef((e,t)=>o.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:ql,ref:t},e.children));function en(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:l}=n;t.push(r),l&&(t=[].concat((0,Se.Z)(t),(0,Se.Z)(en(l))))}),t}function ea(e){return e.some(t=>{let{children:n}=t;return n})}function Dr(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function jr(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:l,searchValue:a,filterSearch:c}=e;return t.map((s,i)=>{const d=String(s.value);if(s.children)return{key:d||i,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:jr({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:l,searchValue:a,filterSearch:c})};const f=l?Rn.Z:Or.ZP,u={key:s.value!==void 0?d:i,label:o.createElement(o.Fragment,null,o.createElement(f,{checked:r.includes(d)}),o.createElement("span",null,s.text))};return a.trim()?typeof c=="function"?c(a,s)?u:null:Dr(a,s.text)?u:null:u})}function Qn(e){return e||[]}function ta(e){var t,n;const{tablePrefixCls:r,prefixCls:l,column:a,dropdownPrefixCls:c,columnKey:s,filterMultiple:i,filterMode:d="menu",filterSearch:f=!1,filterState:u,triggerFilter:v,locale:m,children:p,getPopupContainer:x,rootClassName:g}=e,{filterDropdownOpen:S,onFilterDropdownOpenChange:y,filterResetToDefaultFilteredValue:C,defaultFilteredValue:T,filterDropdownVisible:E,onFilterDropdownVisibleChange:N}=a,[O,D]=o.useState(!1),$=!!(u&&(!((t=u.filteredKeys)===null||t===void 0)&&t.length||u.forceFiltered)),j=k=>{D(k),y==null||y(k),N==null||N(k)},R=(n=S!=null?S:E)!==null&&n!==void 0?n:O,w=u==null?void 0:u.filteredKeys,[h,I]=Vl(Qn(w)),F=k=>{let{selectedKeys:G}=k;I(G)},K=(k,G)=>{let{node:oe,checked:Ne}=G;F(i?{selectedKeys:k}:{selectedKeys:Ne&&oe.key?[oe.key]:[]})};o.useEffect(()=>{O&&F({selectedKeys:Qn(w)})},[w]);const[Z,X]=o.useState([]),re=k=>{X(k)},[z,q]=o.useState(""),Re=k=>{const{value:G}=k.target;q(G)};o.useEffect(()=>{O||q("")},[O]);const ke=k=>{const G=k&&k.length?k:null;if(G===null&&(!u||!u.filteredKeys)||(0,xt.Z)(G,u==null?void 0:u.filteredKeys,!0))return null;v({column:a,key:s,filteredKeys:G})},De=()=>{j(!1),ke(h())},he=function(){let{confirm:k,closeDropdown:G}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};k&&ke([]),G&&j(!1),q(""),I(C?(T||[]).map(oe=>String(oe)):[])},U=function(){let{closeDropdown:k}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};k&&j(!1),ke(h())},me=(k,G)=>{G.source==="trigger"&&(k&&w!==void 0&&I(Qn(w)),j(k),!k&&!a.filterDropdown&&De())},Ie=Y()({[`${c}-menu-without-submenu`]:!ea(a.filters||[])}),J=k=>{if(k.target.checked){const G=en(a==null?void 0:a.filters).map(oe=>String(oe));I(G)}else I([])},$e=k=>{let{filters:G}=k;return(G||[]).map((oe,Ne)=>{const te=String(oe.value),Ye={title:oe.text,key:oe.value!==void 0?te:String(Ne)};return oe.children&&(Ye.children=$e({filters:oe.children})),Ye})},L=k=>{var G;return Object.assign(Object.assign({},k),{text:k.title,value:k.key,children:((G=k.children)===null||G===void 0?void 0:G.map(oe=>L(oe)))||[]})};let A;if(typeof a.filterDropdown=="function")A=a.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:k=>F({selectedKeys:k}),selectedKeys:h(),confirm:U,clearFilters:he,filters:a.filters,visible:R,close:()=>{j(!1)}});else if(a.filterDropdown)A=a.filterDropdown;else{const k=h()||[],G=()=>(a.filters||[]).length===0?o.createElement(Kr.Z,{image:Kr.Z.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):d==="tree"?o.createElement(o.Fragment,null,o.createElement(zr,{filterSearch:f,value:z,onChange:Re,tablePrefixCls:r,locale:m}),o.createElement("div",{className:`${r}-filter-dropdown-tree`},i?o.createElement(Rn.Z,{checked:k.length===en(a.filters).length,indeterminate:k.length>0&&k.lengthtypeof f=="function"?f(z,L(Ne)):Dr(z,Ne.title):void 0}))):o.createElement(o.Fragment,null,o.createElement(zr,{filterSearch:f,value:z,onChange:Re,tablePrefixCls:r,locale:m}),o.createElement(Xl.Z,{selectable:!0,multiple:i,prefixCls:`${c}-menu`,className:Ie,onSelect:F,onDeselect:F,selectedKeys:k,getPopupContainer:x,openKeys:Z,onOpenChange:re,items:jr({filters:a.filters||[],filterSearch:f,prefixCls:l,filteredKeys:h(),filterMultiple:i,searchValue:z})})),oe=()=>C?(0,xt.Z)((T||[]).map(Ne=>String(Ne)),k,!0):k.length===0;A=o.createElement(o.Fragment,null,G(),o.createElement("div",{className:`${l}-dropdown-btns`},o.createElement(Mr.ZP,{type:"link",size:"small",disabled:oe(),onClick:()=>he()},m.filterReset),o.createElement(Mr.ZP,{type:"primary",size:"small",onClick:De},m.filterConfirm)))}a.filterDropdown&&(A=o.createElement(Ul.J,{selectable:void 0},A));const M=()=>o.createElement(_l,{className:`${l}-dropdown`},A);let B;typeof a.filterIcon=="function"?B=a.filterIcon($):a.filterIcon?B=a.filterIcon:B=o.createElement(Al,null);const{direction:W}=o.useContext(Hr.E_);return o.createElement("div",{className:`${l}-column`},o.createElement("span",{className:`${r}-column-title`},p),o.createElement(Zr.Z,{dropdownRender:M,trigger:["click"],open:R,onOpenChange:me,getPopupContainer:x,placement:W==="rtl"?"bottomLeft":"bottomRight",rootClassName:g},o.createElement("span",{role:"button",tabIndex:-1,className:Y()(`${l}-trigger`,{active:$}),onClick:k=>{k.stopPropagation()}},B)))}var na=ta;function qn(e,t,n){let r=[];return(e||[]).forEach((l,a)=>{var c;const s=fn(a,n);if(l.filters||"filterDropdown"in l||"onFilter"in l)if("filteredValue"in l){let i=l.filteredValue;"filterDropdown"in l||(i=(c=i==null?void 0:i.map(String))!==null&&c!==void 0?c:i),r.push({column:l,key:Dt(l,s),filteredKeys:i,forceFiltered:l.filtered})}else r.push({column:l,key:Dt(l,s),filteredKeys:t&&l.defaultFilteredValue?l.defaultFilteredValue:void 0,forceFiltered:l.filtered});"children"in l&&(r=[].concat((0,Se.Z)(r),(0,Se.Z)(qn(l.children,t,s))))}),r}function Ar(e,t,n,r,l,a,c,s,i){return n.map((d,f)=>{const u=fn(f,s),{filterMultiple:v=!0,filterMode:m,filterSearch:p}=d;let x=d;if(x.filters||x.filterDropdown){const g=Dt(x,u),S=r.find(y=>{let{key:C}=y;return g===C});x=Object.assign(Object.assign({},x),{title:y=>o.createElement(na,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:x,columnKey:g,filterState:S,filterMultiple:v,filterMode:m,filterSearch:p,triggerFilter:a,locale:l,getPopupContainer:c,rootClassName:i},$n(d.title,y))})}return"children"in x&&(x=Object.assign(Object.assign({},x),{children:Ar(e,t,x.children,r,l,a,c,u,i)})),x})}function Wr(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:l,column:a}=n;const c=r,{filters:s,filterDropdown:i}=a;if(i)t[c]=l||null;else if(Array.isArray(l)){const d=en(s);t[c]=d.filter(f=>l.includes(String(f)))}else t[c]=null}),t}function Vr(e,t){return t.reduce((n,r)=>{const{column:{onFilter:l,filters:a},filteredKeys:c}=r;return l&&c&&c.length?n.filter(s=>c.some(i=>{const d=en(a),f=d.findIndex(v=>String(v)===String(i)),u=f!==-1?d[f]:i;return l(u,s)})):n},e)}const Xr=e=>e.flatMap(t=>"children"in t?[t].concat((0,Se.Z)(Xr(t.children||[]))):[t]);function ra(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:l,getPopupContainer:a,locale:c,rootClassName:s}=e;const i=(0,Vn.ln)("Table"),d=o.useMemo(()=>Xr(r||[]),[r]),[f,u]=o.useState(()=>qn(d,!0)),v=o.useMemo(()=>{const g=qn(d,!1);if(g.length===0)return g;let S=!0,y=!0;if(g.forEach(C=>{let{filteredKeys:T}=C;T!==void 0?S=!1:y=!1}),S){const C=(d||[]).map((T,E)=>Dt(T,fn(E)));return f.filter(T=>{let{key:E}=T;return C.includes(E)}).map(T=>{const E=d[C.findIndex(N=>N===T.key)];return Object.assign(Object.assign({},T),{column:Object.assign(Object.assign({},T.column),E),forceFiltered:E.filtered})})}return g},[d,f]),m=o.useMemo(()=>Wr(v),[v]),p=g=>{const S=v.filter(y=>{let{key:C}=y;return C!==g.key});S.push(g),u(S),l(Wr(S),S)};return[g=>Ar(t,n,g,v,c,p,a,void 0,s),v,m]}var oa=ra,la=b(3740),aa=b(51256),ia=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const a=e[l];typeof a!="function"&&(n[l]=a)}),n}function ca(e,t,n){const r=n&&typeof n=="object"?n:{},{total:l=0}=r,a=ia(r,["total"]),[c,s]=(0,o.useState)(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Ur})),i=(0,aa.Z)(c,a,{total:l>0?l:e}),d=Math.ceil((l||e)/i.pageSize);i.current>d&&(i.current=d||1);const f=(v,m)=>{s({current:v!=null?v:1,pageSize:m||i.pageSize})},u=(v,m)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,v,m)),f(v,m),t(v,m||(i==null?void 0:i.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},i),{onChange:u}),f]}var da=ca,ua=b(56841),fa=function(t,n){return o.createElement(Jn.Z,(0,Ce.Z)({},t,{ref:n,icon:ua.Z}))},ma=o.forwardRef(fa),va=b(83888),pa=function(t,n){return o.createElement(Jn.Z,(0,Ce.Z)({},t,{ref:n,icon:va.Z}))},ga=o.forwardRef(pa),ha=b(58898);const In="ascend",_n="descend";function Nn(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Gr(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function xa(e,t){return t?e[e.indexOf(t)+1]:e[0]}function er(e,t,n){let r=[];function l(a,c){r.push({column:a,key:Dt(a,c),multiplePriority:Nn(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,c)=>{const s=fn(c,n);a.children?("sortOrder"in a&&l(a,s),r=[].concat((0,Se.Z)(r),(0,Se.Z)(er(a.children,t,s)))):a.sorter&&("sortOrder"in a?l(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:Dt(a,s),multiplePriority:Nn(a),sortOrder:a.defaultSortOrder}))}),r}function Yr(e,t,n,r,l,a,c,s){return(t||[]).map((i,d)=>{const f=fn(d,s);let u=i;if(u.sorter){const v=u.sortDirections||l,m=u.showSorterTooltip===void 0?c:u.showSorterTooltip,p=Dt(u,f),x=n.find(D=>{let{key:$}=D;return $===p}),g=x?x.sortOrder:null,S=xa(v,g);let y;if(i.sortIcon)y=i.sortIcon({sortOrder:g});else{const D=v.includes(In)&&o.createElement(ga,{className:Y()(`${e}-column-sorter-up`,{active:g===In})}),$=v.includes(_n)&&o.createElement(ma,{className:Y()(`${e}-column-sorter-down`,{active:g===_n})});y=o.createElement("span",{className:Y()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(D&&$)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},D,$))}const{cancelSort:C,triggerAsc:T,triggerDesc:E}=a||{};let N=C;S===_n?N=E:S===In&&(N=T);const O=typeof m=="object"?Object.assign({title:N},m):{title:N};u=Object.assign(Object.assign({},u),{className:Y()(u.className,{[`${e}-column-sort`]:g}),title:D=>{const $=o.createElement("div",{className:`${e}-column-sorters`},o.createElement("span",{className:`${e}-column-title`},$n(i.title,D)),y);return m?o.createElement(ha.Z,Object.assign({},O),$):$},onHeaderCell:D=>{const $=i.onHeaderCell&&i.onHeaderCell(D)||{},j=$.onClick,R=$.onKeyDown;$.onClick=I=>{r({column:i,key:p,sortOrder:S,multiplePriority:Nn(i)}),j==null||j(I)},$.onKeyDown=I=>{I.keyCode===Lr.Z.ENTER&&(r({column:i,key:p,sortOrder:S,multiplePriority:Nn(i)}),R==null||R(I))};const w=zl(i.title,{}),h=w==null?void 0:w.toString();return g?$["aria-sort"]=g==="ascend"?"ascending":"descending":$["aria-label"]=h||"",$.className=Y()($.className,`${e}-column-has-sorters`),$.tabIndex=0,i.ellipsis&&($.title=(w!=null?w:"").toString()),$}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:Yr(e,u.children,n,r,l,a,c,f)})),u})}function Jr(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function Qr(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(Jr);return t.length===0&&e.length?Object.assign(Object.assign({},Jr(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function tr(e,t,n){const r=t.slice().sort((c,s)=>s.multiplePriority-c.multiplePriority),l=e.slice(),a=r.filter(c=>{let{column:{sorter:s},sortOrder:i}=c;return Gr(s)&&i});return a.length?l.sort((c,s)=>{for(let i=0;i{const s=c[n];return s?Object.assign(Object.assign({},c),{[n]:tr(s,t,n)}):c}):l}function ya(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:l,tableLocale:a,showSorterTooltip:c}=e;const[s,i]=o.useState(er(n,!0)),d=o.useMemo(()=>{let p=!0;const x=er(n,!1);if(!x.length)return s;const g=[];function S(C){p?g.push(C):g.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let y=null;return x.forEach(C=>{y===null?(S(C),C.sortOrder&&(C.multiplePriority===!1?p=!1:y=!0)):(y&&C.multiplePriority!==!1||(p=!1),S(C))}),g},[n,s]),f=o.useMemo(()=>{const p=d.map(x=>{let{column:g,sortOrder:S}=x;return{column:g,order:S}});return{sortColumns:p,sortColumn:p[0]&&p[0].column,sortOrder:p[0]&&p[0].order}},[d]);function u(p){let x;p.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?x=[p]:x=[].concat((0,Se.Z)(d.filter(g=>{let{key:S}=g;return S!==p.key})),[p]),i(x),r(Qr(x),x)}return[p=>Yr(t,p,d,u,l,a,c),d,f,()=>Qr(d)]}function qr(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=$n(n.title,t),"children"in r&&(r.children=qr(r.children,t)),r})}function ba(e){return[o.useCallback(n=>qr(n,e),[e])]}var Ca=Rr((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Sa=kr((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),H=b(26477),mn=b(73838),kn=b(4614),wa=b(44244),Ea=b(25830),Ra=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:l,tableHeaderBg:a,tablePaddingVertical:c,tablePaddingHorizontal:s,calc:i}=e,d=`${(0,H.bf)(n)} ${r} ${l}`,f=(u,v,m)=>({[`&${t}-${u}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{[` + > table > tbody > tr > th, + > table > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,H.bf)(i(v).mul(-1).equal())} + ${(0,H.bf)(i(i(m).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:d,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:d,borderTop:d,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{[` + > thead > tr > th, + > thead > tr > td, + > tbody > tr > th, + > tbody > tr > td, + > tfoot > tr > th, + > tfoot > tr > td + `]:{borderInlineEnd:d},"> thead":{"> tr:not(:last-child) > th":{borderBottom:d},"> tr > th::before":{backgroundColor:"transparent !important"}},[` + > thead > tr, + > tbody > tr, + > tfoot > tr + `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:d}},[` + > tbody > tr > th, + > tbody > tr > td + `]:{[`> ${t}-expanded-row-fixed`]:{margin:`${(0,H.bf)(i(c).mul(-1).equal())} ${(0,H.bf)(i(i(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:d,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{["> th, > td"]:{borderInlineEnd:0}}}}}},f("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),f("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:d,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,H.bf)(n)} 0 ${(0,H.bf)(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:d}}}},$a=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},kn.vS),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ia=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,[` + &:hover > th, + &:hover > td, + `]:{background:e.colorBgContainer}}}}},Na=b(40325),ka=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:l,paddingXS:a,lineType:c,tableBorderColor:s,tableExpandIconBg:i,tableExpandColumnWidth:d,borderRadius:f,tablePaddingVertical:u,tablePaddingHorizontal:v,tableExpandedRowBg:m,paddingXXS:p,expandIconMarginTop:x,expandIconSize:g,expandIconHalfInner:S,expandIconScale:y,calc:C}=e,T=`${(0,H.bf)(l)} ${c} ${s}`,E=C(p).sub(l).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},(0,Na.N)(e)),{position:"relative",float:"left",boxSizing:"border-box",width:g,height:g,padding:0,color:"inherit",lineHeight:(0,H.bf)(g),background:i,border:T,borderRadius:f,transform:`scale(${y})`,transition:`all ${r}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:S,insetInlineEnd:E,insetInlineStart:E,height:l},"&::after":{top:E,bottom:E,insetInlineStart:S,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:x,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{["> th, > td"]:{background:m}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${(0,H.bf)(C(u).mul(-1).equal())} ${(0,H.bf)(C(v).mul(-1).equal())}`,padding:`${(0,H.bf)(u)} ${(0,H.bf)(v)}`}}}},Ta=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:l,tableFilterDropdownSearchWidth:a,paddingXXS:c,paddingXS:s,colorText:i,lineWidth:d,lineType:f,tableBorderColor:u,headerIconColor:v,fontSizeSM:m,tablePaddingHorizontal:p,borderRadius:x,motionDurationSlow:g,colorTextDescription:S,colorPrimary:y,tableHeaderFilterActiveBg:C,colorTextDisabled:T,tableFilterDropdownBg:E,tableFilterDropdownHeight:N,controlItemBgHover:O,controlItemBgActive:D,boxShadowSecondary:$,filterDropdownMenuBg:j,calc:R}=e,w=`${n}-dropdown`,h=`${t}-filter-dropdown`,I=`${n}-tree`,F=`${(0,H.bf)(d)} ${f} ${u}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:R(c).mul(-1).equal(),marginInline:`${(0,H.bf)(c)} ${(0,H.bf)(R(p).div(2).mul(-1).equal())}`,padding:`0 ${(0,H.bf)(c)}`,color:v,fontSize:m,borderRadius:x,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:S,background:C},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[h]:Object.assign(Object.assign({},(0,kn.Wf)(e)),{minWidth:l,backgroundColor:E,borderRadius:x,boxShadow:$,overflow:"hidden",[`${w}-menu`]:{maxHeight:N,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:j,"&:empty::after":{display:"block",padding:`${(0,H.bf)(s)} 0`,color:T,fontSize:m,textAlign:"center",content:'"Not Found"'}},[`${h}-tree`]:{paddingBlock:`${(0,H.bf)(s)} 0`,paddingInline:s,[I]:{padding:0},[`${I}-treenode ${I}-node-content-wrapper:hover`]:{backgroundColor:O},[`${I}-treenode-checkbox-checked ${I}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:D}}},[`${h}-search`]:{padding:s,borderBottom:F,"&-input":{input:{minWidth:a},[r]:{color:T}}},[`${h}-checkall`]:{width:"100%",marginBottom:c,marginInlineStart:c},[`${h}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,H.bf)(R(s).sub(d).equal())} ${(0,H.bf)(s)}`,overflow:"hidden",borderTop:F}})}},{[`${n}-dropdown ${h}, ${h}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:i},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Za=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:l,zIndexTableFixed:a,tableBg:c,zIndexTableSticky:s,calc:i}=e,d=r;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:a,background:c},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:i(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:i(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:i(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${l}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${d}`}},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${d}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${d}`}},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${d}`}}}}},Oa=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${(0,H.bf)(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Pa=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${(0,H.bf)(n)} ${(0,H.bf)(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${(0,H.bf)(n)} ${(0,H.bf)(n)}`}}}}},Ba=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Fa=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:l,padding:a,paddingXS:c,headerIconColor:s,headerIconHoverColor:i,tableSelectionColumnWidth:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:u,tableRowHoverBg:v,tablePaddingHorizontal:m,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:d,[`&${t}-selection-col-with-dropdown`]:{width:p(d).add(l).add(p(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(d).add(p(c).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(d).add(l).add(p(a).div(4)).add(p(c).mul(2)).equal()}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column, + ${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,H.bf)(p(m).div(4).equal()),[r]:{color:s,fontSize:l,verticalAlign:"baseline","&:hover":{color:i}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:f,"&-row-hover":{background:u}}},[`> ${t}-cell-row-hover`]:{background:v}}}}}},Ha=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,l=(a,c,s,i)=>({[`${t}${t}-${a}`]:{fontSize:i,[` + ${t}-title, + ${t}-footer, + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${(0,H.bf)(c)} ${(0,H.bf)(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:(0,H.bf)(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${(0,H.bf)(r(c).mul(-1).equal())} ${(0,H.bf)(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:(0,H.bf)(r(c).mul(-1).equal()),marginInline:`${(0,H.bf)(r(n).sub(s).equal())} ${(0,H.bf)(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:(0,H.bf)(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},l("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),l("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Ma=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:l,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:l,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},Ka=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:l,tableScrollThumbSize:a,tableScrollBg:c,zIndexTableSticky:s,stickyScrollBarBorderRadius:i,lineWidth:d,lineType:f,tableBorderColor:u}=e,v=`${(0,H.bf)(d)} ${f} ${u}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,H.bf)(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:c,borderTop:v,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:i,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:l}}}}}}},_r=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:l}=e,a=`${(0,H.bf)(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${(0,H.bf)(l(n).mul(-1).equal())} 0 ${r}`}}}},za=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:l,tableBorderColor:a,calc:c}=e,s=`${(0,H.bf)(r)} ${l} ${a}`,i=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${i}${i}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,H.bf)(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:c(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}};const La=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:l,tableExpandColumnWidth:a,lineWidth:c,lineType:s,tableBorderColor:i,tableFontSize:d,tableBg:f,tableRadius:u,tableHeaderTextColor:v,motionDurationMid:m,tableHeaderBg:p,tableHeaderCellSplitColor:x,tableFooterTextColor:g,tableFooterBg:S,calc:y}=e,C=`${(0,H.bf)(c)} ${s} ${i}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,kn.dF)()),{[t]:Object.assign(Object.assign({},(0,kn.Wf)(e)),{fontSize:d,background:f,borderRadius:`${(0,H.bf)(u)} ${(0,H.bf)(u)} 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,H.bf)(u)} ${(0,H.bf)(u)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${(0,H.bf)(r)} ${(0,H.bf)(l)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${(0,H.bf)(r)} ${(0,H.bf)(l)}`},[`${t}-thead`]:{[` + > tr > th, + > tr > td + `]:{position:"relative",color:v,fontWeight:n,textAlign:"start",background:p,borderBottom:C,transition:`background ${m} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:x,transform:"translateY(-50%)",transition:`background-color ${m}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{["> th, > td"]:{transition:`background ${m}, border-color ${m}`,borderBottom:C,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:(0,H.bf)(y(r).mul(-1).equal()),marginInline:`${(0,H.bf)(y(a).sub(l).equal())} + ${(0,H.bf)(y(l).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:p,borderBottom:C,transition:`background ${m} ease`}}},[`${t}-footer`]:{padding:`${(0,H.bf)(r)} ${(0,H.bf)(l)}`,color:g,background:S}})}},Da=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:l,colorFillContent:a,controlItemBgActive:c,controlItemBgActiveHover:s,padding:i,paddingSM:d,paddingXS:f,colorBorderSecondary:u,borderRadiusLG:v,controlHeight:m,colorTextPlaceholder:p,fontSize:x,fontSizeSM:g,lineHeight:S,lineWidth:y,colorIcon:C,colorIconHover:T,opacityLoading:E,controlInteractiveSize:N}=e,O=new mn.C(l).onBackground(n).toHexShortString(),D=new mn.C(a).onBackground(n).toHexShortString(),$=new mn.C(t).onBackground(n).toHexShortString(),j=new mn.C(C),R=new mn.C(T),w=N/2-y,h=w*2+y*3;return{headerBg:$,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:D,bodySortBg:$,rowHoverBg:$,rowSelectedBg:c,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:i,cellPaddingInline:i,cellPaddingBlockMD:d,cellPaddingInlineMD:f,cellPaddingBlockSM:f,cellPaddingInlineSM:f,borderColor:u,headerBorderRadius:v,footerBg:$,footerColor:r,cellFontSize:x,cellFontSizeMD:x,cellFontSizeSM:x,headerSplitColor:u,fixedHeaderSortActiveBg:O,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:m,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(x*S-y*3)/2-Math.ceil((g*1.4-y*3)/2),headerIconColor:j.clone().setAlpha(j.getAlpha()*E).toRgbString(),headerIconHoverColor:R.clone().setAlpha(R.getAlpha()*E).toRgbString(),expandIconHalfInner:w,expandIconSize:h,expandIconScale:N/h}};var ja=(0,wa.I$)("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:l,headerBg:a,headerColor:c,headerSortActiveBg:s,headerSortHoverBg:i,bodySortBg:d,rowHoverBg:f,rowSelectedBg:u,rowSelectedHoverBg:v,rowExpandedBg:m,cellPaddingBlock:p,cellPaddingInline:x,cellPaddingBlockMD:g,cellPaddingInlineMD:S,cellPaddingBlockSM:y,cellPaddingInlineSM:C,borderColor:T,footerBg:E,footerColor:N,headerBorderRadius:O,cellFontSize:D,cellFontSizeMD:$,cellFontSizeSM:j,headerSplitColor:R,fixedHeaderSortActiveBg:w,headerFilterHoverBg:h,filterDropdownBg:I,expandIconBg:F,selectionColumnWidth:K,stickyScrollBarBg:Z,calc:X}=e,re=2,z=(0,Ea.TS)(e,{tableFontSize:D,tableBg:r,tableRadius:O,tablePaddingVertical:p,tablePaddingHorizontal:x,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:S,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:C,tableBorderColor:T,tableHeaderTextColor:c,tableHeaderBg:a,tableFooterTextColor:N,tableFooterBg:E,tableHeaderCellSplitColor:R,tableHeaderSortBg:s,tableHeaderSortHoverBg:i,tableBodySortBg:d,tableFixedHeaderSortActiveBg:w,tableHeaderFilterActiveBg:h,tableFilterDropdownBg:I,tableRowHoverBg:f,tableSelectedRowBg:u,tableSelectedRowHoverBg:v,zIndexTableFixed:re,zIndexTableSticky:re+1,tableFontSizeMiddle:$,tableFontSizeSmall:j,tableSelectionColumnWidth:K,tableExpandIconBg:F,tableExpandColumnWidth:X(l).add(X(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Z,tableScrollThumbBgHover:t,tableScrollBg:n});return[La(z),Oa(z),_r(z),Ma(z),Ta(z),Ra(z),Pa(z),ka(z),_r(z),Ia(z),Fa(z),Za(z),Ka(z),$a(z),Ha(z),Ba(z),za(z)]},Da,{unitless:{expandIconScale:!0}});const Aa=[],Wa=(e,t)=>{const{prefixCls:n,className:r,rootClassName:l,style:a,size:c,bordered:s,dropdownPrefixCls:i,dataSource:d,pagination:f,rowSelection:u,rowKey:v="key",rowClassName:m,columns:p,children:x,childrenColumnName:g,onChange:S,getPopupContainer:y,loading:C,expandIcon:T,expandable:E,expandedRowRender:N,expandIconColumnIndex:O,indentSize:D,scroll:$,sortDirections:j,locale:R,showSorterTooltip:w=!0,virtual:h}=e,I=(0,Vn.ln)("Table"),F=o.useMemo(()=>p||jn(x),[p,x]),K=o.useMemo(()=>F.some(V=>V.responsive),[F]),Z=(0,Zl.Z)(K),X=o.useMemo(()=>{const V=new Set(Object.keys(Z).filter(ae=>Z[ae]));return F.filter(ae=>!ae.responsive||ae.responsive.some(ze=>V.has(ze)))},[F,Z]),re=(0,Sl.Z)(e,["className","style","columns"]),{locale:z=Ol.Z,direction:q,table:Re,renderEmpty:ke,getPrefixCls:De,getPopupContainer:he}=o.useContext(Hr.E_),U=(0,Tl.Z)(c),me=Object.assign(Object.assign({},z.Table),R),Ie=d||Aa,J=De("table",n),$e=De("dropdown",i),[,L]=(0,Fl.ZP)(),A=(0,kl.Z)(J),[M,B]=ja(J,A),W=Object.assign({childrenColumnName:g,expandIconColumnIndex:O},E),{childrenColumnName:k="children"}=W,G=o.useMemo(()=>Ie.some(V=>V==null?void 0:V[k])?"nest":N||E&&E.expandedRowRender?"row":null,[Ie]),oe={body:o.useRef()},Ne=Kl(J),te=o.useRef(null),Ye=o.useRef(null);El(t,()=>Object.assign(Object.assign({},Ye.current),{nativeElement:te.current}));const Oe=o.useMemo(()=>typeof v=="function"?v:V=>V==null?void 0:V[v],[v]),[vt]=(0,la.Z)(Ie,k,Oe),fe={},He=function(V,ae){let ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Le,Je,tt;const it=Object.assign(Object.assign({},fe),V);ze&&((Le=fe.resetPagination)===null||Le===void 0||Le.call(fe),!((Je=it.pagination)===null||Je===void 0)&&Je.current&&(it.pagination.current=1),f&&f.onChange&&f.onChange(1,(tt=it.pagination)===null||tt===void 0?void 0:tt.pageSize)),$&&$.scrollToFirstRowOnChange!==!1&&oe.body.current&&Il(0,{getContainer:()=>oe.body.current}),S==null||S(it.pagination,it.filters,it.sorter,{currentDataSource:Vr(tr(Ie,it.sorterStates,k),it.filterStates),action:ae})},we=(V,ae)=>{He({sorter:V,sorterStates:ae},"sort",!1)},[jt,Zt,tn,ie]=ya({prefixCls:J,mergedColumns:X,onSorterChange:we,sortDirections:j||["ascend","descend"],tableLocale:me,showSorterTooltip:w}),Ee=o.useMemo(()=>tr(Ie,Zt,k),[Ie,Zt]);fe.sorter=ie(),fe.sorterStates=Zt;const ve=(V,ae)=>{He({filters:V,filterStates:ae},"filter",!0)},[Me,Te,pe]=oa({prefixCls:J,locale:me,dropdownPrefixCls:$e,mergedColumns:X,onFilterChange:ve,getPopupContainer:y||he,rootClassName:Y()(l,A)}),ye=Vr(Ee,Te);fe.filters=pe,fe.filterStates=Te;const rt=o.useMemo(()=>{const V={};return Object.keys(pe).forEach(ae=>{pe[ae]!==null&&(V[ae]=pe[ae])}),Object.assign(Object.assign({},tn),{filters:V})},[tn,pe]),[et]=ba(rt),bt=(V,ae)=>{He({pagination:Object.assign(Object.assign({},fe.pagination),{current:V,pageSize:ae})},"paginate")},[be,vn]=da(ye.length,bt,f);fe.pagination=f===!1?{}:sa(be,f),fe.resetPagination=vn;const Ot=o.useMemo(()=>{if(f===!1||!be.pageSize)return ye;const{current:V=1,total:ae,pageSize:ze=Ur}=be;return ye.lengthze?ye.slice((V-1)*ze,V*ze):ye:ye.slice((V-1)*ze,V*ze)},[!!f,ye,be&&be.current,be&&be.pageSize,be&&be.total]),[At,Ue]=Cl({prefixCls:J,data:ye,pageData:Ot,getRowKey:Oe,getRecordByKey:vt,expandType:G,childrenColumnName:k,locale:me,getPopupContainer:y||he},u),Ke=(V,ae,ze)=>{let Le;return typeof m=="function"?Le=Y()(m(V,ae,ze)):Le=Y()(m),Y()({[`${J}-row-selected`]:Ue.has(Oe(V,ae))},Le)};W.__PARENT_RENDER_ICON__=W.expandIcon,W.expandIcon=W.expandIcon||T||Ml(me),G==="nest"&&W.expandIconColumnIndex===void 0?W.expandIconColumnIndex=u?1:0:W.expandIconColumnIndex>0&&u&&(W.expandIconColumnIndex-=1),typeof W.indentSize!="number"&&(W.indentSize=typeof D=="number"?D:15);const je=o.useCallback(V=>et(At(Me(jt(V)))),[jt,Me,At]);let pt,gt;if(f!==!1&&(be!=null&&be.total)){let V;be.size?V=be.size:V=U==="small"||U==="middle"?"small":void 0;const ae=Je=>o.createElement(Pl.Z,Object.assign({},be,{className:Y()(`${J}-pagination ${J}-pagination-${Je}`,be.className),size:V})),ze=q==="rtl"?"left":"right",{position:Le}=be;if(Le!==null&&Array.isArray(Le)){const Je=Le.find(Pt=>Pt.includes("top")),tt=Le.find(Pt=>Pt.includes("bottom")),it=Le.every(Pt=>`${Pt}`=="none");!Je&&!tt&&!it&&(gt=ae(ze)),Je&&(pt=ae(Je.toLowerCase().replace("top",""))),tt&&(gt=ae(tt.toLowerCase().replace("bottom","")))}else gt=ae(ze)}let ot;typeof C=="boolean"?ot={spinning:C}:typeof C=="object"&&(ot=Object.assign({spinning:!0},C));const ht=Y()(A,`${J}-wrapper`,Re==null?void 0:Re.className,{[`${J}-wrapper-rtl`]:q==="rtl"},r,l,B),nr=Object.assign(Object.assign({},Re==null?void 0:Re.style),a),rr=R&&R.emptyText||(ke==null?void 0:ke("Table"))||o.createElement(Nl.Z,{componentName:"Table"}),or=h?Sa:Ca,Tn={},lr=o.useMemo(()=>{const{fontSize:V,lineHeight:ae,padding:ze,paddingXS:Le,paddingSM:Je}=L,tt=Math.floor(V*ae);switch(U){case"large":return ze*2+tt;case"small":return Le*2+tt;default:return Je*2+tt}},[L,U]);return h&&(Tn.listItemHeight=lr),M(o.createElement("div",{ref:te,className:ht,style:nr},o.createElement(Bl.Z,Object.assign({spinning:!1},ot),pt,o.createElement(or,Object.assign({},Tn,re,{ref:Ye,columns:X,direction:q,expandable:W,prefixCls:J,className:Y()({[`${J}-middle`]:U==="middle",[`${J}-small`]:U==="small",[`${J}-bordered`]:s,[`${J}-empty`]:Ie.length===0},A,B),data:Ot,rowKey:Oe,rowClassName:Ke,emptyText:rr,internalHooks:ee,internalRefs:oe,transformColumns:je,getContainerWidth:Ne})),gt)))};var Va=o.forwardRef(Wa);const Xa=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(Va,Object.assign({},e,{ref:t,_renderTimes:n.current}))},yt=o.forwardRef(Xa);yt.SELECTION_COLUMN=Tt,yt.EXPAND_COLUMN=qe,yt.SELECTION_ALL=Xn,yt.SELECTION_INVERT=Un,yt.SELECTION_NONE=Gn,yt.Column=vl,yt.ColumnGroup=gl,yt.Summary=It;var Ua=yt,Ga=Ua},9550:function(on,st,b){b.d(st,{Z:function(){return zn}});var o=b(8793),qe=b(57963),ee=b(79685),ce=b(26163),mt=b(21137),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},xt=ct,Bt=b(83317),Ct=function(xe,ge){return ee.createElement(Bt.Z,(0,mt.Z)({},xe,{ref:ge,icon:xt}))},Pe=ee.forwardRef(Ct),Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},nt=Ce,Xt=function(xe,ge){return ee.createElement(Bt.Z,(0,mt.Z)({},xe,{ref:ge,icon:nt}))},Ft=ee.forwardRef(Xt),ur=b(68591),Bn=b.n(ur),fr=b(55568),St=b(82921),ln=b(99248),wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Fn=wt,Hn=function(xe,ge){return ee.createElement(Bt.Z,(0,mt.Z)({},xe,{ref:ge,icon:Fn}))},We=ee.forwardRef(Hn),Mn=b(4477),mr=b(27685);const gn=4;function Et(_){const{dropPosition:xe,dropLevelOffset:ge,prefixCls:de,indent:ue,direction:Q="ltr"}=_,Be=Q==="ltr"?"left":"right",Ze=Q==="ltr"?"right":"left",Ve={[Be]:-ge*ue+gn,[Ze]:0};switch(xe){case-1:Ve.top=-3;break;case 1:Ve.bottom=-3;break;default:Ve.bottom=-3,Ve[Be]=ue+gn;break}return ee.createElement("div",{style:Ve,className:`${de}-drop-indicator`})}var P=b(15208),hn=ee.forwardRef((_,xe)=>{const{getPrefixCls:ge,direction:de,virtual:ue,tree:Q}=ee.useContext(ln.E_),{prefixCls:Be,className:Ze,showIcon:Ve=!1,showLine:Fe,switcherIcon:Gt,blockNode:Ht=!1,children:Rt,checkable:$t=!1,selectable:Mt=!0,draggable:lt,motion:It,style:Kt}=_,at=ge("tree",Be),dn=ge(),Nt=It!=null?It:Object.assign(Object.assign({},(0,Mn.Z)(dn)),{motionAppear:!1}),Yt=Object.assign(Object.assign({},_),{checkable:$t,selectable:Mt,showIcon:Ve,motion:Nt,blockNode:Ht,showLine:!!Fe,dropIndicatorRender:Et}),[kt,Jt]=(0,mr.ZP)(at),dt=ee.useMemo(()=>{if(!lt)return!1;let Ae={};switch(typeof lt){case"function":Ae.nodeDraggable=lt;break;case"object":Ae=Object.assign({},lt);break;default:break}return Ae.icon!==!1&&(Ae.icon=Ae.icon||ee.createElement(We,null)),Ae},[lt]),_e=Ae=>ee.createElement(P.Z,{prefixCls:at,switcherIcon:Gt,treeNodeProps:Ae,showLine:Fe});return kt(ee.createElement(o.Z,Object.assign({itemHeight:20,ref:xe,virtual:ue},Yt,{style:Object.assign(Object.assign({},Q==null?void 0:Q.style),Kt),prefixCls:at,className:Bn()({[`${at}-icon-hide`]:!Ve,[`${at}-block-node`]:Ht,[`${at}-unselectable`]:!Mt,[`${at}-rtl`]:de==="rtl"},Q==null?void 0:Q.className,Ze,Jt),direction:de,checkable:$t&&ee.createElement("span",{className:`${at}-checkbox-inner`}),selectable:Mt,switcherIcon:_e,draggable:dt}),Rt))}),Y;(function(_){_[_.None=0]="None",_[_.Start=1]="Start",_[_.End=2]="End"})(Y||(Y={}));function Ut(_,xe,ge){const{key:de,children:ue}=ge;function Q(Be){const Ze=Be[de],Ve=Be[ue];xe(Ze,Be)!==!1&&Ut(Ve||[],xe,ge)}_.forEach(Q)}function xn(_){let{treeData:xe,expandedKeys:ge,startKey:de,endKey:ue,fieldNames:Q}=_;const Be=[];let Ze=Y.None;if(de&&de===ue)return[de];if(!de||!ue)return[];function Ve(Fe){return Fe===de||Fe===ue}return Ut(xe,Fe=>{if(Ze===Y.End)return!1;if(Ve(Fe)){if(Be.push(Fe),Ze===Y.None)Ze=Y.Start;else if(Ze===Y.Start)return Ze=Y.End,!1}else Ze===Y.Start&&Be.push(Fe);return ge.includes(Fe)},(0,St.w$)(Q)),Be}function yn(_,xe,ge){const de=(0,qe.Z)(xe),ue=[];return Ut(_,(Q,Be)=>{const Ze=de.indexOf(Q);return Ze!==-1&&(ue.push(Be),de.splice(Ze,1)),!!de.length},(0,St.w$)(ge)),ue}var bn=function(_,xe){var ge={};for(var de in _)Object.prototype.hasOwnProperty.call(_,de)&&xe.indexOf(de)<0&&(ge[de]=_[de]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,de=Object.getOwnPropertySymbols(_);ue{var{defaultExpandAll:ge,defaultExpandParent:de,defaultExpandedKeys:ue}=_,Q=bn(_,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Be=ee.useRef(),Ze=ee.useRef(),Ve=()=>{const{keyEntities:dt}=(0,St.I8)(Sn(Q));let _e;return ge?_e=Object.keys(dt):de?_e=(0,fr.r7)(Q.expandedKeys||ue||[],dt):_e=Q.expandedKeys||ue,_e},[Fe,Gt]=ee.useState(Q.selectedKeys||Q.defaultSelectedKeys||[]),[Ht,Rt]=ee.useState(()=>Ve());ee.useEffect(()=>{"selectedKeys"in Q&&Gt(Q.selectedKeys)},[Q.selectedKeys]),ee.useEffect(()=>{"expandedKeys"in Q&&Rt(Q.expandedKeys)},[Q.expandedKeys]);const $t=(dt,_e)=>{var Ae;return"expandedKeys"in Q||Rt(dt),(Ae=Q.onExpand)===null||Ae===void 0?void 0:Ae.call(Q,dt,_e)},Mt=(dt,_e)=>{var Ae;const{multiple:un,fieldNames:zt}=Q,{node:wn,nativeEvent:ut}=_e,{key:Qt=""}=wn,qt=Sn(Q),Lt=Object.assign(Object.assign({},_e),{selected:!0}),Ln=(ut==null?void 0:ut.ctrlKey)||(ut==null?void 0:ut.metaKey),Dn=ut==null?void 0:ut.shiftKey;let Xe;un&&Ln?(Xe=dt,Be.current=Qt,Ze.current=Xe,Lt.selectedNodes=yn(qt,Xe,zt)):un&&Dn?(Xe=Array.from(new Set([].concat((0,qe.Z)(Ze.current||[]),(0,qe.Z)(xn({treeData:qt,expandedKeys:Ht,startKey:Qt,endKey:Be.current,fieldNames:zt}))))),Lt.selectedNodes=yn(qt,Xe,zt)):(Xe=[Qt],Be.current=Qt,Ze.current=Xe,Lt.selectedNodes=yn(qt,Xe,zt)),(Ae=Q.onSelect)===null||Ae===void 0||Ae.call(Q,Xe,Lt),"selectedKeys"in Q||Gt(Xe)},{getPrefixCls:lt,direction:It}=ee.useContext(ln.E_),{prefixCls:Kt,className:at,showIcon:dn=!0,expandAction:Nt="click"}=Q,Yt=bn(Q,["prefixCls","className","showIcon","expandAction"]),kt=lt("tree",Kt),Jt=Bn()(`${kt}-directory`,{[`${kt}-directory-rtl`]:It==="rtl"},at);return ee.createElement(hn,Object.assign({icon:Cn,ref:xe,blockNode:!0},Yt,{showIcon:dn,expandAction:Nt,prefixCls:kt,className:Jt,expandedKeys:Ht,selectedKeys:Fe,onSelect:Mt,onExpand:$t}))};var sn=ee.forwardRef(Kn);const cn=hn;cn.DirectoryTree=sn,cn.TreeNode=o.O;var zn=cn}}]); diff --git a/5480.87196696.async.js b/5480.87196696.async.js new file mode 100644 index 00000000..dda27c9f --- /dev/null +++ b/5480.87196696.async.js @@ -0,0 +1,40 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5480],{55751:function(le,I){"use strict";var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};I.Z=a},25480:function(le,I,a){"use strict";a.d(I,{Z:function(){return Pt}});var o=a(79685),F=a(89946),ie=a(65845),de=a(21137),Ee=a(55751),H=a(83317),v=function(n,r){return o.createElement(H.Z,(0,de.Z)({},n,{ref:r,icon:Ee.Z}))},W=o.forwardRef(v),ue=a(68591),Y=a.n(ue),_=a(99281),V=a.n(_),y=a(58718),ee=a(89259),te=a(79269),z=a(46501),ne=a(3139),je=a(52401),Re=a(68786),fe=a(66214),Fe=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{const r=p=>{const{keyCode:c}=p;c===fe.Z.ENTER&&p.preventDefault()},t=p=>{const{keyCode:c}=p,{onClick:T}=e;c===fe.Z.ENTER&&T&&T()},{style:l,noStyle:f,disabled:b}=e,w=Fe(e,["style","noStyle","disabled"]);let u={};return f||(u=Object.assign({},Ve)),b&&(u.pointerEvents="none"),u=Object.assign(Object.assign({},u),l),o.createElement("div",Object.assign({role:"button",tabIndex:0,ref:n},w,{onKeyDown:r,onKeyUp:t,style:u}))}),Le=a(99248),Xe=a(78436),xe=a(58898),Ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},Je=Ge,Qe=function(n,r){return o.createElement(H.Z,(0,de.Z)({},n,{ref:r,icon:Je}))},Ye=o.forwardRef(Qe),qe=a(23196),_e=a(51807),Pe=a(40325),et=a(44244),tt=a(32145),nt=a(26477);const ot=(e,n,r,t)=>{const{titleMarginBottom:l,fontWeightStrong:f}=t;return{marginBottom:l,color:r,fontWeight:f,fontSize:e,lineHeight:n}},rt=e=>{const n=[1,2,3,4,5],r={};return n.forEach(t=>{r[` + h${t}&, + div&-h${t}, + div&-h${t} > textarea, + h${t} + `]=ot(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},lt=e=>{const{componentCls:n}=e;return{"a&, a":Object.assign(Object.assign({},(0,Pe.N)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},it=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:tt.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),st=e=>{const{componentCls:n,paddingSM:r}=e,t=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(t).mul(-1).equal(),marginBottom:`calc(1em - ${(0,nt.bf)(t)})`},[`${n}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},at=e=>({"&-copy-success":{[` + &, + &:hover, + &:focus`]:{color:e.colorSuccess}}}),ct=()=>({[` + a&-ellipsis, + span&-ellipsis + `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),dt=e=>{const{componentCls:n,titleMarginTop:r}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${n}-secondary`]:{color:e.colorTextDescription},[`&${n}-success`]:{color:e.colorSuccess},[`&${n}-warning`]:{color:e.colorWarning},[`&${n}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${n}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[` + div&, + p + `]:{marginBottom:"1em"}},rt(e)),{[` + & + h1${n}, + & + h2${n}, + & + h3${n}, + & + h4${n}, + & + h5${n} + `]:{marginTop:r},[` + div, + ul, + li, + p, + h1, + h2, + h3, + h4, + h5`]:{[` + + h1, + + h2, + + h3, + + h4, + + h5 + `]:{marginTop:r}}}),it(e)),lt(e)),{[` + ${n}-expand, + ${n}-edit, + ${n}-copy + `]:Object.assign(Object.assign({},(0,Pe.N)(e)),{marginInlineStart:e.marginXXS})}),st(e)),at(e)),ct()),{"&-rtl":{direction:"rtl"}})}},ut=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var Ne=(0,et.I$)("Typography",e=>[dt(e)],ut),ft=e=>{const{prefixCls:n,"aria-label":r,className:t,style:l,direction:f,maxLength:b,autoSize:w=!0,value:u,onSave:p,onCancel:c,onEnd:T,component:N,enterIcon:L=o.createElement(Ye,null)}=e,m=o.useRef(null),h=o.useRef(!1),P=o.useRef(),[X,A]=o.useState(u);o.useEffect(()=>{A(u)},[u]),o.useEffect(()=>{if(m.current&&m.current.resizableTextArea){const{textArea:C}=m.current.resizableTextArea;C.focus();const{length:x}=C.value;C.setSelectionRange(x,x)}},[]);const d=C=>{let{target:x}=C;A(x.value.replace(/[\n\r]/g,""))},O=()=>{h.current=!0},D=()=>{h.current=!1},j=C=>{let{keyCode:x}=C;h.current||(P.current=x)},q=()=>{p(X.trim())},K=C=>{let{keyCode:x,ctrlKey:ae,altKey:ce,metaKey:G,shiftKey:oe}=C;P.current===x&&!h.current&&!ae&&!ce&&!G&&!oe&&(x===fe.Z.ENTER?(q(),T==null||T()):x===fe.Z.ESC&&c())},g=()=>{q()},E=N?`${n}-${N}`:"",[B,$]=Ne(n),U=Y()(n,`${n}-edit-content`,{[`${n}-rtl`]:f==="rtl"},t,E,$);return B(o.createElement("div",{className:U,style:l},o.createElement(_e.Z,{ref:m,maxLength:b,value:X,onChange:d,onKeyDown:j,onKeyUp:K,onCompositionStart:O,onCompositionEnd:D,onBlur:g,"aria-label":r,rows:1,autoSize:w}),L!==null?(0,qe.Tm)(L,{className:`${n}-edit-content-confirm`}):null))},pt=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{const{prefixCls:r,component:t="article",className:l,rootClassName:f,setContentRef:b,children:w,direction:u,style:p}=e,c=pt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:T,direction:N,typography:L}=o.useContext(Le.E_),m=u!=null?u:N;let h=n;b&&(h=(0,je.sQ)(n,b));const P=T("typography",r),[X,A]=Ne(P),d=Y()(P,L==null?void 0:L.className,{[`${P}-rtl`]:m==="rtl"},l,f,A),O=Object.assign(Object.assign({},L==null?void 0:L.style),p);return X(o.createElement(t,Object.assign({className:d,style:O,ref:h},c),w))});function Se(e,n){return o.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},n),r&&typeof e=="object"?e:null)]},[e])}var gt=(e,n)=>{const r=o.useRef(!1);o.useEffect(()=>{r.current?e():r.current=!0},n)};function $e(e){const n=typeof e;return n==="string"||n==="number"}function mt(e){let n=0;return e.forEach(r=>{$e(r)?n+=String(r).length:n+=1}),n}function Oe(e,n){let r=0;const t=[];for(let l=0;ln){const p=n-r;return t.push(String(f).slice(0,p)),t}t.push(f),r=u}return e}const yt=0,pe=1,Me=2,Ce=3,we=4;var vt=e=>{let{enabledMeasure:n,children:r,text:t,width:l,fontSize:f,rows:b,onEllipsis:w}=e;const[[u,p,c],T]=o.useState([0,0,0]),[N,L]=o.useState(0),[m,h]=o.useState(yt),[P,X]=o.useState(0),A=o.useRef(null),d=o.useRef(null),O=o.useMemo(()=>(0,ee.Z)(t),[t]),D=o.useMemo(()=>mt(O),[O]),j=o.useMemo(()=>!n||m!==Ce?N&&m!==we&&n?r(Oe(O,N),N{n&&l&&f&&D&&(h(pe),T([0,Math.ceil(D/2),D]))},[n,l,f,t,D,b]),(0,te.Z)(()=>{var E;m===pe&&X(((E=A.current)===null||E===void 0?void 0:E.offsetHeight)||0)},[m]),(0,te.Z)(()=>{var E,B;if(P){if(m===pe){const $=((E=d.current)===null||E===void 0?void 0:E.offsetHeight)||0,U=b*P;$<=U?(h(we),w(!1)):h(Me)}else if(m===Me)if(u!==c){const $=((B=d.current)===null||B===void 0?void 0:B.offsetHeight)||0,U=b*P;let C=u,x=c;u===c-1?x=u:$<=U?C=p:x=p;const ae=Math.ceil((C+x)/2);T([C,ae,x])}else h(Ce),L(p),w(!0)}},[m,u,c,b,P]);const q={width:l,whiteSpace:"normal",margin:0,padding:0},K=(E,B,$)=>o.createElement("span",{"aria-hidden":!0,ref:B,style:Object.assign({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.ceil(f/2)*2},$)},E),g=(E,B)=>{const $=Oe(O,E);return K(r($,!0),B,q)};return o.createElement(o.Fragment,null,j,n&&m!==Ce&&m!==we&&o.createElement(o.Fragment,null,K("lg",A,{wordBreak:"keep-all",whiteSpace:"nowrap"}),m===pe?K(r(O,!1),d,q):g(p,d)))},bt=e=>{let{enabledEllipsis:n,isEllipsis:r,children:t,tooltipProps:l}=e;return!(l!=null&&l.title)||!n?t:o.createElement(xe.Z,Object.assign({open:r?void 0:!1},l),t)},ht=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var r,t,l;const{prefixCls:f,className:b,style:w,type:u,disabled:p,children:c,ellipsis:T,editable:N,copyable:L,component:m,title:h}=e,P=ht(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:X,direction:A}=o.useContext(Le.E_),[d]=(0,Xe.Z)("Text"),O=o.useRef(null),D=o.useRef(null),j=X("typography",f),q=(0,ne.Z)(P,["mark","code","delete","underline","strong","keyboard","italic"]),[K,g]=Se(N),[E,B]=(0,z.Z)(!1,{value:g.editing}),{triggerType:$=["icon"]}=g,U=i=>{var s;i&&((s=g.onStart)===null||s===void 0||s.call(g)),B(i)};gt(()=>{var i;E||(i=D.current)===null||i===void 0||i.focus()},[E]);const C=i=>{i==null||i.preventDefault(),U(!0)},x=i=>{var s;(s=g.onChange)===null||s===void 0||s.call(g,i),U(!1)},ae=()=>{var i;(i=g.onCancel)===null||i===void 0||i.call(g),U(!1)},[ce,G]=Se(L),[oe,Be]=o.useState(!1),Te=o.useRef(null),Ze={};G.format&&(Ze.format=G.format);const ke=()=>{Te.current&&clearTimeout(Te.current)},Nt=i=>{var s;i==null||i.preventDefault(),i==null||i.stopPropagation(),V()(G.text||String(c)||"",Ze),Be(!0),ke(),Te.current=setTimeout(()=>{Be(!1)},3e3),(s=G.onCopy)===null||s===void 0||s.call(G,i)};o.useEffect(()=>ke,[]);const[He,Dt]=o.useState(!1),[Ae,$t]=o.useState(!1),[Mt,zt]=o.useState(!1),[We,Bt]=o.useState(!1),[Ke,Zt]=o.useState(!1),[kt,Ht]=o.useState(!0),[J,S]=Se(T,{expandable:!1}),Z=J&&!Mt,{rows:re=1}=S,ye=o.useMemo(()=>!Z||S.suffix!==void 0||S.onEllipsis||S.expandable||K||ce,[Z,S,K,ce]);(0,te.Z)(()=>{J&&!ye&&(Dt((0,Re.G)("webkitLineClamp")),$t((0,Re.G)("textOverflow")))},[ye,J]);const k=o.useMemo(()=>ye?!1:re===1?Ae:He,[ye,Ae,He]),Ue=Z&&(k?Ke:We),At=Z&&re===1&&k,ve=Z&&re>1&&k,Wt=i=>{var s;zt(!0),(s=S.onExpand)===null||s===void 0||s.call(S,i)},[Kt,Ut]=o.useState(0),[Ft,Vt]=o.useState(0),Xt=(i,s)=>{let{offsetWidth:R}=i;var M;Ut(R),Vt(parseInt((M=window.getComputedStyle)===null||M===void 0?void 0:M.call(window,s).fontSize,10)||0)},Gt=i=>{var s;Bt(i),We!==i&&((s=S.onEllipsis)===null||s===void 0||s.call(S,i))};o.useEffect(()=>{const i=O.current;if(J&&k&&i){const s=ve?i.offsetHeight{const i=O.current;if(typeof IntersectionObserver=="undefined"||!i||!k||!Z)return;const s=new IntersectionObserver(()=>{Ht(!!i.offsetParent)});return s.observe(i),()=>{s.disconnect()}},[k,Z]);let Q={};S.tooltip===!0?Q={title:(r=g.text)!==null&&r!==void 0?r:c}:o.isValidElement(S.tooltip)?Q={title:S.tooltip}:typeof S.tooltip=="object"?Q=Object.assign({title:(t=g.text)!==null&&t!==void 0?t:c},S.tooltip):Q={title:S.tooltip};const be=o.useMemo(()=>{const i=s=>["string","number"].includes(typeof s);if(!(!J||k)){if(i(g.text))return g.text;if(i(c))return c;if(i(h))return h;if(i(Q.title))return Q.title}},[J,k,h,Q.title,Ue]);if(E)return o.createElement(ft,{value:(l=g.text)!==null&&l!==void 0?l:typeof c=="string"?c:"",onSave:x,onCancel:ae,onEnd:g.onEnd,prefixCls:j,className:b,style:w,direction:A,component:m,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon});const Jt=()=>{const{expandable:i,symbol:s}=S;if(!i)return null;let R;return s?R=s:R=d==null?void 0:d.expand,o.createElement("a",{key:"expand",className:`${j}-expand`,onClick:Wt,"aria-label":d==null?void 0:d.expand},R)},Qt=()=>{if(!K)return;const{icon:i,tooltip:s}=g,R=(0,ee.Z)(s)[0]||(d==null?void 0:d.edit),M=typeof R=="string"?R:"";return $.includes("icon")?o.createElement(xe.Z,{key:"edit",title:s===!1?"":R},o.createElement(Ie,{ref:D,className:`${j}-edit`,onClick:C,"aria-label":M},i||o.createElement(W,{role:"button"}))):null},Yt=()=>{if(!ce)return;const{tooltips:i,icon:s}=G,R=ze(i),M=ze(s),he=oe?ge(R[1],d==null?void 0:d.copied):ge(R[0],d==null?void 0:d.copy),en=oe?d==null?void 0:d.copied:d==null?void 0:d.copy,tn=typeof he=="string"?he:en;return o.createElement(xe.Z,{key:"copy",title:he},o.createElement(Ie,{className:Y()(`${j}-copy`,oe&&`${j}-copy-success`),onClick:Nt,"aria-label":tn},oe?ge(M[1],o.createElement(F.Z,null),!0):ge(M[0],o.createElement(ie.Z,null),!0)))},qt=i=>[i&&Jt(),Qt(),Yt()],_t=i=>[i&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},xt),S.suffix,qt(i)];return o.createElement(y.Z,{onResize:Xt,disabled:!Z||k},i=>o.createElement(bt,{tooltipProps:Q,enabledEllipsis:Z,isEllipsis:Ue},o.createElement(De,Object.assign({className:Y()({[`${j}-${u}`]:u,[`${j}-disabled`]:p,[`${j}-ellipsis`]:J,[`${j}-single-line`]:Z&&re===1,[`${j}-ellipsis-single-line`]:At,[`${j}-ellipsis-multiple-line`]:ve},b),prefixCls:f,style:Object.assign(Object.assign({},w),{WebkitLineClamp:ve?re:void 0}),component:m,ref:(0,je.sQ)(i,O,n),direction:A,onClick:$.includes("text")?C:void 0,"aria-label":be==null?void 0:be.toString(),title:h},q),o.createElement(vt,{enabledMeasure:Z&&!k,text:c,rows:re,width:Kt,fontSize:Ft,onEllipsis:Gt},(s,R)=>{let M=s;return s.length&&R&&be&&(M=o.createElement("span",{key:"show-content","aria-hidden":!0},M)),Et(e,o.createElement(o.Fragment,null,M,_t(R)))}))))}),St=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var{ellipsis:r,rel:t}=e,l=St(e,["ellipsis","rel"]);const f=Object.assign(Object.assign({},l),{rel:t===void 0&&l.target==="_blank"?"noopener noreferrer":t});return delete f.navigate,o.createElement(me,Object.assign({},f,{ref:n,ellipsis:!!r,component:"a"}))}),Ct=o.forwardRef((e,n)=>o.createElement(me,Object.assign({ref:n},e,{component:"div"}))),wt=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{var{ellipsis:r}=e,t=wt(e,["ellipsis"]);const l=o.useMemo(()=>r&&typeof r=="object"?(0,ne.Z)(r,["expandable","rows"]):r,[r]);return o.createElement(me,Object.assign({ref:n},t,{ellipsis:l,component:"span"}))};var jt=o.forwardRef(Tt),Rt=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,t=Object.getOwnPropertySymbols(e);l{const{level:r=1}=e,t=Rt(e,["level"]);let l;return It.includes(r)?l=`h${r}`:l="h1",o.createElement(me,Object.assign({ref:n},t,{component:l}))});const se=De;se.Text=jt,se.Link=Ot,se.Title=Lt,se.Paragraph=Ct;var Pt=se},99281:function(le,I,a){"use strict";var o=a(62971),F={"text/plain":"Text","text/html":"Url",default:"Text"},ie="Copy to clipboard: #{key}, Enter";function de(H){var v=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return H.replace(/#{\s*key\s*}/g,v)}function Ee(H,v){var W,ue,Y,_,V,y,ee=!1;v||(v={}),W=v.debug||!1;try{Y=o(),_=document.createRange(),V=document.getSelection(),y=document.createElement("span"),y.textContent=H,y.ariaHidden="true",y.style.all="unset",y.style.position="fixed",y.style.top=0,y.style.clip="rect(0, 0, 0, 0)",y.style.whiteSpace="pre",y.style.webkitUserSelect="text",y.style.MozUserSelect="text",y.style.msUserSelect="text",y.style.userSelect="text",y.addEventListener("copy",function(z){if(z.stopPropagation(),v.format)if(z.preventDefault(),typeof z.clipboardData=="undefined"){W&&console.warn("unable to use e.clipboardData"),W&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ne=F[v.format]||F.default;window.clipboardData.setData(ne,H)}else z.clipboardData.clearData(),z.clipboardData.setData(v.format,H);v.onCopy&&(z.preventDefault(),v.onCopy(z.clipboardData))}),document.body.appendChild(y),_.selectNodeContents(y),V.addRange(_);var te=document.execCommand("copy");if(!te)throw new Error("copy command was unsuccessful");ee=!0}catch(z){W&&console.error("unable to copy using execCommand: ",z),W&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(v.format||"text",H),v.onCopy&&v.onCopy(window.clipboardData),ee=!0}catch(ne){W&&console.error("unable to copy using clipboardData: ",ne),W&&console.error("falling back to prompt"),ue=de("message"in v?v.message:ie),window.prompt(ue,H)}}finally{V&&(typeof V.removeRange=="function"?V.removeRange(_):V.removeAllRanges()),y&&document.body.removeChild(y),Y()}return ee}le.exports=Ee},62971:function(le){le.exports=function(){var I=document.getSelection();if(!I.rangeCount)return function(){};for(var a=document.activeElement,o=[],F=0;Fq in ge?rg(ge,q,{enumerable:!0,configurable:!0,writable:!0,value:c}):ge[q]=c,ms=(ge,q)=>{for(var c in q||(q={}))ag.call(q,c)&&vs(ge,c,q[c]);if(fs)for(var c of fs(q))og.call(q,c)&&vs(ge,c,q[c]);return ge};(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5570],{37519:function(ge,q){"use strict";var c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};q.Z=c},19951:function(ge,q,c){"use strict";c.d(q,{Z:function(){return J}});var d=c(21137),E=c(79685),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},V=R,H=c(83317),k=function(B,ee){return E.createElement(H.Z,(0,d.Z)({},B,{ref:ee,icon:V}))},J=E.forwardRef(k)},73142:function(ge,q,c){"use strict";c.d(q,{ZP:function(){return Ct},NA:function(){return G},aK:function(){return De}});var d=c(93264),E=c(98787),R=c(89342),V=c(63195),H=c(57963),k=c(6346),J=c(56671),T=c(33298),B=c(84718),ee=c(87238),ae=c(5745),o=c(37354),O=c(46501),ve=c(36874),w=c(79685),K=c(3673);function X(rt){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,Be=arguments.length>2?arguments[2]:void 0,Mt=(0,w.useState)(rt),$e=(0,R.Z)(Mt,2),Ve=$e[0],_e=$e[1],Ue=(0,K.d)(rt);return(0,w.useEffect)(function(){var tn=setTimeout(function(){_e(Ue.current)},Y);return function(){return clearTimeout(tn)}},Be?[Y].concat((0,H.Z)(Be)):void 0),Ve}var ce=c(89543),Ke=c(2219),W=c(85123),oe=c(66907),Zt=c(46360),dn=c(76742),St=c(79714),nt=c(68591),an=c.n(nt),mt=c(89259),Z=c(63342),Ee=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength"],Pt=function(Y,Be){return(0,V.Z)(Be)!=="object"?Y[Be]||Be:Y[Be==null?void 0:Be.value]||Be.label},yt=function(Y,Be){var Mt=Y.label,$e=Y.prefixCls,Ve=Y.onChange,_e=Y.value,Ue=Y.mode,tn=Y.children,te=Y.defaultValue,me=Y.size,be=Y.showSearch,Re=Y.disabled,Oe=Y.style,Pe=Y.className,xe=Y.bordered,qe=Y.options,je=Y.onSearch,Se=Y.allowClear,kt=Y.labelInValue,Et=Y.fieldNames,Bt=Y.lightLabel,Cn=Y.labelTrigger,Kt=Y.optionFilterProp,_t=Y.optionLabelProp,it=_t===void 0?"":_t,We=Y.valueMaxLength,Me=We===void 0?41:We,Ze=(0,E.Z)(Y,Ee),fe=Y.placeholder,he=fe===void 0?Mt:fe,we=Et||{},ke=we.label,Ot=ke===void 0?"label":ke,jt=we.value,$t=jt===void 0?"value":jt,Jt=(0,w.useContext)(ce.ZP.ConfigContext),xn=Jt.getPrefixCls,hn=xn("pro-field-select-light-select"),Xt=(0,w.useState)(!1),on=(0,R.Z)(Xt,2),gn=on[0],pn=on[1],Rt=(0,w.useState)(""),rn=(0,R.Z)(Rt,2),cn=rn[0],At=rn[1],Bn=(0,T.Xj)("LightSelect",function(Fe){var Je;return(0,k.Z)({},".".concat(hn),(Je={},(0,k.Z)(Je,"".concat(Fe.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),(0,k.Z)(Je,"&.".concat(hn,"-searchable"),(0,k.Z)({},"".concat(Fe.antCls,"-select"),{width:"200px","&-selector":{height:28}})),Je))}),Yn=Bn.wrapSSR,Lt=Bn.hashId,ct=(0,w.useMemo)(function(){var Fe={};return qe==null||qe.forEach(function(Je){var Ye=Je[it]||Je[Ot],nn=Je[$t];Fe[nn]=Ye||nn}),Fe},[Ot,qe,$t,it]),et=Array.isArray(_e)?_e.map(function(Fe){return Pt(ct,Fe)}):Pt(ct,_e);return Yn((0,Z.jsxs)("div",{className:an()(hn,Lt,(0,k.Z)({},"".concat(hn,"-searchable"),be),"".concat(hn,"-container-").concat(Ze.placement||"bottomLeft"),Pe),style:Oe,onClick:function(Je){var Ye;if(!Re){var nn=Bt==null||(Ye=Bt.current)===null||Ye===void 0||(Ye=Ye.labelRef)===null||Ye===void 0||(Ye=Ye.current)===null||Ye===void 0?void 0:Ye.contains(Je.target);pn(nn?!gn:!0)}},children:[(0,Z.jsx)(dn.Z,(0,d.Z)((0,d.Z)({popupMatchSelectWidth:!1},Ze),{},{allowClear:Se,value:_e,mode:Ue,labelInValue:kt,size:me,disabled:Re,onChange:function(Je,Ye){Ve==null||Ve(Je,Ye),Ue!=="multiple"&&pn(!1)},bordered:xe,showSearch:be,onSearch:je,style:Oe,dropdownRender:function(Je){return(0,Z.jsxs)("div",{ref:Be,children:[be&&(0,Z.jsx)("div",{style:{margin:"4px 8px"},children:(0,Z.jsx)(St.Z,{value:cn,allowClear:!!Se,onChange:function(nn){At(nn.target.value),je==null||je(nn.target.value)},onKeyDown:function(nn){nn.stopPropagation()},style:{width:"100%"},prefix:(0,Z.jsx)(oe.Z,{})})}),Je]})},open:gn,onDropdownVisibleChange:function(Je){var Ye;Je||At(""),Cn||pn(Je),Ze==null||(Ye=Ze.onDropdownVisibleChange)===null||Ye===void 0||Ye.call(Ze,Je)},prefixCls:$e,options:je||!cn?qe:qe==null?void 0:qe.filter(function(Fe){var Je,Ye;return Kt?(0,mt.Z)(Fe[Kt]).join("").toLowerCase().includes(cn):((Je=String(Fe[Ot]))===null||Je===void 0||(Je=Je.toLowerCase())===null||Je===void 0?void 0:Je.includes(cn==null?void 0:cn.toLowerCase()))||((Ye=Fe[$t])===null||Ye===void 0||(Ye=Ye.toString())===null||Ye===void 0||(Ye=Ye.toLowerCase())===null||Ye===void 0?void 0:Ye.includes(cn==null?void 0:cn.toLowerCase()))})})),(0,Z.jsx)(Zt.Q,{ellipsis:!0,label:Mt,placeholder:he,disabled:Re,bordered:xe,allowClear:!!Se,value:et||(_e==null?void 0:_e.label)||_e,onClear:function(){Ve==null||Ve(void 0,void 0)},ref:Bt,valueMaxLength:Me})]}))},Xe=w.forwardRef(yt),pe=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],ht=["className","optionType"],Tt=function(Y,Be){var Mt=Y.optionItemRender,$e=Y.mode,Ve=Y.onSearch,_e=Y.onFocus,Ue=Y.onChange,tn=Y.autoClearSearchValue,te=tn===void 0?!0:tn,me=Y.searchOnFocus,be=me===void 0?!1:me,Re=Y.resetAfterSelect,Oe=Re===void 0?!1:Re,Pe=Y.fetchDataOnSearch,xe=Pe===void 0?!0:Pe,qe=Y.optionFilterProp,je=qe===void 0?"label":qe,Se=Y.optionLabelProp,kt=Se===void 0?"label":Se,Et=Y.className,Bt=Y.disabled,Cn=Y.options,Kt=Y.fetchData,_t=Y.resetData,it=Y.prefixCls,We=Y.onClear,Me=Y.searchValue,Ze=Y.showSearch,fe=Y.fieldNames,he=Y.defaultSearchValue,we=(0,E.Z)(Y,pe),ke=fe||{},Ot=ke.label,jt=Ot===void 0?"label":Ot,$t=ke.value,Jt=$t===void 0?"value":$t,xn=ke.options,hn=xn===void 0?"options":xn,Xt=(0,w.useState)(Me!=null?Me:he),on=(0,R.Z)(Xt,2),gn=on[0],pn=on[1],Rt=(0,w.useRef)();(0,w.useImperativeHandle)(Be,function(){return Rt.current}),(0,w.useEffect)(function(){if(we.autoFocus){var ct;Rt==null||(ct=Rt.current)===null||ct===void 0||ct.focus()}},[we.autoFocus]),(0,w.useEffect)(function(){pn(Me)},[Me]);var rn=(0,w.useContext)(ce.ZP.ConfigContext),cn=rn.getPrefixCls,At=cn("pro-filed-search-select",it),Bn=an()(At,Et,(0,k.Z)({},"".concat(At,"-disabled"),Bt)),Yn=function(et,Fe){return Array.isArray(et)&&Array.isArray(Fe)&&et.length>0?et.map(function(Je,Ye){var nn=Fe==null?void 0:Fe[Ye],Pn=(nn==null?void 0:nn["data-item"])||{};return(0,d.Z)((0,d.Z)({},Pn),Je)}):[]},Lt=function ct(et){return et.map(function(Fe,Je){var Ye,nn=Fe,Pn=nn.className,Qe=nn.optionType,Un=(0,E.Z)(nn,ht),Rn=Fe[jt],nr=Fe[Jt],fr=(Ye=Fe[hn])!==null&&Ye!==void 0?Ye:[];return Qe==="optGroup"||Fe.options?(0,d.Z)((0,d.Z)({label:Rn},Un),{},{data_title:Rn,title:Rn,key:nr!=null?nr:Rn==null?void 0:Rn.toString(),children:ct(fr)}):(0,d.Z)((0,d.Z)({title:Rn},Un),{},{data_title:Rn,value:nr!=null?nr:Je,key:nr!=null?nr:Rn==null?void 0:Rn.toString(),"data-item":Fe,className:"".concat(At,"-option ").concat(Pn||"").trim(),label:(Mt==null?void 0:Mt(Fe))||Rn})})};return(0,Z.jsx)(dn.Z,(0,d.Z)((0,d.Z)({ref:Rt,className:Bn,allowClear:!0,autoClearSearchValue:te,disabled:Bt,mode:$e,showSearch:Ze,searchValue:gn,optionFilterProp:je,optionLabelProp:kt,onClear:function(){We==null||We(),Kt(void 0),Ze&&pn(void 0)}},we),{},{filterOption:we.filterOption==!1?!1:function(ct,et){var Fe,Je,Ye;return we.filterOption&&typeof we.filterOption=="function"?we.filterOption(ct,(0,d.Z)((0,d.Z)({},et),{},{label:et==null?void 0:et.data_title})):!!(et!=null&&(Fe=et.data_title)!==null&&Fe!==void 0&&Fe.toString().toLowerCase().includes(ct.toLowerCase())||et!=null&&(Je=et.label)!==null&&Je!==void 0&&Je.toString().toLowerCase().includes(ct.toLowerCase())||et!=null&&(Ye=et.value)!==null&&Ye!==void 0&&Ye.toString().toLowerCase().includes(ct.toLowerCase()))},onSearch:Ze?function(ct){xe&&Kt(ct),Ve==null||Ve(ct),pn(ct)}:void 0,onChange:function(et,Fe){Ze&&te&&(Kt(void 0),Ve==null||Ve(""),pn(void 0));for(var Je=arguments.length,Ye=new Array(Je>2?Je-2:0),nn=2;nn2&&arguments[2]!==void 0?arguments[2]:!0,Oe=Object.keys(be).reduce(function(qe,je){var Se=be[je];return(0,an.k)(Se)||(qe[je]=Se),qe},{});if(Object.keys(Oe).length<1||typeof window=="undefined"||(0,oe.Z)(me)!=="object"||(0,an.k)(me)||me instanceof Blob)return me;var Pe=Array.isArray(me)?[]:{},xe=function qe(je,Se){var kt=Array.isArray(je),Et=kt?[]:{};return je==null||je===void 0?Et:(Object.keys(je).forEach(function(Bt){var Cn=function Ze(fe,he){return Array.isArray(fe)&&fe.forEach(function(we,ke){if(we){var Ot=he==null?void 0:he[ke];typeof we=="function"&&(he[ke]=we(he,Bt,je)),(0,oe.Z)(we)==="object"&&!Array.isArray(we)&&Object.keys(we).forEach(function(jt){var $t=Ot==null?void 0:Ot[jt];if(typeof we[jt]=="function"&&$t){var Jt=we[jt](Ot[jt],Bt,je);Ot[jt]=(0,oe.Z)(Jt)==="object"?Jt[jt]:Jt}else(0,oe.Z)(we[jt])==="object"&&Array.isArray(we[jt])&&$t&&Ze(we[jt],$t)}),(0,oe.Z)(we)==="object"&&Array.isArray(we)&&Ot&&Ze(we,Ot)}}),Bt},Kt=Se?[Se,Bt].flat(1):[Bt].flat(1),_t=je[Bt],it=(0,St.Z)(Oe,Kt),We=function(){var fe,he,we=!1;if(typeof it=="function"){he=it==null?void 0:it(_t,Bt,je);var ke=(0,oe.Z)(he);ke!=="object"&&ke!=="undefined"?(fe=Bt,we=!0):fe=he}else fe=Cn(it,_t);if(Array.isArray(fe)){Et=(0,nt.Z)(Et,fe,_t);return}(0,oe.Z)(fe)==="object"&&!Array.isArray(Pe)?Pe=dn()(Pe,fe):(0,oe.Z)(fe)==="object"&&Array.isArray(Pe)?Et=(0,R.Z)((0,R.Z)({},Et),fe):(fe!==null||fe!==void 0)&&(Et=(0,nt.Z)(Et,[fe],we?he:_t))};if(it&&typeof it=="function"&&We(),typeof window!="undefined"){if(Z(_t)){var Me=qe(_t,Kt);if(Object.keys(Me).length<1)return;Et=(0,nt.Z)(Et,[Bt],Me);return}We()}}),Re?Et:je)};return Pe=Array.isArray(me)&&Array.isArray(Pe)?(0,W.Z)(xe(me)):(0,mt.T)({},xe(me),Pe),Pe},Pt=c(34836),yt=c(58275),Xe=c(73952),pe=c(89543),ht=c(2219),Tt=c(68591),zt=c.n(Tt),Dt=c(12869),ue=c(30765),Ge=c(77204),Ie=c(10951),G=c(63342),De=function(me){var be=(0,J.YB)(),Re=Xe.Z.useFormInstance();if(me.render===!1)return null;var Oe=me.onSubmit,Pe=me.render,xe=me.onReset,qe=me.searchConfig,je=qe===void 0?{}:qe,Se=me.submitButtonProps,kt=me.resetButtonProps,Et=Ke.Ow.useToken(),Bt=Et.token,Cn=function(){Re.submit(),Oe==null||Oe()},Kt=function(){Re.resetFields(),xe==null||xe()},_t=je.submitText,it=_t===void 0?be.getMessage("tableForm.submit","\u63D0\u4EA4"):_t,We=je.resetText,Me=We===void 0?be.getMessage("tableForm.reset","\u91CD\u7F6E"):We,Ze=[];kt!==!1&&Ze.push((0,w.createElement)(Ie.ZP,(0,R.Z)((0,R.Z)({},(0,Dt.Z)(kt,["preventDefault"])),{},{key:"rest",onClick:function(we){var ke;kt!=null&&kt.preventDefault||Kt(),kt==null||(ke=kt.onClick)===null||ke===void 0||ke.call(kt,we)}}),Me)),Se!==!1&&Ze.push((0,w.createElement)(Ie.ZP,(0,R.Z)((0,R.Z)({type:"primary"},(0,Dt.Z)(Se||{},["preventDefault"])),{},{key:"submit",onClick:function(we){var ke;Se!=null&&Se.preventDefault||Cn(),Se==null||(ke=Se.onClick)===null||ke===void 0||ke.call(Se,we)}}),it));var fe=Pe?Pe((0,R.Z)((0,R.Z)({},me),{},{form:Re,submit:Cn,reset:Kt}),Ze):Ze;return fe?Array.isArray(fe)?(fe==null?void 0:fe.length)<1?null:(fe==null?void 0:fe.length)===1?fe[0]:(0,G.jsx)("div",{style:{display:"flex",gap:Bt.marginXS,alignItems:"center"},children:fe}):fe:null},pt=De,Ct=c(15710),rt=c(25393),Y=c(43901),Be=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Mt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],$e=function(me,be,Re){return me===!0?be:(0,T.h)(me,be,Re)},Ve=function(me){return!me||Array.isArray(me)?me:[me]};function _e(te){var me,be=te.children,Re=te.contentRender,Oe=te.submitter,Pe=te.fieldProps,xe=te.formItemProps,qe=te.groupProps,je=te.transformKey,Se=te.formRef,kt=te.onInit,Et=te.form,Bt=te.loading,Cn=te.formComponentType,Kt=te.extraUrlParams,_t=Kt===void 0?{}:Kt,it=te.syncToUrl,We=te.onUrlSearchChange,Me=te.onReset,Ze=te.omitNil,fe=Ze===void 0?!0:Ze,he=te.isKeyPressSubmit,we=te.autoFocusFirstInput,ke=we===void 0?!0:we,Ot=te.grid,jt=te.rowProps,$t=te.colProps,Jt=(0,k.Z)(te,Be),xn=Xe.Z.useFormInstance(),hn=(pe.ZP===null||pe.ZP===void 0||(me=pe.ZP.useConfig)===null||me===void 0?void 0:me.call(pe.ZP))||{componentSize:"middle"},Xt=hn.componentSize,on=(0,w.useRef)(Et||xn),gn=(0,rt.zx)({grid:Ot,rowProps:jt}),pn=gn.RowWrapper,Rt=(0,B.J)(function(){return xn}),rn=(0,w.useMemo)(function(){return{getFieldsFormatValue:function(et){var Fe;return je((Fe=Rt())===null||Fe===void 0?void 0:Fe.getFieldsValue(et),fe)},getFieldFormatValue:function(){var et,Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Je=Ve(Fe);if(!Je)throw new Error("nameList is require");var Ye=(et=Rt())===null||et===void 0?void 0:et.getFieldValue(Je),nn=Je?(0,nt.Z)({},Je,Ye):Ye;return(0,St.Z)(je(nn,fe,Je),Je)},getFieldFormatValueObject:function(et){var Fe,Je=Ve(et),Ye=(Fe=Rt())===null||Fe===void 0?void 0:Fe.getFieldValue(Je),nn=Je?(0,nt.Z)({},Je,Ye):Ye;return je(nn,fe,Je)},validateFieldsReturnFormatValue:function(){var ct=(0,H.Z)((0,V.Z)().mark(function Fe(Je){var Ye,nn,Pn;return(0,V.Z)().wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:if(!(!Array.isArray(Je)&&Je)){Un.next=2;break}throw new Error("nameList must be array");case 2:return Un.next=4,(Ye=Rt())===null||Ye===void 0?void 0:Ye.validateFields(Je);case 4:return nn=Un.sent,Pn=je(nn,fe),Un.abrupt("return",Pn||{});case 7:case"end":return Un.stop()}},Fe)}));function et(Fe){return ct.apply(this,arguments)}return et}()}},[fe,je]),cn=(0,w.useMemo)(function(){return w.Children.toArray(be).map(function(ct,et){return et===0&&w.isValidElement(ct)&&ke?w.cloneElement(ct,(0,R.Z)((0,R.Z)({},ct.props),{},{autoFocus:ke})):ct})},[ke,be]),At=(0,w.useMemo)(function(){return typeof Oe=="boolean"||!Oe?{}:Oe},[Oe]),Bn=(0,w.useMemo)(function(){if(Oe!==!1)return(0,G.jsx)(pt,(0,R.Z)((0,R.Z)({},At),{},{onReset:function(){var et,Fe,Je=je((et=on.current)===null||et===void 0?void 0:et.getFieldsValue(),fe);if(At==null||(Fe=At.onReset)===null||Fe===void 0||Fe.call(At,Je),Me==null||Me(Je),it){var Ye,nn=Object.keys(je((Ye=on.current)===null||Ye===void 0?void 0:Ye.getFieldsValue(),!1)).reduce(function(Pn,Qe){return(0,R.Z)((0,R.Z)({},Pn),{},(0,E.Z)({},Qe,Je[Qe]||void 0))},_t);We($e(it,nn||{},"set"))}},submitButtonProps:(0,R.Z)({loading:Bt},At.submitButtonProps)}),"submitter")},[Oe,At,Bt,je,fe,Me,it,_t,We]),Yn=(0,w.useMemo)(function(){var ct=Ot?(0,G.jsx)(pn,{children:cn}):cn;return Re?Re(ct,Bn,on.current):ct},[Ot,pn,cn,Re,Bn]),Lt=(0,ee.D)(te.initialValues);return(0,w.useEffect)(function(){if(!(it||!te.initialValues||!Lt||Jt.request)){var ct=(0,ae.A)(te.initialValues,Lt);(0,ue.ET)(ct,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ?
: null "),(0,ue.ET)(ct,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[te.initialValues]),(0,w.useImperativeHandle)(Se,function(){return(0,R.Z)((0,R.Z)({},on.current),rn)},[rn,on.current]),(0,w.useEffect)(function(){var ct,et,Fe=je((ct=on.current)===null||ct===void 0||(et=ct.getFieldsValue)===null||et===void 0?void 0:et.call(ct,!0),fe);kt==null||kt(Fe,(0,R.Z)((0,R.Z)({},on.current),rn))},[]),(0,G.jsx)(o.J.Provider,{value:(0,R.Z)((0,R.Z)({},rn),{},{formRef:on}),children:(0,G.jsx)(pe.ZP,{componentSize:Jt.size||Xt,children:(0,G.jsxs)(rt._p.Provider,{value:{grid:Ot,colProps:$t},children:[Jt.component!==!1&&(0,G.jsx)("input",{type:"text",style:{display:"none"}}),Yn]})})})}var Ue=0;function tn(te){var me=te.extraUrlParams,be=me===void 0?{}:me,Re=te.syncToUrl,Oe=te.isKeyPressSubmit,Pe=te.syncToUrlAsImportant,xe=Pe===void 0?!1:Pe,qe=te.syncToInitialValues,je=qe===void 0?!0:qe,Se=te.children,kt=te.contentRender,Et=te.submitter,Bt=te.fieldProps,Cn=te.proFieldProps,Kt=te.formItemProps,_t=te.groupProps,it=te.dateFormatter,We=it===void 0?"string":it,Me=te.formRef,Ze=te.onInit,fe=te.form,he=te.formComponentType,we=te.onReset,ke=te.grid,Ot=te.rowProps,jt=te.colProps,$t=te.omitNil,Jt=$t===void 0?!0:$t,xn=te.request,hn=te.params,Xt=te.initialValues,on=te.formKey,gn=on===void 0?Ue:on,pn=te.readonly,Rt=te.onLoadingChange,rn=te.loading,cn=(0,k.Z)(te,Mt),At=(0,w.useRef)({}),Bn=(0,O.Z)(!1,{onChange:Rt,value:rn}),Yn=(0,d.Z)(Bn,2),Lt=Yn[0],ct=Yn[1],et=(0,yt.l)({},{disabled:!Re}),Fe=(0,d.Z)(et,2),Je=Fe[0],Ye=Fe[1],nn=(0,w.useRef)((0,ve.x)());(0,w.useEffect)(function(){Ue+=0},[]);var Pn=ce({request:xn,params:hn,proFieldKey:gn}),Qe=(0,d.Z)(Pn,1),Un=Qe[0],Rn=(0,w.useContext)(pe.ZP.ConfigContext),nr=Rn.getPrefixCls,fr=nr("pro-form"),Nr=(0,Ke.Xj)("ProForm",function(rr){return(0,E.Z)({},".".concat(fr),(0,E.Z)({},"> div:not(".concat(rr.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),aa=Nr.wrapSSR,Er=Nr.hashId,oa=(0,w.useState)(function(){return Re?$e(Re,Je,"get"):{}}),ia=(0,d.Z)(oa,2),la=ia[0],Za=ia[1],Fr=(0,w.useRef)({}),Wr=(0,w.useRef)({}),zr=(0,B.J)(function(rr,Xn,Vn){return Ee((0,Pt.lp)(rr,We,Wr.current,Xn,Vn),Fr.current,Xn)});(0,w.useEffect)(function(){je||Za({})},[je]),(0,w.useEffect)(function(){Re&&Ye($e(Re,(0,R.Z)((0,R.Z)({},Je),be),"set"))},[be,Re]);var Oa=(0,w.useMemo)(function(){if(typeof window!="undefined"&&he&&["DrawerForm"].includes(he))return function(rr){return rr.parentNode||document.body}},[he]),xr=(0,B.J)((0,H.Z)((0,V.Z)().mark(function rr(){var Xn,Vn,N,Sr,Rr,er;return(0,V.Z)().wrap(function(Gn){for(;;)switch(Gn.prev=Gn.next){case 0:if(cn.onFinish){Gn.next=2;break}return Gn.abrupt("return");case 2:if(!Lt){Gn.next=4;break}return Gn.abrupt("return");case 4:return ct(!0),Gn.prev=5,N=At==null||(Xn=At.current)===null||Xn===void 0||(Vn=Xn.getFieldsFormatValue)===null||Vn===void 0?void 0:Vn.call(Xn),Gn.next=9,cn.onFinish(N);case 9:Re&&(er=Object.keys(At==null||(Sr=At.current)===null||Sr===void 0||(Rr=Sr.getFieldsFormatValue)===null||Rr===void 0?void 0:Rr.call(Sr,void 0,!1)).reduce(function(ur,kr){var Kr;return(0,R.Z)((0,R.Z)({},ur),{},(0,E.Z)({},kr,(Kr=N[kr])!==null&&Kr!==void 0?Kr:void 0))},be),Object.keys(Je).forEach(function(ur){er[ur]!==!1&&er[ur]!==0&&!er[ur]&&(er[ur]=void 0)}),Ye($e(Re,er,"set"))),ct(!1),Gn.next=17;break;case 13:Gn.prev=13,Gn.t0=Gn.catch(5),console.log(Gn.t0),ct(!1);case 17:case"end":return Gn.stop()}},rr,null,[[5,13]])})));return(0,w.useImperativeHandle)(Me,function(){return At.current},[!Un]),!Un&&te.request?(0,G.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,G.jsx)(ht.Z,{})}):aa((0,G.jsx)(Y.A.Provider,{value:{mode:te.readonly?"read":"edit"},children:(0,G.jsx)(J._Y,{needDeps:!0,children:(0,G.jsx)(Ge.Z.Provider,{value:{formRef:At,fieldProps:Bt,proFieldProps:Cn,formItemProps:Kt,groupProps:_t,formComponentType:he,getPopupContainer:Oa,formKey:nn.current,setFieldValueType:function(Xn,Vn){var N=Vn.valueType,Sr=N===void 0?"text":N,Rr=Vn.dateFormat,er=Vn.transform;Array.isArray(Xn)&&(Fr.current=(0,nt.Z)(Fr.current,Xn,er),Wr.current=(0,nt.Z)(Wr.current,Xn,{valueType:Sr,dateFormat:Rr}))}},children:(0,G.jsx)(Ct.J.Provider,{value:{},children:(0,G.jsx)(Xe.Z,(0,R.Z)((0,R.Z)({onKeyPress:function(Xn){if(Oe&&Xn.key==="Enter"){var Vn;(Vn=At.current)===null||Vn===void 0||Vn.submit()}},autoComplete:"off",form:fe},(0,Dt.Z)(cn,["labelWidth","autoFocusFirstInput"])),{},{initialValues:xe?(0,R.Z)((0,R.Z)((0,R.Z)({},Xt),Un),la):(0,R.Z)((0,R.Z)((0,R.Z)({},la),Xt),Un),onValuesChange:function(Xn,Vn){var N;cn==null||(N=cn.onValuesChange)===null||N===void 0||N.call(cn,zr(Xn,!!Jt),zr(Vn,!!Jt))},className:zt()(te.className,fr,Er),onFinish:xr,children:(0,G.jsx)(_e,(0,R.Z)((0,R.Z)({transformKey:zr,autoComplete:"off",loading:Lt,onUrlSearchChange:Ye},te),{},{formRef:At,initialValues:(0,R.Z)((0,R.Z)({},Xt),Un)}))}))})})})}))}},43901:function(ge,q,c){"use strict";c.d(q,{A:function(){return E}});var d=c(79685),E=d.createContext({mode:"edit"})},46821:function(ge,q,c){"use strict";c.d(q,{G:function(){return an}});var d=c(6346),E=c(89342),R=c(93264),V=c(98787),H=c(37354),k=c(85865),J=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function T(mt){var Z={};return J.forEach(function(Ee){mt[Ee]!==void 0&&(Z[Ee]=mt[Ee])}),Z}var B=c(41998),ee=c(5745),ae=c(68591),o=c.n(ae),O=c(26341),ve=c(30765),w=c(79685),K=c(77204),X=c(30825),ce=c(67823),Ke=c(25393),W=c(63342),oe=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],Zt=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],dn=Symbol("ProFormComponent"),St={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},nt=["switch","radioButton","radio","rate"];function an(mt,Z){mt.displayName="ProFormComponent";var Ee=function(Xe){var pe=(0,R.Z)((0,R.Z)({},Xe==null?void 0:Xe.filedConfig),Z)||{},ht=pe.valueType,Tt=pe.customLightMode,zt=pe.lightFilterLabelFormatter,Dt=pe.valuePropName,ue=Dt===void 0?"value":Dt,Ge=pe.ignoreWidth,Ie=pe.defaultProps,G=(0,V.Z)(pe,oe),De=(0,R.Z)((0,R.Z)({},Ie),Xe),pt=De.label,Ct=De.tooltip,rt=De.placeholder,Y=De.width,Be=De.bordered,Mt=De.messageVariables,$e=De.ignoreFormItem,Ve=De.transform,_e=De.convertValue,Ue=De.readonly,tn=De.allowClear,te=De.colSize,me=De.getFormItemProps,be=De.getFieldProps,Re=De.filedConfig,Oe=De.cacheForSwr,Pe=De.proFieldProps,xe=(0,V.Z)(De,Zt),qe=ht||xe.valueType,je=(0,w.useMemo)(function(){return Ge||nt.includes(qe)},[Ge,qe]),Se=(0,w.useState)(),kt=(0,E.Z)(Se,2),Et=kt[1],Bt=(0,w.useState)(),Cn=(0,E.Z)(Bt,2),Kt=Cn[0],_t=Cn[1],it=w.useContext(K.Z),We=(0,H.Z)(function(){return{formItemProps:me==null?void 0:me(),fieldProps:be==null?void 0:be()}},[be,me,xe.dependenciesValues,Kt]),Me=(0,H.Z)(function(){var Rt=(0,R.Z)((0,R.Z)((0,R.Z)((0,R.Z)({},$e?(0,k.Y)({value:xe.value}):{}),{},{placeholder:rt,disabled:Xe.disabled},it.fieldProps),We.fieldProps),xe.fieldProps);return Rt.style=(0,k.Y)(Rt==null?void 0:Rt.style),Rt},[$e,xe.value,xe.fieldProps,rt,Xe.disabled,it.fieldProps,We.fieldProps]),Ze=T(xe),fe=(0,H.Z)(function(){return(0,R.Z)((0,R.Z)((0,R.Z)((0,R.Z)({},it.formItemProps),Ze),We.formItemProps),xe.formItemProps)},[We.formItemProps,it.formItemProps,xe.formItemProps,Ze]),he=(0,H.Z)(function(){return(0,R.Z)((0,R.Z)({messageVariables:Mt},G),fe)},[G,fe,Mt]);(0,ve.ET)(!xe.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var we=(0,w.useContext)(O.zb),ke=we.prefixName,Ot=(0,H.Z)(function(){var Rt,rn=he==null?void 0:he.name;Array.isArray(rn)&&(rn=rn.join("_")),Array.isArray(ke)&&rn&&(rn="".concat(ke.join("."),".").concat(rn));var cn=rn&&"form-".concat((Rt=it.formKey)!==null&&Rt!==void 0?Rt:"","-field-").concat(rn);return cn},[(0,B.ZP)(he==null?void 0:he.name),ke,it.formKey]),jt=(0,ee.J)(function(){var Rt;me||be?_t([]):xe.renderFormItem&&Et([]);for(var rn=arguments.length,cn=new Array(rn),At=0;At2&&arguments[2]!==void 0?arguments[2]:!1;y.forEach(function(b){if(!(!h&&m!==!1&&m>0&&g.length>=m)){var I=[].concat((0,ce.Z)(C),[b]),$=b[n.children],P=x||b.disabled;if((!$||$.length===0||i)&&s(t,I,{label:n.label})){var M;g.push((0,d.Z)((0,d.Z)({},b),{},(M={disabled:P},(0,Z.Z)(M,n.label,f(t,I,r,n)),(0,Z.Z)(M,Ee,I),(0,Z.Z)(M,n.children,void 0),M)))}$&&p(b[n.children],I,P)}})}return p(e,[]),h&&g.sort(function(y,C){return h(y[Ee],C[Ee],t,n)}),m!==!1&&m>0?g.slice(0,m):g},[t,e,n,r,f,i,s,h,m])},pe="__RC_CASCADER_SPLIT__",ht="SHOW_PARENT",Tt="SHOW_CHILD";function zt(t){return t.join(pe)}function Dt(t){return t.map(zt)}function ue(t){return t.split(pe)}function Ge(t){var e=t||{},n=e.label,r=e.value,a=e.children,i=r||"value";return{label:n||"label",value:i,key:i,children:a||"children"}}function Ie(t,e){var n,r;return(n=t.isLeaf)!==null&&n!==void 0?n:!((r=t[e.children])!==null&&r!==void 0&&r.length)}function G(t){var e=t.parentElement;if(e){var n=t.offsetTop-e.offsetTop;n-e.scrollTop<0?e.scrollTo({top:n}):n+t.offsetHeight-e.scrollTop>e.offsetHeight&&e.scrollTo({top:n+t.offsetHeight-e.offsetHeight})}}function De(t,e){return t.map(function(n){var r;return(r=n[Ee])===null||r===void 0?void 0:r.map(function(a){return a[e.value]})})}function pt(t){return Array.isArray(t)&&Array.isArray(t[0])}function Ct(t){return t?pt(t)?t:(t.length===0?[]:[t]).map(function(e){return Array.isArray(e)?e:[e]}):[]}function rt(t,e,n){var r=new Set(t),a=e();return t.filter(function(i){var l=a[i],s=l?l.parent:null,u=l?l.children:null;return l&&l.node.disabled?!0:n===Tt?!(u&&u.some(function(f){return f.key&&r.has(f.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function Y(t,e,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=e,i=[],l=function(){var f,v,m,h=t[s],g=(f=a)===null||f===void 0?void 0:f.findIndex(function(y){var C=y[n.value];return r?String(C)===String(h):C===h}),p=g!==-1?(v=a)===null||v===void 0?void 0:v[g]:null;i.push({value:(m=p==null?void 0:p[n.value])!==null&&m!==void 0?m:h,index:g,option:p}),a=p==null?void 0:p[n.children]},s=0;s1){var A=p.slice(0,-1);b(A)}else f(!1)},P=function(){var A,j=((A=C[y])===null||A===void 0?void 0:A[n.children])||[],F=j.find(function(z){return!z.disabled});if(F){var U=[].concat((0,ce.Z)(p),[F[n.value]]);b(U)}};o.useImperativeHandle(t,function(){return{onKeyDown:function(A){var j=A.which;switch(j){case Se.Z.UP:case Se.Z.DOWN:{var F=0;j===Se.Z.UP?F=-1:j===Se.Z.DOWN&&(F=1),F!==0&&I(F);break}case Se.Z.LEFT:{if(u)break;m?P():$();break}case Se.Z.RIGHT:{if(u)break;m?$():P();break}case Se.Z.BACKSPACE:{u||$();break}case Se.Z.ENTER:{if(p.length){var U=C[y],z=(U==null?void 0:U[Ee])||[];z.length?i(z.map(function(D){return D[n.value]}),z[z.length-1]):i(p,C[y])}break}case Se.Z.ESC:f(!1),v&&A.stopPropagation()}},onKeyUp:function(){}}})},Et=o.forwardRef(function(t,e){var n,r,a,i=t.prefixCls,l=t.multiple,s=t.searchValue,u=t.toggleOpen,f=t.notFoundContent,v=t.direction,m=t.open,h=o.useRef(),g=v==="rtl",p=o.useContext(mt),y=p.options,C=p.values,x=p.halfValues,b=p.fieldNames,I=p.changeOnSelect,$=p.onSelect,P=p.searchOptions,M=p.dropdownPrefixCls,A=p.loadData,j=p.expandTrigger,F=M||i,U=o.useState([]),z=(0,O.Z)(U,2),D=z[0],re=z[1],Q=function(He){if(!(!A||s)){var ot=Y(He,y,b),ft=ot.map(function(Ht){var qt=Ht.option;return qt}),lt=ft[ft.length-1];if(lt&&!Ie(lt,b)){var vt=zt(He);re(function(Ht){return[].concat((0,ce.Z)(Ht),[vt])}),A(ft)}}};o.useEffect(function(){D.length&&D.forEach(function(ut){var He=ue(ut),ot=Y(He,y,b,!0).map(function(lt){var vt=lt.option;return vt}),ft=ot[ot.length-1];(!ft||ft[b.children]||Ie(ft,b))&&re(function(lt){return lt.filter(function(vt){return vt!==ut})})})},[y,D,b]);var ie=o.useMemo(function(){return new Set(Dt(C))},[C]),le=o.useMemo(function(){return new Set(Dt(x))},[x]),se=je(l,m),_=(0,O.Z)(se,2),de=_[0],ye=_[1],Te=function(He){ye(He),Q(He)},Ne=function(He){var ot=He.disabled,ft=Ie(He,b);return!ot&&(ft||I||l)},Ae=function(He,ot){var ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$(He),!l&&(ot||I&&(j==="hover"||ft))&&u(!1)},gt=o.useMemo(function(){return s?P:y},[s,P,y]),Le=o.useMemo(function(){for(var ut=[{options:gt}],He=gt,ot=De(He,b),ft=function(){var Ht=de[lt],qt=He.find(function(fn,vn){return(ot[vn]?zt(ot[vn]):fn[b.value])===Ht}),Ft=qt==null?void 0:qt[b.children];if(!(Ft!=null&&Ft.length))return 1;He=Ft,ut.push({options:Ft})},lt=0;lt":x,I=n.loadingIcon,$=n.direction,P=n.notFoundContent,M=P===void 0?"Not Found":P,A=!!u,j=(0,_t.C8)(f,{value:v,postState:Ct}),F=(0,O.Z)(j,2),U=F[0],z=F[1],D=o.useMemo(function(){return Ge(m)},[JSON.stringify(m)]),re=_e(D,s),Q=(0,O.Z)(re,3),ie=Q[0],le=Q[1],se=Q[2],_=Mt(ie,D),de=be(A,U,le,se,_),ye=(0,O.Z)(de,3),Te=ye[0],Ne=ye[1],Ae=ye[2],gt=(0,_t.zX)(function(Vt){if(z(Vt),g){var Nt=Ct(Vt),ut=Nt.map(function(ft){return Y(ft,ie,D).map(function(lt){return lt.option})}),He=A?Nt:Nt[0],ot=A?ut:ut[0];g(He,ot)}}),Le=me(A,gt,Te,Ne,Ae,le,se,p),bt=(0,_t.zX)(function(Vt){Le(Vt)}),at=o.useMemo(function(){return{options:ie,fieldNames:D,values:Te,halfValues:Ne,changeOnSelect:h,onSelect:bt,checkable:u,searchOptions:[],dropdownPrefixCls:null,loadData:y,expandTrigger:C,expandIcon:b,loadingIcon:I,dropdownMenuColumnStyle:null}},[ie,D,Te,Ne,h,bt,u,y,C,b,I]),Ce="".concat(a,"-panel"),ze=!ie.length;return o.createElement(mt.Provider,{value:at},o.createElement("div",{className:W()(Ce,(e={},(0,Z.Z)(e,"".concat(Ce,"-rtl"),$==="rtl"),(0,Z.Z)(e,"".concat(Ce,"-empty"),ze),e),l),style:i},ze?M:o.createElement(Bt,{prefixCls:a,searchValue:null,multiple:A,toggleOpen:it,open:!0,direction:$})))}function Me(t){var e=t.onPopupVisibleChange,n=t.popupVisible,r=t.popupClassName,a=t.popupPlacement;warning(!e,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(n===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(r===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(a===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Ze(t,e){if(t){var n=function r(a){for(var i=0;i":ie,se=t.loadingIcon,_=t.children,de=t.dropdownMatchSelectWidth,ye=de===void 0?!1:de,Te=t.showCheckedStrategy,Ne=Te===void 0?ht:Te,Ae=(0,E.Z)(t,he),gt=(0,dn.ZP)(n),Le=!!m,bt=(0,nt.Z)(l,{value:s,postState:Ct}),at=(0,O.Z)(bt,2),Ce=at[0],ze=at[1],Vt=o.useMemo(function(){return Ge(i)},[JSON.stringify(i)]),Nt=_e(Vt,b),ut=(0,O.Z)(Nt,3),He=ut[0],ot=ut[1],ft=ut[2],lt=(0,nt.Z)("",{value:p,postState:function(Mn){return Mn||""}}),vt=(0,O.Z)(lt,2),Ht=vt[0],qt=vt[1],Ft=function(Mn,Qn){qt(Mn),Qn.source!=="blur"&&y&&y(Mn)},fn=tn(C),vn=(0,O.Z)(fn,2),wn=vn[0],Zn=vn[1],sn=Xe(Ht,He,Vt,I||a,Zn,u),st=Mt(He,Vt),xt=be(Le,Ce,ot,ft,st),Gt=(0,O.Z)(xt,3),Wt=Gt[0],Ut=Gt[1],Sn=Gt[2],Nn=o.useMemo(function(){var Qt=Dt(Wt),Mn=rt(Qt,ot,Ne);return[].concat((0,ce.Z)(Sn),(0,ce.Z)(ft(Mn)))},[Wt,ot,ft,Sn,Ne]),Ln=Be(Nn,He,Vt,Le,v),Dn=(0,St.Z)(function(Qt){if(ze(Qt),f){var Mn=Ct(Qt),Qn=Mn.map(function(Hr){return Y(Hr,He,Vt).map(function(Ga){return Ga.option})}),lr=Le?Mn:Mn[0],dr=Le?Qn:Qn[0];f(lr,dr)}}),kn=me(Le,Dn,Wt,Ut,Sn,ot,ft,Ne),Jn=(0,St.Z)(function(Qt){(!Le||g)&&qt(""),kn(Qt)}),Tn=function(Mn,Qn){if(Qn.type==="clear"){Dn([]);return}var lr=Qn.values[0],dr=lr.valueCells;Jn(dr)},On=M!==void 0?M:P,ir=j||A,br=D||z,Lr=function(Mn){re==null||re(Mn),Q==null||Q(Mn)},ln=o.useMemo(function(){return{options:He,fieldNames:Vt,values:Wt,halfValues:Ut,changeOnSelect:u,onSelect:Jn,checkable:m,searchOptions:sn,dropdownPrefixCls:I,loadData:$,expandTrigger:x,expandIcon:le,loadingIcon:se,dropdownMenuColumnStyle:F}},[He,Vt,Wt,Ut,u,Jn,m,sn,I,$,x,le,se,F]),Yt=!(Ht?sn:He).length,mn=Ht&&Zn.matchInputWidth||Yt?{}:{minWidth:"auto"};return o.createElement(mt.Provider,{value:ln},o.createElement(Zt.Ac,(0,oe.Z)({},Ae,{ref:e,id:gt,prefixCls:a,autoClearSearchValue:g,dropdownMatchSelectWidth:ye,dropdownStyle:(0,d.Z)((0,d.Z)({},mn),U),displayValues:Ln,onDisplayValuesChange:Tn,mode:Le?"multiple":void 0,searchValue:Ht,onSearch:Ft,showSearch:wn,OptionList:Kt,emptyOptions:Yt,open:On,dropdownClassName:ir,placement:br,onDropdownVisibleChange:Lr,getRawInputElement:function(){return _}})))});we.SHOW_PARENT=ht,we.SHOW_CHILD=Tt,we.Panel=We;var ke=we,Ot=ke,jt=c(3139),$t=c(76393),Jt=c(4477),xn=c(11925),hn=c(36323),Xt=c(99248),on=c(94035),gn=c(456),pn=c(84477),Rt=c(73064),rn=c(56107),cn=c(34452),At=c(40073),Bn=c(41742),Yn=c(58505),Lt=c(26490);function ct(t,e){const{getPrefixCls:n,direction:r,renderEmpty:a}=o.useContext(Xt.E_),i=e||r,l=n("select",t),s=n("cascader",t);return[l,s,i,a]}function et(t,e){return o.useMemo(()=>e?o.createElement("span",{className:`${t}-checkbox-inner`}):!1,[e])}var Fe=c(35051),Je=c(60190);function Ye(t,e,n){let r=n;n||(r=e?o.createElement(Fe.Z,null):o.createElement(Je.Z,null));const a=o.createElement("span",{className:`${t}-menu-item-loading-icon`},o.createElement(ve.Z,{spin:!0}));return[r,a]}var nn=c(32016),Pn=c(44244),Qe=c(26477),Un=c(57670),Rn=c(4614),fr=t=>{const{prefixCls:e,componentCls:n}=t,r=`${n}-menu-item`,a=` + &${r}-expand ${r}-expand-icon, + ${r}-loading-icon +`;return[(0,Un.C2)(`${e}-checkbox`,t),{[n]:{"&-checkbox":{top:0,marginInlineEnd:t.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:t.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:t.controlItemWidth,height:t.dropdownHeight,margin:0,padding:t.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Qe.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},"&-item":Object.assign(Object.assign({},Rn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:t.optionPadding,lineHeight:t.lineHeight,cursor:"pointer",transition:`all ${t.motionDurationMid}`,borderRadius:t.borderRadiusSM,"&:hover":{background:t.controlItemBgHover},"&-disabled":{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:t.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{["&, &:hover"]:{fontWeight:t.optionSelectedFontWeight,backgroundColor:t.optionSelectedBg}},"&-content":{flex:"auto"},[a]:{marginInlineStart:t.paddingXXS,color:t.colorTextDescription,fontSize:t.fontSizeIcon},"&-keyword":{color:t.colorHighlight}})}}}]};const Nr=t=>{const{componentCls:e,antCls:n}=t;return[{[e]:{width:t.controlWidth}},{[`${e}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},fr(t)]},{[`${e}-dropdown-rtl`]:{direction:"rtl"}},(0,nn.c)(t)]},aa=t=>{const e=Math.round((t.controlHeight-t.fontSize*t.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:t.controlItemBgActive,optionSelectedFontWeight:t.fontWeightStrong,optionPadding:`${e}px ${t.paddingSM}px`,menuPadding:t.paddingXXS}};var Er=(0,Pn.I$)("Cascader",t=>[Nr(t)],aa);const oa=t=>{const{componentCls:e}=t;return{[`${e}-panel`]:[fr(t),{display:"inline-flex",border:`${(0,Qe.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,borderRadius:t.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${e}-menus`]:{alignItems:"stretch"},[`${e}-menu`]:{height:"auto"},"&-empty":{padding:t.paddingXXS}}]}};var ia=(0,Pn.ZP)(["Cascader","Panel"],t=>oa(t),aa);function la(t){const{prefixCls:e,className:n,multiple:r,rootClassName:a,notFoundContent:i,direction:l,expandIcon:s}=t,[u,f,v,m]=ct(e,l),h=(0,pn.Z)(f),[g,p]=Er(f,h);ia(f);const y=v==="rtl",[C,x]=Ye(u,y,s),b=i||(m==null?void 0:m("Cascader"))||o.createElement(on.Z,{componentName:"Cascader"}),I=et(f,r);return g(o.createElement(We,Object.assign({},t,{checkable:I,prefixCls:f,className:W()(n,p,a,h),notFoundContent:b,direction:v,expandIcon:C,loadingIcon:x})))}var Za=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);au===0?[s]:[].concat((0,ce.Z)(l),[e,s]),[]),a=[];let i=0;return r.forEach((l,s)=>{const u=i+l.length;let f=t.slice(i,u);i=u,s%2===1&&(f=o.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},f)),a.push(f)}),a}const Oa=(t,e,n,r)=>{const a=[],i=t.toLowerCase();return e.forEach((l,s)=>{s!==0&&a.push(" / ");let u=l[r.label];const f=typeof u;(f==="string"||f==="number")&&(u=zr(String(u),i,n)),a.push(u)}),a},xr=o.forwardRef((t,e)=>{var n;const{prefixCls:r,size:a,disabled:i,className:l,rootClassName:s,multiple:u,bordered:f=!0,transitionName:v,choiceTransitionName:m="",popupClassName:h,dropdownClassName:g,expandIcon:p,placement:y,showSearch:C,allowClear:x=!0,notFoundContent:b,direction:I,getPopupContainer:$,status:P,showArrow:M,builtinPlacements:A,style:j}=t,F=Za(t,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),U=(0,jt.Z)(F,["suffixIcon"]),{getPopupContainer:z,getPrefixCls:D,popupOverflow:re,cascader:Q}=o.useContext(Xt.E_),{status:ie,hasFeedback:le,isFormItemInput:se,feedbackIcon:_}=o.useContext(rn.aM),de=(0,hn.F)(ie,P),[ye,Te,Ne,Ae]=ct(r,I),gt=Ne==="rtl",Le=D(),bt=(0,pn.Z)(ye),[at,Ce]=(0,cn.Z)(ye,bt),ze=(0,pn.Z)(Te),[Vt]=Er(Te,ze),{compactSize:Nt,compactItemClassnames:ut}=(0,Lt.ri)(ye,I),He=b||(Ae==null?void 0:Ae("Cascader"))||o.createElement(on.Z,{componentName:"Cascader"}),ot=W()(h||g,`${Te}-dropdown`,{[`${Te}-dropdown-rtl`]:Ne==="rtl"},s,bt,ze,Ce),ft=o.useMemo(()=>{if(!C)return C;let Sn={render:Oa};return typeof C=="object"&&(Sn=Object.assign(Object.assign({},Sn),C)),Sn},[C]),lt=(0,Rt.Z)(Sn=>{var Nn;return(Nn=a!=null?a:Nt)!==null&&Nn!==void 0?Nn:Sn}),vt=o.useContext(gn.Z),Ht=i!=null?i:vt,[qt,Ft]=Ye(ye,gt,p),fn=et(Te,u),vn=(0,Yn.Z)(t.suffixIcon,M),{suffixIcon:wn,removeIcon:Zn,clearIcon:sn}=(0,Bn.Z)(Object.assign(Object.assign({},t),{hasFeedback:le,feedbackIcon:_,showSuffixIcon:vn,multiple:u,prefixCls:ye,componentName:"Cascader"})),st=o.useMemo(()=>y!==void 0?y:gt?"bottomRight":"bottomLeft",[y,gt]),xt=(0,At.Z)(A,re),Gt=x===!0?{clearIcon:sn}:x,[Wt]=(0,$t.Cn)("SelectLike",(n=U.dropdownStyle)===null||n===void 0?void 0:n.zIndex),Ut=o.createElement(Ot,Object.assign({prefixCls:ye,className:W()(!r&&Te,{[`${ye}-lg`]:lt==="large",[`${ye}-sm`]:lt==="small",[`${ye}-rtl`]:gt,[`${ye}-borderless`]:!f,[`${ye}-in-form-item`]:se},(0,hn.Z)(ye,de,le),ut,Q==null?void 0:Q.className,l,s,bt,ze,Ce),disabled:Ht,style:Object.assign(Object.assign({},Q==null?void 0:Q.style),j)},U,{builtinPlacements:xt,direction:Ne,placement:st,notFoundContent:He,allowClear:Gt,showSearch:ft,expandIcon:qt,suffixIcon:wn,removeIcon:Zn,loadingIcon:Ft,checkable:fn,dropdownClassName:ot,dropdownPrefixCls:r||Te,dropdownStyle:Object.assign(Object.assign({},U.dropdownStyle),{zIndex:Wt}),choiceTransitionName:(0,Jt.m)(Le,"",m),transitionName:(0,Jt.m)(Le,"slide-up",v),getPopupContainer:$||z,ref:e}));return Vt(at(Ut))}),rr=(0,xn.Z)(xr);xr.SHOW_PARENT=Wr,xr.SHOW_CHILD=Fr,xr.Panel=la,xr._InternalPanelDoNotUseOrYouWillBeFired=rr;var Xn=xr,Vn=c(73142),N=c(63342),Sr=["radioType","renderFormItem","mode","render","label","light"],Rr=function(e,n){var r,a=e.radioType,i=e.renderFormItem,l=e.mode,s=e.render,u=e.label,f=e.light,v=(0,E.Z)(e,Sr),m=(0,o.useContext)(X.ZP.ConfigContext),h=m.getPrefixCls,g=h("pro-field-cascader"),p=(0,Vn.aK)(v),y=(0,O.Z)(p,3),C=y[0],x=y[1],b=y[2],I=(0,V.YB)(),$=(0,o.useRef)(),P=(0,o.useState)(!1),M=(0,O.Z)(P,2),A=M[0],j=M[1];(0,o.useImperativeHandle)(n,function(){return(0,d.Z)((0,d.Z)({},$.current||{}),{},{fetchData:function(Te){return b(Te)}})},[b]);var F=(0,o.useMemo)(function(){var ye;if(l==="read"){var Te=((ye=v.fieldProps)===null||ye===void 0?void 0:ye.fieldNames)||{},Ne=Te.value,Ae=Ne===void 0?"value":Ne,gt=Te.label,Le=gt===void 0?"label":gt,bt=Te.children,at=bt===void 0?"children":bt,Ce=new Map,ze=function Vt(Nt){if(!(Nt!=null&&Nt.length))return Ce;for(var ut=Nt.length,He=0;He=1?1:C,a:x.a})},no=function(e,n,r,a){var i=e.current.getBoundingClientRect(),l=i.width,s=i.height,u=n.current.getBoundingClientRect(),f=u.width,v=u.height,m=f/2,h=v/2,g=r.toHsb();if(!(f===0&&v===0||f!==v)){if(a)switch(a){case"hue":return{x:g.h/360*l-m,y:-h/3};case"alpha":return{x:g.a/1*l-m,y:-h/3}}return{x:g.s*l-m,y:(1-g.b)*s-h}}},ro=function(e){var n=e.color,r=e.prefixCls,a=e.className,i=e.style,l=e.onClick,s="".concat(r,"-color-block");return o.createElement("div",{className:W()(s,a),style:i,onClick:l},o.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))},$a=ro;function S(t){var e="touches"in t?t.touches[0]:t,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-n,pageY:e.pageY-r}}function L(t){var e=t.offset,n=t.targetRef,r=t.containerRef,a=t.direction,i=t.onDragChange,l=t.onDragChangeComplete,s=t.calculate,u=t.color,f=t.disabledDrag,v=(0,o.useState)(e||{x:0,y:0}),m=(0,O.Z)(v,2),h=m[0],g=m[1],p=(0,o.useRef)(null),y=(0,o.useRef)(null),C=(0,o.useRef)({flag:!1});(0,o.useEffect)(function(){if(C.current.flag===!1){var P=s==null?void 0:s(r);P&&g(P)}},[u,r]),(0,o.useEffect)(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",y.current),p.current=null,y.current=null}},[]);var x=function(M){var A=S(M),j=A.pageX,F=A.pageY,U=r.current.getBoundingClientRect(),z=U.x,D=U.y,re=U.width,Q=U.height,ie=n.current.getBoundingClientRect(),le=ie.width,se=ie.height,_=le/2,de=se/2,ye=Math.max(0,Math.min(j-z,re))-_,Te=Math.max(0,Math.min(F-D,Q))-de,Ne={x:ye,y:a==="x"?h.y:Te};if(le===0&&se===0||le!==se)return!1;g(Ne),i==null||i(Ne)},b=function(M){M.preventDefault(),x(M)},I=function(M){M.preventDefault(),C.current.flag=!1,document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",y.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",y.current),p.current=null,y.current=null,l==null||l()},$=function(M){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",y.current),!f&&(x(M),C.current.flag=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",I),document.addEventListener("touchmove",b),document.addEventListener("touchend",I),p.current=b,y.current=I)};return[h,$]}var ne=L,dt=function(e){var n=e.size,r=n===void 0?"default":n,a=e.color,i=e.prefixCls;return o.createElement("div",{className:W()("".concat(i,"-handler"),(0,Z.Z)({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:a}})},bn=dt,$n=function(e){var n=e.children,r=e.style,a=e.prefixCls;return o.createElement("div",{className:"".concat(a,"-palette"),style:(0,d.Z)({position:"relative"},r)},n)},Fn=$n,yn=(0,o.forwardRef)(function(t,e){var n=t.children,r=t.offset;return o.createElement("div",{ref:e,style:{position:"absolute",left:r.x,top:r.y,zIndex:1}},n)}),jn=yn,ar=function(e){var n=e.color,r=e.onChange,a=e.prefixCls,i=e.onChangeComplete,l=e.disabled,s=(0,o.useRef)(),u=(0,o.useRef)(),f=(0,o.useRef)(n),v=ne({color:n,containerRef:s,targetRef:u,calculate:function(y){return no(y,u,n)},onDragChange:function(y){var C=to({offset:y,targetRef:u,containerRef:s,color:n});f.current=C,r(C)},onDragChangeComplete:function(){return i==null?void 0:i(f.current)},disabledDrag:l}),m=(0,O.Z)(v,2),h=m[0],g=m[1];return o.createElement("div",{ref:s,className:"".concat(a,"-select"),onMouseDown:g,onTouchStart:g},o.createElement(Fn,{prefixCls:a},o.createElement(jn,{offset:h,ref:u},o.createElement(bn,{color:n.toRgbString(),prefixCls:a})),o.createElement("div",{className:"".concat(a,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},tr=ar,Yr=function(e){var n=e.colors,r=e.children,a=e.direction,i=a===void 0?"to right":a,l=e.type,s=e.prefixCls,u=(0,o.useMemo)(function(){return n.map(function(f,v){var m=Pr(f);return l==="alpha"&&v===n.length-1&&m.setAlpha(1),m.toRgbString()}).join(",")},[n,l]);return o.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(u,")")}},r)},Na=Yr,Fa=function(e){var n=e.gradientColors,r=e.direction,a=e.type,i=a===void 0?"hue":a,l=e.color,s=e.value,u=e.onChange,f=e.onChangeComplete,v=e.disabled,m=e.prefixCls,h=(0,o.useRef)(),g=(0,o.useRef)(),p=(0,o.useRef)(l),y=ne({color:l,targetRef:g,containerRef:h,calculate:function($){return no($,g,l,i)},onDragChange:function($){var P=to({offset:$,targetRef:g,containerRef:h,color:l,type:i});p.current=P,u(P)},onDragChangeComplete:function(){f==null||f(p.current,i)},direction:"x",disabledDrag:v}),C=(0,O.Z)(y,2),x=C[0],b=C[1];return o.createElement("div",{ref:h,className:W()("".concat(m,"-slider"),"".concat(m,"-slider-").concat(i)),onMouseDown:b,onTouchStart:b},o.createElement(Fn,{prefixCls:m},o.createElement(jn,{offset:x,ref:g},o.createElement(bn,{size:"small",color:s,prefixCls:m})),o.createElement(Na,{colors:n,direction:r,type:i,prefixCls:m})))},ja=Fa;function Ci(t){return t!==void 0}var hs=function(e,n){var r=n.defaultValue,a=n.value,i=(0,o.useState)(function(){var f;return Ci(a)?f=a:Ci(r)?f=r:f=e,Pr(f)}),l=(0,O.Z)(i,2),s=l[0],u=l[1];return(0,o.useEffect)(function(){a&&u(Pr(a))},[a]),[s,u]},gs=hs,ps=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],bs=(0,o.forwardRef)(function(t,e){var n=t.value,r=t.defaultValue,a=t.prefixCls,i=a===void 0?qa:a,l=t.onChange,s=t.onChangeComplete,u=t.className,f=t.style,v=t.panelRender,m=t.disabledAlpha,h=m===void 0?!1:m,g=t.disabled,p=g===void 0?!1:g,y=gs(eo,{value:n,defaultValue:r}),C=(0,O.Z)(y,2),x=C[0],b=C[1],I=(0,o.useMemo)(function(){var j=Pr(x.toRgbString());return j.setAlpha(1),j.toRgbString()},[x]),$=W()("".concat(i,"-panel"),u,(0,Z.Z)({},"".concat(i,"-panel-disabled"),p)),P={prefixCls:i,onChangeComplete:s,disabled:p},M=function(F,U){n||b(F),l==null||l(F,U)},A=o.createElement(o.Fragment,null,o.createElement(tr,(0,oe.Z)({color:x,onChange:M},P)),o.createElement("div",{className:"".concat(i,"-slider-container")},o.createElement("div",{className:W()("".concat(i,"-slider-group"),(0,Z.Z)({},"".concat(i,"-slider-group-disabled-alpha"),h))},o.createElement(ja,(0,oe.Z)({gradientColors:ps,color:x,value:"hsl(".concat(x.toHsb().h,",100%, 50%)"),onChange:function(F){return M(F,"hue")}},P)),!h&&o.createElement(ja,(0,oe.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",I],color:x,value:x.toRgbString(),onChange:function(F){return M(F,"alpha")}},P))),o.createElement($a,{color:x.toRgbString(),prefixCls:i})));return o.createElement("div",{className:$,style:f,ref:e},typeof v=="function"?v(A):A)}),ys=bs;const xi=o.createContext({}),Si=o.createContext({}),{Provider:Cs}=xi,{Provider:xs}=Si,ao=(t,e)=>(t==null?void 0:t.replace(/[^\w/]/gi,"").slice(0,e?8:6))||"",Ss=(t,e)=>t?ao(t,e):"";let Pi=function(){function t(e){(0,jr.Z)(this,t),this.metaColor=new ua(e),e||this.metaColor.setAlpha(0)}return(0,Dr.Z)(t,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Ss(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),t}();const Ps="ant-color-picker",qn=t=>t instanceof Pi?t:new Pi(t),oo=t=>Math.round(Number(t||0)),io=t=>oo(t.toHsb().a*100),Do=(t,e)=>{const n=t.toHsb();return n.a=e||1,qn(n)};var wi=t=>{let{prefixCls:e,value:n,colorCleared:r,onChange:a}=t;const i=()=>{if(n&&!r){const l=n.toHsb();l.a=0;const s=qn(l);a==null||a(s)}};return o.createElement("div",{className:`${e}-clear`,onClick:i})},ws=c(76742),Ir;(function(t){t.hex="hex",t.rgb="rgb",t.hsb="hsb"})(Ir||(Ir={}));var Zs=c(13795),Os=c(37519),Xr=c(83317),Es=function(e,n){return o.createElement(Xr.Z,(0,oe.Z)({},e,{ref:n,icon:Os.Z}))},Rs=o.forwardRef(Es);function To(){return typeof BigInt=="function"}function Zi(t){return!t&&t!==0&&!Number.isNaN(t)||!String(t).trim()}function Gr(t){var e=t.trim(),n=e.startsWith("-");n&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e="0".concat(e));var r=e||"0",a=r.split("."),i=a[0]||"0",l=a[1]||"0";i==="0"&&l==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:l,fullStr:"".concat(s).concat(r)}}function Ao(t){var e=String(t);return!Number.isNaN(Number(e))&&e.includes("e")}function Jr(t){var e=String(t);if(Ao(t)){var n=Number(e.slice(e.indexOf("e-")+2)),r=e.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return e.includes(".")&&Lo(e)?e.length-e.indexOf(".")-1:0}function lo(t){var e=String(t);if(Ao(t)){if(t>Number.MAX_SAFE_INTEGER)return String(To()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(t0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Gr("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),t}(),Ms=function(){function t(e){if((0,jr.Z)(this,t),(0,Z.Z)(this,"origin",""),(0,Z.Z)(this,"number",void 0),(0,Z.Z)(this,"empty",void 0),Zi(e)){this.empty=!0;return}this.origin=String(e),this.number=Number(e)}return(0,Dr.Z)(t,[{key:"negate",value:function(){return new t(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new t(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new t(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new t(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":lo(this.number):this.origin}}]),t}();function Oi(t){return To()?new Is(t):new Ms(t)}function so(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t==="")return"";var a=Gr(t),i=a.negativeStr,l=a.integerStr,s=a.decimalStr,u="".concat(e).concat(s),f="".concat(i).concat(l);if(n>=0){var v=Number(s[n]);if(v>=5&&!r){var m=Oi(t).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-v));return so(m.toString(),e,n,r)}return n===0?f:"".concat(f).concat(e).concat(s.padEnd(n,"0").slice(0,n))}return u===".0"?f:"".concat(f).concat(u)}var wr=Oi,$s=c(3248),Da=c(79269),Ta=c(52401);function Ns(t,e){var n=(0,o.useRef)(null);function r(){try{var i=t.selectionStart,l=t.selectionEnd,s=t.value,u=s.substring(0,i),f=s.substring(l);n.current={start:i,end:l,value:s,beforeTxt:u,afterTxt:f}}catch(v){}}function a(){if(t&&n.current&&e)try{var i=t.value,l=n.current,s=l.beforeTxt,u=l.afterTxt,f=l.start,v=i.length;if(i.endsWith(u))v=i.length-n.current.afterTxt.length;else if(i.startsWith(s))v=s.length;else{var m=s[f-1],h=i.indexOf(m,f-1);h!==-1&&(v=h+1)}t.setSelectionRange(v,v)}catch(g){(0,Ue.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var Fs=c(88099),js=function(){var e=(0,o.useState)(!1),n=(0,O.Z)(e,2),r=n[0],a=n[1];return(0,Da.Z)(function(){a((0,Fs.Z)())},[]),r},Ds=js,Qr=c(54272),Ts=200,As=600;function Ls(t){var e=t.prefixCls,n=t.upNode,r=t.downNode,a=t.upDisabled,i=t.downDisabled,l=t.onStep,s=o.useRef(),u=o.useRef([]),f=o.useRef();f.current=l;var v=function(){clearTimeout(s.current)},m=function(I,$){I.preventDefault(),v(),f.current($);function P(){f.current($),s.current=setTimeout(P,Ts)}s.current=setTimeout(P,As)};o.useEffect(function(){return function(){v(),u.current.forEach(function(b){return Qr.Z.cancel(b)})}},[]);var h=Ds();if(h)return null;var g="".concat(e,"-handler"),p=W()(g,"".concat(g,"-up"),(0,Z.Z)({},"".concat(g,"-up-disabled"),a)),y=W()(g,"".concat(g,"-down"),(0,Z.Z)({},"".concat(g,"-down-disabled"),i)),C=function(){return u.current.push((0,Qr.Z)(v))},x={unselectable:"on",role:"button",onMouseUp:C,onMouseLeave:C};return o.createElement("div",{className:"".concat(g,"-wrap")},o.createElement("span",(0,oe.Z)({},x,{onMouseDown:function(I){m(I,!0)},"aria-label":"Increase Value","aria-disabled":a,className:p}),n||o.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-up-inner")})),o.createElement("span",(0,oe.Z)({},x,{onMouseDown:function(I){m(I,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:y}),r||o.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-down-inner")})))}function Ei(t){var e=typeof t=="number"?lo(t):Gr(t).fullStr,n=e.includes(".");return n?Gr(e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:t+"0"}var Hs=c(49990),Bs=function(){var t=(0,o.useRef)(0),e=function(){Qr.Z.cancel(t.current)};return(0,o.useEffect)(function(){return e},[]),function(n){e(),t.current=(0,Qr.Z)(function(){n()})}},Vs=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],Ws=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Ri=function(e,n){return e||n.isEmpty()?n.toString():n.toNumber()},Ii=function(e){var n=wr(e);return n.isInvalidate()?null:n},zs=o.forwardRef(function(t,e){var n,r=t.prefixCls,a=r===void 0?"rc-input-number":r,i=t.className,l=t.style,s=t.min,u=t.max,f=t.step,v=f===void 0?1:f,m=t.defaultValue,h=t.value,g=t.disabled,p=t.readOnly,y=t.upHandler,C=t.downHandler,x=t.keyboard,b=t.controls,I=b===void 0?!0:b,$=t.classNames,P=t.stringMode,M=t.parser,A=t.formatter,j=t.precision,F=t.decimalSeparator,U=t.onChange,z=t.onInput,D=t.onPressEnter,re=t.onStep,Q=t.changeOnBlur,ie=Q===void 0?!0:Q,le=(0,E.Z)(t,Vs),se="".concat(a,"-input"),_=o.useRef(null),de=o.useState(!1),ye=(0,O.Z)(de,2),Te=ye[0],Ne=ye[1],Ae=o.useRef(!1),gt=o.useRef(!1),Le=o.useRef(!1),bt=o.useState(function(){return wr(h!=null?h:m)}),at=(0,O.Z)(bt,2),Ce=at[0],ze=at[1];function Vt(ln){h===void 0&&ze(ln)}var Nt=o.useCallback(function(ln,Yt){if(!Yt)return j>=0?j:Math.max(Jr(ln),Jr(v))},[j,v]),ut=o.useCallback(function(ln){var Yt=String(ln);if(M)return M(Yt);var mn=Yt;return F&&(mn=mn.replace(F,".")),mn.replace(/[^\w.-]+/g,"")},[M,F]),He=o.useRef(""),ot=o.useCallback(function(ln,Yt){if(A)return A(ln,{userTyping:Yt,input:String(He.current)});var mn=typeof ln=="number"?lo(ln):ln;if(!Yt){var Qt=Nt(mn,Yt);if(Lo(mn)&&(F||Qt>=0)){var Mn=F||".";mn=so(mn,Mn,Qt)}}return mn},[A,Nt,F]),ft=o.useState(function(){var ln=m!=null?m:h;return Ce.isInvalidate()&&["string","number"].includes((0,R.Z)(ln))?Number.isNaN(ln)?"":ln:ot(Ce.toString(),!1)}),lt=(0,O.Z)(ft,2),vt=lt[0],Ht=lt[1];He.current=vt;function qt(ln,Yt){Ht(ot(ln.isInvalidate()?ln.toString(!1):ln.toString(!Yt),Yt))}var Ft=o.useMemo(function(){return Ii(u)},[u,j]),fn=o.useMemo(function(){return Ii(s)},[s,j]),vn=o.useMemo(function(){return!Ft||!Ce||Ce.isInvalidate()?!1:Ft.lessEquals(Ce)},[Ft,Ce]),wn=o.useMemo(function(){return!fn||!Ce||Ce.isInvalidate()?!1:Ce.lessEquals(fn)},[fn,Ce]),Zn=Ns(_.current,Te),sn=(0,O.Z)(Zn,2),st=sn[0],xt=sn[1],Gt=function(Yt){return Ft&&!Yt.lessEquals(Ft)?Ft:fn&&!fn.lessEquals(Yt)?fn:null},Wt=function(Yt){return!Gt(Yt)},Ut=function(Yt,mn){var Qt=Yt,Mn=Wt(Qt)||Qt.isEmpty();if(!Qt.isEmpty()&&!mn&&(Qt=Gt(Qt)||Qt,Mn=!0),!p&&!g&&Mn){var Qn=Qt.toString(),lr=Nt(Qn,mn);return lr>=0&&(Qt=wr(so(Qn,".",lr)),Wt(Qt)||(Qt=wr(so(Qn,".",lr,!0)))),Qt.equals(Ce)||(Vt(Qt),U==null||U(Qt.isEmpty()?null:Ri(P,Qt)),h===void 0&&qt(Qt,mn)),Qt}return Ce},Sn=Bs(),Nn=function ln(Yt){if(st(),He.current=Yt,Ht(Yt),!gt.current){var mn=ut(Yt),Qt=wr(mn);Qt.isNaN()||Ut(Qt,!0)}z==null||z(Yt),Sn(function(){var Mn=Yt;M||(Mn=Yt.replace(/。/g,".")),Mn!==Yt&&ln(Mn)})},Ln=function(){gt.current=!0},Dn=function(){gt.current=!1,Nn(_.current.value)},kn=function(Yt){Nn(Yt.target.value)},Jn=function(Yt){var mn;if(!(Yt&&vn||!Yt&&wn)){Ae.current=!1;var Qt=wr(Le.current?Ei(v):v);Yt||(Qt=Qt.negate());var Mn=(Ce||wr(0)).add(Qt.toString()),Qn=Ut(Mn,!1);re==null||re(Ri(P,Qn),{offset:Le.current?Ei(v):v,type:Yt?"up":"down"}),(mn=_.current)===null||mn===void 0||mn.focus()}},Tn=function(Yt){var mn=wr(ut(vt)),Qt=mn;mn.isNaN()?Qt=Ut(Ce,Yt):Qt=Ut(mn,Yt),h!==void 0?qt(Ce,!1):Qt.isNaN()||qt(Qt,!1)},On=function(){Ae.current=!0},ir=function(Yt){var mn=Yt.key,Qt=Yt.shiftKey;Ae.current=!0,Le.current=Qt,mn==="Enter"&&(gt.current||(Ae.current=!1),Tn(!1),D==null||D(Yt)),x!==!1&&!gt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(mn)&&(Jn(mn==="Up"||mn==="ArrowUp"),Yt.preventDefault())},br=function(){Ae.current=!1,Le.current=!1},Lr=function(){ie&&Tn(!1),Ne(!1),Ae.current=!1};return(0,Da.o)(function(){Ce.isInvalidate()||qt(Ce,!1)},[j,A]),(0,Da.o)(function(){var ln=wr(h);ze(ln);var Yt=wr(ut(vt));(!ln.equals(Yt)||!Ae.current||A)&&qt(ln,Ae.current)},[h]),(0,Da.o)(function(){A&&xt()},[vt]),o.createElement("div",{className:W()(a,$==null?void 0:$.input,i,(n={},(0,Z.Z)(n,"".concat(a,"-focused"),Te),(0,Z.Z)(n,"".concat(a,"-disabled"),g),(0,Z.Z)(n,"".concat(a,"-readonly"),p),(0,Z.Z)(n,"".concat(a,"-not-a-number"),Ce.isNaN()),(0,Z.Z)(n,"".concat(a,"-out-of-range"),!Ce.isInvalidate()&&!Wt(Ce)),n)),style:l,onFocus:function(){Ne(!0)},onBlur:Lr,onKeyDown:ir,onKeyUp:br,onCompositionStart:Ln,onCompositionEnd:Dn,onBeforeInput:On},I&&o.createElement(Ls,{prefixCls:a,upNode:y,downNode:C,upDisabled:vn,downDisabled:wn,onStep:Jn}),o.createElement("div",{className:"".concat(se,"-wrap")},o.createElement("input",(0,oe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":u,"aria-valuenow":Ce.isInvalidate()?null:Ce.toString(),step:v},le,{ref:(0,Ta.sQ)(_,e),className:se,value:vt,onChange:kn,disabled:g,readOnly:p}))))}),Mi=o.forwardRef(function(t,e){var n=t.disabled,r=t.style,a=t.prefixCls,i=t.value,l=t.prefix,s=t.suffix,u=t.addonBefore,f=t.addonAfter,v=t.classes,m=t.className,h=t.classNames,g=(0,E.Z)(t,Ws),p=o.useRef(null),y=function(x){p.current&&(0,Hs.nH)(p.current,x)};return o.createElement($s.Q,{inputElement:o.createElement(zs,(0,oe.Z)({prefixCls:a,disabled:n,classNames:h,ref:(0,Ta.sQ)(p,e)},g)),className:m,triggerFocus:y,prefixCls:a,value:i,disabled:n,style:r,prefix:l,suffix:s,addonAfter:f,addonBefore:u,classes:v,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Mi.displayName="InputNumber";var ks=Mi,Ks=ks,Mr=c(57873),Zr=c(25830);const $i=(t,e)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=t;const i=e==="lg"?a:r;return{[`&-${e}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},Us=t=>{const{componentCls:e,lineWidth:n,lineType:r,colorBorder:a,borderRadius:i,fontSizeLG:l,controlHeightLG:s,controlHeightSM:u,colorError:f,paddingInlineSM:v,colorTextDescription:m,motionDurationMid:h,handleHoverColor:g,paddingInline:p,paddingBlock:y,handleBg:C,handleActiveBg:x,colorTextDisabled:b,borderRadiusSM:I,borderRadiusLG:$,controlWidth:P,handleOpacity:M,handleBorderColor:A,calc:j}=t;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rn.Wf)(t)),(0,Mr.ik)(t)),(0,Mr.bi)(t,e)),{display:"inline-block",width:P,margin:0,padding:0,border:`${(0,Qe.bf)(n)} ${r} ${a}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,borderRadius:$,[`input${e}-input`]:{height:j(s).sub(j(n).mul(2)).equal()}},"&-sm":{padding:0,borderRadius:I,[`input${e}-input`]:{height:j(u).sub(j(n).mul(2)).equal(),padding:`0 ${(0,Qe.bf)(v)}`}},"&-out-of-range":{[`${e}-input-wrap`]:{input:{color:f}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Rn.Wf)(t)),(0,Mr.s7)(t)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:$,fontSize:t.fontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:I}},[`${e}-wrapper-disabled > ${e}-group-addon`]:Object.assign({},(0,Mr.Xy)(t)),[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}),[`&-disabled ${e}-input`]:{cursor:"not-allowed"},[e]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rn.Wf)(t)),{width:"100%",padding:`${(0,Qe.bf)(y)} ${(0,Qe.bf)(p)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Mr.nz)(t.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[e]:Object.assign(Object.assign(Object.assign({[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{opacity:1},[`${e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:t.handleWidth,height:"100%",background:C,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:M,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${h} linear ${h}`,[`${e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${e}-handler-up-inner, + ${e}-handler-down-inner + `]:{marginInlineEnd:0,fontSize:t.handleFontSize}}},[`${e}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Qe.bf)(n)} ${r} ${A}`,transition:`all ${h} linear`,"&:active":{background:x},"&:hover":{height:"60%",[` + ${e}-handler-up-inner, + ${e}-handler-down-inner + `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Rn.Ro)()),{color:m,transition:`all ${h} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:i},[`${e}-handler-down`]:{borderBlockStart:`${(0,Qe.bf)(n)} ${r} ${A}`,borderEndEndRadius:i}},$i(t,"lg")),$i(t,"sm")),{"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"},[`${e}-input`]:{color:"inherit"}},[` + ${e}-handler-up-disabled, + ${e}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${e}-handler-up-disabled:hover &-handler-up-inner, + ${e}-handler-down-disabled:hover &-handler-down-inner + `]:{color:b}})},{[`${e}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${e}-handler-down`]:{borderBlockStartWidth:0}}}]},Ys=t=>{const{componentCls:e,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:i,borderRadiusLG:l,borderRadiusSM:s}=t;return{[`${e}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,Mr.ik)(t)),(0,Mr.bi)(t,`${e}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:l},"&-sm":{borderRadius:s},[`&:not(${e}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${e}-disabled`]:{background:"transparent"},[`> div${e}`]:{width:"100%",border:"none",outline:"none",[`&${e}-focused`]:{boxShadow:"none !important"}},[`input${e}-input`]:{padding:`${(0,Qe.bf)(n)} 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${e}-handler-wrap`]:{zIndex:2},[e]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:a}}})}},Xs=t=>Object.assign(Object.assign({},(0,Mr.TM)(t)),{controlWidth:90,handleWidth:t.controlHeightSM-t.lineWidth*2,handleFontSize:t.fontSize/2,handleVisible:"auto",handleActiveBg:t.colorFillAlter,handleBg:t.colorBgContainer,handleHoverColor:t.colorPrimary,handleBorderColor:t.colorBorder,handleOpacity:0}),Gs=t=>Object.assign(Object.assign({},t),{handleOpacity:t.handleVisible===!0?1:0});var Js=(0,Pn.I$)("InputNumber",t=>{const e=(0,Zr.TS)(t,(0,Mr.e5)(t));return[Us(e),Ys(e),(0,nn.c)(e)]},Xs,{format:Gs,unitless:{handleOpacity:!0}}),Qs=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{getPrefixCls:n,direction:r}=o.useContext(Xt.E_),a=o.useRef(null);o.useImperativeHandle(e,()=>a.current);const{className:i,rootClassName:l,size:s,disabled:u,prefixCls:f,addonBefore:v,addonAfter:m,prefix:h,bordered:g=!0,readOnly:p,status:y,controls:C}=t,x=Qs(t,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),b=n("input-number",f),I=(0,pn.Z)(b),[$,P]=Js(b,I),{compactSize:M,compactItemClassnames:A}=(0,Lt.ri)(b,r);let j=o.createElement(Rs,{className:`${b}-handler-up-inner`}),F=o.createElement(Zs.Z,{className:`${b}-handler-down-inner`});const U=typeof C=="boolean"?C:void 0;typeof C=="object"&&(j=typeof C.upIcon=="undefined"?j:o.createElement("span",{className:`${b}-handler-up-inner`},C.upIcon),F=typeof C.downIcon=="undefined"?F:o.createElement("span",{className:`${b}-handler-down-inner`},C.downIcon));const{hasFeedback:z,status:D,isFormItemInput:re,feedbackIcon:Q}=o.useContext(rn.aM),ie=(0,hn.F)(D,y),le=(0,Rt.Z)(Ae=>{var gt;return(gt=s!=null?s:M)!==null&>!==void 0?gt:Ae}),se=o.useContext(gn.Z),_=u!=null?u:se,de=W()({[`${b}-lg`]:le==="large",[`${b}-sm`]:le==="small",[`${b}-rtl`]:r==="rtl",[`${b}-borderless`]:!g,[`${b}-in-form-item`]:re},(0,hn.Z)(b,ie),P),ye=`${b}-group`,Te=z&&o.createElement(o.Fragment,null,Q),Ne=o.createElement(Ks,Object.assign({ref:a,disabled:_,className:W()(I,i,l,A),upHandler:j,downHandler:F,prefixCls:b,readOnly:p,controls:U,prefix:h,suffix:Te,addonAfter:m&&o.createElement(Lt.BR,null,o.createElement(rn.Ux,{override:!0,status:!0},m)),addonBefore:v&&o.createElement(Lt.BR,null,o.createElement(rn.Ux,{override:!0,status:!0},v)),classNames:{input:de},classes:{affixWrapper:W()((0,hn.Z)(`${b}-affix-wrapper`,ie,z),{[`${b}-affix-wrapper-sm`]:le==="small",[`${b}-affix-wrapper-lg`]:le==="large",[`${b}-affix-wrapper-rtl`]:r==="rtl",[`${b}-affix-wrapper-borderless`]:!g},P),wrapper:W()({[`${ye}-rtl`]:r==="rtl",[`${b}-wrapper-disabled`]:_},P),group:W()({[`${b}-group-wrapper-sm`]:le==="small",[`${b}-group-wrapper-lg`]:le==="large",[`${b}-group-wrapper-rtl`]:r==="rtl"},(0,hn.Z)(`${b}-group-wrapper`,ie,z),P)}},x));return $(Ne)}),Fi=Ni,_s=t=>o.createElement(X.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},o.createElement(Ni,Object.assign({},t)));Fi._InternalPanelDoNotUseOrYouWillBeFired=_s;var Tr=Fi,_r=t=>{let{prefixCls:e,min:n=0,max:r=100,value:a,onChange:i,className:l,formatter:s}=t;const u=`${e}-steppers`,[f,v]=(0,o.useState)(a);return(0,o.useEffect)(()=>{Number.isNaN(a)||v(a)},[a]),o.createElement(Tr,{className:W()(u,l),min:n,max:r,value:f,formatter:s,size:"small",onChange:m=>{a||v(m||0),i==null||i(m)}})},qs=t=>{let{prefixCls:e,value:n,onChange:r}=t;const a=`${e}-alpha-input`,[i,l]=(0,o.useState)(qn(n||"#000"));(0,o.useEffect)(()=>{n&&l(n)},[n]);const s=u=>{const f=i.toHsb();f.a=(u||0)/100;const v=qn(f);n||l(v),r==null||r(v)};return o.createElement(_r,{value:io(i),prefixCls:e,formatter:u=>`${u}%`,className:a,onChange:s})};const eu=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,ji=t=>eu.test(`#${t}`);var tu=t=>{let{prefixCls:e,value:n,onChange:r}=t;const a=`${e}-hex-input`,[i,l]=(0,o.useState)(n==null?void 0:n.toHex());(0,o.useEffect)(()=>{const u=n==null?void 0:n.toHex();ji(u)&&n&&l(ao(u))},[n]);const s=u=>{const f=u.target.value;l(ao(f)),ji(ao(f,!0))&&(r==null||r(qn(f)))};return o.createElement(vr.Z,{className:a,value:i,prefix:"#",onChange:s,size:"small"})},nu=t=>{let{prefixCls:e,value:n,onChange:r}=t;const a=`${e}-hsb-input`,[i,l]=(0,o.useState)(qn(n||"#000"));(0,o.useEffect)(()=>{n&&l(n)},[n]);const s=(u,f)=>{const v=i.toHsb();v[f]=f==="h"?u:(u||0)/100;const m=qn(v);n||l(m),r==null||r(m)};return o.createElement("div",{className:a},o.createElement(_r,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:e,className:a,formatter:u=>oo(u||0).toString(),onChange:u=>s(Number(u),"h")}),o.createElement(_r,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:e,className:a,formatter:u=>`${oo(u||0)}%`,onChange:u=>s(Number(u),"s")}),o.createElement(_r,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:e,className:a,formatter:u=>`${oo(u||0)}%`,onChange:u=>s(Number(u),"b")}))},ru=t=>{let{prefixCls:e,value:n,onChange:r}=t;const a=`${e}-rgb-input`,[i,l]=(0,o.useState)(qn(n||"#000"));(0,o.useEffect)(()=>{n&&l(n)},[n]);const s=(u,f)=>{const v=i.toRgb();v[f]=u||0;const m=qn(v);n||l(m),r==null||r(m)};return o.createElement("div",{className:a},o.createElement(_r,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:e,className:a,onChange:u=>s(Number(u),"r")}),o.createElement(_r,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:e,className:a,onChange:u=>s(Number(u),"g")}),o.createElement(_r,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:e,className:a,onChange:u=>s(Number(u),"b")}))};const au=[Ir.hex,Ir.hsb,Ir.rgb].map(t=>({value:t,label:t.toLocaleUpperCase()}));var ou=t=>{const{prefixCls:e,format:n,value:r,disabledAlpha:a,onFormatChange:i,onChange:l}=t,[s,u]=(0,nt.Z)(Ir.hex,{value:n,onChange:i}),f=`${e}-input`,v=h=>{u(h)},m=(0,o.useMemo)(()=>{const h={value:r,prefixCls:e,onChange:l};switch(s){case Ir.hsb:return o.createElement(nu,Object.assign({},h));case Ir.rgb:return o.createElement(ru,Object.assign({},h));case Ir.hex:default:return o.createElement(tu,Object.assign({},h))}},[s,e,r,l]);return o.createElement("div",{className:`${f}-container`},o.createElement(ws.Z,{value:s,bordered:!1,getPopupContainer:h=>h,popupMatchSelectWidth:68,placement:"bottomRight",onChange:v,className:`${e}-format-select`,size:"small",options:au}),o.createElement("div",{className:f},m),!a&&o.createElement(qs,{prefixCls:e,value:r,onChange:l}))},iu=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const t=(0,o.useContext)(xi),{prefixCls:e,colorCleared:n,allowClear:r,value:a,disabledAlpha:i,onChange:l,onClear:s,onChangeComplete:u}=t,f=iu(t,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return o.createElement(o.Fragment,null,r&&o.createElement(wi,Object.assign({prefixCls:e,value:a,colorCleared:n,onChange:v=>{l==null||l(v),s==null||s()}},f)),o.createElement(ys,{prefixCls:e,value:a==null?void 0:a.toHsb(),disabledAlpha:i,onChange:(v,m)=>l==null?void 0:l(v,m,!0),onChangeComplete:u}),o.createElement(ou,Object.assign({value:a,onChange:l,prefixCls:e,disabledAlpha:i},f)))},Ho=c(89259),Bo=c(96990),Ti=o.forwardRef(function(t,e){var n,r=t.prefixCls,a=t.forceRender,i=t.className,l=t.style,s=t.children,u=t.isActive,f=t.role,v=o.useState(u||a),m=(0,O.Z)(v,2),h=m[0],g=m[1];return o.useEffect(function(){(a||u)&&g(!0)},[a,u]),h?o.createElement("div",{ref:e,className:W()("".concat(r,"-content"),(n={},(0,Z.Z)(n,"".concat(r,"-content-active"),u),(0,Z.Z)(n,"".concat(r,"-content-inactive"),!u),n),i),style:l,role:f},o.createElement("div",{className:"".concat(r,"-content-box")},s)):null});Ti.displayName="PanelContent";var lu=Ti,su=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],uu=o.forwardRef(function(t,e){var n,r,a=t.showArrow,i=a===void 0?!0:a,l=t.headerClass,s=t.isActive,u=t.onItemClick,f=t.forceRender,v=t.className,m=t.prefixCls,h=t.collapsible,g=t.accordion,p=t.panelKey,y=t.extra,C=t.header,x=t.expandIcon,b=t.openMotion,I=t.destroyInactivePanel,$=t.children,P=(0,E.Z)(t,su),M=h==="disabled",A=h==="header",j=h==="icon",F=y!=null&&typeof y!="boolean",U=function(){u==null||u(p)},z=function(se){(se.key==="Enter"||se.keyCode===Se.Z.ENTER||se.which===Se.Z.ENTER)&&U()},D=typeof x=="function"?x(t):o.createElement("i",{className:"arrow"});D&&(D=o.createElement("div",{className:"".concat(m,"-expand-icon"),onClick:["header","icon"].includes(h)?U:void 0},D));var re=W()((n={},(0,Z.Z)(n,"".concat(m,"-item"),!0),(0,Z.Z)(n,"".concat(m,"-item-active"),s),(0,Z.Z)(n,"".concat(m,"-item-disabled"),M),n),v),Q=W()(l,(r={},(0,Z.Z)(r,"".concat(m,"-header"),!0),(0,Z.Z)(r,"".concat(m,"-header-collapsible-only"),A),(0,Z.Z)(r,"".concat(m,"-icon-collapsible-only"),j),r)),ie={className:Q,"aria-expanded":s,"aria-disabled":M,onKeyDown:z};return!A&&!j&&(ie.onClick=U,ie.role=g?"tab":"button",ie.tabIndex=M?-1:0),o.createElement("div",(0,oe.Z)({},P,{ref:e,className:re}),o.createElement("div",ie,i&&D,o.createElement("span",{className:"".concat(m,"-header-text"),onClick:h==="header"?U:void 0},C),F&&o.createElement("div",{className:"".concat(m,"-extra")},y)),o.createElement(Bo.ZP,(0,oe.Z)({visible:s,leavedClassName:"".concat(m,"-content-hidden")},b,{forceRender:f,removeOnLeave:I}),function(le,se){var _=le.className,de=le.style;return o.createElement(lu,{ref:se,prefixCls:m,className:_,style:de,isActive:s,forceRender:f,role:g?"tabpanel":void 0},$)}))}),Ai=uu,cu=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],du=function(e,n){var r=n.prefixCls,a=n.accordion,i=n.collapsible,l=n.destroyInactivePanel,s=n.onItemClick,u=n.activeKey,f=n.openMotion,v=n.expandIcon;return e.map(function(m,h){var g=m.children,p=m.label,y=m.key,C=m.collapsible,x=m.onItemClick,b=m.destroyInactivePanel,I=(0,E.Z)(m,cu),$=String(y!=null?y:h),P=C!=null?C:i,M=b!=null?b:l,A=function(U){P!=="disabled"&&(s(U),x==null||x(U))},j=!1;return a?j=u[0]===$:j=u.indexOf($)>-1,o.createElement(Ai,(0,oe.Z)({},I,{prefixCls:r,key:$,panelKey:$,isActive:j,accordion:a,openMotion:f,expandIcon:v,header:p,collapsible:P,onItemClick:A,destroyInactivePanel:M}),g)})},fu=function(e,n,r){if(!e)return null;var a=r.prefixCls,i=r.accordion,l=r.collapsible,s=r.destroyInactivePanel,u=r.onItemClick,f=r.activeKey,v=r.openMotion,m=r.expandIcon,h=e.key||String(n),g=e.props,p=g.header,y=g.headerClass,C=g.destroyInactivePanel,x=g.collapsible,b=g.onItemClick,I=!1;i?I=f[0]===h:I=f.indexOf(h)>-1;var $=x!=null?x:l,P=function(j){$!=="disabled"&&(u(j),b==null||b(j))},M={key:h,panelKey:h,header:p,headerClass:y,isActive:I,prefixCls:a,destroyInactivePanel:C!=null?C:s,openMotion:v,accordion:i,children:e.props.children,onItemClick:P,expandIcon:m,collapsible:$};return typeof e.type=="string"?e:(Object.keys(M).forEach(function(A){typeof M[A]=="undefined"&&delete M[A]}),o.cloneElement(e,M))};function vu(t,e,n){return Array.isArray(t)?du(t,n):(0,Ho.Z)(e).map(function(r,a){return fu(r,a,n)})}var mu=vu;function hu(t){var e=t;if(!Array.isArray(e)){var n=(0,R.Z)(e);e=n==="number"||n==="string"?[e]:[]}return e.map(function(r){return String(r)})}var gu=o.forwardRef(function(t,e){var n=t.prefixCls,r=n===void 0?"rc-collapse":n,a=t.destroyInactivePanel,i=a===void 0?!1:a,l=t.style,s=t.accordion,u=t.className,f=t.children,v=t.collapsible,m=t.openMotion,h=t.expandIcon,g=t.activeKey,p=t.defaultActiveKey,y=t.onChange,C=t.items,x=W()(r,u),b=(0,nt.Z)([],{value:g,onChange:function(F){return y==null?void 0:y(F)},defaultValue:p,postState:hu}),I=(0,O.Z)(b,2),$=I[0],P=I[1],M=function(F){return P(function(){if(s)return $[0]===F?[]:[F];var U=$.indexOf(F),z=U>-1;return z?$.filter(function(D){return D!==F}):[].concat((0,ce.Z)($),[F])})};(0,Ue.ZP)(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var A=mu(C,f,{prefixCls:r,accordion:s,openMotion:m,expandIcon:h,collapsible:v,destroyInactivePanel:i,onItemClick:M,activeKey:$});return o.createElement("div",{ref:e,className:x,style:l,role:s?"tablist":void 0},A)}),Li=Object.assign(gu,{Panel:Ai}),Hi=Li,mg=Li.Panel,Bi=c(23196),pu=o.forwardRef((t,e)=>{const{getPrefixCls:n}=o.useContext(Xt.E_),{prefixCls:r,className:a,showArrow:i=!0}=t,l=n("collapse",r),s=W()({[`${l}-no-arrow`]:!i},a);return o.createElement(Hi.Panel,Object.assign({ref:e},t,{prefixCls:l,className:s}))}),bu=c(95178);const yu=t=>{const{componentCls:e,contentBg:n,padding:r,headerBg:a,headerPadding:i,collapseHeaderPaddingSM:l,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:u,lineWidth:f,lineType:v,colorBorder:m,colorText:h,colorTextHeading:g,colorTextDisabled:p,fontSizeLG:y,lineHeight:C,lineHeightLG:x,marginSM:b,paddingSM:I,paddingLG:$,paddingXS:P,motionDurationSlow:M,fontSizeIcon:A,contentPadding:j,fontHeight:F,fontHeightLG:U}=t,z=`${(0,Qe.bf)(f)} ${v} ${m}`;return{[e]:Object.assign(Object.assign({},(0,Rn.Wf)(t)),{backgroundColor:a,border:z,borderBottom:0,borderRadius:u,["&-rtl"]:{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:z,["&:last-child"]:{[` + &, + & > ${e}-header`]:{borderRadius:`0 0 ${(0,Qe.bf)(u)} ${(0,Qe.bf)(u)}`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:g,lineHeight:C,cursor:"pointer",transition:`all ${M}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:F,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${e}-arrow`]:Object.assign(Object.assign({},(0,Rn.Ro)()),{fontSize:A,svg:{transition:`transform ${M}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-icon-collapsible-only`]:{cursor:"unset",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:h,backgroundColor:n,borderTop:z,[`& > ${e}-content-box`]:{padding:j},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:l,paddingInlineStart:P,[`> ${e}-expand-icon`]:{marginInlineStart:t.calc(I).sub(P).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:I}}},["&-large"]:{[`> ${e}-item`]:{fontSize:y,lineHeight:x,[`> ${e}-header`]:{padding:s,paddingInlineStart:r,[`> ${e}-expand-icon`]:{height:U,marginInlineStart:t.calc($).sub(r).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:$}}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${(0,Qe.bf)(u)} ${(0,Qe.bf)(u)}`}},[`& ${e}-item-disabled > ${e}-header`]:{[` + &, + & > .arrow + `]:{color:p,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Cu=t=>{const{componentCls:e}=t,n=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},xu=t=>{const{componentCls:e,headerBg:n,paddingXXS:r,colorBorder:a}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${a}`},[` + > ${e}-item:last-child, + > ${e}-item:last-child ${e}-header + `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:r}}}},Su=t=>{const{componentCls:e,paddingSM:n}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:n}}}}}},Pu=t=>({headerPadding:`${t.paddingSM}px ${t.padding}px`,headerBg:t.colorFillAlter,contentPadding:`${t.padding}px 16px`,contentBg:t.colorBgContainer});var wu=(0,Pn.I$)("Collapse",t=>{const e=(0,Zr.TS)(t,{collapseHeaderPaddingSM:`${(0,Qe.bf)(t.paddingXS)} ${(0,Qe.bf)(t.paddingSM)}`,collapseHeaderPaddingLG:`${(0,Qe.bf)(t.padding)} ${(0,Qe.bf)(t.paddingLG)}`,collapsePanelBorderRadius:t.borderRadiusLG});return[yu(e),xu(e),Su(e),Cu(e),(0,bu.Z)(e)]},Pu),Zu=Object.assign(o.forwardRef((t,e)=>{const{getPrefixCls:n,direction:r,collapse:a}=o.useContext(Xt.E_),{prefixCls:i,className:l,rootClassName:s,style:u,bordered:f=!0,ghost:v,size:m,expandIconPosition:h="start",children:g,expandIcon:p}=t,y=(0,Rt.Z)(F=>{var U;return(U=m!=null?m:F)!==null&&U!==void 0?U:"middle"}),C=n("collapse",i),x=n(),[b,I]=wu(C),$=o.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),P=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const U=p?p(F):o.createElement(Je.Z,{rotate:F.isActive?90:void 0});return(0,Bi.Tm)(U,()=>({className:W()(U.props.className,`${C}-arrow`)}))},M=W()(`${C}-icon-position-${$}`,{[`${C}-borderless`]:!f,[`${C}-rtl`]:r==="rtl",[`${C}-ghost`]:!!v,[`${C}-${y}`]:y!=="middle"},a==null?void 0:a.className,l,s,I),A=Object.assign(Object.assign({},(0,Jt.Z)(x)),{motionAppear:!1,leavedClassName:`${C}-content-hidden`}),j=o.useMemo(()=>g?(0,Ho.Z)(g).map((F,U)=>{var z,D;if(!((z=F.props)===null||z===void 0)&&z.disabled){const re=(D=F.key)!==null&&D!==void 0?D:String(U),{disabled:Q,collapsible:ie}=F.props,le=Object.assign(Object.assign({},(0,jt.Z)(F.props,["disabled"])),{key:re,collapsible:ie!=null?ie:Q?"disabled":void 0});return(0,Bi.Tm)(F,le)}return F}):null,[g]);return b(o.createElement(Hi,Object.assign({ref:e,openMotion:A},(0,jt.Z)(t,["rootClassName"]),{expandIcon:P,prefixCls:C,className:M,style:Object.assign(Object.assign({},a==null?void 0:a.style),u)}),j))}),{Panel:pu}),Ou=Zu,Eu=c(78436);const Vo=t=>t.map(e=>(e.colors=e.colors.map(qn),e)),Ru=(t,e)=>{const{r:n,g:r,b:a,a:i}=t.toRgb(),l=new ua(t.toRgbString()).onBackground(e).toHsv();return i<=.5?l.v>.5:n*.299+r*.587+a*.114>192},Vi=t=>{let{label:e}=t;return`panel-${e}`};var Iu=t=>{let{prefixCls:e,presets:n,value:r,onChange:a}=t;const[i]=(0,Eu.Z)("ColorPicker"),[,l]=(0,Qa.ZP)(),[s]=(0,nt.Z)(Vo(n),{value:Vo(n),postState:Vo}),u=`${e}-presets`,f=(0,o.useMemo)(()=>s.reduce((h,g)=>{const{defaultOpen:p=!0}=g;return p&&h.push(Vi(g)),h},[]),[s]),v=h=>{a==null||a(h)},m=s.map(h=>{var g;return{key:Vi(h),label:o.createElement("div",{className:`${u}-label`},h==null?void 0:h.label),children:o.createElement("div",{className:`${u}-items`},Array.isArray(h==null?void 0:h.colors)&&((g=h.colors)===null||g===void 0?void 0:g.length)>0?h.colors.map((p,y)=>o.createElement($a,{key:`preset-${y}-${p.toHexString()}`,color:qn(p).toRgbString(),prefixCls:e,className:W()(`${u}-color`,{[`${u}-color-checked`]:p.toHexString()===(r==null?void 0:r.toHexString()),[`${u}-color-bright`]:Ru(p,l.colorBgElevated)}),onClick:()=>v(p)})):o.createElement("span",{className:`${u}-empty`},i.presetEmpty))}});return o.createElement("div",{className:u},o.createElement(Ou,{defaultActiveKey:f,ghost:!0,items:m}))},Wi=()=>{const{prefixCls:t,value:e,presets:n,onChange:r}=(0,o.useContext)(Si);return Array.isArray(n)?o.createElement(Iu,{value:e,presets:n,prefixCls:t,onChange:r}):null},Mu=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{prefixCls:e,presets:n,panelRender:r,color:a,onChange:i,onClear:l}=t,s=Mu(t,["prefixCls","presets","panelRender","color","onChange","onClear"]),u=`${e}-inner-content`,f=Object.assign({prefixCls:e,value:a,onChange:i,onClear:l},s),v=o.useMemo(()=>({prefixCls:e,value:a,presets:n,onChange:i}),[e,a,n,i]),m=o.createElement(o.Fragment,null,o.createElement(Di,null),Array.isArray(n)&&o.createElement(sa.Z,{className:`${u}-divider`}),o.createElement(Wi,null));return o.createElement(Cs,{value:f},o.createElement(xs,{value:v},o.createElement("div",{className:u},typeof r=="function"?r(m,{components:{Picker:Di,Presets:Wi}}):m)))},Nu=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{color:n,prefixCls:r,open:a,colorCleared:i,disabled:l,format:s,className:u,showText:f}=t,v=Nu(t,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),m=`${r}-trigger`,h=(0,o.useMemo)(()=>i?o.createElement(wi,{prefixCls:r}):o.createElement($a,{prefixCls:r,color:n.toRgbString()}),[n,i,r]),g=()=>{const y=n.toHexString().toUpperCase(),C=io(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return C<100?`${y.slice(0,7)},${C}%`:y}},p=()=>{if(typeof f=="function")return f(n);if(f)return g()};return o.createElement("div",Object.assign({ref:e,className:W()(m,u,{[`${m}-active`]:a,[`${m}-disabled`]:l})},v),h,f&&o.createElement("div",{className:`${m}-text`},p()))});function zi(t){return t!==void 0}var ju=(t,e)=>{const{defaultValue:n,value:r}=e,[a,i]=(0,o.useState)(()=>{let l;return zi(r)?l=r:zi(n)?l=n:l=t,qn(l||"")});return(0,o.useEffect)(()=>{r&&i(qn(r))},[r]),[a,i]};const ki=(t,e)=>({backgroundImage:`conic-gradient(${e} 0 25%, transparent 0 50%, ${e} 0 75%, transparent 0)`,backgroundSize:`${t} ${t}`});var Ki=(t,e)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:a,lineWidth:i,colorFillSecondary:l}=t;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:e,height:e,boxShadow:a},ki("50%",t.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,Qe.bf)(i)} solid ${l}`,borderRadius:"inherit"}})}},Du=t=>{const{componentCls:e,antCls:n,fontSizeSM:r,lineHeightSM:a,colorPickerAlphaInputWidth:i,marginXXS:l,paddingXXS:s,controlHeightSM:u,marginXS:f,fontSizeIcon:v,paddingXS:m,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:g,lineWidth:p}=t;return{[`${e}-input-container`]:{display:"flex",[`${e}-steppers${n}-input-number`]:{fontSize:r,lineHeight:a,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:g}},[`${e}-steppers${e}-alpha-input`]:{flex:`0 0 ${(0,Qe.bf)(i)}`,marginInlineStart:l},[`${e}-format-select${n}-select`]:{marginInlineEnd:f,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:t.calc(v).add(l).equal(),fontSize:r,lineHeight:`${(0,Qe.bf)(u)}`},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:a},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${e}-input`]:{gap:l,alignItems:"center",flex:1,width:0,[`${e}-hsb-input,${e}-rgb-input`]:{display:"flex",gap:l,alignItems:"center"},[`${e}-steppers`]:{flex:1},[`${e}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,Qe.bf)(m)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:(0,Qe.bf)(t.calc(u).sub(t.calc(p).mul(2)).equal())},[`${n}-input-prefix`]:{color:h}}}}}},Tu=t=>{const{componentCls:e,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:a,marginSM:i,colorBgElevated:l,colorFillSecondary:s,lineWidthBold:u,colorPickerHandlerSize:f,colorPickerHandlerSizeSM:v,colorPickerSliderHeight:m}=t;return{[`${e}-select`]:{[`${e}-palette`]:{minHeight:t.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${e}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:a,inset:0},marginBottom:i},[`${e}-handler`]:{width:f,height:f,border:`${(0,Qe.bf)(u)} solid ${l}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${a}, 0 0 0 1px ${s}`,"&-sm":{width:v,height:v}},[`${e}-slider`]:{borderRadius:t.calc(m).div(2).equal(),[`${e}-palette`]:{height:m},[`${e}-gradient`]:{borderRadius:t.calc(m).div(2).equal(),boxShadow:a},"&-alpha":ki(`${(0,Qe.bf)(m)}`,t.colorFillSecondary),"&-hue":{marginBottom:i}},[`${e}-slider-container`]:{display:"flex",gap:i,marginBottom:i,[`${e}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${e}-slider`]:{flex:1,marginBottom:0}}}}}},Au=t=>{const{componentCls:e,antCls:n,colorTextQuaternary:r,paddingXXS:a,colorPickerPresetColorSize:i,fontSizeSM:l,colorText:s,lineHeightSM:u,lineWidth:f,borderRadius:v,colorFill:m,colorWhite:h,marginXXS:g,paddingXS:p,fontHeightSM:y}=t;return{[`${e}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:y,color:r,paddingInlineEnd:a}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${(0,Qe.bf)(p)} 0`},"&-label":{fontSize:l,color:s,lineHeight:u},"&-items":{display:"flex",flexWrap:"wrap",gap:t.calc(g).mul(1.5).equal(),[`${e}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:t.calc(i).add(t.calc(f).mul(4)).equal(),height:t.calc(i).add(t.calc(f).mul(4)).equal(),position:"absolute",top:t.calc(f).mul(-2).equal(),insetInlineStart:t.calc(f).mul(-2).equal(),borderRadius:v,border:`${(0,Qe.bf)(f)} solid transparent`,transition:`border-color ${t.motionDurationMid} ${t.motionEaseInBack}`},"&:hover::before":{borderColor:m},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:t.calc(i).div(13).mul(5).equal(),height:t.calc(i).div(13).mul(8).equal(),border:`${(0,Qe.bf)(t.lineWidthBold)} solid ${t.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`},[`&${e}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`},[`&${e}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:l,color:r}}}};const Wo=(t,e,n)=>({borderInlineEndWidth:t.lineWidth,borderColor:e,boxShadow:`0 0 0 ${(0,Qe.bf)(t.controlOutlineWidth)} ${n}`,outline:0}),Lu=t=>{const{componentCls:e}=t;return{"&-rtl":{[`${e}-presets-color`]:{"&::after":{direction:"ltr"}},[`${e}-clear`]:{"&::after":{direction:"ltr"}}}}},Ui=(t,e,n)=>{const{componentCls:r,borderRadiusSM:a,lineWidth:i,colorSplit:l,red6:s}=t;return{[`${r}-clear`]:Object.assign(Object.assign({width:e,height:e,borderRadius:a,border:`${(0,Qe.bf)(i)} solid ${l}`,position:"relative",cursor:"pointer",overflow:"hidden"},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:i,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:s}})}},Hu=t=>{const{componentCls:e,colorError:n,colorWarning:r,colorErrorHover:a,colorWarningHover:i,colorErrorOutline:l,colorWarningOutline:s}=t;return{[`&${e}-status-error`]:{borderColor:n,"&:hover":{borderColor:a},[`&${e}-trigger-active`]:Object.assign({},Wo(t,n,l))},[`&${e}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${e}-trigger-active`]:Object.assign({},Wo(t,r,s))}}},Bu=t=>{const{componentCls:e,controlHeightLG:n,controlHeightSM:r,controlHeight:a,controlHeightXS:i,borderRadius:l,borderRadiusSM:s,borderRadiusXS:u,borderRadiusLG:f,fontSizeLG:v}=t;return{[`&${e}-lg`]:{minWidth:n,height:n,borderRadius:f,[`${e}-color-block, ${e}-clear`]:{width:a,height:a,borderRadius:l},[`${e}-trigger-text`]:{fontSize:v}},[`&${e}-sm`]:{minWidth:r,height:r,borderRadius:s,[`${e}-color-block, ${e}-clear`]:{width:i,height:i,borderRadius:u}}}},Vu=t=>{const{componentCls:e,colorPickerWidth:n,colorPrimary:r,motionDurationMid:a,colorBgElevated:i,colorTextDisabled:l,colorText:s,colorBgContainerDisabled:u,borderRadius:f,marginXS:v,marginSM:m,controlHeight:h,controlHeightSM:g,colorBgTextActive:p,colorPickerPresetColorSize:y,colorPickerPreviewSize:C,lineWidth:x,colorBorder:b,paddingXXS:I,fontSize:$,colorPrimaryHover:P,controlOutline:M}=t;return[{[e]:Object.assign({[`${e}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:n,"&-divider":{margin:`${(0,Qe.bf)(m)} 0 ${(0,Qe.bf)(v)}`},[`${e}-panel`]:Object.assign({},Tu(t))},Ki(t,C)),Du(t)),Au(t)),Ui(t,y,{marginInlineStart:"auto",marginBottom:v})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,height:h,borderRadius:f,border:`${(0,Qe.bf)(x)} solid ${b}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${a}`,background:i,padding:t.calc(I).sub(x).equal(),[`${e}-trigger-text`]:{marginInlineStart:v,marginInlineEnd:t.calc(v).sub(t.calc(I).sub(x)).equal(),fontSize:$,color:s},"&:hover":{borderColor:P},[`&${e}-trigger-active`]:Object.assign({},Wo(t,r,M)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:p},[`${e}-trigger-text`]:{color:l}}},Ui(t,g)),Ki(t,g)),Hu(t)),Bu(t))},Lu(t))}]};var Wu=(0,Pn.I$)("ColorPicker",t=>{const{colorTextQuaternary:e,marginSM:n}=t,r=8,a=(0,Zr.TS)(t,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${e}`,colorPickerSliderHeight:r,colorPickerPreviewSize:t.calc(r).mul(2).add(n).equal()});return[Vu(a)]}),zu=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{value:e,defaultValue:n,format:r,defaultFormat:a,allowClear:i=!1,presets:l,children:s,trigger:u="click",open:f,disabled:v,placement:m="bottomLeft",arrow:h=!0,panelRender:g,showText:p,style:y,className:C,size:x,rootClassName:b,styles:I,disabledAlpha:$=!1,onFormatChange:P,onChange:M,onClear:A,onOpenChange:j,onChangeComplete:F,getPopupContainer:U,autoAdjustOverflow:z=!0,destroyTooltipOnHide:D}=t,re=zu(t,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:Q,direction:ie,colorPicker:le}=(0,o.useContext)(Xt.E_),se=(0,o.useContext)(gn.Z),_=v!=null?v:se,[,de]=(0,Qa.ZP)(),[ye,Te]=ju(de.colorPrimary,{value:e,defaultValue:n}),[Ne,Ae]=(0,nt.Z)(!1,{value:f,postState:st=>!_&&st,onChange:j}),[gt,Le]=(0,nt.Z)(r,{value:r,defaultValue:a,onChange:P}),[bt,at]=(0,o.useState)(!1),Ce=Q("color-picker",Ps),ze=(0,o.useMemo)(()=>io(ye)<100,[ye]),{status:Vt}=o.useContext(rn.aM),Nt=(0,Rt.Z)(x),ut=(0,pn.Z)(Ce),[He,ot]=Wu(Ce,ut),ft={[`${Ce}-rtl`]:ie},lt=W()(b,ut,ft),vt=W()((0,hn.Z)(Ce,Vt),{[`${Ce}-sm`]:Nt==="small",[`${Ce}-lg`]:Nt==="large"},le==null?void 0:le.className,lt,C,ot),Ht=W()(Ce,lt),qt=(0,o.useRef)(!0),Ft=(st,xt,Gt)=>{let Wt=qn(st);(bt||(e===null||!e&&n===null))&&(at(!1),io(ye)===0&&xt!=="alpha"&&(Wt=Do(Wt))),$&&ze&&(Wt=Do(Wt)),Gt?qt.current=!1:F==null||F(Wt),Te(Wt),M==null||M(Wt,Wt.toHexString())},fn=()=>{at(!0),A==null||A()},vn=st=>{qt.current=!0;let xt=qn(st);$&&ze&&(xt=Do(st)),F==null||F(xt)},wn={open:Ne,trigger:u,placement:m,arrow:h,rootClassName:b,getPopupContainer:U,autoAdjustOverflow:z,destroyTooltipOnHide:D},Zn={prefixCls:Ce,color:ye,allowClear:i,colorCleared:bt,disabled:_,disabledAlpha:$,presets:l,panelRender:g,format:gt,onFormatChange:Le,onChangeComplete:vn},sn=Object.assign(Object.assign({},le==null?void 0:le.style),y);return He(o.createElement(Ra.Z,Object.assign({style:I==null?void 0:I.popup,overlayInnerStyle:I==null?void 0:I.popupOverlayInner,onOpenChange:st=>{qt.current&&!_&&Ae(st)},content:o.createElement(rn.Ux,{override:!0,status:!0},o.createElement($u,Object.assign({},Zn,{onChange:Ft,onChangeComplete:vn,onClear:fn}))),overlayClassName:Ht},wn),s||o.createElement(Fu,Object.assign({open:Ne,className:vt,style:sn,color:e?qn(e):ye,prefixCls:Ce,disabled:_,colorCleared:bt,showText:p,format:gt},re))))},ku=(0,xn.Z)(zo,"color-picker",t=>t,t=>Object.assign(Object.assign({},t),{placement:"bottom",autoAdjustOverflow:!1}));zo._InternalPanelDoNotUseOrYouWillBeFired=ku;var Ku=zo,Uu=Ku,Ar=c(33351),Yu=c(73875),Xu=c.n(Yu),Gu=function(e,n,r,a,i){var l=i.clientWidth,s=i.clientHeight,u=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,f=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,v=u-(i.getBoundingClientRect().left+window.pageXOffset),m=f-(i.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var h;if(m<0?h=0:m>s?h=1:h=Math.round(m*100/s)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var g;if(v<0?g=0:v>l?g=1:g=Math.round(v*100/l)/100,a!==g)return{h:n.h,s:n.s,l:n.l,a:g,source:"rgb"}}return null},ko={},Ju=function(e,n,r,a){if(typeof document=="undefined"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=r*2,i.height=r*2;var l=i.getContext("2d");return l?(l.fillStyle=e,l.fillRect(0,0,i.width,i.height),l.fillStyle=n,l.fillRect(0,0,r,r),l.translate(r,r),l.fillRect(0,0,r,r),i.toDataURL()):null},Qu=function(e,n,r,a){var i="".concat(e,"-").concat(n,"-").concat(r).concat(a?"-server":"");if(ko[i])return ko[i];var l=Ju(e,n,r,a);return ko[i]=l,l};function Aa(t){"@babel/helpers - typeof";return Aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Aa(t)}function Yi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function uo(t){for(var e=1;el)m=0;else{var h=-(v*100/l)+100;m=360*h/100}if(r.h!==m)return{h:m,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var g;if(f<0)g=0;else if(f>i)g=359;else{var p=f*100/i;g=360*p/100}if(r.h!==g)return{h:g,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function da(t){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},da(t)}function mc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _i(t,e){for(var n=0;ni&&(f=i),v<0?v=0:v>l&&(v=l);var m=f/i,h=1-v/l;return{h:n.h,s:m,v:h,a:n.a,source:"hsv"}};function fa(t){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(t)}function Rc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qi(t,e){for(var n=0;n=0,i=!n&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return It(this.toString())},_applyModification:function(e,n){var r=e.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(qc,arguments)},brighten:function(){return this._applyModification(ed,arguments)},darken:function(){return this._applyModification(td,arguments)},desaturate:function(){return this._applyModification(Jc,arguments)},saturate:function(){return this._applyModification(Qc,arguments)},greyscale:function(){return this._applyModification(_c,arguments)},spin:function(){return this._applyModification(nd,arguments)},_applyCombination:function(e,n){return e.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(od,arguments)},complement:function(){return this._applyCombination(rd,arguments)},monochromatic:function(){return this._applyCombination(id,arguments)},splitcomplement:function(){return this._applyCombination(ad,arguments)},triad:function(){return this._applyCombination(al,[3])},tetrad:function(){return this._applyCombination(al,[4])}},It.fromRatio=function(t,e){if(mo(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=La(t[r]));t=n}return It(t,e)};function Kc(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,i=null,l=!1,s=!1;return typeof t=="string"&&(t=dd(t)),mo(t)=="object"&&($r(t.r)&&$r(t.g)&&$r(t.b)?(e=Uc(t.r,t.g,t.b),l=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):$r(t.h)&&$r(t.s)&&$r(t.v)?(r=La(t.s),a=La(t.v),e=Xc(t.h,r,a),l=!0,s="hsv"):$r(t.h)&&$r(t.s)&&$r(t.l)&&(r=La(t.s),i=La(t.l),e=Yc(t.h,r,i),l=!0,s="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=ol(n),{ok:l,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}function Uc(t,e,n){return{r:Wn(t,255)*255,g:Wn(e,255)*255,b:Wn(n,255)*255}}function el(t,e,n){t=Wn(t,255),e=Wn(e,255),n=Wn(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i,l,s=(r+a)/2;if(r==a)i=l=0;else{var u=r-a;switch(l=s>.5?u/(2-r-a):u/(r+a),r){case t:i=(e-n)/u+(e1&&(m-=1),m<1/6?f+(v-f)*6*m:m<1/2?v:m<2/3?f+(v-f)*(2/3-m)*6:f}if(e===0)r=a=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=l(u,s,t+1/3),a=l(u,s,t),i=l(u,s,t-1/3)}return{r:r*255,g:a*255,b:i*255}}function tl(t,e,n){t=Wn(t,255),e=Wn(e,255),n=Wn(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i,l,s=r,u=r-a;if(l=r===0?0:u/r,r==a)i=0;else{switch(r){case t:i=(e-n)/u+(e>1)+720)%360;--e;)r.h=(r.h+a)%360,i.push(It(r));return i}function id(t,e){e=e||6;for(var n=It(t).toHsv(),r=n.h,a=n.s,i=n.v,l=[],s=1/e;e--;)l.push(It({h:r,s:a,v:i})),i=(i+s)%1;return l}It.mix=function(t,e,n){n=n===0?0:n||50;var r=It(t).toRgb(),a=It(e).toRgb(),i=n/100,l={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return It(l)},It.readability=function(t,e){var n=It(t),r=It(e);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},It.isReadable=function(t,e,n){var r=It.readability(t,e),a,i;switch(i=!1,a=fd(n),a.level+a.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i},It.mostReadable=function(t,e,n){var r=null,a=0,i,l,s,u;n=n||{},l=n.includeFallbackColors,s=n.level,u=n.size;for(var f=0;fa&&(a=i,r=It(e[f]));return It.isReadable(t,r,{level:s,size:u})||!l?r:(n.includeFallbackColors=!1,It.mostReadable(t,["#fff","#000"],n))};var Go=It.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ld=It.hexNames=sd(Go);function sd(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function ol(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Wn(t,e){ud(t)&&(t="100%");var n=cd(t);return t=Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function ho(t){return Math.min(1,Math.max(0,t))}function cr(t){return parseInt(t,16)}function ud(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function cd(t){return typeof t=="string"&&t.indexOf("%")!=-1}function gr(t){return t.length==1?"0"+t:""+t}function La(t){return t<=1&&(t=t*100+"%"),t}function il(t){return Math.round(parseFloat(t)*255).toString(16)}function ll(t){return cr(t)/255}var pr=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",n="(?:"+e+")|(?:"+t+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function $r(t){return!!pr.CSS_UNIT.exec(t)}function dd(t){t=t.replace(zc,"").replace(kc,"").toLowerCase();var e=!1;if(Go[t])t=Go[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=pr.rgb.exec(t))?{r:n[1],g:n[2],b:n[3]}:(n=pr.rgba.exec(t))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=pr.hsl.exec(t))?{h:n[1],s:n[2],l:n[3]}:(n=pr.hsla.exec(t))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=pr.hsv.exec(t))?{h:n[1],s:n[2],v:n[3]}:(n=pr.hsva.exec(t))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=pr.hex8.exec(t))?{r:cr(n[1]),g:cr(n[2]),b:cr(n[3]),a:ll(n[4]),format:e?"name":"hex8"}:(n=pr.hex6.exec(t))?{r:cr(n[1]),g:cr(n[2]),b:cr(n[3]),format:e?"name":"hex"}:(n=pr.hex4.exec(t))?{r:cr(n[1]+""+n[1]),g:cr(n[2]+""+n[2]),b:cr(n[3]+""+n[3]),a:ll(n[4]+""+n[4]),format:e?"name":"hex8"}:(n=pr.hex3.exec(t))?{r:cr(n[1]+""+n[1]),g:cr(n[2]+""+n[2]),b:cr(n[3]+""+n[3]),format:e?"name":"hex"}:!1}function fd(t){var e,n;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),n=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:e,size:n}}var sl=function(e){var n=["r","g","b","a","h","s","l","v"],r=0,a=0;return Wc()(n,function(i){if(e[i]&&(r+=1,isNaN(e[i])||(a+=1),i==="s"||i==="l")){var l=/^\d+%$/;l.test(e[i])&&(a+=1)}}),r===a?e:!1},Ha=function(e,n){var r=e.hex?It(e.hex):It(e),a=r.toHsl(),i=r.toHsv(),l=r.toRgb(),s=r.toHex();a.s===0&&(a.h=n||0,i.h=n||0);var u=s==="000000"&&l.a===0;return{hsl:a,hex:u?"transparent":"#".concat(s),rgb:l,hsv:i,oldHue:e.h||n||a.h,source:e.source}},vd=function(e){if(e==="transparent")return!0;var n=String(e).charAt(0)==="#"?1:0;return e.length!==4+n&&e.length<7+n&&It(e).isValid()},Og=function(e){if(!e)return"#fff";var n=Ha(e);if(n.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(n.rgb.r*299+n.rgb.g*587+n.rgb.b*114)/1e3;return r>=128?"#000":"#fff"},Eg={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},Rg=function(e,n){var r=e.replace("\xB0","");return tinycolor("".concat(n," (").concat(r,")"))._ok};function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}function Jo(){return Jo=Object.assign?Object.assign.bind():function(t){for(var e=1;e-1},Ld=function(e){return Number(String(e).replace(/%/g,""))},Hd=1,Bd=function(t){Id(n,t);var e=Md(n);function n(r){var a;return Od(this,n),a=e.call(this),a.handleBlur=function(){a.state.blurValue&&a.setState({value:a.state.blurValue,blurValue:null})},a.handleChange=function(i){a.setUpdatedValue(i.target.value,i)},a.handleKeyDown=function(i){var l=Ld(i.target.value);if(!isNaN(l)&&Ad(i.keyCode)){var s=a.getArrowOffset(),u=i.keyCode===ml?l+s:l-s;a.setUpdatedValue(u,i)}},a.handleDrag=function(i){if(a.props.dragLabel){var l=Math.round(a.props.value+i.movementX);l>=0&&l<=a.props.dragMax&&a.props.onChange&&a.props.onChange(a.getValueObjectWithLabel(l),i)}},a.handleMouseDown=function(i){a.props.dragLabel&&(i.preventDefault(),a.handleDrag(i),window.addEventListener("mousemove",a.handleDrag),window.addEventListener("mouseup",a.handleMouseUp))},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleDrag),window.removeEventListener("mouseup",a.handleMouseUp)},a.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},a.inputId="rc-editable-input-".concat(Hd++),a}return Ed(n,[{key:"componentDidUpdate",value:function(a,i){this.props.value!==this.state.value&&(a.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(a){return Zd({},this.props.label,a)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||jd}},{key:"setUpdatedValue",value:function(a,i){var l=this.props.label?this.getValueObjectWithLabel(a):a;this.props.onChange&&this.props.onChange(l,i),this.setState({value:a})}},{key:"render",value:function(){var a=this,i=(0,Ar.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.createElement("div",{style:i.wrap},o.createElement("input",{id:this.inputId,style:i.input,ref:function(s){return a.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(o.PureComponent||o.Component),Va=Bd;function ha(t){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ha(t)}function qo(){return qo=Object.assign?Object.assign.bind():function(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Kd(i,r);var a=Ud(i);function i(){var l;Vd(this,i);for(var s=arguments.length,u=new Array(s),f=0;f100&&(v.a=100),v.a/=100,n==null||n({h:a==null?void 0:a.h,s:a==null?void 0:a.s,l:a==null?void 0:a.l,a:v.a,source:"rgb"},m))};return o.createElement("div",{style:s.fields,className:"flexbox-fix"},o.createElement("div",{style:s.double},o.createElement(Va,{style:{input:s.input,label:s.label},label:"hex",value:i==null?void 0:i.replace("#",""),onChange:u})),o.createElement("div",{style:s.single},o.createElement(Va,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:u,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.single},o.createElement(Va,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:u,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.single},o.createElement(Va,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:u,dragLabel:"true",dragMax:"255"})),o.createElement("div",{style:s.alpha},o.createElement(Va,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:u,dragLabel:"true",dragMax:"100"})))},af=rf;function za(t){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},za(t)}function bl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function yl(t){for(var e=1;e-1}function Cf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof t=="undefined"||t===!1)&&Sl()?Uu:bf}var xf=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.renderFormItem,s=e.fieldProps,u=e.old,f=(0,o.useContext)(X.ZP.ConfigContext),v=f.getPrefixCls,m=o.useMemo(function(){return Cf(u)},[u]),h=v("pro-field-color-picker"),g=(0,o.useMemo)(function(){return u?"":W()((0,Z.Z)({},h,Sl()))},[h,u]);if(a==="read"){var p=(0,N.jsx)(m,{value:r,mode:"read",ref:n,className:g,open:!1});return i?i(r,(0,d.Z)({mode:a},s),p):p}if(a==="edit"||a==="update"){var y=(0,d.Z)({display:"table-cell"},s.style),C=(0,N.jsx)(m,(0,d.Z)((0,d.Z)({ref:n,presets:[yf]},s),{},{style:y,className:g}));return l?l(r,(0,d.Z)((0,d.Z)({mode:a},s),{},{style:y}),C):C}return null},Sf=o.forwardRef(xf),Pf=c(50510),An=c.n(Pf),wf=c(25653),Zf=c.n(wf),ni=c(13990);An().extend(Zf());var Pl=function(e){return!!(e!=null&&e._isAMomentObject)},Ka=function t(e,n){return(0,ni.k)(e)||An().isDayjs(e)||Pl(e)?Pl(e)?An()(e):e:Array.isArray(e)?e.map(function(r){return t(r,n)}):typeof e=="number"?An()(e):An()(e,n)},qr=c(57564),Of=c(2774),wl=c.n(Of);An().extend(wl());var Ef=function(e,n){return e?typeof n=="function"?n(An()(e)):An()(e).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},Rf=function(e,n){var r=e.text,a=e.mode,i=e.format,l=e.label,s=e.light,u=e.render,f=e.renderFormItem,v=e.plain,m=e.showTime,h=e.fieldProps,g=e.picker,p=e.bordered,y=e.lightLabel,C=(0,V.YB)(),x=(0,o.useState)(!1),b=(0,O.Z)(x,2),I=b[0],$=b[1];if(a==="read"){var P=Ef(r,h.format||i);return u?u(r,(0,d.Z)({mode:a},h),(0,N.jsx)(N.Fragment,{children:P})):(0,N.jsx)(N.Fragment,{children:P})}if(a==="edit"||a==="update"){var M,A=h.disabled,j=h.value,F=h.placeholder,U=F===void 0?C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"):F,z=Ka(j);return s?M=(0,N.jsx)(K.Q,{label:l,onClick:function(){var re;h==null||(re=h.onOpenChange)===null||re===void 0||re.call(h,!0),$(!0)},style:z?{paddingInlineEnd:0}:void 0,disabled:A,value:z||I?(0,N.jsx)(qr.default,(0,d.Z)((0,d.Z)({picker:g,showTime:m,format:i,ref:n},h),{},{value:z,onOpenChange:function(re){var Q;$(re),h==null||(Q=h.onOpenChange)===null||Q===void 0||Q.call(h,re)},bordered:!1,open:I})):void 0,allowClear:!1,downIcon:z||I?!1:void 0,bordered:p,ref:y}):M=(0,N.jsx)(qr.default,(0,d.Z)((0,d.Z)({picker:g,showTime:m,format:i,placeholder:U,bordered:v===void 0?!0:!v,ref:n},h),{},{value:z})),f?f(r,(0,d.Z)({mode:a},h),M):M}return null},ga=o.forwardRef(Rf),yo=c(12869),If=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.placeholder,s=e.renderFormItem,u=e.fieldProps,f=(0,V.YB)(),v=l||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),m=(0,o.useCallback)(function(x){var b=x!=null?x:void 0;return!u.stringMode&&typeof b=="string"&&(b=Number(b)),typeof b=="number"&&!(0,ni.k)(b)&&!(0,ni.k)(u.precision)&&(b=Number(b.toFixed(u.precision))),b},[u]);if(a==="read"){var h,g={};u!=null&&u.precision&&(g={minimumFractionDigits:Number(u.precision),maximumFractionDigits:Number(u.precision)});var p=new Intl.NumberFormat(void 0,(0,d.Z)((0,d.Z)({},g),(u==null?void 0:u.intlProps)||{})).format(Number(r)),y=(0,N.jsx)("span",{ref:n,children:(u==null||(h=u.formatter)===null||h===void 0?void 0:h.call(u,p))||p});return i?i(r,(0,d.Z)({mode:a},u),y):y}if(a==="edit"||a==="update"){var C=(0,N.jsx)(Tr,(0,d.Z)((0,d.Z)({ref:n,min:0,placeholder:v},(0,yo.Z)(u,["onChange","onBlur"])),{},{onChange:function(b){var I;return u==null||(I=u.onChange)===null||I===void 0?void 0:I.call(u,m(b))},onBlur:function(b){var I;return u==null||(I=u.onBlur)===null||I===void 0?void 0:I.call(u,m(b.target.value))}}));return s?s(r,(0,d.Z)({mode:a},u),C):C}return null},Mf=o.forwardRef(If),ri=c(27097),$f=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.placeholder,s=e.renderFormItem,u=e.fieldProps,f=e.separator,v=f===void 0?"~":f,m=e.separatorWidth,h=m===void 0?30:m,g=u.value,p=u.defaultValue,y=u.onChange,C=u.id,x=(0,V.YB)(),b=_n.Ow.useToken(),I=b.token,$=(0,nt.Z)(function(){return p},{value:g,onChange:y}),P=(0,O.Z)($,2),M=P[0],A=P[1];if(a==="read"){var j=function(_){var de,ye=new Intl.NumberFormat(void 0,(0,d.Z)({minimumSignificantDigits:2},(u==null?void 0:u.intlProps)||{})).format(Number(_));return(u==null||(de=u.formatter)===null||de===void 0?void 0:de.call(u,ye))||ye},F=(0,N.jsxs)("span",{ref:n,children:[j(r[0])," ",v," ",j(r[1])]});return i?i(r,(0,d.Z)({mode:a},u),F):F}if(a==="edit"||a==="update"){var U=function(){if(Array.isArray(M)){var _=(0,O.Z)(M,2),de=_[0],ye=_[1];typeof de=="number"&&typeof ye=="number"&&de>ye?A([ye,de]):de===void 0&&ye===void 0&&A(void 0)}},z=function(_,de){var ye=(0,ce.Z)(M||[]);ye[_]=de===null?void 0:de,A(ye)},D=(u==null?void 0:u.placeholder)||l||[x.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),x.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")],re=function(_){return Array.isArray(D)?D[_]:D},Q=ri.Z.Compact||vr.Z.Group,ie=ri.Z.Compact?{}:{compact:!0},le=(0,N.jsxs)(Q,(0,d.Z)((0,d.Z)({},ie),{},{onBlur:U,children:[(0,N.jsx)(Tr,(0,d.Z)((0,d.Z)({},u),{},{placeholder:re(0),id:C!=null?C:"".concat(C,"-0"),style:{width:"calc((100% - ".concat(h,"px) / 2)")},value:M==null?void 0:M[0],defaultValue:p==null?void 0:p[0],onChange:function(_){return z(0,_)}})),(0,N.jsx)(vr.Z,{style:{width:h,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:I==null?void 0:I.colorBgContainer},placeholder:v,disabled:!0}),(0,N.jsx)(Tr,(0,d.Z)((0,d.Z)({},u),{},{placeholder:re(1),id:C!=null?C:"".concat(C,"-1"),style:{width:"calc((100% - ".concat(h,"px) / 2)"),borderInlineStart:0},value:M==null?void 0:M[1],defaultValue:p==null?void 0:p[1],onChange:function(_){return z(1,_)}}))]}));return s?s(r,(0,d.Z)({mode:a},u),le):le}return null},Nf=o.forwardRef($f),ai=c(58898),Ff=c(96300),jf=c.n(Ff);An().extend(jf());var Df=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.renderFormItem,s=e.format,u=e.fieldProps,f=(0,V.YB)();if(a==="read"){var v=(0,N.jsx)(ai.Z,{title:An()(r).format((u==null?void 0:u.format)||s||"YYYY-MM-DD HH:mm:ss"),children:An()(r).fromNow()});return i?i(r,(0,d.Z)({mode:a},u),(0,N.jsx)(N.Fragment,{children:v})):(0,N.jsx)(N.Fragment,{children:v})}if(a==="edit"||a==="update"){var m=f.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),h=Ka(u.value),g=(0,N.jsx)(qr.default,(0,d.Z)((0,d.Z)({ref:n,placeholder:m,showTime:!0},u),{},{value:h}));return l?l(r,(0,d.Z)({mode:a},u),g):g}return null},Tf=o.forwardRef(Df),Zl=c(71449),oi=c(93688),ii=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Ua=o.createContext(null),Ol=0;function Af(t,e){var n=o.useState(function(){return Ol+=1,String(Ol)}),r=(0,O.Z)(n,1),a=r[0],i=o.useContext(Ua),l={data:e,canPreview:t};return o.useEffect(function(){if(i)return i.register(a,l)},[]),o.useEffect(function(){i&&i.register(a,l)},[t,e]),a}function Lf(t){return new Promise(function(e){var n=document.createElement("img");n.onerror=function(){return e(!1)},n.onload=function(){return e(!0)},n.src=t})}function El(t){var e=t.src,n=t.isCustomPlaceholder,r=t.fallback,a=(0,o.useState)(n?"loading":"normal"),i=(0,O.Z)(a,2),l=i[0],s=i[1],u=(0,o.useRef)(!1),f=l==="error";(0,o.useEffect)(function(){var g=!0;return Lf(e).then(function(p){!p&&g&&s("error")}),function(){g=!1}},[e]),(0,o.useEffect)(function(){n&&!u.current?s("loading"):f&&s("normal")},[e]);var v=function(){s("normal")},m=function(p){u.current=!1,l==="loading"&&p!==null&&p!==void 0&&p.complete&&(p.naturalWidth||p.naturalHeight)&&(u.current=!0,v())},h=f&&r?{src:r}:{onLoad:v,src:e};return[m,h,l]}var Hf=c(63959),pa=c(25442),Rl=c(18020),Co={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Bf(t,e,n,r){var a=(0,o.useRef)(null),i=(0,o.useRef)([]),l=(0,o.useState)(Co),s=(0,O.Z)(l,2),u=s[0],f=s[1],v=function(p){f(Co),r&&!(0,Rl.Z)(Co,u)&&r({transform:Co,action:p})},m=function(p,y){a.current===null&&(i.current=[],a.current=(0,Qr.Z)(function(){f(function(C){var x=C;return i.current.forEach(function(b){x=(0,d.Z)((0,d.Z)({},x),b)}),a.current=null,r==null||r({transform:x,action:y}),x})})),i.current.push((0,d.Z)((0,d.Z)({},u),p))},h=function(p,y,C,x,b){var I=t.current,$=I.width,P=I.height,M=I.offsetWidth,A=I.offsetHeight,j=I.offsetLeft,F=I.offsetTop,U=p,z=u.scale*p;z>n?(z=n,U=n/u.scale):zr){if(e>0)return(0,Z.Z)({},t,i);if(e<0&&ar)return(0,Z.Z)({},t,e<0?i:-i);return{}}function Ml(t,e,n,r){var a=(0,oi.g1)(),i=a.width,l=a.height,s=null;return t<=i&&e<=l?s={x:0,y:0}:(t>i||e>l)&&(s=(0,d.Z)((0,d.Z)({},Il("x",n,t,i)),Il("y",r,e,l))),s}var ba=1,Vf=1;function Wf(t,e,n,r,a,i,l){var s=a.rotate,u=a.scale,f=a.x,v=a.y,m=(0,o.useState)(!1),h=(0,O.Z)(m,2),g=h[0],p=h[1],y=(0,o.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),C=function(P){!e||P.button!==0||(P.preventDefault(),P.stopPropagation(),y.current={diffX:P.pageX-f,diffY:P.pageY-v,transformX:f,transformY:v},p(!0))},x=function(P){n&&g&&i({x:P.pageX-y.current.diffX,y:P.pageY-y.current.diffY},"move")},b=function(){if(n&&g){p(!1);var P=y.current,M=P.transformX,A=P.transformY,j=f!==M&&v!==A;if(!j)return;var F=t.current.offsetWidth*u,U=t.current.offsetHeight*u,z=t.current.getBoundingClientRect(),D=z.left,re=z.top,Q=s%180!==0,ie=Ml(Q?U:F,Q?F:U,D,re);ie&&i((0,d.Z)({},ie),"dragRebound")}},I=function(P){if(!(!n||P.deltaY==0)){var M=Math.abs(P.deltaY/100),A=Math.min(M,Vf),j=ba+A*r;P.deltaY>0&&(j=ba/j),l(j,"wheel",P.clientX,P.clientY)}};return(0,o.useEffect)(function(){var $,P,M,A;if(e){M=(0,pa.Z)(window,"mouseup",b,!1),A=(0,pa.Z)(window,"mousemove",x,!1);try{window.top!==window.self&&($=(0,pa.Z)(window.top,"mouseup",b,!1),P=(0,pa.Z)(window.top,"mousemove",x,!1))}catch(j){(0,Ue.Kp)(!1,"[rc-image] ".concat(j))}}return function(){var j,F,U,z;(j=M)===null||j===void 0||j.remove(),(F=A)===null||F===void 0||F.remove(),(U=$)===null||U===void 0||U.remove(),(z=P)===null||z===void 0||z.remove()}},[n,g,f,v,s,e]),{isMoving:g,onMouseDown:C,onMouseMove:x,onMouseUp:b,onWheel:I}}function xo(t,e){var n=t.x-e.x,r=t.y-e.y;return Math.hypot(n,r)}function zf(t,e,n,r){var a=xo(t,n),i=xo(e,r);if(a===0&&i===0)return[t.x,t.y];var l=a/(a+i),s=t.x+l*(e.x-t.x),u=t.y+l*(e.y-t.y);return[s,u]}function kf(t,e,n,r,a,i,l){var s=a.rotate,u=a.scale,f=a.x,v=a.y,m=(0,o.useState)(!1),h=(0,O.Z)(m,2),g=h[0],p=h[1],y=(0,o.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),C=function(P){y.current=(0,d.Z)((0,d.Z)({},y.current),P)},x=function(P){if(e){P.stopPropagation(),p(!0);var M=P.touches,A=M===void 0?[]:M;A.length>1?C({point1:{x:A[0].clientX,y:A[0].clientY},point2:{x:A[1].clientX,y:A[1].clientY},eventType:"touchZoom"}):C({point1:{x:A[0].clientX-f,y:A[0].clientY-v},eventType:"move"})}},b=function(P){var M=P.touches,A=M===void 0?[]:M,j=y.current,F=j.point1,U=j.point2,z=j.eventType;if(A.length>1&&z==="touchZoom"){var D={x:A[0].clientX,y:A[0].clientY},re={x:A[1].clientX,y:A[1].clientY},Q=zf(F,U,D,re),ie=(0,O.Z)(Q,2),le=ie[0],se=ie[1],_=xo(D,re)/xo(F,U);l(_,"touchZoom",le,se,!0),C({point1:D,point2:re,eventType:"touchZoom"})}else z==="move"&&(i({x:A[0].clientX-F.x,y:A[0].clientY-F.y},"move"),C({eventType:"move"}))},I=function(){if(n){if(g&&p(!1),C({eventType:"none"}),r>u)return i({x:0,y:0,scale:r},"touchZoom");var P=t.current.offsetWidth*u,M=t.current.offsetHeight*u,A=t.current.getBoundingClientRect(),j=A.left,F=A.top,U=s%180!==0,z=Ml(U?M:P,U?P:M,j,F);z&&i((0,d.Z)({},z),"dragRebound")}};return(0,o.useEffect)(function(){var $;return n&&e&&($=(0,pa.Z)(window,"touchmove",function(P){return P.preventDefault()},{passive:!1})),function(){var P;(P=$)===null||P===void 0||P.remove()}},[n,e]),{isTouching:g,onTouchStart:x,onTouchMove:b,onTouchEnd:I}}var Kf=c(70085),Uf=function(e){var n=e.visible,r=e.maskTransitionName,a=e.getContainer,i=e.prefixCls,l=e.rootClassName,s=e.icons,u=e.countRender,f=e.showSwitch,v=e.showProgress,m=e.current,h=e.transform,g=e.count,p=e.scale,y=e.minScale,C=e.maxScale,x=e.closeIcon,b=e.onSwitchLeft,I=e.onSwitchRight,$=e.onClose,P=e.onZoomIn,M=e.onZoomOut,A=e.onRotateRight,j=e.onRotateLeft,F=e.onFlipX,U=e.onFlipY,z=e.toolbarRender,D=e.zIndex,re=(0,o.useContext)(Ua),Q=s.rotateLeft,ie=s.rotateRight,le=s.zoomIn,se=s.zoomOut,_=s.close,de=s.left,ye=s.right,Te=s.flipX,Ne=s.flipY,Ae="".concat(i,"-operations-operation");o.useEffect(function(){var at=function(ze){ze.keyCode===Se.Z.ESC&&$()};return n&&window.addEventListener("keydown",at),function(){window.removeEventListener("keydown",at)}},[n]);var gt=[{icon:Ne,onClick:U,type:"flipY"},{icon:Te,onClick:F,type:"flipX"},{icon:Q,onClick:j,type:"rotateLeft"},{icon:ie,onClick:A,type:"rotateRight"},{icon:se,onClick:M,type:"zoomOut",disabled:p<=y},{icon:le,onClick:P,type:"zoomIn",disabled:p===C}],Le=gt.map(function(at){var Ce,ze=at.icon,Vt=at.onClick,Nt=at.type,ut=at.disabled;return o.createElement("div",{className:W()(Ae,(Ce={},(0,Z.Z)(Ce,"".concat(i,"-operations-operation-").concat(Nt),!0),(0,Z.Z)(Ce,"".concat(i,"-operations-operation-disabled"),!!ut),Ce)),onClick:Vt,key:Nt},ze)}),bt=o.createElement("div",{className:"".concat(i,"-operations")},Le);return o.createElement(Bo.ZP,{visible:n,motionName:r},function(at){var Ce=at.className,ze=at.style;return o.createElement(Kf.Z,{open:!0,getContainer:a!=null?a:document.body},o.createElement("div",{className:W()("".concat(i,"-operations-wrapper"),Ce,l),style:(0,d.Z)((0,d.Z)({},ze),{},{zIndex:D})},x===null?null:o.createElement("button",{className:"".concat(i,"-close"),onClick:$},x||_),f&&o.createElement(o.Fragment,null,o.createElement("div",{className:W()("".concat(i,"-switch-left"),(0,Z.Z)({},"".concat(i,"-switch-left-disabled"),m===0)),onClick:b},de),o.createElement("div",{className:W()("".concat(i,"-switch-right"),(0,Z.Z)({},"".concat(i,"-switch-right-disabled"),m===g-1)),onClick:I},ye)),o.createElement("div",{className:"".concat(i,"-footer")},v&&o.createElement("div",{className:"".concat(i,"-progress")},u?u(m+1,g):"".concat(m+1," / ").concat(g)),z?z(bt,(0,d.Z)({icons:{flipYIcon:Le[0],flipXIcon:Le[1],rotateLeftIcon:Le[2],rotateRightIcon:Le[3],zoomOutIcon:Le[4],zoomInIcon:Le[5]},actions:{onFlipY:U,onFlipX:F,onRotateLeft:j,onRotateRight:A,onZoomOut:M,onZoomIn:P},transform:h},re?{current:m,total:g}:{})):bt)))})},Yf=Uf,Xf=["fallback","src","imgRef"],Gf=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Jf=function(e){var n=e.fallback,r=e.src,a=e.imgRef,i=(0,E.Z)(e,Xf),l=El({src:r,fallback:n}),s=(0,O.Z)(l,2),u=s[0],f=s[1];return o.createElement("img",(0,oe.Z)({ref:function(m){a.current=m,u(m)}},i,f))},Qf=function(e){var n=e.prefixCls,r=e.src,a=e.alt,i=e.fallback,l=e.movable,s=l===void 0?!0:l,u=e.onClose,f=e.visible,v=e.icons,m=v===void 0?{}:v,h=e.rootClassName,g=e.closeIcon,p=e.getContainer,y=e.current,C=y===void 0?0:y,x=e.count,b=x===void 0?1:x,I=e.countRender,$=e.scaleStep,P=$===void 0?.5:$,M=e.minScale,A=M===void 0?1:M,j=e.maxScale,F=j===void 0?50:j,U=e.transitionName,z=U===void 0?"zoom":U,D=e.maskTransitionName,re=D===void 0?"fade":D,Q=e.imageRender,ie=e.imgCommonProps,le=e.toolbarRender,se=e.onTransform,_=e.onChange,de=(0,E.Z)(e,Gf),ye=(0,o.useRef)(),Te=(0,o.useContext)(Ua),Ne=Te&&b>1,Ae=Te&&b>=1,gt=(0,o.useState)(!0),Le=(0,O.Z)(gt,2),bt=Le[0],at=Le[1],Ce=Bf(ye,A,F,se),ze=Ce.transform,Vt=Ce.resetTransform,Nt=Ce.updateTransform,ut=Ce.dispatchZoomChange,He=Wf(ye,s,f,P,ze,Nt,ut),ot=He.isMoving,ft=He.onMouseDown,lt=He.onWheel,vt=kf(ye,s,f,A,ze,Nt,ut),Ht=vt.isTouching,qt=vt.onTouchStart,Ft=vt.onTouchMove,fn=vt.onTouchEnd,vn=ze.rotate,wn=ze.scale,Zn=W()((0,Z.Z)({},"".concat(n,"-moving"),ot));(0,o.useEffect)(function(){bt||at(!0)},[bt]);var sn=function(){Vt("close")},st=function(){ut(ba+P,"zoomIn")},xt=function(){ut(ba/(ba+P),"zoomOut")},Gt=function(){Nt({rotate:vn+90},"rotateRight")},Wt=function(){Nt({rotate:vn-90},"rotateLeft")},Ut=function(){Nt({flipX:!ze.flipX},"flipX")},Sn=function(){Nt({flipY:!ze.flipY},"flipY")},Nn=function(On){On==null||On.preventDefault(),On==null||On.stopPropagation(),C>0&&(at(!1),Vt("prev"),_==null||_(C-1,C))},Ln=function(On){On==null||On.preventDefault(),On==null||On.stopPropagation(),C({position:t||"absolute",inset:0}),Iv=t=>{const{iconCls:e,motionDurationSlow:n,paddingXXS:r,marginXXS:a,prefixCls:i,colorTextLightSolid:l}=t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:l,background:new mr.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Rn.vS),{padding:`0 ${(0,Qe.bf)(r)}`,[e]:{marginInlineEnd:a,svg:{verticalAlign:"baseline"}}})}},Mv=t=>{const{previewCls:e,modalMaskBg:n,paddingSM:r,marginXL:a,margin:i,paddingLG:l,previewOperationColorDisabled:s,previewOperationHoverColor:u,motionDurationSlow:f,iconCls:v,colorTextLightSolid:m}=t,h=new mr.C(n).setAlpha(.1),g=h.clone().setAlpha(.2);return{[`${e}-footer`]:{position:"fixed",bottom:a,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:t.previewOperationColor},[`${e}-progress`]:{marginBottom:i},[`${e}-close`]:{position:"fixed",top:a,right:{_skip_check_:!0,value:a},display:"flex",color:m,backgroundColor:h.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${f}`,"&:hover":{backgroundColor:g.toRgbString()},[`& > ${v}`]:{fontSize:t.previewOperationSize}},[`${e}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Qe.bf)(l)}`,backgroundColor:h.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${f}`,userSelect:"none",[`&:not(${e}-operations-operation-disabled):hover > ${v}`]:{color:u},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${v}`]:{fontSize:t.previewOperationSize}}}}},$v=t=>{const{modalMaskBg:e,iconCls:n,previewOperationColorDisabled:r,previewCls:a,zIndexPopup:i,motionDurationSlow:l}=t,s=new mr.C(e).setAlpha(.1),u=s.clone().setAlpha(.2);return{[`${a}-switch-left, ${a}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:t.calc(i).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:t.imagePreviewSwitchSize,height:t.imagePreviewSwitchSize,marginTop:t.calc(t.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:t.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:u.toRgbString()},["&-disabled"]:{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:t.previewOperationSize}},[`${a}-switch-left`]:{insetInlineStart:t.marginSM},[`${a}-switch-right`]:{insetInlineEnd:t.marginSM}}},Nv=t=>{const{motionEaseOut:e,previewCls:n,motionDurationSlow:r,componentCls:a}=t;return[{[`${a}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},si()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${e} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},si()),{transition:`transform ${r} ${e} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${a}-preview-root`]:{[`${n}-wrap`]:{zIndex:t.zIndexPopup}}},{[`${a}-preview-operations-wrapper`]:{position:"fixed",zIndex:t.calc(t.zIndexPopup).add(1).equal({unit:!1})},"&":[Mv(t),$v(t)]}]},Fv=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",display:"inline-block",[`${e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${e}-img-placeholder`]:{backgroundColor:t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${e}-mask`]:Object.assign({},Iv(t)),[`${e}-mask:hover`]:{opacity:1},[`${e}-placeholder`]:Object.assign({},si())}}},jv=t=>{const{previewCls:e}=t;return{[`${e}-root`]:(0,Ev._y)(t,"zoom"),["&"]:(0,Rv.J$)(t,!0)}},Dv=t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new mr.C(t.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new mr.C(t.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new mr.C(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:t.fontSizeIcon*1.5});var Dl=(0,Pn.I$)("Image",t=>{const e=`${t.componentCls}-preview`,n=(0,Zr.TS)(t,{previewCls:e,modalMaskBg:new mr.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[Fv(n),Nv(n),(0,Ov.QA)((0,Zr.TS)(n,{componentCls:e})),jv(n)]},Dv),Tv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{var{previewPrefixCls:e,preview:n}=t,r=Tv(t,["previewPrefixCls","preview"]);const{getPrefixCls:a}=o.useContext(Xt.E_),i=a("image",e),l=`${i}-preview`,s=a(),u=(0,pn.Z)(i),[f,v]=Dl(i,u),[m]=(0,$t.Cn)("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=o.useMemo(()=>{var g;if(n===!1)return n;const p=typeof n=="object"?n:{},y=W()(v,u,(g=p.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},p),{transitionName:(0,Jt.m)(s,"zoom",p.transitionName),maskTransitionName:(0,Jt.m)(s,"fade",p.maskTransitionName),rootClassName:y,zIndex:m})},[n]);return f(o.createElement(Nl.PreviewGroup,Object.assign({preview:h,previewPrefixCls:l,icons:Tl},r)))},Al=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{prefixCls:e,preview:n,className:r,rootClassName:a,style:i}=t,l=Al(t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=Fl.Z,getPopupContainer:f,image:v}=o.useContext(Xt.E_),m=s("image",e),h=s(),g=u.Image||Fl.Z.Image,p=(0,pn.Z)(m),[y,C]=Dl(m,p),x=W()(a,C,p),b=W()(r,C,v==null?void 0:v.className),[I]=(0,$t.Cn)("ImagePreview",typeof n=="object"?n.zIndex:void 0),$=o.useMemo(()=>{if(n===!1)return n;const M=typeof n=="object"?n:{},{getContainer:A}=M,j=Al(M,["getContainer"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${m}-mask-info`},o.createElement(Zl.Z,null),g==null?void 0:g.preview),icons:Tl},j),{getContainer:A||f,transitionName:(0,Jt.m)(h,"zoom",M.transitionName),maskTransitionName:(0,Jt.m)(h,"fade",M.maskTransitionName),zIndex:I})},[n,g]),P=Object.assign(Object.assign({},v==null?void 0:v.style),i);return y(o.createElement(Nl,Object.assign({prefixCls:m,preview:$,rootClassName:x,className:b,style:P},l)))};Ll.PreviewGroup=Av;var Lv=Ll,Hv=o.forwardRef(function(t,e){var n=t.text,r=t.mode,a=t.render,i=t.renderFormItem,l=t.fieldProps,s=t.placeholder,u=t.width,f=(0,V.YB)(),v=s||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(r==="read"){var m=(0,N.jsx)(Lv,(0,d.Z)({ref:e,width:u||32,src:n},l));return a?a(n,(0,d.Z)({mode:r},l),m):m}if(r==="edit"||r==="update"){var h=(0,N.jsx)(vr.Z,(0,d.Z)({ref:e,placeholder:v},l));return i?i(n,(0,d.Z)({mode:r},l),h):h}return null}),Hl=Hv,Bv=function(e,n){var r,a=e.border,i=a===void 0?!1:a,l=e.children,s=(0,o.useContext)(X.ZP.ConfigContext),u=s.getPrefixCls,f=u("pro-field-index-column"),v=(0,_n.Xj)("IndexColumn",function(){return(0,Z.Z)({},".".concat(f),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),m=v.wrapSSR,h=v.hashId;return m((0,N.jsx)("div",{ref:n,className:W()(f,h,(r={},(0,Z.Z)(r,"".concat(f,"-border"),i),(0,Z.Z)(r,"top-three",l>3),r)),children:l}))},Bl=o.forwardRef(Bv),Vl=c(4642),Vv=c(74454),Wv=["contentRender","numberFormatOptions","numberPopoverRender","open"],zv=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],Wl=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),kv={style:"currency",currency:"USD"},Kv={style:"currency",currency:"RUB"},Uv={style:"currency",currency:"RSD"},Yv={style:"currency",currency:"MYR"},Xv={style:"currency",currency:"BRL"},Gv={default:Wl,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":kv,"ru-RU":Kv,"ms-MY":Yv,"sr-RS":Uv,"pt-BR":Xv},zl=function(e,n,r,a){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",l=n==null?void 0:n.toString().replaceAll(",","");if(typeof l=="string"){var s=Number(l);if(Number.isNaN(s))return l;l=s}if(!l&&l!==0)return"";var u=!1;try{u=e!==!1&&Intl.NumberFormat.supportedLocalesOf([e.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch(p){}try{var f=new Intl.NumberFormat(u&&e!==!1&&(e==null?void 0:e.replace("_","-"))||"zh-Hans-CN",(0,d.Z)((0,d.Z)({},Gv[e||"zh-Hans-CN"]||Wl),{},{maximumFractionDigits:r},a)).format(l),v=e===!1,m=f||"",h=(0,O.Z)(m,1),g=h[0];return["+","-"].includes(g)?"".concat(i||"").concat(g).concat(f.substring(v?2:1)):"".concat(i||"").concat(f.substring(v?1:0))}catch(p){return l}},ui=2,Jv=o.forwardRef(function(t,e){var n=t.contentRender,r=t.numberFormatOptions,a=t.numberPopoverRender,i=t.open,l=(0,E.Z)(t,Wv),s=(0,nt.Z)(function(){return l.defaultValue},{value:l.value,onChange:l.onChange}),u=(0,O.Z)(s,2),f=u[0],v=u[1],m=n==null?void 0:n((0,d.Z)((0,d.Z)({},l),{},{value:f})),h=(0,Vv.X)(m?i:!1);return(0,N.jsx)(Ra.Z,(0,d.Z)((0,d.Z)({placement:"topLeft"},h),{},{trigger:["focus","click"],content:m,getPopupContainer:function(p){return(p==null?void 0:p.parentElement)||document.body},children:(0,N.jsx)(Tr,(0,d.Z)((0,d.Z)({ref:e},l),{},{value:f,onChange:v}))}))}),Qv=function(e,n){var r,a=e.text,i=e.mode,l=e.render,s=e.renderFormItem,u=e.fieldProps,f=e.proFieldKey,v=e.plain,m=e.valueEnum,h=e.placeholder,g=e.locale,p=e.customSymbol,y=p===void 0?u.customSymbol:p,C=e.numberFormatOptions,x=C===void 0?u==null?void 0:u.numberFormatOptions:C,b=e.numberPopoverRender,I=b===void 0?(u==null?void 0:u.numberPopoverRender)||!1:b,$=(0,E.Z)(e,zv),P=(r=u==null?void 0:u.precision)!==null&&r!==void 0?r:ui,M=(0,V.YB)();g&&Vl.Go[g]&&(M=Vl.Go[g]);var A=h||M.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),j=(0,o.useMemo)(function(){if(y)return y;if(!($.moneySymbol===!1||u.moneySymbol===!1))return M.getMessage("moneySymbol","\xA5")},[y,u.moneySymbol,M,$.moneySymbol]),F=(0,o.useCallback)(function(D){var re=new RegExp("\\B(?=(\\d{".concat(3+Math.max(P-ui,0),"})+(?!\\d))"),"g"),Q=String(D).split("."),ie=(0,O.Z)(Q,2),le=ie[0],se=ie[1],_=le.replace(re,","),de="";return se&&P>0&&(de=".".concat(se.slice(0,P===void 0?ui:P))),"".concat(_).concat(de)},[P]);if(i==="read"){var U=(0,N.jsx)("span",{ref:n,children:zl(g||!1,a,P,x!=null?x:u.numberFormatOptions,j)});return l?l(a,(0,d.Z)({mode:i},u),U):U}if(i==="edit"||i==="update"){var z=(0,N.jsx)(Jv,(0,d.Z)((0,d.Z)({contentRender:function(re){if(I===!1||!re.value)return null;var Q=zl(j||g||!1,"".concat(F(re.value)),P,(0,d.Z)((0,d.Z)({},x),{},{notation:"compact"}),j);return typeof I=="function"?I==null?void 0:I(re,Q):Q},ref:n,precision:P,formatter:function(re){return re&&j?"".concat(j," ").concat(F(re)):re==null?void 0:re.toString()},parser:function(re){return j&&re?re.replace(new RegExp("\\".concat(j,"\\s?|(,*)"),"g"),""):re},placeholder:A},(0,yo.Z)(u,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:u.onBlur?function(D){var re,Q=D.target.value;j&&Q&&(Q=Q.replace(new RegExp("\\".concat(j,"\\s?|(,*)"),"g"),"")),(re=u.onBlur)===null||re===void 0||re.call(u,Q)}:void 0}));return s?s(a,(0,d.Z)({mode:i},u),z):z}return null},kl=o.forwardRef(Qv),Kl=function(e){return e.map(function(n,r){var a;return o.isValidElement(n)?o.cloneElement(n,(0,d.Z)((0,d.Z)({key:r},n==null?void 0:n.props),{},{style:(0,d.Z)({},n==null||(a=n.props)===null||a===void 0?void 0:a.style)})):(0,N.jsx)(o.Fragment,{children:n},r)})},_v=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.fieldProps,s=(0,o.useContext)(X.ZP.ConfigContext),u=s.getPrefixCls,f=u("pro-field-option"),v=_n.Ow.useToken(),m=v.token;if((0,o.useImperativeHandle)(n,function(){return{}}),i){var h=i(r,(0,d.Z)({mode:a},l),(0,N.jsx)(N.Fragment,{}));return!h||(h==null?void 0:h.length)<1||!Array.isArray(h)?null:(0,N.jsx)("div",{style:{display:"flex",gap:m.margin,alignItems:"center"},className:f,children:Kl(h)})}return!r||!Array.isArray(r)?o.isValidElement(r)?r:null:(0,N.jsx)("div",{style:{display:"flex",gap:m.margin,alignItems:"center"},className:f,children:Kl(r)})},qv=o.forwardRef(_v),e0=c(33974),t0=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],n0=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.renderFormItem,s=e.fieldProps,u=e.proFieldKey,f=(0,E.Z)(e,t0),v=(0,V.YB)(),m=(0,nt.Z)(function(){return f.open||f.visible||!1},{value:f.open||f.visible,onChange:f.onOpenChange||f.onVisible}),h=(0,O.Z)(m,2),g=h[0],p=h[1];if(a==="read"){var y=(0,N.jsx)(N.Fragment,{children:"-"});return r&&(y=(0,N.jsxs)(ri.Z,{children:[(0,N.jsx)("span",{ref:n,children:g?r:"********"}),(0,N.jsx)("a",{onClick:function(){return p(!g)},children:g?(0,N.jsx)(Zl.Z,{}):(0,N.jsx)(e0.Z,{})})]})),i?i(r,(0,d.Z)({mode:a},s),y):y}if(a==="edit"||a==="update"){var C=(0,N.jsx)(vr.Z.Password,(0,d.Z)({placeholder:v.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:n},s));return l?l(r,(0,d.Z)({mode:a},s),C):C}return null},r0=o.forwardRef(n0),a0=c(34418),So=c.n(a0);function o0(t){return t===0?null:t>0?"+":"-"}function i0(t){return t===0?"#595959":t>0?"#ff4d4f":"#52c41a"}function l0(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return e>=0?t==null?void 0:t.toFixed(e):t}var s0=function(e,n){var r=e.text,a=e.prefix,i=e.precision,l=e.suffix,s=l===void 0?"%":l,u=e.mode,f=e.showColor,v=f===void 0?!1:f,m=e.render,h=e.renderFormItem,g=e.fieldProps,p=e.placeholder,y=e.showSymbol,C=(0,V.YB)(),x=p||C.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),b=(0,o.useMemo)(function(){return typeof r=="string"&&r.includes("%")?So()(r.replace("%","")):So()(r)},[r]),I=(0,o.useMemo)(function(){return typeof y=="function"?y==null?void 0:y(r):y},[y,r]);if(u==="read"){var $=v?{color:i0(b)}:{},P=(0,N.jsxs)("span",{style:$,ref:n,children:[a&&(0,N.jsx)("span",{children:a}),I&&(0,N.jsxs)(o.Fragment,{children:[o0(b)," "]}),l0(Math.abs(b),i),s&&s]});return m?m(r,(0,d.Z)((0,d.Z)({mode:u},g),{},{prefix:a,precision:i,showSymbol:I,suffix:s}),P):P}if(u==="edit"||u==="update"){var M=(0,N.jsx)(Tr,(0,d.Z)({ref:n,formatter:function(j){return j&&a?"".concat(a," ").concat(j).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):j},parser:function(j){return j?j.replace(/.*\s|,/g,""):""},placeholder:x},g));return h?h(r,(0,d.Z)({mode:u},g),M):M}return null},Ul=o.forwardRef(s0),u0=c(40701);function c0(t){return t===100?"success":t<0?"exception":t<100?"active":"normal"}var d0=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.plain,s=e.renderFormItem,u=e.fieldProps,f=e.placeholder,v=(0,V.YB)(),m=f||v.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),h=(0,o.useMemo)(function(){return typeof r=="string"&&r.includes("%")?So()(r.replace("%","")):So()(r)},[r]);if(a==="read"){var g=(0,N.jsx)(u0.Z,(0,d.Z)({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:l?10:void 0,status:c0(h)},u));return i?i(h,(0,d.Z)({mode:a},u),g):g}if(a==="edit"||a==="update"){var p=(0,N.jsx)(Tr,(0,d.Z)({ref:n,placeholder:m},u));return s?s(r,(0,d.Z)({mode:a},u),p):p}return null},Yl=o.forwardRef(d0),f0=c(48829),v0=["radioType","renderFormItem","mode","render"],m0=function(e,n){var r,a,i=e.radioType,l=e.renderFormItem,s=e.mode,u=e.render,f=(0,E.Z)(e,v0),v=(0,o.useContext)(X.ZP.ConfigContext),m=v.getPrefixCls,h=m("pro-field-radio"),g=(0,Vn.aK)(f),p=(0,O.Z)(g,3),y=p[0],C=p[1],x=p[2],b=(0,o.useRef)(),I=(r=Gn.Z.Item)===null||r===void 0||(a=r.useStatus)===null||a===void 0?void 0:a.call(r);(0,o.useImperativeHandle)(n,function(){return(0,d.Z)((0,d.Z)({},b.current||{}),{},{fetchData:function(ie){return x(ie)}})},[x]);var $=(0,_n.Xj)("FieldRadioRadio",function(Q){var ie;return ie={},(0,Z.Z)(ie,".".concat(h,"-error"),{span:{color:Q.colorError}}),(0,Z.Z)(ie,".".concat(h,"-warning"),{span:{color:Q.colorWarning}}),(0,Z.Z)(ie,".".concat(h,"-vertical"),(0,Z.Z)({},"".concat(Q.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0})),ie}),P=$.wrapSSR,M=$.hashId;if(y)return(0,N.jsx)(ur.Z,{size:"small"});if(s==="read"){var A=C!=null&&C.length?C==null?void 0:C.reduce(function(Q,ie){var le;return(0,d.Z)((0,d.Z)({},Q),{},(0,Z.Z)({},(le=ie.value)!==null&&le!==void 0?le:"",ie.label))},{}):void 0,j=(0,N.jsx)(N.Fragment,{children:(0,w.MP)(f.text,(0,w.R6)(f.valueEnum||A))});if(u){var F;return(F=u(f.text,(0,d.Z)({mode:s},f.fieldProps),j))!==null&&F!==void 0?F:null}return j}if(s==="edit"){var U,z,D=P((0,N.jsx)(f0.ZP.Group,(0,d.Z)((0,d.Z)({ref:b,optionType:i},f.fieldProps),{},{className:W()((U=f.fieldProps)===null||U===void 0?void 0:U.className,(z={},(0,Z.Z)(z,"".concat(h,"-error"),(I==null?void 0:I.status)==="error"),(0,Z.Z)(z,"".concat(h,"-warning"),(I==null?void 0:I.status)==="warning"),z),M,"".concat(h,"-").concat(f.fieldProps.layout||"horizontal")),options:C})));if(l){var re;return(re=l(f.text,(0,d.Z)((0,d.Z)({mode:s},f.fieldProps),{},{options:C,loading:y}),D))!==null&&re!==void 0?re:null}return D}return null},Xl=o.forwardRef(m0),h0=function(e,n){var r=e.text,a=e.mode,i=e.light,l=e.label,s=e.format,u=e.render,f=e.picker,v=e.renderFormItem,m=e.plain,h=e.showTime,g=e.lightLabel,p=e.bordered,y=e.fieldProps,C=(0,V.YB)(),x=Array.isArray(r)?r:[],b=(0,O.Z)(x,2),I=b[0],$=b[1],P=o.useState(!1),M=(0,O.Z)(P,2),A=M[0],j=M[1],F=(0,o.useCallback)(function(le){if(typeof(y==null?void 0:y.format)=="function"){var se;return y==null||(se=y.format)===null||se===void 0?void 0:se.call(y,le)}return(y==null?void 0:y.format)||s||"YYYY-MM-DD"},[y,s]),U=I?An()(I).format(F(An()(I))):"",z=$?An()($).format(F(An()($))):"";if(a==="read"){var D=(0,N.jsxs)("div",{ref:n,children:[(0,N.jsx)("div",{children:U||"-"}),(0,N.jsx)("div",{children:z||"-"})]});return u?u(r,(0,d.Z)({mode:a},y),(0,N.jsx)("span",{children:D})):D}if(a==="edit"||a==="update"){var re=Ka(y.value),Q;if(i){var ie;Q=(0,N.jsx)(K.Q,{label:l,onClick:function(){var se;y==null||(se=y.onOpenChange)===null||se===void 0||se.call(y,!0),j(!0)},style:re?{paddingInlineEnd:0}:void 0,disabled:y.disabled,value:re||A?(0,N.jsx)(qr.default.RangePicker,(0,d.Z)((0,d.Z)({picker:f,showTime:h,format:s,bordered:!1},y),{},{placeholder:(ie=y.placeholder)!==null&&ie!==void 0?ie:[C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],onClear:function(){var se;j(!1),y==null||(se=y.onClear)===null||se===void 0||se.call(y)},value:re,onOpenChange:function(se){var _;re&&j(se),y==null||(_=y.onOpenChange)===null||_===void 0||_.call(y,se)}})):null,allowClear:!1,bordered:p,ref:g,downIcon:re||A?!1:void 0})}else Q=(0,N.jsx)(qr.default.RangePicker,(0,d.Z)((0,d.Z)({ref:n,format:s,showTime:h,placeholder:[C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:m===void 0},y),{},{value:re}));return v?v(r,(0,d.Z)({mode:a},y),Q):Q}return null},ya=o.forwardRef(h0),g0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},p0=g0,b0=function(e,n){return o.createElement(Xr.Z,(0,oe.Z)({},e,{ref:n,icon:p0}))},y0=o.forwardRef(b0),C0=c(55883);function x0(t,e){var n=t.disabled,r=t.prefixCls,a=t.character,i=t.characterRender,l=t.index,s=t.count,u=t.value,f=t.allowHalf,v=t.focused,m=t.onHover,h=t.onClick,g=function(P){m(P,l)},p=function(P){h(P,l)},y=function(P){P.keyCode===Se.Z.ENTER&&h(P,l)},C=l+1,x=new Set([r]);u===0&&l===0&&v?x.add("".concat(r,"-focused")):f&&u+.5>=C&&ul?"true":"false","aria-posinset":l+1,"aria-setsize":s,tabIndex:n?-1:0},o.createElement("div",{className:"".concat(r,"-first")},b),o.createElement("div",{className:"".concat(r,"-second")},b)));return i&&(I=i(I,t)),I}var S0=o.forwardRef(x0);function P0(){var t=o.useRef({});function e(r){return t.current[r]}function n(r){return function(a){t.current[r]=a}}return[e,n]}function w0(t){var e=t.pageXOffset,n="scrollLeft";if(typeof e!="number"){var r=t.document;e=r.documentElement[n],typeof e!="number"&&(e=r.body[n])}return e}function Z0(t){var e,n,r=t.ownerDocument,a=r.body,i=r&&r.documentElement,l=t.getBoundingClientRect();return e=l.left,n=l.top,e-=i.clientLeft||a.clientLeft||0,n-=i.clientTop||a.clientTop||0,{left:e,top:n}}function O0(t){var e=Z0(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=w0(r),e.left}var E0=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function R0(t,e){var n,r=t.prefixCls,a=r===void 0?"rc-rate":r,i=t.className,l=t.defaultValue,s=t.value,u=t.count,f=u===void 0?5:u,v=t.allowHalf,m=v===void 0?!1:v,h=t.allowClear,g=h===void 0?!0:h,p=t.character,y=p===void 0?"\u2605":p,C=t.characterRender,x=t.disabled,b=t.direction,I=b===void 0?"ltr":b,$=t.tabIndex,P=$===void 0?0:$,M=t.autoFocus,A=t.onHoverChange,j=t.onChange,F=t.onFocus,U=t.onBlur,z=t.onKeyDown,D=t.onMouseLeave,re=(0,E.Z)(t,E0),Q=P0(),ie=(0,O.Z)(Q,2),le=ie[0],se=ie[1],_=o.useRef(null),de=function(){if(!x){var xt;(xt=_.current)===null||xt===void 0||xt.focus()}};o.useImperativeHandle(e,function(){return{focus:de,blur:function(){if(!x){var xt;(xt=_.current)===null||xt===void 0||xt.blur()}}}});var ye=(0,nt.Z)(l||0,{value:s}),Te=(0,O.Z)(ye,2),Ne=Te[0],Ae=Te[1],gt=(0,nt.Z)(null),Le=(0,O.Z)(gt,2),bt=Le[0],at=Le[1],Ce=function(xt,Gt){var Wt=I==="rtl",Ut=xt+1;if(m){var Sn=le(xt),Nn=O0(Sn),Ln=Sn.clientWidth;(Wt&&Gt-Nn>Ln/2||!Wt&&Gt-Nn0&&!Wt||Gt===Se.Z.RIGHT&&Ut>0&&Wt?(m?Ut-=.5:Ut-=1,ze(Ut),xt.preventDefault()):Gt===Se.Z.LEFT&&Ut{const{componentCls:e}=t;return{[`${e}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:t.marginXS},"> div":{transition:`all ${t.motionDurationMid}, outline 0s`,"&:hover":{transform:t.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Qe.bf)(t.lineWidth)} dashed ${t.starColor}`,transform:t.starHoverScale}},"&-first, &-second":{color:t.starBg,transition:`all ${t.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${e}-star-first, &-half ${e}-star-second`]:{opacity:1},[`&-half ${e}-star-first, &-full ${e}-star-second`]:{color:"inherit"}}}},N0=t=>({[`&-rtl${t.componentCls}`]:{direction:"rtl"}}),F0=t=>{const{componentCls:e}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rn.Wf)(t)),{display:"inline-block",margin:0,padding:0,color:t.starColor,fontSize:t.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${e} ${e}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),$0(t)),N0(t))}},j0=t=>({starColor:t.yellow6,starSize:t.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:t.colorFillContent});var D0=(0,Pn.I$)("Rate",t=>{const e=(0,Zr.TS)(t,{});return[F0(e)]},j0),T0=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{prefixCls:n,className:r,rootClassName:a,style:i,tooltips:l,character:s=o.createElement(y0,null)}=t,u=T0(t,["prefixCls","className","rootClassName","style","tooltips","character"]),f=(x,b)=>{let{index:I}=b;return l?o.createElement(ai.Z,{title:l[I]},x):x},{getPrefixCls:v,direction:m,rate:h}=o.useContext(Xt.E_),g=v("rate",n),[p,y]=D0(g),C=Object.assign(Object.assign({},h==null?void 0:h.style),i);return p(o.createElement(M0,Object.assign({ref:e,character:s,characterRender:f},u,{className:W()(r,a,y,h==null?void 0:h.className),style:C,prefixCls:g,direction:m})))}),A0=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.renderFormItem,s=e.fieldProps;if(a==="read"){var u=(0,N.jsx)(Gl,(0,d.Z)((0,d.Z)({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return i?i(r,(0,d.Z)({mode:a},s),(0,N.jsx)(N.Fragment,{children:u})):u}if(a==="edit"||a==="update"){var f=(0,N.jsx)(Gl,(0,d.Z)({allowHalf:!0,ref:n},s));return l?l(r,(0,d.Z)({mode:a},s),f):f}return null},L0=o.forwardRef(A0);function H0(t){var e="",n=Math.floor(t/86400),r=Math.floor(t/3600%24),a=Math.floor(t/60%60),i=Math.floor(t%60);return e="".concat(i,"\u79D2"),a>0&&(e="".concat(a,"\u5206\u949F").concat(e)),r>0&&(e="".concat(r,"\u5C0F\u65F6").concat(e)),n>0&&(e="".concat(n,"\u5929").concat(e)),e}var B0=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.renderFormItem,s=e.fieldProps,u=e.placeholder,f=(0,V.YB)(),v=u||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(a==="read"){var m=H0(Number(r)),h=(0,N.jsx)("span",{ref:n,children:m});return i?i(r,(0,d.Z)({mode:a},s),h):h}if(a==="edit"||a==="update"){var g=(0,N.jsx)(Tr,(0,d.Z)({ref:n,min:0,style:{width:"100%"},placeholder:v},s));return l?l(r,(0,d.Z)({mode:a},s),g):g}return null},V0=o.forwardRef(B0),Jl=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},Ca=function(e){return e!==void 0?"".concat(e,"px"):void 0};function W0(t){var e=t.prefixCls,n=t.containerRef,r=t.value,a=t.getValueIndex,i=t.motionName,l=t.onMotionStart,s=t.onMotionEnd,u=t.direction,f=o.useRef(null),v=o.useState(r),m=(0,O.Z)(v,2),h=m[0],g=m[1],p=function(re){var Q,ie=a(re),le=(Q=n.current)===null||Q===void 0?void 0:Q.querySelectorAll(".".concat(e,"-item"))[ie];return(le==null?void 0:le.offsetParent)&&le},y=o.useState(null),C=(0,O.Z)(y,2),x=C[0],b=C[1],I=o.useState(null),$=(0,O.Z)(I,2),P=$[0],M=$[1];(0,Da.Z)(function(){if(h!==r){var D=p(h),re=p(r),Q=Jl(D),ie=Jl(re);g(r),b(Q),M(ie),D&&re?l():s()}},[r]);var A=o.useMemo(function(){return Ca(u==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[u,x]),j=o.useMemo(function(){return Ca(u==="rtl"?-(P==null?void 0:P.right):P==null?void 0:P.left)},[u,P]),F=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},U=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},z=function(){b(null),M(null),s()};return!x||!P?null:o.createElement(Bo.ZP,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:F,onAppearActive:U,onVisibleChanged:z},function(D,re){var Q=D.className,ie=D.style,le=(0,d.Z)((0,d.Z)({},ie),{},{"--thumb-start-left":A,"--thumb-start-width":Ca(x==null?void 0:x.width),"--thumb-active-left":j,"--thumb-active-width":Ca(P==null?void 0:P.width)}),se={ref:(0,Ta.sQ)(f,re),style:le,className:W()("".concat(e,"-thumb"),Q)};return o.createElement("div",se)})}var z0=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function k0(t){if(typeof t.title!="undefined")return t.title;if((0,R.Z)(t.label)!=="object"){var e;return(e=t.label)===null||e===void 0?void 0:e.toString()}}function K0(t){return t.map(function(e){if((0,R.Z)(e)==="object"&&e!==null){var n=k0(e);return(0,d.Z)((0,d.Z)({},e),{},{title:n})}return{label:e==null?void 0:e.toString(),title:e==null?void 0:e.toString(),value:e}})}var U0=function(e){var n=e.prefixCls,r=e.className,a=e.disabled,i=e.checked,l=e.label,s=e.title,u=e.value,f=e.onChange,v=function(h){a||f(h,u)};return o.createElement("label",{className:W()(r,(0,Z.Z)({},"".concat(n,"-item-disabled"),a))},o.createElement("input",{className:"".concat(n,"-item-input"),type:"radio",disabled:a,checked:i,onChange:v}),o.createElement("div",{className:"".concat(n,"-item-label"),title:s},l))},ci=o.forwardRef(function(t,e){var n,r,a=t.prefixCls,i=a===void 0?"rc-segmented":a,l=t.direction,s=t.options,u=t.disabled,f=t.defaultValue,v=t.value,m=t.onChange,h=t.className,g=h===void 0?"":h,p=t.motionName,y=p===void 0?"thumb-motion":p,C=(0,E.Z)(t,z0),x=o.useRef(null),b=o.useMemo(function(){return(0,Ta.sQ)(x,e)},[x,e]),I=o.useMemo(function(){return K0(s)},[s]),$=(0,nt.Z)((n=I[0])===null||n===void 0?void 0:n.value,{value:v,defaultValue:f}),P=(0,O.Z)($,2),M=P[0],A=P[1],j=o.useState(!1),F=(0,O.Z)(j,2),U=F[0],z=F[1],D=function(ie,le){u||(A(le),m==null||m(le))},re=(0,jt.Z)(C,["children"]);return o.createElement("div",(0,oe.Z)({},re,{className:W()(i,(r={},(0,Z.Z)(r,"".concat(i,"-rtl"),l==="rtl"),(0,Z.Z)(r,"".concat(i,"-disabled"),u),r),g),ref:b}),o.createElement("div",{className:"".concat(i,"-group")},o.createElement(W0,{prefixCls:i,value:M,containerRef:x,motionName:"".concat(i,"-").concat(y),direction:l,getValueIndex:function(ie){return I.findIndex(function(le){return le.value===ie})},onMotionStart:function(){z(!0)},onMotionEnd:function(){z(!1)}}),I.map(function(Q){return o.createElement(U0,(0,oe.Z)({},Q,{key:Q.value,prefixCls:i,className:W()(Q.className,"".concat(i,"-item"),(0,Z.Z)({},"".concat(i,"-item-selected"),Q.value===M&&!U)),checked:Q.value===M,onChange:D,disabled:!!u||!!Q.disabled}))})))});ci.displayName="Segmented",ci.defaultProps={options:[]};var Y0=ci;function Ql(t,e){return{[`${t}, ${t}:hover, ${t}:focus`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}}function _l(t){return{backgroundColor:t.itemSelectedBg,boxShadow:t.boxShadowTertiary}}const X0=Object.assign({overflow:"hidden"},Rn.vS),G0=t=>{const{componentCls:e}=t,n=t.calc(t.controlHeight).sub(t.calc(t.segmentedPadding).mul(2)).equal(),r=t.calc(t.controlHeightLG).sub(t.calc(t.segmentedPadding).mul(2)).equal(),a=t.calc(t.controlHeightSM).sub(t.calc(t.segmentedPadding).mul(2)).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rn.Wf)(t)),{display:"inline-block",padding:t.segmentedPadding,color:t.itemColor,backgroundColor:t.segmentedBgColor,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,[`${e}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${e}-rtl`]:{direction:"rtl"},[`&${e}-block`]:{display:"flex"},[`&${e}-block ${e}-item`]:{flex:1,minWidth:0},[`${e}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${t.motionDurationMid} ${t.motionEaseInOut}`,borderRadius:t.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},_l(t)),{color:t.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${t.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:t.itemHoverColor,"&::after":{backgroundColor:t.itemHoverBg}},[`&:active:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:t.itemHoverColor,"&::after":{backgroundColor:t.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:(0,Qe.bf)(n),padding:`0 ${(0,Qe.bf)(t.segmentedPaddingHorizontal)}`},X0),"&-icon + *":{marginInlineStart:t.calc(t.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${e}-thumb`]:Object.assign(Object.assign({},_l(t)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,Qe.bf)(t.paddingXXS)} 0`,borderRadius:t.borderRadiusSM,[`& ~ ${e}-item:not(${e}-item-selected):not(${e}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${e}-lg`]:{borderRadius:t.borderRadiusLG,[`${e}-item-label`]:{minHeight:r,lineHeight:(0,Qe.bf)(r),padding:`0 ${(0,Qe.bf)(t.segmentedPaddingHorizontal)}`,fontSize:t.fontSizeLG},[`${e}-item, ${e}-thumb`]:{borderRadius:t.borderRadius}},[`&${e}-sm`]:{borderRadius:t.borderRadiusSM,[`${e}-item-label`]:{minHeight:a,lineHeight:(0,Qe.bf)(a),padding:`0 ${(0,Qe.bf)(t.segmentedPaddingHorizontalSM)}`},[`${e}-item, ${e}-thumb`]:{borderRadius:t.borderRadiusXS}}}),Ql(`&-disabled ${e}-item`,t)),Ql(`${e}-item-disabled`,t)),{[`${e}-thumb-motion-appear-active`]:{transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOut}, width ${t.motionDurationSlow} ${t.motionEaseInOut}`,willChange:"transform, width"}})}},J0=t=>{const{colorTextLabel:e,colorText:n,colorFillSecondary:r,colorBgElevated:a,colorFill:i}=t;return{itemColor:e,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:a,itemActiveBg:i,itemSelectedColor:n}};var Q0=(0,Pn.I$)("Segmented",t=>{const{lineWidth:e,lineWidthBold:n,colorBgLayout:r,calc:a}=t,i=(0,Zr.TS)(t,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:a(t.controlPaddingHorizontal).sub(e).equal(),segmentedPaddingHorizontalSM:a(t.controlPaddingHorizontalSM).sub(e).equal()});return[G0(i)]},J0),ql=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{prefixCls:n,className:r,rootClassName:a,block:i,options:l=[],size:s="middle",style:u}=t,f=ql(t,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:v,direction:m,segmented:h}=o.useContext(Xt.E_),g=v("segmented",n),[p,y]=Q0(g),C=(0,Rt.Z)(s),x=o.useMemo(()=>l.map($=>{if(_0($)){const{icon:P,label:M}=$,A=ql($,["icon","label"]);return Object.assign(Object.assign({},A),{label:o.createElement(o.Fragment,null,o.createElement("span",{className:`${g}-item-icon`},P),M&&o.createElement("span",null,M))})}return $}),[l,g]),b=W()(r,a,h==null?void 0:h.className,{[`${g}-block`]:i,[`${g}-sm`]:C==="small",[`${g}-lg`]:C==="large"},y),I=Object.assign(Object.assign({},h==null?void 0:h.style),u);return p(o.createElement(Y0,Object.assign({},f,{className:b,style:I,options:x,ref:e,prefixCls:g,direction:m})))}),em=["mode","render","renderFormItem","fieldProps","emptyText"],tm=function(e,n){var r=e.mode,a=e.render,i=e.renderFormItem,l=e.fieldProps,s=e.emptyText,u=s===void 0?"-":s,f=(0,E.Z)(e,em),v=(0,o.useRef)(),m=(0,Vn.aK)(f),h=(0,O.Z)(m,3),g=h[0],p=h[1],y=h[2];if((0,o.useImperativeHandle)(n,function(){return(0,d.Z)((0,d.Z)({},v.current||{}),{},{fetchData:function(P){return y(P)}})},[y]),g)return(0,N.jsx)(ur.Z,{size:"small"});if(r==="read"){var C=p!=null&&p.length?p==null?void 0:p.reduce(function($,P){var M;return(0,d.Z)((0,d.Z)({},$),{},(0,Z.Z)({},(M=P.value)!==null&&M!==void 0?M:"",P.label))},{}):void 0,x=(0,N.jsx)(N.Fragment,{children:(0,w.MP)(f.text,(0,w.R6)(f.valueEnum||C))});if(a){var b;return(b=a(f.text,(0,d.Z)({mode:r},l),(0,N.jsx)(N.Fragment,{children:x})))!==null&&b!==void 0?b:u}return x}if(r==="edit"||r==="update"){var I=(0,N.jsx)(q0,(0,d.Z)((0,d.Z)({ref:v},(0,yo.Z)(l||{},["allowClear"])),{},{options:p}));return i?i(f.text,(0,d.Z)((0,d.Z)({mode:r},l),{},{options:p,loading:g}),I):I}return null},nm=o.forwardRef(tm),rm=o.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),ea=rm;function di(t,e,n){return(t-e)/(n-e)}function fi(t,e,n,r){var a=di(e,n,r),i={};switch(t){case"rtl":i.right="".concat(a*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(a*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(a*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(a*100,"%"),i.transform="translateX(-50%)";break}return i}function xa(t,e){return Array.isArray(t)?t[e]:t}var am=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],om=o.forwardRef(function(t,e){var n,r,a=t.prefixCls,i=t.value,l=t.valueIndex,s=t.onStartMove,u=t.style,f=t.render,v=t.dragging,m=t.onOffsetChange,h=t.onChangeComplete,g=(0,E.Z)(t,am),p=o.useContext(ea),y=p.min,C=p.max,x=p.direction,b=p.disabled,I=p.keyboard,$=p.range,P=p.tabIndex,M=p.ariaLabelForHandle,A=p.ariaLabelledByForHandle,j=p.ariaValueTextFormatterForHandle,F=p.styles,U=p.classNames,z="".concat(a,"-handle"),D=function(_){b||s(_,l)},re=function(_){if(!b&&I){var de=null;switch(_.which||_.keyCode){case Se.Z.LEFT:de=x==="ltr"||x==="btt"?-1:1;break;case Se.Z.RIGHT:de=x==="ltr"||x==="btt"?1:-1;break;case Se.Z.UP:de=x!=="ttb"?1:-1;break;case Se.Z.DOWN:de=x!=="ttb"?-1:1;break;case Se.Z.HOME:de="min";break;case Se.Z.END:de="max";break;case Se.Z.PAGE_UP:de=2;break;case Se.Z.PAGE_DOWN:de=-2;break}de!==null&&(_.preventDefault(),m(de,l))}},Q=function(_){switch(_.which||_.keyCode){case Se.Z.LEFT:case Se.Z.RIGHT:case Se.Z.UP:case Se.Z.DOWN:case Se.Z.HOME:case Se.Z.END:case Se.Z.PAGE_UP:case Se.Z.PAGE_DOWN:h==null||h();break}},ie=fi(x,i,y,C),le=o.createElement("div",(0,oe.Z)({ref:e,className:W()(z,(n={},(0,Z.Z)(n,"".concat(z,"-").concat(l+1),$),(0,Z.Z)(n,"".concat(z,"-dragging"),v),n),U.handle),style:(0,d.Z)((0,d.Z)((0,d.Z)({},ie),u),F.handle),onMouseDown:D,onTouchStart:D,onKeyDown:re,onKeyUp:Q,tabIndex:b?null:xa(P,l),role:"slider","aria-valuemin":y,"aria-valuemax":C,"aria-valuenow":i,"aria-disabled":b,"aria-label":xa(M,l),"aria-labelledby":xa(A,l),"aria-valuetext":(r=xa(j,l))===null||r===void 0?void 0:r(i),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical"},g));return f&&(le=f(le,{index:l,prefixCls:a,value:i,dragging:v})),le}),im=om,lm=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],sm=o.forwardRef(function(t,e){var n=t.prefixCls,r=t.style,a=t.onStartMove,i=t.onOffsetChange,l=t.values,s=t.handleRender,u=t.draggingIndex,f=(0,E.Z)(t,lm),v=o.useRef({});return o.useImperativeHandle(e,function(){return{focus:function(h){var g;(g=v.current[h])===null||g===void 0||g.focus()}}}),o.createElement(o.Fragment,null,l.map(function(m,h){return o.createElement(im,(0,oe.Z)({ref:function(p){p?v.current[h]=p:delete v.current[h]},dragging:u===h,prefixCls:n,style:xa(r,h),key:h,value:m,valueIndex:h,onStartMove:a,onOffsetChange:i,render:s},f))}))}),um=sm;function es(t){var e="touches"in t?t.touches[0]:t;return{pageX:e.pageX,pageY:e.pageY}}function cm(t,e,n,r,a,i,l,s,u){var f=o.useState(null),v=(0,O.Z)(f,2),m=v[0],h=v[1],g=o.useState(-1),p=(0,O.Z)(g,2),y=p[0],C=p[1],x=o.useState(n),b=(0,O.Z)(x,2),I=b[0],$=b[1],P=o.useState(n),M=(0,O.Z)(P,2),A=M[0],j=M[1],F=o.useRef(null),U=o.useRef(null);o.useEffect(function(){y===-1&&$(n)},[n,y]),o.useEffect(function(){return function(){document.removeEventListener("mousemove",F.current),document.removeEventListener("mouseup",U.current),document.removeEventListener("touchmove",F.current),document.removeEventListener("touchend",U.current)}},[]);var z=function(se,_){I.some(function(de,ye){return de!==se[ye]})&&(_!==void 0&&h(_),$(se),l(se))},D=function(se,_){if(se===-1){var de=A[0],ye=A[A.length-1],Te=r-de,Ne=a-ye,Ae=_*(a-r);Ae=Math.max(Ae,Te),Ae=Math.min(Ae,Ne);var gt=i(de+Ae);Ae=gt-de;var Le=A.map(function(ze){return ze+Ae});z(Le)}else{var bt=(a-r)*_,at=(0,ce.Z)(I);at[se]=A[se];var Ce=u(at,bt,se,"dist");z(Ce.values,Ce.value)}},re=o.useRef(D);re.current=D;var Q=function(se,_,de){se.stopPropagation();var ye=de||n,Te=ye[_];C(_),h(Te),j(ye);var Ne=es(se),Ae=Ne.pageX,gt=Ne.pageY,Le=function(Ce){Ce.preventDefault();var ze=es(Ce),Vt=ze.pageX,Nt=ze.pageY,ut=Vt-Ae,He=Nt-gt,ot=t.current.getBoundingClientRect(),ft=ot.width,lt=ot.height,vt;switch(e){case"btt":vt=-He/lt;break;case"ttb":vt=He/lt;break;case"rtl":vt=-ut/ft;break;default:vt=ut/ft}re.current(_,vt)},bt=function at(Ce){Ce.preventDefault(),document.removeEventListener("mouseup",at),document.removeEventListener("mousemove",Le),document.removeEventListener("touchend",at),document.removeEventListener("touchmove",Le),F.current=null,U.current=null,C(-1),s()};document.addEventListener("mouseup",bt),document.addEventListener("mousemove",Le),document.addEventListener("touchend",bt),document.addEventListener("touchmove",Le),F.current=Le,U.current=bt},ie=o.useMemo(function(){var le=(0,ce.Z)(n).sort(function(_,de){return _-de}),se=(0,ce.Z)(I).sort(function(_,de){return _-de});return le.every(function(_,de){return _===se[de]})?I:n},[n,I]);return[y,m,ie,Q]}function dm(t,e,n,r,a,i){var l=o.useCallback(function(g){var p=isFinite(g)?g:t;return p=Math.min(e,g),p=Math.max(t,p),p},[t,e]),s=o.useCallback(function(g){if(n!==null){var p=t+Math.round((l(g)-t)/n)*n,y=function(I){return(String(I).split(".")[1]||"").length},C=Math.max(y(n),y(e),y(t)),x=Number(p.toFixed(C));return t<=x&&x<=e?x:null}return null},[n,t,e,l]),u=o.useCallback(function(g){var p=l(g),y=r.map(function(b){return b.value});n!==null&&y.push(s(g)),y.push(t,e);var C=y[0],x=e-t;return y.forEach(function(b){var I=Math.abs(p-b);I<=x&&(C=b,x=I)}),C},[t,e,r,n,l,s]),f=function g(p,y,C){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof y=="number"){var b,I=p[C],$=I+y,P=[];r.forEach(function(U){P.push(U.value)}),P.push(t,e),P.push(s(I));var M=y>0?1:-1;x==="unit"?P.push(s(I+M*n)):P.push(s($)),P=P.filter(function(U){return U!==null}).filter(function(U){return y<0?U<=I:U>=I}),x==="unit"&&(P=P.filter(function(U){return U!==I}));var A=x==="unit"?I:$;b=P[0];var j=Math.abs(b-A);if(P.forEach(function(U){var z=Math.abs(U-A);z1){var F=(0,ce.Z)(p);return F[C]=b,g(F,y-M,C,x)}return b}else{if(y==="min")return t;if(y==="max")return e}},v=function(p,y,C){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",b=p[C],I=f(p,y,C,x);return{value:I,changed:I!==b}},m=function(p){return i===null&&p===0||typeof i=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",b=p.map(u),I=b[C],$=f(b,y,C,x);if(b[C]=$,a===!1){var P=i||0;C>0&&b[C-1]!==I&&(b[C]=Math.max(b[C],b[C-1]+P)),C0;F-=1)for(var U=!0;m(b[F]-b[F-1])&&U;){var z=v(b,-1,F-1);b[F-1]=z.value,U=z.changed}for(var D=b.length-1;D>0;D-=1)for(var re=!0;m(b[D]-b[D-1])&&re;){var Q=v(b,-1,D-1);b[D-1]=Q.value,re=Q.changed}for(var ie=0;ie=0?se:!1},[se,vn]),Zn=o.useMemo(function(){var Kn=Object.keys(ze||{});return Kn.map(function(wt){var tt=ze[wt],en={value:Number(wt)};return tt&&(0,R.Z)(tt)==="object"&&!o.isValidElement(tt)&&("label"in tt||"style"in tt)?(en.style=tt.style,en.label=tt.label):en.label=tt,en}).filter(function(wt){var tt=wt.label;return tt||typeof tt=="number"}).sort(function(wt,tt){return wt.value-tt.value})},[ze]),sn=dm(Ft,fn,vn,Zn,ie,wn),st=(0,O.Z)(sn,2),xt=st[0],Gt=st[1],Wt=(0,nt.Z)(A,{value:M}),Ut=(0,O.Z)(Wt,2),Sn=Ut[0],Nn=Ut[1],Ln=o.useMemo(function(){var Kn=Sn==null?[]:Array.isArray(Sn)?Sn:[Sn],wt=(0,O.Z)(Kn,1),tt=wt[0],en=tt===void 0?Ft:tt,un=Sn===null?[]:[en];if(j){if(un=(0,ce.Z)(Kn),F||Sn===void 0){var zn=F>=0?F+1:2;for(un=un.slice(0,zn);un.length=0&&vt.current.focus(Kn)}dr(null)},[lr]);var Ga=o.useMemo(function(){return _&&vn===null?!1:_},[_,vn]),wo=function(wt,tt){Yt(wt,tt),z==null||z(kn(Dn.current))},Zo=br!==-1;o.useEffect(function(){if(!Zo){var Kn=Ln.lastIndexOf(Lr);vt.current.focus(Kn)}},[Zo]);var Br=o.useMemo(function(){return(0,ce.Z)(ln).sort(function(Kn,wt){return Kn-wt})},[ln]),Sa=o.useMemo(function(){return j?[Br[0],Br[Br.length-1]]:[Ft,Br[0]]},[Br,j,Ft]),Pa=(0,O.Z)(Sa,2),Oo=Pa[0],Eo=Pa[1];o.useImperativeHandle(e,function(){return{focus:function(){vt.current.focus(0)},blur:function(){var wt=document,tt=wt.activeElement;Ht.current.contains(tt)&&(tt==null||tt.blur())}}}),o.useEffect(function(){g&&vt.current.focus(0)},[]);var yi=o.useMemo(function(){return{min:Ft,max:fn,direction:qt,disabled:v,keyboard:h,step:vn,included:Ne,includedStart:Oo,includedEnd:Eo,range:j,tabIndex:He,ariaLabelForHandle:ot,ariaLabelledByForHandle:ft,ariaValueTextFormatterForHandle:lt,styles:u||{},classNames:s||{}}},[Ft,fn,qt,v,h,vn,Ne,Oo,Eo,j,He,ot,ft,lt,u,s]);return o.createElement(ea.Provider,{value:yi},o.createElement("div",{ref:Ht,className:W()(a,i,(n={},(0,Z.Z)(n,"".concat(a,"-disabled"),v),(0,Z.Z)(n,"".concat(a,"-vertical"),ye),(0,Z.Z)(n,"".concat(a,"-horizontal"),!ye),(0,Z.Z)(n,"".concat(a,"-with-marks"),Zn.length),n)),style:l,onMouseDown:Qt},o.createElement("div",{className:W()("".concat(a,"-rail"),s==null?void 0:s.rail),style:(0,d.Z)((0,d.Z)({},bt),u==null?void 0:u.rail)}),o.createElement(gm,{prefixCls:a,style:gt,values:Br,startPoint:Ae,onStartMove:Ga?wo:null}),o.createElement(hm,{prefixCls:a,marks:Zn,dots:Vt,style:at,activeStyle:Ce}),o.createElement(um,{ref:vt,prefixCls:a,style:Le,values:ln,draggingIndex:br,onStartMove:wo,onOffsetChange:Hr,onFocus:p,onBlur:y,handleRender:Nt,onChangeComplete:Tn}),o.createElement(vm,{prefixCls:a,marks:Zn,onClick:mn})))}),bm=pm,ym=bm,Cm=o.forwardRef((t,e)=>{const{open:n}=t,r=(0,o.useRef)(null),a=(0,o.useRef)(null);function i(){Qr.Z.cancel(a.current),a.current=null}function l(){a.current=(0,Qr.Z)(()=>{var s;(s=r.current)===null||s===void 0||s.forceAlign(),a.current=null})}return o.useEffect(()=>(n?l():i(),i),[n,t.title]),o.createElement(ai.Z,Object.assign({ref:(0,Ta.sQ)(r,e)},t))});const xm=t=>{const{componentCls:e,antCls:n,controlSize:r,dotSize:a,marginFull:i,marginPart:l,colorFillContentHover:s,handleColorDisabled:u,calc:f}=t;return{[e]:Object.assign(Object.assign({},(0,Rn.Wf)(t)),{position:"relative",height:r,margin:`${(0,Qe.bf)(l)} ${(0,Qe.bf)(i)}`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${(0,Qe.bf)(i)} ${(0,Qe.bf)(l)}`},[`${e}-rail`]:{position:"absolute",backgroundColor:t.railBg,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},[`${e}-track,${e}-tracks`]:{position:"absolute",transition:`background-color ${t.motionDurationMid}`},[`${e}-track`]:{backgroundColor:t.trackBg,borderRadius:t.borderRadiusXS},[`${e}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${e}-rail`]:{backgroundColor:t.railHoverBg},[`${e}-track`]:{backgroundColor:t.trackHoverBg},[`${e}-dot`]:{borderColor:s},[`${e}-handle::after`]:{boxShadow:`0 0 0 ${(0,Qe.bf)(t.handleLineWidth)} ${t.colorPrimaryBorderHover}`},[`${e}-dot-active`]:{borderColor:t.dotActiveBorderColor}},[`${e}-handle`]:{position:"absolute",width:t.handleSize,height:t.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:f(t.handleLineWidth).mul(-1).equal(),insetBlockStart:f(t.handleLineWidth).mul(-1).equal(),width:f(t.handleSize).add(f(t.handleLineWidth).mul(2)).equal(),height:f(t.handleSize).add(f(t.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:t.handleSize,height:t.handleSize,backgroundColor:t.colorBgElevated,boxShadow:`0 0 0 ${(0,Qe.bf)(t.handleLineWidth)} ${t.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${t.motionDurationMid}, + inset-block-start ${t.motionDurationMid}, + width ${t.motionDurationMid}, + height ${t.motionDurationMid}, + box-shadow ${t.motionDurationMid} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:f(t.handleSizeHover).sub(t.handleSize).div(2).add(t.handleLineWidthHover).mul(-1).equal(),insetBlockStart:f(t.handleSizeHover).sub(t.handleSize).div(2).add(t.handleLineWidthHover).mul(-1).equal(),width:f(t.handleSizeHover).add(f(t.handleLineWidthHover).mul(2)).equal(),height:f(t.handleSizeHover).add(f(t.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,Qe.bf)(t.handleLineWidthHover)} ${t.handleActiveColor}`,width:t.handleSizeHover,height:t.handleSizeHover,insetInlineStart:t.calc(t.handleSize).sub(t.handleSizeHover).div(2).equal(),insetBlockStart:t.calc(t.handleSize).sub(t.handleSizeHover).div(2).equal()}}},[`${e}-mark`]:{position:"absolute",fontSize:t.fontSize},[`${e}-mark-text`]:{position:"absolute",display:"inline-block",color:t.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:t.colorText}},[`${e}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${e}-dot`]:{position:"absolute",width:a,height:a,backgroundColor:t.colorBgElevated,border:`${(0,Qe.bf)(t.handleLineWidth)} solid ${t.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:t.dotActiveBorderColor}},[`&${e}-disabled`]:{cursor:"not-allowed",[`${e}-rail`]:{backgroundColor:`${t.railBg} !important`},[`${e}-track`]:{backgroundColor:`${t.trackBgDisabled} !important`},[` + ${e}-dot + `]:{backgroundColor:t.colorBgElevated,borderColor:t.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${e}-handle::after`]:{backgroundColor:t.colorBgElevated,cursor:"not-allowed",width:t.handleSize,height:t.handleSize,boxShadow:`0 0 0 ${(0,Qe.bf)(t.handleLineWidth)} ${u}`,insetInlineStart:0,insetBlockStart:0},[` + ${e}-mark-text, + ${e}-dot + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},ns=(t,e)=>{const{componentCls:n,railSize:r,handleSize:a,dotSize:i,marginFull:l,calc:s}=t,u=e?"paddingBlock":"paddingInline",f=e?"width":"height",v=e?"height":"width",m=e?"insetBlockStart":"insetInlineStart",h=e?"top":"insetInlineStart",g=s(r).mul(3).sub(a).div(2).equal(),p=s(a).sub(r).div(2).equal(),y=e?{borderWidth:`${(0,Qe.bf)(p)} 0`,transform:`translateY(${(0,Qe.bf)(s(p).mul(-1).equal())})`}:{borderWidth:`0 ${(0,Qe.bf)(p)}`,transform:`translateX(${(0,Qe.bf)(t.calc(p).mul(-1).equal())})`};return{[u]:r,[v]:s(r).mul(3).equal(),[`${n}-rail`]:{[f]:"100%",[v]:r},[`${n}-track,${n}-tracks`]:{[v]:r},[`${n}-track-draggable`]:Object.assign({},y),[`${n}-handle`]:{[m]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(e?0:l).equal(),[f]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[f]:"100%",[v]:r},[`${n}-dot`]:{position:"absolute",[m]:s(r).sub(i).div(2).equal()}}},Sm=t=>{const{componentCls:e,marginPartWithMark:n}=t;return{[`${e}-horizontal`]:Object.assign(Object.assign({},ns(t,!0)),{[`&${e}-with-marks`]:{marginBottom:n}})}},Pm=t=>{const{componentCls:e}=t;return{[`${e}-vertical`]:Object.assign(Object.assign({},ns(t,!1)),{height:"100%"})}},wm=t=>{const n=t.controlHeightLG/4,r=t.controlHeightSM/2,a=t.lineWidth+1,i=t.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:a,handleLineWidthHover:i,railBg:t.colorFillTertiary,railHoverBg:t.colorFillSecondary,trackBg:t.colorPrimaryBorder,trackHoverBg:t.colorPrimaryBorderHover,handleColor:t.colorPrimaryBorder,handleActiveColor:t.colorPrimary,handleColorDisabled:new mr.C(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexShortString(),dotBorderColor:t.colorBorderSecondary,dotActiveBorderColor:t.colorPrimaryBorder,trackBgDisabled:t.colorBgContainerDisabled}};var Zm=(0,Pn.I$)("Slider",t=>{const e=(0,Zr.TS)(t,{marginPart:t.calc(t.controlHeight).sub(t.controlSize).div(2).equal(),marginFull:t.calc(t.controlSize).div(2).equal(),marginPartWithMark:t.calc(t.controlHeightLG).sub(t.controlSize).equal()});return[xm(e),Sm(e),Pm(e)]},wm),Om=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);atypeof n=="number"?n.toString():""}var Rm=o.forwardRef((t,e)=>{const{prefixCls:n,range:r,className:a,rootClassName:i,style:l,disabled:s,tooltipPrefixCls:u,tipFormatter:f,tooltipVisible:v,getTooltipPopupContainer:m,tooltipPlacement:h}=t,g=Om(t,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:p,slider:y,getPrefixCls:C,getPopupContainer:x}=o.useContext(Xt.E_),b=o.useContext(gn.Z),I=s!=null?s:b,[$,P]=o.useState({}),M=(le,se)=>{P(_=>Object.assign(Object.assign({},_),{[le]:se}))},A=(le,se)=>le||(se?p==="rtl"?"left":"right":"top"),j=C("slider",n),[F,U]=Zm(j),z=W()(a,y==null?void 0:y.className,i,{[`${j}-rtl`]:p==="rtl"},U);p==="rtl"&&!g.vertical&&(g.reverse=!g.reverse);const[D,re]=o.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),Q=(le,se)=>{var _;const{index:de,dragging:ye}=se,{tooltip:Te={},vertical:Ne}=t,Ae=Object.assign({},Te),{open:gt,placement:Le,getPopupContainer:bt,prefixCls:at,formatter:Ce}=Ae,ze=Em(Ce,f),Vt=ze?$[de]||ye:!1,Nt=(_=gt!=null?gt:v)!==null&&_!==void 0?_:gt===void 0&&Vt,ut=Object.assign(Object.assign({},le.props),{onMouseEnter:()=>M(de,!0),onMouseLeave:()=>M(de,!1),onFocus:He=>{var ot;M(de,!0),(ot=g.onFocus)===null||ot===void 0||ot.call(g,He)},onBlur:He=>{var ot;M(de,!1),(ot=g.onBlur)===null||ot===void 0||ot.call(g,He)}});return o.createElement(Cm,Object.assign({},Ae,{prefixCls:C("tooltip",at!=null?at:u),title:ze?ze(se.value):"",open:Nt,placement:A(Le!=null?Le:h,Ne),key:de,overlayClassName:`${j}-tooltip`,getPopupContainer:bt||m||x}),o.cloneElement(le,ut))},ie=Object.assign(Object.assign({},y==null?void 0:y.style),l);return F(o.createElement(ym,Object.assign({},g,{step:g.step,range:D,draggableTrack:re,className:z,style:ie,disabled:I,ref:e,prefixCls:j,handleRender:Q})))}),Im=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.renderFormItem,s=e.fieldProps;if(a==="read"){var u=r;return i?i(r,(0,d.Z)({mode:a},s),(0,N.jsx)(N.Fragment,{children:u})):(0,N.jsx)(N.Fragment,{children:u})}if(a==="edit"||a==="update"){var f=(0,N.jsx)(Rm,(0,d.Z)((0,d.Z)({ref:n},s),{},{style:(0,d.Z)({minWidth:120},s==null?void 0:s.style)}));return l?l(r,(0,d.Z)({mode:a},s),f):f}return null},Mm=o.forwardRef(Im),$m=c(55159),Nm=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.light,s=e.label,u=e.renderFormItem,f=e.fieldProps,v=(0,V.YB)(),m=(0,o.useMemo)(function(){var C,x;return r==null||"".concat(r).length<1?"-":r?(C=f==null?void 0:f.checkedChildren)!==null&&C!==void 0?C:v.getMessage("switch.open","\u6253\u5F00"):(x=f==null?void 0:f.unCheckedChildren)!==null&&x!==void 0?x:v.getMessage("switch.close","\u5173\u95ED")},[f==null?void 0:f.checkedChildren,f==null?void 0:f.unCheckedChildren,r]);if(a==="read")return i?i(r,(0,d.Z)({mode:a},f),(0,N.jsx)(N.Fragment,{children:m})):m!=null?m:"-";if(a==="edit"||a==="update"){var h,g=(0,N.jsx)($m.Z,(0,d.Z)((0,d.Z)({ref:n,size:l?"small":void 0},(0,yo.Z)(f,["value"])),{},{checked:(h=f==null?void 0:f.checked)!==null&&h!==void 0?h:f==null?void 0:f.value}));if(l){var p=f.disabled,y=f.bordered;return(0,N.jsx)(K.Q,{label:s,disabled:p,bordered:y,downIcon:!1,value:(0,N.jsx)("div",{style:{paddingLeft:8},children:g}),allowClear:!1})}return u?u(r,(0,d.Z)({mode:a},f),g):g}return null},Fm=o.forwardRef(Nm),jm=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.renderFormItem,s=e.fieldProps,u=e.emptyText,f=u===void 0?"-":u,v=s||{},m=v.autoFocus,h=v.prefix,g=h===void 0?"":h,p=v.suffix,y=p===void 0?"":p,C=(0,V.YB)(),x=(0,o.useRef)();if((0,o.useImperativeHandle)(n,function(){return x.current},[]),(0,o.useEffect)(function(){if(m){var M;(M=x.current)===null||M===void 0||M.focus()}},[m]),a==="read"){var b=(0,N.jsxs)(N.Fragment,{children:[g,r!=null?r:f,y]});if(i){var I;return(I=i(r,(0,d.Z)({mode:a},s),b))!==null&&I!==void 0?I:f}return b}if(a==="edit"||a==="update"){var $=C.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),P=(0,N.jsx)(vr.Z,(0,d.Z)({ref:x,placeholder:$,allowClear:!0},s));return l?l(r,(0,d.Z)({mode:a},s),P):P}return null},Dm=o.forwardRef(jm),Tm=function(e,n){var r=e.text,a=(0,o.useContext)(X.ZP.ConfigContext),i=a.getPrefixCls,l=i("pro-field-readonly"),s="".concat(l,"-textarea"),u=(0,_n.Xj)("TextArea",function(){return(0,Z.Z)({},".".concat(s),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),f=u.wrapSSR,v=u.hashId;return f((0,N.jsx)("span",{ref:n,className:W()(v,l,s),style:{},children:r!=null?r:"-"}))},Am=o.forwardRef(Tm),Lm=function(e,n){var r=e.text,a=e.mode,i=e.render,l=e.renderFormItem,s=e.fieldProps,u=(0,V.YB)();if(a==="read"){var f=(0,N.jsx)(Am,(0,d.Z)((0,d.Z)({},e),{},{ref:n}));return i?i(r,(0,d.Z)({mode:a},s),f):f}if(a==="edit"||a==="update"){var v=(0,N.jsx)(vr.Z.TextArea,(0,d.Z)({ref:n,rows:3,onKeyPress:function(h){h.key==="Enter"&&h.stopPropagation()},placeholder:u.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},s));return l?l(r,(0,d.Z)({mode:a},s),v):v}return null},Hm=o.forwardRef(Lm),Bm=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);ao.createElement(Wm,Object.assign({},t,{picker:"time",mode:void 0,ref:e}))),Ya=o.forwardRef((t,e)=>{var{addon:n,renderExtraFooter:r}=t,a=Bm(t,["addon","renderExtraFooter"]);const i=o.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return o.createElement(Vm,Object.assign({},a,{mode:void 0,ref:e,renderExtraFooter:i}))}),rs=(0,xn.Z)(Ya,"picker");Ya._InternalPanelDoNotUseOrYouWillBeFired=rs,Ya.RangePicker=zm,Ya._InternalPanelDoNotUseOrYouWillBeFired=rs;var vi=Ya,km=function(e,n){var r=e.text,a=e.mode,i=e.light,l=e.label,s=e.format,u=e.render,f=e.renderFormItem,v=e.plain,m=e.fieldProps,h=e.lightLabel,g=(0,o.useState)(!1),p=(0,O.Z)(g,2),y=p[0],C=p[1],x=(0,V.YB)(),b=(m==null?void 0:m.format)||s||"HH:mm:ss",I=An().isDayjs(r)||typeof r=="number";if(a==="read"){var $=(0,N.jsx)("span",{ref:n,children:r?An()(r,I?void 0:b).format(b):"-"});return u?u(r,(0,d.Z)({mode:a},m),(0,N.jsx)("span",{children:$})):$}if(a==="edit"||a==="update"){var P,M=m.disabled,A=m.value,j=Ka(A,b);if(i){var F;P=(0,N.jsx)(K.Q,{onClick:function(){var z;m==null||(z=m.onOpenChange)===null||z===void 0||z.call(m,!0),C(!0)},style:j?{paddingInlineEnd:0}:void 0,label:l,disabled:M,value:j||y?(0,N.jsx)(vi,(0,d.Z)((0,d.Z)({bordered:!1,format:s,ref:n},m),{},{placeholder:(F=m.placeholder)!==null&&F!==void 0?F:x.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),value:j,onOpenChange:function(z){var D;C(z),m==null||(D=m.onOpenChange)===null||D===void 0||D.call(m,z)},open:y})):null,downIcon:j||y?!1:void 0,allowClear:!1,ref:h})}else P=(0,N.jsx)(qr.default.TimePicker,(0,d.Z)((0,d.Z)({ref:n,format:s,bordered:v===void 0?!0:!v},m),{},{value:j}));return f?f(r,(0,d.Z)({mode:a},m),P):P}return null},Km=function(e,n){var r=e.text,a=e.light,i=e.label,l=e.mode,s=e.lightLabel,u=e.format,f=e.render,v=e.renderFormItem,m=e.plain,h=e.fieldProps,g=(0,V.YB)(),p=(0,o.useState)(!1),y=(0,O.Z)(p,2),C=y[0],x=y[1],b=(h==null?void 0:h.format)||u||"HH:mm:ss",I=Array.isArray(r)?r:[],$=(0,O.Z)(I,2),P=$[0],M=$[1],A=An().isDayjs(P)||typeof P=="number",j=An().isDayjs(M)||typeof M=="number",F=P?An()(P,A?void 0:b).format(b):"",U=M?An()(M,j?void 0:b).format(b):"";if(l==="read"){var z=(0,N.jsxs)("div",{ref:n,children:[(0,N.jsx)("div",{children:F||"-"}),(0,N.jsx)("div",{children:U||"-"})]});return f?f(r,(0,d.Z)({mode:l},h),(0,N.jsx)("span",{children:z})):z}if(l==="edit"||l==="update"){var D=Ka(h.value,b),re;if(a){var Q=h.disabled,ie=h.placeholder,le=ie===void 0?[g.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),g.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")]:ie;re=(0,N.jsx)(K.Q,{onClick:function(){var _;h==null||(_=h.onOpenChange)===null||_===void 0||_.call(h,!0),x(!0)},style:D?{paddingInlineEnd:0}:void 0,label:i,disabled:Q,placeholder:le,value:D||C?(0,N.jsx)(vi.RangePicker,(0,d.Z)((0,d.Z)({bordered:!1,format:u,ref:n},h),{},{placeholder:le,value:D,onOpenChange:function(_){var de;x(_),h==null||(de=h.onOpenChange)===null||de===void 0||de.call(h,_)},open:C})):null,downIcon:D||C?!1:void 0,allowClear:!1,ref:s})}else re=(0,N.jsx)(vi.RangePicker,(0,d.Z)((0,d.Z)({ref:n,format:u,bordered:m===void 0?!0:!m},h),{},{value:D}));return v?v(r,(0,d.Z)({mode:l},h),re):re}return null},Um=o.forwardRef(Km),Ym=o.forwardRef(km),Xm=function(t){var e=o.useRef({valueLabels:new Map});return o.useMemo(function(){var n=e.current.valueLabels,r=new Map,a=t.map(function(i){var l,s=i.value,u=(l=i.label)!==null&&l!==void 0?l:n.get(s);return r.set(s,u),(0,d.Z)((0,d.Z)({},i),{},{label:u})});return e.current.valueLabels=r,[a]},[t])},Gm=function(t,e,n,r){return o.useMemo(function(){var a=t.map(function(u){var f=u.value;return f}),i=e.map(function(u){var f=u.value;return f}),l=a.filter(function(u){return!r[u]});if(n){var s=(0,te.S)(a,!0,r);a=s.checkedKeys,i=s.halfCheckedKeys}return[Array.from(new Set([].concat((0,ce.Z)(l),(0,ce.Z)(a)))),i]},[t,e,n,r])},Jm=function(t,e){return o.useMemo(function(){var n=(0,$e.I8)(t,{fieldNames:e,initWrapper:function(a){return(0,d.Z)((0,d.Z)({},a),{},{valueEntities:new Map})},processEntity:function(a,i){var l=a.node[e.value];if(!1)var s;i.valueEntities.set(l,a)}});return n},[t,e])},Qm=function(){return null},mi=Qm,_m=["children","value"];function as(t){return(0,Ho.Z)(t).map(function(e){if(!o.isValidElement(e)||!e.type)return null;var n=e,r=n.key,a=n.props,i=a.children,l=a.value,s=(0,E.Z)(a,_m),u=(0,d.Z)({key:r,value:l},s),f=as(i);return f.length&&(u.children=f),u}).filter(function(e){return e})}function hi(t){if(!t)return t;var e=(0,d.Z)({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,Ue.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),e}}),e}function qm(t,e,n,r,a,i){var l=null,s=null;function u(){function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return v.map(function(g,p){var y="".concat(m,"-").concat(p),C=g[i.value],x=n.includes(C),b=f(g[i.children]||[],y,x),I=o.createElement(mi,g,b.map(function(P){return P.node}));if(e===C&&(l=I),x){var $={pos:y,node:I,children:b};return h||s.push($),$}return null}).filter(function(g){return g})}s||(s=[],f(r),s.sort(function(v,m){var h=v.node.props.value,g=m.node.props.value,p=n.indexOf(h),y=n.indexOf(g);return p-y}))}Object.defineProperty(t,"triggerNode",{get:function(){return(0,Ue.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),l}}),Object.defineProperty(t,"allCheckedNodes",{get:function(){return(0,Ue.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),a?s:s.map(function(v){var m=v.node;return m})}})}var eh=function(t,e,n){var r=n.treeNodeFilterProp,a=n.filterTreeNode,i=n.fieldNames,l=i.children;return o.useMemo(function(){if(!e||a===!1)return t;var s;if(typeof a=="function")s=a;else{var u=e.toUpperCase();s=function(m,h){var g=h[r];return String(g).toUpperCase().includes(u)}}function f(v){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return v.reduce(function(h,g){var p=g[l],y=m||s(e,hi(g)),C=f(p||[],y);return(y||C.length)&&h.push((0,d.Z)((0,d.Z)({},g),{},(0,Z.Z)({isLeaf:void 0},l,C))),h},[])}return f(t)},[t,e,l,r,a])};function os(t){var e=o.useRef();e.current=t;var n=o.useCallback(function(){return e.current.apply(e,arguments)},[]);return n}function th(t,e){var n=e.id,r=e.pId,a=e.rootPId,i={},l=[],s=t.map(function(u){var f=(0,d.Z)({},u),v=f[n];return i[v]=f,f.key=f.key||v,f});return s.forEach(function(u){var f=u[r],v=i[f];v&&(v.children=v.children||[],v.children.push(u)),(f===a||!v&&a===null)&&l.push(u)}),l}function nh(t,e,n){return o.useMemo(function(){return t?n?th(t,(0,d.Z)({id:"id",pId:"pId",rootPId:null},n!==!0?n:{})):t:as(e)},[e,n,t])}var rh=o.createContext(null),is=rh,ah=c(23398),oh=c(8793),ih=o.createContext(null),ls=ih;function lh(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}function sh(t){var e=t||{},n=e.label,r=e.value,a=e.children,i=r||"value";return{_title:n?[n]:["title","label"],value:i,key:i,children:a||"children"}}function gi(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1}function uh(t,e){var n=[];function r(a){a.forEach(function(i){var l=i[e.children];l&&(n.push(i[e.value]),r(l))})}return r(t),n}function ss(t){return t==null}var ch={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},dh=function(e,n){var r=(0,Zt.lk)(),a=r.prefixCls,i=r.multiple,l=r.searchValue,s=r.toggleOpen,u=r.open,f=r.notFoundContent,v=o.useContext(ls),m=v.virtual,h=v.listHeight,g=v.listItemHeight,p=v.listItemScrollOffset,y=v.treeData,C=v.fieldNames,x=v.onSelect,b=v.dropdownMatchSelectWidth,I=v.treeExpandAction,$=o.useContext(is),P=$.checkable,M=$.checkedKeys,A=$.halfCheckedKeys,j=$.treeExpandedKeys,F=$.treeDefaultExpandAll,U=$.treeDefaultExpandedKeys,z=$.onTreeExpand,D=$.treeIcon,re=$.showTreeIcon,Q=$.switcherIcon,ie=$.treeLine,le=$.treeNodeFilterProp,se=$.loadData,_=$.treeLoadedKeys,de=$.treeMotion,ye=$.onTreeLoad,Te=$.keyEntities,Ne=o.useRef(),Ae=(0,ah.Z)(function(){return y},[u,y],function(sn,st){return st[0]&&sn[1]!==st[1]}),gt=o.useState(null),Le=(0,O.Z)(gt,2),bt=Le[0],at=Le[1],Ce=Te[bt],ze=o.useMemo(function(){return P?{checked:M,halfChecked:A}:null},[P,M,A]);o.useEffect(function(){if(u&&!i&&M.length){var sn;(sn=Ne.current)===null||sn===void 0||sn.scrollTo({key:M[0]}),at(M[0])}},[u]);var Vt=String(l).toLowerCase(),Nt=function(st){return Vt?String(st[le]).toLowerCase().includes(Vt):!1},ut=o.useState(U),He=(0,O.Z)(ut,2),ot=He[0],ft=He[1],lt=o.useState(null),vt=(0,O.Z)(lt,2),Ht=vt[0],qt=vt[1],Ft=o.useMemo(function(){return j?(0,ce.Z)(j):l?Ht:ot},[ot,Ht,j,l]);o.useEffect(function(){l&&qt(uh(y,C))},[l]);var fn=function(st){ft(st),qt(st),z&&z(st)},vn=function(st){st.preventDefault()},wn=function(st,xt){var Gt=xt.node;P&&gi(Gt)||(x(Gt.key,{selected:!M.includes(Gt.key)}),i||s(!1))};if(o.useImperativeHandle(n,function(){var sn;return{scrollTo:(sn=Ne.current)===null||sn===void 0?void 0:sn.scrollTo,onKeyDown:function(xt){var Gt,Wt=xt.which;switch(Wt){case Se.Z.UP:case Se.Z.DOWN:case Se.Z.LEFT:case Se.Z.RIGHT:(Gt=Ne.current)===null||Gt===void 0||Gt.onKeyDown(xt);break;case Se.Z.ENTER:{if(Ce){var Ut=(Ce==null?void 0:Ce.node)||{},Sn=Ut.selectable,Nn=Ut.value;Sn!==!1&&wn(null,{node:{key:bt},selected:!M.includes(Nn)})}break}case Se.Z.ESC:s(!1)}},onKeyUp:function(){}}}),Ae.length===0)return o.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:vn},f);var Zn={fieldNames:C};return _&&(Zn.loadedKeys=_),Ft&&(Zn.expandedKeys=Ft),o.createElement("div",{onMouseDown:vn},Ce&&u&&o.createElement("span",{style:ch,"aria-live":"assertive"},Ce.node.value),o.createElement(oh.Z,(0,oe.Z)({ref:Ne,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:Ae,height:h,itemHeight:g,itemScrollOffset:p,virtual:m!==!1&&b!==!1,multiple:i,icon:D,showIcon:re,switcherIcon:Q,showLine:ie,loadData:l?null:se,motion:de,activeKey:bt,checkable:P,checkStrictly:!0,checkedKeys:ze,selectedKeys:P?[]:M,defaultExpandAll:F},Zn,{onActiveChange:at,onSelect:wn,onCheck:wn,onExpand:fn,onLoad:ye,filterTreeNode:Nt,expandAction:I})))},us=o.forwardRef(dh);us.displayName="OptionList";var fh=us,pi="SHOW_ALL",bi="SHOW_PARENT",Po="SHOW_CHILD";function cs(t,e,n,r){var a=new Set(t);return e===Po?t.filter(function(i){var l=n[i];return!(l&&l.children&&l.children.some(function(s){var u=s.node;return a.has(u[r.value])})&&l.children.every(function(s){var u=s.node;return gi(u)||a.has(u[r.value])}))}):e===bi?t.filter(function(i){var l=n[i],s=l?l.parent:null;return!(s&&!gi(s.node)&&a.has(s.key))}):t}function jg(t){var e=t.searchPlaceholder,n=t.treeCheckStrictly,r=t.treeCheckable,a=t.labelInValue,i=t.value,l=t.multiple;warning(!e,"`searchPlaceholder` has been removed."),n&&a===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(a||n)&&warning(toArray(i).every(function(s){return s&&_typeof(s)==="object"&&"value"in s}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),n||l||r?warning(!i||Array.isArray(i),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(i),"`value` should not be array when `TreeSelect` is single mode.")}var Dg=null,vh=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function mh(t){return!t||(0,R.Z)(t)!=="object"}var hh=o.forwardRef(function(t,e){var n=t.id,r=t.prefixCls,a=r===void 0?"rc-tree-select":r,i=t.value,l=t.defaultValue,s=t.onChange,u=t.onSelect,f=t.onDeselect,v=t.searchValue,m=t.inputValue,h=t.onSearch,g=t.autoClearSearchValue,p=g===void 0?!0:g,y=t.filterTreeNode,C=t.treeNodeFilterProp,x=C===void 0?"value":C,b=t.showCheckedStrategy,I=t.treeNodeLabelProp,$=t.multiple,P=t.treeCheckable,M=t.treeCheckStrictly,A=t.labelInValue,j=t.fieldNames,F=t.treeDataSimpleMode,U=t.treeData,z=t.children,D=t.loadData,re=t.treeLoadedKeys,Q=t.onTreeLoad,ie=t.treeDefaultExpandAll,le=t.treeExpandedKeys,se=t.treeDefaultExpandedKeys,_=t.onTreeExpand,de=t.treeExpandAction,ye=t.virtual,Te=t.listHeight,Ne=Te===void 0?200:Te,Ae=t.listItemHeight,gt=Ae===void 0?20:Ae,Le=t.listItemScrollOffset,bt=Le===void 0?0:Le,at=t.onDropdownVisibleChange,Ce=t.dropdownMatchSelectWidth,ze=Ce===void 0?!0:Ce,Vt=t.treeLine,Nt=t.treeIcon,ut=t.showTreeIcon,He=t.switcherIcon,ot=t.treeMotion,ft=(0,E.Z)(t,vh),lt=(0,dn.ZP)(n),vt=P&&!M,Ht=P||M,qt=M||A,Ft=Ht||$,fn=(0,nt.Z)(l,{value:i}),vn=(0,O.Z)(fn,2),wn=vn[0],Zn=vn[1],sn=o.useMemo(function(){return P?b||Po:pi},[b,P]),st=o.useMemo(function(){return sh(j)},[JSON.stringify(j)]),xt=(0,nt.Z)("",{value:v!==void 0?v:m,postState:function(tt){return tt||""}}),Gt=(0,O.Z)(xt,2),Wt=Gt[0],Ut=Gt[1],Sn=function(tt){Ut(tt),h==null||h(tt)},Nn=nh(U,z,F),Ln=Jm(Nn,st),Dn=Ln.keyEntities,kn=Ln.valueEntities,Jn=o.useCallback(function(wt){var tt=[],en=[];return wt.forEach(function(un){kn.has(un)?en.push(un):tt.push(un)}),{missingRawValues:tt,existRawValues:en}},[kn]),Tn=eh(Nn,Wt,{fieldNames:st,treeNodeFilterProp:x,filterTreeNode:y}),On=o.useCallback(function(wt){if(wt){if(I)return wt[I];for(var tt=st._title,en=0;en{const{componentCls:e,treePrefixCls:n,colorBgElevated:r}=t,a=`.${n}`;return[{[`${e}-dropdown`]:[{padding:`${(0,Qe.bf)(t.paddingXS)} ${(0,Qe.bf)(t.calc(t.paddingXS).div(2).equal())}`},(0,ds.Yk)(n,(0,Zr.TS)(t,{colorBgContainer:r})),{[a]:{borderRadius:0,[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-treenode`]:{[`${a}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Un.C2)(`${n}-checkbox`,t),{"&-rtl":{direction:"rtl",[`${a}-switcher${a}-switcher_close`]:{[`${a}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},Tg=null;function Ch(t,e,n){return(0,Pn.I$)("TreeSelect",r=>{const a=(0,Zr.TS)(r,{treePrefixCls:e});return[yh(a)]},ds.TM)(t,n)}var xh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{var n,r,{prefixCls:a,size:i,disabled:l,bordered:s=!0,className:u,rootClassName:f,treeCheckable:v,multiple:m,listHeight:h=256,listItemHeight:g=26,placement:p,notFoundContent:y,switcherIcon:C,treeLine:x,getPopupContainer:b,popupClassName:I,dropdownClassName:$,treeIcon:P=!1,transitionName:M,choiceTransitionName:A="",status:j,treeExpandAction:F,builtinPlacements:U,dropdownMatchSelectWidth:z,popupMatchSelectWidth:D,allowClear:re}=t,Q=xh(t,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:ie,getPrefixCls:le,renderEmpty:se,direction:_,virtual:de,popupMatchSelectWidth:ye,popupOverflow:Te}=o.useContext(Xt.E_),Ne=le(),Ae=le("select",a),gt=le("select-tree",a),Le=le("tree-select",a),{compactSize:bt,compactItemClassnames:at}=(0,Lt.ri)(Ae,_),Ce=(0,pn.Z)(Ae),ze=(0,pn.Z)(Le),[Vt,Nt]=(0,cn.Z)(Ae,Ce),[ut]=Ch(Le,gt,ze),He=W()(I||$,`${Le}-dropdown`,{[`${Le}-dropdown-rtl`]:_==="rtl"},f,Ce,ze,Nt),ot=!!(v||m),ft=(0,Yn.Z)(Q.suffixIcon,Q.showArrow),lt=(n=D!=null?D:z)!==null&&n!==void 0?n:ye,{status:vt,hasFeedback:Ht,isFormItemInput:qt,feedbackIcon:Ft}=o.useContext(rn.aM),fn=(0,hn.F)(vt,j),{suffixIcon:vn,removeIcon:wn,clearIcon:Zn}=(0,Bn.Z)(Object.assign(Object.assign({},Q),{multiple:ot,showSuffixIcon:ft,hasFeedback:Ht,feedbackIcon:Ft,prefixCls:Ae,componentName:"TreeSelect"})),sn=re===!0?{clearIcon:Zn}:re;let st;y!==void 0?st=y:st=(se==null?void 0:se("Select"))||o.createElement(on.Z,{componentName:"Select"});const xt=(0,jt.Z)(Q,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Gt=o.useMemo(()=>p!==void 0?p:_==="rtl"?"bottomRight":"bottomLeft",[p,_]),Wt=(0,At.Z)(U,Te),Ut=(0,Rt.Z)(Tn=>{var On;return(On=i!=null?i:bt)!==null&&On!==void 0?On:Tn}),Sn=o.useContext(gn.Z),Nn=l!=null?l:Sn,Ln=W()(!a&&Le,{[`${Ae}-lg`]:Ut==="large",[`${Ae}-sm`]:Ut==="small",[`${Ae}-rtl`]:_==="rtl",[`${Ae}-borderless`]:!s,[`${Ae}-in-form-item`]:qt},(0,hn.Z)(Ae,fn,Ht),at,u,f,Ce,ze,Nt),Dn=Tn=>o.createElement(bh.Z,{prefixCls:gt,switcherIcon:C,treeNodeProps:Tn,showLine:x}),[kn]=(0,$t.Cn)("SelectLike",(r=Q.dropdownStyle)===null||r===void 0?void 0:r.zIndex),Jn=o.createElement(ph,Object.assign({virtual:de,disabled:Nn},xt,{dropdownMatchSelectWidth:lt,builtinPlacements:Wt,ref:e,prefixCls:Ae,className:Ln,listHeight:h,listItemHeight:g,treeCheckable:v&&o.createElement("span",{className:`${Ae}-tree-checkbox-inner`}),treeLine:!!x,suffixIcon:vn,multiple:ot,placement:Gt,removeIcon:wn,allowClear:sn,switcherIcon:Dn,showTreeIcon:P,notFoundContent:st,getPopupContainer:b||ie,treeMotion:null,dropdownClassName:He,dropdownStyle:Object.assign(Object.assign({},Q.dropdownStyle),{zIndex:kn}),choiceTransitionName:(0,Jt.m)(Ne,"",A),transitionName:(0,Jt.m)(Ne,"slide-up",M),treeExpandAction:F}));return Vt(ut(Jn))},ta=o.forwardRef(Sh),Ph=(0,xn.Z)(ta);ta.TreeNode=mi,ta.SHOW_ALL=pi,ta.SHOW_PARENT=bi,ta.SHOW_CHILD=Po,ta._InternalPanelDoNotUseOrYouWillBeFired=Ph;var wh=ta,Zh=["radioType","renderFormItem","mode","light","label","render"],Oh=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],Eh=function(e,n){var r=e.radioType,a=e.renderFormItem,i=e.mode,l=e.light,s=e.label,u=e.render,f=(0,E.Z)(e,Zh),v=(0,o.useContext)(X.ZP.ConfigContext),m=v.getPrefixCls,h=m("pro-field-tree-select"),g=(0,o.useRef)(null),p=(0,o.useState)(!1),y=(0,O.Z)(p,2),C=y[0],x=y[1],b=f.fieldProps,I=b.onSearch,$=b.onClear,P=b.onChange,M=b.onBlur,A=b.showSearch,j=b.autoClearSearchValue,F=b.treeData,U=b.fetchDataOnSearch,z=b.searchValue,D=(0,E.Z)(b,Oh),re=(0,V.YB)(),Q=(0,Vn.aK)((0,d.Z)((0,d.Z)({},f),{},{defaultKeyWords:z})),ie=(0,O.Z)(Q,3),le=ie[0],se=ie[1],_=ie[2],de=(0,nt.Z)(void 0,{onChange:I,value:z}),ye=(0,O.Z)(de,2),Te=ye[0],Ne=ye[1];(0,o.useImperativeHandle)(n,function(){return(0,d.Z)((0,d.Z)({},g.current||{}),{},{fetchData:function(lt){return _(lt)}})});var Ae=(0,o.useMemo)(function(){if(i==="read"){var ft=(D==null?void 0:D.fieldNames)||{},lt=ft.value,vt=lt===void 0?"value":lt,Ht=ft.label,qt=Ht===void 0?"label":Ht,Ft=ft.children,fn=Ft===void 0?"children":Ft,vn=new Map,wn=function Zn(sn){if(!(sn!=null&&sn.length))return vn;for(var st=sn.length,xt=0;xt0&&Me!=="read"?(0,Z.jsx)("div",{className:"".concat($e,"-action ").concat(Kt).trim(),children:pn}):null,rn={name:Bt.name,field:Re,index:Oe,record:Pe==null||(De=Pe.getFieldValue)===null||De===void 0?void 0:De.call(Pe,[_t.listName,xe,Re.name].filter(function(Lt){return Lt!==void 0}).flat(1)),fields:me,operation:_e,meta:be},cn=(0,ve.zx)(),At=cn.grid,Bn=(Y==null?void 0:Y(hn,rn))||hn,Yn=(Be==null?void 0:Be({listDom:(0,Z.jsx)("div",{className:"".concat($e,"-container ").concat(qe||""," ").concat(Kt||"").trim(),style:(0,E.Z)({width:At?"100%":void 0},je),children:Bn}),action:Rt},rn))||(0,Z.jsxs)("div",{className:"".concat($e,"-item ").concat(Kt,` + `).concat(Mt===void 0&&"".concat($e,"-item-default"),` + `).concat(Mt?"".concat($e,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,Z.jsx)("div",{className:"".concat($e,"-container ").concat(qe||""," ").concat(Kt).trim(),style:(0,E.Z)({width:At?"100%":void 0},je),children:Bn}),Rt]});return(0,Z.jsx)(ue.Provider,{value:(0,E.Z)((0,E.Z)({},Re),{},{listName:[_t.listName,xe,Re.name].filter(function(Lt){return Lt!==void 0}).flat(1)}),children:Yn})},Xe=function(G){var De=(0,k.YB)(),pt=G.creatorButtonProps,Ct=G.prefixCls,rt=G.children,Y=G.creatorRecord,Be=G.action,Mt=G.fields,$e=G.actionGuard,Ve=G.max,_e=G.fieldExtraRender,Ue=G.meta,tn=G.containerClassName,te=G.containerStyle,me=G.onAfterAdd,be=G.onAfterRemove,Re=(0,O.useContext)(k.L_),Oe=Re.hashId,Pe=(0,O.useRef)(new Map),xe=(0,O.useState)(!1),qe=(0,X.Z)(xe,2),je=qe[0],Se=qe[1],kt=(0,O.useMemo)(function(){return Mt.map(function(it){var We,Me;if(!((We=Pe.current)!==null&&We!==void 0&&We.has(it.key.toString()))){var Ze;(Ze=Pe.current)===null||Ze===void 0||Ze.set(it.key.toString(),(0,Ke.x)())}var fe=(Me=Pe.current)===null||Me===void 0?void 0:Me.get(it.key.toString());return(0,E.Z)((0,E.Z)({},it),{},{uuid:fe})})},[Mt]),Et=(0,O.useMemo)(function(){var it=(0,E.Z)({},Be),We=kt.length;return $e!=null&&$e.beforeAddRow?it.add=(0,K.Z)((0,w.Z)().mark(function Me(){var Ze,fe,he,we,ke,Ot=arguments;return(0,w.Z)().wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:for(Ze=Ot.length,fe=new Array(Ze),he=0;he0&&arguments[0]!==void 0?arguments[0]:{},W=Ke.children,oe=Ke.Wrapper,Zt=(0,R.Z)(Ke,T);return w?(0,J.jsx)(V.Z,(0,E.Z)((0,E.Z)((0,E.Z)({gutter:8},K),Zt),{},{children:W})):oe?(0,J.jsx)(oe,{children:W}):W},ColWrapper:function(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},W=Ke.children,oe=Ke.Wrapper,Zt=(0,R.Z)(Ke,B),dn=(0,k.useMemo)(function(){var St=(0,E.Z)((0,E.Z)({},X),Zt);return typeof St.span=="undefined"&&typeof St.xs=="undefined"&&(St.xs=24),St},[Zt]);return w?(0,J.jsx)(H.Z,(0,E.Z)((0,E.Z)({},dn),{},{children:W})):oe?(0,J.jsx)(oe,{children:W}):W}}},o=function(ve){var w=(0,k.useMemo)(function(){return(0,d.Z)(ve)==="object"?ve:{grid:ve}},[ve]),K=(0,k.useContext)(ee),X=K.grid,ce=K.colProps;return(0,k.useMemo)(function(){return ae({grid:!!(X||w.grid),rowProps:w==null?void 0:w.rowProps,colProps:(w==null?void 0:w.colProps)||ce,Wrapper:w==null?void 0:w.Wrapper})},[w==null?void 0:w.Wrapper,w.grid,X,JSON.stringify([ce,w==null?void 0:w.colProps,w==null?void 0:w.rowProps])])}},46360:function(ge,q,c){"use strict";c.d(q,{Q:function(){return w}});var d=c(6346),E=c(96032),R=c(13795),V=c(56671),H=c(89543),k=c(68591),J=c.n(k),T=c(79685),B=c(93264),ee=c(33298),ae=function(X){var ce,Ke,W,oe;return(0,d.Z)({},X.componentCls,(oe={display:"inline-flex",gap:X.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:X.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:X.colorBgTextHover},"&-active":(0,d.Z)({paddingBlock:0,paddingInline:8,backgroundColor:X.colorBgTextHover},"&".concat(X.componentCls,"-allow-clear:hover:not(").concat(X.componentCls,"-disabled)"),(ce={},(0,d.Z)(ce,"".concat(X.componentCls,"-arrow"),{display:"none"}),(0,d.Z)(ce,"".concat(X.componentCls,"-close"),{display:"inline-flex"}),ce))},(0,d.Z)(oe,"".concat(X.antCls,"-select"),(0,d.Z)({},"".concat(X.antCls,"-select-clear"),{borderRadius:"50%"})),(0,d.Z)(oe,"".concat(X.antCls,"-picker"),(0,d.Z)({},"".concat(X.antCls,"-picker-clear"),{borderRadius:"50%"})),(0,d.Z)(oe,"&-icon",(Ke={color:X.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},(0,d.Z)(Ke,"&".concat(X.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:X.colorTextPlaceholder,borderRadius:"50%"}),(0,d.Z)(Ke,"&:hover",{color:X.colorIconHover}),Ke)),(0,d.Z)(oe,"&-disabled",(0,d.Z)({color:X.colorTextPlaceholder,cursor:"not-allowed"},"".concat(X.componentCls,"-icon"),{color:X.colorTextPlaceholder})),(0,d.Z)(oe,"&-small",(W={height:"24px",paddingBlock:0,paddingInline:4,fontSize:X.fontSizeSM,lineHeight:"24px"},(0,d.Z)(W,"&".concat(X.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),(0,d.Z)(W,"".concat(X.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),(0,d.Z)(W,"".concat(X.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"}),W)),(0,d.Z)(oe,"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(X.lineWidth,"px solid ").concat(X.colorBorder),borderRadius:"@border-radius-base"}),(0,d.Z)(oe,"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),(0,d.Z)(oe,"&-bordered&-active",{backgroundColor:X.colorBgContainer}),oe))};function o(K){return(0,ee.Xj)("FieldLabel",function(X){var ce=(0,B.Z)((0,B.Z)({},X),{},{componentCls:".".concat(K)});return[ae(ce)]})}var O=c(63342),ve=function(X,ce){var Ke,W,oe,Zt,dn=X.label,St=X.onClear,nt=X.value,an=X.disabled,mt=X.onLabelClick,Z=X.ellipsis,Ee=X.placeholder,Pt=X.className,yt=X.formatter,Xe=X.bordered,pe=X.style,ht=X.downIcon,Tt=X.allowClear,zt=Tt===void 0?!0:Tt,Dt=X.valueMaxLength,ue=Dt===void 0?41:Dt,Ge=(H.ZP===null||H.ZP===void 0||(Ke=H.ZP.useConfig)===null||Ke===void 0?void 0:Ke.call(H.ZP))||{componentSize:"middle"},Ie=Ge.componentSize,G=Ie,De=(0,T.useContext)(H.ZP.ConfigContext),pt=De.getPrefixCls,Ct=pt("pro-core-field-label"),rt=o(Ct),Y=rt.wrapSSR,Be=rt.hashId,Mt=(0,V.YB)(),$e=(0,T.useRef)(null),Ve=(0,T.useRef)(null);(0,T.useImperativeHandle)(ce,function(){return{labelRef:Ve,clearRef:$e}});var _e=function(me){return me.every(function(be){return typeof be=="string"})?me.join(","):me.map(function(be,Re){var Oe=Re===me.length-1?"":",";return typeof be=="string"?(0,O.jsxs)("span",{children:[be,Oe]},Re):(0,O.jsxs)("span",{style:{display:"flex"},children:[be,Oe]},Re)})},Ue=function(me){return yt?yt(me):Array.isArray(me)?_e(me):me},tn=function(me,be){if(be!=null&&be!==""&&(!Array.isArray(be)||be.length)){var Re,Oe,Pe=me?(0,O.jsxs)("span",{onClick:function(){mt==null||mt()},className:"".concat(Ct,"-text"),children:[me,": "]}):"",xe=Ue(be);if(!Z)return(0,O.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[Pe,Ue(be)]});var qe=function(){var kt=Array.isArray(be)&&be.length>1,Et=Mt.getMessage("form.lightFilter.itemUnit","\u9879");return typeof xe=="string"&&xe.length>ue&&kt?"...".concat(be.length).concat(Et):""},je=qe();return(0,O.jsxs)("span",{title:typeof xe=="string"?xe:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Pe,(0,O.jsx)("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof xe=="string"?xe==null||(Re=xe.toString())===null||Re===void 0||(Oe=Re.substr)===null||Oe===void 0?void 0:Oe.call(Re,0,ue):xe}),je]})}return me||Ee};return Y((0,O.jsxs)("span",{className:J()(Ct,Be,"".concat(Ct,"-").concat((W=(oe=X.size)!==null&&oe!==void 0?oe:G)!==null&&W!==void 0?W:"middle"),(Zt={},(0,d.Z)(Zt,"".concat(Ct,"-active"),!!nt||nt===0),(0,d.Z)(Zt,"".concat(Ct,"-disabled"),an),(0,d.Z)(Zt,"".concat(Ct,"-bordered"),Xe),(0,d.Z)(Zt,"".concat(Ct,"-allow-clear"),zt),Zt),Pt),style:pe,ref:Ve,onClick:function(){var me;X==null||(me=X.onClick)===null||me===void 0||me.call(X)},children:[tn(dn,nt),(nt||nt===0)&&zt&&(0,O.jsx)(E.Z,{role:"button",title:Mt.getMessage("form.lightFilter.clear","\u6E05\u9664"),className:J()("".concat(Ct,"-icon"),Be,"".concat(Ct,"-close")),onClick:function(me){an||St==null||St(),me.stopPropagation()},ref:$e}),ht!==!1?ht!=null?ht:(0,O.jsx)(R.Z,{className:J()("".concat(Ct,"-icon"),Be,"".concat(Ct,"-arrow"))}):null]}))},w=T.forwardRef(ve)},29288:function(ge,q,c){"use strict";c.d(q,{M:function(){return ce}});var d=c(93264),E=c(6346),R=c(89543),V=c(8262),H=c(79685),k=c(56671),J=c(10951),T=c(68591),B=c.n(T),ee=c(33298),ae=function(W){return(0,E.Z)({},W.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(W.colorSplit)})};function o(Ke){return(0,ee.Xj)("DropdownFooter",function(W){var oe=(0,d.Z)((0,d.Z)({},W),{},{componentCls:".".concat(Ke)});return[ae(oe)]})}var O=c(63342),ve=function(W){var oe=(0,k.YB)(),Zt=W.onClear,dn=W.onConfirm,St=W.disabled,nt=W.footerRender,an=(0,H.useContext)(R.ZP.ConfigContext),mt=an.getPrefixCls,Z=mt("pro-core-dropdown-footer"),Ee=o(Z),Pt=Ee.wrapSSR,yt=Ee.hashId,Xe=[(0,O.jsx)(J.ZP,{style:{visibility:Zt?"visible":"hidden"},type:"link",size:"small",disabled:St,onClick:function(Tt){Zt&&Zt(Tt),Tt.stopPropagation()},children:oe.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,O.jsx)(J.ZP,{"data-type":"confirm",type:"primary",size:"small",onClick:dn,disabled:St,children:oe.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(nt===!1||(nt==null?void 0:nt(dn,Zt))===!1)return null;var pe=(nt==null?void 0:nt(dn,Zt))||Xe;return Pt((0,O.jsx)("div",{className:B()(Z,yt),onClick:function(Tt){return Tt.target.getAttribute("data-type")!=="confirm"&&Tt.stopPropagation()},children:pe}))},w=c(74454),K=function(W){var oe;return oe={},(0,E.Z)(oe,"".concat(W.componentCls,"-label"),{cursor:"pointer"}),(0,E.Z)(oe,"".concat(W.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),(0,E.Z)(oe,"".concat(W.componentCls,"-content"),{paddingBlock:16,paddingInline:16}),oe};function X(Ke){return(0,ee.Xj)("FilterDropdown",function(W){var oe=(0,d.Z)((0,d.Z)({},W),{},{componentCls:".".concat(Ke)});return[K(oe)]})}var ce=function(W){var oe,Zt=W.children,dn=W.label,St=W.footer,nt=W.open,an=W.onOpenChange,mt=W.disabled,Z=W.onVisibleChange,Ee=W.visible,Pt=W.footerRender,yt=W.placement,Xe=(0,H.useContext)(R.ZP.ConfigContext),pe=Xe.getPrefixCls,ht=pe("pro-core-field-dropdown"),Tt=X(ht),zt=Tt.wrapSSR,Dt=Tt.hashId,ue=(0,w.X)(nt||Ee||!1,an||Z),Ge=(0,H.useRef)(null);return zt((0,O.jsx)(V.Z,(0,d.Z)((0,d.Z)({placement:yt,trigger:["click"]},ue),{},{overlayInnerStyle:{padding:0},content:(0,O.jsxs)("div",{ref:Ge,className:B()("".concat(ht,"-overlay"),(oe={},(0,E.Z)(oe,"".concat(ht,"-overlay-").concat(yt),yt),(0,E.Z)(oe,"hashId",Dt),oe)),children:[(0,O.jsx)(R.ZP,{getPopupContainer:function(){return Ge.current||document.body},children:(0,O.jsx)("div",{className:"".concat(ht,"-content ").concat(Dt).trim(),children:Zt})}),St&&(0,O.jsx)(ve,(0,d.Z)({disabled:mt,footerRender:Pt},St))]}),children:(0,O.jsx)("span",{className:"".concat(ht,"-label ").concat(Dt).trim(),children:dn})})))}},14434:function(ge,q,c){"use strict";c.d(q,{J:function(){return E}});var d=c(79685),E=d.createContext({})},34836:function(ge,q,c){"use strict";c.d(q,{Cl:function(){return T},lp:function(){return O}});var d=c(63195),E=c(50510),R=c.n(E),V=c(67839),H=c.n(V),k=c(85540),J=c(13990);R().extend(H());var T={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function B(ve){return Object.prototype.toString.call(ve)==="[object Object]"}function ee(ve){if(B(ve)===!1)return!1;var w=ve.constructor;if(w===void 0)return!0;var K=w.prototype;return!(B(K)===!1||K.hasOwnProperty("isPrototypeOf")===!1)}var ae=function(w){return!!(w!=null&&w._isAMomentObject)},o=function(w,K,X){if(!K)return w;if(R().isDayjs(w)||ae(w)){if(K==="number")return w.valueOf();if(K==="string")return w.format(T[X]||"YYYY-MM-DD HH:mm:ss");if(typeof K=="string"&&K!=="string")return w.format(K);if(typeof K=="function")return K(w,X)}return w},O=function ve(w,K,X,ce,Ke){var W={};return typeof window=="undefined"||(0,d.Z)(w)!=="object"||(0,J.k)(w)||w instanceof Blob||Array.isArray(w)?w:(Object.keys(w).forEach(function(oe){var Zt=Ke?[Ke,oe].flat(1):[oe],dn=(0,k.Z)(X,Zt)||"text",St="text",nt;typeof dn=="string"?St=dn:dn&&(St=dn.valueType,nt=dn.dateFormat);var an=w[oe];if(!((0,J.k)(an)&&ce)){if(ee(an)&&!Array.isArray(an)&&!R().isDayjs(an)&&!ae(an)){W[oe]=ve(an,K,X,ce,[oe]);return}if(Array.isArray(an)){W[oe]=an.map(function(mt,Z){return R().isDayjs(mt)||ae(mt)?o(mt,nt||K,St):ve(mt,K,X,ce,[oe,"".concat(Z)].flat(1))});return}W[oe]=o(an,nt||K,St)}}),W)}},82481:function(ge,q,c){"use strict";c.d(q,{c:function(){return H}});var d=c(89342),E=c(50510),R=c.n(E),V=function(J,T){return typeof T=="function"?T(R()(J)):R()(J).format(T)},H=function(J,T){var B=Array.isArray(J)?J:[],ee=(0,d.Z)(B,2),ae=ee[0],o=ee[1],O,ve;Array.isArray(T)?(O=T[0],ve=T[1]):(O=T,ve=T);var w=ae?V(ae,O):"",K=o?V(o,ve):"",X=w&&K?"".concat(w," ~ ").concat(K):"";return X}},45557:function(ge,q,c){"use strict";c.d(q,{D:function(){return H}});var d=c(7623),E=c(64632),R=c(79685),V=c(5745);function H(k,J){var T=(0,V.J)(k),B=(0,R.useRef)(),ee=(0,R.useCallback)(function(){B.current&&(clearTimeout(B.current),B.current=null)},[]),ae=(0,R.useCallback)((0,E.Z)((0,d.Z)().mark(function o(){var O,ve,w,K=arguments;return(0,d.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:for(O=K.length,ve=new Array(O),w=0;w0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window=="undefined"||!window.crypto)return(d+=1).toFixed(0);for(var k="",J=crypto.getRandomValues(new Uint8Array(H));H--;){var T=63&J[H];k+=T<36?T.toString(36):T<62?(T-26).toString(36).toUpperCase():T<63?"_":"-"}return k},R=function(){return typeof window=="undefined"?E():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():E()}},84718:function(ge,q,c){"use strict";c.d(q,{MP:function(){return ee},R6:function(){return T}});var d=c(63195),E=c(6774),R=c(27097),V=c(79685),H=c(63342);function k(ae){var o=Object.prototype.toString.call(ae).match(/^\[object (.*)\]$/)[1].toLowerCase();return o==="string"&&(0,d.Z)(ae)==="object"?"object":ae===null?"null":ae===void 0?"undefined":o}var J=function(o){var O=o.color,ve=o.children;return(0,H.jsx)(E.Z,{color:O,text:ve})},T=function(o){return k(o)==="map"?o:new Map(Object.entries(o||{}))},B={Success:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"success",text:O})},Error:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"error",text:O})},Default:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"default",text:O})},Processing:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"processing",text:O})},Warning:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"warning",text:O})},success:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"success",text:O})},error:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"error",text:O})},default:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"default",text:O})},processing:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"processing",text:O})},warning:function(o){var O=o.children;return(0,H.jsx)(E.Z,{status:"warning",text:O})}},ee=function ae(o,O,ve){if(Array.isArray(o))return(0,H.jsx)(R.Z,{split:",",size:2,wrap:!0,children:o.map(function(W,oe){return ae(W,O,oe)})},ve);var w=T(O);if(!w.has(o)&&!w.has("".concat(o)))return(o==null?void 0:o.label)||o;var K=w.get(o)||w.get("".concat(o));if(!K)return(0,H.jsx)(V.Fragment,{children:(o==null?void 0:o.label)||o},ve);var X=K.status,ce=K.color,Ke=B[X||"Init"];return Ke?(0,H.jsx)(Ke,{children:K.text},ve):ce?(0,H.jsx)(J,{color:ce,children:K.text},ve):(0,H.jsx)(V.Fragment,{children:K.text||K},ve)}},92879:function(ge,q,c){"use strict";c.d(q,{h:function(){return d}});function d(E){if(typeof E=="function"){for(var R=arguments.length,V=new Array(R>1?R-1:0),H=1;H4&&(ee+=7),B.add(ee,q));return ae.diff(o,"week")+1},V.isoWeekday=function(k){return this.$utils().u(k)?this.day()||7:this.day(this.day()%7?k:k-7)};var H=V.startOf;V.startOf=function(k,J){var T=this.$utils(),B=!!T.u(J)||J;return T.p(k)==="isoweek"?B?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):H.bind(this)(k,J)}}})},67839:function(ge){(function(q,c){ge.exports=c()})(this,function(){"use strict";var q="month",c="quarter";return function(d,E){var R=E.prototype;R.quarter=function(k){return this.$utils().u(k)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(k-1))};var V=R.add;R.add=function(k,J){return k=Number(k),this.$utils().p(J)===c?this.add(3*k,q):V.bind(this)(k,J)};var H=R.startOf;R.startOf=function(k,J){var T=this.$utils(),B=!!T.u(J)||J;if(T.p(k)===c){var ee=this.quarter()-1;return B?this.month(3*ee).startOf(q).startOf("day"):this.month(3*ee+2).endOf(q).endOf("day")}return H.bind(this)(k,J)}}})},96300:function(ge){(function(q,c){ge.exports=c()})(this,function(){"use strict";return function(q,c,d){q=q||{};var E=c.prototype,R={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function V(k,J,T,B){return E.fromToBase(k,J,T,B)}d.en.relativeTime=R,E.fromToBase=function(k,J,T,B,ee){for(var ae,o,O,ve=T.$locale().relativeTime||R,w=q.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],K=w.length,X=0;X0,Ke<=ce.r||!ce.r){Ke<=1&&X>0&&(ce=w[X-1]);var W=ve[ce.l];ee&&(Ke=ee(""+Ke)),o=typeof W=="string"?W.replace("%d",Ke):W(Ke,J,ce.l,O);break}}if(J)return o;var oe=O?ve.future:ve.past;return typeof oe=="function"?oe(o):oe.replace("%s",o)},E.to=function(k,J){return V(k,J,this,!0)},E.from=function(k,J){return V(k,J,this)};var H=function(k){return k.$u?d.utc():d()};E.toNow=function(k){return this.to(H(this),k)},E.fromNow=function(k){return this.from(H(this),k)}}})},25239:function(ge,q,c){ge=c.nmd(ge);var d=200,E="__lodash_hash_undefined__",R=800,V=16,H=9007199254740991,k="[object Arguments]",J="[object Array]",T="[object AsyncFunction]",B="[object Boolean]",ee="[object Date]",ae="[object Error]",o="[object Function]",O="[object GeneratorFunction]",ve="[object Map]",w="[object Number]",K="[object Null]",X="[object Object]",ce="[object Proxy]",Ke="[object RegExp]",W="[object Set]",oe="[object String]",Zt="[object Undefined]",dn="[object WeakMap]",St="[object ArrayBuffer]",nt="[object DataView]",an="[object Float32Array]",mt="[object Float64Array]",Z="[object Int8Array]",Ee="[object Int16Array]",Pt="[object Int32Array]",yt="[object Uint8Array]",Xe="[object Uint8ClampedArray]",pe="[object Uint16Array]",ht="[object Uint32Array]",Tt=/[\\^$.*+?()[\]{}|]/g,zt=/^\[object .+?Constructor\]$/,Dt=/^(?:0|[1-9]\d*)$/,ue={};ue[an]=ue[mt]=ue[Z]=ue[Ee]=ue[Pt]=ue[yt]=ue[Xe]=ue[pe]=ue[ht]=!0,ue[k]=ue[J]=ue[St]=ue[B]=ue[nt]=ue[ee]=ue[ae]=ue[o]=ue[ve]=ue[w]=ue[X]=ue[Ke]=ue[W]=ue[oe]=ue[dn]=!1;var Ge=typeof c.g=="object"&&c.g&&c.g.Object===Object&&c.g,Ie=typeof self=="object"&&self&&self.Object===Object&&self,G=Ge||Ie||Function("return this")(),De=q&&!q.nodeType&&q,pt=De&&!0&&ge&&!ge.nodeType&&ge,Ct=pt&&pt.exports===De,rt=Ct&&Ge.process,Y=function(){try{var S=pt&&pt.require&&pt.require("util").types;return S||rt&&rt.binding&&rt.binding("util")}catch(L){}}(),Be=Y&&Y.isTypedArray;function Mt(S,L,ne){switch(ne.length){case 0:return S.call(L);case 1:return S.call(L,ne[0]);case 2:return S.call(L,ne[0],ne[1]);case 3:return S.call(L,ne[0],ne[1],ne[2])}return S.apply(L,ne)}function $e(S,L){for(var ne=-1,dt=Array(S);++ne-1}function cn(S,L){var ne=this.__data__,dt=fr(ne,S);return dt<0?(++this.size,ne.push([S,L])):ne[dt][1]=L,this}on.prototype.clear=gn,on.prototype.delete=pn,on.prototype.get=Rt,on.prototype.has=rn,on.prototype.set=cn;function At(S){var L=-1,ne=S==null?0:S.length;for(this.clear();++L1?ne[bn-1]:void 0,Fn=bn>2?ne[2]:void 0;for($n=S.length>3&&typeof $n=="function"?(bn--,$n):void 0,Fn&&Kr(ne[0],ne[1],Fn)&&($n=bn<3?void 0:$n,bn=1),L=Object(L);++dt-1&&S%1==0&&S0){if(++L>=R)return arguments[0]}else L=0;return S.apply(void 0,arguments)}}function Qa(S){if(S!=null){try{return Re.call(S)}catch(L){}try{return S+""}catch(L){}}return""}function sa(S,L){return S===L||S!==S&&L!==L}var jr=oa(function(){return arguments}())?oa:function(S){return Ur(S)&&Oe.call(S,"callee")&&!_t.call(S,"callee")},Dr=Array.isArray;function Ia(S){return S!=null&&_a(S.length)&&!Ma(S)}function jo(S){return Ur(S)&&Ia(S)}var mr=Ze||$a;function Ma(S){if(!hr(S))return!1;var L=Er(S);return L==o||L==O||L==T||L==ce}function _a(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=H}function hr(S){var L=typeof S;return S!=null&&(L=="object"||L=="function")}function Ur(S){return S!=null&&typeof S=="object"}function ua(S){if(!Ur(S)||Er(S)!=X)return!1;var L=Cn(S);if(L===null)return!0;var ne=Oe.call(L,"constructor")&&L.constructor;return typeof ne=="function"&&ne instanceof ne&&Re.call(ne)==qe}var qa=Be?Ve(Be):la;function Pr(S){return N(S,eo(S))}function eo(S){return Ia(S)?Un(S,!0):Za(S)}var to=Sr(function(S,L,ne){Fr(S,L,ne)});function no(S){return function(){return S}}function ro(S){return S}function $a(){return!1}ge.exports=to},34418:function(ge){var q=NaN,c="[object Symbol]",d=/^\s+|\s+$/g,E=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,V=/^0o[0-7]+$/i,H=parseInt,k=Object.prototype,J=k.toString;function T(o){var O=typeof o;return!!o&&(O=="object"||O=="function")}function B(o){return!!o&&typeof o=="object"}function ee(o){return typeof o=="symbol"||B(o)&&J.call(o)==c}function ae(o){if(typeof o=="number")return o;if(ee(o))return q;if(T(o)){var O=typeof o.valueOf=="function"?o.valueOf():o;o=T(O)?O+"":O}if(typeof o!="string")return o===0?o:+o;o=o.replace(d,"");var ve=R.test(o);return ve||V.test(o)?H(o.slice(2),ve?2:8):E.test(o)?q:+o}ge.exports=ae},1883:function(ge,q,c){var d=c(40293),E=c(6209),R=E(d);ge.exports=R},40293:function(ge,q,c){var d=c(16197),E=c(97413);function R(V,H){return V&&d(V,H,E)}ge.exports=R},79101:function(ge){function q(c,d){return c!=null&&d in Object(c)}ge.exports=q},42966:function(ge,q,c){var d=c(2927),E=c(26796),R=1,V=2;function H(k,J,T,B){var ee=T.length,ae=ee,o=!B;if(k==null)return!ae;for(k=Object(k);ee--;){var O=T[ee];if(o&&O[2]?O[1]!==k[O[0]]:!(O[0]in k))return!1}for(;++ee1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){J(O,o);function O(){var ve,w,K,X;H(this,O);for(var ce=arguments.length,Ke=Array(ce),W=0;W1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){J(O,o);function O(){var ve,w,K,X;H(this,O);for(var ce=arguments.length,Ke=Array(ce),W=0;W0&&arguments[0]!==void 0?arguments[0]:[],O=[];return(0,T.default)(o,function(ve){Array.isArray(ve)?ae(ve).map(function(w){return O.push(w)}):(0,k.default)(ve)?(0,V.default)(ve,function(w,K){w===!0&&O.push(K),O.push(K+"-"+w)}):(0,E.default)(ve)&&O.push(ve)}),O};q.default=ee},33351:function(ge,q,c){"use strict";var d;d={value:!0},d=d=d=d=d=void 0;var E=c(92485),R=ve(E),V=c(95474),H=ve(V),k=c(47714),J=ve(k),T=c(64907),B=ve(T),ee=c(20532),ae=ve(ee),o=c(86496),O=ve(o);function ve(K){return K&&K.__esModule?K:{default:K}}d=B.default,d=B.default,d=ae.default,d=O.default;var w=d=function(X){for(var ce=arguments.length,Ke=Array(ce>1?ce-1:0),W=1;W1&&arguments[1]!==void 0?arguments[1]:!0;V[J]=T};return E===0&&H("first-child"),E===R-1&&H("last-child"),(E===0||E%2===0)&&H("even"),Math.abs(E%2)===1&&H("odd"),H("nth-child",E),V};q.default=c},95474:function(ge,q,c){"use strict";Object.defineProperty(q,"__esModule",{value:!0}),q.mergeClasses=void 0;var d=c(4252),E=k(d),R=c(70934),V=k(R),H=Object.assign||function(T){for(var B=1;B1&&arguments[1]!==void 0?arguments[1]:[],ae=B.default&&(0,V.default)(B.default)||{};return ee.map(function(o){var O=B[o];return O&&(0,E.default)(O,function(ve,w){ae[w]||(ae[w]={}),ae[w]=H({},ae[w],O[w])}),o}),ae};q.default=J},30962:function(ge,q){"use strict";const{hasOwnProperty:c}=Object.prototype,d=ve();d.configure=ve,d.stringify=d,d.default=d,q.stringify=d,q.configure=ve,ge.exports=d;const E=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function R(w){return w.length<5e3&&!E.test(w)?`"${w}"`:JSON.stringify(w)}function V(w){if(w.length>200)return w.sort();for(let K=1;KX;)w[ce]=w[ce-1],ce--;w[ce]=X}return w}const H=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function k(w){return H.call(w)!==void 0&&w.length!==0}function J(w,K,X){w.length= 1`)}return X===void 0?1/0:X}function ae(w){return w===1?"1 item":`${w} items`}function o(w){const K=new Set;for(const X of w)(typeof X=="string"||typeof X=="number")&&K.add(String(X));return K}function O(w){if(c.call(w,"strict")){const K=w.strict;if(typeof K!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(K)return X=>{let ce=`Object can not safely be stringified. Received type ${typeof X}`;throw typeof X!="function"&&(ce+=` (${X.toString()})`),new Error(ce)}}}function ve(w){w=ms({},w);const K=O(w);K&&(w.bigint===void 0&&(w.bigint=!1),"circularValue"in w||(w.circularValue=Error));const X=T(w),ce=B(w,"bigint"),Ke=B(w,"deterministic"),W=ee(w,"maximumDepth"),oe=ee(w,"maximumBreadth");function Zt(mt,Z,Ee,Pt,yt,Xe){let pe=Z[mt];switch(typeof pe=="object"&&pe!==null&&typeof pe.toJSON=="function"&&(pe=pe.toJSON(mt)),pe=Pt.call(Z,mt,pe),typeof pe){case"string":return R(pe);case"object":{if(pe===null)return"null";if(Ee.indexOf(pe)!==-1)return X;let ht="",Tt=",";const zt=Xe;if(Array.isArray(pe)){if(pe.length===0)return"[]";if(Woe){const rt=pe.length-oe-1;ht+=`${Tt}"... ${ae(rt)} not stringified"`}return yt!==""&&(ht+=` +${zt}`),Ee.pop(),`[${ht}]`}let Dt=Object.keys(pe);const ue=Dt.length;if(ue===0)return"{}";if(Woe){const De=ue-oe;ht+=`${Ie}"...":${Ge}"${ae(De)} not stringified"`,Ie=Tt}return yt!==""&&Ie.length>1&&(ht=` +${Xe}${ht} +${zt}`),Ee.pop(),`{${ht}}`}case"number":return isFinite(pe)?String(pe):K?K(pe):"null";case"boolean":return pe===!0?"true":"false";case"undefined":return;case"bigint":if(ce)return String(pe);default:return K?K(pe):void 0}}function dn(mt,Z,Ee,Pt,yt,Xe){switch(typeof Z=="object"&&Z!==null&&typeof Z.toJSON=="function"&&(Z=Z.toJSON(mt)),typeof Z){case"string":return R(Z);case"object":{if(Z===null)return"null";if(Ee.indexOf(Z)!==-1)return X;const pe=Xe;let ht="",Tt=",";if(Array.isArray(Z)){if(Z.length===0)return"[]";if(Woe){const G=Z.length-oe-1;ht+=`${Tt}"... ${ae(G)} not stringified"`}return yt!==""&&(ht+=` +${pe}`),Ee.pop(),`[${ht}]`}Ee.push(Z);let zt="";yt!==""&&(Xe+=yt,Tt=`, +${Xe}`,zt=" ");let Dt="";for(const ue of Pt){const Ge=dn(ue,Z[ue],Ee,Pt,yt,Xe);Ge!==void 0&&(ht+=`${Dt}${R(ue)}:${zt}${Ge}`,Dt=Tt)}return yt!==""&&Dt.length>1&&(ht=` +${Xe}${ht} +${pe}`),Ee.pop(),`{${ht}}`}case"number":return isFinite(Z)?String(Z):K?K(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(ce)return String(Z);default:return K?K(Z):void 0}}function St(mt,Z,Ee,Pt,yt){switch(typeof Z){case"string":return R(Z);case"object":{if(Z===null)return"null";if(typeof Z.toJSON=="function"){if(Z=Z.toJSON(mt),typeof Z!="object")return St(mt,Z,Ee,Pt,yt);if(Z===null)return"null"}if(Ee.indexOf(Z)!==-1)return X;const Xe=yt;if(Array.isArray(Z)){if(Z.length===0)return"[]";if(Woe){const Ct=Z.length-oe-1;Ge+=`${Ie}"... ${ae(Ct)} not stringified"`}return Ge+=` +${Xe}`,Ee.pop(),`[${Ge}]`}let pe=Object.keys(Z);const ht=pe.length;if(ht===0)return"{}";if(Woe){const Ge=ht-oe;zt+=`${Dt}"...": "${ae(Ge)} not stringified"`,Dt=Tt}return Dt!==""&&(zt=` +${yt}${zt} +${Xe}`),Ee.pop(),`{${zt}}`}case"number":return isFinite(Z)?String(Z):K?K(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(ce)return String(Z);default:return K?K(Z):void 0}}function nt(mt,Z,Ee){switch(typeof Z){case"string":return R(Z);case"object":{if(Z===null)return"null";if(typeof Z.toJSON=="function"){if(Z=Z.toJSON(mt),typeof Z!="object")return nt(mt,Z,Ee);if(Z===null)return"null"}if(Ee.indexOf(Z)!==-1)return X;let Pt="";if(Array.isArray(Z)){if(Z.length===0)return"[]";if(Woe){const ue=Z.length-oe-1;Pt+=`,"... ${ae(ue)} not stringified"`}return Ee.pop(),`[${Pt}]`}let yt=Object.keys(Z);const Xe=yt.length;if(Xe===0)return"{}";if(Woe){const Tt=Xe-oe;Pt+=`${pe}"...":"${ae(Tt)} not stringified"`}return Ee.pop(),`{${Pt}}`}case"number":return isFinite(Z)?String(Z):K?K(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(ce)return String(Z);default:return K?K(Z):void 0}}function an(mt,Z,Ee){if(arguments.length>1){let Pt="";if(typeof Ee=="number"?Pt=" ".repeat(Math.min(Ee,10)):typeof Ee=="string"&&(Pt=Ee.slice(0,10)),Z!=null){if(typeof Z=="function")return Zt("",{"":mt},[],Z,Pt,"");if(Array.isArray(Z))return dn("",mt,[],o(Z),Pt,"")}if(Pt.length!==0)return St("",mt,[],Pt,"")}return nt("",mt,[])}return an}}}]); +}()); \ No newline at end of file diff --git a/5670.be8ca674.async.js b/5670.be8ca674.async.js deleted file mode 100644 index 8f4e69eb..00000000 --- a/5670.be8ca674.async.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5670],{25670:function(ke,D,p){p.d(D,{Z:function(){return ve}});var G=p(84875),u=p.n(G),i=p(50959),b=p(31594),w=p(87017),j=e=>{const{prefixCls:t,className:n,style:s,size:a,shape:r}=e,c=u()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),o=u()({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),l=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:u()(t,c,o,n),style:Object.assign(Object.assign({},l),s)})},R=p(60076),V=p(81501),Z=p(90467);const W=new R.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),x=e=>({height:e,lineHeight:(0,R.bf)(e)}),v=e=>Object.assign({width:e},x(e)),X=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:W,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),P=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},x(e)),J=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:s,controlHeightLG:a,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},v(s)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},v(a)),[`${t}${t}-sm`]:Object.assign({},v(r))}},K=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:s,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:o}=e;return{[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},P(t,o)),[`${s}-lg`]:Object.assign({},P(a,o)),[`${s}-sm`]:Object.assign({},P(r,o))}},T=e=>Object.assign({width:e},x(e)),Q=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:s,borderRadiusSM:a,calc:r}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:s,borderRadius:a},T(r(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},T(n)),{maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},I=(e,t,n)=>{const{skeletonButtonCls:s}=e;return{[`${n}${s}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${s}-round`]:{borderRadius:t}}},z=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},x(e)),U=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:s,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:o}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:o(s).mul(2).equal(),minWidth:o(s).mul(2).equal()},z(s,o))},I(e,s,n)),{[`${n}-lg`]:Object.assign({},z(a,o))}),I(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},z(r,o))}),I(e,r,`${n}-sm`))},Y=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:s,skeletonParagraphCls:a,skeletonButtonCls:r,skeletonInputCls:c,skeletonImageCls:o,controlHeight:l,controlHeightLG:g,controlHeightSM:d,gradientFromColor:m,padding:C,marginSM:H,borderRadius:$,titleHeight:h,blockRadius:E,paragraphLiHeight:A,controlHeightXS:S,paragraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:C,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:m},v(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},v(g)),[`${n}-sm`]:Object.assign({},v(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${s}`]:{width:"100%",height:h,background:m,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:m,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${s}, ${a} > li`]:{borderRadius:$}}},[`${t}-with-avatar ${t}-content`]:{[`${s}`]:{marginBlockStart:H,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},U(e)),J(e)),K(e)),Q(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${s}, - ${a} > li, - ${n}, - ${r}, - ${c}, - ${o} - `]:Object.assign({},X(e))}}},_=e=>{const{colorFillContent:t,colorFill:n}=e,s=t,a=n;return{color:s,colorGradientEnd:a,gradientFromColor:s,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}};var f=(0,V.I$)("Skeleton",e=>{const{componentCls:t,calc:n}=e,s=(0,Z.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Y(s)]},_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ee=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,shape:r="circle",size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls","className"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-avatar`,shape:r,size:c},m))))},te=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:r=!1,size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-button`,size:c},m))))};const ne="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var se=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:r}=e,{getPrefixCls:c}=i.useContext(b.E_),o=c("skeleton",t),[l,g]=f(o),d=u()(o,`${o}-element`,{[`${o}-active`]:r},n,s,g);return l(i.createElement("div",{className:d},i.createElement("div",{className:u()(`${o}-image`,n),style:a},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},i.createElement("path",{d:ne,className:`${o}-image-path`})))))},ae=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:r,size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-input`,size:c},m))))},le=p(38126),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ie=oe,re=p(38782),ce=function(t,n){return i.createElement(re.Z,(0,le.Z)({},t,{ref:n,icon:ie}))},ge=i.forwardRef(ce),de=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:r,children:c}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=u()(l,`${l}-element`,{[`${l}-active`]:r},d,n,s),C=c!=null?c:i.createElement(ge,null);return g(i.createElement("div",{className:m},i.createElement("div",{className:u()(`${l}-image`,n),style:a},C)))},ue=p(1788),me=e=>{const t=o=>{const{width:l,rows:g=2}=e;if(Array.isArray(l))return l[o];if(g-1===o)return l},{prefixCls:n,className:s,style:a,rows:r}=e,c=(0,ue.Z)(Array(r)).map((o,l)=>i.createElement("li",{key:l,style:{width:t(l)}}));return i.createElement("ul",{className:u()(n,s),style:a},c)},he=e=>{let{prefixCls:t,className:n,width:s,style:a}=e;return i.createElement("h3",{className:u()(t,n),style:Object.assign({width:s},a)})};function B(e){return e&&typeof e=="object"?e:{}}function pe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ce(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function $e(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const k=e=>{const{prefixCls:t,loading:n,className:s,rootClassName:a,style:r,children:c,avatar:o=!1,title:l=!0,paragraph:g=!0,active:d,round:m}=e,{getPrefixCls:C,direction:H,skeleton:$}=i.useContext(b.E_),h=C("skeleton",t),[E,A]=f(h);if(n||!("loading"in e)){const S=!!o,O=!!l,N=!!g;let L;if(S){const y=Object.assign(Object.assign({prefixCls:`${h}-avatar`},pe(O,N)),B(o));L=i.createElement("div",{className:`${h}-header`},i.createElement(j,Object.assign({},y)))}let F;if(O||N){let y;if(O){const M=Object.assign(Object.assign({prefixCls:`${h}-title`},Ce(S,N)),B(l));y=i.createElement(he,Object.assign({},M))}let q;if(N){const M=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},$e(S,O)),B(g));q=i.createElement(me,Object.assign({},M))}F=i.createElement("div",{className:`${h}-content`},y,q)}const fe=u()(h,{[`${h}-with-avatar`]:S,[`${h}-active`]:d,[`${h}-rtl`]:H==="rtl",[`${h}-round`]:m},$==null?void 0:$.className,s,a,A);return E(i.createElement("div",{className:fe,style:Object.assign(Object.assign({},$==null?void 0:$.style),r)},L,F))}return typeof c!="undefined"?c:null};k.Button=te,k.Avatar=ee,k.Input=ae,k.Image=se,k.Node=de;var be=k,ve=be}}]); diff --git a/5714.2c64f0e9.async.js b/5714.2c64f0e9.async.js deleted file mode 100644 index 7822fa2d..00000000 --- a/5714.2c64f0e9.async.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5714],{21626:function(Oe,le,e){e.d(le,{Z:function(){return H},n:function(){return ie}});var d=e(50959),z=e(67536),A=e(84875),B=e.n(A),u=e(41549),p=e(12602),a=e(55580),f=e(31594),C=e(69943),N=e(17436),se=e(1415),G=e(21130),h=e(59647),be=e(55904);function Pe(t){return!!(t.prefix||t.suffix||t.allowClear)}var F=e(10254),he=function(t,r){var T={};for(var S in t)Object.prototype.hasOwnProperty.call(t,S)&&r.indexOf(S)<0&&(T[S]=t[S]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,S=Object.getOwnPropertySymbols(t);y{var T;const{prefixCls:S,bordered:y=!0,status:$,size:te,disabled:Q,onBlur:ue,onFocus:X,suffix:L,allowClear:k,addonAfter:Ce,addonBefore:l,className:j,style:m,styles:v,rootClassName:P,onChange:g,classNames:R}=t,s=he(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:x,direction:E,input:o}=d.useContext(f.E_),n=x("input",S),b=(0,d.useRef)(null),J=(0,F.Z)(n),[re,D]=(0,be.ZP)(n,J),{compactSize:ne,compactItemClassnames:w}=(0,G.ri)(n,E),_=(0,N.Z)(oe=>{var pe;return(pe=te!=null?te:ne)!==null&&pe!==void 0?pe:oe}),Se=d.useContext(C.Z),I=Q!=null?Q:Se,{status:W,hasFeedback:ae,feedbackIcon:Y}=(0,d.useContext)(se.aM),K=(0,a.F)(W,$),q=Pe(t)||!!ae,ce=(0,d.useRef)(q),Ee=(0,h.Z)(b,!0),M=oe=>{Ee(),ue==null||ue(oe)},O=oe=>{Ee(),X==null||X(oe)},U=oe=>{Ee(),g==null||g(oe)},de=(ae||L)&&d.createElement(d.Fragment,null,L,ae&&Y);let fe;return typeof k=="object"&&(k!=null&&k.clearIcon)?fe=k:k&&(fe={clearIcon:d.createElement(z.Z,null)}),re(d.createElement(u.Z,Object.assign({ref:(0,p.sQ)(r,b),prefixCls:n,autoComplete:o==null?void 0:o.autoComplete},s,{disabled:I,onBlur:M,onFocus:O,style:Object.assign(Object.assign({},o==null?void 0:o.style),m),styles:Object.assign(Object.assign({},o==null?void 0:o.styles),v),suffix:de,allowClear:fe,className:B()(j,P,J,D,w,o==null?void 0:o.className),onChange:U,addonAfter:Ce&&d.createElement(G.BR,null,d.createElement(se.Ux,{override:!0,status:!0},Ce)),addonBefore:l&&d.createElement(G.BR,null,d.createElement(se.Ux,{override:!0,status:!0},l)),classNames:Object.assign(Object.assign(Object.assign({},R),o==null?void 0:o.classNames),{input:B()({[`${n}-sm`]:_==="small",[`${n}-lg`]:_==="large",[`${n}-rtl`]:E==="rtl",[`${n}-borderless`]:!y},!q&&(0,a.Z)(n,K),R==null?void 0:R.input,(T=o==null?void 0:o.classNames)===null||T===void 0?void 0:T.input,D)}),classes:{affixWrapper:B()({[`${n}-affix-wrapper-sm`]:_==="small",[`${n}-affix-wrapper-lg`]:_==="large",[`${n}-affix-wrapper-rtl`]:E==="rtl",[`${n}-affix-wrapper-borderless`]:!y},(0,a.Z)(`${n}-affix-wrapper`,K,ae),D),wrapper:B()({[`${n}-group-rtl`]:E==="rtl"},D),group:B()({[`${n}-group-wrapper-sm`]:_==="small",[`${n}-group-wrapper-lg`]:_==="large",[`${n}-group-wrapper-rtl`]:E==="rtl",[`${n}-group-wrapper-disabled`]:I},(0,a.Z)(`${n}-group-wrapper`,K,ae),D)}})))})},15714:function(Oe,le,e){var d=e(50959),z=e(67536),A=e(84875),B=e.n(A),u=e(2276),p=e(55580),a=e(31594),f=e(69943),C=e(17436),N=e(1415),se=e(21626),G=e(55904),h=e(10254),be=function(F,he){var ie={};for(var V in F)Object.prototype.hasOwnProperty.call(F,V)&&he.indexOf(V)<0&&(ie[V]=F[V]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,V=Object.getOwnPropertySymbols(F);H{var ie;const{prefixCls:V,bordered:H=!0,size:t,disabled:r,status:T,allowClear:S,classNames:y,rootClassName:$,className:te}=F,Q=be(F,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:ue,direction:X}=d.useContext(a.E_),L=(0,C.Z)(t),k=d.useContext(f.Z),Ce=r!=null?r:k,{status:l,hasFeedback:j,feedbackIcon:m}=d.useContext(N.aM),v=(0,p.F)(l,T),P=d.useRef(null);d.useImperativeHandle(he,()=>{var o;return{resizableTextArea:(o=P.current)===null||o===void 0?void 0:o.resizableTextArea,focus:n=>{var b,J;(0,se.n)((J=(b=P.current)===null||b===void 0?void 0:b.resizableTextArea)===null||J===void 0?void 0:J.textArea,n)},blur:()=>{var n;return(n=P.current)===null||n===void 0?void 0:n.blur()}}});const g=ue("input",V);let R;typeof S=="object"&&(S!=null&&S.clearIcon)?R=S:S&&(R={clearIcon:d.createElement(z.Z,null)});const s=(0,h.Z)(g),[x,E]=(0,G.ZP)(g,s);return x(d.createElement(u.Z,Object.assign({},Q,{disabled:Ce,allowClear:R,className:B()(s,te,$),classes:{affixWrapper:B()(`${g}-textarea-affix-wrapper`,{[`${g}-affix-wrapper-rtl`]:X==="rtl",[`${g}-affix-wrapper-borderless`]:!H,[`${g}-affix-wrapper-sm`]:L==="small",[`${g}-affix-wrapper-lg`]:L==="large",[`${g}-textarea-show-count`]:F.showCount||((ie=F.count)===null||ie===void 0?void 0:ie.show)},(0,p.Z)(`${g}-affix-wrapper`,v),E)},classNames:Object.assign(Object.assign({},y),{textarea:B()({[`${g}-borderless`]:!H,[`${g}-sm`]:L==="small",[`${g}-lg`]:L==="large"},(0,p.Z)(g,v),E,y==null?void 0:y.textarea)}),prefixCls:g,suffix:j&&d.createElement("span",{className:`${g}-textarea-suffix`},m),ref:P})))});le.Z=Pe},59647:function(Oe,le,e){e.d(le,{Z:function(){return z}});var d=e(50959);function z(A,B){const u=(0,d.useRef)([]),p=()=>{u.current.push(setTimeout(()=>{var a,f,C,N;!((a=A.current)===null||a===void 0)&&a.input&&((f=A.current)===null||f===void 0?void 0:f.input.getAttribute("type"))==="password"&&(!((C=A.current)===null||C===void 0)&&C.input.hasAttribute("value"))&&((N=A.current)===null||N===void 0||N.input.removeAttribute("value"))}))};return(0,d.useEffect)(()=>(B&&p(),()=>u.current.forEach(a=>{a&&clearTimeout(a)})),[]),p}},76263:function(Oe,le,e){e.d(le,{Z:function(){return a}});var d=e(10570),z=e(33346),A=e(40727),B=e(50959),u=["show"];function p(f,C){if(!C.max)return!0;var N=C.strategy(f);return N<=C.max}function a(f,C){return B.useMemo(function(){var N={};C&&(N.show=(0,A.Z)(C)==="object"&&C.formatter?C.formatter:!!C),N=(0,z.Z)((0,z.Z)({},N),f);var se=N,G=se.show,h=(0,d.Z)(se,u);return(0,z.Z)((0,z.Z)({},h),{},{show:!!G,showFormatter:typeof G=="function"?G:void 0,strategy:h.strategy||function(be){return be.length}})},[f,C])}},41549:function(Oe,le,e){e.d(le,{Q:function(){return N},Z:function(){return H}});var d=e(38126),z=e(33346),A=e(73273),B=e(40727),u=e(84875),p=e.n(u),a=e(50959),f=e(66420),C=function(r){var T,S,y=r.inputElement,$=r.prefixCls,te=r.prefix,Q=r.suffix,ue=r.addonBefore,X=r.addonAfter,L=r.className,k=r.style,Ce=r.disabled,l=r.readOnly,j=r.focused,m=r.triggerFocus,v=r.allowClear,P=r.value,g=r.handleReset,R=r.hidden,s=r.classes,x=r.classNames,E=r.dataAttrs,o=r.styles,n=r.components,b=(n==null?void 0:n.affixWrapper)||"span",J=(n==null?void 0:n.groupWrapper)||"span",re=(n==null?void 0:n.wrapper)||"span",D=(n==null?void 0:n.groupAddon)||"span",ne=(0,a.useRef)(null),w=function(O){var U;(U=ne.current)!==null&&U!==void 0&&U.contains(O.target)&&(m==null||m())},_=function(){var O;if(!v)return null;var U=!Ce&&!l&&P,de="".concat($,"-clear-icon"),fe=(0,B.Z)(v)==="object"&&v!==null&&v!==void 0&&v.clearIcon?v.clearIcon:"\u2716";return a.createElement("span",{onClick:g,onMouseDown:function(pe){return pe.preventDefault()},className:p()(de,(O={},(0,A.Z)(O,"".concat(de,"-hidden"),!U),(0,A.Z)(O,"".concat(de,"-has-suffix"),!!Q),O)),role:"button",tabIndex:-1},fe)},Se=(0,a.cloneElement)(y,{value:P,hidden:R,className:p()((T=y.props)===null||T===void 0?void 0:T.className,!(0,f.X3)(r)&&!(0,f.He)(r)&&L)||null,style:(0,z.Z)((0,z.Z)({},(S=y.props)===null||S===void 0?void 0:S.style),!(0,f.X3)(r)&&!(0,f.He)(r)?k:{})});if((0,f.X3)(r)){var I,W="".concat($,"-affix-wrapper"),ae=p()(W,(I={},(0,A.Z)(I,"".concat(W,"-disabled"),Ce),(0,A.Z)(I,"".concat(W,"-focused"),j),(0,A.Z)(I,"".concat(W,"-readonly"),l),(0,A.Z)(I,"".concat(W,"-input-with-clear-btn"),Q&&v&&P),I),!(0,f.He)(r)&&L,s==null?void 0:s.affixWrapper,x==null?void 0:x.affixWrapper),Y=(Q||v)&&a.createElement("span",{className:p()("".concat($,"-suffix"),x==null?void 0:x.suffix),style:o==null?void 0:o.suffix},_(),Q);Se=a.createElement(b,(0,d.Z)({className:ae,style:(0,z.Z)((0,z.Z)({},(0,f.He)(r)?void 0:k),o==null?void 0:o.affixWrapper),hidden:!(0,f.He)(r)&&R,onClick:w},E==null?void 0:E.affixWrapper,{ref:ne}),te&&a.createElement("span",{className:p()("".concat($,"-prefix"),x==null?void 0:x.prefix),style:o==null?void 0:o.prefix},te),(0,a.cloneElement)(y,{value:P,hidden:null}),Y)}if((0,f.He)(r)){var K="".concat($,"-group"),q="".concat(K,"-addon"),ce=p()("".concat($,"-wrapper"),K,s==null?void 0:s.wrapper),Ee=p()("".concat($,"-group-wrapper"),L,s==null?void 0:s.group);return a.createElement(J,{className:Ee,style:k,hidden:R},a.createElement(re,{className:ce},ue&&a.createElement(D,{className:q},ue),(0,a.cloneElement)(Se,{hidden:null}),X&&a.createElement(D,{className:q},X)))}return Se},N=C,se=e(1788),G=e(32682),h=e(10570),be=e(65589),Pe=e(87017),F=e(76263),he=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],ie=(0,a.forwardRef)(function(t,r){var T=t.autoComplete,S=t.onChange,y=t.onFocus,$=t.onBlur,te=t.onPressEnter,Q=t.onKeyDown,ue=t.prefixCls,X=ue===void 0?"rc-input":ue,L=t.disabled,k=t.htmlSize,Ce=t.className,l=t.maxLength,j=t.suffix,m=t.showCount,v=t.count,P=t.type,g=P===void 0?"text":P,R=t.classes,s=t.classNames,x=t.styles,E=t.onCompositionStart,o=t.onCompositionEnd,n=(0,h.Z)(t,he),b=(0,a.useState)(!1),J=(0,G.Z)(b,2),re=J[0],D=J[1],ne=a.useRef(!1),w=(0,a.useRef)(null),_=function(c){w.current&&(0,f.nH)(w.current,c)},Se=(0,be.Z)(t.defaultValue,{value:t.value}),I=(0,G.Z)(Se,2),W=I[0],ae=I[1],Y=W==null?"":String(W),K=a.useState(null),q=(0,G.Z)(K,2),ce=q[0],Ee=q[1],M=(0,F.Z)(v,m),O=M.max||l,U=M.strategy(Y),de=!!O&&U>O;(0,a.useImperativeHandle)(r,function(){return{focus:_,blur:function(){var c;(c=w.current)===null||c===void 0||c.blur()},setSelectionRange:function(c,me,ge){var xe;(xe=w.current)===null||xe===void 0||xe.setSelectionRange(c,me,ge)},select:function(){var c;(c=w.current)===null||c===void 0||c.select()},input:w.current}}),(0,a.useEffect)(function(){D(function(i){return i&&L?!1:i})},[L]);var fe=function(c,me){var ge=me;if(!ne.current&&M.exceedFormatter&&M.max&&M.strategy(me)>M.max&&(ge=M.exceedFormatter(me,{max:M.max}),me!==ge)){var xe,De;Ee([((xe=w.current)===null||xe===void 0?void 0:xe.selectionStart)||0,((De=w.current)===null||De===void 0?void 0:De.selectionEnd)||0])}ae(ge),w.current&&(0,f.rJ)(w.current,c,S,ge)};a.useEffect(function(){if(ce){var i;(i=w.current)===null||i===void 0||i.setSelectionRange.apply(i,(0,se.Z)(ce))}},[ce]);var oe=function(c){fe(c,c.target.value)},pe=function(c){ne.current=!1,fe(c,c.currentTarget.value),o==null||o(c)},Ze=function(c){te&&c.key==="Enter"&&te(c),Q==null||Q(c)},ze=function(c){D(!0),y==null||y(c)},we=function(c){D(!1),$==null||$(c)},Ne=function(c){ae(""),_(),w.current&&(0,f.rJ)(w.current,c,S)},Me=de&&"".concat(X,"-out-of-range"),Ie=function(){var c=(0,Pe.Z)(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]);return a.createElement("input",(0,d.Z)({autoComplete:T},c,{onChange:oe,onFocus:ze,onBlur:we,onKeyDown:Ze,className:p()(X,(0,A.Z)({},"".concat(X,"-disabled"),L),s==null?void 0:s.input),style:x==null?void 0:x.input,ref:w,size:k,type:g,onCompositionStart:function(ge){ne.current=!0,E==null||E(ge)},onCompositionEnd:pe}))},ve=function(){var c=Number(O)>0;if(j||M.show){var me=M.showFormatter?M.showFormatter({value:Y,count:U,maxLength:O}):"".concat(U).concat(c?" / ".concat(O):"");return a.createElement(a.Fragment,null,M.show&&a.createElement("span",{className:p()("".concat(X,"-show-count-suffix"),(0,A.Z)({},"".concat(X,"-show-count-has-suffix"),!!j),s==null?void 0:s.count),style:(0,z.Z)({},x==null?void 0:x.count)},me),j)}return null};return a.createElement(N,(0,d.Z)({},n,{prefixCls:X,className:p()(Ce,Me),inputElement:Ie(),handleReset:Ne,value:Y,focused:re,triggerFocus:_,suffix:ve(),disabled:L,classes:R,classNames:s,styles:x}))}),V=ie,H=V},66420:function(Oe,le,e){e.d(le,{He:function(){return d},X3:function(){return z},nH:function(){return B},rJ:function(){return A}});function d(u){return!!(u.addonBefore||u.addonAfter)}function z(u){return!!(u.prefix||u.suffix||u.allowClear)}function A(u,p,a,f){if(a){var C=p;if(p.type==="click"){var N=u.cloneNode(!0);C=Object.create(p,{target:{value:N},currentTarget:{value:N}}),N.value="",a(C);return}if(f!==void 0){C=Object.create(p,{target:{value:u},currentTarget:{value:u}}),u.type!=="file"&&(u.value=f),a(C);return}a(C)}}function B(u,p){if(u){u.focus(p);var a=p||{},f=a.cursor;if(f){var C=u.value.length;switch(f){case"start":u.setSelectionRange(0,0);break;case"end":u.setSelectionRange(C,C);break;default:u.setSelectionRange(0,C)}}}}},2276:function(Oe,le,e){e.d(le,{Z:function(){return Ce}});var d=e(38126),z=e(33346),A=e(73273),B=e(1788),u=e(32682),p=e(10570),a=e(84875),f=e.n(a),C=e(41549),N=e(76263),se=e(66420),G=e(65589),h=e(50959),be=e(40727),Pe=e(12682),F=e(77189),he=e(28449),ie=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,V=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],H={},t;function r(l){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=l.getAttribute("id")||l.getAttribute("data-reactid")||l.getAttribute("name");if(j&&H[m])return H[m];var v=window.getComputedStyle(l),P=v.getPropertyValue("box-sizing")||v.getPropertyValue("-moz-box-sizing")||v.getPropertyValue("-webkit-box-sizing"),g=parseFloat(v.getPropertyValue("padding-bottom"))+parseFloat(v.getPropertyValue("padding-top")),R=parseFloat(v.getPropertyValue("border-bottom-width"))+parseFloat(v.getPropertyValue("border-top-width")),s=V.map(function(E){return"".concat(E,":").concat(v.getPropertyValue(E))}).join(";"),x={sizingStyle:s,paddingSize:g,borderSize:R,boxSizing:P};return j&&m&&(H[m]=x),x}function T(l){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;t||(t=document.createElement("textarea"),t.setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),l.getAttribute("wrap")?t.setAttribute("wrap",l.getAttribute("wrap")):t.removeAttribute("wrap");var P=r(l,j),g=P.paddingSize,R=P.borderSize,s=P.boxSizing,x=P.sizingStyle;t.setAttribute("style","".concat(x,";").concat(ie)),t.value=l.value||l.placeholder||"";var E=void 0,o=void 0,n,b=t.scrollHeight;if(s==="border-box"?b+=R:s==="content-box"&&(b-=g),m!==null||v!==null){t.value=" ";var J=t.scrollHeight-g;m!==null&&(E=J*m,s==="border-box"&&(E=E+g+R),b=Math.max(E,b)),v!==null&&(o=J*v,s==="border-box"&&(o=o+g+R),n=b>o?"":"hidden",b=Math.min(o,b))}var re={height:b,overflowY:n,resize:"none"};return E&&(re.minHeight=E),o&&(re.maxHeight=o),re}var S=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],y=0,$=1,te=2,Q=h.forwardRef(function(l,j){var m=l,v=m.prefixCls,P=m.onPressEnter,g=m.defaultValue,R=m.value,s=m.autoSize,x=m.onResize,E=m.className,o=m.style,n=m.disabled,b=m.onChange,J=m.onInternalAutoSize,re=(0,p.Z)(m,S),D=(0,G.Z)(g,{value:R,postState:function(i){return i!=null?i:""}}),ne=(0,u.Z)(D,2),w=ne[0],_=ne[1],Se=function(i){_(i.target.value),b==null||b(i)},I=h.useRef();h.useImperativeHandle(j,function(){return{textArea:I.current}});var W=h.useMemo(function(){return s&&(0,be.Z)(s)==="object"?[s.minRows,s.maxRows]:[]},[s]),ae=(0,u.Z)(W,2),Y=ae[0],K=ae[1],q=!!s,ce=function(){try{if(document.activeElement===I.current){var i=I.current,c=i.selectionStart,me=i.selectionEnd,ge=i.scrollTop;I.current.setSelectionRange(c,me),I.current.scrollTop=ge}}catch(xe){}},Ee=h.useState(te),M=(0,u.Z)(Ee,2),O=M[0],U=M[1],de=h.useState(),fe=(0,u.Z)(de,2),oe=fe[0],pe=fe[1],Ze=function(){U(y)};(0,F.Z)(function(){q&&Ze()},[R,Y,K,q]),(0,F.Z)(function(){if(O===y)U($);else if(O===$){var ve=T(I.current,!1,Y,K);U(te),pe(ve)}else ce()},[O]);var ze=h.useRef(),we=function(){he.Z.cancel(ze.current)},Ne=function(i){O===te&&(x==null||x(i),s&&(we(),ze.current=(0,he.Z)(function(){Ze()})))};h.useEffect(function(){return we},[]);var Me=q?oe:null,Ie=(0,z.Z)((0,z.Z)({},o),Me);return(O===y||O===$)&&(Ie.overflowY="hidden",Ie.overflowX="hidden"),h.createElement(Pe.Z,{onResize:Ne,disabled:!(s||x)},h.createElement("textarea",(0,d.Z)({},re,{ref:I,style:Ie,className:f()(v,E,(0,A.Z)({},"".concat(v,"-disabled"),n)),disabled:n,value:w,onChange:Se})))}),ue=Q,X=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],L=h.forwardRef(function(l,j){var m,v,P=l.defaultValue,g=l.value,R=l.onFocus,s=l.onBlur,x=l.onChange,E=l.allowClear,o=l.maxLength,n=l.onCompositionStart,b=l.onCompositionEnd,J=l.suffix,re=l.prefixCls,D=re===void 0?"rc-textarea":re,ne=l.classes,w=l.showCount,_=l.count,Se=l.className,I=l.style,W=l.disabled,ae=l.hidden,Y=l.classNames,K=l.styles,q=l.onResize,ce=(0,p.Z)(l,X),Ee=(0,G.Z)(P,{value:g,defaultValue:P}),M=(0,u.Z)(Ee,2),O=M[0],U=M[1],de=O==null?"":String(O),fe=h.useState(!1),oe=(0,u.Z)(fe,2),pe=oe[0],Ze=oe[1],ze=h.useRef(!1),we=h.useState(null),Ne=(0,u.Z)(we,2),Me=Ne[0],Ie=Ne[1],ve=(0,h.useRef)(null),i=function(){var Z;return(Z=ve.current)===null||Z===void 0?void 0:Z.textArea},c=function(){i().focus()};(0,h.useImperativeHandle)(j,function(){return{resizableTextArea:ve.current,focus:c,blur:function(){i().blur()}}}),(0,h.useEffect)(function(){Ze(function(ee){return!W&&ee})},[W]);var me=h.useState(null),ge=(0,u.Z)(me,2),xe=ge[0],De=ge[1];h.useEffect(function(){if(xe){var ee;(ee=i()).setSelectionRange.apply(ee,(0,B.Z)(xe))}},[xe]);var ye=(0,N.Z)(_,w),Te=(m=ye.max)!==null&&m!==void 0?m:o,je=Number(Te)>0,Fe=ye.strategy(de),We=!!Te&&Fe>Te,Le=function(Z,Re){var Ae=Re;!ze.current&&ye.exceedFormatter&&ye.max&&ye.strategy(Re)>ye.max&&(Ae=ye.exceedFormatter(Re,{max:ye.max}),Re!==Ae&&De([i().selectionStart||0,i().selectionEnd||0])),U(Ae),(0,se.rJ)(Z.currentTarget,Z,x,Ae)},Ke=function(Z){ze.current=!0,n==null||n(Z)},Ue=function(Z){ze.current=!1,Le(Z,Z.currentTarget.value),b==null||b(Z)},Ve=function(Z){Le(Z,Z.target.value)},He=function(Z){var Re=ce.onPressEnter,Ae=ce.onKeyDown;Z.key==="Enter"&&Re&&Re(Z),Ae==null||Ae(Z)},Xe=function(Z){Ze(!0),R==null||R(Z)},Je=function(Z){Ze(!1),s==null||s(Z)},Ye=function(Z){U(""),c(),(0,se.rJ)(i(),Z,x)},$e=J,Be;ye.show&&(ye.showFormatter?Be=ye.showFormatter({value:de,count:Fe,maxLength:Te}):Be="".concat(Fe).concat(je?" / ".concat(Te):""),$e=h.createElement(h.Fragment,null,$e,h.createElement("span",{className:f()("".concat(D,"-data-count"),Y==null?void 0:Y.count),style:K==null?void 0:K.count},Be)));var Ge=function(Z){var Re;q==null||q(Z),(Re=i())!==null&&Re!==void 0&&Re.style.height&&Ie(!0)},Qe=!ce.autoSize&&!w&&!E,ke=h.createElement(C.Q,{value:de,allowClear:E,handleReset:Ye,suffix:$e,prefixCls:D,classes:{affixWrapper:f()(ne==null?void 0:ne.affixWrapper,(v={},(0,A.Z)(v,"".concat(D,"-show-count"),w),(0,A.Z)(v,"".concat(D,"-textarea-allow-clear"),E),v))},disabled:W,focused:pe,className:f()(Se,We&&"".concat(D,"-out-of-range")),style:(0,z.Z)((0,z.Z)({},I),Me&&!Qe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Be=="string"?Be:void 0}},hidden:ae,inputElement:h.createElement(ue,(0,d.Z)({},ce,{maxLength:o,onKeyDown:He,onChange:Ve,onFocus:Xe,onBlur:Je,onCompositionStart:Ke,onCompositionEnd:Ue,className:f()(Y==null?void 0:Y.textarea),style:(0,z.Z)((0,z.Z)({},K==null?void 0:K.textarea),{},{resize:I==null?void 0:I.resize}),disabled:W,prefixCls:D,onResize:Ge,ref:ve}))});return ke}),k=L,Ce=k}}]); diff --git a/5885.633c3925.async.js b/5885.633c3925.async.js deleted file mode 100644 index b6870ff8..00000000 --- a/5885.633c3925.async.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5885],{78304:function(ve,G,l){var a=l(1788),H=l(28449);function R(z){let x;const X=B=>()=>{x=null,z.apply(void 0,(0,a.Z)(B))},T=function(){if(x==null){for(var B=arguments.length,F=new Array(B),P=0;P{H.Z.cancel(x),x=null},T}G.Z=R},58359:function(ve,G,l){l.d(G,{Z:function(){return ie}});var a=l(50959),H=l(84875),R=l.n(H),z=l(12682),x=l(87017),X=l(78304),T=l(31594),B=l(81501);const F=u=>{const{componentCls:b}=u;return{[b]:{position:"fixed",zIndex:u.zIndexPopup}}},P=u=>({zIndexPopup:u.zIndexBase+10});var Q=(0,B.I$)("Affix",F,P);function U(u){return u!==window?u.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ne(u,b,g){if(g!==void 0&&b.top>u.top-g)return g+b.top}function J(u,b,g){if(g!==void 0&&b.bottom{var g;const{style:k,offsetTop:q,offsetBottom:K,prefixCls:ce,className:ae,rootClassName:ue,children:de,target:Z,onChange:_}=u,{getPrefixCls:ee,getTargetContainer:fe}=a.useContext(T.E_),le=ee("affix",ce),[e,n]=a.useState(!1),[r,t]=a.useState(),[o,f]=a.useState(),d=a.useRef(j.None),m=a.useRef(null),h=a.useRef(),y=a.useRef(null),w=a.useRef(null),C=a.useRef(null),p=(g=Z!=null?Z:fe)!==null&&g!==void 0?g:Y,A=K===void 0&&q===void 0?0:q,O=()=>{if(d.current!==j.Prepare||!w.current||!y.current||!p)return;const c=p();if(c){const i={status:j.None},s=U(y.current);if(s.top===0&&s.left===0&&s.width===0&&s.height===0)return;const N=U(c),M=ne(s,N,A),re=J(s,N,K);M!==void 0?(i.affixStyle={position:"fixed",top:M,width:s.width,height:s.height},i.placeholderStyle={width:s.width,height:s.height}):re!==void 0&&(i.affixStyle={position:"fixed",bottom:re,width:s.width,height:s.height},i.placeholderStyle={width:s.width,height:s.height}),i.lastAffix=!!i.affixStyle,e!==i.lastAffix&&(_==null||_(i.lastAffix)),d.current=i.status,t(i.affixStyle),f(i.placeholderStyle),n(i.lastAffix)}},I=()=>{var c;d.current=j.Prepare,O()},v=(0,X.Z)(()=>{I()}),S=(0,X.Z)(()=>{if(p&&r){const c=p();if(c&&y.current){const i=U(c),s=U(y.current),N=ne(s,i,A),M=J(s,i,K);if(N!==void 0&&r.top===N||M!==void 0&&r.bottom===M)return}}I()}),W=()=>{const c=p==null?void 0:p();c&&(oe.forEach(i=>{var s;h.current&&((s=m.current)===null||s===void 0||s.removeEventListener(i,h.current)),c==null||c.addEventListener(i,S)}),m.current=c,h.current=S)},E=()=>{C.current&&(clearTimeout(C.current),C.current=null);const c=p==null?void 0:p();oe.forEach(i=>{var s;c==null||c.removeEventListener(i,S),h.current&&((s=m.current)===null||s===void 0||s.removeEventListener(i,h.current))}),v.cancel(),S.cancel()};a.useImperativeHandle(b,()=>({updatePosition:v})),a.useEffect(()=>(C.current=setTimeout(W),()=>E()),[]),a.useEffect(()=>{W()},[Z,r]),a.useEffect(()=>{v()},[Z,q,K]);const[V,te]=Q(le),D=R()(ue,te,le),$=R()({[D]:r});let L=(0,x.Z)(u,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return V(a.createElement(z.Z,{onResize:v},a.createElement("div",Object.assign({style:k,className:ae,ref:y},L),r&&a.createElement("div",{style:o,"aria-hidden":"true"}),a.createElement("div",{className:$,ref:w,style:r},a.createElement(z.Z,{onResize:v},de)))))})},683:function(ve,G,l){l.d(G,{Z:function(){return le}});var a=l(50959),H=l(84875),R=l.n(H),z=l(13763),x=l(68924),X=l(94914),T=l(31594),B=l(85824),F=l(75737);const P=e=>{let{children:n}=e;const{getPrefixCls:r}=a.useContext(T.E_),t=r("breadcrumb");return a.createElement("li",{className:`${t}-separator`,"aria-hidden":"true"},n===""?n:n||"/")};P.__ANT_BREADCRUMB_SEPARATOR=!0;var Q=P,U=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);on[o]||t)}function J(e,n,r,t){if(r==null)return null;const{className:o,onClick:f}=n,d=U(n,["className","onClick"]),m=Object.assign(Object.assign({},(0,x.Z)(d,{data:!0,aria:!0})),{onClick:f});return t!==void 0?a.createElement("a",Object.assign({},m,{className:R()(`${e}-link`,o),href:t}),r):a.createElement("span",Object.assign({},m,{className:R()(`${e}-link`,o)}),r)}function oe(e,n){return(t,o,f,d,m)=>{if(n)return n(t,o,f,d);const h=ne(t,o);return J(e,t,h,m)}}var Y=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,separator:r="/",children:t,menu:o,overlay:f,dropdownProps:d,href:m}=e,y=(w=>{if(o||f){const C=Object.assign({},d);if(o){const p=o||{},{items:A}=p,O=Y(p,["items"]);C.menu=Object.assign(Object.assign({},O),{items:A==null?void 0:A.map((I,v)=>{var{key:S,title:W,label:E,path:V}=I,te=Y(I,["key","title","label","path"]);let D=E!=null?E:W;return V&&(D=a.createElement("a",{href:`${m}${V}`},D)),Object.assign(Object.assign({},te),{key:S!=null?S:v,label:D})})})}else f&&(C.overlay=f);return a.createElement(F.Z,Object.assign({placement:"bottom"},C),a.createElement("span",{className:`${n}-overlay-link`},w,a.createElement(B.Z,null)))}return w})(t);return y!=null?a.createElement(a.Fragment,null,a.createElement("li",null,y),r&&a.createElement(Q,null,r)):null},se=e=>{const{prefixCls:n,children:r,href:t}=e,o=Y(e,["prefixCls","children","href"]),{getPrefixCls:f}=a.useContext(T.E_),d=f("breadcrumb",n);return a.createElement(j,Object.assign({},o,{prefixCls:d}),J(d,o,r,t))};se.__ANT_BREADCRUMB_ITEM=!0;var ie=se,u=l(60076),b=l(6301),g=l(81501),k=l(90467);const q=e=>{const{componentCls:n,iconCls:r,calc:t}=e;return{[n]:Object.assign(Object.assign({},(0,b.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[r]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${(0,u.bf)(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:t(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,b.Qy)(e)),["li:last-child"]:{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[` - > ${r} + span, - > ${r} + a - `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${(0,u.bf)(e.paddingXXS)}`,marginInline:t(e.marginXXS).mul(-1).equal(),[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},K=e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS});var ce=(0,g.I$)("Breadcrumb",e=>{const n=(0,k.TS)(e,{});return q(n)},K),ae=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{var{breadcrumbName:d}=f,m=ae(f,["breadcrumbName"]);return Object.assign(Object.assign({},m),{title:d})})}),o}function de(e,n){return(0,a.useMemo)(()=>e||(n?n.map(ue):null),[e,n])}var Z=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(e);o{if(n===void 0)return n;let r=(n||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{r=r.replace(`:${t}`,e[t])}),r},ee=e=>{const{prefixCls:n,separator:r="/",style:t,className:o,rootClassName:f,routes:d,items:m,children:h,itemRender:y,params:w={}}=e,C=Z(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:p,direction:A,breadcrumb:O}=a.useContext(T.E_);let I;const v=p("breadcrumb",n),[S,W]=ce(v),E=de(m,d),V=oe(v,y);if(E&&E.length>0){const $=[],L=m||d;I=E.map((c,i)=>{const{path:s,key:N,type:M,menu:re,overlay:be,onClick:ye,className:xe,separator:Ce,dropdownProps:Oe}=c,me=_(w,s);me!==void 0&&$.push(me);const he=N!=null?N:i;if(M==="separator")return a.createElement(Q,{key:he},Ce);const pe={},Se=i===E.length-1;re?pe.menu=re:be&&(pe.overlay=be);let{href:ge}=c;return $.length&&me!==void 0&&(ge=`#/${$.join("/")}`),a.createElement(j,Object.assign({key:he},pe,(0,x.Z)(c,{data:!0,aria:!0}),{className:xe,dropdownProps:Oe,href:ge,separator:Se?"":r,onClick:ye,prefixCls:v}),V(c,w,L,$,ge))})}else if(h){const $=(0,z.Z)(h).length;I=(0,z.Z)(h).map((L,c)=>{if(!L)return L;const i=c===$-1;return(0,X.Tm)(L,{separator:i?"":r,key:c})})}const te=R()(v,O==null?void 0:O.className,{[`${v}-rtl`]:A==="rtl"},o,f,W),D=Object.assign(Object.assign({},O==null?void 0:O.style),t);return S(a.createElement("nav",Object.assign({className:te,style:D},C),a.createElement("ol",null,I)))};ee.Item=ie,ee.Separator=Q;var fe=ee,le=fe}}]); diff --git a/5943.61a19495.async.js b/5943.61a19495.async.js deleted file mode 100644 index 785d7cdb..00000000 --- a/5943.61a19495.async.js +++ /dev/null @@ -1,55 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5943],{71041:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};p.default=r},28842:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};p.default=r},83964:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;const o=S(r(81780));function S(j){return j&&j.__esModule?j:{default:j}}const i=o;p.default=i,X.exports=i},38532:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;const o=S(r(74769));function S(j){return j&&j.__esModule?j:{default:j}}const i=o;p.default=i,X.exports=i},21268:function(X,p,r){"use client";"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return O}});var o=n(r(50959)),S=w(r(84875)),i=r(81548),j=w(r(85196)),B=w(r(73623)),M=r(11488),_=r(96728);function $(t,c){(c==null||c>t.length)&&(c=t.length);for(var g=0,x=new Array(c);g=0)&&Object.prototype.propertyIsEnumerable.call(t,x)&&(g[x]=t[x])}return g}function C(t,c){if(t==null)return{};var g={},x=Object.keys(t),v,H;for(H=0;H=0)&&(g[v]=t[v]);return g}function h(t,c){return N(t)||l(t,c)||I(t,c)||u()}function I(t,c){if(t){if(typeof t=="string")return $(t,c);var g=Object.prototype.toString.call(t).slice(8,-1);if(g==="Object"&&t.constructor&&(g=t.constructor.name),g==="Map"||g==="Set")return Array.from(g);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return $(t,c)}}(0,M.setTwoToneColor)(i.blue.primary);var d=o.forwardRef(function(t,c){var g=t.className,x=t.icon,v=t.spin,H=t.rotate,ae=t.tabIndex,le=t.onClick,Pe=t.twoToneColor,ie=y(t,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),Oe=o.useContext(j.default),Te=Oe.prefixCls,fe=Te===void 0?"anticon":Te,Y=Oe.rootClassName,ve,Ie=(0,S.default)(Y,fe,(ve={},T(ve,"".concat(fe,"-").concat(x.name),!!x.name),T(ve,"".concat(fe,"-spin"),!!v||x.name==="loading"),ve),g),de=ae;de===void 0&&le&&(de=-1);var xe=H?{msTransform:"rotate(".concat(H,"deg)"),transform:"rotate(".concat(H,"deg)")}:void 0,pe=h((0,_.normalizeTwoToneColors)(Pe),2),_e=pe[0],ge=pe[1];return o.createElement("span",s(a({role:"img","aria-label":x.name},ie),{ref:c,tabIndex:de,onClick:le,className:Ie}),o.createElement(B.default,{icon:x,primaryColor:_e,secondaryColor:ge,style:xe}))});d.displayName="AntdIcon",d.getTwoToneColor=M.getTwoToneColor,d.setTwoToneColor=M.setTwoToneColor;var O=d},85196:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return i}});var o=r(50959),S=(0,o.createContext)({}),i=S},73623:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(p,"default",{enumerable:!0,get:function(){return u}});var o=B(r(50959)),S=r(96728);function i(a,m,s){return m in a?Object.defineProperty(a,m,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[m]=s,a}function j(a){if(typeof WeakMap!="function")return null;var m=new WeakMap,s=new WeakMap;return(j=function(y){return y?s:m})(a)}function B(a,m){if(!m&&a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var s=j(m);if(s&&s.has(a))return s.get(a);var y={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in a)if(h!=="default"&&Object.prototype.hasOwnProperty.call(a,h)){var I=C?Object.getOwnPropertyDescriptor(a,h):null;I&&(I.get||I.set)?Object.defineProperty(y,h,I):y[h]=a[h]}return y.default=a,s&&s.set(a,y),y}function M(a){for(var m=1;m=0)&&Object.prototype.propertyIsEnumerable.call(a,y)&&(s[y]=a[y])}return s}function T(a,m){if(a==null)return{};var s={},y=Object.keys(a),C,h;for(h=0;h=0)&&(s[C]=a[C]);return s}var w={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Z(a){var m=a.primaryColor,s=a.secondaryColor;w.primaryColor=m,w.secondaryColor=s||(0,S.getSecondaryColor)(m),w.calculated=!!s}function n(){return M({},w)}var l=function(a){var m=a.icon,s=a.className,y=a.onClick,C=a.style,h=a.primaryColor,I=a.secondaryColor,d=N(a,["icon","className","onClick","style","primaryColor","secondaryColor"]),O=o.useRef(),t=w;if(h&&(t={primaryColor:h,secondaryColor:I||(0,S.getSecondaryColor)(h)}),(0,S.useInsertStyles)(O),(0,S.warning)((0,S.isIconDefinition)(m),"icon should be icon definiton, but got ".concat(m)),!(0,S.isIconDefinition)(m))return null;var c=m;return c&&typeof c.icon=="function"&&(c=$(M({},c),{icon:c.icon(t.primaryColor,t.secondaryColor)})),(0,S.generate)(c.icon,"svg-".concat(c.name),$(M({className:s,onClick:y,style:C,"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{ref:O}))};l.displayName="IconReact",l.getTwoToneColors=n,l.setTwoToneColors=Z;var u=l},11488:function(X,p,r){"use strict";Object.defineProperty(p,"__esModule",{value:!0});function o(n,l){for(var u in l)Object.defineProperty(n,u,{enumerable:!0,get:l[u]})}o(p,{setTwoToneColor:function(){return w},getTwoToneColor:function(){return Z}});var S=M(r(73623)),i=r(96728);function j(n,l){(l==null||l>n.length)&&(l=n.length);for(var u=0,a=new Array(l);u0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(d).reduce(function(O,t){var c=d[t];switch(t){case"class":O.className=c,delete O.class;break;default:delete O[t],O[n(t)]=c}return O},{})}function m(d,O,t){return t?M.default.createElement(d.tag,Z({key:O},a(d.attrs),t),(d.children||[]).map(function(c,g){return m(c,"".concat(O,"-").concat(d.tag,"-").concat(g))})):M.default.createElement(d.tag,Z({key:O},a(d.attrs)),(d.children||[]).map(function(c,g){return m(c,"".concat(O,"-").concat(d.tag,"-").concat(g))}))}function s(d){return(0,S.generate)(d)[0]}function y(d){return d?Array.isArray(d)?d:[d]:[]}var C={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},h=` -.anticon { - display: inline-block; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,I=function(d){var O=(0,M.useContext)(_.default),t=O.csp,c=O.prefixCls,g=h;c&&(g=g.replace(/anticon/g,c)),(0,M.useEffect)(function(){var x=d.current,v=(0,j.getShadowRoot)(x);(0,i.updateCSS)(g,"@ant-design-icons",{prepend:!0,csp:t,attachTo:v})},[])}},60545:function(X,p,r){"use strict";r.d(p,{S:function(){return y}});var o=r(33346),S=r(73273),i=r(40727),j=r(10570),B=r(87440),M=r(56197),_=r(84875),$=r.n(_),N=r(71770),T=r(50959),w=r(10422),Z=r(169),n=r(26488),l=function(h){return(0,S.Z)({},h.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,n.uK)(h.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(h.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:h.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:h.colorText},"&-right":{color:h.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function u(C){return(0,n.Xj)("ProLayoutFooterToolbar",function(h){var I=(0,o.Z)((0,o.Z)({},h),{},{componentCls:".".concat(C)});return[l(I)]})}function a(C,h){var I=h.stylish;return(0,n.Xj)("ProLayoutFooterToolbarStylish",function(d){var O=(0,o.Z)((0,o.Z)({},d),{},{componentCls:".".concat(C)});return I?[(0,S.Z)({},"".concat(O.componentCls),I==null?void 0:I(O))]:[]})}var m=r(11527),s=["children","className","extra","portalDom","style","renderContent"],y=function(h){var I=h.children,d=h.className,O=h.extra,t=h.portalDom,c=t===void 0?!0:t,g=h.style,x=h.renderContent,v=(0,j.Z)(h,s),H=(0,T.useContext)(M.ZP.ConfigContext),ae=H.getPrefixCls,le=H.getTargetContainer,Pe=h.prefixCls||ae("pro"),ie="".concat(Pe,"-footer-bar"),Oe=u(ie),Te=Oe.wrapSSR,fe=Oe.hashId,Y=(0,T.useContext)(Z.X),ve=(0,T.useMemo)(function(){var ge=Y.hasSiderMenu,Ae=Y.isMobile,Ee=Y.siderWidth;if(ge)return Ee?Ae?"100%":"calc(100% - ".concat(Ee,"px)"):"100%"},[Y.collapsed,Y.hasSiderMenu,Y.isMobile,Y.siderWidth]),Ie=(0,T.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,i.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,i.Z)(document))===void 0?null:(le==null?void 0:le())||document.body},[]),de=a("".concat(ie,".").concat(ie,"-stylish"),{stylish:h.stylish}),xe=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"".concat(ie,"-left ").concat(fe).trim(),children:O}),(0,m.jsx)("div",{className:"".concat(ie,"-right ").concat(fe).trim(),children:I})]});(0,T.useEffect)(function(){return!Y||!(Y!=null&&Y.setHasFooterToolbar)?function(){}:(Y==null||Y.setHasFooterToolbar(!0),function(){var ge;Y==null||(ge=Y.setHasFooterToolbar)===null||ge===void 0||ge.call(Y,!1)})},[]);var pe=(0,m.jsx)("div",(0,o.Z)((0,o.Z)({className:$()(d,fe,ie,(0,S.Z)({},"".concat(ie,"-stylish"),!!h.stylish)),style:(0,o.Z)({width:ve},g)},(0,N.Z)(v,["prefixCls"])),{},{children:x?x((0,o.Z)((0,o.Z)((0,o.Z)({},h),Y),{},{leftWidth:ve}),xe):xe})),_e=!(0,B.j)()||!c||!Ie?pe:(0,w.createPortal)(pe,Ie,ie);return de.wrapSSR(Te((0,m.jsx)(T.Fragment,{children:_e},ie)))}},19494:function(X,p,r){"use strict";r.d(p,{f:function(){return Z}});var o=r(73273),S=r(56197),i=r(84875),j=r.n(i),B=r(50959),M=r(169),_=r(33346),$=r(26488),N=function(l){return(0,o.Z)({},l.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function T(n){return(0,$.Xj)("ProLayoutGridContent",function(l){var u=(0,_.Z)((0,_.Z)({},l),{},{componentCls:".".concat(n)});return[N(u)]})}var w=r(11527),Z=function(l){var u=(0,B.useContext)(M.X),a=l.children,m=l.contentWidth,s=l.className,y=l.style,C=(0,B.useContext)(S.ZP.ConfigContext),h=C.getPrefixCls,I=l.prefixCls||h("pro"),d=m||u.contentWidth,O="".concat(I,"-grid-content"),t=T(O),c=t.wrapSSR,g=t.hashId,x=d==="Fixed"&&u.layout==="top";return c((0,w.jsx)("div",{className:j()(O,g,s,(0,o.Z)({},"".concat(O,"-wide"),x)),style:y,children:(0,w.jsx)("div",{className:"".concat(I,"-grid-content-children ").concat(g).trim(),children:a})}))}},95943:function(X,p,r){"use strict";r.d(p,{_z:function(){return tt}});var o=r(73273),S=r(10570),i=r(33346),j=r(40727),B=r(17122),M=r(66146),_=r(63945),$=r(56197),N=r(58359),T=r(84875),w=r.n(T),Z=r(50959),n=r(169),l=r(60545),u=r(19494),a=r(32682),m=r(83964),s=r.n(m),y=r(38532),C=r.n(y),h=r(683),I=r(21757),d=r(75200),O=r(12682),t=r(26488),c=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},g=function(e){var f,b,P;return(0,o.Z)({},e.componentCls,(0,i.Z)((0,i.Z)({},t.Wf===null||t.Wf===void 0?void 0:(0,t.Wf)(e)),{},(P={position:"relative",backgroundColor:e.pageHeaderBgGhost,paddingBlock:e.pageHeaderPaddingVertical+2,paddingInline:e.pageHeaderPadding,"&-no-children":{height:(f=e.layout)===null||f===void 0||(f=f.pageContainer)===null||f===void 0?void 0:f.paddingBlockPageContainerContent},"& &-has-breadcrumb":{paddingBlockStart:e.pageHeaderPaddingBreadCrumb},"& &-has-footer":{paddingBlockEnd:0},"& &-back":(0,o.Z)({marginInlineEnd:e.margin,fontSize:16,lineHeight:1,"&-button":(0,i.Z)((0,i.Z)({fontSize:16},t.Nd===null||t.Nd===void 0?void 0:(0,t.Nd)(e)),{},{color:e.pageHeaderColorBack,cursor:"pointer"})},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:0})},(0,o.Z)(P,"& ".concat("ant","-divider-vertical"),{height:14,marginBlock:0,marginInline:e.marginSM,verticalAlign:"middle"}),(0,o.Z)(P,"& &-breadcrumb + &-heading",{marginBlockStart:e.marginXS}),(0,o.Z)(P,"& &-heading",{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,overflow:"hidden"},"&-title":(0,i.Z)((0,i.Z)({marginInlineEnd:e.marginSM,marginBlockEnd:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderFontSizeHeaderTitle,lineHeight:e.controlHeight+"px"},c()),{},(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0,marginInlineStart:e.marginSM})),"&-avatar":(0,o.Z)({marginInlineEnd:e.marginSM},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:e.marginSM}),"&-tags":(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{float:"right"}),"&-sub-title":(0,i.Z)((0,i.Z)({marginInlineEnd:e.marginSM,color:e.colorTextSecondary,fontSize:e.pageHeaderFontSizeHeaderSubTitle,lineHeight:e.lineHeight},c()),{},(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:12})),"&-extra":(b={marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,whiteSpace:"nowrap","> *":(0,o.Z)({"white-space":"unset"},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:e.marginSM,marginInlineStart:0})},(0,o.Z)(b,"".concat(e.componentCls,"-rlt &"),{float:"left"}),(0,o.Z)(b,"*:first-child",(0,o.Z)({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0})),b)}),(0,o.Z)(P,"&-content",{paddingBlockStart:e.pageHeaderPaddingContentPadding}),(0,o.Z)(P,"&-footer",{marginBlockStart:e.margin}),(0,o.Z)(P,"&-compact &-heading",{flexWrap:"wrap"}),(0,o.Z)(P,"&-wide",{maxWidth:1152,margin:"0 auto"}),(0,o.Z)(P,"&-rtl",{direction:"rtl"}),P)))};function x(D){return(0,t.Xj)("ProLayoutPageHeader",function(e){var f=(0,i.Z)((0,i.Z)({},e),{},{componentCls:".".concat(D),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:e.paddingSM,pageHeaderColorBack:e.colorTextHeading,pageHeaderFontSizeHeaderTitle:e.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:e.paddingSM});return[g(f)]})}var v=r(11527),H=function(e,f,b,P){return!b||!P?null:(0,v.jsx)("div",{className:"".concat(e,"-back ").concat(f).trim(),children:(0,v.jsx)("div",{role:"button",onClick:function(U){P==null||P(U)},className:"".concat(e,"-back-button ").concat(f).trim(),"aria-label":"back",children:b})})},ae=function(e,f){var b;return(b=e.items)!==null&&b!==void 0&&b.length?(0,v.jsx)(h.Z,(0,i.Z)((0,i.Z)({},e),{},{className:w()("".concat(f,"-breadcrumb"),e.className)})):null},le=function(e){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:f==="rtl"?(0,v.jsx)(C(),{}):(0,v.jsx)(s(),{})},Pe=function(e,f){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",P=arguments.length>3?arguments[3]:void 0,L=f.title,U=f.avatar,A=f.subTitle,ne=f.tags,z=f.extra,G=f.onBack,F="".concat(e,"-heading"),q=L||A||ne||z;if(!q)return null;var V=le(f,b),K=H(e,P,V,G),ee=K||U||q;return(0,v.jsxs)("div",{className:F+" "+P,children:[ee&&(0,v.jsxs)("div",{className:"".concat(F,"-left ").concat(P).trim(),children:[K,U&&(0,v.jsx)(I.C,(0,i.Z)({className:w()("".concat(F,"-avatar"),P,U.className)},U)),L&&(0,v.jsx)("span",{className:"".concat(F,"-title ").concat(P).trim(),title:typeof L=="string"?L:void 0,children:L}),A&&(0,v.jsx)("span",{className:"".concat(F,"-sub-title ").concat(P).trim(),title:typeof A=="string"?A:void 0,children:A}),ne&&(0,v.jsx)("span",{className:"".concat(F,"-tags ").concat(P).trim(),children:ne})]}),z&&(0,v.jsx)("span",{className:"".concat(F,"-extra ").concat(P).trim(),children:(0,v.jsx)(d.Z,{children:z})})]})},ie=function(e,f,b){return f?(0,v.jsx)("div",{className:"".concat(e,"-footer ").concat(b).trim(),children:f}):null},Oe=function(e,f,b){return(0,v.jsx)("div",{className:"".concat(e,"-content ").concat(b).trim(),children:f})},Te=function(e){var f,b,P=Z.useState(!1),L=(0,a.Z)(P,2),U=L[0],A=L[1],ne=function(re){var ue=re.width;return A(ue<768)},z=Z.useContext($.ZP.ConfigContext),G=z.getPrefixCls,F=z.direction,q=e.prefixCls,V=e.style,K=e.footer,ee=e.children,E=e.breadcrumb,k=e.breadcrumbRender,R=e.className,oe=e.contentWidth,J=e.layout,W=G("page-header",q),te=x(W),Se=te.wrapSSR,Q=te.hashId,we=function(){return E&&!(E!=null&&E.items)&&E!==null&&E!==void 0&&E.routes&&(E.items=E.routes),E!=null&&E.items?ae(E,W):null},Ze=we(),ce=E&&"props"in E,Me=(f=k==null?void 0:k((0,i.Z)((0,i.Z)({},e),{},{prefixCls:W}),Ze))!==null&&f!==void 0?f:Ze,ye=ce?E:Me,se=w()(W,Q,R,(b={},(0,o.Z)(b,"".concat(W,"-has-breadcrumb"),!!ye),(0,o.Z)(b,"".concat(W,"-has-footer"),!!K),(0,o.Z)(b,"".concat(W,"-rtl"),F==="rtl"),(0,o.Z)(b,"".concat(W,"-compact"),U),(0,o.Z)(b,"".concat(W,"-wide"),oe==="Fixed"&&J=="top"),(0,o.Z)(b,"".concat(W,"-ghost"),!0),b)),he=Pe(W,e,F,Q),Ce=ee&&Oe(W,ee,Q),be=ie(W,K,Q);return!ye&&!he&&!be&&!Ce?(0,v.jsx)("div",{className:w()(Q,["".concat(W,"-no-children")])}):Se((0,v.jsx)(O.Z,{onResize:ne,children:(0,v.jsxs)("div",{className:se,style:V,children:[ye,he,Ce,be]})}))},fe=r(27449),Y=function(e){if(!e)return 1;var f=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1;return(window.devicePixelRatio||1)/f},ve=function(e){var f=(0,t.dQ)(),b=f.token,P=e.children,L=e.style,U=e.className,A=e.markStyle,ne=e.markClassName,z=e.zIndex,G=z===void 0?9:z,F=e.gapX,q=F===void 0?212:F,V=e.gapY,K=V===void 0?222:V,ee=e.width,E=ee===void 0?120:ee,k=e.height,R=k===void 0?64:k,oe=e.rotate,J=oe===void 0?-22:oe,W=e.image,te=e.offsetLeft,Se=e.offsetTop,Q=e.fontStyle,we=Q===void 0?"normal":Q,Ze=e.fontWeight,ce=Ze===void 0?"normal":Ze,Me=e.fontColor,ye=Me===void 0?b.colorFill:Me,se=e.fontSize,he=se===void 0?16:se,Ce=e.fontFamily,be=Ce===void 0?"sans-serif":Ce,Ne=e.prefixCls,re=(0,Z.useContext)($.ZP.ConfigContext),ue=re.getPrefixCls,He=ue("pro-layout-watermark",Ne),nt=w()("".concat(He,"-wrapper"),U),rt=w()(He,ne),at=(0,Z.useState)(""),ze=(0,a.Z)(at,2),Fe=ze[0],Xe=ze[1];return(0,Z.useEffect)(function(){var Be=document.createElement("canvas"),me=Be.getContext("2d"),je=Y(me),ot="".concat((q+E)*je,"px"),it="".concat((K+R)*je,"px"),lt=te||q/2,ct=Se||K/2;if(Be.setAttribute("width",ot),Be.setAttribute("height",it),!me){console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");return}me.translate(lt*je,ct*je),me.rotate(Math.PI/180*Number(J));var ut=E*je,ke=R*je,Ue=function(De){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,$e=Number(he)*je;me.font="".concat(we," normal ").concat(ce," ").concat($e,"px/").concat(ke,"px ").concat(be),me.fillStyle=ye,Array.isArray(De)?De==null||De.forEach(function(dt,st){return me.fillText(dt,0,st*$e+We)}):me.fillText(De,0,We?We+$e:0),Xe(Be.toDataURL())};if(W){var Re=new Image;Re.crossOrigin="anonymous",Re.referrerPolicy="no-referrer",Re.src=W,Re.onload=function(){if(me.drawImage(Re,0,0,ut,ke),Xe(Be.toDataURL()),e.content){Ue(e.content,Re.height+8);return}};return}if(e.content){Ue(e.content);return}},[q,K,te,Se,J,we,ce,E,R,be,ye,W,e.content,he]),(0,v.jsxs)("div",{style:(0,i.Z)({position:"relative"},L),className:nt,children:[P,(0,v.jsx)("div",{className:rt,style:(0,i.Z)((0,i.Z)({zIndex:G,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(q+E,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Fe?{backgroundImage:"url('".concat(Fe,"')")}:{}),A)})]})},Ie=[576,768,992,1200].map(function(D){return"@media (max-width: ".concat(D,"px)")}),de=(0,a.Z)(Ie,4),xe=de[0],pe=de[1],_e=de[2],ge=de[3],Ae=function(e){var f,b,P,L,U,A,ne,z,G,F,q,V,K,ee,E,k,R,oe,J,W,te;return(0,o.Z)({},e.componentCls,(te={position:"relative","&-children-container":{paddingBlockStart:0,paddingBlockEnd:(f=e.layout)===null||f===void 0||(f=f.pageContainer)===null||f===void 0?void 0:f.paddingBlockPageContainerContent,paddingInline:(b=e.layout)===null||b===void 0||(b=b.pageContainer)===null||b===void 0?void 0:b.paddingInlinePageContainerContent},"&-children-container-no-header":{paddingBlockStart:(P=e.layout)===null||P===void 0||(P=P.pageContainer)===null||P===void 0?void 0:P.paddingBlockPageContainerContent},"&-affix":(0,o.Z)({},"".concat(e.antCls,"-affix"),(0,o.Z)({},"".concat(e.componentCls,"-warp"),{backgroundColor:(L=e.layout)===null||L===void 0||(L=L.pageContainer)===null||L===void 0?void 0:L.colorBgPageContainerFixed,transition:"background-color 0.3s",boxShadow:"0 2px 8px #f0f1f2"}))},(0,o.Z)(te,"& &-warp-page-header",(J={paddingBlockStart:((U=(A=e.layout)===null||A===void 0||(A=A.pageContainer)===null||A===void 0?void 0:A.paddingBlockPageContainerContent)!==null&&U!==void 0?U:40)/4,paddingBlockEnd:((ne=(z=e.layout)===null||z===void 0||(z=z.pageContainer)===null||z===void 0?void 0:z.paddingBlockPageContainerContent)!==null&&ne!==void 0?ne:40)/2,paddingInlineStart:(G=e.layout)===null||G===void 0||(G=G.pageContainer)===null||G===void 0?void 0:G.paddingInlinePageContainerContent,paddingInlineEnd:(F=e.layout)===null||F===void 0||(F=F.pageContainer)===null||F===void 0?void 0:F.paddingInlinePageContainerContent},(0,o.Z)(J,"& ~ ".concat(e.proComponentsCls,"-grid-content"),(0,o.Z)({},"".concat(e.proComponentsCls,"-page-container-children-content"),{paddingBlock:((q=(V=e.layout)===null||V===void 0||(V=V.pageContainer)===null||V===void 0?void 0:V.paddingBlockPageContainerContent)!==null&&q!==void 0?q:24)/3})),(0,o.Z)(J,"".concat(e.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((K=(ee=e.layout)===null||ee===void 0||(ee=ee.pageContainer)===null||ee===void 0?void 0:ee.paddingBlockPageContainerContent)!==null&&K!==void 0?K:40)/4+10}),(0,o.Z)(J,"".concat(e.antCls,"-page-header-heading"),{paddingBlockStart:((E=(k=e.layout)===null||k===void 0||(k=k.pageContainer)===null||k===void 0?void 0:k.paddingBlockPageContainerContent)!==null&&E!==void 0?E:40)/4}),(0,o.Z)(J,"".concat(e.antCls,"-page-header-footer"),{marginBlockStart:((R=(oe=e.layout)===null||oe===void 0||(oe=oe.pageContainer)===null||oe===void 0?void 0:oe.paddingBlockPageContainerContent)!==null&&R!==void 0?R:40)/4}),J)),(0,o.Z)(te,"&-detail",(0,o.Z)({display:"flex"},xe,{display:"block"})),(0,o.Z)(te,"&-main",{width:"100%"}),(0,o.Z)(te,"&-row",(0,o.Z)({display:"flex",width:"100%"},pe,{display:"block"})),(0,o.Z)(te,"&-content",{flex:"auto",width:"100%"}),(0,o.Z)(te,"&-extraContent",(W={flex:"0 1 auto",minWidth:"242px",marginInlineStart:88,textAlign:"end"},(0,o.Z)(W,ge,{marginInlineStart:44}),(0,o.Z)(W,_e,{marginInlineStart:20}),(0,o.Z)(W,pe,{marginInlineStart:0,textAlign:"start"}),(0,o.Z)(W,xe,{marginInlineStart:0}),W)),te))};function Ee(D,e){return(0,t.Xj)("ProLayoutPageContainer",function(f){var b,P=(0,i.Z)((0,i.Z)({},f),{},{componentCls:".".concat(D),layout:(0,i.Z)((0,i.Z)({},f==null?void 0:f.layout),{},{pageContainer:(0,i.Z)((0,i.Z)({},f==null||(b=f.layout)===null||b===void 0?void 0:b.pageContainer),e)})});return[Ae(P)]})}function Ge(D,e){var f=e.stylish;return(0,t.Xj)("ProLayoutPageContainerStylish",function(b){var P=(0,i.Z)((0,i.Z)({},b),{},{componentCls:".".concat(D)});return f?[(0,o.Z)({},"div".concat(P.componentCls),f==null?void 0:f(P))]:[]})}var Ye=r(11175),Ke=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","childrenContentStyle","style","prefixCls","hashId","value","breadcrumbRender"],Qe=["children","loading","className","style","footer","affixProps","token","fixedHeader","breadcrumbRender","footerToolBarProps","childrenContentStyle"];function Ve(D){return(0,j.Z)(D)==="object"?D:{spinning:D}}var Je=function(e){var f=e.tabList,b=e.tabActiveKey,P=e.onTabChange,L=e.hashId,U=e.tabBarExtraContent,A=e.tabProps,ne=e.prefixedClassName;return Array.isArray(f)||U?(0,v.jsx)(M.Z,(0,i.Z)((0,i.Z)({className:"".concat(ne,"-tabs ").concat(L).trim(),activeKey:b,onChange:function(G){P&&P(G)},tabBarExtraContent:U,items:f==null?void 0:f.map(function(z,G){var F;return(0,i.Z)((0,i.Z)({label:z.tab},z),{},{key:((F=z.key)===null||F===void 0?void 0:F.toString())||(G==null?void 0:G.toString())})})},A),{},{children:(0,Ye.n)(_.Z,"4.23.0")<0?f==null?void 0:f.map(function(z,G){return(0,v.jsx)(M.Z.TabPane,(0,i.Z)({tab:z.tab},z),z.key||G)}):null})):null},qe=function(e,f,b,P){return!e&&!f?null:(0,v.jsx)("div",{className:"".concat(b,"-detail ").concat(P).trim(),children:(0,v.jsx)("div",{className:"".concat(b,"-main ").concat(P).trim(),children:(0,v.jsxs)("div",{className:"".concat(b,"-row ").concat(P).trim(),children:[e&&(0,v.jsx)("div",{className:"".concat(b,"-content ").concat(P).trim(),children:e}),f&&(0,v.jsx)("div",{className:"".concat(b,"-extraContent ").concat(P).trim(),children:f})]})})})},ft=function(e){var f=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},f==null?void 0:f.breadcrumb),f==null?void 0:f.breadcrumbProps),e))})},Le=function(e){var f,b=e.title,P=e.content,L=e.pageHeaderRender,U=e.header,A=e.prefixedClassName,ne=e.extraContent,z=e.childrenContentStyle,G=e.style,F=e.prefixCls,q=e.hashId,V=e.value,K=e.breadcrumbRender,ee=(0,S.Z)(e,Ke),E=function(){if(K)return K};if(L===!1)return null;if(L)return(0,v.jsxs)(v.Fragment,{children:[" ",L((0,i.Z)((0,i.Z)({},e),V))]});var k=b;!b&&b!==!1&&(k=V.title);var R=(0,i.Z)((0,i.Z)((0,i.Z)({},V),{},{title:k},ee),{},{footer:Je((0,i.Z)((0,i.Z)({},ee),{},{hashId:q,breadcrumbRender:K,prefixedClassName:A}))},U),oe=R,J=oe.breadcrumb,W=(!J||!(J!=null&&J.itemRender)&&!(J!=null&&(f=J.items)!==null&&f!==void 0&&f.length))&&!K;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(te){return!R[te]})&&W&&!P&&!ne?null:(0,v.jsx)(Te,(0,i.Z)((0,i.Z)({},R),{},{className:"".concat(A,"-warp-page-header ").concat(q).trim(),breadcrumb:K===!1?void 0:(0,i.Z)((0,i.Z)({},R.breadcrumb),V.breadcrumbProps),breadcrumbRender:E(),prefixCls:F,children:(U==null?void 0:U.children)||qe(P,ne,A,q)}))},et=function(e){var f,b,P,L=e.children,U=e.loading,A=U===void 0?!1:U,ne=e.className,z=e.style,G=e.footer,F=e.affixProps,q=e.token,V=e.fixedHeader,K=e.breadcrumbRender,ee=e.footerToolBarProps,E=e.childrenContentStyle,k=(0,S.Z)(e,Qe),R=(0,Z.useContext)(n.X);(0,Z.useEffect)(function(){var re;return!R||!(R!=null&&R.setHasPageContainer)?function(){}:(R==null||(re=R.setHasPageContainer)===null||re===void 0||re.call(R,function(ue){return ue+1}),function(){var ue;R==null||(ue=R.setHasPageContainer)===null||ue===void 0||ue.call(R,function(He){return He-1})})},[]);var oe=(0,Z.useContext)(B.L_),J=oe.token,W=(0,Z.useContext)($.ZP.ConfigContext),te=W.getPrefixCls,Se=e.prefixCls||te("pro"),Q="".concat(Se,"-page-container"),we=Ee(Q,q),Ze=we.wrapSSR,ce=we.hashId,Me=Ge("".concat(Q,".").concat(Q,"-stylish"),{stylish:e.stylish}),ye=(0,Z.useMemo)(function(){var re;return K==!1?!1:K||(k==null||(re=k.header)===null||re===void 0?void 0:re.breadcrumbRender)},[K,k==null||(f=k.header)===null||f===void 0?void 0:f.breadcrumbRender]),se=Le((0,i.Z)((0,i.Z)({},k),{},{breadcrumbRender:ye,ghost:!0,hashId:ce,prefixCls:void 0,prefixedClassName:Q,value:R})),he=(0,Z.useMemo)(function(){if(Z.isValidElement(A))return A;if(typeof A=="boolean"&&!A)return null;var re=Ve(A);return re.spinning?(0,v.jsx)(fe.S,(0,i.Z)({},re)):null},[A]),Ce=(0,Z.useMemo)(function(){return L?(0,v.jsx)(v.Fragment,{children:(0,v.jsx)("div",{className:w()(ce,"".concat(Q,"-children-container"),(0,o.Z)({},"".concat(Q,"-children-container-no-header"),!se)),style:E,children:L})}):null},[L,Q,E,ce]),be=(0,Z.useMemo)(function(){var re=he||Ce;if(e.waterMarkProps||R.waterMarkProps){var ue=(0,i.Z)((0,i.Z)({},R.waterMarkProps),e.waterMarkProps);return(0,v.jsx)(ve,(0,i.Z)((0,i.Z)({},ue),{},{children:re}))}return re},[e.waterMarkProps,R.waterMarkProps,he,Ce]),Ne=w()(Q,ce,ne,(b={},(0,o.Z)(b,"".concat(Q,"-with-footer"),G),(0,o.Z)(b,"".concat(Q,"-with-affix"),V&&se),(0,o.Z)(b,"".concat(Q,"-stylish"),!!k.stylish),b));return Ze(Me.wrapSSR((0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{style:z,className:Ne,children:[V&&se?(0,v.jsx)(N.Z,(0,i.Z)((0,i.Z)({offsetTop:R.hasHeader&&R.fixedHeader?(P=J.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.heightLayoutHeader:1},F),{},{className:"".concat(Q,"-affix ").concat(ce).trim(),children:(0,v.jsx)("div",{className:"".concat(Q,"-warp ").concat(ce).trim(),children:se})})):se,be&&(0,v.jsx)(u.f,{children:be})]}),G&&(0,v.jsx)(l.S,(0,i.Z)((0,i.Z)({stylish:k.footerStylish,prefixCls:Se},ee),{},{children:G}))]})))},tt=function(e){return(0,v.jsx)(B._Y,{needDeps:!0,children:(0,v.jsx)(et,(0,i.Z)({},e))})},vt=function(e){var f=useContext(RouteContext);return Le(_objectSpread(_objectSpread({},e),{},{hashId:"",value:f}))}},27449:function(X,p,r){"use strict";r.d(p,{S:function(){return _}});var o=r(33346),S=r(10570),i=r(38705),j=r(50959),B=r(11527),M=["isLoading","pastDelay","timedOut","error","retry"],_=function(N){var T=N.isLoading,w=N.pastDelay,Z=N.timedOut,n=N.error,l=N.retry,u=(0,S.Z)(N,M);return(0,B.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,B.jsx)(i.Z,(0,o.Z)({size:"large"},u))})}},169:function(X,p,r){"use strict";r.d(p,{X:function(){return S}});var o=r(50959),S=(0,o.createContext)({})},19111:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=r;function r(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},89877:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.default=r;function r(o,S){if(!o)return!1;if(o.contains)return o.contains(S);for(var i=S;i;){if(i===o)return!0;i=i.parentNode}return!1}},4128:function(X,p,r){"use strict";var o=r(75449).default;Object.defineProperty(p,"__esModule",{value:!0}),p.clearContainerCache=a,p.injectCSS=Z,p.removeCSS=l,p.updateCSS=m;var S=o(r(19111)),i=o(r(89877)),j="data-rc-order",B="data-rc-priority",M="rc-util-key",_=new Map;function $(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=s.mark;return y?y.startsWith("data-")?y:"data-".concat(y):M}function N(s){if(s.attachTo)return s.attachTo;var y=document.querySelector("head");return y||document.body}function T(s){return s==="queue"?"prependQueue":s?"prepend":"append"}function w(s){return Array.from((_.get(s)||s).children).filter(function(y){return y.tagName==="STYLE"})}function Z(s){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,S.default)())return null;var C=y.csp,h=y.prepend,I=y.priority,d=I===void 0?0:I,O=T(h),t=O==="prependQueue",c=document.createElement("style");c.setAttribute(j,O),t&&d&&c.setAttribute(B,"".concat(d)),C!=null&&C.nonce&&(c.nonce=C==null?void 0:C.nonce),c.innerHTML=s;var g=N(y),x=g.firstChild;if(h){if(t){var v=w(g).filter(function(H){if(!["prepend","prependQueue"].includes(H.getAttribute(j)))return!1;var ae=Number(H.getAttribute(B)||0);return d>=ae});if(v.length)return g.insertBefore(c,v[v.length-1].nextSibling),c}g.insertBefore(c,x)}else g.appendChild(c);return c}function n(s){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=N(y);return w(C).find(function(h){return h.getAttribute($(y))===s})}function l(s){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=n(s,y);if(C){var h=N(y);h.removeChild(C)}}function u(s,y){var C=_.get(s);if(!C||!(0,i.default)(document,C)){var h=Z("",y),I=h.parentNode;_.set(s,I),s.removeChild(h)}}function a(){_.clear()}function m(s,y){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=N(C);u(h,C);var I=n(y,C);if(I){var d,O;if((d=C.csp)!==null&&d!==void 0&&d.nonce&&I.nonce!==((O=C.csp)===null||O===void 0?void 0:O.nonce)){var t;I.nonce=(t=C.csp)===null||t===void 0?void 0:t.nonce}return I.innerHTML!==s&&(I.innerHTML=s),I}var c=Z(s,C);return c.setAttribute($(C),y),c}},75958:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getShadowRoot=S,p.inShadow=o;function r(i){var j;return i==null||(j=i.getRootNode)===null||j===void 0?void 0:j.call(i)}function o(i){return r(i)instanceof ShadowRoot}function S(i){return o(i)?r(i):null}},67856:function(X,p){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.call=M,p.default=void 0,p.note=j,p.noteOnce=$,p.preMessage=void 0,p.resetWarned=B,p.warning=i,p.warningOnce=_;var r={},o=[],S=p.preMessage=function(w){o.push(w)};function i(T,w){if(!1)var Z}function j(T,w){if(!1)var Z}function B(){r={}}function M(T,w,Z){!w&&!r[Z]&&(T(!1,Z),r[Z]=!0)}function _(T,w){M(i,T,w)}function $(T,w){M(j,T,w)}_.preMessage=S,_.resetWarned=B,_.noteOnce=$;var N=p.default=_},75449:function(X){function p(r){return r&&r.__esModule?r:{default:r}}X.exports=p,X.exports.__esModule=!0,X.exports.default=X.exports}}]); diff --git a/6053.afa1ccf0.async.js b/6053.afa1ccf0.async.js deleted file mode 100644 index 0e02da9d..00000000 --- a/6053.afa1ccf0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6053],{6053:function(_,u,r){r.d(u,{ZP:function(){return X}});var e=r(50959),f=r(71349),L=r(67536),v=r(39388),B=r(38126),C={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},g=C,D=r(38782),W=function(l,a){return e.createElement(D.Z,(0,B.Z)({},l,{ref:a,icon:g}))},A=e.forwardRef(W),j=r(84875),F=r.n(j),z=r(31594),$=()=>e.createElement("svg",{width:"252",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .012)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),e.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),e.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),e.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),e.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),e.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),e.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),e.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),e.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),e.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),e.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),e.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),e.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),e.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),e.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),e.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),e.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),e.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),e.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),e.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),e.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),e.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),e.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),e.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),e.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),e.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),e.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),e.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),e.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),e.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),e.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),e.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),e.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),e.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),e.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),S=()=>e.createElement("svg",{width:"254",height:"294"},e.createElement("defs",null,e.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),e.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(0 .067)"},e.createElement("mask",{fill:"#fff"}),e.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),e.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),e.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),e.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),e.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),e.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),e.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),e.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),e.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),e.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),e.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),e.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),e.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),e.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),e.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),e.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),e.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),e.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),e.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),e.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),e.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),e.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),e.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),e.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),e.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),e.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),e.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),e.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),e.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),e.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),e.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),e.createElement("mask",{fill:"#fff"}),e.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),e.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),e.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),e.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),e.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),e.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),e.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),E=r(60076),x=r(81501),H=r(90467);const I=t=>{const{componentCls:l,lineHeightHeading3:a,iconCls:n,padding:s,paddingXL:o,paddingXS:M,paddingLG:i,marginXS:p,lineHeight:k}=t;return{[l]:{padding:`${(0,E.bf)(t.calc(i).mul(2).equal())} ${(0,E.bf)(o)}`,"&-rtl":{direction:"rtl"}},[`${l} ${l}-image`]:{width:t.imageWidth,height:t.imageHeight,margin:"auto"},[`${l} ${l}-icon`]:{marginBottom:i,textAlign:"center",[`& > ${n}`]:{fontSize:t.iconFontSize}},[`${l} ${l}-title`]:{color:t.colorTextHeading,fontSize:t.titleFontSize,lineHeight:a,marginBlock:p,textAlign:"center"},[`${l} ${l}-subtitle`]:{color:t.colorTextDescription,fontSize:t.subtitleFontSize,lineHeight:k,textAlign:"center"},[`${l} ${l}-content`]:{marginTop:i,padding:`${(0,E.bf)(i)} ${(0,E.bf)(t.calc(s).mul(2.5).equal())}`,backgroundColor:t.colorFillAlter},[`${l} ${l}-extra`]:{margin:t.extraMargin,textAlign:"center","& > *":{marginInlineEnd:M,"&:last-child":{marginInlineEnd:0}}}}},N=t=>{const{componentCls:l,iconCls:a}=t;return{[`${l}-success ${l}-icon > ${a}`]:{color:t.resultSuccessIconColor},[`${l}-error ${l}-icon > ${a}`]:{color:t.resultErrorIconColor},[`${l}-info ${l}-icon > ${a}`]:{color:t.resultInfoIconColor},[`${l}-warning ${l}-icon > ${a}`]:{color:t.resultWarningIconColor}}},V=t=>[I(t),N(t)],y=t=>V(t),R=t=>({titleFontSize:t.fontSizeHeading3,subtitleFontSize:t.fontSize,iconFontSize:t.fontSizeHeading3*3,extraMargin:`${t.paddingLG}px 0 0 0`});var T=(0,x.I$)("Result",t=>{const l=t.colorInfo,a=t.colorError,n=t.colorSuccess,s=t.colorWarning,o=(0,H.TS)(t,{resultInfoIconColor:l,resultErrorIconColor:a,resultSuccessIconColor:n,resultWarningIconColor:s,imageWidth:250,imageHeight:295});return[y(o)]},R),b=()=>e.createElement("svg",{width:"251",height:"294"},e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),e.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),e.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),e.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),e.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),e.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),e.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),e.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),e.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),e.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),e.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),e.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),e.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),e.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),e.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),e.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),e.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),e.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),e.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),e.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),e.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),e.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),e.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),e.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),e.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),e.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),e.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),e.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),e.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),e.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),e.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),e.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),e.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),e.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),e.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),e.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),e.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),e.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})));const G={success:f.Z,error:L.Z,info:v.Z,warning:A},h={404:$,500:S,403:b},P=Object.keys(h),Z=t=>{let{prefixCls:l,icon:a,status:n}=t;const s=F()(`${l}-icon`);if(P.includes(`${n}`)){const M=h[n];return e.createElement("div",{className:`${s} ${l}-image`},e.createElement(M,null))}const o=e.createElement(G[n]);return a===null||a===!1?null:e.createElement("div",{className:s},a||o)},O=t=>{let{prefixCls:l,extra:a}=t;return a?e.createElement("div",{className:`${l}-extra`},a):null},m=t=>{let{prefixCls:l,className:a,rootClassName:n,subTitle:s,title:o,style:M,children:i,status:p="info",icon:k,extra:U}=t;const{getPrefixCls:w,direction:J,result:d}=e.useContext(z.E_),c=w("result",l),[K,Q]=T(c),Y=F()(c,`${c}-${p}`,a,d==null?void 0:d.className,n,{[`${c}-rtl`]:J==="rtl"},Q),q=Object.assign(Object.assign({},d==null?void 0:d.style),M);return K(e.createElement("div",{className:Y,style:q},e.createElement(Z,{prefixCls:c,status:p,icon:k}),e.createElement("div",{className:`${c}-title`},o),s&&e.createElement("div",{className:`${c}-subtitle`},s),e.createElement(O,{prefixCls:c,extra:U}),i&&e.createElement("div",{className:`${c}-content`},i)))};m.PRESENTED_IMAGE_403=h[403],m.PRESENTED_IMAGE_404=h[404],m.PRESENTED_IMAGE_500=h[500];var X=m}}]); diff --git a/6146.905b09cf.async.js b/6146.905b09cf.async.js deleted file mode 100644 index cabb1fc3..00000000 --- a/6146.905b09cf.async.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6146],{63374:function(Ue,ve){var u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};ve.Z=u},48491:function(Ue,ve,u){var n=u(38126),$e=u(50959),Ze=u(63374),Ne=u(38782),_e=function(ee,H){return $e.createElement(Ne.Z,(0,n.Z)({},ee,{ref:H,icon:Ze.Z}))};ve.Z=$e.forwardRef(_e)},66146:function(Ue,ve,u){u.d(ve,{Z:function(){return za}});var n=u(50959),$e=u(22410),Ze=u(40506),Ne=u(48491),_e=u(84875),k=u.n(_e),ee=u(38126),H=u(73273),U=u(33346),R=u(32682),ze=u(40727),Se=u(10570),Fe=u(65589),Lt=u(88473),Qa=u(12868);function wt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=(0,U.Z)({inkBar:!0},(0,ze.Z)(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var ye=(0,n.createContext)(null),Ye=u(1788),Me=u(12682),Zt=u(7748),Nt=u(12602),Qe=u(28449),_t=function(t){var a=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicatorSize,c=(0,n.useState)(),l=(0,R.Z)(c,2),s=l[0],d=l[1],y=(0,n.useRef)(),f=function(I){return typeof o=="function"?o(I):typeof o=="number"?o:I};function $(){Qe.Z.cancel(y.current)}return(0,n.useEffect)(function(){var p={};return a&&(r?(i?(p.right=a.right+a.width/2,p.transform="translateX(50%)"):(p.left=a.left+a.width/2,p.transform="translateX(-50%)"),p.width=f(a.width)):(p.top=a.top+a.height/2,p.transform="translateY(-50%)",p.height=f(a.height))),$(),y.current=(0,Qe.Z)(function(){d(p)}),$},[a,r,i,o]),{style:s}},zt=_t,Je={width:0,height:0,left:0,top:0};function Mt(e,t,a){return(0,n.useMemo)(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Je,c=o.left+o.width,l=0;lP?(m=g,C.current="x"):(m=E,C.current="y"),t(-m,-m)&&b.preventDefault()}var w=(0,n.useRef)(null);w.current={onTouchStart:v,onTouchMove:L,onTouchEnd:A,onWheel:G},n.useEffect(function(){function b(T){w.current.onTouchStart(T)}function g(T){w.current.onTouchMove(T)}function E(T){w.current.onTouchEnd(T)}function m(T){w.current.onWheel(T)}return document.addEventListener("touchmove",g,{passive:!1}),document.addEventListener("touchend",E,{passive:!1}),e.current.addEventListener("touchstart",b,{passive:!1}),e.current.addEventListener("wheel",m),function(){document.removeEventListener("touchmove",g),document.removeEventListener("touchend",E)}},[])}var At=u(77189);function at(e){var t=(0,n.useState)(0),a=(0,R.Z)(t,2),r=a[0],i=a[1],o=(0,n.useRef)(0),c=(0,n.useRef)();return c.current=e,(0,At.o)(function(){var l;(l=c.current)===null||l===void 0||l.call(c)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function Dt(e){var t=(0,n.useRef)([]),a=(0,n.useState)({}),r=(0,R.Z)(a,2),i=r[1],o=(0,n.useRef)(typeof e=="function"?e():e),c=at(function(){var s=o.current;t.current.forEach(function(d){s=d(s)}),t.current=[],o.current=s,i({})});function l(s){t.current.push(s),c()}return[o.current,l]}var nt={width:0,height:0,left:0,top:0,right:0};function Wt(e,t,a,r,i,o,c){var l=c.tabs,s=c.tabPosition,d=c.rtl,y,f,$;return["top","bottom"].includes(s)?(y="width",f=d?"right":"left",$=Math.abs(a)):(y="height",f="top",$=-a),(0,n.useMemo)(function(){if(!l.length)return[0,0];for(var p=l.length,I=p,N=0;N$+t){I=N-1;break}}for(var W=0,M=p-1;M>=0;M-=1){var v=e.get(l[M].key)||nt;if(v[f]<$){W=M+1;break}}return W>=I?[0,0]:[W,I]},[e,t,r,i,o,$,s,l.map(function(p){return p.key}).join("_"),d])}function rt(e){var t;return e instanceof Map?(t={},e.forEach(function(a,r){t[r]=a})):t=e,JSON.stringify(t)}var Gt="TABS_DQ";function it(e){return String(e).replace(/"/g,Gt)}function ot(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var Ht=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:n.createElement("button",{ref:t,type:"button",className:"".concat(a,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),lt=Ht,jt=n.forwardRef(function(e,t){var a=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,c={};return(0,ze.Z)(i)==="object"&&!n.isValidElement(i)?c=i:c.right=i,a==="right"&&(o=c.right),a==="left"&&(o=c.left),o?n.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),ct=jt,kt=u(20489),st=u(93442),Q=u(57),Kt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,c=e.mobile,l=e.moreIcon,s=l===void 0?"More":l,d=e.moreTransitionName,y=e.style,f=e.className,$=e.editable,p=e.tabBarGutter,I=e.rtl,N=e.removeAriaLabel,_=e.onTabClick,W=e.getPopupContainer,M=e.popupClassName,v=(0,n.useState)(!1),L=(0,R.Z)(v,2),A=L[0],C=L[1],G=(0,n.useState)(null),w=(0,R.Z)(G,2),b=w[0],g=w[1],E="".concat(r,"-more-popup"),m="".concat(a,"-dropdown"),T=b!==null?"".concat(E,"-").concat(b):null,P=o==null?void 0:o.dropdownAriaLabel;function O(x,B){x.preventDefault(),x.stopPropagation(),$.onEdit("remove",{key:B,event:x})}var Y=n.createElement(st.ZP,{onClick:function(B){var K=B.key,F=B.domEvent;_(K,F),C(!1)},prefixCls:"".concat(m,"-menu"),id:E,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[b],"aria-label":P!==void 0?P:"expanded dropdown"},i.map(function(x){var B=x.closable,K=x.disabled,F=x.closeIcon,X=x.key,J=x.label,ae=ot(B,F,$,K);return n.createElement(st.sN,{key:X,id:"".concat(E,"-").concat(X),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(X),disabled:K},n.createElement("span",null,J),ae&&n.createElement("button",{type:"button","aria-label":N||"remove",tabIndex:0,className:"".concat(m,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),O(re,X)}},F||$.removeIcon||"\xD7"))}));function ne(x){for(var B=i.filter(function(ae){return!ae.disabled}),K=B.findIndex(function(ae){return ae.key===b})||0,F=B.length,X=0;XS?"left":"right"})}),P=(0,R.Z)(T,2),O=P[0],Y=P[1],ne=qe(0,function(z,S){!m&&_&&_({direction:z>S?"top":"bottom"})}),te=(0,R.Z)(ne,2),j=te[0],le=te[1],me=(0,n.useState)([0,0]),x=(0,R.Z)(me,2),B=x[0],K=x[1],F=(0,n.useState)([0,0]),X=(0,R.Z)(F,2),J=X[0],ae=X[1],Te=(0,n.useState)([0,0]),re=(0,R.Z)(Te,2),Oe=re[0],Be=re[1],Ae=(0,n.useState)([0,0]),ge=(0,R.Z)(Ae,2),De=ge[0],Z=ge[1],ce=Dt(new Map),fe=(0,R.Z)(ce,2),Ma=fe[0],Oa=fe[1],Pe=Mt(L,Ma,J[0]),We=Ce(B,m),he=Ce(J,m),Ge=Ce(Oe,m),mt=Ce(De,m),gt=Wese?se:z}var je=(0,n.useRef)(null),Aa=(0,n.useState)(),ht=(0,R.Z)(Aa,2),Ee=ht[0],pt=ht[1];function ke(){pt(Date.now())}function Ke(){je.current&&clearTimeout(je.current)}Bt(w,function(z,S){function D(V,de){V(function(oe){var Le=He(oe+de);return Le})}return gt?(m?D(Y,z):D(le,S),Ke(),ke(),!0):!1}),(0,n.useEffect)(function(){return Ke(),Ee&&(je.current=setTimeout(function(){pt(0)},100)),Ke},[Ee]);var Da=Wt(Pe,q,m?O:j,he,Ge,mt,(0,U.Z)((0,U.Z)({},e),{},{tabs:L})),$t=(0,R.Z)(Da,2),Wa=$t[0],Ga=$t[1],St=(0,Zt.Z)(function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,S=Pe.get(z)||{width:0,height:0,left:0,right:0,top:0};if(m){var D=O;s?S.rightO+q&&(D=S.right+S.width-q):S.left<-O?D=-S.left:S.left+S.width>-O+q&&(D=-(S.left+S.width-q)),le(0),Y(He(D))}else{var V=j;S.top<-j?V=-S.top:S.top+S.height>-j+q&&(V=-(S.top+S.height-q)),Y(0),le(He(V))}}),Re={};$==="top"||$==="bottom"?Re[s?"marginRight":"marginLeft"]=p:Re.marginTop=p;var yt=L.map(function(z,S){var D=z.key;return n.createElement(Ut,{id:o,prefixCls:v,key:D,tab:z,style:S===0?void 0:Re,closable:z.closable,editable:y,active:D===l,renderWrapper:I,removeAriaLabel:f==null?void 0:f.removeAriaLabel,onClick:function(de){N(D,de)},onFocus:function(){St(D),ke(),w.current&&(s||(w.current.scrollLeft=0),w.current.scrollTop=0)}})}),xt=function(){return Oa(function(){var S,D=new Map,V=(S=b.current)===null||S===void 0?void 0:S.getBoundingClientRect();return L.forEach(function(de){var oe,Le=de.key,It=(oe=b.current)===null||oe===void 0?void 0:oe.querySelector('[data-node-key="'.concat(it(Le),'"]'));if(It){var Xa=Ft(It,V),we=(0,R.Z)(Xa,4),Va=we[0],Ua=we[1],Fa=we[2],Ya=we[3];D.set(Le,{width:Va,height:Ua,left:Fa,top:Ya})}}),D})};(0,n.useEffect)(function(){xt()},[L.map(function(z){return z.key}).join("_")]);var Ie=at(function(){var z=ue(A),S=ue(C),D=ue(G);K([z[0]-S[0]-D[0],z[1]-S[1]-D[1]]);var V=ue(E);Be(V);var de=ue(g);Z(de);var oe=ue(b);ae([oe[0]-V[0],oe[1]-V[1]]),xt()}),Ha=L.slice(0,Wa),ja=L.slice(Ga+1),Ct=[].concat((0,Ye.Z)(Ha),(0,Ye.Z)(ja)),Tt=Pe.get(l),ka=zt({activeTabOffset:Tt,horizontal:m,rtl:s,indicatorSize:W}),Ka=ka.style;(0,n.useEffect)(function(){St()},[l,ie,se,rt(Tt),rt(Pe),m]),(0,n.useEffect)(function(){Ie()},[s]);var Pt=!!Ct.length,pe="".concat(v,"-nav-wrap"),Xe,Ve,Et,Rt;return m?s?(Ve=O>0,Xe=O!==se):(Xe=O<0,Ve=O!==ie):(Et=j<0,Rt=j!==ie),n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{ref:(0,Nt.x1)(t,A),role:"tablist",className:k()("".concat(v,"-nav"),r),style:i,onKeyDown:function(){ke()}},n.createElement(ct,{ref:C,position:"left",extra:d,prefixCls:v}),n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{className:k()(pe,(a={},(0,H.Z)(a,"".concat(pe,"-ping-left"),Xe),(0,H.Z)(a,"".concat(pe,"-ping-right"),Ve),(0,H.Z)(a,"".concat(pe,"-ping-top"),Et),(0,H.Z)(a,"".concat(pe,"-ping-bottom"),Rt),a)),ref:w},n.createElement(Me.Z,{onResize:Ie},n.createElement("div",{ref:b,className:"".concat(v,"-nav-list"),style:{transform:"translate(".concat(O,"px, ").concat(j,"px)"),transition:Ee?"none":void 0}},yt,n.createElement(lt,{ref:E,prefixCls:v,locale:f,editable:y,style:(0,U.Z)((0,U.Z)({},yt.length===0?void 0:Re),{},{visibility:Pt?"hidden":null})}),n.createElement("div",{className:k()("".concat(v,"-ink-bar"),(0,H.Z)({},"".concat(v,"-ink-bar-animated"),c.inkBar)),style:Ka}))))),n.createElement(Xt,(0,ee.Z)({},e,{removeAriaLabel:f==null?void 0:f.removeAriaLabel,ref:g,prefixCls:v,tabs:Ct,className:!Pt&&Ba,tabMoving:!!Ee})),n.createElement(ct,{ref:G,position:"right",extra:d,prefixCls:v})))}),dt=Yt,Qt=n.forwardRef(function(e,t){var a=e.prefixCls,r=e.className,i=e.style,o=e.id,c=e.active,l=e.tabKey,s=e.children;return n.createElement("div",{id:o&&"".concat(o,"-panel-").concat(l),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(l),"aria-hidden":!c,style:i,className:k()(a,c&&"".concat(a,"-active"),r),ref:t},s)}),ut=Qt,Jt=["renderTabBar"],qt=["label","key"],ea=function(t){var a=t.renderTabBar,r=(0,Se.Z)(t,Jt),i=n.useContext(ye),o=i.tabs;if(a){var c=(0,U.Z)((0,U.Z)({},r),{},{panes:o.map(function(l){var s=l.label,d=l.key,y=(0,Se.Z)(l,qt);return n.createElement(ut,(0,ee.Z)({tab:s,key:d,tabKey:d},y))})});return a(c,dt)}return n.createElement(dt,r)},ta=ea,aa=u(10091),na=["key","forceRender","style","className","destroyInactiveTabPane"],ra=function(t){var a=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,c=t.destroyInactiveTabPane,l=n.useContext(ye),s=l.prefixCls,d=l.tabs,y=i.tabPane,f="".concat(s,"-tabpane");return n.createElement("div",{className:k()("".concat(s,"-content-holder"))},n.createElement("div",{className:k()("".concat(s,"-content"),"".concat(s,"-content-").concat(o),(0,H.Z)({},"".concat(s,"-content-animated"),y))},d.map(function($){var p=$.key,I=$.forceRender,N=$.style,_=$.className,W=$.destroyInactiveTabPane,M=(0,Se.Z)($,na),v=p===r;return n.createElement(aa.ZP,(0,ee.Z)({key:p,visible:v,forceRender:I,removeOnLeave:!!(c||W),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(L,A){var C=L.style,G=L.className;return n.createElement(ut,(0,ee.Z)({},M,{prefixCls:f,id:a,tabKey:p,animated:y,active:v,style:(0,U.Z)((0,U.Z)({},N),C),className:k()(_,G),ref:A}))})})))},ia=ra,oa=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ft=0,la=n.forwardRef(function(e,t){var a,r=e.id,i=e.prefixCls,o=i===void 0?"rc-tabs":i,c=e.className,l=e.items,s=e.direction,d=e.activeKey,y=e.defaultActiveKey,f=e.editable,$=e.animated,p=e.tabPosition,I=p===void 0?"top":p,N=e.tabBarGutter,_=e.tabBarStyle,W=e.tabBarExtraContent,M=e.locale,v=e.moreIcon,L=e.moreTransitionName,A=e.destroyInactiveTabPane,C=e.renderTabBar,G=e.onChange,w=e.onTabClick,b=e.onTabScroll,g=e.getPopupContainer,E=e.popupClassName,m=e.indicatorSize,T=(0,Se.Z)(e,oa),P=n.useMemo(function(){return(l||[]).filter(function(Z){return Z&&(0,ze.Z)(Z)==="object"&&"key"in Z})},[l]),O=s==="rtl",Y=wt($),ne=(0,n.useState)(!1),te=(0,R.Z)(ne,2),j=te[0],le=te[1];(0,n.useEffect)(function(){le((0,Lt.Z)())},[]);var me=(0,Fe.Z)(function(){var Z;return(Z=P[0])===null||Z===void 0?void 0:Z.key},{value:d,defaultValue:y}),x=(0,R.Z)(me,2),B=x[0],K=x[1],F=(0,n.useState)(function(){return P.findIndex(function(Z){return Z.key===B})}),X=(0,R.Z)(F,2),J=X[0],ae=X[1];(0,n.useEffect)(function(){var Z=P.findIndex(function(fe){return fe.key===B});if(Z===-1){var ce;Z=Math.max(0,Math.min(J,P.length-1)),K((ce=P[Z])===null||ce===void 0?void 0:ce.key)}ae(Z)},[P.map(function(Z){return Z.key}).join("_"),B,J]);var Te=(0,Fe.Z)(null,{value:r}),re=(0,R.Z)(Te,2),Oe=re[0],Be=re[1];(0,n.useEffect)(function(){r||(Be("rc-tabs-".concat(ft)),ft+=1)},[]);function Ae(Z,ce){w==null||w(Z,ce);var fe=Z!==B;K(Z),fe&&(G==null||G(Z))}var ge={id:Oe,activeKey:B,animated:Y,tabPosition:I,rtl:O,mobile:j},De=(0,U.Z)((0,U.Z)({},ge),{},{editable:f,locale:M,moreIcon:v,moreTransitionName:L,tabBarGutter:N,onTabClick:Ae,onTabScroll:b,extra:W,style:_,panes:null,getPopupContainer:g,popupClassName:E,indicatorSize:m});return n.createElement(ye.Provider,{value:{tabs:P,prefixCls:o}},n.createElement("div",(0,ee.Z)({ref:t,id:r,className:k()(o,"".concat(o,"-").concat(I),(a={},(0,H.Z)(a,"".concat(o,"-mobile"),j),(0,H.Z)(a,"".concat(o,"-editable"),f),(0,H.Z)(a,"".concat(o,"-rtl"),O),a),c)},T),n.createElement(ta,(0,ee.Z)({},De,{renderTabBar:C})),n.createElement(ia,(0,ee.Z)({destroyInactiveTabPane:A},ge,{animated:Y}))))}),ca=la,sa=ca,da=u(31594),ua=u(17436),fa=u(58351);const va={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ba(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},a;return t===!1?a={inkBar:!1,tabPane:!1}:t===!0?a={inkBar:!0,tabPane:!0}:a=Object.assign({inkBar:!0},typeof t=="object"?t:{}),a.tabPane&&(a.tabPaneMotion=Object.assign(Object.assign({},va),{motionName:(0,fa.m)(e,"switch")})),a}var ma=u(13763),ga=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it)}function pa(e,t){if(e)return e;const a=(0,ma.Z)(t).map(r=>{if(n.isValidElement(r)){const{key:i,props:o}=r,c=o||{},{tab:l}=c,s=ga(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:l})}return null});return ha(a)}var h=u(60076),be=u(6301),$a=u(81501),Sa=u(90467),vt=u(72717),ya=e=>{const{componentCls:t,motionDurationSlow:a}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${a}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${a}`}}}}},[(0,vt.oN)(e,"slide-up"),(0,vt.oN)(e,"slide-down")]]};const xa=e=>{const{componentCls:t,tabsCardPadding:a,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:a,background:r,border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,h.bf)(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,h.bf)(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,h.bf)(e.borderRadiusLG)} 0 0 ${(0,h.bf)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Ca=e=>{const{componentCls:t,itemHoverColor:a,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,be.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,h.bf)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},be.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,h.bf)(e.paddingXXS)} ${(0,h.bf)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:a}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ta=e=>{const{componentCls:t,margin:a,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:c,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:a,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,h.bf)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Pa=e=>{const{componentCls:t,cardPaddingSM:a,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,h.bf)(e.borderRadius)} ${(0,h.bf)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,h.bf)(e.borderRadius)} 0 0 ${(0,h.bf)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},Ea=e=>{const{componentCls:t,itemActiveColor:a,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:c,itemSelectedColor:l,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:a}},(0,be.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s",[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:o}}}},Ra=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:a,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:a},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,h.bf)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,h.bf)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,h.bf)(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ia=e=>{const{componentCls:t,tabsCardPadding:a,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:c,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:a,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${(0,h.bf)(e.paddingXS)}`,background:"transparent",border:`${(0,h.bf)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,h.bf)(e.borderRadiusLG)} ${(0,h.bf)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:c}},(0,be.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Ea(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},La=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}};var wa=(0,$a.I$)("Tabs",e=>{const t=(0,Sa.TS)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,h.bf)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,h.bf)(e.horizontalItemGutter)}`});return[Pa(t),Ra(t),Ta(t),Ca(t),xa(t),Ia(t),ya(t)]},La),Za=u(10254),Na=()=>null,_a=function(e,t){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{type:t,className:a,rootClassName:r,size:i,onEdit:o,hideAdd:c,centered:l,addIcon:s,popupClassName:d,children:y,items:f,animated:$,style:p,indicatorSize:I}=e,N=_a(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:_,moreIcon:W=n.createElement(Ze.Z,null)}=N,{direction:M,tabs:v,getPrefixCls:L,getPopupContainer:A}=n.useContext(da.E_),C=L("tabs",_),G=(0,Za.Z)(C),[w,b]=wa(C,G);let g;t==="editable-card"&&(g={onEdit:(Y,ne)=>{let{key:te,event:j}=ne;o==null||o(Y==="add"?j:te,Y)},removeIcon:n.createElement($e.Z,null),addIcon:s||n.createElement(Ne.Z,null),showAdd:c!==!0});const E=L(),m=pa(f,y),T=ba(C,$),P=(0,ua.Z)(i),O=Object.assign(Object.assign({},v==null?void 0:v.style),p);return w(n.createElement(sa,Object.assign({direction:M,getPopupContainer:A,moreTransitionName:`${E}-slide-up`},N,{items:m,className:k()({[`${C}-${P}`]:P,[`${C}-card`]:["card","editable-card"].includes(t),[`${C}-editable-card`]:t==="editable-card",[`${C}-centered`]:l},v==null?void 0:v.className,a,r,b,G),popupClassName:k()(d,b,G),style:O,editable:g,moreIcon:W,prefixCls:C,animated:T,indicatorSize:I!=null?I:v==null?void 0:v.indicatorSize})))};bt.TabPane=Na;var za=bt}}]); diff --git a/6151.4ec04365.async.js b/6151.4ec04365.async.js deleted file mode 100644 index ec17d2dc..00000000 --- a/6151.4ec04365.async.js +++ /dev/null @@ -1,27 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6151],{45730:function(Re,Ie,g){"use strict";g.d(Ie,{f:function(){return to}});var l=g(73273),he=g(3224),ie=g(47801),ye=g(10570),F=g(32682),v=g(33346),k=g(17122),ce=g(65589),m=g(50959);function de(r){var e=typeof window=="undefined",n=(0,m.useState)(function(){return e?!1:window.matchMedia(r).matches}),t=(0,F.Z)(n,2),a=t[0],i=t[1];return(0,m.useLayoutEffect)(function(){if(!e){var o=window.matchMedia(r),u=function(s){return i(s.matches)};return o.addListener(u),function(){return o.removeListener(u)}}},[r]),a}var fe={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},Ce=function(){var e=void 0;if(typeof window=="undefined")return e;var n=Object.keys(fe).find(function(t){var a=fe[t].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},L=function(){var e=de(fe.md.matchMedia),n=de(fe.lg.matchMedia),t=de(fe.xxl.matchMedia),a=de(fe.xl.matchMedia),i=de(fe.sm.matchMedia),o=de(fe.xs.matchMedia),u=(0,m.useState)(Ce()),d=(0,F.Z)(u,2),s=d[0],f=d[1];return(0,m.useEffect)(function(){if(t){f("xxl");return}if(a){f("xl");return}if(n){f("lg");return}if(e){f("md");return}if(i){f("sm");return}if(o){f("xs");return}f("md")},[e,n,t,a,i,o]),s},U=g(87440);function h(r,e){var n=typeof r.pageName=="string"?r.title:e;(0,m.useEffect)(function(){(0,U.j)()&&n&&(document.title=n)},[r.title,n])}var I=g(11175),C=g(87322);function E(r){if((0,I.n)((0,C.b)(),"5.6.0")<0)return r;var e={colorGroupTitle:"groupTitleColor",radiusItem:"itemBorderRadius",radiusSubMenuItem:"subMenuItemBorderRadius",colorItemText:"itemColor",colorItemTextHover:"itemHoverColor",colorItemTextHoverHorizontal:"horizontalItemHoverColor",colorItemTextSelected:"itemSelectedColor",colorItemTextSelectedHorizontal:"horizontalItemSelectedColor",colorItemTextDisabled:"itemDisabledColor",colorDangerItemText:"dangerItemColor",colorDangerItemTextHover:"dangerItemHoverColor",colorDangerItemTextSelected:"dangerItemSelectedColor",colorDangerItemBgActive:"dangerItemActiveBg",colorDangerItemBgSelected:"dangerItemSelectedBg",colorItemBg:"itemBg",colorItemBgHover:"itemHoverBg",colorSubItemBg:"subMenuItemBg",colorItemBgActive:"itemActiveBg",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=(0,v.Z)({},r);return Object.keys(e).forEach(function(t){n[t]!==void 0&&(n[e[t]]=n[t],delete n[t])}),n}var ae=g(6866);function D(r,e){return e>>>r|e<<32-r}function w(r,e,n){return r&e^~r&n}function A(r,e,n){return r&e^r&n^e&n}function Q(r){return D(2,r)^D(13,r)^D(22,r)}function q(r){return D(6,r)^D(11,r)^D(25,r)}function K(r){return D(7,r)^D(18,r)^r>>>3}function G(r){return D(17,r)^D(19,r)^r>>>10}function xe(r,e){return r[e&15]+=G(r[e+14&15])+r[e+9&15]+K(r[e+1&15])}var me=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W,le,H,Te="0123456789abcdef";function _e(r,e){var n=(r&65535)+(e&65535),t=(r>>16)+(e>>16)+(n>>16);return t<<16|n&65535}function Oe(){W=new Array(8),le=new Array(2),H=new Array(64),le[0]=le[1]=0,W[0]=1779033703,W[1]=3144134277,W[2]=1013904242,W[3]=2773480762,W[4]=1359893119,W[5]=2600822924,W[6]=528734635,W[7]=1541459225}function je(){var r,e,n,t,a,i,o,u,d,s,f=new Array(16);r=W[0],e=W[1],n=W[2],t=W[3],a=W[4],i=W[5],o=W[6],u=W[7];for(var p=0;p<16;p++)f[p]=H[(p<<2)+3]|H[(p<<2)+2]<<8|H[(p<<2)+1]<<16|H[p<<2]<<24;for(var y=0;y<64;y++)d=u+q(a)+w(a,i,o)+me[y],y<16?d+=f[y]:d+=xe(f,y),s=Q(r)+A(r,e,n),u=o,o=i,i=a,a=_e(t,d),t=n,n=e,e=r,r=_e(d,s);W[0]+=r,W[1]+=e,W[2]+=n,W[3]+=t,W[4]+=a,W[5]+=i,W[6]+=o,W[7]+=u}function $e(r,e){var n,t,a=0;t=le[0]>>3&63;var i=e&63;for((le[0]+=e<<3)>29,n=0;n+63>3&63;if(H[r++]=128,r<=56)for(var e=r;e<56;e++)H[e]=0;else{for(var n=r;n<64;n++)H[n]=0;je();for(var t=0;t<56;t++)H[t]=0}H[56]=le[1]>>>24&255,H[57]=le[1]>>>16&255,H[58]=le[1]>>>8&255,H[59]=le[1]&255,H[60]=le[0]>>>24&255,H[61]=le[0]>>>16&255,H[62]=le[0]>>>8&255,H[63]=le[0]&255,je()}function We(){for(var r=0,e=new Array(32),n=0;n<8;n++)e[r++]=W[n]>>>24&255,e[r++]=W[n]>>>16&255,e[r++]=W[n]>>>8&255,e[r++]=W[n]&255;return e}function Ue(){for(var r=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)r+=Te.charAt(W[e]>>>n&15);return r}function pn(r){return Oe(),$e(r,r.length),De(),Ue()}var Pn=pn;function tn(r){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(r)}var Lt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function At(r,e){return Dt(r)||Nt(r,e)||jn(r,e)||Ht()}function Ht(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nt(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var t=[],a=!0,i=!1,o,u;try{for(n=n.call(r);!(a=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));a=!0);}catch(d){i=!0,u=d}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw u}}return t}}function Dt(r){if(Array.isArray(r))return r}function Ot(r,e){var n=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=jn(r))||e&&r&&typeof r.length=="number"){n&&(r=n);var t=0,a=function(){};return{s:a,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,u;return{s:function(){n=n.call(r)},n:function(){var s=n.next();return i=s.done,s},e:function(s){o=!0,u=s},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw u}}}}function $t(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Un(r,e){for(var n=0;nr.length)&&(e=r.length);for(var n=0,t=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function Jt(r,e){if(r==null)return{};var n={},t=Object.keys(r),a,i;for(i=0;i=0)&&(n[a]=r[a]);return n}function Vn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function be(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||n).startsWith("/")||wn(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},nr=function(e,n){var t=e.menu,a=t===void 0?{}:t,i=e.indexRoute,o=e.path,u=o===void 0?"":o,d=e.children||[],s=a.name,f=s===void 0?e.name:s,p=a.icon,y=p===void 0?e.icon:p,Z=a.hideChildren,j=Z===void 0?e.hideChildren:Z,T=a.flatMenu,M=T===void 0?e.flatMenu:T,O=i&&Object.keys(i).join(",")!=="redirect"?[be({path:u,menu:a},i)].concat(d||[]):d,$=be({},e);if(f&&($.name=f),y&&($.icon=y),O&&O.length){if(j)return delete $.children,$;var z=_n(be(be({},n),{},{data:O}),e);if(M)return z;delete $[we]}return $},Ge=function(e){return Array.isArray(e)&&e.length>0};function _n(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=r.data,t=r.formatMessage,a=r.parentName,i=r.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Ge(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,d;return!(o==null||(u=o.menu)===null||u===void 0)&&u.name||o!=null&&o.flatMenu||!(o==null||(d=o.menu)===null||d===void 0)&&d.flatMenu?!0:o.menu!==!1}).map(function(o){var u=be(be({},o),{},{path:o.path||o.originPath});return!u.children&&u[we]&&(u.children=u[we],delete u[we]),u.unaccessible&&delete u.name,u.path==="*"&&(u.path="."),u.path==="/*"&&(u.path="."),!u.path&&u.originPath&&(u.path=u.originPath),u}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[we]||[],d=Qn(o.path,e?e.path:"/"),s=o.name,f=er(o,a||"menu"),p=f!==!1&&i!==!1&&t&&f?t({id:f,defaultMessage:s}):s,y=e.pro_layout_parentKeys,Z=y===void 0?[]:y,j=e.children,T=e.icon,M=e.flatMenu,O=e.indexRoute,$=e.routes,z=Yt(e,Lt),N=new Set([].concat(Xn(Z),Xn(o.parentKeys||[])));e.key&&N.add(e.key);var R=be(be(be({},z),{},{menu:void 0},o),{},{path:d,locale:f,key:o.key||qt(be(be({},o),{},{path:d})),pro_layout_parentKeys:Array.from(N).filter(function(S){return S&&S!=="/"})});if(p?R.name=p:delete R.name,R.menu===void 0&&delete R.menu,Ge(u)){var x=_n(be(be({},r),{},{data:u,parentName:f||""}),R);Ge(x)&&(R.children=x)}return nr(R,r)}).flat(1)}var tr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||Ge(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var t=be({},n),a=t.children||n[we]||[];if(delete t[we],Ge(a)&&!t.hideChildrenInMenu&&a.some(function(o){return o&&!!o.name})){var i=r(a);if(i.length)return be(be({},t),{},{children:i})}return be({},n)}).filter(function(n){return n})},rr=function(r){zt(n,r);var e=Ft(n);function n(){return $t(this,n),e.apply(this,arguments)}return Wt(n,[{key:"get",value:function(a){var i;try{var o=Ot(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var d=At(u.value,2),s=d[0],f=d[1],p=on(s);if(!wn(s)&&(0,ae.Bo)(p,[]).test(a)){i=f;break}}}catch(y){o.e(y)}finally{o.f()}}catch(y){i=void 0}return i}}]),n}(Bn(Map)),ar=function(e){var n=new rr,t=function a(i,o){i.forEach(function(u){var d=u.children||u[we]||[];Ge(d)&&a(d,u);var s=Qn(u.path,o?o.path:"/");n.set(on(s),u)})};return t(e),n},or=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var t=n.children||n[we];if(Ge(t)){var a=r(t);if(a.length)return be({},n)}var i=be({},n);return delete i[we],delete i.children,i}).filter(function(n){return n})},ir=function(e,n,t,a){var i=_n({data:e,formatMessage:t,locale:n}),o=a?or(i):tr(i),u=ar(i);return{breadcrumb:u,menuData:o}},lr=ir;function Yn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function ln(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(t){var a=ln({},t);if(!(!a||!a.key)){!a.children&&a[we]&&(a.children=a[we],delete a[we]);var i=a.children||[];n[on(a.path||a.key||"/")]=ln({},a),n[a.key||a.path||"/"]=ln({},a),i&&(n=ln(ln({},n),r(i)))}}),n},dr=cr,sr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!wn(a)){var i=on(a);try{if(t&&(0,ae.Bo)("".concat(i)).test(n)||(0,ae.Bo)("".concat(i),[]).test(n)||(0,ae.Bo)("".concat(i,"/(.*)")).test(n))return!0}catch(o){}}return!1}).sort(function(a,i){return a===n?10:i===n?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},vr=function(e,n,t,a){var i=dr(n),o=Object.keys(i),u=sr(o,e||"/",a);return!u||u.length<1?[]:(t||(u=[u[u.length-1]]),u.map(function(d){var s=i[d]||{pro_layout_parentKeys:"",key:""},f=new Map,p=(s.pro_layout_parentKeys||[]).map(function(y){return f.has(y)?null:(f.set(y,!0),i[y])}).filter(function(y){return y});return s.key&&p.push(s),p}).flat(1))},fr=vr,He=g(56197),Ve=g(42259),mr=g(84875),te=g.n(mr),Jn=g(71770),hr=g(12868),kn=g(84707),gr=g(27542),c=g(11527),pr=function(e){var n,t=(0,m.useContext)(k.L_),a=t.hashId,i=e.style,o=e.prefixCls,u=e.children,d=e.hasPageContainer,s=d===void 0?0:d,f=te()("".concat(o,"-content"),a,(n={},(0,l.Z)(n,"".concat(o,"-has-header"),e.hasHeader),(0,l.Z)(n,"".concat(o,"-content-has-page-container"),s>0),n)),p=e.ErrorBoundary||gr.S;return e.ErrorBoundary===!1?(0,c.jsx)(Ve.Z.Content,{className:f,style:i,children:u}):(0,c.jsx)(p,{children:(0,c.jsx)(Ve.Z.Content,{className:f,style:i,children:u})})},yr=function(){return(0,c.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,c.jsxs)("defs",{children:[(0,c.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,c.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,c.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,c.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,c.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,c.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,c.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,c.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,c.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,c.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,c.jsxs)("g",{children:[(0,c.jsxs)("g",{fillRule:"nonzero",children:[(0,c.jsxs)("g",{children:[(0,c.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),(0,c.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),(0,c.jsx)("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),(0,c.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},xr=g(52267),un=g(79954),xn=g(38126),Cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},br=Cr,Sr=g(38782),Zr=function(e,n){return m.createElement(Sr.Z,(0,xn.Z)({},e,{ref:n,icon:br}))},Mr=m.forwardRef(Zr),Ir=g(82757),Rr=function(){return(0,c.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},Tr=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,c.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,c.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,u){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,c.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,c.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,c.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},u):(0,c.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,c.jsxs)("a",{href:i?void 0:o.url,target:o.target,rel:"noreferrer",children:[An(o.icon),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:o.title}),o.desc?(0,c.jsx)("span",{children:o.desc}):null]})]})},u)})})})},Ln=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},Pr=function(e,n){if(e&&typeof e=="string"&&Ln(e))return(0,c.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,c.jsx)("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return(0,c.jsx)("div",{id:"avatarLogo",children:t})}return e},Br=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,c.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,c.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,u){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,c.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,c.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,c.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},u):(0,c.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,c.jsxs)("a",{href:i?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[Pr(o.icon,o.title),(0,c.jsx)("div",{children:(0,c.jsx)("div",{children:o.title})})]})},u)})})})},Ee=g(26488),jr=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":Ee.Wf===null||Ee.Wf===void 0?void 0:(0,Ee.Wf)(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},Er=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},wr=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIconHover,backgroundColor:(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(o=e.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":(0,l.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":Er(e),"&-default":jr(e)})};function _r(r){return(0,Ee.Xj)("AppsLogoComponents",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[wr(n)]})}var An=function(e){return typeof e=="string"?(0,c.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},Hn=function(e){var n,t=e.appList,a=e.appListRender,i=e.prefixCls,o=i===void 0?"ant-pro":i,u=e.onItemClick,d=m.useRef(null),s=m.useRef(null),f="".concat(o,"-layout-apps"),p=_r(f),y=p.wrapSSR,Z=p.hashId,j=(0,m.useState)(!1),T=(0,F.Z)(j,2),M=T[0],O=T[1],$=function(S){u==null||u(S,s)},z=(0,m.useMemo)(function(){var x=t==null?void 0:t.some(function(S){return!(S!=null&&S.desc)});return x?(0,c.jsx)(Br,{hashId:Z,appList:t,itemClick:u?$:void 0,baseClassName:"".concat(f,"-simple")}):(0,c.jsx)(Tr,{hashId:Z,appList:t,itemClick:u?$:void 0,baseClassName:"".concat(f,"-default")})},[t,f,Z]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var N=a?a(e==null?void 0:e.appList,z):z,R=(0,C.X)(void 0,function(x){return O(x)});return y((0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:d,onClick:function(S){S.stopPropagation(),S.preventDefault()}}),(0,c.jsx)(Ir.Z,(0,v.Z)((0,v.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},R),{},{overlayClassName:"".concat(f,"-popover ").concat(Z).trim(),content:N,getPopupContainer:function(){return d.current||document.body},children:(0,c.jsx)("span",{ref:s,onClick:function(S){S.stopPropagation()},className:te()("".concat(f,"-icon"),Z,(0,l.Z)({},"".concat(f,"-icon-active"),M)),children:(0,c.jsx)(Rr,{})})}))]}))},qn=g(21757),Lr=g(75200),et=g(62737);function Ar(){return(0,c.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var Hr=function(e){var n,t,a;return(0,l.Z)({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function Nr(r){return(0,Ee.Xj)("SiderMenuCollapsedIcon",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[Hr(n)]})}var Dr=["isMobile","collapsed"],Or=function(e){var n,t=e.isMobile,a=e.collapsed,i=(0,ye.Z)(e,Dr),o=Nr(e.className),u=o.wrapSSR,d=o.hashId;return t&&a?null:u((0,c.jsx)("div",(0,v.Z)((0,v.Z)({},i),{},{className:te()(e.className,d,(n={},(0,l.Z)(n,"".concat(e.className,"-collapsed"),a),(0,l.Z)(n,"".concat(e.className,"-is-mobile"),t),n)),children:(0,c.jsx)(Ar,{})})))},Cn=g(1788),$r=g(77254),Wr=g(47920),zr=g(12602),Fr=g(41491),bn=g(36484),Kr=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],nt=m.forwardRef(function(r,e){var n=r.className,t=r.component,a=r.viewBox,i=r.spin,o=r.rotate,u=r.tabIndex,d=r.onClick,s=r.children,f=(0,ye.Z)(r,Kr),p=m.useRef(),y=(0,zr.x1)(p,e);(0,bn.Kp)(!!(t||s),"Should have `component` prop or `children`."),(0,bn.C3)(p);var Z=m.useContext(Fr.Z),j=Z.prefixCls,T=j===void 0?"anticon":j,M=Z.rootClassName,O=te()(M,T,n),$=te()((0,l.Z)({},"".concat(T,"-spin"),!!i)),z=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,N=(0,v.Z)((0,v.Z)({},bn.vD),{},{className:$,style:z,viewBox:a});a||delete N.viewBox;var R=function(){return t?m.createElement(t,N,s):s?((0,bn.Kp)(!!a||m.Children.count(s)===1&&m.isValidElement(s)&&m.Children.only(s).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",(0,xn.Z)({},N,{viewBox:a}),s)):null},x=u;return x===void 0&&d&&(x=-1),m.createElement("span",(0,xn.Z)({role:"img"},f,{ref:y,tabIndex:x,onClick:d,className:O}),R())});nt.displayName="AntdIcon";var Ur=nt,Gr=["type","children"],tt=new Set;function Xr(r){return!!(typeof r=="string"&&r.length&&!tt.has(r))}function Sn(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=r[e];if(Xr(n)){var t=document.createElement("script");t.setAttribute("src",n),t.setAttribute("data-namespace",n),r.length>e+1&&(t.onload=function(){Sn(r,e+1)},t.onerror=function(){Sn(r,e+1)}),tt.add(n),document.body.appendChild(t)}}function rt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.scriptUrl,n=r.extraCommonProps,t=n===void 0?{}:n;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?Sn(e.reverse()):Sn([e]));var a=m.forwardRef(function(i,o){var u=i.type,d=i.children,s=(0,ye.Z)(i,Gr),f=null;return i.type&&(f=m.createElement("use",{xlinkHref:"#".concat(u)})),d&&(f=d),m.createElement(Ur,(0,xn.Z)({},t,s,{ref:o}),f)});return a.displayName="Iconfont",a}function Vr(r){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(r)}var Qr=g(32618),Yr=g(25670),at=g(65140),Jr=function(e,n){var t,a,i,o,u,d,s,f=n.includes("horizontal")?(t=e.layout)===null||t===void 0?void 0:t.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return(0,v.Z)((0,v.Z)((0,l.Z)({},"".concat(e.componentCls),(s={background:"transparent",color:f==null?void 0:f.colorTextMenu,border:"none"},(0,l.Z)(s,"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),(0,l.Z)(s,"".concat(e.componentCls,"-submenu-has-icon"),(0,l.Z)({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),(0,l.Z)(s,"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),(0,l.Z)(s,"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),(0,l.Z)(s,"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),(0,l.Z)(s,"&&-collapsed",(i={},(0,l.Z)(i,"".concat(e.antCls,`-menu-item, - `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,`-menu-item, - `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu > ").concat(e.antCls,`-menu-submenu-title, - `).concat(e.antCls,"-menu-submenu > ").concat(e.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),(0,l.Z)(i,"".concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,`-menu-submenu-title, - `).concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,"-menu-submenu-title"),{backgroundColor:f==null?void 0:f.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),(0,l.Z)(i,"".concat(e.componentCls,"-group"),(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0})),i)),(0,l.Z)(s,"&-item-title",(d={display:"flex",flexDirection:"row",alignItems:"center",gap:e.marginXS},(0,l.Z)(d,"".concat(e.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),(0,l.Z)(d,"&-collapsed",(o={minWidth:40,height:40},(0,l.Z)(o,"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),(0,l.Z)(o,"".concat(e.componentCls,"-item-text-has-icon"),{display:"none !important"}),o)),(0,l.Z)(d,"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),(0,l.Z)(d,"&".concat(e.componentCls,"-group-item-title"),{gap:e.marginXS,height:18,overflow:"hidden"}),(0,l.Z)(d,"&".concat(e.componentCls,"-item-collapsed-show-title"),(0,l.Z)({lineHeight:"16px",gap:0},"&".concat(e.componentCls,"-item-title-collapsed"),(u={display:"flex"},(0,l.Z)(u,"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),(0,l.Z)(u,"".concat(e.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4}),u))),d)),(0,l.Z)(s,"&-group",(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:12,color:e.colorTextLabel,".anticon":{marginInlineEnd:8}})),(0,l.Z)(s,"&-group-divider",{color:e.colorTextSecondary,fontSize:12,lineHeight:20}),s)),n.includes("horizontal")?{}:(0,l.Z)({},"".concat(e.antCls,"-menu-submenu").concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)({},"".concat(e.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function kr(r,e){return(0,Ee.Xj)("ProLayoutBaseMenu"+e,function(n){var t=(0,v.Z)((0,v.Z)({},n),{},{componentCls:".".concat(r)});return[Jr(t,e||"inline")]})}var ot=function(e){var n=(0,m.useState)(e.collapsed),t=(0,F.Z)(n,2),a=t[0],i=t[1],o=(0,m.useState)(!1),u=(0,F.Z)(o,2),d=u[0],s=u[1];return(0,m.useEffect)(function(){s(!1),setTimeout(function(){i(e.collapsed)},400)},[e.collapsed]),e.disable?e.children:(0,c.jsx)(Qr.Z,{title:e.title,open:a&&e.collapsed?d:!1,placement:"right",onOpenChange:s,children:e.children})},it=rt({scriptUrl:at.h.iconfontUrl}),lt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",t=arguments.length>2?arguments[2]:void 0;if(typeof e=="string"&&e!==""){if(Ln(e)||Vr(e))return(0,c.jsx)("img",{width:16,src:e,alt:"icon",className:t},e);if(e.startsWith(n))return(0,c.jsx)(it,{type:e})}return e},ut=function(e){if(e&&typeof e=="string"){var n=e.substring(0,1).toUpperCase();return n}return null},qr=(0,$r.Z)(function r(e){var n=this;(0,Wr.Z)(this,r),(0,l.Z)(this,"props",void 0),(0,l.Z)(this,"getNavMenuItems",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return t.map(function(o){return n.getSubMenuOrItem(o,a,i)}).filter(function(o){return o}).flat(1)}),(0,l.Z)(this,"getSubMenuOrItem",function(t,a,i){var o=n.props,u=o.subMenuItemRender,d=o.baseClassName,s=o.prefixCls,f=o.collapsed,p=o.menu,y=o.iconPrefixes,Z=o.layout,j=(p==null?void 0:p.type)==="group"&&Z!=="top",T=n.props.token,M=n.getIntlName(t),O=(t==null?void 0:t.children)||(t==null?void 0:t.routes),$=j&&a===0?"group":void 0;if(Array.isArray(O)&&O.length>0){var z,N,R,x,S,ee,_,P=a===0||j&&a===1,X=lt(t.icon,y,"".concat(d,"-icon ").concat((z=n.props)===null||z===void 0?void 0:z.hashId)),oe=f&&P?ut(M):null,b=(0,c.jsxs)("div",{className:te()("".concat(d,"-item-title"),(N=n.props)===null||N===void 0?void 0:N.hashId,(R={},(0,l.Z)(R,"".concat(d,"-item-title-collapsed"),f),(0,l.Z)(R,"".concat(d,"-item-title-collapsed-level-").concat(i),f),(0,l.Z)(R,"".concat(d,"-group-item-title"),$==="group"),(0,l.Z)(R,"".concat(d,"-item-collapsed-show-title"),(p==null?void 0:p.collapsedShowTitle)&&f),R)),children:[$==="group"&&f?null:P&&X?(0,c.jsx)("span",{className:"".concat(d,"-item-icon ").concat((x=n.props)===null||x===void 0?void 0:x.hashId).trim(),children:X}):oe,(0,c.jsx)("span",{className:te()("".concat(d,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,(0,l.Z)({},"".concat(d,"-item-text-has-icon"),$!=="group"&&P&&(X||oe))),children:M})]}),V=u?u((0,v.Z)((0,v.Z)({},t),{},{isUrl:!1}),b,n.props):b;if(j&&a===0&&n.props.collapsed&&!p.collapsedShowGroupTitle)return n.getNavMenuItems(O,a+1,a);var ne=n.getNavMenuItems(O,a+1,j&&a===0&&n.props.collapsed?a:a+1);return[{type:$,key:t.key||t.path,label:V,onClick:j?void 0:t.onTitleClick,children:ne,className:te()((ee={},(0,l.Z)(ee,"".concat(d,"-group"),$==="group"),(0,l.Z)(ee,"".concat(d,"-submenu"),$!=="group"),(0,l.Z)(ee,"".concat(d,"-submenu-has-icon"),$!=="group"&&P&&X),ee))},j&&a===0?{type:"divider",prefixCls:s,className:"".concat(d,"-divider"),key:(t.key||t.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:T==null||(_=T.layout)===null||_===void 0||(_=_.sider)===null||_===void 0?void 0:_.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(d,"-menu-item"),disabled:t.disabled,key:t.key||t.path,onClick:t.onTitleClick,label:n.getMenuItemPath(t,a,i)}}),(0,l.Z)(this,"getIntlName",function(t){var a=t.name,i=t.locale,o=n.props,u=o.menu,d=o.formatMessage;return i&&(u==null?void 0:u.locale)!==!1?d==null?void 0:d({id:i,defaultMessage:a}):a}),(0,l.Z)(this,"getMenuItemPath",function(t,a,i){var o,u,d,s,f,p=n.conversionPath(t.path||"/"),y=n.props,Z=y.location,j=Z===void 0?{pathname:"/"}:Z,T=y.isMobile,M=y.onCollapse,O=y.menuItemRender,$=y.iconPrefixes,z=n.getIntlName(t),N=n.props,R=N.baseClassName,x=N.menu,S=N.collapsed,ee=(x==null?void 0:x.type)==="group",_=a===0||ee&&a===1,P=_?lt(t.icon,$,"".concat(R,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,X=S&&_?ut(z):null,oe=(0,c.jsxs)("div",{className:te()("".concat(R,"-item-title"),(u=n.props)===null||u===void 0?void 0:u.hashId,(d={},(0,l.Z)(d,"".concat(R,"-item-title-collapsed"),S),(0,l.Z)(d,"".concat(R,"-item-title-collapsed-level-").concat(i),S),(0,l.Z)(d,"".concat(R,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&S),d)),children:[(0,c.jsx)("span",{className:"".concat(R,"-item-icon ").concat((s=n.props)===null||s===void 0?void 0:s.hashId).trim(),style:{display:X===null&&!P?"none":""},children:P||(0,c.jsx)("span",{className:"anticon",children:X})}),(0,c.jsx)("span",{className:te()("".concat(R,"-item-text"),(f=n.props)===null||f===void 0?void 0:f.hashId,(0,l.Z)({},"".concat(R,"-item-text-has-icon"),_&&(P||X))),children:z})]},p),b=Ln(p);if(b){var V,ne,B,re;oe=(0,c.jsxs)("span",{onClick:function(){var Y,se;(Y=window)===null||Y===void 0||(se=Y.open)===null||se===void 0||se.call(Y,p,"_blank")},className:te()("".concat(R,"-item-title"),(V=n.props)===null||V===void 0?void 0:V.hashId,(ne={},(0,l.Z)(ne,"".concat(R,"-item-title-collapsed"),S),(0,l.Z)(ne,"".concat(R,"-item-title-collapsed-level-").concat(i),S),(0,l.Z)(ne,"".concat(R,"-item-link"),!0),(0,l.Z)(ne,"".concat(R,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&S),ne)),children:[(0,c.jsx)("span",{className:"".concat(R,"-item-icon ").concat((B=n.props)===null||B===void 0?void 0:B.hashId).trim(),style:{display:X===null&&!P?"none":""},children:P||(0,c.jsx)("span",{className:"anticon",children:X})}),(0,c.jsx)("span",{className:te()("".concat(R,"-item-text"),(re=n.props)===null||re===void 0?void 0:re.hashId,(0,l.Z)({},"".concat(R,"-item-text-has-icon"),_&&(P||X))),children:z})]},p)}if(O){var ue=(0,v.Z)((0,v.Z)({},t),{},{isUrl:b,itemPath:p,isMobile:T,replace:p===j.pathname,onClick:function(){return M&&M(!0)},children:void 0});return a===0?(0,c.jsx)(ot,{collapsed:S,title:z,disable:t.disabledTooltip,children:O(ue,oe,n.props)}):O(ue,oe,n.props)}return a===0?(0,c.jsx)(ot,{collapsed:S,title:z,disable:t.disabledTooltip,children:oe}):oe}),(0,l.Z)(this,"conversionPath",function(t){return t&&t.indexOf("http")===0?t:"/".concat(t||"").replace(/\/+/g,"/")}),this.props=e}),ea=function(e,n){var t=n.layout,a=n.collapsed,i={};return e&&!a&&["side","mix"].includes(t||"mix")&&(i={openKeys:e}),i},ct=function(e){var n,t=e.mode,a=e.className,i=e.handleOpenChange,o=e.style,u=e.menuData,d=e.prefixCls,s=e.menu,f=e.matchMenuKeys,p=e.iconfontUrl,y=e.selectedKeys,Z=e.onSelect,j=e.menuRenderType,T=e.openKeys,M=(0,m.useContext)(k.L_),O=M.dark,$=M.token,z="".concat(d,"-base-menu-").concat(t),N=(0,m.useRef)([]),R=(0,ce.Z)(s==null?void 0:s.defaultOpenAll),x=(0,F.Z)(R,2),S=x[0],ee=x[1],_=(0,ce.Z)(function(){return s!=null&&s.defaultOpenAll?(0,un.O7)(u)||[]:T===!1?!1:[]},{value:T===!1?void 0:T,onChange:i}),P=(0,F.Z)(_,2),X=P[0],oe=P[1],b=(0,ce.Z)([],{value:y,onChange:Z?function(ge){Z&&ge&&Z(ge)}:void 0}),V=(0,F.Z)(b,2),ne=V[0],B=V[1];(0,m.useEffect)(function(){s!=null&&s.defaultOpenAll||T===!1||f&&(oe(f),B(f))},[f.join("-")]),(0,m.useEffect)(function(){p&&(it=rt({scriptUrl:p}))},[p]),(0,m.useEffect)(function(){if(f.join("-")!==(ne||[]).join("-")&&B(f),!S&&T!==!1&&f.join("-")!==(X||[]).join("-")){var ge=f;(s==null?void 0:s.autoClose)===!1&&(ge=Array.from(new Set([].concat((0,Cn.Z)(f),(0,Cn.Z)(X||[]))))),oe(ge)}else s!=null&&s.ignoreFlatMenu&&S?oe((0,un.O7)(u)):ee(!1)},[f.join("-")]);var re=(0,m.useMemo)(function(){return ea(X,e)},[X&&X.join(","),e.layout,e.collapsed]),ue=kr(z,t),pe=ue.wrapSSR,Y=ue.hashId,se=(0,m.useMemo)(function(){return new qr((0,v.Z)((0,v.Z)({},e),{},{token:$,menuRenderType:j,baseClassName:z,hashId:Y}))},[e,$,j,z,Y]);if(s!=null&&s.loading)return(0,c.jsx)("div",{style:t!=null&&t.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,c.jsx)(Yr.Z,{active:!0,title:!1,paragraph:{rows:t!=null&&t.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(N.current=f);var ve=e.postMenuData?e.postMenuData(u):u;return ve&&(ve==null?void 0:ve.length)<1?null:pe((0,m.createElement)(et.Z,(0,v.Z)((0,v.Z)({},re),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:t,inlineIndent:16,defaultOpenKeys:N.current,theme:O?"dark":"light",selectedKeys:ne,style:(0,v.Z)({backgroundColor:"transparent",border:"none"},o),className:te()(a,Y,z,(n={},(0,l.Z)(n,"".concat(z,"-horizontal"),t==="horizontal"),(0,l.Z)(n,"".concat(z,"-collapsed"),e.collapsed),n)),items:se.getNavMenuItems(ve,0,0),onOpenChange:function(Se){e.collapsed||oe(Se)}},e.menuProps)))};function na(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Ee.Xj)("ProLayoutSiderMenuStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var ta=["title","render"],ra=m.memo(function(r){return(0,c.jsx)(c.Fragment,{children:r.children})}),aa=Ve.Z.Sider,dt=Ve.Z._InternalSiderContext,oa=dt===void 0?{Provider:ra}:dt,Nn=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",t=e.logo,a=e.title,i=e.layout,o=e[n];if(o===!1)return null;var u=An(t),d=(0,c.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return o?o(u,e.collapsed?null:d,e):e.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:e.collapsed?(0,c.jsx)("a",{children:u},"title"):(0,c.jsxs)("a",{children:[u,d]},"title")},st=function(e){var n,t,a=e.collapsed,i=e.originCollapsed,o=e.fixSiderbar,u=e.menuFooterRender,d=e.onCollapse,s=e.theme,f=e.siderWidth,p=e.isMobile,y=e.onMenuHeaderClick,Z=e.breakpoint,j=Z===void 0?"lg":Z,T=e.style,M=e.layout,O=e.menuExtraRender,$=O===void 0?!1:O,z=e.links,N=e.menuContentRender,R=e.collapsedButtonRender,x=e.prefixCls,S=e.avatarProps,ee=e.rightContentRender,_=e.actionsRender,P=e.onOpenChange,X=e.stylish,oe=e.logoStyle,b=(0,m.useContext)(k.L_),V=b.hashId,ne=(0,m.useMemo)(function(){return!(p||M==="mix")},[p,M]),B="".concat(x,"-sider"),re=64,ue=na("".concat(B,".").concat(B,"-stylish"),{stylish:X,proLayoutCollapsedWidth:re}),pe=te()("".concat(B),V,(n={},(0,l.Z)(n,"".concat(B,"-fixed"),o),(0,l.Z)(n,"".concat(B,"-fixed-mix"),M==="mix"&&!p&&o),(0,l.Z)(n,"".concat(B,"-collapsed"),e.collapsed),(0,l.Z)(n,"".concat(B,"-layout-").concat(M),M&&!p),(0,l.Z)(n,"".concat(B,"-light"),s!=="dark"),(0,l.Z)(n,"".concat(B,"-mix"),M==="mix"&&!p),(0,l.Z)(n,"".concat(B,"-stylish"),!!X),n)),Y=Nn(e),se=$&&$(e),ve=(0,m.useMemo)(function(){return N!==!1&&(0,m.createElement)(ct,(0,v.Z)((0,v.Z)({},e),{},{key:"base-menu",mode:a&&!p?"vertical":"inline",handleOpenChange:P,style:{width:"100%"},className:"".concat(B,"-menu ").concat(V).trim()}))},[B,V,N,P,e]),ge=(z||[]).map(function(Be,Le){return{className:"".concat(B,"-link"),label:Be,key:Le}}),Se=(0,m.useMemo)(function(){return N?N(e,ve):ve},[N,ve,e]),Ze=(0,m.useMemo)(function(){if(!S)return null;var Be=S.title,Le=S.render,Ae=(0,ye.Z)(S,ta),Je=(0,c.jsxs)("div",{className:"".concat(B,"-actions-avatar"),children:[Ae!=null&&Ae.src||Ae!=null&&Ae.srcSet||Ae.icon||Ae.children?(0,c.jsx)(qn.C,(0,v.Z)({size:28},Ae)):null,S.title&&!a&&(0,c.jsx)("span",{children:Be})]});return Le?Le(S,Je):Je},[S,B,a]),Me=(0,m.useMemo)(function(){return _?(0,c.jsx)(Lr.Z,{align:"center",size:4,direction:a?"vertical":"horizontal",className:te()(["".concat(B,"-actions-list"),a&&"".concat(B,"-actions-list-collapsed"),V]),children:_==null?void 0:_(e).map(function(Be,Le){return(0,c.jsx)("div",{className:"".concat(B,"-actions-list-item ").concat(V).trim(),children:Be},Le)})}):null},[_,B,a]),ze=(0,m.useMemo)(function(){return(0,c.jsx)(Hn,{onItemClick:e.itemClick,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.prefixCls]),Fe=(0,m.useMemo)(function(){if(R===!1)return null;var Be=(0,c.jsx)(Or,{isMobile:p,collapsed:i,className:"".concat(B,"-collapsed-button"),onClick:function(){d==null||d(!i)}});return R?R(a,Be):Be},[R,p,i,B,a,d]),cn=(0,m.useMemo)(function(){return!Ze&&!Me?null:(0,c.jsxs)("div",{className:te()("".concat(B,"-actions"),V,a&&"".concat(B,"-actions-collapsed")),children:[Ze,Me]})},[Me,Ze,B,a,V]),Xe=(0,m.useMemo)(function(){var Be;return e!=null&&(Be=e.menu)!==null&&Be!==void 0&&Be.hideMenuWhenCollapsed&&a?"".concat(B,"-hide-menu-collapsed"):null},[B,a,e==null||(t=e.menu)===null||t===void 0?void 0:t.hideMenuWhenCollapsed]),Mn=u&&(u==null?void 0:u(e)),dn=(0,c.jsxs)(c.Fragment,{children:[Y&&(0,c.jsxs)("div",{className:te()([te()("".concat(B,"-logo"),V,(0,l.Z)({},"".concat(B,"-logo-collapsed"),a))]),onClick:ne?y:void 0,id:"logo",style:oe,children:[Y,ze]}),se&&(0,c.jsx)("div",{className:te()(["".concat(B,"-extra"),!Y&&"".concat(B,"-extra-no-logo"),V]),children:se}),(0,c.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Se}),(0,c.jsxs)(oa.Provider,{value:{},children:[z?(0,c.jsx)("div",{className:"".concat(B,"-links ").concat(V).trim(),children:(0,c.jsx)(et.Z,{inlineIndent:16,className:"".concat(B,"-link-menu ").concat(V).trim(),selectedKeys:[],openKeys:[],theme:s,mode:"inline",items:ge})}):null,ne&&(0,c.jsxs)(c.Fragment,{children:[cn,!Me&&ee?(0,c.jsx)("div",{className:te()("".concat(B,"-actions"),V,(0,l.Z)({},"".concat(B,"-actions-collapsed"),a)),children:ee==null?void 0:ee(e)}):null]}),Mn&&(0,c.jsx)("div",{className:te()(["".concat(B,"-footer"),V,(0,l.Z)({},"".concat(B,"-footer-collapsed"),a)]),children:Mn})]})]});return ue.wrapSSR((0,c.jsxs)(c.Fragment,{children:[o&&!p&&!Xe&&(0,c.jsx)("div",{style:(0,v.Z)({width:a?re:f,overflow:"hidden",flex:"0 0 ".concat(a?re:f,"px"),maxWidth:a?re:f,minWidth:a?re:f,transition:"all 0.2s ease 0s"},T)}),(0,c.jsxs)(aa,{collapsible:!0,trigger:null,collapsed:a,breakpoint:j===!1?void 0:j,onCollapse:function(Le){p||d==null||d(Le)},collapsedWidth:re,style:T,theme:s,width:f,className:te()(pe,V,Xe),children:[Xe?(0,c.jsx)("div",{className:"".concat(B,"-hide-when-collapsed ").concat(V).trim(),style:{height:"100%",width:"100%",opacity:Xe?0:1},children:dn}):dn,Fe]})]}))},ia=g(82250),la=g(12682),ua=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-header-actions":{display:"flex",height:"100%","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:e.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,"&:hover":{backgroundColor:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:(a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,"> div":{height:"44px",color:(i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:(o=e.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function ca(r){return(0,Ee.Xj)("ProLayoutRightContent",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ua(n)]})}var da=["rightContentRender","avatarProps","actionsRender","headerContentRender"],sa=["title","render"],vt=function(e){var n=e.rightContentRender,t=e.avatarProps,a=e.actionsRender,i=e.headerContentRender,o=(0,ye.Z)(e,da),u=(0,m.useContext)(He.ZP.ConfigContext),d=u.getPrefixCls,s="".concat(d(),"-pro-global-header"),f=ca(s),p=f.wrapSSR,y=f.hashId,Z=(0,m.useState)("auto"),j=(0,F.Z)(Z,2),T=j[0],M=j[1],O=(0,m.useMemo)(function(){if(!t)return null;var R=t.title,x=t.render,S=(0,ye.Z)(t,sa),ee=[S!=null&&S.src||S!=null&&S.srcSet||S.icon||S.children?(0,m.createElement)(qn.C,(0,v.Z)((0,v.Z)({},S),{},{size:28,key:"avatar"})):null,R?(0,c.jsx)("span",{style:{marginInlineStart:8},children:R},"name"):void 0];return x?x(t,(0,c.jsx)("div",{children:ee})):(0,c.jsx)("div",{children:ee})},[t]),$=a||O?function(R){var x=a&&(a==null?void 0:a(R));return!x&&!O?null:(Array.isArray(x)||(x=[x]),p((0,c.jsxs)("div",{className:"".concat(s,"-header-actions ").concat(y).trim(),children:[x.filter(Boolean).map(function(S,ee){var _=!1;if(m.isValidElement(S)){var P;_=!!(S!=null&&(P=S.props)!==null&&P!==void 0&&P["aria-hidden"])}return(0,c.jsx)("div",{className:te()("".concat(s,"-header-actions-item ").concat(y),(0,l.Z)({},"".concat(s,"-header-actions-hover"),!_)),children:S},ee)}),O&&(0,c.jsx)("span",{className:"".concat(s,"-header-actions-avatar ").concat(y).trim(),children:O})]})))}:void 0,z=(0,ia.D)(function(){var R=(0,ie.Z)((0,he.Z)().mark(function x(S){return(0,he.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:M(S);case 1:case"end":return _.stop()}},x)}));return function(x){return R.apply(this,arguments)}}(),160),N=$||n;return(0,c.jsx)("div",{className:"".concat(s,"-right-content ").concat(y).trim(),style:{minWidth:T,height:"100%"},children:(0,c.jsx)("div",{style:{height:"100%"},children:(0,c.jsx)(la.Z,{onResize:function(x){var S=x.width;z.run(S)},children:N?(0,c.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:N((0,v.Z)((0,v.Z)({},o),{},{rightContentSize:T}))}):null})})})},va=function(e){var n,t;return(0,l.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,l.Z)({display:"flex",alignItems:"center"},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56)-12,40),"px")}})};function fa(r){return(0,Ee.Xj)("ProLayoutTopNavHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[va(n)]})}var ft=function(e){var n,t,a,i,o,u,d,s=(0,m.useRef)(null),f=e.onMenuHeaderClick,p=e.contentWidth,y=e.rightContentRender,Z=e.className,j=e.style,T=e.headerContentRender,M=e.layout,O=e.actionsRender,$=(0,m.useContext)(He.ZP.ConfigContext),z=$.getPrefixCls,N=(0,m.useContext)(k.L_),R=N.dark,x="".concat(e.prefixCls||z("pro"),"-top-nav-header"),S=fa(x),ee=S.wrapSSR,_=S.hashId,P=void 0;e.menuHeaderRender!==void 0?P="menuHeaderRender":(M==="mix"||M==="top")&&(P="headerTitleRender");var X=Nn((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),P),oe=(0,m.useContext)(k.L_),b=oe.token,V=(0,m.useMemo)(function(){var ne,B,re,ue,pe,Y,se,ve,ge,Se,Ze,Me,ze,Fe=(0,c.jsx)(He.ZP,{theme:{hashed:(0,k.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:(0,v.Z)({},E({colorItemBg:((ne=b.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorBgHeader)||"transparent",colorSubItemBg:((B=b.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorBgHeader)||"transparent",radiusItem:b.borderRadius,colorItemBgSelected:((re=b.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorBgMenuItemSelected)||(b==null?void 0:b.colorBgTextHover),itemHoverBg:((ue=b.layout)===null||ue===void 0||(ue=ue.header)===null||ue===void 0?void 0:ue.colorBgMenuItemHover)||(b==null?void 0:b.colorBgTextHover),colorItemBgSelectedHorizontal:((pe=b.layout)===null||pe===void 0||(pe=pe.header)===null||pe===void 0?void 0:pe.colorBgMenuItemSelected)||(b==null?void 0:b.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((Y=b.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.colorTextMenu)||(b==null?void 0:b.colorTextSecondary),colorItemTextHoverHorizontal:((se=b.layout)===null||se===void 0||(se=se.header)===null||se===void 0?void 0:se.colorTextMenuActive)||(b==null?void 0:b.colorText),colorItemTextSelectedHorizontal:((ve=b.layout)===null||ve===void 0||(ve=ve.header)===null||ve===void 0?void 0:ve.colorTextMenuSelected)||(b==null?void 0:b.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((ge=b.layout)===null||ge===void 0||(ge=ge.header)===null||ge===void 0?void 0:ge.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Se=b.layout)===null||Se===void 0||(Se=Se.header)===null||Se===void 0?void 0:Se.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Ze=b.layout)===null||Ze===void 0||(Ze=Ze.header)===null||Ze===void 0?void 0:Ze.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:b==null?void 0:b.colorBgElevated,darkPopupBg:b==null?void 0:b.colorBgElevated}))},token:{colorBgElevated:((Me=b.layout)===null||Me===void 0||(Me=Me.header)===null||Me===void 0?void 0:Me.colorBgHeader)||"transparent"}},children:(0,c.jsx)(ct,(0,v.Z)((0,v.Z)((0,v.Z)({theme:R?"dark":"light"},e),{},{className:"".concat(x,"-base-menu ").concat(_).trim()},e.menuProps),{},{style:(0,v.Z)({width:"100%"},(ze=e.menuProps)===null||ze===void 0?void 0:ze.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return T?T(e,Fe):Fe},[(n=b.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(t=b.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgMenuItemSelected,(a=b.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(i=b.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(o=b.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(u=b.layout)===null||u===void 0||(u=u.header)===null||u===void 0?void 0:u.colorTextMenuSelected,(d=b.layout)===null||d===void 0||(d=d.header)===null||d===void 0?void 0:d.colorBgMenuElevated,b.borderRadius,b==null?void 0:b.colorBgTextHover,b==null?void 0:b.colorTextSecondary,b==null?void 0:b.colorText,b==null?void 0:b.colorTextBase,b.colorBgElevated,R,e,x,_,T]);return ee((0,c.jsx)("div",{className:te()(x,_,Z,(0,l.Z)({},"".concat(x,"-light"),!0)),style:j,children:(0,c.jsxs)("div",{ref:s,className:te()("".concat(x,"-main"),_,(0,l.Z)({},"".concat(x,"-wide"),p==="Fixed"&&M==="top")),children:[X&&(0,c.jsxs)("div",{className:te()("".concat(x,"-main-left ").concat(_)),onClick:f,children:[(0,c.jsx)(Hn,(0,v.Z)({},e)),(0,c.jsx)("div",{className:"".concat(x,"-logo ").concat(_).trim(),id:"logo",children:X},"logo")]}),(0,c.jsx)("div",{style:{flex:1},className:"".concat(x,"-menu ").concat(_).trim(),children:V}),(y||O||e.avatarProps)&&(0,c.jsx)(vt,(0,v.Z)((0,v.Z)({rightContentRender:y},e),{},{prefixCls:x}))]})}))},ma=function(e){var n,t,a,i;return(0,l.Z)({},e.componentCls,(i={position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},(0,l.Z)(i,"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),(0,l.Z)(i,"&-collapsed-button",{minHeight:"22px",color:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),(0,l.Z)(i,"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorHeaderTitle)||e.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),(0,l.Z)(i,"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}),i))};function ha(r){return(0,Ee.Xj)("ProLayoutGlobalHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ma(n)]})}var ga=function(e,n){return e===!1?null:e?e(n,null):n},pa=function(e){var n,t=e.isMobile,a=e.logo,i=e.collapsed,o=e.onCollapse,u=e.rightContentRender,d=e.menuHeaderRender,s=e.onMenuHeaderClick,f=e.className,p=e.style,y=e.layout,Z=e.children,j=e.splitMenus,T=e.menuData,M=e.prefixCls,O=(0,m.useContext)(He.ZP.ConfigContext),$=O.getPrefixCls,z=O.direction,N="".concat(M||$("pro"),"-global-header"),R=ha(N),x=R.wrapSSR,S=R.hashId,ee=te()(f,N,S);if(y==="mix"&&!t&&j){var _=(T||[]).map(function(b){return(0,v.Z)((0,v.Z)({},b),{},{children:void 0,routes:void 0})}),P=(0,un.QX)(_);return(0,c.jsx)(ft,(0,v.Z)((0,v.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:P}))}var X=te()("".concat(N,"-logo"),S,(n={},(0,l.Z)(n,"".concat(N,"-logo-rtl"),z==="rtl"),(0,l.Z)(n,"".concat(N,"-logo-mix"),y==="mix"),(0,l.Z)(n,"".concat(N,"-logo-mobile"),t),n)),oe=(0,c.jsx)("span",{className:X,children:(0,c.jsx)("a",{children:An(a)})},"logo");return x((0,c.jsxs)("div",{className:ee,style:(0,v.Z)({},p),children:[t&&(0,c.jsx)("span",{className:"".concat(N,"-collapsed-button ").concat(S).trim(),onClick:function(){o==null||o(!i)},children:(0,c.jsx)(Mr,{})}),t&&ga(d,oe),y==="mix"&&!t&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn,(0,v.Z)({},e)),(0,c.jsx)("div",{className:X,onClick:s,children:Nn((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,c.jsx)("div",{style:{flex:1},children:Z}),(u||e.actionsRender||e.avatarProps)&&(0,c.jsx)(vt,(0,v.Z)({rightContentRender:u},e))]}))},ya=function(e){var n,t,a,i;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(e.antCls,"-layout-header").concat(e.componentCls),{height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(e.colorSplit),backgroundColor:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function xa(r){return(0,Ee.Xj)("ProLayoutHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ya(n)]})}function Ca(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,Ee.Xj)("ProLayoutHeaderStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var mt=Ve.Z.Header,ba=function(e){var n,t,a,i,o=e.isMobile,u=e.fixedHeader,d=e.className,s=e.style,f=e.collapsed,p=e.prefixCls,y=e.onCollapse,Z=e.layout,j=e.headerRender,T=e.headerContentRender,M=(0,m.useContext)(k.L_),O=M.token,$=(0,m.useContext)(He.ZP.ConfigContext),z=(0,m.useState)(!1),N=(0,F.Z)(z,2),R=N[0],x=N[1],S=u||Z==="mix",ee=(0,m.useCallback)(function(){var B=Z==="top",re=(0,un.QX)(e.menuData||[]),ue=(0,c.jsx)(pa,(0,v.Z)((0,v.Z)({onCollapse:y},e),{},{menuData:re,children:T&&T(e,null)}));return B&&!o&&(ue=(0,c.jsx)(ft,(0,v.Z)((0,v.Z)({mode:"horizontal",onCollapse:y},e),{},{menuData:re}))),j&&typeof j=="function"?j(e,ue):ue},[T,j,o,Z,y,e]);(0,m.useEffect)(function(){var B,re=($==null||(B=$.getTargetContainer)===null||B===void 0?void 0:B.call($))||document.body,ue=function(){var Y,se=re.scrollTop;return se>(((Y=O.layout)===null||Y===void 0||(Y=Y.header)===null||Y===void 0?void 0:Y.heightLayoutHeader)||56)&&!R?(x(!0),!0):(R&&x(!1),!1)};if(S&&typeof window!="undefined")return re.addEventListener("scroll",ue,{passive:!0}),function(){re.removeEventListener("scroll",ue)}},[(n=O.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,R]);var _=Z==="top",P="".concat(p,"-layout-header"),X=xa(P),oe=X.wrapSSR,b=X.hashId,V=Ca("".concat(P,".").concat(P,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),ne=te()(d,b,P,(t={},(0,l.Z)(t,"".concat(P,"-fixed-header"),S),(0,l.Z)(t,"".concat(P,"-fixed-header-scroll"),R),(0,l.Z)(t,"".concat(P,"-mix"),Z==="mix"),(0,l.Z)(t,"".concat(P,"-fixed-header-action"),!f),(0,l.Z)(t,"".concat(P,"-top-menu"),_),(0,l.Z)(t,"".concat(P,"-header"),!0),(0,l.Z)(t,"".concat(P,"-stylish"),!!e.stylish),t));return Z==="side"&&!o?null:V.wrapSSR(oe((0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(He.ZP,{theme:{hashed:(0,k.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&(0,c.jsx)(mt,{style:(0,v.Z)({height:((a=O.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,lineHeight:"".concat(((i=O.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},s)}),(0,c.jsx)(mt,{className:ne,style:s,children:ee()})]})})))},Sa=g(27449),Za=g(19465),Ma=g(60076),ht=new Ma.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Ia=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,j,T,M;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(M={},(0,l.Z)(M,"".concat(e.antCls,"-layout-sider").concat(e.componentCls),{background:((n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),(0,l.Z)(M,e.componentCls,(Z={position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},(0,l.Z)(Z,"& ".concat(e.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.paddingInlineLayoutMenu,paddingBlock:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(e.colorSplit),marginInlineEnd:-1}),(0,l.Z)(Z,"".concat(e.antCls,"-menu"),(o={},(0,l.Z)(o,"".concat(e.antCls,"-menu-item-group-title"),{fontSize:e.fontSizeSM,paddingBottom:4}),(0,l.Z)(o,"".concat(e.antCls,"-menu-item:hover"),{color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuItemHover}),o)),(0,l.Z)(Z,"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(u=e.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuTitle,animationName:ht,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,l.Z)({flexDirection:"column-reverse",margin:0,padding:12},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),(0,l.Z)(Z,"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(p=e.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,"&:hover":{background:e.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:e.marginXS,borderRadius:e.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:e.colorBgTextHover}}}),(0,l.Z)(Z,"&-hide-menu-collapsed",{insetInlineStart:"-".concat(e.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),(0,l.Z)(Z,"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),(0,l.Z)(Z,"&-links",{width:"100%",ul:{height:"auto"}}),(0,l.Z)(Z,"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),(0,l.Z)(Z,"&-footer",{color:(y=e.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ht,animationDuration:".4s",animationTimingFunction:"ease"}),Z)),(0,l.Z)(M,"".concat(e.componentCls).concat(e.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((j=e.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((T=e.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.heightLayoutHeader)||56,"px")}}),M))};function Ra(r,e){var n=e.proLayoutCollapsedWidth;return(0,Ee.Xj)("ProLayoutSiderMenu",function(t){var a=(0,v.Z)((0,v.Z)({},t),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:n});return[Ia(a)]})}var gt=function(e){var n,t=e.isMobile,a=e.siderWidth,i=e.collapsed,o=e.onCollapse,u=e.style,d=e.className,s=e.hide,f=e.prefixCls,p=(0,m.useContext)(k.L_),y=p.token;(0,m.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var Z=(0,Jn.Z)(e,["className","style"]),j=m.useContext(He.ZP.ConfigContext),T=j.direction,M=Ra("".concat(f,"-sider"),{proLayoutCollapsedWidth:64}),O=M.wrapSSR,$=M.hashId,z=te()("".concat(f,"-sider"),d,$);if(s)return null;var N=(0,C.X)(!i,function(){return o==null?void 0:o(!0)});return O(t?(0,c.jsx)(Za.Z,(0,v.Z)((0,v.Z)({placement:T==="rtl"?"right":"left",className:te()("".concat(f,"-drawer-sider"),d)},N),{},{style:(0,v.Z)({padding:0,height:"100vh"},u),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,width:a,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=y.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:(0,c.jsx)(st,(0,v.Z)((0,v.Z)({},Z),{},{isMobile:!0,className:z,collapsed:t?!1:i,splitMenus:!1,originCollapsed:i}))})):(0,c.jsx)(st,(0,v.Z)((0,v.Z)({className:z,originCollapsed:i},Z),{},{style:u})))},pt=g(169),Ta=g(58809),Dn=g.n(Ta),Pa=function(e,n,t){if(t){var a=(0,Cn.Z)(t.keys()).find(function(o){return Dn()(o).test(e)});if(a)return t.get(a)}if(n){var i=Object.keys(n).find(function(o){return Dn()(o).test(e)});if(i)return n[i]}return{path:""}},On=function(e,n){var t=e.pathname,a=t===void 0?"/":t,i=e.breadcrumb,o=e.breadcrumbMap,u=e.formatMessage,d=e.title,s=e.menu,f=s===void 0?{locale:!1}:s,p=n?"":d||"",y=Pa(a,i,o);if(!y)return{title:p,id:"",pageName:p};var Z=y.name;return f.locale!==!1&&y.locale&&u&&(Z=u({id:y.locale||"",defaultMessage:y.name})),Z?n||!d?{title:Z,id:y.locale||"",pageName:Z}:{title:"".concat(Z," - ").concat(d),id:y.locale||"",pageName:Z}:{title:p,id:y.locale||"",pageName:p}},bo=function(e,n){return On(e,n).title},Ba=g(4569),Zn=g(63945),Qe=g(14224),ja=function(){var e;return typeof Qe=="undefined"?Zn.Z:((e=Qe)===null||Qe===void 0||(Qe={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Qe===void 0?void 0:Qe.ANTD_VERSION)||Zn.Z},Ea=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,j,T,M,O,$,z,N,R,x,S,ee,_,P,X,oe,b,V,ne,B,re,ue,pe,Y,se,ve,ge,Se,Ze,Me;return(n=ja())!==null&&n!==void 0&&n.startsWith("5")?{}:(Me={},(0,l.Z)(Me,e.componentCls,(ue={width:"100%",height:"100%"},(0,l.Z)(ue,"".concat(e.proComponentsCls,"-base-menu"),(_={color:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorTextMenu},(0,l.Z)(_,"".concat(e.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu}),(0,l.Z)(_,"& ".concat(e.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu-expand-icon, ").concat(e.antCls,"-menu-submenu-arrow"),{color:"inherit"}),(0,l.Z)(_,"&".concat(e.antCls,"-menu"),(o={color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},(0,l.Z)(o,"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),(0,l.Z)(o,"".concat(e.antCls,"-menu-item a"),{color:"inherit"}),o)),(0,l.Z)(_,"&".concat(e.antCls,"-menu-inline"),(0,l.Z)({},"".concat(e.antCls,"-menu-selected::after,").concat(e.antCls,"-menu-item-selected::after"),{display:"none"})),(0,l.Z)(_,"".concat(e.antCls,"-menu-sub ").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),(0,l.Z)(_,"".concat(e.antCls,`-menu-item:active, - `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-light"),(0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,`-menu-submenu-active, - `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(u=e.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuActive}))),(0,l.Z)(_,"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(Z={},(0,l.Z)(Z,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemSelected,borderRadius:e.borderRadius}),(0,l.Z)(Z,"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat((p=e.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(y=e.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuActive})),Z)),(0,l.Z)(_,"".concat(e.antCls,"-menu-item-selected"),{color:(j=e.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuSelected}),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu-selected"),{color:(T=e.layout)===null||T===void 0||(T=T.sider)===null||T===void 0?void 0:T.colorTextMenuSelected}),(0,l.Z)(_,"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-inline) ").concat(e.antCls,"-menu-submenu-open"),{color:(M=e.layout)===null||M===void 0||(M=M.sider)===null||M===void 0?void 0:M.colorTextMenuSelected}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-vertical"),(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:(O=e.layout)===null||O===void 0||(O=O.sider)===null||O===void 0?void 0:O.colorTextMenuSelected})),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:($=e.layout)===null||$===void 0||($=$.sider)===null||$===void 0?void 0:$.colorTextMenuActive}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-horizontal"),(ee={},(0,l.Z)(ee,"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-submenu:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(z=e.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorTextMenuActive,backgroundColor:"".concat((N=e.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemHover," !important")}),(0,l.Z)(ee,"".concat(e.antCls,`-menu-item-open, - `).concat(e.antCls,`-menu-submenu-open, - `).concat(e.antCls,`-menu-item-selected, - `).concat(e.antCls,"-menu-submenu-selected"),(0,l.Z)({backgroundColor:(R=e.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat((x=e.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat((S=e.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorTextMenuSelected," !important")})),(0,l.Z)(ee,"> ".concat(e.antCls,"-menu-item, > ").concat(e.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),(0,l.Z)(ee,"> ".concat(e.antCls,"-menu-item::after, > ").concat(e.antCls,"-menu-submenu::after"),{display:"none"}),ee)),_)),(0,l.Z)(ue,"".concat(e.proComponentsCls,"-top-nav-header-base-menu"),(re={},(0,l.Z)(re,"&".concat(e.antCls,"-menu"),(0,l.Z)({color:(P=e.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),(0,l.Z)(re,"&".concat(e.antCls,"-menu-light"),(B={},(0,l.Z)(B,"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,`-menu-submenu-active, - `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(X=e.layout)===null||X===void 0||(X=X.header)===null||X===void 0?void 0:X.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(oe=e.layout)===null||oe===void 0||(oe=oe.header)===null||oe===void 0?void 0:oe.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(b=e.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorTextMenuActive})),(0,l.Z)(B,"".concat(e.antCls,"-menu-item-selected"),{color:(V=e.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(ne=e.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorBgMenuItemSelected}),B)),re)),ue)),(0,l.Z)(Me,"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),(0,l.Z)(Me,"".concat(e.antCls,"-menu-submenu-popup"),(Ze={backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},(0,l.Z)(Ze,"".concat(e.antCls,"-menu"),(0,l.Z)({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(e.antCls,`-menu-item:active, - `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),(0,l.Z)(Ze,"".concat(e.antCls,"-menu-item-selected"),{color:(pe=e.layout)===null||pe===void 0||(pe=pe.sider)===null||pe===void 0?void 0:pe.colorTextMenuSelected}),(0,l.Z)(Ze,"".concat(e.antCls,"-menu-submenu-selected"),{color:(Y=e.layout)===null||Y===void 0||(Y=Y.sider)===null||Y===void 0?void 0:Y.colorTextMenuSelected}),(0,l.Z)(Ze,"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(Se={},(0,l.Z)(Se,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(se=e.layout)===null||se===void 0||(se=se.sider)===null||se===void 0?void 0:se.colorTextMenuSelected}),(0,l.Z)(Se,"".concat(e.antCls,`-menu-item:hover, - `).concat(e.antCls,`-menu-item-active, - `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(ve=e.layout)===null||ve===void 0||(ve=ve.sider)===null||ve===void 0?void 0:ve.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(ge=e.layout)===null||ge===void 0||(ge=ge.sider)===null||ge===void 0?void 0:ge.colorTextMenuActive})),Se)),Ze)),Me)},wa=function(e){var n,t,a,i,o,u;return u={},(0,l.Z)(u,"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),(0,l.Z)(u,e.componentCls,(o={},(0,l.Z)(o,"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),(0,l.Z)(o,"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(t=e.layout)===null||t===void 0||(t=t.pageContainer)===null||t===void 0?void 0:t.paddingBlockPageContainerContent,paddingInline:(a=e.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),(0,l.Z)(o,"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),(0,l.Z)(o,"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(i=e.layout)===null||i===void 0?void 0:i.bgLayout}),o)),u};function _a(r){return(0,Ee.Xj)("ProLayout",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[wa(n),Ea(n)]})}function La(r){if(!r||r==="/")return["/"];var e=r.split("/").filter(function(n){return n});return e.map(function(n,t){return"/".concat(e.slice(0,t+1).join("/"))})}var Ye=g(14224),Aa=function(){var e;return typeof Ye=="undefined"?Zn.Z:((e=Ye)===null||Ye===void 0||(Ye={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Ye===void 0?void 0:Ye.ANTD_VERSION)||Zn.Z},Ha=function(e,n,t){var a=e,i=a.breadcrumbName,o=a.title,u=a.path,d=t.findIndex(function(s){return s.linkPath===e.path})===t.length-1;return d?(0,c.jsx)("span",{children:o||i}):(0,c.jsx)("span",{onClick:u?function(){return location.href=u}:void 0,children:o||i})},Na=function(e,n){var t=n.formatMessage,a=n.menu;return e.locale&&t&&(a==null?void 0:a.locale)!==!1?t({id:e.locale,defaultMessage:e.name}):e.name},Da=function(e,n){var t=e.get(n);if(!t){var a=Array.from(e.keys())||[],i=a.find(function(o){return Dn()(o.replace("?","")).test(n)});i&&(t=e.get(i))}return t||{path:""}},Oa=function(e){var n=e.location,t=e.breadcrumbMap;return{location:n,breadcrumbMap:t}},$a=function(e,n,t){var a=La(e==null?void 0:e.pathname),i=a.map(function(o){var u=Da(n,o),d=Na(u,t),s=u.hideInBreadcrumb;return d&&!s?{linkPath:o,breadcrumbName:d,title:d,component:u.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return i},Wa=function(e){var n=Oa(e),t=n.location,a=n.breadcrumbMap;return t&&t.pathname&&a?$a(t,a,e):[]},za=function(e,n){var t=e.breadcrumbRender,a=e.itemRender,i=n.breadcrumbProps||{},o=i.minLength,u=o===void 0?2:o,d=Wa(e),s=function(y){for(var Z=a||Ha,j=arguments.length,T=new Array(j>1?j-1:0),M=1;M-1?{items:f,itemRender:s}:{routes:f,itemRender:s}};function Fa(r){return(0,Cn.Z)(r).reduce(function(e,n){var t=(0,F.Z)(n,2),a=t[0],i=t[1];return e[a]=i,e},{})}var Ka=function r(e,n,t,a){var i=lr(e,(n==null?void 0:n.locale)||!1,t,!0),o=i.menuData,u=i.breadcrumb;return a?r(a(o),n,t,void 0):{breadcrumb:Fa(u),breadcrumbMap:u,menuData:o}},Ua=g(40727),Ga=g(16168),Xa=function(e){var n=(0,m.useState)({}),t=(0,F.Z)(n,2),a=t[0],i=t[1];return(0,m.useEffect)(function(){i((0,Ga.Y)({layout:(0,Ua.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar]),a},Va=["id","defaultMessage"],Qa=["fixSiderbar","navTheme","layout"],yt=0,Ya=function(e,n){var t;return e.headerRender===!1||e.pure?null:(0,c.jsx)(ba,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{stylish:(t=e.stylish)===null||t===void 0?void 0:t.header}))},Ja=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,v.Z)({},e),(0,c.jsx)(xr.q,{})):null},ka=function(e,n){var t,a=e.layout,i=e.isMobile,o=e.selectedKeys,u=e.openKeys,d=e.splitMenus,s=e.suppressSiderWhenMenuEmpty,f=e.menuRender;if(e.menuRender===!1||e.pure)return null;var p=e.menuData;if(d&&(u!==!1||a==="mix")&&!i){var y=o||n,Z=(0,F.Z)(y,1),j=Z[0];if(j){var T;p=((T=e.menuData)===null||T===void 0||(T=T.find(function(z){return z.key===j}))===null||T===void 0?void 0:T.children)||[]}else p=[]}var M=(0,un.QX)(p||[]);if(M&&(M==null?void 0:M.length)<1&&(d||s))return null;if(a==="top"&&!i){var O;return(0,c.jsx)(gt,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{hide:!0,stylish:(O=e.stylish)===null||O===void 0?void 0:O.sider}))}var $=(0,c.jsx)(gt,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{menuData:M,stylish:(t=e.stylish)===null||t===void 0?void 0:t.sider}));return f?f(e,$):$},qa=function(e,n){var t=n.pageTitleRender,a=On(e);if(t===!1)return{title:n.title||"",id:"",pageName:""};if(t){var i=t(e,a.title,a);if(typeof i=="string")return On((0,v.Z)((0,v.Z)({},a),{},{title:i}));(0,hr.ZP)(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return a},eo=function(e,n,t){return e?n?64:t:0},no=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,j,T,M=e||{},O=M.children,$=M.onCollapse,z=M.location,N=z===void 0?{pathname:"/"}:z,R=M.contentStyle,x=M.route,S=M.defaultCollapsed,ee=M.style,_=M.siderWidth,P=M.menu,X=M.siderMenuType,oe=M.isChildrenLayout,b=M.menuDataRender,V=M.actionRef,ne=M.bgLayoutImgList,B=M.formatMessage,re=M.loading,ue=(0,m.useMemo)(function(){return _||(e.layout==="mix"?215:256)},[e.layout,_]),pe=(0,m.useContext)(He.ZP.ConfigContext),Y=(n=e.prefixCls)!==null&&n!==void 0?n:pe.getPrefixCls("pro"),se=(0,ce.Z)(!1,{value:P==null?void 0:P.loading,onChange:P==null?void 0:P.onLoadingChange}),ve=(0,F.Z)(se,2),ge=ve[0],Se=ve[1],Ze=(0,m.useState)(function(){return yt+=1,"pro-layout-".concat(yt)}),Me=(0,F.Z)(Ze,1),ze=Me[0],Fe=(0,m.useCallback)(function(Pe){var Ke=Pe.id,Tn=Pe.defaultMessage,hn=(0,ye.Z)(Pe,Va);if(B)return B((0,v.Z)({id:Ke,defaultMessage:Tn},hn));var gn=(0,Ba.e)();return gn[Ke]?gn[Ke]:Tn},[B]),cn=(0,kn.ZP)([ze,P==null?void 0:P.params],function(){var Pe=(0,ie.Z)((0,he.Z)().mark(function Ke(Tn){var hn,gn,wt,_t;return(0,he.Z)().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return gn=(0,F.Z)(Tn,2),wt=gn[1],Se(!0),nn.next=4,P==null||(hn=P.request)===null||hn===void 0?void 0:hn.call(P,wt||{},(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[]);case 4:return _t=nn.sent,Se(!1),nn.abrupt("return",_t);case 7:case"end":return nn.stop()}},Ke)}));return function(Ke){return Pe.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),Xe=cn.data,Mn=cn.mutate,dn=cn.isLoading;(0,m.useEffect)(function(){Se(dn)},[dn]);var Be=(0,kn.kY)(),Le=Be.cache;(0,m.useEffect)(function(){return function(){Le instanceof Map&&Le.delete(ze)}},[]);var Ae=(0,m.useMemo)(function(){return Ka(Xe||(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[],P,Fe,b)},[Fe,P,b,Xe,x==null?void 0:x.children,x==null?void 0:x.routes]),Je=Ae||{},ro=Je.breadcrumb,xt=Je.breadcrumbMap,Ct=Je.menuData,sn=Ct===void 0?[]:Ct;V&&P!==null&&P!==void 0&&P.request&&(V.current={reload:function(){Mn()}});var vn=(0,m.useMemo)(function(){return fr(N.pathname||"/",sn||[],!0)},[N.pathname,sn]),$n=(0,m.useMemo)(function(){return Array.from(new Set(vn.map(function(Pe){return Pe.key||Pe.path||""})))},[vn]),bt=vn[vn.length-1]||{},St=Xa(bt),In=(0,v.Z)((0,v.Z)({},e),St),ao=In.fixSiderbar,So=In.navTheme,fn=In.layout,oo=(0,ye.Z)(In,Qa),ke=L(),qe=(0,m.useMemo)(function(){return(ke==="sm"||ke==="xs")&&!e.disableMobile},[ke,e.disableMobile]),io=fn!=="top"&&!qe,lo=(0,ce.Z)(function(){return S!==void 0?S:!!(qe||ke==="md")},{value:e.collapsed,onChange:$}),Zt=(0,F.Z)(lo,2),mn=Zt[0],Mt=Zt[1],en=(0,Jn.Z)((0,v.Z)((0,v.Z)((0,v.Z)({prefixCls:Y},e),{},{siderWidth:ue},St),{},{formatMessage:Fe,breadcrumb:ro,menu:(0,v.Z)((0,v.Z)({},P),{},{type:X||(P==null?void 0:P.type),loading:ge}),layout:fn}),["className","style","breadcrumbRender"]),Wn=qa((0,v.Z)((0,v.Z)({pathname:N.pathname},en),{},{breadcrumbMap:xt}),e),uo=za((0,v.Z)((0,v.Z)({},en),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:xt}),e),Rn=ka((0,v.Z)((0,v.Z)({},en),{},{menuData:sn,onCollapse:Mt,isMobile:qe,collapsed:mn}),$n),zn=Ya((0,v.Z)((0,v.Z)({},en),{},{children:null,hasSiderMenu:!!Rn,menuData:sn,isMobile:qe,collapsed:mn,onCollapse:Mt}),$n),It=Ja((0,v.Z)({isMobile:qe,collapsed:mn},en)),co=(0,m.useContext)(pt.X),so=co.isChildrenLayout,Fn=oe!==void 0?oe:so,Ne="".concat(Y,"-layout"),Rt=_a(Ne),vo=Rt.wrapSSR,Kn=Rt.hashId,fo=te()(e.className,Kn,"ant-design-pro",Ne,(t={},(0,l.Z)(t,"screen-".concat(ke),ke),(0,l.Z)(t,"".concat(Ne,"-top-menu"),fn==="top"),(0,l.Z)(t,"".concat(Ne,"-is-children"),Fn),(0,l.Z)(t,"".concat(Ne,"-fix-siderbar"),ao),(0,l.Z)(t,"".concat(Ne,"-").concat(fn),fn),t)),mo=eo(!!io,mn,ue),Tt={position:"relative"};(Fn||R&&R.minHeight)&&(Tt.minHeight=0),(0,m.useEffect)(function(){var Pe;(Pe=e.onPageChange)===null||Pe===void 0||Pe.call(e,e.location)},[N.pathname,(a=N.pathname)===null||a===void 0?void 0:a.search]);var ho=(0,m.useState)(!1),Pt=(0,F.Z)(ho,2),Bt=Pt[0],go=Pt[1],po=(0,m.useState)(0),jt=(0,F.Z)(po,2),Et=jt[0],yo=jt[1];h(Wn,e.title||!1);var xo=(0,m.useMemo)(function(){return ne&&ne.length>0?ne.map(function(Pe,Ke){return(0,c.jsx)("img",{src:Pe.src,style:(0,v.Z)({position:"absolute"},Pe)},Ke)}):null},[ne]),Co=(0,m.useContext)(k.L_),J=Co.token;return vo((0,c.jsx)(pt.X.Provider,{value:(0,v.Z)((0,v.Z)({},en),{},{breadcrumb:uo,menuData:sn,isMobile:qe,collapsed:mn,hasPageContainer:Et,setHasPageContainer:yo,isChildrenLayout:!0,title:Wn.pageName,hasSiderMenu:!!Rn,hasHeader:!!zn,siderWidth:mo,hasFooter:!!It,hasFooterToolbar:Bt,setHasFooterToolbar:go,pageTitleInfo:Wn,matchMenus:vn,matchMenuKeys:$n,currentMenu:bt}),children:e.pure?(0,c.jsx)(c.Fragment,{children:O}):(0,c.jsxs)("div",{className:fo,children:[(0,c.jsx)("div",{className:te()("".concat(Ne,"-bg-list"),Kn),children:xo}),(0,c.jsxs)(Ve.Z,{style:(0,v.Z)({minHeight:"100%",flexDirection:Rn?"row":void 0},ee),children:[(0,c.jsx)(He.ZP,{theme:{hashed:(0,k.nu)(),token:{controlHeightLG:((i=J.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(J==null?void 0:J.controlHeightLG)},components:{Menu:E({colorItemBg:((o=J.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((u=J.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorMenuBackground)||"transparent",radiusItem:J.borderRadius,colorItemBgSelected:((d=J.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(J==null?void 0:J.colorBgTextHover),colorItemBgHover:((s=J.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemHover)||(J==null?void 0:J.colorBgTextHover),colorItemBgActive:((f=J.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemActive)||(J==null?void 0:J.colorBgTextActive),colorItemBgSelectedHorizontal:((p=J.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorBgMenuItemSelected)||(J==null?void 0:J.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((y=J.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenu)||(J==null?void 0:J.colorTextSecondary),colorItemTextHover:((Z=J.layout)===null||Z===void 0||(Z=Z.sider)===null||Z===void 0?void 0:Z.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((j=J.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:J==null?void 0:J.colorBgElevated,darkPopupBg:J==null?void 0:J.colorBgElevated})}},children:Rn}),(0,c.jsxs)("div",{style:Tt,className:"".concat(Ne,"-container ").concat(Kn).trim(),children:[zn,(0,c.jsx)(pr,(0,v.Z)((0,v.Z)({hasPageContainer:Et,isChildrenLayout:Fn},oo),{},{hasHeader:!!zn,prefixCls:Ne,style:R,children:re?(0,c.jsx)(Sa.S,{}):O})),It,Bt&&(0,c.jsx)("div",{className:"".concat(Ne,"-has-footer"),style:{height:64,marginBlockStart:(T=J.layout)===null||T===void 0||(T=T.pageContainer)===null||T===void 0?void 0:T.paddingBlockPageContainerContent}})]})]})]})}))},to=function(e){var n=e.colorPrimary,t=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,c.jsx)(He.ZP,{theme:n?{token:{colorPrimary:n}}:void 0,children:(0,c.jsx)(k._Y,(0,v.Z)((0,v.Z)({autoClearCache:!0},t),{},{token:e.token,prefixCls:e.prefixCls,children:(0,c.jsx)(no,(0,v.Z)((0,v.Z)({logo:(0,c.jsx)(yr,{})},at.h),{},{location:(0,U.j)()?window.location:void 0},e))}))})}},27449:function(Re,Ie,g){"use strict";g.d(Ie,{S:function(){return k}});var l=g(33346),he=g(10570),ie=g(38705),ye=g(50959),F=g(11527),v=["isLoading","pastDelay","timedOut","error","retry"],k=function(m){var de=m.isLoading,fe=m.pastDelay,Ce=m.timedOut,L=m.error,U=m.retry,h=(0,he.Z)(m,v);return(0,F.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,F.jsx)(ie.Z,(0,l.Z)({size:"large"},h))})}},169:function(Re,Ie,g){"use strict";g.d(Ie,{X:function(){return he}});var l=g(50959),he=(0,l.createContext)({})},27542:function(Re,Ie,g){"use strict";g.d(Ie,{S:function(){return de}});var l=g(47920),he=g(77254),ie=g(95325),ye=g(44906),F=g(41399),v=g(73273),k=g(6053),ce=g(50959),m=g(11527),de=function(fe){(0,ye.Z)(L,fe);var Ce=(0,F.Z)(L);function L(){var U;(0,l.Z)(this,L);for(var h=arguments.length,I=new Array(h),C=0;C=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||w===95){ae+=h[D++];continue}break}if(!ae)throw new TypeError("Missing parameter name at "+C);I.push({type:"NAME",index:C,value:ae}),C=D;continue}if(E==="("){var A=1,Q="",D=C+1;if(h[D]==="?")throw new TypeError('Pattern cannot start with "?" at '+D);for(;D-1:je===void 0;ae||(me+="(?:"+xe+"(?="+G+"))?"),$e||(me+="(?="+xe+"|"+G+")")}return new RegExp(me,m(C))}g=L;function U(h,I,C){return h instanceof RegExp?de(h,I):Array.isArray(h)?fe(h,I,C):Ce(h,I,C)}Ie.Bo=U},58809:function(Re){Re.exports=Ce,Re.exports.parse=he,Re.exports.compile=ie,Re.exports.tokensToFunction=ye,Re.exports.tokensToRegExp=fe;var Ie="/",g="./",l=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function he(L,U){for(var h=[],I=0,C=0,E="",ae=U&&U.delimiter||Ie,D=U&&U.delimiters||g,w=!1,A;(A=l.exec(L))!==null;){var Q=A[0],q=A[1],K=A.index;if(E+=L.slice(C,K),C=K+Q.length,q){E+=q[1],w=!0;continue}var G="",xe=L[C],me=A[2],W=A[3],le=A[4],H=A[5];if(!w&&E.length){var Te=E.length-1;D.indexOf(E[Te])>-1&&(G=E[Te],E=E.slice(0,Te))}E&&(h.push(E),E="",w=!1);var _e=G!==""&&xe!==void 0&&xe!==G,Oe=H==="+"||H==="*",je=H==="?"||H==="*",$e=G||ae,De=W||le;h.push({name:me||I++,prefix:G,delimiter:$e,optional:je,repeat:Oe,partial:_e,pattern:De?v(De):"[^"+F($e)+"]+?"})}return(E||C-1;else{var G=K.repeat?"(?:"+K.pattern+")(?:"+F(K.delimiter)+"(?:"+K.pattern+"))*":K.pattern;U&&U.push(K),K.optional?K.partial?A+=F(K.prefix)+"("+G+")?":A+="(?:"+F(K.prefix)+"("+G+"))?":A+=F(K.prefix)+"("+G+")"}}return E?(I||(A+="(?:"+ae+")?"),A+=w==="$"?"$":"(?="+w+")"):(I||(A+="(?:"+ae+"(?="+w+"))?"),Q||(A+="(?="+ae+"|"+w+")")),new RegExp(A,k(h))}function Ce(L,U,h){return L instanceof RegExp?ce(L,U):Array.isArray(L)?m(L,U,h):de(L,U,h)}},38887:function(Re,Ie,g){var l=g(61533);function he(ie,ye){var F=typeof Symbol!="undefined"&&ie[Symbol.iterator]||ie["@@iterator"];if(!F){if(Array.isArray(ie)||(F=l(ie))||ye&&ie&&typeof ie.length=="number"){F&&(ie=F);var v=0,k=function(){};return{s:k,n:function(){return v>=ie.length?{done:!0}:{done:!1,value:ie[v++]}},e:function(Ce){throw Ce},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ce=!0,m=!1,de;return{s:function(){F=F.call(ie)},n:function(){var Ce=F.next();return ce=Ce.done,Ce},e:function(Ce){m=!0,de=Ce},f:function(){try{!ce&&F.return!=null&&F.return()}finally{if(m)throw de}}}}Re.exports=he,Re.exports.__esModule=!0,Re.exports.default=Re.exports}}]); diff --git a/6217.77d97486.async.js b/6217.77d97486.async.js deleted file mode 100644 index f4bde8e9..00000000 --- a/6217.77d97486.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6217],{19485:function(m,o){"use strict";var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};o.Z=t},8941:function(m,o){"use strict";var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};o.Z=t},64935:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 680h-54V540H546v-92h238c8.8 0 16-7.2 16-16V168c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v264c0 8.8 7.2 16 16 16h238v92H190v140h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8h-54v-72h220v72h-54c-4.4 0-8 3.6-8 8v176c0 4.4 3.6 8 8 8h176c4.4 0 8-3.6 8-8V688c0-4.4-3.6-8-8-8zM256 805.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zm288 0c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM288 384V216h448v168H288zm544 421.3c0 1.5-1.2 2.7-2.7 2.7h-58.7c-1.5 0-2.7-1.2-2.7-2.7v-58.7c0-1.5 1.2-2.7 2.7-2.7h58.7c1.5 0 2.7 1.2 2.7 2.7v58.7zM360 300a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"cluster",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="ClusterOutlined";var r=n.forwardRef(a)},93590:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M594.3 601.5a111.8 111.8 0 0029.1-75.5c0-61.9-49.9-112-111.4-112s-111.4 50.1-111.4 112c0 29.1 11 55.5 29.1 75.5a158.09 158.09 0 00-74.6 126.1 8 8 0 008 8.4H407c4.2 0 7.6-3.3 7.9-7.5 3.8-50.6 46-90.5 97.2-90.5s93.4 40 97.2 90.5c.3 4.2 3.7 7.5 7.9 7.5H661a8 8 0 008-8.4c-2.8-53.3-32-99.7-74.7-126.1zM512 578c-28.5 0-51.7-23.3-51.7-52s23.2-52 51.7-52 51.7 23.3 51.7 52-23.2 52-51.7 52zm416-354H768v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H548v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H328v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56H96c-17.7 0-32 14.3-32 32v576c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32zm-40 568H136V296h120v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h148v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56h120v496z"}}]},name:"contacts",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="ContactsOutlined";var r=n.forwardRef(a)},94573:function(m,o,t){"use strict";var e=t(33346),n=t(50959),l=t(19485),c=t(69164),s=function(r,f){return n.createElement(c.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:f,icon:l.Z}))};s.displayName="DownloadOutlined",o.Z=n.forwardRef(s)},83011:function(m,o,t){"use strict";var e=t(33346),n=t(50959),l=t(8941),c=t(69164),s=function(r,f){return n.createElement(c.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:f,icon:l.Z}))};s.displayName="EditOutlined",o.Z=n.forwardRef(s)},27174:function(m,o,t){"use strict";var e=t(33346),n=t(50959),l=t(44108),c=t(69164),s=function(r,f){return n.createElement(c.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:f,icon:l.Z}))};s.displayName="EllipsisOutlined",o.Z=n.forwardRef(s)},26252:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="HomeOutlined";var r=n.forwardRef(a)},19791:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="LikeOutlined";var r=n.forwardRef(a)},55842:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="MessageFilled";var r=n.forwardRef(a)},1442:function(m,o,t){"use strict";var e=t(33346),n=t(50959),l=t(63374),c=t(69164),s=function(r,f){return n.createElement(c.Z,(0,e.Z)((0,e.Z)({},r),{},{ref:f,icon:l.Z}))};s.displayName="PlusOutlined",o.Z=n.forwardRef(s)},25468:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="ShareAltOutlined";var r=n.forwardRef(a)},50615:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(33346),n=t(50959),l={icon:function(u,v){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:v}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:u}}]}},name:"star",theme:"twotone"},c=l,s=t(69164),a=function(u,v){return n.createElement(s.Z,(0,e.Z)((0,e.Z)({},u),{},{ref:v,icon:c}))};a.displayName="StarTwoTone";var r=n.forwardRef(a)},57249:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(38126),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},c=l,s=t(38782),a=function(u,v){return n.createElement(s.Z,(0,e.Z)({},u,{ref:v,icon:c}))},r=n.forwardRef(a)},96527:function(m,o,t){"use strict";t.d(o,{Z:function(){return r}});var e=t(38126),n=t(50959),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},c=l,s=t(38782),a=function(u,v){return n.createElement(s.Z,(0,e.Z)({},u,{ref:v,icon:c}))},r=n.forwardRef(a)},19494:function(m,o,t){"use strict";t.d(o,{f:function(){return D}});var e=t(73273),n=t(56197),l=t(84875),c=t.n(l),s=t(50959),a=t(169),r=t(33346),f=t(26488),u=function(g){return(0,e.Z)({},g.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function v(P){return(0,f.Xj)("ProLayoutGridContent",function(g){var Z=(0,r.Z)((0,r.Z)({},g),{},{componentCls:".".concat(P)});return[u(Z)]})}var T=t(11527),D=function(g){var Z=(0,s.useContext)(a.X),G=g.children,z=g.contentWidth,y=g.className,x=g.style,N=(0,s.useContext)(n.ZP.ConfigContext),R=N.getPrefixCls,et=g.prefixCls||R("pro"),lt=z||Z.contentWidth,Q="".concat(et,"-grid-content"),nt=v(Q),ut=nt.wrapSSR,at=nt.hashId,ct=lt==="Fixed"&&Z.layout==="top";return ut((0,T.jsx)("div",{className:c()(Q,at,y,(0,e.Z)({},"".concat(Q,"-wide"),ct)),style:x,children:(0,T.jsx)("div",{className:"".concat(et,"-grid-content-children ").concat(at).trim(),children:G})}))}},169:function(m,o,t){"use strict";t.d(o,{X:function(){return n}});var e=t(50959),n=(0,e.createContext)({})},82099:function(m,o,t){"use strict";var e=t(50120);o.Z=e.Z},33952:function(m,o,t){"use strict";t.d(o,{Z:function(){return vt}});var e=t(50959),n=t(84875),l=t.n(n),c=t(31594),s=t(1415),a=t(55904),f=i=>{const{getPrefixCls:M,direction:h}=(0,e.useContext)(c.E_),{prefixCls:d,className:O}=i,p=M("input-group",d),w=M("input"),[S,V]=(0,a.ZP)(w),U=l()(p,{[`${p}-lg`]:i.size==="large",[`${p}-sm`]:i.size==="small",[`${p}-compact`]:i.compact,[`${p}-rtl`]:h==="rtl"},V,O),j=(0,e.useContext)(s.aM),L=(0,e.useMemo)(()=>Object.assign(Object.assign({},j),{isFormItemInput:!1}),[j]);return S(e.createElement("span",{className:U,style:i.style,onMouseEnter:i.onMouseEnter,onMouseLeave:i.onMouseLeave,onFocus:i.onFocus,onBlur:i.onBlur},e.createElement(s.aM.Provider,{value:L},i.children)))},u=t(21626),v=t(57249),T=t(96527),D=t(87017),P=t(12602),g=t(59647),Z=function(i,M){var h={};for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&M.indexOf(d)<0&&(h[d]=i[d]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,d=Object.getOwnPropertySymbols(i);Oi?e.createElement(T.Z,null):e.createElement(v.Z,null),z={click:"onClick",hover:"onMouseOver"};var x=e.forwardRef((i,M)=>{const{visibilityToggle:h=!0}=i,d=typeof h=="object"&&h.visible!==void 0,[O,p]=(0,e.useState)(()=>d?h.visible:!1),w=(0,e.useRef)(null);e.useEffect(()=>{d&&p(h.visible)},[d,h]);const S=(0,g.Z)(w),V=()=>{const{disabled:Y}=i;Y||(O&&S(),p(I=>{var A;const $=!I;return typeof h=="object"&&((A=h.onVisibleChange)===null||A===void 0||A.call(h,$)),$}))},U=Y=>{const{action:I="click",iconRender:A=G}=i,$=z[I]||"",F=A(O),k={[$]:V,className:`${Y}-icon`,key:"passwordIcon",onMouseDown:q=>{q.preventDefault()},onMouseUp:q=>{q.preventDefault()}};return e.cloneElement(e.isValidElement(F)?F:e.createElement("span",null,F),k)},{className:j,prefixCls:L,inputPrefixCls:ot,size:b}=i,_=Z(i,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:st}=e.useContext(c.E_),rt=st("input",ot),K=st("input-password",L),J=h&&U(K),B=l()(K,j,{[`${K}-${b}`]:!!b}),it=Object.assign(Object.assign({},(0,D.Z)(_,["suffix","iconRender","visibilityToggle"])),{type:O?"text":"password",className:B,prefixCls:rt,suffix:J});return b&&(it.size=b),e.createElement(u.Z,Object.assign({ref:(0,P.sQ)(M,w)},it))}),N=t(61020),R=t(94914),et=t(47100),lt=t(17436),Q=t(21130),nt=function(i,M){var h={};for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&M.indexOf(d)<0&&(h[d]=i[d]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,d=Object.getOwnPropertySymbols(i);O{const{prefixCls:h,inputPrefixCls:d,className:O,size:p,suffix:w,enterButton:S=!1,addonAfter:V,loading:U,disabled:j,onSearch:L,onChange:ot,onCompositionStart:b,onCompositionEnd:_}=i,st=nt(i,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:rt,direction:K}=e.useContext(c.E_),J=e.useRef(!1),B=rt("input-search",h),it=rt("input",d),{compactSize:Y}=(0,Q.ri)(B,K),I=(0,lt.Z)(C=>{var E;return(E=p!=null?p:Y)!==null&&E!==void 0?E:C}),A=e.useRef(null),$=C=>{C&&C.target&&C.type==="click"&&L&&L(C.target.value,C,{source:"clear"}),ot&&ot(C)},F=C=>{var E;document.activeElement===((E=A.current)===null||E===void 0?void 0:E.input)&&C.preventDefault()},k=C=>{var E,W;L&&L((W=(E=A.current)===null||E===void 0?void 0:E.input)===null||W===void 0?void 0:W.value,C,{source:"input"})},q=C=>{J.current||U||k(C)},mt=typeof S=="boolean"?e.createElement(N.Z,null):null,dt=`${B}-button`;let tt;const H=S||{},ft=H.type&&H.type.__ANT_BUTTON===!0;ft||H.type==="button"?tt=(0,R.Tm)(H,Object.assign({onMouseDown:F,onClick:C=>{var E,W;(W=(E=H==null?void 0:H.props)===null||E===void 0?void 0:E.onClick)===null||W===void 0||W.call(E,C),k(C)},key:"enterButton"},ft?{className:dt,size:I}:{})):tt=e.createElement(et.ZP,{className:dt,type:S?"primary":void 0,size:I,disabled:j,key:"enterButton",onMouseDown:F,onClick:k,loading:U,icon:mt},S),V&&(tt=[tt,(0,R.Tm)(V,{key:"addonAfter"})]);const ht=l()(B,{[`${B}-rtl`]:K==="rtl",[`${B}-${I}`]:!!I,[`${B}-with-button`]:!!S},O),Ot=C=>{J.current=!0,b==null||b(C)},Ct=C=>{J.current=!1,_==null||_(C)};return e.createElement(u.Z,Object.assign({ref:(0,P.sQ)(A,M),onPressEnter:q},st,{size:I,onCompositionStart:Ot,onCompositionEnd:Ct,prefixCls:it,addonAfter:tt,suffix:w,onChange:$,className:ht,disabled:j}))}),ct=t(15714);const X=u.Z;X.Group=f,X.Search=at,X.TextArea=ct.Z,X.Password=x;var vt=X},23870:function(m,o,t){"use strict";var e=t(72611);o.Z=e.Z},92117:function(m){(function(o,t){m.exports=t()})(this,function(){"use strict";return function(o,t,e){o=o||{};var n=t.prototype,l={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(a,r,f,u){return n.fromToBase(a,r,f,u)}e.en.relativeTime=l,n.fromToBase=function(a,r,f,u,v){for(var T,D,P,g=f.$locale().relativeTime||l,Z=o.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],G=Z.length,z=0;z0,x<=y.r||!y.r){x<=1&&z>0&&(y=Z[z-1]);var N=g[y.l];v&&(x=v(""+x)),D=typeof N=="string"?N.replace("%d",x):N(x,r,y.l,P);break}}if(r)return D;var R=P?g.future:g.past;return typeof R=="function"?R(D):R.replace("%s",D)},n.to=function(a,r){return c(a,r,this,!0)},n.from=function(a,r){return c(a,r,this)};var s=function(a){return a.$u?e.utc():e()};n.toNow=function(a){return this.to(s(this),a)},n.fromNow=function(a){return this.from(s(this),a)}}})}}]); diff --git a/6232.4023aa3d.async.js b/6232.4023aa3d.async.js deleted file mode 100644 index 09f56aab..00000000 --- a/6232.4023aa3d.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6232],{56232:function(o,n,t){t.r(n),t.d(n,{default:function(){return E}});var O=t(50959),u=t(27533),s=t(11527);function E(){var e=(0,u.useOutletContext)();return(0,s.jsx)(u.Outlet,{context:e})}}}]); diff --git a/6546.b48ad1c0.async.js b/6546.b48ad1c0.async.js deleted file mode 100644 index 5d722444..00000000 --- a/6546.b48ad1c0.async.js +++ /dev/null @@ -1,109 +0,0 @@ -!(function(){var Xd=Object.defineProperty;var Xc=Object.getOwnPropertySymbols;var Gd=Object.prototype.hasOwnProperty,Qd=Object.prototype.propertyIsEnumerable;var Gc=(Zt,xe,a)=>xe in Zt?Xd(Zt,xe,{enumerable:!0,configurable:!0,writable:!0,value:a}):Zt[xe]=a,Qc=(Zt,xe)=>{for(var a in xe||(xe={}))Gd.call(xe,a)&&Gc(Zt,a,xe[a]);if(Xc)for(var a of Xc(xe))Qd.call(xe,a)&&Gc(Zt,a,xe[a]);return Zt};(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6546],{19485:function(Zt,xe){"use strict";var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};xe.Z=a},73715:function(Zt,xe){"use strict";var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};xe.Z=a},22717:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return ae}});var i=a(38126),w=a(50959),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},l=I,k=a(38782),Z=function(K,ce){return w.createElement(k.Z,(0,i.Z)({},K,{ref:ce,icon:l}))},ae=w.forwardRef(Z)},11677:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return ae}});var i=a(38126),w=a(50959),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},l=I,k=a(38782),Z=function(K,ce){return w.createElement(k.Z,(0,i.Z)({},K,{ref:ce,icon:l}))},ae=w.forwardRef(Z)},32702:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return ae}});var i=a(38126),w=a(50959),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},l=I,k=a(38782),Z=function(K,ce){return w.createElement(k.Z,(0,i.Z)({},K,{ref:ce,icon:l}))},ae=w.forwardRef(Z)},83846:function(Zt,xe,a){"use strict";a.d(xe,{ZP:function(){return qe},NA:function(){return A},aK:function(){return Le}});var i=a(33346),w=a(10570),I=a(32682),l=a(40727),k=a(1788),Z=a(73273),ae=a(17122),Q=a(26488),K=a(30510),ce=a(23672),pe=a(13165),x=a(66607),re=a(65589),Ye=a(11979),z=a(50959),se=a(18941);function H(yt){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,It=arguments.length>2?arguments[2]:void 0,Vt=(0,z.useState)(yt),mt=(0,I.Z)(Vt,2),Dt=mt[0],Mt=mt[1],Lt=(0,se.d)(yt);return(0,z.useEffect)(function(){var Pn=setTimeout(function(){Mt(Lt.current)},me);return function(){return clearTimeout(Pn)}},It?[me].concat((0,k.Z)(It)):void 0),Dt}var it=a(56197),At=a(38705),ke=a(84707),ut=a(61020),B=a(22532),tr=a(32413),mn=a(33952),jn=a(84875),bn=a.n(jn),qt=a(13763),be=a(11527),Ue=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength"],Wt=function(me,It){return(0,l.Z)(It)!=="object"?me[It]||It:me[It==null?void 0:It.value]||It.label},an=function(me,It){var Vt=me.label,mt=me.prefixCls,Dt=me.onChange,Mt=me.value,Lt=me.mode,Pn=me.children,Ee=me.defaultValue,Ve=me.size,Be=me.showSearch,Qe=me.disabled,St=me.style,bt=me.className,P=me.bordered,de=me.options,ye=me.onSearch,He=me.allowClear,_e=me.labelInValue,st=me.fieldNames,Ct=me.lightLabel,Kt=me.labelTrigger,$t=me.optionFilterProp,Rt=me.optionLabelProp,lt=Rt===void 0?"":Rt,nt=me.valueMaxLength,Fe=nt===void 0?41:nt,je=(0,w.Z)(me,Ue),fe=me.placeholder,Ze=fe===void 0?Vt:fe,$=st||{},j=$.label,Y=j===void 0?"label":j,Me=$.value,ze=Me===void 0?"value":Me,ft=(0,z.useContext)(it.ZP.ConfigContext),vn=ft.getPrefixCls,_t=vn("pro-field-select-light-select"),Yt=(0,z.useState)(!1),Tt=(0,I.Z)(Yt,2),Ut=Tt[0],dn=Tt[1],Ft=(0,z.useState)(""),un=(0,I.Z)(Ft,2),ve=un[0],Ge=un[1],vt=(0,Q.Xj)("LightSelect",function(ge){var rt;return(0,Z.Z)({},".".concat(_t),(rt={},(0,Z.Z)(rt,"".concat(ge.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),(0,Z.Z)(rt,"&.".concat(_t,"-searchable"),(0,Z.Z)({},"".concat(ge.antCls,"-select"),{width:"200px","&-selector":{height:28}})),rt))}),et=vt.wrapSSR,N=vt.hashId,Pe=(0,z.useMemo)(function(){var ge={};return de==null||de.forEach(function(rt){var Je=rt[lt]||rt[Y],Re=rt[ze];ge[Re]=Je||Re}),ge},[Y,de,ze,lt]),De=Array.isArray(Mt)?Mt.map(function(ge){return Wt(Pe,ge)}):Wt(Pe,Mt);return et((0,be.jsxs)("div",{className:bn()(_t,N,(0,Z.Z)({},"".concat(_t,"-searchable"),Be),"".concat(_t,"-container-").concat(je.placement||"bottomLeft"),bt),style:St,onClick:function(rt){var Je;if(!Qe){var Re=Ct==null||(Je=Ct.current)===null||Je===void 0||(Je=Je.labelRef)===null||Je===void 0||(Je=Je.current)===null||Je===void 0?void 0:Je.contains(rt.target);dn(Re?!Ut:!0)}},children:[(0,be.jsx)(tr.default,(0,i.Z)((0,i.Z)({popupMatchSelectWidth:!1},je),{},{allowClear:He,value:Mt,mode:Lt,labelInValue:_e,size:Ve,disabled:Qe,onChange:function(rt,Je){Dt==null||Dt(rt,Je),Lt!=="multiple"&&dn(!1)},bordered:P,showSearch:Be,onSearch:ye,style:St,dropdownRender:function(rt){return(0,be.jsxs)("div",{ref:It,children:[Be&&(0,be.jsx)("div",{style:{margin:"4px 8px"},children:(0,be.jsx)(mn.Z,{value:ve,allowClear:!!He,onChange:function(Re){Ge(Re.target.value),ye==null||ye(Re.target.value)},onKeyDown:function(Re){Re.stopPropagation()},style:{width:"100%"},prefix:(0,be.jsx)(ut.Z,{})})}),rt]})},open:Ut,onDropdownVisibleChange:function(rt){var Je;rt||Ge(""),Kt||dn(rt),je==null||(Je=je.onDropdownVisibleChange)===null||Je===void 0||Je.call(je,rt)},prefixCls:mt,options:ye||!ve?de:de==null?void 0:de.filter(function(ge){var rt,Je;return $t?(0,qt.Z)(ge[$t]).join("").toLowerCase().includes(ve):((rt=String(ge[Y]))===null||rt===void 0||(rt=rt.toLowerCase())===null||rt===void 0?void 0:rt.includes(ve==null?void 0:ve.toLowerCase()))||((Je=ge[ze])===null||Je===void 0||(Je=Je.toString())===null||Je===void 0||(Je=Je.toLowerCase())===null||Je===void 0?void 0:Je.includes(ve==null?void 0:ve.toLowerCase()))})})),(0,be.jsx)(B.Q,{ellipsis:!0,label:Vt,placeholder:Ze,disabled:Qe,bordered:P,allowClear:!!He,value:De||(Mt==null?void 0:Mt.label)||Mt,onClear:function(){Dt==null||Dt(void 0,void 0)},ref:Ct,valueMaxLength:Fe})]}))},pt=z.forwardRef(an),tt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],tn=["className","optionType"],En=function(me,It){var Vt=me.optionItemRender,mt=me.mode,Dt=me.onSearch,Mt=me.onFocus,Lt=me.onChange,Pn=me.autoClearSearchValue,Ee=Pn===void 0?!0:Pn,Ve=me.searchOnFocus,Be=Ve===void 0?!1:Ve,Qe=me.resetAfterSelect,St=Qe===void 0?!1:Qe,bt=me.fetchDataOnSearch,P=bt===void 0?!0:bt,de=me.optionFilterProp,ye=de===void 0?"label":de,He=me.optionLabelProp,_e=He===void 0?"label":He,st=me.className,Ct=me.disabled,Kt=me.options,$t=me.fetchData,Rt=me.resetData,lt=me.prefixCls,nt=me.onClear,Fe=me.searchValue,je=me.showSearch,fe=me.fieldNames,Ze=me.defaultSearchValue,$=(0,w.Z)(me,tt),j=fe||{},Y=j.label,Me=Y===void 0?"label":Y,ze=j.value,ft=ze===void 0?"value":ze,vn=j.options,_t=vn===void 0?"options":vn,Yt=(0,z.useState)(Fe!=null?Fe:Ze),Tt=(0,I.Z)(Yt,2),Ut=Tt[0],dn=Tt[1],Ft=(0,z.useRef)();(0,z.useImperativeHandle)(It,function(){return Ft.current}),(0,z.useEffect)(function(){if($.autoFocus){var Pe;Ft==null||(Pe=Ft.current)===null||Pe===void 0||Pe.focus()}},[$.autoFocus]),(0,z.useEffect)(function(){dn(Fe)},[Fe]);var un=(0,z.useContext)(it.ZP.ConfigContext),ve=un.getPrefixCls,Ge=ve("pro-filed-search-select",lt),vt=bn()(Ge,st,(0,Z.Z)({},"".concat(Ge,"-disabled"),Ct)),et=function(De,ge){return Array.isArray(De)&&Array.isArray(ge)&&De.length>0?De.map(function(rt,Je){var Re=ge==null?void 0:ge[Je],Ln=(Re==null?void 0:Re["data-item"])||{};return(0,i.Z)((0,i.Z)({},Ln),rt)}):[]},N=function Pe(De){return De.map(function(ge,rt){var Je,Re=ge,Ln=Re.className,zn=Re.optionType,on=(0,w.Z)(Re,tn),Mn=ge[Me],Wn=ge[ft],Gn=(Je=ge[_t])!==null&&Je!==void 0?Je:[];return zn==="optGroup"||ge.options?(0,i.Z)((0,i.Z)({label:Mn},on),{},{data_title:Mn,title:Mn,key:Wn!=null?Wn:Mn==null?void 0:Mn.toString(),children:Pe(Gn)}):(0,i.Z)((0,i.Z)({title:Mn},on),{},{data_title:Mn,value:Wn!=null?Wn:rt,key:Wn!=null?Wn:Mn==null?void 0:Mn.toString(),"data-item":ge,className:"".concat(Ge,"-option ").concat(Ln||"").trim(),label:(Vt==null?void 0:Vt(ge))||Mn})})};return(0,be.jsx)(tr.default,(0,i.Z)((0,i.Z)({ref:Ft,className:vt,allowClear:!0,autoClearSearchValue:Ee,disabled:Ct,mode:mt,showSearch:je,searchValue:Ut,optionFilterProp:ye,optionLabelProp:_e,onClear:function(){nt==null||nt(),$t(void 0),je&&dn(void 0)}},$),{},{filterOption:$.filterOption==!1?!1:function(Pe,De){var ge,rt,Je;return $.filterOption&&typeof $.filterOption=="function"?$.filterOption(Pe,(0,i.Z)((0,i.Z)({},De),{},{label:De==null?void 0:De.data_title})):!!(De!=null&&(ge=De.data_title)!==null&&ge!==void 0&&ge.toString().toLowerCase().includes(Pe.toLowerCase())||De!=null&&(rt=De.label)!==null&&rt!==void 0&&rt.toString().toLowerCase().includes(Pe.toLowerCase())||De!=null&&(Je=De.value)!==null&&Je!==void 0&&Je.toString().toLowerCase().includes(Pe.toLowerCase()))},onSearch:je?function(Pe){P&&$t(Pe),Dt==null||Dt(Pe),dn(Pe)}:void 0,onChange:function(De,ge){je&&Ee&&($t(void 0),Dt==null||Dt(""),dn(void 0));for(var rt=arguments.length,Je=new Array(rt>2?rt-2:0),Re=2;Re2&&arguments[2]!==void 0?arguments[2]:!0,St=Object.keys(Be).reduce(function(de,ye){var He=Be[ye];return(0,bn.k)(He)||(de[ye]=He),de},{});if(Object.keys(St).length<1||typeof window=="undefined"||(0,ut.Z)(Ve)!=="object"||(0,bn.k)(Ve)||Ve instanceof Blob)return Ve;var bt=Array.isArray(Ve)?[]:{},P=function de(ye,He){var _e=Array.isArray(ye),st=_e?[]:{};return ye==null||ye===void 0?st:(Object.keys(ye).forEach(function(Ct){var Kt=function je(fe,Ze){return Array.isArray(fe)&&fe.forEach(function($,j){if($){var Y=Ze==null?void 0:Ze[j];typeof $=="function"&&(Ze[j]=$(Ze,Ct,ye)),(0,ut.Z)($)==="object"&&!Array.isArray($)&&Object.keys($).forEach(function(Me){var ze=Y==null?void 0:Y[Me];if(typeof $[Me]=="function"&&ze){var ft=$[Me](Y[Me],Ct,ye);Y[Me]=(0,ut.Z)(ft)==="object"?ft[Me]:ft}else(0,ut.Z)($[Me])==="object"&&Array.isArray($[Me])&&ze&&je($[Me],ze)}),(0,ut.Z)($)==="object"&&Array.isArray($)&&Y&&je($,Y)}}),Ct},$t=He?[He,Ct].flat(1):[Ct].flat(1),Rt=ye[Ct],lt=(0,mn.Z)(St,$t),nt=function(){var fe,Ze,$=!1;if(typeof lt=="function"){Ze=lt==null?void 0:lt(Rt,Ct,ye);var j=(0,ut.Z)(Ze);j!=="object"&&j!=="undefined"?(fe=Ct,$=!0):fe=Ze}else fe=Kt(lt,Rt);if(Array.isArray(fe)){st=(0,jn.Z)(st,fe,Rt);return}(0,ut.Z)(fe)==="object"&&!Array.isArray(bt)?bt=tr()(bt,fe):(0,ut.Z)(fe)==="object"&&Array.isArray(bt)?st=(0,I.Z)((0,I.Z)({},st),fe):(fe!==null||fe!==void 0)&&(st=(0,jn.Z)(st,[fe],$?Ze:Rt))};if(lt&&typeof lt=="function"&&nt(),typeof window!="undefined"){if(be(Rt)){var Fe=de(Rt,$t);if(Object.keys(Fe).length<1)return;st=(0,jn.Z)(st,[Ct],Fe);return}nt()}}),Qe?st:ye)};return bt=Array.isArray(Ve)&&Array.isArray(bt)?(0,ke.Z)(P(Ve)):(0,qt.T)({},P(Ve),bt),bt},Wt=a(55132),an=a(87375),pt=a(67190),tt=a(56197),tn=a(38705),En=a(84875),Rn=a.n(En),On=a(71770),Te=a(12868),fn=a(54970),T=a(47100),A=a(11527),Le=function(Ve){var Be=(0,ae.YB)(),Qe=pt.Z.useFormInstance();if(Ve.render===!1)return null;var St=Ve.onSubmit,bt=Ve.render,P=Ve.onReset,de=Ve.searchConfig,ye=de===void 0?{}:de,He=Ve.submitButtonProps,_e=Ve.resetButtonProps,st=At.Ow.useToken(),Ct=st.token,Kt=function(){Qe.submit(),St==null||St()},$t=function(){Qe.resetFields(),P==null||P()},Rt=ye.submitText,lt=Rt===void 0?Be.getMessage("tableForm.submit","\u63D0\u4EA4"):Rt,nt=ye.resetText,Fe=nt===void 0?Be.getMessage("tableForm.reset","\u91CD\u7F6E"):nt,je=[];_e!==!1&&je.push((0,z.createElement)(T.ZP,(0,I.Z)((0,I.Z)({},(0,On.Z)(_e,["preventDefault"])),{},{key:"rest",onClick:function($){var j;_e!=null&&_e.preventDefault||$t(),_e==null||(j=_e.onClick)===null||j===void 0||j.call(_e,$)}}),Fe)),He!==!1&&je.push((0,z.createElement)(T.ZP,(0,I.Z)((0,I.Z)({type:"primary"},(0,On.Z)(He||{},["preventDefault"])),{},{key:"submit",onClick:function($){var j;He!=null&&He.preventDefault||Kt(),He==null||(j=He.onClick)===null||j===void 0||j.call(He,$)}}),lt));var fe=bt?bt((0,I.Z)((0,I.Z)({},Ve),{},{form:Qe,submit:Kt,reset:$t}),je):je;return fe?Array.isArray(fe)?(fe==null?void 0:fe.length)<1?null:(fe==null?void 0:fe.length)===1?fe[0]:(0,A.jsx)("div",{style:{display:"flex",gap:Ct.marginXS,alignItems:"center"},children:fe}):fe:null},We=Le,qe=a(58460),yt=a(21510),me=a(58922),It=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],Vt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],mt=function(Ve,Be,Qe){return Ve===!0?Be:(0,Q.h)(Ve,Be,Qe)},Dt=function(Ve){return!Ve||Array.isArray(Ve)?Ve:[Ve]};function Mt(Ee){var Ve,Be=Ee.children,Qe=Ee.contentRender,St=Ee.submitter,bt=Ee.fieldProps,P=Ee.formItemProps,de=Ee.groupProps,ye=Ee.transformKey,He=Ee.formRef,_e=Ee.onInit,st=Ee.form,Ct=Ee.loading,Kt=Ee.formComponentType,$t=Ee.extraUrlParams,Rt=$t===void 0?{}:$t,lt=Ee.syncToUrl,nt=Ee.onUrlSearchChange,Fe=Ee.onReset,je=Ee.omitNil,fe=je===void 0?!0:je,Ze=Ee.isKeyPressSubmit,$=Ee.autoFocusFirstInput,j=$===void 0?!0:$,Y=Ee.grid,Me=Ee.rowProps,ze=Ee.colProps,ft=(0,Z.Z)(Ee,It),vn=pt.Z.useFormInstance(),_t=(tt.ZP===null||tt.ZP===void 0||(Ve=tt.ZP.useConfig)===null||Ve===void 0?void 0:Ve.call(tt.ZP))||{componentSize:"middle"},Yt=_t.componentSize,Tt=(0,z.useRef)(st||vn),Ut=(0,yt.zx)({grid:Y,rowProps:Me}),dn=Ut.RowWrapper,Ft=(0,K.J)(function(){return vn}),un=(0,z.useMemo)(function(){return{getFieldsFormatValue:function(De){var ge;return ye((ge=Ft())===null||ge===void 0?void 0:ge.getFieldsValue(De),fe)},getFieldFormatValue:function(){var De,ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],rt=Dt(ge);if(!rt)throw new Error("nameList is require");var Je=(De=Ft())===null||De===void 0?void 0:De.getFieldValue(rt),Re=rt?(0,jn.Z)({},rt,Je):Je;return(0,mn.Z)(ye(Re,fe,rt),rt)},getFieldFormatValueObject:function(De){var ge,rt=Dt(De),Je=(ge=Ft())===null||ge===void 0?void 0:ge.getFieldValue(rt),Re=rt?(0,jn.Z)({},rt,Je):Je;return ye(Re,fe,rt)},validateFieldsReturnFormatValue:function(){var Pe=(0,k.Z)((0,l.Z)().mark(function ge(rt){var Je,Re,Ln;return(0,l.Z)().wrap(function(on){for(;;)switch(on.prev=on.next){case 0:if(!(!Array.isArray(rt)&&rt)){on.next=2;break}throw new Error("nameList must be array");case 2:return on.next=4,(Je=Ft())===null||Je===void 0?void 0:Je.validateFields(rt);case 4:return Re=on.sent,Ln=ye(Re,fe),on.abrupt("return",Ln||{});case 7:case"end":return on.stop()}},ge)}));function De(ge){return Pe.apply(this,arguments)}return De}()}},[fe,ye]),ve=(0,z.useMemo)(function(){return z.Children.toArray(Be).map(function(Pe,De){return De===0&&z.isValidElement(Pe)&&j?z.cloneElement(Pe,(0,I.Z)((0,I.Z)({},Pe.props),{},{autoFocus:j})):Pe})},[j,Be]),Ge=(0,z.useMemo)(function(){return typeof St=="boolean"||!St?{}:St},[St]),vt=(0,z.useMemo)(function(){if(St!==!1)return(0,A.jsx)(We,(0,I.Z)((0,I.Z)({},Ge),{},{onReset:function(){var De,ge,rt=ye((De=Tt.current)===null||De===void 0?void 0:De.getFieldsValue(),fe);if(Ge==null||(ge=Ge.onReset)===null||ge===void 0||ge.call(Ge,rt),Fe==null||Fe(rt),lt){var Je,Re=Object.keys(ye((Je=Tt.current)===null||Je===void 0?void 0:Je.getFieldsValue(),!1)).reduce(function(Ln,zn){return(0,I.Z)((0,I.Z)({},Ln),{},(0,w.Z)({},zn,rt[zn]||void 0))},Rt);nt(mt(lt,Re||{},"set"))}},submitButtonProps:(0,I.Z)({loading:Ct},Ge.submitButtonProps)}),"submitter")},[St,Ge,Ct,ye,fe,Fe,lt,Rt,nt]),et=(0,z.useMemo)(function(){var Pe=Y?(0,A.jsx)(dn,{children:ve}):ve;return Qe?Qe(Pe,vt,Tt.current):Pe},[Y,dn,ve,Qe,vt]),N=(0,ce.D)(Ee.initialValues);return(0,z.useEffect)(function(){if(!(lt||!Ee.initialValues||!N||ft.request)){var Pe=(0,pe.A)(Ee.initialValues,N);(0,Te.ET)(Pe,"initialValues \u53EA\u5728 form \u521D\u59CB\u5316\u65F6\u751F\u6548\uFF0C\u5982\u679C\u4F60\u9700\u8981\u5F02\u6B65\u52A0\u8F7D\u63A8\u8350\u4F7F\u7528 request\uFF0C\u6216\u8005 initialValues ? : null "),(0,Te.ET)(Pe,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[Ee.initialValues]),(0,z.useImperativeHandle)(He,function(){return(0,I.Z)((0,I.Z)({},Tt.current),un)},[un,Tt.current]),(0,z.useEffect)(function(){var Pe,De,ge=ye((Pe=Tt.current)===null||Pe===void 0||(De=Pe.getFieldsValue)===null||De===void 0?void 0:De.call(Pe,!0),fe);_e==null||_e(ge,(0,I.Z)((0,I.Z)({},Tt.current),un))},[]),(0,A.jsx)(x.J.Provider,{value:(0,I.Z)((0,I.Z)({},un),{},{formRef:Tt}),children:(0,A.jsx)(tt.ZP,{componentSize:ft.size||Yt,children:(0,A.jsxs)(yt._p.Provider,{value:{grid:Y,colProps:ze},children:[ft.component!==!1&&(0,A.jsx)("input",{type:"text",style:{display:"none"}}),et]})})})}var Lt=0;function Pn(Ee){var Ve=Ee.extraUrlParams,Be=Ve===void 0?{}:Ve,Qe=Ee.syncToUrl,St=Ee.isKeyPressSubmit,bt=Ee.syncToUrlAsImportant,P=bt===void 0?!1:bt,de=Ee.syncToInitialValues,ye=de===void 0?!0:de,He=Ee.children,_e=Ee.contentRender,st=Ee.submitter,Ct=Ee.fieldProps,Kt=Ee.proFieldProps,$t=Ee.formItemProps,Rt=Ee.groupProps,lt=Ee.dateFormatter,nt=lt===void 0?"string":lt,Fe=Ee.formRef,je=Ee.onInit,fe=Ee.form,Ze=Ee.formComponentType,$=Ee.onReset,j=Ee.grid,Y=Ee.rowProps,Me=Ee.colProps,ze=Ee.omitNil,ft=ze===void 0?!0:ze,vn=Ee.request,_t=Ee.params,Yt=Ee.initialValues,Tt=Ee.formKey,Ut=Tt===void 0?Lt:Tt,dn=Ee.readonly,Ft=Ee.onLoadingChange,un=Ee.loading,ve=(0,Z.Z)(Ee,Vt),Ge=(0,z.useRef)({}),vt=(0,re.Z)(!1,{onChange:Ft,value:un}),et=(0,i.Z)(vt,2),N=et[0],Pe=et[1],De=(0,an.l)({},{disabled:!Qe}),ge=(0,i.Z)(De,2),rt=ge[0],Je=ge[1],Re=(0,z.useRef)((0,Ye.x)());(0,z.useEffect)(function(){Lt+=0},[]);var Ln=it({request:vn,params:_t,proFieldKey:Ut}),zn=(0,i.Z)(Ln,1),on=zn[0],Mn=(0,z.useContext)(tt.ZP.ConfigContext),Wn=Mn.getPrefixCls,Gn=Wn("pro-form"),br=(0,At.Xj)("ProForm",function(le){return(0,w.Z)({},".".concat(Gn),(0,w.Z)({},"> div:not(".concat(le.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),Ae=br.wrapSSR,ue=br.hashId,S=(0,z.useState)(function(){return Qe?mt(Qe,rt,"get"):{}}),G=(0,i.Z)(S,2),J=G[0],C=G[1],E=(0,z.useRef)({}),F=(0,z.useRef)({}),W=(0,K.J)(function(le,V,Oe){return Ue((0,Wt.lp)(le,nt,F.current,V,Oe),E.current,V)});(0,z.useEffect)(function(){ye||C({})},[ye]),(0,z.useEffect)(function(){Qe&&Je(mt(Qe,(0,I.Z)((0,I.Z)({},rt),Be),"set"))},[Be,Qe]);var ne=(0,z.useMemo)(function(){if(typeof window!="undefined"&&Ze&&["DrawerForm"].includes(Ze))return function(le){return le.parentNode||document.body}},[Ze]),te=(0,K.J)((0,k.Z)((0,l.Z)().mark(function le(){var V,Oe,Ie,at,dt,ht;return(0,l.Z)().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:if(ve.onFinish){en.next=2;break}return en.abrupt("return");case 2:if(!N){en.next=4;break}return en.abrupt("return");case 4:return Pe(!0),en.prev=5,Ie=Ge==null||(V=Ge.current)===null||V===void 0||(Oe=V.getFieldsFormatValue)===null||Oe===void 0?void 0:Oe.call(V),en.next=9,ve.onFinish(Ie);case 9:Qe&&(ht=Object.keys(Ge==null||(at=Ge.current)===null||at===void 0||(dt=at.getFieldsFormatValue)===null||dt===void 0?void 0:dt.call(at,void 0,!1)).reduce(function(Ht,ct){var Qt;return(0,I.Z)((0,I.Z)({},Ht),{},(0,w.Z)({},ct,(Qt=Ie[ct])!==null&&Qt!==void 0?Qt:void 0))},Be),Object.keys(rt).forEach(function(Ht){ht[Ht]!==!1&&ht[Ht]!==0&&!ht[Ht]&&(ht[Ht]=void 0)}),Je(mt(Qe,ht,"set"))),Pe(!1),en.next=17;break;case 13:en.prev=13,en.t0=en.catch(5),console.log(en.t0),Pe(!1);case 17:case"end":return en.stop()}},le,null,[[5,13]])})));return(0,z.useImperativeHandle)(Fe,function(){return Ge.current},[!on]),!on&&Ee.request?(0,A.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,A.jsx)(tn.Z,{})}):Ae((0,A.jsx)(me.A.Provider,{value:{mode:Ee.readonly?"read":"edit"},children:(0,A.jsx)(ae._Y,{needDeps:!0,children:(0,A.jsx)(fn.Z.Provider,{value:{formRef:Ge,fieldProps:Ct,proFieldProps:Kt,formItemProps:$t,groupProps:Rt,formComponentType:Ze,getPopupContainer:ne,formKey:Re.current,setFieldValueType:function(V,Oe){var Ie=Oe.valueType,at=Ie===void 0?"text":Ie,dt=Oe.dateFormat,ht=Oe.transform;Array.isArray(V)&&(E.current=(0,jn.Z)(E.current,V,ht),F.current=(0,jn.Z)(F.current,V,{valueType:at,dateFormat:dt}))}},children:(0,A.jsx)(qe.J.Provider,{value:{},children:(0,A.jsx)(pt.Z,(0,I.Z)((0,I.Z)({onKeyPress:function(V){if(St&&V.key==="Enter"){var Oe;(Oe=Ge.current)===null||Oe===void 0||Oe.submit()}},autoComplete:"off",form:fe},(0,On.Z)(ve,["labelWidth","autoFocusFirstInput"])),{},{initialValues:P?(0,I.Z)((0,I.Z)((0,I.Z)({},Yt),on),J):(0,I.Z)((0,I.Z)((0,I.Z)({},J),Yt),on),onValuesChange:function(V,Oe){var Ie;ve==null||(Ie=ve.onValuesChange)===null||Ie===void 0||Ie.call(ve,W(V,!!ft),W(Oe,!!ft))},className:Rn()(Ee.className,Gn,ue),onFinish:te,children:(0,A.jsx)(Mt,(0,I.Z)((0,I.Z)({transformKey:W,autoComplete:"off",loading:N,onUrlSearchChange:Je},Ee),{},{formRef:Ge,initialValues:(0,I.Z)((0,I.Z)({},Yt),on)}))}))})})})}))}},58922:function(Zt,xe,a){"use strict";a.d(xe,{A:function(){return w}});var i=a(50959),w=i.createContext({mode:"edit"})},81298:function(Zt,xe,a){"use strict";a.d(xe,{G:function(){return bn}});var i=a(73273),w=a(32682),I=a(33346),l=a(10570),k=a(66607),Z=a(16168),ae=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function Q(qt){var be={};return ae.forEach(function(Ue){qt[Ue]!==void 0&&(be[Ue]=qt[Ue])}),be}var K=a(75565),ce=a(13165),pe=a(84875),x=a.n(pe),re=a(7445),Ye=a(12868),z=a(50959),se=a(54970),H=a(75693),it=a(80288),At=a(21510),ke=a(11527),ut=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],B=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],tr=Symbol("ProFormComponent"),mn={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},jn=["switch","radioButton","radio","rate"];function bn(qt,be){qt.displayName="ProFormComponent";var Ue=function(pt){var tt=(0,I.Z)((0,I.Z)({},pt==null?void 0:pt.filedConfig),be)||{},tn=tt.valueType,En=tt.customLightMode,Rn=tt.lightFilterLabelFormatter,On=tt.valuePropName,Te=On===void 0?"value":On,fn=tt.ignoreWidth,T=tt.defaultProps,A=(0,l.Z)(tt,ut),Le=(0,I.Z)((0,I.Z)({},T),pt),We=Le.label,qe=Le.tooltip,yt=Le.placeholder,me=Le.width,It=Le.bordered,Vt=Le.messageVariables,mt=Le.ignoreFormItem,Dt=Le.transform,Mt=Le.convertValue,Lt=Le.readonly,Pn=Le.allowClear,Ee=Le.colSize,Ve=Le.getFormItemProps,Be=Le.getFieldProps,Qe=Le.filedConfig,St=Le.cacheForSwr,bt=Le.proFieldProps,P=(0,l.Z)(Le,B),de=tn||P.valueType,ye=(0,z.useMemo)(function(){return fn||jn.includes(de)},[fn,de]),He=(0,z.useState)(),_e=(0,w.Z)(He,2),st=_e[1],Ct=(0,z.useState)(),Kt=(0,w.Z)(Ct,2),$t=Kt[0],Rt=Kt[1],lt=z.useContext(se.Z),nt=(0,k.Z)(function(){return{formItemProps:Ve==null?void 0:Ve(),fieldProps:Be==null?void 0:Be()}},[Be,Ve,P.dependenciesValues,$t]),Fe=(0,k.Z)(function(){var Ft=(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({},mt?(0,Z.Y)({value:P.value}):{}),{},{placeholder:yt,disabled:pt.disabled},lt.fieldProps),nt.fieldProps),P.fieldProps);return Ft.style=(0,Z.Y)(Ft==null?void 0:Ft.style),Ft},[mt,P.value,P.fieldProps,yt,pt.disabled,lt.fieldProps,nt.fieldProps]),je=Q(P),fe=(0,k.Z)(function(){return(0,I.Z)((0,I.Z)((0,I.Z)((0,I.Z)({},lt.formItemProps),je),nt.formItemProps),P.formItemProps)},[nt.formItemProps,lt.formItemProps,P.formItemProps,je]),Ze=(0,k.Z)(function(){return(0,I.Z)((0,I.Z)({messageVariables:Vt},A),fe)},[A,fe,Vt]);(0,Ye.ET)(!P.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var $=(0,z.useContext)(re.zb),j=$.prefixName,Y=(0,k.Z)(function(){var Ft,un=Ze==null?void 0:Ze.name;Array.isArray(un)&&(un=un.join("_")),Array.isArray(j)&&un&&(un="".concat(j.join("."),".").concat(un));var ve=un&&"form-".concat((Ft=lt.formKey)!==null&&Ft!==void 0?Ft:"","-field-").concat(un);return ve},[(0,K.ZP)(Ze==null?void 0:Ze.name),j,lt.formKey]),Me=(0,ce.J)(function(){var Ft;Ve||Be?Rt([]):P.renderFormItem&&st([]);for(var un=arguments.length,ve=new Array(un),Ge=0;Geie?ot=1:ot=Math.round(Xe*100/ie)/100,u.a!==ot)return{h:u.h,s:u.s,l:u.l,a:ot,source:"rgb"}}else{var Xt;if($e<0?Xt=0:$e>_?Xt=1:Xt=Math.round($e*100/_)/100,y!==Xt)return{h:u.h,s:u.s,l:u.l,a:Xt,source:"rgb"}}return null},qe={},yt=function(n,u,d,y){if(typeof document=="undefined"&&!y)return null;var M=y?new y:document.createElement("canvas");M.width=d*2,M.height=d*2;var _=M.getContext("2d");return _?(_.fillStyle=n,_.fillRect(0,0,M.width,M.height),_.fillStyle=u,_.fillRect(0,0,d,d),_.translate(d,d),_.fillRect(0,0,d,d),M.toDataURL()):null},me=function(n,u,d,y){var M="".concat(n,"-").concat(u,"-").concat(d).concat(y?"-server":"");if(qe[M])return qe[M];var _=yt(n,u,d,y);return qe[M]=_,_};function It(c){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},It(c)}function Vt(c,n){var u=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);n&&(d=d.filter(function(y){return Object.getOwnPropertyDescriptor(c,y).enumerable})),u.push.apply(u,d)}return u}function mt(c){for(var n=1;n_)Xe=0;else{var ot=-($e*100/_)+100;Xe=360*ot/100}if(d.h!==Xe)return{h:Xe,s:d.s,l:d.l,a:d.a,source:"hsl"}}else{var Xt;if(he<0)Xt=0;else if(he>M)Xt=359;else{var pn=he*100/M;Xt=360*pn/100}if(d.h!==Xt)return{h:Xt,s:d.s,l:d.l,a:d.a,source:"hsl"}}return null};function fe(c){"@babel/helpers - typeof";return fe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fe(c)}function Ze(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function $(c,n){for(var u=0;uM&&(he=M),$e<0?$e=0:$e>_&&($e=_);var Xe=he/M,ot=1-$e/_;return{h:u.h,s:Xe,v:ot,a:u.a,source:"hsv"}};function vt(c){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vt(c)}function et(c,n){if(!(c instanceof n))throw new TypeError("Cannot call a class as a function")}function N(c,n){for(var u=0;u=0,M=!u&&y&&(n==="hex"||n==="hex6"||n==="hex3"||n==="hex4"||n==="hex8"||n==="name");return M?n==="name"&&this._a===0?this.toName():this.toRgbString():(n==="rgb"&&(d=this.toRgbString()),n==="prgb"&&(d=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(d=this.toHexString()),n==="hex3"&&(d=this.toHexString(!0)),n==="hex4"&&(d=this.toHex8String(!0)),n==="hex8"&&(d=this.toHex8String()),n==="name"&&(d=this.toName()),n==="hsl"&&(d=this.toHslString()),n==="hsv"&&(d=this.toHsvString()),d||this.toHexString())},clone:function(){return E(this.toString())},_applyModification:function(n,u){var d=n.apply(null,[this].concat([].slice.call(u)));return this._r=d._r,this._g=d._g,this._b=d._b,this.setAlpha(d._a),this},lighten:function(){return this._applyModification(en,arguments)},brighten:function(){return this._applyModification(Ht,arguments)},darken:function(){return this._applyModification(ct,arguments)},desaturate:function(){return this._applyModification(dt,arguments)},saturate:function(){return this._applyModification(ht,arguments)},greyscale:function(){return this._applyModification(Gt,arguments)},spin:function(){return this._applyModification(Qt,arguments)},_applyCombination:function(n,u){return n.apply(null,[this].concat([].slice.call(u)))},analogous:function(){return this._applyCombination(Nt,arguments)},complement:function(){return this._applyCombination(kt,arguments)},monochromatic:function(){return this._applyCombination(xt,arguments)},splitcomplement:function(){return this._applyCombination(jt,arguments)},triad:function(){return this._applyCombination(Et,[3])},tetrad:function(){return this._applyCombination(Et,[4])}},E.fromRatio=function(c,n){if(G(c)=="object"){var u={};for(var d in c)c.hasOwnProperty(d)&&(d==="a"?u[d]=c[d]:u[d]=Hn(c[d]));c=u}return E(c,n)};function F(c){var n={r:0,g:0,b:0},u=1,d=null,y=null,M=null,_=!1,ie=!1;return typeof c=="string"&&(c=$n(c)),G(c)=="object"&&(In(c.r)&&In(c.g)&&In(c.b)?(n=W(c.r,c.g,c.b),_=!0,ie=String(c.r).substr(-1)==="%"?"prgb":"rgb"):In(c.h)&&In(c.s)&&In(c.v)?(d=Hn(c.s),y=Hn(c.v),n=V(c.h,d,y),_=!0,ie="hsv"):In(c.h)&&In(c.s)&&In(c.l)&&(d=Hn(c.s),M=Hn(c.l),n=te(c.h,d,M),_=!0,ie="hsl"),c.hasOwnProperty("a")&&(u=c.a)),u=Qn(u),{ok:_,format:c.format||ie,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:u}}function W(c,n,u){return{r:hn(c,255)*255,g:hn(n,255)*255,b:hn(u,255)*255}}function ne(c,n,u){c=hn(c,255),n=hn(n,255),u=hn(u,255);var d=Math.max(c,n,u),y=Math.min(c,n,u),M,_,ie=(d+y)/2;if(d==y)M=_=0;else{var q=d-y;switch(_=ie>.5?q/(2-d-y):q/(d+y),d){case c:M=(n-u)/q+(n1&&(Xe-=1),Xe<1/6?he+($e-he)*6*Xe:Xe<1/2?$e:Xe<2/3?he+($e-he)*(2/3-Xe)*6:he}if(n===0)d=y=M=u;else{var ie=u<.5?u*(1+n):u+n-u*n,q=2*u-ie;d=_(q,ie,c+1/3),y=_(q,ie,c),M=_(q,ie,c-1/3)}return{r:d*255,g:y*255,b:M*255}}function le(c,n,u){c=hn(c,255),n=hn(n,255),u=hn(u,255);var d=Math.max(c,n,u),y=Math.min(c,n,u),M,_,ie=d,q=d-y;if(_=d===0?0:q/d,d==y)M=0;else{switch(d){case c:M=(n-u)/q+(n>1)+720)%360;--n;)d.h=(d.h+y)%360,M.push(E(d));return M}function xt(c,n){n=n||6;for(var u=E(c).toHsv(),d=u.h,y=u.s,M=u.v,_=[],ie=1/n;n--;)_.push(E({h:d,s:y,v:M})),M=(M+ie)%1;return _}E.mix=function(c,n,u){u=u===0?0:u||50;var d=E(c).toRgb(),y=E(n).toRgb(),M=u/100,_={r:(y.r-d.r)*M+d.r,g:(y.g-d.g)*M+d.g,b:(y.b-d.b)*M+d.b,a:(y.a-d.a)*M+d.a};return E(_)},E.readability=function(c,n){var u=E(c),d=E(n);return(Math.max(u.getLuminance(),d.getLuminance())+.05)/(Math.min(u.getLuminance(),d.getLuminance())+.05)},E.isReadable=function(c,n,u){var d=E.readability(c,n),y,M;switch(M=!1,y=Ot(u),y.level+y.size){case"AAsmall":case"AAAlarge":M=d>=4.5;break;case"AAlarge":M=d>=3;break;case"AAAsmall":M=d>=7;break}return M},E.mostReadable=function(c,n,u){var d=null,y=0,M,_,ie,q;u=u||{},_=u.includeFallbackColors,ie=u.level,q=u.size;for(var he=0;hey&&(y=M,d=E(n[he]));return E.isReadable(c,d,{level:ie,size:q})||!_?d:(u.includeFallbackColors=!1,E.mostReadable(c,["#fff","#000"],u))};var gn=E.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Bn=E.hexNames=Vn(gn);function Vn(c){var n={};for(var u in c)c.hasOwnProperty(u)&&(n[c[u]]=u);return n}function Qn(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function hn(c,n){rr(c)&&(c="100%");var u=Un(c);return c=Math.min(n,Math.max(0,parseFloat(c))),u&&(c=parseInt(c*n,10)/100),Math.abs(c-n)<1e-6?1:c%n/parseFloat(n)}function qn(c){return Math.min(1,Math.max(0,c))}function kn(c){return parseInt(c,16)}function rr(c){return typeof c=="string"&&c.indexOf(".")!=-1&&parseFloat(c)===1}function Un(c){return typeof c=="string"&&c.indexOf("%")!=-1}function xn(c){return c.length==1?"0"+c:""+c}function Hn(c){return c<=1&&(c=c*100+"%"),c}function ir(c){return Math.round(parseFloat(c)*255).toString(16)}function ur(c){return kn(c)/255}var An=function(){var c="[-\\+]?\\d+%?",n="[-\\+]?\\d*\\.\\d+%?",u="(?:"+n+")|(?:"+c+")",d="[\\s|\\(]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")\\s*\\)?",y="[\\s|\\(]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")[,|\\s]+("+u+")\\s*\\)?";return{CSS_UNIT:new RegExp(u),rgb:new RegExp("rgb"+d),rgba:new RegExp("rgba"+y),hsl:new RegExp("hsl"+d),hsla:new RegExp("hsla"+y),hsv:new RegExp("hsv"+d),hsva:new RegExp("hsva"+y),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function In(c){return!!An.CSS_UNIT.exec(c)}function $n(c){c=c.replace(J,"").replace(C,"").toLowerCase();var n=!1;if(gn[c])c=gn[c],n=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var u;return(u=An.rgb.exec(c))?{r:u[1],g:u[2],b:u[3]}:(u=An.rgba.exec(c))?{r:u[1],g:u[2],b:u[3],a:u[4]}:(u=An.hsl.exec(c))?{h:u[1],s:u[2],l:u[3]}:(u=An.hsla.exec(c))?{h:u[1],s:u[2],l:u[3],a:u[4]}:(u=An.hsv.exec(c))?{h:u[1],s:u[2],v:u[3]}:(u=An.hsva.exec(c))?{h:u[1],s:u[2],v:u[3],a:u[4]}:(u=An.hex8.exec(c))?{r:kn(u[1]),g:kn(u[2]),b:kn(u[3]),a:ur(u[4]),format:n?"name":"hex8"}:(u=An.hex6.exec(c))?{r:kn(u[1]),g:kn(u[2]),b:kn(u[3]),format:n?"name":"hex"}:(u=An.hex4.exec(c))?{r:kn(u[1]+""+u[1]),g:kn(u[2]+""+u[2]),b:kn(u[3]+""+u[3]),a:ur(u[4]+""+u[4]),format:n?"name":"hex8"}:(u=An.hex3.exec(c))?{r:kn(u[1]+""+u[1]),g:kn(u[2]+""+u[2]),b:kn(u[3]+""+u[3]),format:n?"name":"hex"}:!1}function Ot(c){var n,u;return c=c||{level:"AA",size:"small"},n=(c.level||"AA").toUpperCase(),u=(c.size||"small").toLowerCase(),n!=="AA"&&n!=="AAA"&&(n="AA"),u!=="small"&&u!=="large"&&(u="small"),{level:n,size:u}}var Nn=function(n){var u=["r","g","b","a","h","s","l","v"],d=0,y=0;return S()(u,function(M){if(n[M]&&(d+=1,isNaN(n[M])||(y+=1),M==="s"||M==="l")){var _=/^\d+%$/;_.test(n[M])&&(y+=1)}}),d===y?n:!1},ln=function(n,u){var d=n.hex?E(n.hex):E(n),y=d.toHsl(),M=d.toHsv(),_=d.toRgb(),ie=d.toHex();y.s===0&&(y.h=u||0,M.h=u||0);var q=ie==="000000"&&_.a===0;return{hsl:y,hex:q?"transparent":"#".concat(ie),rgb:_,hsv:M,oldHue:n.h||u||y.h,source:n.source}},sn=function(n){if(n==="transparent")return!0;var u=String(n).charAt(0)==="#"?1:0;return n.length!==4+u&&n.length<7+u&&E(n).isValid()},nn=function(n){if(!n)return"#fff";var u=ln(n);if(u.hex==="transparent")return"rgba(0,0,0,0.4)";var d=(u.rgb.r*299+u.rgb.g*587+u.rgb.b*114)/1e3;return d>=128?"#000":"#fff"},Jt={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}},cn=function(n,u){var d=n.replace("\xB0","");return tinycolor("".concat(u," (").concat(d,")"))._ok};function O(c){"@babel/helpers - typeof";return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},O(c)}function D(){return D=Object.assign?Object.assign.bind():function(c){for(var n=1;n-1},no=function(n){return Number(String(n).replace(/%/g,""))},fo=1,ao=function(c){ya(u,c);var n=Lr(u);function u(d){var y;return xr(this,u),y=n.call(this),y.handleBlur=function(){y.state.blurValue&&y.setState({value:y.state.blurValue,blurValue:null})},y.handleChange=function(M){y.setUpdatedValue(M.target.value,M)},y.handleKeyDown=function(M){var _=no(M.target.value);if(!isNaN(_)&&ka(M.keyCode)){var ie=y.getArrowOffset(),q=M.keyCode===Gr?_+ie:_-ie;y.setUpdatedValue(q,M)}},y.handleDrag=function(M){if(y.props.dragLabel){var _=Math.round(y.props.value+M.movementX);_>=0&&_<=y.props.dragMax&&y.props.onChange&&y.props.onChange(y.getValueObjectWithLabel(_),M)}},y.handleMouseDown=function(M){y.props.dragLabel&&(M.preventDefault(),y.handleDrag(M),window.addEventListener("mousemove",y.handleDrag),window.addEventListener("mouseup",y.handleMouseUp))},y.handleMouseUp=function(){y.unbindEventListeners()},y.unbindEventListeners=function(){window.removeEventListener("mousemove",y.handleDrag),window.removeEventListener("mouseup",y.handleMouseUp)},y.state={value:String(d.value).toUpperCase(),blurValue:String(d.value).toUpperCase()},y.inputId="rc-editable-input-".concat(fo++),y}return Cr(u,[{key:"componentDidUpdate",value:function(y,M){this.props.value!==this.state.value&&(y.value!==this.props.value||M.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(y){return Qa({},this.props.label,y)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Xr}},{key:"setUpdatedValue",value:function(y,M){var _=this.props.label?this.getValueObjectWithLabel(y):y;this.props.onChange&&this.props.onChange(_,M),this.setState({value:y})}},{key:"render",value:function(){var y=this,M=(0,T.ZP)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return x.createElement("div",{style:M.wrap},x.createElement("input",{id:this.inputId,style:M.input,ref:function(ie){return y.input=ie},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?x.createElement("label",{htmlFor:this.inputId,style:M.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),u}(x.PureComponent||x.Component),Ua=ao;function Ka(c){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ka(c)}function Ra(){return Ra=Object.assign?Object.assign.bind():function(c){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){El(M,d);var y=ti(M);function M(){var _;Ja(this,M);for(var ie=arguments.length,q=new Array(ie),he=0;he100&&($e.a=100),$e.a/=100,u==null||u({h:y==null?void 0:y.h,s:y==null?void 0:y.s,l:y==null?void 0:y.l,a:$e.a,source:"rgb"},Xe))};return x.createElement("div",{style:ie.fields,className:"flexbox-fix"},x.createElement("div",{style:ie.double},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"hex",value:M==null?void 0:M.replace("#",""),onChange:q})),x.createElement("div",{style:ie.single},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"r",value:d==null?void 0:d.r,onChange:q,dragLabel:"true",dragMax:"255"})),x.createElement("div",{style:ie.single},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"g",value:d==null?void 0:d.g,onChange:q,dragLabel:"true",dragMax:"255"})),x.createElement("div",{style:ie.single},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"b",value:d==null?void 0:d.b,onChange:q,dragLabel:"true",dragMax:"255"})),x.createElement("div",{style:ie.alpha},x.createElement(Ua,{style:{input:ie.input,label:ie.label},label:"a",value:Math.round(((d==null?void 0:d.a)||0)*100),onChange:q,dragLabel:"true",dragMax:"100"})))},Tl=$i;function yo(c){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},yo(c)}function Ri(c,n){var u=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);n&&(d=d.filter(function(y){return Object.getOwnPropertyDescriptor(c,y).enumerable})),u.push.apply(u,d)}return u}function Mi(c){for(var n=1;n-1}function zo(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if((typeof c=="undefined"||c===!1)&&$o()){var n=a(15078),u=n.ColorPicker;return u}return Wl}var ri=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=n.old,he=(0,x.useContext)(H.ZP.ConfigContext),$e=he.getPrefixCls,Xe=x.useMemo(function(){return zo(q)},[q]),ot=$e("pro-field-color-picker"),Xt=(0,x.useMemo)(function(){return q?"":ke()((0,bn.Z)({},ot,$o()))},[ot,q]);if(y==="read"){var pn=(0,B.jsx)(Xe,{value:d,mode:"read",ref:u,className:Xt,open:!1});return M?M(d,(0,i.Z)({mode:y},ie),pn):pn}if(y==="edit"||y==="update"){var rn=(0,i.Z)({display:"table-cell"},ie.style),yn=(0,B.jsx)(Xe,(0,i.Z)((0,i.Z)({ref:u,presets:[Da]},ie),{},{style:rn,className:Xt}));return _?_(d,(0,i.Z)((0,i.Z)({mode:y},ie),{},{style:rn}),yn):yn}return null},dc=x.forwardRef(ri),Li=a(5726),Qr=a.n(Li),Bi=a(25010),fc=a.n(Bi),ro=a(90337);Qr().extend(fc());var Vl=function(n){return!!(n!=null&&n._isAMomentObject)},Ro=function c(n,u){return(0,ro.k)(n)||Qr().isDayjs(n)||Vl(n)?Vl(n)?Qr()(n):n:Array.isArray(n)?n.map(function(d){return c(d,u)}):typeof n=="number"?Qr()(n):Qr()(n,u)},io=a(17291),kl=a(83867),ai=a.n(kl);Qr().extend(ai());var vc=function(n,u){return n?typeof u=="function"?u(Qr()(n)):Qr()(n).format((Array.isArray(u)?u[0]:u)||"YYYY-MM-DD"):"-"},Ul=function(n,u){var d=n.text,y=n.mode,M=n.format,_=n.label,ie=n.light,q=n.render,he=n.renderFormItem,$e=n.plain,Xe=n.showTime,ot=n.fieldProps,Xt=n.picker,pn=n.bordered,rn=n.lightLabel,yn=(0,l.YB)(),Xn=(0,x.useState)(!1),Cn=(0,re.Z)(Xn,2),Jn=Cn[0],fr=Cn[1];if(y==="read"){var Kn=vc(d,ot.format||M);return q?q(d,(0,i.Z)({mode:y},ot),(0,B.jsx)(B.Fragment,{children:Kn})):(0,B.jsx)(B.Fragment,{children:Kn})}if(y==="edit"||y==="update"){var _n,Mr=ot.disabled,vr=ot.value,zr=ot.placeholder,_r=zr===void 0?yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"):zr,Fr=Ro(vr);return ie?_n=(0,B.jsx)(se.Q,{label:_,onClick:function(){var nr;ot==null||(nr=ot.onOpenChange)===null||nr===void 0||nr.call(ot,!0),fr(!0)},style:Fr?{paddingInlineEnd:0}:void 0,disabled:Mr,value:Fr||Jn?(0,B.jsx)(io.default,(0,i.Z)((0,i.Z)({picker:Xt,showTime:Xe,format:M,ref:u},ot),{},{value:Fr,onOpenChange:function(nr){var wr;fr(nr),ot==null||(wr=ot.onOpenChange)===null||wr===void 0||wr.call(ot,nr)},bordered:!1,open:Jn})):void 0,allowClear:!1,downIcon:Fr||Jn?!1:void 0,bordered:pn,ref:rn}):_n=(0,B.jsx)(io.default,(0,i.Z)((0,i.Z)({picker:Xt,showTime:Xe,format:M,placeholder:_r,bordered:$e===void 0?!0:!$e,ref:u},ot),{},{value:Fr})),he?he(d,(0,i.Z)({mode:y},ot),_n):_n}return null},Mo=x.forwardRef(Ul),vo=a(56696),oi=a(71770),Kl=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.placeholder,ie=n.renderFormItem,q=n.fieldProps,he=(0,l.YB)(),$e=_||he.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Xe=(0,x.useCallback)(function(Xn){var Cn=Xn!=null?Xn:void 0;return!q.stringMode&&typeof Cn=="string"&&(Cn=Number(Cn)),typeof Cn=="number"&&!(0,ro.k)(Cn)&&!(0,ro.k)(q.precision)&&(Cn=Number(Cn.toFixed(q.precision))),Cn},[q]);if(y==="read"){var ot,Xt={};q!=null&&q.precision&&(Xt={minimumFractionDigits:Number(q.precision),maximumFractionDigits:Number(q.precision)});var pn=new Intl.NumberFormat(void 0,(0,i.Z)((0,i.Z)({},Xt),(q==null?void 0:q.intlProps)||{})).format(Number(d)),rn=(0,B.jsx)("span",{ref:u,children:(q==null||(ot=q.formatter)===null||ot===void 0?void 0:ot.call(q,pn))||pn});return M?M(d,(0,i.Z)({mode:y},q),rn):rn}if(y==="edit"||y==="update"){var yn=(0,B.jsx)(vo.Z,(0,i.Z)((0,i.Z)({ref:u,min:0,placeholder:$e},(0,oi.Z)(q,["onChange","onBlur"])),{},{onChange:function(Cn){var Jn;return q==null||(Jn=q.onChange)===null||Jn===void 0?void 0:Jn.call(q,Xe(Cn))},onBlur:function(Cn){var Jn;return q==null||(Jn=q.onBlur)===null||Jn===void 0?void 0:Jn.call(q,Xe(Cn.target.value))}}));return ie?ie(d,(0,i.Z)({mode:y},q),yn):yn}return null},Yl=x.forwardRef(Kl),mc=a(1788),ii=a(75200),Xl=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.placeholder,ie=n.renderFormItem,q=n.fieldProps,he=n.separator,$e=he===void 0?"~":he,Xe=n.separatorWidth,ot=Xe===void 0?30:Xe,Xt=q.value,pn=q.defaultValue,rn=q.onChange,yn=q.id,Xn=(0,l.YB)(),Cn=qt.Ow.useToken(),Jn=Cn.token,fr=(0,oo.Z)(function(){return pn},{value:Xt,onChange:rn}),Kn=(0,re.Z)(fr,2),_n=Kn[0],Mr=Kn[1];if(y==="read"){var vr=function(Zr){var ia,Ea=new Intl.NumberFormat(void 0,(0,i.Z)({minimumSignificantDigits:2},(q==null?void 0:q.intlProps)||{})).format(Number(Zr));return(q==null||(ia=q.formatter)===null||ia===void 0?void 0:ia.call(q,Ea))||Ea},zr=(0,B.jsxs)("span",{ref:u,children:[vr(d[0])," ",$e," ",vr(d[1])]});return M?M(d,(0,i.Z)({mode:y},q),zr):zr}if(y==="edit"||y==="update"){var _r=function(){if(Array.isArray(_n)){var Zr=(0,re.Z)(_n,2),ia=Zr[0],Ea=Zr[1];typeof ia=="number"&&typeof Ea=="number"&&ia>Ea?Mr([Ea,ia]):ia===void 0&&Ea===void 0&&Mr(void 0)}},Fr=function(Zr,ia){var Ea=(0,mc.Z)(_n||[]);Ea[Zr]=ia===null?void 0:ia,Mr(Ea)},wn=(q==null?void 0:q.placeholder)||_||[Xn.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Xn.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")],nr=function(Zr){return Array.isArray(wn)?wn[Zr]:wn},wr=ii.Z.Compact||tn.Z.Group,Or=ii.Z.Compact?{}:{compact:!0},ea=(0,B.jsxs)(wr,(0,i.Z)((0,i.Z)({},Or),{},{onBlur:_r,children:[(0,B.jsx)(vo.Z,(0,i.Z)((0,i.Z)({},q),{},{placeholder:nr(0),id:yn!=null?yn:"".concat(yn,"-0"),style:{width:"calc((100% - ".concat(ot,"px) / 2)")},value:_n==null?void 0:_n[0],defaultValue:pn==null?void 0:pn[0],onChange:function(Zr){return Fr(0,Zr)}})),(0,B.jsx)(tn.Z,{style:{width:ot,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:Jn==null?void 0:Jn.colorBgContainer},placeholder:$e,disabled:!0}),(0,B.jsx)(vo.Z,(0,i.Z)((0,i.Z)({},q),{},{placeholder:nr(1),id:yn!=null?yn:"".concat(yn,"-1"),style:{width:"calc((100% - ".concat(ot,"px) / 2)"),borderInlineStart:0},value:_n==null?void 0:_n[1],defaultValue:pn==null?void 0:pn[1],onChange:function(Zr){return Fr(1,Zr)}}))]}));return ie?ie(d,(0,i.Z)({mode:y},q),ea):ea}return null},hc=x.forwardRef(Xl),Hi=a(32618),li=a(92117),Gl=a.n(li);Qr().extend(Gl());var zi=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.format,q=n.fieldProps,he=(0,l.YB)();if(y==="read"){var $e=(0,B.jsx)(Hi.Z,{title:Qr()(d).format((q==null?void 0:q.format)||ie||"YYYY-MM-DD HH:mm:ss"),children:Qr()(d).fromNow()});return M?M(d,(0,i.Z)({mode:y},q),(0,B.jsx)(B.Fragment,{children:$e})):(0,B.jsx)(B.Fragment,{children:$e})}if(y==="edit"||y==="update"){var Xe=he.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),ot=Ro(q.value),Xt=(0,B.jsx)(io.default,(0,i.Z)((0,i.Z)({ref:u,placeholder:Xe,showTime:!0},q),{},{value:ot}));return _?_(d,(0,i.Z)({mode:y},q),Xt):Xt}return null},gc=x.forwardRef(zi),Ql=a(71593),pc=x.forwardRef(function(c,n){var u=c.text,d=c.mode,y=c.render,M=c.renderFormItem,_=c.fieldProps,ie=c.placeholder,q=c.width,he=(0,l.YB)(),$e=ie||he.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(d==="read"){var Xe=(0,B.jsx)(Ql.Z,(0,i.Z)({ref:n,width:q||32,src:u},_));return y?y(u,(0,i.Z)({mode:d},_),Xe):Xe}if(d==="edit"||d==="update"){var ot=(0,B.jsx)(tn.Z,(0,i.Z)({ref:n,placeholder:$e},_));return M?M(u,(0,i.Z)({mode:d},_),ot):ot}return null}),si=pc,Jl=function(n,u){var d,y=n.border,M=y===void 0?!1:y,_=n.children,ie=(0,x.useContext)(H.ZP.ConfigContext),q=ie.getPrefixCls,he=q("pro-field-index-column"),$e=(0,qt.Xj)("IndexColumn",function(){return(0,bn.Z)({},".".concat(he),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),Xe=$e.wrapSSR,ot=$e.hashId;return Xe((0,B.jsx)("div",{ref:u,className:ke()(he,ot,(d={},(0,bn.Z)(d,"".concat(he,"-border"),M),(0,bn.Z)(d,"top-three",_>3),d)),children:_}))},ql=x.forwardRef(Jl),Wi=a(53987),_l=a(87322),bc=["contentRender","numberFormatOptions","numberPopoverRender","open"],es=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],ci=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),yc={style:"currency",currency:"USD"},ts={style:"currency",currency:"RUB"},Vi={style:"currency",currency:"RSD"},Cc={style:"currency",currency:"MYR"},ki={style:"currency",currency:"BRL"},Sc={default:ci,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":yc,"ru-RU":ts,"ms-MY":Cc,"sr-RS":Vi,"pt-BR":ki},Ui=function(n,u,d,y){var M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",_=u==null?void 0:u.toString().replaceAll(",","");if(typeof _=="string"){var ie=Number(_);if(Number.isNaN(ie))return _;_=ie}if(!_&&_!==0)return"";var q=!1;try{q=n!==!1&&Intl.NumberFormat.supportedLocalesOf([n.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch(pn){}try{var he=new Intl.NumberFormat(q&&n!==!1&&(n==null?void 0:n.replace("_","-"))||"zh-Hans-CN",(0,i.Z)((0,i.Z)({},Sc[n||"zh-Hans-CN"]||ci),{},{maximumFractionDigits:d},y)).format(_),$e=n===!1,Xe=he||"",ot=(0,re.Z)(Xe,1),Xt=ot[0];return["+","-"].includes(Xt)?"".concat(M||"").concat(Xt).concat(he.substring($e?2:1)):"".concat(M||"").concat(he.substring($e?1:0))}catch(pn){return _}},Ki=2,ns=x.forwardRef(function(c,n){var u=c.contentRender,d=c.numberFormatOptions,y=c.numberPopoverRender,M=c.open,_=(0,w.Z)(c,bc),ie=(0,oo.Z)(function(){return _.defaultValue},{value:_.value,onChange:_.onChange}),q=(0,re.Z)(ie,2),he=q[0],$e=q[1],Xe=u==null?void 0:u((0,i.Z)((0,i.Z)({},_),{},{value:he})),ot=(0,_l.X)(Xe?M:!1);return(0,B.jsx)(Ai.Z,(0,i.Z)((0,i.Z)({placement:"topLeft"},ot),{},{trigger:["focus","click"],content:Xe,getPopupContainer:function(pn){return(pn==null?void 0:pn.parentElement)||document.body},children:(0,B.jsx)(vo.Z,(0,i.Z)((0,i.Z)({ref:n},_),{},{value:he,onChange:$e}))}))}),xc=function(n,u){var d,y=n.text,M=n.mode,_=n.render,ie=n.renderFormItem,q=n.fieldProps,he=n.proFieldKey,$e=n.plain,Xe=n.valueEnum,ot=n.placeholder,Xt=n.locale,pn=n.customSymbol,rn=pn===void 0?q.customSymbol:pn,yn=n.numberFormatOptions,Xn=yn===void 0?q==null?void 0:q.numberFormatOptions:yn,Cn=n.numberPopoverRender,Jn=Cn===void 0?(q==null?void 0:q.numberPopoverRender)||!1:Cn,fr=(0,w.Z)(n,es),Kn=(d=q==null?void 0:q.precision)!==null&&d!==void 0?d:Ki,_n=(0,l.YB)();Xt&&Wi.Go[Xt]&&(_n=Wi.Go[Xt]);var Mr=ot||_n.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),vr=(0,x.useMemo)(function(){if(rn)return rn;if(!(fr.moneySymbol===!1||q.moneySymbol===!1))return _n.getMessage("moneySymbol","\xA5")},[rn,q.moneySymbol,_n,fr.moneySymbol]),zr=(0,x.useCallback)(function(wn){var nr=new RegExp("\\B(?=(\\d{".concat(3+Math.max(Kn-Ki,0),"})+(?!\\d))"),"g"),wr=String(wn).split("."),Or=(0,re.Z)(wr,2),ea=Or[0],jr=Or[1],Zr=ea.replace(nr,","),ia="";return jr&&Kn>0&&(ia=".".concat(jr.slice(0,Kn===void 0?Ki:Kn))),"".concat(Zr).concat(ia)},[Kn]);if(M==="read"){var _r=(0,B.jsx)("span",{ref:u,children:Ui(Xt||!1,y,Kn,Xn!=null?Xn:q.numberFormatOptions,vr)});return _?_(y,(0,i.Z)({mode:M},q),_r):_r}if(M==="edit"||M==="update"){var Fr=(0,B.jsx)(ns,(0,i.Z)((0,i.Z)({contentRender:function(nr){if(Jn===!1||!nr.value)return null;var wr=Ui(vr||Xt||!1,"".concat(zr(nr.value)),Kn,(0,i.Z)((0,i.Z)({},Xn),{},{notation:"compact"}),vr);return typeof Jn=="function"?Jn==null?void 0:Jn(nr,wr):wr},ref:u,precision:Kn,formatter:function(nr){return nr&&vr?"".concat(vr," ").concat(zr(nr)):nr==null?void 0:nr.toString()},parser:function(nr){return vr&&nr?nr.replace(new RegExp("\\".concat(vr,"\\s?|(,*)"),"g"),""):nr},placeholder:Mr},(0,oi.Z)(q,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:q.onBlur?function(wn){var nr,wr=wn.target.value;vr&&wr&&(wr=wr.replace(new RegExp("\\".concat(vr,"\\s?|(,*)"),"g"),"")),(nr=q.onBlur)===null||nr===void 0||nr.call(q,wr)}:void 0}));return ie?ie(y,(0,i.Z)({mode:M},q),Fr):Fr}return null},Yi=x.forwardRef(xc),Wo=function(n){return n.map(function(u,d){var y;return x.isValidElement(u)?x.cloneElement(u,(0,i.Z)((0,i.Z)({key:d},u==null?void 0:u.props),{},{style:(0,i.Z)({},u==null||(y=u.props)===null||y===void 0?void 0:y.style)})):(0,B.jsx)(x.Fragment,{children:u},d)})},rs=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.fieldProps,ie=(0,x.useContext)(H.ZP.ConfigContext),q=ie.getPrefixCls,he=q("pro-field-option"),$e=qt.Ow.useToken(),Xe=$e.token;if((0,x.useImperativeHandle)(u,function(){return{}}),M){var ot=M(d,(0,i.Z)({mode:y},_),(0,B.jsx)(B.Fragment,{}));return!ot||(ot==null?void 0:ot.length)<1||!Array.isArray(ot)?null:(0,B.jsx)("div",{style:{display:"flex",gap:Xe.margin,alignItems:"center"},className:he,children:Wo(ot)})}return!d||!Array.isArray(d)?x.isValidElement(d)?d:null:(0,B.jsx)("div",{style:{display:"flex",gap:Xe.margin,alignItems:"center"},className:he,children:Wo(d)})},Xi=x.forwardRef(rs),as=a(96527),os=a(57249),is=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],ls=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=n.proFieldKey,he=(0,w.Z)(n,is),$e=(0,l.YB)(),Xe=(0,oo.Z)(function(){return he.open||he.visible||!1},{value:he.open||he.visible,onChange:he.onOpenChange||he.onVisible}),ot=(0,re.Z)(Xe,2),Xt=ot[0],pn=ot[1];if(y==="read"){var rn=(0,B.jsx)(B.Fragment,{children:"-"});return d&&(rn=(0,B.jsxs)(ii.Z,{children:[(0,B.jsx)("span",{ref:u,children:Xt?d:"********"}),(0,B.jsx)("a",{onClick:function(){return pn(!Xt)},children:Xt?(0,B.jsx)(as.Z,{}):(0,B.jsx)(os.Z,{})})]})),M?M(d,(0,i.Z)({mode:y},ie),rn):rn}if(y==="edit"||y==="update"){var yn=(0,B.jsx)(tn.Z.Password,(0,i.Z)({placeholder:$e.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ref:u},ie));return _?_(d,(0,i.Z)({mode:y},ie),yn):yn}return null},ss=x.forwardRef(ls),ui=a(65490),Vo=a.n(ui);function cs(c){return c===0?null:c>0?"+":"-"}function us(c){return c===0?"#595959":c>0?"#ff4d4f":"#52c41a"}function ds(c){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return n>=0?c==null?void 0:c.toFixed(n):c}var fs=function(n,u){var d=n.text,y=n.prefix,M=n.precision,_=n.suffix,ie=_===void 0?"%":_,q=n.mode,he=n.showColor,$e=he===void 0?!1:he,Xe=n.render,ot=n.renderFormItem,Xt=n.fieldProps,pn=n.placeholder,rn=n.showSymbol,yn=(0,l.YB)(),Xn=pn||yn.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Cn=(0,x.useMemo)(function(){return typeof d=="string"&&d.includes("%")?Vo()(d.replace("%","")):Vo()(d)},[d]),Jn=(0,x.useMemo)(function(){return typeof rn=="function"?rn==null?void 0:rn(d):rn},[rn,d]);if(q==="read"){var fr=$e?{color:us(Cn)}:{},Kn=(0,B.jsxs)("span",{style:fr,ref:u,children:[y&&(0,B.jsx)("span",{children:y}),Jn&&(0,B.jsxs)(x.Fragment,{children:[cs(Cn)," "]}),ds(Math.abs(Cn),M),ie&&ie]});return Xe?Xe(d,(0,i.Z)((0,i.Z)({mode:q},Xt),{},{prefix:y,precision:M,showSymbol:Jn,suffix:ie}),Kn):Kn}if(q==="edit"||q==="update"){var _n=(0,B.jsx)(vo.Z,(0,i.Z)({ref:u,formatter:function(vr){return vr&&y?"".concat(y," ").concat(vr).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):vr},parser:function(vr){return vr?vr.replace(/.*\s|,/g,""):""},placeholder:Xn},Xt));return ot?ot(d,(0,i.Z)({mode:q},Xt),_n):_n}return null},Gi=x.forwardRef(fs),vs=a(17519);function Qi(c){return c===100?"success":c<0?"exception":c<100?"active":"normal"}var ms=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.plain,ie=n.renderFormItem,q=n.fieldProps,he=n.placeholder,$e=(0,l.YB)(),Xe=he||$e.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),ot=(0,x.useMemo)(function(){return typeof d=="string"&&d.includes("%")?Vo()(d.replace("%","")):Vo()(d)},[d]);if(y==="read"){var Xt=(0,B.jsx)(vs.Z,(0,i.Z)({ref:u,size:"small",style:{minWidth:100,maxWidth:320},percent:ot,steps:_?10:void 0,status:Qi(ot)},q));return M?M(ot,(0,i.Z)({mode:y},q),Xt):Xt}if(y==="edit"||y==="update"){var pn=(0,B.jsx)(vo.Z,(0,i.Z)({ref:u,placeholder:Xe},q));return ie?ie(d,(0,i.Z)({mode:y},q),pn):pn}return null},di=x.forwardRef(ms),Ji=a(22900),qi=["radioType","renderFormItem","mode","render"],_i=function(n,u){var d,y,M=n.radioType,_=n.renderFormItem,ie=n.mode,q=n.render,he=(0,w.Z)(n,qi),$e=(0,x.useContext)(H.ZP.ConfigContext),Xe=$e.getPrefixCls,ot=Xe("pro-field-radio"),Xt=(0,ut.aK)(he),pn=(0,re.Z)(Xt,3),rn=pn[0],yn=pn[1],Xn=pn[2],Cn=(0,x.useRef)(),Jn=(d=be.Z.Item)===null||d===void 0||(y=d.useStatus)===null||y===void 0?void 0:y.call(d);(0,x.useImperativeHandle)(u,function(){return(0,i.Z)((0,i.Z)({},Cn.current||{}),{},{fetchData:function(Or){return Xn(Or)}})},[Xn]);var fr=(0,qt.Xj)("FieldRadioRadio",function(wr){var Or;return Or={},(0,bn.Z)(Or,".".concat(ot,"-error"),{span:{color:wr.colorError}}),(0,bn.Z)(Or,".".concat(ot,"-warning"),{span:{color:wr.colorWarning}}),(0,bn.Z)(Or,".".concat(ot,"-vertical"),(0,bn.Z)({},"".concat(wr.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0})),Or}),Kn=fr.wrapSSR,_n=fr.hashId;if(rn)return(0,B.jsx)(Ue.Z,{size:"small"});if(ie==="read"){var Mr=yn!=null&&yn.length?yn==null?void 0:yn.reduce(function(wr,Or){var ea;return(0,i.Z)((0,i.Z)({},wr),{},(0,bn.Z)({},(ea=Or.value)!==null&&ea!==void 0?ea:"",Or.label))},{}):void 0,vr=(0,B.jsx)(B.Fragment,{children:(0,z.MP)(he.text,(0,z.R6)(he.valueEnum||Mr))});if(q){var zr;return(zr=q(he.text,(0,i.Z)({mode:ie},he.fieldProps),vr))!==null&&zr!==void 0?zr:null}return vr}if(ie==="edit"){var _r,Fr,wn=Kn((0,B.jsx)(Ji.ZP.Group,(0,i.Z)((0,i.Z)({ref:Cn,optionType:M},he.fieldProps),{},{className:ke()((_r=he.fieldProps)===null||_r===void 0?void 0:_r.className,(Fr={},(0,bn.Z)(Fr,"".concat(ot,"-error"),(Jn==null?void 0:Jn.status)==="error"),(0,bn.Z)(Fr,"".concat(ot,"-warning"),(Jn==null?void 0:Jn.status)==="warning"),Fr),_n,"".concat(ot,"-").concat(he.fieldProps.layout||"horizontal")),options:yn})));if(_){var nr;return(nr=_(he.text,(0,i.Z)((0,i.Z)({mode:ie},he.fieldProps),{},{options:yn,loading:rn}),wn))!==null&&nr!==void 0?nr:null}return wn}return null},el=x.forwardRef(_i),hs=function(n,u){var d=n.text,y=n.mode,M=n.light,_=n.label,ie=n.format,q=n.render,he=n.picker,$e=n.renderFormItem,Xe=n.plain,ot=n.showTime,Xt=n.lightLabel,pn=n.bordered,rn=n.fieldProps,yn=(0,l.YB)(),Xn=Array.isArray(d)?d:[],Cn=(0,re.Z)(Xn,2),Jn=Cn[0],fr=Cn[1],Kn=x.useState(!1),_n=(0,re.Z)(Kn,2),Mr=_n[0],vr=_n[1],zr=(0,x.useCallback)(function(ea){if(typeof(rn==null?void 0:rn.format)=="function"){var jr;return rn==null||(jr=rn.format)===null||jr===void 0?void 0:jr.call(rn,ea)}return(rn==null?void 0:rn.format)||ie||"YYYY-MM-DD"},[rn,ie]),_r=Jn?Qr()(Jn).format(zr(Qr()(Jn))):"",Fr=fr?Qr()(fr).format(zr(Qr()(fr))):"";if(y==="read"){var wn=(0,B.jsxs)("div",{ref:u,children:[(0,B.jsx)("div",{children:_r||"-"}),(0,B.jsx)("div",{children:Fr||"-"})]});return q?q(d,(0,i.Z)({mode:y},rn),(0,B.jsx)("span",{children:wn})):wn}if(y==="edit"||y==="update"){var nr=Ro(rn.value),wr;if(M){var Or;wr=(0,B.jsx)(se.Q,{label:_,onClick:function(){var jr;rn==null||(jr=rn.onOpenChange)===null||jr===void 0||jr.call(rn,!0),vr(!0)},style:nr?{paddingInlineEnd:0}:void 0,disabled:rn.disabled,value:nr||Mr?(0,B.jsx)(io.default.RangePicker,(0,i.Z)((0,i.Z)({picker:he,showTime:ot,format:ie,bordered:!1},rn),{},{placeholder:(Or=rn.placeholder)!==null&&Or!==void 0?Or:[yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],onClear:function(){var jr;vr(!1),rn==null||(jr=rn.onClear)===null||jr===void 0||jr.call(rn)},value:nr,onOpenChange:function(jr){var Zr;nr&&vr(jr),rn==null||(Zr=rn.onOpenChange)===null||Zr===void 0||Zr.call(rn,jr)}})):null,allowClear:!1,bordered:pn,ref:Xt,downIcon:nr||Mr?!1:void 0})}else wr=(0,B.jsx)(io.default.RangePicker,(0,i.Z)((0,i.Z)({ref:u,format:ie,showTime:ot,placeholder:[yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),yn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],bordered:Xe===void 0},rn),{},{value:nr}));return $e?$e(d,(0,i.Z)({mode:y},rn),wr):wr}return null},Co=x.forwardRef(hs),tl=a(37839),gs=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps;if(y==="read"){var q=(0,B.jsx)(tl.Z,(0,i.Z)((0,i.Z)({allowHalf:!0,disabled:!0,ref:u},ie),{},{value:d}));return M?M(d,(0,i.Z)({mode:y},ie),(0,B.jsx)(B.Fragment,{children:q})):q}if(y==="edit"||y==="update"){var he=(0,B.jsx)(tl.Z,(0,i.Z)({allowHalf:!0,ref:u},ie));return _?_(d,(0,i.Z)({mode:y},ie),he):he}return null},ps=x.forwardRef(gs);function bs(c){var n="",u=Math.floor(c/86400),d=Math.floor(c/3600),y=Math.floor(c/60%60),M=Math.floor(c%60);return n="".concat(M,"\u79D2"),y>0&&(n="".concat(y,"\u5206\u949F").concat(n)),d>0&&(n="".concat(d,"\u5C0F\u65F6").concat(n)),u>0&&(n="".concat(u,"\u5929").concat(n)),n}var ys=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=n.placeholder,he=(0,l.YB)(),$e=q||he.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165");if(y==="read"){var Xe=bs(Number(d)),ot=(0,B.jsx)("span",{ref:u,children:Xe});return M?M(d,(0,i.Z)({mode:y},ie),ot):ot}if(y==="edit"||y==="update"){var Xt=(0,B.jsx)(vo.Z,(0,i.Z)({ref:u,min:0,style:{width:"100%"},placeholder:$e},ie));return _?_(d,(0,i.Z)({mode:y},ie),Xt):Xt}return null},Cs=x.forwardRef(ys),Ss=a(13362),xs=["mode","render","renderFormItem","fieldProps","emptyText"],Ps=function(n,u){var d=n.mode,y=n.render,M=n.renderFormItem,_=n.fieldProps,ie=n.emptyText,q=ie===void 0?"-":ie,he=(0,w.Z)(n,xs),$e=(0,x.useRef)(),Xe=(0,ut.aK)(he),ot=(0,re.Z)(Xe,3),Xt=ot[0],pn=ot[1],rn=ot[2];if((0,x.useImperativeHandle)(u,function(){return(0,i.Z)((0,i.Z)({},$e.current||{}),{},{fetchData:function(Kn){return rn(Kn)}})},[rn]),Xt)return(0,B.jsx)(Ue.Z,{size:"small"});if(d==="read"){var yn=pn!=null&&pn.length?pn==null?void 0:pn.reduce(function(fr,Kn){var _n;return(0,i.Z)((0,i.Z)({},fr),{},(0,bn.Z)({},(_n=Kn.value)!==null&&_n!==void 0?_n:"",Kn.label))},{}):void 0,Xn=(0,B.jsx)(B.Fragment,{children:(0,z.MP)(he.text,(0,z.R6)(he.valueEnum||yn))});if(y){var Cn;return(Cn=y(he.text,(0,i.Z)({mode:d},_),(0,B.jsx)(B.Fragment,{children:Xn})))!==null&&Cn!==void 0?Cn:q}return Xn}if(d==="edit"||d==="update"){var Jn=(0,B.jsx)(Ss.Z,(0,i.Z)((0,i.Z)({ref:$e},(0,oi.Z)(_||{},["allowClear"])),{},{options:pn}));return M?M(he.text,(0,i.Z)((0,i.Z)({mode:d},_),{},{options:pn,loading:Xt}),Jn):Jn}return null},ws=x.forwardRef(Ps),Pc=a(59929),Es=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps;if(y==="read"){var q=d;return M?M(d,(0,i.Z)({mode:y},ie),(0,B.jsx)(B.Fragment,{children:q})):(0,B.jsx)(B.Fragment,{children:q})}if(y==="edit"||y==="update"){var he=(0,B.jsx)(Pc.Z,(0,i.Z)((0,i.Z)({ref:u},ie),{},{style:(0,i.Z)({minWidth:120},ie==null?void 0:ie.style)}));return _?_(d,(0,i.Z)({mode:y},ie),he):he}return null},nl=x.forwardRef(Es),Os=a(41868),rl=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.light,ie=n.label,q=n.renderFormItem,he=n.fieldProps,$e=(0,l.YB)(),Xe=(0,x.useMemo)(function(){var yn,Xn;return d==null||"".concat(d).length<1?"-":d?(yn=he==null?void 0:he.checkedChildren)!==null&&yn!==void 0?yn:$e.getMessage("switch.open","\u6253\u5F00"):(Xn=he==null?void 0:he.unCheckedChildren)!==null&&Xn!==void 0?Xn:$e.getMessage("switch.close","\u5173\u95ED")},[he==null?void 0:he.checkedChildren,he==null?void 0:he.unCheckedChildren,d]);if(y==="read")return M?M(d,(0,i.Z)({mode:y},he),(0,B.jsx)(B.Fragment,{children:Xe})):Xe!=null?Xe:"-";if(y==="edit"||y==="update"){var ot,Xt=(0,B.jsx)(Os.Z,(0,i.Z)((0,i.Z)({ref:u,size:_?"small":void 0},(0,oi.Z)(he,["value"])),{},{checked:(ot=he==null?void 0:he.checked)!==null&&ot!==void 0?ot:he==null?void 0:he.value}));if(_){var pn=he.disabled,rn=he.bordered;return(0,B.jsx)(se.Q,{label:ie,disabled:pn,bordered:rn,downIcon:!1,value:(0,B.jsx)("div",{style:{paddingLeft:8},children:Xt}),allowClear:!1})}return q?q(d,(0,i.Z)({mode:y},he),Xt):Xt}return null},al=x.forwardRef(rl),Zs=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=n.emptyText,he=q===void 0?"-":q,$e=ie||{},Xe=$e.autoFocus,ot=$e.prefix,Xt=ot===void 0?"":ot,pn=$e.suffix,rn=pn===void 0?"":pn,yn=(0,l.YB)(),Xn=(0,x.useRef)();if((0,x.useImperativeHandle)(u,function(){return Xn.current},[]),(0,x.useEffect)(function(){if(Xe){var _n;(_n=Xn.current)===null||_n===void 0||_n.focus()}},[Xe]),y==="read"){var Cn=(0,B.jsxs)(B.Fragment,{children:[Xt,d!=null?d:he,rn]});if(M){var Jn;return(Jn=M(d,(0,i.Z)({mode:y},ie),Cn))!==null&&Jn!==void 0?Jn:he}return Cn}if(y==="edit"||y==="update"){var fr=yn.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),Kn=(0,B.jsx)(tn.Z,(0,i.Z)({ref:Xn,placeholder:fr,allowClear:!0},ie));return _?_(d,(0,i.Z)({mode:y},ie),Kn):Kn}return null},Is=x.forwardRef(Zs),$s=function(n,u){var d=n.text,y=(0,x.useContext)(H.ZP.ConfigContext),M=y.getPrefixCls,_=M("pro-field-readonly"),ie="".concat(_,"-textarea"),q=(0,qt.Xj)("TextArea",function(){return(0,bn.Z)({},".".concat(ie),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),he=q.wrapSSR,$e=q.hashId;return he((0,B.jsx)("span",{ref:u,className:ke()($e,_,ie),style:{},children:d!=null?d:"-"}))},Rs=x.forwardRef($s),ol=function(n,u){var d=n.text,y=n.mode,M=n.render,_=n.renderFormItem,ie=n.fieldProps,q=(0,l.YB)();if(y==="read"){var he=(0,B.jsx)(Rs,(0,i.Z)((0,i.Z)({},n),{},{ref:u}));return M?M(d,(0,i.Z)({mode:y},ie),he):he}if(y==="edit"||y==="update"){var $e=(0,B.jsx)(tn.Z.TextArea,(0,i.Z)({ref:u,rows:3,onKeyPress:function(ot){ot.key==="Enter"&&ot.stopPropagation()},placeholder:q.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165")},ie));return _?_(d,(0,i.Z)({mode:y},ie),$e):$e}return null},Ms=x.forwardRef(ol),fi=a(74360),Ns=function(n,u){var d=n.text,y=n.mode,M=n.light,_=n.label,ie=n.format,q=n.render,he=n.renderFormItem,$e=n.plain,Xe=n.fieldProps,ot=n.lightLabel,Xt=(0,x.useState)(!1),pn=(0,re.Z)(Xt,2),rn=pn[0],yn=pn[1],Xn=(0,l.YB)(),Cn=(Xe==null?void 0:Xe.format)||ie||"HH:mm:ss",Jn=Qr().isDayjs(d)||typeof d=="number";if(y==="read"){var fr=(0,B.jsx)("span",{ref:u,children:d?Qr()(d,Jn?void 0:Cn).format(Cn):"-"});return q?q(d,(0,i.Z)({mode:y},Xe),(0,B.jsx)("span",{children:fr})):fr}if(y==="edit"||y==="update"){var Kn,_n=Xe.disabled,Mr=Xe.value,vr=Ro(Mr,Cn);if(M){var zr;Kn=(0,B.jsx)(se.Q,{onClick:function(){var Fr;Xe==null||(Fr=Xe.onOpenChange)===null||Fr===void 0||Fr.call(Xe,!0),yn(!0)},style:vr?{paddingInlineEnd:0}:void 0,label:_,disabled:_n,value:vr||rn?(0,B.jsx)(fi.Z,(0,i.Z)((0,i.Z)({bordered:!1,format:ie,ref:u},Xe),{},{placeholder:(zr=Xe.placeholder)!==null&&zr!==void 0?zr:Xn.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),value:vr,onOpenChange:function(Fr){var wn;yn(Fr),Xe==null||(wn=Xe.onOpenChange)===null||wn===void 0||wn.call(Xe,Fr)},open:rn})):null,downIcon:vr||rn?!1:void 0,allowClear:!1,ref:ot})}else Kn=(0,B.jsx)(io.default.TimePicker,(0,i.Z)((0,i.Z)({ref:u,format:ie,bordered:$e===void 0?!0:!$e},Xe),{},{value:vr}));return he?he(d,(0,i.Z)({mode:y},Xe),Kn):Kn}return null},Ts=function(n,u){var d=n.text,y=n.light,M=n.label,_=n.mode,ie=n.lightLabel,q=n.format,he=n.render,$e=n.renderFormItem,Xe=n.plain,ot=n.fieldProps,Xt=(0,l.YB)(),pn=(0,x.useState)(!1),rn=(0,re.Z)(pn,2),yn=rn[0],Xn=rn[1],Cn=(ot==null?void 0:ot.format)||q||"HH:mm:ss",Jn=Array.isArray(d)?d:[],fr=(0,re.Z)(Jn,2),Kn=fr[0],_n=fr[1],Mr=Qr().isDayjs(Kn)||typeof Kn=="number",vr=Qr().isDayjs(_n)||typeof _n=="number",zr=Kn?Qr()(Kn,Mr?void 0:Cn).format(Cn):"",_r=_n?Qr()(_n,vr?void 0:Cn).format(Cn):"";if(_==="read"){var Fr=(0,B.jsxs)("div",{ref:u,children:[(0,B.jsx)("div",{children:zr||"-"}),(0,B.jsx)("div",{children:_r||"-"})]});return he?he(d,(0,i.Z)({mode:_},ot),(0,B.jsx)("span",{children:Fr})):Fr}if(_==="edit"||_==="update"){var wn=Ro(ot.value,Cn),nr;if(y){var wr=ot.disabled,Or=ot.placeholder,ea=Or===void 0?[Xt.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),Xt.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")]:Or;nr=(0,B.jsx)(se.Q,{onClick:function(){var Zr;ot==null||(Zr=ot.onOpenChange)===null||Zr===void 0||Zr.call(ot,!0),Xn(!0)},style:wn?{paddingInlineEnd:0}:void 0,label:M,disabled:wr,placeholder:ea,value:wn||yn?(0,B.jsx)(fi.Z.RangePicker,(0,i.Z)((0,i.Z)({bordered:!1,format:q,ref:u},ot),{},{placeholder:ea,value:wn,onOpenChange:function(Zr){var ia;Xn(Zr),ot==null||(ia=ot.onOpenChange)===null||ia===void 0||ia.call(ot,Zr)},open:yn})):null,downIcon:wn||yn?!1:void 0,allowClear:!1,ref:ie})}else nr=(0,B.jsx)(fi.Z.RangePicker,(0,i.Z)((0,i.Z)({ref:u,format:q,bordered:Xe===void 0?!0:!Xe},ot),{},{value:wn}));return $e?$e(d,(0,i.Z)({mode:_},ot),nr):nr}return null},wc=x.forwardRef(Ts),il=x.forwardRef(Ns),Fs=a(96238),js=["radioType","renderFormItem","mode","light","label","render"],As=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],Ds=function(n,u){var d=n.radioType,y=n.renderFormItem,M=n.mode,_=n.light,ie=n.label,q=n.render,he=(0,w.Z)(n,js),$e=(0,x.useContext)(H.ZP.ConfigContext),Xe=$e.getPrefixCls,ot=Xe("pro-field-tree-select"),Xt=(0,x.useRef)(null),pn=(0,x.useState)(!1),rn=(0,re.Z)(pn,2),yn=rn[0],Xn=rn[1],Cn=he.fieldProps,Jn=Cn.onSearch,fr=Cn.onClear,Kn=Cn.onChange,_n=Cn.onBlur,Mr=Cn.showSearch,vr=Cn.autoClearSearchValue,zr=Cn.treeData,_r=Cn.fetchDataOnSearch,Fr=Cn.searchValue,wn=(0,w.Z)(Cn,As),nr=(0,l.YB)(),wr=(0,ut.aK)((0,i.Z)((0,i.Z)({},he),{},{defaultKeyWords:Fr})),Or=(0,re.Z)(wr,3),ea=Or[0],jr=Or[1],Zr=Or[2],ia=(0,oo.Z)(void 0,{onChange:Jn,value:Fr}),Ea=(0,re.Z)(ia,2),Ba=Ea[0],ja=Ea[1];(0,x.useImperativeHandle)(u,function(){return(0,i.Z)((0,i.Z)({},Xt.current||{}),{},{fetchData:function(ha){return Zr(ha)}})});var ho=(0,x.useMemo)(function(){if(M==="read"){var La=(wn==null?void 0:wn.fieldNames)||{},ha=La.value,_a=ha===void 0?"value":ha,so=La.label,hl=so===void 0?"label":so,mi=La.children,hi=mi===void 0?"children":mi,gi=new Map,gl=function pl(Po){if(!(Po!=null&&Po.length))return gi;for(var ec=Po.length,pi=0;pi0&&Fe!=="read"?(0,be.jsx)("div",{className:"".concat(mt,"-action ").concat($t).trim(),children:dn}):null,un={name:Ct.name,field:Qe,index:St,record:bt==null||(Le=bt.getFieldValue)===null||Le===void 0?void 0:Le.call(bt,[Rt.listName,P,Qe.name].filter(function(N){return N!==void 0}).flat(1)),fields:Ve,operation:Mt,meta:Be},ve=(0,Ye.zx)(),Ge=ve.grid,vt=(me==null?void 0:me(_t,un))||_t,et=(It==null?void 0:It({listDom:(0,be.jsx)("div",{className:"".concat(mt,"-container ").concat(de||""," ").concat($t||"").trim(),style:(0,w.Z)({width:Ge?"100%":void 0},ye),children:vt}),action:Ft},un))||(0,be.jsxs)("div",{className:"".concat(mt,"-item ").concat($t,` - `).concat(Vt===void 0&&"".concat(mt,"-item-default"),` - `).concat(Vt?"".concat(mt,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,be.jsx)("div",{className:"".concat(mt,"-container ").concat(de||""," ").concat($t).trim(),style:(0,w.Z)({width:Ge?"100%":void 0},ye),children:vt}),Ft]});return(0,be.jsx)(Te.Provider,{value:(0,w.Z)((0,w.Z)({},Qe),{},{listName:[Rt.listName,P,Qe.name].filter(function(N){return N!==void 0}).flat(1)}),children:et})},pt=function(A){var Le=(0,Z.YB)(),We=A.creatorButtonProps,qe=A.prefixCls,yt=A.children,me=A.creatorRecord,It=A.action,Vt=A.fields,mt=A.actionGuard,Dt=A.max,Mt=A.fieldExtraRender,Lt=A.meta,Pn=A.containerClassName,Ee=A.containerStyle,Ve=A.onAfterAdd,Be=A.onAfterRemove,Qe=(0,re.useContext)(Z.L_),St=Qe.hashId,bt=(0,re.useRef)(new Map),P=(0,re.useState)(!1),de=(0,H.Z)(P,2),ye=de[0],He=de[1],_e=(0,re.useMemo)(function(){return Vt.map(function(lt){var nt,Fe;if(!((nt=bt.current)!==null&&nt!==void 0&&nt.has(lt.key.toString()))){var je;(je=bt.current)===null||je===void 0||je.set(lt.key.toString(),(0,At.x)())}var fe=(Fe=bt.current)===null||Fe===void 0?void 0:Fe.get(lt.key.toString());return(0,w.Z)((0,w.Z)({},lt),{},{uuid:fe})})},[Vt]),st=(0,re.useMemo)(function(){var lt=(0,w.Z)({},It),nt=_e.length;return mt!=null&&mt.beforeAddRow?lt.add=(0,se.Z)((0,z.Z)().mark(function Fe(){var je,fe,Ze,$,j,Y=arguments;return(0,z.Z)().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:for(je=Y.length,fe=new Array(je),Ze=0;Ze0&&arguments[0]!==void 0?arguments[0]:{},ke=At.children,ut=At.Wrapper,B=(0,I.Z)(At,Q);return z?(0,ae.jsx)(l.Z,(0,w.Z)((0,w.Z)((0,w.Z)({gutter:8},se),B),{},{children:ke})):ut?(0,ae.jsx)(ut,{children:ke}):ke},ColWrapper:function(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ke=At.children,ut=At.Wrapper,B=(0,I.Z)(At,K),tr=(0,Z.useMemo)(function(){var mn=(0,w.Z)((0,w.Z)({},H),B);return typeof mn.span=="undefined"&&typeof mn.xs=="undefined"&&(mn.xs=24),mn},[B]);return z?(0,ae.jsx)(k.Z,(0,w.Z)((0,w.Z)({},tr),{},{children:ke})):ut?(0,ae.jsx)(ut,{children:ke}):ke}}},x=function(Ye){var z=(0,Z.useMemo)(function(){return(0,i.Z)(Ye)==="object"?Ye:{grid:Ye}},[Ye]),se=(0,Z.useContext)(ce),H=se.grid,it=se.colProps;return(0,Z.useMemo)(function(){return pe({grid:!!(H||z.grid),rowProps:z==null?void 0:z.rowProps,colProps:(z==null?void 0:z.colProps)||it,Wrapper:z==null?void 0:z.Wrapper})},[z==null?void 0:z.Wrapper,z.grid,H,JSON.stringify([it,z==null?void 0:z.colProps,z==null?void 0:z.rowProps])])}},22532:function(Zt,xe,a){"use strict";a.d(xe,{Q:function(){return z}});var i=a(73273),w=a(67536),I=a(85824),l=a(17122),k=a(56197),Z=a(84875),ae=a.n(Z),Q=a(50959),K=a(33346),ce=a(26488),pe=function(H){var it,At,ke,ut;return(0,i.Z)({},H.componentCls,(ut={display:"inline-flex",gap:H.marginXXS,alignItems:"center",height:"30px",paddingBlock:0,paddingInline:8,fontSize:H.fontSize,lineHeight:"30px",borderRadius:"2px",cursor:"pointer","&:hover":{backgroundColor:H.colorBgTextHover},"&-active":(0,i.Z)({paddingBlock:0,paddingInline:8,backgroundColor:H.colorBgTextHover},"&".concat(H.componentCls,"-allow-clear:hover:not(").concat(H.componentCls,"-disabled)"),(it={},(0,i.Z)(it,"".concat(H.componentCls,"-arrow"),{display:"none"}),(0,i.Z)(it,"".concat(H.componentCls,"-close"),{display:"inline-flex"}),it))},(0,i.Z)(ut,"".concat(H.antCls,"-select"),(0,i.Z)({},"".concat(H.antCls,"-select-clear"),{borderRadius:"50%"})),(0,i.Z)(ut,"".concat(H.antCls,"-picker"),(0,i.Z)({},"".concat(H.antCls,"-picker-clear"),{borderRadius:"50%"})),(0,i.Z)(ut,"&-icon",(At={color:H.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},(0,i.Z)(At,"&".concat(H.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:H.colorTextPlaceholder,borderRadius:"50%"}),(0,i.Z)(At,"&:hover",{color:H.colorIconHover}),At)),(0,i.Z)(ut,"&-disabled",(0,i.Z)({color:H.colorTextPlaceholder,cursor:"not-allowed"},"".concat(H.componentCls,"-icon"),{color:H.colorTextPlaceholder})),(0,i.Z)(ut,"&-small",(ke={height:"24px",paddingBlock:0,paddingInline:4,fontSize:H.fontSizeSM,lineHeight:"24px"},(0,i.Z)(ke,"&".concat(H.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),(0,i.Z)(ke,"".concat(H.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),(0,i.Z)(ke,"".concat(H.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"}),ke)),(0,i.Z)(ut,"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(H.lineWidth,"px solid ").concat(H.colorBorder),borderRadius:"@border-radius-base"}),(0,i.Z)(ut,"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),(0,i.Z)(ut,"&-bordered&-active",{backgroundColor:H.colorBgContainer}),ut))};function x(se){return(0,ce.Xj)("FieldLabel",function(H){var it=(0,K.Z)((0,K.Z)({},H),{},{componentCls:".".concat(se)});return[pe(it)]})}var re=a(11527),Ye=function(H,it){var At,ke,ut,B,tr=H.label,mn=H.onClear,jn=H.value,bn=H.disabled,qt=H.onLabelClick,be=H.ellipsis,Ue=H.placeholder,Wt=H.className,an=H.formatter,pt=H.bordered,tt=H.style,tn=H.downIcon,En=H.allowClear,Rn=En===void 0?!0:En,On=H.valueMaxLength,Te=On===void 0?41:On,fn=(k.ZP===null||k.ZP===void 0||(At=k.ZP.useConfig)===null||At===void 0?void 0:At.call(k.ZP))||{componentSize:"middle"},T=fn.componentSize,A=T,Le=(0,Q.useContext)(k.ZP.ConfigContext),We=Le.getPrefixCls,qe=We("pro-core-field-label"),yt=x(qe),me=yt.wrapSSR,It=yt.hashId,Vt=(0,l.YB)(),mt=(0,Q.useRef)(null),Dt=(0,Q.useRef)(null);(0,Q.useImperativeHandle)(it,function(){return{labelRef:Dt,clearRef:mt}});var Mt=function(Ve){return Ve.every(function(Be){return typeof Be=="string"})?Ve.join(","):Ve.map(function(Be,Qe){var St=Qe===Ve.length-1?"":",";return typeof Be=="string"?(0,re.jsxs)("span",{children:[Be,St]},Qe):(0,re.jsxs)("span",{style:{display:"flex"},children:[Be,St]},Qe)})},Lt=function(Ve){return an?an(Ve):Array.isArray(Ve)?Mt(Ve):Ve},Pn=function(Ve,Be){if(Be!=null&&Be!==""&&(!Array.isArray(Be)||Be.length)){var Qe,St,bt=Ve?(0,re.jsxs)("span",{onClick:function(){qt==null||qt()},className:"".concat(qe,"-text"),children:[Ve,": "]}):"",P=Lt(Be);if(!be)return(0,re.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[bt,Lt(Be)]});var de=function(){var _e=Array.isArray(Be)&&Be.length>1,st=Vt.getMessage("form.lightFilter.itemUnit","\u9879");return typeof P=="string"&&P.length>Te&&_e?"...".concat(Be.length).concat(st):""},ye=de();return(0,re.jsxs)("span",{title:typeof P=="string"?P:void 0,style:{display:"inline-flex",alignItems:"center"},children:[bt,(0,re.jsx)("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof P=="string"?P==null||(Qe=P.toString())===null||Qe===void 0||(St=Qe.substr)===null||St===void 0?void 0:St.call(Qe,0,Te):P}),ye]})}return Ve||Ue};return me((0,re.jsxs)("span",{className:ae()(qe,It,"".concat(qe,"-").concat((ke=(ut=H.size)!==null&&ut!==void 0?ut:A)!==null&&ke!==void 0?ke:"middle"),(B={},(0,i.Z)(B,"".concat(qe,"-active"),!!jn||jn===0),(0,i.Z)(B,"".concat(qe,"-disabled"),bn),(0,i.Z)(B,"".concat(qe,"-bordered"),pt),(0,i.Z)(B,"".concat(qe,"-allow-clear"),Rn),B),Wt),style:tt,ref:Dt,onClick:function(){var Ve;H==null||(Ve=H.onClick)===null||Ve===void 0||Ve.call(H)},children:[Pn(tr,jn),(jn||jn===0)&&Rn&&(0,re.jsx)(w.Z,{role:"button",title:Vt.getMessage("form.lightFilter.clear","\u6E05\u9664"),className:ae()("".concat(qe,"-icon"),It,"".concat(qe,"-close")),onClick:function(Ve){bn||mn==null||mn(),Ve.stopPropagation()},ref:mt}),tn!==!1?tn!=null?tn:(0,re.jsx)(I.Z,{className:ae()("".concat(qe,"-icon"),It,"".concat(qe,"-arrow"))}):null]}))},z=Q.forwardRef(Ye)},56829:function(Zt,xe,a){"use strict";a.d(xe,{M:function(){return it}});var i=a(33346),w=a(73273),I=a(56197),l=a(82757),k=a(50959),Z=a(17122),ae=a(47100),Q=a(84875),K=a.n(Q),ce=a(26488),pe=function(ke){return(0,w.Z)({},ke.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(ke.colorSplit)})};function x(At){return(0,ce.Xj)("DropdownFooter",function(ke){var ut=(0,i.Z)((0,i.Z)({},ke),{},{componentCls:".".concat(At)});return[pe(ut)]})}var re=a(11527),Ye=function(ke){var ut=(0,Z.YB)(),B=ke.onClear,tr=ke.onConfirm,mn=ke.disabled,jn=ke.footerRender,bn=(0,k.useContext)(I.ZP.ConfigContext),qt=bn.getPrefixCls,be=qt("pro-core-dropdown-footer"),Ue=x(be),Wt=Ue.wrapSSR,an=Ue.hashId,pt=[(0,re.jsx)(ae.ZP,{style:{visibility:B?"visible":"hidden"},type:"link",size:"small",disabled:mn,onClick:function(En){B&&B(En),En.stopPropagation()},children:ut.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,re.jsx)(ae.ZP,{"data-type":"confirm",type:"primary",size:"small",onClick:tr,disabled:mn,children:ut.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(jn===!1||(jn==null?void 0:jn(tr,B))===!1)return null;var tt=(jn==null?void 0:jn(tr,B))||pt;return Wt((0,re.jsx)("div",{className:K()(be,an),onClick:function(En){return En.target.getAttribute("data-type")!=="confirm"&&En.stopPropagation()},children:tt}))},z=a(87322),se=function(ke){var ut;return ut={},(0,w.Z)(ut,"".concat(ke.componentCls,"-label"),{cursor:"pointer"}),(0,w.Z)(ut,"".concat(ke.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),(0,w.Z)(ut,"".concat(ke.componentCls,"-content"),{paddingBlock:16,paddingInline:16}),ut};function H(At){return(0,ce.Xj)("FilterDropdown",function(ke){var ut=(0,i.Z)((0,i.Z)({},ke),{},{componentCls:".".concat(At)});return[se(ut)]})}var it=function(ke){var ut,B=ke.children,tr=ke.label,mn=ke.footer,jn=ke.open,bn=ke.onOpenChange,qt=ke.disabled,be=ke.onVisibleChange,Ue=ke.visible,Wt=ke.footerRender,an=ke.placement,pt=(0,k.useContext)(I.ZP.ConfigContext),tt=pt.getPrefixCls,tn=tt("pro-core-field-dropdown"),En=H(tn),Rn=En.wrapSSR,On=En.hashId,Te=(0,z.X)(jn||Ue||!1,bn||be),fn=(0,k.useRef)(null);return Rn((0,re.jsx)(l.Z,(0,i.Z)((0,i.Z)({placement:an,trigger:["click"]},Te),{},{overlayInnerStyle:{padding:0},content:(0,re.jsxs)("div",{ref:fn,className:K()("".concat(tn,"-overlay"),(ut={},(0,w.Z)(ut,"".concat(tn,"-overlay-").concat(an),an),(0,w.Z)(ut,"hashId",On),ut)),children:[(0,re.jsx)(I.ZP,{getPopupContainer:function(){return fn.current||document.body},children:(0,re.jsx)("div",{className:"".concat(tn,"-content ").concat(On).trim(),children:B})}),mn&&(0,re.jsx)(Ye,(0,i.Z)({disabled:qt,footerRender:Wt},mn))]}),children:(0,re.jsx)("span",{className:"".concat(tn,"-label ").concat(On).trim(),children:tr})})))}},98114:function(Zt,xe,a){"use strict";a.d(xe,{J:function(){return w}});var i=a(50959),w=i.createContext({})},55132:function(Zt,xe,a){"use strict";a.d(xe,{Cl:function(){return Q},lp:function(){return re}});var i=a(40727),w=a(5726),I=a.n(w),l=a(56591),k=a.n(l),Z=a(85108),ae=a(90337);I().extend(k());var Q={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function K(Ye){return Object.prototype.toString.call(Ye)==="[object Object]"}function ce(Ye){if(K(Ye)===!1)return!1;var z=Ye.constructor;if(z===void 0)return!0;var se=z.prototype;return!(K(se)===!1||se.hasOwnProperty("isPrototypeOf")===!1)}var pe=function(z){return!!(z!=null&&z._isAMomentObject)},x=function(z,se,H){if(!se)return z;if(I().isDayjs(z)||pe(z)){if(se==="number")return z.valueOf();if(se==="string")return z.format(Q[H]||"YYYY-MM-DD HH:mm:ss");if(typeof se=="string"&&se!=="string")return z.format(se);if(typeof se=="function")return se(z,H)}return z},re=function Ye(z,se,H,it,At){var ke={};return typeof window=="undefined"||(0,i.Z)(z)!=="object"||(0,ae.k)(z)||z instanceof Blob||Array.isArray(z)?z:(Object.keys(z).forEach(function(ut){var B=At?[At,ut].flat(1):[ut],tr=(0,Z.Z)(H,B)||"text",mn="text",jn;typeof tr=="string"?mn=tr:tr&&(mn=tr.valueType,jn=tr.dateFormat);var bn=z[ut];if(!((0,ae.k)(bn)&&it)){if(ce(bn)&&!Array.isArray(bn)&&!I().isDayjs(bn)&&!pe(bn)){ke[ut]=Ye(bn,se,H,it,[ut]);return}if(Array.isArray(bn)){ke[ut]=bn.map(function(qt,be){return I().isDayjs(qt)||pe(qt)?x(qt,jn||se,mn):Ye(qt,se,H,it,[ut,"".concat(be)].flat(1))});return}ke[ut]=x(bn,jn||se,mn)}}),ke)}},26299:function(Zt,xe,a){"use strict";a.d(xe,{c:function(){return k}});var i=a(32682),w=a(5726),I=a.n(w),l=function(ae,Q){return typeof Q=="function"?Q(I()(ae)):I()(ae).format(Q)},k=function(ae,Q){var K=Array.isArray(ae)?ae:[],ce=(0,i.Z)(K,2),pe=ce[0],x=ce[1],re,Ye;Array.isArray(Q)?(re=Q[0],Ye=Q[1]):(re=Q,Ye=Q);var z=pe?l(pe,re):"",se=x?l(x,Ye):"",H=z&&se?"".concat(z," ~ ").concat(se):"";return H}},82250:function(Zt,xe,a){"use strict";a.d(xe,{D:function(){return k}});var i=a(3224),w=a(47801),I=a(50959),l=a(13165);function k(Z,ae){var Q=(0,l.J)(Z),K=(0,I.useRef)(),ce=(0,I.useCallback)(function(){K.current&&(clearTimeout(K.current),K.current=null)},[]),pe=(0,I.useCallback)((0,w.Z)((0,i.Z)().mark(function x(){var re,Ye,z,se=arguments;return(0,i.Z)().wrap(function(it){for(;;)switch(it.prev=it.next){case 0:for(re=se.length,Ye=new Array(re),z=0;z0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window=="undefined"||!window.crypto)return(i+=1).toFixed(0);for(var Z="",ae=crypto.getRandomValues(new Uint8Array(k));k--;){var Q=63&ae[k];Z+=Q<36?Q.toString(36):Q<62?(Q-26).toString(36).toUpperCase():Q<63?"_":"-"}return Z},I=function(){return typeof window=="undefined"?w():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():w()}},30510:function(Zt,xe,a){"use strict";a.d(xe,{MP:function(){return ce},R6:function(){return Q}});var i=a(40727),w=a(71656),I=a(75200),l=a(50959),k=a(11527);function Z(pe){var x=Object.prototype.toString.call(pe).match(/^\[object (.*)\]$/)[1].toLowerCase();return x==="string"&&(0,i.Z)(pe)==="object"?"object":pe===null?"null":pe===void 0?"undefined":x}var ae=function(x){var re=x.color,Ye=x.children;return(0,k.jsx)(w.Z,{color:re,text:Ye})},Q=function(x){return Z(x)==="map"?x:new Map(Object.entries(x||{}))},K={Success:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"success",text:re})},Error:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"error",text:re})},Default:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"default",text:re})},Processing:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"processing",text:re})},Warning:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"warning",text:re})},success:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"success",text:re})},error:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"error",text:re})},default:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"default",text:re})},processing:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"processing",text:re})},warning:function(x){var re=x.children;return(0,k.jsx)(w.Z,{status:"warning",text:re})}},ce=function pe(x,re,Ye){if(Array.isArray(x))return(0,k.jsx)(I.Z,{split:",",size:2,wrap:!0,children:x.map(function(ke,ut){return pe(ke,re,ut)})},Ye);var z=Q(re);if(!z.has(x)&&!z.has("".concat(x)))return(x==null?void 0:x.label)||x;var se=z.get(x)||z.get("".concat(x));if(!se)return(0,k.jsx)(l.Fragment,{children:(x==null?void 0:x.label)||x},Ye);var H=se.status,it=se.color,At=K[H||"Init"];return At?(0,k.jsx)(At,{children:se.text},Ye):it?(0,k.jsx)(ae,{color:it,children:se.text},Ye):(0,k.jsx)(l.Fragment,{children:se.text||se},Ye)}},44559:function(Zt,xe,a){"use strict";a.d(xe,{h:function(){return i}});function i(w){if(typeof w=="function"){for(var I=arguments.length,l=new Array(I>1?I-1:0),k=1;k2&&arguments[2]!==void 0?arguments[2]:!1;ht.forEach(function(Ht){if(!(!Ie&&Oe!==!1&&Oe>0&&at.length>=Oe)){var ct=[].concat((0,i.Z)(Gt),[Ht]),Qt=Ht[J.children],kt=en||Ht.disabled;if((!Qt||Qt.length===0||F)&&ne(S,ct,{label:J.label})){var Et;at.push((0,Z.Z)((0,Z.Z)({},Ht),{},(Et={disabled:kt},(0,se.Z)(Et,J.label,le(S,ct,C,J)),(0,se.Z)(Et,H,ct),(0,se.Z)(Et,J.children,void 0),Et)))}Qt&&dt(Ht[J.children],ct,kt)}})}return dt(G,[]),Ie&&at.sort(function(ht,Gt){return Ie(ht[H],Gt[H],S,J)}),Oe!==!1&&Oe>0?at.slice(0,Oe):at},[S,G,J,C,le,F,ne,Ie,Oe])},ut="__RC_CASCADER_SPLIT__",B="SHOW_PARENT",tr="SHOW_CHILD";function mn(S){return S.join(ut)}function jn(S){return S.map(mn)}function bn(S){return S.split(ut)}function qt(S){var G=S||{},J=G.label,C=G.value,E=G.children,F=C||"value";return{label:J||"label",value:F,key:F,children:E||"children"}}function be(S,G){var J,C;return(J=S.isLeaf)!==null&&J!==void 0?J:!((C=S[G.children])!==null&&C!==void 0&&C.length)}function Ue(S){var G=S.parentElement;if(G){var J=S.offsetTop-G.offsetTop;J-G.scrollTop<0?G.scrollTo({top:J}):J+S.offsetHeight-G.scrollTop>G.offsetHeight&&G.scrollTo({top:J+S.offsetHeight-G.offsetHeight})}}function Wt(S,G){return S.map(function(J){var C;return(C=J[H])===null||C===void 0?void 0:C.map(function(E){return E[G.value]})})}function an(S){return Array.isArray(S)&&Array.isArray(S[0])}function pt(S){return S?an(S)?S:(S.length===0?[]:[S]).map(function(G){return Array.isArray(G)?G:[G]}):[]}function tt(S,G,J){var C=new Set(S),E=G();return S.filter(function(F){var W=E[F],ne=W?W.parent:null,te=W?W.children:null;return W&&W.node.disabled?!0:J===tr?!(te&&te.some(function(le){return le.key&&C.has(le.key)})):!(ne&&!ne.node.disabled&&C.has(ne.key))})}function tn(S,G,J){for(var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,E=G,F=[],W=function(){var le,V,Oe,Ie=S[ne],at=(le=E)===null||le===void 0?void 0:le.findIndex(function(ht){var Gt=ht[J.value];return C?String(Gt)===String(Ie):Gt===Ie}),dt=at!==-1?(V=E)===null||V===void 0?void 0:V[at]:null;F.push({value:(Oe=dt==null?void 0:dt[J.value])!==null&&Oe!==void 0?Oe:Ie,index:at,option:dt}),E=dt==null?void 0:dt[J.children]},ne=0;ne1){var jt=dt.slice(0,-1);Ht(jt)}else le(!1)},kt=function(){var jt,Nt=((jt=Gt[ht])===null||jt===void 0?void 0:jt[J.children])||[],xt=Nt.find(function(Bn){return!Bn.disabled});if(xt){var gn=[].concat((0,i.Z)(dt),[xt[J.value]]);Ht(gn)}};w.useImperativeHandle(S,function(){return{onKeyDown:function(jt){var Nt=jt.which;switch(Nt){case Mt.Z.UP:case Mt.Z.DOWN:{var xt=0;Nt===Mt.Z.UP?xt=-1:Nt===Mt.Z.DOWN&&(xt=1),xt!==0&&ct(xt);break}case Mt.Z.LEFT:{if(te)break;Oe?kt():Qt();break}case Mt.Z.RIGHT:{if(te)break;Oe?Qt():kt();break}case Mt.Z.BACKSPACE:{te||Qt();break}case Mt.Z.ENTER:{if(dt.length){var gn=Gt[ht],Bn=(gn==null?void 0:gn[H])||[];Bn.length?F(Bn.map(function(Vn){return Vn[J.value]}),Bn[Bn.length-1]):F(dt,Gt[ht])}break}case Mt.Z.ESC:le(!1),V&&jt.stopPropagation()}},onKeyUp:function(){}}})},Pn=w.forwardRef(function(S,G){var J,C,E,F=S.prefixCls,W=S.multiple,ne=S.searchValue,te=S.toggleOpen,le=S.notFoundContent,V=S.direction,Oe=S.open,Ie=w.useRef(),at=V==="rtl",dt=w.useContext(Ye),ht=dt.options,Gt=dt.values,en=dt.halfValues,Ht=dt.fieldNames,ct=dt.changeOnSelect,Qt=dt.onSelect,kt=dt.searchOptions,Et=dt.dropdownPrefixCls,jt=dt.loadData,Nt=dt.expandTrigger,xt=Et||F,gn=w.useState([]),Bn=(0,ae.Z)(gn,2),Vn=Bn[0],Qn=Bn[1],hn=function(O){if(!(!jt||ne)){var D=tn(O,ht,Ht),oe=D.map(function(Yn){var ar=Yn.option;return ar}),Pt=oe[oe.length-1];if(Pt&&!be(Pt,Ht)){var Tn=mn(O);Qn(function(Yn){return[].concat((0,i.Z)(Yn),[Tn])}),jt(oe)}}};w.useEffect(function(){Vn.length&&Vn.forEach(function(cn){var O=bn(cn),D=tn(O,ht,Ht,!0).map(function(Pt){var Tn=Pt.option;return Tn}),oe=D[D.length-1];(!oe||oe[Ht.children]||be(oe,Ht))&&Qn(function(Pt){return Pt.filter(function(Tn){return Tn!==cn})})})},[ht,Vn,Ht]);var qn=w.useMemo(function(){return new Set(jn(Gt))},[Gt]),kn=w.useMemo(function(){return new Set(jn(en))},[en]),rr=Dt(W,Oe),Un=(0,ae.Z)(rr,2),xn=Un[0],Hn=Un[1],ir=function(O){Hn(O),hn(O)},ur=function(O){var D=O.disabled,oe=be(O,Ht);return!D&&(oe||ct||W)},An=function(O,D){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Qt(O),!W&&(D||ct&&(Nt==="hover"||oe))&&te(!1)},In=w.useMemo(function(){return ne?kt:ht},[ne,kt,ht]),$n=w.useMemo(function(){for(var cn=[{options:In}],O=In,D=Wt(O,Ht),oe=function(){var Yn=xn[Pt],ar=O.find(function(dr,Yr){return(D[Yr]?mn(D[Yr]):dr[Ht.value])===Yn}),er=ar==null?void 0:ar[Ht.children];if(!(er!=null&&er.length))return 1;O=er,cn.push({options:er})},Pt=0;Pt":en,ct=J.loadingIcon,Qt=J.direction,kt=J.notFoundContent,Et=kt===void 0?"Not Found":kt,jt=!!te,Nt=(0,Qe.C8)(le,{value:V,postState:pt}),xt=(0,ae.Z)(Nt,2),gn=xt[0],Bn=xt[1],Vn=w.useMemo(function(){return qt(Oe)},[JSON.stringify(Oe)]),Qn=fn(Vn,ne),hn=(0,ae.Z)(Qn,3),qn=hn[0],kn=hn[1],rr=hn[2],Un=Rn(qn,Vn),xn=qe(jt,gn,kn,rr,Un),Hn=(0,ae.Z)(xn,3),ir=Hn[0],ur=Hn[1],An=Hn[2],In=(0,Qe.zX)(function(nn){if(Bn(nn),at){var Jt=pt(nn),cn=Jt.map(function(oe){return tn(oe,qn,Vn).map(function(Pt){return Pt.option})}),O=jt?Jt:Jt[0],D=jt?cn:cn[0];at(O,D)}}),$n=We(jt,In,ir,ur,An,kn,rr,dt),Ot=(0,Qe.zX)(function(nn){$n(nn)}),Nn=w.useMemo(function(){return{options:qn,fieldNames:Vn,values:ir,halfValues:ur,changeOnSelect:Ie,onSelect:Ot,checkable:te,searchOptions:[],dropdownPrefixCls:null,loadData:ht,expandTrigger:Gt,expandIcon:Ht,loadingIcon:ct,dropdownMenuColumnStyle:null}},[qn,Vn,ir,ur,Ie,Ot,te,ht,Gt,Ht,ct]),ln="".concat(E,"-panel"),sn=!qn.length;return w.createElement(Ye.Provider,{value:Nn},w.createElement("div",{className:l()(ln,(G={},(0,se.Z)(G,"".concat(ln,"-rtl"),Qt==="rtl"),(0,se.Z)(G,"".concat(ln,"-empty"),sn),G),W),style:F},sn?Et:w.createElement(Ee,{prefixCls:E,searchValue:null,multiple:jt,toggleOpen:St,open:!0,direction:Qt})))}function P(S){var G=S.onPopupVisibleChange,J=S.popupVisible,C=S.popupClassName,E=S.popupPlacement;warning(!G,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(J===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(C===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(E===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function de(S,G){if(S){var J=function C(E){for(var F=0;F":qn,rr=S.loadingIcon,Un=S.children,xn=S.dropdownMatchSelectWidth,Hn=xn===void 0?!1:xn,ir=S.showCheckedStrategy,ur=ir===void 0?B:ir,An=(0,Q.Z)(S,He),In=(0,ce.ZP)(J),$n=!!Oe,Ot=(0,x.Z)(W,{value:ne,postState:pt}),Nn=(0,ae.Z)(Ot,2),ln=Nn[0],sn=Nn[1],nn=w.useMemo(function(){return qt(F)},[JSON.stringify(F)]),Jt=fn(nn,Ht),cn=(0,ae.Z)(Jt,3),O=cn[0],D=cn[1],oe=cn[2],Pt=(0,x.Z)("",{value:dt,postState:function(Xr){return Xr||""}}),Tn=(0,ae.Z)(Pt,2),Yn=Tn[0],ar=Tn[1],er=function(Xr,Gr){ar(Xr),Gr.source!=="blur"&&ht&&ht(Xr)},dr=A(Gt),Yr=(0,ae.Z)(dr,2),ta=Yr[0],Er=Yr[1],Pa=ke(Yn,O,nn,ct||E,Er,te),Jr=Rn(O,nn),ba=qe($n,ln,D,oe,Jr),Za=(0,ae.Z)(ba,3),oa=Za[0],wa=Za[1],Ia=Za[2],Na=w.useMemo(function(){var na=jn(oa),Xr=tt(na,D,ur);return[].concat((0,i.Z)(Ia),(0,i.Z)(oe(Xr)))},[oa,D,oe,Ia,ur]),Qa=En(Na,O,nn,$n,V),xr=(0,pe.Z)(function(na){if(sn(na),le){var Xr=pt(na),Gr=Xr.map(function(ka){return tn(ka,O,nn).map(function(no){return no.option})}),aa=$n?Xr:Xr[0],Ta=$n?Gr:Gr[0];le(aa,Ta)}}),yr=We($n,xr,oa,wa,Ia,D,oe,ur),Cr=(0,pe.Z)(function(na){(!$n||at)&&ar(""),yr(na)}),Ar=function(Xr,Gr){if(Gr.type==="clear"){xr([]);return}var aa=Gr.values[0],Ta=aa.valueCells;Cr(Ta)},qr=Et!==void 0?Et:kt,ya=Nt||jt,Aa=Vn||Bn,Lr=function(Xr){Qn==null||Qn(Xr),hn==null||hn(Xr)},Tr=w.useMemo(function(){return{options:O,fieldNames:nn,values:oa,halfValues:wa,changeOnSelect:te,onSelect:Cr,checkable:Oe,searchOptions:Pa,dropdownPrefixCls:ct,loadData:Qt,expandTrigger:en,expandIcon:kn,loadingIcon:rr,dropdownMenuColumnStyle:xt}},[O,nn,oa,wa,te,Cr,Oe,Pa,ct,Qt,en,kn,rr,xt]),Kr=!(Yn?Pa:O).length,sa=Yn&&Er.matchInputWidth||Kr?{}:{minWidth:"auto"};return w.createElement(Ye.Provider,{value:Tr},w.createElement(K.Ac,(0,k.Z)({},An,{ref:G,id:In,prefixCls:E,autoClearSearchValue:at,dropdownMatchSelectWidth:Hn,dropdownStyle:(0,Z.Z)((0,Z.Z)({},sa),gn),displayValues:Qa,onDisplayValuesChange:Ar,mode:$n?"multiple":void 0,searchValue:Yn,onSearch:er,showSearch:ta,OptionList:Be,emptyOptions:Kr,open:qr,dropdownClassName:ya,placement:Aa,onDropdownVisibleChange:Lr,getRawInputElement:function(){return Un}})))});_e.SHOW_PARENT=B,_e.SHOW_CHILD=tr,_e.Panel=bt;var st=_e,Ct=st,Kt=a(87017),$t=a(22365),Rt=a(58351),lt=a(97960),nt=a(55580),Fe=a(31594),je=a(7717),fe=a(69943),Ze=a(10254),$=a(17436),j=a(1415),Y=a(13610),Me=a(14800),ze=a(81986),ft=a(70008),vn=a(21130);function _t(S,G){const{getPrefixCls:J,direction:C,renderEmpty:E}=w.useContext(Fe.E_),F=G||C,W=J("select",S),ne=J("cascader",S);return[W,ne,F,E]}function Yt(S,G){return w.useMemo(()=>G?w.createElement("span",{className:`${S}-checkbox-inner`}):!1,[G])}var Tt=a(70474),Ut=a(58516),dn=a(25671);function Ft(S,G,J){let C=J;J||(C=G?w.createElement(Tt.Z,null):w.createElement(dn.Z,null));const E=w.createElement("span",{className:`${S}-menu-item-loading-icon`},w.createElement(Ut.Z,{spin:!0}));return[C,E]}var un=a(82776),ve=a(81501),Ge=a(60076),vt=a(49508),et=a(6301),Pe=S=>{const{prefixCls:G,componentCls:J}=S,C=`${J}-menu-item`,E=` - &${C}-expand ${C}-expand-icon, - ${C}-loading-icon -`;return[(0,vt.C2)(`${G}-checkbox`,S),{[J]:{"&-checkbox":{top:0,marginInlineEnd:S.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${J}-menu-empty`]:{[`${J}-menu`]:{width:"100%",height:"auto",[C]:{color:S.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:S.controlItemWidth,height:S.dropdownHeight,margin:0,padding:S.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Ge.bf)(S.lineWidth)} ${S.lineType} ${S.colorSplit}`},"&-item":Object.assign(Object.assign({},et.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:S.optionPadding,lineHeight:S.lineHeight,cursor:"pointer",transition:`all ${S.motionDurationMid}`,borderRadius:S.borderRadiusSM,"&:hover":{background:S.controlItemBgHover},"&-disabled":{color:S.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[E]:{color:S.colorTextDisabled}},[`&-active:not(${C}-disabled)`]:{["&, &:hover"]:{fontWeight:S.optionSelectedFontWeight,backgroundColor:S.optionSelectedBg}},"&-content":{flex:"auto"},[E]:{marginInlineStart:S.paddingXXS,color:S.colorTextDescription,fontSize:S.fontSizeIcon},"&-keyword":{color:S.colorHighlight}})}}}]};const De=S=>{const{componentCls:G,antCls:J}=S;return[{[G]:{width:S.controlWidth}},{[`${G}-dropdown`]:[{[`&${J}-select-dropdown`]:{padding:0}},Pe(S)]},{[`${G}-dropdown-rtl`]:{direction:"rtl"}},(0,un.c)(S)]},ge=S=>{const G=Math.round((S.controlHeight-S.fontSize*S.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:S.controlItemBgActive,optionSelectedFontWeight:S.fontWeightStrong,optionPadding:`${G}px ${S.paddingSM}px`,menuPadding:S.paddingXXS}};var rt=(0,ve.I$)("Cascader",S=>[De(S)],ge);const Je=S=>{const{componentCls:G}=S;return{[`${G}-panel`]:[Pe(S),{display:"inline-flex",border:`${(0,Ge.bf)(S.lineWidth)} ${S.lineType} ${S.colorSplit}`,borderRadius:S.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${G}-menus`]:{alignItems:"stretch"},[`${G}-menu`]:{height:"auto"},"&-empty":{padding:S.paddingXXS}}]}};var Re=(0,ve.ZP)(["Cascader","Panel"],S=>Je(S),ge);function Ln(S){const{prefixCls:G,className:J,multiple:C,rootClassName:E,notFoundContent:F,direction:W,expandIcon:ne}=S,[te,le,V,Oe]=_t(G,W),Ie=(0,Ze.Z)(le),[at,dt]=rt(le,Ie);Re(le);const ht=V==="rtl",[Gt,en]=Ft(te,ht,ne),Ht=F||(Oe==null?void 0:Oe("Cascader"))||w.createElement(je.Z,{componentName:"Cascader"}),ct=Yt(le,C);return at(w.createElement(bt,Object.assign({},S,{checkable:ct,prefixCls:le,className:l()(J,dt,E,Ie),notFoundContent:Ht,direction:V,expandIcon:Gt,loadingIcon:en})))}var zn=function(S,G){var J={};for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&G.indexOf(C)<0&&(J[C]=S[C]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,C=Object.getOwnPropertySymbols(S);Ete===0?[ne]:[].concat((0,i.Z)(W),[G,ne]),[]),E=[];let F=0;return C.forEach((W,ne)=>{const te=F+W.length;let le=S.slice(F,te);F=te,ne%2===1&&(le=w.createElement("span",{className:`${J}-menu-item-keyword`,key:`separator-${ne}`},le)),E.push(le)}),E}const Gn=(S,G,J,C)=>{const E=[],F=S.toLowerCase();return G.forEach((W,ne)=>{ne!==0&&E.push(" / ");let te=W[C.label];const le=typeof te;(le==="string"||le==="number")&&(te=Wn(String(te),F,J)),E.push(te)}),E},br=w.forwardRef((S,G)=>{var J;const{prefixCls:C,size:E,disabled:F,className:W,rootClassName:ne,multiple:te,bordered:le=!0,transitionName:V,choiceTransitionName:Oe="",popupClassName:Ie,dropdownClassName:at,expandIcon:dt,placement:ht,showSearch:Gt,allowClear:en=!0,notFoundContent:Ht,direction:ct,getPopupContainer:Qt,status:kt,showArrow:Et,builtinPlacements:jt,style:Nt}=S,xt=zn(S,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),gn=(0,Kt.Z)(xt,["suffixIcon"]),{getPopupContainer:Bn,getPrefixCls:Vn,popupOverflow:Qn,cascader:hn}=w.useContext(Fe.E_),{status:qn,hasFeedback:kn,isFormItemInput:rr,feedbackIcon:Un}=w.useContext(j.aM),xn=(0,nt.F)(qn,kt),[Hn,ir,ur,An]=_t(C,ct),In=ur==="rtl",$n=Vn(),Ot=(0,Ze.Z)(Hn),[Nn,ln]=(0,Y.Z)(Hn,Ot),sn=(0,Ze.Z)(ir),[nn]=rt(ir,sn),{compactSize:Jt,compactItemClassnames:cn}=(0,vn.ri)(Hn,ct),O=Ht||(An==null?void 0:An("Cascader"))||w.createElement(je.Z,{componentName:"Cascader"}),D=l()(Ie||at,`${ir}-dropdown`,{[`${ir}-dropdown-rtl`]:ur==="rtl"},ne,Ot,sn,ln),oe=w.useMemo(()=>{if(!Gt)return Gt;let Ia={render:Gn};return typeof Gt=="object"&&(Ia=Object.assign(Object.assign({},Ia),Gt)),Ia},[Gt]),Pt=(0,$.Z)(Ia=>{var Na;return(Na=E!=null?E:Jt)!==null&&Na!==void 0?Na:Ia}),Tn=w.useContext(fe.Z),Yn=F!=null?F:Tn,[ar,er]=Ft(Hn,In,dt),dr=Yt(ir,te),Yr=(0,ft.Z)(S.suffixIcon,Et),{suffixIcon:ta,removeIcon:Er,clearIcon:Pa}=(0,ze.Z)(Object.assign(Object.assign({},S),{hasFeedback:kn,feedbackIcon:Un,showSuffixIcon:Yr,multiple:te,prefixCls:Hn,componentName:"Cascader"})),Jr=w.useMemo(()=>ht!==void 0?ht:In?"bottomRight":"bottomLeft",[ht,In]),ba=(0,Me.Z)(jt,Qn),Za=en===!0?{clearIcon:Pa}:en,[oa]=(0,$t.Cn)("SelectLike",(J=gn.dropdownStyle)===null||J===void 0?void 0:J.zIndex),wa=w.createElement(Ct,Object.assign({prefixCls:Hn,className:l()(!C&&ir,{[`${Hn}-lg`]:Pt==="large",[`${Hn}-sm`]:Pt==="small",[`${Hn}-rtl`]:In,[`${Hn}-borderless`]:!le,[`${Hn}-in-form-item`]:rr},(0,nt.Z)(Hn,xn,kn),cn,hn==null?void 0:hn.className,W,ne,Ot,sn,ln),disabled:Yn,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),Nt)},gn,{builtinPlacements:ba,direction:ur,placement:Jr,notFoundContent:O,allowClear:Za,showSearch:oe,expandIcon:ar,suffixIcon:ta,removeIcon:Er,loadingIcon:er,checkable:dr,dropdownClassName:D,dropdownPrefixCls:C||ir,dropdownStyle:Object.assign(Object.assign({},gn.dropdownStyle),{zIndex:oa}),choiceTransitionName:(0,Rt.m)($n,"",Oe),transitionName:(0,Rt.m)($n,"slide-up",V),getPopupContainer:Qt||Bn,ref:G}));return nn(Nn(wa))}),Ae=(0,lt.Z)(br);br.SHOW_PARENT=Mn,br.SHOW_CHILD=on,br.Panel=Ln,br._InternalPanelDoNotUseOrYouWillBeFired=Ae;var ue=br},97004:function(Zt,xe,a){"use strict";var i=a(70836);function w(){return(0,i.Z)()}xe.ZP={useBreakpoint:w}},71593:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return br}});var i=a(50959),w=a(96527),I=a(84875),l=a.n(I),k=a(38126),Z=a(33346),ae=a(73273),Q=a(32682),K=a(40727),ce=a(10570),pe=a(74253),x=a(65589),re=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Ye=i.createContext(null),z=0;function se(Ae,ue){var S=i.useState(function(){return z+=1,String(z)}),G=(0,Q.Z)(S,1),J=G[0],C=i.useContext(Ye),E={data:ue,canPreview:Ae};return i.useEffect(function(){if(C)return C.register(J,E)},[]),i.useEffect(function(){C&&C.register(J,E)},[Ae,ue]),J}function H(Ae){return new Promise(function(ue){var S=document.createElement("img");S.onerror=function(){return ue(!1)},S.onload=function(){return ue(!0)},S.src=Ae})}function it(Ae){var ue=Ae.src,S=Ae.isCustomPlaceholder,G=Ae.fallback,J=(0,i.useState)(S?"loading":"normal"),C=(0,Q.Z)(J,2),E=C[0],F=C[1],W=(0,i.useRef)(!1),ne=E==="error";(0,i.useEffect)(function(){var Oe=!0;return H(ue).then(function(Ie){!Ie&&Oe&&F("error")}),function(){Oe=!1}},[ue]),(0,i.useEffect)(function(){S&&!W.current?F("loading"):ne&&F("normal")},[ue]);var te=function(){F("normal")},le=function(Ie){W.current=!1,E==="loading"&&Ie!==null&&Ie!==void 0&&Ie.complete&&(Ie.naturalWidth||Ie.naturalHeight)&&(W.current=!0,te())},V=ne&&G?{src:G}:{onLoad:te,src:ue};return[le,V,E]}var At=a(43377),ke=a(52802),ut=a(57),B=a(18342),tr=a(28449),mn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function jn(Ae,ue,S,G){var J=(0,i.useRef)(null),C=(0,i.useRef)([]),E=(0,i.useState)(mn),F=(0,Q.Z)(E,2),W=F[0],ne=F[1],te=function(Ie){ne(mn),G&&!(0,B.Z)(mn,W)&&G({transform:mn,action:Ie})},le=function(Ie,at){J.current===null&&(C.current=[],J.current=(0,tr.Z)(function(){ne(function(dt){var ht=dt;return C.current.forEach(function(Gt){ht=(0,Z.Z)((0,Z.Z)({},ht),Gt)}),J.current=null,G==null||G({transform:ht,action:at}),ht})})),C.current.push((0,Z.Z)((0,Z.Z)({},W),Ie))},V=function(Ie,at,dt,ht,Gt){var en=Ae.current,Ht=en.width,ct=en.height,Qt=en.offsetWidth,kt=en.offsetHeight,Et=en.offsetLeft,jt=en.offsetTop,Nt=Ie,xt=W.scale*Ie;xt>S?(xt=S,Nt=S/W.scale):xtG){if(ue>0)return(0,ae.Z)({},Ae,C);if(ue<0&&JG)return(0,ae.Z)({},Ae,ue<0?C:-C);return{}}function be(Ae,ue,S,G){var J=(0,pe.g1)(),C=J.width,E=J.height,F=null;return Ae<=C&&ue<=E?F={x:0,y:0}:(Ae>C||ue>E)&&(F=(0,Z.Z)((0,Z.Z)({},qt("x",S,Ae,C)),qt("y",G,ue,E))),F}var Ue=1,Wt=1;function an(Ae,ue,S,G,J,C,E){var F=J.rotate,W=J.scale,ne=J.x,te=J.y,le=(0,i.useState)(!1),V=(0,Q.Z)(le,2),Oe=V[0],Ie=V[1],at=(0,i.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),dt=function(ct){!ue||ct.button!==0||(ct.preventDefault(),ct.stopPropagation(),at.current={diffX:ct.pageX-ne,diffY:ct.pageY-te,transformX:ne,transformY:te},Ie(!0))},ht=function(ct){S&&Oe&&C({x:ct.pageX-at.current.diffX,y:ct.pageY-at.current.diffY},"move")},Gt=function(){if(S&&Oe){Ie(!1);var ct=at.current,Qt=ct.transformX,kt=ct.transformY,Et=ne!==Qt&&te!==kt;if(!Et)return;var jt=Ae.current.offsetWidth*W,Nt=Ae.current.offsetHeight*W,xt=Ae.current.getBoundingClientRect(),gn=xt.left,Bn=xt.top,Vn=F%180!==0,Qn=be(Vn?Nt:jt,Vn?jt:Nt,gn,Bn);Qn&&C((0,Z.Z)({},Qn),"dragRebound")}},en=function(ct){if(!(!S||ct.deltaY==0)){var Qt=Math.abs(ct.deltaY/100),kt=Math.min(Qt,Wt),Et=Ue+kt*G;ct.deltaY>0&&(Et=Ue/Et),E(Et,"wheel",ct.clientX,ct.clientY)}};return(0,i.useEffect)(function(){var Ht,ct,Qt,kt;if(ue){Qt=(0,ke.Z)(window,"mouseup",Gt,!1),kt=(0,ke.Z)(window,"mousemove",ht,!1);try{window.top!==window.self&&(Ht=(0,ke.Z)(window.top,"mouseup",Gt,!1),ct=(0,ke.Z)(window.top,"mousemove",ht,!1))}catch(Et){(0,bn.Kp)(!1,"[rc-image] ".concat(Et))}}return function(){var Et,jt,Nt,xt;(Et=Qt)===null||Et===void 0||Et.remove(),(jt=kt)===null||jt===void 0||jt.remove(),(Nt=Ht)===null||Nt===void 0||Nt.remove(),(xt=ct)===null||xt===void 0||xt.remove()}},[S,Oe,ne,te,F,ue]),{isMoving:Oe,onMouseDown:dt,onMouseMove:ht,onMouseUp:Gt,onWheel:en}}function pt(Ae,ue){var S=Ae.x-ue.x,G=Ae.y-ue.y;return Math.hypot(S,G)}function tt(Ae,ue,S,G){var J=pt(Ae,S),C=pt(ue,G);if(J===0&&C===0)return[Ae.x,Ae.y];var E=J/(J+C),F=Ae.x+E*(ue.x-Ae.x),W=Ae.y+E*(ue.y-Ae.y);return[F,W]}function tn(Ae,ue,S,G,J,C,E){var F=J.rotate,W=J.scale,ne=J.x,te=J.y,le=(0,i.useState)(!1),V=(0,Q.Z)(le,2),Oe=V[0],Ie=V[1],at=(0,i.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),dt=function(ct){at.current=(0,Z.Z)((0,Z.Z)({},at.current),ct)},ht=function(ct){if(ue){ct.stopPropagation(),Ie(!0);var Qt=ct.touches,kt=Qt===void 0?[]:Qt;kt.length>1?dt({point1:{x:kt[0].clientX,y:kt[0].clientY},point2:{x:kt[1].clientX,y:kt[1].clientY},eventType:"touchZoom"}):dt({point1:{x:kt[0].clientX-ne,y:kt[0].clientY-te},eventType:"move"})}},Gt=function(ct){var Qt=ct.touches,kt=Qt===void 0?[]:Qt,Et=at.current,jt=Et.point1,Nt=Et.point2,xt=Et.eventType;if(kt.length>1&&xt==="touchZoom"){var gn={x:kt[0].clientX,y:kt[0].clientY},Bn={x:kt[1].clientX,y:kt[1].clientY},Vn=tt(jt,Nt,gn,Bn),Qn=(0,Q.Z)(Vn,2),hn=Qn[0],qn=Qn[1],kn=pt(gn,Bn)/pt(jt,Nt);E(kn,"touchZoom",hn,qn,!0),dt({point1:gn,point2:Bn,eventType:"touchZoom"})}else xt==="move"&&(C({x:kt[0].clientX-jt.x,y:kt[0].clientY-jt.y},"move"),dt({eventType:"move"}))},en=function(){if(S){if(Oe&&Ie(!1),dt({eventType:"none"}),G>W)return C({x:0,y:0,scale:G},"touchZoom");var ct=Ae.current.offsetWidth*W,Qt=Ae.current.offsetHeight*W,kt=Ae.current.getBoundingClientRect(),Et=kt.left,jt=kt.top,Nt=F%180!==0,xt=be(Nt?Qt:ct,Nt?ct:Qt,Et,jt);xt&&C((0,Z.Z)({},xt),"dragRebound")}};return(0,i.useEffect)(function(){var Ht;return S&&ue&&(Ht=(0,ke.Z)(window,"touchmove",function(ct){return ct.preventDefault()},{passive:!1})),function(){var ct;(ct=Ht)===null||ct===void 0||ct.remove()}},[S,ue]),{isTouching:Oe,onTouchStart:ht,onTouchMove:Gt,onTouchEnd:en}}var En=a(89337),Rn=a(10091),On=function(ue){var S=ue.visible,G=ue.maskTransitionName,J=ue.getContainer,C=ue.prefixCls,E=ue.rootClassName,F=ue.icons,W=ue.countRender,ne=ue.showSwitch,te=ue.showProgress,le=ue.current,V=ue.transform,Oe=ue.count,Ie=ue.scale,at=ue.minScale,dt=ue.maxScale,ht=ue.closeIcon,Gt=ue.onSwitchLeft,en=ue.onSwitchRight,Ht=ue.onClose,ct=ue.onZoomIn,Qt=ue.onZoomOut,kt=ue.onRotateRight,Et=ue.onRotateLeft,jt=ue.onFlipX,Nt=ue.onFlipY,xt=ue.toolbarRender,gn=ue.zIndex,Bn=(0,i.useContext)(Ye),Vn=F.rotateLeft,Qn=F.rotateRight,hn=F.zoomIn,qn=F.zoomOut,kn=F.close,rr=F.left,Un=F.right,xn=F.flipX,Hn=F.flipY,ir="".concat(C,"-operations-operation");i.useEffect(function(){var $n=function(Nn){Nn.keyCode===ut.Z.ESC&&Ht()};return S&&window.addEventListener("keydown",$n),function(){window.removeEventListener("keydown",$n)}},[S]);var ur=[{icon:Hn,onClick:Nt,type:"flipY"},{icon:xn,onClick:jt,type:"flipX"},{icon:Vn,onClick:Et,type:"rotateLeft"},{icon:Qn,onClick:kt,type:"rotateRight"},{icon:qn,onClick:Qt,type:"zoomOut",disabled:Ie<=at},{icon:hn,onClick:ct,type:"zoomIn",disabled:Ie===dt}],An=ur.map(function($n){var Ot,Nn=$n.icon,ln=$n.onClick,sn=$n.type,nn=$n.disabled;return i.createElement("div",{className:l()(ir,(Ot={},(0,ae.Z)(Ot,"".concat(C,"-operations-operation-").concat(sn),!0),(0,ae.Z)(Ot,"".concat(C,"-operations-operation-disabled"),!!nn),Ot)),onClick:ln,key:sn},Nn)}),In=i.createElement("div",{className:"".concat(C,"-operations")},An);return i.createElement(Rn.ZP,{visible:S,motionName:G},function($n){var Ot=$n.className,Nn=$n.style;return i.createElement(En.Z,{open:!0,getContainer:J!=null?J:document.body},i.createElement("div",{className:l()("".concat(C,"-operations-wrapper"),Ot,E),style:(0,Z.Z)((0,Z.Z)({},Nn),{},{zIndex:gn})},ht===null?null:i.createElement("button",{className:"".concat(C,"-close"),onClick:Ht},ht||kn),ne&&i.createElement(i.Fragment,null,i.createElement("div",{className:l()("".concat(C,"-switch-left"),(0,ae.Z)({},"".concat(C,"-switch-left-disabled"),le===0)),onClick:Gt},rr),i.createElement("div",{className:l()("".concat(C,"-switch-right"),(0,ae.Z)({},"".concat(C,"-switch-right-disabled"),le===Oe-1)),onClick:en},Un)),i.createElement("div",{className:"".concat(C,"-footer")},te&&i.createElement("div",{className:"".concat(C,"-progress")},W?W(le+1,Oe):"".concat(le+1," / ").concat(Oe)),xt?xt(In,(0,Z.Z)({icons:{flipYIcon:An[0],flipXIcon:An[1],rotateLeftIcon:An[2],rotateRightIcon:An[3],zoomOutIcon:An[4],zoomInIcon:An[5]},actions:{onFlipY:Nt,onFlipX:jt,onRotateLeft:Et,onRotateRight:kt,onZoomOut:Qt,onZoomIn:ct},transform:V},Bn?{current:le,total:Oe}:{})):In)))})},Te=On,fn=["fallback","src","imgRef"],T=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],A=function(ue){var S=ue.fallback,G=ue.src,J=ue.imgRef,C=(0,ce.Z)(ue,fn),E=it({src:G,fallback:S}),F=(0,Q.Z)(E,2),W=F[0],ne=F[1];return i.createElement("img",(0,k.Z)({ref:function(le){J.current=le,W(le)}},C,ne))},Le=function(ue){var S=ue.prefixCls,G=ue.src,J=ue.alt,C=ue.fallback,E=ue.movable,F=E===void 0?!0:E,W=ue.onClose,ne=ue.visible,te=ue.icons,le=te===void 0?{}:te,V=ue.rootClassName,Oe=ue.closeIcon,Ie=ue.getContainer,at=ue.current,dt=at===void 0?0:at,ht=ue.count,Gt=ht===void 0?1:ht,en=ue.countRender,Ht=ue.scaleStep,ct=Ht===void 0?.5:Ht,Qt=ue.minScale,kt=Qt===void 0?1:Qt,Et=ue.maxScale,jt=Et===void 0?50:Et,Nt=ue.transitionName,xt=Nt===void 0?"zoom":Nt,gn=ue.maskTransitionName,Bn=gn===void 0?"fade":gn,Vn=ue.imageRender,Qn=ue.imgCommonProps,hn=ue.toolbarRender,qn=ue.onTransform,kn=ue.onChange,rr=(0,ce.Z)(ue,T),Un=(0,i.useRef)(),xn=(0,i.useContext)(Ye),Hn=xn&&Gt>1,ir=xn&&Gt>=1,ur=(0,i.useState)(!0),An=(0,Q.Z)(ur,2),In=An[0],$n=An[1],Ot=jn(Un,kt,jt,qn),Nn=Ot.transform,ln=Ot.resetTransform,sn=Ot.updateTransform,nn=Ot.dispatchZoomChange,Jt=an(Un,F,ne,ct,Nn,sn,nn),cn=Jt.isMoving,O=Jt.onMouseDown,D=Jt.onWheel,oe=tn(Un,F,ne,kt,Nn,sn,nn),Pt=oe.isTouching,Tn=oe.onTouchStart,Yn=oe.onTouchMove,ar=oe.onTouchEnd,er=Nn.rotate,dr=Nn.scale,Yr=l()((0,ae.Z)({},"".concat(S,"-moving"),cn));(0,i.useEffect)(function(){In||$n(!0)},[In]);var ta=function(){ln("close")},Er=function(){nn(Ue+ct,"zoomIn")},Pa=function(){nn(Ue/(Ue+ct),"zoomOut")},Jr=function(){sn({rotate:er+90},"rotateRight")},ba=function(){sn({rotate:er-90},"rotateLeft")},Za=function(){sn({flipX:!Nn.flipX},"flipX")},oa=function(){sn({flipY:!Nn.flipY},"flipY")},wa=function(Cr){Cr==null||Cr.preventDefault(),Cr==null||Cr.stopPropagation(),dt>0&&($n(!1),ln("prev"),kn==null||kn(dt-1,dt))},Ia=function(Cr){Cr==null||Cr.preventDefault(),Cr==null||Cr.stopPropagation(),dt({position:Ae||"absolute",inset:0}),et=Ae=>{const{iconCls:ue,motionDurationSlow:S,paddingXXS:G,marginXXS:J,prefixCls:C,colorTextLightSolid:E}=Ae;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:E,background:new Tt.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${S}`,[`.${C}-mask-info`]:Object.assign(Object.assign({},dn.vS),{padding:`0 ${(0,Yt.bf)(G)}`,[ue]:{marginInlineEnd:J,svg:{verticalAlign:"baseline"}}})}},N=Ae=>{const{previewCls:ue,modalMaskBg:S,paddingSM:G,marginXL:J,margin:C,paddingLG:E,previewOperationColorDisabled:F,previewOperationHoverColor:W,motionDurationSlow:ne,iconCls:te,colorTextLightSolid:le}=Ae,V=new Tt.C(S).setAlpha(.1),Oe=V.clone().setAlpha(.2);return{[`${ue}-footer`]:{position:"fixed",bottom:J,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ae.previewOperationColor},[`${ue}-progress`]:{marginBottom:C},[`${ue}-close`]:{position:"fixed",top:J,right:{_skip_check_:!0,value:J},display:"flex",color:le,backgroundColor:V.toRgbString(),borderRadius:"50%",padding:G,outline:0,border:0,cursor:"pointer",transition:`all ${ne}`,"&:hover":{backgroundColor:Oe.toRgbString()},[`& > ${te}`]:{fontSize:Ae.previewOperationSize}},[`${ue}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Yt.bf)(E)}`,backgroundColor:V.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:G,padding:G,cursor:"pointer",transition:`all ${ne}`,userSelect:"none",[`&:not(${ue}-operations-operation-disabled):hover > ${te}`]:{color:W},"&-disabled":{color:F,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${te}`]:{fontSize:Ae.previewOperationSize}}}}},Pe=Ae=>{const{modalMaskBg:ue,iconCls:S,previewOperationColorDisabled:G,previewCls:J,zIndexPopup:C,motionDurationSlow:E}=Ae,F=new Tt.C(ue).setAlpha(.1),W=F.clone().setAlpha(.2);return{[`${J}-switch-left, ${J}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ae.calc(C).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:Ae.imagePreviewSwitchSize,height:Ae.imagePreviewSwitchSize,marginTop:Ae.calc(Ae.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Ae.previewOperationColor,background:F.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${E}`,userSelect:"none","&:hover":{background:W.toRgbString()},["&-disabled"]:{"&, &:hover":{color:G,background:"transparent",cursor:"not-allowed",[`> ${S}`]:{cursor:"not-allowed"}}},[`> ${S}`]:{fontSize:Ae.previewOperationSize}},[`${J}-switch-left`]:{insetInlineStart:Ae.marginSM},[`${J}-switch-right`]:{insetInlineEnd:Ae.marginSM}}},De=Ae=>{const{motionEaseOut:ue,previewCls:S,motionDurationSlow:G,componentCls:J}=Ae;return[{[`${J}-preview-root`]:{[S]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${S}-body`]:Object.assign(Object.assign({},vt()),{overflow:"hidden"}),[`${S}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${G} ${ue} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},vt()),{transition:`transform ${G} ${ue} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${S}-moving`]:{[`${S}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${J}-preview-root`]:{[`${S}-wrap`]:{zIndex:Ae.zIndexPopup}}},{[`${J}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ae.calc(Ae.zIndexPopup).add(1).equal({unit:!1})},"&":[N(Ae),Pe(Ae)]}]},ge=Ae=>{const{componentCls:ue}=Ae;return{[ue]:{position:"relative",display:"inline-block",[`${ue}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ue}-img-placeholder`]:{backgroundColor:Ae.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ue}-mask`]:Object.assign({},et(Ae)),[`${ue}-mask:hover`]:{opacity:1},[`${ue}-placeholder`]:Object.assign({},vt())}}},rt=Ae=>{const{previewCls:ue}=Ae;return{[`${ue}-root`]:(0,Ft._y)(Ae,"zoom"),["&"]:(0,un.J$)(Ae,!0)}},Je=Ae=>({zIndexPopup:Ae.zIndexPopupBase+80,previewOperationColor:new Tt.C(Ae.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Tt.C(Ae.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Tt.C(Ae.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ae.fontSizeIcon*1.5});var Re=(0,ve.I$)("Image",Ae=>{const ue=`${Ae.componentCls}-preview`,S=(0,Ge.TS)(Ae,{previewCls:ue,modalMaskBg:new Tt.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ae.controlHeightLG});return[ge(S),De(S),(0,Ut.QA)((0,Ge.TS)(S,{componentCls:ue})),rt(S)]},Je),Ln=function(Ae,ue){var S={};for(var G in Ae)Object.prototype.hasOwnProperty.call(Ae,G)&&ue.indexOf(G)<0&&(S[G]=Ae[G]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,G=Object.getOwnPropertySymbols(Ae);J{var{previewPrefixCls:ue,preview:S}=Ae,G=Ln(Ae,["previewPrefixCls","preview"]);const{getPrefixCls:J}=i.useContext(Qe.E_),C=J("image",ue),E=`${C}-preview`,F=J(),W=(0,_t.Z)(C),[ne,te]=Re(C,W),[le]=(0,Ve.Cn)("ImagePreview",typeof S=="object"?S.zIndex:void 0),V=i.useMemo(()=>{var Oe;if(S===!1)return S;const Ie=typeof S=="object"?S:{},at=l()(te,W,(Oe=Ie.rootClassName)!==null&&Oe!==void 0?Oe:"");return Object.assign(Object.assign({},Ie),{transitionName:(0,Be.m)(F,"zoom",Ie.transitionName),maskTransitionName:(0,Be.m)(F,"fade",Ie.maskTransitionName),rootClassName:at,zIndex:le})},[S]);return ne(i.createElement(Ee.PreviewGroup,Object.assign({preview:V,previewPrefixCls:E,icons:zn},G)))},Wn=function(Ae,ue){var S={};for(var G in Ae)Object.prototype.hasOwnProperty.call(Ae,G)&&ue.indexOf(G)<0&&(S[G]=Ae[G]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,G=Object.getOwnPropertySymbols(Ae);J{const{prefixCls:ue,preview:S,className:G,rootClassName:J,style:C}=Ae,E=Wn(Ae,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:F,locale:W=St.Z,getPopupContainer:ne,image:te}=i.useContext(Qe.E_),le=F("image",ue),V=F(),Oe=W.Image||St.Z.Image,Ie=(0,_t.Z)(le),[at,dt]=Re(le,Ie),ht=l()(J,dt,Ie),Gt=l()(G,dt,te==null?void 0:te.className),[en]=(0,Ve.Cn)("ImagePreview",typeof S=="object"?S.zIndex:void 0),Ht=i.useMemo(()=>{if(S===!1)return S;const Qt=typeof S=="object"?S:{},{getContainer:kt}=Qt,Et=Wn(Qt,["getContainer"]);return Object.assign(Object.assign({mask:i.createElement("div",{className:`${le}-mask-info`},i.createElement(w.Z,null),Oe==null?void 0:Oe.preview),icons:zn},Et),{getContainer:kt||ne,transitionName:(0,Be.m)(V,"zoom",Qt.transitionName),maskTransitionName:(0,Be.m)(V,"fade",Qt.maskTransitionName),zIndex:en})},[S,Oe]),ct=Object.assign(Object.assign({},te==null?void 0:te.style),C);return at(i.createElement(Ee,Object.assign({prefixCls:le,preview:Ht,rootClassName:ht,className:Gt,style:ct},E)))};Gn.PreviewGroup=Mn;var br=Gn},15078:function(Zt,xe,a){"use strict";a.r(xe),a.d(xe,{Affix:function(){return i.Z},Alert:function(){return w.Z},Anchor:function(){return an},App:function(){return We},AutoComplete:function(){return Ve},Avatar:function(){return Be.C},BackTop:function(){return st},Badge:function(){return Ct.Z},Breadcrumb:function(){return Kt.Z},Button:function(){return $t.ZP},Calendar:function(){return Ge},Card:function(){return vt.Z},Carousel:function(){return ar},Cascader:function(){return er.Z},Checkbox:function(){return dr.Z},Col:function(){return Yr.Z},Collapse:function(){return Ka},ColorPicker:function(){return us},ConfigProvider:function(){return ds.ZP},DatePicker:function(){return fs.default},Descriptions:function(){return Gi.Z},Divider:function(){return Ei.Z},Drawer:function(){return vs.Z},Dropdown:function(){return Qi.Z},Empty:function(){return ms.Z},Flex:function(){return Es},FloatButton:function(){return Vs},Form:function(){return ks.Z},Grid:function(){return Us.ZP},Image:function(){return Ks.Z},Input:function(){return io.Z},InputNumber:function(){return Bi.Z},Layout:function(){return Ys.Z},List:function(){return Xs.Z},Mentions:function(){return jr},Menu:function(){return Zr.Z},Modal:function(){return Ea.Z},Pagination:function(){return ja.Z},Popconfirm:function(){return ho.Z},Popover:function(){return qo.Z},Progress:function(){return ko.Z},QRCode:function(){return eu},Radio:function(){return tu.ZP},Rate:function(){return nu.Z},Result:function(){return ru.ZP},Row:function(){return au.Z},Segmented:function(){return ou.Z},Select:function(){return Vt.default},Skeleton:function(){return iu.Z},Slider:function(){return lu.Z},Space:function(){return su.Z},Spin:function(){return _n.Z},Statistic:function(){return cu.Z},Steps:function(){return uu.Z},Switch:function(){return du.Z},Table:function(){return fu.Z},Tabs:function(){return vu.Z},Tag:function(){return mu.Z},TimePicker:function(){return gu.Z},Timeline:function(){return Zu},Tooltip:function(){return al.Z},Tour:function(){return td},Transfer:function(){return Zd},Tree:function(){return Id.Z},TreeSelect:function(){return $d.Z},Typography:function(){return Rd.Z},Upload:function(){return Md.Z},Watermark:function(){return Kd},message:function(){return ia.ZP},notification:function(){return Ba.Z},theme:function(){return hu.Z},version:function(){return Nd.Z}});var i=a(58359),w=a(38727),I=a(1788),l=a(50959),k=a(84875),Z=a.n(k),ae=a(96771),Q=a(10886),K=a(59005),ce=a(68617),pe=a(31594),x=a(10254),Ye=l.createContext(void 0),se=t=>{const{href:e,title:o,prefixCls:s,children:r,className:m,target:f,replace:g}=t,v=l.useContext(Ye),{registerLink:h,unregisterLink:p,scrollTo:b,onClick:R,activeLink:X,direction:L}=v||{};l.useEffect(()=>(h==null||h(e),()=>{p==null||p(e)}),[e]);const U=Ke=>{g&&(Ke.preventDefault(),window.location.replace(e)),R==null||R(Ke,{title:o,href:e}),b==null||b(e)},{getPrefixCls:ee}=l.useContext(pe.E_),Se=ee("anchor",s),we=X===e,Ce=Z()(`${Se}-link`,m,{[`${Se}-link-active`]:we}),Ne=Z()(`${Se}-link-title`,{[`${Se}-link-title-active`]:we});return l.createElement("div",{className:Ce},l.createElement("a",{className:Ne,href:e,title:typeof o=="string"?o:"",target:f,onClick:U},o),L!=="horizontal"?r:null)},H=a(60076),it=a(6301),At=a(81501),ke=a(90467);const ut=t=>{const{componentCls:e,holderOffsetBlock:o,motionDurationSlow:s,lineWidthBold:r,colorPrimary:m,lineType:f,colorSplit:g,calc:v}=t;return{[`${e}-wrapper`]:{marginBlockStart:v(o).mul(-1).equal(),paddingBlockStart:o,[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{position:"relative",paddingInlineStart:r,[`${e}-link`]:{paddingBlock:t.linkPaddingBlock,paddingInline:`${(0,H.bf)(t.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},it.vS),{position:"relative",display:"block",marginBlockEnd:t.anchorTitleBlock,color:t.colorText,transition:`all ${t.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${e}-link-title`]:{color:t.colorPrimary},[`${e}-link`]:{paddingBlock:t.anchorPaddingBlockSecondary}}}),[`&:not(${e}-wrapper-horizontal)`]:{[e]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${(0,H.bf)(r)} ${f} ${g}`,content:'" "'},[`${e}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${s} ease-in-out`,width:r,backgroundColor:m,[`&${e}-ink-visible`]:{display:"inline-block"}}}},[`${e}-fixed ${e}-ink ${e}-ink`]:{display:"none"}}}},B=t=>{const{componentCls:e,motionDurationSlow:o,lineWidthBold:s,colorPrimary:r}=t;return{[`${e}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,content:'" "'},[e]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${e}-link:first-of-type`]:{paddingInline:0},[`${e}-ink`]:{position:"absolute",bottom:0,transition:`left ${o} ease-in-out, width ${o} ease-in-out`,height:s,backgroundColor:r}}}}},tr=t=>({linkPaddingBlock:t.paddingXXS,linkPaddingInlineStart:t.padding});var mn=(0,At.I$)("Anchor",t=>{const{fontSize:e,fontSizeLG:o,paddingXXS:s,calc:r}=t,m=(0,ke.TS)(t,{holderOffsetBlock:s,anchorPaddingBlockSecondary:r(s).div(2).equal(),anchorTitleBlock:r(e).div(14).mul(3).equal(),anchorBallSize:r(o).div(2).equal()});return[ut(m),B(m)]},tr);function jn(){return window}function bn(t,e){if(!t.getClientRects().length)return 0;const o=t.getBoundingClientRect();return o.width||o.height?e===window?(e=t.ownerDocument.documentElement,o.top-e.clientTop):o.top-e.getBoundingClientRect().top:o.top}const qt=/#([\S ]+)$/;var Ue=t=>{var e;const{rootClassName:o,prefixCls:s,className:r,style:m,offsetTop:f,affix:g=!0,showInkInFixed:v=!1,children:h,items:p,direction:b="vertical",bounds:R,targetOffset:X,onClick:L,onChange:U,getContainer:ee,getCurrentAnchor:Se,replace:we}=t,[Ce,Ne]=l.useState([]),[Ke,wt]=l.useState(null),gt=l.useRef(Ke),Bt=l.useRef(null),zt=l.useRef(null),Sn=l.useRef(!1),{direction:gr,anchor:Dn,getTargetContainer:pr,getPrefixCls:lr}=l.useContext(pe.E_),or=lr("anchor",s),Ir=(0,x.Z)(or),[$r,Sr]=mn(or,Ir),kr=(e=ee!=null?ee:pr)!==null&&e!==void 0?e:jn,Rr=JSON.stringify(Ce),Vr=(0,ae.zX)(Pr=>{Ce.includes(Pr)||Ne(Zn=>[].concat((0,I.Z)(Zn),[Pr]))}),Dr=(0,ae.zX)(Pr=>{Ce.includes(Pr)&&Ne(Zn=>Zn.filter(sr=>sr!==Pr))}),ma=()=>{var Pr;const Zn=(Pr=Bt.current)===null||Pr===void 0?void 0:Pr.querySelector(`.${or}-link-title-active`);if(Zn&&zt.current){const{style:sr}=zt.current,cr=b==="horizontal";sr.top=cr?"":`${Zn.offsetTop+Zn.clientHeight/2}px`,sr.height=cr?"":`${Zn.clientHeight}px`,sr.left=cr?`${Zn.offsetLeft}px`:"",sr.width=cr?`${Zn.clientWidth}px`:"",cr&&(0,Q.Z)(Zn,{scrollMode:"if-needed",block:"nearest"})}},Wr=function(Pr){let Zn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const cr=[],ca=kr();return Pr.forEach(xa=>{const Sa=qt.exec(xa==null?void 0:xa.toString());if(!Sa)return;const Va=document.getElementById(Sa[1]);if(Va){const eo=bn(Va,ca);eoVa.top>Sa.top?Va:Sa).link:""},ra=(0,ae.zX)(Pr=>{if(gt.current===Pr)return;const Zn=typeof Se=="function"?Se(Pr):Pr;wt(Zn),gt.current=Zn,U==null||U(Pr)}),ga=l.useCallback(()=>{if(Sn.current)return;const Pr=Wr(Ce,X!==void 0?X:f||0,R);ra(Pr)},[Rr,X,f]),va=l.useCallback(Pr=>{ra(Pr);const Zn=qt.exec(Pr);if(!Zn)return;const sr=document.getElementById(Zn[1]);if(!sr)return;const cr=kr(),ca=(0,K.Z)(cr,!0),xa=bn(sr,cr);let Sa=ca+xa;Sa-=X!==void 0?X:f||0,Sn.current=!0,(0,ce.Z)(Sa,{getContainer:kr,callback(){Sn.current=!1}})},[X,f]),la=Z()(Sr,Ir,o,`${or}-wrapper`,{[`${or}-wrapper-horizontal`]:b==="horizontal",[`${or}-rtl`]:gr==="rtl"},r,Dn==null?void 0:Dn.className),$a=Z()(or,{[`${or}-fixed`]:!g&&!v}),Ca=Z()(`${or}-ink`,{[`${or}-ink-visible`]:Ke}),pa=Object.assign(Object.assign({maxHeight:f?`calc(100vh - ${f}px)`:"100vh"},Dn==null?void 0:Dn.style),m),Br=Pr=>Array.isArray(Pr)?Pr.map(Zn=>l.createElement(se,Object.assign({replace:we},Zn,{key:Zn.key}),b==="vertical"&&Br(Zn.children))):null,Fn=l.createElement("div",{ref:Bt,className:la,style:pa},l.createElement("div",{className:$a},l.createElement("span",{className:Ca,ref:zt}),"items"in t?Br(p):h));l.useEffect(()=>{const Pr=kr();return ga(),Pr==null||Pr.addEventListener("scroll",ga),()=>{Pr==null||Pr.removeEventListener("scroll",ga)}},[Rr]),l.useEffect(()=>{typeof Se=="function"&&ra(Se(gt.current||""))},[Se]),l.useEffect(()=>{ma()},[b,Se,Rr,Ke]);const mr=l.useMemo(()=>({registerLink:Vr,unregisterLink:Dr,scrollTo:va,activeLink:Ke,onClick:L,direction:b}),[Ke,L,va,b]);return $r(l.createElement(Ye.Provider,{value:mr},g?l.createElement(i.Z,{offsetTop:f,target:kr},Fn):Fn))};const Wt=Ue;Wt.Link=se;var an=Wt,pt=a(44655),tt=a(36864),tn=a(7707);const En=l.createContext({});var On=l.createContext({message:{},notification:{},modal:{}});const Te=t=>{const{componentCls:e,colorText:o,fontSize:s,lineHeight:r,fontFamily:m}=t;return{[e]:{color:o,fontSize:s,lineHeight:r,fontFamily:m}}},fn=()=>({});var T=(0,At.I$)("App",Te,fn);const A=()=>l.useContext(On),Le=t=>{const{prefixCls:e,children:o,className:s,rootClassName:r,message:m,notification:f,style:g,component:v="div"}=t,{getPrefixCls:h}=(0,l.useContext)(pe.E_),p=h("app",e),[b,R]=T(p),X=Z()(R,p,s,r),L=(0,l.useContext)(En),U=l.useMemo(()=>({message:Object.assign(Object.assign({},L.message),m),notification:Object.assign(Object.assign({},L.notification),f)}),[m,f,L.message,L.notification]),[ee,Se]=(0,pt.Z)(U.message),[we,Ce]=(0,tn.Z)(U.notification),[Ne,Ke]=(0,tt.Z)(),wt=l.useMemo(()=>({message:ee,notification:we,modal:Ne}),[ee,we,Ne]),gt=v===!1?l.Fragment:v,Bt={className:X,style:g};return b(l.createElement(On.Provider,{value:wt},l.createElement(En.Provider,{value:U},l.createElement(gt,Object.assign({},v===!1?void 0:Bt),Ke,Se,Ce,o))))};Le.useApp=A;var We=Le,qe=a(13763),yt=a(87017),me=a(97960),It=a(94914),Vt=a(32413),mt=a(22365);const{Option:Dt}=Vt.default;function Mt(t){return t&&t.type&&(t.type.isSelectOption||t.type.isSelectOptGroup)}const Lt=(t,e)=>{var o;const{prefixCls:s,className:r,popupClassName:m,dropdownClassName:f,children:g,dataSource:v}=t,h=(0,qe.Z)(g);let p;h.length===1&&(0,It.l$)(h[0])&&!Mt(h[0])&&([p]=h);const b=p?()=>p:void 0;let R;h.length&&Mt(h[0])?R=g:R=v?v.map(ee=>{if((0,It.l$)(ee))return ee;switch(typeof ee){case"string":return l.createElement(Dt,{key:ee,value:ee},ee);case"object":{const{value:Se}=ee;return l.createElement(Dt,{key:Se,value:Se},ee.text)}default:return}}):[];const{getPrefixCls:X}=l.useContext(pe.E_),L=X("select",s),[U]=(0,mt.Cn)("SelectLike",(o=t.dropdownStyle)===null||o===void 0?void 0:o.zIndex);return l.createElement(Vt.default,Object.assign({ref:e,suffixIcon:null},(0,yt.Z)(t,["dataSource","dropdownClassName"]),{prefixCls:L,popupClassName:m||f,dropdownStyle:Object.assign(Object.assign({},t.dropdownStyle),{zIndex:U}),className:Z()(`${L}-auto-complete`,r),mode:Vt.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:b}),R)},Pn=l.forwardRef(Lt),Ee=(0,me.Z)(Pn);Pn.Option=Dt,Pn._InternalPanelDoNotUseOrYouWillBeFired=Ee;var Ve=Pn,Be=a(21757),Qe=a(32702),St=a(10091),bt=a(78304);const P=t=>{const{componentCls:e,backTopFontSize:o,backTopSize:s,zIndexPopup:r}=t;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{position:"fixed",insetInlineEnd:t.backTopInlineEnd,insetBlockEnd:t.backTopBlockEnd,zIndex:r,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${e}-content`]:{width:s,height:s,overflow:"hidden",color:t.backTopColor,textAlign:"center",backgroundColor:t.backTopBackground,borderRadius:s,transition:`all ${t.motionDurationMid}`,"&:hover":{backgroundColor:t.backTopHoverBackground,transition:`all ${t.motionDurationMid}`}},[`${e}-icon`]:{fontSize:o,lineHeight:(0,H.bf)(s)}})}},de=t=>{const{componentCls:e,screenMD:o,screenXS:s,backTopInlineEndMD:r,backTopInlineEndXS:m}=t;return{[`@media (max-width: ${(0,H.bf)(o)})`]:{[e]:{insetInlineEnd:r}},[`@media (max-width: ${(0,H.bf)(s)})`]:{[e]:{insetInlineEnd:m}}}},ye=t=>({zIndexPopup:t.zIndexBase+10});var He=(0,At.I$)("BackTop",t=>{const{fontSizeHeading3:e,colorTextDescription:o,colorTextLightSolid:s,colorText:r,controlHeightLG:m,calc:f}=t,g=(0,ke.TS)(t,{backTopBackground:o,backTopColor:s,backTopHoverBackground:r,backTopFontSize:e,backTopSize:m,backTopBlockEnd:f(m).mul(1.25).equal(),backTopInlineEnd:f(m).mul(2.5).equal(),backTopInlineEndMD:f(m).mul(1.5).equal(),backTopInlineEndXS:f(m).mul(.5).equal()});return[P(g),de(g)]},ye),st=t=>{const{prefixCls:e,className:o,rootClassName:s,visibilityHeight:r=400,target:m,onClick:f,duration:g=450}=t,[v,h]=l.useState(r===0),p=l.useRef(null),b=()=>p.current&&p.current.ownerDocument?p.current.ownerDocument:window,R=(0,bt.Z)(gt=>{const Bt=(0,K.Z)(gt.target,!0);h(Bt>=r)});l.useEffect(()=>{const Bt=(m||b)();return R({target:Bt}),Bt==null||Bt.addEventListener("scroll",R),()=>{R.cancel(),Bt==null||Bt.removeEventListener("scroll",R)}},[m]);const X=gt=>{(0,ce.Z)(0,{getContainer:m||b,duration:g}),f==null||f(gt)},{getPrefixCls:L,direction:U}=l.useContext(pe.E_),ee=L("back-top",e),Se=L(),[we,Ce]=He(ee),Ne=Z()(Ce,ee,{[`${ee}-rtl`]:U==="rtl"},o,s),Ke=(0,yt.Z)(t,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),wt=l.createElement("div",{className:`${ee}-content`},l.createElement("div",{className:`${ee}-icon`},l.createElement(Qe.Z,null)));return we(l.createElement("div",Object.assign({},Ke,{className:Ne,onClick:X,ref:p}),l.createElement(St.ZP,{visible:v,motionName:`${Se}-fade`},gt=>{let{className:Bt}=gt;return(0,It.Tm)(t.children||wt,zt=>{let{className:Sn}=zt;return{className:Z()(Bt,Sn)}})})))},Ct=a(71656),Kt=a(683),$t=a(47100),Rt=a(39237),lt=a(31959),nt=a(65589),Fe=a(45449),je=a(1415),fe=a(16803),Ze=a(40896);const $=10,j=20;function Y(t){const{fullscreen:e,validRange:o,generateConfig:s,locale:r,prefixCls:m,value:f,onChange:g,divRef:v}=t,h=s.getYear(f||s.getNow());let p=h-$,b=p+j;o&&(p=s.getYear(o[0]),b=s.getYear(o[1])+1);const R=r&&r.year==="\u5E74"?"\u5E74":"",X=[];for(let L=p;L{let U=s.setYear(f,L);if(o){const[ee,Se]=o,we=s.getYear(U),Ce=s.getMonth(U);we===s.getYear(Se)&&Ce>s.getMonth(Se)&&(U=s.setMonth(U,s.getMonth(Se))),we===s.getYear(ee)&&Cev.current})}function Me(t){const{prefixCls:e,fullscreen:o,validRange:s,value:r,generateConfig:m,locale:f,onChange:g,divRef:v}=t,h=m.getMonth(r||m.getNow());let p=0,b=11;if(s){const[L,U]=s,ee=m.getYear(r);m.getYear(U)===ee&&(b=m.getMonth(U)),m.getYear(L)===ee&&(p=m.getMonth(L))}const R=f.shortMonths||m.locale.getShortMonths(f.locale),X=[];for(let L=p;L<=b;L+=1)X.push({label:R[L],value:L});return l.createElement(Vt.default,{size:o?void 0:"small",className:`${e}-month-select`,value:h,options:X,onChange:L=>{g(m.setMonth(r,L))},getPopupContainer:()=>v.current})}function ze(t){const{prefixCls:e,locale:o,mode:s,fullscreen:r,onModeChange:m}=t;return l.createElement(fe.Z,{onChange:f=>{let{target:{value:g}}=f;m(g)},value:s,size:r?void 0:"small",className:`${e}-mode-switch`},l.createElement(Ze.Z,{value:"month"},o.month),l.createElement(Ze.Z,{value:"year"},o.year))}function ft(t){const{prefixCls:e,fullscreen:o,mode:s,onChange:r,onModeChange:m}=t,f=l.useRef(null),g=(0,l.useContext)(je.aM),v=(0,l.useMemo)(()=>Object.assign(Object.assign({},g),{isFormItemInput:!1}),[g]),h=Object.assign(Object.assign({},t),{fullscreen:o,divRef:f});return l.createElement("div",{className:`${e}-header`,ref:f},l.createElement(je.aM.Provider,{value:v},l.createElement(Y,Object.assign({},h,{onChange:p=>{r(p,"year")}})),s==="month"&&l.createElement(Me,Object.assign({},h,{onChange:p=>{r(p,"month")}}))),l.createElement(ze,Object.assign({},h,{onModeChange:m})))}var vn=ft,_t=a(58533),Yt=a(29176);const Tt=t=>{const{calendarCls:e,componentCls:o,fullBg:s,fullPanelBg:r,itemActiveBg:m}=t;return{[e]:Object.assign(Object.assign(Object.assign({},(0,Yt.kX)(t)),(0,it.Wf)(t)),{background:s,"&-rtl":{direction:"rtl"},[`${e}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${(0,H.bf)(t.paddingSM)} 0`,[`${e}-year-select`]:{minWidth:t.yearControlWidth},[`${e}-month-select`]:{minWidth:t.monthControlWidth,marginInlineStart:t.marginXS},[`${e}-mode-switch`]:{marginInlineStart:t.marginXS}}}),[`${e} ${o}-panel`]:{background:r,border:0,borderTop:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,borderRadius:0,[`${o}-month-panel, ${o}-date-panel`]:{width:"auto"},[`${o}-body`]:{padding:`${(0,H.bf)(t.paddingXS)} 0`},[`${o}-content`]:{width:"100%"}},[`${e}-mini`]:{borderRadius:t.borderRadiusLG,[`${e}-header`]:{paddingInlineEnd:t.paddingXS,paddingInlineStart:t.paddingXS},[`${o}-panel`]:{borderRadius:`0 0 ${(0,H.bf)(t.borderRadiusLG)} ${(0,H.bf)(t.borderRadiusLG)}`},[`${o}-content`]:{height:t.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${(0,H.bf)(t.weekHeight)}`}},[`${o}-cell::before`]:{pointerEvents:"none"}},[`${e}${e}-full`]:{[`${o}-panel`]:{display:"block",width:"100%",textAlign:"end",background:s,border:0,[`${o}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:t.paddingSM,paddingBottom:t.paddingXXS,lineHeight:`${(0,H.bf)(t.weekHeight)}`}}},[`${o}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${e}-date`]:{background:t.controlItemBgHover}},[`${e}-date-today::before`]:{display:"none"},[`&-in-view${o}-cell-selected`]:{[`${e}-date, ${e}-date-today`]:{background:m}},"&-selected, &-selected:hover":{[`${e}-date, ${e}-date-today`]:{[`${e}-date-value`]:{color:t.colorPrimary}}}},[`${e}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${(0,H.bf)(t.calc(t.marginXS).div(2).equal())}`,padding:`${(0,H.bf)(t.calc(t.paddingXS).div(2).equal())} ${(0,H.bf)(t.paddingXS)} 0`,border:0,borderTop:`${(0,H.bf)(t.lineWidthBold)} ${t.lineType} ${t.colorSplit}`,borderRadius:0,transition:`background ${t.motionDurationSlow}`,"&-value":{lineHeight:`${(0,H.bf)(t.dateValueHeight)}`,transition:`color ${t.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:t.dateContentHeight,overflowY:"auto",color:t.colorText,lineHeight:t.lineHeight,textAlign:"start"},"&-today":{borderColor:t.colorPrimary,[`${e}-date-value`]:{color:t.colorText}}}},[`@media only screen and (max-width: ${(0,H.bf)(t.screenXS)}) `]:{[`${e}`]:{[`${e}-header`]:{display:"block",[`${e}-year-select`]:{width:"50%"},[`${e}-month-select`]:{width:`calc(50% - ${(0,H.bf)(t.paddingXS)})`},[`${e}-mode-switch`]:{width:"100%",marginTop:t.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},Ut=t=>Object.assign({fullBg:t.colorBgContainer,fullPanelBg:t.colorBgContainer,itemActiveBg:t.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},(0,Yt.GM)(t));var dn=(0,At.I$)("Calendar",t=>{const e=`${t.componentCls}-calendar`,o=(0,ke.TS)(t,(0,Yt.vA)(t),{calendarCls:e,pickerCellInnerCls:`${t.componentCls}-cell-inner`,dateValueHeight:t.controlHeightSM,weekHeight:t.calc(t.controlHeightSM).mul(.75).equal(),dateContentHeight:t.calc(t.calc(t.fontHeightSM).add(t.marginXS)).mul(3).add(t.calc(t.lineWidth).mul(2)).equal()});return[Tt(o)]},Ut);function Ft(t){function e(m,f){return m&&f&&t.getYear(m)===t.getYear(f)}function o(m,f){return e(m,f)&&t.getMonth(m)===t.getMonth(f)}function s(m,f){return o(m,f)&&t.getDate(m)===t.getDate(f)}return m=>{const{prefixCls:f,className:g,rootClassName:v,style:h,dateFullCellRender:p,dateCellRender:b,monthFullCellRender:R,monthCellRender:X,cellRender:L,fullCellRender:U,headerRender:ee,value:Se,defaultValue:we,disabledDate:Ce,mode:Ne,validRange:Ke,fullscreen:wt=!0,onChange:gt,onPanelChange:Bt,onSelect:zt}=m,{getPrefixCls:Sn,direction:gr,calendar:Dn}=l.useContext(pe.E_),pr=Sn("picker",f),lr=`${pr}-calendar`,[or,Ir]=dn(pr,lr),$r=t.getNow(),[Sr,kr]=(0,nt.Z)(()=>Se||t.getNow(),{defaultValue:we,value:Se}),[Rr,Vr]=(0,nt.Z)("month",{value:Ne}),Dr=l.useMemo(()=>Rr==="year"?"month":"date",[Rr]),ma=l.useCallback(Fn=>(Ke?t.isAfter(Ke[0],Fn)||t.isAfter(Fn,Ke[1]):!1)||!!(Ce!=null&&Ce(Fn)),[Ce,Ke]),Wr=(Fn,mr)=>{Bt==null||Bt(Fn,mr)},ra=Fn=>{kr(Fn),s(Fn,Sr)||((Dr==="date"&&!o(Fn,Sr)||Dr==="month"&&!e(Fn,Sr))&&Wr(Fn,Rr),gt==null||gt(Fn))},ga=Fn=>{Vr(Fn),Wr(Sr,Fn)},va=(Fn,mr)=>{ra(Fn),zt==null||zt(Fn,{source:mr})},la=()=>{const{locale:Fn}=m,mr=Object.assign(Object.assign({},_t.Z),Fn);return mr.lang=Object.assign(Object.assign({},mr.lang),(Fn||{}).lang),mr},$a=l.useCallback((Fn,mr)=>U?U(Fn,mr):p?p(Fn):l.createElement("div",{className:Z()(`${pr}-cell-inner`,`${lr}-date`,{[`${lr}-date-today`]:s($r,Fn)})},l.createElement("div",{className:`${lr}-date-value`},String(t.getDate(Fn)).padStart(2,"0")),l.createElement("div",{className:`${lr}-date-content`},L?L(Fn,mr):b&&b(Fn))),[p,b,L,U]),Ca=l.useCallback((Fn,mr)=>{if(U)return U(Fn,mr);if(R)return R(Fn);const Pr=mr.locale.shortMonths||t.locale.getShortMonths(mr.locale.locale);return l.createElement("div",{className:Z()(`${pr}-cell-inner`,`${lr}-date`,{[`${lr}-date-today`]:o($r,Fn)})},l.createElement("div",{className:`${lr}-date-value`},Pr[t.getMonth(Fn)]),l.createElement("div",{className:`${lr}-date-content`},L?L(Fn,mr):X&&X(Fn)))},[R,X,L,U]),[pa]=(0,Fe.Z)("Calendar",la),Br=(Fn,mr)=>{if(mr.type==="date")return $a(Fn,mr);if(mr.type==="month")return Ca(Fn,Object.assign(Object.assign({},mr),{locale:pa==null?void 0:pa.lang}))};return or(l.createElement("div",{className:Z()(lr,{[`${lr}-full`]:wt,[`${lr}-mini`]:!wt,[`${lr}-rtl`]:gr==="rtl"},Dn==null?void 0:Dn.className,g,v,Ir),style:Object.assign(Object.assign({},Dn==null?void 0:Dn.style),h)},ee?ee({value:Sr,type:Rr,onChange:Fn=>{va(Fn,"customize")},onTypeChange:ga}):l.createElement(vn,{prefixCls:lr,value:Sr,generateConfig:t,mode:Rr,fullscreen:wt,locale:pa==null?void 0:pa.lang,validRange:Ke,onChange:va,onModeChange:ga}),l.createElement(lt.N4,{value:Sr,prefixCls:pr,locale:pa==null?void 0:pa.lang,generateConfig:t,cellRender:Br,onSelect:Fn=>{va(Fn,Dr)},mode:Dr,picker:Dr,disabledDate:ma,hideHeader:!0})))}}var un=Ft;const ve=un(Rt.Z);ve.generateCalendar=un;var Ge=ve,vt=a(50304),et=a(38126),N=a(33346),Pe=a(47920),De=a(77254),ge=a(95325),rt=a(44906),Je=a(41399),Re=a(73273),Ln=a(40727),zn=a(10570),on={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},Mn=on,Wn=a(42909);function Gn(t,e,o){return Math.max(e,Math.min(t,o))}var br=function(e){var o=["onTouchStart","onTouchMove","onWheel"];o.includes(e._reactName)||e.preventDefault()},Ae=function(e){for(var o=[],s=S(e),r=G(e),m=s;m0?1:0):0},C=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},E=function(e){return e&&e.offsetWidth||0},F=function(e){return e&&e.offsetHeight||0},W=function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s,r,m,f;return s=e.startX-e.curX,r=e.startY-e.curY,m=Math.atan2(r,s),f=Math.round(m*180/Math.PI),f<0&&(f=360-Math.abs(f)),f<=45&&f>=0||f<=360&&f>=315?"left":f>=135&&f<=225?"right":o===!0?f>=35&&f<=135?"up":"down":"vertical"},ne=function(e){var o=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(o=!1),o},te=function(e,o){var s={};return o.forEach(function(r){return s[r]=e[r]}),s},le=function(e){var o=l.Children.count(e.children),s=e.listRef,r=Math.ceil(E(s)),m=e.trackRef&&e.trackRef.node,f=Math.ceil(E(m)),g;if(e.vertical)g=r;else{var v=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(v*=r/100),g=Math.ceil((r-v)/e.slidesToShow)}var h=s&&F(s.querySelector('[data-index="0"]')),p=h*e.slidesToShow,b=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(b=o-1-e.initialSlide);var R=e.lazyLoadedList||[],X=Ae((0,N.Z)((0,N.Z)({},e),{},{currentSlide:b,lazyLoadedList:R}));R=R.concat(X);var L={slideCount:o,slideWidth:g,listWidth:r,trackWidth:f,currentSlide:b,slideHeight:h,listHeight:p,lazyLoadedList:R};return e.autoplaying===null&&e.autoplay&&(L.autoplaying="playing"),L},V=function(e){var o=e.waitForAnimate,s=e.animating,r=e.fade,m=e.infinite,f=e.index,g=e.slideCount,v=e.lazyLoad,h=e.currentSlide,p=e.centerMode,b=e.slidesToScroll,R=e.slidesToShow,X=e.useCSS,L=e.lazyLoadedList;if(o&&s)return{};var U=f,ee,Se,we,Ce={},Ne={},Ke=m?f:Gn(f,0,g-1);if(r){if(!m&&(f<0||f>=g))return{};f<0?U=f+g:f>=g&&(U=f-g),v&&L.indexOf(U)<0&&(L=L.concat(U)),Ce={animating:!0,currentSlide:U,lazyLoadedList:L,targetSlide:U},Ne={animating:!1,targetSlide:U}}else ee=U,U<0?(ee=U+g,m?g%b!==0&&(ee=g-g%b):ee=0):!ne(e)&&U>h?U=ee=h:p&&U>=g?(U=m?g:g-1,ee=m?0:g-1):U>=g&&(ee=U-g,m?g%b!==0&&(ee=0):ee=g-R),!m&&U+R>=g&&(ee=g-R),Se=Et((0,N.Z)((0,N.Z)({},e),{},{slideIndex:U})),we=Et((0,N.Z)((0,N.Z)({},e),{},{slideIndex:ee})),m||(Se===we&&(U=ee),Se=we),v&&(L=L.concat(Ae((0,N.Z)((0,N.Z)({},e),{},{currentSlide:U})))),X?(Ce={animating:!0,currentSlide:ee,trackStyle:kt((0,N.Z)((0,N.Z)({},e),{},{left:Se})),lazyLoadedList:L,targetSlide:Ke},Ne={animating:!1,currentSlide:ee,trackStyle:Qt((0,N.Z)((0,N.Z)({},e),{},{left:we})),swipeLeft:null,targetSlide:Ke}):Ce={currentSlide:ee,trackStyle:Qt((0,N.Z)((0,N.Z)({},e),{},{left:we})),lazyLoadedList:L,targetSlide:Ke};return{state:Ce,nextState:Ne}},Oe=function(e,o){var s,r,m,f,g,v=e.slidesToScroll,h=e.slidesToShow,p=e.slideCount,b=e.currentSlide,R=e.targetSlide,X=e.lazyLoad,L=e.infinite;if(f=p%v!==0,s=f?0:(p-b)%v,o.message==="previous")m=s===0?v:h-s,g=b-m,X&&!L&&(r=b-m,g=r===-1?p-1:r),L||(g=R-v);else if(o.message==="next")m=s===0?v:s,g=b+m,X&&!L&&(g=(b+v)%p+s),L||(g=R+v);else if(o.message==="dots")g=o.index*o.slidesToScroll;else if(o.message==="children"){if(g=o.index,L){var U=gn((0,N.Z)((0,N.Z)({},e),{},{targetSlide:g}));g>o.currentSlide&&U==="left"?g=g-p:g10)return{scrolling:!0};g&&(we.swipeLength=zt);var Sn=(v?-1:1)*(we.curX>we.startX?1:-1);g&&(Sn=we.curY>we.startY?1:-1);var gr=Math.ceil(U/ee),Dn=W(o.touchObject,g),pr=we.swipeLength;return Se||(h===0&&(Dn==="right"||Dn==="down")||h+1>=gr&&(Dn==="left"||Dn==="up")||!ne(o)&&(Dn==="left"||Dn==="up"))&&(pr=we.swipeLength*p,b===!1&&R&&(R(Dn),gt.edgeDragged=!0)),!X&&Ce&&(Ce(Dn),gt.swiped=!0),m?wt=Bt+pr*(Ne/Ke)*Sn:v?wt=Bt-pr*Sn:wt=Bt+pr*Sn,g&&(wt=Bt+pr*Sn),gt=(0,N.Z)((0,N.Z)({},gt),{},{touchObject:we,swipeLeft:wt,trackStyle:Qt((0,N.Z)((0,N.Z)({},o),{},{left:wt}))}),Math.abs(we.curX-we.startX)10&&(gt.swiping=!0,br(e)),gt}},ht=function(e,o){var s=o.dragging,r=o.swipe,m=o.touchObject,f=o.listWidth,g=o.touchThreshold,v=o.verticalSwiping,h=o.listHeight,p=o.swipeToSlide,b=o.scrolling,R=o.onSwipe,X=o.targetSlide,L=o.currentSlide,U=o.infinite;if(!s)return r&&br(e),{};var ee=v?h/g:f/g,Se=W(m,v),we={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(b||!m.swipeLength)return we;if(m.swipeLength>ee){br(e),R&&R(Se);var Ce,Ne,Ke=U?L:X;switch(Se){case"left":case"up":Ne=Ke+Ht(o),Ce=p?en(o,Ne):Ne,we.currentDirection=0;break;case"right":case"down":Ne=Ke-Ht(o),Ce=p?en(o,Ne):Ne,we.currentDirection=1;break;default:Ce=Ke}we.triggerSlideHandler=Ce}else{var wt=Et(o);we.trackStyle=kt((0,N.Z)((0,N.Z)({},o),{},{left:wt}))}return we},Gt=function(e){for(var o=e.infinite?e.slideCount*2:e.slideCount,s=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0,m=[];ss[s.length-1])o=s[s.length-1];else for(var m in s){if(oe.swipeLeft*-1)return s=v,!1}else if(v.offsetLeft-o+E(v)/2>e.swipeLeft*-1)return s=v,!1;return!0}),!s)return 0;var f=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide,g=Math.abs(s.dataset.index-f)||1;return g}else return e.slidesToScroll},ct=function(e,o){return o.reduce(function(s,r){return s&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},Qt=function(e){ct(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o,s,r=e.slideCount+2*e.slidesToShow;e.vertical?s=r*e.slideHeight:o=xt(e)*e.slideWidth;var m={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var f=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",g=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",v=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";m=(0,N.Z)((0,N.Z)({},m),{},{WebkitTransform:f,transform:g,msTransform:v})}else e.vertical?m.top=e.left:m.left=e.left;return e.fade&&(m={opacity:1}),o&&(m.width=o),s&&(m.height=s),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?m.marginTop=e.left+"px":m.marginLeft=e.left+"px"),m},kt=function(e){ct(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var o=Qt(e);return e.useTransform?(o.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,o.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?o.transition="top "+e.speed+"ms "+e.cssEase:o.transition="left "+e.speed+"ms "+e.cssEase,o},Et=function(e){if(e.unslick)return 0;ct(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var o=e.slideIndex,s=e.trackRef,r=e.infinite,m=e.centerMode,f=e.slideCount,g=e.slidesToShow,v=e.slidesToScroll,h=e.slideWidth,p=e.listWidth,b=e.variableWidth,R=e.slideHeight,X=e.fade,L=e.vertical,U=0,ee,Se,we=0;if(X||e.slideCount===1)return 0;var Ce=0;if(r?(Ce=-jt(e),f%v!==0&&o+v>f&&(Ce=-(o>f?g-(o-f):f%v)),m&&(Ce+=parseInt(g/2))):(f%v!==0&&o+v>f&&(Ce=g-f%v),m&&(Ce=parseInt(g/2))),U=Ce*h,we=Ce*R,L?ee=o*R*-1+we:ee=o*h*-1+U,b===!0){var Ne,Ke=s&&s.node;if(Ne=o+jt(e),Se=Ke&&Ke.childNodes[Ne],ee=Se?Se.offsetLeft*-1:0,m===!0){Ne=r?o+jt(e):o,Se=Ke&&Ke.children[Ne],ee=0;for(var wt=0;wte.currentSlide?e.targetSlide>e.currentSlide+Bn(e)?"left":"right":e.targetSlide0&&(f+=1),r&&o%2===0&&(f+=1),f}return r?0:o-1},Vn=function(e){var o=e.slidesToShow,s=e.centerMode,r=e.rtl,m=e.centerPadding;if(s){var f=(o-1)/2+1;return parseInt(m)>0&&(f+=1),!r&&o%2===0&&(f+=1),f}return r?o-1:0},Qn=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},hn=function(e){var o,s,r,m,f;e.rtl?f=e.slideCount-1-e.index:f=e.index,r=f<0||f>=e.slideCount,e.centerMode?(m=Math.floor(e.slidesToShow/2),s=(f-e.currentSlide)%e.slideCount===0,f>e.currentSlide-m-1&&f<=e.currentSlide+m&&(o=!0)):o=e.currentSlide<=f&&f=e.slideCount?g=e.targetSlide-e.slideCount:g=e.targetSlide;var v=f===g;return{"slick-slide":!0,"slick-active":o,"slick-center":s,"slick-cloned":r,"slick-current":v}},qn=function(e){var o={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(o.width=e.slideWidth),e.fade&&(o.position="relative",e.vertical&&e.slideHeight?o.top=-e.index*parseInt(e.slideHeight):o.left=-e.index*parseInt(e.slideWidth),o.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(o.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),o},kn=function(e,o){return e.key+"-"+o},rr=function(e){var o,s=[],r=[],m=[],f=l.Children.count(e.children),g=S(e),v=G(e);return l.Children.forEach(e.children,function(h,p){var b,R={message:"children",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?b=h:b=l.createElement("div",null);var X=qn((0,N.Z)((0,N.Z)({},e),{},{index:p})),L=b.props.className||"",U=hn((0,N.Z)((0,N.Z)({},e),{},{index:p}));if(s.push(l.cloneElement(b,{key:"original"+kn(b,p),"data-index":p,className:Z()(U,L),tabIndex:"-1","aria-hidden":!U["slick-active"],style:(0,N.Z)((0,N.Z)({outline:"none"},b.props.style||{}),X),onClick:function(we){b.props&&b.props.onClick&&b.props.onClick(we),e.focusOnSelect&&e.focusOnSelect(R)}})),e.infinite&&e.fade===!1){var ee=f-p;ee<=jt(e)&&f!==e.slidesToShow&&(o=-ee,o>=g&&(b=h),U=hn((0,N.Z)((0,N.Z)({},e),{},{index:o})),r.push(l.cloneElement(b,{key:"precloned"+kn(b,o),"data-index":o,tabIndex:"-1",className:Z()(U,L),"aria-hidden":!U["slick-active"],style:(0,N.Z)((0,N.Z)({},b.props.style||{}),X),onClick:function(we){b.props&&b.props.onClick&&b.props.onClick(we),e.focusOnSelect&&e.focusOnSelect(R)}}))),f!==e.slidesToShow&&(o=f+p,o=Ne&&R<=we:R===Ne}),wt={message:"dots",index:ee,slidesToScroll:h,currentSlide:R},gt=this.clickHandler.bind(this,wt);U=U.concat(l.createElement("li",{key:ee,className:Ke},l.cloneElement(this.props.customPaging(ee),{onClick:gt})))}return l.cloneElement(this.props.appendDots(U),(0,N.Z)({className:this.props.dotsClass},L))}}]),o}(l.PureComponent),ir=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(){return(0,Pe.Z)(this,o),e.apply(this,arguments)}return(0,De.Z)(o,[{key:"clickHandler",value:function(r,m){m&&m.preventDefault(),this.props.clickHandler(r,m)}},{key:"render",value:function(){var r={"slick-arrow":!0,"slick-prev":!0},m=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(r["slick-disabled"]=!0,m=null);var f={key:"0","data-role":"none",className:Z()(r),style:{display:"block"},onClick:m},g={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},v;return this.props.prevArrow?v=l.cloneElement(this.props.prevArrow,(0,N.Z)((0,N.Z)({},f),g)):v=l.createElement("button",(0,et.Z)({key:"0",type:"button"},f)," ","Previous"),v}}]),o}(l.PureComponent),ur=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(){return(0,Pe.Z)(this,o),e.apply(this,arguments)}return(0,De.Z)(o,[{key:"clickHandler",value:function(r,m){m&&m.preventDefault(),this.props.clickHandler(r,m)}},{key:"render",value:function(){var r={"slick-arrow":!0,"slick-next":!0},m=this.clickHandler.bind(this,{message:"next"});ne(this.props)||(r["slick-disabled"]=!0,m=null);var f={key:"1","data-role":"none",className:Z()(r),style:{display:"block"},onClick:m},g={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},v;return this.props.nextArrow?v=l.cloneElement(this.props.nextArrow,(0,N.Z)((0,N.Z)({},f),g)):v=l.createElement("button",(0,et.Z)({key:"1",type:"button"},f)," ","Next"),v}}]),o}(l.PureComponent),An=a(73023),In=["animating"],$n=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(s){var r;(0,Pe.Z)(this,o),r=e.call(this,s),(0,Re.Z)((0,ge.Z)(r),"listRefHandler",function(f){return r.list=f}),(0,Re.Z)((0,ge.Z)(r),"trackRefHandler",function(f){return r.track=f}),(0,Re.Z)((0,ge.Z)(r),"adaptHeight",function(){if(r.props.adaptiveHeight&&r.list){var f=r.list.querySelector('[data-index="'.concat(r.state.currentSlide,'"]'));r.list.style.height=F(f)+"px"}}),(0,Re.Z)((0,ge.Z)(r),"componentDidMount",function(){if(r.props.onInit&&r.props.onInit(),r.props.lazyLoad){var f=Ae((0,N.Z)((0,N.Z)({},r.props),r.state));f.length>0&&(r.setState(function(v){return{lazyLoadedList:v.lazyLoadedList.concat(f)}}),r.props.onLazyLoad&&r.props.onLazyLoad(f))}var g=(0,N.Z)({listRef:r.list,trackRef:r.track},r.props);r.updateState(g,!0,function(){r.adaptHeight(),r.props.autoplay&&r.autoPlay("playing")}),r.props.lazyLoad==="progressive"&&(r.lazyLoadTimer=setInterval(r.progressiveLazyLoad,1e3)),r.ro=new An.Z(function(){r.state.animating?(r.onWindowResized(!1),r.callbackTimers.push(setTimeout(function(){return r.onWindowResized()},r.props.speed))):r.onWindowResized()}),r.ro.observe(r.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(v){v.onfocus=r.props.pauseOnFocus?r.onSlideFocus:null,v.onblur=r.props.pauseOnFocus?r.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",r.onWindowResized):window.attachEvent("onresize",r.onWindowResized)}),(0,Re.Z)((0,ge.Z)(r),"componentWillUnmount",function(){r.animationEndCallback&&clearTimeout(r.animationEndCallback),r.lazyLoadTimer&&clearInterval(r.lazyLoadTimer),r.callbackTimers.length&&(r.callbackTimers.forEach(function(f){return clearTimeout(f)}),r.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",r.onWindowResized):window.detachEvent("onresize",r.onWindowResized),r.autoplayTimer&&clearInterval(r.autoplayTimer),r.ro.disconnect()}),(0,Re.Z)((0,ge.Z)(r),"componentDidUpdate",function(f){if(r.checkImagesLoad(),r.props.onReInit&&r.props.onReInit(),r.props.lazyLoad){var g=Ae((0,N.Z)((0,N.Z)({},r.props),r.state));g.length>0&&(r.setState(function(p){return{lazyLoadedList:p.lazyLoadedList.concat(g)}}),r.props.onLazyLoad&&r.props.onLazyLoad(g))}r.adaptHeight();var v=(0,N.Z)((0,N.Z)({listRef:r.list,trackRef:r.track},r.props),r.state),h=r.didPropsChange(f);h&&r.updateState(v,h,function(){r.state.currentSlide>=l.Children.count(r.props.children)&&r.changeSlide({message:"index",index:l.Children.count(r.props.children)-r.props.slidesToShow,currentSlide:r.state.currentSlide}),(f.autoplay!==r.props.autoplay||f.autoplaySpeed!==r.props.autoplaySpeed)&&(!f.autoplay&&r.props.autoplay?r.autoPlay("playing"):r.props.autoplay?r.autoPlay("update"):r.pause("paused"))})}),(0,Re.Z)((0,ge.Z)(r),"onWindowResized",function(f){r.debouncedResize&&r.debouncedResize.cancel(),r.debouncedResize=(0,Wn.D)(50,function(){return r.resizeWindow(f)}),r.debouncedResize()}),(0,Re.Z)((0,ge.Z)(r),"resizeWindow",function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,g=!!(r.track&&r.track.node);if(g){var v=(0,N.Z)((0,N.Z)({listRef:r.list,trackRef:r.track},r.props),r.state);r.updateState(v,f,function(){r.props.autoplay?r.autoPlay("update"):r.pause("paused")}),r.setState({animating:!1}),clearTimeout(r.animationEndCallback),delete r.animationEndCallback}}),(0,Re.Z)((0,ge.Z)(r),"updateState",function(f,g,v){var h=le(f);f=(0,N.Z)((0,N.Z)((0,N.Z)({},f),h),{},{slideIndex:h.currentSlide});var p=Et(f);f=(0,N.Z)((0,N.Z)({},f),{},{left:p});var b=Qt(f);(g||l.Children.count(r.props.children)!==l.Children.count(f.children))&&(h.trackStyle=b),r.setState(h,v)}),(0,Re.Z)((0,ge.Z)(r),"ssrInit",function(){if(r.props.variableWidth){var f=0,g=0,v=[],h=jt((0,N.Z)((0,N.Z)((0,N.Z)({},r.props),r.state),{},{slideCount:r.props.children.length})),p=Nt((0,N.Z)((0,N.Z)((0,N.Z)({},r.props),r.state),{},{slideCount:r.props.children.length}));r.props.children.forEach(function(gt){v.push(gt.props.style.width),f+=gt.props.style.width});for(var b=0;b=g&&r.onWindowResized()};if(!h.onclick)h.onclick=function(){return h.parentNode.focus()};else{var b=h.onclick;h.onclick=function(R){b(R),h.parentNode.focus()}}h.onload||(r.props.lazyLoad?h.onload=function(){r.adaptHeight(),r.callbackTimers.push(setTimeout(r.onWindowResized,r.props.speed))}:(h.onload=p,h.onerror=function(){p(),r.props.onLazyLoadError&&r.props.onLazyLoadError()}))})}),(0,Re.Z)((0,ge.Z)(r),"progressiveLazyLoad",function(){for(var f=[],g=(0,N.Z)((0,N.Z)({},r.props),r.state),v=r.state.currentSlide;v=-jt(g);h--)if(r.state.lazyLoadedList.indexOf(h)<0){f.push(h);break}f.length>0?(r.setState(function(p){return{lazyLoadedList:p.lazyLoadedList.concat(f)}}),r.props.onLazyLoad&&r.props.onLazyLoad(f)):r.lazyLoadTimer&&(clearInterval(r.lazyLoadTimer),delete r.lazyLoadTimer)}),(0,Re.Z)((0,ge.Z)(r),"slideHandler",function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=r.props,h=v.asNavFor,p=v.beforeChange,b=v.onLazyLoad,R=v.speed,X=v.afterChange,L=r.state.currentSlide,U=V((0,N.Z)((0,N.Z)((0,N.Z)({index:f},r.props),r.state),{},{trackRef:r.track,useCSS:r.props.useCSS&&!g})),ee=U.state,Se=U.nextState;if(ee){p&&p(L,ee.currentSlide);var we=ee.lazyLoadedList.filter(function(Ce){return r.state.lazyLoadedList.indexOf(Ce)<0});b&&we.length>0&&b(we),!r.props.waitForAnimate&&r.animationEndCallback&&(clearTimeout(r.animationEndCallback),X&&X(L),delete r.animationEndCallback),r.setState(ee,function(){h&&r.asNavForIndex!==f&&(r.asNavForIndex=f,h.innerSlider.slideHandler(f)),Se&&(r.animationEndCallback=setTimeout(function(){var Ce=Se.animating,Ne=(0,zn.Z)(Se,In);r.setState(Ne,function(){r.callbackTimers.push(setTimeout(function(){return r.setState({animating:Ce})},10)),X&&X(ee.currentSlide),delete r.animationEndCallback})},R))})}}),(0,Re.Z)((0,ge.Z)(r),"changeSlide",function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=(0,N.Z)((0,N.Z)({},r.props),r.state),h=Oe(v,f);if(!(h!==0&&!h)&&(g===!0?r.slideHandler(h,g):r.slideHandler(h),r.props.autoplay&&r.autoPlay("update"),r.props.focusOnSelect)){var p=r.list.querySelectorAll(".slick-current");p[0]&&p[0].focus()}}),(0,Re.Z)((0,ge.Z)(r),"clickHandler",function(f){r.clickable===!1&&(f.stopPropagation(),f.preventDefault()),r.clickable=!0}),(0,Re.Z)((0,ge.Z)(r),"keyHandler",function(f){var g=Ie(f,r.props.accessibility,r.props.rtl);g!==""&&r.changeSlide({message:g})}),(0,Re.Z)((0,ge.Z)(r),"selectHandler",function(f){r.changeSlide(f)}),(0,Re.Z)((0,ge.Z)(r),"disableBodyScroll",function(){var f=function(v){v=v||window.event,v.preventDefault&&v.preventDefault(),v.returnValue=!1};window.ontouchmove=f}),(0,Re.Z)((0,ge.Z)(r),"enableBodyScroll",function(){window.ontouchmove=null}),(0,Re.Z)((0,ge.Z)(r),"swipeStart",function(f){r.props.verticalSwiping&&r.disableBodyScroll();var g=at(f,r.props.swipe,r.props.draggable);g!==""&&r.setState(g)}),(0,Re.Z)((0,ge.Z)(r),"swipeMove",function(f){var g=dt(f,(0,N.Z)((0,N.Z)((0,N.Z)({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));g&&(g.swiping&&(r.clickable=!1),r.setState(g))}),(0,Re.Z)((0,ge.Z)(r),"swipeEnd",function(f){var g=ht(f,(0,N.Z)((0,N.Z)((0,N.Z)({},r.props),r.state),{},{trackRef:r.track,listRef:r.list,slideIndex:r.state.currentSlide}));if(g){var v=g.triggerSlideHandler;delete g.triggerSlideHandler,r.setState(g),v!==void 0&&(r.slideHandler(v),r.props.verticalSwiping&&r.enableBodyScroll())}}),(0,Re.Z)((0,ge.Z)(r),"touchEnd",function(f){r.swipeEnd(f),r.clickable=!0}),(0,Re.Z)((0,ge.Z)(r),"slickPrev",function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"previous"})},0))}),(0,Re.Z)((0,ge.Z)(r),"slickNext",function(){r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"next"})},0))}),(0,Re.Z)((0,ge.Z)(r),"slickGoTo",function(f){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(f=Number(f),isNaN(f))return"";r.callbackTimers.push(setTimeout(function(){return r.changeSlide({message:"index",index:f,currentSlide:r.state.currentSlide},g)},0))}),(0,Re.Z)((0,ge.Z)(r),"play",function(){var f;if(r.props.rtl)f=r.state.currentSlide-r.props.slidesToScroll;else if(ne((0,N.Z)((0,N.Z)({},r.props),r.state)))f=r.state.currentSlide+r.props.slidesToScroll;else return!1;r.slideHandler(f)}),(0,Re.Z)((0,ge.Z)(r),"autoPlay",function(f){r.autoplayTimer&&clearInterval(r.autoplayTimer);var g=r.state.autoplaying;if(f==="update"){if(g==="hovered"||g==="focused"||g==="paused")return}else if(f==="leave"){if(g==="paused"||g==="focused")return}else if(f==="blur"&&(g==="paused"||g==="hovered"))return;r.autoplayTimer=setInterval(r.play,r.props.autoplaySpeed+50),r.setState({autoplaying:"playing"})}),(0,Re.Z)((0,ge.Z)(r),"pause",function(f){r.autoplayTimer&&(clearInterval(r.autoplayTimer),r.autoplayTimer=null);var g=r.state.autoplaying;f==="paused"?r.setState({autoplaying:"paused"}):f==="focused"?(g==="hovered"||g==="playing")&&r.setState({autoplaying:"focused"}):g==="playing"&&r.setState({autoplaying:"hovered"})}),(0,Re.Z)((0,ge.Z)(r),"onDotsOver",function(){return r.props.autoplay&&r.pause("hovered")}),(0,Re.Z)((0,ge.Z)(r),"onDotsLeave",function(){return r.props.autoplay&&r.state.autoplaying==="hovered"&&r.autoPlay("leave")}),(0,Re.Z)((0,ge.Z)(r),"onTrackOver",function(){return r.props.autoplay&&r.pause("hovered")}),(0,Re.Z)((0,ge.Z)(r),"onTrackLeave",function(){return r.props.autoplay&&r.state.autoplaying==="hovered"&&r.autoPlay("leave")}),(0,Re.Z)((0,ge.Z)(r),"onSlideFocus",function(){return r.props.autoplay&&r.pause("focused")}),(0,Re.Z)((0,ge.Z)(r),"onSlideBlur",function(){return r.props.autoplay&&r.state.autoplaying==="focused"&&r.autoPlay("blur")}),(0,Re.Z)((0,ge.Z)(r),"render",function(){var f=Z()("slick-slider",r.props.className,{"slick-vertical":r.props.vertical,"slick-initialized":!0}),g=(0,N.Z)((0,N.Z)({},r.props),r.state),v=te(g,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),h=r.props.pauseOnHover;v=(0,N.Z)((0,N.Z)({},v),{},{onMouseEnter:h?r.onTrackOver:null,onMouseLeave:h?r.onTrackLeave:null,onMouseOver:h?r.onTrackOver:null,focusOnSelect:r.props.focusOnSelect&&r.clickable?r.selectHandler:null});var p;if(r.props.dots===!0&&r.state.slideCount>=r.props.slidesToShow){var b=te(g,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),R=r.props.pauseOnDotsHover;b=(0,N.Z)((0,N.Z)({},b),{},{clickHandler:r.changeSlide,onMouseEnter:R?r.onDotsLeave:null,onMouseOver:R?r.onDotsOver:null,onMouseLeave:R?r.onDotsLeave:null}),p=l.createElement(Hn,b)}var X,L,U=te(g,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);U.clickHandler=r.changeSlide,r.props.arrows&&(X=l.createElement(ir,U),L=l.createElement(ur,U));var ee=null;r.props.vertical&&(ee={height:r.state.listHeight});var Se=null;r.props.vertical===!1?r.props.centerMode===!0&&(Se={padding:"0px "+r.props.centerPadding}):r.props.centerMode===!0&&(Se={padding:r.props.centerPadding+" 0px"});var we=(0,N.Z)((0,N.Z)({},ee),Se),Ce=r.props.touchMove,Ne={className:"slick-list",style:we,onClick:r.clickHandler,onMouseDown:Ce?r.swipeStart:null,onMouseMove:r.state.dragging&&Ce?r.swipeMove:null,onMouseUp:Ce?r.swipeEnd:null,onMouseLeave:r.state.dragging&&Ce?r.swipeEnd:null,onTouchStart:Ce?r.swipeStart:null,onTouchMove:r.state.dragging&&Ce?r.swipeMove:null,onTouchEnd:Ce?r.touchEnd:null,onTouchCancel:r.state.dragging&&Ce?r.swipeEnd:null,onKeyDown:r.props.accessibility?r.keyHandler:null},Ke={className:f,dir:"ltr",style:r.props.style};return r.props.unslick&&(Ne={className:"slick-list"},Ke={className:f,style:r.props.style}),l.createElement("div",Ke,r.props.unslick?"":X,l.createElement("div",(0,et.Z)({ref:r.listRefHandler},Ne),l.createElement(Un,(0,et.Z)({ref:r.trackRefHandler},v),r.props.children)),r.props.unslick?"":L,r.props.unslick?"":p)}),r.list=null,r.track=null,r.state=(0,N.Z)((0,N.Z)({},Mn),{},{currentSlide:r.props.initialSlide,slideCount:l.Children.count(r.props.children)}),r.callbackTimers=[],r.clickable=!0,r.debouncedResize=null;var m=r.ssrInit();return r.state=(0,N.Z)((0,N.Z)({},r.state),m),r}return(0,De.Z)(o,[{key:"didPropsChange",value:function(r){for(var m=!1,f=0,g=Object.keys(this.props);f1&&arguments[1]!==void 0?arguments[1]:!1;return r.innerSlider.slickGoTo(m,f)}),(0,Re.Z)((0,ge.Z)(r),"slickPause",function(){return r.innerSlider.pause("paused")}),(0,Re.Z)((0,ge.Z)(r),"slickPlay",function(){return r.innerSlider.autoPlay("play")}),r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return(0,De.Z)(o,[{key:"media",value:function(r,m){var f=window.matchMedia(r),g=function(h){var p=h.matches;p&&m()};f.addListener(g),g(f),this._responsiveMediaHandlers.push({mql:f,query:r,listener:g})}},{key:"componentDidMount",value:function(){var r=this;if(this.props.responsive){var m=this.props.responsive.map(function(g){return g.breakpoint});m.sort(function(g,v){return g-v}),m.forEach(function(g,v){var h;v===0?h=Nn()({minWidth:0,maxWidth:g}):h=Nn()({minWidth:m[v-1]+1,maxWidth:g}),Qn()&&r.media(h,function(){r.setState({breakpoint:g})})});var f=Nn()({minWidth:m.slice(-1)[0]});Qn()&&this.media(f,function(){r.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(r){r.mql.removeListener(r.listener)})}},{key:"render",value:function(){var r=this,m,f;this.state.breakpoint?(f=this.props.responsive.filter(function(ee){return ee.breakpoint===r.state.breakpoint}),m=f[0].settings==="unslick"?"unslick":(0,N.Z)((0,N.Z)((0,N.Z)({},sn),this.props),f[0].settings)):m=(0,N.Z)((0,N.Z)({},sn),this.props),m.centerMode&&(m.slidesToScroll>1,m.slidesToScroll=1),m.fade&&(m.slidesToShow>1,m.slidesToScroll>1,m.slidesToShow=1,m.slidesToScroll=1);var g=l.Children.toArray(this.props.children);g=g.filter(function(ee){return typeof ee=="string"?!!ee.trim():!!ee}),m.variableWidth&&(m.rows>1||m.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),m.variableWidth=!1);for(var v=[],h=null,p=0;p=g.length));L+=1)X.push(l.cloneElement(g[L],{key:100*p+10*R+L,tabIndex:-1,style:{width:"".concat(100/m.slidesPerRow,"%"),display:"inline-block"}}));b.push(l.createElement("div",{key:10*p+R},X))}m.variableWidth?v.push(l.createElement("div",{key:p,style:{width:h}},b)):v.push(l.createElement("div",{key:p},b))}if(m==="unslick"){var U="regular slider "+(this.props.className||"");return l.createElement("div",{className:U},g)}else v.length<=m.slidesToShow&&(m.unslick=!0);return l.createElement($n,(0,et.Z)({style:this.props.style,ref:this.innerSliderRefHandler},m),v)}}]),o}(l.Component),Jt=nn;const cn=t=>{const{componentCls:e,antCls:o,carouselArrowSize:s,carouselDotOffset:r,marginXXS:m}=t,f=t.calc(s).mul(-1.25).equal(),g=m;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${o}-radio-input, input${o}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:s,height:s,marginTop:t.calc(s).mul(-1).div(2).equal(),padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:f,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:f,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:t.dotWidth,height:t.dotHeight,marginInline:g,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${t.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:t.dotHeight,padding:0,color:"transparent",fontSize:0,background:t.colorBgContainer,border:0,borderRadius:t.dotHeight,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${t.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:t.calc(g).mul(-1).equal(),content:'""'}},"&.slick-active":{width:t.dotActiveWidth,"& button":{background:t.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},O=t=>{const{componentCls:e,carouselDotOffset:o,marginXXS:s}=t,r={width:t.dotHeight,height:t.dotWidth};return{[`${e}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:t.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:o},"&-right":{insetInlineEnd:o,insetInlineStart:"auto"},li:Object.assign(Object.assign({},r),{margin:`${(0,H.bf)(s)} 0`,verticalAlign:"baseline",button:r,"&.slick-active":Object.assign(Object.assign({},r),{button:r})})}}}},D=t=>{const{componentCls:e}=t;return[{[`${e}-rtl`]:{direction:"rtl",".slick-dots":{[`${e}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${e}-vertical`]:{".slick-dots":{[`${e}-rtl&`]:{flexDirection:"column"}}}}]},oe=()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24});var Pt=(0,At.I$)("Carousel",t=>{const{controlHeightLG:e,controlHeightSM:o}=t,s=(0,ke.TS)(t,{carouselArrowSize:t.calc(e).div(2).equal(),carouselDotOffset:t.calc(o).div(2).equal()});return[cn(s),O(s),D(s)]},oe,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),Tn=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{dots:o=!0,arrows:s=!1,draggable:r=!1,waitForAnimate:m=!1,dotPosition:f="bottom",vertical:g=f==="left"||f==="right",rootClassName:v,className:h,style:p,id:b}=t,R=Tn(t,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:X,direction:L,carousel:U}=l.useContext(pe.E_),ee=l.useRef(),Se=function(gr){let Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ee.current.slickGoTo(gr,Dn)};l.useImperativeHandle(e,()=>({goTo:Se,autoPlay:ee.current.innerSlider.autoPlay,innerSlider:ee.current.innerSlider,prev:ee.current.slickPrev,next:ee.current.slickNext}),[ee.current]);const we=l.useRef(l.Children.count(t.children));l.useEffect(()=>{we.current!==l.Children.count(t.children)&&(Se(t.initialSlide||0,!1),we.current=l.Children.count(t.children))},[t.children]);const Ce=Object.assign({vertical:g,className:Z()(h,U==null?void 0:U.className),style:Object.assign(Object.assign({},U==null?void 0:U.style),p)},R);Ce.effect==="fade"&&(Ce.fade=!0);const Ne=X("carousel",Ce.prefixCls),Ke="slick-dots",wt=!!o,gt=Z()(Ke,`${Ke}-${f}`,typeof o=="boolean"?!1:o==null?void 0:o.className),[Bt,zt]=Pt(Ne),Sn=Z()(Ne,{[`${Ne}-rtl`]:L==="rtl",[`${Ne}-vertical`]:Ce.vertical},zt,v);return Bt(l.createElement("div",{className:Sn,id:b},l.createElement(Jt,Object.assign({ref:ee},Ce,{dots:wt,dotsClass:gt,arrows:s,draggable:r,verticalSwiping:g,waitForAnimate:m}))))}),er=a(7839),dr=a(87894),Yr=a(82099),ta=a(25671),Er=a(32682),Pa=a(12868),Jr=a(57),ba=l.forwardRef(function(t,e){var o,s=t.prefixCls,r=t.forceRender,m=t.className,f=t.style,g=t.children,v=t.isActive,h=t.role,p=l.useState(v||r),b=(0,Er.Z)(p,2),R=b[0],X=b[1];return l.useEffect(function(){(r||v)&&X(!0)},[r,v]),R?l.createElement("div",{ref:e,className:Z()("".concat(s,"-content"),(o={},(0,Re.Z)(o,"".concat(s,"-content-active"),v),(0,Re.Z)(o,"".concat(s,"-content-inactive"),!v),o),m),style:f,role:h},l.createElement("div",{className:"".concat(s,"-content-box")},g)):null});ba.displayName="PanelContent";var Za=ba,oa=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],wa=l.forwardRef(function(t,e){var o,s,r=t.showArrow,m=r===void 0?!0:r,f=t.headerClass,g=t.isActive,v=t.onItemClick,h=t.forceRender,p=t.className,b=t.prefixCls,R=t.collapsible,X=t.accordion,L=t.panelKey,U=t.extra,ee=t.header,Se=t.expandIcon,we=t.openMotion,Ce=t.destroyInactivePanel,Ne=t.children,Ke=(0,zn.Z)(t,oa),wt=R==="disabled",gt=R==="header",Bt=R==="icon",zt=U!=null&&typeof U!="boolean",Sn=function(){v==null||v(L)},gr=function($r){($r.key==="Enter"||$r.keyCode===Jr.Z.ENTER||$r.which===Jr.Z.ENTER)&&Sn()},Dn=typeof Se=="function"?Se(t):l.createElement("i",{className:"arrow"});Dn&&(Dn=l.createElement("div",{className:"".concat(b,"-expand-icon"),onClick:["header","icon"].includes(R)?Sn:void 0},Dn));var pr=Z()((o={},(0,Re.Z)(o,"".concat(b,"-item"),!0),(0,Re.Z)(o,"".concat(b,"-item-active"),g),(0,Re.Z)(o,"".concat(b,"-item-disabled"),wt),o),p),lr=Z()(f,(s={},(0,Re.Z)(s,"".concat(b,"-header"),!0),(0,Re.Z)(s,"".concat(b,"-header-collapsible-only"),gt),(0,Re.Z)(s,"".concat(b,"-icon-collapsible-only"),Bt),s)),or={className:lr,"aria-expanded":g,"aria-disabled":wt,onKeyDown:gr};return!gt&&!Bt&&(or.onClick=Sn,or.role=X?"tab":"button",or.tabIndex=wt?-1:0),l.createElement("div",(0,et.Z)({},Ke,{ref:e,className:pr}),l.createElement("div",or,m&&Dn,l.createElement("span",{className:"".concat(b,"-header-text"),onClick:R==="header"?Sn:void 0},ee),zt&&l.createElement("div",{className:"".concat(b,"-extra")},U)),l.createElement(St.ZP,(0,et.Z)({visible:g,leavedClassName:"".concat(b,"-content-hidden")},we,{forceRender:h,removeOnLeave:Ce}),function(Ir,$r){var Sr=Ir.className,kr=Ir.style;return l.createElement(Za,{ref:$r,prefixCls:b,className:Sr,style:kr,isActive:g,forceRender:h,role:X?"tabpanel":void 0},Ne)}))}),Ia=wa,Na=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],Qa=function(e,o){var s=o.prefixCls,r=o.accordion,m=o.collapsible,f=o.destroyInactivePanel,g=o.onItemClick,v=o.activeKey,h=o.openMotion,p=o.expandIcon;return e.map(function(b,R){var X=b.children,L=b.label,U=b.key,ee=b.collapsible,Se=b.onItemClick,we=b.destroyInactivePanel,Ce=(0,zn.Z)(b,Na),Ne=String(U!=null?U:R),Ke=ee!=null?ee:m,wt=we!=null?we:f,gt=function(Sn){Ke!=="disabled"&&(g(Sn),Se==null||Se(Sn))},Bt=!1;return r?Bt=v[0]===Ne:Bt=v.indexOf(Ne)>-1,l.createElement(Ia,(0,et.Z)({},Ce,{prefixCls:s,key:Ne,panelKey:Ne,isActive:Bt,accordion:r,openMotion:h,expandIcon:p,header:L,collapsible:Ke,onItemClick:gt,destroyInactivePanel:wt}),X)})},xr=function(e,o,s){if(!e)return null;var r=s.prefixCls,m=s.accordion,f=s.collapsible,g=s.destroyInactivePanel,v=s.onItemClick,h=s.activeKey,p=s.openMotion,b=s.expandIcon,R=e.key||String(o),X=e.props,L=X.header,U=X.headerClass,ee=X.destroyInactivePanel,Se=X.collapsible,we=X.onItemClick,Ce=!1;m?Ce=h[0]===R:Ce=h.indexOf(R)>-1;var Ne=Se!=null?Se:f,Ke=function(Bt){Ne!=="disabled"&&(v(Bt),we==null||we(Bt))},wt={key:R,panelKey:R,header:L,headerClass:U,isActive:Ce,prefixCls:r,destroyInactivePanel:ee!=null?ee:g,openMotion:p,accordion:m,children:e.props.children,onItemClick:Ke,expandIcon:b,collapsible:Ne};return typeof e.type=="string"?e:(Object.keys(wt).forEach(function(gt){typeof wt[gt]=="undefined"&&delete wt[gt]}),l.cloneElement(e,wt))};function yr(t,e,o){return Array.isArray(t)?Qa(t,o):(0,qe.Z)(e).map(function(s,r){return xr(s,r,o)})}var Cr=yr;function Ar(t){var e=t;if(!Array.isArray(e)){var o=(0,Ln.Z)(e);e=o==="number"||o==="string"?[e]:[]}return e.map(function(s){return String(s)})}var qr=l.forwardRef(function(t,e){var o=t.prefixCls,s=o===void 0?"rc-collapse":o,r=t.destroyInactivePanel,m=r===void 0?!1:r,f=t.style,g=t.accordion,v=t.className,h=t.children,p=t.collapsible,b=t.openMotion,R=t.expandIcon,X=t.activeKey,L=t.defaultActiveKey,U=t.onChange,ee=t.items,Se=Z()(s,v),we=(0,nt.Z)([],{value:X,onChange:function(zt){return U==null?void 0:U(zt)},defaultValue:L,postState:Ar}),Ce=(0,Er.Z)(we,2),Ne=Ce[0],Ke=Ce[1],wt=function(zt){return Ke(function(){if(g)return Ne[0]===zt?[]:[zt];var Sn=Ne.indexOf(zt),gr=Sn>-1;return gr?Ne.filter(function(Dn){return Dn!==zt}):[].concat((0,I.Z)(Ne),[zt])})};(0,Pa.ZP)(!h,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var gt=Cr(ee,h,{prefixCls:s,accordion:g,openMotion:b,expandIcon:R,collapsible:p,destroyInactivePanel:m,onItemClick:wt,activeKey:Ne});return l.createElement("div",{ref:e,className:Se,style:f,role:g?"tablist":void 0},gt)}),ya=Object.assign(qr,{Panel:Ia}),Aa=ya,Lr=ya.Panel,Tr=a(58351),Kr=a(17436),na=l.forwardRef((t,e)=>{const{getPrefixCls:o}=l.useContext(pe.E_),{prefixCls:s,className:r,showArrow:m=!0}=t,f=o("collapse",s),g=Z()({[`${f}-no-arrow`]:!m},r);return l.createElement(Aa.Panel,Object.assign({ref:e},t,{prefixCls:f,className:g}))}),Xr=a(23148);const Gr=t=>{const{componentCls:e,contentBg:o,padding:s,headerBg:r,headerPadding:m,collapseHeaderPaddingSM:f,collapseHeaderPaddingLG:g,collapsePanelBorderRadius:v,lineWidth:h,lineType:p,colorBorder:b,colorText:R,colorTextHeading:X,colorTextDisabled:L,fontSizeLG:U,lineHeight:ee,lineHeightLG:Se,marginSM:we,paddingSM:Ce,paddingLG:Ne,paddingXS:Ke,motionDurationSlow:wt,fontSizeIcon:gt,contentPadding:Bt,fontHeight:zt,fontHeightLG:Sn}=t,gr=`${(0,H.bf)(h)} ${p} ${b}`;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{backgroundColor:r,border:gr,borderBottom:0,borderRadius:v,["&-rtl"]:{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:gr,["&:last-child"]:{[` - &, - & > ${e}-header`]:{borderRadius:`0 0 ${(0,H.bf)(v)} ${(0,H.bf)(v)}`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:m,color:X,lineHeight:ee,cursor:"pointer",transition:`all ${wt}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:zt,display:"flex",alignItems:"center",paddingInlineEnd:we},[`${e}-arrow`]:Object.assign(Object.assign({},(0,it.Ro)()),{fontSize:gt,svg:{transition:`transform ${wt}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-icon-collapsible-only`]:{cursor:"unset",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:R,backgroundColor:o,borderTop:gr,[`& > ${e}-content-box`]:{padding:Bt},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:f,paddingInlineStart:Ke,[`> ${e}-expand-icon`]:{marginInlineStart:t.calc(Ce).sub(Ke).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:Ce}}},["&-large"]:{[`> ${e}-item`]:{fontSize:U,lineHeight:Se,[`> ${e}-header`]:{padding:g,paddingInlineStart:s,[`> ${e}-expand-icon`]:{height:Sn,marginInlineStart:t.calc(Ne).sub(s).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:Ne}}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${(0,H.bf)(v)} ${(0,H.bf)(v)}`}},[`& ${e}-item-disabled > ${e}-header`]:{[` - &, - & > .arrow - `]:{color:L,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:we}}}}})}},aa=t=>{const{componentCls:e}=t,o=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[o]:{transform:"rotate(180deg)"}}}},Ta=t=>{const{componentCls:e,headerBg:o,paddingXXS:s,colorBorder:r}=t;return{[`${e}-borderless`]:{backgroundColor:o,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${r}`},[` - > ${e}-item:last-child, - > ${e}-item:last-child ${e}-header - `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:s}}}},ka=t=>{const{componentCls:e,paddingSM:o}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:o}}}}}},no=t=>({headerPadding:`${t.paddingSM}px ${t.padding}px`,headerBg:t.colorFillAlter,contentPadding:`${t.padding}px 16px`,contentBg:t.colorBgContainer});var fo=(0,At.I$)("Collapse",t=>{const e=(0,ke.TS)(t,{collapseHeaderPaddingSM:`${(0,H.bf)(t.paddingXS)} ${(0,H.bf)(t.paddingSM)}`,collapseHeaderPaddingLG:`${(0,H.bf)(t.padding)} ${(0,H.bf)(t.paddingLG)}`,collapsePanelBorderRadius:t.borderRadiusLG});return[Gr(e),Ta(e),ka(e),aa(e),(0,Xr.Z)(e)]},no),Ua=Object.assign(l.forwardRef((t,e)=>{const{getPrefixCls:o,direction:s,collapse:r}=l.useContext(pe.E_),{prefixCls:m,className:f,rootClassName:g,style:v,bordered:h=!0,ghost:p,size:b,expandIconPosition:R="start",children:X,expandIcon:L}=t,U=(0,Kr.Z)(zt=>{var Sn;return(Sn=b!=null?b:zt)!==null&&Sn!==void 0?Sn:"middle"}),ee=o("collapse",m),Se=o(),[we,Ce]=fo(ee),Ne=l.useMemo(()=>R==="left"?"start":R==="right"?"end":R,[R]),Ke=function(){let zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Sn=L?L(zt):l.createElement(ta.Z,{rotate:zt.isActive?90:void 0});return(0,It.Tm)(Sn,()=>({className:Z()(Sn.props.className,`${ee}-arrow`)}))},wt=Z()(`${ee}-icon-position-${Ne}`,{[`${ee}-borderless`]:!h,[`${ee}-rtl`]:s==="rtl",[`${ee}-ghost`]:!!p,[`${ee}-${U}`]:U!=="middle"},r==null?void 0:r.className,f,g,Ce),gt=Object.assign(Object.assign({},(0,Tr.Z)(Se)),{motionAppear:!1,leavedClassName:`${ee}-content-hidden`}),Bt=l.useMemo(()=>X?(0,qe.Z)(X).map((zt,Sn)=>{var gr,Dn;if(!((gr=zt.props)===null||gr===void 0)&&gr.disabled){const pr=(Dn=zt.key)!==null&&Dn!==void 0?Dn:String(Sn),{disabled:lr,collapsible:or}=zt.props,Ir=Object.assign(Object.assign({},(0,yt.Z)(zt.props,["disabled"])),{key:pr,collapsible:or!=null?or:lr?"disabled":void 0});return(0,It.Tm)(zt,Ir)}return zt}):null,[X]);return we(l.createElement(Aa,Object.assign({ref:e,openMotion:gt},(0,yt.Z)(t,["rootClassName"]),{expandIcon:Ke,prefixCls:ee,className:wt,style:Object.assign(Object.assign({},r==null?void 0:r.style),v)}),Bt))}),{Panel:na}),Ka=Ua,Ra=a(55580),Ja=a(69943),qo=a(82757),Zo=a(99455),Ei=a(84922),_o=a(99978),El=["b"],ei=["v"],ti=function(e){return Math.round(Number(e||0))},Ol=function(e){if(e&&(0,Ln.Z)(e)==="object"&&"h"in e&&"b"in e){var o=e,s=o.b,r=(0,zn.Z)(o,El);return(0,N.Z)((0,N.Z)({},r),{},{v:s})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},Lo=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(s){return(0,Pe.Z)(this,o),e.call(this,Ol(s))}return(0,De.Z)(o,[{key:"toHsbString",value:function(){var r=this.toHsb(),m=ti(r.s*100),f=ti(r.b*100),g=ti(r.h),v=r.a,h="hsb(".concat(g,", ").concat(m,"%, ").concat(f,"%)"),p="hsba(".concat(g,", ").concat(m,"%, ").concat(f,"%, ").concat(v.toFixed(v===0?0:2),")");return v===1?h:p}},{key:"toHsb",value:function(){var r=this.toHsv();(0,Ln.Z)(this.originalInput)==="object"&&this.originalInput&&"h"in this.originalInput&&(r=this.originalInput);var m=r,f=m.v,g=(0,zn.Z)(m,ei);return(0,N.Z)((0,N.Z)({},g),{},{b:r.v})}}]),o}(_o.C),Zl="rc-color-picker",Xa=function(e){return e instanceof Lo?e:new Lo(e)},Il=Xa("#1677ff"),bo=function(e){var o=e.offset,s=e.targetRef,r=e.containerRef,m=e.color,f=e.type,g=r.current.getBoundingClientRect(),v=g.width,h=g.height,p=s.current.getBoundingClientRect(),b=p.width,R=p.height,X=b/2,L=R/2,U=(o.x+X)/v,ee=1-(o.y+L)/h,Se=m.toHsb(),we=U,Ce=(o.x+X)/v*360;if(f)switch(f){case"hue":return Xa((0,N.Z)((0,N.Z)({},Se),{},{h:Ce<=0?0:Ce}));case"alpha":return Xa((0,N.Z)((0,N.Z)({},Se),{},{a:we<=0?0:we}))}return Xa({h:Se.h,s:U<=0?0:U,b:ee>=1?1:ee,a:Se.a})},Bo=function(e,o,s,r){var m=e.current.getBoundingClientRect(),f=m.width,g=m.height,v=o.current.getBoundingClientRect(),h=v.width,p=v.height,b=h/2,R=p/2,X=s.toHsb();if(!(h===0&&p===0||h!==p)){if(r)switch(r){case"hue":return{x:X.h/360*f-b,y:-R/3};case"alpha":return{x:X.a/1*f-b,y:-R/3}}return{x:X.s*f-b,y:(1-X.b)*g-R}}},Oi=function(e){var o=e.color,s=e.prefixCls,r=e.className,m=e.style,f=e.onClick,g="".concat(s,"-color-block");return l.createElement("div",{className:Z()(g,r),style:m,onClick:f},l.createElement("div",{className:"".concat(g,"-inner"),style:{background:o}}))},Ho=Oi;function $l(t){var e="touches"in t?t.touches[0]:t,o=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,s=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-o,pageY:e.pageY-s}}function Rl(t){var e=t.offset,o=t.targetRef,s=t.containerRef,r=t.direction,m=t.onDragChange,f=t.onDragChangeComplete,g=t.calculate,v=t.color,h=t.disabledDrag,p=(0,l.useState)(e||{x:0,y:0}),b=(0,Er.Z)(p,2),R=b[0],X=b[1],L=(0,l.useRef)(null),U=(0,l.useRef)(null),ee=(0,l.useRef)({flag:!1});(0,l.useEffect)(function(){if(ee.current.flag===!1){var Ke=g==null?void 0:g(s);Ke&&X(Ke)}},[v,s]),(0,l.useEffect)(function(){return function(){document.removeEventListener("mousemove",L.current),document.removeEventListener("mouseup",U.current),document.removeEventListener("touchmove",L.current),document.removeEventListener("touchend",U.current),L.current=null,U.current=null}},[]);var Se=function(wt){var gt=$l(wt),Bt=gt.pageX,zt=gt.pageY,Sn=s.current.getBoundingClientRect(),gr=Sn.x,Dn=Sn.y,pr=Sn.width,lr=Sn.height,or=o.current.getBoundingClientRect(),Ir=or.width,$r=or.height,Sr=Ir/2,kr=$r/2,Rr=Math.max(0,Math.min(Bt-gr,pr))-Sr,Vr=Math.max(0,Math.min(zt-Dn,lr))-kr,Dr={x:Rr,y:r==="x"?R.y:Vr};if(Ir===0&&$r===0||Ir!==$r)return!1;X(Dr),m==null||m(Dr)},we=function(wt){wt.preventDefault(),Se(wt)},Ce=function(wt){wt.preventDefault(),ee.current.flag=!1,document.removeEventListener("mousemove",L.current),document.removeEventListener("mouseup",U.current),document.removeEventListener("touchmove",L.current),document.removeEventListener("touchend",U.current),L.current=null,U.current=null,f==null||f()},Ne=function(wt){document.removeEventListener("mousemove",L.current),document.removeEventListener("mouseup",U.current),!h&&(Se(wt),ee.current.flag=!0,document.addEventListener("mousemove",we),document.addEventListener("mouseup",Ce),document.addEventListener("touchmove",we),document.addEventListener("touchend",Ce),L.current=we,U.current=Ce)};return[R,Ne]}var Zi=Rl,Ml=function(e){var o=e.size,s=o===void 0?"default":o,r=e.color,m=e.prefixCls;return l.createElement("div",{className:Z()("".concat(m,"-handler"),(0,Re.Z)({},"".concat(m,"-handler-sm"),s==="small")),style:{backgroundColor:r}})},Ii=Ml,Nl=function(e){var o=e.children,s=e.style,r=e.prefixCls;return l.createElement("div",{className:"".concat(r,"-palette"),style:(0,N.Z)({position:"relative"},s)},o)},$i=Nl,Tl=(0,l.forwardRef)(function(t,e){var o=t.children,s=t.offset;return l.createElement("div",{ref:e,style:{position:"absolute",left:s.x,top:s.y,zIndex:1}},o)}),yo=Tl,Ri=function(e){var o=e.color,s=e.onChange,r=e.prefixCls,m=e.onChangeComplete,f=e.disabled,g=(0,l.useRef)(),v=(0,l.useRef)(),h=(0,l.useRef)(o),p=Zi({color:o,containerRef:g,targetRef:v,calculate:function(U){return Bo(U,v,o)},onDragChange:function(U){var ee=bo({offset:U,targetRef:v,containerRef:g,color:o});h.current=ee,s(ee)},onDragChangeComplete:function(){return m==null?void 0:m(h.current)},disabledDrag:f}),b=(0,Er.Z)(p,2),R=b[0],X=b[1];return l.createElement("div",{ref:g,className:"".concat(r,"-select"),onMouseDown:X,onTouchStart:X},l.createElement($i,{prefixCls:r},l.createElement(yo,{offset:R,ref:v},l.createElement(Ii,{color:o.toRgbString(),prefixCls:r})),l.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(o.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},Mi=Ri,Fl=function(e){var o=e.colors,s=e.children,r=e.direction,m=r===void 0?"to right":r,f=e.type,g=e.prefixCls,v=(0,l.useMemo)(function(){return o.map(function(h,p){var b=Xa(h);return f==="alpha"&&p===o.length-1&&b.setAlpha(1),b.toRgbString()}).join(",")},[o,f]);return l.createElement("div",{className:"".concat(g,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(m,", ").concat(v,")")}},s)},jl=Fl,Al=function(e){var o=e.gradientColors,s=e.direction,r=e.type,m=r===void 0?"hue":r,f=e.color,g=e.value,v=e.onChange,h=e.onChangeComplete,p=e.disabled,b=e.prefixCls,R=(0,l.useRef)(),X=(0,l.useRef)(),L=(0,l.useRef)(f),U=Zi({color:f,targetRef:X,containerRef:R,calculate:function(Ne){return Bo(Ne,X,f,m)},onDragChange:function(Ne){var Ke=bo({offset:Ne,targetRef:X,containerRef:R,color:f,type:m});L.current=Ke,v(Ke)},onDragChangeComplete:function(){h==null||h(L.current,m)},direction:"x",disabledDrag:p}),ee=(0,Er.Z)(U,2),Se=ee[0],we=ee[1];return l.createElement("div",{ref:R,className:Z()("".concat(b,"-slider"),"".concat(b,"-slider-").concat(m)),onMouseDown:we,onTouchStart:we},l.createElement($i,{prefixCls:b},l.createElement(yo,{offset:Se,ref:X},l.createElement(Ii,{size:"small",color:g,prefixCls:b})),l.createElement(jl,{colors:o,direction:s,type:m,prefixCls:b})))},Ni=Al;function Ti(t){return t!==void 0}var Io=function(e,o){var s=o.defaultValue,r=o.value,m=(0,l.useState)(function(){var h;return Ti(r)?h=r:Ti(s)?h=s:h=e,Xa(h)}),f=(0,Er.Z)(m,2),g=f[0],v=f[1];return(0,l.useEffect)(function(){r&&v(Xa(r))},[r]),[g,v]},Fi=Io,Dl=["rgb(255, 0, 0) 0%","rgb(255, 255, 0) 17%","rgb(0, 255, 0) 33%","rgb(0, 255, 255) 50%","rgb(0, 0, 255) 67%","rgb(255, 0, 255) 83%","rgb(255, 0, 0) 100%"],Ll=(0,l.forwardRef)(function(t,e){var o=t.value,s=t.defaultValue,r=t.prefixCls,m=r===void 0?Zl:r,f=t.onChange,g=t.onChangeComplete,v=t.className,h=t.style,p=t.panelRender,b=t.disabledAlpha,R=b===void 0?!1:b,X=t.disabled,L=X===void 0?!1:X,U=Fi(Il,{value:o,defaultValue:s}),ee=(0,Er.Z)(U,2),Se=ee[0],we=ee[1],Ce=(0,l.useMemo)(function(){var Bt=Xa(Se.toRgbString());return Bt.setAlpha(1),Bt.toRgbString()},[Se]),Ne=Z()("".concat(m,"-panel"),v,(0,Re.Z)({},"".concat(m,"-panel-disabled"),L)),Ke={prefixCls:m,onChangeComplete:g,disabled:L},wt=function(zt,Sn){o||we(zt),f==null||f(zt,Sn)},gt=l.createElement(l.Fragment,null,l.createElement(Mi,(0,et.Z)({color:Se,onChange:wt},Ke)),l.createElement("div",{className:"".concat(m,"-slider-container")},l.createElement("div",{className:Z()("".concat(m,"-slider-group"),(0,Re.Z)({},"".concat(m,"-slider-group-disabled-alpha"),R))},l.createElement(Ni,(0,et.Z)({gradientColors:Dl,color:Se,value:"hsl(".concat(Se.toHsb().h,",100%, 50%)"),onChange:function(zt){return wt(zt,"hue")}},Ke)),!R&&l.createElement(Ni,(0,et.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",Ce],color:Se,value:Se.toRgbString(),onChange:function(zt){return wt(zt,"alpha")}},Ke))),l.createElement(Ho,{color:Se.toRgbString(),prefixCls:m})));return l.createElement("div",{className:Ne,style:h,ref:e},typeof p=="function"?p(gt):gt)}),Bl=Ll;const ji=l.createContext({}),ni=l.createContext({}),{Provider:Hl}=ji,{Provider:Ai}=ni,oo=(t,e)=>(t==null?void 0:t.replace(/[^\w/]/gi,"").slice(0,e?8:6))||"",zl=(t,e)=>t?oo(t,e):"";let Di=function(){function t(e){(0,Pe.Z)(this,t),this.metaColor=new Lo(e),e||this.metaColor.setAlpha(0)}return(0,De.Z)(t,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return zl(this.toHexString(),this.metaColor.getAlpha()<1)}},{key:"toHexString",value:function(){return this.metaColor.getAlpha()===1?this.metaColor.toHexString():this.metaColor.toHex8String()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}}]),t}();const Wl="ant-color-picker",Da=t=>t instanceof Di?t:new Di(t),$o=t=>Math.round(Number(t||0)),zo=t=>$o(t.toHsb().a*100),ri=(t,e)=>{const o=t.toHsb();return o.a=e||1,Da(o)};var Li=t=>{let{prefixCls:e,value:o,colorCleared:s,onChange:r}=t;const m=()=>{if(o&&!s){const f=o.toHsb();f.a=0;const g=Da(f);r==null||r(g)}};return l.createElement("div",{className:`${e}-clear`,onClick:m})},Qr;(function(t){t.hex="hex",t.rgb="rgb",t.hsb="hsb"})(Qr||(Qr={}));var Bi=a(56696),ro=t=>{let{prefixCls:e,min:o=0,max:s=100,value:r,onChange:m,className:f,formatter:g}=t;const v=`${e}-steppers`,[h,p]=(0,l.useState)(r);return(0,l.useEffect)(()=>{Number.isNaN(r)||p(r)},[r]),l.createElement(Bi.Z,{className:Z()(v,f),min:o,max:s,value:h,formatter:g,size:"small",onChange:b=>{r||p(b||0),m==null||m(b)}})},Ro=t=>{let{prefixCls:e,value:o,onChange:s}=t;const r=`${e}-alpha-input`,[m,f]=(0,l.useState)(Da(o||"#000"));(0,l.useEffect)(()=>{o&&f(o)},[o]);const g=v=>{const h=m.toHsb();h.a=(v||0)/100;const p=Da(h);o||f(p),s==null||s(p)};return l.createElement(ro,{value:zo(m),prefixCls:e,formatter:v=>`${v}%`,className:r,onChange:g})},io=a(33952);const kl=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,ai=t=>kl.test(`#${t}`);var Ul=t=>{let{prefixCls:e,value:o,onChange:s}=t;const r=`${e}-hex-input`,[m,f]=(0,l.useState)(o==null?void 0:o.toHex());(0,l.useEffect)(()=>{const v=o==null?void 0:o.toHex();ai(v)&&o&&f(oo(v))},[o]);const g=v=>{const h=v.target.value;f(oo(h)),ai(oo(h,!0))&&(s==null||s(Da(h)))};return l.createElement(io.Z,{className:r,value:m,prefix:"#",onChange:g,size:"small"})},vo=t=>{let{prefixCls:e,value:o,onChange:s}=t;const r=`${e}-hsb-input`,[m,f]=(0,l.useState)(Da(o||"#000"));(0,l.useEffect)(()=>{o&&f(o)},[o]);const g=(v,h)=>{const p=m.toHsb();p[h]=h==="h"?v:(v||0)/100;const b=Da(p);o||f(b),s==null||s(b)};return l.createElement("div",{className:r},l.createElement(ro,{max:360,min:0,value:Number(m.toHsb().h),prefixCls:e,className:r,formatter:v=>$o(v||0).toString(),onChange:v=>g(Number(v),"h")}),l.createElement(ro,{max:100,min:0,value:Number(m.toHsb().s)*100,prefixCls:e,className:r,formatter:v=>`${$o(v||0)}%`,onChange:v=>g(Number(v),"s")}),l.createElement(ro,{max:100,min:0,value:Number(m.toHsb().b)*100,prefixCls:e,className:r,formatter:v=>`${$o(v||0)}%`,onChange:v=>g(Number(v),"b")}))},Kl=t=>{let{prefixCls:e,value:o,onChange:s}=t;const r=`${e}-rgb-input`,[m,f]=(0,l.useState)(Da(o||"#000"));(0,l.useEffect)(()=>{o&&f(o)},[o]);const g=(v,h)=>{const p=m.toRgb();p[h]=v||0;const b=Da(p);o||f(b),s==null||s(b)};return l.createElement("div",{className:r},l.createElement(ro,{max:255,min:0,value:Number(m.toRgb().r),prefixCls:e,className:r,onChange:v=>g(Number(v),"r")}),l.createElement(ro,{max:255,min:0,value:Number(m.toRgb().g),prefixCls:e,className:r,onChange:v=>g(Number(v),"g")}),l.createElement(ro,{max:255,min:0,value:Number(m.toRgb().b),prefixCls:e,className:r,onChange:v=>g(Number(v),"b")}))};const Yl=[Qr.hex,Qr.hsb,Qr.rgb].map(t=>({value:t,label:t.toLocaleUpperCase()}));var ii=t=>{const{prefixCls:e,format:o,value:s,disabledAlpha:r,onFormatChange:m,onChange:f}=t,[g,v]=(0,nt.Z)(Qr.hex,{value:o,onChange:m}),h=`${e}-input`,p=R=>{v(R)},b=(0,l.useMemo)(()=>{const R={value:s,prefixCls:e,onChange:f};switch(g){case Qr.hsb:return l.createElement(vo,Object.assign({},R));case Qr.rgb:return l.createElement(Kl,Object.assign({},R));case Qr.hex:default:return l.createElement(Ul,Object.assign({},R))}},[g,e,s,f]);return l.createElement("div",{className:`${h}-container`},l.createElement(Vt.default,{value:g,bordered:!1,getPopupContainer:R=>R,popupMatchSelectWidth:68,placement:"bottomRight",onChange:p,className:`${e}-format-select`,size:"small",options:Yl}),l.createElement("div",{className:h},b),!r&&l.createElement(Ro,{prefixCls:e,value:s,onChange:f}))},Xl=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const t=(0,l.useContext)(ji),{prefixCls:e,colorCleared:o,allowClear:s,value:r,disabledAlpha:m,onChange:f,onClear:g,onChangeComplete:v}=t,h=Xl(t,["prefixCls","colorCleared","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete"]);return l.createElement(l.Fragment,null,s&&l.createElement(Li,Object.assign({prefixCls:e,value:r,colorCleared:o,onChange:p=>{f==null||f(p),g==null||g()}},h)),l.createElement(Bl,{prefixCls:e,value:r==null?void 0:r.toHsb(),disabledAlpha:m,onChange:(p,b)=>f==null?void 0:f(p,b,!0),onChangeComplete:v}),l.createElement(ii,Object.assign({value:r,onChange:f,prefixCls:e,disabledAlpha:m},h)))};const li=t=>t.map(e=>(e.colors=e.colors.map(Da),e)),Gl=(t,e)=>{const{r:o,g:s,b:r,a:m}=t.toRgb(),f=new Lo(t.toRgbString()).onBackground(e).toHsv();return m<=.5?f.v>.5:o*.299+s*.587+r*.114>192},zi=t=>{let{label:e}=t;return`panel-${e}`};var Ql=t=>{let{prefixCls:e,presets:o,value:s,onChange:r}=t;const[m]=(0,Fe.Z)("ColorPicker"),[,f]=(0,Zo.ZP)(),[g]=(0,nt.Z)(li(o),{value:li(o),postState:li}),v=`${e}-presets`,h=(0,l.useMemo)(()=>g.reduce((R,X)=>{const{defaultOpen:L=!0}=X;return L&&R.push(zi(X)),R},[]),[g]),p=R=>{r==null||r(R)},b=g.map(R=>{var X;return{key:zi(R),label:l.createElement("div",{className:`${v}-label`},R==null?void 0:R.label),children:l.createElement("div",{className:`${v}-items`},Array.isArray(R==null?void 0:R.colors)&&((X=R.colors)===null||X===void 0?void 0:X.length)>0?R.colors.map((L,U)=>l.createElement(Ho,{key:`preset-${U}-${L.toHexString()}`,color:Da(L).toRgbString(),prefixCls:e,className:Z()(`${v}-color`,{[`${v}-color-checked`]:L.toHexString()===(s==null?void 0:s.toHexString()),[`${v}-color-bright`]:Gl(L,f.colorBgElevated)}),onClick:()=>p(L)})):l.createElement("span",{className:`${v}-empty`},m.presetEmpty))}});return l.createElement("div",{className:v},l.createElement(Ka,{defaultActiveKey:h,ghost:!0,items:b}))},si=()=>{const{prefixCls:t,value:e,presets:o,onChange:s}=(0,l.useContext)(ni);return Array.isArray(o)?l.createElement(Ql,{value:e,presets:o,prefixCls:t,onChange:s}):null},Jl=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,presets:o,panelRender:s,color:r,onChange:m,onClear:f}=t,g=Jl(t,["prefixCls","presets","panelRender","color","onChange","onClear"]),v=`${e}-inner-content`,h=Object.assign({prefixCls:e,value:r,onChange:m,onClear:f},g),p=l.useMemo(()=>({prefixCls:e,value:r,presets:o,onChange:m}),[e,r,o,m]),b=l.createElement(l.Fragment,null,l.createElement(Hi,null),Array.isArray(o)&&l.createElement(Ei.Z,{className:`${v}-divider`}),l.createElement(si,null));return l.createElement(Hl,{value:h},l.createElement(Ai,{value:p},l.createElement("div",{className:v},typeof s=="function"?s(b,{components:{Picker:Hi,Presets:si}}):b)))},_l=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{color:o,prefixCls:s,open:r,colorCleared:m,disabled:f,format:g,className:v,showText:h}=t,p=_l(t,["color","prefixCls","open","colorCleared","disabled","format","className","showText"]),b=`${s}-trigger`,R=(0,l.useMemo)(()=>m?l.createElement(Li,{prefixCls:s}):l.createElement(Ho,{prefixCls:s,color:o.toRgbString()}),[o,m,s]),X=()=>{const U=o.toHexString().toUpperCase(),ee=zo(o);switch(g){case"rgb":return o.toRgbString();case"hsb":return o.toHsbString();case"hex":default:return ee<100?`${U.slice(0,7)},${ee}%`:U}},L=()=>{if(typeof h=="function")return h(o);if(h)return X()};return l.createElement("div",Object.assign({ref:e,className:Z()(b,v,{[`${b}-active`]:r,[`${b}-disabled`]:f})},p),R,h&&l.createElement("div",{className:`${b}-text`},L()))});function ci(t){return t!==void 0}var ts=(t,e)=>{const{defaultValue:o,value:s}=e,[r,m]=(0,l.useState)(()=>{let f;return ci(s)?f=s:ci(o)?f=o:f=t,Da(f||"")});return(0,l.useEffect)(()=>{s&&m(Da(s))},[s]),[r,m]};const Vi=(t,e)=>({backgroundImage:`conic-gradient(${e} 0 25%, transparent 0 50%, ${e} 0 75%, transparent 0)`,backgroundSize:`${t} ${t}`});var ki=(t,e)=>{const{componentCls:o,borderRadiusSM:s,colorPickerInsetShadow:r,lineWidth:m,colorFillSecondary:f}=t;return{[`${o}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:s,width:e,height:e,boxShadow:r},Vi("50%",t.colorFillSecondary)),{[`${o}-color-block-inner`]:{width:"100%",height:"100%",border:`${(0,H.bf)(m)} solid ${f}`,borderRadius:"inherit"}})}},Ui=t=>{const{componentCls:e,antCls:o,fontSizeSM:s,lineHeightSM:r,colorPickerAlphaInputWidth:m,marginXXS:f,paddingXXS:g,controlHeightSM:v,marginXS:h,fontSizeIcon:p,paddingXS:b,colorTextPlaceholder:R,colorPickerInputNumberHandleWidth:X,lineWidth:L}=t;return{[`${e}-input-container`]:{display:"flex",[`${e}-steppers${o}-input-number`]:{fontSize:s,lineHeight:r,[`${o}-input-number-input`]:{paddingInlineStart:g,paddingInlineEnd:0},[`${o}-input-number-handler-wrap`]:{width:X}},[`${e}-steppers${e}-alpha-input`]:{flex:`0 0 ${(0,H.bf)(m)}`,marginInlineStart:f},[`${e}-format-select${o}-select`]:{marginInlineEnd:h,width:"auto","&-single":{[`${o}-select-selector`]:{padding:0,border:0},[`${o}-select-arrow`]:{insetInlineEnd:0},[`${o}-select-selection-item`]:{paddingInlineEnd:t.calc(p).add(f).equal(),fontSize:s,lineHeight:`${(0,H.bf)(v)}`},[`${o}-select-item-option-content`]:{fontSize:s,lineHeight:r},[`${o}-select-dropdown`]:{[`${o}-select-item`]:{minHeight:"auto"}}}},[`${e}-input`]:{gap:f,alignItems:"center",flex:1,width:0,[`${e}-hsb-input,${e}-rgb-input`]:{display:"flex",gap:f,alignItems:"center"},[`${e}-steppers`]:{flex:1},[`${e}-hex-input${o}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,H.bf)(b)}`,[`${o}-input`]:{fontSize:s,textTransform:"uppercase",lineHeight:(0,H.bf)(t.calc(v).sub(t.calc(L).mul(2)).equal())},[`${o}-input-prefix`]:{color:R}}}}}},ns=t=>{const{componentCls:e,controlHeightLG:o,borderRadiusSM:s,colorPickerInsetShadow:r,marginSM:m,colorBgElevated:f,colorFillSecondary:g,lineWidthBold:v,colorPickerHandlerSize:h,colorPickerHandlerSizeSM:p,colorPickerSliderHeight:b}=t;return{[`${e}-select`]:{[`${e}-palette`]:{minHeight:t.calc(o).mul(4).equal(),overflow:"hidden",borderRadius:s},[`${e}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:r,inset:0},marginBottom:m},[`${e}-handler`]:{width:h,height:h,border:`${(0,H.bf)(v)} solid ${f}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${r}, 0 0 0 1px ${g}`,"&-sm":{width:p,height:p}},[`${e}-slider`]:{borderRadius:t.calc(b).div(2).equal(),[`${e}-palette`]:{height:b},[`${e}-gradient`]:{borderRadius:t.calc(b).div(2).equal(),boxShadow:r},"&-alpha":Vi(`${(0,H.bf)(b)}`,t.colorFillSecondary),"&-hue":{marginBottom:m}},[`${e}-slider-container`]:{display:"flex",gap:m,marginBottom:m,[`${e}-slider-group`]:{flex:1,"&-disabled-alpha":{display:"flex",alignItems:"center",[`${e}-slider`]:{flex:1,marginBottom:0}}}}}},Yi=t=>{const{componentCls:e,antCls:o,colorTextQuaternary:s,paddingXXS:r,colorPickerPresetColorSize:m,fontSizeSM:f,colorText:g,lineHeightSM:v,lineWidth:h,borderRadius:p,colorFill:b,colorWhite:R,marginXXS:X,paddingXS:L,fontHeightSM:U}=t;return{[`${e}-presets`]:{[`${o}-collapse-item > ${o}-collapse-header`]:{padding:0,[`${o}-collapse-expand-icon`]:{height:U,color:s,paddingInlineEnd:r}},[`${o}-collapse`]:{display:"flex",flexDirection:"column",gap:X},[`${o}-collapse-item > ${o}-collapse-content > ${o}-collapse-content-box`]:{padding:`${(0,H.bf)(L)} 0`},"&-label":{fontSize:f,color:g,lineHeight:v},"&-items":{display:"flex",flexWrap:"wrap",gap:t.calc(X).mul(1.5).equal(),[`${e}-presets-color`]:{position:"relative",cursor:"pointer",width:m,height:m,"&::before":{content:'""',pointerEvents:"none",width:t.calc(m).add(t.calc(h).mul(4)).equal(),height:t.calc(m).add(t.calc(h).mul(4)).equal(),position:"absolute",top:t.calc(h).mul(-2).equal(),insetInlineStart:t.calc(h).mul(-2).equal(),borderRadius:p,border:`${(0,H.bf)(h)} solid transparent`,transition:`border-color ${t.motionDurationMid} ${t.motionEaseInBack}`},"&:hover::before":{borderColor:b},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:t.calc(m).div(13).mul(5).equal(),height:t.calc(m).div(13).mul(8).equal(),border:`${(0,H.bf)(t.lineWidthBold)} solid ${t.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`},[`&${e}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:R,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`},[`&${e}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:f,color:s}}}};const Wo=(t,e,o)=>({borderInlineEndWidth:t.lineWidth,borderColor:e,boxShadow:`0 0 0 ${(0,H.bf)(t.controlOutlineWidth)} ${o}`,outline:0}),rs=t=>{const{componentCls:e}=t;return{"&-rtl":{[`${e}-presets-color`]:{"&::after":{direction:"ltr"}},[`${e}-clear`]:{"&::after":{direction:"ltr"}}}}},Xi=(t,e,o)=>{const{componentCls:s,borderRadiusSM:r,lineWidth:m,colorSplit:f,red6:g}=t;return{[`${s}-clear`]:Object.assign(Object.assign({width:e,height:e,borderRadius:r,border:`${(0,H.bf)(m)} solid ${f}`,position:"relative",cursor:"pointer",overflow:"hidden"},o),{"&::after":{content:'""',position:"absolute",insetInlineEnd:m,top:0,display:"block",width:40,height:2,transformOrigin:"right",transform:"rotate(-45deg)",backgroundColor:g}})}},as=t=>{const{componentCls:e,colorError:o,colorWarning:s,colorErrorHover:r,colorWarningHover:m,colorErrorOutline:f,colorWarningOutline:g}=t;return{[`&${e}-status-error`]:{borderColor:o,"&:hover":{borderColor:r},[`&${e}-trigger-active`]:Object.assign({},Wo(t,o,f))},[`&${e}-status-warning`]:{borderColor:s,"&:hover":{borderColor:m},[`&${e}-trigger-active`]:Object.assign({},Wo(t,s,g))}}},os=t=>{const{componentCls:e,controlHeightLG:o,controlHeightSM:s,controlHeight:r,controlHeightXS:m,borderRadius:f,borderRadiusSM:g,borderRadiusXS:v,borderRadiusLG:h,fontSizeLG:p}=t;return{[`&${e}-lg`]:{minWidth:o,height:o,borderRadius:h,[`${e}-color-block, ${e}-clear`]:{width:r,height:r,borderRadius:f},[`${e}-trigger-text`]:{fontSize:p}},[`&${e}-sm`]:{minWidth:s,height:s,borderRadius:g,[`${e}-color-block, ${e}-clear`]:{width:m,height:m,borderRadius:v}}}},is=t=>{const{componentCls:e,colorPickerWidth:o,colorPrimary:s,motionDurationMid:r,colorBgElevated:m,colorTextDisabled:f,colorText:g,colorBgContainerDisabled:v,borderRadius:h,marginXS:p,marginSM:b,controlHeight:R,controlHeightSM:X,colorBgTextActive:L,colorPickerPresetColorSize:U,colorPickerPreviewSize:ee,lineWidth:Se,colorBorder:we,paddingXXS:Ce,fontSize:Ne,colorPrimaryHover:Ke,controlOutline:wt}=t;return[{[e]:Object.assign({[`${e}-inner-content`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"flex",flexDirection:"column",width:o,"&-divider":{margin:`${(0,H.bf)(b)} 0 ${(0,H.bf)(p)}`},[`${e}-panel`]:Object.assign({},ns(t))},ki(t,ee)),Ui(t)),Yi(t)),Xi(t,U,{marginInlineStart:"auto",marginBottom:p})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:R,height:R,borderRadius:h,border:`${(0,H.bf)(Se)} solid ${we}`,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",transition:`all ${r}`,background:m,padding:t.calc(Ce).sub(Se).equal(),[`${e}-trigger-text`]:{marginInlineStart:p,marginInlineEnd:t.calc(p).sub(t.calc(Ce).sub(Se)).equal(),fontSize:Ne,color:g},"&:hover":{borderColor:Ke},[`&${e}-trigger-active`]:Object.assign({},Wo(t,s,wt)),"&-disabled":{color:f,background:v,cursor:"not-allowed","&:hover":{borderColor:L},[`${e}-trigger-text`]:{color:f}}},Xi(t,X)),ki(t,X)),as(t)),os(t))},rs(t))}]};var ls=(0,At.I$)("ColorPicker",t=>{const{colorTextQuaternary:e,marginSM:o}=t,s=8,r=(0,ke.TS)(t,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:18,colorPickerInsetShadow:`inset 0 0 1px 0 ${e}`,colorPickerSliderHeight:s,colorPickerPreviewSize:t.calc(s).mul(2).add(o).equal()});return[is(r)]}),ss=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{value:e,defaultValue:o,format:s,defaultFormat:r,allowClear:m=!1,presets:f,children:g,trigger:v="click",open:h,disabled:p,placement:b="bottomLeft",arrow:R=!0,panelRender:X,showText:L,style:U,className:ee,size:Se,rootClassName:we,styles:Ce,disabledAlpha:Ne=!1,onFormatChange:Ke,onChange:wt,onClear:gt,onOpenChange:Bt,onChangeComplete:zt,getPopupContainer:Sn,autoAdjustOverflow:gr=!0,destroyTooltipOnHide:Dn}=t,pr=ss(t,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:lr,direction:or,colorPicker:Ir}=(0,l.useContext)(pe.E_),$r=(0,l.useContext)(Ja.Z),Sr=p!=null?p:$r,[,kr]=(0,Zo.ZP)(),[Rr,Vr]=ts(kr.colorPrimary,{value:e,defaultValue:o}),[Dr,ma]=(0,nt.Z)(!1,{value:h,postState:Oa=>!Sr&&Oa,onChange:Bt}),[Wr,ra]=(0,nt.Z)(s,{value:s,defaultValue:r,onChange:Ke}),[ga,va]=(0,l.useState)(!1),la=lr("color-picker",Wl),$a=(0,l.useMemo)(()=>zo(Rr)<100,[Rr]),{status:Ca}=l.useContext(je.aM),pa=(0,Kr.Z)(Se),Br=(0,x.Z)(la),[Fn,mr]=ls(la,Br),Pr={[`${la}-rtl`]:or},Zn=Z()(we,Br,Pr),sr=Z()((0,Ra.Z)(la,Ca),{[`${la}-sm`]:pa==="small",[`${la}-lg`]:pa==="large"},Ir==null?void 0:Ir.className,Zn,ee,mr),cr=Z()(la,Zn),ca=(0,l.useRef)(!0),xa=(Oa,Ma,Xo)=>{let to=Da(Oa);(ga||(e===null||!e&&o===null))&&(va(!1),zo(Rr)===0&&Ma!=="alpha"&&(to=ri(to))),Ne&&$a&&(to=ri(to)),Xo?ca.current=!1:zt==null||zt(to),Vr(to),wt==null||wt(to,to.toHexString())},Sa=()=>{va(!0),gt==null||gt()},Va=Oa=>{ca.current=!0;let Ma=Da(Oa);Ne&&$a&&(Ma=ri(Oa)),zt==null||zt(Ma)},eo={open:Dr,trigger:v,placement:b,arrow:R,rootClassName:we,getPopupContainer:Sn,autoAdjustOverflow:gr,destroyTooltipOnHide:Dn},Ya={prefixCls:la,color:Rr,allowClear:m,colorCleared:ga,disabled:Sr,disabledAlpha:Ne,presets:f,panelRender:X,format:Wr,onFormatChange:ra,onChangeComplete:Va},To=Object.assign(Object.assign({},Ir==null?void 0:Ir.style),U);return Fn(l.createElement(qo.Z,Object.assign({style:Ce==null?void 0:Ce.popup,overlayInnerStyle:Ce==null?void 0:Ce.popupOverlayInner,onOpenChange:Oa=>{ca.current&&!Sr&&ma(Oa)},content:l.createElement(je.Ux,{override:!0,status:!0},l.createElement(Wi,Object.assign({},Ya,{onChange:xa,onChangeComplete:Va,onClear:Sa}))),overlayClassName:cr},eo),g||l.createElement(es,Object.assign({open:Dr,className:sr,style:To,color:e?Da(e):Rr,prefixCls:la,disabled:Sr,colorCleared:ga,showText:L,format:Wr},pr))))},Vo=(0,me.Z)(ui,"color-picker",t=>t,t=>Object.assign(Object.assign({},t),{placement:"bottom",autoAdjustOverflow:!1}));ui._InternalPanelDoNotUseOrYouWillBeFired=Vo;var cs=ui,us=cs,ds=a(56197),fs=a(17291),Gi=a(8303),vs=a(19465),Qi=a(10591),ms=a(55877),di=a(46783);const Ji=["wrap","nowrap","wrap-reverse"],qi=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_i=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],el=(t,e)=>{const o={};return Ji.forEach(s=>{o[`${t}-wrap-${s}`]=e.wrap===s}),o},hs=(t,e)=>{const o={};return _i.forEach(s=>{o[`${t}-align-${s}`]=e.align===s}),o[`${t}-align-stretch`]=!e.align&&!!e.vertical,o},Co=(t,e)=>{const o={};return qi.forEach(s=>{o[`${t}-justify-${s}`]=e.justify===s}),o};function tl(t,e){return Z()(Object.assign(Object.assign(Object.assign({},el(t,e)),hs(t,e)),Co(t,e)))}var gs=tl;const ps=t=>{const{componentCls:e}=t;return{[e]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},bs=t=>{const{componentCls:e}=t;return{[e]:{"&-gap-small":{gap:t.flexGapSM},"&-gap-middle":{gap:t.flexGap},"&-gap-large":{gap:t.flexGapLG}}}},ys=t=>{const{componentCls:e}=t,o={};return Ji.forEach(s=>{o[`${e}-wrap-${s}`]={flexWrap:s}}),o},Cs=t=>{const{componentCls:e}=t,o={};return _i.forEach(s=>{o[`${e}-align-${s}`]={alignItems:s}}),o},Ss=t=>{const{componentCls:e}=t,o={};return qi.forEach(s=>{o[`${e}-justify-${s}`]={justifyContent:s}}),o},xs=()=>({});var Ps=(0,At.I$)("Flex",t=>{const{paddingXS:e,padding:o,paddingLG:s}=t,r=(0,ke.TS)(t,{flexGapSM:e,flexGap:o,flexGapLG:s});return[ps(r),bs(r),ys(r),Cs(r),Ss(r)]},xs),ws=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:o,rootClassName:s,className:r,style:m,flex:f,gap:g,children:v,vertical:h=!1,component:p="div"}=t,b=ws(t,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:R,direction:X,getPrefixCls:L}=l.useContext(pe.E_),U=L("flex",o),[ee,Se]=Ps(U),we=h!=null?h:R==null?void 0:R.vertical,Ce=Z()(r,s,R==null?void 0:R.className,U,Se,gs(U,t),{[`${U}-rtl`]:X==="rtl",[`${U}-gap-${g}`]:(0,di.n)(g),[`${U}-vertical`]:we}),Ne=Object.assign(Object.assign({},R==null?void 0:R.style),m);return f&&(Ne.flex=f),g&&!(0,di.n)(g)&&(Ne.gap=g),ee(l.createElement(p,Object.assign({ref:e,className:Ce,style:Ne},(0,yt.Z)(b,["justify","wrap","align"])),v))});const nl=l.createContext(void 0),{Provider:Os}=nl;var rl=nl,al=a(32618),Zs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},Is=Zs,$s=a(38782),Rs=function(e,o){return l.createElement($s.Z,(0,et.Z)({},e,{ref:o,icon:Is}))},ol=l.forwardRef(Rs);const Ms=t=>{const{icon:e,description:o,prefixCls:s,className:r}=t,m=l.createElement("div",{className:`${s}-icon`},l.createElement(ol,null));return l.createElement("div",{onClick:t.onClick,onFocus:t.onFocus,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,className:Z()(r,`${s}-content`)},e||o?l.createElement(l.Fragment,null,e&&l.createElement("div",{className:`${s}-icon`},e),o&&l.createElement("div",{className:`${s}-description`},o)):m)};var fi=(0,l.memo)(Ms),Ns=a(69814),Ts=a(46679),il=t=>t===0?0:t-Math.sqrt(Math.pow(t,2)/2);const Fs=t=>{const{componentCls:e,floatButtonSize:o,motionDurationSlow:s,motionEaseInOutCirc:r}=t,m=`${e}-group`,f=new H.E4("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${(0,H.bf)(o)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new H.E4("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${(0,H.bf)(o)}, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${m}-wrap`]:Object.assign({},(0,Ts.R)(`${m}-wrap`,f,g,s,!0))},{[`${m}-wrap`]:{[` - &${m}-wrap-enter, - &${m}-wrap-appear - `]:{opacity:0,animationTimingFunction:r},[`&${m}-wrap-leave`]:{animationTimingFunction:r}}}]},js=t=>{const{antCls:e,componentCls:o,floatButtonSize:s,margin:r,borderRadiusLG:m,borderRadiusSM:f,badgeOffset:g,floatButtonBodyPadding:v,calc:h}=t,p=`${o}-group`;return{[p]:Object.assign(Object.assign({},(0,it.Wf)(t)),{zIndex:99,display:"block",border:"none",position:"fixed",width:s,height:"auto",boxShadow:"none",minHeight:s,insetInlineEnd:t.floatButtonInsetInlineEnd,insetBlockEnd:t.floatButtonInsetBlockEnd,borderRadius:m,[`${p}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${p}-rtl`]:{direction:"rtl"},[o]:{position:"static"}}),[`${p}-circle`]:{[`${o}-circle:not(:last-child)`]:{marginBottom:t.margin,[`${o}-body`]:{width:s,height:s,borderRadius:"50%"}}},[`${p}-square`]:{[`${o}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:m,borderStartEndRadius:m},"&:last-child":{borderEndStartRadius:m,borderEndEndRadius:m},"&:not(:last-child)":{borderBottom:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${e}-badge`]:{[`${e}-badge-count`]:{top:h(h(v).add(g)).mul(-1).equal(),insetInlineEnd:h(h(v).add(g)).mul(-1).equal()}}},[`${p}-wrap`]:{display:"block",borderRadius:m,boxShadow:t.boxShadowSecondary,[`${o}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:v,"&:first-child":{borderStartStartRadius:m,borderStartEndRadius:m},"&:last-child":{borderEndStartRadius:m,borderEndEndRadius:m},"&:not(:last-child)":{borderBottom:`${(0,H.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},[`${o}-body`]:{width:t.floatButtonBodySize,height:t.floatButtonBodySize}}}},[`${p}-circle-shadow`]:{boxShadow:"none"},[`${p}-square-shadow`]:{boxShadow:t.boxShadowSecondary,[`${o}-square`]:{boxShadow:"none",padding:v,[`${o}-body`]:{width:t.floatButtonBodySize,height:t.floatButtonBodySize,borderRadius:f}}}}},As=t=>{const{antCls:e,componentCls:o,floatButtonBodyPadding:s,floatButtonIconSize:r,floatButtonSize:m,borderRadiusLG:f,badgeOffset:g,dotOffsetInSquare:v,dotOffsetInCircle:h,calc:p}=t;return{[o]:Object.assign(Object.assign({},(0,it.Wf)(t)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",width:m,height:m,insetInlineEnd:t.floatButtonInsetInlineEnd,insetBlockEnd:t.floatButtonInsetBlockEnd,boxShadow:t.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${e}-badge`]:{width:"100%",height:"100%",[`${e}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:p(g).mul(-1).equal(),insetInlineEnd:p(g).mul(-1).equal()}},[`${o}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${t.motionDurationMid}`,[`${o}-content`]:{overflow:"hidden",textAlign:"center",minHeight:m,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${(0,H.bf)(p(s).div(2).equal())} ${(0,H.bf)(s)}`,[`${o}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${o}-rtl`]:{direction:"rtl"},[`${o}-circle`]:{height:m,borderRadius:"50%",[`${e}-badge`]:{[`${e}-badge-dot`]:{top:h,insetInlineEnd:h}},[`${o}-body`]:{borderRadius:"50%"}},[`${o}-square`]:{height:"auto",minHeight:m,borderRadius:f,[`${e}-badge`]:{[`${e}-badge-dot`]:{top:v,insetInlineEnd:v}},[`${o}-body`]:{height:"auto",borderRadius:f}},[`${o}-default`]:{backgroundColor:t.floatButtonBackgroundColor,transition:`background-color ${t.motionDurationMid}`,[`${o}-body`]:{backgroundColor:t.floatButtonBackgroundColor,transition:`background-color ${t.motionDurationMid}`,"&:hover":{backgroundColor:t.colorFillContent},[`${o}-content`]:{[`${o}-icon`]:{color:t.colorText},[`${o}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,H.bf)(t.fontSizeLG),color:t.colorText,fontSize:t.fontSizeSM}}}},[`${o}-primary`]:{backgroundColor:t.colorPrimary,[`${o}-body`]:{backgroundColor:t.colorPrimary,transition:`background-color ${t.motionDurationMid}`,"&:hover":{backgroundColor:t.colorPrimaryHover},[`${o}-content`]:{[`${o}-icon`]:{color:t.colorTextLightSolid},[`${o}-description`]:{display:"flex",alignItems:"center",lineHeight:(0,H.bf)(t.fontSizeLG),color:t.colorTextLightSolid,fontSize:t.fontSizeSM}}}}}},Ds=t=>({dotOffsetInCircle:il(t.controlHeightLG/2),dotOffsetInSquare:il(t.borderRadiusLG)});var ll=(0,At.I$)("FloatButton",t=>{const{colorTextLightSolid:e,colorBgElevated:o,controlHeightLG:s,marginXXL:r,marginLG:m,fontSize:f,fontSizeIcon:g,controlItemBgHover:v,paddingXXS:h,calc:p}=t,b=(0,ke.TS)(t,{floatButtonBackgroundColor:o,floatButtonColor:e,floatButtonHoverBackgroundColor:v,floatButtonFontSize:f,floatButtonIconSize:p(g).mul(1.5).equal(),floatButtonSize:s,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:m,floatButtonBodySize:p(s).sub(p(h).mul(2)).equal(),floatButtonBodyPadding:h,badgeOffset:p(h).mul(1.5).equal()});return[js(b),As(b),(0,Ns.J$)(t),Fs(b)]},Ds),Ls=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:o,className:s,rootClassName:r,type:m="default",shape:f="circle",icon:g,description:v,tooltip:h,badge:p={}}=t,b=Ls(t,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:R,direction:X}=(0,l.useContext)(pe.E_),L=(0,l.useContext)(rl),U=R(Fa,o),ee=(0,x.Z)(U),[Se,we]=ll(U,ee),Ce=L||f,Ne=Z()(we,ee,U,s,r,`${U}-${m}`,`${U}-${Ce}`,{[`${U}-rtl`]:X==="rtl"}),Ke=(0,l.useMemo)(()=>(0,yt.Z)(p,["title","children","status","text"]),[p]),wt=(0,l.useMemo)(()=>({prefixCls:U,description:v,icon:g,type:m}),[U,v,g,m]);let gt=l.createElement("div",{className:`${U}-body`},l.createElement(fi,Object.assign({},wt)));return"badge"in t&&(gt=l.createElement(Ct.Z,Object.assign({},Ke),gt)),"tooltip"in t&&(gt=l.createElement(al.Z,{title:h,placement:X==="rtl"?"right":"left"},gt)),Se(t.href?l.createElement("a",Object.assign({ref:e},b,{className:Ne}),gt):l.createElement("button",Object.assign({ref:e},b,{className:Ne,type:"button"}),gt))}),Bs=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:o,className:s,type:r="default",shape:m="circle",visibilityHeight:f=400,icon:g=l.createElement(Qe.Z,null),target:v,onClick:h,duration:p=450}=t,b=Bs(t,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[R,X]=(0,l.useState)(f===0),L=l.useRef(null);l.useImperativeHandle(e,()=>({nativeElement:L.current}));const U=()=>L.current&&L.current.ownerDocument?L.current.ownerDocument:window,ee=(0,bt.Z)(Bt=>{const zt=(0,K.Z)(Bt.target,!0);X(zt>=f)});(0,l.useEffect)(()=>{const zt=(v||U)();return ee({target:zt}),zt==null||zt.addEventListener("scroll",ee),()=>{ee.cancel(),zt==null||zt.removeEventListener("scroll",ee)}},[v]);const Se=Bt=>{(0,ce.Z)(0,{getContainer:v||U,duration:p}),h==null||h(Bt)},{getPrefixCls:we}=(0,l.useContext)(pe.E_),Ce=we(Fa,o),Ne=we(),wt=(0,l.useContext)(rl)||m,gt=Object.assign({prefixCls:Ce,icon:g,type:r,shape:wt},b);return l.createElement(St.ZP,{visible:R,motionName:`${Ne}-fade`},Bt=>{let{className:zt}=Bt;return l.createElement(mo,Object.assign({ref:L},gt,{onClick:Se,className:Z()(s,zt)}))})}),cl=a(22410),Hs=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,className:o,style:s,shape:r="circle",type:m="default",icon:f=l.createElement(ol,null),closeIcon:g=l.createElement(cl.Z,null),description:v,trigger:h,children:p,onOpenChange:b,open:R}=t,X=Hs(t,["prefixCls","className","style","shape","type","icon","closeIcon","description","trigger","children","onOpenChange","open"]),{direction:L,getPrefixCls:U}=(0,l.useContext)(pe.E_),ee=U(Fa,e),Se=(0,x.Z)(ee),[we,Ce]=ll(ee,Se),Ne=`${ee}-group`,Ke=Z()(Ne,Ce,Se,o,{[`${Ne}-rtl`]:L==="rtl",[`${Ne}-${r}`]:r,[`${Ne}-${r}-shadow`]:!h}),wt=Z()(Ce,`${Ne}-wrap`),[gt,Bt]=(0,nt.Z)(!1,{value:R}),zt=l.useRef(null),Sn=l.useRef(null),gr=l.useMemo(()=>h==="hover"?{onMouseEnter(){Bt(!0),b==null||b(!0)},onMouseLeave(){Bt(!1),b==null||b(!1)}}:{},[h]),Dn=()=>{Bt(lr=>(b==null||b(!lr),!lr))},pr=(0,l.useCallback)(lr=>{var or,Ir;if(!((or=zt.current)===null||or===void 0)&&or.contains(lr.target)){!((Ir=Sn.current)===null||Ir===void 0)&&Ir.contains(lr.target)&&Dn();return}Bt(!1),b==null||b(!1)},[h]);return(0,l.useEffect)(()=>{if(h==="click")return document.addEventListener("click",pr),()=>{document.removeEventListener("click",pr)}},[h]),we(l.createElement(Os,{value:r},l.createElement("div",Object.assign({ref:zt,className:Ke,style:s},gr),h&&["click","hover"].includes(h)?l.createElement(l.Fragment,null,l.createElement(St.ZP,{visible:gt,motionName:`${Ne}-wrap`},lr=>{let{className:or}=lr;return l.createElement("div",{className:Z()(or,wt)},p)}),l.createElement(mo,Object.assign({ref:Sn,type:m,shape:r,icon:gt?g:f,description:v,"aria-label":t["aria-label"]},X))):p)))};var ul=(0,l.memo)(zs),dl=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{var{backTop:e}=t,o=dl(t,["backTop"]);return e?l.createElement(sl,Object.assign({},o,{visibilityHeight:0})):l.createElement(mo,Object.assign({},o))};var Ws=t=>{var{className:e,items:o}=t,s=dl(t,["className","items"]);const{prefixCls:r}=s,{getPrefixCls:m}=l.useContext(pe.E_),g=`${m(Fa,r)}-pure`;return o?l.createElement(ul,Object.assign({className:Z()(e,g)},s),o.map((v,h)=>l.createElement(fl,Object.assign({key:h},v)))):l.createElement(fl,Object.assign({className:Z()(e,g)},s))};mo.BackTop=sl,mo.Group=ul,mo._InternalPanelDoNotUseOrYouWillBeFired=Ws;var Vs=mo,ks=a(67190),Us=a(97004),Ks=a(71593),Ys=a(42259),Xs=a(90543),Gs=a(41549),Qs=a(2276);function Js(){var t=(0,l.useState)({id:0,callback:null}),e=(0,Er.Z)(t,2),o=e[0],s=e[1],r=(0,l.useCallback)(function(m){s(function(f){var g=f.id;return{id:g+1,callback:m}})},[]);return(0,l.useEffect)(function(){var m;(m=o.callback)===null||m===void 0||m.call(o)},[o]),r}var vl=a(62382),vi=a(93442),qs=l.createContext(null),ml=qs;function _s(t){var e=l.useContext(ml),o=e.notFoundContent,s=e.activeIndex,r=e.setActiveIndex,m=e.selectOption,f=e.onFocus,g=e.onBlur,v=t.prefixCls,h=t.options,p=h[s]||{};return l.createElement(vi.ZP,{prefixCls:"".concat(v,"-menu"),activeKey:p.key,onSelect:function(R){var X=R.key,L=h.find(function(U){var ee=U.key;return ee===X});m(L)},onFocus:f,onBlur:g},h.map(function(b,R){var X=b.key,L=b.disabled,U=b.className,ee=b.style,Se=b.label;return l.createElement(vi.sN,{key:X,disabled:L,className:U,style:ee,onMouseEnter:function(){r(R)}},Se)}),!h.length&&l.createElement(vi.sN,{disabled:!0},o))}var c=_s,n={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}},u=function(e){var o=e.prefixCls,s=e.options,r=e.children,m=e.visible,f=e.transitionName,g=e.getPopupContainer,v=e.dropdownClassName,h=e.direction,p=e.placement,b="".concat(o,"-dropdown"),R=l.createElement(c,{prefixCls:b,options:s}),X=(0,l.useMemo)(function(){var L;return h==="rtl"?L=p==="top"?"topLeft":"bottomLeft":L=p==="top"?"topRight":"bottomRight",L},[h,p]);return l.createElement(vl.Z,{prefixCls:b,popupVisible:m,popup:R,popupPlacement:X,popupTransitionName:f,builtinPlacements:n,getPopupContainer:g,popupClassName:v},r)},d=u,y=function(){return null},M=y;function _(t){var e=t.selectionStart;return t.value.slice(0,e)}function ie(t,e){return e.reduce(function(o,s){var r=t.lastIndexOf(s);return r>o.location?{location:r,prefix:s}:o},{location:-1,prefix:""})}function q(t){return(t||"").toLowerCase()}function he(t,e,o){var s=t[0];if(!s||s===o)return t;for(var r=t,m=e.length,f=0;f=0)return[!0,"",Nr,Ur]}return[va,pa,Pr,ca]},[ee,va,Vr,wo,pa,Pr,ca]),Fo=(0,Er.Z)(lc,4),Eo=Fo[0],yi=Fo[1],Qo=Fo[2],Ci=Fo[3],Si=l.useCallback(function(ua){var Nr;return U&&U.length>0?Nr=U.map(function(Ur){var da;return(0,N.Z)((0,N.Z)({},Ur),{},{key:(da=Ur==null?void 0:Ur.key)!==null&&da!==void 0?da:Ur.value})}):Nr=(0,qe.Z)(L).map(function(Ur){var da=Ur.props,Ao=Ur.key;return(0,N.Z)((0,N.Z)({},da),{},{label:da.children,key:Ao||da.value})}),Nr.filter(function(Ur){return Ne===!1?!0:Ne(ua,Ur)})},[L,U,Ne]),jo=l.useMemo(function(){return Si(yi)},[Si,yi]),sc=Js(),cc=function(Nr,Ur,da){la(!0),Br(Nr),Zn(Ur),xa(da),Ya(0)},Oo=function(Nr){la(!1),xa(0),Br(""),sc(Nr)},xl=function(Nr){ic(Nr),Ke==null||Ke(Nr)},xi=function(Nr){var Ur=Nr.target.value;xl(Ur)},Pl=function(Nr){var Ur,da=Nr.value,Ao=da===void 0?"":da,Do=$e(wo,{measureLocation:Ci,targetText:Ao,prefix:Qo,selectionStart:(Ur=Wr())===null||Ur===void 0?void 0:Ur.selectionStart,split:h}),Jo=Do.text,Pi=Do.selectionLocation;xl(Jo),Oo(function(){Xe(Wr(),Pi)}),Sn==null||Sn(Nr,Qo)},uc=function(Nr){var Ur=Nr.which;if(wt==null||wt(Nr),!!Eo){if(Ur===Jr.Z.UP||Ur===Jr.Z.DOWN){var da=jo.length,Ao=Ur===Jr.Z.UP?-1:1,Do=(eo+Ao+da)%da;Ya(Do),Nr.preventDefault()}else if(Ur===Jr.Z.ESC)Oo();else if(Ur===Jr.Z.ENTER){if(Nr.preventDefault(),!jo.length){Oo();return}var Jo=jo[eo];Pl(Jo)}}},hr=function(Nr){var Ur=Nr.key,da=Nr.which,Ao=Nr.target,Do=_(Ao),Jo=ie(Do,Vr),Pi=Jo.location,wl=Jo.prefix;if(gt==null||gt(Nr),[Jr.Z.ESC,Jr.Z.UP,Jr.Z.DOWN,Jr.Z.ENTER].indexOf(da)===-1)if(Pi!==-1){var wi=Do.slice(Pi+wl.length),Yc=we(wi,h),Yd=!!Si(wi).length;Yc?(Ur===wl||Ur==="Shift"||Eo||wi!==yi&&Yd)&&cc(wi,wl,Pi):Eo&&Oo(),zt&&Yc&&zt(wi,wl)}else Eo&&Oo()},Hr=function(Nr){!Eo&&Bt&&Bt(Nr)},fa=(0,l.useRef)(),Ha=function(Nr){window.clearTimeout(fa.current),!Ma&&Nr&&gr&&gr(Nr),Xo(!0)},za=function(Nr){fa.current=window.setTimeout(function(){Xo(!1),Oo(),Dn==null||Dn(Nr)},0)},co=function(){Ha()},uo=function(){za()};return l.createElement("div",{className:Z()(s,r),style:m},l.createElement(Qs.Z,(0,et.Z)({ref:Dr,value:wo},Rr,{rows:kr,onChange:xi,onKeyDown:uc,onKeyUp:hr,onPressEnter:Hr,onFocus:Ha,onBlur:za})),Eo&&l.createElement("div",{ref:ma,className:"".concat(s,"-measure")},wo.slice(0,Ci),l.createElement(ml.Provider,{value:{notFoundContent:b,activeIndex:eo,setActiveIndex:Ya,selectOption:Pl,onFocus:co,onBlur:uo}},l.createElement(d,{prefixCls:s,transitionName:pr,placement:lr,direction:or,options:jo,visible:!0,getPopupContainer:Ir,dropdownClassName:$r},l.createElement("span",null,Qo))),wo.slice(Ci+Qo.length)))}),Xn=(0,l.forwardRef)(function(t,e){var o=t.suffix,s=t.prefixCls,r=t.classes,m=t.value,f=(0,zn.Z)(t,rn);return l.createElement(Gs.Q,{inputElement:l.createElement(yn,(0,et.Z)({prefixCls:s,ref:e},f)),suffix:o,prefixCls:s,classes:r,value:m})});Xn.Option=M;var Cn=Xn,Jn=Cn,fr=a(12602),Kn=a(7717),_n=a(38705),Mr=a(55904);const vr=t=>{const{componentCls:e,colorTextDisabled:o,controlItemBgHover:s,controlPaddingHorizontal:r,colorText:m,motionDurationSlow:f,lineHeight:g,controlHeight:v,paddingInline:h,paddingBlock:p,fontSize:b,colorBgElevated:R,paddingXXS:X,borderRadius:L,borderRadiusLG:U,boxShadowSecondary:ee,itemPaddingVertical:Se}=t;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,it.Wf)(t)),(0,Mr.ik)(t)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:g,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),(0,Mr.bi)(t,e)),{"&-disabled":{"> textarea":Object.assign({},(0,Mr.Xy)(t))},[`&-affix-wrapper ${e}-suffix`]:{position:"absolute",top:0,insetInlineEnd:h,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${e}-measure`]:{color:m,boxSizing:"border-box",minHeight:t.calc(v).sub(2),margin:0,padding:`${(0,H.bf)(p)} ${(0,H.bf)(h)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},(0,Mr.nz)(t.colorTextPlaceholder)),[`${e}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":Object.assign(Object.assign({},(0,it.Wf)(t)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",fontSize:b,fontVariant:"initial",padding:X,backgroundColor:R,borderRadius:U,outline:"none",boxShadow:ee,"&-hidden":{display:"none"},[`${e}-dropdown-menu`]:{maxHeight:t.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},it.vS),{position:"relative",display:"block",minWidth:t.controlItemWidth,padding:`${(0,H.bf)(Se)} ${(0,H.bf)(r)}`,color:m,borderRadius:L,fontWeight:"normal",lineHeight:g,cursor:"pointer",transition:`background ${f} ease`,"&:hover":{backgroundColor:s},"&-disabled":{color:o,cursor:"not-allowed","&:hover":{color:o,backgroundColor:s,cursor:"not-allowed"}},"&-selected":{color:m,fontWeight:t.fontWeightStrong,backgroundColor:s},"&-active":{backgroundColor:s}})}})})}},zr=t=>Object.assign(Object.assign({},(0,Mr.TM)(t)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:t.zIndexPopupBase+50,itemPaddingVertical:t.controlHeight-t.fontHeight});var _r=(0,At.I$)("Mentions",t=>{const e=(0,ke.TS)(t,(0,Mr.e5)(t));return[vr(e)]},zr),Fr=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:o,className:s,rootClassName:r,disabled:m,loading:f,filterOption:g,children:v,notFoundContent:h,options:p,status:b,popupClassName:R,style:X}=t,L=Fr(t,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","popupClassName","style"]),[U,ee]=l.useState(!1),Se=l.useRef(null),we=(0,fr.sQ)(e,Se),{getPrefixCls:Ce,renderEmpty:Ne,direction:Ke,mentions:wt}=l.useContext(pe.E_),{status:gt,hasFeedback:Bt,feedbackIcon:zt}=l.useContext(je.aM),Sn=(0,Ra.F)(gt,b),gr=function(){L.onFocus&&L.onFocus.apply(L,arguments),ee(!0)},Dn=function(){L.onBlur&&L.onBlur.apply(L,arguments),ee(!1)},pr=l.useMemo(()=>h!==void 0?h:(Ne==null?void 0:Ne("Select"))||l.createElement(Kn.Z,{componentName:"Select"}),[h,Ne]),lr=l.useMemo(()=>f?l.createElement(wn,{value:"ANTD_SEARCHING",disabled:!0},l.createElement(_n.Z,{size:"small"})):v,[f,v]),or=f?[{value:"ANTD_SEARCHING",disabled:!0,label:l.createElement(_n.Z,{size:"small"})}]:p,Ir=f?nr:g,$r=Ce("mentions",o),Sr=(0,x.Z)($r),[kr,Rr]=_r($r,Sr),Vr=Z()({[`${$r}-disabled`]:m,[`${$r}-focused`]:U,[`${$r}-rtl`]:Ke==="rtl"},(0,Ra.Z)($r,Sn),wt==null?void 0:wt.className,!Bt&&s,r,Rr,Sr),Dr=l.createElement(Jn,Object.assign({prefixCls:$r,notFoundContent:pr,className:Vr,disabled:m,direction:Ke,style:Object.assign(Object.assign({},wt==null?void 0:wt.style),X)},L,{filterOption:Ir,onFocus:gr,onBlur:Dn,dropdownClassName:Z()(R,r,Rr,Sr),ref:we,options:or,suffix:Bt&&zt,classes:{affixWrapper:Z()(Sr,Rr,s)}}),lr);return kr(Dr)},Or=l.forwardRef(wr);Or.Option=wn;const ea=(0,me.Z)(Or,"mentions");Or._InternalPanelDoNotUseOrYouWillBeFired=ea,Or.getMentions=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:o="@",split:s=" "}=e,r=Array.isArray(o)?o:[o];return t.split(s).map(function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",f=null;return r.some(g=>m.slice(0,g.length)===g?(f=g,!0):!1),f!==null?{prefix:f,value:m.slice(f.length)}:null}).filter(m=>!!m&&!!m.value)};var jr=Or,Zr=a(62737),ia=a(52497),Ea=a(45319),Ba=a(7592),ja=a(98162),ho=a(37077),ko=a(17519),Uo=a(11677),So=Object.defineProperty,lo=Object.getOwnPropertySymbols,go=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,xo=(t,e,o)=>e in t?So(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Wa=(t,e)=>{for(var o in e||(e={}))go.call(e,o)&&xo(t,o,e[o]);if(lo)for(var o of lo(e))po.call(e,o)&&xo(t,o,e[o]);return t},No=(t,e)=>{var o={};for(var s in t)go.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&lo)for(var s of lo(t))e.indexOf(s)<0&&po.call(t,s)&&(o[s]=t[s]);return o};var qa;(t=>{const e=class{constructor(v,h,p,b){if(this.version=v,this.errorCorrectionLevel=h,this.modules=[],this.isFunction=[],ve.MAX_VERSION)throw new RangeError("Version value out of range");if(b<-1||b>7)throw new RangeError("Mask value out of range");this.size=v*4+17;let R=[];for(let L=0;L7)throw new RangeError("Invalid value");let L,U;for(L=p;;L++){const Ce=e.getNumDataCodewords(L,h)*8,Ne=g.getTotalBits(v,L);if(Ne<=Ce){U=Ne;break}if(L>=b)throw new RangeError("Data too long")}for(const Ce of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])X&&U<=e.getNumDataCodewords(L,Ce)*8&&(h=Ce);let ee=[];for(const Ce of v){s(Ce.mode.modeBits,4,ee),s(Ce.numChars,Ce.mode.numCharCountBits(L),ee);for(const Ne of Ce.getData())ee.push(Ne)}m(ee.length==U);const Se=e.getNumDataCodewords(L,h)*8;m(ee.length<=Se),s(0,Math.min(4,Se-ee.length),ee),s(0,(8-ee.length%8)%8,ee),m(ee.length%8==0);for(let Ce=236;ee.lengthwe[Ne>>>3]|=Ce<<7-(Ne&7)),new e(L,h,we,R)}getModule(v,h){return 0<=v&&v>>9)*1335;const b=(h<<10|p)^21522;m(b>>>15==0);for(let R=0;R<=5;R++)this.setFunctionModule(8,R,r(b,R));this.setFunctionModule(8,7,r(b,6)),this.setFunctionModule(8,8,r(b,7)),this.setFunctionModule(7,8,r(b,8));for(let R=9;R<15;R++)this.setFunctionModule(14-R,8,r(b,R));for(let R=0;R<8;R++)this.setFunctionModule(this.size-1-R,8,r(b,R));for(let R=8;R<15;R++)this.setFunctionModule(8,this.size-15+R,r(b,R));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let v=this.version;for(let p=0;p<12;p++)v=v<<1^(v>>>11)*7973;const h=this.version<<12|v;m(h>>>18==0);for(let p=0;p<18;p++){const b=r(h,p),R=this.size-11+p%3,X=Math.floor(p/3);this.setFunctionModule(R,X,b),this.setFunctionModule(X,R,b)}}drawFinderPattern(v,h){for(let p=-4;p<=4;p++)for(let b=-4;b<=4;b++){const R=Math.max(Math.abs(b),Math.abs(p)),X=v+b,L=h+p;0<=X&&X{(Ce!=U-R||Ke>=L)&&we.push(Ne[Ce])});return m(we.length==X),we}drawCodewords(v){if(v.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let h=0;for(let p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(let b=0;b>>3],7-(h&7)),h++)}}m(h==v.length*8)}applyMask(v){if(v<0||v>7)throw new RangeError("Mask value out of range");for(let h=0;h5&&v++):(this.finderPenaltyAddHistory(L,U),X||(v+=this.finderPenaltyCountPatterns(U)*e.PENALTY_N3),X=this.modules[R][ee],L=1);v+=this.finderPenaltyTerminateAndCount(X,L,U)*e.PENALTY_N3}for(let R=0;R5&&v++):(this.finderPenaltyAddHistory(L,U),X||(v+=this.finderPenaltyCountPatterns(U)*e.PENALTY_N3),X=this.modules[ee][R],L=1);v+=this.finderPenaltyTerminateAndCount(X,L,U)*e.PENALTY_N3}for(let R=0;RX+(L?1:0),h);const p=this.size*this.size,b=Math.ceil(Math.abs(h*20-p*10)/p)-1;return m(0<=b&&b<=9),v+=b*e.PENALTY_N4,m(0<=v&&v<=2568888),v}getAlignmentPatternPositions(){if(this.version==1)return[];{const v=Math.floor(this.version/7)+2,h=this.version==32?26:Math.ceil((this.version*4+4)/(v*2-2))*2;let p=[6];for(let b=this.size-7;p.lengthe.MAX_VERSION)throw new RangeError("Version number out of range");let h=(16*v+128)*v+64;if(v>=2){const p=Math.floor(v/7)+2;h-=(25*p-10)*p-55,v>=7&&(h-=36)}return m(208<=h&&h<=29648),h}static getNumDataCodewords(v,h){return Math.floor(e.getNumRawDataModules(v)/8)-e.ECC_CODEWORDS_PER_BLOCK[h.ordinal][v]*e.NUM_ERROR_CORRECTION_BLOCKS[h.ordinal][v]}static reedSolomonComputeDivisor(v){if(v<1||v>255)throw new RangeError("Degree out of range");let h=[];for(let b=0;b0);for(const b of v){const R=b^p.shift();p.push(0),h.forEach((X,L)=>p[L]^=e.reedSolomonMultiply(X,R))}return p}static reedSolomonMultiply(v,h){if(v>>>8||h>>>8)throw new RangeError("Byte out of range");let p=0;for(let b=7;b>=0;b--)p=p<<1^(p>>>7)*285,p^=(h>>>b&1)*v;return m(p>>>8==0),p}finderPenaltyCountPatterns(v){const h=v[1];m(h<=this.size*3);const p=h>0&&v[2]==h&&v[3]==h*3&&v[4]==h&&v[5]==h;return(p&&v[0]>=h*4&&v[6]>=h?1:0)+(p&&v[6]>=h*4&&v[0]>=h?1:0)}finderPenaltyTerminateAndCount(v,h,p){return v&&(this.finderPenaltyAddHistory(h,p),h=0),h+=this.size,this.finderPenaltyAddHistory(h,p),this.finderPenaltyCountPatterns(p)}finderPenaltyAddHistory(v,h){h[0]==0&&(v+=this.size),h.pop(),h.unshift(v)}};let o=e;o.MIN_VERSION=1,o.MAX_VERSION=40,o.PENALTY_N1=3,o.PENALTY_N2=3,o.PENALTY_N3=40,o.PENALTY_N4=10,o.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],o.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=o;function s(v,h,p){if(h<0||h>31||v>>>h)throw new RangeError("Value out of range");for(let b=h-1;b>=0;b--)p.push(v>>>b&1)}function r(v,h){return(v>>>h&1)!=0}function m(v){if(!v)throw new Error("Assertion error")}const f=class{constructor(v,h,p){if(this.mode=v,this.numChars=h,this.bitData=p,h<0)throw new RangeError("Invalid argument");this.bitData=p.slice()}static makeBytes(v){let h=[];for(const p of v)s(p,8,h);return new f(f.Mode.BYTE,v.length,h)}static makeNumeric(v){if(!f.isNumeric(v))throw new RangeError("String contains non-numeric characters");let h=[];for(let p=0;p=1<{let e;(o=>{const s=class{constructor(m,f){this.ordinal=m,this.formatBits=f}};let r=s;r.LOW=new s(0,1),r.MEDIUM=new s(1,0),r.QUARTILE=new s(2,3),r.HIGH=new s(3,2),o.Ecc=r})(e=t.QrCode||(t.QrCode={}))})(qa||(qa={})),(t=>{let e;(o=>{const s=class{constructor(m,f){this.modeBits=m,this.numBitsCharCount=f}numCharCountBits(m){return this.numBitsCharCount[Math.floor((m+7)/17)]}};let r=s;r.NUMERIC=new s(1,[10,12,14]),r.ALPHANUMERIC=new s(2,[9,11,13]),r.BYTE=new s(4,[8,16,16]),r.KANJI=new s(8,[8,10,12]),r.ECI=new s(7,[0,0,0]),o.Mode=r})(e=t.QrSegment||(t.QrSegment={}))})(qa||(qa={}));var Ga=qa;var La={L:Ga.QrCode.Ecc.LOW,M:Ga.QrCode.Ecc.MEDIUM,Q:Ga.QrCode.Ecc.QUARTILE,H:Ga.QrCode.Ecc.HIGH},ha=128,_a="L",so="#FFFFFF",hl="#000000",mi=!1,hi=4,gi=.1;function gl(t,e=0){const o=[];return t.forEach(function(s,r){let m=null;s.forEach(function(f,g){if(!f&&m!==null){o.push(`M${m+e} ${r+e}h${g-m}v1H${m+e}z`),m=null;return}if(g===s.length-1){if(!f)return;m===null?o.push(`M${g+e},${r+e} h1v1H${g+e}z`):o.push(`M${m+e},${r+e} h${g+1-m}v1H${m+e}z`);return}f&&m===null&&(m=g)})}),o.join("")}function pl(t,e){return t.slice().map((o,s)=>s=e.y+e.h?o:o.map((r,m)=>m=e.x+e.w?r:!1))}function Po(t,e,o,s){if(s==null)return null;const r=o?hi:0,m=t.length+r*2,f=Math.floor(e*gi),g=m/e,v=(s.width||f)*g,h=(s.height||f)*g,p=s.x==null?t.length/2-v/2:s.x*g,b=s.y==null?t.length/2-h/2:s.y*g;let R=null;if(s.excavate){let X=Math.floor(p),L=Math.floor(b),U=Math.ceil(v+p-X),ee=Math.ceil(h+b-L);R={x:X,y:L,w:U,h:ee}}return{x:p,y:b,h,w:v,excavation:R}}var ec=function(){try{new Path2D().addPath(new Path2D)}catch(t){return!1}return!0}();function pi(t){const e=t,{value:o,size:s=ha,level:r=_a,bgColor:m=so,fgColor:f=hl,includeMargin:g=mi,style:v,imageSettings:h}=e,p=No(e,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),b=h==null?void 0:h.src,R=(0,l.useRef)(null),X=(0,l.useRef)(null),[L,U]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(R.current!=null){const we=R.current,Ce=we.getContext("2d");if(!Ce)return;let Ne=Ga.QrCode.encodeText(o,La[r]).getModules();const Ke=g?hi:0,wt=Ne.length+Ke*2,gt=Po(Ne,s,g,h),Bt=X.current,zt=gt!=null&&Bt!==null&&Bt.complete&&Bt.naturalHeight!==0&&Bt.naturalWidth!==0;zt&>.excavation!=null&&(Ne=pl(Ne,gt.excavation));const Sn=window.devicePixelRatio||1;we.height=we.width=s*Sn;const gr=s/wt*Sn;Ce.scale(gr,gr),Ce.fillStyle=m,Ce.fillRect(0,0,wt,wt),Ce.fillStyle=f,ec?Ce.fill(new Path2D(gl(Ne,Ke))):Ne.forEach(function(Dn,pr){Dn.forEach(function(lr,or){lr&&Ce.fillRect(or+Ke,pr+Ke,1,1)})}),zt&&Ce.drawImage(Bt,gt.x+Ke,gt.y+Ke,gt.w,gt.h)}}),(0,l.useEffect)(()=>{U(!1)},[b]);const ee=Wa({height:s,width:s},v);let Se=null;return b!=null&&(Se=l.createElement("img",{src:b,key:b,style:{display:"none"},onLoad:()=>{U(!0)},ref:X})),l.createElement(l.Fragment,null,l.createElement("canvas",Wa({style:ee,height:s,width:s,ref:R},p)),Se)}function Ko(t){const e=t,{value:o,size:s=ha,level:r=_a,bgColor:m=so,fgColor:f=hl,includeMargin:g=mi,imageSettings:v}=e,h=No(e,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]);let p=Ga.QrCode.encodeText(o,La[r]).getModules();const b=g?hi:0,R=p.length+b*2,X=Po(p,s,g,v);let L=null;v!=null&&X!=null&&(X.excavation!=null&&(p=pl(p,X.excavation)),L=l.createElement("image",{xlinkHref:v.src,height:X.h,width:X.w,x:X.x+b,y:X.y+b,preserveAspectRatio:"none"}));const U=gl(p,b);return l.createElement("svg",Wa({height:s,width:s,viewBox:`0 0 ${R} ${R}`},h),l.createElement("path",{fill:m,d:`M0,0 h${R}v${R}H0z`,shapeRendering:"crispEdges"}),l.createElement("path",{fill:f,d:U,shapeRendering:"crispEdges"}),L)}var Jd=t=>{const e=t,{renderAs:o}=e,s=No(e,["renderAs"]);return o==="svg"?React.createElement(Ko,Wa({},s)):React.createElement(pi,Wa({},s))};const Jc=t=>{const{componentCls:e,lineWidth:o,lineType:s,colorSplit:r}=t;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{display:"flex",justifyContent:"center",alignItems:"center",padding:t.paddingSM,backgroundColor:t.colorWhite,borderRadius:t.borderRadiusLG,border:`${(0,H.bf)(o)} ${s} ${r}`,position:"relative",overflow:"hidden",[`& > ${e}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:t.colorText,lineHeight:t.lineHeight,background:t.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${e}-expired`]:{color:t.QRCodeExpiredTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:t.marginXS,fontSize:t.controlHeight}}),[`${e}-borderless`]:{borderColor:"transparent"}}},qc=()=>({});var _c=(0,At.I$)("QRCode",t=>{const e=(0,ke.TS)(t,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"});return Jc(e)},qc),eu=t=>{const[,e]=(0,Zo.ZP)(),{value:o,type:s="canvas",icon:r="",size:m=160,iconSize:f=40,color:g=e.colorText,errorLevel:v="M",status:h="active",bordered:p=!0,onRefresh:b,style:R,className:X,rootClassName:L,prefixCls:U,bgColor:ee="transparent"}=t,{getPrefixCls:Se}=(0,l.useContext)(pe.E_),we=Se("qrcode",U),[Ce,Ne]=_c(we),wt={value:o,size:m,level:v,bgColor:ee,fgColor:g,style:{width:void 0,height:void 0},imageSettings:r?{src:r,x:void 0,y:void 0,height:f,width:f,excavate:!0}:void 0},[gt]=(0,Fe.Z)("QRCode");if(!o)return null;const Bt=Z()(we,X,L,Ne,{[`${we}-borderless`]:!p});return Ce(l.createElement("div",{className:Bt,style:Object.assign(Object.assign({},R),{width:m,height:m,backgroundColor:ee})},h!=="active"&&l.createElement("div",{className:`${we}-mask`},h==="loading"&&l.createElement(_n.Z,null),h==="expired"&&l.createElement(l.Fragment,null,l.createElement("p",{className:`${we}-expired`},gt==null?void 0:gt.expired),b&&l.createElement($t.ZP,{type:"link",icon:l.createElement(Uo.Z,null),onClick:b},gt==null?void 0:gt.refresh))),s==="canvas"?l.createElement(pi,Object.assign({},wt)):l.createElement(Ko,Object.assign({},wt))))},tu=a(22900),nu=a(37839),ru=a(6053),au=a(23870),ou=a(13362),iu=a(25670),lu=a(59929),su=a(75200),cu=a(53295),uu=a(27575),du=a(41868),fu=a(31796),vu=a(66146),mu=a(28566),hu=a(87362),gu=a(74360);const pu=t=>{const{componentCls:e,calc:o}=t;return{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{margin:0,padding:0,listStyle:"none",[`${e}-item`]:{position:"relative",margin:0,paddingBottom:t.itemPaddingBottom,fontSize:t.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:t.itemHeadSize,insetInlineStart:o(o(t.itemHeadSize).sub(t.tailWidth)).div(2).equal(),height:`calc(100% - ${(0,H.bf)(t.itemHeadSize)})`,borderInlineStart:`${(0,H.bf)(t.tailWidth)} ${t.lineType} ${t.tailColor}`},"&-pending":{[`${e}-item-head`]:{fontSize:t.fontSizeSM,backgroundColor:"transparent"},[`${e}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:t.itemHeadSize,height:t.itemHeadSize,backgroundColor:t.dotBg,border:`${(0,H.bf)(t.dotBorderWidth)} ${t.lineType} transparent`,borderRadius:"50%","&-blue":{color:t.colorPrimary,borderColor:t.colorPrimary},"&-red":{color:t.colorError,borderColor:t.colorError},"&-green":{color:t.colorSuccess,borderColor:t.colorSuccess},"&-gray":{color:t.colorTextDisabled,borderColor:t.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:o(t.itemHeadSize).div(2).equal(),insetInlineStart:o(t.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:t.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:o(o(t.fontSize).mul(t.lineHeight).sub(t.fontSize)).mul(-1).add(t.lineWidth).equal(),marginInlineStart:o(t.margin).add(t.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${e}-item-tail`]:{display:"none"},[`> ${e}-item-content`]:{minHeight:o(t.controlHeightLG).mul(1.2).equal()}}},[`&${e}-alternate, - &${e}-right, - &${e}-label`]:{[`${e}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:o(t.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:o(t.tailWidth).div(2).equal()}},"&-left":{[`${e}-item-content`]:{insetInlineStart:`calc(50% - ${(0,H.bf)(t.marginXXS)})`,width:`calc(50% - ${(0,H.bf)(t.marginSM)})`,textAlign:"start"}},"&-right":{[`${e}-item-content`]:{width:`calc(50% - ${(0,H.bf)(t.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${e}-right`]:{[`${e}-item-right`]:{[`${e}-item-tail, - ${e}-item-head, - ${e}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(0,H.bf)(o(o(t.itemHeadSize).add(t.tailWidth)).div(2).equal())})`},[`${e}-item-content`]:{width:`calc(100% - ${(0,H.bf)(o(t.itemHeadSize).add(t.marginXS).equal())})`}}},[`&${e}-pending - ${e}-item-last - ${e}-item-tail`]:{display:"block",height:`calc(100% - ${(0,H.bf)(t.margin)})`,borderInlineStart:`${(0,H.bf)(t.tailWidth)} dotted ${t.tailColor}`},[`&${e}-reverse - ${e}-item-last - ${e}-item-tail`]:{display:"none"},[`&${e}-reverse ${e}-item-pending`]:{[`${e}-item-tail`]:{insetBlockStart:t.margin,display:"block",height:`calc(100% - ${(0,H.bf)(t.margin)})`,borderInlineStart:`${(0,H.bf)(t.tailWidth)} dotted ${t.tailColor}`},[`${e}-item-content`]:{minHeight:o(t.controlHeightLG).mul(1.2).equal()}},[`&${e}-label`]:{[`${e}-item-label`]:{position:"absolute",insetBlockStart:o(o(t.fontSize).mul(t.lineHeight).sub(t.fontSize)).mul(-1).add(t.tailWidth).equal(),width:`calc(50% - ${(0,H.bf)(t.marginSM)})`,textAlign:"end"},[`${e}-item-right`]:{[`${e}-item-label`]:{insetInlineStart:`calc(50% + ${(0,H.bf)(t.marginSM)})`,width:`calc(50% - ${(0,H.bf)(t.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${e}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},bu=t=>({tailColor:t.colorSplit,tailWidth:t.lineWidthBold,dotBorderWidth:t.wireframe?t.lineWidthBold:t.lineWidth*3,dotBg:t.colorBgContainer,itemPaddingBottom:t.padding*1.25});var yu=(0,At.I$)("Timeline",t=>{const e=(0,ke.TS)(t,{itemHeadSize:10,customHeadPaddingVertical:t.paddingXXS,paddingInlineEnd:2});return[pu(e)]},bu),Cu=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{var{prefixCls:e,className:o,color:s="blue",dot:r,pending:m=!1,position:f,label:g,children:v}=t,h=Cu(t,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:p}=l.useContext(pe.E_),b=p("timeline",e),R=Z()(`${b}-item`,{[`${b}-item-pending`]:m},o),X=/blue|red|green|gray/.test(s||"")?void 0:s,L=Z()(`${b}-item-head`,{[`${b}-item-head-custom`]:!!r,[`${b}-item-head-${s}`]:!X});return l.createElement("li",Object.assign({},h,{className:R}),g&&l.createElement("div",{className:`${b}-item-label`},g),l.createElement("div",{className:`${b}-item-tail`}),l.createElement("div",{className:L,style:{borderColor:X,color:X}},r),l.createElement("div",{className:`${b}-item-content`},v))},Su=a(58516),$c=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{var{prefixCls:e,className:o,pending:s=!1,children:r,items:m,rootClassName:f,reverse:g=!1,direction:v,hashId:h,pendingDot:p,mode:b=""}=t,R=$c(t,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const X=(Ke,wt)=>b==="alternate"?Ke==="right"?`${e}-item-right`:Ke==="left"?`${e}-item-left`:wt%2===0?`${e}-item-left`:`${e}-item-right`:b==="left"?`${e}-item-left`:b==="right"?`${e}-item-right`:Ke==="right"?`${e}-item-right`:"",L=(0,I.Z)(m||[]),U=typeof s=="boolean"?null:s;s&&L.push({pending:!!s,dot:p||l.createElement(Su.Z,null),children:U}),g&&L.reverse();const ee=L.length,Se=`${e}-item-last`,we=L.filter(Ke=>!!Ke).map((Ke,wt)=>{var gt;const Bt=wt===ee-2?Se:"",zt=wt===ee-1?Se:"",{className:Sn}=Ke,gr=$c(Ke,["className"]);return l.createElement(Ic,Object.assign({},gr,{className:Z()([Sn,!g&&s?Bt:zt,X((gt=Ke==null?void 0:Ke.position)!==null&>!==void 0?gt:"",wt)]),key:(Ke==null?void 0:Ke.key)||wt}))}),Ce=L.some(Ke=>!!(Ke!=null&&Ke.label)),Ne=Z()(e,{[`${e}-pending`]:!!s,[`${e}-reverse`]:!!g,[`${e}-${b}`]:!!b&&!Ce,[`${e}-label`]:Ce,[`${e}-rtl`]:v==="rtl"},o,f,h);return l.createElement("ul",Object.assign({},R,{className:Ne}),we)};function Pu(t,e){return t&&Array.isArray(t)?t:(0,qe.Z)(e).map(o=>{var s,r;return Object.assign({children:(r=(s=o==null?void 0:o.props)===null||s===void 0?void 0:s.children)!==null&&r!==void 0?r:""},o.props)})}var wu=Pu,Eu=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{getPrefixCls:e,direction:o,timeline:s}=l.useContext(pe.E_),{prefixCls:r,children:m,items:f,className:g,style:v}=t,h=Eu(t,["prefixCls","children","items","className","style"]),p=e("timeline",r),b=(0,x.Z)(p),[R,X]=yu(p,b),L=wu(f,m);return R(l.createElement(xu,Object.assign({},h,{className:Z()(s==null?void 0:s.className,g,b),style:Object.assign(Object.assign({},s==null?void 0:s.style),v),prefixCls:p,direction:o,items:L,hashId:X})))};Rc.Item=Ic;var Ou=Rc,Zu=Ou,Mc=a(89337),bl=a(77189),Iu=a(7748);function $u(t){var e=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,s=t.getBoundingClientRect(),r=s.top,m=s.right,f=s.bottom,g=s.left;return r>=0&&g>=0&&m<=e&&f<=o}function Ru(t,e,o){var s;return(s=o!=null?o:e)!==null&&s!==void 0?s:t===null?"center":"bottom"}function Mu(t,e,o,s){var r=(0,l.useState)(void 0),m=(0,Er.Z)(r,2),f=m[0],g=m[1];(0,bl.Z)(function(){var U=typeof t=="function"?t():t;g(U||null)});var v=(0,l.useState)(null),h=(0,Er.Z)(v,2),p=h[0],b=h[1],R=(0,Iu.Z)(function(){if(f){!$u(f)&&e&&f.scrollIntoView(s);var U=f.getBoundingClientRect(),ee=U.left,Se=U.top,we=U.width,Ce=U.height,Ne={left:ee,top:Se,width:we,height:Ce,radius:0};b(function(Ke){return JSON.stringify(Ke)!==JSON.stringify(Ne)?Ne:Ke})}else b(null)}),X=function(ee){var Se;return(Se=Array.isArray(o==null?void 0:o.offset)?o==null?void 0:o.offset[ee]:o==null?void 0:o.offset)!==null&&Se!==void 0?Se:6};(0,bl.Z)(function(){return R(),window.addEventListener("resize",R),function(){window.removeEventListener("resize",R)}},[f,e,R]);var L=(0,l.useMemo)(function(){if(!p)return p;var U=X(0),ee=X(1),Se=(o==null?void 0:o.radius)||2;return{left:p.left-U,top:p.top-ee,width:p.width+U*2,height:p.height+ee*2,radius:Se}},[p,o]);return[L,f]}var Nu=a(66381),yl={fill:"transparent",pointerEvents:"auto"},Tu=function(e){var o=e.prefixCls,s=e.rootClassName,r=e.pos,m=e.showMask,f=e.style,g=f===void 0?{}:f,v=e.fill,h=v===void 0?"rgba(0,0,0,0.5)":v,p=e.open,b=e.animated,R=e.zIndex,X=(0,Nu.Z)(),L="".concat(o,"-mask-").concat(X),U=(0,Ln.Z)(b)==="object"?b==null?void 0:b.placeholder:b;return l.createElement(Mc.Z,{open:p,autoLock:!0},l.createElement("div",{className:Z()("".concat(o,"-mask"),s),style:(0,N.Z)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:R,pointerEvents:r?"none":"auto"},g)},m?l.createElement("svg",{style:{width:"100%",height:"100%"}},l.createElement("defs",null,l.createElement("mask",{id:L},l.createElement("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"}),r&&l.createElement("rect",{x:r.left,y:r.top,rx:r.radius,width:r.width,height:r.height,fill:"black",className:U?"".concat(o,"-placeholder-animated"):""}))),l.createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:h,mask:"url(#".concat(L,")")}),r&&l.createElement(l.Fragment,null,l.createElement("rect",(0,et.Z)({},yl,{x:"0",y:"0",width:"100%",height:r.top})),l.createElement("rect",(0,et.Z)({},yl,{x:"0",y:"0",width:r.left,height:"100%"})),l.createElement("rect",(0,et.Z)({},yl,{x:"0",y:r.top+r.height,width:"100%",height:"calc(100vh - ".concat(r.top+r.height,"px)")})),l.createElement("rect",(0,et.Z)({},yl,{x:r.left+r.width,y:"0",width:"calc(100vw - ".concat(r.left+r.width,"px)"),height:"100%"})))):null))},Fu=Tu,tf={adjustX:1,adjustY:1},ju=[0,0],Nc={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function Tc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e={};return Object.keys(Nc).forEach(function(o){e[o]=(0,N.Z)((0,N.Z)({},Nc[o]),{},{autoArrow:t,targetOffset:ju})}),e}var nf=Tc();function Au(t){var e=t.prefixCls,o=t.current,s=t.total,r=t.title,m=t.description,f=t.onClose,g=t.onPrev,v=t.onNext,h=t.onFinish,p=t.className,b=t.closeIcon,R=b!==!1&&b!==null,X=b!==void 0&&b!==!0?b:l.createElement("span",{className:"".concat(e,"-close-x")},"\xD7");return l.createElement("div",{className:Z()("".concat(e,"-content"),p)},l.createElement("div",{className:"".concat(e,"-inner")},R&&l.createElement("button",{type:"button",onClick:f,"aria-label":"Close",className:"".concat(e,"-close")},X),l.createElement("div",{className:"".concat(e,"-header")},l.createElement("div",{className:"".concat(e,"-title")},r)),l.createElement("div",{className:"".concat(e,"-description")},m),l.createElement("div",{className:"".concat(e,"-footer")},l.createElement("div",{className:"".concat(e,"-sliders")},s>1?(0,I.Z)(Array.from({length:s}).keys()).map(function(L,U){return l.createElement("span",{key:L,className:U===o?"active":""})}):null),l.createElement("div",{className:"".concat(e,"-buttons")},o!==0?l.createElement("button",{className:"".concat(e,"-prev-btn"),onClick:g},"Prev"):null,o===s-1?l.createElement("button",{className:"".concat(e,"-finish-btn"),onClick:h},"Finish"):l.createElement("button",{className:"".concat(e,"-next-btn"),onClick:v},"Next")))))}var Du=function(e){var o=e.current,s=e.renderPanel;return l.createElement(l.Fragment,null,typeof s=="function"?s(e,o):l.createElement(Au,e))},Lu=Du,Bu=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon"],Hu={left:"50%",top:"50%",width:1,height:1},zu=function(e){var o=e.prefixCls,s=o===void 0?"rc-tour":o,r=e.steps,m=r===void 0?[]:r,f=e.defaultCurrent,g=e.current,v=e.onChange,h=e.onClose,p=e.onFinish,b=e.open,R=e.mask,X=R===void 0?!0:R,L=e.arrow,U=L===void 0?!0:L,ee=e.rootClassName,Se=e.placement,we=e.renderPanel,Ce=e.gap,Ne=e.animated,Ke=e.scrollIntoViewOptions,wt=Ke===void 0?!0:Ke,gt=e.zIndex,Bt=gt===void 0?1001:gt,zt=e.closeIcon,Sn=(0,zn.Z)(e,Bu),gr=l.useRef(),Dn=(0,nt.Z)(0,{value:g,defaultValue:f}),pr=(0,Er.Z)(Dn,2),lr=pr[0],or=pr[1],Ir=(0,nt.Z)(void 0,{value:b,postState:function(Ma){return lr<0||lr>=m.length?!1:Ma!=null?Ma:!0}}),$r=(0,Er.Z)(Ir,2),Sr=$r[0],kr=$r[1],Rr=l.useRef(Sr);(0,bl.Z)(function(){Sr&&!Rr.current&&or(0),Rr.current=Sr},[Sr]);var Vr=m[lr]||{},Dr=Vr.target,ma=Vr.placement,Wr=Vr.style,ra=Vr.arrow,ga=Vr.className,va=Vr.mask,la=Vr.scrollIntoViewOptions,$a=Vr.closeIcon,Ca=Sr&&(va!=null?va:X),pa=$a!=null?$a:zt,Br=la!=null?la:wt,Fn=Mu(Dr,b,Ce,Br),mr=(0,Er.Z)(Fn,2),Pr=mr[0],Zn=mr[1],sr=Ru(Zn,Se,ma),cr=Zn?typeof ra=="undefined"?U:ra:!1,ca=(0,Ln.Z)(cr)==="object"?cr.pointAtCenter:!1;(0,bl.Z)(function(){var Oa;(Oa=gr.current)===null||Oa===void 0||Oa.forceAlign()},[ca,lr]);var xa=function(Ma){or(Ma),v==null||v(Ma)};if(Zn===void 0)return null;var Sa=function(){kr(!1),h==null||h(lr)},Va=function(){return l.createElement(Lu,(0,et.Z)({arrow:cr,key:"content",prefixCls:s,total:m.length,renderPanel:we,onPrev:function(){xa(lr-1)},onNext:function(){xa(lr+1)},onClose:Sa,current:lr,onFinish:function(){Sa(),p==null||p()},closeIcon:pa},m[lr]))},eo=typeof Ca=="boolean"?Ca:!!Ca,Ya=typeof Ca=="boolean"?void 0:Ca,To=function(Ma){return Ma||Zn||document.body};return l.createElement(l.Fragment,null,l.createElement(Fu,{zIndex:Bt,prefixCls:s,pos:Pr,showMask:eo,style:Ya==null?void 0:Ya.style,fill:Ya==null?void 0:Ya.color,open:Sr,animated:Ne,rootClassName:ee}),l.createElement(vl.Z,(0,et.Z)({builtinPlacements:Tc(ca)},Sn,{ref:gr,popupStyle:Wr,popupPlacement:sr,popupVisible:Sr,popupClassName:Z()(ee,ga),prefixCls:s,popup:Va,forceRender:!1,destroyPopupOnHide:!0,zIndex:Bt,getTriggerDOMNode:To,arrow:!!cr}),l.createElement(Mc.Z,{open:Sr,autoLock:!0},l.createElement("div",{className:Z()(ee,"".concat(s,"-target-placeholder")),style:(0,N.Z)((0,N.Z)({},Pr||Hu),{},{position:"fixed",pointerEvents:"none"})}))))},Wu=zu,Vu=Wu,ku=a(44917),Uu=a(37417),tc=a(59848),Ku=a(7551);function nc(t){return t!=null}var Fc=t=>{let{stepProps:e,current:o,type:s,indicatorsRender:r,closeIcon:m}=t;var f,g;const{prefixCls:v,total:h=1,title:p,onClose:b,onPrev:R,onNext:X,onFinish:L,cover:U,description:ee,nextButtonProps:Se,prevButtonProps:we,type:Ce,closeIcon:Ne}=e,Ke=Ce!=null?Ce:s,wt=Ne!=null?Ne:m,gt=wt!==!1&&wt!==null,[Bt,zt]=(0,Ku.Z)(gt,wt,Rr=>l.createElement("span",{onClick:b,"aria-label":"Close",className:`${v}-close`},Rr),l.createElement(cl.Z,{className:`${v}-close-icon`}),!0),Sn=o===h-1,gr=()=>{var Rr;R==null||R(),(Rr=we==null?void 0:we.onClick)===null||Rr===void 0||Rr.call(we)},Dn=()=>{var Rr;Sn?L==null||L():X==null||X(),(Rr=Se==null?void 0:Se.onClick)===null||Rr===void 0||Rr.call(Se)},pr=nc(p)?l.createElement("div",{className:`${v}-header`},l.createElement("div",{className:`${v}-title`},p)):null,lr=nc(ee)?l.createElement("div",{className:`${v}-description`},ee):null,or=nc(U)?l.createElement("div",{className:`${v}-cover`},U):null;let Ir;r?Ir=r(o,h):Ir=(0,I.Z)(Array.from({length:h}).keys()).map((Rr,Vr)=>l.createElement("span",{key:Rr,className:Z()(Vr===o&&`${v}-indicator-active`,`${v}-indicator`)}));const $r=Ke==="primary"?"default":"primary",Sr={type:"default",ghost:Ke==="primary"},[kr]=(0,Fe.Z)("Tour",tc.Z.Tour);return l.createElement("div",{className:`${v}-content`},l.createElement("div",{className:`${v}-inner`},Bt&&zt,or,pr,lr,l.createElement("div",{className:`${v}-footer`},h>1&&l.createElement("div",{className:`${v}-indicators`},Ir),l.createElement("div",{className:`${v}-buttons`},o!==0?l.createElement($t.ZP,Object.assign({},Sr,we,{onClick:gr,size:"small",className:Z()(`${v}-prev-btn`,we==null?void 0:we.className)}),(f=we==null?void 0:we.children)!==null&&f!==void 0?f:kr==null?void 0:kr.Previous):null,l.createElement($t.ZP,Object.assign({type:$r},Se,{onClick:Dn,size:"small",className:Z()(`${v}-next-btn`,Se==null?void 0:Se.className)}),(g=Se==null?void 0:Se.children)!==null&&g!==void 0?g:Sn?kr==null?void 0:kr.Finish:kr==null?void 0:kr.Next)))))},Yu=a(58889),rc=a(42268),Xu=a(22297);const Gu=t=>{const{componentCls:e,lineHeight:o,padding:s,paddingXS:r,borderRadius:m,borderRadiusXS:f,colorPrimary:g,colorText:v,colorFill:h,indicatorHeight:p,indicatorWidth:b,boxShadowTertiary:R,tourZIndexPopup:X,fontSize:L,colorBgElevated:U,fontWeightStrong:ee,marginXS:Se,colorTextLightSolid:we,tourBorderRadius:Ce,colorWhite:Ne,primaryNextBtnHoverBg:Ke,closeBtnSize:wt,motionDurationSlow:gt,antCls:Bt,primaryPrevBtnBg:zt}=t;return[{[e]:Object.assign(Object.assign({},(0,it.Wf)(t)),{color:v,position:"absolute",zIndex:X,display:"block",visibility:"visible",fontSize:L,lineHeight:o,width:520,"--antd-arrow-background-color":U,"&-pure":{maxWidth:"100%",position:"relative"},[`&${e}-hidden`]:{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:Ce,boxShadow:R,position:"relative",backgroundColor:U,border:"none",backgroundClip:"padding-box",[`${e}-close`]:{position:"absolute",top:s,insetInlineEnd:s,color:t.colorIcon,outline:"none",width:wt,height:wt,borderRadius:t.borderRadiusSM,transition:`background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:t.colorIconHover,backgroundColor:t.closeBtnHoverBg}},[`${e}-cover`]:{textAlign:"center",padding:`${(0,H.bf)(t.calc(s).add(wt).add(r).equal())} ${(0,H.bf)(s)} 0`,img:{width:"100%"}},[`${e}-header`]:{padding:`${(0,H.bf)(s)} ${(0,H.bf)(s)} ${(0,H.bf)(r)}`,[`${e}-title`]:{lineHeight:o,fontSize:L,fontWeight:ee}},[`${e}-description`]:{padding:`0 ${(0,H.bf)(s)}`,lineHeight:o,wordWrap:"break-word"},[`${e}-footer`]:{padding:`${(0,H.bf)(r)} ${(0,H.bf)(s)} ${(0,H.bf)(s)}`,textAlign:"end",borderRadius:`0 0 ${(0,H.bf)(f)} ${(0,H.bf)(f)}`,display:"flex",[`${e}-indicators`]:{display:"inline-block",[`${e}-indicator`]:{width:b,height:p,display:"inline-block",borderRadius:"50%",background:h,"&:not(:last-child)":{marginInlineEnd:p},"&-active":{background:g}}},[`${e}-buttons`]:{marginInlineStart:"auto",[`${Bt}-btn`]:{marginInlineStart:Se}}}},[`${e}-primary, &${e}-primary`]:{"--antd-arrow-background-color":g,[`${e}-inner`]:{color:we,textAlign:"start",textDecoration:"none",backgroundColor:g,borderRadius:m,boxShadow:R,[`${e}-close`]:{color:we},[`${e}-indicators`]:{[`${e}-indicator`]:{background:zt,"&-active":{background:we}}},[`${e}-prev-btn`]:{color:we,borderColor:zt,backgroundColor:g,"&:hover":{backgroundColor:zt,borderColor:"transparent"}},[`${e}-next-btn`]:{color:g,borderColor:"transparent",background:Ne,"&:hover":{background:Ke}}}}}),[`${e}-mask`]:{[`${e}-placeholder-animated`]:{transition:`all ${gt}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:t.min(Ce,rc.qN)}}},(0,rc.ZP)(t,"var(--antd-arrow-background-color)")]},Qu=t=>Object.assign(Object.assign({zIndexPopup:t.zIndexPopupBase+70,closeBtnSize:t.fontSize*t.lineHeight,primaryPrevBtnBg:new _o.C(t.colorTextLightSolid).setAlpha(.15).toRgbString(),closeBtnHoverBg:t.wireframe?"transparent":t.colorFillContent,primaryNextBtnHoverBg:new _o.C(t.colorBgTextHover).onBackground(t.colorWhite).toRgbString()},(0,rc.wZ)({contentRadius:t.borderRadiusLG,limitVerticalRadius:!0})),(0,Xu.w)(t));var jc=(0,At.I$)("Tour",t=>{const{borderRadiusLG:e}=t,o=(0,ke.TS)(t,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:e});return[Gu(o)]},Qu),Ju=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,current:o=0,total:s=6,className:r,style:m,type:f}=t,g=Ju(t,["prefixCls","current","total","className","style","type"]),{getPrefixCls:v}=l.useContext(pe.E_),h=v("tour",e),[p,b]=jc(h);return p(l.createElement(Yu.t5,{prefixCls:h,hashId:b,className:Z()(r,`${h}-pure`,f&&`${h}-${f}`),style:m},l.createElement(Fc,{stepProps:Object.assign(Object.assign({},g),{prefixCls:h,total:s}),current:o,type:f})))};var _u=(0,me.i)(qu),ed=function(t,e){var o={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(o[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(t);r{const{prefixCls:e,type:o,rootClassName:s,indicatorsRender:r,steps:m}=t,f=ed(t,["prefixCls","type","rootClassName","indicatorsRender","steps"]),{getPrefixCls:g,direction:v}=(0,l.useContext)(pe.E_),h=g("tour",e),[p,b]=jc(h),[,R]=(0,Zo.ZP)(),X=(0,l.useMemo)(()=>m==null?void 0:m.map(Ce=>{var Ne;return Object.assign(Object.assign({},Ce),{className:Z()(Ce.className,{[`${h}-primary`]:((Ne=Ce.type)!==null&&Ne!==void 0?Ne:o)==="primary"})})}),[m,o]),L=(0,ku.Z)({arrowPointAtCenter:!0,autoAdjustOverflow:!0,offset:R.marginXXS,arrowWidth:R.sizePopupArrow,borderRadius:R.borderRadius}),U=Z()({[`${h}-rtl`]:v==="rtl"},b,s),ee=(Ce,Ne)=>l.createElement(Fc,{type:o,stepProps:Ce,current:Ne,indicatorsRender:r}),[Se,we]=(0,mt.Cn)("Tour",f.zIndex);return p(l.createElement(Uu.Z.Provider,{value:we},l.createElement(Vu,Object.assign({},f,{zIndex:Se,rootClassName:U,prefixCls:h,animated:!0,renderPanel:ee,builtinPlacements:L,steps:X}))))};Ac._InternalPanelDoNotUseOrYouWillBeFired=_u;var td=Ac,Dc=a(85556);const Cl=t=>{const e=new Map;return t.forEach((o,s)=>{e.set(o,s)}),e},nd=t=>{const e=new Map;return t.forEach((o,s)=>{let{disabled:r,key:m}=o;r&&e.set(m,s)}),e};function rd(t,e,o){const s=l.useMemo(()=>(t||[]).map(f=>(e&&(f=Object.assign(Object.assign({},f),{key:e(f)})),f)),[t,e]),[r,m]=l.useMemo(()=>{const f=[],g=new Array((o||[]).length),v=Cl(o||[]);return s.forEach(h=>{v.has(h.key)?g[v.get(h.key)]=h:f.push(h)}),[f,g]},[s,o,e]);return[s,r,m]}var ad=rd;const od=[];function Yo(t,e){const o=t.filter(s=>e.has(s));return t.length===o.length?t:o}function Lc(t){return Array.from(t).join(";")}function id(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:od;const[s,r]=l.useMemo(()=>[new Set(t.map(h=>h.key)),new Set(e.map(h=>h.key))],[t,e]),[m,f]=l.useState(()=>Yo(o,s)),[g,v]=l.useState(()=>Yo(o,r));return l.useEffect(()=>{f(Yo(o,s)),v(Yo(o,r))},[o]),l.useEffect(()=>{f(Yo(m,s)),v(Yo(g,r))},[Lc(s),Lc(r)]),[m,g,f,v]}var ld=a(85824),sd=a(22717),cd=a(39669);const ud=t=>{const{renderedText:e,renderedEl:o,item:s,checked:r,disabled:m,prefixCls:f,onClick:g,onRemove:v,showRemove:h}=t,p=Z()(`${f}-content-item`,{[`${f}-content-item-disabled`]:m||s.disabled,[`${f}-content-item-checked`]:r});let b;(typeof e=="string"||typeof e=="number")&&(b=String(e));const[R]=(0,Fe.Z)("Transfer",tc.Z.Transfer),X={className:p,title:b},L=l.createElement("span",{className:`${f}-content-item-text`},o);return h?l.createElement("li",Object.assign({},X),L,l.createElement(cd.Z,{disabled:m||s.disabled,className:`${f}-content-item-remove`,"aria-label":R==null?void 0:R.remove,onClick:()=>{v==null||v(s)}},l.createElement(sd.Z,null))):(X.onClick=m||s.disabled?void 0:U=>g(s,U),l.createElement("li",Object.assign({},X),l.createElement(dr.Z,{className:`${f}-checkbox`,checked:r,disabled:m||s.disabled}),L))};var dd=l.memo(ud);const fd=["handleFilter","handleClear","checkedKeys"],vd=t=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),t),md=(t,e)=>{const{prefixCls:o,filteredRenderItems:s,selectedKeys:r,disabled:m,showRemove:f,pagination:g,onScroll:v,onItemSelect:h,onItemRemove:p}=t,[b,R]=l.useState(1),X=l.useMemo(()=>g?vd(typeof g=="object"?g:{}):null,[g]),[L,U]=(0,nt.Z)(10,{value:X==null?void 0:X.pageSize});l.useEffect(()=>{if(X){const gt=Math.ceil(s.length/L);R(Math.min(b,gt))}},[s,X,L]);const ee=(gt,Bt)=>{h(gt.key,!r.includes(gt.key),Bt)},Se=gt=>{p==null||p([gt.key])},we=gt=>{R(gt)},Ce=(gt,Bt)=>{R(gt),U(Bt)},Ne=l.useMemo(()=>X?s.slice((b-1)*L,b*L):s,[b,s,X,L]);l.useImperativeHandle(e,()=>({items:Ne}));const Ke=X?l.createElement(ja.Z,{size:"small",disabled:m,simple:X.simple,pageSize:L,showLessItems:X.showLessItems,showSizeChanger:X.showSizeChanger,className:`${o}-pagination`,total:s.length,current:b,onChange:we,onShowSizeChange:Ce}):null,wt=Z()(`${o}-content`,{[`${o}-content-show-remove`]:f});return l.createElement(l.Fragment,null,l.createElement("ul",{className:wt,onScroll:v},(Ne||[]).map(gt=>{let{renderedEl:Bt,renderedText:zt,item:Sn}=gt;return l.createElement(dd,{key:Sn.key,item:Sn,renderedText:zt,renderedEl:Bt,prefixCls:o,showRemove:f,onClick:ee,onRemove:Se,checked:r.includes(Sn.key),disabled:m||Sn.disabled})})),Ke)};var hd=l.forwardRef(md),gd=a(61020),Bc=t=>{const{placeholder:e="",value:o,prefixCls:s,disabled:r,onChange:m,handleClear:f}=t,g=l.useCallback(v=>{m==null||m(v),v.target.value===""&&(f==null||f())},[m]);return l.createElement(io.Z,{placeholder:e,className:s,value:o,onChange:g,disabled:r,allowClear:!0,prefix:l.createElement(gd.Z,null)})};const pd=()=>null;function bd(t){return!!(t&&!(0,It.l$)(t)&&Object.prototype.toString.call(t)==="[object Object]")}function bi(t){return t.filter(e=>!e.disabled).map(e=>e.key)}const yd=t=>t!==void 0;var ac=t=>{const{prefixCls:e,dataSource:o=[],titleText:s="",checkedKeys:r,disabled:m,showSearch:f=!1,style:g,searchPlaceholder:v,notFoundContent:h,selectAll:p,selectCurrent:b,selectInvert:R,removeAll:X,removeCurrent:L,showSelectAll:U=!0,showRemove:ee,pagination:Se,direction:we,itemsUnit:Ce,itemUnit:Ne,selectAllLabel:Ke,selectionsIcon:wt,footer:gt,renderList:Bt,onItemSelectAll:zt,onItemRemove:Sn,handleFilter:gr,handleClear:Dn,filterOption:pr,render:lr=pd}=t,[or,Ir]=(0,l.useState)(""),$r=(0,l.useRef)({}),Sr=Zn=>{Ir(Zn.target.value),gr(Zn)},kr=()=>{Ir(""),Dn()},Rr=(Zn,sr)=>pr?pr(or,sr,we):Zn.includes(or),Vr=Zn=>{let sr=Bt?Bt(Object.assign(Object.assign({},Zn),{onItemSelect:(ca,xa)=>Zn.onItemSelect(ca,xa)})):null;const cr=!!sr;return cr||(sr=l.createElement(hd,Object.assign({ref:$r},Zn))),{customize:cr,bodyContent:sr}},Dr=Zn=>{const sr=lr(Zn),cr=bd(sr);return{item:Zn,renderedEl:cr?sr.label:sr,renderedText:cr?sr.value:sr}},ma=(0,l.useMemo)(()=>Array.isArray(h)?h[we==="left"?0:1]:h,[h,we]),[Wr,ra]=(0,l.useMemo)(()=>{const Zn=[],sr=[];return o.forEach(cr=>{const ca=Dr(cr);or&&!Rr(ca.renderedText,cr)||(Zn.push(cr),sr.push(ca))}),[Zn,sr]},[o,or]),ga=(0,l.useMemo)(()=>{if(r.length===0)return"none";const Zn=Cl(r);return Wr.every(sr=>Zn.has(sr.key)||!!sr.disabled)?"all":"part"},[r,Wr]),va=(0,l.useMemo)(()=>{const Zn=f?l.createElement("div",{className:`${e}-body-search-wrapper`},l.createElement(Bc,{prefixCls:`${e}-search`,onChange:Sr,handleClear:kr,placeholder:v,value:or,disabled:m})):null,{customize:sr,bodyContent:cr}=Vr(Object.assign(Object.assign({},(0,yt.Z)(t,fd)),{filteredItems:Wr,filteredRenderItems:ra,selectedKeys:r}));let ca;return sr?ca=l.createElement("div",{className:`${e}-body-customize-wrapper`},cr):ca=Wr.length?cr:l.createElement("div",{className:`${e}-body-not-found`},ma),l.createElement("div",{className:Z()(f?`${e}-body ${e}-body-with-search`:`${e}-body`)},Zn,ca)},[f,e,v,or,m,r,Wr,ra,ma]),la=l.createElement(dr.Z,{disabled:o.length===0||m,checked:ga==="all",indeterminate:ga==="part",className:`${e}-checkbox`,onChange:()=>{zt==null||zt(Wr.filter(Zn=>!Zn.disabled).map(Zn=>{let{key:sr}=Zn;return sr}),ga!=="all")}}),$a=(Zn,sr)=>{if(Ke)return typeof Ke=="function"?Ke({selectedCount:Zn,totalCount:sr}):Ke;const cr=sr>1?Ce:Ne;return l.createElement(l.Fragment,null,(Zn>0?`${Zn}/`:"")+sr," ",cr)},Ca=gt&&(gt.length<2?gt(t):gt(t,{direction:we})),pa=Z()(e,{[`${e}-with-pagination`]:!!Se,[`${e}-with-footer`]:!!Ca}),Br=Ca?l.createElement("div",{className:`${e}-footer`},Ca):null,Fn=!ee&&!Se&&la;let mr;ee?mr=[Se?{key:"removeCurrent",label:L,onClick(){var Zn;const sr=bi((((Zn=$r.current)===null||Zn===void 0?void 0:Zn.items)||[]).map(cr=>cr.item));Sn==null||Sn(sr)}}:null,{key:"removeAll",label:X,onClick(){Sn==null||Sn(bi(Wr))}}].filter(Boolean):mr=[{key:"selectAll",label:p,onClick(){const Zn=bi(Wr);zt==null||zt(Zn,Zn.length!==r.length)}},Se?{key:"selectCurrent",label:b,onClick(){var Zn;const sr=((Zn=$r.current)===null||Zn===void 0?void 0:Zn.items)||[];zt==null||zt(bi(sr.map(cr=>cr.item)),!0)}}:null,{key:"selectInvert",label:R,onClick(){var Zn;const sr=bi(Se?(((Zn=$r.current)===null||Zn===void 0?void 0:Zn.items)||[]).map(Sa=>Sa.item):Wr),cr=new Set(r),ca=[],xa=[];sr.forEach(Sa=>{cr.has(Sa)?xa.push(Sa):ca.push(Sa)}),zt==null||zt(ca,"replace")}}];const Pr=l.createElement(Qi.Z,{className:`${e}-header-dropdown`,menu:{items:mr},disabled:m},yd(wt)?wt:l.createElement(ld.Z,null));return l.createElement("div",{className:pa,style:g},l.createElement("div",{className:`${e}-header`},U?l.createElement(l.Fragment,null,Fn,Pr):null,l.createElement("span",{className:`${e}-header-selected`},$a(r.length,Wr.length)),l.createElement("span",{className:`${e}-header-title`},s)),va,Br)},Hc=a(70474),zc=t=>{const{disabled:e,moveToLeft:o,moveToRight:s,leftArrowText:r="",rightArrowText:m="",leftActive:f,rightActive:g,className:v,style:h,direction:p,oneWay:b}=t;return l.createElement("div",{className:v,style:h},l.createElement($t.ZP,{type:"primary",size:"small",disabled:e||!g,onClick:s,icon:p!=="rtl"?l.createElement(ta.Z,null):l.createElement(Hc.Z,null)},m),!b&&l.createElement($t.ZP,{type:"primary",size:"small",disabled:e||!f,onClick:o,icon:p!=="rtl"?l.createElement(Hc.Z,null):l.createElement(ta.Z,null)},r))};const Cd=t=>{const{antCls:e,componentCls:o,listHeight:s,controlHeightLG:r,marginXXS:m,margin:f}=t,g=`${e}-table`,v=`${e}-input`;return{[`${o}-customize-list`]:{[`${o}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:s},[`${g}-wrapper`]:{[`${g}-small`]:{border:0,borderRadius:0,[`${g}-selection-column`]:{width:r,minWidth:r}},[`${g}-pagination${g}-pagination`]:{margin:`${(0,H.bf)(f)} 0 ${(0,H.bf)(m)}`}},[`${v}[disabled]`]:{backgroundColor:"transparent"}}}},Wc=(t,e)=>{const{componentCls:o,colorBorder:s}=t;return{[`${o}-list`]:{borderColor:e,"&-search:not([disabled])":{borderColor:s}}}},Sd=t=>{const{componentCls:e}=t;return{[`${e}-status-error`]:Object.assign({},Wc(t,t.colorError)),[`${e}-status-warning`]:Object.assign({},Wc(t,t.colorWarning))}},xd=t=>{const{componentCls:e,colorBorder:o,colorSplit:s,lineWidth:r,itemHeight:m,headerHeight:f,transferHeaderVerticalPadding:g,itemPaddingBlock:v,controlItemBgActive:h,colorTextDisabled:p,listHeight:b,listWidth:R,listWidthLG:X,fontSizeIcon:L,marginXS:U,paddingSM:ee,lineType:Se,antCls:we,iconCls:Ce,motionDurationSlow:Ne,controlItemBgHover:Ke,borderRadiusLG:wt,colorBgContainer:gt,colorText:Bt,controlItemBgActiveHover:zt}=t;return{display:"flex",flexDirection:"column",width:R,height:b,border:`${(0,H.bf)(r)} ${Se} ${o}`,borderRadius:t.borderRadiusLG,"&-with-pagination":{width:X,height:"auto"},"&-search":{[`${Ce}-search`]:{color:p}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:f,padding:`${(0,H.bf)(t.calc(g).sub(r).equal())} ${(0,H.bf)(ee)} ${(0,H.bf)(g)}`,color:Bt,background:gt,borderBottom:`${(0,H.bf)(r)} ${Se} ${s}`,borderRadius:`${(0,H.bf)(wt)} ${(0,H.bf)(wt)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},it.vS),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},(0,it.Ro)()),{fontSize:L,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:t.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:ee}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:m,padding:`${(0,H.bf)(v)} ${(0,H.bf)(ee)}`,transition:`all ${Ne}`,"> *:not(:last-child)":{marginInlineEnd:U},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},it.vS),{flex:"auto"}),"&-remove":{position:"relative",color:o,cursor:"pointer",transition:`all ${Ne}`,"&:hover":{color:t.colorLinkHover},"&::after":{position:"absolute",inset:`-${(0,H.bf)(v)} -50%`,content:'""'}},[`&:not(${e}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:Ke,cursor:"pointer"},[`&${e}-list-content-item-checked:hover`]:{backgroundColor:zt}},"&-checked":{backgroundColor:h},"&-disabled":{color:p,cursor:"not-allowed"}},[`&-show-remove ${e}-list-content-item:not(${e}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${(0,H.bf)(t.paddingXS)} 0`,textAlign:"end",borderTop:`${(0,H.bf)(r)} ${Se} ${s}`,[`${we}-pagination-options`]:{paddingInlineEnd:t.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:p,textAlign:"center"},"&-footer":{borderTop:`${(0,H.bf)(r)} ${Se} ${s}`},"&-checkbox":{lineHeight:1}}},Pd=t=>{const{antCls:e,iconCls:o,componentCls:s,marginXS:r,marginXXS:m,fontSizeIcon:f,colorBgContainerDisabled:g}=t;return{[s]:Object.assign(Object.assign({},(0,it.Wf)(t)),{position:"relative",display:"flex",alignItems:"stretch",[`${s}-disabled`]:{[`${s}-list`]:{background:g}},[`${s}-list`]:xd(t),[`${s}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${(0,H.bf)(r)}`,verticalAlign:"middle",[`${e}-btn`]:{display:"block","&:first-child":{marginBottom:m},[o]:{fontSize:f}}}})}},wd=t=>{const{componentCls:e}=t;return{[`${e}-rtl`]:{direction:"rtl"}}},Ed=t=>{const{fontSize:e,lineHeight:o,controlHeight:s,controlHeightLG:r,lineWidth:m}=t,f=Math.round(e*o);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:r,itemHeight:s,itemPaddingBlock:(s-f)/2,transferHeaderVerticalPadding:Math.ceil((r-m-f)/2)}};var Od=(0,At.I$)("Transfer",t=>{const e=(0,ke.TS)(t);return[Pd(e),Cd(e),Sd(e),wd(e)]},Ed);const Sl=t=>{const{dataSource:e,targetKeys:o=[],selectedKeys:s,selectAllLabels:r=[],operations:m=[],style:f={},listStyle:g={},locale:v={},titles:h,disabled:p,showSearch:b=!1,operationStyle:R,showSelectAll:X,oneWay:L,pagination:U,status:ee,prefixCls:Se,className:we,rootClassName:Ce,selectionsIcon:Ne,filterOption:Ke,render:wt,footer:gt,children:Bt,rowKey:zt,onScroll:Sn,onChange:gr,onSearch:Dn,onSelectChange:pr}=t,{getPrefixCls:lr,renderEmpty:or,direction:Ir,transfer:$r}=(0,l.useContext)(pe.E_),Sr=lr("transfer",Se),[kr,Rr]=Od(Sr),[Vr,Dr,ma]=ad(e,zt,o),[Wr,ra,ga,va]=id(Dr,ma,s),[la,$a]=(0,Dc.Z)(hr=>hr.key),[Ca,pa]=(0,Dc.Z)(hr=>hr.key),Br=(0,l.useCallback)((hr,Hr)=>{if(hr==="left"){const fa=typeof Hr=="function"?Hr(Wr||[]):Hr;ga(fa)}else{const fa=typeof Hr=="function"?Hr(ra||[]):Hr;va(fa)}},[Wr,ra]),Fn=(hr,Hr)=>{(hr==="left"?$a:pa)(Hr)},mr=(0,l.useCallback)((hr,Hr)=>{hr==="left"?pr==null||pr(Hr,ra):pr==null||pr(Wr,Hr)},[Wr,ra]),Pr=hr=>{var Hr;return(Hr=h!=null?h:hr.titles)!==null&&Hr!==void 0?Hr:[]},Zn=hr=>{Sn==null||Sn("left",hr)},sr=hr=>{Sn==null||Sn("right",hr)},cr=hr=>{const Hr=hr==="right"?Wr:ra,fa=nd(Vr),Ha=Hr.filter(ua=>!fa.has(ua)),za=Cl(Ha),co=hr==="right"?Ha.concat(o):o.filter(ua=>!za.has(ua)),uo=hr==="right"?"left":"right";Br(uo,[]),mr(uo,[]),gr==null||gr(co,hr,Ha)},ca=()=>{cr("left"),Fn("left",null)},xa=()=>{cr("right"),Fn("right",null)},Sa=(hr,Hr,fa)=>{Br(hr,Ha=>{let za=[];if(fa==="replace")za=Hr;else if(fa)za=Array.from(new Set([].concat((0,I.Z)(Ha),(0,I.Z)(Hr))));else{const co=Cl(Hr);za=Ha.filter(uo=>!co.has(uo))}return mr(hr,za),za}),Fn(hr,null)},Va=(hr,Hr)=>{Sa("left",hr,Hr)},eo=(hr,Hr)=>{Sa("right",hr,Hr)},Ya=hr=>Dn==null?void 0:Dn("left",hr.target.value),To=hr=>Dn==null?void 0:Dn("right",hr.target.value),Oa=()=>Dn==null?void 0:Dn("left",""),Ma=()=>Dn==null?void 0:Dn("right",""),Xo=(hr,Hr,fa,Ha,za)=>{Hr.has(fa)&&(Hr.delete(fa),Fn(hr,null)),Ha&&(Hr.add(fa),Fn(hr,za))},to=(hr,Hr,fa,Ha)=>{(hr==="left"?la:Ca)(Ha,Hr,fa)},Go=(hr,Hr,fa,Ha)=>{const za=hr==="left",co=(0,I.Z)(za?Wr:ra),uo=new Set(co),ua=(0,I.Z)(za?Dr:ma).filter(da=>!da.disabled),Nr=ua.findIndex(da=>da.key===Hr);Ha&&co.length>0?to(hr,ua,uo,Nr):Xo(hr,uo,Hr,fa,Nr);const Ur=Array.from(uo);mr(hr,Ur),t.selectedKeys||Br(hr,Ur)},wo=(hr,Hr,fa)=>{Go("left",hr,Hr,fa==null?void 0:fa.shiftKey)},ic=(hr,Hr,fa)=>{Go("right",hr,Hr,fa==null?void 0:fa.shiftKey)},lc=hr=>{Br("right",[]),gr==null||gr(o.filter(Hr=>!hr.includes(Hr)),"left",(0,I.Z)(hr))},Fo=hr=>typeof g=="function"?g({direction:hr}):g||{},Eo=(0,l.useContext)(je.aM),{hasFeedback:yi,status:Qo}=Eo,Ci=hr=>Object.assign(Object.assign(Object.assign({},hr),{notFoundContent:(or==null?void 0:or("Transfer"))||l.createElement(Kn.Z,{componentName:"Transfer"})}),v),Si=(0,Ra.F)(Qo,ee),jo=!Bt&&U,sc=ra.length>0,cc=Wr.length>0,Oo=Z()(Sr,{[`${Sr}-disabled`]:p,[`${Sr}-customize-list`]:!!Bt,[`${Sr}-rtl`]:Ir==="rtl"},(0,Ra.Z)(Sr,Si,yi),$r==null?void 0:$r.className,we,Ce,Rr),[xl]=(0,Fe.Z)("Transfer",tc.Z.Transfer),xi=Ci(xl),[Pl,uc]=Pr(xi);return kr(l.createElement("div",{className:Oo,style:Object.assign(Object.assign({},$r==null?void 0:$r.style),f)},l.createElement(ac,Object.assign({prefixCls:`${Sr}-list`,titleText:Pl,dataSource:Dr,filterOption:Ke,style:Fo("left"),checkedKeys:Wr,handleFilter:Ya,handleClear:Oa,onItemSelect:wo,onItemSelectAll:Va,render:wt,showSearch:b,renderList:Bt,footer:gt,onScroll:Zn,disabled:p,direction:Ir==="rtl"?"right":"left",showSelectAll:X,selectAllLabel:r[0],pagination:jo,selectionsIcon:Ne},xi)),l.createElement(zc,{className:`${Sr}-operation`,rightActive:cc,rightArrowText:m[0],moveToRight:xa,leftActive:sc,leftArrowText:m[1],moveToLeft:ca,style:R,disabled:p,direction:Ir,oneWay:L}),l.createElement(ac,Object.assign({prefixCls:`${Sr}-list`,titleText:uc,dataSource:ma,filterOption:Ke,style:Fo("right"),checkedKeys:ra,handleFilter:To,handleClear:Ma,onItemSelect:ic,onItemSelectAll:eo,onItemRemove:lc,render:wt,showSearch:b,renderList:Bt,footer:gt,onScroll:sr,disabled:p,direction:Ir==="rtl"?"left":"right",showSelectAll:X,selectAllLabel:r[1],showRemove:L,pagination:jo,selectionsIcon:Ne},xi))))};Sl.List=ac,Sl.Search=Bc,Sl.Operation=zc;var Zd=Sl,Id=a(57976),$d=a(96238),Rd=a(52058),Md=a(86962),Nd=a(63945),sf=a(6574),cf=function(t){(0,rt.Z)(o,t);var e=(0,Je.Z)(o);function o(){return(0,Pe.Z)(this,o),e.apply(this,arguments)}return(0,De.Z)(o,[{key:"render",value:function(){return this.props.children}}]),o}(l.Component),uf=null,Td=a(63490),Fd={subtree:!0,childList:!0,attributeFilter:["style","class"]};function jd(t,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fd;l.useEffect(function(){if(!(!(0,Td.Z)()||!t)){var s,r=Array.isArray(t)?t:[t];return"MutationObserver"in window&&(s=new MutationObserver(e),r.forEach(function(m){s.observe(m,o)})),function(){var m,f;(m=s)===null||m===void 0||m.takeRecords(),(f=s)===null||f===void 0||f.disconnect()}}},[o,t])}var df=function(e){var o=e.children,s=e.options,r=e.onMutate,m=r===void 0?function(){}:r,f=useEvent(m),g=React.useRef(null),v=React.useRef(null),h=React.isValidElement(o)&&supportRef(o),p=useComposeRef(v,h?o.ref:null),b=React.useState(null),R=_slicedToArray(b,2),X=R[0],L=R[1];return useMutateObserver(X,f,s),useLayoutEffect(function(){L(findDOMNode(v.current)||findDOMNode(g.current))}),o?React.createElement(DomWrapper,{ref:g},h?React.cloneElement(o,{ref:p}):o):null},ff=null,vf=null,Ad=a(81554);const Vc=3;function oc(t,e){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=document.createElement("canvas"),r=s.getContext("2d"),m=t*o,f=e*o;return s.setAttribute("width",`${m}px`),s.setAttribute("height",`${f}px`),r.save(),[r,s,m,f]}function Dd(){function t(e,o,s,r,m,f,g,v){const[h,p,b,R]=oc(r,m,s);if(e instanceof HTMLImageElement)h.drawImage(e,0,0,b,R);else{const{color:Vr,fontSize:Dr,fontStyle:ma,fontWeight:Wr,fontFamily:ra,textAlign:ga}=f,va=Number(Dr)*s;h.font=`${ma} normal ${Wr} ${va}px/${m}px ${ra}`,h.fillStyle=Vr,h.textAlign=ga,h.textBaseline="top";const la=Array.isArray(e)?e:[e];la==null||la.forEach(($a,Ca)=>{h.fillText($a!=null?$a:"",b/2,Ca*(va+Vc*s))})}const X=Math.PI/180*Number(o),L=Math.max(r,m),[U,ee,Se]=oc(L,L,s);U.translate(Se/2,Se/2),U.rotate(X),b>0&&R>0&&U.drawImage(p,-b/2,-R/2);function we(Vr,Dr){const ma=Vr*Math.cos(X)-Dr*Math.sin(X),Wr=Vr*Math.sin(X)+Dr*Math.cos(X);return[ma,Wr]}let Ce=0,Ne=0,Ke=0,wt=0;const gt=b/2,Bt=R/2;[[0-gt,0-Bt],[0+gt,0-Bt],[0+gt,0+Bt],[0-gt,0+Bt]].forEach(Vr=>{let[Dr,ma]=Vr;const[Wr,ra]=we(Dr,ma);Ce=Math.min(Ce,Wr),Ne=Math.max(Ne,Wr),Ke=Math.min(Ke,ra),wt=Math.max(wt,ra)});const Sn=Ce+Se/2,gr=Ke+Se/2,Dn=Ne-Ce,pr=wt-Ke,lr=g*s,or=v*s,Ir=(Dn+lr)*2,$r=pr+or,[Sr,kr]=oc(Ir,$r);function Rr(){let Vr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Sr.drawImage(ee,Sn,gr,Dn,pr,Vr,Dr,Dn,pr)}return Rr(),Rr(Dn+lr,-pr/2-or/2),Rr(Dn+lr,+pr/2+or/2),[kr.toDataURL(),Ir/s,$r/s]}return t}var Ld=a(28449);function Bd(t){const e=l.useRef(!1),o=l.useRef(),s=(0,ae.zX)(t);return()=>{e.current||(e.current=!0,s(),o.current=(0,Ld.Z)(()=>{e.current=!1}))}}function Hd(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function zd(t){return Object.keys(t).map(e=>`${Hd(e)}: ${t[e]};`).join(" ")}function Wd(){return window.devicePixelRatio||1}const Vd=(t,e)=>{let o=!1;return t.removedNodes.length&&(o=Array.from(t.removedNodes).some(s=>e(s))),t.type==="attributes"&&e(t.target)&&(o=!0),o},mf=2,hf=3,kd={visibility:"visible !important"};function Ud(t){const[e]=l.useState(()=>new Map);return[(m,f,g)=>{if(g){if(!e.get(g)){const h=document.createElement("div");e.set(g,h)}const v=e.get(g);v.setAttribute("style",zd(Object.assign(Object.assign(Object.assign({},t),{backgroundImage:`url('${m}')`,backgroundSize:`${Math.floor(f)}px`}),kd))),v.removeAttribute("class"),g.append(v)}},m=>{const f=e.get(m);f&&m&&m.removeChild(f),e.delete(m)},m=>Array.from(e.values()).includes(m)]}function kc(t,e){return t.size===e.size?t:e}const Uc=100,Kc=100;var Kd=t=>{var e,o;const{zIndex:s=9,rotate:r=-22,width:m,height:f,image:g,content:v,font:h={},style:p,className:b,rootClassName:R,gap:X=[Uc,Kc],offset:L,children:U,inherit:ee=!0}=t,[,Se]=(0,Zo.ZP)(),{color:we=Se.colorFill,fontSize:Ce=Se.fontSizeLG,fontWeight:Ne="normal",fontStyle:Ke="normal",fontFamily:wt="sans-serif",textAlign:gt="center"}=h,[Bt=Uc,zt=Kc]=X,Sn=Bt/2,gr=zt/2,Dn=(e=L==null?void 0:L[0])!==null&&e!==void 0?e:Sn,pr=(o=L==null?void 0:L[1])!==null&&o!==void 0?o:gr,lr=l.useMemo(()=>{const Br={zIndex:s,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let Fn=Dn-Sn,mr=pr-gr;return Fn>0&&(Br.left=`${Fn}px`,Br.width=`calc(100% - ${Fn}px)`,Fn=0),mr>0&&(Br.top=`${mr}px`,Br.height=`calc(100% - ${mr}px)`,mr=0),Br.backgroundPosition=`${Fn}px ${mr}px`,Br},[s,Dn,Sn,pr,gr]),[or,Ir]=l.useState(),[$r,Sr]=l.useState(new Set),kr=l.useMemo(()=>{const Br=or?[or]:[];return[].concat(Br,(0,I.Z)(Array.from($r)))},[or,$r]),Rr=Br=>{let Fn=120,mr=64;if(!g&&Br.measureText){Br.font=`${Number(Ce)}px ${wt}`;const Pr=Array.isArray(v)?v:[v],Zn=Pr.map(sr=>{const cr=Br.measureText(sr);return[cr.width,cr.fontBoundingBoxAscent+cr.fontBoundingBoxDescent]});Fn=Math.ceil(Math.max.apply(Math,(0,I.Z)(Zn.map(sr=>sr[0])))),mr=Math.ceil(Math.max.apply(Math,(0,I.Z)(Zn.map(sr=>sr[1]))))*Pr.length+(Pr.length-1)*Vc}return[m!=null?m:Fn,f!=null?f:mr]},Vr=Dd(),[Dr,ma]=l.useState(null),ra=Bd(()=>{const Fn=document.createElement("canvas").getContext("2d");if(Fn){const mr=Wd(),[Pr,Zn]=Rr(Fn),sr=cr=>{const[ca,xa]=Vr(cr||"",r,mr,Pr,Zn,{color:we,fontSize:Ce,fontStyle:Ke,fontWeight:Ne,fontFamily:wt,textAlign:gt},Bt,zt);ma([ca,xa])};if(g){const cr=new Image;cr.onload=()=>{sr(cr)},cr.onerror=()=>{sr(v)},cr.crossOrigin="anonymous",cr.referrerPolicy="no-referrer",cr.src=g}else sr(v)}}),[ga,va,la]=Ud(lr);(0,l.useEffect)(()=>{Dr&&kr.forEach(Br=>{ga(Dr[0],Dr[1],Br)})},[Dr,kr]),jd(kr,Br=>{Br.forEach(Fn=>{Vd(Fn,la)&&ra()})}),(0,l.useEffect)(ra,[r,s,m,f,g,v,we,Ce,Ne,Ke,wt,gt,Bt,zt,Dn,pr]);const Ca=l.useMemo(()=>({add:Br=>{Sr(Fn=>{const mr=new Set(Fn);return mr.add(Br),kc(Fn,mr)})},remove:Br=>{va(Br),Sr(Fn=>{const mr=new Set(Fn);return mr.delete(Br),kc(Fn,mr)})}}),[]),pa=ee?l.createElement(Ad.Z.Provider,{value:Ca},U):U;return l.createElement("div",{ref:Ir,className:Z()(b,R),style:Object.assign({position:"relative"},p)},pa)}},56696:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return Ze}});var i=a(85824),w=a(38126),I=a(50959),l=a(73715),k=a(38782),Z=function(j,Y){return I.createElement(k.Z,(0,w.Z)({},j,{ref:Y,icon:l.Z}))},ae=I.forwardRef(Z),Q=a(84875),K=a.n(Q),ce=a(73273),pe=a(40727),x=a(32682),re=a(10570),Ye=a(47920),z=a(77254);function se(){return typeof BigInt=="function"}function H($){return!$&&$!==0&&!Number.isNaN($)||!String($).trim()}function it($){var j=$.trim(),Y=j.startsWith("-");Y&&(j=j.slice(1)),j=j.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),j.startsWith(".")&&(j="0".concat(j));var Me=j||"0",ze=Me.split("."),ft=ze[0]||"0",vn=ze[1]||"0";ft==="0"&&vn==="0"&&(Y=!1);var _t=Y?"-":"";return{negative:Y,negativeStr:_t,trimStr:Me,integerStr:ft,decimalStr:vn,fullStr:"".concat(_t).concat(Me)}}function At($){var j=String($);return!Number.isNaN(Number(j))&&j.includes("e")}function ke($){var j=String($);if(At($)){var Y=Number(j.slice(j.indexOf("e-")+2)),Me=j.match(/\.(\d+)/);return Me!=null&&Me[1]&&(Y+=Me[1].length),Y}return j.includes(".")&&B(j)?j.length-j.indexOf(".")-1:0}function ut($){var j=String($);if(At($)){if($>Number.MAX_SAFE_INTEGER)return String(se()?BigInt($).toString():Number.MAX_SAFE_INTEGER);if($0&&arguments[0]!==void 0?arguments[0]:!0;return Y?this.isInvalidate()?"":it("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),$}(),mn=function(){function $(j){if((0,Ye.Z)(this,$),(0,ce.Z)(this,"origin",""),(0,ce.Z)(this,"number",void 0),(0,ce.Z)(this,"empty",void 0),H(j)){this.empty=!0;return}this.origin=String(j),this.number=Number(j)}return(0,z.Z)($,[{key:"negate",value:function(){return new $(-this.toNumber())}},{key:"add",value:function(Y){if(this.isInvalidate())return new $(Y);var Me=Number(Y);if(Number.isNaN(Me))return this;var ze=this.number+Me;if(ze>Number.MAX_SAFE_INTEGER)return new $(Number.MAX_SAFE_INTEGER);if(zeNumber.MAX_SAFE_INTEGER)return new $(Number.MAX_SAFE_INTEGER);if(ze0&&arguments[0]!==void 0?arguments[0]:!0;return Y?this.isInvalidate()?"":ut(this.number):this.origin}}]),$}();function jn($){return se()?new tr($):new mn($)}function bn($,j,Y){var Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if($==="")return"";var ze=it($),ft=ze.negativeStr,vn=ze.integerStr,_t=ze.decimalStr,Yt="".concat(j).concat(_t),Tt="".concat(ft).concat(vn);if(Y>=0){var Ut=Number(_t[Y]);if(Ut>=5&&!Me){var dn=jn($).add("".concat(ft,"0.").concat("0".repeat(Y)).concat(10-Ut));return bn(dn.toString(),j,Y,Me)}return Y===0?Tt:"".concat(Tt).concat(j).concat(_t.padEnd(Y,"0").slice(0,Y))}return Yt===".0"?Tt:"".concat(Tt).concat(Yt)}var qt=jn,be=a(41549),Ue=a(77189),Wt=a(12602),an=a(12868);function pt($,j){var Y=(0,I.useRef)(null);function Me(){try{var ft=$.selectionStart,vn=$.selectionEnd,_t=$.value,Yt=_t.substring(0,ft),Tt=_t.substring(vn);Y.current={start:ft,end:vn,value:_t,beforeTxt:Yt,afterTxt:Tt}}catch(Ut){}}function ze(){if($&&Y.current&&j)try{var ft=$.value,vn=Y.current,_t=vn.beforeTxt,Yt=vn.afterTxt,Tt=vn.start,Ut=ft.length;if(ft.endsWith(Yt))Ut=ft.length-Y.current.afterTxt.length;else if(ft.startsWith(_t))Ut=_t.length;else{var dn=_t[Tt-1],Ft=ft.indexOf(dn,Tt-1);Ft!==-1&&(Ut=Ft+1)}$.setSelectionRange(Ut,Ut)}catch(un){(0,an.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(un.message))}}return[Me,ze]}var tt=a(88473),tn=function(){var j=(0,I.useState)(!1),Y=(0,x.Z)(j,2),Me=Y[0],ze=Y[1];return(0,Ue.Z)(function(){ze((0,tt.Z)())},[]),Me},En=tn,Rn=a(28449),On=200,Te=600;function fn($){var j=$.prefixCls,Y=$.upNode,Me=$.downNode,ze=$.upDisabled,ft=$.downDisabled,vn=$.onStep,_t=I.useRef(),Yt=I.useRef([]),Tt=I.useRef();Tt.current=vn;var Ut=function(){clearTimeout(_t.current)},dn=function(Pe,De){Pe.preventDefault(),Ut(),Tt.current(De);function ge(){Tt.current(De),_t.current=setTimeout(ge,On)}_t.current=setTimeout(ge,Te)};I.useEffect(function(){return function(){Ut(),Yt.current.forEach(function(N){return Rn.Z.cancel(N)})}},[]);var Ft=En();if(Ft)return null;var un="".concat(j,"-handler"),ve=K()(un,"".concat(un,"-up"),(0,ce.Z)({},"".concat(un,"-up-disabled"),ze)),Ge=K()(un,"".concat(un,"-down"),(0,ce.Z)({},"".concat(un,"-down-disabled"),ft)),vt=function(){return Yt.current.push((0,Rn.Z)(Ut))},et={unselectable:"on",role:"button",onMouseUp:vt,onMouseLeave:vt};return I.createElement("div",{className:"".concat(un,"-wrap")},I.createElement("span",(0,w.Z)({},et,{onMouseDown:function(Pe){dn(Pe,!0)},"aria-label":"Increase Value","aria-disabled":ze,className:ve}),Y||I.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-up-inner")})),I.createElement("span",(0,w.Z)({},et,{onMouseDown:function(Pe){dn(Pe,!1)},"aria-label":"Decrease Value","aria-disabled":ft,className:Ge}),Me||I.createElement("span",{unselectable:"on",className:"".concat(j,"-handler-down-inner")})))}function T($){var j=typeof $=="number"?ut($):it($).fullStr,Y=j.includes(".");return Y?it(j.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:$+"0"}var A=a(66420),Le=function(){var $=(0,I.useRef)(0),j=function(){Rn.Z.cancel($.current)};return(0,I.useEffect)(function(){return j},[]),function(Y){j(),$.current=(0,Rn.Z)(function(){Y()})}},We=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],qe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],yt=function(j,Y){return j||Y.isEmpty()?Y.toString():Y.toNumber()},me=function(j){var Y=qt(j);return Y.isInvalidate()?null:Y},It=I.forwardRef(function($,j){var Y,Me=$.prefixCls,ze=Me===void 0?"rc-input-number":Me,ft=$.className,vn=$.style,_t=$.min,Yt=$.max,Tt=$.step,Ut=Tt===void 0?1:Tt,dn=$.defaultValue,Ft=$.value,un=$.disabled,ve=$.readOnly,Ge=$.upHandler,vt=$.downHandler,et=$.keyboard,N=$.controls,Pe=N===void 0?!0:N,De=$.classNames,ge=$.stringMode,rt=$.parser,Je=$.formatter,Re=$.precision,Ln=$.decimalSeparator,zn=$.onChange,on=$.onInput,Mn=$.onPressEnter,Wn=$.onStep,Gn=$.changeOnBlur,br=Gn===void 0?!0:Gn,Ae=(0,re.Z)($,We),ue="".concat(ze,"-input"),S=I.useRef(null),G=I.useState(!1),J=(0,x.Z)(G,2),C=J[0],E=J[1],F=I.useRef(!1),W=I.useRef(!1),ne=I.useRef(!1),te=I.useState(function(){return qt(Ft!=null?Ft:dn)}),le=(0,x.Z)(te,2),V=le[0],Oe=le[1];function Ie(ln){Ft===void 0&&Oe(ln)}var at=I.useCallback(function(ln,sn){if(!sn)return Re>=0?Re:Math.max(ke(ln),ke(Ut))},[Re,Ut]),dt=I.useCallback(function(ln){var sn=String(ln);if(rt)return rt(sn);var nn=sn;return Ln&&(nn=nn.replace(Ln,".")),nn.replace(/[^\w.-]+/g,"")},[rt,Ln]),ht=I.useRef(""),Gt=I.useCallback(function(ln,sn){if(Je)return Je(ln,{userTyping:sn,input:String(ht.current)});var nn=typeof ln=="number"?ut(ln):ln;if(!sn){var Jt=at(nn,sn);if(B(nn)&&(Ln||Jt>=0)){var cn=Ln||".";nn=bn(nn,cn,Jt)}}return nn},[Je,at,Ln]),en=I.useState(function(){var ln=dn!=null?dn:Ft;return V.isInvalidate()&&["string","number"].includes((0,pe.Z)(ln))?Number.isNaN(ln)?"":ln:Gt(V.toString(),!1)}),Ht=(0,x.Z)(en,2),ct=Ht[0],Qt=Ht[1];ht.current=ct;function kt(ln,sn){Qt(Gt(ln.isInvalidate()?ln.toString(!1):ln.toString(!sn),sn))}var Et=I.useMemo(function(){return me(Yt)},[Yt,Re]),jt=I.useMemo(function(){return me(_t)},[_t,Re]),Nt=I.useMemo(function(){return!Et||!V||V.isInvalidate()?!1:Et.lessEquals(V)},[Et,V]),xt=I.useMemo(function(){return!jt||!V||V.isInvalidate()?!1:V.lessEquals(jt)},[jt,V]),gn=pt(S.current,C),Bn=(0,x.Z)(gn,2),Vn=Bn[0],Qn=Bn[1],hn=function(sn){return Et&&!sn.lessEquals(Et)?Et:jt&&!jt.lessEquals(sn)?jt:null},qn=function(sn){return!hn(sn)},kn=function(sn,nn){var Jt=sn,cn=qn(Jt)||Jt.isEmpty();if(!Jt.isEmpty()&&!nn&&(Jt=hn(Jt)||Jt,cn=!0),!ve&&!un&&cn){var O=Jt.toString(),D=at(O,nn);return D>=0&&(Jt=qt(bn(O,".",D)),qn(Jt)||(Jt=qt(bn(O,".",D,!0)))),Jt.equals(V)||(Ie(Jt),zn==null||zn(Jt.isEmpty()?null:yt(ge,Jt)),Ft===void 0&&kt(Jt,nn)),Jt}return V},rr=Le(),Un=function ln(sn){if(Vn(),ht.current=sn,Qt(sn),!W.current){var nn=dt(sn),Jt=qt(nn);Jt.isNaN()||kn(Jt,!0)}on==null||on(sn),rr(function(){var cn=sn;rt||(cn=sn.replace(/。/g,".")),cn!==sn&&ln(cn)})},xn=function(){W.current=!0},Hn=function(){W.current=!1,Un(S.current.value)},ir=function(sn){Un(sn.target.value)},ur=function(sn){var nn;if(!(sn&&Nt||!sn&&xt)){F.current=!1;var Jt=qt(ne.current?T(Ut):Ut);sn||(Jt=Jt.negate());var cn=(V||qt(0)).add(Jt.toString()),O=kn(cn,!1);Wn==null||Wn(yt(ge,O),{offset:ne.current?T(Ut):Ut,type:sn?"up":"down"}),(nn=S.current)===null||nn===void 0||nn.focus()}},An=function(sn){var nn=qt(dt(ct)),Jt=nn;nn.isNaN()?Jt=kn(V,sn):Jt=kn(nn,sn),Ft!==void 0?kt(V,!1):Jt.isNaN()||kt(Jt,!1)},In=function(){F.current=!0},$n=function(sn){var nn=sn.key,Jt=sn.shiftKey;F.current=!0,ne.current=Jt,nn==="Enter"&&(W.current||(F.current=!1),An(!1),Mn==null||Mn(sn)),et!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(nn)&&(ur(nn==="Up"||nn==="ArrowUp"),sn.preventDefault())},Ot=function(){F.current=!1,ne.current=!1},Nn=function(){br&&An(!1),E(!1),F.current=!1};return(0,Ue.o)(function(){V.isInvalidate()||kt(V,!1)},[Re,Je]),(0,Ue.o)(function(){var ln=qt(Ft);Oe(ln);var sn=qt(dt(ct));(!ln.equals(sn)||!F.current||Je)&&kt(ln,F.current)},[Ft]),(0,Ue.o)(function(){Je&&Qn()},[ct]),I.createElement("div",{className:K()(ze,De==null?void 0:De.input,ft,(Y={},(0,ce.Z)(Y,"".concat(ze,"-focused"),C),(0,ce.Z)(Y,"".concat(ze,"-disabled"),un),(0,ce.Z)(Y,"".concat(ze,"-readonly"),ve),(0,ce.Z)(Y,"".concat(ze,"-not-a-number"),V.isNaN()),(0,ce.Z)(Y,"".concat(ze,"-out-of-range"),!V.isInvalidate()&&!qn(V)),Y)),style:vn,onFocus:function(){E(!0)},onBlur:Nn,onKeyDown:$n,onKeyUp:Ot,onCompositionStart:xn,onCompositionEnd:Hn,onBeforeInput:In},Pe&&I.createElement(fn,{prefixCls:ze,upNode:Ge,downNode:vt,upDisabled:Nt,downDisabled:xt,onStep:ur}),I.createElement("div",{className:"".concat(ue,"-wrap")},I.createElement("input",(0,w.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":_t,"aria-valuemax":Yt,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:Ut},Ae,{ref:(0,Wt.sQ)(S,j),className:ue,value:ct,onChange:ir,disabled:un,readOnly:ve}))))}),Vt=I.forwardRef(function($,j){var Y=$.disabled,Me=$.style,ze=$.prefixCls,ft=$.value,vn=$.prefix,_t=$.suffix,Yt=$.addonBefore,Tt=$.addonAfter,Ut=$.classes,dn=$.className,Ft=$.classNames,un=(0,re.Z)($,qe),ve=I.useRef(null),Ge=function(et){ve.current&&(0,A.nH)(ve.current,et)};return I.createElement(be.Q,{inputElement:I.createElement(It,(0,w.Z)({prefixCls:ze,disabled:Y,classNames:Ft,ref:(0,Wt.sQ)(ve,j)},un)),className:dn,triggerFocus:Ge,prefixCls:ze,value:ft,disabled:Y,style:Me,prefix:vn,suffix:_t,addonAfter:Tt,addonBefore:Yt,classes:Ut,classNames:Ft,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Vt.displayName="InputNumber";var mt=Vt,Dt=mt,Mt=a(55580),Lt=a(31594),Pn=a(56197),Ee=a(69943),Ve=a(17436),Be=a(1415),Qe=a(21130),St=a(55904),bt=a(6301),P=a(82776),de=a(81501),ye=a(90467),He=a(60076);const _e=($,j)=>{let{componentCls:Y,borderRadiusSM:Me,borderRadiusLG:ze}=$;const ft=j==="lg"?ze:Me;return{[`&-${j}`]:{[`${Y}-handler-wrap`]:{borderStartEndRadius:ft,borderEndEndRadius:ft},[`${Y}-handler-up`]:{borderStartEndRadius:ft},[`${Y}-handler-down`]:{borderEndEndRadius:ft}}}},st=$=>{const{componentCls:j,lineWidth:Y,lineType:Me,colorBorder:ze,borderRadius:ft,fontSizeLG:vn,controlHeightLG:_t,controlHeightSM:Yt,colorError:Tt,paddingInlineSM:Ut,colorTextDescription:dn,motionDurationMid:Ft,handleHoverColor:un,paddingInline:ve,paddingBlock:Ge,handleBg:vt,handleActiveBg:et,colorTextDisabled:N,borderRadiusSM:Pe,borderRadiusLG:De,controlWidth:ge,handleOpacity:rt,handleBorderColor:Je,calc:Re}=$;return[{[j]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,bt.Wf)($)),(0,St.ik)($)),(0,St.bi)($,j)),{display:"inline-block",width:ge,margin:0,padding:0,border:`${(0,He.bf)(Y)} ${Me} ${ze}`,borderRadius:ft,"&-rtl":{direction:"rtl",[`${j}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:vn,borderRadius:De,[`input${j}-input`]:{height:Re(_t).sub(Re(Y).mul(2)).equal()}},"&-sm":{padding:0,borderRadius:Pe,[`input${j}-input`]:{height:Re(Yt).sub(Re(Y).mul(2)).equal(),padding:`0 ${(0,He.bf)(Ut)}`}},"&-out-of-range":{[`${j}-input-wrap`]:{input:{color:Tt}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,bt.Wf)($)),(0,St.s7)($)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${j}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${j}-group-addon`]:{borderRadius:De,fontSize:$.fontSizeLG}},"&-sm":{[`${j}-group-addon`]:{borderRadius:Pe}},[`${j}-wrapper-disabled > ${j}-group-addon`]:Object.assign({},(0,St.Xy)($)),[`&:not(${j}-compact-first-item):not(${j}-compact-last-item)${j}-compact-item`]:{[`${j}, ${j}-group-addon`]:{borderRadius:0}},[`&:not(${j}-compact-last-item)${j}-compact-first-item`]:{[`${j}, ${j}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${j}-compact-first-item)${j}-compact-last-item`]:{[`${j}, ${j}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}),[`&-disabled ${j}-input`]:{cursor:"not-allowed"},[j]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,bt.Wf)($)),{width:"100%",padding:`${(0,He.bf)(Ge)} ${(0,He.bf)(ve)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:ft,outline:0,transition:`all ${Ft} linear`,appearance:"textfield",fontSize:"inherit"}),(0,St.nz)($.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[j]:Object.assign(Object.assign(Object.assign({[`&:hover ${j}-handler-wrap, &-focused ${j}-handler-wrap`]:{opacity:1},[`${j}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:$.handleWidth,height:"100%",background:vt,borderStartStartRadius:0,borderStartEndRadius:ft,borderEndEndRadius:ft,borderEndStartRadius:0,opacity:rt,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Ft} linear ${Ft}`,[`${j}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${j}-handler-up-inner, - ${j}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:$.handleFontSize}}},[`${j}-handler`]:{height:"50%",overflow:"hidden",color:dn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,He.bf)(Y)} ${Me} ${Je}`,transition:`all ${Ft} linear`,"&:active":{background:et},"&:hover":{height:"60%",[` - ${j}-handler-up-inner, - ${j}-handler-down-inner - `]:{color:un}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,bt.Ro)()),{color:dn,transition:`all ${Ft} linear`,userSelect:"none"})},[`${j}-handler-up`]:{borderStartEndRadius:ft},[`${j}-handler-down`]:{borderBlockStart:`${(0,He.bf)(Y)} ${Me} ${Je}`,borderEndEndRadius:ft}},_e($,"lg")),_e($,"sm")),{"&-disabled, &-readonly":{[`${j}-handler-wrap`]:{display:"none"},[`${j}-input`]:{color:"inherit"}},[` - ${j}-handler-up-disabled, - ${j}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${j}-handler-up-disabled:hover &-handler-up-inner, - ${j}-handler-down-disabled:hover &-handler-down-inner - `]:{color:N}})},{[`${j}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${j}-handler-down`]:{borderBlockStartWidth:0}}}]},Ct=$=>{const{componentCls:j,paddingBlock:Y,paddingInline:Me,inputAffixPadding:ze,controlWidth:ft,borderRadiusLG:vn,borderRadiusSM:_t}=$;return{[`${j}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,St.ik)($)),(0,St.bi)($,`${j}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:ft,padding:0,paddingInlineStart:Me,"&-lg":{borderRadius:vn},"&-sm":{borderRadius:_t},[`&:not(${j}-affix-wrapper-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${j}-disabled`]:{background:"transparent"},[`> div${j}`]:{width:"100%",border:"none",outline:"none",[`&${j}-focused`]:{boxShadow:"none !important"}},[`input${j}-input`]:{padding:`${(0,He.bf)(Y)} 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${j}-handler-wrap`]:{zIndex:2},[j]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:ze},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Me,marginInlineStart:ze}}})}},Kt=$=>Object.assign(Object.assign({},(0,St.TM)($)),{controlWidth:90,handleWidth:$.controlHeightSM-$.lineWidth*2,handleFontSize:$.fontSize/2,handleVisible:"auto",handleActiveBg:$.colorFillAlter,handleBg:$.colorBgContainer,handleHoverColor:$.colorPrimary,handleBorderColor:$.colorBorder,handleOpacity:0}),$t=$=>Object.assign(Object.assign({},$),{handleOpacity:$.handleVisible===!0?1:0});var Rt=(0,de.I$)("InputNumber",$=>{const j=(0,ye.TS)($,(0,St.e5)($));return[st(j),Ct(j),(0,P.c)(j)]},Kt,{format:$t,unitless:{handleOpacity:!0}}),lt=a(10254),nt=function($,j){var Y={};for(var Me in $)Object.prototype.hasOwnProperty.call($,Me)&&j.indexOf(Me)<0&&(Y[Me]=$[Me]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Me=Object.getOwnPropertySymbols($);ze{const{getPrefixCls:Y,direction:Me}=I.useContext(Lt.E_),ze=I.useRef(null);I.useImperativeHandle(j,()=>ze.current);const{className:ft,rootClassName:vn,size:_t,disabled:Yt,prefixCls:Tt,addonBefore:Ut,addonAfter:dn,prefix:Ft,bordered:un=!0,readOnly:ve,status:Ge,controls:vt}=$,et=nt($,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),N=Y("input-number",Tt),Pe=(0,lt.Z)(N),[De,ge]=Rt(N,Pe),{compactSize:rt,compactItemClassnames:Je}=(0,Qe.ri)(N,Me);let Re=I.createElement(ae,{className:`${N}-handler-up-inner`}),Ln=I.createElement(i.Z,{className:`${N}-handler-down-inner`});const zn=typeof vt=="boolean"?vt:void 0;typeof vt=="object"&&(Re=typeof vt.upIcon=="undefined"?Re:I.createElement("span",{className:`${N}-handler-up-inner`},vt.upIcon),Ln=typeof vt.downIcon=="undefined"?Ln:I.createElement("span",{className:`${N}-handler-down-inner`},vt.downIcon));const{hasFeedback:on,status:Mn,isFormItemInput:Wn,feedbackIcon:Gn}=I.useContext(Be.aM),br=(0,Mt.F)(Mn,Ge),Ae=(0,Ve.Z)(F=>{var W;return(W=_t!=null?_t:rt)!==null&&W!==void 0?W:F}),ue=I.useContext(Ee.Z),S=Yt!=null?Yt:ue,G=K()({[`${N}-lg`]:Ae==="large",[`${N}-sm`]:Ae==="small",[`${N}-rtl`]:Me==="rtl",[`${N}-borderless`]:!un,[`${N}-in-form-item`]:Wn},(0,Mt.Z)(N,br),ge),J=`${N}-group`,C=on&&I.createElement(I.Fragment,null,Gn),E=I.createElement(Dt,Object.assign({ref:ze,disabled:S,className:K()(Pe,ft,vn,Je),upHandler:Re,downHandler:Ln,prefixCls:N,readOnly:ve,controls:zn,prefix:Ft,suffix:C,addonAfter:dn&&I.createElement(Qe.BR,null,I.createElement(Be.Ux,{override:!0,status:!0},dn)),addonBefore:Ut&&I.createElement(Qe.BR,null,I.createElement(Be.Ux,{override:!0,status:!0},Ut)),classNames:{input:G},classes:{affixWrapper:K()((0,Mt.Z)(`${N}-affix-wrapper`,br,on),{[`${N}-affix-wrapper-sm`]:Ae==="small",[`${N}-affix-wrapper-lg`]:Ae==="large",[`${N}-affix-wrapper-rtl`]:Me==="rtl",[`${N}-affix-wrapper-borderless`]:!un},ge),wrapper:K()({[`${J}-rtl`]:Me==="rtl",[`${N}-wrapper-disabled`]:S},ge),group:K()({[`${N}-group-wrapper-sm`]:Ae==="small",[`${N}-group-wrapper-lg`]:Ae==="large",[`${N}-group-wrapper-rtl`]:Me==="rtl"},(0,Mt.Z)(`${N}-group-wrapper`,br,on),ge)}},et));return De(E)}),je=Fe,fe=$=>I.createElement(Pn.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},I.createElement(Fe,Object.assign({},$)));je._InternalPanelDoNotUseOrYouWillBeFired=fe;var Ze=je},37077:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return be}});var i=a(50959),w=a(39388),I=a(84875),l=a.n(I),k=a(65589),Z=a(57),ae=a(87017),Q=a(94914),K=a(31594),ce=a(82757),pe=a(51942),x=a(99513),re=a(47100),Ye=a(93043),z=a(45449),se=a(59848),H=a(58889),it=a(81501);const At=Ue=>{const{componentCls:Wt,iconCls:an,antCls:pt,zIndexPopup:tt,colorText:tn,colorWarning:En,marginXXS:Rn,marginXS:On,fontSize:Te,fontWeightStrong:fn,colorTextHeading:T}=Ue;return{[Wt]:{zIndex:tt,[`&${pt}-popover`]:{fontSize:Te},[`${Wt}-message`]:{marginBottom:On,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Wt}-message-icon ${an}`]:{color:En,fontSize:Te,lineHeight:1,marginInlineEnd:On},[`${Wt}-title`]:{fontWeight:fn,color:T,"&:only-child":{fontWeight:"normal"}},[`${Wt}-description`]:{marginTop:Rn,color:tn}},[`${Wt}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:On}}}}},ke=Ue=>{const{zIndexPopupBase:Wt}=Ue;return{zIndexPopup:Wt+60}};var ut=(0,it.I$)("Popconfirm",Ue=>At(Ue),ke,{resetStyle:!1}),B=function(Ue,Wt){var an={};for(var pt in Ue)Object.prototype.hasOwnProperty.call(Ue,pt)&&Wt.indexOf(pt)<0&&(an[pt]=Ue[pt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,pt=Object.getOwnPropertySymbols(Ue);tt{const{prefixCls:Wt,okButtonProps:an,cancelButtonProps:pt,title:tt,description:tn,cancelText:En,okText:Rn,okType:On="primary",icon:Te=i.createElement(w.Z,null),showCancel:fn=!0,close:T,onConfirm:A,onCancel:Le,onPopupClick:We}=Ue,{getPrefixCls:qe}=i.useContext(K.E_),[yt]=(0,z.Z)("Popconfirm",se.Z.Popconfirm),me=(0,x.Z)(tt),It=(0,x.Z)(tn);return i.createElement("div",{className:`${Wt}-inner-content`,onClick:We},i.createElement("div",{className:`${Wt}-message`},Te&&i.createElement("span",{className:`${Wt}-message-icon`},Te),i.createElement("div",{className:`${Wt}-message-text`},me&&i.createElement("div",{className:l()(`${Wt}-title`)},me),It&&i.createElement("div",{className:`${Wt}-description`},It))),i.createElement("div",{className:`${Wt}-buttons`},fn&&i.createElement(re.ZP,Object.assign({onClick:Le,size:"small"},pt),En!=null?En:yt==null?void 0:yt.cancelText),i.createElement(pe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,Ye.nx)(On)),an),actionFn:A,close:T,prefixCls:qe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Rn!=null?Rn:yt==null?void 0:yt.okText)))};var jn=Ue=>{const{prefixCls:Wt,placement:an,className:pt,style:tt}=Ue,tn=B(Ue,["prefixCls","placement","className","style"]),{getPrefixCls:En}=i.useContext(K.E_),Rn=En("popconfirm",Wt),[On]=ut(Rn);return On(i.createElement(H.ZP,{placement:an,className:l()(Rn,pt),style:tt,content:i.createElement(tr,Object.assign({prefixCls:Rn},tn))}))},bn=function(Ue,Wt){var an={};for(var pt in Ue)Object.prototype.hasOwnProperty.call(Ue,pt)&&Wt.indexOf(pt)<0&&(an[pt]=Ue[pt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,pt=Object.getOwnPropertySymbols(Ue);tt{var an,pt;const{prefixCls:tt,placement:tn="top",trigger:En="click",okType:Rn="primary",icon:On=i.createElement(w.Z,null),children:Te,overlayClassName:fn,onOpenChange:T,onVisibleChange:A}=Ue,Le=bn(Ue,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),{getPrefixCls:We}=i.useContext(K.E_),[qe,yt]=(0,k.Z)(!1,{value:(an=Ue.open)!==null&&an!==void 0?an:Ue.visible,defaultValue:(pt=Ue.defaultOpen)!==null&&pt!==void 0?pt:Ue.defaultVisible}),me=(Ve,Be)=>{yt(Ve,!0),A==null||A(Ve),T==null||T(Ve,Be)},It=Ve=>{me(!1,Ve)},Vt=Ve=>{var Be;return(Be=Ue.onConfirm)===null||Be===void 0?void 0:Be.call(void 0,Ve)},mt=Ve=>{var Be;me(!1,Ve),(Be=Ue.onCancel)===null||Be===void 0||Be.call(void 0,Ve)},Dt=Ve=>{Ve.keyCode===Z.Z.ESC&&qe&&me(!1,Ve)},Mt=Ve=>{const{disabled:Be=!1}=Ue;Be||me(Ve)},Lt=We("popconfirm",tt),Pn=l()(Lt,fn),[Ee]=ut(Lt);return Ee(i.createElement(ce.Z,Object.assign({},(0,ae.Z)(Le,["title"]),{trigger:En,placement:tn,onOpenChange:Mt,open:qe,ref:Wt,overlayClassName:Pn,content:i.createElement(tr,Object.assign({okType:Rn,icon:On},Ue,{prefixCls:Lt,close:It,onConfirm:Vt,onCancel:mt})),"data-popover-inject":!0}),(0,Q.Tm)(Te,{onKeyDown:Ve=>{var Be,Qe;i.isValidElement(Te)&&((Qe=Te==null?void 0:(Be=Te.props).onKeyDown)===null||Qe===void 0||Qe.call(Be,Ve)),Dt(Ve)}})))});qt._InternalPanelDoNotUseOrYouWillBeFired=jn;var be=qt},37839:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return fn}});var i=a(38126),w=a(50959),I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},l=I,k=a(38782),Z=function(A,Le){return w.createElement(k.Z,(0,i.Z)({},A,{ref:Le,icon:l}))},ae=w.forwardRef(Z),Q=a(84875),K=a.n(Q),ce=a(73273),pe=a(32682),x=a(10570),re=a(65589),Ye=a(57),z=a(68924);function se(T,A){var Le=T.disabled,We=T.prefixCls,qe=T.character,yt=T.characterRender,me=T.index,It=T.count,Vt=T.value,mt=T.allowHalf,Dt=T.focused,Mt=T.onHover,Lt=T.onClick,Pn=function(de){Mt(de,me)},Ee=function(de){Lt(de,me)},Ve=function(de){de.keyCode===Ye.Z.ENTER&&Lt(de,me)},Be=me+1,Qe=new Set([We]);Vt===0&&me===0&&Dt?Qe.add("".concat(We,"-focused")):mt&&Vt+.5>=Be&&Vtme?"true":"false","aria-posinset":me+1,"aria-setsize":It,tabIndex:Le?-1:0},w.createElement("div",{className:"".concat(We,"-first")},St),w.createElement("div",{className:"".concat(We,"-second")},St)));return yt&&(bt=yt(bt,T)),bt}var H=w.forwardRef(se);function it(){var T=w.useRef({});function A(We){return T.current[We]}function Le(We){return function(qe){T.current[We]=qe}}return[A,Le]}function At(T){var A=T.pageXOffset,Le="scrollLeft";if(typeof A!="number"){var We=T.document;A=We.documentElement[Le],typeof A!="number"&&(A=We.body[Le])}return A}function ke(T){var A,Le,We=T.ownerDocument,qe=We.body,yt=We&&We.documentElement,me=T.getBoundingClientRect();return A=me.left,Le=me.top,A-=yt.clientLeft||qe.clientLeft||0,Le-=yt.clientTop||qe.clientTop||0,{left:A,top:Le}}function ut(T){var A=ke(T),Le=T.ownerDocument,We=Le.defaultView||Le.parentWindow;return A.left+=At(We),A.left}var B=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function tr(T,A){var Le,We=T.prefixCls,qe=We===void 0?"rc-rate":We,yt=T.className,me=T.defaultValue,It=T.value,Vt=T.count,mt=Vt===void 0?5:Vt,Dt=T.allowHalf,Mt=Dt===void 0?!1:Dt,Lt=T.allowClear,Pn=Lt===void 0?!0:Lt,Ee=T.character,Ve=Ee===void 0?"\u2605":Ee,Be=T.characterRender,Qe=T.disabled,St=T.direction,bt=St===void 0?"ltr":St,P=T.tabIndex,de=P===void 0?0:P,ye=T.autoFocus,He=T.onHoverChange,_e=T.onChange,st=T.onFocus,Ct=T.onBlur,Kt=T.onKeyDown,$t=T.onMouseLeave,Rt=(0,x.Z)(T,B),lt=it(),nt=(0,pe.Z)(lt,2),Fe=nt[0],je=nt[1],fe=w.useRef(null),Ze=function(){if(!Qe){var on;(on=fe.current)===null||on===void 0||on.focus()}};w.useImperativeHandle(A,function(){return{focus:Ze,blur:function(){if(!Qe){var on;(on=fe.current)===null||on===void 0||on.blur()}}}});var $=(0,re.Z)(me||0,{value:It}),j=(0,pe.Z)($,2),Y=j[0],Me=j[1],ze=(0,re.Z)(null),ft=(0,pe.Z)(ze,2),vn=ft[0],_t=ft[1],Yt=function(on,Mn){var Wn=bt==="rtl",Gn=on+1;if(Mt){var br=Fe(on),Ae=ut(br),ue=br.clientWidth;(Wn&&Mn-Ae>ue/2||!Wn&&Mn-Ae0&&!Wn||Mn===Ye.Z.RIGHT&&Gn>0&&Wn?(Mt?Gn-=.5:Gn-=1,Tt(Gn),on.preventDefault()):Mn===Ye.Z.LEFT&&Gn{const{componentCls:A}=T;return{[`${A}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:T.marginXS},"> div":{transition:`all ${T.motionDurationMid}, outline 0s`,"&:hover":{transform:T.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,an.bf)(T.lineWidth)} dashed ${T.starColor}`,transform:T.starHoverScale}},"&-first, &-second":{color:T.starBg,transition:`all ${T.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${A}-star-first, &-half ${A}-star-second`]:{opacity:1},[`&-half ${A}-star-first, &-full ${A}-star-second`]:{color:"inherit"}}}},tt=T=>({[`&-rtl${T.componentCls}`]:{direction:"rtl"}}),tn=T=>{const{componentCls:A}=T;return{[A]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(T)),{display:"inline-block",margin:0,padding:0,color:T.starColor,fontSize:T.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${A} ${A}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),pt(T)),tt(T))}},En=T=>({starColor:T.yellow6,starSize:T.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:T.colorFillContent});var Rn=(0,Ue.I$)("Rate",T=>{const A=(0,Wt.TS)(T,{});return[tn(A)]},En),On=function(T,A){var Le={};for(var We in T)Object.prototype.hasOwnProperty.call(T,We)&&A.indexOf(We)<0&&(Le[We]=T[We]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,We=Object.getOwnPropertySymbols(T);qe{const{prefixCls:Le,className:We,rootClassName:qe,style:yt,tooltips:me,character:It=w.createElement(ae,null)}=T,Vt=On(T,["prefixCls","className","rootClassName","style","tooltips","character"]),mt=(Qe,St)=>{let{index:bt}=St;return me?w.createElement(qt.Z,{title:me[bt]},Qe):Qe},{getPrefixCls:Dt,direction:Mt,rate:Lt}=w.useContext(bn.E_),Pn=Dt("rate",Le),[Ee,Ve]=Rn(Pn),Be=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),yt);return Ee(w.createElement(jn,Object.assign({ref:A,character:It,characterRender:mt},Vt,{className:K()(We,qe,Ve,Lt==null?void 0:Lt.className),style:Be,prefixCls:Pn,direction:Mt})))})},13362:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return fn}});var i=a(84875),w=a.n(i),I=a(38126),l=a(32682),k=a(10570),Z=a(73273),ae=a(33346),Q=a(40727),K=a(50959),ce=a(65589),pe=a(12602),x=a(87017),re=a(10091),Ye=a(77189),z=function(A){return A?{left:A.offsetLeft,right:A.parentElement.clientWidth-A.clientWidth-A.offsetLeft,width:A.clientWidth}:null},se=function(A){return A!==void 0?"".concat(A,"px"):void 0};function H(T){var A=T.prefixCls,Le=T.containerRef,We=T.value,qe=T.getValueIndex,yt=T.motionName,me=T.onMotionStart,It=T.onMotionEnd,Vt=T.direction,mt=K.useRef(null),Dt=K.useState(We),Mt=(0,l.Z)(Dt,2),Lt=Mt[0],Pn=Mt[1],Ee=function(Rt){var lt,nt=qe(Rt),Fe=(lt=Le.current)===null||lt===void 0?void 0:lt.querySelectorAll(".".concat(A,"-item"))[nt];return(Fe==null?void 0:Fe.offsetParent)&&Fe},Ve=K.useState(null),Be=(0,l.Z)(Ve,2),Qe=Be[0],St=Be[1],bt=K.useState(null),P=(0,l.Z)(bt,2),de=P[0],ye=P[1];(0,Ye.Z)(function(){if(Lt!==We){var $t=Ee(Lt),Rt=Ee(We),lt=z($t),nt=z(Rt);Pn(We),St(lt),ye(nt),$t&&Rt?me():It()}},[We]);var He=K.useMemo(function(){return se(Vt==="rtl"?-(Qe==null?void 0:Qe.right):Qe==null?void 0:Qe.left)},[Vt,Qe]),_e=K.useMemo(function(){return se(Vt==="rtl"?-(de==null?void 0:de.right):de==null?void 0:de.left)},[Vt,de]),st=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},Ct=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},Kt=function(){St(null),ye(null),It()};return!Qe||!de?null:K.createElement(re.ZP,{visible:!0,motionName:yt,motionAppear:!0,onAppearStart:st,onAppearActive:Ct,onVisibleChanged:Kt},function($t,Rt){var lt=$t.className,nt=$t.style,Fe=(0,ae.Z)((0,ae.Z)({},nt),{},{"--thumb-start-left":He,"--thumb-start-width":se(Qe==null?void 0:Qe.width),"--thumb-active-left":_e,"--thumb-active-width":se(de==null?void 0:de.width)}),je={ref:(0,pe.sQ)(mt,Rt),style:Fe,className:w()("".concat(A,"-thumb"),lt)};return K.createElement("div",je)})}var it=["prefixCls","direction","options","disabled","defaultValue","value","onChange","className","motionName"];function At(T){if(typeof T.title!="undefined")return T.title;if((0,Q.Z)(T.label)!=="object"){var A;return(A=T.label)===null||A===void 0?void 0:A.toString()}}function ke(T){return T.map(function(A){if((0,Q.Z)(A)==="object"&&A!==null){var Le=At(A);return(0,ae.Z)((0,ae.Z)({},A),{},{title:Le})}return{label:A==null?void 0:A.toString(),title:A==null?void 0:A.toString(),value:A}})}var ut=function(A){var Le=A.prefixCls,We=A.className,qe=A.disabled,yt=A.checked,me=A.label,It=A.title,Vt=A.value,mt=A.onChange,Dt=function(Lt){qe||mt(Lt,Vt)};return K.createElement("label",{className:w()(We,(0,Z.Z)({},"".concat(Le,"-item-disabled"),qe))},K.createElement("input",{className:"".concat(Le,"-item-input"),type:"radio",disabled:qe,checked:yt,onChange:Dt}),K.createElement("div",{className:"".concat(Le,"-item-label"),title:It},me))},B=K.forwardRef(function(T,A){var Le,We,qe=T.prefixCls,yt=qe===void 0?"rc-segmented":qe,me=T.direction,It=T.options,Vt=T.disabled,mt=T.defaultValue,Dt=T.value,Mt=T.onChange,Lt=T.className,Pn=Lt===void 0?"":Lt,Ee=T.motionName,Ve=Ee===void 0?"thumb-motion":Ee,Be=(0,k.Z)(T,it),Qe=K.useRef(null),St=K.useMemo(function(){return(0,pe.sQ)(Qe,A)},[Qe,A]),bt=K.useMemo(function(){return ke(It)},[It]),P=(0,ce.Z)((Le=bt[0])===null||Le===void 0?void 0:Le.value,{value:Dt,defaultValue:mt}),de=(0,l.Z)(P,2),ye=de[0],He=de[1],_e=K.useState(!1),st=(0,l.Z)(_e,2),Ct=st[0],Kt=st[1],$t=function(nt,Fe){Vt||(He(Fe),Mt==null||Mt(Fe))},Rt=(0,x.Z)(Be,["children"]);return K.createElement("div",(0,I.Z)({},Rt,{className:w()(yt,(We={},(0,Z.Z)(We,"".concat(yt,"-rtl"),me==="rtl"),(0,Z.Z)(We,"".concat(yt,"-disabled"),Vt),We),Pn),ref:St}),K.createElement("div",{className:"".concat(yt,"-group")},K.createElement(H,{prefixCls:yt,value:ye,containerRef:Qe,motionName:"".concat(yt,"-").concat(Ve),direction:me,getValueIndex:function(nt){return bt.findIndex(function(Fe){return Fe.value===nt})},onMotionStart:function(){Kt(!0)},onMotionEnd:function(){Kt(!1)}}),bt.map(function(lt){return K.createElement(ut,(0,I.Z)({},lt,{key:lt.value,prefixCls:yt,className:w()(lt.className,"".concat(yt,"-item"),(0,Z.Z)({},"".concat(yt,"-item-selected"),lt.value===ye&&!Ct)),checked:lt.value===ye,onChange:$t,disabled:!!Vt||!!lt.disabled}))})))});B.displayName="Segmented",B.defaultProps={options:[]};var tr=B,mn=a(31594),jn=a(17436),bn=a(6301),qt=a(81501),be=a(90467),Ue=a(60076);function Wt(T,A){return{[`${T}, ${T}:hover, ${T}:focus`]:{color:A.colorTextDisabled,cursor:"not-allowed"}}}function an(T){return{backgroundColor:T.itemSelectedBg,boxShadow:T.boxShadowTertiary}}const pt=Object.assign({overflow:"hidden"},bn.vS),tt=T=>{const{componentCls:A}=T,Le=T.calc(T.controlHeight).sub(T.calc(T.segmentedPadding).mul(2)).equal(),We=T.calc(T.controlHeightLG).sub(T.calc(T.segmentedPadding).mul(2)).equal(),qe=T.calc(T.controlHeightSM).sub(T.calc(T.segmentedPadding).mul(2)).equal();return{[A]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,bn.Wf)(T)),{display:"inline-block",padding:T.segmentedPadding,color:T.itemColor,backgroundColor:T.segmentedBgColor,borderRadius:T.borderRadius,transition:`all ${T.motionDurationMid} ${T.motionEaseInOut}`,[`${A}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${A}-rtl`]:{direction:"rtl"},[`&${A}-block`]:{display:"flex"},[`&${A}-block ${A}-item`]:{flex:1,minWidth:0},[`${A}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${T.motionDurationMid} ${T.motionEaseInOut}`,borderRadius:T.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},an(T)),{color:T.itemSelectedColor}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${T.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${A}-item-selected):not(${A}-item-disabled)`]:{color:T.itemHoverColor,"&::after":{backgroundColor:T.itemHoverBg}},[`&:active:not(${A}-item-selected):not(${A}-item-disabled)`]:{color:T.itemHoverColor,"&::after":{backgroundColor:T.itemActiveBg}},"&-label":Object.assign({minHeight:Le,lineHeight:(0,Ue.bf)(Le),padding:`0 ${(0,Ue.bf)(T.segmentedPaddingHorizontal)}`},pt),"&-icon + *":{marginInlineStart:T.calc(T.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${A}-thumb`]:Object.assign(Object.assign({},an(T)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,Ue.bf)(T.paddingXXS)} 0`,borderRadius:T.borderRadiusSM,[`& ~ ${A}-item:not(${A}-item-selected):not(${A}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${A}-lg`]:{borderRadius:T.borderRadiusLG,[`${A}-item-label`]:{minHeight:We,lineHeight:(0,Ue.bf)(We),padding:`0 ${(0,Ue.bf)(T.segmentedPaddingHorizontal)}`,fontSize:T.fontSizeLG},[`${A}-item, ${A}-thumb`]:{borderRadius:T.borderRadius}},[`&${A}-sm`]:{borderRadius:T.borderRadiusSM,[`${A}-item-label`]:{minHeight:qe,lineHeight:(0,Ue.bf)(qe),padding:`0 ${(0,Ue.bf)(T.segmentedPaddingHorizontalSM)}`},[`${A}-item, ${A}-thumb`]:{borderRadius:T.borderRadiusXS}}}),Wt(`&-disabled ${A}-item`,T)),Wt(`${A}-item-disabled`,T)),{[`${A}-thumb-motion-appear-active`]:{transition:`transform ${T.motionDurationSlow} ${T.motionEaseInOut}, width ${T.motionDurationSlow} ${T.motionEaseInOut}`,willChange:"transform, width"}})}},tn=T=>{const{colorTextLabel:A,colorText:Le,colorFillSecondary:We,colorBgElevated:qe,colorFill:yt}=T;return{itemColor:A,itemHoverColor:Le,itemHoverBg:We,itemSelectedBg:qe,itemActiveBg:yt,itemSelectedColor:Le}};var En=(0,qt.I$)("Segmented",T=>{const{lineWidth:A,lineWidthBold:Le,colorBgLayout:We,calc:qe}=T,yt=(0,be.TS)(T,{segmentedPadding:Le,segmentedBgColor:We,segmentedPaddingHorizontal:qe(T.controlPaddingHorizontal).sub(A).equal(),segmentedPaddingHorizontalSM:qe(T.controlPaddingHorizontalSM).sub(A).equal()});return[tt(yt)]},tn),Rn=function(T,A){var Le={};for(var We in T)Object.prototype.hasOwnProperty.call(T,We)&&A.indexOf(We)<0&&(Le[We]=T[We]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,We=Object.getOwnPropertySymbols(T);qe{const{prefixCls:Le,className:We,rootClassName:qe,block:yt,options:me=[],size:It="middle",style:Vt}=T,mt=Rn(T,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:Dt,direction:Mt,segmented:Lt}=K.useContext(mn.E_),Pn=Dt("segmented",Le),[Ee,Ve]=En(Pn),Be=(0,jn.Z)(It),Qe=K.useMemo(()=>me.map(P=>{if(On(P)){const{icon:de,label:ye}=P,He=Rn(P,["icon","label"]);return Object.assign(Object.assign({},He),{label:K.createElement(K.Fragment,null,K.createElement("span",{className:`${Pn}-item-icon`},de),ye&&K.createElement("span",null,ye))})}return P}),[me,Pn]),St=w()(We,qe,Lt==null?void 0:Lt.className,{[`${Pn}-block`]:yt,[`${Pn}-sm`]:Be==="small",[`${Pn}-lg`]:Be==="large"},Ve),bt=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),Vt);return Ee(K.createElement(tr,Object.assign({},mt,{className:St,style:bt,options:Qe,ref:A,prefixCls:Pn,direction:Mt})))})},59929:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return bt}});var i=a(50959),w=a(84875),I=a.n(w),l=a(33346),k=a(73273),Z=a(1788),ae=a(32682),Q=a(40727),K=a(65589),ce=a(18342),pe=a(12868),x=i.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),re=x,Ye=a(38126),z=a(10570),se=a(57);function H(P,de,ye){return(P-de)/(ye-de)}function it(P,de,ye,He){var _e=H(de,ye,He),st={};switch(P){case"rtl":st.right="".concat(_e*100,"%"),st.transform="translateX(50%)";break;case"btt":st.bottom="".concat(_e*100,"%"),st.transform="translateY(50%)";break;case"ttb":st.top="".concat(_e*100,"%"),st.transform="translateY(-50%)";break;default:st.left="".concat(_e*100,"%"),st.transform="translateX(-50%)";break}return st}function At(P,de){return Array.isArray(P)?P[de]:P}var ke=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete"],ut=i.forwardRef(function(P,de){var ye,He,_e=P.prefixCls,st=P.value,Ct=P.valueIndex,Kt=P.onStartMove,$t=P.style,Rt=P.render,lt=P.dragging,nt=P.onOffsetChange,Fe=P.onChangeComplete,je=(0,z.Z)(P,ke),fe=i.useContext(re),Ze=fe.min,$=fe.max,j=fe.direction,Y=fe.disabled,Me=fe.keyboard,ze=fe.range,ft=fe.tabIndex,vn=fe.ariaLabelForHandle,_t=fe.ariaLabelledByForHandle,Yt=fe.ariaValueTextFormatterForHandle,Tt=fe.styles,Ut=fe.classNames,dn="".concat(_e,"-handle"),Ft=function(N){Y||Kt(N,Ct)},un=function(N){if(!Y&&Me){var Pe=null;switch(N.which||N.keyCode){case se.Z.LEFT:Pe=j==="ltr"||j==="btt"?-1:1;break;case se.Z.RIGHT:Pe=j==="ltr"||j==="btt"?1:-1;break;case se.Z.UP:Pe=j!=="ttb"?1:-1;break;case se.Z.DOWN:Pe=j!=="ttb"?-1:1;break;case se.Z.HOME:Pe="min";break;case se.Z.END:Pe="max";break;case se.Z.PAGE_UP:Pe=2;break;case se.Z.PAGE_DOWN:Pe=-2;break}Pe!==null&&(N.preventDefault(),nt(Pe,Ct))}},ve=function(N){switch(N.which||N.keyCode){case se.Z.LEFT:case se.Z.RIGHT:case se.Z.UP:case se.Z.DOWN:case se.Z.HOME:case se.Z.END:case se.Z.PAGE_UP:case se.Z.PAGE_DOWN:Fe==null||Fe();break}},Ge=it(j,st,Ze,$),vt=i.createElement("div",(0,Ye.Z)({ref:de,className:I()(dn,(ye={},(0,k.Z)(ye,"".concat(dn,"-").concat(Ct+1),ze),(0,k.Z)(ye,"".concat(dn,"-dragging"),lt),ye),Ut.handle),style:(0,l.Z)((0,l.Z)((0,l.Z)({},Ge),$t),Tt.handle),onMouseDown:Ft,onTouchStart:Ft,onKeyDown:un,onKeyUp:ve,tabIndex:Y?null:At(ft,Ct),role:"slider","aria-valuemin":Ze,"aria-valuemax":$,"aria-valuenow":st,"aria-disabled":Y,"aria-label":At(vn,Ct),"aria-labelledby":At(_t,Ct),"aria-valuetext":(He=At(Yt,Ct))===null||He===void 0?void 0:He(st),"aria-orientation":j==="ltr"||j==="rtl"?"horizontal":"vertical"},je));return Rt&&(vt=Rt(vt,{index:Ct,prefixCls:_e,value:st,dragging:lt})),vt}),B=ut,tr=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],mn=i.forwardRef(function(P,de){var ye=P.prefixCls,He=P.style,_e=P.onStartMove,st=P.onOffsetChange,Ct=P.values,Kt=P.handleRender,$t=P.draggingIndex,Rt=(0,z.Z)(P,tr),lt=i.useRef({});return i.useImperativeHandle(de,function(){return{focus:function(Fe){var je;(je=lt.current[Fe])===null||je===void 0||je.focus()}}}),i.createElement(i.Fragment,null,Ct.map(function(nt,Fe){return i.createElement(B,(0,Ye.Z)({ref:function(fe){fe?lt.current[Fe]=fe:delete lt.current[Fe]},dragging:$t===Fe,prefixCls:ye,style:At(He,Fe),key:Fe,value:nt,valueIndex:Fe,onStartMove:_e,onOffsetChange:st,render:Kt},Rt))}))}),jn=mn;function bn(P){var de="touches"in P?P.touches[0]:P;return{pageX:de.pageX,pageY:de.pageY}}function qt(P,de,ye,He,_e,st,Ct,Kt,$t){var Rt=i.useState(null),lt=(0,ae.Z)(Rt,2),nt=lt[0],Fe=lt[1],je=i.useState(-1),fe=(0,ae.Z)(je,2),Ze=fe[0],$=fe[1],j=i.useState(ye),Y=(0,ae.Z)(j,2),Me=Y[0],ze=Y[1],ft=i.useState(ye),vn=(0,ae.Z)(ft,2),_t=vn[0],Yt=vn[1],Tt=i.useRef(null),Ut=i.useRef(null);i.useEffect(function(){Ze===-1&&ze(ye)},[ye,Ze]),i.useEffect(function(){return function(){document.removeEventListener("mousemove",Tt.current),document.removeEventListener("mouseup",Ut.current),document.removeEventListener("touchmove",Tt.current),document.removeEventListener("touchend",Ut.current)}},[]);var dn=function(et,N){Me.some(function(Pe,De){return Pe!==et[De]})&&(N!==void 0&&Fe(N),ze(et),Ct(et))},Ft=function(et,N){if(et===-1){var Pe=_t[0],De=_t[_t.length-1],ge=He-Pe,rt=_e-De,Je=N*(_e-He);Je=Math.max(Je,ge),Je=Math.min(Je,rt);var Re=st(Pe+Je);Je=Re-Pe;var Ln=_t.map(function(Wn){return Wn+Je});dn(Ln)}else{var zn=(_e-He)*N,on=(0,Z.Z)(Me);on[et]=_t[et];var Mn=$t(on,zn,et,"dist");dn(Mn.values,Mn.value)}},un=i.useRef(Ft);un.current=Ft;var ve=function(et,N,Pe){et.stopPropagation();var De=Pe||ye,ge=De[N];$(N),Fe(ge),Yt(De);var rt=bn(et),Je=rt.pageX,Re=rt.pageY,Ln=function(Mn){Mn.preventDefault();var Wn=bn(Mn),Gn=Wn.pageX,br=Wn.pageY,Ae=Gn-Je,ue=br-Re,S=P.current.getBoundingClientRect(),G=S.width,J=S.height,C;switch(de){case"btt":C=-ue/J;break;case"ttb":C=ue/J;break;case"rtl":C=-Ae/G;break;default:C=Ae/G}un.current(N,C)},zn=function on(Mn){Mn.preventDefault(),document.removeEventListener("mouseup",on),document.removeEventListener("mousemove",Ln),document.removeEventListener("touchend",on),document.removeEventListener("touchmove",Ln),Tt.current=null,Ut.current=null,$(-1),Kt()};document.addEventListener("mouseup",zn),document.addEventListener("mousemove",Ln),document.addEventListener("touchend",zn),document.addEventListener("touchmove",Ln),Tt.current=Ln,Ut.current=zn},Ge=i.useMemo(function(){var vt=(0,Z.Z)(ye).sort(function(N,Pe){return N-Pe}),et=(0,Z.Z)(Me).sort(function(N,Pe){return N-Pe});return vt.every(function(N,Pe){return N===et[Pe]})?Me:ye},[ye,Me]);return[Ze,nt,Ge,ve]}function be(P,de,ye,He,_e,st){var Ct=i.useCallback(function(je){var fe=isFinite(je)?je:P;return fe=Math.min(de,je),fe=Math.max(P,fe),fe},[P,de]),Kt=i.useCallback(function(je){if(ye!==null){var fe=P+Math.round((Ct(je)-P)/ye)*ye,Ze=function(Me){return(String(Me).split(".")[1]||"").length},$=Math.max(Ze(ye),Ze(de),Ze(P)),j=Number(fe.toFixed($));return P<=j&&j<=de?j:null}return null},[ye,P,de,Ct]),$t=i.useCallback(function(je){var fe=Ct(je),Ze=He.map(function(Y){return Y.value});ye!==null&&Ze.push(Kt(je)),Ze.push(P,de);var $=Ze[0],j=de-P;return Ze.forEach(function(Y){var Me=Math.abs(fe-Y);Me<=j&&($=Y,j=Me)}),$},[P,de,He,ye,Ct,Kt]),Rt=function je(fe,Ze,$){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Ze=="number"){var Y,Me=fe[$],ze=Me+Ze,ft=[];He.forEach(function(Ut){ft.push(Ut.value)}),ft.push(P,de),ft.push(Kt(Me));var vn=Ze>0?1:-1;j==="unit"?ft.push(Kt(Me+vn*ye)):ft.push(Kt(ze)),ft=ft.filter(function(Ut){return Ut!==null}).filter(function(Ut){return Ze<0?Ut<=Me:Ut>=Me}),j==="unit"&&(ft=ft.filter(function(Ut){return Ut!==Me}));var _t=j==="unit"?Me:ze;Y=ft[0];var Yt=Math.abs(Y-_t);if(ft.forEach(function(Ut){var dn=Math.abs(Ut-_t);dn1){var Tt=(0,Z.Z)(fe);return Tt[$]=Y,je(Tt,Ze-vn,$,j)}return Y}else{if(Ze==="min")return P;if(Ze==="max")return de}},lt=function(fe,Ze,$){var j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",Y=fe[$],Me=Rt(fe,Ze,$,j);return{value:Me,changed:Me!==Y}},nt=function(fe){return st===null&&fe===0||typeof st=="number"&&fe3&&arguments[3]!==void 0?arguments[3]:"unit",Y=fe.map($t),Me=Y[$],ze=Rt(Y,Ze,$,j);if(Y[$]=ze,_e===!1){var ft=st||0;$>0&&Y[$-1]!==Me&&(Y[$]=Math.max(Y[$],Y[$-1]+ft)),$0;Tt-=1)for(var Ut=!0;nt(Y[Tt]-Y[Tt-1])&&Ut;){var dn=lt(Y,-1,Tt-1);Y[Tt-1]=dn.value,Ut=dn.changed}for(var Ft=Y.length-1;Ft>0;Ft-=1)for(var un=!0;nt(Y[Ft]-Y[Ft-1])&&un;){var ve=lt(Y,-1,Ft-1);Y[Ft-1]=ve.value,un=ve.changed}for(var Ge=0;Ge=0?et:!1},[et,te]),V=i.useMemo(function(){var nn=Object.keys(Wn||{});return nn.map(function(Jt){var cn=Wn[Jt],O={value:Number(Jt)};return cn&&(0,Q.Z)(cn)==="object"&&!i.isValidElement(cn)&&("label"in cn||"style"in cn)?(O.style=cn.style,O.label=cn.label):O.label=cn,O}).filter(function(Jt){var cn=Jt.label;return cn||typeof cn=="number"}).sort(function(Jt,cn){return Jt.value-cn.value})},[Wn]),Oe=be(W,ne,te,V,Ge,le),Ie=(0,ae.Z)(Oe,2),at=Ie[0],dt=Ie[1],ht=(0,K.Z)(_t,{value:vn}),Gt=(0,ae.Z)(ht,2),en=Gt[0],Ht=Gt[1],ct=i.useMemo(function(){var nn=en==null?[]:Array.isArray(en)?en:[en],Jt=(0,ae.Z)(nn,1),cn=Jt[0],O=cn===void 0?W:cn,D=en===null?[]:[O];if(Yt){if(D=(0,Z.Z)(nn),Tt||en===void 0){var oe=Tt>=0?Tt+1:2;for(D=D.slice(0,oe);D.length=0&&C.current.focus(nn)}xn(null)},[Un]);var ir=i.useMemo(function(){return N&&te===null?!1:N},[N,te]),ur=function(Jt,cn){Qn(Jt,cn),dn==null||dn(kt(Qt.current))},An=gn!==-1;i.useEffect(function(){if(!An){var nn=ct.lastIndexOf(Bn);C.current.focus(nn)}},[An]);var In=i.useMemo(function(){return(0,Z.Z)(Vn).sort(function(nn,Jt){return nn-Jt})},[Vn]),$n=i.useMemo(function(){return Yt?[In[0],In[In.length-1]]:[W,In[0]]},[In,Yt,W]),Ot=(0,ae.Z)($n,2),Nn=Ot[0],ln=Ot[1];i.useImperativeHandle(de,function(){return{focus:function(){C.current.focus(0)},blur:function(){var Jt=document,cn=Jt.activeElement;E.current.contains(cn)&&(cn==null||cn.blur())}}}),i.useEffect(function(){je&&C.current.focus(0)},[]);var sn=i.useMemo(function(){return{min:W,max:ne,direction:F,disabled:lt,keyboard:Fe,step:te,included:rt,includedStart:Nn,includedEnd:ln,range:Yt,tabIndex:ue,ariaLabelForHandle:S,ariaLabelledByForHandle:G,ariaValueTextFormatterForHandle:J,styles:$t||{},classNames:Kt||{}}},[W,ne,F,lt,Fe,te,rt,Nn,ln,Yt,ue,S,G,J,$t,Kt]);return i.createElement(re.Provider,{value:sn},i.createElement("div",{ref:E,className:I()(_e,st,(ye={},(0,k.Z)(ye,"".concat(_e,"-disabled"),lt),(0,k.Z)(ye,"".concat(_e,"-vertical"),De),(0,k.Z)(ye,"".concat(_e,"-horizontal"),!De),(0,k.Z)(ye,"".concat(_e,"-with-marks"),V.length),ye)),style:Ct,onMouseDown:qn},i.createElement("div",{className:I()("".concat(_e,"-rail"),Kt==null?void 0:Kt.rail),style:(0,l.Z)((0,l.Z)({},zn),$t==null?void 0:$t.rail)}),i.createElement(tn,{prefixCls:_e,style:Re,values:In,startPoint:Je,onStartMove:ir?ur:null}),i.createElement(pt,{prefixCls:_e,marks:V,dots:Gn,style:on,activeStyle:Mn}),i.createElement(jn,{ref:C,prefixCls:_e,style:Ln,values:Vn,draggingIndex:gn,onStartMove:ur,onOffsetChange:Hn,onFocus:fe,onBlur:Ze,handleRender:br,onChangeComplete:jt}),i.createElement(Wt,{prefixCls:_e,marks:V,onClick:hn})))}),Rn=En,On=Rn,Te=a(31594),fn=a(69943),T=a(28449),A=a(12602),Le=a(32618),qe=i.forwardRef((P,de)=>{const{open:ye}=P,He=(0,i.useRef)(null),_e=(0,i.useRef)(null);function st(){T.Z.cancel(_e.current),_e.current=null}function Ct(){_e.current=(0,T.Z)(()=>{var Kt;(Kt=He.current)===null||Kt===void 0||Kt.forceAlign(),_e.current=null})}return i.useEffect(()=>(ye?Ct():st(),st),[ye,P.title]),i.createElement(Le.Z,Object.assign({ref:(0,A.sQ)(He,de)},P))}),yt=a(99978),me=a(6301),It=a(81501),Vt=a(90467),mt=a(60076);const Dt=P=>{const{componentCls:de,antCls:ye,controlSize:He,dotSize:_e,marginFull:st,marginPart:Ct,colorFillContentHover:Kt,handleColorDisabled:$t,calc:Rt}=P;return{[de]:Object.assign(Object.assign({},(0,me.Wf)(P)),{position:"relative",height:He,margin:`${(0,mt.bf)(Ct)} ${(0,mt.bf)(st)}`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${(0,mt.bf)(st)} ${(0,mt.bf)(Ct)}`},[`${de}-rail`]:{position:"absolute",backgroundColor:P.railBg,borderRadius:P.borderRadiusXS,transition:`background-color ${P.motionDurationMid}`},[`${de}-track,${de}-tracks`]:{position:"absolute",transition:`background-color ${P.motionDurationMid}`},[`${de}-track`]:{backgroundColor:P.trackBg,borderRadius:P.borderRadiusXS},[`${de}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${de}-rail`]:{backgroundColor:P.railHoverBg},[`${de}-track`]:{backgroundColor:P.trackHoverBg},[`${de}-dot`]:{borderColor:Kt},[`${de}-handle::after`]:{boxShadow:`0 0 0 ${(0,mt.bf)(P.handleLineWidth)} ${P.colorPrimaryBorderHover}`},[`${de}-dot-active`]:{borderColor:P.dotActiveBorderColor}},[`${de}-handle`]:{position:"absolute",width:P.handleSize,height:P.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:Rt(P.handleLineWidth).mul(-1).equal(),insetBlockStart:Rt(P.handleLineWidth).mul(-1).equal(),width:Rt(P.handleSize).add(Rt(P.handleLineWidth).mul(2)).equal(),height:Rt(P.handleSize).add(Rt(P.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:P.handleSize,height:P.handleSize,backgroundColor:P.colorBgElevated,boxShadow:`0 0 0 ${(0,mt.bf)(P.handleLineWidth)} ${P.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${P.motionDurationMid}, - inset-block-start ${P.motionDurationMid}, - width ${P.motionDurationMid}, - height ${P.motionDurationMid}, - box-shadow ${P.motionDurationMid} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:Rt(P.handleSizeHover).sub(P.handleSize).div(2).add(P.handleLineWidthHover).mul(-1).equal(),insetBlockStart:Rt(P.handleSizeHover).sub(P.handleSize).div(2).add(P.handleLineWidthHover).mul(-1).equal(),width:Rt(P.handleSizeHover).add(Rt(P.handleLineWidthHover).mul(2)).equal(),height:Rt(P.handleSizeHover).add(Rt(P.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,mt.bf)(P.handleLineWidthHover)} ${P.handleActiveColor}`,width:P.handleSizeHover,height:P.handleSizeHover,insetInlineStart:P.calc(P.handleSize).sub(P.handleSizeHover).div(2).equal(),insetBlockStart:P.calc(P.handleSize).sub(P.handleSizeHover).div(2).equal()}}},[`${de}-mark`]:{position:"absolute",fontSize:P.fontSize},[`${de}-mark-text`]:{position:"absolute",display:"inline-block",color:P.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:P.colorText}},[`${de}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${de}-dot`]:{position:"absolute",width:_e,height:_e,backgroundColor:P.colorBgElevated,border:`${(0,mt.bf)(P.handleLineWidth)} solid ${P.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${P.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:P.dotActiveBorderColor}},[`&${de}-disabled`]:{cursor:"not-allowed",[`${de}-rail`]:{backgroundColor:`${P.railBg} !important`},[`${de}-track`]:{backgroundColor:`${P.trackBgDisabled} !important`},[` - ${de}-dot - `]:{backgroundColor:P.colorBgElevated,borderColor:P.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${de}-handle::after`]:{backgroundColor:P.colorBgElevated,cursor:"not-allowed",width:P.handleSize,height:P.handleSize,boxShadow:`0 0 0 ${(0,mt.bf)(P.handleLineWidth)} ${$t}`,insetInlineStart:0,insetBlockStart:0},[` - ${de}-mark-text, - ${de}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${ye}-tooltip-inner`]:{minWidth:"unset"}})}},Mt=(P,de)=>{const{componentCls:ye,railSize:He,handleSize:_e,dotSize:st,marginFull:Ct,calc:Kt}=P,$t=de?"paddingBlock":"paddingInline",Rt=de?"width":"height",lt=de?"height":"width",nt=de?"insetBlockStart":"insetInlineStart",Fe=de?"top":"insetInlineStart",je=Kt(He).mul(3).sub(_e).div(2).equal(),fe=Kt(_e).sub(He).div(2).equal(),Ze=de?{borderWidth:`${(0,mt.bf)(fe)} 0`,transform:`translateY(${(0,mt.bf)(Kt(fe).mul(-1).equal())})`}:{borderWidth:`0 ${(0,mt.bf)(fe)}`,transform:`translateX(${(0,mt.bf)(P.calc(fe).mul(-1).equal())})`};return{[$t]:He,[lt]:Kt(He).mul(3).equal(),[`${ye}-rail`]:{[Rt]:"100%",[lt]:He},[`${ye}-track,${ye}-tracks`]:{[lt]:He},[`${ye}-track-draggable`]:Object.assign({},Ze),[`${ye}-handle`]:{[nt]:je},[`${ye}-mark`]:{insetInlineStart:0,top:0,[Fe]:Kt(He).mul(3).add(de?0:Ct).equal(),[Rt]:"100%"},[`${ye}-step`]:{insetInlineStart:0,top:0,[Fe]:He,[Rt]:"100%",[lt]:He},[`${ye}-dot`]:{position:"absolute",[nt]:Kt(He).sub(st).div(2).equal()}}},Lt=P=>{const{componentCls:de,marginPartWithMark:ye}=P;return{[`${de}-horizontal`]:Object.assign(Object.assign({},Mt(P,!0)),{[`&${de}-with-marks`]:{marginBottom:ye}})}},Pn=P=>{const{componentCls:de}=P;return{[`${de}-vertical`]:Object.assign(Object.assign({},Mt(P,!1)),{height:"100%"})}},Ee=P=>{const ye=P.controlHeightLG/4,He=P.controlHeightSM/2,_e=P.lineWidth+1,st=P.lineWidth+1*3;return{controlSize:ye,railSize:4,handleSize:ye,handleSizeHover:He,dotSize:8,handleLineWidth:_e,handleLineWidthHover:st,railBg:P.colorFillTertiary,railHoverBg:P.colorFillSecondary,trackBg:P.colorPrimaryBorder,trackHoverBg:P.colorPrimaryBorderHover,handleColor:P.colorPrimaryBorder,handleActiveColor:P.colorPrimary,handleColorDisabled:new yt.C(P.colorTextDisabled).onBackground(P.colorBgContainer).toHexShortString(),dotBorderColor:P.colorBorderSecondary,dotActiveBorderColor:P.colorPrimaryBorder,trackBgDisabled:P.colorBgContainerDisabled}};var Ve=(0,It.I$)("Slider",P=>{const de=(0,Vt.TS)(P,{marginPart:P.calc(P.controlHeight).sub(P.controlSize).div(2).equal(),marginFull:P.calc(P.controlSize).div(2).equal(),marginPartWithMark:P.calc(P.controlHeightLG).sub(P.controlSize).equal()});return[Dt(de),Lt(de),Pn(de)]},Ee),Be=function(P,de){var ye={};for(var He in P)Object.prototype.hasOwnProperty.call(P,He)&&de.indexOf(He)<0&&(ye[He]=P[He]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,He=Object.getOwnPropertySymbols(P);_etypeof ye=="number"?ye.toString():""}var bt=i.forwardRef((P,de)=>{const{prefixCls:ye,range:He,className:_e,rootClassName:st,style:Ct,disabled:Kt,tooltipPrefixCls:$t,tipFormatter:Rt,tooltipVisible:lt,getTooltipPopupContainer:nt,tooltipPlacement:Fe}=P,je=Be(P,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:fe,slider:Ze,getPrefixCls:$,getPopupContainer:j}=i.useContext(Te.E_),Y=i.useContext(fn.Z),Me=Kt!=null?Kt:Y,[ze,ft]=i.useState({}),vn=(vt,et)=>{ft(N=>Object.assign(Object.assign({},N),{[vt]:et}))},_t=(vt,et)=>vt||(et?fe==="rtl"?"left":"right":"top"),Yt=$("slider",ye),[Tt,Ut]=Ve(Yt),dn=I()(_e,Ze==null?void 0:Ze.className,st,{[`${Yt}-rtl`]:fe==="rtl"},Ut);fe==="rtl"&&!je.vertical&&(je.reverse=!je.reverse);const[Ft,un]=i.useMemo(()=>He?typeof He=="object"?[!0,He.draggableTrack]:[!0,!1]:[!1],[He]),ve=(vt,et)=>{var N;const{index:Pe,dragging:De}=et,{tooltip:ge={},vertical:rt}=P,Je=Object.assign({},ge),{open:Re,placement:Ln,getPopupContainer:zn,prefixCls:on,formatter:Mn}=Je,Wn=Qe(Mn,Rt),Gn=Wn?ze[Pe]||De:!1,br=(N=Re!=null?Re:lt)!==null&&N!==void 0?N:Re===void 0&&Gn,Ae=Object.assign(Object.assign({},vt.props),{onMouseEnter:()=>vn(Pe,!0),onMouseLeave:()=>vn(Pe,!1),onFocus:ue=>{var S;vn(Pe,!0),(S=je.onFocus)===null||S===void 0||S.call(je,ue)},onBlur:ue=>{var S;vn(Pe,!1),(S=je.onBlur)===null||S===void 0||S.call(je,ue)}});return i.createElement(qe,Object.assign({},Je,{prefixCls:$("tooltip",on!=null?on:$t),title:Wn?Wn(et.value):"",open:br,placement:_t(Ln!=null?Ln:Fe,rt),key:Pe,overlayClassName:`${Yt}-tooltip`,getPopupContainer:zn||nt||j}),i.cloneElement(vt,Ae))},Ge=Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Ct);return Tt(i.createElement(On,Object.assign({},je,{step:je.step,range:Ft,draggableTrack:un,className:dn,style:Ge,disabled:Me,ref:de,prefixCls:Yt,handleRender:ve})))})},74360:function(Zt,xe,a){"use strict";var i=a(50959),w=a(97960),I=a(17291),l=function(ce,pe){var x={};for(var re in ce)Object.prototype.hasOwnProperty.call(ce,re)&&pe.indexOf(re)<0&&(x[re]=ce[re]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,re=Object.getOwnPropertySymbols(ce);Yei.createElement(Z,Object.assign({},ce,{picker:"time",mode:void 0,ref:pe}))),Q=i.forwardRef((ce,pe)=>{var{addon:x,renderExtraFooter:re}=ce,Ye=l(ce,["addon","renderExtraFooter"]);const z=i.useMemo(()=>{if(re)return re;if(x)return x},[x,re]);return i.createElement(k,Object.assign({},Ye,{mode:void 0,ref:pe,renderExtraFooter:z}))}),K=(0,w.Z)(Q,"picker");Q._InternalPanelDoNotUseOrYouWillBeFired=K,Q.RangePicker=ae,Q._InternalPanelDoNotUseOrYouWillBeFired=K,xe.Z=Q},96238:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return un}});var i=a(50959),w=a(84875),I=a.n(w),l=a(38126),k=a(1788),Z=a(33346),ae=a(32682),Q=a(10570),K=a(40727),ce=a(43984),pe=a(32986),x=a(27545),re=a(65589),Ye=a(12868),z=function(ve){var Ge=i.useRef({valueLabels:new Map});return i.useMemo(function(){var vt=Ge.current.valueLabels,et=new Map,N=ve.map(function(Pe){var De,ge=Pe.value,rt=(De=Pe.label)!==null&&De!==void 0?De:vt.get(ge);return et.set(ge,rt),(0,Z.Z)((0,Z.Z)({},Pe),{},{label:rt})});return Ge.current.valueLabels=et,[N]},[ve])},se=function(ve,Ge,vt,et){return i.useMemo(function(){var N=ve.map(function(rt){var Je=rt.value;return Je}),Pe=Ge.map(function(rt){var Je=rt.value;return Je}),De=N.filter(function(rt){return!et[rt]});if(vt){var ge=(0,x.S)(N,!0,et);N=ge.checkedKeys,Pe=ge.halfCheckedKeys}return[Array.from(new Set([].concat((0,k.Z)(De),(0,k.Z)(N)))),Pe]},[ve,Ge,vt,et])},H=a(25237),it=function(ve,Ge){return i.useMemo(function(){var vt=(0,H.I8)(ve,{fieldNames:Ge,initWrapper:function(N){return(0,Z.Z)((0,Z.Z)({},N),{},{valueEntities:new Map})},processEntity:function(N,Pe){var De=N.node[Ge.value];if(!1)var ge;Pe.valueEntities.set(De,N)}});return vt},[ve,Ge])},At=a(73273),ke=a(13763),ut=function(){return null},B=ut,tr=["children","value"];function mn(ve){return(0,ke.Z)(ve).map(function(Ge){if(!i.isValidElement(Ge)||!Ge.type)return null;var vt=Ge,et=vt.key,N=vt.props,Pe=N.children,De=N.value,ge=(0,Q.Z)(N,tr),rt=(0,Z.Z)({key:et,value:De},ge),Je=mn(Pe);return Je.length&&(rt.children=Je),rt}).filter(function(Ge){return Ge})}function jn(ve){if(!ve)return ve;var Ge=(0,Z.Z)({},ve);return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,Ye.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ge}}),Ge}function bn(ve,Ge,vt,et,N,Pe){var De=null,ge=null;function rt(){function Je(Re){var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Re.map(function(on,Mn){var Wn="".concat(Ln,"-").concat(Mn),Gn=on[Pe.value],br=vt.includes(Gn),Ae=Je(on[Pe.children]||[],Wn,br),ue=i.createElement(B,on,Ae.map(function(G){return G.node}));if(Ge===Gn&&(De=ue),br){var S={pos:Wn,node:ue,children:Ae};return zn||ge.push(S),S}return null}).filter(function(on){return on})}ge||(ge=[],Je(et),ge.sort(function(Re,Ln){var zn=Re.node.props.value,on=Ln.node.props.value,Mn=vt.indexOf(zn),Wn=vt.indexOf(on);return Mn-Wn}))}Object.defineProperty(ve,"triggerNode",{get:function(){return(0,Ye.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),rt(),De}}),Object.defineProperty(ve,"allCheckedNodes",{get:function(){return(0,Ye.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),rt(),N?ge:ge.map(function(Re){var Ln=Re.node;return Ln})}})}var qt=function(ve,Ge,vt){var et=vt.treeNodeFilterProp,N=vt.filterTreeNode,Pe=vt.fieldNames,De=Pe.children;return i.useMemo(function(){if(!Ge||N===!1)return ve;var ge;if(typeof N=="function")ge=N;else{var rt=Ge.toUpperCase();ge=function(Ln,zn){var on=zn[et];return String(on).toUpperCase().includes(rt)}}function Je(Re){var Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Re.reduce(function(zn,on){var Mn=on[De],Wn=Ln||ge(Ge,jn(on)),Gn=Je(Mn||[],Wn);return(Wn||Gn.length)&&zn.push((0,Z.Z)((0,Z.Z)({},on),{},(0,At.Z)({isLeaf:void 0},De,Gn))),zn},[])}return Je(ve)},[ve,Ge,De,et,N])};function be(ve){var Ge=i.useRef();Ge.current=ve;var vt=i.useCallback(function(){return Ge.current.apply(Ge,arguments)},[]);return vt}function Ue(ve,Ge){var vt=Ge.id,et=Ge.pId,N=Ge.rootPId,Pe={},De=[],ge=ve.map(function(rt){var Je=(0,Z.Z)({},rt),Re=Je[vt];return Pe[Re]=Je,Je.key=Je.key||Re,Je});return ge.forEach(function(rt){var Je=rt[et],Re=Pe[Je];Re&&(Re.children=Re.children||[],Re.children.push(rt)),(Je===N||!Re&&N===null)&&De.push(rt)}),De}function Wt(ve,Ge,vt){return i.useMemo(function(){return ve?vt?Ue(ve,(0,Z.Z)({id:"id",pId:"pId",rootPId:null},vt!==!0?vt:{})):ve:mn(Ge)},[Ge,vt,ve])}var an=i.createContext(null),pt=an,tt=a(57),tn=a(12554),En=a(82635),Rn=i.createContext(null),On=Rn;function Te(ve){return Array.isArray(ve)?ve:ve!==void 0?[ve]:[]}function fn(ve){var Ge=ve||{},vt=Ge.label,et=Ge.value,N=Ge.children,Pe=et||"value";return{_title:vt?[vt]:["title","label"],value:Pe,key:Pe,children:N||"children"}}function T(ve){return!ve||ve.disabled||ve.disableCheckbox||ve.checkable===!1}function A(ve,Ge){var vt=[];function et(N){N.forEach(function(Pe){var De=Pe[Ge.children];De&&(vt.push(Pe[Ge.value]),et(De))})}return et(ve),vt}function Le(ve){return ve==null}var We={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qe=function(Ge,vt){var et=(0,ce.lk)(),N=et.prefixCls,Pe=et.multiple,De=et.searchValue,ge=et.toggleOpen,rt=et.open,Je=et.notFoundContent,Re=i.useContext(On),Ln=Re.virtual,zn=Re.listHeight,on=Re.listItemHeight,Mn=Re.listItemScrollOffset,Wn=Re.treeData,Gn=Re.fieldNames,br=Re.onSelect,Ae=Re.dropdownMatchSelectWidth,ue=Re.treeExpandAction,S=i.useContext(pt),G=S.checkable,J=S.checkedKeys,C=S.halfCheckedKeys,E=S.treeExpandedKeys,F=S.treeDefaultExpandAll,W=S.treeDefaultExpandedKeys,ne=S.onTreeExpand,te=S.treeIcon,le=S.showTreeIcon,V=S.switcherIcon,Oe=S.treeLine,Ie=S.treeNodeFilterProp,at=S.loadData,dt=S.treeLoadedKeys,ht=S.treeMotion,Gt=S.onTreeLoad,en=S.keyEntities,Ht=i.useRef(),ct=(0,tn.Z)(function(){return Wn},[rt,Wn],function($n,Ot){return Ot[0]&&$n[1]!==Ot[1]}),Qt=i.useState(null),kt=(0,ae.Z)(Qt,2),Et=kt[0],jt=kt[1],Nt=en[Et],xt=i.useMemo(function(){return G?{checked:J,halfChecked:C}:null},[G,J,C]);i.useEffect(function(){if(rt&&!Pe&&J.length){var $n;($n=Ht.current)===null||$n===void 0||$n.scrollTo({key:J[0]}),jt(J[0])}},[rt]);var gn=String(De).toLowerCase(),Bn=function(Ot){return gn?String(Ot[Ie]).toLowerCase().includes(gn):!1},Vn=i.useState(W),Qn=(0,ae.Z)(Vn,2),hn=Qn[0],qn=Qn[1],kn=i.useState(null),rr=(0,ae.Z)(kn,2),Un=rr[0],xn=rr[1],Hn=i.useMemo(function(){return E?(0,k.Z)(E):De?Un:hn},[hn,Un,E,De]);i.useEffect(function(){De&&xn(A(Wn,Gn))},[De]);var ir=function(Ot){qn(Ot),xn(Ot),ne&&ne(Ot)},ur=function(Ot){Ot.preventDefault()},An=function(Ot,Nn){var ln=Nn.node;G&&T(ln)||(br(ln.key,{selected:!J.includes(ln.key)}),Pe||ge(!1))};if(i.useImperativeHandle(vt,function(){var $n;return{scrollTo:($n=Ht.current)===null||$n===void 0?void 0:$n.scrollTo,onKeyDown:function(Nn){var ln,sn=Nn.which;switch(sn){case tt.Z.UP:case tt.Z.DOWN:case tt.Z.LEFT:case tt.Z.RIGHT:(ln=Ht.current)===null||ln===void 0||ln.onKeyDown(Nn);break;case tt.Z.ENTER:{if(Nt){var nn=(Nt==null?void 0:Nt.node)||{},Jt=nn.selectable,cn=nn.value;Jt!==!1&&An(null,{node:{key:Et},selected:!J.includes(cn)})}break}case tt.Z.ESC:ge(!1)}},onKeyUp:function(){}}}),ct.length===0)return i.createElement("div",{role:"listbox",className:"".concat(N,"-empty"),onMouseDown:ur},Je);var In={fieldNames:Gn};return dt&&(In.loadedKeys=dt),Hn&&(In.expandedKeys=Hn),i.createElement("div",{onMouseDown:ur},Nt&&rt&&i.createElement("span",{style:We,"aria-live":"assertive"},Nt.node.value),i.createElement(En.Z,(0,l.Z)({ref:Ht,focusable:!1,prefixCls:"".concat(N,"-tree"),treeData:ct,height:zn,itemHeight:on,itemScrollOffset:Mn,virtual:Ln!==!1&&Ae!==!1,multiple:Pe,icon:te,showIcon:le,switcherIcon:V,showLine:Oe,loadData:De?null:at,motion:ht,activeKey:Et,checkable:G,checkStrictly:!0,checkedKeys:xt,selectedKeys:G?[]:J,defaultExpandAll:F},In,{onActiveChange:jt,onSelect:An,onCheck:An,onExpand:ir,onLoad:Gt,filterTreeNode:Bn,expandAction:ue})))},yt=i.forwardRef(qe);yt.displayName="OptionList";var me=yt,It="SHOW_ALL",Vt="SHOW_PARENT",mt="SHOW_CHILD";function Dt(ve,Ge,vt,et){var N=new Set(ve);return Ge===mt?ve.filter(function(Pe){var De=vt[Pe];return!(De&&De.children&&De.children.some(function(ge){var rt=ge.node;return N.has(rt[et.value])})&&De.children.every(function(ge){var rt=ge.node;return T(rt)||N.has(rt[et.value])}))}):Ge===Vt?ve.filter(function(Pe){var De=vt[Pe],ge=De?De.parent:null;return!(ge&&!T(ge.node)&&N.has(ge.key))}):ve}function Mt(ve){var Ge=ve.searchPlaceholder,vt=ve.treeCheckStrictly,et=ve.treeCheckable,N=ve.labelInValue,Pe=ve.value,De=ve.multiple;warning(!Ge,"`searchPlaceholder` has been removed."),vt&&N===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(N||vt)&&warning(toArray(Pe).every(function(ge){return ge&&_typeof(ge)==="object"&&"value"in ge}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),vt||De||et?warning(!Pe||Array.isArray(Pe),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Pe),"`value` should not be array when `TreeSelect` is single mode.")}var Lt=null,Pn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function Ee(ve){return!ve||(0,K.Z)(ve)!=="object"}var Ve=i.forwardRef(function(ve,Ge){var vt=ve.id,et=ve.prefixCls,N=et===void 0?"rc-tree-select":et,Pe=ve.value,De=ve.defaultValue,ge=ve.onChange,rt=ve.onSelect,Je=ve.onDeselect,Re=ve.searchValue,Ln=ve.inputValue,zn=ve.onSearch,on=ve.autoClearSearchValue,Mn=on===void 0?!0:on,Wn=ve.filterTreeNode,Gn=ve.treeNodeFilterProp,br=Gn===void 0?"value":Gn,Ae=ve.showCheckedStrategy,ue=ve.treeNodeLabelProp,S=ve.multiple,G=ve.treeCheckable,J=ve.treeCheckStrictly,C=ve.labelInValue,E=ve.fieldNames,F=ve.treeDataSimpleMode,W=ve.treeData,ne=ve.children,te=ve.loadData,le=ve.treeLoadedKeys,V=ve.onTreeLoad,Oe=ve.treeDefaultExpandAll,Ie=ve.treeExpandedKeys,at=ve.treeDefaultExpandedKeys,dt=ve.onTreeExpand,ht=ve.treeExpandAction,Gt=ve.virtual,en=ve.listHeight,Ht=en===void 0?200:en,ct=ve.listItemHeight,Qt=ct===void 0?20:ct,kt=ve.listItemScrollOffset,Et=kt===void 0?0:kt,jt=ve.onDropdownVisibleChange,Nt=ve.dropdownMatchSelectWidth,xt=Nt===void 0?!0:Nt,gn=ve.treeLine,Bn=ve.treeIcon,Vn=ve.showTreeIcon,Qn=ve.switcherIcon,hn=ve.treeMotion,qn=(0,Q.Z)(ve,Pn),kn=(0,pe.ZP)(vt),rr=G&&!J,Un=G||J,xn=J||C,Hn=Un||S,ir=(0,re.Z)(De,{value:Pe}),ur=(0,ae.Z)(ir,2),An=ur[0],In=ur[1],$n=i.useMemo(function(){return G?Ae||mt:It},[Ae,G]),Ot=i.useMemo(function(){return fn(E)},[JSON.stringify(E)]),Nn=(0,re.Z)("",{value:Re!==void 0?Re:Ln,postState:function(Tr){return Tr||""}}),ln=(0,ae.Z)(Nn,2),sn=ln[0],nn=ln[1],Jt=function(Tr){nn(Tr),zn==null||zn(Tr)},cn=Wt(W,ne,F),O=it(cn,Ot),D=O.keyEntities,oe=O.valueEntities,Pt=i.useCallback(function(Lr){var Tr=[],Kr=[];return Lr.forEach(function(sa){oe.has(sa)?Kr.push(sa):Tr.push(sa)}),{missingRawValues:Tr,existRawValues:Kr}},[oe]),Tn=qt(cn,sn,{fieldNames:Ot,treeNodeFilterProp:br,filterTreeNode:Wn}),Yn=i.useCallback(function(Lr){if(Lr){if(ue)return Lr[ue];for(var Tr=Ot._title,Kr=0;Kr{const{componentCls:Ge,treePrefixCls:vt,colorBgElevated:et}=ve,N=`.${vt}`;return[{[`${Ge}-dropdown`]:[{padding:`${(0,fe.bf)(ve.paddingXS)} ${(0,fe.bf)(ve.calc(ve.paddingXS).div(2).equal())}`},(0,Y.Yk)(vt,(0,$.TS)(ve,{colorBgContainer:et})),{[N]:{borderRadius:0,[`${N}-list-holder-inner`]:{alignItems:"stretch",[`${N}-treenode`]:{[`${N}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Ze.C2)(`${vt}-checkbox`,ve),{"&-rtl":{direction:"rtl",[`${N}-switcher${N}-switcher_close`]:{[`${N}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},ze=null;function ft(ve,Ge,vt){return(0,j.I$)("TreeSelect",et=>{const N=(0,$.TS)(et,{treePrefixCls:Ge});return[Me(N)]},Y.TM)(ve,vt)}var vn=a(10254),_t=a(22365),Yt=function(ve,Ge){var vt={};for(var et in ve)Object.prototype.hasOwnProperty.call(ve,et)&&Ge.indexOf(et)<0&&(vt[et]=ve[et]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,et=Object.getOwnPropertySymbols(ve);N{var vt,et,{prefixCls:N,size:Pe,disabled:De,bordered:ge=!0,className:rt,rootClassName:Je,treeCheckable:Re,multiple:Ln,listHeight:zn=256,listItemHeight:on=26,placement:Mn,notFoundContent:Wn,switcherIcon:Gn,treeLine:br,getPopupContainer:Ae,popupClassName:ue,dropdownClassName:S,treeIcon:G=!1,transitionName:J,choiceTransitionName:C="",status:E,treeExpandAction:F,builtinPlacements:W,dropdownMatchSelectWidth:ne,popupMatchSelectWidth:te,allowClear:le}=ve,V=Yt(ve,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:Oe,getPrefixCls:Ie,renderEmpty:at,direction:dt,virtual:ht,popupMatchSelectWidth:Gt,popupOverflow:en}=i.useContext(He.E_),Ht=Ie(),ct=Ie("select",N),Qt=Ie("select-tree",N),kt=Ie("tree-select",N),{compactSize:Et,compactItemClassnames:jt}=(0,Fe.ri)(ct,dt),Nt=(0,vn.Z)(ct),xt=(0,vn.Z)(kt),[gn,Bn]=(0,$t.Z)(ct,Nt),[Vn]=ft(kt,Qt,xt),Qn=I()(ue||S,`${kt}-dropdown`,{[`${kt}-dropdown-rtl`]:dt==="rtl"},Je,Nt,xt,Bn),hn=!!(Re||Ln),qn=(0,lt.Z)(V.suffixIcon,V.showArrow),kn=(vt=te!=null?te:ne)!==null&&vt!==void 0?vt:Gt,{status:rr,hasFeedback:Un,isFormItemInput:xn,feedbackIcon:Hn}=i.useContext(Kt.aM),ir=(0,ye.F)(rr,E),{suffixIcon:ur,removeIcon:An,clearIcon:In}=(0,nt.Z)(Object.assign(Object.assign({},V),{multiple:hn,showSuffixIcon:qn,hasFeedback:Un,feedbackIcon:Hn,prefixCls:ct,componentName:"TreeSelect"})),$n=le===!0?{clearIcon:In}:le;let Ot;Wn!==void 0?Ot=Wn:Ot=(at==null?void 0:at("Select"))||i.createElement(_e.Z,{componentName:"Select"});const Nn=(0,bt.Z)(V,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),ln=i.useMemo(()=>Mn!==void 0?Mn:dt==="rtl"?"bottomRight":"bottomLeft",[Mn,dt]),sn=(0,Rt.Z)(W,en),nn=(0,Ct.Z)(Tn=>{var Yn;return(Yn=Pe!=null?Pe:Et)!==null&&Yn!==void 0?Yn:Tn}),Jt=i.useContext(st.Z),cn=De!=null?De:Jt,O=I()(!N&&kt,{[`${ct}-lg`]:nn==="large",[`${ct}-sm`]:nn==="small",[`${ct}-rtl`]:dt==="rtl",[`${ct}-borderless`]:!ge,[`${ct}-in-form-item`]:xn},(0,ye.Z)(ct,ir,Un),jt,rt,Je,Nt,xt,Bn),D=Tn=>i.createElement(je.Z,{prefixCls:Qt,switcherIcon:Gn,treeNodeProps:Tn,showLine:br}),[oe]=(0,_t.Cn)("SelectLike",(et=V.dropdownStyle)===null||et===void 0?void 0:et.zIndex),Pt=i.createElement(St,Object.assign({virtual:ht,disabled:cn},Nn,{dropdownMatchSelectWidth:kn,builtinPlacements:sn,ref:Ge,prefixCls:ct,className:O,listHeight:zn,listItemHeight:on,treeCheckable:Re&&i.createElement("span",{className:`${ct}-tree-checkbox-inner`}),treeLine:!!br,suffixIcon:ur,multiple:hn,placement:ln,removeIcon:An,allowClear:$n,switcherIcon:D,showTreeIcon:G,notFoundContent:Ot,getPopupContainer:Ae||Oe,treeMotion:null,dropdownClassName:Qn,dropdownStyle:Object.assign(Object.assign({},V.dropdownStyle),{zIndex:oe}),choiceTransitionName:(0,P.m)(Ht,"",C),transitionName:(0,P.m)(Ht,"slide-up",J),treeExpandAction:F}));return gn(Vn(Pt))},dn=i.forwardRef(Tt),Ft=(0,de.Z)(dn);dn.TreeNode=B,dn.SHOW_ALL=It,dn.SHOW_PARENT=Vt,dn.SHOW_CHILD=mt,dn._InternalPanelDoNotUseOrYouWillBeFired=Ft;var un=dn},86962:function(Zt,xe,a){"use strict";a.d(xe,{Z:function(){return J}});var i=a(50959),w=a(1788),I=a(10422),l=a(84875),k=a.n(l),Z=a(38126),ae=a(47920),Q=a(77254),K=a(44906),ce=a(41399),pe=a(73273),x=a(10570),re=a(3224),Ye=a(40727),z=a(47801),se=a(68924);function H(C,E){var F="cannot ".concat(C.method," ").concat(C.action," ").concat(E.status,"'"),W=new Error(F);return W.status=E.status,W.method=C.method,W.url=C.action,W}function it(C){var E=C.responseText||C.response;if(!E)return E;try{return JSON.parse(E)}catch(F){return E}}function At(C){var E=new XMLHttpRequest;C.onProgress&&E.upload&&(E.upload.onprogress=function(te){te.total>0&&(te.percent=te.loaded/te.total*100),C.onProgress(te)});var F=new FormData;C.data&&Object.keys(C.data).forEach(function(ne){var te=C.data[ne];if(Array.isArray(te)){te.forEach(function(le){F.append("".concat(ne,"[]"),le)});return}F.append(ne,te)}),C.file instanceof Blob?F.append(C.filename,C.file,C.file.name):F.append(C.filename,C.file),E.onerror=function(te){C.onError(te)},E.onload=function(){return E.status<200||E.status>=300?C.onError(H(C,E),it(E)):C.onSuccess(it(E),E)},E.open(C.method,C.action,!0),C.withCredentials&&"withCredentials"in E&&(E.withCredentials=!0);var W=C.headers||{};return W["X-Requested-With"]!==null&&E.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(W).forEach(function(ne){W[ne]!==null&&E.setRequestHeader(ne,W[ne])}),E.send(F),{abort:function(){E.abort()}}}var ke=+new Date,ut=0;function B(){return"rc-upload-".concat(ke,"-").concat(++ut)}var tr=a(12868),mn=function(C,E){if(C&&E){var F=Array.isArray(E)?E:E.split(","),W=C.name||"",ne=C.type||"",te=ne.replace(/\/.*$/,"");return F.some(function(le){var V=le.trim();if(/^\*(\/\*)?$/.test(le))return!0;if(V.charAt(0)==="."){var Oe=W.toLowerCase(),Ie=V.toLowerCase(),at=[Ie];return(Ie===".jpg"||Ie===".jpeg")&&(at=[".jpg",".jpeg"]),at.some(function(dt){return Oe.endsWith(dt)})}return/\/\*$/.test(V)?te===V.replace(/\/.*$/,""):ne===V?!0:/^\w+$/.test(V)?((0,tr.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(V,"'.Skip for check.")),!0):!1})}return!0};function jn(C,E){var F=C.createReader(),W=[];function ne(){F.readEntries(function(te){var le=Array.prototype.slice.apply(te);W=W.concat(le);var V=!le.length;V?E(W):ne()})}ne()}var bn=function(E,F,W){var ne=function te(le,V){le&&(le.path=V||"",le.isFile?le.file(function(Oe){W(Oe)&&(le.fullPath&&!Oe.webkitRelativePath&&(Object.defineProperties(Oe,{webkitRelativePath:{writable:!0}}),Oe.webkitRelativePath=le.fullPath.replace(/^\//,""),Object.defineProperties(Oe,{webkitRelativePath:{writable:!1}})),F([Oe]))}):le.isDirectory&&jn(le,function(Oe){Oe.forEach(function(Ie){te(Ie,"".concat(V).concat(le.name,"/"))})}))};E.forEach(function(te){ne(te.webkitGetAsEntry())})},qt=bn,be=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ue=function(C){(0,K.Z)(F,C);var E=(0,ce.Z)(F);function F(){var W;(0,ae.Z)(this,F);for(var ne=arguments.length,te=new Array(ne),le=0;le{const{componentCls:E,iconCls:F}=C;return{[`${E}-wrapper`]:{[`${E}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:C.colorFillAlter,border:`${(0,qe.bf)(C.lineWidth)} dashed ${C.colorBorder}`,borderRadius:C.borderRadiusLG,cursor:"pointer",transition:`border-color ${C.motionDurationSlow}`,[E]:{padding:`${(0,qe.bf)(C.padding)} 0`},[`${E}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${E}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` - &:not(${E}-disabled):hover, - &-hover:not(${E}-disabled) - `]:{borderColor:C.colorPrimaryHover},[`p${E}-drag-icon`]:{marginBottom:C.margin,[F]:{color:C.colorPrimary,fontSize:C.uploadThumbnailSize}},[`p${E}-text`]:{margin:`0 0 ${(0,qe.bf)(C.marginXXS)}`,color:C.colorTextHeading,fontSize:C.fontSizeLG},[`p${E}-hint`]:{color:C.colorTextDescription,fontSize:C.fontSize},[`&${E}-disabled`]:{[`p${E}-drag-icon ${F}, - p${E}-text, - p${E}-hint - `]:{color:C.colorTextDisabled}}}}}},Vt=C=>{const{componentCls:E,antCls:F,iconCls:W,fontSize:ne,lineHeight:te,calc:le}=C,V=`${E}-list-item`,Oe=`${V}-actions`,Ie=`${V}-action`,at=C.fontHeightSM;return{[`${E}-wrapper`]:{[`${E}-list`]:Object.assign(Object.assign({},(0,T.dF)()),{lineHeight:C.lineHeight,[V]:{position:"relative",height:le(C.lineHeight).mul(ne).equal(),marginTop:C.marginXS,fontSize:ne,display:"flex",alignItems:"center",transition:`background-color ${C.motionDurationSlow}`,"&:hover":{backgroundColor:C.controlItemBgHover},[`${V}-name`]:Object.assign(Object.assign({},T.vS),{padding:`0 ${(0,qe.bf)(C.paddingXS)}`,lineHeight:te,flex:"auto",transition:`all ${C.motionDurationSlow}`}),[Oe]:{[Ie]:{opacity:0},[`${Ie}${F}-btn-sm`]:{height:at,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${Ie}:focus-visible, - &.picture ${Ie} - `]:{opacity:1},[W]:{color:C.actionsColor,transition:`all ${C.motionDurationSlow}`},[`&:hover ${W}`]:{color:C.colorText}},[`${E}-icon ${W}`]:{color:C.colorTextDescription,fontSize:ne},[`${V}-progress`]:{position:"absolute",bottom:C.calc(C.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:le(ne).add(C.paddingXS).equal(),fontSize:ne,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${V}:hover ${Ie}`]:{opacity:1,color:C.colorText},[`${V}-error`]:{color:C.colorError,[`${V}-name, ${E}-icon ${W}`]:{color:C.colorError},[Oe]:{[`${W}, ${W}:hover`]:{color:C.colorError},[Ie]:{opacity:1}}},[`${E}-list-item-container`]:{transition:`opacity ${C.motionDurationSlow}, height ${C.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},mt=a(69814);const Dt=new qe.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Mt=new qe.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pn=C=>{const{componentCls:E}=C,F=`${E}-animate-inline`;return[{[`${E}-wrapper`]:{[`${F}-appear, ${F}-enter, ${F}-leave`]:{animationDuration:C.motionDurationSlow,animationTimingFunction:C.motionEaseInOutCirc,animationFillMode:"forwards"},[`${F}-appear, ${F}-enter`]:{animationName:Dt},[`${F}-leave`]:{animationName:Mt}}},{[`${E}-wrapper`]:(0,mt.J$)(C)},Dt,Mt]},Ee=a(81548),Ve=a(99978);const Be=C=>{const{componentCls:E,iconCls:F,uploadThumbnailSize:W,uploadProgressOffset:ne,calc:te}=C,le=`${E}-list`,V=`${le}-item`;return{[`${E}-wrapper`]:{[` - ${le}${le}-picture, - ${le}${le}-picture-card, - ${le}${le}-picture-circle - `]:{[V]:{position:"relative",height:te(W).add(te(C.lineWidth).mul(2)).add(te(C.paddingXS).mul(2)).equal(),padding:C.paddingXS,border:`${(0,qe.bf)(C.lineWidth)} ${C.lineType} ${C.colorBorder}`,borderRadius:C.borderRadiusLG,"&:hover":{background:"transparent"},[`${V}-thumbnail`]:Object.assign(Object.assign({},T.vS),{width:W,height:W,lineHeight:(0,qe.bf)(te(W).add(C.paddingSM).equal()),textAlign:"center",flex:"none",[F]:{fontSize:C.fontSizeHeading2,color:C.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${V}-progress`]:{bottom:ne,width:`calc(100% - ${(0,qe.bf)(te(C.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:te(W).add(C.paddingXS).equal()}},[`${V}-error`]:{borderColor:C.colorError,[`${V}-thumbnail ${F}`]:{[`svg path[fill='${Ee.blue[0]}']`]:{fill:C.colorErrorBg},[`svg path[fill='${Ee.blue.primary}']`]:{fill:C.colorError}}},[`${V}-uploading`]:{borderStyle:"dashed",[`${V}-name`]:{marginBottom:ne}}},[`${le}${le}-picture-circle ${V}`]:{[`&, &::before, ${V}-thumbnail`]:{borderRadius:"50%"}}}}},Qe=C=>{const{componentCls:E,iconCls:F,fontSizeLG:W,colorTextLightSolid:ne,calc:te}=C,le=`${E}-list`,V=`${le}-item`,Oe=C.uploadPicCardSize;return{[` - ${E}-wrapper${E}-picture-card-wrapper, - ${E}-wrapper${E}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,T.dF)()),{display:"inline-block",width:"100%",[`${E}${E}-select`]:{width:Oe,height:Oe,marginInlineEnd:C.marginXS,marginBottom:C.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:C.colorFillAlter,border:`${(0,qe.bf)(C.lineWidth)} dashed ${C.colorBorder}`,borderRadius:C.borderRadiusLG,cursor:"pointer",transition:`border-color ${C.motionDurationSlow}`,[`> ${E}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${E}-disabled):hover`]:{borderColor:C.colorPrimary}},[`${le}${le}-picture-card, ${le}${le}-picture-circle`]:{[`${le}-item-container`]:{display:"inline-block",width:Oe,height:Oe,marginBlock:`0 ${(0,qe.bf)(C.marginXS)}`,marginInline:`0 ${(0,qe.bf)(C.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[V]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,qe.bf)(te(C.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,qe.bf)(te(C.paddingXS).mul(2).equal())})`,backgroundColor:C.colorBgMask,opacity:0,transition:`all ${C.motionDurationSlow}`,content:'" "'}},[`${V}:hover`]:{[`&::before, ${V}-actions`]:{opacity:1}},[`${V}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${C.motionDurationSlow}`,[`${F}-eye, ${F}-download, ${F}-delete`]:{zIndex:10,width:W,margin:`0 ${(0,qe.bf)(C.marginXXS)}`,fontSize:W,cursor:"pointer",transition:`all ${C.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${V}-actions, ${V}-actions:hover`]:{[`${F}-eye, ${F}-download, ${F}-delete`]:{color:new Ve.C(ne).setAlpha(.65).toRgbString(),"&:hover":{color:ne}}},[`${V}-thumbnail, ${V}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${V}-name`]:{display:"none",textAlign:"center"},[`${V}-file + ${V}-name`]:{position:"absolute",bottom:C.margin,display:"block",width:`calc(100% - ${(0,qe.bf)(te(C.paddingXS).mul(2).equal())})`},[`${V}-uploading`]:{[`&${V}`]:{backgroundColor:C.colorFillAlter},[`&::before, ${F}-eye, ${F}-download, ${F}-delete`]:{display:"none"}},[`${V}-progress`]:{bottom:C.marginXL,width:`calc(100% - ${(0,qe.bf)(te(C.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${E}-wrapper${E}-picture-circle-wrapper`]:{[`${E}${E}-select`]:{borderRadius:"50%"}}}};var bt=C=>{const{componentCls:E}=C;return{[`${E}-rtl`]:{direction:"rtl"}}};const P=C=>{const{componentCls:E,colorTextDisabled:F}=C;return{[`${E}-wrapper`]:Object.assign(Object.assign({},(0,T.Wf)(C)),{[E]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${E}-select`]:{display:"inline-block"},[`${E}-disabled`]:{color:F,cursor:"not-allowed"}})}},de=C=>({actionsColor:C.colorTextDescription});var ye=(0,Le.I$)("Upload",C=>{const{fontSizeHeading3:E,fontHeight:F,lineWidth:W,controlHeightLG:ne,calc:te}=C,le=(0,We.TS)(C,{uploadThumbnailSize:te(E).mul(2).equal(),uploadProgressOffset:te(te(F).div(2)).add(W).equal(),uploadPicCardSize:te(ne).mul(2.55).equal()});return[P(le),me(le),Be(le),Qe(le),Vt(le),Pn(le),bt(le),(0,A.Z)(le)]},de),He={icon:function(E,F){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:F}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:E}}]}},name:"file",theme:"twotone"},_e=He,st=a(38782),Ct=function(E,F){return i.createElement(st.Z,(0,Z.Z)({},E,{ref:F,icon:_e}))},Kt=i.forwardRef(Ct),$t=a(58516),Rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},lt=Rt,nt=function(E,F){return i.createElement(st.Z,(0,Z.Z)({},E,{ref:F,icon:lt}))},Fe=i.forwardRef(nt),je={icon:function(E,F){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:E}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:F}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:F}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:F}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:E}}]}},name:"picture",theme:"twotone"},fe=je,Ze=function(E,F){return i.createElement(st.Z,(0,Z.Z)({},E,{ref:F,icon:fe}))},$=i.forwardRef(Ze),j=a(10091),Y=a(2116),Me=a(58351),ze=a(94914),ft=a(47100);function vn(C){return Object.assign(Object.assign({},C),{lastModified:C.lastModified,lastModifiedDate:C.lastModifiedDate,name:C.name,size:C.size,type:C.type,uid:C.uid,percent:0,originFileObj:C})}function _t(C,E){const F=(0,w.Z)(E),W=F.findIndex(ne=>{let{uid:te}=ne;return te===C.uid});return W===-1?F.push(C):F[W]=C,F}function Yt(C,E){const F=C.uid!==void 0?"uid":"name";return E.filter(W=>W[F]===C[F])[0]}function Tt(C,E){const F=C.uid!==void 0?"uid":"name",W=E.filter(ne=>ne[F]!==C[F]);return W.length===E.length?null:W}const Ut=function(){const E=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),W=E[E.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(W)||[""])[0]},dn=C=>C.indexOf("image/")===0,Ft=C=>{if(C.type&&!C.thumbUrl)return dn(C.type);const E=C.thumbUrl||C.url||"",F=Ut(E);return/^data:image\//.test(E)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(F)?!0:!(/^data:/.test(E)||F)},un=200;function ve(C){return new Promise(E=>{if(!C.type||!dn(C.type)){E("");return}const F=document.createElement("canvas");F.width=un,F.height=un,F.style.cssText=`position: fixed; left: 0; top: 0; width: ${un}px; height: ${un}px; z-index: 9999; display: none;`,document.body.appendChild(F);const W=F.getContext("2d"),ne=new Image;if(ne.onload=()=>{const{width:te,height:le}=ne;let V=un,Oe=un,Ie=0,at=0;te>le?(Oe=le*(un/te),at=-(Oe-V)/2):(V=te*(un/le),Ie=-(V-Oe)/2),W.drawImage(ne,Ie,at,V,Oe);const dt=F.toDataURL();document.body.removeChild(F),window.URL.revokeObjectURL(ne.src),E(dt)},ne.crossOrigin="anonymous",C.type.startsWith("image/svg+xml")){const te=new FileReader;te.onload=()=>{te.result&&(ne.src=te.result)},te.readAsDataURL(C)}else if(C.type.startsWith("image/gif")){const te=new FileReader;te.onload=()=>{te.result&&E(te.result)},te.readAsDataURL(C)}else ne.src=window.URL.createObjectURL(C)})}var Ge=a(22717),vt=a(19485),et=function(E,F){return i.createElement(st.Z,(0,Z.Z)({},E,{ref:F,icon:vt.Z}))},N=i.forwardRef(et),Pe=a(96527),De=a(17519),ge=a(32618),Je=i.forwardRef((C,E)=>{let{prefixCls:F,className:W,style:ne,locale:te,listType:le,file:V,items:Oe,progress:Ie,iconRender:at,actionIconRender:dt,itemRender:ht,isImgUrl:Gt,showPreviewIcon:en,showRemoveIcon:Ht,showDownloadIcon:ct,previewIcon:Qt,removeIcon:kt,downloadIcon:Et,onPreview:jt,onDownload:Nt,onClose:xt}=C;var gn,Bn;const{status:Vn}=V,[Qn,hn]=i.useState(Vn);i.useEffect(()=>{Vn!=="removed"&&hn(Vn)},[Vn]);const[qn,kn]=i.useState(!1);i.useEffect(()=>{const D=setTimeout(()=>{kn(!0)},300);return()=>{clearTimeout(D)}},[]);const rr=at(V);let Un=i.createElement("div",{className:`${F}-icon`},rr);if(le==="picture"||le==="picture-card"||le==="picture-circle")if(Qn==="uploading"||!V.thumbUrl&&!V.url){const D=k()(`${F}-list-item-thumbnail`,{[`${F}-list-item-file`]:Qn!=="uploading"});Un=i.createElement("div",{className:D},rr)}else{const D=Gt!=null&&Gt(V)?i.createElement("img",{src:V.thumbUrl||V.url,alt:V.name,className:`${F}-list-item-image`,crossOrigin:V.crossOrigin}):rr,oe=k()(`${F}-list-item-thumbnail`,{[`${F}-list-item-file`]:Gt&&!Gt(V)});Un=i.createElement("a",{className:oe,onClick:Pt=>jt(V,Pt),href:V.url||V.thumbUrl,target:"_blank",rel:"noopener noreferrer"},D)}const xn=k()(`${F}-list-item`,`${F}-list-item-${Qn}`),Hn=typeof V.linkProps=="string"?JSON.parse(V.linkProps):V.linkProps,ir=Ht?dt((typeof kt=="function"?kt(V):kt)||i.createElement(Ge.Z,null),()=>xt(V),F,te.removeFile):null,ur=ct&&Qn==="done"?dt((typeof Et=="function"?Et(V):Et)||i.createElement(N,null),()=>Nt(V),F,te.downloadFile):null,An=le!=="picture-card"&&le!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:k()(`${F}-list-item-actions`,{picture:le==="picture"})},ur,ir),In=k()(`${F}-list-item-name`),$n=V.url?[i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:In,title:V.name},Hn,{href:V.url,onClick:D=>jt(V,D)}),V.name),An]:[i.createElement("span",{key:"view",className:In,onClick:D=>jt(V,D),title:V.name},V.name),An],Ot={pointerEvents:"none",opacity:.5},Nn=en?i.createElement("a",{href:V.url||V.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:V.url||V.thumbUrl?void 0:Ot,onClick:D=>jt(V,D),title:te.previewFile},typeof Qt=="function"?Qt(V):Qt||i.createElement(Pe.Z,null)):null,ln=(le==="picture-card"||le==="picture-circle")&&Qn!=="uploading"&&i.createElement("span",{className:`${F}-list-item-actions`},Nn,Qn==="done"&&ur,ir),{getPrefixCls:sn}=i.useContext(Rn.E_),nn=sn(),Jt=i.createElement("div",{className:xn},Un,$n,ln,qn&&i.createElement(j.ZP,{motionName:`${nn}-fade`,visible:Qn==="uploading",motionDeadline:2e3},D=>{let{className:oe}=D;const Pt="percent"in V?i.createElement(De.Z,Object.assign({},Ie,{type:"line",percent:V.percent,"aria-label":V["aria-label"],"aria-labelledby":V["aria-labelledby"]})):null;return i.createElement("div",{className:k()(`${F}-list-item-progress`,oe)},Pt)})),cn=V.response&&typeof V.response=="string"?V.response:((gn=V.error)===null||gn===void 0?void 0:gn.statusText)||((Bn=V.error)===null||Bn===void 0?void 0:Bn.message)||te.uploadError,O=Qn==="error"?i.createElement(ge.Z,{title:cn,getPopupContainer:D=>D.parentNode},Jt):Jt;return i.createElement("div",{className:k()(`${F}-list-item-container`,W),style:ne,ref:E},ht?ht(O,V,Oe,{download:Nt.bind(null,V),preview:jt.bind(null,V),remove:xt.bind(null,V)}):O)});const Re=(C,E)=>{const{listType:F="text",previewFile:W=ve,onPreview:ne,onDownload:te,onRemove:le,locale:V,iconRender:Oe,isImageUrl:Ie=Ft,prefixCls:at,items:dt=[],showPreviewIcon:ht=!0,showRemoveIcon:Gt=!0,showDownloadIcon:en=!1,removeIcon:Ht,previewIcon:ct,downloadIcon:Qt,progress:kt={size:[-1,2],showInfo:!1},appendAction:Et,appendActionVisible:jt=!0,itemRender:Nt,disabled:xt}=C,gn=(0,Y.Z)(),[Bn,Vn]=i.useState(!1);i.useEffect(()=>{F!=="picture"&&F!=="picture-card"&&F!=="picture-circle"||(dt||[]).forEach(Ot=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ot.originFileObj instanceof File||Ot.originFileObj instanceof Blob)||Ot.thumbUrl!==void 0||(Ot.thumbUrl="",W&&W(Ot.originFileObj).then(Nn=>{Ot.thumbUrl=Nn||"",gn()}))})},[F,dt,W]),i.useEffect(()=>{Vn(!0)},[]);const Qn=(Ot,Nn)=>{if(ne)return Nn==null||Nn.preventDefault(),ne(Ot)},hn=Ot=>{typeof te=="function"?te(Ot):Ot.url&&window.open(Ot.url)},qn=Ot=>{le==null||le(Ot)},kn=Ot=>{if(Oe)return Oe(Ot,F);const Nn=Ot.status==="uploading",ln=Ie&&Ie(Ot)?i.createElement($,null):i.createElement(Kt,null);let sn=Nn?i.createElement($t.Z,null):i.createElement(Fe,null);return F==="picture"?sn=Nn?i.createElement($t.Z,null):ln:(F==="picture-card"||F==="picture-circle")&&(sn=Nn?V.uploading:ln),sn},rr=(Ot,Nn,ln,sn)=>{const nn={type:"text",size:"small",title:sn,onClick:Jt=>{Nn(),(0,ze.l$)(Ot)&&Ot.props.onClick&&Ot.props.onClick(Jt)},className:`${ln}-list-item-action`,disabled:xt};if((0,ze.l$)(Ot)){const Jt=(0,ze.Tm)(Ot,Object.assign(Object.assign({},Ot.props),{onClick:()=>{}}));return i.createElement(ft.ZP,Object.assign({},nn,{icon:Jt}))}return i.createElement(ft.ZP,Object.assign({},nn),i.createElement("span",null,Ot))};i.useImperativeHandle(E,()=>({handlePreview:Qn,handleDownload:hn}));const{getPrefixCls:Un}=i.useContext(Rn.E_),xn=Un("upload",at),Hn=Un(),ir=k()(`${xn}-list`,`${xn}-list-${F}`),ur=(0,w.Z)(dt.map(Ot=>({key:Ot.uid,file:Ot})));let In={motionDeadline:2e3,motionName:`${xn}-${F==="picture-card"||F==="picture-circle"?"animate-inline":"animate"}`,keys:ur,motionAppear:Bn};const $n=i.useMemo(()=>{const Ot=Object.assign({},(0,Me.Z)(Hn));return delete Ot.onAppearEnd,delete Ot.onEnterEnd,delete Ot.onLeaveEnd,Ot},[Hn]);return F!=="picture-card"&&F!=="picture-circle"&&(In=Object.assign(Object.assign({},$n),In)),i.createElement("div",{className:ir},i.createElement(j.V4,Object.assign({},In,{component:!1}),Ot=>{let{key:Nn,file:ln,className:sn,style:nn}=Ot;return i.createElement(Je,{key:Nn,locale:V,prefixCls:xn,className:sn,style:nn,file:ln,items:dt,progress:kt,listType:F,isImgUrl:Ie,showPreviewIcon:ht,showRemoveIcon:Gt,showDownloadIcon:en,removeIcon:Ht,previewIcon:ct,downloadIcon:Qt,iconRender:kn,actionIconRender:rr,itemRender:Nt,onPreview:Qn,onDownload:hn,onClose:qn})}),Et&&i.createElement(j.ZP,Object.assign({},In,{visible:jt,forceRender:!0}),Ot=>{let{className:Nn,style:ln}=Ot;return(0,ze.Tm)(Et,sn=>({className:k()(sn.className,Nn),style:Object.assign(Object.assign(Object.assign({},ln),{pointerEvents:Nn?"none":void 0}),sn.style)}))}))};var zn=i.forwardRef(Re),on=function(C,E,F,W){function ne(te){return te instanceof F?te:new F(function(le){le(te)})}return new(F||(F=Promise))(function(te,le){function V(at){try{Ie(W.next(at))}catch(dt){le(dt)}}function Oe(at){try{Ie(W.throw(at))}catch(dt){le(dt)}}function Ie(at){at.done?te(at.value):ne(at.value).then(V,Oe)}Ie((W=W.apply(C,E||[])).next())})};const Mn=`__LIST_IGNORE_${Date.now()}__`,Wn=(C,E)=>{const{fileList:F,defaultFileList:W,onRemove:ne,showUploadList:te=!0,listType:le="text",onPreview:V,onDownload:Oe,onChange:Ie,onDrop:at,previewFile:dt,disabled:ht,locale:Gt,iconRender:en,isImageUrl:Ht,progress:ct,prefixCls:Qt,className:kt,type:Et="select",children:jt,style:Nt,itemRender:xt,maxCount:gn,data:Bn={},multiple:Vn=!1,action:Qn="",accept:hn="",supportServerRender:qn=!0,rootClassName:kn}=C,rr=i.useContext(On.Z),Un=ht!=null?ht:rr,[xn,Hn]=(0,En.Z)(W||[],{value:F,postState:xr=>xr!=null?xr:[]}),[ir,ur]=i.useState("drop"),An=i.useRef(null);i.useMemo(()=>{const xr=Date.now();(F||[]).forEach((yr,Cr)=>{!yr.uid&&!Object.isFrozen(yr)&&(yr.uid=`__AUTO__${xr}_${Cr}__`)})},[F]);const In=(xr,yr,Cr)=>{let Ar=(0,w.Z)(yr),qr=!1;gn===1?Ar=Ar.slice(-1):gn&&(qr=Ar.length>gn,Ar=Ar.slice(0,gn)),(0,I.flushSync)(()=>{Hn(Ar)});const ya={file:xr,fileList:Ar};Cr&&(ya.event=Cr),(!qr||Ar.some(Aa=>Aa.uid===xr.uid))&&(0,I.flushSync)(()=>{Ie==null||Ie(ya)})},$n=(xr,yr)=>on(void 0,void 0,void 0,function*(){const{beforeUpload:Cr,transformFile:Ar}=C;let qr=xr;if(Cr){const ya=yield Cr(xr,yr);if(ya===!1)return!1;if(delete xr[Mn],ya===Mn)return Object.defineProperty(xr,Mn,{value:!0,configurable:!0}),!1;typeof ya=="object"&&ya&&(qr=ya)}return Ar&&(qr=yield Ar(qr)),qr}),Ot=xr=>{const yr=xr.filter(qr=>!qr.file[Mn]);if(!yr.length)return;const Cr=yr.map(qr=>vn(qr.file));let Ar=(0,w.Z)(xn);Cr.forEach(qr=>{Ar=_t(qr,Ar)}),Cr.forEach((qr,ya)=>{let Aa=qr;if(yr[ya].parsedFile)qr.status="uploading";else{const{originFileObj:Lr}=qr;let Tr;try{Tr=new File([Lr],Lr.name,{type:Lr.type})}catch(Kr){Tr=new Blob([Lr],{type:Lr.type}),Tr.name=Lr.name,Tr.lastModifiedDate=new Date,Tr.lastModified=new Date().getTime()}Tr.uid=qr.uid,Aa=Tr}In(Aa,Ar)})},Nn=(xr,yr,Cr)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(ya){}if(!Yt(yr,xn))return;const Ar=vn(yr);Ar.status="done",Ar.percent=100,Ar.response=xr,Ar.xhr=Cr;const qr=_t(Ar,xn);In(Ar,qr)},ln=(xr,yr)=>{if(!Yt(yr,xn))return;const Cr=vn(yr);Cr.status="uploading",Cr.percent=xr.percent;const Ar=_t(Cr,xn);In(Cr,Ar,xr)},sn=(xr,yr,Cr)=>{if(!Yt(Cr,xn))return;const Ar=vn(Cr);Ar.error=xr,Ar.response=yr,Ar.status="error";const qr=_t(Ar,xn);In(Ar,qr)},nn=xr=>{let yr;Promise.resolve(typeof ne=="function"?ne(xr):ne).then(Cr=>{var Ar;if(Cr===!1)return;const qr=Tt(xr,xn);qr&&(yr=Object.assign(Object.assign({},xr),{status:"removed"}),xn==null||xn.forEach(ya=>{const Aa=yr.uid!==void 0?"uid":"name";ya[Aa]===yr[Aa]&&!Object.isFrozen(ya)&&(ya.status="removed")}),(Ar=An.current)===null||Ar===void 0||Ar.abort(yr),In(yr,qr))})},Jt=xr=>{ur(xr.type),xr.type==="drop"&&(at==null||at(xr))};i.useImperativeHandle(E,()=>({onBatchStart:Ot,onSuccess:Nn,onProgress:ln,onError:sn,fileList:xn,upload:An.current}));const{getPrefixCls:cn,direction:O,upload:D}=i.useContext(Rn.E_),oe=cn("upload",Qt),Pt=Object.assign(Object.assign({onBatchStart:Ot,onError:sn,onProgress:ln,onSuccess:Nn},C),{data:Bn,multiple:Vn,action:Qn,accept:hn,supportServerRender:qn,prefixCls:oe,disabled:Un,beforeUpload:$n,onChange:void 0});delete Pt.className,delete Pt.style,(!jt||Un)&&delete Pt.id;const Tn=`${oe}-wrapper`,[Yn,ar]=ye(oe,Tn),[er]=(0,Te.Z)("Upload",fn.Z.Upload),{showRemoveIcon:dr,showPreviewIcon:Yr,showDownloadIcon:ta,removeIcon:Er,previewIcon:Pa,downloadIcon:Jr}=typeof te=="boolean"?{}:te,ba=typeof dr=="undefined"?!Un:!!dr,Za=(xr,yr)=>te?i.createElement(zn,{prefixCls:oe,listType:le,items:xn,previewFile:dt,onPreview:V,onDownload:Oe,onRemove:nn,showRemoveIcon:ba,showPreviewIcon:Yr,showDownloadIcon:ta,removeIcon:Er,previewIcon:Pa,downloadIcon:Jr,iconRender:en,locale:Object.assign(Object.assign({},er),Gt),isImageUrl:Ht,progress:ct,appendAction:xr,appendActionVisible:yr,itemRender:xt,disabled:Un}):xr,oa=k()(Tn,kt,kn,ar,D==null?void 0:D.className,{[`${oe}-rtl`]:O==="rtl",[`${oe}-picture-card-wrapper`]:le==="picture-card",[`${oe}-picture-circle-wrapper`]:le==="picture-circle"}),wa=Object.assign(Object.assign({},D==null?void 0:D.style),Nt);if(Et==="drag"){const xr=k()(ar,oe,`${oe}-drag`,{[`${oe}-drag-uploading`]:xn.some(yr=>yr.status==="uploading"),[`${oe}-drag-hover`]:ir==="dragover",[`${oe}-disabled`]:Un,[`${oe}-rtl`]:O==="rtl"});return Yn(i.createElement("span",{className:oa},i.createElement("div",{className:xr,style:wa,onDrop:Jt,onDragOver:Jt,onDragLeave:Jt},i.createElement(tn,Object.assign({},Pt,{ref:An,className:`${oe}-btn`}),i.createElement("div",{className:`${oe}-drag-container`},jt))),Za()))}const Ia=k()(oe,`${oe}-select`,{[`${oe}-disabled`]:Un}),Qa=(xr=>i.createElement("div",{className:Ia,style:xr},i.createElement(tn,Object.assign({},Pt,{ref:An}))))(jt?void 0:{display:"none"});return Yn(le==="picture-card"||le==="picture-circle"?i.createElement("span",{className:oa},Za(Qa,!!jt)):i.createElement("span",{className:oa},Qa,Za()))};var br=i.forwardRef(Wn),Ae=function(C,E){var F={};for(var W in C)Object.prototype.hasOwnProperty.call(C,W)&&E.indexOf(W)<0&&(F[W]=C[W]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,W=Object.getOwnPropertySymbols(C);ne{var{style:F,height:W}=C,ne=Ae(C,["style","height"]);return i.createElement(br,Object.assign({ref:E},ne,{type:"drag",style:Object.assign(Object.assign({},F),{height:W})}))});const G=br;G.Dragger=S,G.LIST_IGNORE=Mn;var J=G},81:function(Zt){(function(xe,a){Zt.exports=a()})(this,function(){"use strict";var xe="day";return function(a,i,w){var I=function(Z){return Z.add(4-Z.isoWeekday(),xe)},l=i.prototype;l.isoWeekYear=function(){return I(this).year()},l.isoWeek=function(Z){if(!this.$utils().u(Z))return this.add(7*(Z-this.isoWeek()),xe);var ae,Q,K,ce,pe=I(this),x=(ae=this.isoWeekYear(),Q=this.$u,K=(Q?w.utc:w)().year(ae).startOf("year"),ce=4-K.isoWeekday(),K.isoWeekday()>4&&(ce+=7),K.add(ce,xe));return pe.diff(x,"week")+1},l.isoWeekday=function(Z){return this.$utils().u(Z)?this.day()||7:this.day(this.day()%7?Z:Z-7)};var k=l.startOf;l.startOf=function(Z,ae){var Q=this.$utils(),K=!!Q.u(ae)||ae;return Q.p(Z)==="isoweek"?K?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):k.bind(this)(Z,ae)}}})},56591:function(Zt){(function(xe,a){Zt.exports=a()})(this,function(){"use strict";var xe="month",a="quarter";return function(i,w){var I=w.prototype;I.quarter=function(Z){return this.$utils().u(Z)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(Z-1))};var l=I.add;I.add=function(Z,ae){return Z=Number(Z),this.$utils().p(ae)===a?this.add(3*Z,xe):l.bind(this)(Z,ae)};var k=I.startOf;I.startOf=function(Z,ae){var Q=this.$utils(),K=!!Q.u(ae)||ae;if(Q.p(Z)===a){var ce=this.quarter()-1;return K?this.month(3*ce).startOf(xe).startOf("day"):this.month(3*ce+2).endOf(xe).endOf("day")}return k.bind(this)(Z,ae)}}})},92117:function(Zt){(function(xe,a){Zt.exports=a()})(this,function(){"use strict";return function(xe,a,i){xe=xe||{};var w=a.prototype,I={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(Z,ae,Q,K){return w.fromToBase(Z,ae,Q,K)}i.en.relativeTime=I,w.fromToBase=function(Z,ae,Q,K,ce){for(var pe,x,re,Ye=Q.$locale().relativeTime||I,z=xe.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],se=z.length,H=0;H0,At<=it.r||!it.r){At<=1&&H>0&&(it=z[H-1]);var ke=Ye[it.l];ce&&(At=ce(""+At)),x=typeof ke=="string"?ke.replace("%d",At):ke(At,ae,it.l,re);break}}if(ae)return x;var ut=re?Ye.future:Ye.past;return typeof ut=="function"?ut(x):ut.replace("%s",x)},w.to=function(Z,ae){return l(Z,ae,this,!0)},w.from=function(Z,ae){return l(Z,ae,this)};var k=function(Z){return Z.$u?i.utc():i()};w.toNow=function(Z){return this.to(k(this),Z)},w.fromNow=function(Z){return this.from(k(this),Z)}}})},55518:function(Zt,xe,a){var i=a(3806),w=function(k){var Z=/[height|width]$/;return Z.test(k)},I=function(k){var Z="",ae=Object.keys(k);return ae.forEach(function(Q,K){var ce=k[Q];Q=i(Q),w(Q)&&typeof ce=="number"&&(ce=ce+"px"),ce===!0?Z+=Q:ce===!1?Z+="not "+Q:Z+="("+Q+": "+ce+")",K-1}function ve(O,D){var oe=this.__data__,Pt=Gn(oe,O);return Pt<0?(++this.size,oe.push([O,D])):oe[Pt][1]=D,this}Tt.prototype.clear=Ut,Tt.prototype.delete=dn,Tt.prototype.get=Ft,Tt.prototype.has=un,Tt.prototype.set=ve;function Ge(O){var D=-1,oe=O==null?0:O.length;for(this.clear();++D1?oe[Tn-1]:void 0,ar=Tn>2?oe[2]:void 0;for(Yn=O.length>3&&typeof Yn=="function"?(Tn--,Yn):void 0,ar&&Qt(oe[0],oe[1],ar)&&(Yn=Tn<3?void 0:Yn,Tn=1),D=Object(D);++Pt-1&&O%1==0&&O0){if(++D>=I)return arguments[0]}else D=0;return O.apply(void 0,arguments)}}function hn(O){if(O!=null){try{return Qe.call(O)}catch(D){}try{return O+""}catch(D){}}return""}function qn(O,D){return O===D||O!==O&&D!==D}var kn=S(function(){return arguments}())?S:function(O){return In(O)&&St.call(O,"callee")&&!Rt.call(O,"callee")},rr=Array.isArray;function Un(O){return O!=null&&ur(O.length)&&!ir(O)}function xn(O){return In(O)&&Un(O)}var Hn=je||cn;function ir(O){if(!An(O))return!1;var D=ue(O);return D==x||D==re||D==Q||D==it}function ur(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=k}function An(O){var D=typeof O;return O!=null&&(D=="object"||D=="function")}function In(O){return O!=null&&typeof O=="object"}function $n(O){if(!In(O)||ue(O)!=H)return!1;var D=Kt(O);if(D===null)return!0;var oe=St.call(D,"constructor")&&D.constructor;return typeof oe=="function"&&oe instanceof oe&&Qe.call(oe)==de}var Ot=It?Dt(It):J;function Nn(O){return Ie(O,ln(O))}function ln(O){return Un(O)?on(O,!0):C(O)}var sn=at(function(O,D,oe){E(O,D,oe)});function nn(O){return function(){return O}}function Jt(O){return O}function cn(){return!1}Zt.exports=sn},65490:function(Zt){var xe=NaN,a="[object Symbol]",i=/^\s+|\s+$/g,w=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,l=/^0o[0-7]+$/i,k=parseInt,Z=Object.prototype,ae=Z.toString;function Q(x){var re=typeof x;return!!x&&(re=="object"||re=="function")}function K(x){return!!x&&typeof x=="object"}function ce(x){return typeof x=="symbol"||K(x)&&ae.call(x)==a}function pe(x){if(typeof x=="number")return x;if(ce(x))return xe;if(Q(x)){var re=typeof x.valueOf=="function"?x.valueOf():x;x=Q(re)?re+"":re}if(typeof x!="string")return x===0?x:+x;x=x.replace(i,"");var Ye=I.test(x);return Ye||l.test(x)?k(x.slice(2),Ye?2:8):w.test(x)?xe:+x}Zt.exports=pe},30438:function(Zt,xe,a){var i=a(61343),w=a(8202),I=w(i);Zt.exports=I},61343:function(Zt,xe,a){var i=a(91030),w=a(50579);function I(l,k){return l&&i(l,k,w)}Zt.exports=I},71664:function(Zt){function xe(a,i){return a!=null&&i in Object(a)}Zt.exports=xe},27122:function(Zt,xe,a){var i=a(5929),w=a(6620),I=1,l=2;function k(Z,ae,Q,K){var ce=Q.length,pe=ce,x=!K;if(Z==null)return!pe;for(Z=Object(Z);ce--;){var re=Q[ce];if(x&&re[2]?re[1]!==Z[re[0]]:!(re[0]in Z))return!1}for(;++ce1&&arguments[1]!==void 0?arguments[1]:"span";return function(x){ae(re,x);function re(){var Ye,z,se,H;k(this,re);for(var it=arguments.length,At=Array(it),ke=0;ke1&&arguments[1]!==void 0?arguments[1]:"span";return function(x){ae(re,x);function re(){var Ye,z,se,H;k(this,re);for(var it=arguments.length,At=Array(it),ke=0;ke0&&arguments[0]!==void 0?arguments[0]:[],re=[];return(0,Q.default)(x,function(Ye){Array.isArray(Ye)?pe(Ye).map(function(z){return re.push(z)}):(0,Z.default)(Ye)?(0,l.default)(Ye,function(z,se){z===!0&&re.push(se),re.push(se+"-"+z)}):(0,w.default)(Ye)&&re.push(Ye)}),re};xe.default=ce},80014:function(Zt,xe,a){"use strict";var i;i={value:!0},i=i=i=i=i=void 0;var w=a(47642),I=Ye(w),l=a(71339),k=Ye(l),Z=a(58706),ae=Ye(Z),Q=a(66626),K=Ye(Q),ce=a(8615),pe=Ye(ce),x=a(45742),re=Ye(x);function Ye(se){return se&&se.__esModule?se:{default:se}}i=K.default,i=K.default,i=pe.default,i=re.default;var z=i=function(H){for(var it=arguments.length,At=Array(it>1?it-1:0),ke=1;ke1&&arguments[1]!==void 0?arguments[1]:!0;l[ae]=Q};return w===0&&k("first-child"),w===I-1&&k("last-child"),(w===0||w%2===0)&&k("even"),Math.abs(w%2)===1&&k("odd"),k("nth-child",w),l};xe.default=a},71339:function(Zt,xe,a){"use strict";Object.defineProperty(xe,"__esModule",{value:!0}),xe.mergeClasses=void 0;var i=a(14287),w=Z(i),I=a(32222),l=Z(I),k=Object.assign||function(Q){for(var K=1;K1&&arguments[1]!==void 0?arguments[1]:[],pe=K.default&&(0,l.default)(K.default)||{};return ce.map(function(x){var re=K[x];return re&&(0,w.default)(re,function(Ye,z){pe[z]||(pe[z]={}),pe[z]=k({},pe[z],re[z])}),x}),pe};xe.default=ae},50440:function(Zt,xe){"use strict";const{hasOwnProperty:a}=Object.prototype,i=Ye();i.configure=Ye,i.stringify=i,i.default=i,xe.stringify=i,xe.configure=Ye,Zt.exports=i;const w=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function I(z){return z.length<5e3&&!w.test(z)?`"${z}"`:JSON.stringify(z)}function l(z){if(z.length>200)return z.sort();for(let se=1;seH;)z[it]=z[it-1],it--;z[it]=H}return z}const k=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Z(z){return k.call(z)!==void 0&&z.length!==0}function ae(z,se,H){z.length= 1`)}return H===void 0?1/0:H}function pe(z){return z===1?"1 item":`${z} items`}function x(z){const se=new Set;for(const H of z)(typeof H=="string"||typeof H=="number")&&se.add(String(H));return se}function re(z){if(a.call(z,"strict")){const se=z.strict;if(typeof se!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(se)return H=>{let it=`Object can not safely be stringified. Received type ${typeof H}`;throw typeof H!="function"&&(it+=` (${H.toString()})`),new Error(it)}}}function Ye(z){z=Qc({},z);const se=re(z);se&&(z.bigint===void 0&&(z.bigint=!1),"circularValue"in z||(z.circularValue=Error));const H=Q(z),it=K(z,"bigint"),At=K(z,"deterministic"),ke=ce(z,"maximumDepth"),ut=ce(z,"maximumBreadth");function B(qt,be,Ue,Wt,an,pt){let tt=be[qt];switch(typeof tt=="object"&&tt!==null&&typeof tt.toJSON=="function"&&(tt=tt.toJSON(qt)),tt=Wt.call(be,qt,tt),typeof tt){case"string":return I(tt);case"object":{if(tt===null)return"null";if(Ue.indexOf(tt)!==-1)return H;let tn="",En=",";const Rn=pt;if(Array.isArray(tt)){if(tt.length===0)return"[]";if(keut){const yt=tt.length-ut-1;tn+=`${En}"... ${pe(yt)} not stringified"`}return an!==""&&(tn+=` -${Rn}`),Ue.pop(),`[${tn}]`}let On=Object.keys(tt);const Te=On.length;if(Te===0)return"{}";if(keut){const Le=Te-ut;tn+=`${T}"...":${fn}"${pe(Le)} not stringified"`,T=En}return an!==""&&T.length>1&&(tn=` -${pt}${tn} -${Rn}`),Ue.pop(),`{${tn}}`}case"number":return isFinite(tt)?String(tt):se?se(tt):"null";case"boolean":return tt===!0?"true":"false";case"undefined":return;case"bigint":if(it)return String(tt);default:return se?se(tt):void 0}}function tr(qt,be,Ue,Wt,an,pt){switch(typeof be=="object"&&be!==null&&typeof be.toJSON=="function"&&(be=be.toJSON(qt)),typeof be){case"string":return I(be);case"object":{if(be===null)return"null";if(Ue.indexOf(be)!==-1)return H;const tt=pt;let tn="",En=",";if(Array.isArray(be)){if(be.length===0)return"[]";if(keut){const A=be.length-ut-1;tn+=`${En}"... ${pe(A)} not stringified"`}return an!==""&&(tn+=` -${tt}`),Ue.pop(),`[${tn}]`}Ue.push(be);let Rn="";an!==""&&(pt+=an,En=`, -${pt}`,Rn=" ");let On="";for(const Te of Wt){const fn=tr(Te,be[Te],Ue,Wt,an,pt);fn!==void 0&&(tn+=`${On}${I(Te)}:${Rn}${fn}`,On=En)}return an!==""&&On.length>1&&(tn=` -${pt}${tn} -${tt}`),Ue.pop(),`{${tn}}`}case"number":return isFinite(be)?String(be):se?se(be):"null";case"boolean":return be===!0?"true":"false";case"undefined":return;case"bigint":if(it)return String(be);default:return se?se(be):void 0}}function mn(qt,be,Ue,Wt,an){switch(typeof be){case"string":return I(be);case"object":{if(be===null)return"null";if(typeof be.toJSON=="function"){if(be=be.toJSON(qt),typeof be!="object")return mn(qt,be,Ue,Wt,an);if(be===null)return"null"}if(Ue.indexOf(be)!==-1)return H;const pt=an;if(Array.isArray(be)){if(be.length===0)return"[]";if(keut){const qe=be.length-ut-1;fn+=`${T}"... ${pe(qe)} not stringified"`}return fn+=` -${pt}`,Ue.pop(),`[${fn}]`}let tt=Object.keys(be);const tn=tt.length;if(tn===0)return"{}";if(keut){const fn=tn-ut;Rn+=`${On}"...": "${pe(fn)} not stringified"`,On=En}return On!==""&&(Rn=` -${an}${Rn} -${pt}`),Ue.pop(),`{${Rn}}`}case"number":return isFinite(be)?String(be):se?se(be):"null";case"boolean":return be===!0?"true":"false";case"undefined":return;case"bigint":if(it)return String(be);default:return se?se(be):void 0}}function jn(qt,be,Ue){switch(typeof be){case"string":return I(be);case"object":{if(be===null)return"null";if(typeof be.toJSON=="function"){if(be=be.toJSON(qt),typeof be!="object")return jn(qt,be,Ue);if(be===null)return"null"}if(Ue.indexOf(be)!==-1)return H;let Wt="";if(Array.isArray(be)){if(be.length===0)return"[]";if(keut){const Te=be.length-ut-1;Wt+=`,"... ${pe(Te)} not stringified"`}return Ue.pop(),`[${Wt}]`}let an=Object.keys(be);const pt=an.length;if(pt===0)return"{}";if(keut){const En=pt-ut;Wt+=`${tt}"...":"${pe(En)} not stringified"`}return Ue.pop(),`{${Wt}}`}case"number":return isFinite(be)?String(be):se?se(be):"null";case"boolean":return be===!0?"true":"false";case"undefined":return;case"bigint":if(it)return String(be);default:return se?se(be):void 0}}function bn(qt,be,Ue){if(arguments.length>1){let Wt="";if(typeof Ue=="number"?Wt=" ".repeat(Math.min(Ue,10)):typeof Ue=="string"&&(Wt=Ue.slice(0,10)),be!=null){if(typeof be=="function")return B("",{"":qt},[],be,Wt,"");if(Array.isArray(be))return tr("",qt,[],x(be),Wt,"")}if(Wt.length!==0)return mn("",qt,[],Wt,"")}return jn("",qt,[])}return bn}},3806:function(Zt){var xe=function(a){return a.replace(/[A-Z]/g,function(i){return"-"+i.toLowerCase()}).toLowerCase()};Zt.exports=xe}}]); -}()); \ No newline at end of file diff --git a/6642.b17e39c1.async.js b/6642.b17e39c1.async.js new file mode 100644 index 00000000..d1215c21 --- /dev/null +++ b/6642.b17e39c1.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6642],{36642:function(Gi,ri,m){m.d(ri,{Z:function(){return Mi}});var li=m(89946),ai=m(99992),ci=m(68591),A=m.n(ci),G=m(21137),Q=m(93264),f=m(6346),J=m(98787),a=m(79685),U=m(66214),si=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function _(i){return typeof i=="string"}function di(i){var e,t=i.className,n=i.prefixCls,o=i.style,r=i.active,c=i.status,p=i.iconPrefix,s=i.icon,x=i.wrapperStyle,u=i.stepNumber,z=i.disabled,C=i.description,N=i.title,w=i.subTitle,$=i.progressDot,X=i.stepIcon,P=i.tailContent,d=i.icons,W=i.stepIndex,b=i.onStepClick,y=i.onClick,O=i.render,B=(0,J.Z)(i,si),H=!!b&&!z,T={};H&&(T.role="button",T.tabIndex=0,T.onClick=function(h){y==null||y(h),b(W)},T.onKeyDown=function(h){var S=h.which;(S===U.Z.ENTER||S===U.Z.SPACE)&&b(W)});var Z=function(){var S,g,L=A()("".concat(n,"-icon"),"".concat(p,"icon"),(S={},(0,f.Z)(S,"".concat(p,"icon-").concat(s),s&&_(s)),(0,f.Z)(S,"".concat(p,"icon-check"),!s&&c==="finish"&&(d&&!d.finish||!d)),(0,f.Z)(S,"".concat(p,"icon-cross"),!s&&c==="error"&&(d&&!d.error||!d)),S)),R=a.createElement("span",{className:"".concat(n,"-icon-dot")});return $?typeof $=="function"?g=a.createElement("span",{className:"".concat(n,"-icon")},$(R,{index:u-1,status:c,title:N,description:C})):g=a.createElement("span",{className:"".concat(n,"-icon")},R):s&&!_(s)?g=a.createElement("span",{className:"".concat(n,"-icon")},s):d&&d.finish&&c==="finish"?g=a.createElement("span",{className:"".concat(n,"-icon")},d.finish):d&&d.error&&c==="error"?g=a.createElement("span",{className:"".concat(n,"-icon")},d.error):s||c==="finish"||c==="error"?g=a.createElement("span",{className:L}):g=a.createElement("span",{className:"".concat(n,"-icon")},u),X&&(g=X({index:u-1,status:c,title:N,description:C,node:g})),g},D=c||"wait",q=A()("".concat(n,"-item"),"".concat(n,"-item-").concat(D),t,(e={},(0,f.Z)(e,"".concat(n,"-item-custom"),s),(0,f.Z)(e,"".concat(n,"-item-active"),r),(0,f.Z)(e,"".concat(n,"-item-disabled"),z===!0),e)),j=(0,Q.Z)({},o),I=a.createElement("div",(0,G.Z)({},B,{className:q,style:j}),a.createElement("div",(0,G.Z)({onClick:y},T,{className:"".concat(n,"-item-container")}),a.createElement("div",{className:"".concat(n,"-item-tail")},P),a.createElement("div",{className:"".concat(n,"-item-icon")},Z()),a.createElement("div",{className:"".concat(n,"-item-content")},a.createElement("div",{className:"".concat(n,"-item-title")},N,w&&a.createElement("div",{title:typeof w=="string"?w:void 0,className:"".concat(n,"-item-subtitle")},w)),C&&a.createElement("div",{className:"".concat(n,"-item-description")},C))));return O&&(I=O(I)||null),I}var k=di,mi=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function ii(i){var e,t=i.prefixCls,n=t===void 0?"rc-steps":t,o=i.style,r=o===void 0?{}:o,c=i.className,p=i.children,s=i.direction,x=s===void 0?"horizontal":s,u=i.type,z=u===void 0?"default":u,C=i.labelPlacement,N=C===void 0?"horizontal":C,w=i.iconPrefix,$=w===void 0?"rc":w,X=i.status,P=X===void 0?"process":X,d=i.size,W=i.current,b=W===void 0?0:W,y=i.progressDot,O=y===void 0?!1:y,B=i.stepIcon,H=i.initial,T=H===void 0?0:H,Z=i.icons,D=i.onChange,q=i.itemRender,j=i.items,I=j===void 0?[]:j,h=(0,J.Z)(i,mi),S=z==="navigation",g=z==="inline",L=g||O,R=g?"horizontal":x,ni=g?void 0:d,Bi=L?"vertical":N,Zi=A()(n,"".concat(n,"-").concat(R),c,(e={},(0,f.Z)(e,"".concat(n,"-").concat(ni),ni),(0,f.Z)(e,"".concat(n,"-label-").concat(Bi),R==="horizontal"),(0,f.Z)(e,"".concat(n,"-dot"),!!L),(0,f.Z)(e,"".concat(n,"-navigation"),S),(0,f.Z)(e,"".concat(n,"-inline"),g),e)),Li=function(F){D&&b!==F&&D(F)},Ri=function(F,oi){var v=(0,Q.Z)({},F),M=T+oi;return P==="error"&&oi===b-1&&(v.className="".concat(n,"-next-error")),v.status||(M===b?v.status=P:M{const{componentCls:e,customIconTop:t,customIconSize:n,customIconFontSize:o}=i;return{[`${e}-item-custom`]:{[`> ${e}-item-container > ${e}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${e}-icon`]:{top:t,width:n,height:n,fontSize:o,lineHeight:`${(0,l.bf)(o)}`}}},[`&:not(${e}-vertical)`]:{[`${e}-item-custom`]:{[`${e}-item-icon`]:{width:"auto",background:"none"}}}}},Ci=i=>{const{componentCls:e,inlineDotSize:t,inlineTitleColor:n,inlineTailColor:o}=i,r=i.calc(i.paddingXS).add(i.lineWidth).equal(),c={[`${e}-item-container ${e}-item-content ${e}-item-title`]:{color:n}};return{[`&${e}-inline`]:{width:"auto",display:"inline-flex",[`${e}-item`]:{flex:"none","&-container":{padding:`${(0,l.bf)(r)} ${(0,l.bf)(i.paddingXXS)} 0`,margin:`0 ${(0,l.bf)(i.calc(i.marginXXS).div(2).equal())}`,borderRadius:i.borderRadiusSM,cursor:"pointer",transition:`background-color ${i.motionDurationMid}`,"&:hover":{background:i.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:t,height:t,marginInlineStart:`calc(50% - ${(0,l.bf)(i.calc(t).div(2).equal())})`,[`> ${e}-icon`]:{top:0},[`${e}-icon-dot`]:{borderRadius:i.calc(i.fontSizeSM).div(4).equal()}},"&-content":{width:"auto",marginTop:i.calc(i.marginXS).sub(i.lineWidth).equal()},"&-title":{color:n,fontSize:i.fontSizeSM,lineHeight:i.lineHeightSM,fontWeight:"normal",marginBottom:i.calc(i.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i.calc(t).div(2).add(r).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:i.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${e}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${e}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:i.colorBorderBg,border:`${(0,l.bf)(i.lineWidth)} ${i.lineType} ${o}`}},c),"&-finish":Object.assign({[`${e}-item-tail::after`]:{backgroundColor:o},[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:o,border:`${(0,l.bf)(i.lineWidth)} ${i.lineType} ${o}`}},c),"&-error":c,"&-active, &-process":Object.assign({[`${e}-item-icon`]:{width:t,height:t,marginInlineStart:`calc(50% - ${(0,l.bf)(i.calc(t).div(2).equal())})`,top:0}},c),[`&:not(${e}-item-active) > ${e}-item-container[role='button']:hover`]:{[`${e}-item-title`]:{color:n}}}}}},yi=i=>{const{componentCls:e,iconSize:t,lineHeight:n,iconSizeSM:o}=i;return{[`&${e}-label-vertical`]:{[`${e}-item`]:{overflow:"visible","&-tail":{marginInlineStart:i.calc(t).div(2).add(i.controlHeightLG).equal(),padding:`${(0,l.bf)(i.paddingXXS)} ${(0,l.bf)(i.paddingLG)}`},"&-content":{display:"block",width:i.calc(t).div(2).add(i.controlHeightLG).mul(2).equal(),marginTop:i.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:i.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:i.marginXXS,marginInlineStart:0,lineHeight:n}},[`&${e}-small:not(${e}-dot)`]:{[`${e}-item`]:{"&-icon":{marginInlineStart:i.calc(t).sub(o).div(2).add(i.controlHeightLG).equal()}}}}}},Ii=i=>{const{componentCls:e,navContentMaxWidth:t,navArrowColor:n,stepsNavActiveColor:o,motionDurationSlow:r}=i;return{[`&${e}-navigation`]:{paddingTop:i.paddingSM,[`&${e}-small`]:{[`${e}-item`]:{"&-container":{marginInlineStart:i.calc(i.marginSM).mul(-1).equal()}}},[`${e}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:i.calc(i.margin).mul(-1).equal(),paddingBottom:i.paddingSM,textAlign:"start",transition:`opacity ${r}`,[`${e}-item-content`]:{maxWidth:t},[`${e}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},V.vS),{"&::after":{display:"none"}})},[`&:not(${e}-item-active)`]:{[`${e}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${(0,l.bf)(i.calc(i.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:i.fontSizeIcon,height:i.fontSizeIcon,borderTop:`${(0,l.bf)(i.lineWidth)} ${i.lineType} ${n}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${(0,l.bf)(i.lineWidth)} ${i.lineType} ${n}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:i.lineWidthBold,backgroundColor:o,transition:`width ${r}, inset-inline-start ${r}`,transitionTimingFunction:"ease-out",content:'""'}},[`${e}-item${e}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${e}-navigation${e}-vertical`]:{[`> ${e}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${e}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:i.calc(i.lineWidth).mul(3).equal(),height:`calc(100% - ${(0,l.bf)(i.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:i.calc(i.controlHeight).mul(.25).equal(),height:i.calc(i.controlHeight).mul(.25).equal(),marginBottom:i.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${e}-item-container > ${e}-item-tail`]:{visibility:"hidden"}}},[`&${e}-navigation${e}-horizontal`]:{[`> ${e}-item > ${e}-item-container > ${e}-item-tail`]:{visibility:"hidden"}}}},xi=i=>{const{antCls:e,componentCls:t}=i;return{[`&${t}-with-progress`]:{[`${t}-item`]:{paddingTop:i.paddingXXS,[`&-process ${t}-item-container ${t}-item-icon ${t}-icon`]:{color:i.processIconColor}},[`&${t}-vertical > ${t}-item `]:{paddingInlineStart:i.paddingXXS,[`> ${t}-item-container > ${t}-item-tail`]:{top:i.marginXXS,insetInlineStart:i.calc(i.iconSize).div(2).sub(i.lineWidth).add(i.paddingXXS).equal()}},[`&, &${t}-small`]:{[`&${t}-horizontal ${t}-item:first-child`]:{paddingBottom:i.paddingXXS,paddingInlineStart:i.paddingXXS}},[`&${t}-small${t}-vertical > ${t}-item > ${t}-item-container > ${t}-item-tail`]:{insetInlineStart:i.calc(i.iconSizeSM).div(2).sub(i.lineWidth).add(i.paddingXXS).equal()},[`&${t}-label-vertical`]:{[`${t}-item ${t}-item-tail`]:{top:i.calc(i.margin).sub(i.calc(i.lineWidth).mul(2).equal()).equal()}},[`${t}-item-icon`]:{position:"relative",[`${e}-progress`]:{position:"absolute",insetBlockStart:i.calc(i.calc(i.iconSize).sub(i.stepsProgressSize).sub(i.calc(i.lineWidth).mul(2).equal()).equal()).div(2).equal(),insetInlineStart:i.calc(i.calc(i.iconSize).sub(i.stepsProgressSize).sub(i.calc(i.lineWidth).mul(2).equal()).equal()).div(2).equal()}}}}},zi=i=>{const{componentCls:e,descriptionMaxWidth:t,lineHeight:n,dotCurrentSize:o,dotSize:r,motionDurationSlow:c}=i;return{[`&${e}-dot, &${e}-dot${e}-small`]:{[`${e}-item`]:{"&-title":{lineHeight:n},"&-tail":{top:i.calc(i.dotSize).sub(i.calc(i.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${(0,l.bf)(i.calc(t).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${(0,l.bf)(i.calc(i.marginSM).mul(2).equal())})`,height:i.calc(i.lineWidth).mul(3).equal(),marginInlineStart:i.marginSM}},"&-icon":{width:r,height:r,marginInlineStart:i.calc(i.descriptionMaxWidth).sub(r).div(2).equal(),paddingInlineEnd:0,lineHeight:`${(0,l.bf)(r)}`,background:"transparent",border:0,[`${e}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${c}`,"&::after":{position:"absolute",top:i.calc(i.marginSM).mul(-1).equal(),insetInlineStart:i.calc(r).sub(i.calc(i.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:i.calc(i.controlHeightLG).mul(1.5).equal(),height:i.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:t},[`&-process ${e}-item-icon`]:{position:"relative",top:i.calc(r).sub(o).div(2).equal(),width:o,height:o,lineHeight:`${(0,l.bf)(o)}`,background:"none",marginInlineStart:i.calc(i.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${e}-icon`]:{[`&:first-child ${e}-icon-dot`]:{insetInlineStart:0}}}},[`&${e}-vertical${e}-dot`]:{[`${e}-item-icon`]:{marginTop:i.calc(i.controlHeight).sub(r).div(2).equal(),marginInlineStart:0,background:"none"},[`${e}-item-process ${e}-item-icon`]:{marginTop:i.calc(i.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:i.calc(r).sub(o).div(2).equal(),marginInlineStart:0},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:i.calc(i.controlHeight).sub(r).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,l.bf)(i.calc(r).add(i.paddingXS).equal())} 0 ${(0,l.bf)(i.paddingXS)}`,"&::after":{marginInlineStart:i.calc(r).sub(i.lineWidth).div(2).equal()}},[`&${e}-small`]:{[`${e}-item-icon`]:{marginTop:i.calc(i.controlHeightSM).sub(r).div(2).equal()},[`${e}-item-process ${e}-item-icon`]:{marginTop:i.calc(i.controlHeightSM).sub(o).div(2).equal()},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:i.calc(i.controlHeightSM).sub(r).div(2).equal()}},[`${e}-item:first-child ${e}-icon-dot`]:{insetInlineStart:0},[`${e}-item-content`]:{width:"inherit"}}}},wi=i=>{const{componentCls:e}=i;return{[`&${e}-rtl`]:{direction:"rtl",[`${e}-item`]:{"&-subtitle":{float:"left"}},[`&${e}-navigation`]:{[`${e}-item::after`]:{transform:"rotate(-45deg)"}},[`&${e}-vertical`]:{[`> ${e}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${e}-item-icon`]:{float:"right"}}},[`&${e}-dot`]:{[`${e}-item-icon ${e}-icon-dot, &${e}-small ${e}-item-icon ${e}-icon-dot`]:{float:"right"}}}}},Ti=i=>{const{componentCls:e,iconSizeSM:t,fontSizeSM:n,fontSize:o,colorTextDescription:r}=i;return{[`&${e}-small`]:{[`&${e}-horizontal:not(${e}-label-vertical) ${e}-item`]:{paddingInlineStart:i.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${e}-item-icon`]:{width:t,height:t,marginTop:0,marginBottom:0,marginInline:`0 ${(0,l.bf)(i.marginXS)}`,fontSize:n,lineHeight:`${(0,l.bf)(t)}`,textAlign:"center",borderRadius:t},[`${e}-item-title`]:{paddingInlineEnd:i.paddingSM,fontSize:o,lineHeight:`${(0,l.bf)(t)}`,"&::after":{top:i.calc(t).div(2).equal()}},[`${e}-item-description`]:{color:r,fontSize:o},[`${e}-item-tail`]:{top:i.calc(t).div(2).sub(i.paddingXXS).equal()},[`${e}-item-custom ${e}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${e}-icon`]:{fontSize:t,lineHeight:`${(0,l.bf)(t)}`,transform:"none"}}}}},Ni=i=>{const{componentCls:e,iconSizeSM:t,iconSize:n}=i;return{[`&${e}-vertical`]:{display:"flex",flexDirection:"column",[`> ${e}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${e}-item-icon`]:{float:"left",marginInlineEnd:i.margin},[`${e}-item-content`]:{display:"block",minHeight:i.calc(i.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${e}-item-title`]:{lineHeight:`${(0,l.bf)(n)}`},[`${e}-item-description`]:{paddingBottom:i.paddingSM}},[`> ${e}-item > ${e}-item-container > ${e}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.calc(n).div(2).sub(i.lineWidth).equal(),width:i.lineWidth,height:"100%",padding:`${(0,l.bf)(i.calc(i.marginXXS).mul(1.5).add(n).equal())} 0 ${(0,l.bf)(i.calc(i.marginXXS).mul(1.5).equal())}`,"&::after":{width:i.lineWidth,height:"100%"}},[`> ${e}-item:not(:last-child) > ${e}-item-container > ${e}-item-tail`]:{display:"block"},[` > ${e}-item > ${e}-item-container > ${e}-item-content > ${e}-item-title`]:{"&::after":{display:"none"}},[`&${e}-small ${e}-item-container`]:{[`${e}-item-tail`]:{position:"absolute",top:0,insetInlineStart:i.calc(t).div(2).sub(i.lineWidth).equal(),padding:`${(0,l.bf)(i.calc(i.marginXXS).mul(1.5).add(t).equal())} 0 ${(0,l.bf)(i.calc(i.marginXXS).mul(1.5).equal())}`},[`${e}-item-title`]:{lineHeight:`${(0,l.bf)(t)}`}}}}},E;(function(i){i.wait="wait",i.process="process",i.finish="finish",i.error="error"})(E||(E={}));const K=(i,e)=>{const t=`${e.componentCls}-item`,n=`${i}IconColor`,o=`${i}TitleColor`,r=`${i}DescriptionColor`,c=`${i}TailColor`,p=`${i}IconBgColor`,s=`${i}IconBorderColor`,x=`${i}DotColor`;return{[`${t}-${i} ${t}-icon`]:{backgroundColor:e[p],borderColor:e[s],[`> ${e.componentCls}-icon`]:{color:e[n],[`${e.componentCls}-icon-dot`]:{background:e[x]}}},[`${t}-${i}${t}-custom ${t}-icon`]:{[`> ${e.componentCls}-icon`]:{color:e[x]}},[`${t}-${i} > ${t}-container > ${t}-content > ${t}-title`]:{color:e[o],"&::after":{backgroundColor:e[c]}},[`${t}-${i} > ${t}-container > ${t}-content > ${t}-description`]:{color:e[r]},[`${t}-${i} > ${t}-container > ${t}-tail::after`]:{backgroundColor:e[c]}}},Hi=i=>{const{componentCls:e,motionDurationSlow:t}=i,n=`${e}-item`,o=`${n}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${n}-container > ${n}-tail, > ${n}-container > ${n}-content > ${n}-title::after`]:{display:"none"}}},[`${n}-container`]:{outline:"none",["&:focus-visible"]:{[o]:Object.assign({},(0,V.oN)(i))}},[`${o}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:i.iconSize,height:i.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:i.marginXS,fontSize:i.iconFontSize,fontFamily:i.fontFamily,lineHeight:`${(0,l.bf)(i.iconSize)}`,textAlign:"center",borderRadius:i.iconSize,border:`${(0,l.bf)(i.lineWidth)} ${i.lineType} transparent`,transition:`background-color ${t}, border-color ${t}`,[`${e}-icon`]:{position:"relative",top:i.iconTop,color:i.colorPrimary,lineHeight:1}},[`${n}-tail`]:{position:"absolute",top:i.calc(i.iconSize).div(2).sub(i.paddingXXS).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:i.lineWidth,background:i.colorSplit,borderRadius:i.lineWidth,transition:`background ${t}`,content:'""'}},[`${n}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:i.padding,color:i.colorText,fontSize:i.fontSizeLG,lineHeight:`${(0,l.bf)(i.titleLineHeight)}`,"&::after":{position:"absolute",top:i.calc(i.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:i.lineWidth,background:i.processTailColor,content:'""'}},[`${n}-subtitle`]:{display:"inline",marginInlineStart:i.marginXS,color:i.colorTextDescription,fontWeight:"normal",fontSize:i.fontSize},[`${n}-description`]:{color:i.colorTextDescription,fontSize:i.fontSize}},K(E.wait,i)),K(E.process,i)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:i.fontWeightStrong}}),K(E.finish,i)),K(E.error,i)),{[`${n}${e}-next-error > ${e}-item-title::after`]:{background:i.colorError},[`${n}-disabled`]:{cursor:"not-allowed"}})},Xi=i=>{const{componentCls:e,motionDurationSlow:t}=i;return{[`& ${e}-item`]:{[`&:not(${e}-item-active)`]:{[`& > ${e}-item-container[role='button']`]:{cursor:"pointer",[`${e}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${e}-icon`]:{transition:`color ${t}`}},"&:hover":{[`${e}-item`]:{["&-title, &-subtitle, &-description"]:{color:i.colorPrimary}}}},[`&:not(${e}-item-process)`]:{[`& > ${e}-item-container[role='button']:hover`]:{[`${e}-item`]:{"&-icon":{borderColor:i.colorPrimary,[`${e}-icon`]:{color:i.colorPrimary}}}}}}},[`&${e}-horizontal:not(${e}-label-vertical)`]:{[`${e}-item`]:{paddingInlineStart:i.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${e}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:i.descriptionMaxWidth,whiteSpace:"normal"}}}}},Pi=i=>{const{componentCls:e}=i;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,V.Wf)(i)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Hi(i)),Xi(i)),vi(i)),Ti(i)),Ni(i)),yi(i)),zi(i)),Ii(i)),wi(i)),xi(i)),Ci(i))}},Wi=i=>({titleLineHeight:i.controlHeight,customIconSize:i.controlHeight,customIconTop:0,customIconFontSize:i.controlHeightSM,iconSize:i.controlHeight,iconTop:-.5,iconFontSize:i.fontSize,iconSizeSM:i.fontSizeHeading3,dotSize:i.controlHeight/4,dotCurrentSize:i.controlHeightLG/4,navArrowColor:i.colorTextDisabled,navContentMaxWidth:"auto",descriptionMaxWidth:140,waitIconColor:i.wireframe?i.colorTextDisabled:i.colorTextLabel,waitIconBgColor:i.wireframe?i.colorBgContainer:i.colorFillContent,waitIconBorderColor:i.wireframe?i.colorTextDisabled:"transparent",finishIconBgColor:i.wireframe?i.colorBgContainer:i.controlItemBgActive,finishIconBorderColor:i.wireframe?i.colorPrimary:i.controlItemBgActive});var Di=(0,fi.I$)("Steps",i=>{const{colorTextDisabled:e,controlHeightLG:t,colorTextLightSolid:n,colorText:o,colorPrimary:r,colorTextDescription:c,colorTextQuaternary:p,colorError:s,colorBorderSecondary:x,colorSplit:u}=i,z=(0,bi.TS)(i,{processIconColor:n,processTitleColor:o,processDescriptionColor:o,processIconBgColor:r,processIconBorderColor:r,processDotColor:r,processTailColor:u,waitTitleColor:c,waitDescriptionColor:c,waitTailColor:u,waitDotColor:e,finishIconColor:r,finishTitleColor:o,finishDescriptionColor:c,finishTailColor:r,finishDotColor:r,errorIconColor:n,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:u,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:r,stepsProgressSize:t,inlineDotSize:6,inlineTitleColor:p,inlineTailColor:x});return[Pi(z)]},Wi),Ei=m(89259);function Oi(i){return i.filter(e=>e)}function qi(i,e){if(i)return i;const t=(0,Ei.Z)(e).map(n=>{if(a.isValidElement(n)){const{props:o}=n;return Object.assign({},o)}return null});return Oi(t)}var ji=function(i,e){var t={};for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&e.indexOf(n)<0&&(t[n]=i[n]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(i);o{const{percent:e,size:t,className:n,rootClassName:o,direction:r,items:c,responsive:p=!0,current:s=0,children:x,style:u}=i,z=ji(i,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:C}=(0,$i.Z)(p),{getPrefixCls:N,direction:w,steps:$}=a.useContext(pi.E_),X=a.useMemo(()=>p&&C?"vertical":r,[C,r]),P=(0,ui.Z)(t),d=N("steps",i.prefixCls),[W,b]=Di(d),y=i.type==="inline",O=N("",i.iconPrefix),B=qi(c,x),H=y?void 0:e,T=Object.assign(Object.assign({},$==null?void 0:$.style),u),Z=A()($==null?void 0:$.className,{[`${d}-rtl`]:w==="rtl",[`${d}-with-progress`]:H!==void 0},n,o,b),D={finish:a.createElement(li.Z,{className:`${d}-finish-icon`}),error:a.createElement(ai.Z,{className:`${d}-error-icon`})},q=I=>{let{node:h,status:S}=I;if(S==="process"&&H!==void 0){const g=P==="small"?32:40;return a.createElement("div",{className:`${d}-progress-icon`},a.createElement(hi.Z,{type:"circle",percent:H,size:g,strokeWidth:4,format:()=>null}),h)}return h},j=(I,h)=>I.description?a.createElement(Si.Z,{title:I.description},h):h;return W(a.createElement(ei,Object.assign({icons:D},z,{style:T,current:s,size:P,items:B,itemRender:y?j:void 0,stepIcon:q,direction:X,prefixCls:d,iconPrefix:O,className:Z})))};ti.Step=ei.Step;var Mi=ti}}]); diff --git a/6774.00363424.async.js b/6774.00363424.async.js new file mode 100644 index 00000000..1c0632cd --- /dev/null +++ b/6774.00363424.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6774],{6774:function(Lt,ct,y){y.d(ct,{Z:function(){return Tt}});var i=y(79685),dt=y(68591),E=y.n(dt),ut=y(96990),G=y(28726),J=y(23196),Z=y(99248),$=y(26477),K=y(4614),Q=y(57069),mt=y(25830),k=y(44244);const bt=new $.E4("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),gt=new $.E4("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),ft=new $.E4("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),pt=new $.E4("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),vt=new $.E4("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Ct=new $.E4("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),$t=t=>{const{componentCls:e,iconCls:s,antCls:n,badgeShadowSize:o,motionDurationSlow:c,textFontSize:l,textFontSizeSM:S,statusSize:h,dotSize:f,textFontWeight:m,indicatorHeight:a,indicatorHeightSM:d,marginXS:g,calc:v}=t,u=`${n}-scroll-number`,C=(0,Q.Z)(t,(b,N)=>{let{darkColor:j}=N;return{[`&${e} ${e}-color-${b}`]:{background:j,[`&:not(${e}-count)`]:{color:j}}}});return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(t)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${e}-count`]:{zIndex:t.indicatorZIndex,minWidth:a,height:a,color:t.badgeTextColor,fontWeight:m,fontSize:l,lineHeight:(0,$.bf)(a),whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:v(a).div(2).equal(),boxShadow:`0 0 0 ${(0,$.bf)(o)} ${t.badgeShadowColor}`,transition:`background ${t.motionDurationMid}`,a:{color:t.badgeTextColor},"a:hover":{color:t.badgeTextColor},"a:hover &":{background:t.badgeColorHover}},[`${e}-count-sm`]:{minWidth:d,height:d,fontSize:S,lineHeight:(0,$.bf)(d),borderRadius:v(d).div(2).equal()},[`${e}-multiple-words`]:{padding:`0 ${(0,$.bf)(t.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${e}-dot`]:{zIndex:t.indicatorZIndex,width:f,minWidth:f,height:f,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,$.bf)(o)} ${t.badgeShadowColor}`},[`${e}-dot${u}`]:{transition:`background ${c}`},[`${e}-count, ${e}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${s}-spin`]:{animationName:Ct,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${e}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${e}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:h,height:h,verticalAlign:"middle",borderRadius:"50%"},[`${e}-status-success`]:{backgroundColor:t.colorSuccess},[`${e}-status-processing`]:{overflow:"visible",color:t.colorPrimary,backgroundColor:t.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:bt,animationDuration:t.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${e}-status-default`]:{backgroundColor:t.colorTextPlaceholder},[`${e}-status-error`]:{backgroundColor:t.colorError},[`${e}-status-warning`]:{backgroundColor:t.colorWarning},[`${e}-status-text`]:{marginInlineStart:g,color:t.colorText,fontSize:t.fontSize}}}),C),{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:gt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`${e}-zoom-leave`]:{animationName:ft,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack,animationFillMode:"both"},[`&${e}-not-a-wrapper`]:{[`${e}-zoom-appear, ${e}-zoom-enter`]:{animationName:pt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`${e}-zoom-leave`]:{animationName:vt,animationDuration:t.motionDurationSlow,animationTimingFunction:t.motionEaseOutBack},[`&:not(${e}-status)`]:{verticalAlign:"middle"},[`${u}-custom-component, ${e}-count`]:{transform:"none"},[`${u}-custom-component, ${u}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${u}`]:{overflow:"hidden",[`${u}-only`]:{position:"relative",display:"inline-block",height:a,transition:`all ${t.motionDurationSlow} ${t.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${u}-only-unit`]:{height:a,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${u}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${e}-count, ${e}-dot, ${u}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},q=t=>{const{fontHeight:e,lineWidth:s,marginXS:n,colorBorderBg:o}=t,c=e,l=s,S=t.colorBgContainer,h=t.colorError,f=t.colorErrorHover;return(0,mt.TS)(t,{badgeFontHeight:c,badgeShadowSize:l,badgeTextColor:S,badgeColor:h,badgeColorHover:f,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},_=t=>{const{fontSize:e,lineHeight:s,fontSizeSM:n,lineWidth:o}=t;return{indicatorZIndex:"auto",indicatorHeight:Math.round(e*s)-2*o,indicatorHeightSM:e,dotSize:n/2,textFontSize:n,textFontSizeSM:n,textFontWeight:"normal",statusSize:n/2}};var ht=(0,k.I$)("Badge",t=>{const e=q(t);return $t(e)},_);const yt=t=>{const{antCls:e,badgeFontHeight:s,marginXS:n,badgeRibbonOffset:o,calc:c}=t,l=`${e}-ribbon`,S=`${e}-ribbon-wrapper`,h=(0,Q.Z)(t,(f,m)=>{let{darkColor:a}=m;return{[`&${l}-color-${f}`]:{background:a,color:a}}});return{[`${S}`]:{position:"relative"},[`${l}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(t)),{position:"absolute",top:n,padding:`0 ${(0,$.bf)(t.paddingXS)}`,color:t.colorPrimary,lineHeight:(0,$.bf)(s),whiteSpace:"nowrap",backgroundColor:t.colorPrimary,borderRadius:t.borderRadiusSM,[`${l}-text`]:{color:t.colorTextLightSolid},[`${l}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${(0,$.bf)(c(o).div(2).equal())} solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),h),{[`&${l}-placement-end`]:{insetInlineEnd:c(o).mul(-1).equal(),borderEndEndRadius:0,[`${l}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${l}-placement-start`]:{insetInlineStart:c(o).mul(-1).equal(),borderEndStartRadius:0,[`${l}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var St=(0,k.ZP)(["Badge","Ribbon"],t=>{const e=q(t);return yt(e)},_),Nt=t=>{const{className:e,prefixCls:s,style:n,color:o,children:c,text:l,placement:S="end",rootClassName:h}=t,{getPrefixCls:f,direction:m}=i.useContext(Z.E_),a=f("ribbon",s),[d,g]=St(a),v=(0,G.o2)(o,!1),u=E()(a,`${a}-placement-${S}`,{[`${a}-rtl`]:m==="rtl",[`${a}-color-${o}`]:v},e),C={},b={};return o&&!v&&(C.background=o,b.color=o),d(i.createElement("div",{className:E()(`${a}-wrapper`,h,g)},c,i.createElement("div",{className:E()(u,g),style:Object.assign(Object.assign({},C),n)},i.createElement("span",{className:`${a}-text`},l),i.createElement("div",{className:`${a}-corner`,style:b}))))};function tt(t){let{prefixCls:e,value:s,current:n,offset:o=0}=t,c;return o&&(c={position:"absolute",top:`${o}00%`,left:0}),i.createElement("span",{style:c,className:E()(`${e}-only-unit`,{current:n})},s)}function Ot(t,e,s){let n=t,o=0;for(;(n+10)%10!==e;)n+=s,o+=s;return o}function xt(t){const{prefixCls:e,count:s,value:n}=t,o=Number(n),c=Math.abs(s),[l,S]=i.useState(o),[h,f]=i.useState(c),m=()=>{S(o),f(c)};i.useEffect(()=>{const g=setTimeout(()=>{m()},1e3);return()=>{clearTimeout(g)}},[o]);let a,d;if(l===o||Number.isNaN(o)||Number.isNaN(l))a=[i.createElement(tt,Object.assign({},t,{key:o,current:!0}))],d={transition:"none"};else{a=[];const g=o+10,v=[];for(let b=o;b<=g;b+=1)v.push(b);const u=v.findIndex(b=>b%10===l);a=v.map((b,N)=>{const j=b%10;return i.createElement(tt,Object.assign({},t,{key:b,value:j,offset:N-u,current:N===u}))});const C=h{const{prefixCls:s,count:n,className:o,motionClassName:c,style:l,title:S,show:h,component:f="sup",children:m}=t,a=Et(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:d}=i.useContext(Z.E_),g=d("scroll-number",s),v=Object.assign(Object.assign({},a),{"data-show":h,style:l,className:E()(g,o,c),title:S});let u=n;if(n&&Number(n)%1===0){const C=String(n).split("");u=i.createElement("bdi",null,C.map((b,N)=>i.createElement(xt,{prefixCls:g,count:Number(n),value:b,key:C.length-N})))}return l&&l.borderColor&&(v.style=Object.assign(Object.assign({},l),{boxShadow:`0 0 0 1px ${l.borderColor} inset`})),m?(0,J.Tm)(m,C=>({className:E()(`${g}-custom-component`,C==null?void 0:C.className,c)})):i.createElement(f,Object.assign({},v,{ref:e}),u)}),jt=function(t,e){var s={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(s[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{var s,n,o,c,l;const{prefixCls:S,scrollNumberPrefixCls:h,children:f,status:m,text:a,color:d,count:g=null,overflowCount:v=99,dot:u=!1,size:C="default",title:b,offset:N,style:j,className:It,rootClassName:zt,classNames:w,styles:O,showZero:F=!1}=t,ot=jt(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:nt,direction:H,badge:r}=i.useContext(Z.E_),p=nt("badge",S),[rt,Rt]=ht(p),M=g>v?`${v}+`:g,R=M==="0"||M===0,Bt=g===null||R&&!F,A=(m!=null||d!=null)&&Bt,z=u&&!R,P=z?"":M,T=(0,i.useMemo)(()=>(P==null||P===""||R&&!F)&&!z,[P,R,F,z]),it=(0,i.useRef)(g);T||(it.current=g);const I=it.current,st=(0,i.useRef)(P);T||(st.current=P);const V=st.current,at=(0,i.useRef)(z);T||(at.current=z);const B=(0,i.useMemo)(()=>{if(!N)return Object.assign(Object.assign({},r==null?void 0:r.style),j);const x={marginTop:N[1]};return H==="rtl"?x.left=parseInt(N[0],10):x.right=-parseInt(N[0],10),Object.assign(Object.assign(Object.assign({},x),r==null?void 0:r.style),j)},[H,N,j,r==null?void 0:r.style]),Wt=b!=null?b:typeof I=="string"||typeof I=="number"?I:void 0,Dt=T||!a?null:i.createElement("span",{className:`${p}-status-text`},a),Zt=!I||typeof I!="object"?void 0:(0,J.Tm)(I,x=>({style:Object.assign(Object.assign({},B),x.style)})),W=(0,G.o2)(d,!1),Ft=E()(w==null?void 0:w.indicator,(s=r==null?void 0:r.classNames)===null||s===void 0?void 0:s.indicator,{[`${p}-status-dot`]:A,[`${p}-status-${m}`]:!!m,[`${p}-color-${d}`]:W}),L={};d&&!W&&(L.color=d,L.background=d);const lt=E()(p,{[`${p}-status`]:A,[`${p}-not-a-wrapper`]:!f,[`${p}-rtl`]:H==="rtl"},It,zt,r==null?void 0:r.className,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.root,w==null?void 0:w.root,Rt);if(!f&&A){const x=B.color;return rt(i.createElement("span",Object.assign({},ot,{className:lt,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.root),(o=r==null?void 0:r.styles)===null||o===void 0?void 0:o.root),B)}),i.createElement("span",{className:Ft,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(c=r==null?void 0:r.styles)===null||c===void 0?void 0:c.indicator),L)}),a&&i.createElement("span",{style:{color:x},className:`${p}-status-text`},a)))}return rt(i.createElement("span",Object.assign({ref:e},ot,{className:lt,style:Object.assign(Object.assign({},(l=r==null?void 0:r.styles)===null||l===void 0?void 0:l.root),O==null?void 0:O.root)}),f,i.createElement(ut.ZP,{visible:!T,motionName:`${p}-zoom`,motionAppear:!1,motionDeadline:1e3},x=>{let{className:Ht,ref:Mt}=x;var X,U;const At=nt("scroll-number",h),Y=at.current,Vt=E()(w==null?void 0:w.indicator,(X=r==null?void 0:r.classNames)===null||X===void 0?void 0:X.indicator,{[`${p}-dot`]:Y,[`${p}-count`]:!Y,[`${p}-count-sm`]:C==="small",[`${p}-multiple-words`]:!Y&&V&&V.toString().length>1,[`${p}-status-${m}`]:!!m,[`${p}-color-${d}`]:W});let D=Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(U=r==null?void 0:r.styles)===null||U===void 0?void 0:U.indicator),B);return d&&!W&&(D=D||{},D.background=d),i.createElement(wt,{prefixCls:At,show:!T,motionClassName:Ht,className:Vt,count:V,title:Wt,style:D,key:"scrollNumber",ref:Mt},Zt)}),Dt))},et=i.forwardRef(Pt);et.Ribbon=Nt;var Tt=et}}]); diff --git a/6928.8ffafeda.async.js b/6928.8ffafeda.async.js new file mode 100644 index 00000000..0302112a --- /dev/null +++ b/6928.8ffafeda.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6928],{66197:function(Oe,de,e){e.d(de,{A:function(){return t}});var p=e(93264),i=e(73952),P=e(79685),T=e(29927),ne=e(43901),L=e(6346),U=e(89342),te=e(60190),ve=e(46501),me=e(89869),K=e(89543),X=e(27097),J=e(68591),re=e.n(J),fe=e(77204),W=e(25393),Q=e(33298),A=function(h){var Z;return(0,L.Z)({},h.componentCls,{"&-title":{marginBlockEnd:h.marginXL,fontWeight:"bold"},"&-container":(0,L.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(h.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(Z={display:"block",width:"100%"},(0,L.Z)(Z,"".concat(h.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,L.Z)(Z,"".concat(h.componentCls,"-container"),{paddingInlineStart:16}),(0,L.Z)(Z,"".concat(h.antCls,"-space-item,").concat(h.antCls,"-form-item"),{width:"100%"}),(0,L.Z)(Z,"".concat(h.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),Z)})};function R(m){return(0,Q.Xj)("ProFormGroup",function(h){var Z=(0,p.Z)((0,p.Z)({},h),{},{componentCls:".".concat(m)});return[A(Z)]})}var u=e(63342),w=P.forwardRef(function(m,h){var Z=P.useContext(fe.Z),s=Z.groupProps,d=(0,p.Z)((0,p.Z)({},s),m),oe=d.children,q=d.collapsible,b=d.defaultCollapsed,De=d.style,Le=d.labelLayout,Ze=d.title,_=Ze===void 0?m.label:Ze,ye=d.tooltip,se=d.align,Ce=se===void 0?"start":se,ae=d.direction,l=d.size,v=l===void 0?32:l,n=d.titleStyle,x=d.titleRender,c=d.spaceProps,z=d.extra,D=d.autoFocus,ee=(0,ve.Z)(function(){return b||!1},{value:m.collapsed,onChange:m.onCollapse}),Se=(0,U.Z)(ee,2),o=Se[0],y=Se[1],E=(0,P.useContext)(K.ZP.ConfigContext),V=E.getPrefixCls,C=(0,W.zx)(m),$=C.ColWrapper,ie=C.RowWrapper,S=V("pro-form-group"),Fe=R(S),We=Fe.wrapSSR,B=Fe.hashId,Pe=q&&(0,u.jsx)(te.Z,{style:{marginInlineEnd:8},rotate:o?void 0:90}),le=(0,u.jsx)(me.G,{label:Pe?(0,u.jsxs)("div",{children:[Pe,_]}):_,tooltip:ye}),G=(0,P.useCallback)(function(H){var Y=H.children;return(0,u.jsx)(X.Z,(0,p.Z)((0,p.Z)({},c),{},{className:re()("".concat(S,"-container ").concat(B),c==null?void 0:c.className),size:v,align:Ce,direction:ae,style:(0,p.Z)({rowGap:0},c==null?void 0:c.style),children:Y}))},[Ce,S,ae,B,v,c]),N=x?x(le,m):le,Ae=(0,P.useMemo)(function(){var H=[],Y=P.Children.toArray(oe).map(function(M,ue){var O;return P.isValidElement(M)&&M!==null&&M!==void 0&&(O=M.props)!==null&&O!==void 0&&O.hidden?(H.push(M),null):ue===0&&P.isValidElement(M)&&D?P.cloneElement(M,(0,p.Z)((0,p.Z)({},M.props),{},{autoFocus:D})):M});return[(0,u.jsx)(ie,{Wrapper:G,children:Y},"children"),H.length>0?(0,u.jsx)("div",{style:{display:"none"},children:H}):null]},[oe,ie,G,D]),he=(0,U.Z)(Ae,2),j=he[0],Re=he[1];return We((0,u.jsx)($,{children:(0,u.jsxs)("div",{className:re()(S,B,(0,L.Z)({},"".concat(S,"-twoLine"),Le==="twoLine")),style:De,ref:h,children:[Re,(_||ye||z)&&(0,u.jsx)("div",{className:"".concat(S,"-title ").concat(B).trim(),style:n,onClick:function(){y(!o)},children:z?(0,u.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[N,(0,u.jsx)("span",{onClick:function(Y){return Y.stopPropagation()},children:z})]}):N}),(0,u.jsx)("div",{style:{display:q&&o?"none":void 0},children:j})]})}))});w.displayName="ProForm-Group";var k=w,pe=e(30825);function t(m){return(0,u.jsx)(T.I,(0,p.Z)({layout:"vertical",submitter:{render:function(Z,s){return s.reverse()}},contentRender:function(Z,s){return(0,u.jsxs)(u.Fragment,{children:[Z,s]})}},m))}t.Group=k,t.useForm=i.Z.useForm,t.Item=pe.Z,t.useWatch=i.Z.useWatch,t.ErrorList=i.Z.ErrorList,t.Provider=i.Z.Provider,t.useFormInstance=i.Z.useFormInstance,t.EditOrReadOnlyContext=ne.A},7676:function(Oe,de,e){e.d(de,{U9:function(){return se},L0:function(){return ae},bg:function(){return _}});var p=e(6346),i=e(93264),P=e(7623),T=e(64632),ne=e(57963),L=e(89342),U=e(98787),te=e(56671),ve=e(18750),me=e(97340),K=e(5745),X=e(61728),J=e(43241),re=e(89543),fe=e(91509),W=e(36642),Q=e(10951),A=e(27097),R=e(73952),u=e(68591),w=e.n(u),k=e(89259),pe=e(46501),t=e(79685),m=e(12869),h=e(30765),Z=e(29927),s=e(63342),d=["onFinish","step","formRef","title","stepProps"];function oe(l){var v=(0,t.useRef)(),n=(0,t.useContext)(_),x=(0,t.useContext)(se),c=(0,i.Z)((0,i.Z)({},l),x),z=c.onFinish,D=c.step,ee=c.formRef,Se=c.title,o=c.stepProps,y=(0,U.Z)(c,d);return(0,h.ET)(!y.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,t.useImperativeHandle)(ee,function(){return v.current},[ee==null?void 0:ee.current]),(0,t.useEffect)(function(){if(c.name||c.step){var E=(c.name||c.step).toString();return n==null||n.regForm(E,c),function(){n==null||n.unRegForm(E)}}},[]),n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[D||0]=v),(0,s.jsx)(Z.I,(0,i.Z)({formRef:v,onFinish:function(){var E=(0,T.Z)((0,P.Z)().mark(function V(C){var $;return(0,P.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(y.name&&(n==null||n.onFormFinish(y.name,C)),!z){S.next=9;break}return n==null||n.setLoading(!0),S.next=5,z==null?void 0:z(C);case 5:return $=S.sent,$&&(n==null||n.next()),n==null||n.setLoading(!1),S.abrupt("return");case 9:n!=null&&n.lastStep||n==null||n.next();case 10:case"end":return S.stop()}},V)}));return function(V){return E.apply(this,arguments)}}(),onInit:function(V,C){var $;v.current=C,n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[D||0]=v),y==null||($=y.onInit)===null||$===void 0||$.call(y,V,C)},layout:"vertical"},(0,m.Z)(y,["layoutType","columns"])))}var q=oe,b=e(33298),De=function(v){return(0,p.Z)({},v.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":(0,p.Z)({maxWidth:"1160px",margin:"auto"},"".concat(v.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function Le(l){return(0,b.Xj)("StepsForm",function(v){var n=(0,i.Z)((0,i.Z)({},v),{},{componentCls:".".concat(l)});return[De(n)]})}var Ze=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],_=t.createContext(void 0),ye={horizontal:function(v){var n=v.stepsDom,x=v.formDom;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X.Z,{gutter:{xs:8,sm:16,md:24},children:(0,s.jsx)(J.Z,{span:24,children:n})}),(0,s.jsx)(X.Z,{gutter:{xs:8,sm:16,md:24},children:(0,s.jsx)(J.Z,{span:24,children:x})})]})},vertical:function(v){var n=v.stepsDom,x=v.formDom;return(0,s.jsxs)(X.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,s.jsx)(J.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:t.cloneElement(n,{style:{height:"100%"}})}),(0,s.jsx)(J.Z,{children:(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:x})})]})}},se=t.createContext(null);function Ce(l){var v=(0,t.useContext)(re.ZP.ConfigContext),n=v.getPrefixCls,x=n("pro-steps-form"),c=Le(x),z=c.wrapSSR,D=c.hashId,ee=l.current,Se=l.onCurrentChange,o=l.submitter,y=l.stepsFormRender,E=l.stepsRender,V=l.stepFormRender,C=l.stepsProps,$=l.onFinish,ie=l.formProps,S=l.containerStyle,Fe=l.formRef,We=l.formMapRef,B=l.layoutRender,Pe=(0,U.Z)(l,Ze),le=(0,t.useRef)(new Map),G=(0,t.useRef)(new Map),N=(0,t.useRef)([]),Ae=(0,t.useState)([]),he=(0,L.Z)(Ae,2),j=he[0],Re=he[1],H=(0,t.useState)(!1),Y=(0,L.Z)(H,2),M=Y[0],ue=Y[1],O=(0,te.YB)(),Je=(0,pe.Z)(0,{value:l.current,onChange:l.onCurrentChange}),be=(0,L.Z)(Je,2),F=be[0],je=be[1],$e=(0,t.useMemo)(function(){return ye[(C==null?void 0:C.direction)||"horizontal"]},[C==null?void 0:C.direction]),Ee=(0,t.useMemo)(function(){return F===j.length-1},[j.length,F]),Ye=(0,t.useCallback)(function(r,a){G.current.has(r)||Re(function(g){return[].concat((0,ne.Z)(g),[r])}),G.current.set(r,a)},[]),Ue=(0,t.useCallback)(function(r){Re(function(a){return a.filter(function(g){return g!==r})}),G.current.delete(r),le.current.delete(r)},[]);(0,t.useImperativeHandle)(We,function(){return N.current},[N.current]),(0,t.useImperativeHandle)(Fe,function(){var r;return(r=N.current[F||0])===null||r===void 0?void 0:r.current},[F,N.current]);var Ke=(0,t.useCallback)(function(){var r=(0,T.Z)((0,P.Z)().mark(function a(g,f){var xe,Ie;return(0,P.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(le.current.set(g,f),!(!Ee||!$)){I.next=3;break}return I.abrupt("return");case 3:return ue(!0),xe=ve.T.apply(void 0,[{}].concat((0,ne.Z)(Array.from(le.current.values())))),I.prev=5,I.next=8,$(xe);case 8:Ie=I.sent,Ie&&(je(0),N.current.forEach(function(ke){var Ge;return(Ge=ke.current)===null||Ge===void 0?void 0:Ge.resetFields()})),I.next=15;break;case 12:I.prev=12,I.t0=I.catch(5),console.log(I.t0);case 15:return I.prev=15,ue(!1),I.finish(15);case 18:case"end":return I.stop()}},a,null,[[5,12,15,18]])}));return function(a,g){return r.apply(this,arguments)}}(),[Ee,$,ue,je]),Ne=(0,t.useMemo)(function(){var r=(0,me.n)(fe.Z,"4.24.0")>-1,a=r?{items:j.map(function(g){var f=G.current.get(g);return(0,i.Z)({key:g,title:f==null?void 0:f.title},f==null?void 0:f.stepProps)})}:{};return(0,s.jsx)("div",{className:"".concat(x,"-steps-container ").concat(D).trim(),style:{maxWidth:Math.min(j.length*320,1160)},children:(0,s.jsx)(W.Z,(0,i.Z)((0,i.Z)((0,i.Z)({},C),a),{},{current:F,onChange:void 0,children:!r&&j.map(function(g){var f=G.current.get(g);return(0,s.jsx)(W.Z.Step,(0,i.Z)({title:f==null?void 0:f.title},f==null?void 0:f.stepProps),g)})}))})},[j,D,x,F,C]),ce=(0,K.J)(function(){var r,a=N.current[F];(r=a.current)===null||r===void 0||r.submit()}),Me=(0,K.J)(function(){F<1||je(F-1)}),Te=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(Q.ZP,(0,i.Z)((0,i.Z)({type:"primary",loading:M},o==null?void 0:o.submitButtonProps),{},{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),ce()},children:O.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[O,M,ce,o]),ze=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(Q.ZP,(0,i.Z)((0,i.Z)({},o==null?void 0:o.resetButtonProps),{},{onClick:function(){var a;Me(),o==null||(a=o.onReset)===null||a===void 0||a.call(o)},children:O.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[O,Me,o]),Be=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(Q.ZP,(0,i.Z)((0,i.Z)({type:"primary",loading:M},o==null?void 0:o.submitButtonProps),{},{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),ce()},children:O.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[O,M,ce,o]),Qe=(0,K.J)(function(){F>j.length-2||je(F+1)}),ge=(0,t.useMemo)(function(){var r=[],a=F||0;if(a<1?j.length===1?r.push(Be):r.push(Te):a+1===j.length?r.push(ze,Be):r.push(ze,Te),r=r.filter(t.isValidElement),o&&o.render){var g,f={form:(g=N.current[F])===null||g===void 0?void 0:g.current,onSubmit:ce,step:F,onPre:Me};return o.render(f,r)}return o&&(o==null?void 0:o.render)===!1?null:r},[j.length,Te,ce,ze,Me,F,Be,o]),Ve=(0,t.useMemo)(function(){return(0,k.Z)(l.children).map(function(r,a){var g=r.props,f=g.name||"".concat(a),xe=F===a,Ie=xe?{contentRender:V,submitter:!1}:{};return(0,s.jsx)("div",{className:w()("".concat(x,"-step"),D,(0,p.Z)({},"".concat(x,"-step-active"),xe)),children:(0,s.jsx)(se.Provider,{value:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},Ie),ie),g),{},{name:f,step:a}),children:r})},f)})},[ie,D,x,l.children,F,V]),He=(0,t.useMemo)(function(){return E?E(j.map(function(r){var a;return{key:r,title:(a=G.current.get(r))===null||a===void 0?void 0:a.title}}),Ne):Ne},[j,Ne,E]),Xe=(0,t.useMemo)(function(){return(0,s.jsxs)("div",{className:"".concat(x,"-container ").concat(D).trim(),style:S,children:[Ve,y?null:(0,s.jsx)(A.Z,{children:ge})]})},[S,Ve,D,x,y,ge]),we=(0,t.useMemo)(function(){var r={stepsDom:He,formDom:Xe};return y?y(B?B(r):$e(r),ge):B?B(r):$e(r)},[He,Xe,$e,y,ge,B]);return z((0,s.jsx)("div",{className:w()(x,D),children:(0,s.jsx)(R.Z.Provider,(0,i.Z)((0,i.Z)({},Pe),{},{children:(0,s.jsx)(_.Provider,{value:{loading:M,setLoading:ue,regForm:Ye,keyArray:j,next:Qe,formArrayRef:N,formMapRef:G,lastStep:Ee,unRegForm:Ue,onFormFinish:Ke},children:we})}))}))}function ae(l){return(0,s.jsx)(te._Y,{needDeps:!0,children:(0,s.jsx)(Ce,(0,i.Z)({},l))})}ae.StepForm=q,ae.useForm=R.Z.useForm},89869:function(Oe,de,e){e.d(de,{G:function(){return Q}});var p=e(93264),i=e(6346),P=e(21137),T=e(79685),ne=e(92933),L=e(83317),U=function(R,u){return T.createElement(L.Z,(0,P.Z)({},R,{ref:u,icon:ne.Z}))},te=T.forwardRef(U),ve=e(89543),me=e(58898),K=e(68591),X=e.n(K),J=e(33298),re=function(R){return(0,i.Z)({},R.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:R.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:R.colorTextSecondary,fontWeight:"normal",fontSize:R.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function fe(A){return(0,J.Xj)("LabelIconTip",function(R){var u=(0,p.Z)((0,p.Z)({},R),{},{componentCls:".".concat(A)});return[re(u)]})}var W=e(63342),Q=T.memo(function(A){var R=A.label,u=A.tooltip,w=A.ellipsis,k=A.subTitle,pe=(0,T.useContext)(ve.ZP.ConfigContext),t=pe.getPrefixCls,m=t("pro-core-label-tip"),h=fe(m),Z=h.wrapSSR,s=h.hashId;if(!u&&!k)return(0,W.jsx)(W.Fragment,{children:R});var d=typeof u=="string"||T.isValidElement(u)?{title:u}:u,oe=(d==null?void 0:d.icon)||(0,W.jsx)(te,{});return Z((0,W.jsxs)("div",{className:X()(m,s),onMouseDown:function(b){return b.stopPropagation()},onMouseLeave:function(b){return b.stopPropagation()},onMouseMove:function(b){return b.stopPropagation()},children:[(0,W.jsx)("div",{className:X()("".concat(m,"-title"),s,(0,i.Z)({},"".concat(m,"-title-ellipsis"),w)),children:R}),k&&(0,W.jsx)("div",{className:"".concat(m,"-subtitle ").concat(s).trim(),children:k}),u&&(0,W.jsx)(me.Z,(0,p.Z)((0,p.Z)({},d),{},{children:(0,W.jsx)("span",{className:"".concat(m,"-icon ").concat(s).trim(),children:oe})}))]}))})}}]); diff --git a/6970.57043708.async.js b/6970.57043708.async.js deleted file mode 100644 index 131cbf2e..00000000 --- a/6970.57043708.async.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6970],{68344:function(rr,wn,c){var J=c(33346),Y=c(1788),_e=c(10570),re=c(13165),v=c(75200),Cn=c(33952),l=c(13763),H=c(50959),He=c(81298),sn=c(21510),rn=c(11527),Tn=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],Le=["children","space","valuePropName"],On={space:v.Z,group:Cn.Z.Group};function he(Ce){var Pe=arguments.length<=1?void 0:arguments[1];return Pe&&Pe.target&&Ce in Pe.target?Pe.target[Ce]:Pe}var Ge=function(Pe){var ln=Pe.children,i=Pe.value,ue=i===void 0?[]:i,nn=Pe.valuePropName,tn=Pe.onChange,q=Pe.fieldProps,on=Pe.space,$e=Pe.type,Fn=$e===void 0?"space":$e,jn=Pe.transform,Zn=Pe.convertValue,Ue=Pe.lightProps,Ve=(0,_e.Z)(Pe,Tn),Kn=(0,re.J)(function(ie,Je){var Ye,Ke=(0,Y.Z)(ue);Ke[Je]=he(nn||"value",ie),tn==null||tn(Ke),q==null||(Ye=q.onChange)===null||Ye===void 0||Ye.call(q,Ke)}),Nn=-1,Jn=(0,l.Z)(ln).map(function(ie){if(H.isValidElement(ie)){var Je,Ye,Ke;Nn+=1;var Be=Nn,vn=(ie==null||(Je=ie.type)===null||Je===void 0?void 0:Je.displayName)==="ProFormComponent"||(ie==null||(Ye=ie.props)===null||Ye===void 0?void 0:Ye.readonly),Qe=vn?(0,J.Z)((0,J.Z)({key:Be,ignoreFormItem:!0},ie.props||{}),{},{fieldProps:(0,J.Z)((0,J.Z)({},ie==null||(Ke=ie.props)===null||Ke===void 0?void 0:Ke.fieldProps),{},{onChange:function(){Kn(arguments.length<=0?void 0:arguments[0],Be)}}),value:ue==null?void 0:ue[Be],onChange:void 0}):(0,J.Z)((0,J.Z)({key:Be},ie.props||{}),{},{value:ue==null?void 0:ue[Be],onChange:function(Pn){var fn,gn;Kn(Pn,Be),(fn=(gn=ie.props).onChange)===null||fn===void 0||fn.call(gn,Pn)}});return H.cloneElement(ie,Qe)}return ie}),_n=On[Fn],Yn=(0,sn.zx)(Ve),x=Yn.RowWrapper,ce=(0,H.useMemo)(function(){return(0,J.Z)({},Fn==="group"?{compact:!0}:{})},[Fn]),Oe=(0,H.useCallback)(function(ie){var Je=ie.children;return(0,rn.jsx)(_n,(0,J.Z)((0,J.Z)((0,J.Z)({},ce),on),{},{align:"start",wrap:!0,children:Je}))},[_n,on,ce]);return(0,rn.jsx)(x,{Wrapper:Oe,children:Jn})},Xe=H.forwardRef(function(Ce,Pe){var ln=Ce.children,i=Ce.space,ue=Ce.valuePropName,nn=(0,_e.Z)(Ce,Le);return(0,H.useImperativeHandle)(Pe,function(){return{}}),(0,rn.jsx)(Ge,(0,J.Z)((0,J.Z)((0,J.Z)({space:i,valuePropName:ue},nn.fieldProps),{},{onChange:void 0},nn),{},{children:ln}))}),d=(0,He.G)(Xe);wn.Z=d},91805:function(rr,wn,c){var J=c(43997);wn.ZP=J.A},76022:function(rr,wn,c){c.d(wn,{Y:function(){return d}});var J=c(3224),Y=c(47801),_e=c(33346),re=c(32682),v=c(10570),Cn=c(87322),l=c(56197),H=c(45319),He=c(72266),sn=c.n(He),rn=c(65589),Tn=c(12868),Le=c(50959),On=c(10422),he=c(1704),Ge=c(11527),Xe=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function d(Ce){var Pe,ln,i=Ce.children,ue=Ce.trigger,nn=Ce.onVisibleChange,tn=Ce.onOpenChange,q=Ce.modalProps,on=Ce.onFinish,$e=Ce.submitTimeout,Fn=Ce.title,jn=Ce.width,Zn=Ce.visible,Ue=Ce.open,Ve=(0,v.Z)(Ce,Xe);(0,Tn.ET)(!Ve.footer||!(q!=null&&q.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var Kn=(0,Le.useContext)(l.ZP.ConfigContext),Nn=(0,Le.useState)([]),Jn=(0,re.Z)(Nn,2),_n=Jn[1],Yn=(0,Le.useState)(!1),x=(0,re.Z)(Yn,2),ce=x[0],Oe=x[1],ie=(0,rn.Z)(!!Zn,{value:Ue||Zn,onChange:tn||nn}),Je=(0,re.Z)(ie,2),Ye=Je[0],Ke=Je[1],Be=(0,Le.useRef)(null),vn=(0,Le.useCallback)(function(Ee){Be.current===null&&Ee&&_n([]),Be.current=Ee},[]),Qe=(0,Le.useRef)(),bn=(0,Le.useCallback)(function(){var Ee,A,ee,fe=(Ee=(A=Ve.form)!==null&&A!==void 0?A:(ee=Ve.formRef)===null||ee===void 0?void 0:ee.current)!==null&&Ee!==void 0?Ee:Qe.current;fe&&q!==null&&q!==void 0&&q.destroyOnClose&&fe.resetFields()},[q==null?void 0:q.destroyOnClose,Ve.form,Ve.formRef]);(0,Le.useImperativeHandle)(Ve.formRef,function(){return Qe.current},[Qe.current]),(0,Le.useEffect)(function(){Ye&&(Ue||Zn)&&(tn==null||tn(!0),nn==null||nn(!0))},[Zn,Ue,Ye]);var Pn=(0,Le.useMemo)(function(){return ue?Le.cloneElement(ue,(0,_e.Z)((0,_e.Z)({key:"trigger"},ue.props),{},{onClick:function(){var Ee=(0,Y.Z)((0,J.Z)().mark(function ee(fe){var Se,Ie;return(0,J.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:Ke(!Ye),(Se=ue.props)===null||Se===void 0||(Ie=Se.onClick)===null||Ie===void 0||Ie.call(Se,fe);case 2:case"end":return Fe.stop()}},ee)}));function A(ee){return Ee.apply(this,arguments)}return A}()})):null},[Ke,ue,Ye]),fn=(0,Le.useMemo)(function(){var Ee,A,ee,fe,Se,Ie;return Ve.submitter===!1?!1:sn()({searchConfig:{submitText:(Ee=(A=q==null?void 0:q.okText)!==null&&A!==void 0?A:(ee=Kn.locale)===null||ee===void 0||(ee=ee.Modal)===null||ee===void 0?void 0:ee.okText)!==null&&Ee!==void 0?Ee:"\u786E\u8BA4",resetText:(fe=(Se=q==null?void 0:q.cancelText)!==null&&Se!==void 0?Se:(Ie=Kn.locale)===null||Ie===void 0||(Ie=Ie.Modal)===null||Ie===void 0?void 0:Ie.cancelText)!==null&&fe!==void 0?fe:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:$e?ce:void 0,onClick:function(Fe){var In;Ke(!1),q==null||(In=q.onCancel)===null||In===void 0||In.call(q,Fe)}}},Ve.submitter)},[(Pe=Kn.locale)===null||Pe===void 0||(Pe=Pe.Modal)===null||Pe===void 0?void 0:Pe.cancelText,(ln=Kn.locale)===null||ln===void 0||(ln=ln.Modal)===null||ln===void 0?void 0:ln.okText,q,Ve.submitter,Ke,ce,$e]),gn=(0,Le.useCallback)(function(Ee,A){return(0,Ge.jsxs)(Ge.Fragment,{children:[Ee,Be.current&&A?(0,Ge.jsx)(Le.Fragment,{children:(0,On.createPortal)(A,Be.current)},"submitter"):A]})},[]),an=(0,Le.useCallback)(function(){var Ee=(0,Y.Z)((0,J.Z)().mark(function A(ee){var fe,Se,Ie;return(0,J.Z)().wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return fe=on==null?void 0:on(ee),$e&&fe instanceof Promise&&(Oe(!0),Se=setTimeout(function(){return Oe(!1)},$e),fe.finally(function(){clearTimeout(Se),Oe(!1)})),Fe.next=4,fe;case 4:return Ie=Fe.sent,Ie&&Ke(!1),Fe.abrupt("return",Ie);case 7:case"end":return Fe.stop()}},A)}));return function(A){return Ee.apply(this,arguments)}}(),[on,Ke,$e]),ve=(0,Cn.X)(Ye);return(0,Ge.jsxs)(Ge.Fragment,{children:[(0,Ge.jsx)(H.Z,(0,_e.Z)((0,_e.Z)((0,_e.Z)({title:Fn,width:jn||800},q),ve),{},{onCancel:function(A){var ee;$e&&ce||(Ke(!1),q==null||(ee=q.onCancel)===null||ee===void 0||ee.call(q,A))},afterClose:function(){var A;bn(),Ke(!1),q==null||(A=q.afterClose)===null||A===void 0||A.call(q)},footer:Ve.submitter!==!1?(0,Ge.jsx)("div",{ref:vn,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,Ge.jsx)(he.I,(0,_e.Z)((0,_e.Z)({formComponentType:"ModalForm",layout:"vertical"},Ve),{},{onInit:function(A,ee){var fe;Ve.formRef&&(Ve.formRef.current=ee),Ve==null||(fe=Ve.onInit)===null||fe===void 0||fe.call(Ve,A,ee),Qe.current=ee},formRef:Qe,submitter:fn,onFinish:function(){var Ee=(0,Y.Z)((0,J.Z)().mark(function A(ee){var fe;return(0,J.Z)().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return Ie.next=2,an(ee);case 2:return fe=Ie.sent,Ie.abrupt("return",fe);case 4:case"end":return Ie.stop()}},A)}));return function(A){return Ee.apply(this,arguments)}}(),contentRender:gn,children:i}))})),Pn]})}},26970:function(rr,wn,c){c.d(wn,{Z:function(){return Gl}});var J=c(3224),Y=c(47801),_e=c(40727),re=c(32682),v=c(73273),Cn=c(1788),l=c(33346),H=c(10570),He=c(25671),sn=c(21804),rn=c(56197),Tn=c(97004),Le=c(66146),On=c(84875),he=c.n(On),Ge=c(71770),Xe=c(65589),d=c(50959),Ce=c(26488),Pe=function(e){var t,n,a=e.componentCls,u=e.antCls;return(0,v.Z)({},"".concat(a,"-actions"),(n={marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none",display:"flex",gap:e.marginXS,background:e.colorBgContainer,borderBlockStart:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit),minHeight:42},(0,v.Z)(n,"& > *",{alignItems:"center",justifyContent:"center",flex:1,display:"flex",cursor:"pointer",color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),(0,v.Z)(n,"& > li > div",{flex:1,width:"100%",marginBlock:e.marginSM,marginInline:0,color:e.colorTextSecondary,textAlign:"center",a:{color:e.colorTextSecondary,transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}},div:(t={position:"relative",display:"block",minWidth:32,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimaryHover,transition:"color 0.3s"}},(0,v.Z)(t,"a:not(".concat(u,`-btn), - > .anticon`),{display:"inline-block",width:"100%",color:e.colorTextSecondary,lineHeight:"22px",transition:"color 0.3s","&:hover":{color:e.colorPrimaryHover}}),(0,v.Z)(t,".anticon",{fontSize:e.cardActionIconSize,lineHeight:"22px"}),t),"&:not(:last-child)":{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}}),n))};function ln(r){return(0,Ce.Xj)("ProCardActions",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r),cardActionIconSize:16});return[Pe(t)]})}var i=c(11527),ue=function(e){var t=e.actions,n=e.prefixCls,a=ln(n),u=a.wrapSSR,s=a.hashId;return Array.isArray(t)&&t!==null&&t!==void 0&&t.length?u((0,i.jsx)("ul",{className:he()("".concat(n,"-actions"),s),children:t.map(function(o,f){return(0,i.jsx)("li",{style:{width:"".concat(100/t.length,"%"),padding:0,margin:0},className:he()("".concat(n,"-actions-item"),s),children:o},"action-".concat(f))})})):u((0,i.jsx)("ul",{className:he()("".concat(n,"-actions"),s),children:t}))},nn=ue,tn=c(23870),q=c(82099),on=c(60076),$e=new on.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Fn=function(e){var t;return(0,v.Z)({},e.componentCls,(t={"&-loading":{overflow:"hidden"},"&-loading &-body":{userSelect:"none"}},(0,v.Z)(t,"".concat(e.componentCls,"-loading-content"),{width:"100%",p:{marginBlock:0,marginInline:0}}),(0,v.Z)(t,"".concat(e.componentCls,"-loading-block"),{height:"14px",marginBlock:"4px",background:"linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",backgroundSize:"600% 600%",borderRadius:e.borderRadius,animationName:$e,animationDuration:"1.4s",animationTimingFunction:"ease",animationIterationCount:"infinite"}),t))};function jn(r){return(0,Ce.Xj)("ProCardLoading",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Fn(t)]})}var Zn=function(e){var t=e.style,n=e.prefix,a=jn(n||"ant-pro-card"),u=a.wrapSSR;return u((0,i.jsxs)("div",{className:"".concat(n,"-loading-content"),style:t,children:[(0,i.jsx)(tn.Z,{gutter:8,children:(0,i.jsx)(q.Z,{span:22,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})}),(0,i.jsxs)(tn.Z,{gutter:8,children:[(0,i.jsx)(q.Z,{span:8,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:15,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(tn.Z,{gutter:8,children:[(0,i.jsx)(q.Z,{span:6,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:18,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(tn.Z,{gutter:8,children:[(0,i.jsx)(q.Z,{span:13,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:9,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]}),(0,i.jsxs)(tn.Z,{gutter:8,children:[(0,i.jsx)(q.Z,{span:4,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:3,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})}),(0,i.jsx)(q.Z,{span:16,children:(0,i.jsx)("div",{className:"".concat(n,"-loading-block")})})]})]}))},Ue=Zn,Ve=c(63945),Kn=c(13763),Nn=c(12868),Jn=c(14224),_n=["tab","children"],Yn=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function x(r){return r.filter(function(e){return e})}function ce(r,e,t){if(r)return r.map(function(a){return(0,l.Z)((0,l.Z)({},a),{},{children:(0,i.jsx)(fn,(0,l.Z)((0,l.Z)({},t==null?void 0:t.cardProps),{},{children:a.children}))})});(0,Nn.ET)(!t,"Tabs.TabPane is deprecated. Please use `items` directly.");var n=(0,Kn.Z)(e).map(function(a){if(d.isValidElement(a)){var u=a.key,s=a.props,o=s||{},f=o.tab,g=o.children,C=(0,H.Z)(o,_n),S=(0,l.Z)((0,l.Z)({key:String(u)},C),{},{children:(0,i.jsx)(fn,(0,l.Z)((0,l.Z)({},t==null?void 0:t.cardProps),{},{children:g})),label:f});return S}return null});return x(n)}var Oe=function(e){var t=(0,d.useContext)(rn.ZP.ConfigContext),n=t.getPrefixCls;if(Ve.Z.startsWith("5"))return(0,i.jsx)(i.Fragment,{});var a=e.key,u=e.tab,s=e.tabKey,o=e.disabled,f=e.destroyInactiveTabPane,g=e.children,C=e.className,S=e.style,h=e.cardProps,P=(0,H.Z)(e,Yn),p=n("pro-card-tabpane"),E=he()(p,C);return(0,i.jsx)(Le.Z.TabPane,(0,l.Z)((0,l.Z)({tabKey:s,tab:u,className:E,style:S,disabled:o,destroyInactiveTabPane:f},P),{},{children:(0,i.jsx)(fn,(0,l.Z)((0,l.Z)({},h),{},{children:g}))}),a)},ie=Oe,Je=function(e){return{backgroundColor:e.controlItemBgActive,borderColor:e.controlOutline}},Ye=function(e){var t,n,a,u,s,o=e.componentCls;return s={},(0,v.Z)(s,o,(0,l.Z)((0,l.Z)({position:"relative",display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius},Ce.Wf===null||Ce.Wf===void 0?void 0:(0,Ce.Wf)(e)),{},(n={"&-box-shadow":{boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017",borderColor:"transparent"},"&-col":{width:"100%"},"&-border":{border:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-hoverable":(0,v.Z)({cursor:"pointer",transition:"box-shadow 0.3s, border-color 0.3s","&:hover":{borderColor:"transparent",boxShadow:"0 1px 2px -2px #00000029, 0 3px 6px #0000001f, 0 5px 12px 4px #00000017"}},"&".concat(o,"-checked:hover"),{borderColor:e.controlOutline}),"&-checked":(0,l.Z)((0,l.Z)({},Je(e)),{},{"&::after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"6px solid ".concat(e.colorPrimary),borderBlockEnd:"6px solid transparent",borderInlineStart:"6px solid transparent",borderStartEndRadius:2,content:'""'}}),"&:focus":(0,l.Z)({},Je(e)),"&&-ghost":(0,v.Z)({backgroundColor:"transparent"},"> ".concat(o),{"&-header":{paddingInlineEnd:0,paddingBlockEnd:e.padding,paddingInlineStart:0},"&-body":{paddingBlock:0,paddingInline:0,backgroundColor:"transparent"}}),"&&-split > &-body":{paddingBlock:0,paddingInline:0},"&&-contain-card > &-body":{display:"flex"}},(0,v.Z)(n,"".concat(o,"-body-direction-column"),{flexDirection:"column"}),(0,v.Z)(n,"".concat(o,"-body-wrap"),{flexWrap:"wrap"}),(0,v.Z)(n,"&&-collapse",(0,v.Z)({},"> ".concat(o),{"&-header":{paddingBlockEnd:e.padding,borderBlockEnd:0},"&-body":{display:"none"}})),(0,v.Z)(n,"".concat(o,"-header"),{display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:e.paddingLG,paddingBlock:e.padding,paddingBlockEnd:0,"&-border":{"&":{paddingBlockEnd:e.padding},borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)},"&-collapsible":{cursor:"pointer"}}),(0,v.Z)(n,"".concat(o,"-title"),{color:e.colorText,fontWeight:500,fontSize:e.fontSizeLG,lineHeight:e.lineHeight}),(0,v.Z)(n,"".concat(o,"-extra"),{color:e.colorText}),(0,v.Z)(n,"".concat(o,"-type-inner"),(0,v.Z)({},"".concat(o,"-header"),{backgroundColor:e.colorFillAlter})),(0,v.Z)(n,"".concat(o,"-collapsible-icon"),{marginInlineEnd:e.marginXS,color:e.colorIconHover,":hover":{color:e.colorPrimaryHover},"& svg":{transition:"transform ".concat(e.motionDurationMid)}}),(0,v.Z)(n,"".concat(o,"-body"),{display:"block",boxSizing:"border-box",height:"100%",paddingInline:e.paddingLG,paddingBlock:e.padding,"&-center":{display:"flex",alignItems:"center",justifyContent:"center"}}),(0,v.Z)(n,"&&-size-small",(t={},(0,v.Z)(t,o,{"&-header":{paddingInline:e.paddingSM,paddingBlock:e.paddingXS,paddingBlockEnd:0,"&-border":{paddingBlockEnd:e.paddingXS}},"&-title":{fontSize:e.fontSize},"&-body":{paddingInline:e.paddingSM,paddingBlock:e.paddingSM}}),(0,v.Z)(t,"".concat(o,"-header").concat(o,"-header-collapsible"),{paddingBlock:e.paddingXS}),t)),n))),(0,v.Z)(s,"".concat(o,"-col"),(a={},(0,v.Z)(a,"&".concat(o,"-split-vertical"),{borderInlineEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),(0,v.Z)(a,"&".concat(o,"-split-horizontal"),{borderBlockEnd:"".concat(e.lineWidth,"px ").concat(e.lineType," ").concat(e.colorSplit)}),a)),(0,v.Z)(s,"".concat(o,"-tabs"),(u={},(0,v.Z)(u,"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:e.marginXS,paddingInlineStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-bottom > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingInlineStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-left"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content-holder"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content"),(0,v.Z)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,v.Z)(u,"".concat(e.antCls,"-tabs-left > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginInlineEnd:0},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),(0,v.Z)(u,"".concat(e.antCls,"-tabs-right"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content-holder"),(0,v.Z)({},"".concat(e.antCls,"-tabs-content"),(0,v.Z)({},"".concat(e.antCls,"-tabs-tabpane"),{paddingInlineStart:0})))),(0,v.Z)(u,"".concat(e.antCls,"-tabs-right > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({},"".concat(e.antCls,"-tabs-nav-list"),{paddingBlockStart:e.padding})),u)),s},Ke=24,Be=function(e,t){var n=t.componentCls;return e===0?(0,v.Z)({},"".concat(n,"-col-0"),{display:"none"}):(0,v.Z)({},"".concat(n,"-col-").concat(e),{flexShrink:0,width:"".concat(e/Ke*100,"%")})},vn=function(e){return Array(Ke+1).fill(1).map(function(t,n){return Be(n,e)})};function Qe(r){return(0,Ce.Xj)("ProCard",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Ye(t),vn(t)]})}var bn=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","boxShadow","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],Pn=d.forwardRef(function(r,e){var t,n,a,u=r.className,s=r.style,o=r.bodyStyle,f=r.headStyle,g=r.title,C=r.subTitle,S=r.extra,h=r.tip,P=r.wrap,p=P===void 0?!1:P,E=r.layout,b=r.loading,y=r.gutter,R=y===void 0?0:y,$=r.tooltip,B=r.split,se=r.headerBordered,Q=se===void 0?!1:se,M=r.bordered,z=M===void 0?!1:M,L=r.boxShadow,w=L===void 0?!1:L,I=r.children,Z=r.size,O=r.actions,T=r.ghost,m=T===void 0?!1:T,F=r.hoverable,j=F===void 0?!1:F,W=r.direction,ne=r.collapsed,pe=r.collapsible,V=pe===void 0?!1:pe,oe=r.collapsibleIconRender,xe=r.defaultCollapsed,me=xe===void 0?!1:xe,k=r.onCollapse,U=r.checked,K=r.onChecked,G=r.tabs,de=r.type,Te=(0,H.Z)(r,bn),Ne=(0,d.useContext)(rn.ZP.ConfigContext),en=Ne.getPrefixCls,ke=Tn.ZP.useBreakpoint()||{lg:!0,md:!0,sm:!0,xl:!1,xs:!1,xxl:!1},Ae=(0,Xe.Z)(me,{value:ne,onChange:k}),yn=(0,re.Z)(Ae,2),Rn=yn[0],un=yn[1],Ze=["xxl","xl","lg","md","sm","xs"],te=ce(G==null?void 0:G.items,I,G),be=function(ye){var xn=[0,0],Dn=Array.isArray(ye)?ye:[ye,0];return Dn.forEach(function(zn,kn){if((0,_e.Z)(zn)==="object")for(var $n=0;$n=0&&$n<=24),Dn)),ar=Bn((0,i.jsx)("div",{style:(0,l.Z)((0,l.Z)((0,l.Z)({},ur),Re(fr>0,{paddingInlineEnd:fr/2,paddingInlineStart:fr/2})),Re(tr>0,{paddingBlockStart:tr/2,paddingBlockEnd:tr/2})),className:Ar,children:d.cloneElement(Mn)}));return d.cloneElement(ar,{key:"pro-card-col-".concat((Mn==null?void 0:Mn.key)||ye)})}return Mn}),mr=he()("".concat(D),u,An,(t={},(0,v.Z)(t,"".concat(D,"-border"),z),(0,v.Z)(t,"".concat(D,"-box-shadow"),w),(0,v.Z)(t,"".concat(D,"-contain-card"),sr),(0,v.Z)(t,"".concat(D,"-loading"),b),(0,v.Z)(t,"".concat(D,"-split"),B==="vertical"||B==="horizontal"),(0,v.Z)(t,"".concat(D,"-ghost"),m),(0,v.Z)(t,"".concat(D,"-hoverable"),j),(0,v.Z)(t,"".concat(D,"-size-").concat(Z),Z),(0,v.Z)(t,"".concat(D,"-type-").concat(de),de),(0,v.Z)(t,"".concat(D,"-collapse"),Rn),(0,v.Z)(t,"".concat(D,"-checked"),U),t)),gr=he()("".concat(D,"-body"),An,(n={},(0,v.Z)(n,"".concat(D,"-body-center"),E==="center"),(0,v.Z)(n,"".concat(D,"-body-direction-column"),B==="horizontal"||W==="column"),(0,v.Z)(n,"".concat(D,"-body-wrap"),p&&sr),n)),Rr=o,Pr=d.isValidElement(b)?b:(0,i.jsx)(Ue,{prefix:D,style:(o==null?void 0:o.padding)===0||(o==null?void 0:o.padding)==="0px"?{padding:24}:void 0}),dn=V&&ne===void 0&&(oe?oe({collapsed:Rn}):(0,i.jsx)(He.Z,{rotate:Rn?void 0:90,className:"".concat(D,"-collapsible-icon ").concat(An).trim()}));return Bn((0,i.jsxs)("div",(0,l.Z)((0,l.Z)({className:mr,style:s,ref:e,onClick:function(ye){var xn;K==null||K(ye),Te==null||(xn=Te.onClick)===null||xn===void 0||xn.call(Te,ye)}},(0,Ge.Z)(Te,["prefixCls","colSpan"])),{},{children:[(g||S||dn)&&(0,i.jsxs)("div",{className:he()("".concat(D,"-header"),An,(a={},(0,v.Z)(a,"".concat(D,"-header-border"),Q||de==="inner"),(0,v.Z)(a,"".concat(D,"-header-collapsible"),dn),a)),style:f,onClick:function(){dn&&un(!Rn)},children:[(0,i.jsxs)("div",{className:"".concat(D,"-title ").concat(An).trim(),children:[dn,(0,i.jsx)(sn.G,{label:g,tooltip:$||h,subTitle:C})]}),S&&(0,i.jsx)("div",{className:"".concat(D,"-extra ").concat(An).trim(),onClick:function(ye){return ye.stopPropagation()},children:S})]}),G?(0,i.jsx)("div",{className:"".concat(D,"-tabs ").concat(An).trim(),children:(0,i.jsx)(Le.Z,(0,l.Z)((0,l.Z)({onChange:G.onChange},G),{},{items:te,children:b?Pr:I}))}):(0,i.jsx)("div",{className:gr,style:Rr,children:b?Pr:xr}),O?(0,i.jsx)(nn,{actions:O,prefixCls:D}):null]})))}),fn=Pn,gn=function(e){var t=e.componentCls;return(0,v.Z)({},t,{"&-divider":{flex:"none",width:e.lineWidth,marginInline:e.marginXS,marginBlock:e.marginLG,backgroundColor:e.colorSplit,"&-horizontal":{width:"initial",height:e.lineWidth,marginInline:e.marginLG,marginBlock:e.marginXS}},"&&-size-small &-divider":{marginBlock:e.marginLG,marginInline:e.marginXS,"&-horizontal":{marginBlock:e.marginXS,marginInline:e.marginLG}}})};function an(r){return(0,Ce.Xj)("ProCardDivider",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[gn(t)]})}var ve=function(e){var t=(0,d.useContext)(rn.ZP.ConfigContext),n=t.getPrefixCls,a=n("pro-card"),u="".concat(a,"-divider"),s=an(a),o=s.wrapSSR,f=s.hashId,g=e.className,C=e.style,S=C===void 0?{}:C,h=e.type,P=he()(u,g,f,(0,v.Z)({},"".concat(u,"-").concat(h),h));return o((0,i.jsx)("div",{className:P,style:S}))},Ee=ve,A=function(e){return(0,i.jsx)(fn,(0,l.Z)({bodyStyle:{padding:0}},e))},ee=fn;ee.isProCard=!0,ee.Divider=Ee,ee.TabPane=ie,ee.Group=A;var fe=ee,Se=fe,Ie=c(21510),Sn=c(91805),Fe=c(17122),In=c(44139),Ln=c(16168),Gn=c(75565),pn=c(11979),lr=c(27542),Xn=c(31796),$r=function(e){return e!=null};function Er(r,e,t){var n,a;if(r===!1)return!1;var u=e.total,s=e.current,o=e.pageSize,f=e.setPageInfo,g=(0,_e.Z)(r)==="object"?r:{};return(0,l.Z)((0,l.Z)({showTotal:function(S,h){return"".concat(t.getMessage("pagination.total.range","\u7B2C")," ").concat(h[0],"-").concat(h[1]," ").concat(t.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(S," ").concat(t.getMessage("pagination.total.item","\u6761"))},total:u},g),{},{current:r!==!0&&r&&(n=r.current)!==null&&n!==void 0?n:s,pageSize:r!==!0&&r&&(a=r.pageSize)!==null&&a!==void 0?a:o,onChange:function(S,h){var P=r,p=P.onChange;p==null||p(S,h||20),(h!==o||s!==S)&&f({pageSize:h,current:S})}})}function Tr(r,e,t){var n=(0,l.Z)((0,l.Z)({},t.editableUtils),{},{pageInfo:e.pageInfo,reload:function(){var a=(0,Y.Z)((0,J.Z)().mark(function s(o){return(0,J.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!o){g.next=3;break}return g.next=3,e.setPageInfo({current:1});case 3:return g.next=5,e==null?void 0:e.reload();case 5:case"end":return g.stop()}},s)}));function u(s){return a.apply(this,arguments)}return u}(),reloadAndRest:function(){var a=(0,Y.Z)((0,J.Z)().mark(function s(){return(0,J.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return t.onCleanSelected(),f.next=3,e.setPageInfo({current:1});case 3:return f.next=5,e==null?void 0:e.reload();case 5:case"end":return f.stop()}},s)}));function u(){return a.apply(this,arguments)}return u}(),reset:function(){var a=(0,Y.Z)((0,J.Z)().mark(function s(){var o;return(0,J.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,t.resetAll();case 2:return g.next=4,e==null||(o=e.reset)===null||o===void 0?void 0:o.call(e);case 4:return g.next=6,e==null?void 0:e.reload();case 6:case"end":return g.stop()}},s)}));function u(){return a.apply(this,arguments)}return u}(),fullScreen:function(){return t.fullScreen()},clearSelected:function(){return t.onCleanSelected()},setPageInfo:function(u){return e.setPageInfo(u)}});r.current=n}function Ir(r,e){return e.filter(function(t){return t}).length<1?r:e.reduce(function(t,n){return n(t)},r)}var pr=function(e,t){return t===void 0?!1:typeof t=="boolean"?t:t[e]},De=function(e){var t;return e&&(0,_e.Z)(e)==="object"&&(e==null||(t=e.props)===null||t===void 0?void 0:t.colSpan)},N=function(e,t){return e?Array.isArray(e)?e.join("-"):e.toString():"".concat(t)};function le(r){return Array.isArray(r)?r.join(","):r==null?void 0:r.toString()}function ge(r){var e={},t={};return r.forEach(function(n){var a=le(n.dataIndex);if(a){if(n.filters){var u=n.defaultFilteredValue;u===void 0?e[a]=null:e[a]=n.defaultFilteredValue}n.sorter&&n.defaultSortOrder&&(t[a]=n.defaultSortOrder)}}),{sort:t,filter:e}}function ae(){var r,e,t,n,a,u,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=(0,d.useRef)(),f=(0,d.useRef)(null),g=(0,d.useRef)(),C=(0,d.useRef)(),S=(0,d.useState)(""),h=(0,re.Z)(S,2),P=h[0],p=h[1],E=(0,d.useRef)([]),b=(0,Xe.Z)(function(){return s.size||s.defaultSize||"middle"},{value:s.size,onChange:s.onSizeChange}),y=(0,re.Z)(b,2),R=y[0],$=y[1],B=(0,d.useMemo)(function(){var I,Z;if(s!=null&&(I=s.columnsState)!==null&&I!==void 0&&I.defaultValue)return s.columnsState.defaultValue;var O={};return(Z=s.columns)===null||Z===void 0||Z.forEach(function(T,m){var F=T.key,j=T.dataIndex,W=T.fixed,ne=T.disable,pe=N(F!=null?F:j,m);pe&&(O[pe]={show:!0,fixed:W,disable:ne})}),O},[s.columns]),se=(0,Xe.Z)(function(){var I,Z,O=s.columnsState||{},T=O.persistenceType,m=O.persistenceKey;if(m&&T&&typeof window!="undefined"){var F=window[T];try{var j=F==null?void 0:F.getItem(m);if(j)return JSON.parse(j)}catch(W){console.warn(W)}}return s.columnsStateMap||((I=s.columnsState)===null||I===void 0?void 0:I.value)||((Z=s.columnsState)===null||Z===void 0?void 0:Z.defaultValue)||B},{value:((r=s.columnsState)===null||r===void 0?void 0:r.value)||s.columnsStateMap,onChange:((e=s.columnsState)===null||e===void 0?void 0:e.onChange)||s.onColumnsStateChange}),Q=(0,re.Z)(se,2),M=Q[0],z=Q[1];(0,d.useEffect)(function(){var I=s.columnsState||{},Z=I.persistenceType,O=I.persistenceKey;if(O&&Z&&typeof window!="undefined"){var T=window[Z];try{var m=T==null?void 0:T.getItem(O);z(m?JSON.parse(m):B)}catch(F){console.warn(F)}}},[(t=s.columnsState)===null||t===void 0?void 0:t.persistenceKey,(n=s.columnsState)===null||n===void 0?void 0:n.persistenceType,B]),(0,Nn.ET)(!s.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,Nn.ET)(!s.columnsStateMap,"columnsStateMap has been discarded, please use columnsState.value replacement");var L=(0,d.useCallback)(function(){var I=s.columnsState||{},Z=I.persistenceType,O=I.persistenceKey;if(!(!O||!Z||typeof window=="undefined")){var T=window[Z];try{T==null||T.removeItem(O)}catch(m){console.warn(m)}}},[s.columnsState]);(0,d.useEffect)(function(){var I,Z;if(!(!((I=s.columnsState)!==null&&I!==void 0&&I.persistenceKey)||!((Z=s.columnsState)!==null&&Z!==void 0&&Z.persistenceType))&&typeof window!="undefined"){var O=s.columnsState,T=O.persistenceType,m=O.persistenceKey,F=window[T];try{F==null||F.setItem(m,JSON.stringify(M))}catch(j){console.warn(j),L()}}},[(a=s.columnsState)===null||a===void 0?void 0:a.persistenceKey,M,(u=s.columnsState)===null||u===void 0?void 0:u.persistenceType]);var w={action:o.current,setAction:function(Z){o.current=Z},sortKeyColumns:E.current,setSortKeyColumns:function(Z){E.current=Z},propsRef:C,columnsMap:M,keyWords:P,setKeyWords:function(Z){return p(Z)},setTableSize:$,tableSize:R,prefixName:g.current,setPrefixName:function(Z){g.current=Z},setColumnsMap:z,columns:s.columns,rootDomRef:f,clearPersistenceStorage:L,defaultColumnKeyMap:B};return Object.defineProperty(w,"prefixName",{get:function(){return g.current}}),Object.defineProperty(w,"sortKeyColumns",{get:function(){return E.current}}),Object.defineProperty(w,"action",{get:function(){return o.current}}),w}var je=(0,d.createContext)({}),qe=function(e){var t=ae(e.initValue);return(0,i.jsx)(je.Provider,{value:t,children:e.children})},Me=c(75200),We=function(e){return(0,v.Z)({},e.componentCls,{marginBlockEnd:16,backgroundColor:(0,Ce.uK)(e.colorTextBase,.02),borderRadius:e.borderRadius,border:"none","&-container":{paddingBlock:e.paddingSM,paddingInline:e.paddingLG},"&-info":{display:"flex",alignItems:"center",transition:"all 0.3s",color:e.colorTextTertiary,"&-content":{flex:1},"&-option":{minWidth:48,paddingInlineStart:16}}})};function we(r){return(0,Ce.Xj)("ProTableAlert",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[We(t)]})}var En=function(e){var t=e.intl,n=e.onCleanSelected;return[(0,i.jsx)("a",{onClick:n,children:t.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function mn(r){var e=r.selectedRowKeys,t=e===void 0?[]:e,n=r.onCleanSelected,a=r.alwaysShowAlert,u=r.selectedRows,s=r.alertInfoRender,o=s===void 0?function($){var B=$.intl;return(0,i.jsxs)(Me.Z,{children:[B.getMessage("alert.selected","\u5DF2\u9009\u62E9"),t.length,B.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:s,f=r.alertOptionRender,g=f===void 0?En:f,C=(0,Fe.YB)(),S=g&&g({onCleanSelected:n,selectedRowKeys:t,selectedRows:u,intl:C}),h=(0,d.useContext)(rn.ZP.ConfigContext),P=h.getPrefixCls,p=P("pro-table-alert"),E=we(p),b=E.wrapSSR,y=E.hashId;if(o===!1)return null;var R=o({intl:C,selectedRowKeys:t,selectedRows:u,onCleanSelected:n});return R===!1||t.length<1&&!a?null:b((0,i.jsx)("div",{className:"".concat(p," ").concat(y).trim(),children:(0,i.jsx)("div",{className:"".concat(p,"-container ").concat(y).trim(),children:(0,i.jsxs)("div",{className:"".concat(p,"-info ").concat(y).trim(),children:[(0,i.jsx)("div",{className:"".concat(p,"-info-content ").concat(y).trim(),children:R}),S?(0,i.jsx)("div",{className:"".concat(p,"-info-option ").concat(y).trim(),children:S}):null]})})}))}var yr=mn,Mr=c(77254),Wn=c(47920),Qn=c(95325),Wr=c(44906),Ur=c(41399),Vr=c(4978);function ft(){var r=(0,d.useState)(!0),e=(0,re.Z)(r,2),t=e[1],n=(0,d.useCallback)(function(){return t(function(a){return!a})},[]);return n}function mt(r,e){var t=(0,d.useMemo)(function(){var n={current:e};return new Proxy(n,{set:function(u,s,o){return Object.is(u[s],o)||(u[s]=o,r(t)),!0}})},[]);return t}function ht(r){var e=ft(),t=mt(e,r);return t}var _r=c(18941),qn=c(13165),er=c(44559),kr=c(66607),Cr=c(67190),Hr=c(87322),gt=c(19465),pt=c(72266),yt=c.n(pt),wr=c(10422),Fr=c(1704),Ct=function(e){return(0,v.Z)({},e.componentCls,{"&-sidebar-dragger":{width:"5px",cursor:"ew-resize",padding:"4px 0 0",borderTop:"1px solid transparent",position:"absolute",top:0,left:0,bottom:0,zIndex:100,backgroundColor:"transparent","&-min-disabled":{cursor:"w-resize"},"&-max-disabled":{cursor:"e-resize"}}})};function Zt(r){return(0,Ce.Xj)("DrawerForm",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Ct(t)]})}var bt=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","resize","onOpenChange","visible","open"];function St(r){var e,t,n,a=r.children,u=r.trigger,s=r.onVisibleChange,o=r.drawerProps,f=r.onFinish,g=r.submitTimeout,C=r.title,S=r.width,h=r.resize,P=r.onOpenChange,p=r.visible,E=r.open,b=(0,H.Z)(r,bt);(0,Nn.ET)(!b.footer||!(o!=null&&o.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var y=d.useMemo(function(){var Ze,te,be,Re={onResize:function(){},maxWidth:window.innerWidth*.8,minWidth:300};return typeof h=="boolean"?h?Re:{}:(0,Ln.Y)({onResize:(Ze=h==null?void 0:h.onResize)!==null&&Ze!==void 0?Ze:Re.onResize,maxWidth:(te=h==null?void 0:h.maxWidth)!==null&&te!==void 0?te:Re.maxWidth,minWidth:(be=h==null?void 0:h.minWidth)!==null&&be!==void 0?be:Re.minWidth})},[h]),R=(0,d.useContext)(rn.ZP.ConfigContext),$=R.getPrefixCls("pro-form-drawer"),B=Zt($),se=B.wrapSSR,Q=B.hashId,M=function(te){return"".concat($,"-").concat(te," ").concat(Q)},z=(0,d.useState)([]),L=(0,re.Z)(z,2),w=L[1],I=(0,d.useState)(!1),Z=(0,re.Z)(I,2),O=Z[0],T=Z[1],m=(0,d.useState)(!1),F=(0,re.Z)(m,2),j=F[0],W=F[1],ne=(0,d.useState)(S||(h?y==null?void 0:y.minWidth:800)),pe=(0,re.Z)(ne,2),V=pe[0],oe=pe[1],xe=(0,Xe.Z)(!!p,{value:E||p,onChange:P||s}),me=(0,re.Z)(xe,2),k=me[0],U=me[1],K=(0,d.useRef)(null),G=(0,d.useCallback)(function(Ze){K.current===null&&Ze&&w([]),K.current=Ze},[]),de=(0,d.useRef)(),Te=(0,d.useCallback)(function(){var Ze,te,be,Re=(Ze=(te=(be=b.formRef)===null||be===void 0?void 0:be.current)!==null&&te!==void 0?te:b.form)!==null&&Ze!==void 0?Ze:de.current;Re&&o!==null&&o!==void 0&&o.destroyOnClose&&Re.resetFields()},[o==null?void 0:o.destroyOnClose,b.form,b.formRef]);(0,d.useEffect)(function(){k&&(E||p)&&(P==null||P(!0),s==null||s(!0)),j&&oe(y==null?void 0:y.minWidth)},[p,k,j]),(0,d.useImperativeHandle)(b.formRef,function(){return de.current},[de.current]);var Ne=(0,d.useMemo)(function(){return u?d.cloneElement(u,(0,l.Z)((0,l.Z)({key:"trigger"},u.props),{},{onClick:function(){var Ze=(0,Y.Z)((0,J.Z)().mark(function be(Re){var hn,D;return(0,J.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:U(!k),W(!Object.keys(y)),(hn=u.props)===null||hn===void 0||(D=hn.onClick)===null||D===void 0||D.call(hn,Re);case 3:case"end":return Bn.stop()}},be)}));function te(be){return Ze.apply(this,arguments)}return te}()})):null},[U,u,k,W,j]),en=(0,d.useMemo)(function(){var Ze,te,be,Re;return b.submitter===!1?!1:yt()({searchConfig:{submitText:(Ze=(te=R.locale)===null||te===void 0||(te=te.Modal)===null||te===void 0?void 0:te.okText)!==null&&Ze!==void 0?Ze:"\u786E\u8BA4",resetText:(be=(Re=R.locale)===null||Re===void 0||(Re=Re.Modal)===null||Re===void 0?void 0:Re.cancelText)!==null&&be!==void 0?be:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:g?O:void 0,onClick:function(D){var Un;U(!1),o==null||(Un=o.onClose)===null||Un===void 0||Un.call(o,D)}}},b.submitter)},[b.submitter,(e=R.locale)===null||e===void 0||(e=e.Modal)===null||e===void 0?void 0:e.okText,(t=R.locale)===null||t===void 0||(t=t.Modal)===null||t===void 0?void 0:t.cancelText,g,O,U,o]),ke=(0,d.useCallback)(function(Ze,te){return(0,i.jsxs)(i.Fragment,{children:[Ze,K.current&&te?(0,i.jsx)(d.Fragment,{children:(0,wr.createPortal)(te,K.current)},"submitter"):te]})},[]),Ae=(0,qn.J)(function(){var Ze=(0,Y.Z)((0,J.Z)().mark(function te(be){var Re,hn,D;return(0,J.Z)().wrap(function(Bn){for(;;)switch(Bn.prev=Bn.next){case 0:return Re=f==null?void 0:f(be),g&&Re instanceof Promise&&(T(!0),hn=setTimeout(function(){return T(!1)},g),Re.finally(function(){clearTimeout(hn),T(!1)})),Bn.next=4,Re;case 4:return D=Bn.sent,D&&U(!1),Bn.abrupt("return",D);case 7:case"end":return Bn.stop()}},te)}));return function(te){return Ze.apply(this,arguments)}}()),yn=(0,Hr.X)(k,s),Rn=(0,d.useCallback)(function(Ze){var te,be,Re=(document.body.offsetWidth||1e3)-(Ze.clientX-document.body.offsetLeft),hn=(te=y==null?void 0:y.minWidth)!==null&&te!==void 0?te:S||800,D=(be=y==null?void 0:y.maxWidth)!==null&&be!==void 0?be:window.innerWidth*.8;if(ReD){oe(D);return}oe(Re)},[y==null?void 0:y.maxWidth,y==null?void 0:y.minWidth,S]),un=(0,d.useCallback)(function(){document.removeEventListener("mousemove",Rn),document.removeEventListener("mouseup",un)},[Rn]);return se((0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(gt.Z,(0,l.Z)((0,l.Z)((0,l.Z)({title:C,width:V},o),yn),{},{afterOpenChange:function(te){var be;te||Te(),o==null||(be=o.afterOpenChange)===null||be===void 0||be.call(o,te)},onClose:function(te){var be;g&&O||(U(!1),o==null||(be=o.onClose)===null||be===void 0||be.call(o,te))},footer:b.submitter!==!1&&(0,i.jsx)("div",{ref:G,style:{display:"flex",justifyContent:"flex-end"}}),children:[(0,i.jsx)("div",{className:h?he()(M("sidebar-dragger"),Q,(n={},(0,v.Z)(n,M("sidebar-dragger-min-disabled"),V===(y==null?void 0:y.minWidth)),(0,v.Z)(n,M("sidebar-dragger-max-disabled"),V===(y==null?void 0:y.maxWidth)),n)):null,onMouseDown:function(te){var be;y==null||(be=y.onResize)===null||be===void 0||be.call(y),te.stopPropagation(),te.preventDefault(),document.addEventListener("mousemove",Rn),document.addEventListener("mouseup",un),W(!0)}}),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Fr.I,(0,l.Z)((0,l.Z)({formComponentType:"DrawerForm",layout:"vertical"},b),{},{formRef:de,onInit:function(te,be){var Re;b.formRef&&(b.formRef.current=be),b==null||(Re=b.onInit)===null||Re===void 0||Re.call(b,te,be),de.current=be},submitter:en,onFinish:function(){var Ze=(0,Y.Z)((0,J.Z)().mark(function te(be){var Re;return(0,J.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,Ae(be);case 2:return Re=D.sent,D.abrupt("return",Re);case 4:case"end":return D.stop()}},te)}));return function(te){return Ze.apply(this,arguments)}}(),contentRender:ke,children:a}))})]})),Ne]}))}var dr=c(38126),xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"},Rt=xt,cr=c(38782),Pt=function(e,t){return d.createElement(cr.Z,(0,dr.Z)({},e,{ref:t,icon:Rt}))},Et=d.forwardRef(Pt),Tt=c(22532),It=c(56829),Mt=function(e){return(0,v.Z)({},e.componentCls,{lineHeight:"30px","&::before":{display:"block",height:0,visibility:"hidden",content:"'.'"},"&-small":{lineHeight:e.lineHeight},"&-container":{display:"flex",flexWrap:"wrap",gap:e.marginXS},"&-item":(0,v.Z)({whiteSpace:"nowrap"},"".concat(e.antCls,"-form-item"),{marginBlock:0}),"&-line":{minWidth:"198px"},"&-line:not(:first-child)":{marginBlockStart:"16px",marginBlockEnd:8},"&-collapse-icon":{width:e.controlHeight,height:e.controlHeight,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center"},"&-effective":(0,v.Z)({},"".concat(e.componentCls,"-collapse-icon"),{backgroundColor:e.colorBgTextHover})})};function wt(r){return(0,Ce.Xj)("LightFilter",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Mt(t)]})}var Ft=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],jt=function(e){var t=e.items,n=e.prefixCls,a=e.size,u=a===void 0?"middle":a,s=e.collapse,o=e.collapseLabel,f=e.onValuesChange,g=e.bordered,C=e.values,S=e.footerRender,h=e.placement,P=(0,Fe.YB)(),p="".concat(n,"-light-filter"),E=wt(p),b=E.wrapSSR,y=E.hashId,R=(0,d.useState)(!1),$=(0,re.Z)(R,2),B=$[0],se=$[1],Q=(0,d.useState)(function(){return(0,l.Z)({},C)}),M=(0,re.Z)(Q,2),z=M[0],L=M[1];(0,d.useEffect)(function(){L((0,l.Z)({},C))},[C]);var w=(0,d.useMemo)(function(){var T=[],m=[];return t.forEach(function(F){var j=F.props||{},W=j.secondary;W||s?T.push(F):m.push(F)}),{collapseItems:T,outsideItems:m}},[e.items]),I=w.collapseItems,Z=w.outsideItems,O=function(){return o||(s?(0,i.jsx)(Et,{className:"".concat(p,"-collapse-icon ").concat(y).trim()}):(0,i.jsx)(Tt.Q,{size:u,label:P.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009")}))};return b((0,i.jsx)("div",{className:he()(p,y,"".concat(p,"-").concat(u),(0,v.Z)({},"".concat(p,"-effective"),Object.keys(C).some(function(T){return Array.isArray(C[T])?C[T].length>0:C[T]}))),children:(0,i.jsxs)("div",{className:"".concat(p,"-container ").concat(y).trim(),children:[Z.map(function(T,m){var F=T.key,j=T.props.fieldProps,W=j!=null&&j.placement?j==null?void 0:j.placement:h;return(0,i.jsx)("div",{className:"".concat(p,"-item ").concat(y).trim(),children:d.cloneElement(T,{fieldProps:(0,l.Z)((0,l.Z)({},T.props.fieldProps),{},{placement:W}),proFieldProps:(0,l.Z)((0,l.Z)({},T.props.proFieldProps),{},{light:!0,label:T.props.label,bordered:g}),bordered:g})},F||m)}),I.length?(0,i.jsx)("div",{className:"".concat(p,"-item ").concat(y).trim(),children:(0,i.jsx)(It.M,{padding:24,open:B,onOpenChange:function(m){se(m)},placement:h,label:O(),footerRender:S,footer:{onConfirm:function(){f((0,l.Z)({},z)),se(!1)},onClear:function(){var m={};I.forEach(function(F){var j=F.props.name;m[j]=void 0}),f(m)}},children:I.map(function(T){var m=T.key,F=T.props,j=F.name,W=F.fieldProps,ne=(0,l.Z)((0,l.Z)({},W),{},{onChange:function(oe){return L((0,l.Z)((0,l.Z)({},z),{},(0,v.Z)({},j,oe!=null&&oe.target?oe.target.value:oe))),!1}});z.hasOwnProperty(j)&&(ne[T.props.valuePropName||"value"]=z[j]);var pe=W!=null&&W.placement?W==null?void 0:W.placement:h;return(0,i.jsx)("div",{className:"".concat(p,"-line ").concat(y).trim(),children:d.cloneElement(T,{fieldProps:(0,l.Z)((0,l.Z)({},ne),{},{placement:pe})})},m)})})},"more"):null]})}))};function Lt(r){var e=r.size,t=r.collapse,n=r.collapseLabel,a=r.initialValues,u=r.onValuesChange,s=r.form,o=r.placement,f=r.formRef,g=r.bordered,C=r.ignoreRules,S=r.footerRender,h=(0,H.Z)(r,Ft),P=(0,d.useContext)(rn.ZP.ConfigContext),p=P.getPrefixCls,E=p("pro-form"),b=(0,d.useState)(function(){return(0,l.Z)({},a)}),y=(0,re.Z)(b,2),R=y[0],$=y[1],B=(0,d.useRef)();return(0,d.useImperativeHandle)(f,function(){return B.current},[B.current]),(0,i.jsx)(Fr.I,(0,l.Z)((0,l.Z)({size:e,initialValues:a,form:s,contentRender:function(Q){return(0,i.jsx)(jt,{prefixCls:E,items:Q==null?void 0:Q.flatMap(function(M){return(M==null?void 0:M.type.displayName)==="ProForm-Group"?M.props.children:M}),size:e,bordered:g,collapse:t,collapseLabel:n,placement:o,values:R||{},footerRender:S,onValuesChange:function(z){var L,w,I=(0,l.Z)((0,l.Z)({},R),z);$(I),(L=B.current)===null||L===void 0||L.setFieldsValue(I),(w=B.current)===null||w===void 0||w.submit(),u&&u(z,I)}})},formRef:B,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,Ge.Z)(h,["labelWidth"])),{},{onValuesChange:function(Q,M){var z;$(M),u==null||u(Q,M),(z=B.current)===null||z===void 0||z.submit()}}))}var Ot=c(76022),Zr=c(43997),Gr=c(87440),Xr=c(12682),jr=c(85824),Jr=function(e){if(e&&e!==!0)return e},Bt=function(e,t,n,a){return e?(0,i.jsxs)(i.Fragment,{children:[n.getMessage("tableForm.collapsed","\u5C55\u5F00"),a&&"(".concat(a,")"),(0,i.jsx)(jr.Z,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,i.jsxs)(i.Fragment,{children:[n.getMessage("tableForm.expand","\u6536\u8D77"),(0,i.jsx)(jr.Z,{style:{marginInlineStart:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},Dt=function(e){var t=e.setCollapsed,n=e.collapsed,a=n===void 0?!1:n,u=e.submitter,s=e.style,o=e.hiddenNum,f=(0,d.useContext)(rn.ZP.ConfigContext),g=f.getPrefixCls,C=(0,Fe.YB)(),S=(0,d.useContext)(Fe.L_),h=S.hashId,P=Jr(e.collapseRender)||Bt;return(0,i.jsxs)(Me.Z,{style:s,size:16,children:[u,e.collapseRender!==!1&&(0,i.jsx)("a",{className:"".concat(g("pro-query-filter-collapse-button")," ").concat(h).trim(),onClick:function(){return t(!a)},children:P==null?void 0:P(a,e,C,o)})]})},Nt=Dt,Kt=function(e){var t,n;return(0,v.Z)({},e.componentCls,(n={"&&":{padding:24}},(0,v.Z)(n,"".concat(e.antCls,"-form-item"),{marginBlock:0}),(0,v.Z)(n,"".concat(e.proComponentsCls,"-form-group-title"),{marginBlock:0}),(0,v.Z)(n,"&-row",{rowGap:24,"&-split":(t={},(0,v.Z)(t,"".concat(e.proComponentsCls,"-form-group"),{display:"flex",alignItems:"center",gap:e.marginXS}),(0,v.Z)(t,"&:last-child",{marginBlockEnd:12}),t),"&-split-line":{"&:after":{position:"absolute",width:"100%",content:'""',height:1,insetBlockEnd:-12,borderBlockEnd:"1px dashed ".concat(e.colorSplit)}}}),(0,v.Z)(n,"&-collapse-button",{display:"flex",alignItems:"center",color:e.colorPrimary}),n))};function At(r){return(0,Ce.Xj)("QueryFilter",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Kt(t)]})}var zt=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum","submitterColSpanProps"],vr,$t={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:1/0},Yr={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[1/0,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[1/0,4,"horizontal"]]},Wt=function(e,t,n){if(n&&typeof n=="number")return{span:n,layout:e};var a=n?["xs","sm","md","lg","xl","xxl"].map(function(s){return[$t[s],24/n[s],"horizontal"]}):Yr[e||"default"],u=(a||Yr.default).find(function(s){return tB-1)&&!!oe&&L>=24;w+=1;var Ne=d.isValidElement(V)&&(V.key||"".concat((U=V.props)===null||U===void 0?void 0:U.name))||oe;return d.isValidElement(V)&&Te?e.preserve?{itemDom:d.cloneElement(V,{hidden:!0,key:Ne||oe}),hidden:!0,colSpan:G}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:V,colSpan:G,hidden:!1}}),m=T.map(function(V,oe){var xe,me,k=V.itemDom,U=V.colSpan,K=k==null||(xe=k.props)===null||xe===void 0?void 0:xe.hidden;if(K)return k;var G=d.isValidElement(k)&&(k.key||"".concat((me=k.props)===null||me===void 0?void 0:me.name))||oe;return 24-O%2424){var me,k;return 24-((me=(k=e.submitterColSpanProps)===null||k===void 0?void 0:k.span)!==null&&me!==void 0?me:$.span)}return 24-xe},[O,O%24+((t=(n=e.submitterColSpanProps)===null||n===void 0?void 0:n.span)!==null&&t!==void 0?t:$.span),(a=e.submitterColSpanProps)===null||a===void 0?void 0:a.span]),ne=(0,d.useContext)(rn.ZP.ConfigContext),pe=ne.getPrefixCls("pro-query-filter");return(0,i.jsxs)(tn.Z,{gutter:se,justify:"start",className:he()("".concat(pe,"-row"),f),children:[m,z&&(0,i.jsx)(q.Z,(0,l.Z)((0,l.Z)({span:$.span,offset:W,className:he()((u=e.submitterColSpanProps)===null||u===void 0?void 0:u.className)},e.submitterColSpanProps),{},{style:{textAlign:"end"},children:(0,i.jsx)(Cr.Z.Item,{label:" ",colon:!1,shouldUpdate:!1,className:"".concat(pe,"-actions ").concat(f).trim(),children:(0,i.jsx)(Nt,{hiddenNum:F,collapsed:P,collapseRender:j?b:!1,submitter:z,setCollapsed:p},"pro-form-query-filter-actions")})}),"submitter")]},"resize-observer-row")},_t=(0,Gr.j)()?(vr=document)===null||vr===void 0||(vr=vr.body)===null||vr===void 0?void 0:vr.clientWidth:1024;function kt(r){var e=r.collapsed,t=r.layout,n=r.defaultCollapsed,a=n===void 0?!0:n,u=r.defaultColsNumber,s=r.span,o=r.searchGutter,f=o===void 0?24:o,g=r.searchText,C=r.resetText,S=r.optionRender,h=r.collapseRender,P=r.onReset,p=r.onCollapse,E=r.labelWidth,b=E===void 0?"80":E,y=r.style,R=r.split,$=r.preserve,B=$===void 0?!0:$,se=r.ignoreRules,Q=r.showHiddenNum,M=Q===void 0?!1:Q,z=r.submitterColSpanProps,L=(0,H.Z)(r,zt),w=(0,d.useContext)(rn.ZP.ConfigContext),I=w.getPrefixCls("pro-query-filter"),Z=At(I),O=Z.wrapSSR,T=Z.hashId,m=(0,Xe.Z)(function(){return typeof(y==null?void 0:y.width)=="number"?y==null?void 0:y.width:_t}),F=(0,re.Z)(m,2),j=F[0],W=F[1],ne=(0,d.useMemo)(function(){return Wt(t,j+16,s)},[t,j,s]),pe=(0,d.useMemo)(function(){return u!==void 0?u-1:Math.max(1,24/ne.span-1)},[u,ne.span]),V=(0,d.useMemo)(function(){if(b&&ne.layout!=="vertical"&&b!=="auto")return{labelCol:{flex:"0 0 ".concat(b,"px")},wrapperCol:{style:{maxWidth:"calc(100% - ".concat(b,"px)")}},style:{flexWrap:"nowrap"}}},[ne.layout,b]);return O((0,i.jsx)(Xr.Z,{onResize:function(xe){j!==xe.width&&xe.width>17&&W(xe.width)},children:(0,i.jsx)(Fr.I,(0,l.Z)((0,l.Z)({isKeyPressSubmit:!0,preserve:B},L),{},{className:he()(I,T,L.className),onReset:P,style:y,layout:ne.layout,fieldProps:{style:{width:"100%"}},formItemProps:V,groupProps:{titleStyle:{display:"inline-block",marginInlineEnd:16}},contentRender:function(xe,me,k){return(0,i.jsx)(Vt,{spanSize:ne,collapsed:e,form:k,submitterColSpanProps:z,collapseRender:h,defaultCollapsed:a,onCollapse:p,optionRender:S,submitter:me,items:xe,split:R,baseClassName:I,resetText:r.resetText,searchText:r.searchText,searchGutter:f,preserve:B,ignoreRules:se,showLength:pe,showHiddenNum:M})}}))},"resize-observer"))}var Qr=c(76791),Ht=["steps","columns","forceUpdate","grid"],Gt=function(e){var t=e.steps,n=e.columns,a=e.forceUpdate,u=e.grid,s=(0,H.Z)(e,Ht),o=(0,_r.d)(s),f=(0,d.useCallback)(function(C){var S,h;(S=(h=o.current).onCurrentChange)===null||S===void 0||S.call(h,C),a([])},[a,o]),g=(0,d.useMemo)(function(){return t==null?void 0:t.map(function(C,S){return(0,d.createElement)(nt,(0,l.Z)((0,l.Z)({grid:u},C),{},{key:S,layoutType:"StepForm",columns:n[S]}))})},[n,u,t]);return(0,i.jsx)(Qr.L0,(0,l.Z)((0,l.Z)({},s),{},{onCurrentChange:f,children:g}))},Xt=Gt,Jt=function(e){var t=e.children;return(0,i.jsx)(i.Fragment,{children:t})},Yt=Jt,qr=c(80288),Qt=function(e,t){if(e.valueType==="dependency"){var n,a,u,s=(n=e.getFieldProps)===null||n===void 0?void 0:n.call(e);return(0,Nn.ET)(Array.isArray((a=e.name)!==null&&a!==void 0?a:s==null?void 0:s.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,Nn.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((u=e.name)!==null&&u!==void 0?u:s==null?void 0:s.name)?(0,d.createElement)(qr.Z,(0,l.Z)((0,l.Z)({name:e.name},s),{},{key:e.key}),function(o){return!e.columns||typeof e.columns!="function"?null:t.genItems(e.columns(o))}):null}return!0},qt=c(84922),ea=function(e){if(e.valueType==="divider"){var t;return(0,d.createElement)(qt.Z,(0,l.Z)((0,l.Z)({},(t=e.getFieldProps)===null||t===void 0?void 0:t.call(e)),{},{key:e.key}))}return!0},br=c(82578),na=function(e,t){var n=t.action,a=t.formRef,u=t.type,s=t.originItem,o=(0,l.Z)((0,l.Z)({},(0,Ge.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.name||e.key||e.dataIndex,width:e.width,render:e!=null&&e.render?function(S,h,P){var p,E,b,y;return e==null||(p=e.render)===null||p===void 0?void 0:p.call(e,S,h,P,n==null?void 0:n.current,(0,l.Z)((0,l.Z)({type:u},e),{},{key:(E=e.key)===null||E===void 0?void 0:E.toString(),formItemProps:(b=e.getFormItemProps)===null||b===void 0?void 0:b.call(e),fieldProps:(y=e.getFieldProps)===null||y===void 0?void 0:y.call(e)}))}:void 0}),f=function(){return(0,i.jsx)(br.Z,(0,l.Z)((0,l.Z)({},o),{},{ignoreFormItem:!0}))},g=e!=null&&e.renderFormItem?function(S,h){var P,p,E,b,y=(0,Ln.Y)((0,l.Z)((0,l.Z)({},h),{},{onChange:void 0}));return e==null||(P=e.renderFormItem)===null||P===void 0?void 0:P.call(e,(0,l.Z)((0,l.Z)({type:u},e),{},{key:(p=e.key)===null||p===void 0?void 0:p.toString(),formItemProps:(E=e.getFormItemProps)===null||E===void 0?void 0:E.call(e),fieldProps:(b=e.getFieldProps)===null||b===void 0?void 0:b.call(e),originProps:s}),(0,l.Z)((0,l.Z)({},y),{},{defaultRender:f,type:u}),a.current)}:void 0,C=function(){if(e!=null&&e.renderFormItem){var h=g==null?void 0:g(null,{});if(!h||e.ignoreFormItem)return h}return(0,d.createElement)(br.Z,(0,l.Z)((0,l.Z)({},o),{},{key:[e.key,e.index||0].join("-"),renderFormItem:g}))};return e.dependencies?(0,i.jsx)(qr.Z,{name:e.dependencies||[],children:C},e.key):C()},ra=c(58460),ta=function(e,t){var n=t.genItems;if(e.valueType==="formList"&&e.dataIndex){var a,u;return!e.columns||!Array.isArray(e.columns)?null:(0,d.createElement)(ra.u,(0,l.Z)((0,l.Z)({},(a=e.getFormItemProps)===null||a===void 0?void 0:a.call(e)),{},{key:e.key,name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(u=e.getFieldProps)===null||u===void 0?void 0:u.call(e)),n(e.columns))}return!0},aa=c(68344),la=function(e,t){var n=t.genItems;if(e.valueType==="formSet"&&e.dataIndex){var a,u;return!e.columns||!Array.isArray(e.columns)?null:(0,d.createElement)(aa.Z,(0,l.Z)((0,l.Z)({},(a=e.getFormItemProps)===null||a===void 0?void 0:a.call(e)),{},{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(u=e.getFieldProps)===null||u===void 0?void 0:u.call(e)),n(e.columns))}return!0},oa=Zr.A.Group,ia=function(e,t){var n=t.genItems;if(e.valueType==="group"){var a;return!e.columns||!Array.isArray(e.columns)?null:(0,i.jsx)(oa,(0,l.Z)((0,l.Z)({label:e.label,colProps:e.colProps,rowProps:e.rowProps},(a=e.getFieldProps)===null||a===void 0?void 0:a.call(e)),{},{children:n(e.columns)}),e.key)}return!0},sa=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},et=[sa,ia,ta,la,ea,Qt],ua=function(e,t){for(var n=0;n span":{"> span.anticon":{color:e.colorPrimary}},"> span + span":{marginInlineStart:4}}}),a)),u};function Da(r){return(0,Ce.Xj)("ColumnSetting",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Ba(t)]})}var Na=["key","dataIndex","children"],Ka=["disabled"],Lr=function(e){var t=e.title,n=e.show,a=e.children,u=e.columnKey,s=e.fixed,o=(0,d.useContext)(je),f=o.columnsMap,g=o.setColumnsMap;return n?(0,i.jsx)(or.Z,{title:t,children:(0,i.jsx)("span",{onClick:function(S){S.stopPropagation(),S.preventDefault();var h=f[u]||{},P=(0,l.Z)((0,l.Z)({},f),{},(0,v.Z)({},u,(0,l.Z)((0,l.Z)({},h),{},{fixed:s})));g(P)},children:a})}):null},Aa=function(e){var t=e.columnKey,n=e.isLeaf,a=e.title,u=e.className,s=e.fixed,o=e.showListItemOption,f=(0,Fe.YB)(),g=(0,d.useContext)(Fe.L_),C=g.hashId,S=(0,i.jsxs)("span",{className:"".concat(u,"-list-item-option ").concat(C).trim(),children:[(0,i.jsx)(Lr,{columnKey:t,fixed:"left",title:f.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:s!=="left",children:(0,i.jsx)(Sa.Z,{})}),(0,i.jsx)(Lr,{columnKey:t,fixed:void 0,title:f.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!s,children:(0,i.jsx)(Ea,{})}),(0,i.jsx)(Lr,{columnKey:t,fixed:"right",title:f.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:s!=="right",children:(0,i.jsx)(wa,{})})]});return(0,i.jsxs)("span",{className:"".concat(u,"-list-item ").concat(C).trim(),children:[(0,i.jsx)("div",{className:"".concat(u,"-list-item-title ").concat(C).trim(),children:a}),o&&!n?S:null]},t)},Or=function(e){var t,n,a,u=e.list,s=e.draggable,o=e.checkable,f=e.showListItemOption,g=e.className,C=e.showTitle,S=C===void 0?!0:C,h=e.title,P=e.listHeight,p=P===void 0?280:P,E=(0,d.useContext)(Fe.L_),b=E.hashId,y=(0,d.useContext)(je),R=y.columnsMap,$=y.setColumnsMap,B=y.sortKeyColumns,se=y.setSortKeyColumns,Q=u&&u.length>0,M=(0,d.useMemo)(function(){if(!Q)return{};var I=[],Z=new Map,O=function T(m,F){return m.map(function(j){var W,ne=j.key,pe=j.dataIndex,V=j.children,oe=(0,H.Z)(j,Na),xe=N(ne,[F==null?void 0:F.columnKey,oe.index].filter(Boolean).join("-")),me=R[xe||"null"]||{show:!0};me.show!==!1&&!V&&I.push(xe);var k=(0,l.Z)((0,l.Z)({key:xe},(0,Ge.Z)(oe,["className"])),{},{selectable:!1,disabled:me.disable===!0,disableCheckbox:typeof me.disable=="boolean"?me.disable:(W=me.disable)===null||W===void 0?void 0:W.checkbox,isLeaf:F?!0:void 0});if(V){var U;k.children=T(V,(0,l.Z)((0,l.Z)({},me),{},{columnKey:xe})),(U=k.children)!==null&&U!==void 0&&U.every(function(K){return I==null?void 0:I.includes(K.key)})&&I.push(xe)}return Z.set(ne,k),k})};return{list:O(u),keys:I,map:Z}},[R,u,Q]),z=(0,qn.J)(function(I,Z,O){var T=(0,l.Z)({},R),m=(0,Cn.Z)(B),F=m.findIndex(function(pe){return pe===I}),j=m.findIndex(function(pe){return pe===Z}),W=O>F;if(!(F<0)){var ne=m[F];m.splice(F,1),O===0?m.unshift(ne):m.splice(W?j:j+1,0,ne),m.forEach(function(pe,V){T[pe]=(0,l.Z)((0,l.Z)({},T[pe]||{}),{},{order:V})}),$(T),se(m)}}),L=(0,qn.J)(function(I){var Z=(0,l.Z)({},R),O=function T(m){var F,j=(0,l.Z)({},Z[m]);if(j.show=I.checked,(F=M.map)!==null&&F!==void 0&&(F=F.get(m))!==null&&F!==void 0&&F.children){var W;(W=M.map.get(m))===null||W===void 0||(W=W.children)===null||W===void 0||W.forEach(function(ne){return T(ne.key)})}Z[m]=j};O(I.node.key),$((0,l.Z)({},Z))});if(!Q)return null;var w=(0,i.jsx)(ja.Z,{itemHeight:24,draggable:s&&!!((t=M.list)!==null&&t!==void 0&&t.length)&&((n=M.list)===null||n===void 0?void 0:n.length)>1,checkable:o,onDrop:function(Z){var O=Z.node.key,T=Z.dragNode.key,m=Z.dropPosition,F=Z.dropToGap,j=m===-1||!F?m+1:m;z(T,O,j)},blockNode:!0,onCheck:function(Z,O){return L(O)},checkedKeys:M.keys,showLine:!1,titleRender:function(Z){var O=(0,l.Z)((0,l.Z)({},Z),{},{children:void 0});return O.title?(0,i.jsx)(Aa,(0,l.Z)((0,l.Z)({className:g},O),{},{showListItemOption:f,title:(0,er.h)(O.title,O),columnKey:O.key})):null},height:p,treeData:(a=M.list)===null||a===void 0?void 0:a.map(function(I){var Z=I.disabled,O=(0,H.Z)(I,Ka);return O})});return(0,i.jsxs)(i.Fragment,{children:[S&&(0,i.jsx)("span",{className:"".concat(g,"-list-title ").concat(b).trim(),children:h}),w]})},za=function(e){var t=e.localColumns,n=e.className,a=e.draggable,u=e.checkable,s=e.showListItemOption,o=e.listsHeight,f=(0,d.useContext)(Fe.L_),g=f.hashId,C=[],S=[],h=[],P=(0,Fe.YB)();t.forEach(function(b){if(!b.hideInSetting){var y=b.fixed;if(y==="left"){S.push(b);return}if(y==="right"){C.push(b);return}h.push(b)}});var p=C&&C.length>0,E=S&&S.length>0;return(0,i.jsxs)("div",{className:he()("".concat(n,"-list"),g,(0,v.Z)({},"".concat(n,"-list-group"),p||E)),children:[(0,i.jsx)(Or,{title:P.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:S,draggable:a,checkable:u,showListItemOption:s,className:n,listHeight:o}),(0,i.jsx)(Or,{list:h,draggable:a,checkable:u,showListItemOption:s,title:P.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:E||p,className:n,listHeight:o}),(0,i.jsx)(Or,{title:P.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:C,draggable:a,checkable:u,showListItemOption:s,className:n,listHeight:o})]})};function $a(r){var e,t,n,a,u=(0,d.useRef)(null),s=(0,d.useContext)(je),o=r.columns,f=r.checkedReset,g=f===void 0?!0:f,C=s.columnsMap,S=s.setColumnsMap,h=s.clearPersistenceStorage;(0,d.useEffect)(function(){var L;if((L=s.propsRef.current)!==null&&L!==void 0&&(L=L.columnsState)!==null&&L!==void 0&&L.value){var w;u.current=JSON.parse(JSON.stringify(((w=s.propsRef.current)===null||w===void 0||(w=w.columnsState)===null||w===void 0?void 0:w.value)||{}))}},[]);var P=(0,qn.J)(function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,w={},I=function Z(O){O.forEach(function(T){var m=T.key,F=T.fixed,j=T.index,W=T.children,ne=T.disable,pe=N(m,j);if(pe){var V,oe;w[pe]={show:ne?(V=C[pe])===null||V===void 0?void 0:V.show:L,fixed:F,disable:ne,order:(oe=C[pe])===null||oe===void 0?void 0:oe.order}}W&&Z(W)})};I(o),S(w)}),p=(0,qn.J)(function(L){L.target.checked?P():P(!1)}),E=(0,qn.J)(function(){var L;h==null||h(),S(((L=s.propsRef.current)===null||L===void 0||(L=L.columnsState)===null||L===void 0?void 0:L.defaultValue)||u.current||s.defaultColumnKeyMap)}),b=Object.values(C).filter(function(L){return!L||L.show===!1}),y=b.length>0&&b.length!==o.length,R=(0,Fe.YB)(),$=(0,d.useContext)(rn.ZP.ConfigContext),B=$.getPrefixCls,se=B("pro-table-column-setting"),Q=Da(se),M=Q.wrapSSR,z=Q.hashId;return M((0,i.jsx)(La.Z,{arrow:!1,title:(0,i.jsxs)("div",{className:"".concat(se,"-title ").concat(z).trim(),children:[r.checkable===!1?(0,i.jsx)("div",{}):(0,i.jsx)(Oa.Z,{indeterminate:y,checked:b.length===0&&b.length!==o.length,onChange:function(w){p(w)},children:R.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),g?(0,i.jsx)("a",{onClick:E,className:"".concat(se,"-action-rest-button ").concat(z).trim(),children:R.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,r!=null&&r.extra?(0,i.jsx)(Me.Z,{size:12,align:"center",children:r.extra}):null]}),overlayClassName:"".concat(se,"-overlay ").concat(z).trim(),trigger:"click",placement:"bottomRight",content:(0,i.jsx)(za,{checkable:(e=r.checkable)!==null&&e!==void 0?e:!0,draggable:(t=r.draggable)!==null&&t!==void 0?t:!0,showListItemOption:(n=r.showListItemOption)!==null&&n!==void 0?n:!0,className:se,localColumns:o,listsHeight:r.listsHeight}),children:r.children||(0,i.jsx)(or.Z,{title:R.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(a=r.settingIcon)!==null&&a!==void 0?a:(0,i.jsx)(Fa.Z,{})})}))}var Wa=$a,Br=c(11175),Ua=c(33952),Va=c(62737),rt=function(e){var t=(0,Br.n)((0,Hr.b)(),"4.24.0")>-1?{menu:e}:{overlay:(0,i.jsx)(Va.Z,(0,l.Z)({},e))};return(0,Ln.Y)(t)},tt=c(10591),_a=function(e){var t=(0,d.useContext)(Fe.L_),n=t.hashId,a=e.items,u=a===void 0?[]:a,s=e.type,o=s===void 0?"inline":s,f=e.prefixCls,g=e.activeKey,C=e.defaultActiveKey,S=(0,Xe.Z)(g||C,{value:g,onChange:e.onChange}),h=(0,re.Z)(S,2),P=h[0],p=h[1];if(u.length<1)return null;var E=u.find(function(y){return y.key===P})||u[0];if(o==="inline")return(0,i.jsx)("div",{className:he()("".concat(f,"-menu"),"".concat(f,"-inline-menu"),n),children:u.map(function(y,R){return(0,i.jsx)("div",{onClick:function(){p(y.key)},className:he()("".concat(f,"-inline-menu-item"),E.key===y.key?"".concat(f,"-inline-menu-item-active"):void 0,n),children:y.label},y.key||R)})});if(o==="tab")return(0,i.jsx)(Le.Z,{items:u.map(function(y){var R;return(0,l.Z)((0,l.Z)({},y),{},{key:(R=y.key)===null||R===void 0?void 0:R.toString()})}),activeKey:E.key,onTabClick:function(R){return p(R)},children:(0,Br.n)(Ve.Z,"4.23.0")<0?u==null?void 0:u.map(function(y,R){return(0,d.createElement)(Le.Z.TabPane,(0,l.Z)((0,l.Z)({},y),{},{key:y.key||R,tab:y.label}))}):null});var b=rt({selectedKeys:[E.key],onClick:function(R){p(R.key)},items:u.map(function(y,R){return{key:y.key||R,disabled:y.disabled,label:y.label}})});return(0,i.jsx)("div",{className:he()("".concat(f,"-menu"),"".concat(f,"-dropdownmenu")),children:(0,i.jsx)(tt.Z,(0,l.Z)((0,l.Z)({trigger:["click"]},b),{},{children:(0,i.jsxs)(Me.Z,{className:"".concat(f,"-dropdownmenu-label"),children:[E.label,(0,i.jsx)(jr.Z,{})]})}))})},ka=_a,Ha=function(e){var t,n;return(0,v.Z)({},e.componentCls,(n={lineHeight:"1","&-container":{display:"flex",justifyContent:"space-between",paddingBlock:e.padding,paddingInline:0,"&-mobile":{flexDirection:"column"}},"&-title":{display:"flex",alignItems:"center",justifyContent:"flex-start",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSizeLG},"&-search:not(:last-child)":{display:"flex",alignItems:"center",justifyContent:"flex-start"},"&-setting-item":{marginBlock:0,marginInline:4,color:e.colorIconHover,fontSize:e.fontSizeLG,cursor:"pointer","> span":{display:"block",width:"100%",height:"100%"},"&:hover":{color:e.colorPrimary}},"&-left":(t={display:"flex",flexWrap:"wrap",alignItems:"center",gap:e.marginXS,justifyContent:"flex-start",maxWidth:"calc(100% - 200px)",flex:1},(0,v.Z)(t,"".concat(e.antCls,"-tabs"),{width:"100%"}),(0,v.Z)(t,"&-has-tabs",{overflow:"hidden"}),t),"&-right":{flex:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-end",gap:e.marginXS},"&-extra-line":{marginBlockEnd:e.margin},"&-setting-items":{display:"flex",gap:e.marginXS,lineHeight:"32px",alignItems:"center"},"&-filter":(0,v.Z)({"&:not(:last-child)":{marginInlineEnd:e.margin},display:"flex",alignItems:"center"},"div$".concat(e.antCls,"-pro-table-search"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0}),"&-inline-menu-item":{display:"inline-block",marginInlineEnd:e.marginLG,cursor:"pointer",opacity:"0.75","&-active":{fontWeight:"bold",opacity:"1"}}},(0,v.Z)(n,"".concat(e.antCls,"-tabs-top > ").concat(e.antCls,"-tabs-nav"),(0,v.Z)({marginBlockEnd:0,"&::before":{borderBlockEnd:0}},"".concat(e.antCls,"-tabs-nav-list"),{marginBlockStart:0,"${token.antCls}-tabs-tab":{paddingBlockStart:0}})),(0,v.Z)(n,"&-dropdownmenu-label",{fontWeight:"bold",fontSize:e.fontSizeIcon,textAlign:"center",cursor:"pointer"}),(0,v.Z)(n,"@media (max-width: 768px)",(0,v.Z)({},e.componentCls,{"&-container":{display:"flex",flexWrap:"wrap",flexDirection:"column"},"&-left":{marginBlockEnd:"16px",maxWidth:"100%"}})),n))};function Ga(r){return(0,Ce.Xj)("ProTableListToolBar",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[Ha(t)]})}function Xa(r){if(d.isValidElement(r))return r;if(r){var e=r,t=e.icon,n=e.tooltip,a=e.onClick,u=e.key;return t&&n?(0,i.jsx)(or.Z,{title:n,children:(0,i.jsx)("span",{onClick:function(){a&&a(u)},children:t},u)}):t}return null}var Ja=function(e){var t,n=e.prefixCls,a=e.tabs,u=e.multipleLine,s=e.filtersNode;return u?(0,i.jsx)("div",{className:"".concat(n,"-extra-line"),children:a!=null&&a.items&&a!==null&&a!==void 0&&a.items.length?(0,i.jsx)(Le.Z,{style:{width:"100%"},defaultActiveKey:a.defaultActiveKey,activeKey:a.activeKey,items:a.items.map(function(o,f){var g;return(0,l.Z)((0,l.Z)({label:o.tab},o),{},{key:((g=o.key)===null||g===void 0?void 0:g.toString())||(f==null?void 0:f.toString())})}),onChange:a.onChange,tabBarExtraContent:s,children:(t=a.items)===null||t===void 0?void 0:t.map(function(o,f){return(0,Br.n)(Ve.Z,"4.23.0")<0?(0,d.createElement)(Le.Z.TabPane,(0,l.Z)((0,l.Z)({},o),{},{key:o.key||f,tab:o.tab})):null})}):s}):null},Ya=function(e){var t=e.prefixCls,n=e.title,a=e.subTitle,u=e.tooltip,s=e.className,o=e.style,f=e.search,g=e.onSearch,C=e.multipleLine,S=C===void 0?!1:C,h=e.filter,P=e.actions,p=P===void 0?[]:P,E=e.settings,b=E===void 0?[]:E,y=e.tabs,R=e.menu,$=(0,d.useContext)(rn.ZP.ConfigContext),B=$.getPrefixCls,se=Ce.Ow.useToken(),Q=se.token,M=B("pro-table-list-toolbar",t),z=Ga(M),L=z.wrapSSR,w=z.hashId,I=(0,Fe.YB)(),Z=(0,d.useState)(!1),O=(0,re.Z)(Z,2),T=O[0],m=O[1],F=I.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),j=(0,d.useMemo)(function(){return f?d.isValidElement(f)?f:(0,i.jsx)(Ua.Z.Search,(0,l.Z)((0,l.Z)({style:{width:200},placeholder:F},f),{},{onSearch:(0,Y.Z)((0,J.Z)().mark(function U(){var K,G,de,Te,Ne,en,ke=arguments;return(0,J.Z)().wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:for(de=ke.length,Te=new Array(de),Ne=0;Nea":{fontSize:e.fontSize}}),(0,v.Z)(a,"".concat(e.antCls,"-table").concat(e.antCls,"-table-tbody").concat(e.antCls,"-table-wrapper:only-child").concat(e.antCls,"-table"),{marginBlock:0,marginInline:0}),(0,v.Z)(a,"".concat(e.antCls,"-table").concat(e.antCls,"-table-middle ").concat(e.componentCls),(0,v.Z)({marginBlock:0,marginInline:-8},"".concat(e.proComponentsCls,"-card"),{backgroundColor:"initial"})),(0,v.Z)(a,"& &-search",(n={marginBlockEnd:"16px",background:e.colorBgContainer,"&-ghost":{background:"transparent"}},(0,v.Z)(n,"&".concat(e.componentCls,"-form"),{marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:16,overflow:"unset"}),(0,v.Z)(n,"&-light-filter",{marginBlockEnd:0,paddingBlock:0,paddingInline:0}),(0,v.Z)(n,"&-form-option",(t={},(0,v.Z)(t,"".concat(e.antCls,"-form-item"),{}),(0,v.Z)(t,"".concat(e.antCls,"-form-item-label"),{}),(0,v.Z)(t,"".concat(e.antCls,"-form-item-control-input"),{}),t)),(0,v.Z)(n,"@media (max-width: 575px)",(0,v.Z)({},e.componentCls,(0,v.Z)({height:"auto !important",paddingBlockEnd:"24px"},"".concat(e.antCls,"-form-item-label"),{minWidth:"80px",textAlign:"start"}))),n)),(0,v.Z)(a,"&-toolbar",{display:"flex",alignItems:"center",justifyContent:"space-between",height:"64px",paddingInline:24,paddingBlock:0,"&-option":{display:"flex",alignItems:"center",justifyContent:"flex-end"},"&-title":{flex:"1",color:e.colorTextLabel,fontWeight:"500",fontSize:"16px",lineHeight:"24px",opacity:"0.85"}}),a)),(0,v.Z)(u,"@media (max-width: ".concat(e.screenXS,")px"),(0,v.Z)({},e.componentCls,(0,v.Z)({},"".concat(e.antCls,"-table"),{width:"100%",overflowX:"auto","&-thead > tr,&-tbody > tr":{"> th,> td":{whiteSpace:"pre",">span":{display:"block"}}}}))),(0,v.Z)(u,"@media (max-width: 575px)",(0,v.Z)({},"".concat(e.componentCls,"-toolbar"),{flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",height:"auto",marginBlockEnd:"16px",marginInlineStart:"16px",paddingBlock:8,paddingInline:8,paddingBlockStart:"16px",lineHeight:"normal","&-title":{marginBlockEnd:16},"&-option":{display:"flex",justifyContent:"space-between",width:"100%"},"&-default-option":{display:"flex",flex:"1",alignItems:"center",justifyContent:"flex-end"}})),u};function Sl(r){return(0,Ce.Xj)("ProTable",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r)});return[bl(t)]})}var Dr=c(46228),xl=c(82250),Rl=["data","success","total"],Pl=function(e){var t=e.pageInfo;if(t){var n=t.current,a=t.defaultCurrent,u=t.pageSize,s=t.defaultPageSize;return{current:n||a||1,total:0,pageSize:u||s||20}}return{current:1,total:0,pageSize:20}},El=function(e,t,n){var a,u=(0,d.useRef)(!1),s=(0,d.useRef)(null),o=n||{},f=o.onLoad,g=o.manual,C=o.polling,S=o.onRequestError,h=o.debounceTime,P=h===void 0?20:h,p=o.effects,E=p===void 0?[]:p,b=(0,d.useRef)(g),y=(0,d.useRef)(),R=(0,Xe.Z)(t,{value:n==null?void 0:n.dataSource,onChange:n==null?void 0:n.onDataSourceChange}),$=(0,re.Z)(R,2),B=$[0],se=$[1],Q=(0,Xe.Z)(!1,{value:(0,_e.Z)(n==null?void 0:n.loading)==="object"?n==null||(a=n.loading)===null||a===void 0?void 0:a.spinning:n==null?void 0:n.loading,onChange:n==null?void 0:n.onLoadingChange}),M=(0,re.Z)(Q,2),z=M[0],L=M[1],w=(0,Xe.Z)(function(){return Pl(n)},{onChange:n==null?void 0:n.onPageInfoChange}),I=(0,re.Z)(w,2),Z=I[0],O=I[1],T=(0,qn.J)(function(K){(K.current!==Z.current||K.pageSize!==Z.pageSize||K.total!==Z.total)&&O(K)}),m=(0,Xe.Z)(!1),F=(0,re.Z)(m,2),j=F[0],W=F[1],ne=function(G,de){(0,wr.unstable_batchedUpdates)(function(){se(G),(Z==null?void 0:Z.total)!==de&&T((0,l.Z)((0,l.Z)({},Z),{},{total:de||G.length}))})},pe=(0,Dr.D)(Z==null?void 0:Z.current),V=(0,Dr.D)(Z==null?void 0:Z.pageSize),oe=(0,Dr.D)(C),xe=(0,qn.J)(function(){(0,wr.unstable_batchedUpdates)(function(){L(!1),W(!1)})}),me=function(){var K=(0,Y.Z)((0,J.Z)().mark(function G(de){var Te,Ne,en,ke,Ae,yn,Rn,un,Ze,te,be,Re;return(0,J.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!b.current){D.next=3;break}return b.current=!1,D.abrupt("return");case 3:return de?W(!0):L(!0),Te=Z||{},Ne=Te.pageSize,en=Te.current,D.prev=5,ke=(n==null?void 0:n.pageInfo)!==!1?{current:en,pageSize:Ne}:void 0,D.next=9,e==null?void 0:e(ke);case 9:if(D.t0=D.sent,D.t0){D.next=12;break}D.t0={};case 12:if(Ae=D.t0,yn=Ae.data,Rn=yn===void 0?[]:yn,un=Ae.success,Ze=Ae.total,te=Ze===void 0?0:Ze,be=(0,H.Z)(Ae,Rl),un!==!1){D.next=21;break}return D.abrupt("return",[]);case 21:return Re=Ir(Rn,[n.postData].filter(function(Un){return Un})),ne(Re,te),f==null||f(Re,be),D.abrupt("return",Re);case 27:if(D.prev=27,D.t1=D.catch(5),S!==void 0){D.next=31;break}throw new Error(D.t1);case 31:B===void 0&&se([]),S(D.t1);case 33:return D.prev=33,xe(),D.finish(33);case 36:return D.abrupt("return",[]);case 37:case"end":return D.stop()}},G,null,[[5,27,33,36]])}));return function(de){return K.apply(this,arguments)}}(),k=(0,xl.D)(function(){var K=(0,Y.Z)((0,J.Z)().mark(function G(de){var Te,Ne,en;return(0,J.Z)().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(y.current&&clearTimeout(y.current),e){Ae.next=3;break}return Ae.abrupt("return");case 3:return Te=new AbortController,s.current=Te,Ae.prev=5,Ae.next=8,Promise.race([me(de),new Promise(function(yn,Rn){var un,Ze;(un=s.current)===null||un===void 0||(un=un.signal)===null||un===void 0||(Ze=un.addEventListener)===null||Ze===void 0||Ze.call(un,"abort",function(){Rn("aborted"),k.cancel(),xe()})})]);case 8:if(Ne=Ae.sent,!Te.signal.aborted){Ae.next=11;break}return Ae.abrupt("return");case 11:return en=(0,er.h)(C,Ne),en&&!u.current&&(y.current=setTimeout(function(){k.run(en)},Math.max(en,2e3))),Ae.abrupt("return",Ne);case 16:if(Ae.prev=16,Ae.t0=Ae.catch(5),Ae.t0!=="aborted"){Ae.next=20;break}return Ae.abrupt("return");case 20:throw Ae.t0;case 21:case"end":return Ae.stop()}},G,null,[[5,16]])}));return function(G){return K.apply(this,arguments)}}(),P||30),U=function(){var G;(G=s.current)===null||G===void 0||G.abort(),k.cancel(),xe()};return(0,d.useEffect)(function(){return C||clearTimeout(y.current),!oe&&C&&k.run(!0),function(){clearTimeout(y.current)}},[C]),(0,d.useEffect)(function(){return u.current=!1,function(){u.current=!0}},[]),(0,d.useEffect)(function(){var K=Z||{},G=K.current,de=K.pageSize;(!pe||pe===G)&&(!V||V===de)||n.pageInfo&&B&&(B==null?void 0:B.length)>de||G!==void 0&&B&&B.length<=de&&(U(),k.run(!1))},[Z==null?void 0:Z.current]),(0,d.useEffect)(function(){V&&(U(),k.run(!1))},[Z==null?void 0:Z.pageSize]),(0,pn.KW)(function(){return U(),k.run(!1),g||(b.current=!1),function(){U()}},[].concat((0,Cn.Z)(E),[g])),{dataSource:B,setDataSource:se,loading:(0,_e.Z)(n==null?void 0:n.loading)==="object"?(0,l.Z)((0,l.Z)({},n==null?void 0:n.loading),{},{spinning:z}):z,reload:function(){var K=(0,Y.Z)((0,J.Z)().mark(function de(){return(0,J.Z)().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return U(),Ne.abrupt("return",k.run(!1));case 2:case"end":return Ne.stop()}},de)}));function G(){return K.apply(this,arguments)}return G}(),pageInfo:Z,pollingLoading:j,reset:function(){var K=(0,Y.Z)((0,J.Z)().mark(function de(){var Te,Ne,en,ke,Ae,yn,Rn,un;return(0,J.Z)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:Te=n||{},Ne=Te.pageInfo,en=Ne||{},ke=en.defaultCurrent,Ae=ke===void 0?1:ke,yn=en.defaultPageSize,Rn=yn===void 0?20:yn,un={current:Ae,total:0,pageSize:Rn},T(un);case 4:case"end":return te.stop()}},de)}));function G(){return K.apply(this,arguments)}return G}(),setPageInfo:function(){var K=(0,Y.Z)((0,J.Z)().mark(function de(Te){return(0,J.Z)().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:T((0,l.Z)((0,l.Z)({},Z),Te));case 1:case"end":return en.stop()}},de)}));function G(de){return K.apply(this,arguments)}return G}()}},Tl=El,Il=function(e){return function(t,n){var a,u,s=t.fixed,o=t.index,f=n.fixed,g=n.index;if(s==="left"&&f!=="left"||f==="right"&&s!=="right")return-2;if(f==="left"&&s!=="left"||s==="right"&&f!=="right")return 2;var C=t.key||"".concat(o),S=n.key||"".concat(g);if((a=e[C])!==null&&a!==void 0&&a.order||(u=e[S])!==null&&u!==void 0&&u.order){var h,P;return(((h=e[C])===null||h===void 0?void 0:h.order)||0)-(((P=e[S])===null||P===void 0?void 0:P.order)||0)}return(t.index||0)-(n.index||0)}},Ml=c(83846),wl=function(e){var t={};return Object.keys(e||{}).forEach(function(n){var a;Array.isArray(e[n])&&((a=e[n])===null||a===void 0?void 0:a.length)===0||e[n]!==void 0&&(t[n]=e[n])}),t},Fl=c(46613),jl=c(90337),Nr=c(85108),Ll=c(54970),Ol=c(45362),Kr=c(66313),Bl=["children"],Dl=["",null,void 0],lt=function(){for(var e=arguments.length,t=new Array(e),n=0;nke.length?(ke.push(G),ke):(ke.splice((o==null?void 0:o.current)*(o==null?void 0:o.pageSize)-1,0,G),ke)}return[].concat((0,Cn.Z)(a.dataSource),[G])},m=function(){return(0,l.Z)((0,l.Z)({},w),{},{size:g,rowSelection:f===!1?void 0:f,className:t,style:S,columns:Z.map(function(k){return k.isExtraColumns?k.extraColumn:k}),loading:a.loading,dataSource:z.newLineRecord?T(a.dataSource):a.dataSource,pagination:o,onChange:function(U,K,G,de){var Te;if((Te=w.onChange)===null||Te===void 0||Te.call(w,U,K,G,de),O||$((0,Ln.Y)(K)),Array.isArray(G)){var Ne=G.reduce(function(yn,Rn){return(0,l.Z)((0,l.Z)({},yn),{},(0,v.Z)({},"".concat(Rn.field),Rn.order))},{});R((0,Ln.Y)(Ne))}else{var en,ke=(en=G.column)===null||en===void 0?void 0:en.sorter,Ae=(ke==null?void 0:ke.toString())===ke;R((0,Ln.Y)((0,v.Z)({},"".concat(Ae?ke:G.field),G.order)))}}})},F=(0,d.useMemo)(function(){return r.search===!1&&!r.headerTitle&&r.toolBarRender===!1},[]),j=(0,i.jsx)(Ie._p.Provider,{value:{grid:!1,colProps:void 0,rowProps:void 0},children:(0,i.jsx)(Xn.Z,(0,l.Z)((0,l.Z)({},m()),{},{rowKey:e}))}),W=r.tableViewRender?r.tableViewRender((0,l.Z)((0,l.Z)({},m()),{},{rowSelection:f!==!1?f:void 0}),j):j,ne=(0,d.useMemo)(function(){if(r.editable&&!r.name){var me,k,U;return(0,i.jsxs)(i.Fragment,{children:[h,b,(0,d.createElement)(Sn.ZP,(0,l.Z)((0,l.Z)({},(me=r.editable)===null||me===void 0?void 0:me.formProps),{},{formRef:(k=r.editable)===null||k===void 0||(k=k.formProps)===null||k===void 0?void 0:k.formRef,component:!1,form:(U=r.editable)===null||U===void 0?void 0:U.form,onValuesChange:z.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:r.dateFormatter}),W)]})}return(0,i.jsxs)(i.Fragment,{children:[h,b,W]})},[b,r.loading,!!r.editable,W,h]),pe=(0,d.useMemo)(function(){return E===!1||F===!0||r.name?{}:h?{paddingBlockStart:0}:h&&o===!1?{paddingBlockStart:0}:{padding:0}},[F,o,r.name,E,h]),V=E===!1||F===!0||r.name?ne:(0,i.jsx)(Se,(0,l.Z)((0,l.Z)({ghost:r.ghost,bordered:pr("table",M),bodyStyle:pe},E),{},{children:ne})),oe=function(){return r.tableRender?r.tableRender(r,V,{toolbar:h||void 0,alert:b||void 0,table:W||void 0}):V},xe=(0,i.jsxs)("div",{className:he()(Q,(0,v.Z)({},"".concat(n,"-polling"),a.pollingLoading)),style:p,ref:I.rootDomRef,children:[se?null:P,s!=="form"&&r.tableExtraRender&&(0,i.jsx)("div",{className:he()(Q,"".concat(n,"-extra")),children:r.tableExtraRender(r,a.dataSource||[])}),s!=="form"&&oe()]});return!B||!(B!=null&&B.fullScreen)?xe:(0,i.jsx)(rn.ZP,{getPopupContainer:function(){return I.rootDomRef.current||document.body},children:xe})}var kl={},Hl=function(e){var t,n=e.cardBordered,a=e.request,u=e.className,s=e.params,o=s===void 0?kl:s,f=e.defaultData,g=e.headerTitle,C=e.postData,S=e.ghost,h=e.pagination,P=e.actionRef,p=e.columns,E=p===void 0?[]:p,b=e.toolBarRender,y=e.optionsRender,R=e.onLoad,$=e.onRequestError,B=e.style,se=e.cardProps,Q=e.tableStyle,M=e.tableClassName,z=e.columnsStateMap,L=e.onColumnsStateChange,w=e.options,I=e.search,Z=e.name,O=e.onLoadingChange,T=e.rowSelection,m=T===void 0?!1:T,F=e.beforeSearchSubmit,j=e.tableAlertRender,W=e.defaultClassName,ne=e.formRef,pe=e.type,V=pe===void 0?"table":pe,oe=e.columnEmptyText,xe=oe===void 0?"-":oe,me=e.toolbar,k=e.rowKey,U=e.manualRequest,K=e.polling,G=e.tooltip,de=e.revalidateOnFocus,Te=de===void 0?!1:de,Ne=e.searchFormRender,en=(0,H.Z)(e,Vl),ke=Sl(e.defaultClassName),Ae=ke.wrapSSR,yn=ke.hashId,Rn=he()(W,u,yn),un=(0,d.useRef)(),Ze=(0,d.useRef)(),te=ne||Ze;(0,d.useImperativeHandle)(P,function(){return un.current});var be=(0,Xe.Z)(m?(m==null?void 0:m.defaultSelectedRowKeys)||[]:void 0,{value:m?m.selectedRowKeys:void 0}),Re=(0,re.Z)(be,2),hn=Re[0],D=Re[1],Un=(0,Xe.Z)(function(){if(!(U||I!==!1))return{}}),Bn=(0,re.Z)(Un,2),An=Bn[0],ir=Bn[1],Sr=(0,Xe.Z)({}),fr=(0,re.Z)(Sr,2),tr=fr[0],sr=fr[1],hr=(0,Xe.Z)({}),xr=(0,re.Z)(hr,2),mr=xr[0],gr=xr[1];(0,d.useEffect)(function(){var _=ge(E),X=_.sort,ze=_.filter;sr(ze),gr(X)},[]);var Rr=(0,Fe.YB)(),Pr=(0,_e.Z)(h)==="object"?h:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},dn=(0,d.useContext)(je),Mn=(0,d.useMemo)(function(){if(a)return function(){var _=(0,Y.Z)((0,J.Z)().mark(function X(ze){var cn,Vn;return(0,J.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:return cn=(0,l.Z)((0,l.Z)((0,l.Z)({},ze||{}),An),o),delete cn._timestamp,Hn.next=4,a(cn,mr,tr);case 4:return Vn=Hn.sent,Hn.abrupt("return",Vn);case 6:case"end":return Hn.stop()}},X)}));return function(X){return _.apply(this,arguments)}}()},[An,o,tr,mr,a]),ye=Tl(Mn,f,{pageInfo:h===!1?!1:Pr,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:R,onLoadingChange:O,onRequestError:$,postData:C,revalidateOnFocus:Te,manual:An===void 0,polling:K,effects:[(0,Gn.ZP)(o),(0,Gn.ZP)(An),(0,Gn.ZP)(tr),(0,Gn.ZP)(mr)],debounceTime:e.debounceTime,onPageInfoChange:function(X){var ze,cn;!h||!Mn||(h==null||(ze=h.onChange)===null||ze===void 0||ze.call(h,X.current,X.pageSize),h==null||(cn=h.onShowSizeChange)===null||cn===void 0||cn.call(h,X.current,X.pageSize))}});(0,d.useEffect)(function(){var _;if(!(e.manualRequest||!e.request||!Te||(_=e.form)!==null&&_!==void 0&&_.ignoreRules)){var X=function(){document.visibilityState==="visible"&&ye.reload()};return document.addEventListener("visibilitychange",X),function(){return document.removeEventListener("visibilitychange",X)}}},[]);var xn=d.useRef(new Map),Dn=d.useMemo(function(){return typeof k=="function"?k:function(_,X){var ze;return X===-1?_==null?void 0:_[k]:e.name?X==null?void 0:X.toString():(ze=_==null?void 0:_[k])!==null&&ze!==void 0?ze:X==null?void 0:X.toString()}},[e.name,k]);(0,d.useMemo)(function(){var _;if((_=ye.dataSource)!==null&&_!==void 0&&_.length){var X=ye.dataSource.map(function(ze){var cn=Dn(ze,-1);return xn.current.set(cn,ze),cn});return X}return[]},[ye.dataSource,Dn]);var zn=(0,d.useMemo)(function(){var _=h===!1?!1:(0,l.Z)({},h),X=(0,l.Z)((0,l.Z)({},ye.pageInfo),{},{setPageInfo:function(cn){var Vn=cn.pageSize,nr=cn.current,Hn=ye.pageInfo;if(Vn===Hn.pageSize||Hn.current===1){ye.setPageInfo({pageSize:Vn,current:nr});return}a&&ye.setDataSource([]),ye.setPageInfo({pageSize:Vn,current:V==="list"?nr:1})}});return a&&_&&(delete _.onChange,delete _.onShowSizeChange),Er(_,X,Rr)},[h,ye,Rr]);(0,pn.KW)(function(){var _;e.request&&o&&ye.dataSource&&(ye==null||(_=ye.pageInfo)===null||_===void 0?void 0:_.current)!==1&&ye.setPageInfo({current:1})},[o]),dn.setPrefixName(e.name);var kn=(0,d.useCallback)(function(){m&&m.onChange&&m.onChange([],[],{type:"none"}),D([])},[m,D]);dn.propsRef.current=e;var $n=(0,In.CB)((0,l.Z)((0,l.Z)({},e.editable),{},{tableName:e.name,getRowKey:Dn,childrenColumnName:((t=e.expandable)===null||t===void 0?void 0:t.childrenColumnName)||"children",dataSource:ye.dataSource||[],setDataSource:function(X){var ze,cn;(ze=e.editable)===null||ze===void 0||(cn=ze.onValuesChange)===null||cn===void 0||cn.call(ze,void 0,X),ye.setDataSource(X)}})),ur=Ce.Ow===null||Ce.Ow===void 0?void 0:Ce.Ow.useToken(),Ar=ur.token;Tr(un,ye,{fullScreen:function(){var X;if(!(!((X=dn.rootDomRef)!==null&&X!==void 0&&X.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var ze;(ze=dn.rootDomRef)===null||ze===void 0||ze.current.requestFullscreen()}},onCleanSelected:function(){kn()},resetAll:function(){var X;kn(),sr({}),gr({}),dn.setKeyWords(void 0),ye.setPageInfo({current:1}),te==null||(X=te.current)===null||X===void 0||X.resetFields(),ir({})},editableUtils:$n}),dn.setAction(un.current),P&&(P.current=un.current);var ar=(0,d.useMemo)(function(){var _;return it({columns:E,counter:dn,columnEmptyText:xe,type:V,marginSM:Ar.marginSM,editableUtils:$n,rowKey:k,childrenColumnName:(_=e.expandable)===null||_===void 0?void 0:_.childrenColumnName}).sort(Il(dn.columnsMap))},[E,dn==null?void 0:dn.sortKeyColumns,dn==null?void 0:dn.columnsMap,xe,V,$n.editableKeys&&$n.editableKeys.join(",")]);(0,pn.Au)(function(){if(ar&&ar.length>0){var _=ar.map(function(X){return N(X.key,X.index)});dn.setSortKeyColumns(_)}},[ar],["render","renderFormItem"],100),(0,pn.KW)(function(){var _=ye.pageInfo,X=h||{},ze=X.current,cn=ze===void 0?_==null?void 0:_.current:ze,Vn=X.pageSize,nr=Vn===void 0?_==null?void 0:_.pageSize:Vn;h&&(cn||nr)&&(nr!==(_==null?void 0:_.pageSize)||cn!==(_==null?void 0:_.current))&&ye.setPageInfo({pageSize:nr||_.pageSize,current:cn||_.current})},[h&&h.pageSize,h&&h.current]);var Xl=(0,l.Z)((0,l.Z)({selectedRowKeys:hn},m),{},{onChange:function(X,ze,cn){m&&m.onChange&&m.onChange(X,ze,cn),D(X)}}),zr=I!==!1&&(I==null?void 0:I.filterType)==="light",ut=(0,d.useCallback)(function(_){if(w&&w.search){var X,ze,cn=w.search===!0?{}:w.search,Vn=cn.name,nr=Vn===void 0?"keyword":Vn,Hn=(X=w.search)===null||X===void 0||(ze=X.onSearch)===null||ze===void 0?void 0:ze.call(X,dn.keyWords);if(Hn!==!1){ir((0,l.Z)((0,l.Z)({},_),{},(0,v.Z)({},nr,dn.keyWords)));return}}ir(_)},[dn.keyWords,w,ir]),dt=(0,d.useMemo)(function(){if((0,_e.Z)(ye.loading)==="object"){var _;return((_=ye.loading)===null||_===void 0?void 0:_.spinning)||!1}return ye.loading},[ye.loading]),ct=(0,d.useMemo)(function(){var _=I===!1&&V!=="form"?null:(0,i.jsx)(Za,{pagination:zn,beforeSearchSubmit:F,action:un,columns:E,onFormSearchSubmit:function(ze){ut(ze)},ghost:S,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!dt,manualRequest:U,search:I,form:e.form,formRef:te,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter});return Ne&&_?(0,i.jsx)(i.Fragment,{children:Ne(e,_)}):_},[F,te,S,dt,U,ut,zn,e,E,I,Ne,V]),vt=(0,d.useMemo)(function(){return hn==null?void 0:hn.map(function(_){var X;return(X=xn.current)===null||X===void 0?void 0:X.get(_)})},[hn]),Jl=b===!1?null:(0,i.jsx)(Cl,{headerTitle:g,hideToolbar:w===!1&&!g&&!b&&!me&&!zr,selectedRows:vt,selectedRowKeys:hn,tableColumn:ar,tooltip:G,toolbar:me,onFormSearchSubmit:function(X){ir((0,l.Z)((0,l.Z)({},An),X))},searchNode:zr?ct:null,options:w,optionsRender:y,actionRef:un,toolBarRender:b}),Yl=m!==!1?(0,i.jsx)(yr,{selectedRowKeys:hn,selectedRows:vt,onCleanSelected:kn,alertOptionRender:en.tableAlertOptionRender,alertInfoRender:j,alwaysShowAlert:m==null?void 0:m.alwaysShowAlert}):null;return Ae((0,i.jsx)(_l,(0,l.Z)((0,l.Z)({},e),{},{name:Z,defaultClassName:W,size:dn.tableSize,onSizeChange:dn.setTableSize,pagination:zn,searchNode:ct,rowSelection:m!==!1?Xl:void 0,className:Rn,tableColumn:ar,isLightFilter:zr,action:ye,alertDom:Yl,toolbarDom:Jl,onSortChange:function(X){mr!==X&&gr(X!=null?X:{})},onFilterChange:function(X){X!==tr&&sr(X)},editableUtils:$n,getRowKey:Dn})))},st=function(e){var t=(0,d.useContext)(rn.ZP.ConfigContext),n=t.getPrefixCls,a=e.ErrorBoundary===!1?d.Fragment:e.ErrorBoundary||lr.S;return(0,i.jsx)(qe,{initValue:e,children:(0,i.jsx)(Fe._Y,{needDeps:!0,children:(0,i.jsx)(a,{children:(0,i.jsx)(Hl,(0,l.Z)({defaultClassName:"".concat(n("pro-table"))},e))})})})};st.Summary=Xn.Z.Summary;var Gl=st},27542:function(rr,wn,c){c.d(wn,{S:function(){return sn}});var J=c(47920),Y=c(77254),_e=c(95325),re=c(44906),v=c(41399),Cn=c(73273),l=c(6053),H=c(50959),He=c(11527),sn=function(rn){(0,re.Z)(Le,rn);var Tn=(0,v.Z)(Le);function Le(){var On;(0,J.Z)(this,Le);for(var he=arguments.length,Ge=new Array(he),Xe=0;Xe1&&Ue.pop();try{return JSON.stringify((0,He.Z)(jn,Ue))!==JSON.stringify((0,He.Z)(Zn,Ue))}catch(Ve){return!0}},_internalItemRender:{mark:"pro_table_render",render:function(jn,Zn){return(0,he.jsx)(Ce,(0,Y.Z)({inputProps:jn,popoverProps:on},Zn))}}},$e),{},{style:(0,Y.Z)((0,Y.Z)({},d),$e==null?void 0:$e.style),children:q}))},ln=function(ue){var nn=ue.errorType,tn=ue.rules,q=ue.name,on=ue.popoverProps,$e=ue.children,Fn=(0,J.Z)(ue,Xe);return q&&tn!==null&&tn!==void 0&&tn.length&&nn==="popover"?(0,he.jsx)(Pe,(0,Y.Z)((0,Y.Z)({name:q,rules:tn,popoverProps:on},Fn),{},{children:$e})):(0,he.jsx)(H.Z.Item,(0,Y.Z)((0,Y.Z)({rules:tn,shouldUpdate:q?function(jn,Zn){if(jn===Zn)return!1;var Ue=[q].flat(1);Ue.length>1&&Ue.pop();try{return JSON.stringify((0,He.Z)(jn,Ue))!==JSON.stringify((0,He.Z)(Zn,Ue))}catch(Ve){return!0}}:void 0},Fn),{},{style:(0,Y.Z)((0,Y.Z)({},d),Fn.style),name:q,children:$e}))}},46613:function(rr,wn,c){c.d(wn,{X:function(){return Cn}});var J=c(52058),Y=c(50959),_e=c(11527),re=function(H){var He;return!!(H!=null&&(He=H.valueType)!==null&&He!==void 0&&He.toString().startsWith("date")||(H==null?void 0:H.valueType)==="select"||H!=null&&H.valueEnum)},v=function(H){var He;return((He=H.ellipsis)===null||He===void 0?void 0:He.showTitle)===!1?!1:H.ellipsis},Cn=function(H,He,sn){if(He.copyable||He.ellipsis){var rn=He.copyable&&sn?{text:sn,tooltips:["",""]}:void 0,Tn=re(He),Le=v(He)&&sn?{tooltip:(He==null?void 0:He.tooltip)!==!1&&Tn?(0,_e.jsx)("div",{className:"pro-table-tooltip-text",children:H}):sn}:!1;return(0,_e.jsx)(J.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:rn,ellipsis:Le,children:H})}return H}},66313:function(rr,wn,c){c.d(wn,{w:function(){return Y}});var J=c(44559),Y=function(re,v,Cn){return v===void 0?re:(0,J.h)(re,v,Cn)}},44139:function(rr,wn,c){c.d(wn,{CB:function(){return Yn},aX:function(){return _n},cx:function(){return Ve},sN:function(){return Ue}});var J=c(1788),Y=c(3224),_e=c(98040),re=c(47801),v=c(32682),Cn=c(73273),l=c(10570),H=c(33346),He=c(40727),sn=c(58516),rn=c(17122),Tn=c(52497),Le=c(67190),On=c(37077),he=c(56815),Ge=c(65589),Xe=c(85108),d=c(6169),Ce=c(12868),Pe=c(50959),ln=c(13165),i=c(82250),ue=c(98114),nn=c(11979),tn=c(46228),q=c(94204),on=c(11527),$e=["map_row_parentKey"],Fn=["map_row_parentKey","map_row_key"],jn=["map_row_key"],Zn=function(ce){return(Tn.ZP.warn||Tn.ZP.warning)(ce)},Ue=function(ce){return Array.isArray(ce)?ce.join(","):ce};function Ve(x,ce){var Oe,ie=x.getRowKey,Je=x.row,Ye=x.data,Ke=x.childrenColumnName,Be=Ke===void 0?"children":Ke,vn=(Oe=Ue(x.key))===null||Oe===void 0?void 0:Oe.toString(),Qe=new Map;function bn(fn,gn,an){fn.forEach(function(ve,Ee){var A=(an||0)*10+Ee,ee=ie(ve,A).toString();ve&&(0,He.Z)(ve)==="object"&&Be in ve&&bn(ve[Be]||[],ee,A);var fe=(0,H.Z)((0,H.Z)({},ve),{},{map_row_key:ee,children:void 0,map_row_parentKey:gn});delete fe.children,gn||delete fe.map_row_parentKey,Qe.set(ee,fe)})}ce==="top"&&Qe.set(vn,(0,H.Z)((0,H.Z)({},Qe.get(vn)),Je)),bn(Ye),ce==="update"&&Qe.set(vn,(0,H.Z)((0,H.Z)({},Qe.get(vn)),Je)),ce==="delete"&&Qe.delete(vn);var Pn=function(gn){var an=new Map,ve=[],Ee=function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gn.forEach(function(fe){if(fe.map_row_parentKey&&!fe.map_row_key){var Se=fe.map_row_parentKey,Ie=(0,l.Z)(fe,$e);if(an.has(Se)||an.set(Se,[]),ee){var Sn;(Sn=an.get(Se))===null||Sn===void 0||Sn.push(Ie)}}})};return Ee(ce==="top"),gn.forEach(function(A){if(A.map_row_parentKey&&A.map_row_key){var ee,fe=A.map_row_parentKey,Se=A.map_row_key,Ie=(0,l.Z)(A,Fn);an.has(Se)&&(Ie[Be]=an.get(Se)),an.has(fe)||an.set(fe,[]),(ee=an.get(fe))===null||ee===void 0||ee.push(Ie)}}),Ee(ce==="update"),gn.forEach(function(A){if(!A.map_row_parentKey){var ee=A.map_row_key,fe=(0,l.Z)(A,jn);if(ee&&an.has(ee)){var Se=(0,H.Z)((0,H.Z)({},fe),{},(0,Cn.Z)({},Be,an.get(ee)));ve.push(Se);return}ve.push(fe)}}),ve};return Pn(Qe)}function Kn(x,ce){var Oe=x.recordKey,ie=x.onSave,Je=x.row,Ye=x.children,Ke=x.newLineConfig,Be=x.editorType,vn=x.tableName,Qe=(0,Pe.useContext)(ue.J),bn=Le.Z.useFormInstance(),Pn=(0,Ge.Z)(!1),fn=(0,v.Z)(Pn,2),gn=fn[0],an=fn[1],ve=(0,ln.J)((0,re.Z)((0,Y.Z)().mark(function Ee(){var A,ee,fe,Se,Ie,Sn,Fe,In,Ln;return(0,Y.Z)().wrap(function(pn){for(;;)switch(pn.prev=pn.next){case 0:return pn.prev=0,ee=Be==="Map",fe=[vn,Array.isArray(Oe)?Oe[0]:Oe].map(function(lr){return lr==null?void 0:lr.toString()}).flat(1).filter(Boolean),an(!0),pn.next=6,bn.validateFields(fe,{recursive:!0});case 6:return Se=(Qe==null||(A=Qe.getFieldFormatValue)===null||A===void 0?void 0:A.call(Qe,fe))||bn.getFieldValue(fe),Array.isArray(Oe)&&Oe.length>1&&(Ie=(0,_e.Z)(Oe),Sn=Ie.slice(1),Fe=(0,Xe.Z)(Se,Sn),(0,d.Z)(Se,Sn,Fe)),In=ee?(0,d.Z)({},fe,Se):Se,pn.next=11,ie==null?void 0:ie(Oe,(0,q.T)({},Je,In),Je,Ke);case 11:return Ln=pn.sent,an(!1),pn.abrupt("return",Ln);case 16:throw pn.prev=16,pn.t0=pn.catch(0),console.log(pn.t0),an(!1),pn.t0;case 21:case"end":return pn.stop()}},Ee,null,[[0,16]])})));return(0,Pe.useImperativeHandle)(ce,function(){return{save:ve}},[ve]),(0,on.jsxs)("a",{onClick:function(){var Ee=(0,re.Z)((0,Y.Z)().mark(function A(ee){return(0,Y.Z)().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ee.stopPropagation(),ee.preventDefault(),Se.prev=2,Se.next=5,ve();case 5:Se.next=9;break;case 7:Se.prev=7,Se.t0=Se.catch(2);case 9:case"end":return Se.stop()}},A,null,[[2,7]])}));return function(A){return Ee.apply(this,arguments)}}(),children:[gn?(0,on.jsx)(sn.Z,{style:{marginInlineEnd:8}}):null,Ye||"\u4FDD\u5B58"]},"save")}var Nn=function(ce){var Oe=ce.recordKey,ie=ce.onDelete,Je=ce.row,Ye=ce.children,Ke=ce.deletePopconfirmMessage,Be=(0,Ge.Z)(function(){return!1}),vn=(0,v.Z)(Be,2),Qe=vn[0],bn=vn[1],Pn=(0,ln.J)((0,re.Z)((0,Y.Z)().mark(function fn(){var gn;return(0,Y.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ve.prev=0,bn(!0),ve.next=4,ie==null?void 0:ie(Oe,Je);case 4:return gn=ve.sent,bn(!1),ve.abrupt("return",gn);case 9:return ve.prev=9,ve.t0=ve.catch(0),console.log(ve.t0),bn(!1),ve.abrupt("return",null);case 14:case"end":return ve.stop()}},fn,null,[[0,9]])})));return Ye!==!1?(0,on.jsx)(On.Z,{title:Ke,onConfirm:function(){return Pn()},children:(0,on.jsxs)("a",{children:[Qe?(0,on.jsx)(sn.Z,{style:{marginInlineEnd:8}}):null,Ye||"\u5220\u9664"]})},"delete"):null},Jn=function(ce){var Oe=ce.recordKey,ie=ce.tableName,Je=ce.newLineConfig,Ye=ce.editorType,Ke=ce.onCancel,Be=ce.cancelEditable,vn=ce.row,Qe=ce.cancelText,bn=(0,Pe.useContext)(ue.J),Pn=Le.Z.useFormInstance();return(0,on.jsx)("a",{onClick:function(){var fn=(0,re.Z)((0,Y.Z)().mark(function gn(an){var ve,Ee,A,ee,fe,Se;return(0,Y.Z)().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return an.stopPropagation(),an.preventDefault(),Ee=Ye==="Map",A=[ie,Oe].flat(1).filter(Boolean),ee=(bn==null||(ve=bn.getFieldFormatValue)===null||ve===void 0?void 0:ve.call(bn,A))||(Pn==null?void 0:Pn.getFieldValue(A)),fe=Ee?(0,d.Z)({},A,ee):ee,Sn.next=8,Ke==null?void 0:Ke(Oe,fe,vn,Je);case 8:return Se=Sn.sent,Sn.next=11,Be(Oe);case 11:return Pn.setFieldsValue((0,Cn.Z)({},"".concat(Oe),Ee?(0,Xe.Z)(vn,A):vn)),Sn.abrupt("return",Se);case 13:case"end":return Sn.stop()}},gn)}));return function(gn){return fn.apply(this,arguments)}}(),children:Qe||"\u53D6\u6D88"},"cancel")};function _n(x,ce){var Oe=ce.recordKey,ie=ce.newLineConfig,Je=ce.saveText,Ye=ce.deleteText,Ke=(0,Pe.forwardRef)(Kn),Be=(0,Pe.createRef)();return{save:(0,on.jsx)(Ke,(0,H.Z)((0,H.Z)({},ce),{},{row:x,ref:Be,children:Je}),"save"+Oe),saveRef:Be,delete:(ie==null?void 0:ie.options.recordKey)!==Oe?(0,on.jsx)(Nn,(0,H.Z)((0,H.Z)({},ce),{},{row:x,children:Ye}),"delete"+Oe):void 0,cancel:(0,on.jsx)(Jn,(0,H.Z)((0,H.Z)({},ce),{},{row:x}),"cancel"+Oe)}}function Yn(x){var ce=(0,Pe.useState)(void 0),Oe=(0,v.Z)(ce,2),ie=Oe[0],Je=Oe[1],Ye=function(){var N=new Map,le=function ge(ae,je){ae==null||ae.forEach(function(qe,Me){var We,we=je==null?Me.toString():je+"_"+Me.toString();N.set(we,Ue(x.getRowKey(qe,-1))),N.set((We=Ue(x.getRowKey(qe,-1)))===null||We===void 0?void 0:We.toString(),we),x.childrenColumnName&&qe[x.childrenColumnName]&&ge(qe[x.childrenColumnName],we)})};return le(x.dataSource),N},Ke=(0,Pe.useMemo)(function(){return Ye()},[]),Be=(0,Pe.useRef)(Ke),vn=(0,Pe.useRef)(void 0);(0,nn.Au)(function(){Be.current=Ye()},[x.dataSource]),vn.current=ie;var Qe=x.type||"single",bn=(0,he.Z)(x.dataSource,"children",x.getRowKey),Pn=(0,v.Z)(bn,1),fn=Pn[0],gn=(0,Ge.Z)([],{value:x.editableKeys,onChange:x.onChange?function(De){var N,le,ge;x==null||(N=x.onChange)===null||N===void 0||N.call(x,(le=De==null?void 0:De.filter(function(ae){return ae!==void 0}))!==null&&le!==void 0?le:[],(ge=De==null?void 0:De.map(function(ae){return fn(ae)}).filter(function(ae){return ae!==void 0}))!==null&&ge!==void 0?ge:[])}:void 0}),an=(0,v.Z)(gn,2),ve=an[0],Ee=an[1],A=(0,Pe.useMemo)(function(){var De=Qe==="single"?ve==null?void 0:ve.slice(0,1):ve;return new Set(De)},[(ve||[]).join(","),Qe]),ee=(0,tn.D)(ve),fe=(0,ln.J)(function(De){var N,le,ge,ae,je=(N=x.getRowKey(De,De.index))===null||N===void 0||(le=N.toString)===null||le===void 0?void 0:le.call(N),qe=(ge=x.getRowKey(De,-1))===null||ge===void 0||(ae=ge.toString)===null||ae===void 0?void 0:ae.call(ge),Me=ve==null?void 0:ve.map(function(En){return En==null?void 0:En.toString()}),We=(ee==null?void 0:ee.map(function(En){return En==null?void 0:En.toString()}))||[],we=x.tableName&&!!(We!=null&&We.includes(qe))||!!(We!=null&&We.includes(je));return{recordKey:qe,isEditable:x.tableName&&(Me==null?void 0:Me.includes(qe))||(Me==null?void 0:Me.includes(je)),preIsEditable:we}}),Se=(0,ln.J)(function(De){return A.size>0&&Qe==="single"&&x.onlyOneLineEditorAlertMessage!==!1?(Zn(x.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(A.add(De),Ee(Array.from(A)),!0)}),Ie=(0,ln.J)(function(){var De=(0,re.Z)((0,Y.Z)().mark(function N(le,ge){var ae,je;return(0,Y.Z)().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(ae=Ue(le).toString(),je=Be.current.get(ae),!(!A.has(ae)&&je&&(ge==null||ge)&&x.tableName)){Me.next=5;break}return Ie(je,!1),Me.abrupt("return");case 5:return ie&&ie.options.recordKey===le&&Je(void 0),A.delete(ae),A.delete(Ue(le)),Ee(Array.from(A)),Me.abrupt("return",!0);case 10:case"end":return Me.stop()}},N)}));return function(N,le){return De.apply(this,arguments)}}()),Sn=(0,i.D)((0,re.Z)((0,Y.Z)().mark(function De(){var N,le,ge,ae,je=arguments;return(0,Y.Z)().wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:for(le=je.length,ge=new Array(le),ae=0;ae0&&Qe==="single"&&x.onlyOneLineEditorAlertMessage!==!1)return Zn(x.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var le=x.getRowKey(De,-1);if(!le&&le!==0)throw(0,Ce.ET)(!!le,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key - https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(A.add(le),Ee(Array.from(A)),(N==null?void 0:N.newRecordType)==="dataSource"||x.tableName){var ge,ae={data:x.dataSource,getRowKey:x.getRowKey,row:(0,H.Z)((0,H.Z)({},De),{},{map_row_parentKey:N!=null&&N.parentKey?(ge=Ue(N==null?void 0:N.parentKey))===null||ge===void 0?void 0:ge.toString():void 0}),key:le,childrenColumnName:x.childrenColumnName||"children"};x.setDataSource(Ve(ae,(N==null?void 0:N.position)==="top"?"top":"update"))}else Je({defaultValue:De,options:(0,H.Z)((0,H.Z)({},N),{},{recordKey:le})});return!0}),pn=(0,rn.YB)(),lr=(x==null?void 0:x.saveText)||pn.getMessage("editableTable.action.save","\u4FDD\u5B58"),Xn=(x==null?void 0:x.deleteText)||pn.getMessage("editableTable.action.delete","\u5220\u9664"),$r=(x==null?void 0:x.cancelText)||pn.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Er=(0,ln.J)(function(){var De=(0,re.Z)((0,Y.Z)().mark(function N(le,ge,ae,je){var qe,Me,We,we,En,mn,yr;return(0,Y.Z)().wrap(function(Wn){for(;;)switch(Wn.prev=Wn.next){case 0:return Wn.next=2,x==null||(qe=x.onSave)===null||qe===void 0?void 0:qe.call(x,le,ge,ae,je);case 2:return we=Wn.sent,Wn.next=5,Ie(le);case 5:if(En=je||vn.current||{},mn=En.options,!(!(mn!=null&&mn.parentKey)&&(mn==null?void 0:mn.recordKey)===le)){Wn.next=9;break}return(mn==null?void 0:mn.position)==="top"?x.setDataSource([ge].concat((0,J.Z)(x.dataSource))):x.setDataSource([].concat((0,J.Z)(x.dataSource),[ge])),Wn.abrupt("return",we);case 9:return yr={data:x.dataSource,getRowKey:x.getRowKey,row:mn?(0,H.Z)((0,H.Z)({},ge),{},{map_row_parentKey:(Me=Ue((We=mn==null?void 0:mn.parentKey)!==null&&We!==void 0?We:""))===null||Me===void 0?void 0:Me.toString()}):ge,key:le,childrenColumnName:x.childrenColumnName||"children"},x.setDataSource(Ve(yr,(mn==null?void 0:mn.position)==="top"?"top":"update")),Wn.next=13,Ie(le);case 13:return Wn.abrupt("return",we);case 14:case"end":return Wn.stop()}},N)}));return function(N,le,ge,ae){return De.apply(this,arguments)}}()),Tr=(0,ln.J)(function(){var De=(0,re.Z)((0,Y.Z)().mark(function N(le,ge){var ae,je,qe;return(0,Y.Z)().wrap(function(We){for(;;)switch(We.prev=We.next){case 0:return je={data:x.dataSource,getRowKey:x.getRowKey,row:ge,key:le,childrenColumnName:x.childrenColumnName||"children"},We.next=3,x==null||(ae=x.onDelete)===null||ae===void 0?void 0:ae.call(x,le,ge);case 3:return qe=We.sent,We.next=6,Ie(le,!1);case 6:return x.setDataSource(Ve(je,"delete")),We.abrupt("return",qe);case 8:case"end":return We.stop()}},N)}));return function(N,le){return De.apply(this,arguments)}}()),Ir=(0,ln.J)(function(){var De=(0,re.Z)((0,Y.Z)().mark(function N(le,ge,ae,je){var qe,Me;return(0,Y.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return we.next=2,x==null||(qe=x.onCancel)===null||qe===void 0?void 0:qe.call(x,le,ge,ae,je);case 2:return Me=we.sent,we.abrupt("return",Me);case 4:case"end":return we.stop()}},N)}));return function(N,le,ge,ae){return De.apply(this,arguments)}}()),pr=function(N){var le=x.getRowKey(N,N.index),ge={saveText:lr,cancelText:$r,deleteText:Xn,addEditRecord:Gn,recordKey:le,cancelEditable:Ie,index:N.index,tableName:x.tableName,newLineConfig:ie,onCancel:Ir,onDelete:Tr,onSave:Er,editableKeys:ve,setEditableRowKeys:Ee,deletePopconfirmMessage:x.deletePopconfirmMessage||"".concat(pn.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},ae=_n(N,ge);return x.tableName?In.current.set(Be.current.get(Ue(le))||Ue(le),ae.saveRef):In.current.set(Ue(le),ae.saveRef),x.actionRender?x.actionRender(N,ge,{save:ae.save,delete:ae.delete,cancel:ae.cancel}):[ae.save,ae.delete,ae.cancel]};return{editableKeys:ve,setEditableRowKeys:Ee,isEditable:fe,actionRender:pr,startEditable:Se,cancelEditable:Ie,addEditRecord:Gn,saveEditable:Ln,newLineRecord:ie,preEditableKeys:ee,onValuesChange:Fe,getRealIndex:x.getRealIndex}}}}]); diff --git a/7519.b8a0cfef.async.js b/701.15814a81.async.js similarity index 91% rename from 7519.b8a0cfef.async.js rename to 701.15814a81.async.js index e62c5c3e..5bf04f95 100644 --- a/7519.b8a0cfef.async.js +++ b/701.15814a81.async.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7519],{17519:function(st,fe,v){v.d(fe,{Z:function(){return et}});var s=v(50959),ge=v(71349),pe=v(87132),me=v(67536),ve=v(22410),he=v(84875),A=v.n(he),Ce=v(87017),_=v(31594),ee=v(38126),B=v(33346),te=v(10570),re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},oe=function(){var t=(0,s.useRef)([]),r=(0,s.useRef)(null);return(0,s.useEffect)(function(){var o=Date.now(),n=!1;t.current.forEach(function(c){if(c){n=!0;var i=c.style;i.transitionDuration=".3s, .3s, .3s, .06s",r.current&&o-r.current<100&&(i.transitionDuration="0s, 0s")}}),n&&(r.current=Date.now())}),t.current},ye=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Se=function(t){var r=(0,B.Z)((0,B.Z)({},re),t),o=r.className,n=r.percent,c=r.prefixCls,i=r.strokeColor,a=r.strokeLinecap,l=r.strokeWidth,u=r.style,d=r.trailColor,g=r.trailWidth,S=r.transition,h=(0,te.Z)(r,ye);delete h.gapPosition;var C=Array.isArray(n)?n:[n],m=Array.isArray(i)?i:[i],f=oe(),$=l/2,b=100-l/2,y="M ".concat(a==="round"?$:0,",").concat($,` - L `).concat(a==="round"?b:100,",").concat($),p="0 0 100 ".concat(l),x=0;return s.createElement("svg",(0,ee.Z)({className:A()("".concat(c,"-line"),o),viewBox:p,preserveAspectRatio:"none",style:u},h),s.createElement("path",{className:"".concat(c,"-line-trail"),d:y,strokeLinecap:a,stroke:d,strokeWidth:g||l,fillOpacity:"0"}),C.map(function(W,E){var P=1;switch(a){case"round":P=1-l/100;break;case"square":P=1-l/2/100;break;default:P=1;break}var N={strokeDasharray:"".concat(W*P,"px, 100px"),strokeDashoffset:"-".concat(x,"px"),transition:S||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},O=m[E]||m[m.length-1];return x+=W,s.createElement("path",{key:E,className:"".concat(c,"-line-path"),d:y,strokeLinecap:a,stroke:O,strokeWidth:l,fillOpacity:"0",ref:function(I){f[E]=I},style:N})}))},$e=Se,Z=v(40727),be=v(32682),ke=v(63490),ne=0,xe=(0,ke.Z)();function Pe(){var e;return xe?(e=ne,ne+=1):e="TEST_OR_SSR",e}var Ee=function(e){var t=s.useState(),r=(0,be.Z)(t,2),o=r[0],n=r[1];return s.useEffect(function(){n("rc_progress_".concat(Pe()))},[]),e||o},se=function(t){var r=t.bg,o=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:r}},o)};function ie(e,t){return Object.keys(e).map(function(r){var o=parseFloat(r),n="".concat(Math.floor(o*t),"%");return"".concat(e[r]," ").concat(n)})}var Oe=s.forwardRef(function(e,t){var r=e.prefixCls,o=e.color,n=e.gradientId,c=e.radius,i=e.style,a=e.ptg,l=e.strokeLinecap,u=e.strokeWidth,d=e.size,g=e.gapDegree,S=o&&(0,Z.Z)(o)==="object",h=S?"#FFF":void 0,C=d/2,m=s.createElement("circle",{className:"".concat(r,"-circle-path"),r:c,cx:C,cy:C,stroke:h,strokeLinecap:l,strokeWidth:u,opacity:a===0?0:1,style:i,ref:t});if(!S)return m;var f="".concat(n,"-conic"),$=g?"".concat(180+g/2,"deg"):"0deg",b=ie(o,(360-g)/360),y=ie(o,1),p="conic-gradient(from ".concat($,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(y.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:f},m),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(f,")")},s.createElement(se,{bg:x},s.createElement(se,{bg:p}))))}),Ie=Oe,T=100,V=function(t,r,o,n,c,i,a,l,u,d){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,S=o/100*360*((360-i)/360),h=i===0?0:{bottom:0,top:180,left:90,right:-90}[a],C=(100-n)/100*r;u==="round"&&n!==100&&(C+=d/2,C>=r&&(C=r-.01));var m=T/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:C+g,transform:"rotate(".concat(c+S+h,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Le=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ae(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var We=function(t){var r=(0,B.Z)((0,B.Z)({},re),t),o=r.id,n=r.prefixCls,c=r.steps,i=r.strokeWidth,a=r.trailWidth,l=r.gapDegree,u=l===void 0?0:l,d=r.gapPosition,g=r.trailColor,S=r.strokeLinecap,h=r.style,C=r.className,m=r.strokeColor,f=r.percent,$=(0,te.Z)(r,Le),b=T/2,y=Ee(o),p="".concat(y,"-gradient"),x=b-i/2,W=Math.PI*2*x,E=u>0?90+u/2:-90,P=W*((360-u)/360),N=(0,Z.Z)(c)==="object"?c:{count:c,space:2},O=N.count,R=N.space,I=ae(f),k=ae(m),D=k.find(function(H){return H&&(0,Z.Z)(H)==="object"}),G=D&&(0,Z.Z)(D)==="object",j=G?"butt":S,tt=V(W,P,0,100,E,u,d,g,j,i),de=oe(),rt=function(){var K=0;return I.map(function(F,w){var J=k[w]||k[k.length-1],M=V(W,P,K,F,E,u,d,J,j,i);return K+=F,s.createElement(Ie,{key:w,color:J,ptg:F,radius:x,prefixCls:n,gradientId:p,style:M,strokeLinecap:j,strokeWidth:i,gapDegree:u,ref:function(q){de[w]=q},size:T})}).reverse()},ot=function(){var K=Math.round(O*(I[0]/100)),F=100/O,w=0;return new Array(O).fill(null).map(function(J,M){var U=M<=K-1?k[0]:g,q=U&&(0,Z.Z)(U)==="object"?"url(#".concat(p,")"):void 0,ue=V(W,P,w,F,E,u,d,U,"butt",i,R);return w+=(P-ue.strokeDashoffset+R)*100/P,s.createElement("circle",{key:M,className:"".concat(n,"-circle-path"),r:x,cx:b,cy:b,stroke:q,strokeWidth:i,opacity:1,style:ue,ref:function(nt){de[M]=nt}})})};return s.createElement("svg",(0,ee.Z)({className:A()("".concat(n,"-circle"),C),viewBox:"0 0 ".concat(T," ").concat(T),style:h,id:o,role:"presentation"},$),!O&&s.createElement("circle",{className:"".concat(n,"-circle-trail"),r:x,cx:b,cy:b,stroke:g,strokeLinecap:j,strokeWidth:a||i,style:tt}),O?ot():rt())},ce=We,it={Line:$e,Circle:ce},De=v(32618),Q=v(81548);function L(e){return!e||e<0?0:e>100?100:e}function X(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}const Ne=e=>{let{percent:t,success:r,successPercent:o}=e;const n=L(X({success:r,successPercent:o}));return[n,L(L(t)-n)]},je=e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:o}=t;return[o||Q.presetPrimaryColors.green,r||null]},z=(e,t,r)=>{var o,n,c,i;let a=-1,l=-1;if(t==="step"){const u=r.steps,d=r.strokeWidth;typeof e=="string"||typeof e=="undefined"?(a=e==="small"?2:14,l=d!=null?d:8):typeof e=="number"?[a,l]=[e,e]:[a=14,l=8]=e,a*=u}else if(t==="line"){const u=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e=="undefined"?l=u||(e==="small"?6:8):typeof e=="number"?[a,l]=[e,e]:[a=-1,l=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[a,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,l]=[e,e]:(a=(n=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&n!==void 0?n:120,l=(i=(c=e[0])!==null&&c!==void 0?c:e[1])!==null&&i!==void 0?i:120));return[a,l]},we=3,Ae=e=>we/e*100;var Ze=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:n,gapDegree:c,width:i=120,type:a,children:l,success:u,size:d=i}=e,[g,S]=z(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(Ae(g),6));const C={width:g,height:S,fontSize:g*.15+6},m=s.useMemo(()=>{if(c||c===0)return c;if(a==="dashboard")return 75},[c,a]),f=n||a==="dashboard"&&"bottom"||void 0,$=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=je({success:u,strokeColor:e.strokeColor}),y=A()(`${t}-inner`,{[`${t}-circle-gradient`]:$}),p=s.createElement(ce,{percent:Ne(e),strokeWidth:h,trailWidth:h,strokeColor:b,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:m,gapPosition:f});return s.createElement("div",{className:y,style:C},g<=20?s.createElement(De.Z,{title:l},s.createElement("span",null,p)):s.createElement(s.Fragment,null,p,l))},Te=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let t=[];return Object.keys(e).forEach(r=>{const o=parseFloat(r.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[r]})}),t=t.sort((r,o)=>r.key-o.key),t.map(r=>{let{key:o,value:n}=r;return`${n} ${o}%`}).join(", ")},Fe=(e,t)=>{const{from:r=Q.presetPrimaryColors.blue,to:o=Q.presetPrimaryColors.blue,direction:n=t==="rtl"?"to left":"to right"}=e,c=Te(e,["from","to","direction"]);if(Object.keys(c).length!==0){const i=Re(c);return{backgroundImage:`linear-gradient(${n}, ${i})`}}return{backgroundImage:`linear-gradient(${n}, ${r}, ${o})`}};var Me=e=>{const{prefixCls:t,direction:r,percent:o,size:n,strokeWidth:c,strokeColor:i,strokeLinecap:a="round",children:l,trailColor:u=null,success:d}=e,{direction:g}=(0,s.useContext)(_.E_),S=i&&typeof i!="string"?Fe(i,r):{backgroundColor:i},h=a==="square"||a==="butt"?0:void 0,C={backgroundColor:u||void 0,borderRadius:h},m=n!=null?n:[-1,c||(n==="small"?6:8)],[f,$]=z(m,"line",{strokeWidth:c}),b=Object.assign({width:"100%",height:$,borderRadius:h,clipPath:g==="rtl"?`inset(0 0 0 ${100-L(o)}% round 100px)`:`inset(0 ${100-L(o)}% 0 0 round 100px)`},S),y=X(e),p={width:"100%",height:$,borderRadius:h,clipPath:g==="rtl"?`inset(0 0 0 ${100-L(y)}% round 100px)`:`inset(0 ${100-L(y)}% 0 0 round 100px)`,backgroundColor:d==null?void 0:d.strokeColor},x={width:f<0?"100%":f,height:$};return s.createElement(s.Fragment,null,s.createElement("div",{className:`${t}-outer`,style:x},s.createElement("div",{className:`${t}-inner`,style:C},s.createElement("div",{className:`${t}-bg`,style:b}),y!==void 0?s.createElement("div",{className:`${t}-success-bg`,style:p}):null)),l)},Be=e=>{const{size:t,steps:r,percent:o=0,strokeWidth:n=8,strokeColor:c,trailColor:i=null,prefixCls:a,children:l}=e,u=Math.round(r*(o/100)),d=t==="small"?2:14,g=t!=null?t:[d,n],[S,h]=z(g,"step",{steps:r,strokeWidth:n}),C=S/r,m=new Array(r);for(let f=0;f{const t=e?"100%":"-100%";return new Y.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},He=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,Xe.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,Y.bf)(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,Y.bf)(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:le(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:le(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Ke=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Ue=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Ve=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Qe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`});var Ye=(0,ze.I$)("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=(0,Ge.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[He(r),Ke(r),Ue(r),Ve(r)]},Qe),Je=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{const{prefixCls:r,className:o,rootClassName:n,steps:c,strokeColor:i,percent:a=0,size:l="default",showInfo:u=!0,type:d="line",status:g,format:S,style:h}=e,C=Je(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),m=s.useMemo(()=>{var I,k;const D=X(e);return parseInt(D!==void 0?(I=D!=null?D:0)===null||I===void 0?void 0:I.toString():(k=a!=null?a:0)===null||k===void 0?void 0:k.toString(),10)},[a,e.success,e.successPercent]),f=s.useMemo(()=>!qe.includes(g)&&m>=100?"success":g||"normal",[g,m]),{getPrefixCls:$,direction:b,progress:y}=s.useContext(_.E_),p=$("progress",r),[x,W]=Ye(p),E=s.useMemo(()=>{if(!u)return null;const I=X(e);let k;const D=S||(j=>`${j}%`),G=d==="line";return S||f!=="exception"&&f!=="success"?k=D(L(a),L(I)):f==="exception"?k=G?s.createElement(me.Z,null):s.createElement(ve.Z,null):f==="success"&&(k=G?s.createElement(ge.Z,null):s.createElement(pe.Z,null)),s.createElement("span",{className:`${p}-text`,title:typeof k=="string"?k:void 0},k)},[u,a,m,f,d,p,S]),P=Array.isArray(i)?i[0]:i,N=typeof i=="string"||Array.isArray(i)?i:void 0;let O;d==="line"?O=c?s.createElement(Be,Object.assign({},e,{strokeColor:N,prefixCls:p,steps:c}),E):s.createElement(Me,Object.assign({},e,{strokeColor:P,prefixCls:p,direction:b}),E):(d==="circle"||d==="dashboard")&&(O=s.createElement(Ze,Object.assign({},e,{strokeColor:P,prefixCls:p,progressStatus:f}),E));const R=A()(p,`${p}-status-${f}`,`${p}-${d==="dashboard"&&"circle"||c&&"steps"||d}`,{[`${p}-inline-circle`]:d==="circle"&&z(l,"circle")[0]<=20,[`${p}-show-info`]:u,[`${p}-${l}`]:typeof l=="string",[`${p}-rtl`]:b==="rtl"},y==null?void 0:y.className,o,n,W);return x(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},y==null?void 0:y.style),h),className:R,role:"progressbar","aria-valuenow":m},(0,Ce.Z)(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))}),et=_e}}]); +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[701],{40701:function(st,fe,v){v.d(fe,{Z:function(){return et}});var s=v(79685),ge=v(40139),pe=v(89946),me=v(96032),ve=v(99992),he=v(68591),A=v.n(he),Ce=v(3139),_=v(99248),ee=v(21137),B=v(93264),te=v(98787),re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},oe=function(){var t=(0,s.useRef)([]),r=(0,s.useRef)(null);return(0,s.useEffect)(function(){var o=Date.now(),n=!1;t.current.forEach(function(c){if(c){n=!0;var i=c.style;i.transitionDuration=".3s, .3s, .3s, .06s",r.current&&o-r.current<100&&(i.transitionDuration="0s, 0s")}}),n&&(r.current=Date.now())}),t.current},ye=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Se=function(t){var r=(0,B.Z)((0,B.Z)({},re),t),o=r.className,n=r.percent,c=r.prefixCls,i=r.strokeColor,a=r.strokeLinecap,l=r.strokeWidth,u=r.style,d=r.trailColor,g=r.trailWidth,S=r.transition,h=(0,te.Z)(r,ye);delete h.gapPosition;var C=Array.isArray(n)?n:[n],m=Array.isArray(i)?i:[i],f=oe(),$=l/2,b=100-l/2,y="M ".concat(a==="round"?$:0,",").concat($,` + L `).concat(a==="round"?b:100,",").concat($),p="0 0 100 ".concat(l),x=0;return s.createElement("svg",(0,ee.Z)({className:A()("".concat(c,"-line"),o),viewBox:p,preserveAspectRatio:"none",style:u},h),s.createElement("path",{className:"".concat(c,"-line-trail"),d:y,strokeLinecap:a,stroke:d,strokeWidth:g||l,fillOpacity:"0"}),C.map(function(W,E){var P=1;switch(a){case"round":P=1-l/100;break;case"square":P=1-l/2/100;break;default:P=1;break}var N={strokeDasharray:"".concat(W*P,"px, 100px"),strokeDashoffset:"-".concat(x,"px"),transition:S||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},O=m[E]||m[m.length-1];return x+=W,s.createElement("path",{key:E,className:"".concat(c,"-line-path"),d:y,strokeLinecap:a,stroke:O,strokeWidth:l,fillOpacity:"0",ref:function(I){f[E]=I},style:N})}))},$e=Se,Z=v(63195),be=v(89342),ke=v(68450),ne=0,xe=(0,ke.Z)();function Pe(){var e;return xe?(e=ne,ne+=1):e="TEST_OR_SSR",e}var Ee=function(e){var t=s.useState(),r=(0,be.Z)(t,2),o=r[0],n=r[1];return s.useEffect(function(){n("rc_progress_".concat(Pe()))},[]),e||o},se=function(t){var r=t.bg,o=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:r}},o)};function ie(e,t){return Object.keys(e).map(function(r){var o=parseFloat(r),n="".concat(Math.floor(o*t),"%");return"".concat(e[r]," ").concat(n)})}var Oe=s.forwardRef(function(e,t){var r=e.prefixCls,o=e.color,n=e.gradientId,c=e.radius,i=e.style,a=e.ptg,l=e.strokeLinecap,u=e.strokeWidth,d=e.size,g=e.gapDegree,S=o&&(0,Z.Z)(o)==="object",h=S?"#FFF":void 0,C=d/2,m=s.createElement("circle",{className:"".concat(r,"-circle-path"),r:c,cx:C,cy:C,stroke:h,strokeLinecap:l,strokeWidth:u,opacity:a===0?0:1,style:i,ref:t});if(!S)return m;var f="".concat(n,"-conic"),$=g?"".concat(180+g/2,"deg"):"0deg",b=ie(o,(360-g)/360),y=ie(o,1),p="conic-gradient(from ".concat($,", ").concat(b.join(", "),")"),x="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(y.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:f},m),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(f,")")},s.createElement(se,{bg:x},s.createElement(se,{bg:p}))))}),Ie=Oe,T=100,V=function(t,r,o,n,c,i,a,l,u,d){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,S=o/100*360*((360-i)/360),h=i===0?0:{bottom:0,top:180,left:90,right:-90}[a],C=(100-n)/100*r;u==="round"&&n!==100&&(C+=d/2,C>=r&&(C=r-.01));var m=T/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:C+g,transform:"rotate(".concat(c+S+h,"deg)"),transformOrigin:"".concat(m,"px ").concat(m,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Le=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ae(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var We=function(t){var r=(0,B.Z)((0,B.Z)({},re),t),o=r.id,n=r.prefixCls,c=r.steps,i=r.strokeWidth,a=r.trailWidth,l=r.gapDegree,u=l===void 0?0:l,d=r.gapPosition,g=r.trailColor,S=r.strokeLinecap,h=r.style,C=r.className,m=r.strokeColor,f=r.percent,$=(0,te.Z)(r,Le),b=T/2,y=Ee(o),p="".concat(y,"-gradient"),x=b-i/2,W=Math.PI*2*x,E=u>0?90+u/2:-90,P=W*((360-u)/360),N=(0,Z.Z)(c)==="object"?c:{count:c,space:2},O=N.count,R=N.space,I=ae(f),k=ae(m),D=k.find(function(H){return H&&(0,Z.Z)(H)==="object"}),G=D&&(0,Z.Z)(D)==="object",j=G?"butt":S,tt=V(W,P,0,100,E,u,d,g,j,i),de=oe(),rt=function(){var K=0;return I.map(function(F,w){var J=k[w]||k[k.length-1],M=V(W,P,K,F,E,u,d,J,j,i);return K+=F,s.createElement(Ie,{key:w,color:J,ptg:F,radius:x,prefixCls:n,gradientId:p,style:M,strokeLinecap:j,strokeWidth:i,gapDegree:u,ref:function(q){de[w]=q},size:T})}).reverse()},ot=function(){var K=Math.round(O*(I[0]/100)),F=100/O,w=0;return new Array(O).fill(null).map(function(J,M){var U=M<=K-1?k[0]:g,q=U&&(0,Z.Z)(U)==="object"?"url(#".concat(p,")"):void 0,ue=V(W,P,w,F,E,u,d,U,"butt",i,R);return w+=(P-ue.strokeDashoffset+R)*100/P,s.createElement("circle",{key:M,className:"".concat(n,"-circle-path"),r:x,cx:b,cy:b,stroke:q,strokeWidth:i,opacity:1,style:ue,ref:function(nt){de[M]=nt}})})};return s.createElement("svg",(0,ee.Z)({className:A()("".concat(n,"-circle"),C),viewBox:"0 0 ".concat(T," ").concat(T),style:h,id:o,role:"presentation"},$),!O&&s.createElement("circle",{className:"".concat(n,"-circle-trail"),r:x,cx:b,cy:b,stroke:g,strokeLinecap:j,strokeWidth:a||i,style:tt}),O?ot():rt())},ce=We,it={Line:$e,Circle:ce},De=v(58898),Q=v(32145);function L(e){return!e||e<0?0:e>100?100:e}function X(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}const Ne=e=>{let{percent:t,success:r,successPercent:o}=e;const n=L(X({success:r,successPercent:o}));return[n,L(L(t)-n)]},je=e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:o}=t;return[o||Q.presetPrimaryColors.green,r||null]},z=(e,t,r)=>{var o,n,c,i;let a=-1,l=-1;if(t==="step"){const u=r.steps,d=r.strokeWidth;typeof e=="string"||typeof e=="undefined"?(a=e==="small"?2:14,l=d!=null?d:8):typeof e=="number"?[a,l]=[e,e]:[a=14,l=8]=e,a*=u}else if(t==="line"){const u=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e=="undefined"?l=u||(e==="small"?6:8):typeof e=="number"?[a,l]=[e,e]:[a=-1,l=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[a,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,l]=[e,e]:(a=(n=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&n!==void 0?n:120,l=(i=(c=e[0])!==null&&c!==void 0?c:e[1])!==null&&i!==void 0?i:120));return[a,l]},we=3,Ae=e=>we/e*100;var Ze=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:n,gapDegree:c,width:i=120,type:a,children:l,success:u,size:d=i}=e,[g,S]=z(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(Ae(g),6));const C={width:g,height:S,fontSize:g*.15+6},m=s.useMemo(()=>{if(c||c===0)return c;if(a==="dashboard")return 75},[c,a]),f=n||a==="dashboard"&&"bottom"||void 0,$=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=je({success:u,strokeColor:e.strokeColor}),y=A()(`${t}-inner`,{[`${t}-circle-gradient`]:$}),p=s.createElement(ce,{percent:Ne(e),strokeWidth:h,trailWidth:h,strokeColor:b,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:m,gapPosition:f});return s.createElement("div",{className:y,style:C},g<=20?s.createElement(De.Z,{title:l},s.createElement("span",null,p)):s.createElement(s.Fragment,null,p,l))},Te=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{let t=[];return Object.keys(e).forEach(r=>{const o=parseFloat(r.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[r]})}),t=t.sort((r,o)=>r.key-o.key),t.map(r=>{let{key:o,value:n}=r;return`${n} ${o}%`}).join(", ")},Fe=(e,t)=>{const{from:r=Q.presetPrimaryColors.blue,to:o=Q.presetPrimaryColors.blue,direction:n=t==="rtl"?"to left":"to right"}=e,c=Te(e,["from","to","direction"]);if(Object.keys(c).length!==0){const i=Re(c);return{backgroundImage:`linear-gradient(${n}, ${i})`}}return{backgroundImage:`linear-gradient(${n}, ${r}, ${o})`}};var Me=e=>{const{prefixCls:t,direction:r,percent:o,size:n,strokeWidth:c,strokeColor:i,strokeLinecap:a="round",children:l,trailColor:u=null,success:d}=e,{direction:g}=(0,s.useContext)(_.E_),S=i&&typeof i!="string"?Fe(i,r):{backgroundColor:i},h=a==="square"||a==="butt"?0:void 0,C={backgroundColor:u||void 0,borderRadius:h},m=n!=null?n:[-1,c||(n==="small"?6:8)],[f,$]=z(m,"line",{strokeWidth:c}),b=Object.assign({width:"100%",height:$,borderRadius:h,clipPath:g==="rtl"?`inset(0 0 0 ${100-L(o)}% round 100px)`:`inset(0 ${100-L(o)}% 0 0 round 100px)`},S),y=X(e),p={width:"100%",height:$,borderRadius:h,clipPath:g==="rtl"?`inset(0 0 0 ${100-L(y)}% round 100px)`:`inset(0 ${100-L(y)}% 0 0 round 100px)`,backgroundColor:d==null?void 0:d.strokeColor},x={width:f<0?"100%":f,height:$};return s.createElement(s.Fragment,null,s.createElement("div",{className:`${t}-outer`,style:x},s.createElement("div",{className:`${t}-inner`,style:C},s.createElement("div",{className:`${t}-bg`,style:b}),y!==void 0?s.createElement("div",{className:`${t}-success-bg`,style:p}):null)),l)},Be=e=>{const{size:t,steps:r,percent:o=0,strokeWidth:n=8,strokeColor:c,trailColor:i=null,prefixCls:a,children:l}=e,u=Math.round(r*(o/100)),d=t==="small"?2:14,g=t!=null?t:[d,n],[S,h]=z(g,"step",{steps:r,strokeWidth:n}),C=S/r,m=new Array(r);for(let f=0;f{const t=e?"100%":"-100%";return new Y.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},He=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,Xe.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${(0,Y.bf)(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,Y.bf)(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:le(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:le(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Ke=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Ue=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Ve=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Qe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`});var Ye=(0,ze.I$)("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=(0,Ge.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[He(r),Ke(r),Ue(r),Ve(r)]},Qe),Je=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n{const{prefixCls:r,className:o,rootClassName:n,steps:c,strokeColor:i,percent:a=0,size:l="default",showInfo:u=!0,type:d="line",status:g,format:S,style:h}=e,C=Je(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),m=s.useMemo(()=>{var I,k;const D=X(e);return parseInt(D!==void 0?(I=D!=null?D:0)===null||I===void 0?void 0:I.toString():(k=a!=null?a:0)===null||k===void 0?void 0:k.toString(),10)},[a,e.success,e.successPercent]),f=s.useMemo(()=>!qe.includes(g)&&m>=100?"success":g||"normal",[g,m]),{getPrefixCls:$,direction:b,progress:y}=s.useContext(_.E_),p=$("progress",r),[x,W]=Ye(p),E=s.useMemo(()=>{if(!u)return null;const I=X(e);let k;const D=S||(j=>`${j}%`),G=d==="line";return S||f!=="exception"&&f!=="success"?k=D(L(a),L(I)):f==="exception"?k=G?s.createElement(me.Z,null):s.createElement(ve.Z,null):f==="success"&&(k=G?s.createElement(ge.Z,null):s.createElement(pe.Z,null)),s.createElement("span",{className:`${p}-text`,title:typeof k=="string"?k:void 0},k)},[u,a,m,f,d,p,S]),P=Array.isArray(i)?i[0]:i,N=typeof i=="string"||Array.isArray(i)?i:void 0;let O;d==="line"?O=c?s.createElement(Be,Object.assign({},e,{strokeColor:N,prefixCls:p,steps:c}),E):s.createElement(Me,Object.assign({},e,{strokeColor:P,prefixCls:p,direction:b}),E):(d==="circle"||d==="dashboard")&&(O=s.createElement(Ze,Object.assign({},e,{strokeColor:P,prefixCls:p,progressStatus:f}),E));const R=A()(p,`${p}-status-${f}`,`${p}-${d==="dashboard"&&"circle"||c&&"steps"||d}`,{[`${p}-inline-circle`]:d==="circle"&&z(l,"circle")[0]<=20,[`${p}-show-info`]:u,[`${p}-${l}`]:typeof l=="string",[`${p}-rtl`]:b==="rtl"},y==null?void 0:y.className,o,n,W);return x(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},y==null?void 0:y.style),h),className:R,role:"progressbar","aria-valuenow":m},(0,Ce.Z)(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))}),et=_e}}]); diff --git a/7196.5d32e773.async.js b/7196.5d32e773.async.js new file mode 100644 index 00000000..cb86019e --- /dev/null +++ b/7196.5d32e773.async.js @@ -0,0 +1,8 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7196],{57196:function(ke,D,p){p.d(D,{Z:function(){return ve}});var G=p(68591),u=p.n(G),i=p(79685),b=p(99248),w=p(3139),j=e=>{const{prefixCls:t,className:n,style:s,size:a,shape:r}=e,c=u()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),o=u()({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),l=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:u()(t,c,o,n),style:Object.assign(Object.assign({},l),s)})},R=p(26477),V=p(44244),Z=p(25830);const W=new R.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),x=e=>({height:e,lineHeight:(0,R.bf)(e)}),v=e=>Object.assign({width:e},x(e)),X=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:W,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),P=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},x(e)),J=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:s,controlHeightLG:a,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},v(s)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},v(a)),[`${t}${t}-sm`]:Object.assign({},v(r))}},K=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:s,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:o}=e;return{[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:n},P(t,o)),[`${s}-lg`]:Object.assign({},P(a,o)),[`${s}-sm`]:Object.assign({},P(r,o))}},T=e=>Object.assign({width:e},x(e)),Q=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:s,borderRadiusSM:a,calc:r}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:s,borderRadius:a},T(r(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},T(n)),{maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},I=(e,t,n)=>{const{skeletonButtonCls:s}=e;return{[`${n}${s}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${s}-round`]:{borderRadius:t}}},z=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},x(e)),U=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:s,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:o}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:o(s).mul(2).equal(),minWidth:o(s).mul(2).equal()},z(s,o))},I(e,s,n)),{[`${n}-lg`]:Object.assign({},z(a,o))}),I(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},z(r,o))}),I(e,r,`${n}-sm`))},Y=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:s,skeletonParagraphCls:a,skeletonButtonCls:r,skeletonInputCls:c,skeletonImageCls:o,controlHeight:l,controlHeightLG:g,controlHeightSM:d,gradientFromColor:m,padding:C,marginSM:H,borderRadius:$,titleHeight:h,blockRadius:E,paragraphLiHeight:A,controlHeightXS:S,paragraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:C,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:m},v(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},v(g)),[`${n}-sm`]:Object.assign({},v(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${s}`]:{width:"100%",height:h,background:m,borderRadius:E,[`+ ${a}`]:{marginBlockStart:d}},[`${a}`]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:m,borderRadius:E,"+ li":{marginBlockStart:S}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${s}, ${a} > li`]:{borderRadius:$}}},[`${t}-with-avatar ${t}-content`]:{[`${s}`]:{marginBlockStart:H,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},U(e)),J(e)),K(e)),Q(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${s}, + ${a} > li, + ${n}, + ${r}, + ${c}, + ${o} + `]:Object.assign({},X(e))}}},_=e=>{const{colorFillContent:t,colorFill:n}=e,s=t,a=n;return{color:s,colorGradientEnd:a,gradientFromColor:s,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}};var f=(0,V.I$)("Skeleton",e=>{const{componentCls:t,calc:n}=e,s=(0,Z.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Y(s)]},_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ee=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,shape:r="circle",size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls","className"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-avatar`,shape:r,size:c},m))))},te=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:r=!1,size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-button`,size:c},m))))};const ne="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var se=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:r}=e,{getPrefixCls:c}=i.useContext(b.E_),o=c("skeleton",t),[l,g]=f(o),d=u()(o,`${o}-element`,{[`${o}-active`]:r},n,s,g);return l(i.createElement("div",{className:d},i.createElement("div",{className:u()(`${o}-image`,n),style:a},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},i.createElement("path",{d:ne,className:`${o}-image-path`})))))},ae=e=>{const{prefixCls:t,className:n,rootClassName:s,active:a,block:r,size:c="default"}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=(0,w.Z)(e,["prefixCls"]),C=u()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},n,s,d);return g(i.createElement("div",{className:C},i.createElement(j,Object.assign({prefixCls:`${l}-input`,size:c},m))))},le=p(21137),oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ie=oe,re=p(83317),ce=function(t,n){return i.createElement(re.Z,(0,le.Z)({},t,{ref:n,icon:ie}))},ge=i.forwardRef(ce),de=e=>{const{prefixCls:t,className:n,rootClassName:s,style:a,active:r,children:c}=e,{getPrefixCls:o}=i.useContext(b.E_),l=o("skeleton",t),[g,d]=f(l),m=u()(l,`${l}-element`,{[`${l}-active`]:r},d,n,s),C=c!=null?c:i.createElement(ge,null);return g(i.createElement("div",{className:m},i.createElement("div",{className:u()(`${l}-image`,n),style:a},C)))},ue=p(57963),me=e=>{const t=o=>{const{width:l,rows:g=2}=e;if(Array.isArray(l))return l[o];if(g-1===o)return l},{prefixCls:n,className:s,style:a,rows:r}=e,c=(0,ue.Z)(Array(r)).map((o,l)=>i.createElement("li",{key:l,style:{width:t(l)}}));return i.createElement("ul",{className:u()(n,s),style:a},c)},he=e=>{let{prefixCls:t,className:n,width:s,style:a}=e;return i.createElement("h3",{className:u()(t,n),style:Object.assign({width:s},a)})};function B(e){return e&&typeof e=="object"?e:{}}function pe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Ce(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function $e(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const k=e=>{const{prefixCls:t,loading:n,className:s,rootClassName:a,style:r,children:c,avatar:o=!1,title:l=!0,paragraph:g=!0,active:d,round:m}=e,{getPrefixCls:C,direction:H,skeleton:$}=i.useContext(b.E_),h=C("skeleton",t),[E,A]=f(h);if(n||!("loading"in e)){const S=!!o,O=!!l,N=!!g;let L;if(S){const y=Object.assign(Object.assign({prefixCls:`${h}-avatar`},pe(O,N)),B(o));L=i.createElement("div",{className:`${h}-header`},i.createElement(j,Object.assign({},y)))}let F;if(O||N){let y;if(O){const M=Object.assign(Object.assign({prefixCls:`${h}-title`},Ce(S,N)),B(l));y=i.createElement(he,Object.assign({},M))}let q;if(N){const M=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},$e(S,O)),B(g));q=i.createElement(me,Object.assign({},M))}F=i.createElement("div",{className:`${h}-content`},y,q)}const fe=u()(h,{[`${h}-with-avatar`]:S,[`${h}-active`]:d,[`${h}-rtl`]:H==="rtl",[`${h}-round`]:m},$==null?void 0:$.className,s,a,A);return E(i.createElement("div",{className:fe,style:Object.assign(Object.assign({},$==null?void 0:$.style),r)},L,F))}return typeof c!="undefined"?c:null};k.Button=te,k.Avatar=ee,k.Input=ae,k.Image=se,k.Node=de;var be=k,ve=be}}]); diff --git a/7291.c46e4103.async.js b/7291.c46e4103.async.js deleted file mode 100644 index 8b74f713..00000000 --- a/7291.c46e4103.async.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7291],{17291:function(Ea,vt,y){y.d(vt,{default:function(){return vn}});var Y=y(39237),pe=y(97960),O=y(50959),$n=y(38126),gt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},B=gt,Z=y(38782),ne=function(H,A){return O.createElement(Z.Z,(0,$n.Z)({},H,{ref:A,icon:B}))},V=O.forwardRef(ne),mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},fe=mt,dn=function(H,A){return O.createElement(Z.Z,(0,$n.Z)({},H,{ref:A,icon:fe}))},Mn=O.forwardRef(dn),tt=y(67536),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},at=o,an=function(H,A){return O.createElement(Z.Z,(0,$n.Z)({},H,{ref:A,icon:at}))},Ye=O.forwardRef(an),p=y(84875),u=y.n(p),i=y(31959),x=y(55580),q=y(31594),ie=y(69943),X=y(17436),Se=y(1415),te=y(45449),Ue=y(21130),Ve=y(19916),ae=y(29176);function Ce(P,H,A){return A!==void 0?A:H==="year"&&P.lang.yearPlaceholder?P.lang.yearPlaceholder:H==="quarter"&&P.lang.quarterPlaceholder?P.lang.quarterPlaceholder:H==="month"&&P.lang.monthPlaceholder?P.lang.monthPlaceholder:H==="week"&&P.lang.weekPlaceholder?P.lang.weekPlaceholder:H==="time"&&P.timePickerLocale.placeholder?P.timePickerLocale.placeholder:P.lang.placeholder}function Nn(P,H,A){return A!==void 0?A:H==="year"&&P.lang.yearPlaceholder?P.lang.rangeYearPlaceholder:H==="quarter"&&P.lang.quarterPlaceholder?P.lang.rangeQuarterPlaceholder:H==="month"&&P.lang.monthPlaceholder?P.lang.rangeMonthPlaceholder:H==="week"&&P.lang.weekPlaceholder?P.lang.rangeWeekPlaceholder:H==="time"&&P.timePickerLocale.placeholder?P.timePickerLocale.rangePlaceholder:P.lang.rangePlaceholder}function Ie(P,H){const A={adjustX:1,adjustY:1};switch(H){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:A};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:A};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:A};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:A};default:return{points:P==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:A}}}function ue(P){return P?Array.isArray(P)?P:[P]:[]}function Te(P){const{format:H,picker:A,showHour:_,showMinute:re,showSecond:Oe,use12Hours:rn}=P,ve=ue(H)[0],ge=Object.assign({},P);return H&&Array.isArray(H)&&(ge.format=ve),ve&&typeof ve=="string"&&(!ve.includes("s")&&Oe===void 0&&(ge.showSecond=!1),!ve.includes("m")&&re===void 0&&(ge.showMinute=!1),!ve.includes("H")&&!ve.includes("h")&&!ve.includes("K")&&!ve.includes("k")&&_===void 0&&(ge.showHour=!1),(ve.includes("a")||ve.includes("A"))&&rn===void 0&&(ge.use12Hours=!0)),A==="time"?ge:(typeof ve=="function"&&delete ge.format,{showTime:ge})}function He(P,H,A){if(P===!1)return!1;const _={clearIcon:H!=null?H:A};return typeof P=="object"?Object.assign(Object.assign({},_),P):_}var Fe=y(47100);function Qe(P){return O.createElement(Fe.ZP,Object.assign({size:"small",type:"primary"},P))}var kn={button:Qe},_n=y(22365),fn=y(10254),Hn=function(P,H){var A={};for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&H.indexOf(_)<0&&(A[_]=P[_]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,_=Object.getOwnPropertySymbols(P);re<_.length;re++)H.indexOf(_[re])<0&&Object.prototype.propertyIsEnumerable.call(P,_[re])&&(A[_[re]]=P[_[re]]);return A};function zn(P){return(0,O.forwardRef)((A,_)=>{var re;const{prefixCls:Oe,getPopupContainer:rn,className:ve,style:ge,placement:xe,size:Xe,disabled:gn,bordered:Le=!0,placeholder:la,popupClassName:pt,dropdownClassName:F,status:Je,clearIcon:Gt,allowClear:Ct,rootClassName:Tt}=A,wn=Hn(A,["prefixCls","getPopupContainer","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),bt=O.useRef(null),{getPrefixCls:Yt,direction:Vt,getPopupContainer:ia,rangePicker:mn}=(0,O.useContext)(q.E_),Be=Yt("picker",Oe),{compactSize:ca,compactItemClassnames:Dt}=(0,Ue.ri)(Be,Vt),{format:Xt,showTime:Bn,picker:Qn}=A,Ht=Yt(),Lt=(0,fn.Z)(Be),[Gn,Ae]=(0,ae.ZP)(Be,Lt),ua=Object.assign(Object.assign({},Bn?Te(Object.assign({format:Xt,picker:Qn},Bn)):{}),Qn==="time"?Te(Object.assign(Object.assign({format:Xt},A),{picker:Qn})):{}),Jt=(0,X.Z)(on=>{var ot;return(ot=Xe!=null?Xe:ca)!==null&&ot!==void 0?ot:on}),Xn=O.useContext(ie.Z),qt=gn!=null?gn:Xn,wt=(0,O.useContext)(Se.aM),{hasFeedback:St,status:sa,feedbackIcon:ea}=wt,da=O.createElement(O.Fragment,null,Qn==="time"?O.createElement(Mn,null):O.createElement(V,null),St&&ea);(0,O.useImperativeHandle)(_,()=>({focus:()=>{var on;return(on=bt.current)===null||on===void 0?void 0:on.focus()},blur:()=>{var on;return(on=bt.current)===null||on===void 0?void 0:on.blur()}}));const[Pt]=(0,te.Z)("Calendar",Ve.Z),Jn=Object.assign(Object.assign({},Pt),A.locale),[na]=(0,_n.Cn)("DatePicker",(re=A.popupStyle)===null||re===void 0?void 0:re.zIndex);return Gn(O.createElement(i.Sq,Object.assign({separator:O.createElement("span",{"aria-label":"to",className:`${Be}-separator`},O.createElement(Ye,null)),disabled:qt,ref:bt,dropdownAlign:Ie(Vt,xe),placeholder:Nn(Jn,Qn,la),suffixIcon:da,prevIcon:O.createElement("span",{className:`${Be}-prev-icon`}),nextIcon:O.createElement("span",{className:`${Be}-next-icon`}),superPrevIcon:O.createElement("span",{className:`${Be}-super-prev-icon`}),superNextIcon:O.createElement("span",{className:`${Be}-super-next-icon`}),transitionName:`${Ht}-slide-up`},wn,ua,{className:u()({[`${Be}-${Jt}`]:Jt,[`${Be}-borderless`]:!Le},(0,x.Z)(Be,(0,x.F)(sa,Je),St),Ae,Dt,ve,mn==null?void 0:mn.className,Lt,Tt),style:Object.assign(Object.assign({},mn==null?void 0:mn.style),ge),locale:Jn.lang,prefixCls:Be,getPopupContainer:rn||ia,generateConfig:P,components:kn,direction:Vt,dropdownClassName:u()(Ae,pt||F,Lt,Tt),popupStyle:Object.assign(Object.assign({},A.popupStyle),{zIndex:na}),allowClear:He(Ct,Gt,O.createElement(tt.Z,null))})))})}var Ln=function(P,H){var A={};for(var _ in P)Object.prototype.hasOwnProperty.call(P,_)&&H.indexOf(_)<0&&(A[_]=P[_]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,_=Object.getOwnPropertySymbols(P);re<_.length;re++)H.indexOf(_[re])<0&&Object.prototype.propertyIsEnumerable.call(P,_[re])&&(A[_[re]]=P[_[re]]);return A};function Zn(P){function H(ge,xe){const Xe=xe==="TimePicker"?"timePicker":"datePicker",gn=(0,O.forwardRef)((Le,la)=>{var pt;const{prefixCls:F,getPopupContainer:Je,style:Gt,className:Ct,rootClassName:Tt,size:wn,bordered:bt=!0,placement:Yt,placeholder:Vt,popupClassName:ia,dropdownClassName:mn,disabled:Be,status:ca,clearIcon:Dt,allowClear:Xt}=Le,Bn=Ln(Le,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:Qn,direction:Ht,getPopupContainer:Lt,[Xe]:Gn}=(0,O.useContext)(q.E_),Ae=Qn("picker",F),{compactSize:ua,compactItemClassnames:Jt}=(0,Ue.ri)(Ae,Ht),Xn=O.useRef(null),{format:qt,showTime:wt}=Le,St=(0,fn.Z)(Ae),[sa,ea]=(0,ae.ZP)(Ae,St);(0,O.useImperativeHandle)(la,()=>({focus:()=>{var An;return(An=Xn.current)===null||An===void 0?void 0:An.focus()},blur:()=>{var An;return(An=Xn.current)===null||An===void 0?void 0:An.blur()}}));const da={showToday:!0};let Pt={};ge&&(Pt.picker=ge);const Jn=ge||Le.picker;Pt=Object.assign(Object.assign(Object.assign({},Pt),wt?Te(Object.assign({format:qt,picker:Jn},wt)):{}),Jn==="time"?Te(Object.assign(Object.assign({format:qt},Le),{picker:Jn})):{});const na=Qn(),on=(0,X.Z)(An=>{var va;return(va=wn!=null?wn:ua)!==null&&va!==void 0?va:An}),ot=O.useContext(ie.Z),Ra=Be!=null?Be:ot,$a=(0,O.useContext)(Se.aM),{hasFeedback:ha,status:Ma,feedbackIcon:fa}=$a,pa=O.createElement(O.Fragment,null,Jn==="time"?O.createElement(Mn,null):O.createElement(V,null),ha&&fa),[Na]=(0,te.Z)("DatePicker",Ve.Z),Ca=Object.assign(Object.assign({},Na),Le.locale),[ka]=(0,_n.Cn)("DatePicker",(pt=Le.popupStyle)===null||pt===void 0?void 0:pt.zIndex);return sa(O.createElement(i.ZP,Object.assign({ref:Xn,placeholder:Ce(Ca,Jn,Vt),suffixIcon:pa,dropdownAlign:Ie(Ht,Yt),prevIcon:O.createElement("span",{className:`${Ae}-prev-icon`}),nextIcon:O.createElement("span",{className:`${Ae}-next-icon`}),superPrevIcon:O.createElement("span",{className:`${Ae}-super-prev-icon`}),superNextIcon:O.createElement("span",{className:`${Ae}-super-next-icon`}),transitionName:`${na}-slide-up`},da,Bn,Pt,{locale:Ca.lang,className:u()({[`${Ae}-${on}`]:on,[`${Ae}-borderless`]:!bt},(0,x.Z)(Ae,(0,x.F)(Ma,ca),ha),ea,Jt,Gn==null?void 0:Gn.className,Ct,St,Tt),style:Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Gt),prefixCls:Ae,getPopupContainer:Je||Lt,generateConfig:P,components:kn,direction:Ht,disabled:Ra,dropdownClassName:u()(ea,St,Tt,ia||mn),popupStyle:Object.assign(Object.assign({},Le.popupStyle),{zIndex:ka}),allowClear:He(Xt,Dt,O.createElement(tt.Z,null))})))});return xe&&(gn.displayName=xe),gn}const A=H(),_=H("week","WeekPicker"),re=H("month","MonthPicker"),Oe=H("year","YearPicker"),rn=H("time","TimePicker"),ve=H("quarter","QuarterPicker");return{DatePicker:A,WeekPicker:_,MonthPicker:re,YearPicker:Oe,TimePicker:rn,QuarterPicker:ve}}const Zt=null;function rt(P){const{DatePicker:H,WeekPicker:A,MonthPicker:_,YearPicker:re,TimePicker:Oe,QuarterPicker:rn}=Zn(P),ve=zn(P),ge=H;return ge.WeekPicker=A,ge.MonthPicker=_,ge.YearPicker=re,ge.RangePicker=ve,ge.TimePicker=Oe,ge.QuarterPicker=rn,ge}var In=rt;const Ge=In(Y.Z);function ht(P){const H=Ie(P.direction,P.placement);return H.overflow.adjustY=!1,H.overflow.adjustX=!1,Object.assign(Object.assign({},P),{dropdownAlign:H})}const It=(0,pe.Z)(Ge,"picker",null,ht);Ge._InternalPanelDoNotUseOrYouWillBeFired=It;const Ot=(0,pe.Z)(Ge.RangePicker,"picker",null,ht);Ge._InternalRangePanelDoNotUseOrYouWillBeFired=Ot,Ge.generatePicker=In;var vn=Ge},29176:function(Ea,vt,y){y.d(vt,{GM:function(){return an},kX:function(){return Mn},vA:function(){return at}});var Y=y(60076),pe=y(99978),O=y(55904),$n=y(6301),gt=y(82776),B=y(72717),Z=y(98580),ne=y(90467),V=y(81501),mt=y(22297);const fe=(p,u,i,x)=>{const q=p.calc(i).add(2).equal(),ie=p.max(p.calc(u).sub(q).div(2).equal(),0),X=p.max(p.calc(u).sub(q).sub(ie).equal(),0);return{padding:`${(0,Y.bf)(ie)} ${(0,Y.bf)(x)} ${(0,Y.bf)(X)}`}},dn=p=>{const{componentCls:u,pickerCellCls:i,pickerCellInnerCls:x,cellHeight:q,motionDurationSlow:ie,borderRadiusSM:X,motionDurationMid:Se,cellHoverBg:te,lineWidth:Ue,lineType:Ve,colorPrimary:ae,cellActiveWithRangeBg:Ce,colorTextLightSolid:Nn,controlHeightSM:Ie,cellRangeBorderColor:ue,pickerCellBorderGap:Te,cellHoverWithRangeBg:He,cellWidth:Fe,colorTextDisabled:Qe,cellBgDisabled:U}=p;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:q,transform:"translateY(-50%)",transition:`all ${ie}`,content:'""'},[x]:{position:"relative",zIndex:2,display:"inline-block",minWidth:q,height:q,lineHeight:(0,Y.bf)(q),borderRadius:X,transition:`background ${Se}, border ${Se}`},["&-range-hover-start, &-range-hover-end"]:{[x]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${i}-in-view), - &:hover:not(${i}-selected):not(${i}-range-start):not(${i}-range-end):not(${i}-range-hover-start):not(${i}-range-hover-end)`]:{[x]:{background:te}},[`&-in-view${i}-today ${x}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,Y.bf)(Ue)} ${Ve} ${ae}`,borderRadius:X,content:'""'}},[`&-in-view${i}-in-range`]:{position:"relative","&::before":{background:Ce}},[`&-in-view${i}-selected ${x}, - &-in-view${i}-range-start ${x}, - &-in-view${i}-range-end ${x}`]:{color:Nn,background:ae},[`&-in-view${i}-range-start:not(${i}-range-start-single), - &-in-view${i}-range-end:not(${i}-range-end-single)`]:{"&::before":{background:Ce}},[`&-in-view${i}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${i}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${i}-range-hover-start:not(${i}-in-range):not(${i}-range-start):not(${i}-range-end), - &-in-view${i}-range-hover-end:not(${i}-in-range):not(${i}-range-start):not(${i}-range-end), - &-in-view${i}-range-hover-start${i}-range-start-single, - &-in-view${i}-range-hover-start${i}-range-start${i}-range-end${i}-range-end-near-hover, - &-in-view${i}-range-hover-end${i}-range-start${i}-range-end${i}-range-start-near-hover, - &-in-view${i}-range-hover-end${i}-range-end-single, - &-in-view${i}-range-hover:not(${i}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Ie,borderTop:`${(0,Y.bf)(Ue)} dashed ${ue}`,borderBottom:`${(0,Y.bf)(Ue)} dashed ${ue}`,transform:"translateY(-50%)",transition:`all ${ie}`,content:'""'}},[`&-range-hover-start::after, - &-range-hover-end::after, - &-range-hover::after`]:{insetInlineEnd:0,insetInlineStart:Te},[`&-in-view${i}-in-range${i}-range-hover::before, - &-in-view${i}-in-range${i}-range-hover-start::before, - &-in-view${i}-in-range${i}-range-hover-end::before, - &-in-view${i}-range-start${i}-range-hover::before, - &-in-view${i}-range-end${i}-range-hover::before, - &-in-view${i}-range-start:not(${i}-range-start-single)${i}-range-hover-start::before, - &-in-view${i}-range-end:not(${i}-range-end-single)${i}-range-hover-end::before, - ${u}-panel - > :not(${u}-date-panel) - &-in-view${i}-in-range${i}-range-hover-start::before, - ${u}-panel - > :not(${u}-date-panel) - &-in-view${i}-in-range${i}-range-hover-end::before`]:{background:He},[`&-in-view${i}-range-start:not(${i}-range-start-single):not(${i}-range-end) ${x}`]:{borderStartStartRadius:X,borderEndStartRadius:X,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${i}-range-end:not(${i}-range-end-single):not(${i}-range-start) ${x}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:X,borderEndEndRadius:X},[`&-range-hover${i}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${i}-range-hover:first-child::after, - tr > &-in-view${i}-range-hover-end:first-child::after, - &-in-view${i}-start${i}-range-hover-edge-start${i}-range-hover-edge-start-near-range::after, - &-in-view${i}-range-hover-edge-start:not(${i}-range-hover-edge-start-near-range)::after, - &-in-view${i}-range-hover-start::after`]:{insetInlineStart:p.calc(Fe).sub(q).div(2).equal(),borderInlineStart:`${(0,Y.bf)(Ue)} dashed ${ue}`,borderStartStartRadius:X,borderEndStartRadius:X},[`tr > &-in-view${i}-range-hover:last-child::after, - tr > &-in-view${i}-range-hover-start:last-child::after, - &-in-view${i}-end${i}-range-hover-edge-end${i}-range-hover-edge-end-near-range::after, - &-in-view${i}-range-hover-edge-end:not(${i}-range-hover-edge-end-near-range)::after, - &-in-view${i}-range-hover-end::after`]:{insetInlineEnd:p.calc(Fe).sub(q).div(2).equal(),borderInlineEnd:`${(0,Y.bf)(Ue)} dashed ${ue}`,borderStartEndRadius:X,borderEndEndRadius:X},"&-disabled":{color:Qe,pointerEvents:"none",[x]:{background:"transparent"},"&::before":{background:U}},[`&-disabled${i}-today ${x}::before`]:{borderColor:Qe}}},Mn=p=>{const{componentCls:u,pickerCellCls:i,pickerCellInnerCls:x,pickerYearMonthCellWidth:q,pickerControlIconSize:ie,cellWidth:X,paddingSM:Se,paddingXS:te,paddingXXS:Ue,colorBgContainer:Ve,lineWidth:ae,lineType:Ce,borderRadiusLG:Nn,colorPrimary:Ie,colorTextHeading:ue,colorSplit:Te,pickerControlIconBorderWidth:He,colorIcon:Fe,textHeight:Qe,motionDurationMid:U,colorIconHover:kn,fontWeightStrong:_n,cellHeight:fn,pickerCellPaddingVertical:Hn,colorTextDisabled:zn,colorText:Ln,fontSize:Zn,cellHoverWithRangeBg:Zt,motionDurationSlow:rt,withoutTimeCellHeight:In,pickerQuarterPanelContentHeight:Ge,colorLink:ht,colorLinkActive:It,colorLinkHover:Ot,cellRangeBorderColor:vn,borderRadiusSM:P,colorTextLightSolid:H,cellHoverBg:A,timeColumnHeight:_,timeColumnWidth:re,timeCellHeight:Oe,controlItemBgActive:rn,marginXXS:ve,pickerDatePanelPaddingHorizontal:ge,pickerControlIconMargin:xe}=p,Xe=p.calc(X).mul(7).add(p.calc(ge).mul(2)).equal(),gn=p.calc(Xe).sub(p.calc(te).mul(2)).div(3).sub(p.pickerYearMonthCellWidth).sub(Se).equal(),Le=p.calc(Xe).sub(p.calc(te).mul(2)).div(4).sub(p.pickerYearMonthCellWidth).equal();return{[u]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Ve,border:`${(0,Y.bf)(ae)} ${Ce} ${Te}`,borderRadius:Nn,outline:"none","&-focused":{borderColor:Ie},"&-rtl":{direction:"rtl",[`${u}-prev-icon, - ${u}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${u}-next-icon, - ${u}-super-next-icon`]:{transform:"rotate(-135deg)"}}},[`&-decade-panel, - &-year-panel, - &-quarter-panel, - &-month-panel, - &-week-panel, - &-date-panel, - &-time-panel`]:{display:"flex",flexDirection:"column",width:Xe},"&-header":{display:"flex",padding:`0 ${(0,Y.bf)(te)}`,color:ue,borderBottom:`${(0,Y.bf)(ae)} ${Ce} ${Te}`,"> *":{flex:"none"},button:{padding:0,color:Fe,lineHeight:(0,Y.bf)(Qe),background:"transparent",border:0,cursor:"pointer",transition:`color ${U}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Zn,"&:hover":{color:kn}},"&-view":{flex:"auto",fontWeight:_n,lineHeight:(0,Y.bf)(Qe),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:te},"&:hover":{color:Ie}}}},[`&-prev-icon, - &-next-icon, - &-super-prev-icon, - &-super-next-icon`]:{position:"relative",display:"inline-block",width:ie,height:ie,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:ie,height:ie,border:"0 solid currentcolor",borderBlockStartWidth:He,borderBlockEndWidth:0,borderInlineStartWidth:He,borderInlineEndWidth:0,content:'""'}},[`&-super-prev-icon, - &-super-next-icon`]:{"&::after":{position:"absolute",top:xe,insetInlineStart:xe,display:"inline-block",width:ie,height:ie,border:"0 solid currentcolor",borderBlockStartWidth:He,borderBlockEndWidth:0,borderInlineStartWidth:He,borderInlineEndWidth:0,content:'""'}},[`&-prev-icon, - &-super-prev-icon`]:{transform:"rotate(-45deg)"},[`&-next-icon, - &-super-next-icon`]:{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:fn,fontWeight:"normal"},th:{height:p.calc(fn).add(p.calc(Hn).mul(2)).equal(),color:Ln,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,Y.bf)(Hn)} 0`,color:zn,cursor:"pointer","&-in-view":{color:Ln}},dn(p)),[`&-date-panel ${u}-cell-in-view${u}-cell-in-range${u}-cell-range-hover-start ${x}, - &-date-panel ${u}-cell-in-view${u}-cell-in-range${u}-cell-range-hover-end ${x}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:Zt,transition:`all ${rt}`,content:'""'}},[`&-date-panel - ${u}-cell-in-view${u}-cell-in-range${u}-cell-range-hover-start - ${x}::after`]:{insetInlineEnd:p.calc(X).sub(fn).mul(-1).div(2).equal(),insetInlineStart:0},[`&-date-panel ${u}-cell-in-view${u}-cell-in-range${u}-cell-range-hover-end ${x}::after`]:{insetInlineEnd:0,insetInlineStart:p.calc(X).sub(fn).mul(-1).div(2).equal()},[`&-range-hover${u}-range-start::after`]:{insetInlineEnd:"50%"},[`&-decade-panel, - &-year-panel, - &-quarter-panel, - &-month-panel`]:{[`${u}-content`]:{height:p.calc(In).mul(4).equal()},[x]:{padding:`0 ${(0,Y.bf)(te)}`}},"&-quarter-panel":{[`${u}-content`]:{height:Ge},[`${u}-cell-range-hover-start::after`]:{insetInlineStart:Le,borderInlineStart:`${(0,Y.bf)(ae)} dashed ${vn}`,[`${u}-panel-rtl &`]:{insetInlineEnd:Le,borderInlineEnd:`${(0,Y.bf)(ae)} dashed ${vn}`}},[`${u}-cell-range-hover-end::after`]:{insetInlineEnd:Le,borderInlineEnd:`${(0,Y.bf)(ae)} dashed ${vn}`,[`${u}-panel-rtl &`]:{insetInlineStart:Le,borderInlineStart:`${(0,Y.bf)(ae)} dashed ${vn}`}}},[`&-panel ${u}-footer`]:{borderTop:`${(0,Y.bf)(ae)} ${Ce} ${Te}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:(0,Y.bf)(p.calc(Qe).sub(p.calc(ae).mul(2)).equal()),textAlign:"center","&-extra":{padding:`0 ${(0,Y.bf)(Se)}`,lineHeight:(0,Y.bf)(p.calc(Qe).sub(p.calc(ae).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,Y.bf)(ae)} ${Ce} ${Te}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:ht,"&:hover":{color:Ot},"&:active":{color:It},[`&${u}-today-btn-disabled`]:{color:zn,cursor:"not-allowed"}},"&-decade-panel":{[x]:{padding:`0 ${(0,Y.bf)(p.calc(te).div(2).equal())}`},[`${u}-cell::before`]:{display:"none"}},[`&-year-panel, - &-quarter-panel, - &-month-panel`]:{[`${u}-body`]:{padding:`0 ${(0,Y.bf)(te)}`},[x]:{width:q},[`${u}-cell-range-hover-start::after`]:{borderStartStartRadius:P,borderEndStartRadius:P,borderStartEndRadius:0,borderEndEndRadius:0,[`${u}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:P,borderEndEndRadius:P}},[`${u}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:P,borderEndEndRadius:P,[`${u}-panel-rtl &`]:{borderStartStartRadius:P,borderEndStartRadius:P,borderStartEndRadius:0,borderEndEndRadius:0}}},[`&-year-panel, - &-month-panel`]:{[`${u}-cell-range-hover-start::after`]:{insetInlineStart:gn,borderInlineStart:`${(0,Y.bf)(ae)} dashed ${vn}`,[`${u}-panel-rtl &`]:{insetInlineEnd:gn,borderInlineEnd:`${(0,Y.bf)(ae)} dashed ${vn}`}},[`${u}-cell-range-hover-end::after`]:{insetInlineEnd:gn,borderInlineEnd:`${(0,Y.bf)(ae)} dashed ${vn}`,[`${u}-panel-rtl &`]:{insetInlineStart:gn,borderInlineStart:`${(0,Y.bf)(ae)} dashed ${vn}`}}},"&-week-panel":{[`${u}-body`]:{padding:`${(0,Y.bf)(te)} ${(0,Y.bf)(Se)}`},[`${u}-cell`]:{[`&:hover ${x}, - &-selected ${x}, - ${x}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${U}`},"&:first-child:before":{borderStartStartRadius:P,borderEndStartRadius:P},"&:last-child:before":{borderStartEndRadius:P,borderEndEndRadius:P}},["&:hover td"]:{"&:before":{background:A}},[`&-range-start td, - &-range-end td, - &-selected td`]:{[`&${i}`]:{"&:before":{background:Ie},[`&${u}-cell-week`]:{color:new pe.C(H).setAlpha(.5).toHexString()},[x]:{color:H}}},["&-range-hover td:before"]:{background:rn}}},"&-date-panel":{[`${u}-body`]:{padding:`${(0,Y.bf)(te)} ${(0,Y.bf)(ge)}`},[`${u}-content`]:{width:p.calc(X).mul(7).equal(),th:{width:X,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${u}-time-panel`]:{borderInlineStart:`${(0,Y.bf)(ae)} ${Ce} ${Te}`},[`${u}-date-panel, - ${u}-time-panel`]:{transition:`opacity ${rt}`},"&-active":{[`${u}-date-panel, - ${u}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${u}-content`]:{display:"flex",flex:"auto",height:_},"&-column":{flex:"1 0 auto",width:re,margin:`${(0,Y.bf)(Ue)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${U}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:p.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${p.colorTextTertiary} transparent`},"&::after":{display:"block",height:p.calc(_).sub(Oe).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,Y.bf)(ae)} ${Ce} ${Te}`},"&-active":{background:new pe.C(rn).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${u}-time-panel-cell`]:{marginInline:ve,[`${u}-time-panel-cell-inner`]:{display:"block",width:p.calc(re).sub(p.calc(ve).mul(2)).equal(),height:Oe,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:p.calc(re).sub(Oe).div(2).equal(),color:Ln,lineHeight:(0,Y.bf)(Oe),borderRadius:P,cursor:"pointer",transition:`background ${U}`,"&:hover":{background:A}},"&-selected":{[`${u}-time-panel-cell-inner`]:{background:rn}},"&-disabled":{[`${u}-time-panel-cell-inner`]:{color:zn,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${u}-time-panel-column:after`]:{height:p.calc(_).sub(Oe).add(p.calc(Ue).mul(2)).equal()}}}},tt=p=>{const{componentCls:u,colorBgContainer:i,colorError:x,errorActiveShadow:q,colorWarning:ie,warningActiveShadow:X,colorErrorHover:Se,colorWarningHover:te}=p;return{[`${u}:not(${u}-disabled):not([disabled])`]:{[`&${u}-status-error`]:{backgroundColor:i,borderColor:x,"&:hover":{borderColor:Se},[`&${u}-focused, &:focus`]:Object.assign({},(0,O.M1)((0,ne.TS)(p,{activeBorderColor:x,activeShadow:q}))),[`${u}-active-bar`]:{background:x}},[`&${u}-status-warning`]:{backgroundColor:i,borderColor:ie,"&:hover":{borderColor:te},[`&${u}-focused, &:focus`]:Object.assign({},(0,O.M1)((0,ne.TS)(p,{activeBorderColor:ie,activeShadow:X}))),[`${u}-active-bar`]:{background:ie}}}}},o=p=>{const{componentCls:u,antCls:i,controlHeight:x,paddingInline:q,colorBgContainer:ie,lineWidth:X,lineType:Se,colorBorder:te,borderRadius:Ue,motionDurationMid:Ve,colorBgContainerDisabled:ae,colorTextDisabled:Ce,colorTextPlaceholder:Nn,controlHeightLG:Ie,fontSizeLG:ue,controlHeightSM:Te,paddingInlineSM:He,paddingXS:Fe,marginXS:Qe,colorTextDescription:U,lineWidthBold:kn,colorPrimary:_n,motionDurationSlow:fn,zIndexPopup:Hn,paddingXXS:zn,paddingSM:Ln,textHeight:Zn,cellActiveWithRangeBg:Zt,colorPrimaryBorder:rt,sizePopupArrow:In,colorBgElevated:Ge,borderRadiusLG:ht,boxShadowSecondary:It,borderRadiusSM:Ot,colorSplit:vn,cellHoverBg:P,presetsWidth:H,presetsMaxWidth:A,boxShadowPopoverArrow:_,colorTextQuaternary:re,fontHeight:Oe,fontHeightLG:rn,lineHeightLG:ve}=p;return[{[u]:Object.assign(Object.assign(Object.assign({},(0,$n.Wf)(p)),fe(p,x,Oe,q)),{position:"relative",display:"inline-flex",alignItems:"center",background:ie,lineHeight:1,border:`${(0,Y.bf)(X)} ${Se} ${te}`,borderRadius:Ue,transition:`border ${Ve}, box-shadow ${Ve}`,"&:hover":Object.assign({},(0,O.pU)(p)),[`&-focused${u}`]:Object.assign({},(0,O.M1)(p)),[`&${u}-disabled`]:{background:ae,borderColor:te,cursor:"not-allowed",[`${u}-suffix`]:{color:re}},[`&${u}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${u}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,O.ik)(p)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,fontFamily:"inherit","&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${u}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:Nn}}},"&-large":Object.assign(Object.assign({},fe(p,Ie,rn,q)),{[`${u}-input > input`]:{fontSize:ue,lineHeight:ve}}),"&-small":Object.assign({},fe(p,Te,Oe,He)),[`${u}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:p.calc(Fe).div(2).equal(),color:Ce,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Qe}}},[`${u}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Ce,lineHeight:1,background:ie,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Ve}, color ${Ve}`,"> *":{verticalAlign:"top"},"&:hover":{color:U}},[`${u}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:ue,color:Ce,fontSize:ue,verticalAlign:"top",cursor:"default",[`${u}-focused &`]:{color:U},[`${u}-range-separator &`]:{[`${u}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${u}-clear`]:{insetInlineEnd:q},"&:hover":{[`${u}-clear`]:{opacity:1}},[`${u}-active-bar`]:{bottom:p.calc(X).mul(-1).equal(),height:kn,marginInlineStart:q,background:_n,opacity:0,transition:`all ${fn} ease-out`,pointerEvents:"none"},[`&${u}-focused`]:{[`${u}-active-bar`]:{opacity:1}},[`${u}-range-separator`]:{alignItems:"center",padding:`0 ${(0,Y.bf)(Fe)}`,lineHeight:1},[`&${u}-small`]:{[`${u}-clear`]:{insetInlineEnd:He},[`${u}-active-bar`]:{marginInlineStart:He}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,$n.Wf)(p)),Mn(p)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Hn,[`&${u}-dropdown-hidden`]:{display:"none"},[`&${u}-dropdown-placement-bottomLeft`]:{[`${u}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${u}-dropdown-placement-topLeft`]:{[`${u}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${i}-slide-up-enter${i}-slide-up-enter-active${u}-dropdown-placement-topLeft, - &${i}-slide-up-enter${i}-slide-up-enter-active${u}-dropdown-placement-topRight, - &${i}-slide-up-appear${i}-slide-up-appear-active${u}-dropdown-placement-topLeft, - &${i}-slide-up-appear${i}-slide-up-appear-active${u}-dropdown-placement-topRight`]:{animationName:B.Qt},[`&${i}-slide-up-enter${i}-slide-up-enter-active${u}-dropdown-placement-bottomLeft, - &${i}-slide-up-enter${i}-slide-up-enter-active${u}-dropdown-placement-bottomRight, - &${i}-slide-up-appear${i}-slide-up-appear-active${u}-dropdown-placement-bottomLeft, - &${i}-slide-up-appear${i}-slide-up-appear-active${u}-dropdown-placement-bottomRight`]:{animationName:B.fJ},[`&${i}-slide-up-leave${i}-slide-up-leave-active${u}-dropdown-placement-topLeft, - &${i}-slide-up-leave${i}-slide-up-leave-active${u}-dropdown-placement-topRight`]:{animationName:B.ly},[`&${i}-slide-up-leave${i}-slide-up-leave-active${u}-dropdown-placement-bottomLeft, - &${i}-slide-up-leave${i}-slide-up-leave-active${u}-dropdown-placement-bottomRight`]:{animationName:B.Uw},[`${u}-panel > ${u}-time-panel`]:{paddingTop:zn},[`${u}-ranges`]:{marginBottom:0,padding:`${(0,Y.bf)(zn)} ${(0,Y.bf)(Ln)}`,overflow:"hidden",lineHeight:(0,Y.bf)(p.calc(Zn).sub(p.calc(X).mul(2)).sub(p.calc(Fe).div(2)).equal()),textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${u}-preset > ${i}-tag-blue`]:{color:_n,background:Zt,borderColor:rt,cursor:"pointer"},[`${u}-ok`]:{marginInlineStart:"auto"}},[`${u}-range-wrapper`]:{display:"flex",position:"relative"},[`${u}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:p.calc(q).mul(1.5).equal(),transition:`left ${fn} ease-out`},(0,mt.W)(p,Ge,_)),[`${u}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Ge,borderRadius:ht,boxShadow:It,transition:`margin ${fn}`,[`${u}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${u}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Fe,borderInlineEnd:`${(0,Y.bf)(X)} ${Se} ${vn}`,li:Object.assign(Object.assign({},$n.vS),{borderRadius:Ot,paddingInline:Fe,paddingBlock:p.calc(Te).sub(Oe).div(2).equal(),cursor:"pointer",transition:`all ${fn}`,"+ li":{marginTop:Qe},"&:hover":{background:P}})}},[`${u}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${u}-panel`]:{borderWidth:`0 0 ${(0,Y.bf)(X)}`},"&:last-child":{[`${u}-panel`]:{borderWidth:0}}},[`${u}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${u}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:te}}}}),"&-dropdown-range":{padding:`${(0,Y.bf)(p.calc(In).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${u}-separator`]:{transform:"rotate(180deg)"},[`${u}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,B.oN)(p,"slide-up"),(0,B.oN)(p,"slide-down"),(0,Z.Fm)(p,"move-up"),(0,Z.Fm)(p,"move-down")]},at=p=>{const{componentCls:u,controlHeightLG:i,paddingXXS:x,padding:q}=p;return{pickerCellCls:`${u}-cell`,pickerCellInnerCls:`${u}-cell-inner`,pickerYearMonthCellWidth:p.calc(i).mul(1.5).equal(),pickerQuarterPanelContentHeight:p.calc(i).mul(1.4).equal(),pickerCellPaddingVertical:p.calc(x).add(p.calc(x).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:p.calc(q).add(p.calc(x).div(2)).equal()}},an=p=>({cellHoverBg:p.controlItemBgHover,cellActiveWithRangeBg:p.controlItemBgActive,cellHoverWithRangeBg:new pe.C(p.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new pe.C(p.colorPrimary).lighten(20).toHexString(),cellBgDisabled:p.colorBgContainerDisabled,timeColumnWidth:p.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:p.controlHeightSM*1.5,cellHeight:p.controlHeightSM,textHeight:p.controlHeightLG,withoutTimeCellHeight:p.controlHeightLG*1.65}),Ye=p=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,O.TM)(p)),an(p)),(0,mt.w)(p)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:p.zIndexPopupBase+50});vt.ZP=(0,V.I$)("DatePicker",p=>{const u=(0,ne.TS)((0,O.e5)(p),at(p));return[o(u),tt(u),(0,gt.c)(p,{focusElCls:`${p.componentCls}-focused`})]},Ye)},39237:function(Ea,vt,y){var Y=y(5726),pe=y.n(Y),O=y(12868),$n=y(68102),gt=y.n($n),B=y(99471),Z=y.n(B),ne=y(83867),V=y.n(ne),mt=y(1942),fe=y.n(mt),dn=y(1293),Mn=y.n(dn),tt=y(25010),o=y.n(tt);pe().extend(o()),pe().extend(Mn()),pe().extend(gt()),pe().extend(Z()),pe().extend(V()),pe().extend(fe()),pe().extend(function(u,i){var x=i.prototype,q=x.format;x.format=function(X){var Se=(X||"").replace("Wo","wo");return q.bind(this)(Se)}});var at={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},an=function(i){var x=at[i];return x||i.split("_")[0]},Ye=function(){(0,O.ET)(!1,"Not match any format. Please help to fire a issue about this.")},p={getNow:function(){return pe()()},getFixedDate:function(i){return pe()(i,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(i){return i.endOf("month")},getWeekDay:function(i){var x=i.locale("en");return x.weekday()+x.localeData().firstDayOfWeek()},getYear:function(i){return i.year()},getMonth:function(i){return i.month()},getDate:function(i){return i.date()},getHour:function(i){return i.hour()},getMinute:function(i){return i.minute()},getSecond:function(i){return i.second()},addYear:function(i,x){return i.add(x,"year")},addMonth:function(i,x){return i.add(x,"month")},addDate:function(i,x){return i.add(x,"day")},setYear:function(i,x){return i.year(x)},setMonth:function(i,x){return i.month(x)},setDate:function(i,x){return i.date(x)},setHour:function(i,x){return i.hour(x)},setMinute:function(i,x){return i.minute(x)},setSecond:function(i,x){return i.second(x)},isAfter:function(i,x){return i.isAfter(x)},isValidate:function(i){return i.isValid()},locale:{getWeekFirstDay:function(i){return pe()().locale(an(i)).localeData().firstDayOfWeek()},getWeekFirstDate:function(i,x){return x.locale(an(i)).weekday(0)},getWeek:function(i,x){return x.locale(an(i)).week()},getShortWeekDays:function(i){return pe()().locale(an(i)).localeData().weekdaysMin()},getShortMonths:function(i){return pe()().locale(an(i)).localeData().monthsShort()},format:function(i,x,q){return x.locale(an(i)).format(q)},parse:function(i,x,q){for(var ie=an(i),X=0;X1&&(l=t.addDate(l,-7)),l}function Ie(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,r*10);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function ue(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return typeof a=="function"?a(e):n.locale.format(r.locale,e,a)}function Te(e,t){var n=t.generateConfig,r=t.locale,a=t.formatList;return!e||typeof a[0]=="function"?null:n.locale.parse(r.locale,e,a)}function He(e){var t=e.cellDate,n=e.mode,r=e.disabledDate,a=e.generateConfig;if(!r)return!1;var c=function(C,s,g){for(var w=s;w<=g;){var $=void 0;switch(C){case"date":{if($=a.setDate(t,w),!r($))return!1;break}case"month":{if($=a.setMonth(t,w),!He({cellDate:$,mode:"month",generateConfig:a,disabledDate:r}))return!1;break}case"year":{if($=a.setYear(t,w),!He({cellDate:$,mode:"year",generateConfig:a,disabledDate:r}))return!1;break}}w+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":{var l=1,d=a.getDate(a.getEndDate(t));return c("date",l,d)}case"quarter":{var f=Math.floor(a.getMonth(t)/3)*3,v=f+2;return c("month",f,v)}case"year":return c("month",0,11);case"decade":{var D=a.getYear(t),h=Math.floor(D/Ye)*Ye,m=h+Ye-1;return c("year",h,m)}}}function Fe(e,t){var n=t.formatList,r=t.generateConfig,a=t.locale,c=(0,at.Z)(function(){if(!e)return[[""],""];for(var v="",D=[],h=0;h1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(v.current),w){f(g);return}v.current=requestAnimationFrame(function(){f(g)})}var h=Fe(d,{formatList:n,generateConfig:r,locale:a}),m=(0,V.Z)(h,2),b=m[1];function C(g){D(g)}function s(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;D(null,g)}return(0,o.useEffect)(function(){s(!0)},[e]),(0,o.useEffect)(function(){return function(){return cancelAnimationFrame(v.current)}},[]),[b,C,s]}var U=y(57),kn=y(28449),_n=y(1788),fn=y(95992),Hn=new Map;function zn(e,t){var n;function r(){(0,fn.Z)(e)?t():n=(0,kn.Z)(function(){r()})}return r(),function(){kn.Z.cancel(n)}}function Ln(e,t,n){if(Hn.get(e)&&cancelAnimationFrame(Hn.get(e)),n<=0){Hn.set(e,requestAnimationFrame(function(){e.scrollTop=t}));return}var r=t-e.scrollTop,a=r/n*10;Hn.set(e,requestAnimationFrame(function(){e.scrollTop+=a,e.scrollTop!==t&&Ln(e,t,n-10)}))}function Zn(e,t){var n=t.onLeftRight,r=t.onCtrlLeftRight,a=t.onUpDown,c=t.onPageUpDown,l=t.onEnter,d=e.which,f=e.ctrlKey,v=e.metaKey;switch(d){case U.Z.LEFT:if(f||v){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case U.Z.RIGHT:if(f||v){if(r)return r(1),!0}else if(n)return n(1),!0;break;case U.Z.UP:if(a)return a(-1),!0;break;case U.Z.DOWN:if(a)return a(1),!0;break;case U.Z.PAGE_UP:if(c)return c(-1),!0;break;case U.Z.PAGE_DOWN:if(c)return c(1),!0;break;case U.Z.ENTER:if(l)return l(),!0;break}return!1}function Zt(e,t,n,r){var a=e;if(!a)switch(t){case"time":a=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":a="gggg-wo";break;case"month":a="YYYY-MM";break;case"quarter":a="YYYY-[Q]Q";break;case"year":a="YYYY";break;default:a=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return a}function rt(e,t,n){var r=e==="time"?8:10,a=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(r,a)+2}var In=null,Ge=new Set;function ht(e){return!In&&typeof window!="undefined"&&window.addEventListener&&(In=function(n){(0,_n.Z)(Ge).forEach(function(r){r(n)})},window.addEventListener("mousedown",In)),Ge.add(e),function(){Ge.delete(e),Ge.size===0&&(window.removeEventListener("mousedown",In),In=null)}}function It(e){var t=e.target;if(e.composed&&t.shadowRoot){var n;return((n=e.composedPath)===null||n===void 0?void 0:n.call(e)[0])||t}return t}var Ot=function(t){return t==="month"||t==="date"?"year":t},vn=function(t){return t==="date"?"month":t},P=function(t){return t==="month"||t==="date"?"quarter":t},H=function(t){return t==="date"?"week":t},A={year:Ot,month:vn,quarter:P,week:H,time:null,date:null};function _(e,t){return e.some(function(n){return n&&n.contains(t)})}function re(e){var t=e.open,n=e.value,r=e.isClickOutside,a=e.triggerOpen,c=e.forwardKeyDown,l=e.onKeyDown,d=e.blurToCancel,f=e.changeOnBlur,v=e.onSubmit,D=e.onCancel,h=e.onFocus,m=e.onBlur,b=(0,o.useState)(!1),C=(0,V.Z)(b,2),s=C[0],g=C[1],w=(0,o.useState)(!1),$=(0,V.Z)(w,2),N=$[0],k=$[1],I=(0,o.useRef)(!1),E=(0,o.useRef)(!1),M=(0,o.useRef)(!1),z={onMouseDown:function(){g(!0),a(!0)},onKeyDown:function(J){var oe=function(){M.current=!0};if(l(J,oe),!M.current){switch(J.which){case U.Z.ENTER:{t?v()!==!1&&g(!0):a(!0),J.preventDefault();return}case U.Z.TAB:{s&&t&&!J.shiftKey?(g(!1),J.preventDefault()):!s&&t&&!c(J)&&J.shiftKey&&(g(!0),J.preventDefault());return}case U.Z.ESC:{g(!0),D();return}}!t&&![U.Z.SHIFT].includes(J.which)?a(!0):s||c(J)}},onFocus:function(J){g(!0),k(!0),h&&h(J)},onBlur:function(J){if(I.current||!r(document.activeElement)){I.current=!1;return}d?setTimeout(function(){for(var oe=document,be=oe.activeElement;be&&be.shadowRoot;)be=be.shadowRoot.activeElement;r(be)&&D()},0):t&&(a(!1),E.current&&v()),k(!1),m==null||m(J)}};return(0,o.useEffect)(function(){E.current=!1},[t]),(0,o.useEffect)(function(){E.current=!0},[n]),(0,o.useEffect)(function(){return ht(function(j){var J=It(j),oe=r(J);t&&(oe?!f&&!d&&(!N||oe)&&a(!1):(I.current=!0,(0,kn.Z)(function(){I.current=!1})))})}),[z,{focused:N,typing:s}]}function Oe(e,t){return o.useMemo(function(){return e||(t?((0,Mn.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=(0,V.Z)(n,2),a=r[0],c=r[1];return{label:a,value:c}})):[])},[e,t])}var rn=y(77189);function ve(e){var t=e.valueTexts,n=e.onTextChange,r=o.useState(""),a=(0,V.Z)(r,2),c=a[0],l=a[1],d=o.useRef([]);d.current=t;function f(D){l(D),n(D)}function v(){l(d.current[0])}return(0,rn.Z)(function(){t.every(function(D){return D!==c})&&v()},[t.join("||")]),[c,f,v]}var ge=o.createContext({}),xe=ge,Xe=y(40727);function gn(e){var t=e.cellRender,n=e.monthCellRender,r=e.dateRender,a=o.useMemo(function(){if(t)return t;if(!(!n&&!r))return function(c,l){var d=c;return r&&l.type==="date"?r(d,l.today):n&&l.type==="month"?n(d,l.locale):l.originNode}},[t,n,r]);return a}function Le(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length=1?n|0:1,l=e;l<=t;l+=c)a.push({label:Le(l,2),value:l,disabled:(r||[]).includes(l)});return a}function St(e){var t=e.generateConfig,n=e.prefixCls,r=e.operationRef,a=e.activeColumnIndex,c=e.value,l=e.showHour,d=e.showMinute,f=e.showSecond,v=e.use12Hours,D=e.hourStep,h=D===void 0?1:D,m=e.minuteStep,b=m===void 0?1:m,C=e.secondStep,s=C===void 0?1:C,g=e.disabledHours,w=e.disabledMinutes,$=e.disabledSeconds,N=e.disabledTime,k=e.hideDisabledOptions,I=e.onSelect,E=e.cellRender,M=e.locale,z=[],j="".concat(n,"-content"),J="".concat(n,"-time-panel"),oe,be=c?t.getHour(c):-1,se=be,Re=c?t.getMinute(c):-1,de=c?t.getSecond(c):-1,ce=t.getNow(),ye=o.useMemo(function(){if(N){var G=N(ce);return[G.disabledHours,G.disabledMinutes,G.disabledSeconds]}return[g,w,$]},[g,w,$,N,ce]),$e=(0,V.Z)(ye,3),ln=$e[0],hn=$e[1],We=$e[2],Sn=wt(0,23,h,ln&&ln()),pn=(0,at.Z)(function(){return Sn},Sn,qt);v&&(oe=se>=12,se%=12);var lt=o.useMemo(function(){if(!v)return[!1,!1];var G=[!0,!0];return pn.forEach(function(ke){var Me=ke.disabled,Ke=ke.value;Me||(Ke>=12?G[1]=!1:G[0]=!1)}),G},[v,pn]),On=(0,V.Z)(lt,2),yt=On[0],Bt=On[1],Et=o.useMemo(function(){return v?pn.filter(oe?function(G){return G.value>=12}:function(G){return G.value<12}).map(function(G){var ke=G.value%12,Me=ke===0?"12":Le(ke,2);return(0,ne.Z)((0,ne.Z)({},G),{},{label:Me,value:ke})}):pn},[v,oe,pn]),Cn=wt(0,59,b,hn&&hn(be)),it=wt(0,59,s,We&&We(be,Re)),Pn=ua({value:c,generateConfig:t,disabledMinutes:hn,disabledSeconds:We,minutes:Cn,seconds:it,use12Hours:v});r.current={onUpDown:function(ke){var Me=z[a];if(Me)for(var Ke=Me.units.findIndex(function(At){return At.value===Me.value}),qe=Me.units.length,Ne=1;Ne=t)return c}return t};function Ra(e){var t=e.prefixCls,n=e.operationRef,r=e.generateConfig,a=e.value,c=e.defaultValue,l=e.disabledTime,d=e.showTime,f=e.onSelect,v=e.cellRender,D="".concat(t,"-datetime-panel"),h=o.useState(null),m=(0,V.Z)(h,2),b=m[0],C=m[1],s=o.useRef({}),g=o.useRef({}),w=(0,Xe.Z)(d)==="object"?(0,ne.Z)({},d):{};function $(E){var M=on.indexOf(b)+E,z=on[M]||null;return z}var N=function(M){g.current.onBlur&&g.current.onBlur(M),C(null)};n.current={onKeyDown:function(M){if(M.which===U.Z.TAB){var z=$(M.shiftKey?-1:1);return C(z),z&&M.preventDefault(),!0}if(b){var j=b==="date"?s:g;return j.current&&j.current.onKeyDown&&j.current.onKeyDown(M),!0}return[U.Z.LEFT,U.Z.RIGHT,U.Z.UP,U.Z.DOWN].includes(M.which)?(C("date"),!0):!1},onBlur:N,onClose:N};var k=function(M,z){var j=M;if(z==="date"){var J,oe,be,se=(l==null?void 0:l(a||w.defaultValue))||{},Re=ot(r.getHour(j),((J=se.disabledHours)===null||J===void 0?void 0:J.call(se))||[-1],23),de=ot(r.getMinute(j),((oe=se.disabledMinutes)===null||oe===void 0?void 0:oe.call(se,Re))||[-1],59),ce=ot(r.getSecond(j),((be=se.disabledSeconds)===null||be===void 0?void 0:be.call(se,Re,de))||[-1],59);j=r.setHour(j,Re),j=r.setMinute(j,de),j=r.setSecond(j,ce)}else z==="time"&&!a&&c&&(j=r.setYear(j,r.getYear(c)),j=r.setMonth(j,r.getMonth(c)),j=r.setDate(j,r.getDate(c)));f&&f(j,"mouse")},I=l?l(a||null):{};return o.createElement("div",{className:fe()(D,(0,Z.Z)({},"".concat(D,"-active"),b))},o.createElement(Ae,(0,B.Z)({},e,{cellRender:v,operationRef:s,active:b==="date",onSelect:function(M){k(Yt(r,M,!a&&(0,Xe.Z)(d)==="object"?d.defaultValue:null),"date")}})),o.createElement(na,(0,B.Z)({},e,{cellRender:v?function(E,M){return v(E,(0,ne.Z)((0,ne.Z)({},M),{},{type:"time"}))}:void 0,format:void 0},w,I,{disabledTime:null,defaultValue:void 0,operationRef:g,active:b==="time",onSelect:function(M){k(M,"time")}})))}var $a=Ra;function ha(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,a=e.onPrevDecades,c=e.onNextDecades,l=o.useContext(xe),d=l.hideHeader;if(d)return null;var f="".concat(t,"-header"),v=n.getYear(r),D=Math.floor(v/p)*p,h=D+p-1;return o.createElement(Bn,(0,B.Z)({},e,{prefixCls:f,onSuperPrev:a,onSuperNext:c}),D,"-",h)}var Ma=ha,fa=3,pa=4;function Na(e){var t=Ye-1,n=e.prefixCls,r=e.viewDate,a=e.generateConfig,c=e.cellRender,l=e.locale,d="".concat(n,"-cell"),f=a.getYear(r),v=Math.floor(f/Ye)*Ye,D=Math.floor(f/p)*p,h=D+p-1,m=a.setYear(r,D-Math.ceil((fa*pa*Ye-p)/2)),b=function(g){var w,$=a.getYear(g),N=$+t;return w={},(0,Z.Z)(w,"".concat(d,"-in-view"),D<=$&&N<=h),(0,Z.Z)(w,"".concat(d,"-selected"),$===v),w},C=c?function(s,g){return c(s,{originNode:g,today:a.getNow(),type:"decade",locale:l})}:void 0;return o.createElement(mn,(0,B.Z)({},e,{rowNum:pa,colNum:fa,baseDate:m,getCellNode:C,getCellText:function(g){var w=a.getYear(g);return"".concat(w,"-").concat(w+t)},getCellClassName:b,getCellDate:function(g,w){return a.addYear(g,w*Ye)}}))}var Ca=Na;function ka(e){var t=e.prefixCls,n=e.onViewDateChange,r=e.generateConfig,a=e.viewDate,c=e.operationRef,l=e.onSelect,d=e.onPanelChange,f="".concat(t,"-decade-panel");c.current={onKeyDown:function(m){return Zn(m,{onLeftRight:function(C){l(r.addYear(a,C*Ye),"key")},onCtrlLeftRight:function(C){l(r.addYear(a,C*p),"key")},onUpDown:function(C){l(r.addYear(a,C*Ye*fa),"key")},onEnter:function(){d("year",a)}})}};var v=function(m){var b=r.addYear(a,m*p);n(b),d(null,b)},D=function(m){l(m,"mouse"),d("year",m)};return o.createElement("div",{className:f},o.createElement(Ma,(0,B.Z)({},e,{prefixCls:t,onPrevDecades:function(){v(-1)},onNextDecades:function(){v(1)}})),o.createElement(Ca,(0,B.Z)({},e,{prefixCls:t,onSelect:D})))}var An=ka;function va(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.viewDate,c=e.onNextYear,l=e.onPrevYear,d=e.onYearClick,f=o.useContext(xe),v=f.hideHeader;if(v)return null;var D="".concat(t,"-header");return o.createElement(Bn,(0,B.Z)({},e,{prefixCls:D,onSuperPrev:l,onSuperNext:c}),o.createElement("button",{type:"button",onClick:d,className:"".concat(t,"-year-btn")},ue(a,{locale:r,format:r.yearFormat,generateConfig:n})))}var Tr=va,Za=3,Yr=4;function Vr(e){var t=e.prefixCls,n=e.locale,r=e.value,a=e.viewDate,c=e.generateConfig,l=e.cellRender,d=o.useContext(wn),f=d.rangedValue,v=d.hoverRangedValue,D="".concat(t,"-cell"),h=Ct({cellPrefixCls:D,value:r,generateConfig:c,rangedValue:f,hoverRangedValue:v,isSameCell:function(g,w){return Se(c,g,w)},isInView:function(){return!0},offsetCell:function(g,w){return c.addMonth(g,w)}}),m=n.shortMonths||(c.locale.getShortMonths?c.locale.getShortMonths(n.locale):[]),b=c.setMonth(a,0),C=l?function(s,g){return l(s,{originNode:g,locale:n,today:c.getNow(),type:"month"})}:void 0;return o.createElement(mn,(0,B.Z)({},e,{rowNum:Yr,colNum:Za,baseDate:b,getCellNode:C,getCellText:function(g){return n.monthFormat?ue(g,{locale:n,format:n.monthFormat,generateConfig:c}):m[c.getMonth(g)]},getCellClassName:h,getCellDate:c.addMonth,titleCell:function(g){return ue(g,{locale:n,format:"YYYY-MM",generateConfig:c})}}))}var Hr=Vr;function Lr(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,a=e.generateConfig,c=e.value,l=e.viewDate,d=e.onPanelChange,f=e.onSelect,v="".concat(t,"-month-panel");n.current={onKeyDown:function(m){return Zn(m,{onLeftRight:function(C){f(a.addMonth(c||l,C),"key")},onCtrlLeftRight:function(C){f(a.addYear(c||l,C),"key")},onUpDown:function(C){f(a.addMonth(c||l,C*Za),"key")},onEnter:function(){d("date",c||l)}})}};var D=function(m){var b=a.addYear(l,m);r(b),d(null,b)};return o.createElement("div",{className:v},o.createElement(Tr,(0,B.Z)({},e,{prefixCls:t,onPrevYear:function(){D(-1)},onNextYear:function(){D(1)},onYearClick:function(){d("year",l)}})),o.createElement(Hr,(0,B.Z)({},e,{prefixCls:t,onSelect:function(m){f(m,"mouse"),d("date",m)}})))}var Br=Lr;function Ar(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.viewDate,c=e.onNextYear,l=e.onPrevYear,d=e.onYearClick,f=o.useContext(xe),v=f.hideHeader;if(v)return null;var D="".concat(t,"-header");return o.createElement(Bn,(0,B.Z)({},e,{prefixCls:D,onSuperPrev:l,onSuperNext:c}),o.createElement("button",{type:"button",onClick:d,className:"".concat(t,"-year-btn")},ue(a,{locale:r,format:r.yearFormat,generateConfig:n})))}var Wr=Ar,jr=4,Ur=1;function Fr(e){var t=e.prefixCls,n=e.locale,r=e.value,a=e.viewDate,c=e.generateConfig,l=e.cellRender,d=o.useContext(wn),f=d.rangedValue,v=d.hoverRangedValue,D="".concat(t,"-cell"),h=Ct({cellPrefixCls:D,value:r,generateConfig:c,rangedValue:f,hoverRangedValue:v,isSameCell:function(s,g){return X(c,s,g)},isInView:function(){return!0},offsetCell:function(s,g){return c.addMonth(s,g*3)}}),m=c.setDate(c.setMonth(a,0),1),b=l?function(C,s){return l(C,{originNode:s,locale:n,today:c.getNow(),type:"quarter"})}:void 0;return o.createElement(mn,(0,B.Z)({},e,{rowNum:Ur,colNum:jr,baseDate:m,getCellNode:b,getCellText:function(s){return ue(s,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:c})},getCellClassName:h,getCellDate:function(s,g){return c.addMonth(s,g*3)},titleCell:function(s){return ue(s,{locale:n,format:"YYYY-[Q]Q",generateConfig:c})}}))}var Kr=Fr;function _r(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,a=e.generateConfig,c=e.value,l=e.viewDate,d=e.onPanelChange,f=e.onSelect,v="".concat(t,"-quarter-panel");n.current={onKeyDown:function(m){return Zn(m,{onLeftRight:function(C){f(a.addMonth(c||l,C*3),"key")},onCtrlLeftRight:function(C){f(a.addYear(c||l,C),"key")},onUpDown:function(C){f(a.addYear(c||l,C),"key")}})}};var D=function(m){var b=a.addYear(l,m);r(b),d(null,b)};return o.createElement("div",{className:v},o.createElement(Wr,(0,B.Z)({},e,{prefixCls:t,onPrevYear:function(){D(-1)},onNextYear:function(){D(1)},onYearClick:function(){d("year",l)}})),o.createElement(Kr,(0,B.Z)({},e,{prefixCls:t,onSelect:function(m){f(m,"mouse")}})))}var zr=_r;function Qr(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,a=e.value,c=e.disabledDate,l=e.onSelect,d=o.useContext(wn),f=d.rangedValue,v=d.hoverRangedValue,D=o.useContext(xe),h=D.onDateMouseEnter,m=D.onDateMouseLeave,b=(v==null?void 0:v[0])||(f==null?void 0:f[0]),C=(v==null?void 0:v[1])||(f==null?void 0:f[1]),s="".concat(t,"-cell"),g=function(k){var I=He({cellDate:k,mode:"week",disabledDate:c,generateConfig:n});return o.createElement("td",{key:"week",className:fe()(s,"".concat(s,"-week")),onClick:function(){I||l(k,"mouse")},onMouseEnter:function(){!I&&h&&h(k)},onMouseLeave:function(){!I&&m&&m(k)}},o.createElement("div",{className:"".concat(s,"-inner")},n.locale.getWeek(r.locale,k)))},w="".concat(t,"-week-panel-row"),$=function(k){var I,E=Ve(n,r.locale,b,k),M=Ve(n,r.locale,C,k);return fe()(w,(I={},(0,Z.Z)(I,"".concat(w,"-selected"),!f&&Ve(n,r.locale,a,k)),(0,Z.Z)(I,"".concat(w,"-range-start"),E),(0,Z.Z)(I,"".concat(w,"-range-end"),M),(0,Z.Z)(I,"".concat(w,"-range-hover"),!E&&!M&&Ce(n,b,C,k)),I))};return o.createElement(Ae,(0,B.Z)({},e,{panelName:"week",prefixColumn:g,rowClassName:$,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Gr=Qr,xt=10;function Xr(e){var t=e.prefixCls,n=e.generateConfig,r=e.viewDate,a=e.onPrevDecade,c=e.onNextDecade,l=e.onDecadeClick,d=o.useContext(xe),f=d.hideHeader;if(f)return null;var v="".concat(t,"-header"),D=n.getYear(r),h=Math.floor(D/xt)*xt,m=h+xt-1;return o.createElement(Bn,(0,B.Z)({},e,{prefixCls:v,onSuperPrev:a,onSuperNext:c}),o.createElement("button",{type:"button",onClick:l,className:"".concat(t,"-decade-btn")},h,"-",m))}var Jr=Xr,Ia=3,Ja=4;function qr(e){var t=e.prefixCls,n=e.value,r=e.viewDate,a=e.locale,c=e.generateConfig,l=e.cellRender,d=o.useContext(wn),f=d.rangedValue,v=d.hoverRangedValue,D="".concat(t,"-cell"),h=c.getYear(r),m=Math.floor(h/xt)*xt,b=m+xt-1,C=c.setYear(r,m-Math.ceil((Ia*Ja-xt)/2)),s=c.getNow(),g=function(k){var I=c.getYear(k);return m<=I&&I<=b},w=Ct({cellPrefixCls:D,value:n,generateConfig:c,rangedValue:f,hoverRangedValue:v,isSameCell:function(k,I){return q(c,k,I)},isInView:g,offsetCell:function(k,I){return c.addYear(k,I)}}),$=l?function(N,k){return l(N,{originNode:k,today:s,type:"year",locale:a})}:void 0;return o.createElement(mn,(0,B.Z)({},e,{rowNum:Ja,colNum:Ia,baseDate:C,getCellNode:$,getCellText:c.getYear,getCellClassName:w,getCellDate:c.addYear,titleCell:function(k){return ue(k,{locale:a,format:"YYYY",generateConfig:c})}}))}var eo=qr;function no(e){var t=e.prefixCls,n=e.operationRef,r=e.onViewDateChange,a=e.generateConfig,c=e.value,l=e.viewDate,d=e.sourceMode,f=e.onSelect,v=e.onPanelChange,D="".concat(t,"-year-panel");n.current={onKeyDown:function(b){return Zn(b,{onLeftRight:function(s){f(a.addYear(c||l,s),"key")},onCtrlLeftRight:function(s){f(a.addYear(c||l,s*xt),"key")},onUpDown:function(s){f(a.addYear(c||l,s*Ia),"key")},onEnter:function(){v(d==="date"?"date":"month",c||l)}})}};var h=function(b){var C=a.addYear(l,b*10);r(C),v(null,C)};return o.createElement("div",{className:D},o.createElement(Jr,(0,B.Z)({},e,{prefixCls:t,onPrevDecade:function(){h(-1)},onNextDecade:function(){h(1)},onDecadeClick:function(){v("decade",l)}})),o.createElement(eo,(0,B.Z)({},e,{prefixCls:t,onSelect:function(b){v(d==="date"?"date":"month",b),f(b,"mouse")}})))}var to=no;function qa(e,t,n){return n?o.createElement("div",{className:"".concat(e,"-footer-extra")},n(t)):null}function er(e){var t=e.prefixCls,n=e.components,r=n===void 0?{}:n,a=e.needConfirmButton,c=e.onNow,l=e.onOk,d=e.okDisabled,f=e.showNow,v=e.locale,D,h;if(a){var m=r.button||"button";c&&f!==!1&&(D=o.createElement("li",{className:"".concat(t,"-now")},o.createElement("a",{className:"".concat(t,"-now-btn"),onClick:c},v.now))),h=a&&o.createElement("li",{className:"".concat(t,"-ok")},o.createElement(m,{disabled:d,onClick:l},v.ok))}return!D&&!h?null:o.createElement("ul",{className:"".concat(t,"-ranges")},D,h)}var ao=["date","month"];function ro(e){var t,n=e,r=n.prefixCls,a=r===void 0?"rc-picker":r,c=n.className,l=n.style,d=n.locale,f=n.generateConfig,v=n.value,D=n.defaultValue,h=n.pickerValue,m=n.defaultPickerValue,b=n.disabledDate,C=n.mode,s=n.picker,g=s===void 0?"date":s,w=n.tabIndex,$=w===void 0?0:w,N=n.showNow,k=n.showTime,I=n.showToday,E=n.renderExtraFooter,M=n.hideHeader,z=n.onSelect,j=n.onChange,J=n.onPanelChange,oe=n.onMouseDown,be=n.onPickerValueChange,se=n.onOk,Re=n.components,de=n.direction,ce=n.hourStep,ye=ce===void 0?1:ce,$e=n.minuteStep,ln=$e===void 0?1:$e,hn=n.secondStep,We=hn===void 0?1:hn,Sn=n.dateRender,pn=n.monthCellRender,lt=n.cellRender,On=g==="date"&&!!k||g==="time",yt=24%ye===0,Bt=60%ln===0,Et=60%We===0,Cn=o.useContext(xe),it=Cn.operationRef,Pn=Cn.onSelect,xn=Cn.hideRanges,Wn=Cn.defaultOpenValue,G=o.useContext(wn),ke=G.inRange,Me=G.panelPosition,Ke=G.rangedValue,qe=G.hoverRangedValue,Ne=o.useRef({}),qn=o.useRef(!0),At=(0,dn.Z)(null,{value:v,defaultValue:D,postState:function(S){return!S&&Wn&&g==="time"?Wn:S}}),Tn=(0,V.Z)(At,2),en=Tn[0],Rt=Tn[1],ta=(0,dn.Z)(null,{value:h,defaultValue:m||en,postState:function(S){var W=f.getNow();if(!S)return W;if(!en&&k){var Ee=(0,Xe.Z)(k)==="object"?k.defaultValue:D;return Yt(f,Array.isArray(S)?S[0]:S,Ee||W)}return Array.isArray(S)?S[0]:S}}),Wt=(0,V.Z)(ta,2),_e=Wt[0],Yn=Wt[1],bn=function(S){Yn(S),be&&be(S)},jt=function(S){var W=A[g];return W?W(S):S},ct=(0,dn.Z)(function(){return g==="time"?"time":jt("date")},{value:C}),nn=(0,V.Z)(ct,2),Pe=nn[0],cn=nn[1];o.useEffect(function(){cn(g)},[g]);var et=o.useState(function(){return Pe}),nt=(0,V.Z)(et,2),Dn=nt[0],yn=nt[1],jn=function(S,W){var Ee=jt(S||Pe);yn(Pe),cn(Ee),J&&(Pe!==Ee||ae(f,_e,_e))&&J(W,Ee)},Ze=function(S,W){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Pe===g||Ee)&&(Rt(S),z&&z(S),Pn&&Pn(S,W),j&&!ae(f,S,en)&&!(b!=null&&b(S))&&j(S))},un=function(S){if(ao.includes(Pe)){var W,Ee,dt=Pe==="date";switch(S===U.Z.PAGE_UP||S===U.Z.PAGE_DOWN?Ee=dt?f.addMonth:f.addYear:Ee=dt?f.addDate:f.addMonth,S){case U.Z.LEFT:case U.Z.PAGE_UP:W=Ee(_e,-1);break;case U.Z.RIGHT:case U.Z.PAGE_DOWN:W=Ee(_e,1);break;case U.Z.UP:case U.Z.DOWN:W=Ee(_e,Number("".concat(S===U.Z.UP?"-":"").concat(dt?u:Za)));break}if(W)return!(b!=null&&b(W))}return!0},Ut=function(S){if(Ne.current&&Ne.current.onKeyDown){var W=!0,Ee=S.which;if([U.Z.LEFT,U.Z.RIGHT,U.Z.UP,U.Z.DOWN,U.Z.PAGE_UP,U.Z.PAGE_DOWN,U.Z.ENTER].includes(Ee)&&(S.preventDefault(),Ee!==U.Z.ENTER&&$===0&&(W=un(Ee))),W)return Ne.current.onKeyDown(S)}return(0,Mn.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},$t=function(S){Ne.current&&Ne.current.onBlur&&Ne.current.onBlur(S)};it&&Me!=="right"&&(it.current={onKeyDown:Ut,onClose:function(){Ne.current&&Ne.current.onClose&&Ne.current.onClose()}}),o.useEffect(function(){v&&!qn.current&&Yn(v)},[v]),o.useEffect(function(){qn.current=!1},[]);var le,ut=gn({cellRender:lt,monthCellRender:pn,dateRender:Sn}),ze=(0,ne.Z)((0,ne.Z)({},e),{},{cellRender:ut,operationRef:Ne,prefixCls:a,viewDate:_e,value:en,onViewDateChange:bn,sourceMode:Dn,onPanelChange:jn,disabledDate:b});switch(delete ze.onChange,delete ze.onSelect,Pe){case"decade":le=o.createElement(An,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"year":le=o.createElement(to,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"month":le=o.createElement(Br,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"quarter":le=o.createElement(zr,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"week":le=o.createElement(Gr,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;case"time":delete ze.showTime,le=o.createElement(na,(0,B.Z)({},ze,(0,Xe.Z)(k)==="object"?k:null,{onSelect:function(S,W){bn(S),Ze(S,W)}}));break;default:k?le=o.createElement($a,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}})):le=o.createElement(Ae,(0,B.Z)({},ze,{onSelect:function(S,W){bn(S),Ze(S,W)}}))}var De,Vn,Un=function(){var S=f.getNow(),W=Vt(f.getHour(S),f.getMinute(S),f.getSecond(S),yt?ye:1,Bt?ln:1,Et?We:1),Ee=bt(f,S,W[0],W[1],W[2]);Ze(Ee,"submit")};xn||(De=qa(a,Pe,E),k&&Pe!=="date"?Vn=null:Vn=er({prefixCls:a,components:Re,needConfirmButton:On,okDisabled:!en||b&&b(en),locale:d,showNow:N,onNow:On&&Un,onOk:function(){en&&(Ze(en,"submit",!0),se&&se(en))}}));var Mt;if(I&&Pe==="date"&&g==="date"&&!k){var aa=f.getNow(),st="".concat(a,"-today-btn"),Ft=b&&b(aa);Mt=o.createElement("a",{className:fe()(st,Ft&&"".concat(st,"-disabled")),"aria-disabled":Ft,onClick:function(){Ft||Ze(aa,"mouse",!0)}},d.today)}return o.createElement(xe.Provider,{value:(0,ne.Z)((0,ne.Z)({},Cn),{},{mode:Pe,hideHeader:"hideHeader"in e?M:Cn.hideHeader,hidePrevBtn:ke&&Me==="right",hideNextBtn:ke&&Me==="left"})},o.createElement("div",{tabIndex:$,className:fe()("".concat(a,"-panel"),c,(t={},(0,Z.Z)(t,"".concat(a,"-panel-has-range"),Ke&&Ke[0]&&Ke[1]),(0,Z.Z)(t,"".concat(a,"-panel-has-range-hover"),qe&&qe[0]&&qe[1]),(0,Z.Z)(t,"".concat(a,"-panel-rtl"),de==="rtl"),t)),style:l,onKeyDown:Ut,onBlur:$t,onMouseDown:oe},le,De||Vn||Mt?o.createElement("div",{className:"".concat(a,"-footer")},De,Vn,Mt):null))}var Oa=ro,oo=y(62382),lo={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function io(e){var t,n=e.prefixCls,r=e.popupElement,a=e.popupStyle,c=e.visible,l=e.dropdownClassName,d=e.dropdownAlign,f=e.transitionName,v=e.getPopupContainer,D=e.children,h=e.range,m=e.popupPlacement,b=e.direction,C="".concat(n,"-dropdown"),s=function(){return m!==void 0?m:b==="rtl"?"bottomRight":"bottomLeft"};return o.createElement(oo.Z,{showAction:[],hideAction:[],popupPlacement:s(),builtinPlacements:lo,prefixCls:C,popupTransitionName:f,popup:r,popupAlign:d,popupVisible:c,popupClassName:fe()(l,(t={},(0,Z.Z)(t,"".concat(C,"-range"),h),(0,Z.Z)(t,"".concat(C,"-rtl"),b==="rtl"),t)),popupStyle:a,getPopupContainer:v},D)}var nr=io;function tr(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?o.createElement("div",{className:"".concat(t,"-presets")},o.createElement("ul",null,n.map(function(c,l){var d=c.label,f=c.value;return o.createElement("li",{key:l,onClick:function(){return r==null?void 0:r(Gt(f))},onMouseEnter:function(){return a==null?void 0:a(Gt(f))},onMouseLeave:function(){return a==null?void 0:a(null)}},d)}))):null}function cl(e){var t=e.picker,n=e.disabledHours,r=e.disabledMinutes,a=e.disabledSeconds;t==="time"&&(n||r||a)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function ar(e,t,n){var r=(0,Xe.Z)(t)==="object"?t.clearIcon:n;return r||o.createElement("span",{className:"".concat(e,"-clear-btn")})}function co(e){var t,n=e,r=n.prefixCls,a=r===void 0?"rc-picker":r,c=n.id,l=n.name,d=n.tabIndex,f=n.style,v=n.className,D=n.dropdownClassName,h=n.dropdownAlign,m=n.popupStyle,b=n.transitionName,C=n.generateConfig,s=n.locale,g=n.inputReadOnly,w=n.allowClear,$=n.autoFocus,N=n.showTime,k=n.picker,I=k===void 0?"date":k,E=n.format,M=n.use12Hours,z=n.value,j=n.defaultValue,J=n.presets,oe=n.open,be=n.defaultOpen,se=n.defaultOpenValue,Re=n.suffixIcon,de=n.clearIcon,ce=n.disabled,ye=n.disabledDate,$e=n.placeholder,ln=n.getPopupContainer,hn=n.pickerRef,We=n.panelRender,Sn=n.onChange,pn=n.onOpenChange,lt=n.onFocus,On=n.onBlur,yt=n.onMouseDown,Bt=n.onMouseUp,Et=n.onMouseEnter,Cn=n.onMouseLeave,it=n.onContextMenu,Pn=n.onClick,xn=n.onKeyDown,Wn=n.onSelect,G=n.direction,ke=n.autoComplete,Me=ke===void 0?"off":ke,Ke=n.inputRender,qe=n.changeOnBlur,Ne=o.useRef(null),qn=I==="date"&&!!N||I==="time",At=Oe(J),Tn=pt(Zt(E,I,N,M)),en=o.useRef(null),Rt=o.useRef(null),ta=o.useRef(null),Wt=(0,dn.Z)(null,{value:z,defaultValue:j}),_e=(0,V.Z)(Wt,2),Yn=_e[0],bn=_e[1],jt=o.useState(Yn),ct=(0,V.Z)(jt,2),nn=ct[0],Pe=ct[1],cn=o.useRef(null),et=(0,dn.Z)(!1,{value:oe,defaultValue:be,postState:function(T){return ce?!1:T},onChange:function(T){pn&&pn(T),!T&&cn.current&&cn.current.onClose&&cn.current.onClose()}}),nt=(0,V.Z)(et,2),Dn=nt[0],yn=nt[1],jn=Fe(nn,{formatList:Tn,generateConfig:C,locale:s}),Ze=(0,V.Z)(jn,2),un=Ze[0],Ut=Ze[1],$t=ve({valueTexts:un,onTextChange:function(T){var sn=Te(T,{locale:s,formatList:Tn,generateConfig:C});sn&&(!ye||!ye(sn))&&Pe(sn)}}),le=(0,V.Z)($t,3),ut=le[0],ze=le[1],De=le[2],Vn=function(T){Pe(T),bn(T),Sn&&!ae(C,Yn,T)&&Sn(T,T?ue(T,{generateConfig:C,locale:s,format:Tn[0]}):"")},Un=function(T){ce&&T||yn(T)},Mt=function(T){return Dn&&cn.current&&cn.current.onKeyDown?cn.current.onKeyDown(T):((0,Mn.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},aa=function(){for(var T=arguments.length,sn=new Array(T),Fn=0;Fnm(v);case"month":return h(s)>h(v);case"week":return D(s)>D(v);default:return!te(d,s,v)&&d.isAfter(s,v)}return!1},[c,l[1],v,t]),C=o.useCallback(function(s){if(l[1]||c&&c(s))return!0;if(l[0]&&f)return!te(d,s,v)&&d.isAfter(f,s);if(!t&&f)switch(n){case"quarter":return m(s)0&&arguments[0]!==void 0?arguments[0]:!1,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=null;je&&oa&&oa[0]&&oa[1]&&s.isAfter(oa[1],oa[0])&&(K=oa);var Q=M;if(M&&(0,Xe.Z)(M)==="object"&&M.defaultValue){var me=M.defaultValue;Q=(0,ne.Z)((0,ne.Z)({},M),{},{defaultValue:F(me,L)||void 0})}return o.createElement(wn.Provider,{value:{inRange:!0,panelPosition:ee,rangedValue:No||S,hoverRangedValue:K}},o.createElement(Oa,(0,B.Z)({},e,R,{cellRender:Xo,showTime:Q,mode:Kt[L],generateConfig:s,style:void 0,direction:_e,disabledDate:L===0?Da:wa,disabledTime:function(Kn){return ye?ye(Kn,L===0?"start":"end"):!1},className:fe()((0,Z.Z)({},"".concat(l,"-panel-focused"),L===0?!yr:!Mr)),value:F(S,L),locale:g,tabIndex:-1,onPanelChange:function(Kn,ft){L===0&&Fa(!0),L===1&&_a(!0),ba(Je(Kt,ft,L),Je(S,Kn,L));var kt=Kn;ee==="right"&&Kt[L]===ft&&(kt=Ie(kt,ft,s,-1)),st(kt,L)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:L===0?F(S,1):F(S,0)})))}var Nt=0,Nr=0;if(L&&et.current&&Dn.current&&cn.current&&Ze.current){Nt=et.current.offsetWidth+Dn.current.offsetWidth;var qo=Ze.current.offsetLeft>Nt?Ze.current.offsetLeft-Nt:Ze.current.offsetLeft,kr=cn.current.offsetWidth,Zr=Ze.current.offsetWidth;kr&&Zr&&Nt>kr-Zr-(_e==="rtl"?0:qo)&&(Nr=Nt)}var el=_e==="rtl"?{right:Nt}:{left:Nt};function nl(){var ee,R=qa(l,Kt[L],Pn),K=er({prefixCls:l,components:ta,needConfirmButton:nn,okDisabled:!F(S,L)||ce&&ce(S[L]),locale:g,onOk:function(){var Rn=F(S,L);Rn&&(zt(S,L),en==null||en(S),En(!1,L,"confirm"))}});if(E!=="time"&&!M){var Q=aa(L),me=Ie(Q,E,s),tn=Kt[L],Kn=tn===E,ft=Qa(Kn?"left":!1,{pickerValue:Q,onPickerValueChange:function(Rn){st(Rn,L)}}),kt=Qa("right",{pickerValue:me,onPickerValueChange:function(Rn){st(Ie(Rn,E,s,-1),L)}});_e==="rtl"?ee=o.createElement(o.Fragment,null,kt,Kn&&ft):ee=o.createElement(o.Fragment,null,ft,Kn&&kt)}else ee=Qa();var ma=o.createElement("div",{className:"".concat(l,"-panel-layout")},o.createElement(tr,{prefixCls:l,presets:Jo,onClick:function(Rn){zt(Rn,null),En(!1,L,"preset")},onHover:function(Rn){ko(Rn)}}),o.createElement("div",null,o.createElement("div",{className:"".concat(l,"-panels")},ee),(R||K)&&o.createElement("div",{className:"".concat(l,"-footer")},R,K)));return We&&(ma=We(ma)),o.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:Nr},ref:cn,onMouseDown:function(Rn){Rn.preventDefault()}},ma)}var tl=o.createElement("div",{className:fe()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(E,"-range-wrapper")),style:{minWidth:T}},o.createElement("div",{ref:Ze,className:"".concat(l,"-range-arrow"),style:el}),nl()),Ir;yt&&(Ir=o.createElement("span",{className:"".concat(l,"-suffix"),onMouseDown:function(R){R.preventDefault()}},yt));var al=ar(l,On,Bt),rl=o.createElement("span",{onMouseDown:function(R){R.preventDefault(),R.stopPropagation()},onMouseUp:function(R){R.preventDefault(),R.stopPropagation();var K=De;le[0]||(K=Je(K,null,0)),le[1]||(K=Je(K,null,1)),zt(K,null),En(!1,L,"clear")},className:"".concat(l,"-clear"),role:"button"},al),ol=On&&(F(De,0)&&!le[0]||F(De,1)&&!le[1]),Or={size:rt(E,un[0],s)},Ga=0,Xa=0;et.current&&nt.current&&Dn.current&&(L===0?Xa=et.current.offsetWidth:(Ga=Nt,Xa=nt.current.offsetWidth));var ll=_e==="rtl"?{right:Ga}:{left:Ga},il=function(R,K){var Q=Je(S,R,L);if(K==="submit"||K!=="key"&&!nn){zt(Q,L),L===0?Fa():_a();var me=L===0?1:0;le[me]?En(!1,!1,"confirm"):En(!1,L,"confirm")}else W(Q)};return o.createElement(xe.Provider,{value:{operationRef:$t,hideHeader:E==="time",onDateMouseEnter:Vo,onDateMouseLeave:Ho,hideRanges:!0,onSelect:il,open:je}},o.createElement(nr,{visible:je,popupElement:tl,popupStyle:D,prefixCls:l,dropdownClassName:h,dropdownAlign:b,getPopupContainer:C,transitionName:m,range:!0,direction:_e},o.createElement("div",(0,B.Z)({ref:Pe,className:fe()(l,"".concat(l,"-range"),v,(t={},(0,Z.Z)(t,"".concat(l,"-disabled"),le[0]&&le[1]),(0,Z.Z)(t,"".concat(l,"-focused"),L===0?xr:$r),(0,Z.Z)(t,"".concat(l,"-rtl"),_e==="rtl"),t)),style:f,onClick:_o,onMouseEnter:qn,onMouseLeave:At,onMouseDown:zo,onMouseUp:Ne},(0,tt.Z)(e,{aria:!0,data:!0})),o.createElement("div",{className:fe()("".concat(l,"-input"),(n={},(0,Z.Z)(n,"".concat(l,"-input-active"),L===0),(0,Z.Z)(n,"".concat(l,"-input-placeholder"),!!pr),n)),ref:et},o.createElement("input",(0,B.Z)({id:d,disabled:le[0],readOnly:Cn||typeof un[0]=="function"||!yr,value:pr||xa,onChange:function(R){sr(R.target.value)},autoFocus:$,placeholder:F(w,0)||"",ref:yn},Uo,Or,{autoComplete:jt}))),o.createElement("div",{className:"".concat(l,"-range-separator"),ref:Dn},J),o.createElement("div",{className:fe()("".concat(l,"-input"),(r={},(0,Z.Z)(r,"".concat(l,"-input-active"),L===1),(0,Z.Z)(r,"".concat(l,"-input-placeholder"),!!Cr),r)),ref:nt},o.createElement("input",(0,B.Z)({disabled:le[1],readOnly:Cn||typeof un[0]=="function"||!Mr,value:Cr||ya,onChange:function(R){fr(R.target.value)},placeholder:F(w,1)||"",ref:jn},Ko,Or,{autoComplete:jt}))),o.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,ne.Z)((0,ne.Z)({},ll),{},{width:Xa,position:"absolute"})}),Ir,ol&&rl)))}var bo=function(e){(0,$n.Z)(n,e);var t=(0,gt.Z)(n);function n(){var r;(0,Y.Z)(this,n);for(var a=arguments.length,c=new Array(a),l=0;l{var{prefixCls:l,className:t,hoverable:n=!0}=e,a=Z(e,["prefixCls","className","hoverable"]);const{getPrefixCls:y}=o.useContext(C.E_),R=y("card",l),Q=f()(`${R}-grid`,t,{[`${R}-grid-hoverable`]:n});return o.createElement("div",Object.assign({},a,{className:Q}))},s=r(26477),u=r(4614),w=r(44244),$=r(25830);const _=e=>{const{antCls:l,componentCls:t,headerHeight:n,cardPaddingBase:a,tabsMarginBottom:y}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${(0,s.bf)(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0`},(0,u.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},u.vS),{[` + > ${t}-typography, + > ${t}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${l}-tabs-top`]:{clear:"both",marginBottom:y,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},V=e=>{const{cardPaddingBase:l,colorBorderSecondary:t,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:l,border:0,borderRadius:0,boxShadow:` + ${(0,s.bf)(a)} 0 0 0 ${t}, + 0 ${(0,s.bf)(a)} 0 0 ${t}, + ${(0,s.bf)(a)} ${(0,s.bf)(a)} 0 0 ${t}, + ${(0,s.bf)(a)} 0 0 0 ${t} inset, + 0 ${(0,s.bf)(a)} 0 0 ${t} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},Y=e=>{const{componentCls:l,iconCls:t,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:y,actionsBg:R}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:R,borderTop:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${y}`,display:"flex",borderRadius:`0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`},(0,u.dF)()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${l}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,s.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:a,lineHeight:(0,s.bf)(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${y}`}}})},c=e=>Object.assign(Object.assign({margin:`${(0,s.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,u.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},u.vS),"&-description":{color:e.colorTextDescription}}),d=e=>{const{componentCls:l,cardPaddingBase:t,colorFillAlter:n}=e;return{[`${l}-head`]:{padding:`0 ${(0,s.bf)(t)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${l}-body`]:{padding:`${(0,s.bf)(e.padding)} ${(0,s.bf)(t)}`}}},M=e=>{const{componentCls:l}=e;return{overflow:"hidden",[`${l}-body`]:{userSelect:"none"}}},T=e=>{const{antCls:l,componentCls:t,cardShadow:n,cardHeadPadding:a,colorBorderSecondary:y,boxShadowTertiary:R,cardPaddingBase:Q,extraColor:H}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:R},[`${t}-head`]:_(e),[`${t}-extra`]:{marginInlineStart:"auto",color:H,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:Q,borderRadius:` 0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`},(0,u.dF)()),[`${t}-grid`]:V(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${l}-image-mask`]:{borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Y(e),[`${t}-meta`]:c(e)}),[`${t}-bordered`]:{border:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${y}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:d(e),[`${t}-loading`]:M(e),[`${t}-rtl`]:{direction:"rtl"}}},W=e=>{const{componentCls:l,cardPaddingSM:t,headerHeightSM:n,headerFontSizeSM:a}=e;return{[`${l}-small`]:{[`> ${l}-head`]:{minHeight:n,padding:`0 ${(0,s.bf)(t)}`,fontSize:a,[`> ${l}-head-wrapper`]:{[`> ${l}-extra`]:{fontSize:e.fontSize}}},[`> ${l}-body`]:{padding:t}},[`${l}-small${l}-contain-tabs`]:{[`> ${l}-head`]:{[`${l}-head-title, ${l}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},j=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var A=(0,w.I$)("Card",e=>{const l=(0,$.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[T(l),W(l)]},j),i=function(e,l){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&l.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:l,actions:t=[]}=e;return o.createElement("ul",{className:`${l}-actions`},t.map((n,a)=>{const y=`action-${a}`;return o.createElement("li",{style:{width:`${100/t.length}%`},key:y},o.createElement("span",null,n))}))};var D=o.forwardRef((e,l)=>{const{prefixCls:t,className:n,rootClassName:a,style:y,extra:R,headStyle:Q={},bodyStyle:H={},title:X,loading:N,bordered:q=!0,size:oe,type:J,cover:pe,actions:de,tabList:ae,children:le,activeTabKey:ve,defaultActiveTabKey:fe,tabBarExtraContent:g,hoverable:p,tabProps:v={}}=e,h=i(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:U,direction:P,card:k}=o.useContext(C.E_),z=te=>{var ee;(ee=e.onTabChange)===null||ee===void 0||ee.call(e,te)},ce=o.useMemo(()=>{let te=!1;return o.Children.forEach(le,ee=>{ee&&ee.type&&ee.type===G&&(te=!0)}),te},[le]),S=U("card",t),[he,Ee]=A(S),be=o.createElement(x.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},le),_e=ve!==void 0,Ce=Object.assign(Object.assign({},v),{[_e?"activeKey":"defaultActiveKey"]:_e?ve:fe,tabBarExtraContent:g});let ge;const ue=(0,L.Z)(oe),Oe=!ue||ue==="default"?"large":ue,Pe=ae?o.createElement(I.Z,Object.assign({size:Oe},Ce,{className:`${S}-head-tabs`,onChange:z,items:ae.map(te=>{var{tab:ee}=te,De=i(te,["tab"]);return Object.assign({label:ee},De)})})):null;(X||R||Pe)&&(ge=o.createElement("div",{className:`${S}-head`,style:Q},o.createElement("div",{className:`${S}-head-wrapper`},X&&o.createElement("div",{className:`${S}-head-title`},X),R&&o.createElement("div",{className:`${S}-extra`},R)),Pe));const Me=pe?o.createElement("div",{className:`${S}-cover`},pe):null,ye=o.createElement("div",{className:`${S}-body`,style:H},N?be:le),$e=de&&de.length?o.createElement(F,{prefixCls:S,actions:de}):null,Se=(0,b.Z)(h,["onTabChange"]),xe=f()(S,k==null?void 0:k.className,{[`${S}-loading`]:N,[`${S}-bordered`]:q,[`${S}-hoverable`]:p,[`${S}-contain-grid`]:ce,[`${S}-contain-tabs`]:ae&&ae.length,[`${S}-${ue}`]:ue,[`${S}-type-${J}`]:!!J,[`${S}-rtl`]:P==="rtl"},n,a,Ee),Te=Object.assign(Object.assign({},k==null?void 0:k.style),y);return he(o.createElement("div",Object.assign({ref:l},Se,{className:xe,style:Te}),ge,Me,ye,$e))}),me=function(e,l){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&l.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:l,className:t,avatar:n,title:a,description:y}=e,R=me(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:Q}=o.useContext(C.E_),H=Q("card",l),X=f()(`${H}-meta`,t),N=n?o.createElement("div",{className:`${H}-meta-avatar`},n):null,q=a?o.createElement("div",{className:`${H}-meta-title`},a):null,oe=y?o.createElement("div",{className:`${H}-meta-description`},y):null,J=q||oe?o.createElement("div",{className:`${H}-meta-detail`},q,oe):null;return o.createElement("div",Object.assign({},R,{className:X}),N,J)};const E=D;E.Grid=G,E.Meta=se;var ne=E}}]); diff --git a/7564.fb7c4ef7.async.js b/7564.fb7c4ef7.async.js new file mode 100644 index 00000000..021cd7b8 --- /dev/null +++ b/7564.fb7c4ef7.async.js @@ -0,0 +1,71 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7564],{57564:function(Ti,yr,R){R.d(yr,{default:function(){return Gl}});var $r=R(50510),He=R.n($r),Wn=R(30765),Pr=R(6228),Rr=R.n(Pr),Er=R(87796),Nr=R.n(Er),kr=R(2774),Mr=R.n(kr),Zr=R(67613),Ir=R.n(Zr),Yr=R(60603),Or=R.n(Yr),Tr=R(25653),Vr=R.n(Tr);He().extend(Vr()),He().extend(Or()),He().extend(Rr()),He().extend(Nr()),He().extend(Mr()),He().extend(Ir()),He().extend(function(e,n){var t=n.prototype,a=t.format;t.format=function(i){var l=(i||"").replace("Wo","wo");return a.bind(this)(l)}});var Hr={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},bn=function(n){var t=Hr[n];return t||n.split("_")[0]},Xt=function(){(0,Wn.ET)(!1,"Not match any format. Please help to fire a issue about this.")},Lr={getNow:function(){return He()()},getFixedDate:function(n){return He()(n,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(n){return n.endOf("month")},getWeekDay:function(n){var t=n.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(n){return n.year()},getMonth:function(n){return n.month()},getDate:function(n){return n.date()},getHour:function(n){return n.hour()},getMinute:function(n){return n.minute()},getSecond:function(n){return n.second()},addYear:function(n,t){return n.add(t,"year")},addMonth:function(n,t){return n.add(t,"month")},addDate:function(n,t){return n.add(t,"day")},setYear:function(n,t){return n.year(t)},setMonth:function(n,t){return n.month(t)},setDate:function(n,t){return n.date(t)},setHour:function(n,t){return n.hour(t)},setMinute:function(n,t){return n.minute(t)},setSecond:function(n,t){return n.second(t)},isAfter:function(n,t){return n.isAfter(t)},isValidate:function(n){return n.isValid()},locale:{getWeekFirstDay:function(n){return He()().locale(bn(n)).localeData().firstDayOfWeek()},getWeekFirstDate:function(n,t){return t.locale(bn(n)).weekday(0)},getWeek:function(n,t){return t.locale(bn(n)).week()},getShortWeekDays:function(n){return He()().locale(bn(n)).localeData().weekdaysMin()},getShortMonths:function(n){return He()().locale(bn(n)).localeData().monthsShort()},format:function(n,t,a){return t.locale(bn(n)).format(a)},parse:function(n,t,a){for(var r=bn(n),i=0;i1&&(l=n.addDate(l,-7)),l}function zn(e,n,t){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(n){case"year":return t.addYear(e,a*10);case"quarter":case"month":return t.addYear(e,a);default:return t.addMonth(e,a)}}function Me(e,n){var t=n.generateConfig,a=n.locale,r=n.format;return typeof r=="function"?r(e):t.locale.format(a.locale,e,r)}function ua(e,n){var t=n.generateConfig,a=n.locale,r=n.formatList;return!e||typeof r[0]=="function"?null:t.locale.parse(a.locale,e,r)}function _n(e){var n=e.cellDate,t=e.mode,a=e.disabledDate,r=e.generateConfig;if(!a)return!1;var i=function(m,u,g){for(var C=u;C<=g;){var S=void 0;switch(m){case"date":{if(S=r.setDate(n,C),!a(S))return!1;break}case"month":{if(S=r.setMonth(n,C),!_n({cellDate:S,mode:"month",generateConfig:r,disabledDate:a}))return!1;break}case"year":{if(S=r.setYear(n,C),!_n({cellDate:S,mode:"year",generateConfig:r,disabledDate:a}))return!1;break}}C+=1}return!0};switch(t){case"date":case"week":return a(n);case"month":{var l=1,s=r.getDate(r.getEndDate(n));return i("date",l,s)}case"quarter":{var c=Math.floor(r.getMonth(n)/3)*3,f=c+2;return i("month",c,f)}case"year":return i("month",0,11);case"decade":{var h=r.getYear(n),v=Math.floor(h/qe)*qe,d=v+qe-1;return i("year",v,d)}}}function et(e,n){var t=n.formatList,a=n.generateConfig,r=n.locale,i=(0,la.Z)(function(){if(!e)return[[""],""];for(var f="",h=[],v=0;v1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(f.current),C){c(g);return}f.current=requestAnimationFrame(function(){c(g)})}var v=et(s,{formatList:t,generateConfig:a,locale:r}),d=(0,O.Z)(v,2),p=d[1];function m(g){h(g)}function u(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;h(null,g)}return(0,o.useEffect)(function(){u(!0)},[e]),(0,o.useEffect)(function(){return function(){return cancelAnimationFrame(f.current)}},[]),[p,m,u]}var X=R(66214),Kn=R(54272),sa=R(57963),no=R(46222),nt=new Map;function to(e,n){var t;function a(){(0,no.Z)(e)?n():t=(0,Kn.Z)(function(){a()})}return a(),function(){Kn.Z.cancel(t)}}function wt(e,n,t){if(nt.get(e)&&cancelAnimationFrame(nt.get(e)),t<=0){nt.set(e,requestAnimationFrame(function(){e.scrollTop=n}));return}var a=n-e.scrollTop,r=a/t*10;nt.set(e,requestAnimationFrame(function(){e.scrollTop+=r,e.scrollTop!==n&&wt(e,n,t-10)}))}function In(e,n){var t=n.onLeftRight,a=n.onCtrlLeftRight,r=n.onUpDown,i=n.onPageUpDown,l=n.onEnter,s=e.which,c=e.ctrlKey,f=e.metaKey;switch(s){case X.Z.LEFT:if(c||f){if(a)return a(-1),!0}else if(t)return t(-1),!0;break;case X.Z.RIGHT:if(c||f){if(a)return a(1),!0}else if(t)return t(1),!0;break;case X.Z.UP:if(r)return r(-1),!0;break;case X.Z.DOWN:if(r)return r(1),!0;break;case X.Z.PAGE_UP:if(i)return i(-1),!0;break;case X.Z.PAGE_DOWN:if(i)return i(1),!0;break;case X.Z.ENTER:if(l)return l(),!0;break}return!1}function da(e,n,t,a){var r=e;if(!r)switch(n){case"time":r=a?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function fa(e,n,t){var a=e==="time"?8:10,r=typeof n=="function"?n(t.getNow()).length:n.length;return Math.max(a,r)+2}var Qn=null,tt=new Set;function ao(e){return!Qn&&typeof window!="undefined"&&window.addEventListener&&(Qn=function(t){(0,sa.Z)(tt).forEach(function(a){a(t)})},window.addEventListener("mousedown",Qn)),tt.add(e),function(){tt.delete(e),tt.size===0&&(window.removeEventListener("mousedown",Qn),Qn=null)}}function ro(e){var n=e.target;if(e.composed&&n.shadowRoot){var t;return((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}return n}var oo=function(n){return n==="month"||n==="date"?"year":n},lo=function(n){return n==="date"?"month":n},io=function(n){return n==="month"||n==="date"?"quarter":n},co=function(n){return n==="date"?"week":n},uo={year:oo,month:lo,quarter:io,week:co,time:null,date:null};function va(e,n){return e.some(function(t){return t&&t.contains(n)})}function St(e){var n=e.open,t=e.value,a=e.isClickOutside,r=e.triggerOpen,i=e.forwardKeyDown,l=e.onKeyDown,s=e.blurToCancel,c=e.changeOnBlur,f=e.onSubmit,h=e.onCancel,v=e.onFocus,d=e.onBlur,p=(0,o.useState)(!1),m=(0,O.Z)(p,2),u=m[0],g=m[1],C=(0,o.useState)(!1),S=(0,O.Z)(C,2),D=S[0],y=S[1],$=(0,o.useRef)(!1),w=(0,o.useRef)(!1),x=(0,o.useRef)(!1),I={onMouseDown:function(){g(!0),r(!0)},onKeyDown:function(N){var A=function(){x.current=!0};if(l(N,A),!x.current){switch(N.which){case X.Z.ENTER:{n?f()!==!1&&g(!0):r(!0),N.preventDefault();return}case X.Z.TAB:{u&&n&&!N.shiftKey?(g(!1),N.preventDefault()):!u&&n&&!i(N)&&N.shiftKey&&(g(!0),N.preventDefault());return}case X.Z.ESC:{g(!0),h();return}}!n&&![X.Z.SHIFT].includes(N.which)?r(!0):u||i(N)}},onFocus:function(N){g(!0),y(!0),v&&v(N)},onBlur:function(N){if($.current||!a(document.activeElement)){$.current=!1;return}s?setTimeout(function(){for(var A=document,q=A.activeElement;q&&q.shadowRoot;)q=q.shadowRoot.activeElement;a(q)&&h()},0):n&&(r(!1),w.current&&f()),y(!1),d==null||d(N)}};return(0,o.useEffect)(function(){w.current=!1},[n]),(0,o.useEffect)(function(){w.current=!0},[t]),(0,o.useEffect)(function(){return ao(function(E){var N=ro(E),A=a(N);n&&(A?!c&&!s&&(!D||A)&&r(!1):($.current=!0,(0,Kn.Z)(function(){$.current=!1})))})}),[I,{focused:D,typing:u}]}function ga(e,n){return o.useMemo(function(){return e||(n?((0,Wn.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(n).map(function(t){var a=(0,O.Z)(t,2),r=a[0],i=a[1];return{label:r,value:i}})):[])},[e,n])}var so=R(79269);function xt(e){var n=e.valueTexts,t=e.onTextChange,a=o.useState(""),r=(0,O.Z)(a,2),i=r[0],l=r[1],s=o.useRef([]);s.current=n;function c(h){l(h),t(h)}function f(){l(s.current[0])}return(0,so.Z)(function(){n.every(function(h){return h!==i})&&f()},[n.join("||")]),[i,c,f]}var fo=o.createContext({}),Le=fo,Yn=R(63195);function ma(e){var n=e.cellRender,t=e.monthCellRender,a=e.dateRender,r=o.useMemo(function(){if(n)return n;if(!(!t&&!a))return function(i,l){var s=i;return a&&l.type==="date"?a(s,l.today):t&&l.type==="month"?t(s,l.locale):l.originNode}},[n,t,a]);return r}function ha(e,n){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",a=String(e);a.length=1?t|0:1,l=e;l<=n;l+=i)r.push({label:ha(l,2),value:l,disabled:(a||[]).includes(l)});return r}function Ro(e){var n=e.generateConfig,t=e.prefixCls,a=e.operationRef,r=e.activeColumnIndex,i=e.value,l=e.showHour,s=e.showMinute,c=e.showSecond,f=e.use12Hours,h=e.hourStep,v=h===void 0?1:h,d=e.minuteStep,p=d===void 0?1:d,m=e.secondStep,u=m===void 0?1:m,g=e.disabledHours,C=e.disabledMinutes,S=e.disabledSeconds,D=e.disabledTime,y=e.hideDisabledOptions,$=e.onSelect,w=e.cellRender,x=e.locale,I=[],E="".concat(t,"-content"),N="".concat(t,"-time-panel"),A,q=i?n.getHour(i):-1,z=q,ee=i?n.getMinute(i):-1,H=i?n.getSecond(i):-1,j=n.getNow(),J=o.useMemo(function(){if(D){var L=D(j);return[L.disabledHours,L.disabledMinutes,L.disabledSeconds]}return[g,C,S]},[g,C,S,D,j]),Q=(0,O.Z)(J,3),W=Q[0],G=Q[1],ae=Q[2],fe=yt(0,23,v,W&&W()),ce=(0,la.Z)(function(){return fe},fe,Po);f&&(A=z>=12,z%=12);var xe=o.useMemo(function(){if(!f)return[!1,!1];var L=[!0,!0];return ce.forEach(function(pe){var ue=pe.disabled,De=pe.value;ue||(De>=12?L[1]=!1:L[0]=!1)}),L},[f,ce]),te=(0,O.Z)(xe,2),ye=te[0],Re=te[1],Ye=o.useMemo(function(){return f?ce.filter(A?function(L){return L.value>=12}:function(L){return L.value<12}).map(function(L){var pe=L.value%12,ue=pe===0?"12":ha(pe,2);return(0,oe.Z)((0,oe.Z)({},L),{},{label:ue,value:pe})}):ce},[f,A,ce]),ve=yt(0,59,p,G&&G(q)),be=yt(0,59,u,ae&&ae(q,ee)),we=yo({value:i,generateConfig:n,disabledMinutes:G,disabledSeconds:ae,minutes:ve,seconds:be,use12Hours:f});a.current={onUpDown:function(pe){var ue=I[r];if(ue)for(var De=ue.units.findIndex(function(tn){return tn.value===ue.value}),$e=ue.units.length,ge=1;ge<$e;ge+=1){var Ke=ue.units[(De+pe*ge+$e)%$e];if(Ke.disabled!==!0){ue.onSelect(Ke.value);break}}}};function ne(L,pe,ue,De,$e){L!==!1&&I.push({node:o.cloneElement(pe,{prefixCls:N,value:ue,active:r===I.length,onSelect:$e,units:De,hideDisabledOptions:y}),onSelect:$e,value:ue,units:De})}ne(l,o.createElement(ot,{key:"hour",type:"hour",info:{today:j,locale:x,cellRender:w}}),z,Ye,function(L){$(we(A,L,ee,H),"mouse")}),ne(s,o.createElement(ot,{key:"minute",type:"minute",info:{today:j,locale:x,cellRender:w}}),ee,ve,function(L){$(we(A,z,L,H),"mouse")}),ne(c,o.createElement(ot,{key:"second",type:"second",info:{today:j,locale:x,cellRender:w}}),H,be,function(L){$(we(A,z,ee,L),"mouse")});var Ee=-1;return typeof A=="boolean"&&(Ee=A?1:0),ne(f===!0,o.createElement(ot,{key:"meridiem",type:"meridiem",info:{today:j,locale:x,cellRender:w}}),Ee,[{label:"AM",value:0,disabled:ye},{label:"PM",value:1,disabled:Re}],function(L){$(we(!!L,z,ee,H),"mouse")}),o.createElement("div",{className:E},I.map(function(L){var pe=L.node;return pe}))}var Eo=Ro;function No(e){var n=o.useContext(Le),t=n.hideHeader;if(t)return null;var a=e.prefixCls,r=e.generateConfig,i=e.locale,l=e.value,s=e.format,c="".concat(a,"-header");return o.createElement(On,{prefixCls:c},l?Me(l,{locale:i,format:s,generateConfig:r}):"\xA0")}var ko=No,Mo=function(n){return n.filter(function(t){return t!==!1}).length};function Zo(e){var n=e.generateConfig,t=e.format,a=t===void 0?"HH:mm:ss":t,r=e.prefixCls,i=e.active,l=e.operationRef,s=e.showHour,c=e.showMinute,f=e.showSecond,h=e.use12Hours,v=h===void 0?!1:h,d=e.onSelect,p=e.value,m="".concat(r,"-time-panel"),u=o.useRef(),g=o.useState(-1),C=(0,O.Z)(g,2),S=C[0],D=C[1],y=Mo([s,c,f,v]);return l.current={onKeyDown:function(w){return In(w,{onLeftRight:function(I){D((S+I+y)%y)},onUpDown:function(I){S===-1?D(0):u.current&&u.current.onUpDown(I)},onEnter:function(){d(p||n.getNow(),"key"),D(-1)}})},onBlur:function(){D(-1)}},o.createElement("div",{className:he()(m,(0,M.Z)({},"".concat(m,"-active"),i))},o.createElement(ko,(0,V.Z)({},e,{format:a,prefixCls:r})),o.createElement(Eo,(0,V.Z)({},e,{prefixCls:r,activeColumnIndex:S,operationRef:u})))}var Sa=Zo,xa=vo("date","time"),$t=function(n,t,a){var r=new Set(t);if(r.has(n)){for(var i=0;i<=a;i++)if(!r.has(i)&&i>=n)return i}return n};function Io(e){var n=e.prefixCls,t=e.operationRef,a=e.generateConfig,r=e.value,i=e.defaultValue,l=e.disabledTime,s=e.showTime,c=e.onSelect,f=e.cellRender,h="".concat(n,"-datetime-panel"),v=o.useState(null),d=(0,O.Z)(v,2),p=d[0],m=d[1],u=o.useRef({}),g=o.useRef({}),C=(0,Yn.Z)(s)==="object"?(0,oe.Z)({},s):{};function S(w){var x=xa.indexOf(p)+w,I=xa[x]||null;return I}var D=function(x){g.current.onBlur&&g.current.onBlur(x),m(null)};t.current={onKeyDown:function(x){if(x.which===X.Z.TAB){var I=S(x.shiftKey?-1:1);return m(I),I&&x.preventDefault(),!0}if(p){var E=p==="date"?u:g;return E.current&&E.current.onKeyDown&&E.current.onKeyDown(x),!0}return[X.Z.LEFT,X.Z.RIGHT,X.Z.UP,X.Z.DOWN].includes(x.which)?(m("date"),!0):!1},onBlur:D,onClose:D};var y=function(x,I){var E=x;if(I==="date"){var N,A,q,z=(l==null?void 0:l(r||C.defaultValue))||{},ee=$t(a.getHour(E),((N=z.disabledHours)===null||N===void 0?void 0:N.call(z))||[-1],23),H=$t(a.getMinute(E),((A=z.disabledMinutes)===null||A===void 0?void 0:A.call(z,ee))||[-1],59),j=$t(a.getSecond(E),((q=z.disabledSeconds)===null||q===void 0?void 0:q.call(z,ee,H))||[-1],59);E=a.setHour(E,ee),E=a.setMinute(E,H),E=a.setSecond(E,j)}else I==="time"&&!r&&i&&(E=a.setYear(E,a.getYear(i)),E=a.setMonth(E,a.getMonth(i)),E=a.setDate(E,a.getDate(i)));c&&c(E,"mouse")},$=l?l(r||null):{};return o.createElement("div",{className:he()(h,(0,M.Z)({},"".concat(h,"-active"),p))},o.createElement(Dt,(0,V.Z)({},e,{cellRender:f,operationRef:u,active:p==="date",onSelect:function(x){y(wa(a,x,!r&&(0,Yn.Z)(s)==="object"?s.defaultValue:null),"date")}})),o.createElement(Sa,(0,V.Z)({},e,{cellRender:f?function(w,x){return f(w,(0,oe.Z)((0,oe.Z)({},x),{},{type:"time"}))}:void 0,format:void 0},C,$,{disabledTime:null,defaultValue:void 0,operationRef:g,active:p==="time",onSelect:function(x){y(x,"time")}})))}var Yo=Io;function Oo(e){var n=e.prefixCls,t=e.generateConfig,a=e.viewDate,r=e.onPrevDecades,i=e.onNextDecades,l=o.useContext(Le),s=l.hideHeader;if(s)return null;var c="".concat(n,"-header"),f=t.getYear(a),h=Math.floor(f/on)*on,v=h+on-1;return o.createElement(On,(0,V.Z)({},e,{prefixCls:c,onSuperPrev:r,onSuperNext:i}),h,"-",v)}var To=Oo,Pt=3,Da=4;function Vo(e){var n=qe-1,t=e.prefixCls,a=e.viewDate,r=e.generateConfig,i=e.cellRender,l=e.locale,s="".concat(t,"-cell"),c=r.getYear(a),f=Math.floor(c/qe)*qe,h=Math.floor(c/on)*on,v=h+on-1,d=r.setYear(a,h-Math.ceil((Pt*Da*qe-on)/2)),p=function(g){var C,S=r.getYear(g),D=S+n;return C={},(0,M.Z)(C,"".concat(s,"-in-view"),h<=S&&D<=v),(0,M.Z)(C,"".concat(s,"-selected"),S===f),C},m=i?function(u,g){return i(u,{originNode:g,today:r.getNow(),type:"decade",locale:l})}:void 0;return o.createElement(Gn,(0,V.Z)({},e,{rowNum:Da,colNum:Pt,baseDate:d,getCellNode:m,getCellText:function(g){var C=r.getYear(g);return"".concat(C,"-").concat(C+n)},getCellClassName:p,getCellDate:function(g,C){return r.addYear(g,C*qe)}}))}var Ho=Vo;function Lo(e){var n=e.prefixCls,t=e.onViewDateChange,a=e.generateConfig,r=e.viewDate,i=e.operationRef,l=e.onSelect,s=e.onPanelChange,c="".concat(n,"-decade-panel");i.current={onKeyDown:function(d){return In(d,{onLeftRight:function(m){l(a.addYear(r,m*qe),"key")},onCtrlLeftRight:function(m){l(a.addYear(r,m*on),"key")},onUpDown:function(m){l(a.addYear(r,m*qe*Pt),"key")},onEnter:function(){s("year",r)}})}};var f=function(d){var p=a.addYear(r,d*on);t(p),s(null,p)},h=function(d){l(d,"mouse"),s("year",d)};return o.createElement("div",{className:c},o.createElement(To,(0,V.Z)({},e,{prefixCls:n,onPrevDecades:function(){f(-1)},onNextDecades:function(){f(1)}})),o.createElement(Ho,(0,V.Z)({},e,{prefixCls:n,onSelect:h})))}var Bo=Lo;function Ao(e){var n=e.prefixCls,t=e.generateConfig,a=e.locale,r=e.viewDate,i=e.onNextYear,l=e.onPrevYear,s=e.onYearClick,c=o.useContext(Le),f=c.hideHeader;if(f)return null;var h="".concat(n,"-header");return o.createElement(On,(0,V.Z)({},e,{prefixCls:h,onSuperPrev:l,onSuperNext:i}),o.createElement("button",{type:"button",onClick:s,className:"".concat(n,"-year-btn")},Me(r,{locale:a,format:a.yearFormat,generateConfig:t})))}var Wo=Ao,Rt=3,Fo=4;function jo(e){var n=e.prefixCls,t=e.locale,a=e.value,r=e.viewDate,i=e.generateConfig,l=e.cellRender,s=o.useContext(Sn),c=s.rangedValue,f=s.hoverRangedValue,h="".concat(n,"-cell"),v=at({cellPrefixCls:h,value:a,generateConfig:i,rangedValue:c,hoverRangedValue:f,isSameCell:function(g,C){return Ct(i,g,C)},isInView:function(){return!0},offsetCell:function(g,C){return i.addMonth(g,C)}}),d=t.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(t.locale):[]),p=i.setMonth(r,0),m=l?function(u,g){return l(u,{originNode:g,locale:t,today:i.getNow(),type:"month"})}:void 0;return o.createElement(Gn,(0,V.Z)({},e,{rowNum:Fo,colNum:Rt,baseDate:p,getCellNode:m,getCellText:function(g){return t.monthFormat?Me(g,{locale:t,format:t.monthFormat,generateConfig:i}):d[i.getMonth(g)]},getCellClassName:v,getCellDate:i.addMonth,titleCell:function(g){return Me(g,{locale:t,format:"YYYY-MM",generateConfig:i})}}))}var Uo=jo;function zo(e){var n=e.prefixCls,t=e.operationRef,a=e.onViewDateChange,r=e.generateConfig,i=e.value,l=e.viewDate,s=e.onPanelChange,c=e.onSelect,f="".concat(n,"-month-panel");t.current={onKeyDown:function(d){return In(d,{onLeftRight:function(m){c(r.addMonth(i||l,m),"key")},onCtrlLeftRight:function(m){c(r.addYear(i||l,m),"key")},onUpDown:function(m){c(r.addMonth(i||l,m*Rt),"key")},onEnter:function(){s("date",i||l)}})}};var h=function(d){var p=r.addYear(l,d);a(p),s(null,p)};return o.createElement("div",{className:f},o.createElement(Wo,(0,V.Z)({},e,{prefixCls:n,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onYearClick:function(){s("year",l)}})),o.createElement(Uo,(0,V.Z)({},e,{prefixCls:n,onSelect:function(d){c(d,"mouse"),s("date",d)}})))}var Ko=zo;function Qo(e){var n=e.prefixCls,t=e.generateConfig,a=e.locale,r=e.viewDate,i=e.onNextYear,l=e.onPrevYear,s=e.onYearClick,c=o.useContext(Le),f=c.hideHeader;if(f)return null;var h="".concat(n,"-header");return o.createElement(On,(0,V.Z)({},e,{prefixCls:h,onSuperPrev:l,onSuperNext:i}),o.createElement("button",{type:"button",onClick:s,className:"".concat(n,"-year-btn")},Me(r,{locale:a,format:a.yearFormat,generateConfig:t})))}var Go=Qo,Xo=4,qo=1;function Jo(e){var n=e.prefixCls,t=e.locale,a=e.value,r=e.viewDate,i=e.generateConfig,l=e.cellRender,s=o.useContext(Sn),c=s.rangedValue,f=s.hoverRangedValue,h="".concat(n,"-cell"),v=at({cellPrefixCls:h,value:a,generateConfig:i,rangedValue:c,hoverRangedValue:f,isSameCell:function(u,g){return ca(i,u,g)},isInView:function(){return!0},offsetCell:function(u,g){return i.addMonth(u,g*3)}}),d=i.setDate(i.setMonth(r,0),1),p=l?function(m,u){return l(m,{originNode:u,locale:t,today:i.getNow(),type:"quarter"})}:void 0;return o.createElement(Gn,(0,V.Z)({},e,{rowNum:qo,colNum:Xo,baseDate:d,getCellNode:p,getCellText:function(u){return Me(u,{locale:t,format:t.quarterFormat||"[Q]Q",generateConfig:i})},getCellClassName:v,getCellDate:function(u,g){return i.addMonth(u,g*3)},titleCell:function(u){return Me(u,{locale:t,format:"YYYY-[Q]Q",generateConfig:i})}}))}var _o=Jo;function el(e){var n=e.prefixCls,t=e.operationRef,a=e.onViewDateChange,r=e.generateConfig,i=e.value,l=e.viewDate,s=e.onPanelChange,c=e.onSelect,f="".concat(n,"-quarter-panel");t.current={onKeyDown:function(d){return In(d,{onLeftRight:function(m){c(r.addMonth(i||l,m*3),"key")},onCtrlLeftRight:function(m){c(r.addYear(i||l,m),"key")},onUpDown:function(m){c(r.addYear(i||l,m),"key")}})}};var h=function(d){var p=r.addYear(l,d);a(p),s(null,p)};return o.createElement("div",{className:f},o.createElement(Go,(0,V.Z)({},e,{prefixCls:n,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onYearClick:function(){s("year",l)}})),o.createElement(_o,(0,V.Z)({},e,{prefixCls:n,onSelect:function(d){c(d,"mouse")}})))}var nl=el;function tl(e){var n=e.prefixCls,t=e.generateConfig,a=e.locale,r=e.value,i=e.disabledDate,l=e.onSelect,s=o.useContext(Sn),c=s.rangedValue,f=s.hoverRangedValue,h=o.useContext(Le),v=h.onDateMouseEnter,d=h.onDateMouseLeave,p=(f==null?void 0:f[0])||(c==null?void 0:c[0]),m=(f==null?void 0:f[1])||(c==null?void 0:c[1]),u="".concat(n,"-cell"),g=function(y){var $=_n({cellDate:y,mode:"week",disabledDate:i,generateConfig:t});return o.createElement("td",{key:"week",className:he()(u,"".concat(u,"-week")),onClick:function(){$||l(y,"mouse")},onMouseEnter:function(){!$&&v&&v(y)},onMouseLeave:function(){!$&&d&&d(y)}},o.createElement("div",{className:"".concat(u,"-inner")},t.locale.getWeek(a.locale,y)))},C="".concat(n,"-week-panel-row"),S=function(y){var $,w=Jn(t,a.locale,p,y),x=Jn(t,a.locale,m,y);return he()(C,($={},(0,M.Z)($,"".concat(C,"-selected"),!c&&Jn(t,a.locale,r,y)),(0,M.Z)($,"".concat(C,"-range-start"),w),(0,M.Z)($,"".concat(C,"-range-end"),x),(0,M.Z)($,"".concat(C,"-range-hover"),!w&&!x&&Un(t,p,m,y)),$))};return o.createElement(Dt,(0,V.Z)({},e,{panelName:"week",prefixColumn:g,rowClassName:S,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var al=tl,gn=10;function rl(e){var n=e.prefixCls,t=e.generateConfig,a=e.viewDate,r=e.onPrevDecade,i=e.onNextDecade,l=e.onDecadeClick,s=o.useContext(Le),c=s.hideHeader;if(c)return null;var f="".concat(n,"-header"),h=t.getYear(a),v=Math.floor(h/gn)*gn,d=v+gn-1;return o.createElement(On,(0,V.Z)({},e,{prefixCls:f,onSuperPrev:r,onSuperNext:i}),o.createElement("button",{type:"button",onClick:l,className:"".concat(n,"-decade-btn")},v,"-",d))}var ol=rl,Et=3,ya=4;function ll(e){var n=e.prefixCls,t=e.value,a=e.viewDate,r=e.locale,i=e.generateConfig,l=e.cellRender,s=o.useContext(Sn),c=s.rangedValue,f=s.hoverRangedValue,h="".concat(n,"-cell"),v=i.getYear(a),d=Math.floor(v/gn)*gn,p=d+gn-1,m=i.setYear(a,d-Math.ceil((Et*ya-gn)/2)),u=i.getNow(),g=function(y){var $=i.getYear(y);return d<=$&&$<=p},C=at({cellPrefixCls:h,value:t,generateConfig:i,rangedValue:c,hoverRangedValue:f,isSameCell:function(y,$){return jn(i,y,$)},isInView:g,offsetCell:function(y,$){return i.addYear(y,$)}}),S=l?function(D,y){return l(D,{originNode:y,today:u,type:"year",locale:r})}:void 0;return o.createElement(Gn,(0,V.Z)({},e,{rowNum:ya,colNum:Et,baseDate:m,getCellNode:S,getCellText:i.getYear,getCellClassName:C,getCellDate:i.addYear,titleCell:function(y){return Me(y,{locale:r,format:"YYYY",generateConfig:i})}}))}var il=ll;function cl(e){var n=e.prefixCls,t=e.operationRef,a=e.onViewDateChange,r=e.generateConfig,i=e.value,l=e.viewDate,s=e.sourceMode,c=e.onSelect,f=e.onPanelChange,h="".concat(n,"-year-panel");t.current={onKeyDown:function(p){return In(p,{onLeftRight:function(u){c(r.addYear(i||l,u),"key")},onCtrlLeftRight:function(u){c(r.addYear(i||l,u*gn),"key")},onUpDown:function(u){c(r.addYear(i||l,u*Et),"key")},onEnter:function(){f(s==="date"?"date":"month",i||l)}})}};var v=function(p){var m=r.addYear(l,p*10);a(m),f(null,m)};return o.createElement("div",{className:h},o.createElement(ol,(0,V.Z)({},e,{prefixCls:n,onPrevDecade:function(){v(-1)},onNextDecade:function(){v(1)},onDecadeClick:function(){f("decade",l)}})),o.createElement(il,(0,V.Z)({},e,{prefixCls:n,onSelect:function(p){f(s==="date"?"date":"month",p),c(p,"mouse")}})))}var ul=cl;function $a(e,n,t){return t?o.createElement("div",{className:"".concat(e,"-footer-extra")},t(n)):null}function Pa(e){var n=e.prefixCls,t=e.components,a=t===void 0?{}:t,r=e.needConfirmButton,i=e.onNow,l=e.onOk,s=e.okDisabled,c=e.showNow,f=e.locale,h,v;if(r){var d=a.button||"button";i&&c!==!1&&(h=o.createElement("li",{className:"".concat(n,"-now")},o.createElement("a",{className:"".concat(n,"-now-btn"),onClick:i},f.now))),v=r&&o.createElement("li",{className:"".concat(n,"-ok")},o.createElement(d,{disabled:s,onClick:l},f.ok))}return!h&&!v?null:o.createElement("ul",{className:"".concat(n,"-ranges")},h,v)}var sl=["date","month"];function dl(e){var n,t=e,a=t.prefixCls,r=a===void 0?"rc-picker":a,i=t.className,l=t.style,s=t.locale,c=t.generateConfig,f=t.value,h=t.defaultValue,v=t.pickerValue,d=t.defaultPickerValue,p=t.disabledDate,m=t.mode,u=t.picker,g=u===void 0?"date":u,C=t.tabIndex,S=C===void 0?0:C,D=t.showNow,y=t.showTime,$=t.showToday,w=t.renderExtraFooter,x=t.hideHeader,I=t.onSelect,E=t.onChange,N=t.onPanelChange,A=t.onMouseDown,q=t.onPickerValueChange,z=t.onOk,ee=t.components,H=t.direction,j=t.hourStep,J=j===void 0?1:j,Q=t.minuteStep,W=Q===void 0?1:Q,G=t.secondStep,ae=G===void 0?1:G,fe=t.dateRender,ce=t.monthCellRender,xe=t.cellRender,te=g==="date"&&!!y||g==="time",ye=24%J===0,Re=60%W===0,Ye=60%ae===0,ve=o.useContext(Le),be=ve.operationRef,we=ve.onSelect,ne=ve.hideRanges,Ee=ve.defaultOpenValue,L=o.useContext(Sn),pe=L.inRange,ue=L.panelPosition,De=L.rangedValue,$e=L.hoverRangedValue,ge=o.useRef({}),Ke=o.useRef(!0),tn=(0,vn.Z)(null,{value:f,defaultValue:h,postState:function(b){return!b&&Ee&&g==="time"?Ee:b}}),Be=(0,O.Z)(tn,2),le=Be[0],Qe=Be[1],Hn=(0,vn.Z)(null,{value:v,defaultValue:d||le,postState:function(b){var Y=c.getNow();if(!b)return Y;if(!le&&y){var Ce=(0,Yn.Z)(y)==="object"?y.defaultValue:h;return wa(c,Array.isArray(b)?b[0]:b,Ce||Y)}return Array.isArray(b)?b[0]:b}}),Dn=(0,O.Z)(Hn,2),Ne=Dn[0],Ge=Dn[1],Ae=function(b){Ge(b),q&&q(b)},yn=function(b){var Y=uo[g];return Y?Y(b):b},cn=(0,vn.Z)(function(){return g==="time"?"time":yn("date")},{value:m}),Ze=(0,O.Z)(cn,2),me=Ze[0],Oe=Ze[1];o.useEffect(function(){Oe(g)},[g]);var an=o.useState(function(){return me}),rn=(0,O.Z)(an,2),We=rn[0],Fe=rn[1],Je=function(b,Y){var Ce=yn(b||me);Fe(me),Oe(Ce),N&&(me!==Ce||Zn(c,Ne,Ne))&&N(Y,Ce)},Se=function(b,Y){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(me===g||Ce)&&(Qe(b),I&&I(b),we&&we(b,Y),E&&!Zn(c,b,le)&&!(p!=null&&p(b))&&E(b))},Te=function(b){if(sl.includes(me)){var Y,Ce,dn=me==="date";switch(b===X.Z.PAGE_UP||b===X.Z.PAGE_DOWN?Ce=dn?c.addMonth:c.addYear:Ce=dn?c.addDate:c.addMonth,b){case X.Z.LEFT:case X.Z.PAGE_UP:Y=Ce(Ne,-1);break;case X.Z.RIGHT:case X.Z.PAGE_DOWN:Y=Ce(Ne,1);break;case X.Z.UP:case X.Z.DOWN:Y=Ce(Ne,Number("".concat(b===X.Z.UP?"-":"").concat(dn?Fn:Rt)));break}if(Y)return!(p!=null&&p(Y))}return!0},$n=function(b){if(ge.current&&ge.current.onKeyDown){var Y=!0,Ce=b.which;if([X.Z.LEFT,X.Z.RIGHT,X.Z.UP,X.Z.DOWN,X.Z.PAGE_UP,X.Z.PAGE_DOWN,X.Z.ENTER].includes(Ce)&&(b.preventDefault(),Ce!==X.Z.ENTER&&S===0&&(Y=Te(Ce))),Y)return ge.current.onKeyDown(b)}return(0,Wn.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},mn=function(b){ge.current&&ge.current.onBlur&&ge.current.onBlur(b)};be&&ue!=="right"&&(be.current={onKeyDown:$n,onClose:function(){ge.current&&ge.current.onClose&&ge.current.onClose()}}),o.useEffect(function(){f&&!Ke.current&&Ge(f)},[f]),o.useEffect(function(){Ke.current=!1},[]);var _,un=ma({cellRender:xe,monthCellRender:ce,dateRender:fe}),ke=(0,oe.Z)((0,oe.Z)({},e),{},{cellRender:un,operationRef:ge,prefixCls:r,viewDate:Ne,value:le,onViewDateChange:Ae,sourceMode:We,onPanelChange:Je,disabledDate:p});switch(delete ke.onChange,delete ke.onSelect,me){case"decade":_=o.createElement(Bo,(0,V.Z)({},ke,{onSelect:function(b,Y){Ae(b),Se(b,Y)}}));break;case"year":_=o.createElement(ul,(0,V.Z)({},ke,{onSelect:function(b,Y){Ae(b),Se(b,Y)}}));break;case"month":_=o.createElement(Ko,(0,V.Z)({},ke,{onSelect:function(b,Y){Ae(b),Se(b,Y)}}));break;case"quarter":_=o.createElement(nl,(0,V.Z)({},ke,{onSelect:function(b,Y){Ae(b),Se(b,Y)}}));break;case"week":_=o.createElement(al,(0,V.Z)({},ke,{onSelect:function(b,Y){Ae(b),Se(b,Y)}}));break;case"time":delete ke.showTime,_=o.createElement(Sa,(0,V.Z)({},ke,(0,Yn.Z)(y)==="object"?y:null,{onSelect:function(b,Y){Ae(b),Se(b,Y)}}));break;default:y?_=o.createElement(Yo,(0,V.Z)({},ke,{onSelect:function(b,Y){Ae(b),Se(b,Y)}})):_=o.createElement(Dt,(0,V.Z)({},ke,{onSelect:function(b,Y){Ae(b),Se(b,Y)}}))}var se,Xe,_e=function(){var b=c.getNow(),Y=mo(c.getHour(b),c.getMinute(b),c.getSecond(b),ye?J:1,Re?W:1,Ye?ae:1),Ce=ba(c,b,Y[0],Y[1],Y[2]);Se(Ce,"submit")};ne||(se=$a(r,me,w),y&&me!=="date"?Xe=null:Xe=Pa({prefixCls:r,components:ee,needConfirmButton:te,okDisabled:!le||p&&p(le),locale:s,showNow:D,onNow:te&&_e,onOk:function(){le&&(Se(le,"submit",!0),z&&z(le))}}));var hn;if($&&me==="date"&&g==="date"&&!y){var Ln=c.getNow(),sn="".concat(r,"-today-btn"),Pn=p&&p(Ln);hn=o.createElement("a",{className:he()(sn,Pn&&"".concat(sn,"-disabled")),"aria-disabled":Pn,onClick:function(){Pn||Se(Ln,"mouse",!0)}},s.today)}return o.createElement(Le.Provider,{value:(0,oe.Z)((0,oe.Z)({},ve),{},{mode:me,hideHeader:"hideHeader"in e?x:ve.hideHeader,hidePrevBtn:pe&&ue==="right",hideNextBtn:pe&&ue==="left"})},o.createElement("div",{tabIndex:S,className:he()("".concat(r,"-panel"),i,(n={},(0,M.Z)(n,"".concat(r,"-panel-has-range"),De&&De[0]&&De[1]),(0,M.Z)(n,"".concat(r,"-panel-has-range-hover"),$e&&$e[0]&&$e[1]),(0,M.Z)(n,"".concat(r,"-panel-rtl"),H==="rtl"),n)),style:l,onKeyDown:$n,onBlur:mn,onMouseDown:A},_,se||Xe||hn?o.createElement("div",{className:"".concat(r,"-footer")},se,Xe,hn):null))}var Ra=dl,fl=R(30833),vl={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function gl(e){var n,t=e.prefixCls,a=e.popupElement,r=e.popupStyle,i=e.visible,l=e.dropdownClassName,s=e.dropdownAlign,c=e.transitionName,f=e.getPopupContainer,h=e.children,v=e.range,d=e.popupPlacement,p=e.direction,m="".concat(t,"-dropdown"),u=function(){return d!==void 0?d:p==="rtl"?"bottomRight":"bottomLeft"};return o.createElement(fl.Z,{showAction:[],hideAction:[],popupPlacement:u(),builtinPlacements:vl,prefixCls:m,popupTransitionName:c,popup:a,popupAlign:s,popupVisible:i,popupClassName:he()(l,(n={},(0,M.Z)(n,"".concat(m,"-range"),v),(0,M.Z)(n,"".concat(m,"-rtl"),p==="rtl"),n)),popupStyle:r,getPopupContainer:f},h)}var Ea=gl;function Na(e){var n=e.prefixCls,t=e.presets,a=e.onClick,r=e.onHover;return t.length?o.createElement("div",{className:"".concat(n,"-presets")},o.createElement("ul",null,t.map(function(i,l){var s=i.label,c=i.value;return o.createElement("li",{key:l,onClick:function(){return a==null?void 0:a(Ca(c))},onMouseEnter:function(){return r==null?void 0:r(Ca(c))},onMouseLeave:function(){return r==null?void 0:r(null)}},s)}))):null}function Vi(e){var n=e.picker,t=e.disabledHours,a=e.disabledMinutes,r=e.disabledSeconds;n==="time"&&(t||a||r)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function ka(e,n,t){var a=(0,Yn.Z)(n)==="object"?n.clearIcon:t;return a||o.createElement("span",{className:"".concat(e,"-clear-btn")})}function ml(e){var n,t=e,a=t.prefixCls,r=a===void 0?"rc-picker":a,i=t.id,l=t.name,s=t.tabIndex,c=t.style,f=t.className,h=t.dropdownClassName,v=t.dropdownAlign,d=t.popupStyle,p=t.transitionName,m=t.generateConfig,u=t.locale,g=t.inputReadOnly,C=t.allowClear,S=t.autoFocus,D=t.showTime,y=t.picker,$=y===void 0?"date":y,w=t.format,x=t.use12Hours,I=t.value,E=t.defaultValue,N=t.presets,A=t.open,q=t.defaultOpen,z=t.defaultOpenValue,ee=t.suffixIcon,H=t.clearIcon,j=t.disabled,J=t.disabledDate,Q=t.placeholder,W=t.getPopupContainer,G=t.pickerRef,ae=t.panelRender,fe=t.onChange,ce=t.onOpenChange,xe=t.onFocus,te=t.onBlur,ye=t.onMouseDown,Re=t.onMouseUp,Ye=t.onMouseEnter,ve=t.onMouseLeave,be=t.onContextMenu,we=t.onClick,ne=t.onKeyDown,Ee=t.onSelect,L=t.direction,pe=t.autoComplete,ue=pe===void 0?"off":pe,De=t.inputRender,$e=t.changeOnBlur,ge=o.useRef(null),Ke=$==="date"&&!!D||$==="time",tn=ga(N),Be=pa(da(w,$,D,x)),le=o.useRef(null),Qe=o.useRef(null),Hn=o.useRef(null),Dn=(0,vn.Z)(null,{value:I,defaultValue:E}),Ne=(0,O.Z)(Dn,2),Ge=Ne[0],Ae=Ne[1],yn=o.useState(Ge),cn=(0,O.Z)(yn,2),Ze=cn[0],me=cn[1],Oe=o.useRef(null),an=(0,vn.Z)(!1,{value:A,defaultValue:q,postState:function(k){return j?!1:k},onChange:function(k){ce&&ce(k),!k&&Oe.current&&Oe.current.onClose&&Oe.current.onClose()}}),rn=(0,O.Z)(an,2),We=rn[0],Fe=rn[1],Je=et(Ze,{formatList:Be,generateConfig:m,locale:u}),Se=(0,O.Z)(Je,2),Te=Se[0],$n=Se[1],mn=xt({valueTexts:Te,onTextChange:function(k){var Ve=ua(k,{locale:u,formatList:Be,generateConfig:m});Ve&&(!J||!J(Ve))&&me(Ve)}}),_=(0,O.Z)(mn,3),un=_[0],ke=_[1],se=_[2],Xe=function(k){me(k),Ae(k),fe&&!Zn(m,Ge,k)&&fe(k,k?Me(k,{generateConfig:m,locale:u,format:Be[0]}):"")},_e=function(k){j&&k||Fe(k)},hn=function(k){return We&&Oe.current&&Oe.current.onKeyDown?Oe.current.onKeyDown(k):((0,Wn.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ln=function(){for(var k=arguments.length,Ve=new Array(k),en=0;end(f);case"month":return v(u)>v(f);case"week":return h(u)>h(f);default:return!ln(s,u,f)&&s.isAfter(u,f)}return!1},[i,l[1],f,n]),m=o.useCallback(function(u){if(l[1]||i&&i(u))return!0;if(l[0]&&c)return!ln(s,u,f)&&s.isAfter(c,u);if(!n&&c)switch(t){case"quarter":return d(u)0&&arguments[0]!==void 0?arguments[0]:!1,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=null;Pe&&An&&An[0]&&An[1]&&u.isAfter(An[1],An[0])&&(B=An);var F=x;if(x&&(0,Yn.Z)(x)==="object"&&x.defaultValue){var re=x.defaultValue;F=(0,oe.Z)((0,oe.Z)({},x),{},{defaultValue:U(re,Z)||void 0})}return o.createElement(Sn.Provider,{value:{inRange:!0,panelPosition:K,rangedValue:ri||b,hoverRangedValue:B}},o.createElement(Ra,(0,V.Z)({},e,P,{cellRender:$i,showTime:F,mode:Rn[Z],generateConfig:u,style:void 0,direction:Ne,disabledDate:Z===0?st:dt,disabledTime:function(nn){return J?J(nn,Z===0?"start":"end"):!1},className:he()((0,M.Z)({},"".concat(l,"-panel-focused"),Z===0?!gr:!Cr)),value:U(b,Z),locale:g,tabIndex:-1,onPanelChange:function(nn,fn){Z===0&&Ft(!0),Z===1&&Ut(!0),ut(ze(Rn,fn,Z),ze(b,nn,Z));var Cn=nn;K==="right"&&Rn[Z]===fn&&(Cn=zn(Cn,fn,u,-1)),sn(Cn,Z)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Z===0?U(b,1):U(b,0)})))}var pn=0,br=0;if(Z&&an.current&&We.current&&Oe.current&&Se.current){pn=an.current.offsetWidth+We.current.offsetWidth;var Ri=Se.current.offsetLeft>pn?Se.current.offsetLeft-pn:Se.current.offsetLeft,wr=Oe.current.offsetWidth,Sr=Se.current.offsetWidth;wr&&Sr&&pn>wr-Sr-(Ne==="rtl"?0:Ri)&&(br=pn)}var Ei=Ne==="rtl"?{right:pn}:{left:pn};function Ni(){var K,P=$a(l,Rn[Z],we),B=Pa({prefixCls:l,components:Hn,needConfirmButton:Ze,okDisabled:!U(b,Z)||j&&j(b[Z]),locale:g,onOk:function(){var Ue=U(b,Z);Ue&&(Nn(b,Z),le==null||le(b),je(!1,Z,"confirm"))}});if(w!=="time"&&!x){var F=Ln(Z),re=zn(F,w,u),Ie=Rn[Z],nn=Ie===w,fn=Kt(nn?"left":!1,{pickerValue:F,onPickerValueChange:function(Ue){sn(Ue,Z)}}),Cn=Kt("right",{pickerValue:re,onPickerValueChange:function(Ue){sn(zn(Ue,w,u,-1),Z)}});Ne==="rtl"?K=o.createElement(o.Fragment,null,Cn,nn&&fn):K=o.createElement(o.Fragment,null,fn,nn&&Cn)}else K=Kt();var qn=o.createElement("div",{className:"".concat(l,"-panel-layout")},o.createElement(Na,{prefixCls:l,presets:Pi,onClick:function(Ue){Nn(Ue,null),je(!1,Z,"preset")},onHover:function(Ue){oi(Ue)}}),o.createElement("div",null,o.createElement("div",{className:"".concat(l,"-panels")},K),(P||B)&&o.createElement("div",{className:"".concat(l,"-footer")},P,B)));return ae&&(qn=ae(qn)),o.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:br},ref:Oe,onMouseDown:function(Ue){Ue.preventDefault()}},qn)}var ki=o.createElement("div",{className:he()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(w,"-range-wrapper")),style:{minWidth:k}},o.createElement("div",{ref:Se,className:"".concat(l,"-range-arrow"),style:Ei}),Ni()),xr;ye&&(xr=o.createElement("span",{className:"".concat(l,"-suffix"),onMouseDown:function(P){P.preventDefault()}},ye));var Mi=ka(l,te,Re),Zi=o.createElement("span",{onMouseDown:function(P){P.preventDefault(),P.stopPropagation()},onMouseUp:function(P){P.preventDefault(),P.stopPropagation();var B=se;_[0]||(B=ze(B,null,0)),_[1]||(B=ze(B,null,1)),Nn(B,null),je(!1,Z,"clear")},className:"".concat(l,"-clear"),role:"button"},Mi),Ii=te&&(U(se,0)&&!_[0]||U(se,1)&&!_[1]),Dr={size:fa(w,Te[0],u)},Qt=0,Gt=0;an.current&&rn.current&&We.current&&(Z===0?Gt=an.current.offsetWidth:(Qt=pn,Gt=rn.current.offsetWidth));var Yi=Ne==="rtl"?{right:Qt}:{left:Qt},Oi=function(P,B){var F=ze(b,P,Z);if(B==="submit"||B!=="key"&&!Ze){Nn(F,Z),Z===0?Ft():Ut();var re=Z===0?1:0;_[re]?je(!1,!1,"confirm"):je(!1,Z,"confirm")}else Y(F)};return o.createElement(Le.Provider,{value:{operationRef:mn,hideHeader:w==="time",onDateMouseEnter:di,onDateMouseLeave:fi,hideRanges:!0,onSelect:Oi,open:Pe}},o.createElement(Ea,{visible:Pe,popupElement:ki,popupStyle:h,prefixCls:l,dropdownClassName:v,dropdownAlign:p,getPopupContainer:m,transitionName:d,range:!0,direction:Ne},o.createElement("div",(0,V.Z)({ref:me,className:he()(l,"".concat(l,"-range"),f,(n={},(0,M.Z)(n,"".concat(l,"-disabled"),_[0]&&_[1]),(0,M.Z)(n,"".concat(l,"-focused"),Z===0?vr:pr),(0,M.Z)(n,"".concat(l,"-rtl"),Ne==="rtl"),n)),style:c,onClick:Si,onMouseEnter:Ke,onMouseLeave:tn,onMouseDown:xi,onMouseUp:ge},(0,oa.Z)(e,{aria:!0,data:!0})),o.createElement("div",{className:he()("".concat(l,"-input"),(t={},(0,M.Z)(t,"".concat(l,"-input-active"),Z===0),(0,M.Z)(t,"".concat(l,"-input-placeholder"),!!lr),t)),ref:an},o.createElement("input",(0,V.Z)({id:s,disabled:_[0],readOnly:ve||typeof Te[0]=="function"||!gr,value:lr||gt,onChange:function(P){_a(P.target.value)},autoFocus:S,placeholder:U(C,0)||"",ref:Fe},Ci,Dr,{autoComplete:yn}))),o.createElement("div",{className:"".concat(l,"-range-separator"),ref:We},N),o.createElement("div",{className:he()("".concat(l,"-input"),(a={},(0,M.Z)(a,"".concat(l,"-input-active"),Z===1),(0,M.Z)(a,"".concat(l,"-input-placeholder"),!!ir),a)),ref:rn},o.createElement("input",(0,V.Z)({disabled:_[1],readOnly:ve||typeof Te[0]=="function"||!Cr,value:ir||mt,onChange:function(P){nr(P.target.value)},placeholder:U(C,1)||"",ref:Je},wi,Dr,{autoComplete:yn}))),o.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,oe.Z)((0,oe.Z)({},Yi),{},{width:Gt,position:"absolute"})}),xr,Ii&&Zi)))}var $l=function(e){(0,aa.Z)(t,e);var n=(0,ra.Z)(t);function t(){var a;(0,na.Z)(this,t);for(var r=arguments.length,i=new Array(r),l=0;l{const r=e.calc(t).add(2).equal(),i=e.max(e.calc(n).sub(r).div(2).equal(),0),l=e.max(e.calc(n).sub(r).sub(i).equal(),0);return{padding:`${(0,T.bf)(i)} ${(0,T.bf)(a)} ${(0,T.bf)(l)}`}},kl=e=>{const{componentCls:n,pickerCellCls:t,pickerCellInnerCls:a,cellHeight:r,motionDurationSlow:i,borderRadiusSM:l,motionDurationMid:s,cellHoverBg:c,lineWidth:f,lineType:h,colorPrimary:v,cellActiveWithRangeBg:d,colorTextLightSolid:p,controlHeightSM:m,cellRangeBorderColor:u,pickerCellBorderGap:g,cellHoverWithRangeBg:C,cellWidth:S,colorTextDisabled:D,cellBgDisabled:y}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'},[a]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:(0,T.bf)(r),borderRadius:l,transition:`background ${s}, border ${s}`},["&-range-hover-start, &-range-hover-end"]:{[a]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${t}-in-view), + &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-range-hover-start):not(${t}-range-hover-end)`]:{[a]:{background:c}},[`&-in-view${t}-today ${a}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,T.bf)(f)} ${h} ${v}`,borderRadius:l,content:'""'}},[`&-in-view${t}-in-range`]:{position:"relative","&::before":{background:d}},[`&-in-view${t}-selected ${a}, + &-in-view${t}-range-start ${a}, + &-in-view${t}-range-end ${a}`]:{color:p,background:v},[`&-in-view${t}-range-start:not(${t}-range-start-single), + &-in-view${t}-range-end:not(${t}-range-end-single)`]:{"&::before":{background:d}},[`&-in-view${t}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-hover-start:not(${t}-in-range):not(${t}-range-start):not(${t}-range-end), + &-in-view${t}-range-hover-end:not(${t}-in-range):not(${t}-range-start):not(${t}-range-end), + &-in-view${t}-range-hover-start${t}-range-start-single, + &-in-view${t}-range-hover-start${t}-range-start${t}-range-end${t}-range-end-near-hover, + &-in-view${t}-range-hover-end${t}-range-start${t}-range-end${t}-range-start-near-hover, + &-in-view${t}-range-hover-end${t}-range-end-single, + &-in-view${t}-range-hover:not(${t}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:m,borderTop:`${(0,T.bf)(f)} dashed ${u}`,borderBottom:`${(0,T.bf)(f)} dashed ${u}`,transform:"translateY(-50%)",transition:`all ${i}`,content:'""'}},[`&-range-hover-start::after, + &-range-hover-end::after, + &-range-hover::after`]:{insetInlineEnd:0,insetInlineStart:g},[`&-in-view${t}-in-range${t}-range-hover::before, + &-in-view${t}-in-range${t}-range-hover-start::before, + &-in-view${t}-in-range${t}-range-hover-end::before, + &-in-view${t}-range-start${t}-range-hover::before, + &-in-view${t}-range-end${t}-range-hover::before, + &-in-view${t}-range-start:not(${t}-range-start-single)${t}-range-hover-start::before, + &-in-view${t}-range-end:not(${t}-range-end-single)${t}-range-hover-end::before, + ${n}-panel + > :not(${n}-date-panel) + &-in-view${t}-in-range${t}-range-hover-start::before, + ${n}-panel + > :not(${n}-date-panel) + &-in-view${t}-in-range${t}-range-hover-end::before`]:{background:C},[`&-in-view${t}-range-start:not(${t}-range-start-single):not(${t}-range-end) ${a}`]:{borderStartStartRadius:l,borderEndStartRadius:l,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-end-single):not(${t}-range-start) ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l},[`&-range-hover${t}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${t}-range-hover:first-child::after, + tr > &-in-view${t}-range-hover-end:first-child::after, + &-in-view${t}-start${t}-range-hover-edge-start${t}-range-hover-edge-start-near-range::after, + &-in-view${t}-range-hover-edge-start:not(${t}-range-hover-edge-start-near-range)::after, + &-in-view${t}-range-hover-start::after`]:{insetInlineStart:e.calc(S).sub(r).div(2).equal(),borderInlineStart:`${(0,T.bf)(f)} dashed ${u}`,borderStartStartRadius:l,borderEndStartRadius:l},[`tr > &-in-view${t}-range-hover:last-child::after, + tr > &-in-view${t}-range-hover-start:last-child::after, + &-in-view${t}-end${t}-range-hover-edge-end${t}-range-hover-edge-end-near-range::after, + &-in-view${t}-range-hover-edge-end:not(${t}-range-hover-edge-end-near-range)::after, + &-in-view${t}-range-hover-end::after`]:{insetInlineEnd:e.calc(S).sub(r).div(2).equal(),borderInlineEnd:`${(0,T.bf)(f)} dashed ${u}`,borderStartEndRadius:l,borderEndEndRadius:l},"&-disabled":{color:D,pointerEvents:"none",[a]:{background:"transparent"},"&::before":{background:y}},[`&-disabled${t}-today ${a}::before`]:{borderColor:D}}},Ml=e=>{const{componentCls:n,pickerCellCls:t,pickerCellInnerCls:a,pickerYearMonthCellWidth:r,pickerControlIconSize:i,cellWidth:l,paddingSM:s,paddingXS:c,paddingXXS:f,colorBgContainer:h,lineWidth:v,lineType:d,borderRadiusLG:p,colorPrimary:m,colorTextHeading:u,colorSplit:g,pickerControlIconBorderWidth:C,colorIcon:S,textHeight:D,motionDurationMid:y,colorIconHover:$,fontWeightStrong:w,cellHeight:x,pickerCellPaddingVertical:I,colorTextDisabled:E,colorText:N,fontSize:A,cellHoverWithRangeBg:q,motionDurationSlow:z,withoutTimeCellHeight:ee,pickerQuarterPanelContentHeight:H,colorLink:j,colorLinkActive:J,colorLinkHover:Q,cellRangeBorderColor:W,borderRadiusSM:G,colorTextLightSolid:ae,cellHoverBg:fe,timeColumnHeight:ce,timeColumnWidth:xe,timeCellHeight:te,controlItemBgActive:ye,marginXXS:Re,pickerDatePanelPaddingHorizontal:Ye,pickerControlIconMargin:ve}=e,be=e.calc(l).mul(7).add(e.calc(Ye).mul(2)).equal(),we=e.calc(be).sub(e.calc(c).mul(2)).div(3).sub(e.pickerYearMonthCellWidth).sub(s).equal(),ne=e.calc(be).sub(e.calc(c).mul(2)).div(4).sub(e.pickerYearMonthCellWidth).equal();return{[n]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:h,border:`${(0,T.bf)(v)} ${d} ${g}`,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{direction:"rtl",[`${n}-prev-icon, + ${n}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${n}-next-icon, + ${n}-super-next-icon`]:{transform:"rotate(-135deg)"}}},[`&-decade-panel, + &-year-panel, + &-quarter-panel, + &-month-panel, + &-week-panel, + &-date-panel, + &-time-panel`]:{display:"flex",flexDirection:"column",width:be},"&-header":{display:"flex",padding:`0 ${(0,T.bf)(c)}`,color:u,borderBottom:`${(0,T.bf)(v)} ${d} ${g}`,"> *":{flex:"none"},button:{padding:0,color:S,lineHeight:(0,T.bf)(D),background:"transparent",border:0,cursor:"pointer",transition:`color ${y}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:A,"&:hover":{color:$}},"&-view":{flex:"auto",fontWeight:w,lineHeight:(0,T.bf)(D),button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},[`&-prev-icon, + &-next-icon, + &-super-prev-icon, + &-super-next-icon`]:{position:"relative",display:"inline-block",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:C,borderBlockEndWidth:0,borderInlineStartWidth:C,borderInlineEndWidth:0,content:'""'}},[`&-super-prev-icon, + &-super-next-icon`]:{"&::after":{position:"absolute",top:ve,insetInlineStart:ve,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:C,borderBlockEndWidth:0,borderInlineStartWidth:C,borderInlineEndWidth:0,content:'""'}},[`&-prev-icon, + &-super-prev-icon`]:{transform:"rotate(-45deg)"},[`&-next-icon, + &-super-next-icon`]:{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:x,fontWeight:"normal"},th:{height:e.calc(x).add(e.calc(I).mul(2)).equal(),color:N,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,T.bf)(I)} 0`,color:E,cursor:"pointer","&-in-view":{color:N}},kl(e)),[`&-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-start ${a}, + &-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-end ${a}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:q,transition:`all ${z}`,content:'""'}},[`&-date-panel + ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-start + ${a}::after`]:{insetInlineEnd:e.calc(l).sub(x).mul(-1).div(2).equal(),insetInlineStart:0},[`&-date-panel ${n}-cell-in-view${n}-cell-in-range${n}-cell-range-hover-end ${a}::after`]:{insetInlineEnd:0,insetInlineStart:e.calc(l).sub(x).mul(-1).div(2).equal()},[`&-range-hover${n}-range-start::after`]:{insetInlineEnd:"50%"},[`&-decade-panel, + &-year-panel, + &-quarter-panel, + &-month-panel`]:{[`${n}-content`]:{height:e.calc(ee).mul(4).equal()},[a]:{padding:`0 ${(0,T.bf)(c)}`}},"&-quarter-panel":{[`${n}-content`]:{height:H},[`${n}-cell-range-hover-start::after`]:{insetInlineStart:ne,borderInlineStart:`${(0,T.bf)(v)} dashed ${W}`,[`${n}-panel-rtl &`]:{insetInlineEnd:ne,borderInlineEnd:`${(0,T.bf)(v)} dashed ${W}`}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:ne,borderInlineEnd:`${(0,T.bf)(v)} dashed ${W}`,[`${n}-panel-rtl &`]:{insetInlineStart:ne,borderInlineStart:`${(0,T.bf)(v)} dashed ${W}`}}},[`&-panel ${n}-footer`]:{borderTop:`${(0,T.bf)(v)} ${d} ${g}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:(0,T.bf)(e.calc(D).sub(e.calc(v).mul(2)).equal()),textAlign:"center","&-extra":{padding:`0 ${(0,T.bf)(s)}`,lineHeight:(0,T.bf)(e.calc(D).sub(e.calc(v).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,T.bf)(v)} ${d} ${g}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:j,"&:hover":{color:Q},"&:active":{color:J},[`&${n}-today-btn-disabled`]:{color:E,cursor:"not-allowed"}},"&-decade-panel":{[a]:{padding:`0 ${(0,T.bf)(e.calc(c).div(2).equal())}`},[`${n}-cell::before`]:{display:"none"}},[`&-year-panel, + &-quarter-panel, + &-month-panel`]:{[`${n}-body`]:{padding:`0 ${(0,T.bf)(c)}`},[a]:{width:r},[`${n}-cell-range-hover-start::after`]:{borderStartStartRadius:G,borderEndStartRadius:G,borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:G,borderEndEndRadius:G}},[`${n}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:G,borderEndEndRadius:G,[`${n}-panel-rtl &`]:{borderStartStartRadius:G,borderEndStartRadius:G,borderStartEndRadius:0,borderEndEndRadius:0}}},[`&-year-panel, + &-month-panel`]:{[`${n}-cell-range-hover-start::after`]:{insetInlineStart:we,borderInlineStart:`${(0,T.bf)(v)} dashed ${W}`,[`${n}-panel-rtl &`]:{insetInlineEnd:we,borderInlineEnd:`${(0,T.bf)(v)} dashed ${W}`}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:we,borderInlineEnd:`${(0,T.bf)(v)} dashed ${W}`,[`${n}-panel-rtl &`]:{insetInlineStart:we,borderInlineStart:`${(0,T.bf)(v)} dashed ${W}`}}},"&-week-panel":{[`${n}-body`]:{padding:`${(0,T.bf)(c)} ${(0,T.bf)(s)}`},[`${n}-cell`]:{[`&:hover ${a}, + &-selected ${a}, + ${a}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${y}`},"&:first-child:before":{borderStartStartRadius:G,borderEndStartRadius:G},"&:last-child:before":{borderStartEndRadius:G,borderEndEndRadius:G}},["&:hover td"]:{"&:before":{background:fe}},[`&-range-start td, + &-range-end td, + &-selected td`]:{[`&${t}`]:{"&:before":{background:m},[`&${n}-cell-week`]:{color:new it.C(ae).setAlpha(.5).toHexString()},[a]:{color:ae}}},["&-range-hover td:before"]:{background:ye}}},"&-date-panel":{[`${n}-body`]:{padding:`${(0,T.bf)(c)} ${(0,T.bf)(Ye)}`},[`${n}-content`]:{width:e.calc(l).mul(7).equal(),th:{width:l,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${n}-time-panel`]:{borderInlineStart:`${(0,T.bf)(v)} ${d} ${g}`},[`${n}-date-panel, + ${n}-time-panel`]:{transition:`opacity ${z}`},"&-active":{[`${n}-date-panel, + ${n}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${n}-content`]:{display:"flex",flex:"auto",height:ce},"&-column":{flex:"1 0 auto",width:xe,margin:`${(0,T.bf)(f)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${y}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:4},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:e.calc(ce).sub(te).equal(),content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,T.bf)(v)} ${d} ${g}`},"&-active":{background:new it.C(ye).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${n}-time-panel-cell`]:{marginInline:Re,[`${n}-time-panel-cell-inner`]:{display:"block",width:e.calc(xe).sub(e.calc(Re).mul(2)).equal(),height:te,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(xe).sub(te).div(2).equal(),color:N,lineHeight:(0,T.bf)(te),borderRadius:G,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:fe}},"&-selected":{[`${n}-time-panel-cell-inner`]:{background:ye}},"&-disabled":{[`${n}-time-panel-cell-inner`]:{color:E,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${n}-time-panel-column:after`]:{height:e.calc(ce).sub(te).add(e.calc(f).mul(2)).equal()}}}},Zl=e=>{const{componentCls:n,colorBgContainer:t,colorError:a,errorActiveShadow:r,colorWarning:i,warningActiveShadow:l,colorErrorHover:s,colorWarningHover:c}=e;return{[`${n}:not(${n}-disabled):not([disabled])`]:{[`&${n}-status-error`]:{backgroundColor:t,borderColor:a,"&:hover":{borderColor:s},[`&${n}-focused, &:focus`]:Object.assign({},(0,xn.M1)((0,Mt.TS)(e,{activeBorderColor:a,activeShadow:r}))),[`${n}-active-bar`]:{background:a}},[`&${n}-status-warning`]:{backgroundColor:t,borderColor:i,"&:hover":{borderColor:c},[`&${n}-focused, &:focus`]:Object.assign({},(0,xn.M1)((0,Mt.TS)(e,{activeBorderColor:i,activeShadow:l}))),[`${n}-active-bar`]:{background:i}}}}},Il=e=>{const{componentCls:n,antCls:t,controlHeight:a,paddingInline:r,colorBgContainer:i,lineWidth:l,lineType:s,colorBorder:c,borderRadius:f,motionDurationMid:h,colorBgContainerDisabled:v,colorTextDisabled:d,colorTextPlaceholder:p,controlHeightLG:m,fontSizeLG:u,controlHeightSM:g,paddingInlineSM:C,paddingXS:S,marginXS:D,colorTextDescription:y,lineWidthBold:$,colorPrimary:w,motionDurationSlow:x,zIndexPopup:I,paddingXXS:E,paddingSM:N,textHeight:A,cellActiveWithRangeBg:q,colorPrimaryBorder:z,sizePopupArrow:ee,colorBgElevated:H,borderRadiusLG:j,boxShadowSecondary:J,borderRadiusSM:Q,colorSplit:W,cellHoverBg:G,presetsWidth:ae,presetsMaxWidth:fe,boxShadowPopoverArrow:ce,colorTextQuaternary:xe,fontHeight:te,fontHeightLG:ye,lineHeightLG:Re}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(e)),Zt(e,a,te,r)),{position:"relative",display:"inline-flex",alignItems:"center",background:i,lineHeight:1,border:`${(0,T.bf)(l)} ${s} ${c}`,borderRadius:f,transition:`border ${h}, box-shadow ${h}`,"&:hover":Object.assign({},(0,xn.pU)(e)),[`&-focused${n}`]:Object.assign({},(0,xn.M1)(e)),[`&${n}-disabled`]:{background:v,borderColor:c,cursor:"not-allowed",[`${n}-suffix`]:{color:xe}},[`&${n}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,xn.ik)(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,fontFamily:"inherit","&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${n}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:p}}},"&-large":Object.assign(Object.assign({},Zt(e,m,ye,r)),{[`${n}-input > input`]:{fontSize:u,lineHeight:Re}}),"&-small":Object.assign({},Zt(e,g,te,C)),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(S).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:D}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,background:i,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${h}, color ${h}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:u,color:d,fontSize:u,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:y},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-clear`]:{insetInlineEnd:r},"&:hover":{[`${n}-clear`]:{opacity:1}},[`${n}-active-bar`]:{bottom:e.calc(l).mul(-1).equal(),height:$,marginInlineStart:r,background:w,opacity:0,transition:`all ${x} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${(0,T.bf)(S)}`,lineHeight:1},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:C},[`${n}-active-bar`]:{marginInlineStart:C}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(e)),Ml(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:I,[`&${n}-dropdown-hidden`]:{display:"none"},[`&${n}-dropdown-placement-bottomLeft`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topRight, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:Tn.Qt},[`&${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomRight, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:Tn.fJ},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Tn.ly},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:Tn.Uw},[`${n}-panel > ${n}-time-panel`]:{paddingTop:E},[`${n}-ranges`]:{marginBottom:0,padding:`${(0,T.bf)(E)} ${(0,T.bf)(N)}`,overflow:"hidden",lineHeight:(0,T.bf)(e.calc(A).sub(e.calc(l).mul(2)).sub(e.calc(S).div(2)).equal()),textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${n}-preset > ${t}-tag-blue`]:{color:w,background:q,borderColor:z,cursor:"pointer"},[`${n}-ok`]:{marginInlineStart:"auto"}},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:e.calc(r).mul(1.5).equal(),transition:`left ${x} ease-out`},(0,Aa.W)(e,H,ce)),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:H,borderRadius:j,boxShadow:J,transition:`margin ${x}`,[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:ae,maxWidth:fe,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:S,borderInlineEnd:`${(0,T.bf)(l)} ${s} ${W}`,li:Object.assign(Object.assign({},kt.vS),{borderRadius:Q,paddingInline:S,paddingBlock:e.calc(g).sub(te).div(2).equal(),cursor:"pointer",transition:`all ${x}`,"+ li":{marginTop:D},"&:hover":{background:G}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${n}-panel`]:{borderWidth:`0 0 ${(0,T.bf)(l)}`},"&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${(0,T.bf)(e.calc(ee).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"rotate(180deg)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Tn.oN)(e,"slide-up"),(0,Tn.oN)(e,"slide-down"),(0,Ba.Fm)(e,"move-up"),(0,Ba.Fm)(e,"move-down")]},Yl=e=>{const{componentCls:n,controlHeightLG:t,paddingXXS:a,padding:r}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerYearMonthCellWidth:e.calc(t).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(t).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(a).add(e.calc(a).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(r).add(e.calc(a).div(2)).equal()}},Ol=e=>({cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new it.C(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new it.C(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:e.colorBgContainerDisabled,timeColumnWidth:e.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:e.controlHeightSM*1.5,cellHeight:e.controlHeightSM,textHeight:e.controlHeightLG,withoutTimeCellHeight:e.controlHeightLG*1.65}),Tl=e=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,xn.TM)(e)),Ol(e)),(0,Aa.w)(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50});var Wa=(0,Nl.I$)("DatePicker",e=>{const n=(0,Mt.TS)((0,xn.e5)(e),Yl(e));return[Il(n),Zl(n),(0,El.c)(e,{focusElCls:`${e.componentCls}-focused`})]},Tl);function Vl(e,n,t){return t!==void 0?t:n==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:n==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:n==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:n==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:n==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Hl(e,n,t){return t!==void 0?t:n==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:n==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:n==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:n==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:n==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function It(e,n){const t={adjustX:1,adjustY:1};switch(n){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:t};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:t};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:t};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:t};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:t}}}function Ll(e){return e?Array.isArray(e)?e:[e]:[]}function ct(e){const{format:n,picker:t,showHour:a,showMinute:r,showSecond:i,use12Hours:l}=e,s=Ll(n)[0],c=Object.assign({},e);return n&&Array.isArray(n)&&(c.format=s),s&&typeof s=="string"&&(!s.includes("s")&&i===void 0&&(c.showSecond=!1),!s.includes("m")&&r===void 0&&(c.showMinute=!1),!s.includes("H")&&!s.includes("h")&&!s.includes("K")&&!s.includes("k")&&a===void 0&&(c.showHour=!1),(s.includes("a")||s.includes("A"))&&l===void 0&&(c.use12Hours=!0)),t==="time"?c:(typeof s=="function"&&delete c.format,{showTime:c})}function Fa(e,n,t){if(e===!1)return!1;const a={clearIcon:n!=null?n:t};return typeof e=="object"?Object.assign(Object.assign({},a),e):a}var Bl=R(10951);function Al(e){return o.createElement(Bl.ZP,Object.assign({size:"small",type:"primary"},e))}var ja={button:Al},Ua=R(76393),za=R(84477),Wl=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var r;const{prefixCls:i,getPopupContainer:l,className:s,style:c,placement:f,size:h,disabled:v,bordered:d=!0,placeholder:p,popupClassName:m,dropdownClassName:u,status:g,clearIcon:C,allowClear:S,rootClassName:D}=t,y=Wl(t,["prefixCls","getPopupContainer","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),$=o.useRef(null),{getPrefixCls:w,direction:x,getPopupContainer:I,rangePicker:E}=(0,o.useContext)(Ia.E_),N=w("picker",i),{compactSize:A,compactItemClassnames:q}=(0,Ha.ri)(N,x),{format:z,showTime:ee,picker:H}=t,j=w(),J=(0,za.Z)(N),[Q,W]=Wa(N,J),G=Object.assign(Object.assign({},ee?ct(Object.assign({format:z,picker:H},ee)):{}),H==="time"?ct(Object.assign(Object.assign({format:z},t),{picker:H})):{}),ae=(0,Oa.Z)(ne=>{var Ee;return(Ee=h!=null?h:A)!==null&&Ee!==void 0?Ee:ne}),fe=o.useContext(Ya.Z),ce=v!=null?v:fe,xe=(0,o.useContext)(Ta.aM),{hasFeedback:te,status:ye,feedbackIcon:Re}=xe,Ye=o.createElement(o.Fragment,null,H==="time"?o.createElement(_t,null):o.createElement(Jt,null),te&&Re);(0,o.useImperativeHandle)(a,()=>({focus:()=>{var ne;return(ne=$.current)===null||ne===void 0?void 0:ne.focus()},blur:()=>{var ne;return(ne=$.current)===null||ne===void 0?void 0:ne.blur()}}));const[ve]=(0,Va.Z)("Calendar",La.Z),be=Object.assign(Object.assign({},ve),t.locale),[we]=(0,Ua.Cn)("DatePicker",(r=t.popupStyle)===null||r===void 0?void 0:r.zIndex);return Q(o.createElement(Pl,Object.assign({separator:o.createElement("span",{"aria-label":"to",className:`${N}-separator`},o.createElement(Xr,null)),disabled:ce,ref:$,dropdownAlign:It(x,f),placeholder:Hl(be,H,p),suffixIcon:Ye,prevIcon:o.createElement("span",{className:`${N}-prev-icon`}),nextIcon:o.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${j}-slide-up`},y,G,{className:he()({[`${N}-${ae}`]:ae,[`${N}-borderless`]:!d},(0,lt.Z)(N,(0,lt.F)(ye,g),te),W,q,s,E==null?void 0:E.className,J,D),style:Object.assign(Object.assign({},E==null?void 0:E.style),c),locale:be.lang,prefixCls:N,getPopupContainer:l||I,generateConfig:e,components:ja,direction:x,dropdownClassName:he()(W,m||u,J,D),popupStyle:Object.assign(Object.assign({},t.popupStyle),{zIndex:we}),allowClear:Fa(S,C,o.createElement(ea.Z,null))})))})}var jl=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var m;const{prefixCls:u,getPopupContainer:g,style:C,className:S,rootClassName:D,size:y,bordered:$=!0,placement:w,placeholder:x,popupClassName:I,dropdownClassName:E,disabled:N,status:A,clearIcon:q,allowClear:z}=d,ee=jl(d,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:H,direction:j,getPopupContainer:J,[h]:Q}=(0,o.useContext)(Ia.E_),W=H("picker",u),{compactSize:G,compactItemClassnames:ae}=(0,Ha.ri)(W,j),fe=o.useRef(null),{format:ce,showTime:xe}=d,te=(0,za.Z)(W),[ye,Re]=Wa(W,te);(0,o.useImperativeHandle)(p,()=>({focus:()=>{var le;return(le=fe.current)===null||le===void 0?void 0:le.focus()},blur:()=>{var le;return(le=fe.current)===null||le===void 0?void 0:le.blur()}}));const Ye={showToday:!0};let ve={};c&&(ve.picker=c);const be=c||d.picker;ve=Object.assign(Object.assign(Object.assign({},ve),xe?ct(Object.assign({format:ce,picker:be},xe)):{}),be==="time"?ct(Object.assign(Object.assign({format:ce},d),{picker:be})):{});const we=H(),ne=(0,Oa.Z)(le=>{var Qe;return(Qe=y!=null?y:G)!==null&&Qe!==void 0?Qe:le}),Ee=o.useContext(Ya.Z),L=N!=null?N:Ee,pe=(0,o.useContext)(Ta.aM),{hasFeedback:ue,status:De,feedbackIcon:$e}=pe,ge=o.createElement(o.Fragment,null,be==="time"?o.createElement(_t,null):o.createElement(Jt,null),ue&&$e),[Ke]=(0,Va.Z)("DatePicker",La.Z),tn=Object.assign(Object.assign({},Ke),d.locale),[Be]=(0,Ua.Cn)("DatePicker",(m=d.popupStyle)===null||m===void 0?void 0:m.zIndex);return ye(o.createElement(Rl,Object.assign({ref:fe,placeholder:Vl(tn,be,x),suffixIcon:ge,dropdownAlign:It(j,w),prevIcon:o.createElement("span",{className:`${W}-prev-icon`}),nextIcon:o.createElement("span",{className:`${W}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${W}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${W}-super-next-icon`}),transitionName:`${we}-slide-up`},Ye,ee,ve,{locale:tn.lang,className:he()({[`${W}-${ne}`]:ne,[`${W}-borderless`]:!$},(0,lt.Z)(W,(0,lt.F)(De,A),ue),Re,ae,Q==null?void 0:Q.className,S,te,D),style:Object.assign(Object.assign({},Q==null?void 0:Q.style),C),prefixCls:W,getPopupContainer:g||J,generateConfig:e,components:ja,direction:j,disabled:L,dropdownClassName:he()(Re,te,D,I||E),popupStyle:Object.assign(Object.assign({},d.popupStyle),{zIndex:Be}),allowClear:Fa(z,q,o.createElement(ea.Z,null))})))});return f&&(v.displayName=f),v}const t=n(),a=n("week","WeekPicker"),r=n("month","MonthPicker"),i=n("year","YearPicker"),l=n("time","TimePicker"),s=n("quarter","QuarterPicker");return{DatePicker:t,WeekPicker:a,MonthPicker:r,YearPicker:i,TimePicker:l,QuarterPicker:s}}const Li=null;function zl(e){const{DatePicker:n,WeekPicker:t,MonthPicker:a,YearPicker:r,TimePicker:i,QuarterPicker:l}=Ul(e),s=Fl(e),c=n;return c.WeekPicker=t,c.MonthPicker=a,c.YearPicker=r,c.RangePicker=s,c.TimePicker=i,c.QuarterPicker=l,c}var Ka=zl;const Vn=Ka(Br);function Qa(e){const n=It(e.direction,e.placement);return n.overflow.adjustY=!1,n.overflow.adjustX=!1,Object.assign(Object.assign({},e),{dropdownAlign:n})}const Kl=(0,qt.Z)(Vn,"picker",null,Qa);Vn._InternalPanelDoNotUseOrYouWillBeFired=Kl;const Ql=(0,qt.Z)(Vn.RangePicker,"picker",null,Qa);Vn._InternalRangePanelDoNotUseOrYouWillBeFired=Ql,Vn.generatePicker=Ka;var Gl=Vn}}]); diff --git a/7609.d9008f64.async.js b/7609.d9008f64.async.js new file mode 100644 index 00000000..9f0a4999 --- /dev/null +++ b/7609.d9008f64.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7609],{37519:function(j,p){var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};p.Z=n},29514:function(j,p,n){var o=n(93264),f=n(79685),h=n(90462),y=n(64507),m=function(S,O){return f.createElement(y.Z,(0,o.Z)((0,o.Z)({},S),{},{ref:O,icon:h.Z}))};m.displayName="DownOutlined",p.Z=f.forwardRef(m)},14604:function(j,p,n){n.d(p,{Z:function(){return S}});var o=n(93264),f=n(79685),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},y=h,m=n(64507),$=function(z,I){return f.createElement(m.Z,(0,o.Z)((0,o.Z)({},z),{},{ref:I,icon:y}))};$.displayName="LikeOutlined";var S=f.forwardRef($)},63197:function(j,p,n){var o=n(93264),f=n(79685),h=n(41009),y=n(64507),m=function(S,O){return f.createElement(y.Z,(0,o.Z)((0,o.Z)({},S),{},{ref:O,icon:h.Z}))};m.displayName="LoadingOutlined",p.Z=f.forwardRef(m)},85473:function(j,p,n){n.d(p,{Z:function(){return S}});var o=n(93264),f=n(79685),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},y=h,m=n(64507),$=function(z,I){return f.createElement(m.Z,(0,o.Z)((0,o.Z)({},z),{},{ref:I,icon:y}))};$.displayName="MessageOutlined";var S=f.forwardRef($)},45524:function(j,p,n){n.d(p,{Z:function(){return S}});var o=n(93264),f=n(79685),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},y=h,m=n(64507),$=function(z,I){return f.createElement(m.Z,(0,o.Z)((0,o.Z)({},z),{},{ref:I,icon:y}))};$.displayName="StarOutlined";var S=f.forwardRef($)},77032:function(j,p,n){var o=n(93264),f=n(79685),h=n(37519),y=n(64507),m=function(S,O){return f.createElement(y.Z,(0,o.Z)((0,o.Z)({},S),{},{ref:O,icon:h.Z}))};m.displayName="UpOutlined",p.Z=f.forwardRef(m)},18283:function(j,p,n){n.d(p,{Z:function(){return s}});var o=n(79685),f=n(68591),h=n.n(f),y=n(3139),m=n(99248),$=n(73064),S=n(57196),O=n(55095),z=function(e,l){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&l.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:l,className:a,hoverable:r=!0}=e,i=z(e,["prefixCls","className","hoverable"]);const{getPrefixCls:b}=o.useContext(m.E_),v=b("card",l),M=h()(`${v}-grid`,a,{[`${v}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},i,{className:M}))},c=n(26477),T=n(4614),k=n(44244),G=n(25830);const K=e=>{const{antCls:l,componentCls:a,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:b}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,c.bf)(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0`},(0,T.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},T.vS),{[` + > ${a}-typography, + > ${a}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${l}-tabs-top`]:{clear:"both",marginBottom:b,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},X=e=>{const{cardPaddingBase:l,colorBorderSecondary:a,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:l,border:0,borderRadius:0,boxShadow:` + ${(0,c.bf)(i)} 0 0 0 ${a}, + 0 ${(0,c.bf)(i)} 0 0 ${a}, + ${(0,c.bf)(i)} ${(0,c.bf)(i)} 0 0 ${a}, + ${(0,c.bf)(i)} 0 0 0 ${a} inset, + 0 ${(0,c.bf)(i)} 0 0 ${a} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ee=e=>{const{componentCls:l,iconCls:a,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:b,actionsBg:v}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:v,borderTop:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${b}`,display:"flex",borderRadius:`0 0 ${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)}`},(0,T.dF)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${l}-btn), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,c.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:i,lineHeight:(0,c.bf)(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${b}`}}})},me=e=>Object.assign(Object.assign({margin:`${(0,c.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,T.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},T.vS),"&-description":{color:e.colorTextDescription}}),te=e=>{const{componentCls:l,cardPaddingBase:a,colorFillAlter:r}=e;return{[`${l}-head`]:{padding:`0 ${(0,c.bf)(a)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${l}-body`]:{padding:`${(0,c.bf)(e.padding)} ${(0,c.bf)(a)}`}}},ae=e=>{const{componentCls:l}=e;return{overflow:"hidden",[`${l}-body`]:{userSelect:"none"}}},ne=e=>{const{antCls:l,componentCls:a,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:b,boxShadowTertiary:v,cardPaddingBase:M,extraColor:C}=e;return{[a]:Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:v},[`${a}-head`]:K(e),[`${a}-extra`]:{marginInlineStart:"auto",color:C,fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:M,borderRadius:` 0 0 ${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)}`},(0,T.dF)()),[`${a}-grid`]:X(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${l}-image-mask`]:{borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0`}},[`${a}-actions`]:ee(e),[`${a}-meta`]:me(e)}),[`${a}-bordered`]:{border:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${b}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${a}-contain-grid`]:{borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0 `,[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{minHeight:0,[`${a}-head-title, ${a}-extra`]:{paddingTop:i}}},[`${a}-type-inner`]:te(e),[`${a}-loading`]:ae(e),[`${a}-rtl`]:{direction:"rtl"}}},re=e=>{const{componentCls:l,cardPaddingSM:a,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${l}-small`]:{[`> ${l}-head`]:{minHeight:r,padding:`0 ${(0,c.bf)(a)}`,fontSize:i,[`> ${l}-head-wrapper`]:{[`> ${l}-extra`]:{fontSize:e.fontSize}}},[`> ${l}-body`]:{padding:a}},[`${l}-small${l}-contain-tabs`]:{[`> ${l}-head`]:{[`${l}-head-title, ${l}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},oe=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var W=(0,k.I$)("Card",e=>{const l=(0,G.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[ne(l),re(l)]},oe),Q=function(e,l){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&l.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:l,actions:a=[]}=e;return o.createElement("ul",{className:`${l}-actions`},a.map((r,i)=>{const b=`action-${i}`;return o.createElement("li",{style:{width:`${100/a.length}%`},key:b},o.createElement("span",null,r))}))};var J=o.forwardRef((e,l)=>{const{prefixCls:a,className:r,rootClassName:i,style:b,extra:v,headStyle:M={},bodyStyle:C={},title:x,loading:D,bordered:N=!0,size:E,type:H,cover:U,actions:w,tabList:Z,children:R,activeTabKey:Y,defaultActiveTabKey:P,tabBarExtraContent:se,hoverable:ce,tabProps:de={}}=e,_=Q(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:ge,direction:ue,card:B}=o.useContext(m.E_),fe=A=>{var L;(L=e.onTabChange)===null||L===void 0||L.call(e,A)},q=o.useMemo(()=>{let A=!1;return o.Children.forEach(R,L=>{L&&L.type&&L.type===V&&(A=!0)}),A},[R]),u=ge("card",a),[ye,Ce]=W(u),$e=o.createElement(S.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},R),ve=Y!==void 0,Se=Object.assign(Object.assign({},de),{[ve?"activeKey":"defaultActiveKey"]:ve?Y:P,tabBarExtraContent:se});let pe;const F=(0,$.Z)(E),Oe=!F||F==="default"?"large":F,he=Z?o.createElement(O.Z,Object.assign({size:Oe},Se,{className:`${u}-head-tabs`,onChange:fe,items:Z.map(A=>{var{tab:L}=A,Be=Q(A,["tab"]);return Object.assign({label:L},Be)})})):null;(x||v||he)&&(pe=o.createElement("div",{className:`${u}-head`,style:M},o.createElement("div",{className:`${u}-head-wrapper`},x&&o.createElement("div",{className:`${u}-head-title`},x),v&&o.createElement("div",{className:`${u}-extra`},v)),he));const xe=U?o.createElement("div",{className:`${u}-cover`},U):null,Ee=o.createElement("div",{className:`${u}-body`,style:C},D?$e:R),Pe=w&&w.length?o.createElement(le,{prefixCls:u,actions:w}):null,Te=(0,y.Z)(_,["onTabChange"]),Me=h()(u,B==null?void 0:B.className,{[`${u}-loading`]:D,[`${u}-bordered`]:N,[`${u}-hoverable`]:ce,[`${u}-contain-grid`]:q,[`${u}-contain-tabs`]:Z&&Z.length,[`${u}-${F}`]:F,[`${u}-type-${H}`]:!!H,[`${u}-rtl`]:ue==="rtl"},r,i,Ce),ze=Object.assign(Object.assign({},B==null?void 0:B.style),b);return ye(o.createElement("div",Object.assign({ref:l},Te,{className:Me,style:ze}),pe,xe,Ee,Pe))}),ie=function(e,l){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&l.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:l,className:a,avatar:r,title:i,description:b}=e,v=ie(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:M}=o.useContext(m.E_),C=M("card",l),x=h()(`${C}-meta`,a),D=r?o.createElement("div",{className:`${C}-meta-avatar`},r):null,N=i?o.createElement("div",{className:`${C}-meta-title`},i):null,E=b?o.createElement("div",{className:`${C}-meta-description`},b):null,H=N||E?o.createElement("div",{className:`${C}-meta-detail`},N,E):null;return o.createElement("div",Object.assign({},v,{className:x}),D,H)};const g=J;g.Grid=V,g.Meta=d;var s=g},90936:function(j,p,n){n.d(p,{Z:function(){return ie}});var o=n(79685),f=n(99992),h=n(68591),y=n.n(h),m=n(28726),$=n(37770),S=n(42480),O=n(99248),z=n(26477),I=n(73838),V=n(4614),c=n(25830),T=n(44244);const k=t=>{const{paddingXXS:d,lineWidth:g,tagPaddingHorizontal:s,componentCls:e,calc:l}=t,a=l(s).sub(g).equal(),r=l(d).sub(g).equal();return{[e]:Object.assign(Object.assign({},(0,V.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:a,fontSize:t.tagFontSize,lineHeight:t.tagLineHeight,whiteSpace:"nowrap",background:t.defaultBg,border:`${(0,z.bf)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",position:"relative",[`&${e}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.defaultColor},[`${e}-close-icon`]:{marginInlineStart:r,fontSize:t.tagIconSize,color:t.colorTextDescription,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${e}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${t.iconCls}-close, ${t.iconCls}-close:hover`]:{color:t.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${e}-checkable-checked):hover`]:{color:t.colorPrimary,backgroundColor:t.colorFillSecondary},"&:active, &-checked":{color:t.colorTextLightSolid},"&-checked":{backgroundColor:t.colorPrimary,"&:hover":{backgroundColor:t.colorPrimaryHover}},"&:active":{backgroundColor:t.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${t.iconCls} + span, > span + ${t.iconCls}`]:{marginInlineStart:a}}),[`${e}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}},G=t=>{const{lineWidth:d,fontSizeIcon:g,calc:s}=t,e=t.fontSizeSM;return(0,c.TS)(t,{tagFontSize:e,tagLineHeight:(0,z.bf)(s(t.lineHeightSM).mul(e).equal()),tagIconSize:s(g).sub(s(d).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary})},K=t=>({defaultBg:new I.C(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var X=(0,T.I$)("Tag",t=>{const d=G(t);return k(d)},K),ee=function(t,d){var g={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&d.indexOf(s)<0&&(g[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,s=Object.getOwnPropertySymbols(t);e{const{prefixCls:g,style:s,className:e,checked:l,onChange:a,onClick:r}=t,i=ee(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:b,tag:v}=o.useContext(O.E_),M=E=>{a==null||a(!l),r==null||r(E)},C=b("tag",g),[x,D]=X(C),N=y()(C,`${C}-checkable`,{[`${C}-checkable-checked`]:l},v==null?void 0:v.className,e,D);return x(o.createElement("span",Object.assign({},i,{ref:d,style:Object.assign(Object.assign({},s),v==null?void 0:v.style),className:N,onClick:M})))}),ae=n(57069);const ne=t=>(0,ae.Z)(t,(d,g)=>{let{textColor:s,lightBorderColor:e,lightColor:l,darkColor:a}=g;return{[`${t.componentCls}-${d}`]:{color:s,background:l,borderColor:e,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,T.bk)(["Tag","preset"],t=>{const d=G(t);return ne(d)},K);function oe(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const W=(t,d,g)=>{const s=oe(g);return{[`${t.componentCls}-${d}`]:{color:t[`color${g}`],background:t[`color${s}Bg`],borderColor:t[`color${s}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Q=(0,T.bk)(["Tag","status"],t=>{const d=G(t);return[W(d,"success","Success"),W(d,"processing","Info"),W(d,"error","Error"),W(d,"warning","Warning")]},K),le=function(t,d){var g={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&d.indexOf(s)<0&&(g[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,s=Object.getOwnPropertySymbols(t);e{const{prefixCls:g,className:s,rootClassName:e,style:l,children:a,icon:r,color:i,onClose:b,closeIcon:v,closable:M,bordered:C=!0}=t,x=le(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:D,direction:N,tag:E}=o.useContext(O.E_),[H,U]=o.useState(!0);o.useEffect(()=>{"visible"in x&&U(x.visible)},[x.visible]);const w=(0,m.o2)(i),Z=(0,m.yT)(i),R=w||Z,Y=Object.assign(Object.assign({backgroundColor:i&&!R?i:void 0},E==null?void 0:E.style),l),P=D("tag",g),[se,ce]=X(P),de=y()(P,E==null?void 0:E.className,{[`${P}-${i}`]:R,[`${P}-has-color`]:i&&!R,[`${P}-hidden`]:!H,[`${P}-rtl`]:N==="rtl",[`${P}-borderless`]:!C},s,e,ce),_=u=>{u.stopPropagation(),b==null||b(u),!u.defaultPrevented&&U(!1)},[,ge]=(0,$.Z)(M,v,u=>u===null?o.createElement(f.Z,{className:`${P}-close-icon`,onClick:_}):o.createElement("span",{className:`${P}-close-icon`,onClick:_},u),null,!1),ue=typeof x.onClick=="function"||a&&a.type==="a",B=r||null,fe=B?o.createElement(o.Fragment,null,B,a&&o.createElement("span",null,a)):a,q=o.createElement("span",Object.assign({},x,{ref:d,className:de,style:Y}),fe,ge,w&&o.createElement(re,{key:"preset",prefixCls:P}),Z&&o.createElement(Q,{key:"status",prefixCls:P}));return se(ue?o.createElement(S.Z,{component:"Tag"},q):q)},J=o.forwardRef(be);J.CheckableTag=te;var ie=J}}]); diff --git a/7688.b8bdde0d.async.js b/7688.b8bdde0d.async.js new file mode 100644 index 00000000..cd1e61c0 --- /dev/null +++ b/7688.b8bdde0d.async.js @@ -0,0 +1,9 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7688],{43241:function($e,se,c){var H=c(49425);se.Z=H.Z},73952:function($e,se,c){c.d(se,{Z:function(){return an}});var H=c(57963),ke=c(68591),J=c.n(ke),Se=c(96990),o=c(79685),Ie=c(4477),N=c(56107);function de(e){const[t,n]=o.useState(e);return o.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}var ae=c(26477),Ee=c(4614),Fe=c(41606),_e=c(95178),et=c(25830),we=c(44244),tt=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}};const nt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ae.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, + input[type='radio']:focus, + input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,ae.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Oe=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rt=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(e)),nt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Oe(e,e.controlHeightSM)),"&-large":Object.assign({},Oe(e,e.controlHeightLG))})}},ot=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:l,labelRequiredMarkColor:a,labelColor:i,labelFontSize:d,labelHeight:m,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:y,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},(0,Ee.Wf)(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${l}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:m,color:i,fontSize:d,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:y},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${l}-col-'"]):not([class*="' ${l}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Fe.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},lt=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},at=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ie=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),it=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ie(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},st=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, + .${r}-col-24${n}-label, + .${r}-col-xl-24${n}-label`]:ie(e),[`@media (max-width: ${(0,ae.bf)(e.screenXSMax)})`]:[it(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:ie(e)}}],[`@media (max-width: ${(0,ae.bf)(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:ie(e)}},[`@media (max-width: ${(0,ae.bf)(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:ie(e)}},[`@media (max-width: ${(0,ae.bf)(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:ie(e)}}}},ct=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),Me=(e,t)=>(0,et.TS)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var ge=(0,we.I$)("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=Me(e,n);return[rt(r),ot(r),tt(r),lt(r),at(r),st(r),(0,_e.Z)(r),Fe.kr]},ct,{order:-1e3}),he=c(84477);const Ne=[];function pe(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}var Pe=e=>{let{help:t,helpStatus:n,errors:r=Ne,warnings:l=Ne,className:a,fieldId:i,onVisibleChanged:d}=e;const{prefixCls:m}=o.useContext(N.Rk),u=`${m}-item-explain`,y=(0,he.Z)(m),[h,P]=ge(m,y),I=(0,o.useMemo)(()=>(0,Ie.Z)(m),[m]),b=de(r),E=de(l),O=o.useMemo(()=>t!=null?[pe(t,"help",n)]:[].concat((0,H.Z)(b.map((s,g)=>pe(s,"error","error",g))),(0,H.Z)(E.map((s,g)=>pe(s,"warning","warning",g)))),[t,n,b,E]),S={};return i&&(S.id=`${i}_help`),h(o.createElement(Se.ZP,{motionDeadline:I.motionDeadline,motionName:`${m}-show-help`,visible:!!O.length,onVisibleChanged:d},s=>{const{className:g,style:C}=s;return o.createElement("div",Object.assign({},S,{className:J()(u,g,y,a,P),style:C,role:"alert"}),o.createElement(Se.V4,Object.assign({keys:O},(0,Ie.Z)(m),{motionName:`${m}-show-help-item`,component:!1}),v=>{const{key:x,error:R,errorStatus:F,className:A,style:L}=v;return o.createElement("div",{key:x,className:J()(A,{[`${u}-${F}`]:F}),style:L},R)}))}))},re=c(26341),be=c(99248),je=c(456),dt=c(63833),mt=c(73064);const Re=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Le=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ve=(e,t)=>{if(e.clientHeight{const l=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch(i){return null}})(r);return!!l&&(l.clientHeightat||a>e&&i=t&&d>=n?a-e-r:i>t&&dn?i-t+l:0,ut=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},Te=(e,t)=>{var n,r,l,a;if(typeof document=="undefined")return[];const{scrollMode:i,block:d,inline:m,boundary:u,skipOverflowHiddenElements:y}=t,h=typeof u=="function"?u:T=>T!==u;if(!Re(e))throw new TypeError("Invalid target");const P=document.scrollingElement||document.documentElement,I=[];let b=e;for(;Re(b)&&h(b);){if(b=ut(b),b===P){I.push(b);break}b!=null&&b===document.body&&ve(b)&&!ve(document.documentElement)||b!=null&&ve(b,y)&&I.push(b)}const E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,O=(a=(l=window.visualViewport)==null?void 0:l.height)!=null?a:innerHeight,{scrollX:S,scrollY:s}=window,{height:g,width:C,top:v,right:x,bottom:R,left:F}=e.getBoundingClientRect(),{top:A,right:L,bottom:K,left:G}=(T=>{const f=window.getComputedStyle(T);return{top:parseFloat(f.scrollMarginTop)||0,right:parseFloat(f.scrollMarginRight)||0,bottom:parseFloat(f.scrollMarginBottom)||0,left:parseFloat(f.scrollMarginLeft)||0}})(e);let M=d==="start"||d==="nearest"?v-A:d==="end"?R+K:v+g/2-A+K,p=m==="center"?F+C/2-G+L:m==="end"?x+L:F-G;const B=[];for(let T=0;T=0&&F>=0&&R<=O&&x<=E&&v>=_&&R<=Q&&F>=ne&&x<=Y)return B;const z=getComputedStyle(f),D=parseInt(z.borderLeftWidth,10),$=parseInt(z.borderTopWidth,10),V=parseInt(z.borderRightWidth,10),j=parseInt(z.borderBottomWidth,10);let Z=0,W=0;const U="offsetWidth"in f?f.offsetWidth-f.clientWidth-D-V:0,ee="offsetHeight"in f?f.offsetHeight-f.clientHeight-$-j:0,te="offsetWidth"in f?f.offsetWidth===0?0:X/f.offsetWidth:0,w="offsetHeight"in f?f.offsetHeight===0?0:q/f.offsetHeight:0;if(P===f)Z=d==="start"?M:d==="end"?M-O:d==="nearest"?me(s,s+O,O,$,j,s+M,s+M+g,g):M-O/2,W=m==="start"?p:m==="center"?p-E/2:m==="end"?p-E:me(S,S+E,E,D,V,S+p,S+p+C,C),Z=Math.max(0,Z+s),W=Math.max(0,W+S);else{Z=d==="start"?M-_-$:d==="end"?M-Q+j+ee:d==="nearest"?me(_,Q,q,$,j+ee,M,M+g,g):M-(_+q/2)+ee/2,W=m==="start"?p-ne-D:m==="center"?p-(ne+X/2)+U/2:m==="end"?p-Y+V+U:me(ne,Y,X,D,V+U,p,p+C,C);const{scrollLeft:oe,scrollTop:ue}=f;Z=w===0?0:Math.max(0,Math.min(ue+Z/w,f.scrollHeight-q/w+ee)),W=te===0?0:Math.max(0,Math.min(oe+W/te,f.scrollWidth-X/te+U)),M+=ue-Z,p+=oe-W}B.push({el:f,top:Z,left:W})}return B},ft=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function gt(e,t){if(!e.isConnected||!(l=>{let a=l;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(l=>{const a=window.getComputedStyle(l);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((l=>typeof l=="object"&&typeof l.behavior=="function")(t))return t.behavior(Te(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:l,top:a,left:i}of Te(e,ft(t))){const d=a-n.top+n.bottom,m=i-n.left+n.right;l.scroll({top:d,left:m,behavior:r})}}const ht=["parentNode"],pt="form_item";function ce(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Ve(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:ht.includes(n)?`${pt}_${n}`:n}function Ze(e,t,n,r,l,a){let i=r;return a!==void 0?i=a:n.validating?i="validating":e.length?i="error":t.length?i="warning":(n.touched||l&&n.validated)&&(i="success"),i}function We(e){return ce(e).join("_")}function He(e){const[t]=(0,re.cI)(),n=o.useRef({}),r=o.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:l=>a=>{const i=We(l);a?n.current[i]=a:delete n.current[i]}},scrollToField:function(l){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=ce(l),d=Ve(i,r.__INTERNAL__.name),m=d?document.getElementById(d):null;m&>(m,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:l=>{const a=We(l);return n.current[a]}}),[e,t]);return[r]}var bt=c(36142),vt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const n=o.useContext(je.Z),{getPrefixCls:r,direction:l,form:a}=o.useContext(be.E_),{prefixCls:i,className:d,rootClassName:m,size:u,disabled:y=n,form:h,colon:P,labelAlign:I,labelWrap:b,labelCol:E,wrapperCol:O,hideRequiredMark:S,layout:s="horizontal",scrollToFirstError:g,requiredMark:C,onFinishFailed:v,name:x,style:R,feedbackIcons:F}=e,A=vt(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),L=(0,mt.Z)(u),K=o.useContext(bt.Z),G=(0,o.useMemo)(()=>C!==void 0?C:S?!1:a&&a.requiredMark!==void 0?a.requiredMark:!0,[S,C,a]),M=P!=null?P:a==null?void 0:a.colon,p=r("form",i),B=(0,he.Z)(p),[T,f]=ge(p,B),q=J()(p,`${p}-${s}`,{[`${p}-hide-required-mark`]:G===!1,[`${p}-rtl`]:l==="rtl",[`${p}-${L}`]:L},B,f,a==null?void 0:a.className,d,m),[X]=He(h),{__INTERNAL__:_}=X;_.name=x;const Y=(0,o.useMemo)(()=>({name:x,labelAlign:I,labelCol:E,labelWrap:b,wrapperCol:O,vertical:s==="vertical",colon:M,requiredMark:G,itemRef:_.itemRef,form:X,feedbackIcons:F}),[x,I,E,O,s,M,G,X,F]);o.useImperativeHandle(t,()=>X);const Q=(z,D)=>{if(z){let $={block:"nearest"};typeof z=="object"&&($=z),X.scrollToField(D,$)}},ne=z=>{if(v==null||v(z),z.errorFields.length){const D=z.errorFields[0].name;if(g!==void 0){Q(g,D);return}a&&a.scrollToFirstError!==void 0&&Q(a.scrollToFirstError,D)}};return T(o.createElement(je.n,{disabled:y},o.createElement(dt.Z.Provider,{value:L},o.createElement(N.RV,{validateMessages:K},o.createElement(N.q3.Provider,{value:Y},o.createElement(re.ZP,Object.assign({id:x},A,{name:x,onFinishFailed:ne,form:X,style:Object.assign(Object.assign({},a==null?void 0:a.style),R),className:q})))))))};var Ct=o.forwardRef(yt),xt=c(32065),ze=c(52401),De=c(23196),$t=c(50245),St=c(89259);function It(e){if(typeof e=="function")return e;const t=(0,St.Z)(e);return t.length<=1?t[0]:t}const Ae=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,o.useContext)(N.aM);return{status:e,errors:t,warnings:n}};Ae.Context=N.aM;var Et=Ae,Be=c(54272);function Ft(e){const[t,n]=o.useState(e),r=(0,o.useRef)(null),l=(0,o.useRef)([]),a=(0,o.useRef)(!1);o.useEffect(()=>(a.current=!1,()=>{a.current=!0,Be.Z.cancel(r.current),r.current=null}),[]);function i(d){a.current||(r.current===null&&(l.current=[],r.current=(0,Be.Z)(()=>{r.current=null,n(m=>{let u=m;return l.current.forEach(y=>{u=y(u)}),u})})),l.current.push(d))}return[t,i]}function wt(){const{itemRef:e}=o.useContext(N.q3),t=o.useRef({});function n(r,l){const a=l&&typeof l=="object"&&l.ref,i=r.join("_");return(t.current.name!==i||t.current.originRef!==a)&&(t.current.name=i,t.current.originRef=a,t.current.ref=(0,ze.sQ)(e(r),a)),t.current.ref}return n}var Ot=c(46222),Mt=c(79269),Nt=c(3139),Pt=c(27634),Xe=c(49425);const jt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var Rt=(0,we.bk)(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=Me(e,n);return[jt(r)]}),Lt=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:l,errors:a,warnings:i,_internalItemRender:d,extra:m,help:u,fieldId:y,marginBottom:h,onErrorVisibleChanged:P}=e,I=`${t}-item`,b=o.useContext(N.q3),E=r||b.wrapperCol||{},O=J()(`${I}-control`,E.className),S=o.useMemo(()=>Object.assign({},b),[b]);delete S.labelCol,delete S.wrapperCol;const s=o.createElement("div",{className:`${I}-control-input`},o.createElement("div",{className:`${I}-control-input-content`},l)),g=o.useMemo(()=>({prefixCls:t,status:n}),[t,n]),C=h!==null||a.length||i.length?o.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},o.createElement(N.Rk.Provider,{value:g},o.createElement(Pe,{fieldId:y,errors:a,warnings:i,help:u,helpStatus:n,className:`${I}-explain-connected`,onVisibleChanged:P})),!!h&&o.createElement("div",{style:{width:0,height:h}})):null,v={};y&&(v.id=`${y}_extra`);const x=m?o.createElement("div",Object.assign({},v,{className:`${I}-extra`}),m):null,R=d&&d.mark==="pro_table_render"&&d.render?d.render(e,{input:s,errorList:C,extra:x}):o.createElement(o.Fragment,null,s,C,x);return o.createElement(N.q3.Provider,{value:S},o.createElement(Xe.Z,Object.assign({},E,{className:O}),R),o.createElement(Rt,{prefixCls:t}))},Tt=c(21137),Vt=c(97343),Zt=c(83317),Wt=function(t,n){return o.createElement(Zt.Z,(0,Tt.Z)({},t,{ref:n,icon:Vt.Z}))},Ht=o.forwardRef(Wt),zt=c(96486),Dt=c(78436),At=c(58898),Bt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{let{prefixCls:t,label:n,htmlFor:r,labelCol:l,labelAlign:a,colon:i,required:d,requiredMark:m,tooltip:u}=e;var y;const[h]=(0,Dt.Z)("Form"),{vertical:P,labelAlign:I,labelCol:b,labelWrap:E,colon:O}=o.useContext(N.q3);if(!n)return null;const S=l||b||{},s=a||I,g=`${t}-item-label`,C=J()(g,s==="left"&&`${g}-left`,S.className,{[`${g}-wrap`]:!!E});let v=n;const x=i===!0||O!==!1&&i!==!1;x&&!P&&typeof n=="string"&&n.trim()!==""&&(v=n.replace(/[:|:]\s*$/,""));const F=Xt(u);if(F){const{icon:G=o.createElement(Ht,null)}=F,M=Bt(F,["icon"]),p=o.createElement(At.Z,Object.assign({},M),o.cloneElement(G,{className:`${t}-item-tooltip`,title:"",onClick:B=>{B.preventDefault()},tabIndex:null}));v=o.createElement(o.Fragment,null,v,p)}const A=m==="optional",L=typeof m=="function";L?v=m(v,{required:!!d}):A&&!d&&(v=o.createElement(o.Fragment,null,v,o.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((y=zt.Z.Form)===null||y===void 0?void 0:y.optional))));const K=J()({[`${t}-item-required`]:d,[`${t}-item-required-mark-optional`]:A||L,[`${t}-item-no-colon`]:!x});return o.createElement(Xe.Z,Object.assign({},S,{className:C}),o.createElement("label",{htmlFor:r,className:K,title:typeof n=="string"?n:""},v))},Gt=c(40139),Yt=c(96032),qt=c(83975),Qt=c(75527);const Ut={success:Gt.Z,warning:qt.Z,error:Yt.Z,validating:Qt.Z};function Ke(e){let{children:t,errors:n,warnings:r,hasFeedback:l,validateStatus:a,prefixCls:i,meta:d,noStyle:m}=e;const u=`${i}-item`,{feedbackIcons:y}=o.useContext(N.q3),h=Ze(n,r,d,null,!!l,a),{isFormItemInput:P,status:I,hasFeedback:b,feedbackIcon:E}=o.useContext(N.aM),O=o.useMemo(()=>{var S;let s;if(l){const C=l!==!0&&l.icons||y,v=h&&((S=C==null?void 0:C({status:h,errors:n,warnings:r}))===null||S===void 0?void 0:S[h]),x=h&&Ut[h];s=v!==!1&&x?o.createElement("span",{className:J()(`${u}-feedback-icon`,`${u}-feedback-icon-${h}`)},v||o.createElement(x,null)):null}const g={status:h||"",errors:n,warnings:r,hasFeedback:!!l,feedbackIcon:s,isFormItemInput:!0};return m&&(g.status=(h!=null?h:I)||"",g.isFormItemInput=P,g.hasFeedback=!!(l!=null?l:b),g.feedbackIcon=l!==void 0?g.feedbackIcon:E),g},[h,l,m,P,I]);return o.createElement(N.aM.Provider,{value:O},t)}var Jt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{if(F&&C.current){const T=getComputedStyle(C.current);K(parseInt(T.marginBottom,10))}},[F,A]);const G=T=>{T||K(null)},p=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const f=T?v:u.errors,q=T?x:u.warnings;return Ze(f,q,u,"",!!y,m)}(),B=J()(s,n,r,{[`${s}-with-help`]:R||v.length||x.length,[`${s}-has-feedback`]:p&&y,[`${s}-has-success`]:p==="success",[`${s}-has-warning`]:p==="warning",[`${s}-has-error`]:p==="error",[`${s}-is-validating`]:p==="validating",[`${s}-hidden`]:h});return o.createElement("div",{className:B,style:l,ref:C},o.createElement(Pt.Z,Object.assign({className:`${s}-row`},(0,Nt.Z)(S,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(Kt,Object.assign({htmlFor:I},e,{requiredMark:g,required:b!=null?b:E,prefixCls:t})),o.createElement(Lt,Object.assign({},e,u,{errors:v,warnings:x,prefixCls:t,status:p,help:a,marginBottom:L,onErrorVisibleChanged:G}),o.createElement(N.qI.Provider,{value:O},o.createElement(Ke,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:y,validateStatus:p},P)))),!!L&&o.createElement("div",{className:`${s}-margin-offset`,style:{marginBottom:-L}}))}const _t="__SPLIT__",fn=null,en=o.memo(e=>{let{children:t}=e;return t},(e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Ge(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function tn(e){const{name:t,noStyle:n,className:r,dependencies:l,prefixCls:a,shouldUpdate:i,rules:d,children:m,required:u,label:y,messageVariables:h,trigger:P="onChange",validateTrigger:I,hidden:b,help:E}=e,{getPrefixCls:O}=o.useContext(be.E_),{name:S}=o.useContext(N.q3),s=It(m),g=typeof s=="function",C=o.useContext(N.qI),{validateTrigger:v}=o.useContext(re.zb),x=I!==void 0?I:v,R=t!=null,F=O("form",a),A=(0,he.Z)(F),[L,K]=ge(F,A),G=(0,$t.ln)("Form.Item"),M=o.useContext(re.ZM),p=o.useRef(),[B,T]=Ft({}),[f,q]=(0,xt.Z)(()=>Ge()),X=$=>{const V=M==null?void 0:M.getKey($.name);if(q($.destroy?Ge():$,!0),n&&E!==!1&&C){let j=$.name;if($.destroy)j=p.current||j;else if(V!==void 0){const[Z,W]=V;j=[Z].concat((0,H.Z)(W)),p.current=j}C($,j)}},_=($,V)=>{T(j=>{const Z=Object.assign({},j),U=[].concat((0,H.Z)($.name.slice(0,-1)),(0,H.Z)(V)).join(_t);return $.destroy?delete Z[U]:Z[U]=$,Z})},[Y,Q]=o.useMemo(()=>{const $=(0,H.Z)(f.errors),V=(0,H.Z)(f.warnings);return Object.values(B).forEach(j=>{$.push.apply($,(0,H.Z)(j.errors||[])),V.push.apply(V,(0,H.Z)(j.warnings||[]))}),[$,V]},[B,f.errors,f.warnings]),ne=wt();function z($,V,j){return n&&!b?o.createElement(Ke,{prefixCls:F,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:f,errors:Y,warnings:Q,noStyle:!0},$):o.createElement(kt,Object.assign({key:"row"},e,{className:J()(r,A,K),prefixCls:F,fieldId:V,isRequired:j,errors:Y,warnings:Q,meta:f,onSubItemMetaChange:_}),$)}if(!R&&!g&&!l)return L(z(s));let D={};return typeof y=="string"?D.label=y:t&&(D.label=String(t)),h&&(D=Object.assign(Object.assign({},D),h)),L(o.createElement(re.gN,Object.assign({},e,{messageVariables:D,trigger:P,validateTrigger:x,onMetaChange:X}),($,V,j)=>{const Z=ce(t).length&&V?V.name:[],W=Ve(Z,S),U=u!==void 0?u:!!(d&&d.some(w=>{if(w&&typeof w=="object"&&w.required&&!w.warningOnly)return!0;if(typeof w=="function"){const oe=w(j);return oe&&oe.required&&!oe.warningOnly}return!1})),ee=Object.assign({},$);let te=null;if(Array.isArray(s)&&R)te=s;else if(!(g&&(!(i||l)||R))){if(!(l&&!g&&!R))if((0,De.l$)(s)){const w=Object.assign(Object.assign({},s.props),ee);if(w.id||(w.id=W),E||Y.length>0||Q.length>0||e.extra){const le=[];(E||Y.length>0)&&le.push(`${W}_help`),e.extra&&le.push(`${W}_extra`),w["aria-describedby"]=le.join(" ")}Y.length>0&&(w["aria-invalid"]="true"),U&&(w["aria-required"]="true"),(0,ze.Yr)(s)&&(w.ref=ne(Z,s)),new Set([].concat((0,H.Z)(ce(P)),(0,H.Z)(ce(x)))).forEach(le=>{w[le]=function(){for(var qe,Qe,ye,Ue,Ce,Je=arguments.length,xe=new Array(Je),fe=0;fe{var{prefixCls:t,children:n}=e,r=rn(e,["prefixCls","children"]);const{getPrefixCls:l}=o.useContext(be.E_),a=l("form",t),i=o.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return o.createElement(re.aV,Object.assign({},r),(d,m,u)=>o.createElement(N.Rk.Provider,{value:i},n(d.map(y=>Object.assign(Object.assign({},y),{fieldKey:y.key})),m,{errors:u.errors,warnings:u.warnings})))};function ln(){const{form:e}=(0,o.useContext)(N.q3);return e}const k=Ct;k.Item=nn,k.List=on,k.ErrorList=Pe,k.useForm=He,k.useFormInstance=ln,k.useWatch=re.qo,k.Provider=N.RV,k.create=()=>{};var an=k},61728:function($e,se,c){var H=c(27634);se.Z=H.Z}}]); diff --git a/7937.43d34fd3.async.js b/7937.43d34fd3.async.js deleted file mode 100644 index f02819c4..00000000 --- a/7937.43d34fd3.async.js +++ /dev/null @@ -1,117 +0,0 @@ -!(function(){var wr=Math.pow;(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7937],{38551:function(Ve,Ge,gt){"use strict";gt.d(Ge,{P:function(){return qlt}});var _t={};gt.r(_t),gt.d(_t,{area:function(){return yW},bottom:function(){return ja},bottomLeft:function(){return ja},bottomRight:function(){return ja},inside:function(){return ja},left:function(){return ja},outside:function(){return xW},right:function(){return ja},spider:function(){return OW},surround:function(){return SW},top:function(){return ja},topLeft:function(){return ja},topRight:function(){return ja}});var Nt={};gt.r(Nt),gt.d(Nt,{interpolateBlues:function(){return RH},interpolateBrBG:function(){return fH},interpolateBuGn:function(){return xH},interpolateBuPu:function(){return _H},interpolateCividis:function(){return BH},interpolateCool:function(){return YH},interpolateCubehelixDefault:function(){return WH},interpolateGnBu:function(){return OH},interpolateGreens:function(){return LH},interpolateGreys:function(){return NH},interpolateInferno:function(){return QH},interpolateMagma:function(){return KH},interpolateOrRd:function(){return wH},interpolateOranges:function(){return DH},interpolatePRGn:function(){return dH},interpolatePiYG:function(){return hH},interpolatePlasma:function(){return JH},interpolatePuBu:function(){return MH},interpolatePuBuGn:function(){return SH},interpolatePuOr:function(){return pH},interpolatePuRd:function(){return EH},interpolatePurples:function(){return IH},interpolateRainbow:function(){return $H},interpolateRdBu:function(){return vH},interpolateRdGy:function(){return gH},interpolateRdPu:function(){return AH},interpolateRdYlBu:function(){return yH},interpolateRdYlGn:function(){return mH},interpolateReds:function(){return jH},interpolateSinebow:function(){return UH},interpolateSpectral:function(){return bH},interpolateTurbo:function(){return qH},interpolateViridis:function(){return ZH},interpolateWarm:function(){return HH},interpolateYlGn:function(){return PH},interpolateYlGnBu:function(){return TH},interpolateYlOrBr:function(){return CH},interpolateYlOrRd:function(){return kH},schemeAccent:function(){return FW},schemeBlues:function(){return Tw},schemeBrBG:function(){return sw},schemeBuGn:function(){return gw},schemeBuPu:function(){return yw},schemeCategory10:function(){return BW},schemeDark2:function(){return zW},schemeGnBu:function(){return mw},schemeGreens:function(){return Pw},schemeGreys:function(){return Cw},schemeOrRd:function(){return bw},schemeOranges:function(){return Lw},schemePRGn:function(){return cw},schemePaired:function(){return GW},schemePastel1:function(){return WW},schemePastel2:function(){return HW},schemePiYG:function(){return lw},schemePuBu:function(){return _w},schemePuBuGn:function(){return xw},schemePuOr:function(){return uw},schemePuRd:function(){return Ow},schemePurples:function(){return kw},schemeRdBu:function(){return fw},schemeRdGy:function(){return dw},schemeRdPu:function(){return ww},schemeRdYlBu:function(){return hw},schemeRdYlGn:function(){return pw},schemeReds:function(){return Rw},schemeSet1:function(){return YW},schemeSet2:function(){return $W},schemeSet3:function(){return VW},schemeSpectral:function(){return vw},schemeTableau10:function(){return XW},schemeYlGn:function(){return Mw},schemeYlGnBu:function(){return Sw},schemeYlOrBr:function(){return Ew},schemeYlOrRd:function(){return Aw}});var ye={};gt.r(ye),gt.d(ye,{geoAlbers:function(){return W5},geoAlbersUsa:function(){return btt},geoAzimuthalEqualArea:function(){return xtt},geoAzimuthalEqualAreaRaw:function(){return bm},geoAzimuthalEquidistant:function(){return _tt},geoAzimuthalEquidistantRaw:function(){return xm},geoConicConformal:function(){return wtt},geoConicConformalRaw:function(){return $5},geoConicEqualArea:function(){return Fh},geoConicEqualAreaRaw:function(){return G5},geoConicEquidistant:function(){return Mtt},geoConicEquidistantRaw:function(){return V5},geoEqualEarth:function(){return Att},geoEqualEarthRaw:function(){return _m},geoEquirectangular:function(){return Stt},geoEquirectangularRaw:function(){return gu},geoGnomonic:function(){return Ttt},geoGnomonicRaw:function(){return Om},geoIdentity:function(){return Ptt},geoMercator:function(){return Ott},geoMercatorRaw:function(){return vu},geoNaturalEarth1:function(){return Ctt},geoNaturalEarth1Raw:function(){return wm},geoOrthographic:function(){return ktt},geoOrthographicRaw:function(){return Sm},geoProjection:function(){return Oa},geoProjectionMutator:function(){return ym},geoStereographic:function(){return Rtt},geoStereographicRaw:function(){return Mm},geoTransverseMercator:function(){return Ltt},geoTransverseMercatorRaw:function(){return Em}});var Be={};gt.r(Be),gt.d(Be,{frequency:function(){return Int},id:function(){return jnt},name:function(){return Dnt},weight:function(){return Nnt}});var Jt=gt(50959),he=gt(10422),ie=gt.t(he,2),Ht=function(){return Ht=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=18&&(It=Zt.createRoot)}catch(t){}function Ft(t){var e=Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}var Se="__rc_react_root__";function Re(t,e){Ft(!0);var n=e[Se]||It(e);Ft(!1),n.render(t),e[Se]=n}function Ke(t,e){te(t,e)}function We(t,e){}function Ze(t,e){if(It){Re(t,e);return}Ke(t,e)}function cn(t){return yt(this,void 0,void 0,function(){return pe(this,function(e){return[2,Promise.resolve().then(function(){var n;(n=t[Se])===null||n===void 0||n.unmount(),delete t[Se]})]})})}function He(t){Bt(t)}function De(t){}function an(t){return yt(this,void 0,void 0,function(){return pe(this,function(e){return It!==void 0?[2,cn(t)]:(He(t),[2])})})}var _e=new Map;_e.set("tooltip",document.createElement("div"));var Me=function(t,e){e===void 0&&(e=!1);var n=document.createElement("div");return e?n=_e.get("tooltip"):t!=null&&t.key&&(_e.get(t.key)||_e.set(t.key,n),n=_e.get(t.key)),Ze(t,n),n},pn=function(t){var e=t.attachShadow({mode:"open"}),n=document.createElement("div"),r=document.createElement("style");r.innerHTML=`.loading { - display: inline-block; - position: relative; - width: 80px; - height: 80px; - } - .loading div { - position: absolute; - top: 33px; - width: 13px; - height: 13px; - border-radius: 50%; - background: #ccc; - animation-timing-function: cubic-bezier(0, 1, 1, 0); - } - .loading div:nth-child(1) { - left: 8px; - animation: loading1 0.6s infinite; - } - .loading div:nth-child(2) { - left: 8px; - animation: loading2 0.6s infinite; - } - .loading div:nth-child(3) { - left: 32px; - animation: loading2 0.6s infinite; - } - .loading div:nth-child(4) { - left: 56px; - animation: loading3 0.6s infinite; - } - @keyframes loading1 { - 0% { - transform: scale(0); - } - 100% { - transform: scale(1); - } - } - @keyframes loading3 { - 0% { - transform: scale(1); - } - 100% { - transform: scale(0); - } - } - @keyframes loading2 { - 0% { - transform: translate(0, 0); - } - 100% { - transform: translate(24px, 0); - } - } - `,n.classList.add("loading"),n.innerHTML="
",e.appendChild(r),e.appendChild(n)},Ln=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=Jt.useRef(null);Jt.useEffect(function(){!e&&i.current&&pn(i.current)},[]);var a=function(){return e||Jt.createElement("div",{ref:i})};return Jt.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},a())},qn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ln=function(t){qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||Jt.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):Jt.createElement(Jt.Fragment,null,this.props.children)},e}(Jt.Component),fn=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r-1}var dn=or;function Qr(t,e){var n=this.__data__,r=Le(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var wa=Qr;function ci(t){var e=-1,n=t==null?0:t.length;for(this.clear();++es))return!1;var l=a.get(t),u=a.get(e);if(l&&u)return l==e&&u==t;var f=-1,d=!0,h=n&uR?new v1:void 0;for(a.set(t,e),a.set(e,t);++f-1&&t%1==0&&t-1&&t%1==0&&t<=eL}var Mp=nL,rL="[object Arguments]",iL="[object Array]",aL="[object Boolean]",oL="[object Date]",sL="[object Error]",cL="[object Function]",lL="[object Map]",uL="[object Number]",fL="[object Object]",dL="[object RegExp]",hL="[object Set]",pL="[object String]",vL="[object WeakMap]",gL="[object ArrayBuffer]",yL="[object DataView]",mL="[object Float32Array]",bL="[object Float64Array]",xL="[object Int8Array]",_L="[object Int16Array]",OL="[object Int32Array]",wL="[object Uint8Array]",SL="[object Uint8ClampedArray]",ML="[object Uint16Array]",EL="[object Uint32Array]",Zn={};Zn[mL]=Zn[bL]=Zn[xL]=Zn[_L]=Zn[OL]=Zn[wL]=Zn[SL]=Zn[ML]=Zn[EL]=!0,Zn[rL]=Zn[iL]=Zn[gL]=Zn[aL]=Zn[yL]=Zn[oL]=Zn[sL]=Zn[cL]=Zn[lL]=Zn[uL]=Zn[fL]=Zn[dL]=Zn[hL]=Zn[pL]=Zn[vL]=!1;function AL(t){return Oi(t)&&Mp(t.length)&&!!Zn[ot(t)]}var TL=AL;function PL(t){return function(e){return t(e)}}var Ep=PL,A1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gc=A1&&typeof module=="object"&&module&&!module.nodeType&&module,CL=Gc&&Gc.exports===A1,Ap=CL&&it.process,kL=function(){try{var t=Gc&&Gc.require&&Gc.require("util").types;return t||Ap&&Ap.binding&&Ap.binding("util")}catch(e){}}(),Ts=kL,T1=Ts&&Ts.isTypedArray,RL=T1?Ep(T1):TL,P1=RL,LL=Object.prototype,NL=LL.hasOwnProperty;function IL(t,e){var n=Mt(t),r=!n&&Sp(t),i=!n&&!r&&Hu(t),a=!n&&!r&&!i&&P1(t),o=n||r||i||a,s=o?zR(t.length,String):[],c=s.length;for(var l in t)(e||NL.call(t,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Yu(l,c)))&&s.push(l);return s}var C1=IL,jL=Object.prototype;function DL(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||jL;return t===n}var $u=DL;function BL(t,e){return function(n){return t(e(n))}}var k1=BL,FL=k1(Object.keys,Object),zL=FL,GL=Object.prototype,WL=GL.hasOwnProperty;function HL(t){if(!$u(t))return zL(t);var e=[];for(var n in Object(t))WL.call(t,n)&&n!="constructor"&&e.push(n);return e}var YL=HL;function $L(t){return t!=null&&Mp(t.length)&&!Wt(t)}var Do=$L;function VL(t){return Do(t)?C1(t):YL(t)}var Bo=VL;function XL(t){return b1(t,Bo,wp)}var Tp=XL,UL=1,qL=Object.prototype,ZL=qL.hasOwnProperty;function KL(t,e,n,r,i,a){var o=n&UL,s=Tp(t),c=s.length,l=Tp(e),u=l.length;if(c!=u&&!o)return!1;for(var f=c;f--;){var d=s[f];if(!(o?d in e:ZL.call(e,d)))return!1}var h=a.get(t),p=a.get(e);if(h&&p)return h==e&&p==t;var v=!0;a.set(t,e),a.set(e,t);for(var g=o;++fglMatrix.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function Rut(t,e){var n=$I(t,e);return Math.acos(2*n*n-1)}function Ua(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],c=n[1],l=n[2],u=n[3];return t[0]=r*u+o*s+i*l-a*c,t[1]=i*u+o*c+a*s-r*l,t[2]=a*u+o*l+r*c-i*s,t[3]=o*u-r*s-i*c-a*l,t}function Lut(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*s,t[1]=i*c+a*s,t[2]=a*c-i*s,t[3]=o*c-r*s,t}function Nut(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c-a*s,t[1]=i*c+o*s,t[2]=a*c+r*s,t[3]=o*c-i*s,t}function Iut(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+i*s,t[1]=i*c-r*s,t[2]=a*c+o*s,t[3]=o*c-a*s,t}function jut(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function GI(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),c=o>0?s*Math.sin(o)/o:0;return t[0]=n*c,t[1]=r*c,t[2]=i*c,t[3]=s*Math.cos(o),t}function WI(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function Dut(t,e,n){return WI(t,e),YI(t,t,n),GI(t,t),t}function Yp(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=n[0],l=n[1],u=n[2],f=n[3],d,h,p,v,g;return h=i*c+a*l+o*u+s*f,h<0&&(h=-h,c=-c,l=-l,u=-u,f=-f),1-h>Ls.Ib?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function But(t){var e=glMatrix.RANDOM(),n=glMatrix.RANDOM(),r=glMatrix.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t}function $p(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function Fut(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function HI(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function Qu(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}function zut(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var Gut=sr.d9,Vp=sr.al,Ju=sr.JG,Wut=sr.t8,Hut=sr.IH,ub=Ua,YI=sr.bA,$I=sr.AK,Yut=sr.t7,$ut=sr.kE,Vut=null,Xut=sr.we,Uut=null,tf=sr.Fv,qut=sr.I6,Zut=sr.fS,Kut=function(){var t=dt.create(),e=dt.fromValues(1,0,0),n=dt.fromValues(0,1,0);return function(r,i,a){var o=dt.dot(i,a);return o<-.999999?(dt.cross(t,e,i),dt.len(t)<1e-6&&dt.cross(t,n,i),dt.normalize(t,t),Xa(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(dt.cross(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,tf(r,r))}}(),Qut=function(){var t=br(),e=br();return function(n,r,i,a,o,s){return Yp(t,r,o,s),Yp(e,i,a,s),Yp(n,t,e,2*s*(1-s)),n}}(),Jut=function(){var t=lb();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],tf(e,HI(e,t))}}(),$c=gt(38015),xr=gt(39696);function ui(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var me=gt(58622),ef=gt(98104),er=function(t){return(0,ef.Z)(t,"String")},cr=gt(39083),Vc={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function fb(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Vc[n]===e.length-1&&"achlmqstvz".includes(n)})}function db(t){return fb(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function hb(t){return db(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}var pb={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function vb(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Vc[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Vc[n]))),!!Vc[n]););}function VI(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function XI(t){return t>=48&&t<=57||t===43||t===45||t===46}function Ns(t){return t>=48&&t<=57}function UI(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!Ns(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function nf(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(KI(i)&&(o===3||o===4)?VI(t):UI(t),t.err.length)return;t.data.push(t.param),nf(t),t.index=t.max||!XI(n.charCodeAt(t.index)))break}vb(t)}var JI=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function tj(t){if(fb(t))return[].concat(t);var e=new JI(t);for(nf(e);e.index=a)o={x:n,y:r};else{var s=qa([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function gb(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function rj(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Xp(t,e,s,c,l).point;var b=(t-s)/2,_=(e-c)/2,O={x:d(m)*b+f(m)*_,y:-f(m)*b+d(m)*_},w=Math.pow(O.x,2)/Math.pow(v,2)+Math.pow(O.y,2)/Math.pow(g,2);w>1&&(v*=h(w),g*=h(w));var M=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(O.y,2)-Math.pow(g,2)*Math.pow(O.x,2),E=Math.pow(v,2)*Math.pow(O.y,2)+Math.pow(g,2)*Math.pow(O.x,2),A=M/E;A=A<0?0:A;var P=(a!==o?1:-1)*h(A),C={x:P*(v*O.y/g),y:P*(-(g*O.x)/v)},j={x:d(m)*C.x-f(m)*C.y+(t+s)/2,y:f(m)*C.x+d(m)*C.y+(e+c)/2},N={x:(O.x-C.x)/v,y:(O.y-C.y)/g},k=gb({x:1,y:0},N),R={x:(-O.x-C.x)/v,y:(-O.y-C.y)/g},D=gb(N,R);!o&&D>0?D-=2*p:o&&D<0&&(D+=2*p),D%=2*p;var B=k+D*l,F=v*d(B),z=g*f(B),Y={x:d(m)*F-f(m)*z+j.x,y:f(m)*F+d(m)*z+j.y};return Y}function ij(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,_=e,O=0,w=[b,_,O],M=[b,_],E=0,A={x:0,y:0},P=[{x:b,y:_}];m&&l<=0&&(A={x:b,y:_});for(var C=0;C<=y;C+=1){if(E=C/y,f=rj(t,e,n,r,i,a,o,s,c,E),b=f.x,_=f.y,h&&P.push({x:b,y:_}),v&&(O+=ui(M,[b,_])),M=[b,_],m&&O>=l&&l>w[2]){var j=(O-l)/(O-w[2]);A={x:M[0]*(1-j)+w[0]*j,y:M[1]*(1-j)+w[1]*j}}w=[b,_,O]}return m&&l>=O&&(A={x:s,y:c}),{length:O,point:A,min:{x:Math.min.apply(null,P.map(function(N){return N.x})),y:Math.min.apply(null,P.map(function(N){return N.y}))},max:{x:Math.max.apply(null,P.map(function(N){return N.x})),y:Math.max.apply(null,P.map(function(N){return N.y}))}}}function aj(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function yb(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,_=0,O=[m,b,_],w=[m,b],M=0,E={x:0,y:0},A=[{x:m,y:b}];y&&c<=0&&(E={x:m,y:b});for(var P=0;P<=g;P+=1){if(M=P/g,u=aj(t,e,n,r,i,a,o,s,M),m=u.x,b=u.y,d&&A.push({x:m,y:b}),p&&(_+=ui(w,[m,b])),w=[m,b],y&&_>=c&&c>O[2]){var C=(_-c)/(_-O[2]);E={x:w[0]*(1-C)+O[0]*C,y:w[1]*(1-C)+O[1]*C}}O=[m,b,_]}return y&&c>=_&&(E={x:o,y:s}),{length:_,point:E,min:{x:Math.min.apply(null,A.map(function(j){return j.x})),y:Math.min.apply(null,A.map(function(j){return j.y}))},max:{x:Math.max.apply(null,A.map(function(j){return j.x})),y:Math.max.apply(null,A.map(function(j){return j.y}))}}}function oj(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function sj(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],_=[g,y],O=0,w={x:0,y:0},M=[{x:g,y}];v&&o<=0&&(w={x:g,y});for(var E=0;E<=p;E+=1){if(O=E/p,c=oj(t,e,n,r,i,a,O),g=c.x,y=c.y,u&&M.push({x:g,y}),d&&(m+=ui(_,[g,y])),_=[g,y],v&&m>=o&&o>b[2]){var A=(m-o)/(m-b[2]);w={x:_[0]*(1-A)+b[0]*A,y:_[1]*(1-A)+b[1]*A}}b=[g,y,m]}return v&&o>=m&&(w={x:i,y:a}),{length:m,point:w,min:{x:Math.min.apply(null,M.map(function(P){return P.x})),y:Math.min.apply(null,M.map(function(P){return P.y}))},max:{x:Math.max.apply(null,M.map(function(P){return P.x})),y:Math.max.apply(null,M.map(function(P){return P.y}))}}}function mb(t,e,n){for(var r,i,a,o,s,c,l=rf(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],_=[],O=0,w={x:0,y:0},M=w,E=w,A=w,P=0,C=0,j=l.length;C=e&&(A=E),_.push(M),b.push(w),P+=O,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=P&&(A={x:p,y:v}),{length:P,point:A,min:{x:Math.min.apply(null,b.map(function(N){return N.x})),y:Math.min.apply(null,b.map(function(N){return N.y}))},max:{x:Math.max.apply(null,_.map(function(N){return N.x})),y:Math.max.apply(null,_.map(function(N){return N.y}))}}}function cj(t,e){return mb(t,void 0,(0,S.pi)((0,S.pi)({},e),{bbox:!1,length:!0})).length}var Dr=function(t){return Array.isArray?Array.isArray(t):(0,ef.Z)(t,"Array")},af=function(t){if(Dr(t))return t.reduce(function(e,n){return Math.min(e,n)},t[0])},of=function(t){if(Dr(t))return t.reduce(function(e,n){return Math.max(e,n)},t[0])},lj=1e-5;function Xc(t,e,n){return n===void 0&&(n=lj),Math.abs(t-e)7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}function dj(t){return hb(t)&&t.every(function(e){var n=e[0];return"MC".includes(n)})}function sf(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}}function Up(t,e,n,r,i,a,o,s,c,l){var u=t,f=e,d=n,h=r,p=s,v=c,g=Math.PI*120/180,y=Math.PI/180*(+i||0),m=[],b,_,O,w,M;if(l)_=l[0],O=l[1],w=l[2],M=l[3];else{b=sf(u,f,-y),u=b.x,f=b.y,b=sf(p,v,-y),p=b.x,v=b.y;var E=(u-p)/2,A=(f-v)/2,P=E*E/(d*d)+A*A/(h*h);P>1&&(P=Math.sqrt(P),d*=P,h*=P);var C=d*d,j=h*h,N=(a===o?-1:1)*Math.sqrt(Math.abs((C*j-C*A*A-j*E*E)/(C*A*A+j*E*E)));w=N*d*A/h+(u+p)/2,M=N*-h*E/d+(f+v)/2,_=Math.asin(((f-M)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),O=Math.asin(((v-M)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),_=uO&&(_-=Math.PI*2),!o&&O>_&&(O-=Math.PI*2)}var k=O-_;if(Math.abs(k)>g){var R=O,D=p,B=v;O=_+g*(o&&O>_?1:-1),p=w+d*Math.cos(O),v=M+h*Math.sin(O),m=Up(p,v,d,h,i,0,o,D,B,[O,R,w,M])}k=O-_;var F=Math.cos(_),z=Math.sin(_),Y=Math.cos(O),q=Math.sin(O),rt=Math.tan(k/4),st=4/3*d*rt,At=4/3*h*rt,Yt=[u,f],qt=[u+st*z,f-At*F],Rt=[p+st*q,v-At*Y],Lt=[p,v];if(qt[0]=2*Yt[0]-qt[0],qt[1]=2*Yt[1]-qt[1],l)return qt.concat(Rt,Lt,m);m=qt.concat(Rt,Lt,m);for(var le=[],ue=0,we=m.length;ue=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:Ob(v[0],v[1],f)}function gj(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function yj(t){var e=0,n=0,r=0;return qp(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=gj(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function wb(t){return yj(t)>=0}function mj(t){var e=t.slice(1).map(function(n,r,i){return r?i[r-1].slice(-2).concat(n.slice(1)):t[0].slice(1).concat(n.slice(1))}).map(function(n){return n.map(function(r,i){return n[n.length-i-2*(1-i%2)]})}).reverse();return[["M"].concat(e[0].slice(0,2))].concat(e.map(function(n){return["C"].concat(n.slice(2))}))}function bj(t){return t.map(function(e){return Array.isArray(e)?[].concat(e):e})}function xj(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function _j(t,e){var n=t.length-1,r=[],i=0,a=0,o=xj(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=ui(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}var Oj=function(t){return(0,ef.Z)(t,"Boolean")},Sb=Oj,zo=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"},wj=function(t){return t===void 0},nr=wj;function Sj(t,e,n){return mb(t,e,(0,S.pi)((0,S.pi)({},n),{bbox:!1,length:!0})).point}var Mj=gt(52617);function Hr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function cf(t,e){var n=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(t),!1)),r=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(e),!1)),i=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(t),!1)),a=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function Mb(t){return(t+Math.PI*2)%(Math.PI*2)}function Eb(t,e){var n=Math.abs(t);return e>0?n:n*-1}function Ej(t,e,n,r,i,a){var o=n,s=r;if(o===0||s===0)return{x:t,y:e};for(var c=i-t,l=a-e,u=Math.abs(c),f=Math.abs(l),d=o*o,h=s*s,p=Math.PI/4,v=0,g=0,y=0;y<4;y++){v=o*Math.cos(p),g=s*Math.sin(p);var m=(d-h)*Math.pow(Math.cos(p),3)/o,b=(h-d)*Math.pow(Math.sin(p),3)/s,_=v-m,O=g-b,w=u-m,M=f-b,E=Math.hypot(O,_),A=Math.hypot(M,w),P=E*Math.asin((_*M-O*w)/(E*A)),C=P/Math.sqrt(d+h-v*v-g*g);p+=C,p=Math.min(Math.PI/2,Math.max(0,p))}return{x:t+Eb(v,c),y:e+Eb(g,l)}}function Aj(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function Tj(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function Pj(t,e,n){return Math.atan(-e/t*Math.tan(n))}function Cj(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function kj(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function Rj(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function Lj(t,e,n,r){var i=Math.atan2(r*t,n*e);return(i+Math.PI*2)%(Math.PI*2)}function Ab(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function Tb(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}function Nj(t,e,n,r,i,a,o){for(var s=Pj(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=Cj(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}function tft(t,e,n,r,i,a,o,s,c){var l=Tb(s-t,c-e,-i),u=__read(l,2),f=u[0],d=u[1],h=Ej(0,0,n,r,f,d),p=Lj(n,r,h.x,h.y);po&&(h=Ab(n,r,o));var v=Tb(h.x,h.y,i);return{x:v[0]+t,y:v[1]+e}}function eft(t,e,n,r,i,a,o,s){var c=(o-a)*s+a,l=Aj(t,e,n,r,i,a,o,c),u=Tj(t,e,n,r,i,a,o,c);return Mb(Math.atan2(u,l))}var Ij=1e-4;function Pb(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,(0,S.ev)([],(0,S.CR)(t.concat([h])),!1)),i.apply(void 0,(0,S.ev)([],(0,S.CR)(e.concat([h])),!1))],v=Hr(c[0],c[1],p[0],p[1]);v=0&&vs?Hr(n,r,i,a):kb(t,e,n,r,i,a)}function kb(t,e,n,r,i,a){var o=[n-t,r-e];if($c.I6(o,[0,0]))return Math.sqrt((i-t)*(i-t)+(a-e)*(a-e));var s=[-o[1],o[0]];$c.Fv(s,s);var c=[i-t,a-e];return Math.abs($c.AK(c,s))}function rft(t,e,n,r){return Math.atan2(r-e,n-t)}function Go(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function Rb(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function Lb(t,e,n,r){var i=-3*t+9*e-9*n+3*r,a=6*t-12*e+6*n,o=3*e-3*t,s=[],c,l,u;if(Xc(i,0))Xc(a,0)||(c=-o/a,c>=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Xc(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function Bj(t,e,n,r,i,a,o,s,c){var l=Go(t,n,i,o,c),u=Go(e,r,a,s,c),f=aa(t,e,n,r,c),d=aa(n,r,i,a,c),h=aa(i,a,o,s,c),p=aa(f.x,f.y,d.x,d.y,c),v=aa(d.x,d.y,h.x,h.y,c);return[[t,e,f.x,f.y,p.x,p.y,l,u],[l,u,v.x,v.y,h.x,h.y,o,s]]}function Zp(t,e,n,r,i,a,o,s,c){if(c===0)return jj([t,n,i,o],[e,r,a,s]);var l=Bj(t,e,n,r,i,a,o,s,.5),u=__spreadArray(__spreadArray([],__read(l[0]),!1),[c-1],!1),f=__spreadArray(__spreadArray([],__read(l[1]),!1),[c-1],!1);return Zp.apply(void 0,__spreadArray([],__read(u),!1))+Zp.apply(void 0,__spreadArray([],__read(f),!1))}function Fj(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Lb(t,n,i,o),f=Lb(e,r,a,s),d=0;d1||e<0||t.length<2)return null;var n=Ib(t),r=n.segments,i=n.totalLength;if(i===0)return{x:t[0][0],y:t[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+f){var d=(e-a)/f;o=aa(l[0],l[1],u[0],u[1],d);break}a+=f}return o}function Bb(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=Ib(t),r=n.segments,i=n.totalLength,a=0,o=0,s=0;s=a&&e<=a+f){o=Math.atan2(u[1]-l[1],u[0]-l[0]);break}a+=f}return o}function Fb(t,e,n){for(var r=1/0,i=0;i=0?[i]:[]}function Hj(t,e,n,r,i,a,o){var s=Uc(t,n,i,o),c=Uc(e,r,a,o),l=aa(t,e,n,r,o),u=aa(n,r,i,a,o);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,i,a]]}function Kp(t,e,n,r,i,a,o){if(o===0)return(Hr(t,e,n,r)+Hr(n,r,i,a)+Hr(t,e,i,a))/2;var s=Hj(t,e,n,r,i,a,.5),c=s[0],l=s[1];return c.push(o-1),l.push(o-1),Kp.apply(void 0,__spreadArray([],__read(c),!1))+Kp.apply(void 0,__spreadArray([],__read(l),!1))}function Yj(t,e,n,r,i,a){var o=zb(t,n,i)[0],s=zb(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(Uc(t,n,i,o)),s!==void 0&&l.push(Uc(e,r,a,s)),cf(c,l)}function vft(t,e,n,r,i,a){return Kp(t,e,n,r,i,a,3)}function $j(t,e,n,r,i,a,o,s){return Pb([t,n,i],[e,r,a],o,s,Uc)}function Vj(t,e,n,r,i,a,o,s){var c=$j(t,e,n,r,i,a,o,s);return Hr(c.x,c.y,o,s)}var Xj=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof gt.g!="undefined"?gt.g:typeof self!="undefined"?self:{},Gb={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Xj,function(){function n(O,w,M,E,A){r(O,w,M||0,E||O.length-1,A||a)}function r(O,w,M,E,A){for(;E>M;){if(E-M>600){var P=E-M+1,C=w-M+1,j=Math.log(P),N=.5*Math.exp(2*j/3),k=.5*Math.sqrt(j*N*(P-N)/P)*(C-P/2<0?-1:1),R=Math.max(M,Math.floor(w-C*N/P+k)),D=Math.min(E,Math.floor(w+(P-C)*N/P+k));r(O,w,R,D,A)}var B=O[w],F=M,z=E;for(i(O,M,w),A(O[E],B)>0&&i(O,M,E);F0;)z--}A(O[M],B)===0?i(O,M,z):(z++,i(O,z,E)),z<=w&&(M=z+1),w<=z&&(E=z-1)}}function i(O,w,M){var E=O[w];O[w]=O[M],O[M]=E}function a(O,w){return Ow?1:0}var o=function(w){w===void 0&&(w=9),this._maxEntries=Math.max(4,w),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(w){var M=this.data,E=[];if(!m(w,M))return E;for(var A=this.toBBox,P=[];M;){for(var C=0;C=0&&P[M].children.length>this._maxEntries;)this._split(P,M),M--;this._adjustParentBBoxes(A,P,M)},o.prototype._split=function(w,M){var E=w[M],A=E.children.length,P=this._minEntries;this._chooseSplitAxis(E,P,A);var C=this._chooseSplitIndex(E,P,A),j=b(E.children.splice(C,E.children.length-C));j.height=E.height,j.leaf=E.leaf,c(E,this.toBBox),c(j,this.toBBox),M?w[M-1].children.push(j):this._splitRoot(E,j)},o.prototype._splitRoot=function(w,M){this.data=b([w,M]),this.data.height=w.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(w,M,E){for(var A,P=1/0,C=1/0,j=M;j<=E-M;j++){var N=l(w,0,j,this.toBBox),k=l(w,j,E,this.toBBox),R=g(N,k),D=h(N)+h(k);R=M;D--){var B=w.children[D];u(j,w.leaf?P(B):B),N+=p(j)}return N},o.prototype._adjustParentBBoxes=function(w,M,E){for(var A=E;A>=0;A--)u(M[A],w)},o.prototype._condense=function(w){for(var M=w.length-1,E=void 0;M>=0;M--)w[M].children.length===0?M>0?(E=w[M-1].children,E.splice(E.indexOf(w[M]),1)):this.clear():c(w[M],this.toBBox)};function s(O,w,M){if(!M)return w.indexOf(O);for(var E=0;E=O.minX&&w.maxY>=O.minY}function b(O){return{children:O,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(O,w,M,E,A){for(var P=[w,M];P.length;)if(M=P.pop(),w=P.pop(),!(M-w<=E)){var C=w+Math.ceil((M-w)/E/2)*E;n(O,C,w,M,A),P.push(w,C,C,M)}}return o})})(Gb);var Uj=Gb.exports,St;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(St||(St={}));var Is;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(Is||(Is={}));var Za=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),qj=function(){function t(e){this.clipSpaceNearZ=Is.NEGATIVE_ONE,this.plugins=[],this.config=(0,S.pi)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function js(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Qp(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function uf(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Wb(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function Zj(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function Kj(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Ds(t){return t===void 0?0:t>360||t<-360?t%360:t}function ei(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?dt.clone(t):(0,xr.Z)(t)?dt.fromValues(t,e,n):dt.fromValues(t[0],t[1]||e,t[2]||n)}function rr(t){return t*(Math.PI/180)}function Li(t){return t*(180/Math.PI)}function gft(t){return t=t%400,t<0&&(t+=400),t/400*360}function yft(t){return t/360}function Qj(t){return 360*t}function Jj(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function t6(t,e){var n,r,i=Math.PI*.5,a=(0,S.CR)(Kt.getScaling(dt.create(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function Jp(t,e){return e.length===16?t6(t,e):Jj(t,e)}function e6(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return zI(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function n6(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function Hb(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eYe[1][2]&&(a[0]=-a[0]),Ye[0][2]>Ye[2][0]&&(a[1]=-a[1]),Ye[1][0]>Ye[0][1]&&(a[2]=-a[2]),!0}function i6(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function a6(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function t0(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var Er=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){js(this.center,e),js(this.halfExtents,n),Qp(this.min,this.center,this.halfExtents),uf(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){uf(this.center,n,e),Wb(this.center,this.center,.5),Qp(this.halfExtents,n,e),Wb(this.halfExtents,this.halfExtents,.5),js(this.min,e),js(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],_=e.halfExtents,O=_[0],w=_[1],M=_[2],E=y-O,A=y+O,P=m-w,C=m+w,j=b-M,N=b+M;Ef&&(f=A),Ph&&(h=C),jv&&(v=N),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),_=Math.abs(f),O=Math.abs(d),w=Math.abs(h),M=Math.abs(p),E=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+_*o[1]+O*o[2],i[2]=w*o[0]+M*o[1]+E*o[2],Qp(this.min,r,i),uf(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=Zj([0,0,0],this.getMin(),e.getMin()),i=Kj([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?js([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?js([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),o6=function(){function t(e,n){this.distance=e||0,this.normal=n||dt.fromValues(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return dt.dot(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/dt.len(this.normal);dt.scale(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&dt.lerp(r,e,n,o),s},t}(),Ka;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(Ka||(Ka={}));var s6=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new o6)}return t.prototype.extractFromVPMatrix=function(e){var n=(0,S.CR)(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];dt.set(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,dt.set(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,dt.set(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,dt.set(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,dt.set(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,dt.set(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Pr=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Wo=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),Cn="Method not implemented.",Bs="Use document.documentElement instead.",c6="Cannot append a destroyed element.",wn;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(wn||(wn={}));var Zc;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(Zc||(Zc={}));var fi;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(fi||(fi={}));var $b={UPDATED:"updated"},Vb=2e-4,Xb=function(){function t(){this.clipSpaceNearZ=Is.NEGATIVE_ONE,this.eventEmitter=new Hp.Z,this.matrix=Kt.create(),this.right=dt.fromValues(1,0,0),this.up=dt.fromValues(0,1,0),this.forward=dt.fromValues(0,0,1),this.position=dt.fromValues(0,0,1),this.focalPoint=dt.fromValues(0,0,0),this.distanceVector=dt.fromValues(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Kt.create(),this.projectionMatrixInverse=Kt.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=wn.EXPLORING,this.trackingMode=Zc.DEFAULT,this.projectionMode=fi.PERSPECTIVE,this.frustum=new s6,this.orthoMatrix=Kt.create()}return t.prototype.isOrtho=function(){return this.projectionMode===fi.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===wn.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===wn.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==wn.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return Kt.invert(Kt.create(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=Kt.fromTranslation(Kt.create(),[e,n,0]);this.jitteredProjectionMatrix=Kt.multiply(Kt.create(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===fi.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===fi.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===fi.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=dt.fromValues(c-i,l-a,0),f=dt.dot(u,this.right)/dt.length(this.right),d=dt.dot(u,this.up)/dt.length(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=fi.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(rr(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return n6(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===Is.ZERO),Kt.scale(this.projectionMatrix,this.projectionMatrix,dt.fromValues(1,-1,1)),Kt.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=fi.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===Is.NEGATIVE_ONE?Kt.ortho(this.projectionMatrix,d,h,v,p,a,o):Kt.orthoZO(this.projectionMatrix,d,h,v,p,a,o),Kt.scale(this.projectionMatrix,this.projectionMatrix,dt.fromValues(1,-1,1)),Kt.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=ei(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=dt.fromValues(0,1,0);if(this.focalPoint=ei(e,n,r),this.trackingMode===Zc.CINEMATIC){var a=dt.subtract(dt.create(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=dt.length(a),s=Li(Math.asin(n/o)),c=90+Li(Math.atan2(r,e)),l=Kt.create();Kt.rotateY(l,l,rr(c)),Kt.rotateX(l,l,rr(s)),i=dt.transformMat4(dt.create(),[0,1,0],l)}return Kt.invert(this.matrix,Kt.lookAt(Kt.create(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance=oe.kEms&&e=Qa.kUnitType&&this.getType()<=Qa.kClampType},t}(),p6=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return Qa.kColorType},e.prototype.to=function(n){return this},e}(ff),sa;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(sa||(sa={}));var df=function(t){(0,S.ZT)(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return Qa.kColorType},e}(ff),di=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return Qa.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(ff),v6=Yr(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Zb=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function g6(t){if(!t)throw new Error}function Fs(t){return typeof t=="function"}function y6(t){return typeof t=="symbol"}var mft=function(t){return Object.fromEntries(Object.entries(t).filter(function(e){var n=__read(e,2),r=n[1];return r!==void 0}))},m6={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},i0=Yr(function(t){var e=v6(t),n=m6[e];return e=(n==null?void 0:n.alias)||e,e}),b6=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(g6(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},a0=function(t){return h6(d6(t))},kn=function(t){(0,S.ZT)(e,t);function e(n,r){r===void 0&&(r=oe.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=f6(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return Qa.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=a0(this.unit);if(r!==a0(n)||r===oe.kUnknown)return null;var i=qb(this.unit)/qb(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case oe.kUnknown:break;case oe.kInteger:a=Number(this.value).toFixed(0);break;case oe.kNumber:case oe.kPercentage:case oe.kEms:case oe.kRems:case oe.kPixels:case oe.kDegrees:case oe.kRadians:case oe.kGradians:case oe.kMilliseconds:case oe.kSeconds:case oe.kTurns:{var o=-999999,s=999999,c=this.value,l=r0(this.unit);if(cs){var u=r0(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=b6(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(ff),Cr=new kn(0,"px");new kn(1,"px");var Ea=new kn(0,"deg"),o0=function(t){(0,S.ZT)(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(p6),zn=new di("unset"),x6=new di("initial"),_6=new di("inherit"),s0={"":zn,unset:zn,initial:x6,inherit:_6},c0=function(t){return s0[t]||(s0[t]=new di(t)),s0[t]},l0=new o0(0,0,0,0,!0),Kb=new o0(0,0,0,0),O6=Yr(function(t,e,n,r){return new o0(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),ir=function(t,e){return e===void 0&&(e=oe.kNumber),new kn(t,e)},hf=new kn(50,"%"),u0;(function(t){t[t.Standard=0]="Standard"})(u0||(u0={}));var zs;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})(zs||(zs={}));var Qb={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Wo(0,0,0,0)},ce;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(ce||(ce={}));function w6(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var S6=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(B){throw new Error(e+": "+B)}function r(){var B=i();return e.length>0&&n("Invalid input not EOF"),B}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(B,F,z){return s(F,function(Y){var q=z();return q&&(R(t.comma)||n("Missing comma before color stops")),{type:B,orientation:q,colorStops:b(_)}})}function s(B,F){var z=R(B);if(z){R(t.startCall)||n("Missing (");var Y=F(z);return R(t.endCall)||n("Missing )"),Y}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var B,F=d(),z;return F&&(B=[],B.push(F),z=e,R(t.comma)&&(F=d(),F?B.push(F):e=z)),B}function d(){var B=h()||p();if(B)B.at=g();else{var F=v();if(F){B=F;var z=g();z&&(B.at=z)}else{var Y=y();Y&&(B={type:"default-radial",at:Y})}}return B}function h(){var B=k("shape",/^(circle)/i,0);return B&&(B.style=N()||v()),B}function p(){var B=k("shape",/^(ellipse)/i,0);return B&&(B.style=C()||v()),B}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var B=y();return B||n("Missing positioning value"),B}}function y(){var B=m();if(B.x||B.y)return{type:"position",value:B}}function m(){return{x:C(),y:C()}}function b(B){var F=B(),z=[];if(F)for(z.push(F);R(t.comma);)F=B(),F?z.push(F):n("One extra comma");return z}function _(){var B=O();return B||n("Expected color definition"),B.length=C(),B}function O(){return M()||A()||E()||w()}function w(){return k("literal",t.literalColor,0)}function M(){return k("hex",t.hexColor,1)}function E(){return s(t.rgbColor,function(){return{type:"rgb",value:b(P)}})}function A(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(P)}})}function P(){return R(t.number)[1]}function C(){return k("%",t.percentageValue,1)||j()||N()}function j(){return k("position-keyword",t.positionKeywords,1)}function N(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(B,F,z){var Y=R(F);if(Y)return{type:B,value:Y[z]}}function R(B){var F=/^[\n\r\t\s]+/.exec(e);F&&D(F[0].length);var z=B.exec(e);return z&&D(z[0].length),z}function D(B){e=e.substring(B)}return function(B){return e=B,r()}}();function M6(t,e,n){var r=rr(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function E6(t,e,n,r,i){var a=n.value,o=r.value;n.unit===oe.kPercentage&&(a=n.value/100*t),r.unit===oe.kPercentage&&(o=r.value/100*e);var s=Math.max(ui([0,0],[a,o]),ui([0,e],[a,o]),ui([t,e],[a,o]),ui([t,0],[a,o]));return i&&(i instanceof kn?s=i.value:i instanceof di&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(ui([0,0],[a,o]),ui([0,e],[a,o]),ui([t,e],[a,o]),ui([t,0],[a,o]))))),{x:a,y:o,r:s}}var A6=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,T6=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,P6=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Jb=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function C6(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=S6(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;C6(u);var f=u.map(function(b){return{offset:ir(Number(b.length.value),"%"),color:w6(b)}});if(c==="linear-gradient")return new df(sa.LinearGradient,{angle:l?R6(l):Ea,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=L6(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=c0(m):v=ir(m,y)}return new df(sa.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=A6.exec(t);if(i){var a=((e=i[2].match(Jb))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new df(sa.LinearGradient,{angle:ir(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=(0,S.CR)(s,2),l=c[0],u=c[1];return{offset:ir(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=I6(t);if(o)if(er(o))t=o;else return[new df(sa.RadialGradient,o)]}else if(r==="p")return j6(t)}});function I6(t){var e,n=T6.exec(t);if(n){var r=((e=n[4].match(Jb))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:ir(50,"%"),cy:ir(50,"%"),steps:r.map(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];return{offset:ir(Number(o)*100,"%"),color:s}})}}return null}function j6(t){var e=P6.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function bft(t){return!!t.type&&!!t.value}function Kc(t){return t&&!!t.image}function pf(t){return t&&!(0,me.Z)(t.r)&&!(0,me.Z)(t.g)&&!(0,me.Z)(t.b)}var Aa=Yr(function(t){if(Kc(t))return(0,S.pi)({repetition:"repeat"},t);if((0,me.Z)(t)&&(t=""),t==="transparent")return Kb;t==="currentColor"&&(t="black");var e=N6(t);if(e)return e;var n=Mj.ZP(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),O6.apply(void 0,(0,S.ev)([],(0,S.CR)(r),!1))});function D6(t,e){if(!(!pf(t)||!pf(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round((0,cr.Z)(r[i],0,255));return r[3]=(0,cr.Z)(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Qc(t,e){if((0,me.Z)(e))return ir(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return ir(Number(e),"px");if("deg".search(t)>=0)return ir(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return ir(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var B6=Yr(function(t){return Qc(new RegExp("px","g"),t)});Yr(function(t){return Qc(new RegExp("%","g"),t)});var Gs=function(t){return(0,xr.Z)(t)||isFinite(Number(t))?ir(Number(t)||0,"px"):Qc(new RegExp("px|%|em|rem","g"),t)},tx=Yr(function(t){return Qc(new RegExp("deg|rad|grad|turn","g"),t)});function F6(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=a0(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=r0(t.unit)):(kn.isLength(t.unit)||kn.isLength(e.unit))&&(o=Mi(t,i,n),s=Mi(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function Si(t){var e=0;return t.unit===oe.kDegrees?e=t.value:t.unit===oe.kRadians?e=Li(Number(t.value)):t.unit===oe.kTurns&&(e=Qj(Number(t.value))),e}function f0(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):er(t)?n=t.split(" ").map(function(r){return Number(r)}):(0,xr.Z)(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function ex(t){return er(t)?t.split(" ").map(function(e){return Gs(e)}):t.map(function(e){return Gs(e.toString())})}function Mi(t,e,n){if(t.value===0)return 0;if(t.unit===oe.kPixels)return Number(t.value);if(t.unit===oe.kPercentage&&n){var r=n.nodeName===St.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var z6=function(t){return Qc(/deg|rad|grad|turn|px|%/g,t)},G6=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function nx(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,G6.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return z6(a)||Aa(a)})}),e.lastIndex===t.length)return n}return[]}function rx(t){return t.toString()}var Ho=Yr(function(t){return typeof t=="number"?ir(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?ir(Number(t)):ir(0)});Yr(function(t){return er(t)?t.split(" ").map(Ho):t.map(Ho)});function d0(t,e){return[t,e,rx]}function h0(t,e){return function(n,r){return[n,r,function(i){return rx((0,cr.Z)(i,t,e))}]}}function ix(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function p0(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=cj(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function W6(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function vf(t,e){return t[0]===e[0]&&t[1]===e[1]}function $6(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function ax(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var ox=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},sx=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=bb(r,360);var c=rr(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},_=ox({x:1,y:0},b),O={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},w=ox(b,O);!a&&w>0?w-=2*Math.PI:a&&w<0&&(w+=2*Math.PI),w%=2*Math.PI;var M=_+w*s,E=e*Math.cos(M),A=n*Math.sin(M),P={x:Math.cos(c)*E-Math.sin(c)*A+m.x,y:Math.sin(c)*E+Math.cos(c)*A+m.y,ellipticalArcStartAngle:_,ellipticalArcEndAngle:_+w,ellipticalArcAngle:M,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return P};function V6(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,_=[(f-g)/n,(d-y)/r],O=[(-1*f-g)/n,(-1*d-y)/r],w=lx([1,0],_),M=lx(_,O);return v0(_,O)<=-1&&(M=Math.PI),v0(_,O)>=1&&(M=0),o===0&&M>0&&(M=M-2*Math.PI),o===1&&M<0&&(M=M+2*Math.PI),{cx:m,cy:b,rx:vf(t,[l,u])?0:n,ry:vf(t,[l,u])?0:r,startAngle:w,endAngle:w+M,xRotation:i,arcFlag:a,sweepFlag:o}}function U6(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=dt.fromValues(l[1]-a,l[2]-s,0);n&&dt.transformMat4(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=dt.fromValues(l[1]-a,l[2]-s,0),h=dt.fromValues(l[3]-a,l[4]-s,0),p=dt.fromValues(l[5]-a,l[6]-s,0);n&&(dt.transformMat4(d,d,n),dt.transformMat4(h,h,n),dt.transformMat4(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=dt.fromValues(l[6]-a,l[7]-s,0);n&&dt.transformMat4(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=dt.fromValues(l[1]-a,l[2]-s,0),h=dt.fromValues(l[3]-a,l[4]-s,0);n&&(dt.transformMat4(d,d,n),dt.transformMat4(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function q6(t,e,n,r){return[["M",t,e],["L",n,r]]}function ux(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function Z6(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function K6(t,e,n,r,i){if(i){var a=(0,S.CR)(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function g0(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case St.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=q6(a,s,l,f);break;case St.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=ux(p,p,g,m);break}case St.ELLIPSE:{var b=t.parsedStyle,_=b.rx,O=_===void 0?0:_,w=b.ry,M=w===void 0?0:w,E=b.cx,g=E===void 0?0:E,A=b.cy,m=A===void 0?0:A;n=ux(O,M,g,m);break}case St.POLYLINE:case St.POLYGON:var P=t.parsedStyle.points;n=Z6(P.points,t.nodeName===St.POLYGON);break;case St.RECT:var C=t.parsedStyle,j=C.width,N=j===void 0?0:j,k=C.height,R=k===void 0?0:k,D=C.x,B=D===void 0?0:D,F=C.y,z=F===void 0?0:F,Y=C.radius,q=Y&&Y.some(function(st){return st!==0});n=K6(N,R,B,z,q&&Y.map(function(st){return(0,cr.Z)(st,0,Math.min(Math.abs(N)/2,Math.abs(R)/2))}));break;case St.PATH:var rt=t.parsedStyle.path.absolutePath;n=(0,S.ev)([],(0,S.CR)(rt),!1);break}if(n.length)return U6(n,t,e)}function xft(t,e,n,r,i,a,o){r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),o===void 0&&(o=0);var s=t.map(function(c,l){var u=c[0],f=t[l+1],d=l===0&&(r!==0||i!==0),h=(l===t.length-1||f&&(f[0]==="M"||f[0]==="Z"))&&a!==0&&o!==0;switch(u){case"M":return d?"M ".concat(c[1]-e+r,",").concat(c[2]-n+i," L ").concat(c[1]-e,",").concat(c[2]-n):"M ".concat(c[1]-e,",").concat(c[2]-n);case"L":return"L ".concat(c[1]-e+(h?a:0),",").concat(c[2]-n+(h?o:0));case"Q":return"Q ".concat(c[1]-e," ").concat(c[2]-n,",").concat(c[3]-e," ").concat(c[4]-n)+(h?" L ".concat(c[3]-e+a,",").concat(c[4]-n+o):"");case"C":return"C ".concat(c[1]-e," ").concat(c[2]-n,",").concat(c[3]-e," ").concat(c[4]-n,",").concat(c[5]-e," ").concat(c[6]-n)+(h?" L ".concat(c[5]-e+a,",").concat(c[6]-n+o):"");case"A":return"A ".concat(c[1]," ").concat(c[2]," ").concat(c[3]," ").concat(c[4]," ").concat(c[5]," ").concat(c[6]-e," ").concat(c[7]-n)+(h?" L ".concat(c[6]-e+a,",").concat(c[7]-n+o):"");case"Z":return"Z"}}).join(" ");return~s.indexOf("NaN")?"":s}var fx=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=rf(t)}catch(d){e=rf(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}W6(e);var n=H6(e),r=Y6(e),i=r.polygons,a=r.polylines,o=V6(e),s=$6(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},Q6=Yr(fx);function y0(t){return er(t)?Q6(t):fx(t)}function J6(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=qp(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=qp(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=Ob(r,i));var o=wb(a[0])!==wb(a[1])?mj(a[0]):bj(a[0]);return[o,_j(a[1],o),function(s){return s}]}function dx(t,e){var n;er(t)?n=t.split(" ").map(function(u){var f=(0,S.CR)(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=Wj(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=Cb(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function t8(t,e){return[t.points,e.points,function(n){return n}]}var lr=null;function hi(t){return function(e){var n=0;return t.map(function(r){return r===lr?e[n++]:r})}}function Yo(t){return t}var m0={matrix:["NNNNNN",[lr,lr,0,0,lr,lr,0,0,0,0,1,0,lr,lr,0,1],Yo],matrix3d:["NNNNNNNNNNNNNNNN",Yo],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",hi([lr,lr,new kn(1)]),Yo],scalex:["N",hi([lr,new kn(1),new kn(1)]),hi([lr,new kn(1)])],scaley:["N",hi([new kn(1),lr,new kn(1)]),hi([new kn(1),lr])],scalez:["N",hi([new kn(1),new kn(1),lr])],scale3d:["NNN",Yo],skew:["Aa",null,Yo],skewx:["A",null,hi([lr,Ea])],skewy:["A",null,hi([Ea,lr])],translate:["Tt",hi([lr,lr,Cr]),Yo],translatex:["T",hi([lr,Cr,Cr]),hi([lr,Cr])],translatey:["T",hi([Cr,lr,Cr]),hi([Cr,lr])],translatez:["L",hi([Cr,Cr,lr])],translate3d:["TTL",Yo]};function mf(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=m0[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=f0(n.anchor,2)),n.transform&&(e.parsedStyle.transform=mf(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=px(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===St.CIRCLE||e.nodeName===St.ELLIPSE)&&(!(0,me.Z)(n.cx)||!(0,me.Z)(n.cy))||(e.nodeName===St.RECT||e.nodeName===St.IMAGE||e.nodeName===St.GROUP||e.nodeName===St.HTML||e.nodeName===St.TEXT||e.nodeName===St.MESH)&&(!(0,me.Z)(n.x)||!(0,me.Z)(n.y)||!(0,me.Z)(n.z))||e.nodeName===St.LINE&&(!(0,me.Z)(n.x1)||!(0,me.Z)(n.y1)||!(0,me.Z)(n.z1)||!(0,me.Z)(n.x2)||!(0,me.Z)(n.y2)||!(0,me.Z)(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),(0,me.Z)(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),(0,me.Z)(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=d,v=Object.keys(n);v.forEach(function(g){var y;u||(e.attributes[g]=n[g]),!p&&(!((y=Ja[g])===null||y===void 0)&&y.l)&&(p=!0)}),f||v.forEach(function(g){e.computedStyle[g]=i.parseProperty(g,e.attributes[g],e)}),h!=null&&h.length&&(v=Array.from(new Set(v.concat(h)))),v.forEach(function(g){g in e.computedStyle&&(e.parsedStyle[g]=i.computeProperty(g,e.computedStyle[g],e))}),p&&this.updateGeometry(e),v.forEach(function(g){g in e.parsedStyle&&i.postProcessProperty(g,e,v)}),this.runtime.enableCSSParsing&&e.children.length&&v.forEach(function(g){g in e.parsedStyle&&i.isPropertyInheritable(g)&&e.children.forEach(function(y){y.internalSetAttribute(g,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r){var i=Ja[e],a=n;if((n===""||(0,me.Z)(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")a=c0(n);else if(i){var o=i.k,s=i.syntax,c=s&&this.getPropertySyntax(s);o&&o.indexOf(n)>-1?a=c0(n):c&&c.parser&&(a=c.parser(n,r))}return a},t.prototype.computeProperty=function(e,n,r){var i=Ja[e],a=r.id==="g-root",o=n;if(i){var s=i.syntax,c=i.inh,l=i.d;if(n instanceof di){var u=n.value;if(u==="unset"&&(c&&!a?u="inherit":u="initial"),u==="initial")(0,me.Z)(l)||(n=this.parseProperty(e,Fs(l)?l(r.nodeName):l,r));else if(u==="inherit"){var f=this.tryToResolveProperty(r,e,{inherited:!0});if((0,me.Z)(f)){this.addUnresolveProperty(r,e);return}else return f}}var d=s&&this.getPropertySyntax(s);if(d&&d.calculator){var h=r.parsedStyle[e];o=d.calculator(e,h,n,r,this.runtime)}else n instanceof di?o=n.value:o=n}return o},t.prototype.postProcessProperty=function(e,n,r){var i=Ja[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=Ws.get(e);r||(Ws.set(e,[]),r=Ws.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&u8(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=Ws.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),Ws.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new Er),i.renderBounds||(i.renderBounds=new Er);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,_=m.lineWidth,O=m.increasedLineWidthForHitTesting,w=m.shadowType,M=m.shadowColor,E=m.filter,A=E===void 0?[]:E,P=m.transformOrigin,C=a.anchor;n===St.TEXT?delete a.anchor:n===St.MESH&&(a.anchor[2]=.5);var j=[(1-(C&&C[0]||0)*2)*s/2+d,(1-(C&&C[1]||0)*2)*c/2+p,(1-(C&&C[2]||0)*2)*y[2]+g];i.contentBounds.update(j,y);var N=n===St.POLYLINE||n===St.POLYGON||n===St.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var R=((_||0)+(O||0))*N;y[0]+=R,y[1]+=R}if(i.renderBounds.update(j,y),M&&w&&w!=="inner"){var D=i.renderBounds,B=D.min,F=D.max,z=a,Y=z.shadowBlur,q=z.shadowOffsetX,rt=z.shadowOffsetY,st=Y||0,At=q||0,Yt=rt||0,qt=B[0]-st+At,Rt=F[0]+st+At,Lt=B[1]-st+Yt,le=F[1]+st+Yt;B[0]=Math.min(B[0],qt),F[0]=Math.max(F[0],Rt),B[1]=Math.min(B[1],Lt),F[1]=Math.max(F[1],le),i.renderBounds.setMinMax(B,F)}A.forEach(function(Je){var hn=Je.name,xn=Je.params;if(hn==="blur"){var Un=xn[0].value;i.renderBounds.update(i.renderBounds.center,uf(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Un,Un,0]))}else if(hn==="drop-shadow"){var mr=xn[0].value,xi=xn[1].value,Va=xn[2].value,ws=i.renderBounds,si=ws.min,Ui=ws.max,An=si[0]-Va+mr,_n=Ui[0]+Va+mr,ar=si[1]-Va+xi,Tn=Ui[1]+Va+xi;si[0]=Math.min(si[0],An),Ui[0]=Math.max(Ui[0],_n),si[1]=Math.min(si[1],ar),Ui[1]=Math.max(Ui[1],Tn),i.renderBounds.setMinMax(si,Ui)}}),C=a.anchor;var ue=s<0,we=c<0,Ue=(ue?-1:1)*(P?Mi(P[0],0,e):0),ze=(we?-1:1)*(P?Mi(P[1],1,e):0);Ue=Ue-(ue?-1:1)*(C&&C[0]||0)*i.contentBounds.halfExtents[0]*2,ze=ze-(we?-1:1)*(C&&C[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(Ue,ze),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Ja[e];return n?n.inh:!1},t}(),d8=function(){function t(){this.parser=tx,this.parserWithCSSDisabled=null,this.mixer=d0}return t.prototype.calculator=function(e,n,r,i){return Si(r)},t}(),h8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof di&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),p8=function(){function t(){this.parser=Aa,this.parserWithCSSDisabled=Aa,this.mixer=D6}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?r.value==="none"?l0:Kb:r},t}(),v8=function(){function t(){this.parser=nx}return t.prototype.calculator=function(e,n,r){return r instanceof di?[]:r},t}();function yx(t){var e=t.parsedStyle.fontSize;return(0,me.Z)(e)?null:e}var w0=function(){function t(){this.parser=Gs,this.parserWithCSSDisabled=null,this.mixer=d0}return t.prototype.calculator=function(e,n,r,i,a){var o;if((0,xr.Z)(r))return r;if(kn.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===oe.kPercentage)return 0;if(r.unit===oe.kEms){if(i.parentNode){var c=yx(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===oe.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=yx(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),g8=function(){function t(){this.mixer=ix}return t.prototype.parser=function(e){var n=ex((0,xr.Z)(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),y8=function(){function t(){this.mixer=ix}return t.prototype.parser=function(e){var n=ex((0,xr.Z)(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),Jc=Kt.create();function S0(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[Cr,Cr];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[Cr];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[Cr];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[Cr];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[Cr,Cr,Cr];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Ea];e.rotateLocal(0,0,Si(l[0]))}else if(a==="rotatex"){var l=o||[Ea];e.rotateLocal(Si(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Ea];e.rotateLocal(0,Si(l[0]),0)}else if(a==="rotatez"){var l=o||[Ea];e.rotateLocal(0,0,Si(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(rr(u[0]),rr(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(rr(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],rr(u[0]))}else if(a==="matrix"){var f=(0,S.CR)(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(Kt.set(Jc,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(Kt.set.apply(Kt,(0,S.ev)([Jc],(0,S.CR)(o.map(function(m){return m.value})),!1)),Jc[12]+=n,Jc[13]+=r,e.setLocalTransform(Jc))}),e.getLocalTransform()}var m8=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case St.CIRCLE:case St.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;(0,me.Z)(c)||(i=c),(0,me.Z)(l)||(a=l),(0,me.Z)(u)||(o=u);break;case St.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case St.RECT:case St.IMAGE:case St.GROUP:case St.HTML:case St.TEXT:case St.MESH:(0,me.Z)(n.parsedStyle.x)||(i=n.parsedStyle.x),(0,me.Z)(n.parsedStyle.y)||(a=n.parsedStyle.y),(0,me.Z)(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==St.PATH&&n.nodeName!==St.POLYLINE&&n.nodeName!==St.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!(0,me.Z)(i)||!(0,me.Z)(a)||!(0,me.Z)(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)S0(b,n);else{var _=(0,S.CR)(n.getLocalPosition(),3),O=_[0],w=_[1],M=_[2];n.setLocalPosition((0,me.Z)(i)?O:i,(0,me.Z)(a)?w:a,(0,me.Z)(o)?M:o)}}},e}(w0),b8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof di&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),x8=function(){function t(){this.mixer=d0,this.parser=Ho,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),_8=function(){function t(){this.parser=Ho,this.parserWithCSSDisabled=null,this.mixer=h0(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===St.LINE||a===St.PATH||a===St.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),O8=function(){function t(){this.parser=Ho,this.parserWithCSSDisabled=null,this.mixer=h0(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),w8=function(){function t(){this.parser=y0,this.parserWithCSSDisabled=y0,this.mixer=J6}return t.prototype.calculator=function(e,n,r){return r instanceof di&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Wo(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===St.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),S8=function(){function t(){this.parser=dx,this.mixer=t8}return t.prototype.postProcessor=function(e,n){if((e.nodeName===St.POLYGON||e.nodeName===St.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),M8=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.mixer=h0(0,1/0),n}return e}(w0),E8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),A8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),M0={},T8=0;function P8(t,e){if(t){var n=typeof t=="string"?t:t.id||T8++;M0[n]&&M0[n].destroy(),M0[n]=e}}var tl=typeof window!="undefined"&&typeof window.document!="undefined";function C8(t){return!!t.getAttribute}function k8(t,e){for(var n=0,r=t.length;n>>1;mx(t[i],e)<0?n=i+1:r=i}return n}function mx(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function bx(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var xx="px";function R8(t,e,n){tl&&t.style&&(t.style.width=e+xx,t.style.height=n+xx)}function _x(t,e){if(tl)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function L8(t){var e=_x(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function N8(t){var e=_x(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var I8=1,j8={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},E0=typeof performance=="object"&&performance.now?performance:Date;function $o(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var D8=1,B8=function(){return D8++},ca=typeof self=="object"&&self.self==self?self:typeof gt.g=="object"&>.g.global==gt.g?gt.g:{},F8=Date.now(),z8=function(){return ca.performance&&typeof ca.performance.now=="function"?ca.performance.now():Date.now()-F8},el={},Ox=Date.now(),G8=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-Ox,r=n>16?0:16-n,i=B8();return el[i]=t,Object.keys(el).length>1||setTimeout(function(){Ox=e;var a=el;el={},Object.keys(a).forEach(function(o){return a[o](z8())})},r),i},W8=function(t){delete el[t]},H8=["","webkit","moz","ms","o"],wx=function(t){return typeof t!="string"?G8:t===""?ca.requestAnimationFrame:ca[t+"RequestAnimationFrame"]},Y8=function(t){return typeof t!="string"?W8:t===""?ca.cancelAnimationFrame:ca[t+"CancelAnimationFrame"]||ca[t+"CancelRequestAnimationFrame"]},$8=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},Sx=$8(H8,function(t){return!!wx(t)}),Mx=wx(Sx),Ex=Y8(Sx);ca.requestAnimationFrame=Mx,ca.cancelAnimationFrame=Ex;var V8=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!q8.test(l)&&U8.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var K8=function(){function t(){this.parser=mf,this.parserWithCSSDisabled=mf,this.mixer=l8}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;S0(n,e)},t}(),Q8=function(){function t(){this.parser=px}return t}(),J8=function(){function t(){this.parser=Ho}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=zs.Z_INDEX_CHANGED)}},t}(),tD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),eD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),nD=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),rD=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),iD=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Dr(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),aD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!er(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),oD=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!(0,me.Z)(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var _=0;return c==="middle"?_=y[1]:c==="top"||c==="hanging"?_=y[1]*2:c==="alphabetic"?_=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(_=0),l&&(b+=l),u&&(_+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:_}},t}();function sD(t){return!!t.type}var bf=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Pr,this.page=new Pr,this.canvas=new Pr,this.viewport=new Pr,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(Cn)},t}(),Ax=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.client=new Pr,n.movement=new Pr,n.offset=new Pr,n.global=new Pr,n.screen=new Pr,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(Cn)},e}(bf),T0=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(Ax),P0=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(Ax),Nn=function(t){(0,S.ZT)(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}(bf),Tx=":",Px=function(){function t(){this.emitter=new Hp.Z}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Sb(r)&&r||zo(r)&&r.capture,a=zo(r)&&r.once,o=Fs(n)?void 0:n,s=!1,c="";if(e.indexOf(Tx)>-1){var l=(0,S.CR)(e.split(Tx),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=Fs(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(Cn)},e.prototype.lookupNamespaceURI=function(n){throw new Error(Cn)},e.prototype.lookupPrefix=function(n){throw new Error(Cn)},e.prototype.normalize=function(){throw new Error(Cn)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Px),cD=2048,lD=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new Hp.Z,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Kt.create(),this.tmpVec3=dt.create(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=E0.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}kr.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),kr.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&kr.isNode(c)&&c.parentNode;p&&p!==(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),kr.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),kr.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(kr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),kr.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),kr.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Pr(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Pr(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=Kt.multiply(this.tmpMatrix,u,l),d=dt.set(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return dt.transformMat4(d,d,f),new Pr(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=Kt.multiply(this.tmpMatrix,i,a),s=dt.set(this.tmpVec3,e.x,e.y,0);dt.transformMat4(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Pr((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=(0,S.XA)(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.globalRuntime.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(T0);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r!=null?r:o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i,typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(P0);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(P0);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(T0);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n!=null?n:r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=E0.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n!=null?n:e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||kr.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=C8(n)&&n.getAttribute("cursor");if(r)return r;n=kr.isNode(n)&&n.parentNode}},t}(),uD=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||Pt.offscreenCanvas)this.canvas=e||Pt.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(r){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),to;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(to||(to={}));var fD=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new ni,initAsync:new V8,dirtycheck:new A0,cull:new A0,beginFrame:new ni,beforeRender:new ni,render:new ni,afterRender:new ni,endFrame:new ni,destroy:new ni,pick:new X8,pickSync:new A0,pointerDown:new ni,pointerUp:new ni,pointerMove:new ni,pointerOut:new ni,pointerOver:new ni,pointerWheel:new ni,pointerCancel:new ni,click:new ni}}return t.prototype.init=function(e){var n=this,r=(0,S.pi)((0,S.pi)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(to.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(to.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==zs.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=k8(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(mx)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(to.DISPLAY_OBJECT_CHANGED)},t}(),dD=/\[\s*(.*)=(.*)\s*\]/,hD=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(dD),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return(0,me.Z)(r)?"":r.toString?r.toString():""},t}(),eo=function(t){(0,S.ZT)(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}(bf),Ie;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(Ie||(Ie={}));function Cx(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var pD=new eo(Ie.REPARENT,null,"","","",0,"",""),vD=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Nn(Ie.BOUNDS_CHANGED),this.rotate=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=dt.fromValues(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=br();Qu(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);Ju(r,f),$p(r,r),Ua(l,r,l),Ua(c.localRotation,l,u),tf(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=dt.fromValues(a,o,s));var c=i.transformable;Qu(r,a[0],a[1],a[2]),ub(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=dt.fromValues(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{Qu(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);Ju(r,$p(br(),l)),ub(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=dt.fromValues(i,a,o));var s=r.transformable;dt.equals(i,dt.create())||(dt.transformQuat(i,i,s.localRotation),dt.add(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=Kt.create(),i=dt.create();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!dt.equals(n.getPosition(a),i)){if(dt.copy(s.position,i),a.parentNode===null||!a.parentNode.transformable)dt.copy(s.localPosition,i);else{var c=a.parentNode.transformable;Kt.copy(r,c.worldTransform),Kt.invert(r,r),dt.transformMat4(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=dt.create();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!dt.equals(o.localPosition,r)&&(dt.copy(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=dt.create(),i=dt.create(),a=dt.create();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=dt.set(i,s,c,l)),!dt.equals(s,r)&&(dt.add(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=br();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=Vp(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);Ju(r,u),$p(r,r),Ua(l.localRotation,r,a),tf(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=Kt.create(),i=dt.create(),a=Vp(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(Kt.fromRotationTranslationScaleOrigin(o.localTransform,o.localRotation,o.localPosition,dt.fromValues(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=Kt.identity(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),Kt.multiply(o.localTransform,o.localTransform,c)}var l=Kt.fromRotationTranslationScaleOrigin(r,a,i,o.localScale,o.origin);Kt.multiply(o.localTransform,o.localTransform,l)}else Kt.fromRotationTranslationScaleOrigin(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,(0,me.Z)(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=zs.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(pD)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=zs.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=dt.fromValues(n,r,i));var a=e.transformable;Qu(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;dt.multiply(r.localScale,r.localScale,dt.fromValues(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=dt.fromValues(n[0],n[1],n[2]||r.localScale[2]);dt.equals(i,r.localScale)||(dt.copy(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=Vp(n,r,i,a));var o=e.transformable;Ju(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=$c.al(n,r));var i=e.transformable;$c.JG(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)Cx(r),r=r.parentNode;n&&e.forEach(function(i){Cx(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new eo(Ie.ATTR_MODIFIED,a,n,n,i,eo.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return Kt.getTranslation(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return Kt.getRotation(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return Kt.getScaling(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=Kt.getTranslation(dt.create(),n),i=Kt.getRotation(br(),n),a=Kt.getScaling(dt.create(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(Er.isEmpty(i))return null;var a=r||new Er;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new Er},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new Er,o.update(f.center,f.halfExtents)))}),n){var c=bx(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new Er),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=Kt.create();e.parentNode.transformable&&(n=Kt.invert(Kt.create(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!Er.isEmpty(r)){var i=new Er;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);Er.isEmpty(a)||(i=new Er,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=(0,S.CR)(i.getMin(),2),c=s[0],l=s[1],u=(0,S.CR)(i.getMax(),2),f=u[0],d=u[1];return new Wo(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Wo((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+A>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var P=p[v].length,C=0,j=P,N=0;Nd){j=N;break}C+=k}p[v]=(p[v]||"").slice(0,j)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(w))continue;this.canBreakInLastChar(w)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(w,E)&&(p=this.trimByKinsokuShorui(p),g+=m(M||""))}g+=A,p[v]=(p[v]||"")+w}return p.join(` -`)},t.prototype.isBreakingSpace=function(e){return typeof e!="string"?!1:Vo.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:Vo.Newlines.indexOf(e.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(e){var n=(0,S.ev)([],(0,S.CR)(e),!1),r=n[n.length-2],i=this.findBreakableIndex(r);if(i===-1||!r)return n;var a=r.slice(i,i+1),o=this.isBreakingSpace(a),s=i+1,c=i+(o?0:1);return n[n.length-1]+=r.slice(s,r.length),n[n.length-2]=r.slice(0,c),n},t.prototype.canBreakInLastChar=function(e){return!(e&&kx.test(e))},t.prototype.sumTextWidthByCache=function(e,n){return e.split("").reduce(function(r,i){if(!n[i])throw Error("cannot count the word without cache");return r+n[i]},0)},t.prototype.findBreakableIndex=function(e){for(var n=e.length-1;n>=0;n--)if(!kx.test(e[n]))return n;return-1},t.prototype.getFromCache=function(e,n,r,i){var a=r[e];if(typeof a!="number"){var o=e.length*n;a=i.measureText(e).width+o,r[e]=a}return a},t}(),Pt={},AD=function(){var t,e=new aD,n=new iD;return t={},t[St.CIRCLE]=new tD,t[St.ELLIPSE]=new eD,t[St.RECT]=e,t[St.IMAGE]=e,t[St.GROUP]=e,t[St.LINE]=new nD,t[St.TEXT]=new oD(Pt),t[St.POLYLINE]=n,t[St.POLYGON]=n,t[St.PATH]=new rD,t[St.HTML]=null,t[St.MESH]=null,t}(),TD=function(){var t,e=new p8,n=new w0;return t={},t[ce.PERCENTAGE]=null,t[ce.NUMBER]=new x8,t[ce.ANGLE]=new d8,t[ce.DEFINED_PATH]=new h8,t[ce.PAINT]=e,t[ce.COLOR]=e,t[ce.FILTER]=new v8,t[ce.LENGTH]=n,t[ce.LENGTH_PERCENTAGE]=n,t[ce.LENGTH_PERCENTAGE_12]=new g8,t[ce.LENGTH_PERCENTAGE_14]=new y8,t[ce.COORDINATE]=new m8,t[ce.OFFSET_DISTANCE]=new _8,t[ce.OPACITY_VALUE]=new O8,t[ce.PATH]=new w8,t[ce.LIST_OF_POINTS]=new S8,t[ce.SHADOW_BLUR]=new M8,t[ce.TEXT]=new E8,t[ce.TEXT_TRANSFORM]=new A8,t[ce.TRANSFORM]=new K8,t[ce.TRANSFORM_ORIGIN]=new Q8,t[ce.Z_INDEX]=new J8,t[ce.MARKER]=new b8,t}(),PD=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof gt.g!="undefined"?gt.g:{}};Pt.CameraContribution=Xb,Pt.AnimationTimeline=null,Pt.EasingFunction=null,Pt.offscreenCanvasCreator=new uD,Pt.nativeHTMLMap=new WeakMap,Pt.sceneGraphSelector=new hD,Pt.sceneGraphService=new vD(Pt),Pt.textService=new ED(Pt),Pt.geometryUpdaterFactory=AD,Pt.CSSPropertySyntaxFactory=TD,Pt.styleValueRegistry=new f8(Pt),Pt.layoutRegistry=null,Pt.globalThis=PD(),Pt.enableCSSParsing=!0,Pt.enableDataset=!1,Pt.enableStyleSyntax=!0;var Rx=0;function _ft(){Rx=0}var Lx=new eo(Ie.INSERTED,null,"","","",0,"",""),Nx=new eo(Ie.REMOVED,null,"","","",0,"",""),CD=new Nn(Ie.DESTROY),kD=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.entity=Rx++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:u0.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={},n.computedStyle=Pt.enableCSSParsing?{anchor:zn,opacity:zn,fillOpacity:zn,strokeOpacity:zn,fill:zn,stroke:zn,transform:zn,transformOrigin:zn,visibility:zn,pointerEvents:zn,lineWidth:zn,lineCap:zn,lineJoin:zn,increasedLineWidthForHitTesting:zn,fontSize:zn,fontFamily:zn,fontStyle:zn,fontWeight:zn,fontVariant:zn,textAlign:zn,textBaseline:zn,textTransform:zn,zIndex:zn,filter:zn,shadowType:zn}:null,n.parsedStyle={},n.attributes={},n}return Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(n){return n!==""})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(n){throw new Error(Cn)},e.prototype.appendChild=function(n,r){var i;if(n.destroyed)throw new Error(c6);return Pt.sceneGraphService.attach(n,this,r),!((i=this.ownerDocument)===null||i===void 0)&&i.defaultView&&this.ownerDocument.defaultView.mountChildren(n),Lx.relatedNode=this,n.dispatchEvent(Lx),n},e.prototype.insertBefore=function(n,r){if(!r)this.appendChild(n);else{n.parentElement&&n.parentElement.removeChild(n);var i=this.childNodes.indexOf(r);i===-1?this.appendChild(n):this.appendChild(n,i)}return n},e.prototype.replaceChild=function(n,r){var i=this.childNodes.indexOf(r);return this.removeChild(r),this.appendChild(n,i),r},e.prototype.removeChild=function(n){var r;return Nx.relatedNode=this,n.dispatchEvent(Nx),!((r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n.ownerDocument.defaultView.unmountChildren(n),Pt.sceneGraphService.detach(n),n},e.prototype.removeChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];this.removeChild(r)}},e.prototype.destroyChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];r.childNodes.length&&r.destroyChildren(),r.destroy()}},e.prototype.matches=function(n){return Pt.sceneGraphService.matches(n,this)},e.prototype.getElementById=function(n){return Pt.sceneGraphService.querySelector("#".concat(n),this)},e.prototype.getElementsByName=function(n){return Pt.sceneGraphService.querySelectorAll('[name="'.concat(n,'"]'),this)},e.prototype.getElementsByClassName=function(n){return Pt.sceneGraphService.querySelectorAll(".".concat(n),this)},e.prototype.getElementsByTagName=function(n){return Pt.sceneGraphService.querySelectorAll(n,this)},e.prototype.querySelector=function(n){return Pt.sceneGraphService.querySelector(n,this)},e.prototype.querySelectorAll=function(n){return Pt.sceneGraphService.querySelectorAll(n,this)},e.prototype.closest=function(n){var r=this;do{if(Pt.sceneGraphService.matches(n,r))return r;r=r.parentElement}while(r!==null);return null},e.prototype.find=function(n){var r=this,i=null;return this.forEach(function(a){return a!==r&&n(a)?(i=a,!0):!1}),i},e.prototype.findAll=function(n){var r=this,i=[];return this.forEach(function(a){a!==r&&n(a)&&i.push(a)}),i},e.prototype.after=function(){for(var n=this,r=[],i=0;i1){var i=n[0].currentPoint,a=n[1].currentPoint,o=n[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.path.segments,r=n.length,i=[];if(r>1){var a=n[r-2].currentPoint,o=n[r-1].currentPoint,s=n[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},e}($r),il=function(t){(0,S.ZT)(e,t);function e(n){var r=this;n===void 0&&(n={});var i=n.style,a=(0,S._T)(n,["style"]);r=t.call(this,(0,S.pi)({type:St.POLYGON,style:Pt.enableCSSParsing?(0,S.pi)({points:"",miterLimit:"",isClosed:!0},i):(0,S.pi)({},i),initialParsedStyle:Pt.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},a))||this,r.markerStartAngle=0,r.markerEndAngle=0,r.markerMidList=[];var o=r.parsedStyle,s=o.markerStart,c=o.markerEnd,l=o.markerMid;return s&&vn(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),l&&vn(l)&&r.placeMarkerMid(l),c&&vn(c)&&(r.markerEndAngle=c.getLocalEulerAngles(),r.appendChild(c)),r.transformMarker(!0),r.transformMarker(!1),r}return e.prototype.attributeChangedCallback=function(n,r,i,a,o){n==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(a&&vn(a)&&(this.markerStartAngle=0,a.remove()),o&&vn(o)&&(this.markerStartAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!0))):n==="markerEnd"?(a&&vn(a)&&(this.markerEndAngle=0,a.remove()),o&&vn(o)&&(this.markerEndAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!1))):n==="markerMid"&&this.placeMarkerMid(o)},e.prototype.transformMarker=function(n){var r=this.parsedStyle,i=r.markerStart,a=r.markerEnd,o=r.markerStartOffset,s=r.markerEndOffset,c=r.points,l=r.defX,u=r.defY,f=(c||{}).points,d=n?i:a;if(!(!d||!vn(d)||!f)){var h=0,p,v,g,y,m,b;if(g=f[0][0]-l,y=f[0][1]-u,n)p=f[1][0]-f[0][0],v=f[1][1]-f[0][1],m=o||0,b=this.markerStartAngle;else{var _=f.length;this.parsedStyle.isClosed?(p=f[_-1][0]-f[0][0],v=f[_-1][1]-f[0][1]):(g=f[_-1][0]-l,y=f[_-1][1]-u,p=f[_-2][0]-f[_-1][0],v=f[_-2][1]-f[_-1][1]),m=s||0,b=this.markerEndAngle}h=Math.atan2(v,p),d.setLocalEulerAngles(h*180/Math.PI+b),d.setLocalPosition(g+Math.cos(h)*m,y+Math.sin(h)*m)}},e.prototype.placeMarkerMid=function(n){var r=this.parsedStyle,i=r.points,a=r.defX,o=r.defY,s=(i||{}).points;if(this.markerMidList.forEach(function(d){d.remove()}),this.markerMidList=[],n&&vn(n)&&s)for(var c=1;c<(this.parsedStyle.isClosed?s.length:s.length-1);c++){var l=s[c][0]-a,u=s[c][1]-o,f=c===1?n:n.cloneNode(!0);this.markerMidList.push(f),this.appendChild(f),f.setLocalPosition(l,u)}},e}($r),L0=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:St.POLYLINE,style:Pt.enableCSSParsing?(0,S.pi)({points:"",miterLimit:"",isClosed:!1},r):(0,S.pi)({},r),initialParsedStyle:Pt.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i))||this}return e.prototype.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(n,r){return r===void 0&&(r=!1),this.getPoint(n/this.getTotalLength(),r)},e.prototype.getPoint=function(n,r){r===void 0&&(r=!1);var i=this.parsedStyle,a=i.defX,o=i.defY,s=i.points,c=s.points,l=s.segments,u=0,f=0;l.forEach(function(g,y){n>=g[0]&&n<=g[1]&&(u=(n-g[0])/(g[1]-g[0]),f=y)});var d=aa(c[f][0],c[f][1],c[f+1][0],c[f+1][1],u),h=d.x,p=d.y,v=dt.transformMat4(dt.create(),dt.fromValues(h-a,p-o,0),r?this.getWorldTransform():this.getLocalTransform());return new Pr(v[0],v[1])},e.prototype.getStartTangent=function(){var n=this.parsedStyle.points.points,r=[];return r.push([n[1][0],n[1][1]]),r.push([n[0][0],n[0][1]]),r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.points.points,r=n.length-1,i=[];return i.push([n[r-1][0],n[r-1][1]]),i.push([n[r][0],n[r][1]]),i},e}(il),Xo=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:St.RECT,style:Pt.enableCSSParsing?(0,S.pi)({x:"",y:"",width:"",height:"",radius:""},r):(0,S.pi)({},r)},i))||this}return e}($r),Zi=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:St.TEXT,style:Pt.enableCSSParsing?(0,S.pi)({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},r):(0,S.pi)({fill:"black"},r),initialParsedStyle:Pt.enableCSSParsing?{}:{x:0,y:0,fontSize:16,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",lineHeight:0,letterSpacing:0,textBaseline:"alphabetic",textAlign:"start",wordWrap:!1,wordWrapWidth:0,leading:0,dx:0,dy:0}},i))||this}return e.prototype.getComputedTextLength=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.lineMetrics)||[]},e.prototype.isOverflowing=function(){return!!this.parsedStyle.isOverflowing},e}($r),jD=function(){function t(){this.registry={},this.define(St.CIRCLE,nl),this.define(St.ELLIPSE,k0),this.define(St.RECT,Xo),this.define(St.IMAGE,R0),this.define(St.LINE,rl),this.define(St.GROUP,Br),this.define(St.PATH,ri),this.define(St.POLYGON,il),this.define(St.POLYLINE,L0),this.define(St.TEXT,Zi),this.define(St.HTML,xf)}return t.prototype.define=function(e,n){this.registry[e]=n},t.prototype.get=function(e){return this.registry[e]},t}(),DD=function(t){(0,S.ZT)(e,t);function e(){var n=t.call(this)||this;n.defaultView=null,n.ownerDocument=null,n.nodeName="document";try{n.timeline=new Pt.AnimationTimeline(n)}catch(i){}var r={};return O0.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(r[a]=Fs(s)?s(St.GROUP):s)}),n.documentElement=new Br({id:"g-root",style:r}),n.documentElement.ownerDocument=n,n.documentElement.parentNode=n,n.childNodes=[n.documentElement],n}return Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(n,r){if(n==="svg")return this.documentElement;var i=this.defaultView.customElements.get(n);i||(console.warn("Unsupported tagName: ",n),i=n==="tspan"?Zi:Br);var a=new i(r);return a.ownerDocument=this,a},e.prototype.createElementNS=function(n,r,i){return this.createElement(r,i)},e.prototype.cloneNode=function(n){throw new Error(Cn)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(n){}},e.prototype.elementsFromBBox=function(n,r,i,a){var o=this.defaultView.context.rBushRoot,s=o.search({minX:n,minY:r,maxX:i,maxY:a}),c=[];return s.forEach(function(l){var u=l.displayObject,f=u.parsedStyle.pointerEvents,d=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(f);(!d||d&&u.isVisible())&&!u.isCulled()&&u.isInteractive()&&c.push(u)}),c.sort(function(l,u){return u.sortable.renderOrder-l.sortable.renderOrder}),c},e.prototype.elementFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return null;var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(n,r){return(0,S.mG)(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return(0,S.Jh)(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,null]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,[2,h&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return[];var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(n,r){return(0,S.mG)(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return(0,S.Jh)(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,[]]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,h[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(n,r){throw new Error(Bs)},e.prototype.insertBefore=function(n,r){throw new Error(Bs)},e.prototype.removeChild=function(n,r){throw new Error(Bs)},e.prototype.replaceChild=function(n,r,i){throw new Error(Bs)},e.prototype.append=function(){throw new Error(Bs)},e.prototype.prepend=function(){throw new Error(Bs)},e.prototype.getElementById=function(n){return this.documentElement.getElementById(n)},e.prototype.getElementsByName=function(n){return this.documentElement.getElementsByName(n)},e.prototype.getElementsByTagName=function(n){return this.documentElement.getElementsByTagName(n)},e.prototype.getElementsByClassName=function(n){return this.documentElement.getElementsByClassName(n)},e.prototype.querySelector=function(n){return this.documentElement.querySelector(n)},e.prototype.querySelectorAll=function(n){return this.documentElement.querySelectorAll(n)},e.prototype.find=function(n){return this.documentElement.find(n)},e.prototype.findAll=function(n){return this.documentElement.findAll(n)},e}(kr),BD=function(){function t(e){this.strategies=e}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,a=this.strategies;r.hooks.cull.tap(t.tag,function(o){if(o){var s=o.cullable;return a.length===0?s.visible=i.unculledEntities.indexOf(o.entity)>-1:s.visible=a.every(function(c){return c.isVisible(n,o)}),!o.isCulled()&&o.isVisible()?o:(o.dispatchEvent(new Nn(Ie.CULLED)),null)}return o}),r.hooks.afterRender.tap(t.tag,function(o){o.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),FD=function(){function t(){var e=this;this.autoPreventDefault=!1,this.rootPointerEvent=new T0(null),this.rootWheelEvent=new P0(null),this.onPointerMove=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView;if(!(s.supportsTouchEvents&&n.pointerType==="touch")){var c=e.normalizeToPointerEvent(n,s);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}},this.onClick=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView,c=e.normalizeToPointerEvent(n,s);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(a){var o=n.context.renderingService.hooks.pickSync.call({position:a,picked:[],topmost:!0}).picked;return o[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(a){var o=n.normalizeWheelEvent(a);n.context.eventService.mapEvent(o)}),r.hooks.pointerDown.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.normalizeToPointerEvent(a,i);if(n.autoPreventDefault&&c[0].isNormalized){var l=a.cancelable||!("cancelable"in a);l&&a.preventDefault()}try{for(var u=(0,S.XA)(c),f=u.next();!f.done;f=u.next()){var d=f.value,h=n.bootstrapEvent(n.rootPointerEvent,d,i,a);n.context.eventService.mapEvent(h)}}catch(p){o={error:p}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.context.contextService.getDomElement(),l="outside";try{l=c&&a.target&&a.target!==c&&c.contains&&!c.contains(a.target)?"outside":""}catch(v){}var u=n.normalizeToPointerEvent(a,i);try{for(var f=(0,S.XA)(u),d=f.next();!d.done;d=f.next()){var h=d.value,p=n.bootstrapEvent(n.rootPointerEvent,h,i,a);p.type+=l,n.context.eventService.mapEvent(p)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(a){var o,s,c=n.normalizeToPointerEvent(a,i);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=n.bootstrapEvent(n.rootPointerEvent,f,i,a);n.context.eventService.mapEvent(d)}}catch(h){o={error:h}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.getViewportXY=function(e){var n,r,i=e.offsetX,a=e.offsetY,o=e.clientX,s=e.clientY;if(this.context.config.supportsCSSTransform&&!(0,me.Z)(i)&&!(0,me.Z)(a))n=i,r=a;else{var c=this.context.eventService.client2Viewport(new Pr(o,s));n=c.x,r=c.y}return{x:n,y:r}},t.prototype.bootstrapEvent=function(e,n,r,i){e.view=r,e.originalEvent=null,e.nativeEvent=i,e.pointerId=n.pointerId,e.width=n.width,e.height=n.height,e.isPrimary=n.isPrimary,e.pointerType=n.pointerType,e.pressure=n.pressure,e.tangentialPressure=n.tangentialPressure,e.tiltX=n.tiltX,e.tiltY=n.tiltY,e.twist=n.twist,this.transferMouseData(e,n);var a=this.getViewportXY(n),o=a.x,s=a.y;e.viewport.x=o,e.viewport.y=s;var c=this.context.eventService.viewport2Canvas(e.viewport),l=c.x,u=c.y;return e.canvas.x=l,e.canvas.y=u,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.isTrusted=i.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=j8[e.type]||e.type),e},t.prototype.normalizeWheelEvent=function(e){var n=this.rootWheelEvent;this.transferMouseData(n,e),n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ;var r=this.getViewportXY(e),i=r.x,a=r.y;n.viewport.x=i,n.viewport.y=a;var o=this.context.eventService.viewport2Canvas(n.viewport),s=o.x,c=o.y;return n.canvas.x=s,n.canvas.y=c,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.nativeEvent=e,n.type=e.type,n},t.prototype.transferMouseData=function(e,n){e.isTrusted=n.isTrusted,e.srcElement=n.srcElement,e.timeStamp=E0.now(),e.type=n.type,e.altKey=n.altKey,e.metaKey=n.metaKey,e.shiftKey=n.shiftKey,e.ctrlKey=n.ctrlKey,e.button=n.button,e.buttons=n.buttons,e.client.x=n.clientX,e.client.y=n.clientY,e.movement.x=n.movementX,e.movement.y=n.movementY,e.page.x=n.pageX,e.page.y=n.pageY,e.screen.x=n.screenX,e.screen.y=n.screenY,e.relatedTarget=null},t.prototype.setCursor=function(e){this.context.contextService.applyCursorStyle(e||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(e,n){var r=[];if(n.isTouchEvent(e))for(var i=0;i-1,s=0,c=i.length;s=1?Math.ceil(C):1,A=s||L8(a)||a.width/C,P=c||N8(a)||a.height/C),o&&(Pt.offscreenCanvas=o),r.devicePixelRatio=C,r.requestAnimationFrame=p!=null?p:Mx.bind(Pt.globalThis),r.cancelAnimationFrame=v!=null?v:Ex.bind(Pt.globalThis),r.supportsTouchEvents=m!=null?m:"ontouchstart"in Pt.globalThis,r.supportsPointerEvents=y!=null?y:!!Pt.globalThis.PointerEvent,r.isTouchEvent=M!=null?M:function(j){return r.supportsTouchEvents&&j instanceof Pt.globalThis.TouchEvent},r.isMouseEvent=E!=null?E:function(j){return!Pt.globalThis.MouseEvent||j instanceof Pt.globalThis.MouseEvent&&(!r.supportsPointerEvents||!(j instanceof Pt.globalThis.PointerEvent))},r.initRenderingContext({container:i,canvas:a,width:A,height:P,renderer:u,offscreenCanvas:o,devicePixelRatio:C,cursor:d||"default",background:f||"transparent",createImage:g,document:h,supportsCSSTransform:b,useNativeClickEvent:O,alwaysTriggerPointerEventOnCanvas:w}),r.initDefaultCamera(A,P,u.clipSpaceNearZ),r.initRenderer(u,!0),r}return e.prototype.initRenderingContext=function(n){this.context.config=n,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(n,r,i){var a=this,o=new Pt.CameraContribution;o.clipSpaceNearZ=i,o.setType(wn.EXPLORING,Zc.DEFAULT).setPosition(n/2,r/2,Bx).setFocalPoint(n/2,r/2,0).setOrthographic(n/-2,n/2,r/2,r/-2,HD,YD),o.canvas=this,o.eventEmitter.on($b.UPDATED,function(){a.context.renderingContext.renderReasons.add(to.CAMERA_CHANGED)}),this.context.camera=o},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var n=this;return this.readyPromise||(this.readyPromise=new Promise(function(r){n.resolveReadyPromise=function(){r(n)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!1),r||this.dispatchEvent(new Nn(pi.BEFORE_DESTROY)),this.frameId){var i=this.getConfig().cancelAnimationFrame||cancelAnimationFrame;i(this.frameId)}var a=this.getRoot();this.unmountChildren(a),n&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),n&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),r||this.dispatchEvent(new Nn(pi.AFTER_DESTROY))},e.prototype.changeSize=function(n,r){this.resize(n,r)},e.prototype.resize=function(n,r){var i=this.context.config;i.width=n,i.height=r,this.getContextService().resize(n,r);var a=this.context.camera,o=a.getProjectionMode();a.setPosition(n/2,r/2,Bx).setFocalPoint(n/2,r/2,0),o===fi.ORTHOGRAPHIC?a.setOrthographic(n/-2,n/2,r/2,r/-2,a.getNear(),a.getFar()):a.setAspect(n/r),this.dispatchEvent(new Nn(pi.RESIZE,{width:n,height:r}))},e.prototype.appendChild=function(n,r){return this.document.documentElement.appendChild(n,r)},e.prototype.insertBefore=function(n,r){return this.document.documentElement.insertBefore(n,r)},e.prototype.removeChild=function(n){return this.document.documentElement.removeChild(n)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(){var n=this;this.dispatchEvent($D);var r=this.getRenderingService();r.render(this.getConfig(),function(){n.dispatchEvent(VD)}),this.dispatchEvent(XD)},e.prototype.run=function(){var n=this,r=function(){n.render(),n.frameId=n.requestAnimationFrame(r)};r()},e.prototype.initRenderer=function(n,r){var i=this;if(r===void 0&&(r=!1),!n)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new Uj,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new FD,new WD,new BD([new GD])),this.loadRendererContainerModule(n),this.context.contextService=new this.context.ContextService((0,S.pi)((0,S.pi)({},Pt),this.context)),this.context.renderingService=new fD(Pt,this.context),this.context.eventService=new lD(Pt,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(n,r,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(n,r)})},e.prototype.initRenderingService=function(n,r,i){var a=this;r===void 0&&(r=!1),i===void 0&&(i=!1),this.context.renderingService.init(function(){a.inited=!0,r?(i?a.requestAnimationFrame(function(){a.dispatchEvent(new Nn(pi.READY))}):a.dispatchEvent(new Nn(pi.READY)),a.readyPromise&&a.resolveReadyPromise()):a.dispatchEvent(new Nn(pi.RENDERER_CHANGED)),r||a.getRoot().forEach(function(o){var s=o.renderable;s&&(s.renderBoundsDirty=!0,s.boundsDirty=!0,s.dirty=!0)}),a.mountChildren(a.getRoot()),n.getConfig().enableAutoRendering&&a.run()})},e.prototype.loadRendererContainerModule=function(n){var r=this,i=n.getPlugins();i.forEach(function(a){a.context=r.context,a.init(Pt)})},e.prototype.setRenderer=function(n){var r=this.getConfig();if(r.renderer!==n){var i=r.renderer;r.renderer=n,this.destroy(!1,!0),(0,S.ev)([],(0,S.CR)(i==null?void 0:i.getPlugins()),!1).reverse().forEach(function(a){a.destroy(Pt)}),this.initRenderer(n)}},e.prototype.setCursor=function(n){var r=this.getConfig();r.cursor=n,this.getContextService().applyCursorStyle(n)},e.prototype.unmountChildren=function(n){var r=this;n.childNodes.forEach(function(i){r.unmountChildren(i)}),this.inited&&(n.isMutationObserved?n.dispatchEvent(I0):(I0.target=n,this.dispatchEvent(I0,!0)),n!==this.document.documentElement&&(n.ownerDocument=null),n.isConnected=!1),n.isCustomElement&&n.disconnectedCallback&&n.disconnectedCallback()},e.prototype.mountChildren=function(n){var r=this;this.inited?n.isConnected||(n.ownerDocument=this.document,n.isConnected=!0,n.isMutationObserved?n.dispatchEvent(N0):(N0.target=n,this.dispatchEvent(N0,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",n.nodeName),n.childNodes.forEach(function(i){r.mountChildren(i)}),n.isCustomElement&&n.connectedCallback&&n.connectedCallback()},e.prototype.client2Viewport=function(n){return this.getEventService().client2Viewport(n)},e.prototype.viewport2Client=function(n){return this.getEventService().viewport2Client(n)},e.prototype.viewport2Canvas=function(n){return this.getEventService().viewport2Canvas(n)},e.prototype.canvas2Viewport=function(n){return this.getEventService().canvas2Viewport(n)},e.prototype.getPointByClient=function(n,r){return this.client2Viewport({x:n,y:r})},e.prototype.getClientByPoint=function(n,r){return this.viewport2Client({x:n,y:r})},e}(Px),UD=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.landmarks=[],n}return e.prototype.rotate=function(n,r,i){if(this.relElevation=Ds(r),this.relAzimuth=Ds(n),this.relRoll=Ds(i),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===wn.EXPLORING){var a=Xa(br(),[1,0,0],rr((this.rotateWorld?1:-1)*this.relElevation)),o=Xa(br(),[0,1,0],rr((this.rotateWorld?1:-1)*this.relAzimuth)),s=Xa(br(),[0,0,1],rr(this.relRoll)),c=Ua(br(),o,a);c=Ua(br(),c,s);var l=Kt.fromQuat(Kt.create(),c);Kt.translate(this.matrix,this.matrix,[0,0,-this.distance]),Kt.multiply(this.matrix,this.matrix,l),Kt.translate(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===wn.ORBITING||this.type===wn.EXPLORING?this._getPosition():this.type===wn.TRACKING&&this._getFocalPoint(),this._update(),this},e.prototype.pan=function(n,r){var i=ei(n,r,0),a=dt.clone(this.position);return dt.add(a,a,dt.scale(dt.create(),this.right,i[0])),dt.add(a,a,dt.scale(dt.create(),this.up,i[1])),this._setPosition(a),this.triggerUpdate(),this},e.prototype.dolly=function(n){var r=this.forward,i=dt.clone(this.position),a=n*this.dollyingStep,o=this.distance+n*this.dollyingStep;return a=Math.max(Math.min(o,this.maxDistance),this.minDistance)-this.distance,i[0]+=a*r[0],i[1]+=a*r[1],i[2]+=a*r[2],this._setPosition(i),this.type===wn.ORBITING||this.type===wn.EXPLORING?this._getDistance():this.type===wn.TRACKING&&dt.add(this.focalPoint,i,this.distanceVector),this.triggerUpdate(),this},e.prototype.cancelLandmarkAnimation=function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)},e.prototype.createLandmark=function(n,r){var i,a,o,s;r===void 0&&(r={});var c=r.position,l=c===void 0?this.position:c,u=r.focalPoint,f=u===void 0?this.focalPoint:u,d=r.roll,h=r.zoom,p=new Pt.CameraContribution;p.setType(this.type,void 0),p.setPosition(l[0],(i=l[1])!==null&&i!==void 0?i:this.position[1],(a=l[2])!==null&&a!==void 0?a:this.position[2]),p.setFocalPoint(f[0],(o=f[1])!==null&&o!==void 0?o:this.focalPoint[1],(s=f[2])!==null&&s!==void 0?s:this.focalPoint[2]),p.setRoll(d!=null?d:this.roll),p.setZoom(h!=null?h:this.zoom);var v={name:n,matrix:Kt.clone(p.getWorldTransform()),right:dt.clone(p.right),up:dt.clone(p.up),forward:dt.clone(p.forward),position:dt.clone(p.getPosition()),focalPoint:dt.clone(p.getFocalPoint()),distanceVector:dt.clone(p.getDistanceVector()),distance:p.getDistance(),dollyingStep:p.getDollyingStep(),azimuth:p.getAzimuth(),elevation:p.getElevation(),roll:p.getRoll(),relAzimuth:p.relAzimuth,relElevation:p.relElevation,relRoll:p.relRoll,zoom:p.getZoom()};return this.landmarks.push(v),v},e.prototype.gotoLandmark=function(n,r){var i=this;r===void 0&&(r={});var a=er(n)?this.landmarks.find(function(P){return P.name===n}):n;if(a){var o=(0,xr.Z)(r)?{duration:r}:r,s=o.easing,c=s===void 0?"linear":s,l=o.duration,u=l===void 0?100:l,f=o.easingFunction,d=f===void 0?void 0:f,h=o.onfinish,p=h===void 0?void 0:h,v=o.onframe,g=v===void 0?void 0:v,y=.01;if(u===0){this.syncFromLandmark(a),p&&p();return}this.cancelLandmarkAnimation();var m=a.position,b=a.focalPoint,_=a.zoom,O=a.roll,w=d||Pt.EasingFunction(c),M,E=function(){i.setFocalPoint(b),i.setPosition(m),i.setRoll(O),i.setZoom(_),i.computeMatrix(),i.triggerUpdate(),p&&p()},A=function(P){M===void 0&&(M=P);var C=P-M;if(C>u){E();return}var j=w(C/u),N=dt.create(),k=dt.create(),R=1,D=0;dt.lerp(N,i.focalPoint,b,j),dt.lerp(k,i.position,m,j),D=i.roll*(1-j)+O*j,R=i.zoom*(1-j)+_*j,i.setFocalPoint(N),i.setPosition(k),i.setRoll(D),i.setZoom(R);var B=dt.dist(N,b)+dt.dist(k,m);if(B<=y&&_==null&&O==null){E();return}i.computeMatrix(),i.triggerUpdate(),C0){var i=n[r-1],a=t9(i,e);if(a){n[r-1]=a;return}}else n9(this.observer);n[r]=e},t.prototype.addListeners=function(){this.addListeners_(this.target)},t.prototype.addListeners_=function(e){var n=this.options;n.attributes&&e.addEventListener(Ie.ATTR_MODIFIED,this,!0),n.childList&&e.addEventListener(Ie.INSERTED,this,!0),(n.childList||n.subtree)&&e.addEventListener(Ie.REMOVED,this,!0)},t.prototype.removeListeners=function(){this.removeListeners_(this.target)},t.prototype.removeListeners_=function(e){var n=this.options;n.attributes&&e.removeEventListener(Ie.ATTR_MODIFIED,this,!0),n.childList&&e.removeEventListener(Ie.INSERTED,this,!0),(n.childList||n.subtree)&&e.removeEventListener(Ie.REMOVED,this,!0)},t.prototype.removeTransientObservers=function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(n){this.removeListeners_(n);for(var r=Hs.get(n),i=0;i0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDuration",{get:function(){return this._totalDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_needsTick",{get:function(){return this.pending||this.playState==="running"||!this._finishedFlag},enumerable:!1,configurable:!0}),t.prototype.updatePromises=function(){var e=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==e&&(n==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):e==="pending"?this.resolveReadyPromise():n==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&n!==e&&(n==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):n==="finished"?this.resolveFinishedPromise():e==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise},t.prototype.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()},t.prototype.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()},t.prototype.finish=function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},t.prototype.cancel=function(){var e=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new F0(null,this,this.currentTime,null);setTimeout(function(){e.oncancel(n)})}},t.prototype.reverse=function(){this.updatePromises();var e=this.currentTime;this.playbackRate*=-1,this.play(),e!==null&&(this.currentTime=e),this.updatePromises()},t.prototype.updatePlaybackRate=function(e){this.playbackRate=e},t.prototype.targetAnimations=function(){var e,n=(e=this.effect)===null||e===void 0?void 0:e.target;return n.getAnimations()},t.prototype.markTarget=function(){var e=this.targetAnimations();e.indexOf(this)===-1&&e.push(this)},t.prototype.unmarkTarget=function(){var e=this.targetAnimations(),n=e.indexOf(this);n!==-1&&e.splice(n,1)},t.prototype.tick=function(e,n){!this._idle&&!this._paused&&(this._startTime===null?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(e))},t.prototype.rewind=function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")},t.prototype.persist=function(){throw new Error(Cn)},t.prototype.addEventListener=function(e,n,r){throw new Error(Cn)},t.prototype.removeEventListener=function(e,n,r){throw new Error(Cn)},t.prototype.dispatchEvent=function(e){throw new Error(Cn)},t.prototype.commitStyles=function(){throw new Error(Cn)},t.prototype.ensureAlive=function(){var e,n;this.playbackRate<0&&this.currentTime===0?this._inEffect=!!(!((e=this.effect)===null||e===void 0)&&e.update(-1)):this._inEffect=!!(!((n=this.effect)===null||n===void 0)&&n.update(this.currentTime)),!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))},t.prototype.tickCurrentTime=function(e,n){e!==this._currentTime&&(this._currentTime=e,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())},t.prototype.fireEvents=function(e){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var r=new F0(null,this,this.currentTime,e);setTimeout(function(){n.onfinish&&n.onfinish(r)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var i=new F0(null,this,this.currentTime,e);this.onframe(i)}this._finishedFlag=!1}},t}(),a9=4,o9=.001,s9=1e-7,c9=10,al=11,Of=1/(al-1),l9=typeof Float32Array=="function",Hx=function(t,e){return 1-3*e+3*t},Yx=function(t,e){return 3*e-6*t},$x=function(t){return 3*t},wf=function(t,e,n){return((Hx(e,n)*t+Yx(e,n))*t+$x(e))*t},Vx=function(t,e,n){return 3*Hx(e,n)*t*t+2*Yx(e,n)*t+$x(e)},u9=function(t,e,n,r,i){var a,o,s=0;do o=e+(n-e)/2,a=wf(o,r,i)-t,a>0?n=o:e=o;while(Math.abs(a)>s9&&++s=o9?f9(s,d,t,n):h===0?d:u9(s,c,c+Of,t,n)};return function(s){return s===0||s===1?s:wf(o(s),e,r)}},d9=function(t){return t=t.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},Sf=function(t){return Math.pow(t,2)},Mf=function(t){return Math.pow(t,3)},Ef=function(t){return Math.pow(t,4)},Af=function(t){return Math.pow(t,5)},Tf=function(t){return Math.pow(t,6)},Pf=function(t){return 1-Math.cos(t*Math.PI/2)},Cf=function(t){return 1-Math.sqrt(1-t*t)},kf=function(t){return t*t*(3*t-2)},Rf=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((e*3-2)/22-t,2)},Lf=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,2),r=n[0],i=r===void 0?1:r,a=n[1],o=a===void 0?.5:a,s=(0,cr.Z)(Number(i),1,10),c=(0,cr.Z)(Number(o),.1,2);return t===0||t===1?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-c/(Math.PI*2)*Math.asin(1/s))*(Math.PI*2)/c)},ol=function(t,e,n){e===void 0&&(e=[]);var r=(0,S.CR)(e,4),i=r[0],a=i===void 0?1:i,o=r[1],s=o===void 0?100:o,c=r[2],l=c===void 0?10:c,u=r[3],f=u===void 0?0:u;a=(0,cr.Z)(a,.1,1e3),s=(0,cr.Z)(s,.1,1e3),l=(0,cr.Z)(l,.1,1e3),f=(0,cr.Z)(f,.1,1e3);var d=Math.sqrt(s/a),h=l/(2*Math.sqrt(s*a)),p=h<1?d*Math.sqrt(1-h*h):0,v=1,g=h<1?(h*d+-f)/p:-f+d,y=n?n*t/1e3:t;return h<1?y=Math.exp(-y*h*d)*(v*Math.cos(p*y)+g*Math.sin(p*y)):y=(v+g*y)*Math.exp(-y*d),t===0||t===1?t:1-y},G0=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,2),r=n[0],i=r===void 0?10:r,a=n[1],o=a=="start"?Math.ceil:Math.floor;return o((0,cr.Z)(t,0,1)*i)/i},Xx=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,4),r=n[0],i=n[1],a=n[2],o=n[3];return z0(r,i,a,o)(t)},Nf=z0(.42,0,1,1),Ni=function(t){return function(e,n,r){return n===void 0&&(n=[]),1-t(1-e,n,r)}},Ii=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?t(e*2,n,r)/2:1-t(e*-2+2,n,r)/2}},ji=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?(1-t(1-e*2,n,r))/2:(t(e*2-1,n,r)+1)/2}},Ux={steps:G0,"step-start":function(t){return G0(t,[1,"start"])},"step-end":function(t){return G0(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":Xx,ease:function(t){return Xx(t,[.25,.1,.25,1])},in:Nf,out:Ni(Nf),"in-out":Ii(Nf),"out-in":ji(Nf),"in-quad":Sf,"out-quad":Ni(Sf),"in-out-quad":Ii(Sf),"out-in-quad":ji(Sf),"in-cubic":Mf,"out-cubic":Ni(Mf),"in-out-cubic":Ii(Mf),"out-in-cubic":ji(Mf),"in-quart":Ef,"out-quart":Ni(Ef),"in-out-quart":Ii(Ef),"out-in-quart":ji(Ef),"in-quint":Af,"out-quint":Ni(Af),"in-out-quint":Ii(Af),"out-in-quint":ji(Af),"in-expo":Tf,"out-expo":Ni(Tf),"in-out-expo":Ii(Tf),"out-in-expo":ji(Tf),"in-sine":Pf,"out-sine":Ni(Pf),"in-out-sine":Ii(Pf),"out-in-sine":ji(Pf),"in-circ":Cf,"out-circ":Ni(Cf),"in-out-circ":Ii(Cf),"out-in-circ":ji(Cf),"in-back":kf,"out-back":Ni(kf),"in-out-back":Ii(kf),"out-in-back":ji(kf),"in-bounce":Rf,"out-bounce":Ni(Rf),"in-out-bounce":Ii(Rf),"out-in-bounce":ji(Rf),"in-elastic":Lf,"out-elastic":Ni(Lf),"in-out-elastic":Ii(Lf),"out-in-elastic":ji(Lf),spring:ol,"spring-in":ol,"spring-out":Ni(ol),"spring-in-out":Ii(ol),"spring-out-in":ji(ol)},h9=function(t){return d9(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},p9=function(t){return Ux[h9(t)]||Ux.linear},v9=function(t){return t},g9=1,y9=.5,qx=0;function Zx(t,e){return function(n){if(n>=1)return 1;var r=1/t;return n+=e*r,n-n%r}}var If="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",m9=new RegExp("cubic-bezier\\("+If+","+If+","+If+","+If+"\\)"),b9=/steps\(\s*(\d+)\s*\)/,x9=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function W0(t){var e=m9.exec(t);if(e)return z0.apply(void 0,(0,S.ev)([],(0,S.CR)(e.slice(1).map(Number)),!1));var n=b9.exec(t);if(n)return Zx(Number(n[1]),qx);var r=x9.exec(t);return r?Zx(Number(r[1]),{start:g9,middle:y9,end:qx}[r[2]]):p9(t)}function _9(t){return Math.abs(O9(t)/(t.playbackRate||1))}function O9(t){var e;return t.duration===0||t.iterations===0?0:(t.duration==="auto"?0:Number(t.duration))*((e=t.iterations)!==null&&e!==void 0?e:1)}var Kx=0,H0=1,jf=2,Qx=3;function w9(t,e,n){if(e===null)return Kx;var r=n.endTime;return e=Math.min(n.delay+t+n.endDelay,r)?jf:Qx}function S9(t,e,n,r,i){switch(r){case H0:return e==="backwards"||e==="both"?0:null;case Qx:return n-i;case jf:return e==="forwards"||e==="both"?t:null;case Kx:return null}}function M9(t,e,n,r,i){var a=i;return t===0?e!==H0&&(a+=n):a+=r/t,a}function E9(t,e,n,r,i,a){var o=t===1/0?e%1:t%1;return o===0&&n===jf&&r!==0&&(i!==0||a===0)&&(o=1),o}function A9(t,e,n,r){return t===jf&&e===1/0?1/0:n===1?Math.floor(r)-1:Math.floor(r)}function T9(t,e,n){var r=t;if(t!=="normal"&&t!=="reverse"){var i=e;t==="alternate-reverse"&&(i+=1),r="normal",i!==1/0&&i%2!==0&&(r="reverse")}return r==="normal"?n:1-n}function P9(t,e,n){var r=w9(t,e,n),i=S9(t,n.fill,e,r,n.delay);if(i===null)return null;var a=n.duration==="auto"?0:n.duration,o=M9(a,r,n.iterations,i,n.iterationStart),s=E9(o,n.iterationStart,r,n.iterations,i,a),c=A9(r,n.iterations,s,o),l=T9(n.direction,c,s);return n.currentIteration=c,n.progress=l,n.easingFunction(l)}function C9(t,e,n){var r=k9(t,e),i=R9(r,n);return function(a,o){if(o!==null)i.filter(function(c){return o>=c.applyFrom&&o1)throw new Error("Keyframe offsets must be between 0 and 1.");l.computedOffset=f}}else if(u==="composite"&&["replace","add","accumulate","auto"].indexOf(f)===-1)throw new Error("".concat(f," compositing is not supported"));l[u]=f}return l.offset===void 0&&(l.offset=null),l.easing===void 0&&(l.easing=(e==null?void 0:e.easing)||"linear"),l.composite===void 0&&(l.composite="auto"),l}),r=!0,i=-1/0,a=0;a=0&&Number(c.offset)<=1});function s(){var c,l,u=n.length;n[u-1].computedOffset=Number((c=n[u-1].offset)!==null&&c!==void 0?c:1),u>1&&(n[0].computedOffset=Number((l=n[0].offset)!==null&&l!==void 0?l:0));for(var f=0,d=Number(n[0].computedOffset),h=1;ha?i:a,s=i>a?1:i/a,c=i>a?a/i:1;t.save(),t.scale(s,c),t.arc(o,o,o,0,Math.PI*2)}}function $9(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.defX,s=o===void 0?0:o,c=e.defY,l=c===void 0?0:c,u=e.markerStart,f=e.markerEnd,d=e.markerStartOffset,h=e.markerEndOffset,p=0,v=0,g=0,y=0,m=0,b,_;u&&vn(u)&&d&&(b=i-n,_=a-r,m=Math.atan2(_,b),p=Math.cos(m)*(d||0),v=Math.sin(m)*(d||0)),f&&vn(f)&&h&&(b=n-i,_=r-a,m=Math.atan2(_,b),g=Math.cos(m)*(h||0),y=Math.sin(m)*(h||0)),t.moveTo(n-s+p,r-l+v),t.lineTo(i-s+g,a-l+y)}function V9(t,e){var n=e.defX,r=n===void 0?0:n,i=e.defY,a=i===void 0?0:i,o=e.markerStart,s=e.markerEnd,c=e.markerStartOffset,l=e.markerEndOffset,u=e.path,f=u.absolutePath,d=u.segments,h=0,p=0,v=0,g=0,y=0,m,b;if(o&&vn(o)&&c){var _=(0,S.CR)(o.parentNode.getStartTangent(),2),O=_[0],w=_[1];m=O[0]-w[0],b=O[1]-w[1],y=Math.atan2(b,m),h=Math.cos(y)*(c||0),p=Math.sin(y)*(c||0)}if(s&&vn(s)&&l){var M=(0,S.CR)(s.parentNode.getEndTangent(),2),O=M[0],w=M[1];m=O[0]-w[0],b=O[1]-w[1],y=Math.atan2(b,m),v=Math.cos(y)*(l||0),g=Math.sin(y)*(l||0)}for(var E=0;EF?B:F,At=B>F?1:B/F,Yt=B>F?F/B:1;t.translate(R-r,D-a),t.rotate(q),t.scale(At,Yt),t.arc(0,0,st,z,Y,!!(1-rt)),t.scale(1/At,1/Yt),t.rotate(-q),t.translate(-(R-r),-(D-a))}N&&t.lineTo(A[6]-r+v,A[7]-a+g);break}case"Z":t.closePath();break}}}function X9(t,e){var n=e.defX,r=n===void 0?0:n,i=e.defY,a=i===void 0?0:i,o=e.markerStart,s=e.markerEnd,c=e.markerStartOffset,l=e.markerEndOffset,u=e.points.points,f=u.length,d=u[0][0]-r,h=u[0][1]-a,p=u[f-1][0]-r,v=u[f-1][1]-a,g=0,y=0,m=0,b=0,_=0,O,w;o&&vn(o)&&c&&(O=u[1][0]-u[0][0],w=u[1][1]-u[0][1],_=Math.atan2(w,O),g=Math.cos(_)*(c||0),y=Math.sin(_)*(c||0)),s&&vn(s)&&l&&(O=u[f-1][0]-u[0][0],w=u[f-1][1]-u[0][1],_=Math.atan2(w,O),m=Math.cos(_)*(l||0),b=Math.sin(_)*(l||0)),t.moveTo(d+(g||m),h+(y||b));for(var M=1;M0?1:-1,l=i>0?1:-1,u=c+l===0,f=(0,S.CR)(n.map(function(g){return(0,cr.Z)(g,0,Math.min(Math.abs(a)/2,Math.abs(o)/2))}),4),d=f[0],h=f[1],p=f[2],v=f[3];t.moveTo(c*d,0),t.lineTo(a-c*h,0),h!==0&&t.arc(a-c*h,l*h,h,-l*Math.PI/2,c>0?0:Math.PI,u),t.lineTo(a,o-l*p),p!==0&&t.arc(a-c*p,o-l*p,p,c>0?0:Math.PI,l>0?Math.PI/2:1.5*Math.PI,u),t.lineTo(c*v,o),v!==0&&t.arc(c*v,o-l*v,v,l>0?Math.PI/2:-Math.PI/2,c>0?Math.PI:0,u),t.lineTo(0,l*d),d!==0&&t.arc(c*d,l*d,d,c>0?Math.PI:0,l>0?Math.PI*1.5:Math.PI/2,u)}}var Z9=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.name="canvas-path-generator",n}return e.prototype.init=function(){var n,r=(n={},n[St.CIRCLE]=H9,n[St.ELLIPSE]=Y9,n[St.RECT]=q9,n[St.LINE]=$9,n[St.POLYLINE]=U9,n[St.POLYGON]=X9,n[St.PATH]=V9,n[St.TEXT]=void 0,n[St.GROUP]=void 0,n[St.IMAGE]=void 0,n[St.HTML]=void 0,n[St.MESH]=void 0,n);this.context.pathGeneratorFactory=r},e.prototype.destroy=function(){delete this.context.pathGeneratorFactory},e}(Za),K9=dt.create(),Q9=dt.create(),J9=dt.create(),t7=Kt.create(),e7=function(){function t(){var e=this;this.isHit=function(n,r,i,a){var o=e.context.pointInPathPickerFactory[n.nodeName];if(o){var s=Kt.invert(t7,i),c=dt.transformMat4(Q9,dt.set(J9,r[0],r[1],0),s),l=n.getGeometryBounds().halfExtents,u=n.parsedStyle.anchor;if(c[0]+=(u&&u[0]||0)*l[0]*2,c[1]+=(u&&u[1]||0)*l[1]*2,o(n,new Pr(c[0],c[1]),a,e.isPointInPath,e.context,e.runtime))return!0}return!1},this.isPointInPath=function(n,r){var i=e.runtime.offscreenCanvasCreator.getOrCreateContext(e.context.config.offscreenCanvas),a=e.context.pathGeneratorFactory[n.nodeName];return a&&(i.beginPath(),a(i,n.parsedStyle),i.closePath()),i.isPointInPath(r.x,r.y)}}return t.prototype.apply=function(e,n){var r=this,i,a=e.renderingService,o=e.renderingContext;this.context=e,this.runtime=n;var s=(i=o.root)===null||i===void 0?void 0:i.ownerDocument;a.hooks.pick.tapPromise(t.tag,function(c){return(0,S.mG)(r,void 0,void 0,function(){return(0,S.Jh)(this,function(l){return[2,this.pick(s,c)]})})}),a.hooks.pickSync.tap(t.tag,function(c){return r.pick(s,c)})},t.prototype.pick=function(e,n){var r,i,a=n.topmost,o=n.position,s=o.x,c=o.y,l=dt.set(K9,s,c,0),u=e.elementsFromBBox(l[0],l[1],l[0],l[1]),f=[];try{for(var d=(0,S.XA)(u),h=d.next();!h.done;h=d.next()){var p=h.value,v=p.getWorldTransform(),g=this.isHit(p,l,v,!1);if(g){var y=bx(p);if(y){var m=y.parsedStyle.clipPath,b=this.isHit(m,l,m.getWorldTransform(),!0);if(b){if(a)return n.picked=[p],n;f.push(p)}}else{if(a)return n.picked=[p],n;f.push(p)}}}}catch(_){r={error:_}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return n.picked=f,n},t.tag="CanvasPicker",t}();function n7(t,e,n){var r=t.parsedStyle,i=r.r,a=r.fill,o=r.stroke,s=r.lineWidth,c=r.increasedLineWidthForHitTesting,l=r.pointerEvents,u=((s||0)+(c||0))/2,f=Hr(i,i,e.x,e.y),d=(0,S.CR)($o(l,a,o),2),h=d[0],p=d[1];return h&&p||n?f<=i+u:h?f<=i:p?f>=i-u&&f<=i+u:!1}function Bf(t,e,n,r){return t/(n*n)+e/(r*r)}function r7(t,e,n){var r=t.parsedStyle,i=r.rx,a=r.ry,o=r.fill,s=r.stroke,c=r.lineWidth,l=r.increasedLineWidthForHitTesting,u=r.pointerEvents,f=e.x,d=e.y,h=(0,S.CR)($o(u,o,s),2),p=h[0],v=h[1],g=((c||0)+(l||0))/2,y=(f-i)*(f-i),m=(d-a)*(d-a);return p&&v||n?Bf(y,m,i+g,a+g)<=1:p?Bf(y,m,i,a)<=1:v?Bf(y,m,i-g,a-g)>=1&&Bf(y,m,i+g,a+g)<=1:!1}function Uo(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function i7(t,e,n,r,i,a,o){var s=i/2;return Uo(t-s,e-s,n,i,a,o)||Uo(t+n-s,e-s,i,r,a,o)||Uo(t+s,e+r-s,n,i,a,o)||Uo(t-s,e+s,i,r,a,o)}function Ff(t,e,n,r,i,a,o,s){var c=(Math.atan2(s-e,o-t)+Math.PI*2)%(Math.PI*2),l={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return Hr(l.x,l.y,o,s)<=a/2}function no(t,e,n,r,i,a,o){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),f=i/2;return a>=s-f&&a<=c+f&&o>=l-f&&o<=u+f?kb(t,e,n,r,a,o)<=i/2:!1}function s_(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;o0!=X0(s[1]-n)>0&&X0(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function l_(t,e,n){for(var r=!1,i=0;i_&&A>O,v&&(v.resetTransform?v.resetTransform():v.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(v,0,0,y*g,m*g,i.background))});var p=function(v,g){v.isVisible()&&!v.isCulled()&&(r.renderDisplayObject(v,g,r.context,r.restoreStack,n),r.saveDirtyAABB(v));var y=v.sortable.sorted||v.childNodes;y.forEach(function(m){p(m,g)})};o.hooks.endFrame.tap(t.tag,function(){var v=u.getContext(),g=u.getDPR();if(Kt.fromScaling(r.dprMatrix,[g,g,1]),Kt.multiply(r.vpMatrix,r.dprMatrix,a.getOrthoMatrix()),r.clearFullScreen)p(s.root,v);else{var y=r.safeMergeAABB.apply(r,(0,S.ev)([r.mergeDirtyAABBs(r.renderQueue)],(0,S.CR)(r.removedRBushNodeAABBs.map(function(q){var rt=q.minX,st=q.minY,At=q.maxX,Yt=q.maxY,qt=new Er;return qt.setMinMax([rt,st,0],[At,Yt,0]),qt})),!1));if(r.removedRBushNodeAABBs=[],Er.isEmpty(y)){r.renderQueue=[];return}var m=r.convertAABB2Rect(y),b=m.x,_=m.y,O=m.width,w=m.height,M=dt.transformMat4(r.vec3a,[b,_,0],r.vpMatrix),E=dt.transformMat4(r.vec3b,[b+O,_,0],r.vpMatrix),A=dt.transformMat4(r.vec3c,[b,_+w,0],r.vpMatrix),P=dt.transformMat4(r.vec3d,[b+O,_+w,0],r.vpMatrix),C=Math.min(M[0],E[0],P[0],A[0]),j=Math.min(M[1],E[1],P[1],A[1]),N=Math.max(M[0],E[0],P[0],A[0]),k=Math.max(M[1],E[1],P[1],A[1]),R=Math.floor(C),D=Math.floor(j),B=Math.ceil(N-C),F=Math.ceil(k-j);v.save(),r.clearRect(v,R,D,B,F,i.background),v.beginPath(),v.rect(R,D,B,F),v.clip(),v.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]);var z=i.renderer.getConfig().enableDirtyRectangleRenderingDebug;z&&f.dispatchEvent(new Nn(pi.DIRTY_RECTANGLE,{dirtyRect:{x:R,y:D,width:B,height:F}}));var Y=r.searchDirtyObjects(y);Y.sort(function(q,rt){return q.sortable.renderOrder-rt.sortable.renderOrder}).forEach(function(q){q&&q.isVisible()&&!q.isCulled()&&r.renderDisplayObject(q,v,r.context,r.restoreStack,n)}),v.restore(),r.renderQueue.forEach(function(q){r.saveDirtyAABB(q)}),r.renderQueue=[]}r.restoreStack.forEach(function(){v.restore()}),r.restoreStack=[]}),o.hooks.render.tap(t.tag,function(v){r.clearFullScreen||r.renderQueue.push(v)})},t.prototype.clearRect=function(e,n,r,i,a,o){e.clearRect(n,r,i,a),o&&(e.fillStyle=o,e.fillRect(n,r,i,a))},t.prototype.renderDisplayObject=function(e,n,r,i,a){var o=e.nodeName,s=i[i.length-1];s&&!(e.compareDocumentPosition(s)&kr.DOCUMENT_POSITION_CONTAINS)&&(n.restore(),i.pop());var c=this.context.styleRendererFactory[o],l=this.pathGeneratorFactory[o],u=e.parsedStyle.clipPath;if(u){this.applyWorldTransform(n,u);var f=this.pathGeneratorFactory[u.nodeName];f&&(n.save(),i.push(e),n.beginPath(),f(n,u.parsedStyle),n.closePath(),n.clip())}c&&(this.applyWorldTransform(n,e),n.save(),this.applyAttributesToContext(n,e)),l&&(n.beginPath(),l(n,e.parsedStyle),e.nodeName!==St.LINE&&e.nodeName!==St.PATH&&e.nodeName!==St.POLYLINE&&n.closePath()),c&&(c.render(n,e.parsedStyle,e,r,this,a),n.restore()),e.renderable.dirty=!1},t.prototype.convertAABB2Rect=function(e){var n=e.getMin(),r=e.getMax(),i=Math.floor(n[0]),a=Math.floor(n[1]),o=Math.ceil(r[0]),s=Math.ceil(r[1]),c=o-i,l=s-a;return{x:i,y:a,width:c,height:l}},t.prototype.mergeDirtyAABBs=function(e){var n=new Er;return e.forEach(function(r){var i=r.getRenderBounds();n.add(i);var a=r.renderable.dirtyRenderBounds;a&&n.add(a)}),n},t.prototype.searchDirtyObjects=function(e){var n=(0,S.CR)(e.getMin(),2),r=n[0],i=n[1],a=(0,S.CR)(e.getMax(),2),o=a[0],s=a[1],c=this.rBush.search({minX:r,minY:i,maxX:o,maxY:s});return c.map(function(l){var u=l.displayObject;return u})},t.prototype.saveDirtyAABB=function(e){var n=e.renderable;n.dirtyRenderBounds||(n.dirtyRenderBounds=new Er);var r=e.getRenderBounds();r&&n.dirtyRenderBounds.update(r.center,r.halfExtents)},t.prototype.applyAttributesToContext=function(e,n){var r=n.parsedStyle,i=r.stroke,a=r.fill,o=r.opacity,s=r.lineDash,c=r.lineDashOffset;s&&e.setLineDash(s),(0,me.Z)(c)||(e.lineDashOffset=c),(0,me.Z)(o)||(e.globalAlpha*=o),!(0,me.Z)(i)&&!Array.isArray(i)&&!i.isNone&&(e.strokeStyle=n.attributes.stroke),!(0,me.Z)(a)&&!Array.isArray(a)&&!a.isNone&&(e.fillStyle=n.attributes.fill)},t.prototype.applyWorldTransform=function(e,n,r){var i=0,a=0,o=(n.parsedStyle||{}).anchor,s=o&&o[0]||0,c=o&&o[1]||0;if(s!==0||c!==0){var l=n.geometry.contentBounds,u=l&&l.halfExtents[0]*2||0,f=l&&l.halfExtents[1]*2||0;i=-(s*u),a=-(c*f)}r?(Kt.copy(this.tmpMat4,n.getLocalTransform()),this.vec3a[0]=i,this.vec3a[1]=a,this.vec3a[2]=0,Kt.translate(this.tmpMat4,this.tmpMat4,this.vec3a),Kt.multiply(this.tmpMat4,r,this.tmpMat4),Kt.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(Kt.copy(this.tmpMat4,n.getWorldTransform()),this.vec3a[0]=i,this.vec3a[1]=a,this.vec3a[2]=0,Kt.translate(this.tmpMat4,this.tmpMat4,this.vec3a),Kt.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),e.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},t.prototype.safeMergeAABB=function(){for(var e=[],n=0;n0,M=s.alpha===0,E=!!(b&&b.length),A=!(0,me.Z)(y)&&m>0,P=r.nodeName,C=g==="inner",j=w&&A&&(P===St.PATH||P===St.LINE||P===St.POLYLINE||M||C);O&&(e.globalAlpha=l*u,j||zf(r,e,A),this.fill(e,r,s,c,i,a,o),j||this.clearShadowAndFilter(e,E,A)),w&&(e.globalAlpha=l*d,e.lineWidth=h,(0,me.Z)(_)||(e.miterLimit=_),(0,me.Z)(p)||(e.lineCap=p),(0,me.Z)(v)||(e.lineJoin=v),j&&(C&&(e.globalCompositeOperation="source-atop"),zf(r,e,!0),C&&(this.stroke(e,r,f,i,a,o),e.globalCompositeOperation="source-over",this.clearShadowAndFilter(e,E,!0))),this.stroke(e,r,f,i,a,o))},t.prototype.clearShadowAndFilter=function(e,n,r){if(r&&(e.shadowColor="transparent",e.shadowBlur=0),n){var i=e.filter;!(0,me.Z)(i)&&i.indexOf("drop-shadow")>-1&&(e.filter=i.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}},t.prototype.fill=function(e,n,r,i,a,o,s){var c=this;Array.isArray(r)?r.forEach(function(l){e.fillStyle=c.getColor(l,n,e),i?e.fill(i):e.fill()}):(Kc(r)&&(e.fillStyle=this.getPattern(r,n,e,a,o,s)),i?e.fill(i):e.fill())},t.prototype.stroke=function(e,n,r,i,a,o){var s=this;Array.isArray(r)?r.forEach(function(c){e.strokeStyle=s.getColor(c,n,e),e.stroke()}):(Kc(r)&&(e.strokeStyle=this.getPattern(r,n,e,i,a,o)),e.stroke())},t.prototype.getPattern=function(e,n,r,i,a,o){var s,c;if(e.image.nodeName==="rect"){var l=e.image.parsedStyle,u=l.width,f=l.height;c=i.contextService.getDPR();var d=i.config.offscreenCanvas;s=o.offscreenCanvasCreator.getOrCreateCanvas(d),s.width=u*c,s.height=f*c;var h=o.offscreenCanvasCreator.getOrCreateContext(d),p=[];e.image.forEach(function(g){a.renderDisplayObject(g,h,i,p,o)}),p.forEach(function(){h.restore()})}var v=this.imagePool.getOrCreatePatternSync(e,r,s,c,function(){n.renderable.dirty=!0,i.renderingService.dirtify()});return v},t.prototype.getColor=function(e,n,r){var i;if(e.type===sa.LinearGradient||e.type===sa.RadialGradient){var a=n.getGeometryBounds(),o=a&&a.halfExtents[0]*2||1,s=a&&a.halfExtents[1]*2||1;i=this.imagePool.getOrCreateGradient((0,S.pi)((0,S.pi)({type:e.type},e.value),{width:o,height:s}),r)}return i},t}();function zf(t,e,n){var r=t.parsedStyle,i=r.filter,a=r.shadowColor,o=r.shadowBlur,s=r.shadowOffsetX,c=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=s||0,e.shadowOffsetY=c||0)}var y7=function(){function t(e){this.imagePool=e}return t.prototype.render=function(e,n,r){var i=n.width,a=n.height,o=n.img,s=n.shadowColor,c=n.shadowBlur,l,u=i,f=a;if(er(o)?l=this.imagePool.getImageSync(o):(u||(u=o.width),f||(f=o.height),l=o),l){var d=!(0,me.Z)(s)&&c>0;zf(r,e,d);try{e.drawImage(l,0,0,u,f)}catch(h){}}},t}(),m7=function(){function t(){}return t.prototype.render=function(e,n,r,i,a,o){var s=n,c=s.lineWidth,l=s.textAlign,u=s.textBaseline,f=s.lineJoin,d=s.miterLimit,h=s.letterSpacing,p=s.stroke,v=s.fill,g=s.fillOpacity,y=s.strokeOpacity,m=s.opacity,b=s.metrics,_=s.dx,O=s.dy,w=s.shadowColor,M=s.shadowBlur,E=b.font,A=b.lines,P=b.height,C=b.lineHeight,j=b.lineMetrics;e.font=E,e.lineWidth=c,e.textAlign=l==="middle"?"center":l;var N=u;!o.enableCSSParsing&&N==="alphabetic"&&(N="bottom"),e.lineJoin=f,(0,me.Z)(d)||(e.miterLimit=d);var k=0;u==="middle"?k=-P/2-C/2:u==="bottom"||u==="alphabetic"||u==="ideographic"?k=-P:(u==="top"||u==="hanging")&&(k=-C);var R=_||0;k+=O||0,A.length===1&&(N==="bottom"?(N="middle",k-=.5*P):N==="top"&&(N="middle",k+=.5*P)),e.textBaseline=N;var D=!(0,me.Z)(w)&&M>0;zf(r,e,D);for(var B=0;B=1?Math.ceil(i):1,this.dpr=i,this.$canvas&&(this.$canvas.width=this.dpr*e,this.$canvas.height=this.dpr*n,R8(this.$canvas,e,n)),this.renderingContext.renderReasons.add(to.CAMERA_CHANGED)},t.prototype.applyCursorStyle=function(e){this.$container&&this.$container.style&&(this.$container.style.cursor=e)},t.prototype.toDataURL=function(e){return e===void 0&&(e={}),(0,S.mG)(this,void 0,void 0,function(){var n,r;return(0,S.Jh)(this,function(i){return n=e.type,r=e.encoderOptions,[2,this.context.canvas.toDataURL(n,r)]})})},t}(),P7=function(t){(0,S.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.name="canvas-context-register",n}return e.prototype.init=function(){this.context.ContextService=T7},e.prototype.destroy=function(){delete this.context.ContextService},e}(Za),u_=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n)||this;return r.registerPlugin(new P7),r.registerPlugin(new A7),r.registerPlugin(new Z9),r.registerPlugin(new b7),r.registerPlugin(new _7),r.registerPlugin(new v7),r.registerPlugin(new S7),r}return e}(qj),C7=function(){function t(e){this.dragndropPluginOptions=e}return t.prototype.apply=function(e){var n=this,r=e.renderingService,i=e.renderingContext,a=i.root.ownerDocument,o=a.defaultView,s=function(c){var l=c.target,u=l===a,f=u&&n.dragndropPluginOptions.isDocumentDraggable?a:l.closest&&l.closest("[draggable=true]");if(f){var d=!1,h=c.timeStamp,p=[c.clientX,c.clientY],v=null,g=[c.clientX,c.clientY],y=function(b){return(0,S.mG)(n,void 0,void 0,function(){var _,O,w,M,E,A;return(0,S.Jh)(this,function(P){switch(P.label){case 0:if(!d){if(_=b.timeStamp-h,O=ui([b.clientX,b.clientY],p),_<=this.dragndropPluginOptions.dragstartTimeThreshold||O<=this.dragndropPluginOptions.dragstartDistanceThreshold)return[2];b.type="dragstart",f.dispatchEvent(b),d=!0}return b.type="drag",b.dx=b.clientX-g[0],b.dy=b.clientY-g[1],f.dispatchEvent(b),g=[b.clientX,b.clientY],u?[3,2]:(w=this.dragndropPluginOptions.overlap==="pointer"?[b.canvasX,b.canvasY]:l.getBounds().center,[4,a.elementsFromPoint(w[0],w[1])]);case 1:M=P.sent(),E=M[M.indexOf(l)+1],A=(E==null?void 0:E.closest("[droppable=true]"))||(this.dragndropPluginOptions.isDocumentDroppable?a:null),v!==A&&(v&&(b.type="dragleave",b.target=v,v.dispatchEvent(b)),A&&(b.type="dragenter",b.target=A,A.dispatchEvent(b)),v=A,v&&(b.type="dragover",b.target=v,v.dispatchEvent(b))),P.label=2;case 2:return[2]}})})};o.addEventListener("pointermove",y);var m=function(b){if(d){b.detail={preventClick:!0};var _=b.clone();v&&(_.type="drop",_.target=v,v.dispatchEvent(_)),_.type="dragend",f.dispatchEvent(_),d=!1}o.removeEventListener("pointermove",y)};l.addEventListener("pointerup",m,{once:!0}),l.addEventListener("pointerupoutside",m,{once:!0})}};r.hooks.init.tap(t.tag,function(){o.addEventListener("pointerdown",s)}),r.hooks.destroy.tap(t.tag,function(){o.removeEventListener("pointerdown",s)})},t.tag="Dragndrop",t}(),f_=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=t.call(this)||this;return r.options=n,r.name="dragndrop",r}return e.prototype.init=function(){this.addRenderingPlugin(new C7((0,S.pi)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))},e.prototype.destroy=function(){this.removeAllRenderingPlugins()},e.prototype.setOptions=function(n){Object.assign(this.plugins[0].dragndropPluginOptions,n)},e}(Za);function k7(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}var d_=k7,R7=function(t){return typeof t=="object"&&t!==null},U0=R7,L7=function(t){if(!U0(t)||!(0,ef.Z)(t,"Object"))return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},io=L7,N7=5;function I7(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(t==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function h_(t,e,n,r){n=n||0,r=r||N7;for(var i in e)if(I7(e,i)){var a=e[i];a!==null&&io(a)?(io(t[i])||(t[i]={}),ni.pop().map(([a,o])=>[...i,a,o]));return t}function Lft(t,...e){return y_(Gf(t,...e),e)}function Nft(t,e,...n){return y_(K0(t,e,...n),n)}function Z0(t,e,...n){return Ys(t,sl,e,n)}function K0(t,e,...n){return Ys(t,Array.from,e,n)}function Ift(t,...e){return Ys(t,identity,m_,e)}function jft(t,...e){return Ys(t,Array.from,m_,e)}function m_(t){if(t.length!==1)throw new Error("duplicate key");return t[0]}function Ys(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new D7,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}var b_=function(t){return(0,me.Z)(t)?"":t.toString()},B7=function(t){var e=b_(t);return e.charAt(0).toLowerCase()+e.substring(1)},x_=B7,F7=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function qo(t){return t}function Q0(t){return t.reduce((e,n)=>(r,...i)=>n(e(r,...i),...i),qo)}function z7(t){return t.reduce((e,n)=>r=>F7(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),qo)}function J0(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function $s(t=""){throw new Error(t)}function tv(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function In(t){return t!=null&&!Number.isNaN(t)}function Dft(t,e){return t+(e-t)*Math.random()}function G7(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function W7(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function fe(t,e){return __(t,e)||{}}function __(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[x_(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function Bft(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>[`${e}${upperFirst(n)}`,r]))}function H7(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function ev(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function O_(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function cl(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function ka(t){return t===null||t===!1}function w_(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!io(a)||!io(t[i])?t[i]=a:w_(t[i],a,n,r+1)}return t}}function je(t){return new _r([t],null,t,t.ownerDocument)}class _r{constructor(e=null,n=null,r=null,i=null,a=[null,null,null,null,null],o=[],s=[]){this._elements=Array.from(e),this._data=n,this._parent=r,this._document=i,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=o,this._facetElements=s}selectAll(e){const n=typeof e=="string"?this._parent.querySelectorAll(e):e;return new _r(n,null,this._elements[0],this._document)}selectFacetAll(e){const n=typeof e=="string"?this._parent.querySelectorAll(e):e;return new _r(this._elements,null,this._parent,this._document,void 0,void 0,n)}select(e){const n=typeof e=="string"?this._parent.querySelectorAll(e)[0]||null:e;return new _r([n],null,n,this._document)}append(e){const n=typeof e=="function"?e:()=>this.createElement(e),r=[];if(this._data!==null){for(let i=0;ii,r=()=>null){const i=[],a=[],o=new Set(this._elements),s=[],c=new Set,l=new Map(this._elements.map((h,p)=>[n(h.__data__,p),h])),u=new Map(this._facetElements.map((h,p)=>[n(h.__data__,p),h])),f=Kn(this._elements,h=>r(h.__data__));for(let h=0;ho,n=o=>o,r=o=>o.remove(),i=o=>o,a=o=>o.remove()){const o=e(this._enter),s=n(this._update),c=r(this._exit),l=i(this._merge),u=a(this._split);return s.merge(o).merge(c).merge(l).merge(u)}remove(){for(let e=0;ei.finished)).then(()=>{this._elements[e].remove()})}else this._elements[e].remove()}return new _r([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let n=0;nn:n;return this.each(function(i,a,o){n!==void 0&&(o[e]=r(i,a,o))})}style(e,n){const r=typeof n!="function"?()=>n:n;return this.each(function(i,a,o){n!==void 0&&(o.style[e]=r(i,a,o))})}transition(e){const n=typeof e!="function"?()=>e:e,{_transitions:r}=this;return this.each(function(i,a,o){r[a]=n(i,a,o)})}on(e,n){return this.each(function(r,i,a){a.addEventListener(e,n)}),this}call(e,...n){return e(this,...n),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}_r.registry={g:Br,rect:Xo,circle:nl,path:ri,text:Zi,ellipse:k0,image:R0,line:rl,polygon:il,polyline:L0,html:xf};const Sn={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CHANGE_DATA:"beforechangedata",AFTER_CHANGE_DATA:"afterchangedata",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MOVE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"};var Y7=function(t){var e=b_(t);return e.charAt(0).toUpperCase()+e.substring(1)},ao=Y7;function $7(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Wf(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function V7(t){return t=Wf(Math.abs(t)),t?t[1]:NaN}function X7(t,e){return function(n,r){for(var i=n.length,a=[],o=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function U7(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var q7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nv(t){if(!(e=q7.exec(t)))throw new Error("invalid format: "+t);var e;return new rv({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}nv.prototype=rv.prototype;function rv(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}rv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Z7(t){t:for(var e=t.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var S_;function K7(t,e){var n=Wf(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(S_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Wf(t,Math.max(0,e+a-1))[0]}function M_(t,e){var n=Wf(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var E_={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:$7,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>M_(t*100,e),r:M_,s:K7,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function A_(t){return t}var T_=Array.prototype.map,P_=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Q7(t){var e=t.grouping===void 0||t.thousands===void 0?A_:X7(T_.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?A_:U7(T_.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(f){f=nv(f);var d=f.fill,h=f.align,p=f.sign,v=f.symbol,g=f.zero,y=f.width,m=f.comma,b=f.precision,_=f.trim,O=f.type;O==="n"?(m=!0,O="g"):E_[O]||(b===void 0&&(b=12),_=!0,O="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var w=v==="$"?n:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",M=v==="$"?r:/[%p]/.test(O)?o:"",E=E_[O],A=/[defgprs%]/.test(O);b=b===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function P(C){var j=w,N=M,k,R,D;if(O==="c")N=E(C)+N,C="";else{C=+C;var B=C<0||1/C<0;if(C=isNaN(C)?c:E(Math.abs(C),b),_&&(C=Z7(C)),B&&+C==0&&p!=="+"&&(B=!1),j=(B?p==="("?p:s:p==="-"||p==="("?"":p)+j,N=(O==="s"?P_[8+S_/3]:"")+N+(B&&p==="("?")":""),A){for(k=-1,R=C.length;++kD||D>57){N=(D===46?i+C.slice(k+1):C.slice(k))+N,C=C.slice(0,k);break}}}m&&!g&&(C=e(C,1/0));var F=j.length+C.length+N.length,z=F>1)+j+C+N+z.slice(F);break;default:C=z+j+C+N;break}return a(C)}return P.toString=function(){return f+""},P}function u(f,d){var h=l((f=nv(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(V7(d)/3)))*3,v=Math.pow(10,-p),g=P_[8+p/3];return function(y){return h(v*y)+g}}return{format:l,formatPrefix:u}}var Hf,oo,J7;tB({thousands:",",grouping:[3],currency:["$",""]});function tB(t){return Hf=Q7(t),oo=Hf.format,J7=Hf.formatPrefix,Hf}function so(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Zo(t){return t.map((e,n)=>n)}function Fft(t){const e=t.length,n=t[0].length,r=new Array(n).fill(0).map(()=>new Array(e));for(let i=0;i{n[e(r)?0:1].push(r)}),n}function R_(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function rB(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...R_(t,n));return e}var iB=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},ll=iB,iv=function(t,e){if(t===e)return!0;if(!t||!e||er(t)||er(e))return!1;if(ll(t)||ll(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}const N_=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},ul=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=N_(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};ul.props={};const I_=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},av=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=I_(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};av.props={};function Yf(t,e,n){return Math.max(e,Math.min(t,n))}function $f(t,e=10){return typeof t!="number"||Math.abs(t)<1e-15?t:parseFloat(t.toFixed(e))}const aB=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]];var j_=gt(16290);function $n(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Gn(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function fl(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function D_(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function dl(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function B_(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function oB(t){return dl(t)&&Gn(t)}function Vs(t){return D_(t)||Gn(t)}function F_(t){return Gn(t)&&$n(t)}function Gft(t){return Gn(t)||dl(t)||fl(t)||F_(t)}function sB(t){if(Vs(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function Vf(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function ov(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function cB(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}function z_(t,e){e(t),t.children&&t.children.forEach(function(n){n&&z_(n,e)})}function hl(t){Xf(t,!0)}function co(t){Xf(t,!1)}function Xf(t,e){var n=e?"visible":"hidden";z_(t,function(r){r.attr("visibility",n)})}function lB(t){return typeof t=="boolean"?!1:"enter"in t&&"update"in t&&"exit"in t}function G_(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(r){var i=(0,S.CR)(r,1),a=i[0];return!e.includes(a)}));return Object.fromEntries(e.map(function(r){return lB(t)?t[r]===!1?[r,!1]:[r,(0,S.pi)((0,S.pi)({},t[r]),n)]:[r,n]}))}function Xs(t,e){t?t.finished.then(e):e()}function uB(t,e){t.length===0?e():Promise.all(t.map(function(n){return n==null?void 0:n.finished})).then(e)}function W_(t,e){"update"in t?t.update(e):t.attr(e)}function H_(t,e,n){if(e.length===0)return null;if(!n){var r=e.slice(-1)[0];return W_(t,{style:r}),null}return t.animate(e,n)}function fB(t,e){return!(t.nodeName!=="text"||e.nodeName!=="text"||t.attributes.text!==e.attributes.text)}function dB(t,e,n,r){if(r===void 0&&(r="destroy"),fB(t,e))return t.remove(),[null];var i=function(){r==="destroy"?t.destroy():r==="hide"&&co(t),e.isVisible()&&hl(e)};if(!n)return i(),[null];var a=n.duration,o=a===void 0?0:a,s=n.delay,c=s===void 0?0:s,l=Math.ceil(+o/2),u=+o/4,f=function(C){if(C.nodeName==="circle"){var j=(0,S.CR)(C.getLocalPosition(),2),N=j[0],k=j[1],R=C.attr("r");return[N-R,k-R]}return C.getLocalPosition()},d=(0,S.CR)(f(t),2),h=d[0],p=d[1],v=(0,S.CR)(f(e),2),g=v[0],y=v[1],m=(0,S.CR)([(h+g)/2-h,(p+y)/2-p],2),b=m[0],_=m[1],O=t.style.opacity,w=O===void 0?1:O,M=e.style.opacity,E=M===void 0?1:M,A=t.animate([{opacity:w,transform:"translate(0, 0)"},{opacity:0,transform:"translate(".concat(b,", ").concat(_,")")}],(0,S.pi)((0,S.pi)({fill:"both"},n),{duration:c+l+u})),P=e.animate([{opacity:0,transform:"translate(".concat(-b,", ").concat(-_,")"),offset:.01},{opacity:E,transform:"translate(0, 0)"}],(0,S.pi)((0,S.pi)({fill:"both"},n),{duration:l+u,delay:c+l-u}));return Xs(P,i),[A,P]}function Ki(t,e,n){var r={},i={};return Object.entries(e).forEach(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];if(!(0,me.Z)(c)){var l=t.style[s]||t.parsedStyle[s]||0;l!==c&&(r[s]=l,i[s]=c)}}),n?H_(t,[r,i],(0,S.pi)({fill:"both"},n)):(W_(t,i),null)}var hB=5,Y_=function(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=hB),Object.entries(e).forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1],c=t;Object.prototype.hasOwnProperty.call(e,o)&&(s?io(s)?(io(t[o])||(c[o]={}),n="A"&&n<="Z"};function en(t,e,n){n===void 0&&(n=!1);var r={};return Object.entries(t).forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(Uf(o,"show")&&Uf(U_(o,"show"),e)!==n)o===SB(e,"show")?r[o]=s:r[o.replace(new RegExp(uv(e)),"")]=s;else if(!Uf(o,"show")&&Uf(o,e)!==n){var c=U_(o,e);c==="filter"&&typeof s=="function"||(r[c]=s)}}}),r}function la(t,e){return Object.entries(t).reduce(function(n,r){var i=(0,S.CR)(r,2),a=i[0],o=i[1];return a.startsWith("show")?n["show".concat(e).concat(a.slice(4))]=o:n["".concat(e).concat(uv(a))]=o,n},{})}function Na(t,e){e===void 0&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(t).forEach(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];e.includes(s)||(n.indexOf(s)!==-1?i[s]=c:r[s]=c)}),[r,i]}function Fi(t,e){return gi(t)?t.apply(void 0,(0,S.ev)([],(0,S.CR)(e),!1)):t}function qf(t,e){return t.style.opacity||(t.style.opacity=1),Ki(t,{opacity:0},e)}var EB=["$el","anchor","cx","cy","d","defX","defY","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function AB(t){return EB.includes(t)}function q_(t){var e={};for(var n in t)AB(n)&&(e[n]=t[n]);return e}var qs=Bi({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function Z_(t){return t.reduce(function(e,n,r){return e.push((0,S.ev)([r===0?"M":"L"],(0,S.CR)(n),!1)),e},[])}function TB(t,e,n){var r=e.connect,i=r===void 0?"line":r,a=e.center;if(i==="line")return Z_(t);if(!a)return[];var o=vl(t[0],a),s=n?0:1;return t.reduce(function(c,l,u){return u===0?c.push((0,S.ev)(["M"],(0,S.CR)(l),!1)):c.push((0,S.ev)(["A",o,o,0,0,s],(0,S.CR)(l),!1)),c},[])}function fv(t,e,n){return e.type==="surround"?TB(t,e,n):Z_(t)}function PB(t,e,n){var r=n.type,i=n.connect,a=n.center,o=n.closed,s=o?[["Z"]]:[],c=(0,S.CR)([fv(t,n),fv(e.slice().reverse(),n,!0)],2),l=c[0],u=c[1],f=(0,S.CR)([t[0],e.slice(-1)[0]],2),d=f[0],h=f[1],p=function(m,b){return[l,m,u,b,s].flat()};if(i==="line"||r==="surround")return p([(0,S.ev)(["L"],(0,S.CR)(h),!1)],[(0,S.ev)(["L"],(0,S.CR)(d),!1)]);if(!a)throw new Error("Arc grid need to specified center");var v=(0,S.CR)([vl(h,a),vl(d,a)],2),g=v[0],y=v[1];return p([(0,S.ev)(["A",g,g,0,0,1],(0,S.CR)(h),!1),(0,S.ev)(["L"],(0,S.CR)(h),!1)],[(0,S.ev)(["A",y,y,0,0,0],(0,S.CR)(d),!1),(0,S.ev)(["L"],(0,S.CR)(d),!1)])}function CB(t,e,n,r){var i=n.animate,a=n.isBillboard,o=e.map(function(s,c){return{id:s.id||"grid-line-".concat(c),path:fv(s.points,n)}});return t.selectAll(qs.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(c,l){var u=Fi(q_((0,S.pi)({path:c.path},r)),[c,l,o]);this.attr((0,S.pi)({class:qs.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},u))})},function(s){return s.transition(function(c,l){var u=Fi(q_((0,S.pi)({path:c.path},r)),[c,l,o]);return Ki(this,u,i.update)})},function(s){return s.transition(function(){var c=this,l=qf(this,i.exit);return Xs(l,function(){return c.remove()}),l})}).transitions()}function kB(t,e,n){var r=n.animate,i=n.connect,a=n.areaFill;if(e.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(p){return o[p%o.length]},c=[],l=0;l180?1:0,E=t>e?0:1,A=!1;return A?"M".concat(n,",").concat(r,",L").concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(M,",").concat(E,",").concat(y,",").concat(m,",L").concat(n,",").concat(r):"M".concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(M,",").concat(E,",").concat(y,",").concat(m)}function zB(t){var e=t.attributes,n=e.startAngle,r=e.endAngle,i=e.center,a=e.radius;return(0,S.ev)((0,S.ev)([n,r],(0,S.CR)(i),!1),[a],!1)}function GB(t,e,n,r){var i=e.startAngle,a=e.endAngle,o=e.center,s=e.radius;return t.selectAll(Pn.line.class).data([{path:r2.apply(void 0,(0,S.ev)((0,S.ev)([i,a],(0,S.CR)(o),!1),[s],!1))}],function(c,l){return l}).join(function(c){return c.append("path").attr("className",Pn.line.name).styles(e).styles({path:function(l){return l.path}})},function(c){return c.transition(function(){var l=this,u=DB(this,zB(this),(0,S.ev)((0,S.ev)([i,a],(0,S.CR)(o),!1),[s],!1),r.update);if(u){var f=function(){var d=zi(l.attributes,"__keyframe_data__");l.style.path=r2.apply(void 0,(0,S.ev)([],(0,S.CR)(d),!1))};u.onframe=f,u.onfinish=f}return u}).styles(e)},function(c){return c.remove()}).styles(n).transitions()}function WB(t,e){var n=e.truncRange,r=e.truncShape,i=e.lineExtension}function HB(t,e,n){n===void 0&&(n=[0,0]);var r=(0,S.CR)([t,e,n],3),i=(0,S.CR)(r[0],2),a=i[0],o=i[1],s=(0,S.CR)(r[1],2),c=s[0],l=s[1],u=(0,S.CR)(r[2],2),f=u[0],d=u[1],h=(0,S.CR)([c-a,l-o],2),p=h[0],v=h[1],g=Math.sqrt(Math.pow(p,2)+Math.pow(v,2)),y=(0,S.CR)([-f/g,d/g],2),m=y[0],b=y[1];return[m*p,m*v,b*p,b*v]}function i2(t){var e=(0,S.CR)(t,2),n=(0,S.CR)(e[0],2),r=n[0],i=n[1],a=(0,S.CR)(e[1],2),o=a[0],s=a[1];return{x1:r,y1:i,x2:o,y2:s}}function YB(t,e,n,r){var i=e.showTrunc,a=e.startPos,o=e.endPos,s=e.truncRange,c=e.lineExtension,l=(0,S.CR)([a,o],2),u=(0,S.CR)(l[0],2),f=u[0],d=u[1],h=(0,S.CR)(l[1],2),p=h[0],v=h[1],g=(0,S.CR)(c?HB(a,o,c):new Array(4).fill(0),4),y=g[0],m=g[1],b=g[2],_=g[3],O=function(F){return t.selectAll(Pn.line.class).data(F,function(z,Y){return Y}).join(function(z){return z.append("line").attr("className",function(Y){return"".concat(Pn.line.name," ").concat(Y.className)}).styles(n).transition(function(Y){return Ki(this,i2(Y.line),!1)})},function(z){return z.styles(n).transition(function(Y){var q=Y.line;return Ki(this,i2(q),r.update)})},function(z){return z.remove()}).transitions()};if(!i||!s)return O([{line:[[f+y,d+m],[p+b,v+_]],className:Pn.line.name}]);var w=(0,S.CR)(s,2),M=w[0],E=w[1],A=p-f,P=v-d,C=(0,S.CR)([f+A*M,d+P*M],2),j=C[0],N=C[1],k=(0,S.CR)([f+A*E,d+P*E],2),R=k[0],D=k[1],B=O([{line:[[f+y,d+m],[j,N]],className:Pn.lineFirst.name},{line:[[R,D],[p+b,v+_]],className:Pn.lineSecond.name}]);return WB(t,e),B}function $B(t,e,n,r){var i=n.showArrow,a=n.showTrunc,o=n.lineArrow,s=n.lineArrowOffset,c=n.lineArrowSize,l;if(e==="arc"?l=t.select(Pn.line.class):a?l=t.select(Pn.lineSecond.class):l=t.select(Pn.line.class),!i||!o||n.type==="arc"&&n2(n.startAngle,n.endAngle)){var u=l.node();u&&(u.style.markerEnd=void 0);return}var f=Jo(o);f.attr(r),hv(f,c,!0),l.style("markerEnd",f).style("markerEndOffset",-s)}function VB(t,e,n){var r=e.type,i,a=en(e,"line");return r==="linear"?i=YB(t,e,K_(a,"arrow"),n):i=GB(t,e,K_(a,"arrow"),n),$B(t,r,e,a),i}function XB(t,e){return vv(t,e.gridDirection,e)}function a2(t){var e=t.type,n=t.gridCenter;return e==="linear"?n:n||t.center}function UB(t,e){var n=e.gridLength;return t.map(function(r,i){var a=r.value,o=(0,S.CR)(Kf(a,e),2),s=o[0],c=o[1],l=(0,S.CR)(La(XB(a,e),n),2),u=l[0],f=l[1];return{id:i,points:[[s,c],[s+u,c+f]]}})}function qB(t,e){var n=e.gridControlAngles,r=a2(e);if(!r)throw new Error("grid center is not provide");if(t.length<2)throw new Error("Invalid grid data");if(!n||n.length===0)throw new Error("Invalid gridControlAngles");var i=(0,S.CR)(r,2),a=i[0],o=i[1];return t.map(function(s,c){var l=s.value,u=(0,S.CR)(Kf(l,e),2),f=u[0],d=u[1],h=(0,S.CR)([f-a,d-o],2),p=h[0],v=h[1],g=[];return n.forEach(function(y){var m=Us(y),b=(0,S.CR)([Math.cos(m),Math.sin(m)],2),_=b[0],O=b[1],w=p*_-v*O+a,M=p*O+v*_+o;g.push([w,M])}),{points:g,id:c}})}function ZB(t,e,n,r){var i=en(n,"grid"),a=i.type,o=i.areaFill,s=a2(n),c=pv(e,n.gridFilter),l=a==="segment"?UB(c,n):qB(c,n),u=(0,S.pi)((0,S.pi)({},i),{center:s,areaFill:gi(o)?c.map(function(f,d){return Fi(o,[f,d,c])}):o,animate:r,data:l});return t.selectAll(Pn.grid.class).data([1]).join(function(f){return f.append(function(){return new LB({style:u})}).attr("className",Pn.grid.name)},function(f){return f.transition(function(){return this.update(u)})},function(f){return f.remove()}).transitions()}function Fr(t,e,n,r,i){return r===void 0&&(r=!0),i===void 0&&(i=!1),r&&t===e||i&&t===n?!0:t>e&&ti&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}var KB=function(t,e,n){if(n===void 0&&(n=128),!gi(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;a0,m=r-c,b=i-l,_=d*b-h*m;if(_<0===y)return!1;var O=p*b-v*m;return!(O<0===y||_>g===y||O>g===y)}function f2(t,e){var n=[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]];return n.some(function(r){return u2(e,r)})}var Xft={lineToLine:u2,intersectBoxLine:f2,getBounds:td};function aF(t,e,n){var r,i,a=td(t,n).flat(1),o=td(e,n).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var c=(0,S.XA)(s),l=c.next();!l.done;l=c.next()){var u=l.value;if(f2(o,u))return!0}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return!1}function oF(t,e){var n=t.type,r=t.labelDirection,i=t.crossSize;if(!i)return!1;if(n==="arc"){var a=t.center,o=t.radius,s=(0,S.CR)(a,2),c=s[0],l=s[1],u=r==="negative"?0:i,f=-o-u,d=o+u,h=(0,S.CR)(zr(e),4),p=h[0],v=h[1],g=h[2],y=h[3];return new bv(c+f-y,l+f-p,c+d+v,l+d+g)}var m=(0,S.CR)(t.startPos,2),b=m[0],_=m[1],O=(0,S.CR)(t.endPos,2),w=O[0],M=O[1],E=(0,S.CR)(e2(t)?[-e,0,e,0]:[0,e,0,-e],4),A=E[0],P=E[1],C=E[2],j=E[3],N=gl(0,t),k=La(N,i),R=new bv(b,_,w,M);return R.x1+=j,R.y1+=A,R.x2+=P+k[0],R.y2+=C+k[1],R}function ed(t,e,n){var r,i,a=e.crossPadding,o=new Set,s=null,c=oF(e,a),l=function(p){return c?iF(c,p):!0},u=function(p,v){return p?!aF(p,v,zr(n)):!0};try{for(var f=(0,S.XA)(t),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)?!s||u(s,h)?s=h:(o.add(s),o.add(h)):o.add(h)}}catch(p){r={error:p}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return Array.from(o)}function _v(t,e){return e===void 0&&(e={}),(0,me.Z)(t)?0:typeof t=="number"?t:Math.floor(QB(t,e))}function sF(t,e,n,r){if(!(t.length<=1)){var i=e.suffix,a=i===void 0?"...":i,o=e.minLength,s=e.maxLength,c=s===void 0?1/0:s,l=e.step,u=l===void 0?" ":l,f=e.margin,d=f===void 0?[0,0,0,0]:f,h=o2(r.getTextShape(t[0])),p=_v(u,h),v=o?_v(o,h):p,g=_v(c,h);((0,me.Z)(g)||g===1/0)&&(g=Math.max.apply(null,t.map(function(k){return xv(k).width})));for(var y=t.slice(),m=(0,S.CR)(d,4),b=m[0],_=b===void 0?0:b,O=m[1],w=O===void 0?0:O,M=m[2],E=M===void 0?_:M,A=m[3],P=A===void 0?w:A,C=function(k){if(y.forEach(function(R){r.ellipsis(r.getTextShape(R),k,a)}),y=ed(t,n,d),y.length<1)return{value:void 0}},j=g;j>v+p;j-=p){var N=C(j);if(typeof N=="object")return N.value}}}function Uft(t){var e=t&&t.getRenderBounds();if(!e)return{width:0,height:0};var n=e.getMax(),r=e.getMin();return{width:n[0]-r[0],height:n[1]-r[1]}}function d2(t){var e=t.getLocalBounds(),n=e.min,r=e.max,i=(0,S.CR)([n,r],2),a=(0,S.CR)(i[0],2),o=a[0],s=a[1],c=(0,S.CR)(i[1],2),l=c[0],u=c[1];return{x:o,y:s,width:l-o,height:u-s,left:o,bottom:u,top:s,right:l}}function qft(t,e){var n=select(t).append("text").node();return n.attr(__assign(__assign({},e),{visibility:"hidden"})),n}function cF(t,e){var n=(0,S.CR)(t,2),r=n[0],i=n[1],a=(0,S.CR)(e,2),o=a[0],s=a[1];return r!==o&&i===s}function Zft(t,e){var n=__read(t,2),r=n[0],i=n[1],a=__read(e,2),o=a[0],s=a[1];return r===o&&i!==s}function lF(t,e){var n,r,i=e.attributes;try{for(var a=(0,S.XA)(Object.entries(i)),o=a.next();!o.done;o=a.next()){var s=(0,S.CR)(o.value,2),c=s[0],l=s[1];c!=="id"&&c!=="className"&&t.attr(c,l)}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var uF={parity:function(t,e){var n=e.seq,r=n===void 0?2:n;return t.filter(function(i,a){return a%r?(co(i),!1):!0})}},fF=function(t){return t.filter(l2)};function dF(t,e,n,r){var i=t.length,a=e.keepHeader,o=e.keepTail;if(!(i<=1||i===2&&a&&o)){var s=uF.parity,c=function(b){return b.forEach(r.show),b},l=2,u=t.slice(),f=t.slice(),d=Math.min.apply(Math,(0,S.ev)([1],(0,S.CR)(t.map(function(b){return xv(b).width})),!1));if(n.type==="linear"&&(t2(n)||e2(n))){var h=d2(t[0]).left,p=d2(t[i-1]).right,v=Math.abs(p-h)||1;l=Math.max(Math.floor(i*d/v),l)}var g,y;for(a&&(g=u.splice(0,1)[0]),o&&(y=u.splice(-1,1)[0],u.reverse()),c(u);ls)){for(var y=h;y<=s;y++)if(g(y),p())return;l&&g(d)}}var gF=new Map([["hide",dF],["rotate",hF],["ellipsis",sF],["wrap",vF]]);function yF(t,e,n){return e.labelOverlap.length<1?!1:n==="hide"?!vB(t[0]):n==="rotate"?!t.some(function(r){var i;return!!(!((i=r.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):n==="ellipsis"||n==="wrap"?t.filter(function(r){return r.querySelector("text")}).length>1:!0}function mF(t,e,n){var r=e.labelOverlap,i=r===void 0?[]:r;i.length&&i.forEach(function(a){var o=a.type,s=gF.get(o);yF(t,e,o)&&(s==null||s(t,a,e,n))})}function bF(){for(var t=[],e=0;e2?[t[0]]:t.split("")}function CF(t,e){var n=t.attributes,r=n.position,i=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),c=e.getBBox(),l=nd(r),u=(0,S.CR)(zr(o?i:0),4),f=u[0],d=u[1],h=u[2],p=u[3],v=(0,S.CR)(zr(a),4),g=v[0],y=v[1],m=v[2],b=v[3],_=(0,S.CR)([p+d,f+h],2),O=_[0],w=_[1],M=(0,S.CR)([b+y,g+m],2),E=M[0],A=M[1];if(l[0]==="l")return new Qn(s.x,s.y,c.width+s.width+O+E,Math.max(c.height+A,s.height));if(l[0]==="t")return new Qn(s.x,s.y,Math.max(c.width+E,s.width),c.height+s.height+w+A);var P=(0,S.CR)([e.attributes.width||c.width,e.attributes.height||c.height],2),C=P[0],j=P[1];return new Qn(c.x,c.y,C+s.width+O+E,j+s.height+w+A)}function kF(t,e){var n=Object.entries(e).reduce(function(r,i){var a=(0,S.CR)(i,2),o=a[0],s=a[1],c=t.node().attr(o);return c||(r[o]=s),r},{});t.styles(n)}function RF(t){var e,n,r,i,a=t,o=a.width,s=a.height,c=a.position,l=(0,S.CR)([+o/2,+s/2],2),u=l[0],f=l[1],d=(0,S.CR)([+u,+f,"center","middle"],4),h=d[0],p=d[1],v=d[2],g=d[3],y=nd(c);return y.includes("l")&&(e=(0,S.CR)([0,"start"],2),h=e[0],v=e[1]),y.includes("r")&&(n=(0,S.CR)([+o,"end"],2),h=n[0],v=n[1]),y.includes("t")&&(r=(0,S.CR)([0,"top"],2),p=r[0],g=r[1]),y.includes("b")&&(i=(0,S.CR)([+s,"bottom"],2),p=i[0],g=i[1]),{x:h,y:p,textAlign:v,textBaseline:g}}var O2=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return e.prototype.getAvailableSpace=function(){var n=this,r=this.attributes,i=r.width,a=r.height,o=r.position,s=r.spacing,c=r.inset,l=n.querySelector(_2.text.class);if(!l)return new Qn(0,0,+i,+a);var u=l.getBBox(),f=u.width,d=u.height,h=(0,S.CR)(zr(s),4),p=h[0],v=h[1],g=h[2],y=h[3],m=(0,S.CR)([0,0,+i,+a],4),b=m[0],_=m[1],O=m[2],w=m[3],M=nd(o);if(M.includes("i"))return new Qn(b,_,O,w);M.forEach(function(D,B){var F,z,Y,q;D==="t"&&(F=(0,S.CR)(B===0?[d+g,+a-d-g]:[0,+a],2),_=F[0],w=F[1]),D==="r"&&(z=(0,S.CR)([+i-f-y],1),O=z[0]),D==="b"&&(Y=(0,S.CR)([+a-d-p],1),w=Y[0]),D==="l"&&(q=(0,S.CR)(B===0?[f+v,+i-f-v]:[0,+i],2),b=q[0],O=q[1])});var E=(0,S.CR)(zr(c),4),A=E[0],P=E[1],C=E[2],j=E[3],N=(0,S.CR)([j+P,A+C],2),k=N[0],R=N[1];return new Qn(b+j,_+A,O-k,w-R)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new Qn(0,0,0,0)},e.prototype.render=function(n,r){var i=this,a=n.width,o=n.height,s=n.position,c=n.spacing,l=(0,S._T)(n,["width","height","position","spacing"]),u=(0,S.CR)(Na(l),1),f=u[0],d=RF(n),h=d.x,p=d.y,v=d.textAlign,g=d.textBaseline;vi(!!l.text,qe(r),function(y){i.title=y.maybeAppendByClassName(_2.text,"text").styles(f).call(kF,{x:h,y:p,textAlign:v,textBaseline:g}).node()})},e}(Rr);function LF(t,e,n){var r=n.titlePosition,i=r===void 0?"lb":r,a=n.titleSpacing,o=nd(i),s=t.node().getLocalBounds(),c=(0,S.CR)(s.min,2),l=c[0],u=c[1],f=(0,S.CR)(s.halfExtents,2),d=f[0],h=f[1],p=(0,S.CR)(e.node().getLocalBounds().halfExtents,2),v=p[0],g=p[1],y=(0,S.CR)([l+d,u+h],2),m=y[0],b=y[1],_=(0,S.CR)(zr(a),4),O=_[0],w=_[1],M=_[2],E=_[3];if(["start","end"].includes(i)&&n.type==="linear"){var A=n.startPos,P=n.endPos,C=(0,S.CR)(i==="start"?[A,P]:[P,A],2),j=C[0],N=C[1],k=V_([-N[0]+j[0],-N[1]+j[1]]),R=(0,S.CR)(La(k,O),2),D=R[0],B=R[1];return{x:j[0]+D,y:j[1]+B}}return o.includes("t")&&(b-=h+g+O),o.includes("r")&&(m+=d+v+w),o.includes("l")&&(m-=d+v*2+E),o.includes("b")&&(b+=h+g*2+M),{x:m,y:b}}function NF(t,e,n){var r=t.cloneNode(!0);r.style.transform="scale(1, 1)",r.style.transform="none";var i=r.getBBox().height;if(e==="vertical"){if(n==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(n==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function w2(t,e,n,r,i){var a=en(r,"title"),o=(0,S.CR)(Na(a),2),s=o[0],c=o[1],l=c.transform,u=(0,S._T)(c,["transform"]);t.styles(s),e.styles(u);var f=l||NF(t.node(),s.direction,s.position);Jf(t.node(),f);var d=LF(qe(n._offscreen||n.querySelector(Pn.mainGroup.class)),e,r),h=d.x,p=d.y,v=Ki(e.node(),{x:h,y:p},i);return Jf(t.node(),f),v}function IF(t,e,n,r){var i=n.titleText;return t.selectAll(Pn.title.class).data([{title:i}].filter(function(a){return!!a.title}),function(a,o){return a.title}).join(function(a){return a.append(function(){return Jo(i)}).attr("className",Pn.title.name).transition(function(){return w2(qe(this),t,e,n,r.enter)})},function(a){return a.transition(function(){return w2(qe(this),t,e,n,r.update)})},function(a){return a.remove()}).transitions()}function S2(t,e,n,r){var i=t.showLine,a=t.showTick,o=t.showLabel,s=e.maybeAppendByClassName(Pn.lineGroup,"g"),c=vi(i,s,function(h){return VB(h,t,r)})||[],l=e.maybeAppendByClassName(Pn.tickGroup,"g"),u=vi(a,l,function(h){return PF(h,n,t,r)})||[],f=e.maybeAppendByClassName(Pn.labelGroup,"g"),d=vi(o,f,function(h){return SF(h,n,t,r)})||[];return(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(c),!1),(0,S.CR)(u),!1),(0,S.CR)(d),!1).filter(function(h){return!!h})}var wv=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,cv)||this}return e.prototype.render=function(n,r,i){var a=this,o=n.titleText,s=n.data,c=n.animate,l=n.showTitle,u=n.showGrid,f=n.dataThreshold,d=n.truncRange,h=yB(s,f).filter(function(O){var w=O.value;return!(d&&w>d[0]&&w-1;)YF.call(t,a,1);return t},pdt=null,VF=Array.prototype.splice,vdt=function(e,n){if(!isArrayLike(e))return[];for(var r=e?n.length:0,i=r-1;r--;){var a=void 0,o=n[r];(r===i||o!==a)&&(a=o,VF.call(e,o,1))}return e},gdt=null,ydt=function(t,e,n){if(!isArray(t)&&!isPlainObject(t))return t;var r=n;return each(t,function(i,a){r=e(r,i,a)}),r},mdt=null,bdt=function(t,e){var n=[];if(!isArrayLike(t))return n;for(var r=-1,i=[],a=t.length;++ra[s])return 1;if(i[s]0},Xdt=null,Udt=function(t,e){if(isArray(t)){for(var n,r=-1/0,i=0;ir&&(n=a,r=o)}return n}},qdt=function(t,e){if(isArray(t)){for(var n,r=1/0,i=0;is&&u>s);)if(c.push(l),s-=u,o=o.substr(i),!o)return c.join("");for(;l=o.substr(0,1),u=measureTextWidth(l,n),!(u+a>s);)if(c.push(l),s-=u,o=o.substr(1),!o)return c.join("");return""+c.join("")+r},Lht=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,n){var r=this.map[e];return r===void 0?n:r},t.prototype.set=function(e,n){this.map[e]=n},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),Nht=null;class xl{constructor(e){this.options=R2({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=R2({},this.options,e),this.rescale(e)}rescale(e){}}function ad(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function Ks(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Mv(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}var vz=gt(2489),gz=gt.n(vz);function Ev(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function yz(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=Ev(o,a,e+1/3),c=Ev(o,a,e),l=Ev(o,a,e-1/3);return[s*255,c*255,l*255,i]}function D2(t){const e=gz().get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?yz(r):null}const Qs=(t,e)=>n=>t*(1-n)+e*n,mz=(t,e)=>{const n=D2(t),r=D2(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},_l=(t,e)=>typeof t=="number"&&typeof e=="number"?Qs(t,e):typeof t=="string"&&typeof e=="string"?mz(t,e):()=>t,bz=(t,e)=>{const n=Qs(t,e);return r=>Math.round(n(r))};function od(t){return!az(t)&&!nz(t)&&!Number.isNaN(t)}const Av=Math.sqrt(50),Tv=Math.sqrt(10),Pv=Math.sqrt(2);function sd(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/wr(10,i);return i>=0?(a>=Av?10:a>=Tv?5:a>=Pv?2:1)*wr(10,i):-wr(10,-i)/(a>=Av?10:a>=Tv?5:a>=Pv?2:1)}function B2(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=wr(10,Math.floor(Math.log(r)/Math.LN10));const a=r/i;return a>=Av?i*=10:a>=Tv?i*=5:a>=Pv&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=sd(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=sd(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r};function xz(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}const _z=(t,e,n)=>{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Mv(t,l,1,r)-1,f=i[u],d=a[u];return Ks(d,f)(l)}},z2=(t,e,n,r)=>(Math.min(t.length,e.length)>2?Oz:_z)(t,e,r?bz:n);class cd extends xl{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Qs,tickCount:5}}map(e){return od(e)?this.output(e):this.options.unknown}invert(e){return od(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return F2}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?xz(i[0],i[a-1]):ts}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=z2(r.map(e),i,o,a);this.output=Ks(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=z2(a,i.map(e),Qs);this.input=Ks(n,r,o)}}const es=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=sd(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),rr&&(r=d),h>i&&(i=h)}return new Qn(e,n,r-e,i-n)}var Mz=function(t,e,n){var r=t.width,i=t.height,a=n.flexDirection,o=a===void 0?"row":a,s=n.flexWrap,c=s===void 0?"nowrap":s,l=n.justifyContent,u=l===void 0?"flex-start":l,f=n.alignContent,d=f===void 0?"flex-start":f,h=n.alignItems,p=h===void 0?"flex-start":h,v=o==="row",g=o==="row"||o==="column",y=v?g?[1,0]:[-1,0]:g?[0,1]:[0,-1],m=(0,S.CR)([0,0],2),b=m[0],_=m[1],O=e.map(function(N){var k,R=N.width,D=N.height,B=(0,S.CR)([b,_],2),F=B[0],z=B[1];return k=(0,S.CR)([b+R*y[0],_+D*y[1]],2),b=k[0],_=k[1],new Qn(F,z,R,D)}),w=H2(O),M={"flex-start":0,"flex-end":v?r-w.width:i-w.height,center:v?(r-w.width)/2:(i-w.height)/2},E=O.map(function(N){var k=N.x,R=N.y,D=Qn.fromRect(N);return D.x=v?k+M[u]:k,D.y=v?R:R+M[u],D}),A=H2(E),P=function(N){var k=(0,S.CR)(v?["height",i]:["width",r],2),R=k[0],D=k[1];switch(p){case"flex-start":return 0;case"flex-end":return D-N[R];case"center":return D/2-N[R]/2;default:return 0}},C=E.map(function(N){var k=N.x,R=N.y,D=Qn.fromRect(N);return D.x=v?k:k+P(D),D.y=v?R+P(D):R,D}),j=C.map(function(N){var k,R,D=Qn.fromRect(N);return D.x+=(k=t.x)!==null&&k!==void 0?k:0,D.y+=(R=t.y)!==null&&R!==void 0?R:0,D});return j},Ez=function(t,e,n){return[]},Az=function(t,e,n){if(e.length===0)return[];var r={flex:Mz,grid:Ez},i=n.display in r?r[n.display]:null;return(i==null?void 0:i.call(null,t,e,n))||[]},Tz=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n)||this;r.layoutEvents=[Ie.BOUNDS_CHANGED,Ie.INSERTED,Ie.REMOVED],r.$margin=zr(0),r.$padding=zr(0);var i=n.style||{},a=i.margin,o=a===void 0?0:a,s=i.padding,c=s===void 0?0:s;return r.margin=o,r.padding=c,r.isMutationObserved=!0,r.bindEvents(),r}return Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(n){this.$margin=zr(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(n){this.$padding=zr(n)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.x,i=r===void 0?0:r,a=n.y,o=a===void 0?0:a,s=n.width,c=n.height,l=(0,S.CR)(this.$margin,4),u=l[0],f=l[1],d=l[2],h=l[3];return new Qn(i-h,o-u,s+h+f,c+u+d)},e.prototype.appendChild=function(n,r){return n.isMutationObserved=!0,t.prototype.appendChild.call(this,n,r),n},e.prototype.getAvailableSpace=function(){var n=this.attributes,r=n.width,i=n.height,a=(0,S.CR)(this.$padding,4),o=a[0],s=a[1],c=a[2],l=a[3],u=(0,S.CR)(this.$margin,4),f=u[0],d=u[3];return new Qn(l+d,o+f,r-l-s,i-o-c)},e.prototype.layout=function(){if(!(!this.attributes.display||!this.isConnected)&&!this.children.some(function(r){return!r.isConnected}))try{var n=Az(this.getAvailableSpace(),this.children.map(function(r){return r.getBBox()}),this.attributes);this.children.forEach(function(r,i){var a=n[i],o=a.x,s=a.y;r.attr({x:o,y:s})})}catch(r){}},e.prototype.bindEvents=function(){var n=this;this.layoutEvents.forEach(function(r){n.addEventListener(r,function(i){i.target.isMutationObserved=!0,n.layout()})})},e.prototype.attributeChangedCallback=function(n,r,i){n==="margin"?this.margin=i:n==="padding"&&(this.padding=i),this.layout()},e}(Br),Pz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ir.getOptions().name===e))===null||n===void 0?void 0:n[0]}function Rz(t){return t==="horizontal"||t===0}function Lz(t){return t==="vertical"||t===-Math.PI/2}function X2(t,e,n){const{bbox:r}=t,{position:i="top",size:a,length:o}=e,s=["top","bottom","center"].includes(i),[c,l]=s?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:f}=n.props,d=a||u||c,h=o||f||l,p=s?"horizontal":"vertical",[v,g]=s?[h,d]:[d,h];return{orientation:p,width:v,height:g,size:d,length:h}}function Nz(t){return t.find(e=>e.getOptions().domain.length>0).getOptions().domain}function ud(t){const e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=Pz(t,["style"]),i={};return Object.entries(r).forEach(([a,o])=>{e.includes(a)?i[`show${ao(a)}`]=o:i[a]=o}),Object.assign(Object.assign({},i),n)}var U2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(!B_(e))return i;const a=t==="bottom"?[i,1]:[0,i],o=e.map(a);if(t==="bottom"){const s=o[0];return new Vr({domain:[0,n],range:[0,1]}).map(s)}else if(t==="left"){const s=o[1];return new Vr({domain:[0,r],range:[0,1]}).map(s)}return i}}function jz(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;const[r,i]=Ia(e,o=>+o),{tickCount:a}=t.getOptions();return n(r,i,a)}function Dz(t,e){if(Gn(e))return h=>h;const n=e.getOptions(),{innerWidth:r,innerHeight:i,insetTop:a,insetBottom:o,insetLeft:s,insetRight:c}=n,[l,u,f]=t==="left"||t==="right"?[a,o,i]:[s,c,r],d=new Vr({domain:[0,1],range:[l/f,1-u/f]});return h=>d.map(h)}function K2(t,e,n,r,i,a,o,s){var c;(n!==void 0||a!==void 0)&&t.update(Object.assign(Object.assign({},n&&{tickCount:n}),a&&{tickMethod:a}));const l=jz(t,e,a),u=i?l.filter(i):l,f=y=>y instanceof Date?String(y):typeof y=="object"&&y?y:String(y),d=r||((c=t.getFormatter)===null||c===void 0?void 0:c.call(t))||f,h=Dz(o,s),p=Iz(o,s),v=y=>["top","bottom","center","outer"].includes(y),g=y=>["left","right"].includes(y);return Gn(s)||$n(s)?u.map((y,m,b)=>{var _,O;const w=((_=t.getBandWidth)===null||_===void 0?void 0:_.call(t,y))/2||0,M=h(t.map(y)+w);return{value:fl(s)&&o==="center"||$n(s)&&((O=t.getTicks)===null||O===void 0?void 0:O.call(t))&&v(o)||$n(s)&&g(o)?1-M:M,label:f(d($f(y),m,b)),id:String(m)}}):u.map((y,m,b)=>{var _;const O=((_=t.getBandWidth)===null||_===void 0?void 0:_.call(t,y))/2||0,w=p(h(t.map(y)+O));return{value:g(o)?1-w:w,label:f(d($f(y),m,b)),id:String(m)}})}function Bz(t,e,n="xy"){const[r,i,a]=Z2(e);return n==="xy"?t.includes("bottom")||t.includes("top")?i:r:n==="xz"?t.includes("bottom")||t.includes("top")?a:r:t.includes("bottom")||t.includes("top")?i:a}function Fz(t=[],e){if(t.length>0)return t;const{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:a}=e,o=[],s=(c,l)=>{l&&o.push(Object.assign(Object.assign({},c),l))};return s({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),s({type:"ellipsis",minLength:20},i),s({type:"hide"},r),s({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},a),o}function zz(t,e,n,r,i){const{x:a,y:o,width:s,height:c}=e,l=[a+s/2,o+c/2],u=Math.min(s,c)/2,[f,d]=ov(i),[h,p]=Z2(i),v=Math.min(h,p)/2,g={center:l,radius:u,startAngle:f,endAngle:d,gridLength:(r-n)*v};if(t==="inner"){const{insetLeft:y,insetTop:m}=i.getOptions();return Object.assign(Object.assign({},g),{center:[l[0]-y,l[1]-m],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},g),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}function Gz(t,e,n){return F_(e)||dl(e)?!1:t===void 0?!!n.getTicks:t}function Wz(t){const{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}function Hz(t,e,n,r){const{x:i,y:a,width:o,height:s}=n;if(t==="bottom")return{startPos:[i,a],endPos:[i+o,a]};if(t==="left")return{startPos:[i+o,a+s],endPos:[i+o,a]};if(t==="right")return{startPos:[i,a+s],endPos:[i,a]};if(t==="top")return{startPos:[i,a+s],endPos:[i+o,a+s]};if(t==="center"){if(e==="vertical")return{startPos:[i,a],endPos:[i,a+s]};if(e==="horizontal")return{startPos:[i,a],endPos:[i+o,a]};if(typeof e=="number"){const[c,l]=r.getCenter(),[u,f]=Vf(r),[d,h]=ov(r),p=Math.min(o,s)/2,{insetLeft:v,insetTop:g}=r.getOptions(),y=u*p,m=f*p,[b,_]=[c+i-v,l+a-g],[O,w]=[Math.cos(e),Math.sin(e)],M=[b+m*O,_+m*w],E=[b+y*O,_+y*w];return{startPos:M,endPos:E,gridClosed:h-d===360,gridCenter:[b,_],gridControlAngles:new Array(3).fill(0).map((A,P,C)=>(h-d)/(C.length-1)*P)}}}return{}}const Yz=t=>{const{order:e,size:n,position:r,orientation:i,labelFormatter:a,tickFilter:o,tickCount:s,tickMethod:c,important:l={},style:u={},indexBBox:f,title:d,grid:h=!1}=t,p=U2(t,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","important","style","indexBBox","title","grid"]);return({scales:[v],value:g,coordinate:y,theme:m})=>{const{bbox:b}=g,{domain:_}=v.getOptions(),O=K2(v,_,s,a,o,c,r,y),w=f?O.map((N,k)=>{const R=f.get(k);return!R||R[0]!==N.label?N:Object.assign(Object.assign({},N),{bbox:R[1]})}):O,[M,E]=Vf(y),A=zz(r,b,M,E,y),{axis:P,axisArc:C={}}=m,j=ud(Dt({},P,C,A,Object.assign(Object.assign({type:"arc",data:w,titleText:ld(d),grid:h},p),l)));return new wv({style:W2(j,["transform"])})}};function $z(t,e,n,r,i,a){const o=n.axis,s=["top","right","bottom","left"].includes(i)?n[`axis${J0(i)}`]:n.axisLinear,c=t.getOptions().name,l=n[`axis${ao(c)}`]||{};return Object.assign({},o,s,l)}function Vz(t,e,n,r,i,a){const o=$z(t,e,n,r,i,a);return i==="center"?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:r==="right"?"negative":"positive"}),r==="center"?{labelTransform:"translate(50%,0)"}:null),{tickDirection:r==="right"?"negative":"positive",labelSpacing:r==="center"?0:4,titleSpacing:Lz(a)?10:0,tick:r==="center"?!1:void 0}):o}const Xz=t=>{const{direction:e="left",important:n={},labelFormatter:r,order:i,orientation:a,actualPosition:o,position:s,size:c,style:l={},title:u,tickCount:f,tickFilter:d,tickMethod:h,transform:p,indexBBox:v}=t,g=U2(t,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","transform","indexBBox"]);return({scales:[y],value:m,coordinate:b,theme:_})=>{const{bbox:O}=m,{domain:w}=y.getOptions(),M=Vz(y,b,_,e,s,a),E=Object.assign(Object.assign(Object.assign({},M),l),g),A=Bz(o||s,b,t.plane),P=Hz(s,a,O,b),C=Wz(b),j=K2(y,w,f,r,d,h,s,b),N=v?j.map((D,B)=>{const F=v.get(B);return!F||F[0]!==D.label?D:Object.assign(Object.assign({},D),{bbox:F[1]})}):j,k=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E),{type:"linear",data:N,crossSize:c,titleText:ld(u),labelOverlap:Fz(p,E),grid:Gz(E.grid,b,y),gridLength:A,line:!0,indexBBox:v}),E.line?null:{lineOpacity:0}),P),C),n);return k.labelOverlap.find(D=>D.type==="hide")&&(k.crossSize=!1),new wv({className:"axis",style:ud(k)})}},Q2=t=>e=>{const{labelFormatter:n,labelFilter:r=()=>!0}=e;return i=>{var a;const{scales:[o]}=i,s=((a=o.getTicks)===null||a===void 0?void 0:a.call(o))||o.getOptions().domain,c=typeof n=="string"?oo(n):n,l=(f,d,h)=>r(s[d],d,s),u=Object.assign(Object.assign({},e),{labelFormatter:c,labelFilter:l,scale:o});return t(u)(i)}},lo=Q2(Xz),J2=Q2(Yz);lo.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},J2.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var Uz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i-Math.PI/2&&eMath.PI/2&&e(c-s)/i.count*f)})}const tO=t=>{const{important:e={}}=t,n=Uz(t,["important"]);return r=>{const{theme:i,coordinate:a,scales:o}=r;return lo(Object.assign(Object.assign(Object.assign({},n),qz(t.orientation)),{important:Object.assign(Object.assign({},Zz(t,i,a,o)),e)}))(r)}};tO.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"center"});function fd(t,e){return+t.toPrecision(e)}function Iht(t){return t.toLocaleString()}function jht(t){return t.toExponential()}function Dht(t,e){return e===void 0&&(e=0),Math.abs(t)<1e3?String(t):"".concat(fd(t/1e3,e).toLocaleString(),"K")}var Bht=function(t,e,n){return t<0&&Number.isFinite(t)?e:n},Fht=function(t,e,n){return t>0&&Number.isFinite(t)?e:n},zht=function(t,e){return t*e},Ght=function(t,e){return t/2+(e||0)/2};function dd(t){var e=t.canvas,n=t.touches,r=t.offsetX,i=t.offsetY;if(e){var a=e.x,o=e.y;return[a,o]}if(n){var s=n[0],c=s.clientX,l=s.clientY;return[c,l]}return r&&i?[r,i]:[0,0]}var Kz={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},kv=Bi({background:"background",labelGroup:"label-group",label:"label"},"indicator"),Qz=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,Kz)||this;return r.point=[0,0],r.group=r.appendChild(new Br({})),r.isMutationObserved=!0,r}return e.prototype.renderBackground=function(){if(this.label){var n=this.attributes,r=n.position,i=n.padding,a=(0,S.CR)(zr(i),4),o=a[0],s=a[1],c=a[2],l=a[3],u=this.label.node().getLocalBounds(),f=u.min,d=u.max,h=new Qn(f[0]-l,f[1]-o,d[0]+s-f[0]+l,d[1]+c-f[1]+o),p=this.getPath(r,h),v=en(this.attributes,"background");this.background=qe(this.group).maybeAppendByClassName(kv.background,"path").styles((0,S.pi)((0,S.pi)({},v),{path:p})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var n=this.attributes,r=n.formatter,i=n.labelText,a=en(this.attributes,"label"),o=(0,S.CR)(Na(a),2),s=o[0],c=o[1],l=s.text,u=(0,S._T)(s,["text"]);if(this.label=qe(this.group).maybeAppendByClassName(kv.labelGroup,"g").styles(c),!!i){var f=this.label.maybeAppendByClassName(kv.label,function(){return Jo(r(i))}).style("text",r(i).toString());f.selectAll("text").styles(u)}},e.prototype.adjustLayout=function(){var n=(0,S.CR)(this.point,2),r=n[0],i=n[1];this.group.attr("x",-r).attr("y",-i)},e.prototype.getPath=function(n,r){var i=this.attributes.radius,a=r.x,o=r.y,s=r.width,c=r.height,l=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+c-i],["A",i,i,0,0,1,a+s-i,o+c],["L",a+i,o+c],["A",i,i,0,0,1,a,o+c-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],u={top:4,right:6,bottom:0,left:2},f=u[n],d=this.createCorner([l[f].slice(-2),l[f+1].slice(-2)]);return l.splice.apply(l,(0,S.ev)([f+1,1],(0,S.CR)(d),!1)),l[0][0]="M",l},e.prototype.createCorner=function(n,r){r===void 0&&(r=10);var i=.8,a=cF.apply(void 0,(0,S.ev)([],(0,S.CR)(n),!1)),o=(0,S.CR)(n,2),s=(0,S.CR)(o[0],2),c=s[0],l=s[1],u=(0,S.CR)(o[1],2),f=u[0],d=u[1],h=(0,S.CR)(a?[f-c,[c,f]]:[d-l,[l,d]],2),p=h[0],v=(0,S.CR)(h[1],2),g=v[0],y=v[1],m=p/2,b=p/Math.abs(p),_=r*b,O=_/2,w=_*Math.sqrt(3)/2*i,M=(0,S.CR)([g,g+m-O,g+m,g+m+O,y],5),E=M[0],A=M[1],P=M[2],C=M[3],j=M[4];return a?(this.point=[P,l-w],[["L",E,l],["L",A,l],["L",P,l-w],["L",C,l],["L",j,l]]):(this.point=[c+w,P],[["L",c,E],["L",c,A],["L",c+w,P],["L",c,C],["L",c,j]])},e.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?co(this):hl(this)},e.prototype.bindEvents=function(){this.label.on(Ie.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(Rr),eO={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},nO={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},rO={orientation:"horizontal",showLabel:!0,type:"start"},fa=Bi({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),uo=Bi({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),Jz=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.size,a=i===void 0?10:i,o=n.radius,s=o===void 0?a/4:o,c=n.orientation,l=(0,S._T)(n,["size","radius","orientation"]),u=a,f=u*2.4,d=qe(r).maybeAppendByClassName(uo.iconRect,"rect").styles((0,S.pi)((0,S.pi)({},l),{width:u,height:f,radius:s,x:-u/2,y:-f/2})),h=1/3*u,p=2/3*u,v=1/4*f,g=3/4*f;d.maybeAppendByClassName("".concat(uo.iconLine,"-1"),"line").styles((0,S.pi)({x1:h,x2:h,y1:v,y2:g},l)),d.maybeAppendByClassName("".concat(uo.iconLine,"-2"),"line").styles((0,S.pi)({x1:p,x2:p,y1:v,y2:g},l)),d.node().setOrigin(u/2,f/2),c==="vertical"?r.setLocalEulerAngles(90):r.setLocalEulerAngles(0)},e}(Rr),iO=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,rO)||this}return e.prototype.renderLabel=function(n){var r=this,i=this.attributes.showLabel,a=en(this.attributes,"label"),o=a.transform,s=(0,S._T)(a,["transform"]),c=(0,S.CR)(Na(s,[]),2),l=c[0],u=c[1],f=qe(n).maybeAppendByClassName(uo.labelGroup,"g").styles(u),d=(0,S.pi)((0,S.pi)({},nO),l),h=d.text,p=(0,S._T)(d,["text"]);vi(!!i,f,function(v){r.label=v.maybeAppendByClassName(uo.label,"text").styles((0,S.pi)((0,S.pi)({},p),{transform:o,text:"".concat(h)})),r.label.on("mousedown",function(g){g.stopPropagation()}),r.label.on("touchstart",function(g){g.stopPropagation()})})},e.prototype.renderIcon=function(n){var r=this.attributes,i=r.orientation,a=r.type,o=(0,S.pi)((0,S.pi)({orientation:i},eO),en(this.attributes,"icon")),s=this.attributes.iconShape,c=s===void 0?function(){return new Jz({style:o})}:s,l=qe(n).maybeAppendByClassName(uo.iconGroup,"g");l.selectAll(uo.icon.class).data([c]).join(function(u){return u.append(typeof c=="string"?c:function(){return c(a)}).attr("className",uo.icon.name)},function(u){return u.update(o)},function(u){return u.remove()})},e.prototype.render=function(n,r){this.renderIcon(r),this.renderLabel(r)},e}(Rr),aO=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},tG=aO,eG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},nG=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},rG=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},iG=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},aG=function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},oG=function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},oO=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},sG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},cG=function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},lG=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},uG=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},sO=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},fG=sO,dG=function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hG=function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},pG=function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},vG=function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]};function gG(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}var yG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]};function mG(t){var e="default";if(zo(t)&&t instanceof Image)e="image";else if(gi(t))e="symbol";else if(er(t)){var n=new RegExp("data:(image|text)");t.match(n)?e="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?e="url":e="symbol"}return e}function bG(t){var e=mG(t);return["base64","url","image"].includes(e)?"image":t&&e==="symbol"?"path":null}var Rn=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.symbol,a=n.size,o=a===void 0?16:a,s=(0,S._T)(n,["symbol","size"]),c=bG(i);vi(!!c,qe(r),function(l){l.maybeAppendByClassName("marker",c).attr("className","marker ".concat(c,"-marker")).call(function(u){if(c==="image"){var f=o*2;u.styles({img:i,width:f,height:f,x:-o,y:-o})}else{var f=o/2,d=gi(i)?i:e.getSymbol(i);u.styles((0,S.pi)({path:d==null?void 0:d(0,0,f)},s))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(n,r){e.MARKER_SYMBOL_MAP.set(n,r)},e.getSymbol=function(n){return e.MARKER_SYMBOL_MAP.get(n)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(Rr);Rn.registerSymbol("cross",sG),Rn.registerSymbol("hyphen",uG),Rn.registerSymbol("line",oO),Rn.registerSymbol("plus",lG),Rn.registerSymbol("tick",cG),Rn.registerSymbol("circle",aO),Rn.registerSymbol("point",tG),Rn.registerSymbol("bowtie",oG),Rn.registerSymbol("hexagon",aG),Rn.registerSymbol("square",eG),Rn.registerSymbol("diamond",nG),Rn.registerSymbol("triangle",rG),Rn.registerSymbol("triangle-down",iG),Rn.registerSymbol("line",oO),Rn.registerSymbol("dot",sO),Rn.registerSymbol("dash",fG),Rn.registerSymbol("smooth",dG),Rn.registerSymbol("hv",hG),Rn.registerSymbol("vh",pG),Rn.registerSymbol("hvh",vG),Rn.registerSymbol("vhv",gG);function xG(t,e,n){var r=Math.round((t-n)/e);return n+r*e}function _G(t,e,n){var r=1.4,i=r*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]}var cO=1.4,lO=.4;function OG(t,e,n){var r=n,i=r*cO,a=r/2,o=r/6,s=t+i*lO;return[["M",t,e],["L",s,e+a],["L",t+i,e+a],["L",t+i,e-a],["L",s,e-a],["Z"],["M",s,e+o],["L",t+i-2,e+o],["M",s,e-o],["L",t+i-2,e-o]]}function wG(t,e,n){var r=n,i=r*cO,a=r/2,o=r/6,s=e+i*lO;return[["M",t,e],["L",t-a,s],["L",t-a,e+i],["L",t+a,e+i],["L",t+a,s],["Z"],["M",t-o,s],["L",t-o,e+i-2],["M",t+o,s],["L",t+o,e+i-2]]}Rn.registerSymbol("hiddenHandle",_G),Rn.registerSymbol("verticalHandle",OG),Rn.registerSymbol("horizontalHandle",wG);var Wht=function(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n};function SG(t,e,n,r){var i;r===void 0&&(r=4);var a=(0,S.CR)(t,2),o=a[0],s=a[1],c=(0,S.CR)(e,2),l=c[0],u=c[1],f=(0,S.CR)(n,2),d=f[0],h=f[1],p=(0,S.CR)([l,u],2),v=p[0],g=p[1],y=g-v;return v>g&&(i=(0,S.CR)([g,v],2),v=i[0],g=i[1]),y>s-o?[o,s]:vs?h===s&&d===v?[v,s]:[s-y,s]:[v,g]}function da(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n}var Ol=Bi({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),uO={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},MG=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,uO)||this}return e.prototype.render=function(n,r){var i=qe(r).maybeAppendByClassName(Ol.markerGroup,"g");this.renderMarker(i);var a=qe(r).maybeAppendByClassName(Ol.labelGroup,"g");this.renderLabel(a)},e.prototype.renderMarker=function(n){var r=this,i=this.attributes,a=i.orientation,o=i.markerSymbol,s=o===void 0?da(a,"horizontalHandle","verticalHandle"):o;vi(!!s,n,function(c){var l=en(r.attributes,"marker"),u=(0,S.pi)({symbol:s},l);r.marker=c.maybeAppendByClassName(Ol.marker,function(){return new Rn({style:u})}).update(u)})},e.prototype.renderLabel=function(n){var r=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,c=s===void 0?0:s,l=i.formatter;vi(a,n,function(u){var f,d=en(r.attributes,"label"),h=d.text,p=(0,S._T)(d,["text"]),v=((f=u.select(Ol.marker.class))===null||f===void 0?void 0:f.node().getBBox())||{},g=v.width,y=g===void 0?0:g,m=v.height,b=m===void 0?0:m,_=(0,S.CR)(da(o,[0,b+c,"center","top"],[y+c,0,"start","middle"]),4),O=_[0],w=_[1],M=_[2],E=_[3];u.maybeAppendByClassName(Ol.label,"text").styles((0,S.pi)((0,S.pi)({},p),{x:O,y:w,text:l(h).toString(),textAlign:M,textBaseline:E}))})},e}(Rr),fO={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},EG=Ra({},fO,{}),AG=Ra({},fO,la(uO,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),TG=.01,Hht=.5,Lr=Bi({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend");function PG(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}function CG(t,e,n){var r=Array.from(e),i=t.length;return new Array(i).fill(0).reduce(function(a,o,s){var c=r[s%r.length];return a+=" ".concat(t[s],":").concat(c).concat(s(r+i)/2?i:r,range:[r,i]}}var wl=Bi({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function hO(t){var e=t.orientation,n=t.size,r=t.length;return da(e,[r,n],[n,r])}function pO(t){var e=t.type,n=(0,S.CR)(hO(t),2),r=n[0],i=n[1];return e==="size"?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function kG(t){return pO(t)}function RG(t){var e=t.orientation,n=t.color,r=t.block,i=t.partition,a;if(gi(n)){var o=20;a=new Array(o).fill(0).map(function(l,u,f){return n(u/(f.length-1))})}else a=n;var s=a.length,c=a.map(function(l){return Aa(l).toString()});return s?s===1?c[0]:r?CG(i,c,e):c.reduce(function(l,u,f){return l+=" ".concat(f/(s-1),":").concat(u)},"l(".concat(da(e,"0","270"),")")):""}function LG(t){var e=t.orientation,n=t.range;if(!n)return[];var r=(0,S.CR)(hO(t),2),i=r[0],a=r[1],o=(0,S.CR)(n,2),s=o[0],c=o[1],l=da(e,s*i,0),u=da(e,0,s*a),f=da(e,c*i,i),d=da(e,a,c*a);return[["M",l,u],["L",l,d],["L",f,d],["L",f,u],["Z"]]}function NG(t,e){var n=en(e,"track");t.maybeAppendByClassName(wl.track,"path").styles((0,S.pi)({path:pO(e)},n))}function IG(t,e){var n=en(e,"selection"),r=RG(e),i=t.maybeAppendByClassName(wl.selection,"path").styles((0,S.pi)({path:kG(e),fill:r},n)),a=i.maybeAppendByClassName(wl.clipPath,"path").styles({path:LG(e)}).node();i.style("clip-path",a)}var jG=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return e.prototype.render=function(n,r){var i=qe(r).maybeAppendByClassName(wl.trackGroup,"g");NG(i,n);var a=qe(r).maybeAppendByClassName(wl.selectionGroup,"g");IG(a,n)},e}(Rr);function DG(t){return{min:Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(t.map(function(e){return e.value})),!1)),max:Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(t.map(function(e){return e.value})),!1))}}var BG=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,AG)||this;return r.eventToOffsetScale=new Vr({}),r.innerRibbonScale=new Vr({}),r.cacheLabelBBox=null,r.cacheHandleBBox=null,r.onHovering=function(i){var a=r.attributes,o=a.data,s=a.block;i.stopPropagation();var c=r.getValueByCanvasPoint(i);if(s){var l=dO(o.map(function(f){var d=f.value;return d}),c).range;r.showIndicator((l[0]+l[1])/2,"".concat(l[0],"-").concat(l[1])),r.dispatchIndicated(c,l)}else{var u=r.getTickValue(c);r.showIndicator(u),r.dispatchIndicated(u)}},r.onDragStart=function(i){return function(a){a.stopPropagation(),r.attributes.slidable&&(r.target=i,r.prevValue=r.getTickValue(r.getValueByCanvasPoint(a)),document.addEventListener("mousemove",r.onDragging),document.addEventListener("touchmove",r.onDragging),document.addEventListener("mouseleave",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("touchend",r.onDragEnd))}},r.onDragging=function(i){var a=r.target;r.updateMouse();var o=(0,S.CR)(r.selection,2),s=o[0],c=o[1],l=r.getTickValue(r.getValueByCanvasPoint(i)),u=l-r.prevValue;a==="start"?s!==l&&r.updateSelection(l,c):a==="end"?c!==l&&r.updateSelection(s,l):a==="ribbon"&&u!==0&&(r.prevValue=l,r.updateSelection(u,u,!0))},r.onDragEnd=function(){r.style.cursor="pointer",document.removeEventListener("mousemove",r.onDragging),document.removeEventListener("touchmove",r.onDragging),document.removeEventListener("mouseup",r.onDragEnd),document.removeEventListener("touchend",r.onDragEnd)},r}return Object.defineProperty(e.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.width,i=n.height;return new Qn(0,0,r,i)},e.prototype.render=function(n,r){var i=this,a=n.showLabel;this.renderTitle(qe(r));var o=this.availableSpace,s=o.x,c=o.y,l=qe(r).maybeAppendByClassName(Lr.contentGroup,"g").styles({x:s,y:c}),u=l.maybeAppendByClassName(Lr.labelGroup,"g").styles({zIndex:1});vi(!!a,u,function(d){i.renderLabel(d)});var f=l.maybeAppendByClassName(Lr.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=l.maybeAppendByClassName(Lr.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(f),this.renderIndicator(l),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(e.prototype,"range",{get:function(){var n=this.attributes,r=n.data,i=n.domain;return i?{min:i[0],max:i[1]}:DG(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonScale",{get:function(){var n=this.range,r=n.min,i=n.max;return this.innerRibbonScale.update({domain:[r,i],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonRange",{get:function(){var n=(0,S.CR)(this.selection,2),r=n[0],i=n[1],a=this.ribbonScale;return[a.map(r),a.map(i)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){var n=this.range,r=n.min,i=n.max,a=this.attributes.defaultValue,o=a===void 0?[r,i]:a,s=(0,S.CR)(o,2),c=s[0],l=s[1];return[c,l]},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){return da(this.attributes.orientation,typeof n=="function"?n():n,typeof r=="function"?r():r)},e.prototype.renderTitle=function(n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=r.width,s=r.height,c=en(this.attributes,"title"),l=(0,S.pi)((0,S.pi)({},c),{width:o,height:s,text:a}),u=this;n.selectAll(Lr.title.class).data(i?[a]:[]).join(function(f){return f.append(function(){return new O2({style:l})}).attr("className",Lr.title.name).each(function(){u.title=this})},function(f){return f.update(l)},function(f){return f.each(function(){u.title=void 0}).remove()})},Object.defineProperty(e.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var n=this.attributes,r=n.width,i=n.height;return new Qn(0,0,r,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelFixedSpacing",{get:function(){var n=this.attributes.showTick;return n?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){var n=this.attributes,r=n.orientation,i=n.labelDirection,a={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return a[r][i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelBBox",{get:function(){var n,r=this.attributes.showLabel;if(!r)return new Qn(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((n=this.label.querySelector(Pn.labelGroup.class))===null||n===void 0?void 0:n.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new Qn(0,0,a,o),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelShape",{get:function(){var n=this.attributes,r=n.showLabel,i=n.labelSpacing,a=i===void 0?0:i;if(!r)return{width:0,height:0,size:0,length:0};var o=this.labelBBox,s=o.width,c=o.height,l=this.ifHorizontal(c,s)+a+this.labelFixedSpacing,u=this.ifHorizontal(s,c);return{width:s,height:c,size:l,length:u}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonBBox",{get:function(){var n=this.attributes,r=n.showHandle,i=n.ribbonSize,a=this.availableSpace,o=a.width,s=a.height,c=this.labelShape,l=c.size,u=c.length,f=(0,S.CR)(this.ifHorizontal([s,o],[o,s]),2),d=f[0],h=f[1],p=r?this.handleShape:{size:0,length:0},v=p.size,g=p.length,y=this.handleOffsetRatio,m=0,b=this.labelPosition;i?m=i:["bottom","right"].includes(b)?m=Math.min(d-l,(d-v)/y):d*(1-y)>v?m=Math.max(d-l,0):m=Math.max((d-l-v)/y,0);var _=Math.max(g,u),O=h-_,w=(0,S.CR)(this.ifHorizontal([O,m],[m,O]),2),M=w[0],E=w[1],A=["top","left"].includes(b)?l:0,P=(0,S.CR)(this.ifHorizontal([_/2,A],[A,_/2]),2),C=P[0],j=P[1];return new Qn(C,j,M,E)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var n=this.ribbonBBox,r=n.width,i=n.height;return this.ifHorizontal({size:i,length:r},{size:r,length:i})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(n){var r=this.attributes,i=r.data,a=r.type,o=r.orientation,s=r.color,c=r.block,l=en(this.attributes,"ribbon"),u=this.range,f=u.min,d=u.max,h=this.ribbonBBox,p=h.x,v=h.y,g=this.ribbonShape,y=g.length,m=g.size,b=Ra({x:p,y:v,length:y,size:m,type:a,orientation:o,color:s,block:c,partition:i.map(function(_){return(_.value-f)/(d-f)}),range:this.ribbonRange},l);this.ribbon=n.maybeAppendByClassName(Lr.ribbon,function(){return new jG({style:b})}).update(b)},e.prototype.getHandleClassName=function(n){return"".concat(Lr.prefix("".concat(n,"-handle")))},e.prototype.renderHandles=function(){var n=this.attributes,r=n.showHandle,i=n.orientation,a=en(this.attributes,"handle"),o=(0,S.CR)(this.selection,2),s=o[0],c=o[1],l=(0,S.pi)((0,S.pi)({},a),{orientation:i}),u=a.shape,f=u===void 0?"slider":u,d=f==="basic"?MG:iO,h=this;this.handlesGroup.selectAll(Lr.handle.class).data(r?[{value:s,type:"start"},{value:c,type:"end"}]:[],function(p){return p.type}).join(function(p){return p.append(function(){return new d({style:l})}).attr("className",function(v){var g=v.type;return"".concat(Lr.handle," ").concat(h.getHandleClassName(g))}).each(function(v){var g=v.type,y=v.value;this.update({labelText:y});var m="".concat(g,"Handle");h[m]=this,this.addEventListener("pointerdown",h.onDragStart(g))})},function(p){return p.update(l).each(function(v){var g=v.value;this.update({labelText:g})})},function(p){return p.each(function(v){var g=v.type,y="".concat(g,"Handle");h[y]=void 0}).remove()})},e.prototype.adjustHandles=function(){var n=(0,S.CR)(this.selection,2),r=n[0],i=n[1];this.setHandlePosition("start",r),this.setHandlePosition("end",i)},e.prototype.adjustTitle=function(){var n=this.attributes,r=n.titlePosition,i=n.orientation,a=(0,S.CR)(this.getElementsByClassName(Lr.title.name),1),o=a[0],s=this.handlesGroup.select(".".concat(this.getHandleClassName("start"))).node();if(!(!o||!s)&&!(r!=="top-left"||i!=="horizontal")){var c=(0,S.CR)(s.getLocalBounds().min,1),l=c[0],u=(0,S.CR)(o.getLocalBounds().min,1),f=u[0],d=l-f;o.style.x=+(this.style.x||0)+d}},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new Qn(0,0,0,0);var n=this.startHandle.getBBox(),r=n.width,i=n.height,a=this.endHandle.getBBox(),o=a.width,s=a.height,c=(0,S.CR)([Math.max(r,o),Math.max(i,s)],2),l=c[0],u=c[1];return this.cacheHandleBBox=new Qn(0,0,l,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var n=this.handleBBox,r=n.width,i=n.height,a=(0,S.CR)(this.ifHorizontal([i,r],[r,i]),2),o=a[0],s=a[1];return{width:r,height:i,size:o,length:s}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(n,r){var i=this.attributes.handleFormatter,a=this.ribbonBBox,o=a.x,s=a.y,c=this.ribbonShape.size,l=this.getOffset(r),u=(0,S.CR)(this.ifHorizontal([o+l,s+c*this.handleOffsetRatio],[o+c*this.handleOffsetRatio,s+l]),2),f=u[0],d=u[1],h=this.handlesGroup.select(".".concat(this.getHandleClassName(n))).node();h==null||h.update({x:f,y:d,formatter:i})},e.prototype.renderIndicator=function(n){var r=en(this.attributes,"indicator");this.indicator=n.maybeAppendByClassName(Lr.indicator,function(){return new Qz({})}).update(r)},Object.defineProperty(e.prototype,"labelData",{get:function(){var n=this,r=this.attributes.data;return r.reduce(function(i,a,o,s){var c,l,u=(c=a==null?void 0:a.id)!==null&&c!==void 0?c:o.toString();if(i.push((0,S.pi)((0,S.pi)({},a),{id:u,index:o,type:"value",label:(l=a==null?void 0:a.label)!==null&&l!==void 0?l:a.value.toString(),value:n.ribbonScale.map(a.value)})),o=0&&(c=1),1-s/(o-1)-n+c}function HG(t,e,n){const r=j2(e),i=N2(e,t),a=1;return 1-i/(r-1)-n+a}function YG(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function $G(t,e){return t>=e?2-(t-1)/(e-1):1}function VG(t,e,n,r){const i=e-t;return 1-.5*(wr(e-r,2)+wr(t-n,2))/wr(.1*i,2)}function XG(t,e,n){const r=e-t;if(n>r){const i=(n-r)/2;return 1-wr(i,2)/wr(.1*r,2)}return 1}function UG(){return 1}const Rv=(t,e,n=5,r=!0,i=FG,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||j<=t&&N>=e)&&(s.lmin=j,s.lmax=N,s.lstep=k,s.score=z)}}_+=1}y+=1}}c+=1}const l=Ml(s.lmax),u=Ml(s.lmin),f=Ml(s.lstep),d=Math.floor(GG((l-u)/f))+1,h=new Array(d);h[0]=Ml(u);for(let p=1;pa-o);const i=[];for(let a=1;a({value:e/t,label:String(e)})}function eW(t,e,n,r,i){const a=e.thresholds,o=tW(r);return Object.assign(Object.assign({},t),{color:i,data:[n,...a,r].map(o)})}function nW(t,e,n){const i=[-1/0,...e.thresholds,1/0].map((a,o)=>({value:o,label:a}));return Object.assign(Object.assign({},t),{data:i,color:n,labelFilter:(a,o)=>o>0&&op!==void 0).find(p=>!(p instanceof Sl)));return Object.assign(Object.assign({},t),{domain:[d,h],data:l.getTicks().map(p=>({value:p})),color:new Array(Math.floor(o)).fill(0).map((p,v)=>{const g=(f-u)/(o-1)*v+u,y=l.map(g)||c,m=r?r.map(g):1;return y.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(b,_,O,w)=>`rgba(${_}, ${O}, ${w}, ${m})`)})})}function aW(t,e,n,r,i,a){const o=ua(t,"color"),s=JG(n,r,i);if(o instanceof Js){const{range:u}=o.getOptions(),[f,d]=Lv(o);return o instanceof hd||o instanceof pd?eW(s,o,f,d,u):nW(s,o,u)}const c=ua(t,"size"),l=ua(t,"opacity");return iW(s,o,c,l,e,a)}const fo=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,style:c,crossPadding:l,padding:u}=t,f=KG(t,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:d,value:h,theme:p,scale:v})=>{const{bbox:g}=h,{x:y,y:m,width:b,height:_}=g,O=$2(a,n),{legendContinuous:w={}}=p,M=ud(Object.assign({},w,Object.assign(Object.assign({titleText:ld(s),labelAlign:"value",labelFormatter:typeof e=="string"?A=>oo(e)(A.label):e},aW(d,v,h,t,fo,p)),c),f)),E=new V2({style:Object.assign(Object.assign({x:y,y:m,width:b,height:_},O),{subOptions:M})});return E.appendChild(new BG({className:"legend-continuous",style:M})),E}};fo.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};const gO=t=>(...e)=>fo(Object.assign({},{block:!0},t))(...e);gO.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const Nv=t=>e=>{const{scales:n}=e,r=ua(n,"size");return fo(Object.assign({},{type:"size",data:r.getTicks().map((i,a)=>({value:i,label:String(i)}))},t))(e)};Nv.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const yO=t=>Nv(Object.assign({},{block:!0},t));yO.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var oW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie=>{const{width:n,height:r,depth:i,paddingLeft:a,paddingRight:o,paddingTop:s,paddingBottom:c,padding:l,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,margin:v,marginLeft:g,marginBottom:y,marginTop:m,marginRight:b,data:_,coordinate:O,theme:w,component:M,interaction:E,x:A,y:P,z:C,key:j,frame:N,labelTransform:k,parentKey:R,clip:D,viewStyle:B,title:F}=e,z=oW(e,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:A,y:P,z:C,key:j,width:n,height:r,depth:i,padding:l,paddingLeft:a,paddingRight:o,paddingTop:s,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,paddingBottom:c,theme:w,coordinate:O,component:M,interaction:E,frame:N,labelTransform:k,margin:v,marginLeft:g,marginBottom:y,marginTop:m,marginRight:b,parentKey:R,clip:D,style:B},!t&&{title:F}),{marks:[Object.assign(Object.assign(Object.assign({},z),{key:`${j}-0`,data:_}),t&&{title:F})]})]};mO.props={};var sW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iDt({},t(e,...n),e)}function ec(t){return(e,...n)=>Dt({},e,t(e,...n))}function Iv(t,e){if(!t)return e;if(Array.isArray(t))return t;const{value:n=e}=t,r=sW(t,["value"]);return Object.assign(Object.assign({},r),{value:n})}var jv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t,n=jv(t,["children"]);if(!Array.isArray(e))return[];const{data:r,scale:i={},axis:a={},legend:o={},encode:s={},transform:c=[]}=n,l=jv(n,["data","scale","axis","legend","encode","transform"]),u=e.map(f=>{var{data:d,scale:h={},axis:p={},legend:v={},encode:g={},transform:y=[]}=f,m=jv(f,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:Iv(d,r),scale:Dt({},i,h),encode:Dt({},s,g),transform:[...c,...y],axis:p&&a?Dt({},a,p):!1,legend:v&&o?Dt({},o,v):!1},m)});return[Object.assign(Object.assign({},l),{marks:u,type:"standardView"})]};bO.props={};function ur([t,e],[n,r]){return[t-n,e-r]}function vd([t,e],[n,r]){return[t+n,e+r]}function Jn([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Gi([t,e]){return Math.atan2(e,t)}function nc([t,e]){return Gi([t,e])+Math.PI/2}function xO(t,e){const n=Gi(t),r=Gi(e);return nr===0?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])),t.closePath(),t}function lW(t,e,n){const{arrowSize:r}=n,i=typeof r=="string"?+parseFloat(r)/100*Jn(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),s=Math.PI/2-o-a,c=[e[0]-i*Math.sin(s),e[1]-i*Math.cos(s)],l=o-a,u=[e[0]-i*Math.cos(l),e[1]-i*Math.sin(l)];return[c,u]}function El(t,e,n,r,i){const a=Gi(ur(r,e))+Math.PI,o=Gi(ur(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function OO(t,e,n,r="y",i="between",a=!1){const o=(g,y)=>g==="y"||g===!0?y?180:90:y?90:0,s=r==="y"||r===!0?n:e,c=o(r,a),l=Zo(s),[u,f]=Ia(l,g=>s[g]),d=new Vr({domain:[u,f],range:[0,100]}),h=g=>d.map(s[g]),p={between:g=>`${t[g]} ${h(g)}%`,start:g=>g===0?`${t[g]} ${h(g)}%`:`${t[g-1]} ${h(g)}%, ${t[g]} ${h(g)}%`,end:g=>g===t.length-1?`${t[g]} ${h(g)}%`:`${t[g]} ${h(g)}%, ${t[g+1]} ${h(g)}%`},v=l.sort((g,y)=>h(g)-h(y)).map(p[i]||p.between).join(",");return`linear-gradient(${c}deg, ${v})`}function gd(t){const[e,n,r,i]=t;return[i,e,n,r]}function ns(t,e,n){const[r,i,,a]=$n(t)?gd(e):e,[o,s]=n,c=t.getCenter(),l=nc(ur(r,c)),u=nc(ur(i,c)),f=u===l&&o!==s?u+Math.PI*2:u;return{startAngle:l,endAngle:f-l>=0?f:Math.PI*2+f,innerRadius:Jn(a,c),outerRadius:Jn(r,c)}}function $ht(t){const e="connect";return Object.fromEntries(Object.entries(t).filter(([n])=>n.startsWith(e)).map(([n,r])=>[lowerFirst(n.replace(e,"").trim()),r]).filter(([n])=>n!==void 0))}function wO(t){const{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function SO(t,e){if(!Gn(t))return"";const n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function MO(t){if(t.length===1)return t[0];const[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}function EO(t){return t.replace(/-(\w)/g,function(e,n){return n.toUpperCase()})}function uW(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}var Vht=Array.prototype.slice;function AO(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Vn(t){return function(){return t}}function TO(t){this._context=t}TO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Al(t){return new TO(t)}const Bv=Math.PI,Fv=2*Bv,rs=1e-6,fW=Fv-rs;function PO(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return PO;const n=wr(10,e);return function(r){this._+=r[0];for(let i=1,a=r.length;irs)if(!(Math.abs(f*c-l*u)>rs)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Bv-Math.acos((v+d-g)/(2*y*m)))/2),_=b/m,O=b/y;Math.abs(_-1)>rs&&this._append`L${e+_*u},${n+_*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+O*c},${this._y1=n+O*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>rs||Math.abs(this._y1-u)>rs)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Fv+Fv),d>fW?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>rs&&this._append`A${r},${r},0,${+(d>=Bv)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Wi(){return new yd}Wi.prototype=yd.prototype;function Xht(t=3){return new yd(+t)}function zv(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new yd(e)}function CO(t){return t[0]}function kO(t){return t[1]}function ho(t,e){var n=Vn(!0),r=null,i=Al,a=null,o=zv(s);t=typeof t=="function"?t:t===void 0?CO:Vn(t),e=typeof e=="function"?e:e===void 0?kO:Vn(e);function s(c){var l,u=(c=AO(c)).length,f,d=!1,h;for(r==null&&(a=i(h=o())),l=0;l<=u;++l)!(l0&&(a=e),r<0&&(a=r),n>0&&(o=n),i<0&&(o=i),[a,o]}function pW(t,e=[]){const[n=0,r=0,i=n,a=r]=e,o=t.parentNode,s=o.getEulerAngles();o.setEulerAngles(0);const{min:c,halfExtents:l}=t.getLocalBounds(),[u,f]=c,[d,h]=l;return o.setEulerAngles(s),{x:u-a,y:f-n,width:d*2+a+r,height:h*2+n+i}}const vW=(t,e,n)=>{const r=Jn(t,e),i=Jn(e,n),a=Jn(n,t);return(Math.pow(r,2)+Math.pow(i,2)-Math.pow(a,2))/(2*r*i)};function gW(t,e,n,r){const[[i,a],[o,s]]=e,[c,l]=hW(t);if(i===o&&a===s)return ho()([[0,0],[c,l]]);const u=[[i-o,a-s]].concat(n.length?n:[[0,0]]),f=[r[0]-o,r[1]-s],[d,h]=u;if(vW(f,d,h)>0){const p=(()=>{const{min:v,max:g}=t.getLocalBounds(),y=d[0]+(d[1]-f[1])*(d[1]-0)/(d[0]-f[0]);return g[0]{const e=t.attributes,{className:n,class:r,transform:i,rotate:a,labelTransform:o,labelTransformOrigin:s,x:c,y:l,x0:u=c,y0:f=l,text:d,background:h,connector:p,startMarker:v,endMarker:g,coordCenter:y,innerHTML:m}=e,b=Gv(e,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if([c,l,u,f].some(D=>!(0,xr.Z)(D))){t.children.forEach(D=>D.remove());return}const _=fe(b,"background"),{padding:O}=_,w=Gv(_,["padding"]),M=fe(b,"connector"),{points:E=[]}=M,A=Gv(M,["points"]),P=[[+u,+f],[+c,+l]];let C;m?C=je(t).maybeAppend("html","html",n).style("zIndex",0).style("innerHTML",m).call(Ae,Object.assign({transform:o,transformOrigin:s},b)).node():C=je(t).maybeAppend("text","text").style("zIndex",0).style("text",d).call(Ae,Object.assign({textBaseline:"middle",transform:o,transformOrigin:s},b)).node();const j=je(t).maybeAppend("background","rect").style("zIndex",-1).call(Ae,pW(C,O)).call(Ae,h?w:{}).node(),N=gW(j,P,E,y),k=v&&new Rn({id:"startMarker",style:Object.assign({x:0,y:0},fe(b,"startMarker"))}),R=g&&new Rn({id:"endMarker",style:Object.assign({x:0,y:0},fe(b,"endMarker"))});je(t).maybeAppend("connector","path").style("zIndex",0).style("path",N).style("markerStart",k).style("markerEnd",R).call(Ae,p?A:{})});function ic(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function yW(t,e,n,r){const i=e.length/2,a=e.slice(0,i),o=e.slice(i);let s=ic(a,(h,p)=>Math.abs(h[1]-o[p][1]));s=Math.max(Math.min(s,i-2),1);const c=h=>[a[h][0],(a[h][1]+o[h][1])/2],l=c(s),u=c(s-1),f=c(s+1),d=Gi(ur(f,u))/Math.PI*180;return{x:l[0],y:l[1],transform:`rotate(${d})`,textAlign:"center",textBaseline:"middle"}}function LO(t,e,n,r){const{bounds:i}=n,[[a,o],[s,c]]=i,l=s-a,u=c-o,f=d=>{const{x:h,y:p}=d,v=O_(n.x,l),g=O_(n.y,u);return Object.assign(Object.assign({},d),{x:(v||h)+a,y:(g||p)+o})};return f(t==="left"?{x:0,y:u/2,textAnchor:"start",textBaseline:"middle"}:t==="right"?{x:l,y:u/2,textAnchor:"end",textBaseline:"middle"}:t==="top"?{x:l/2,y:0,textAnchor:"center",textBaseline:"top"}:t==="bottom"?{x:l/2,y:u,textAnchor:"center",textBaseline:"bottom"}:t==="top-left"?{x:0,y:0,textAnchor:"start",textBaseline:"top"}:t==="top-right"?{x:l,y:0,textAnchor:"end",textBaseline:"top"}:t==="bottom-left"?{x:0,y:u,textAnchor:"start",textBaseline:"bottom"}:t==="bottom-right"?{x:l,y:u,textAnchor:"end",textBaseline:"bottom"}:{x:l/2,y:u/2,textAnchor:"center",textBaseline:"middle"})}function NO(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s}=n,c=r.getCenter(),l=ns(r,e,[i,a]),{innerRadius:u,outerRadius:f,startAngle:d,endAngle:h}=l,p=t==="inside"?(d+h)/2:h,v=Wv(p,o,s),g=(()=>{const[y,m]=e,b=u+(f-u)*.5,[_,O]=t==="inside"?Tl(c,p,b):_O(y,m);return{x:_,y:O}})();return Object.assign(Object.assign({},g),{textAlign:t==="inside"?"center":"start",textBaseline:"middle",rotate:v})}function Tl(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function Wv(t,e,n){if(!e)return 0;const r=n?0:Math.sin(t)<0?90:-90;return t/Math.PI*180+r}function mW(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s,radius:c=.5,offset:l=0}=n,u=ns(r,e,[i,a]),{startAngle:f,endAngle:d}=u,h=r.getCenter(),p=(f+d)/2,g={textAlign:"center",textBaseline:"middle",rotate:Wv(p,o,s)},{innerRadius:y,outerRadius:m}=u,_=y+(m-y)*c+l,[O,w]=Tl(h,p,_);return Object.assign({x:O,y:w},g)}function IO(t){return t===void 0?null:t}function jO(t,e,n,r){const{bounds:i}=n,[a]=i;return{x:IO(a[0]),y:IO(a[1])}}function ja(t,e,n,r){const{bounds:i}=n;return i.length===1?jO(t,e,n,r):(fl(r)?NO:Vs(r)?mW:LO)(t,e,n,r)}function bW(t,e,n,r,i){const[a,o]=Tl(t,e,n),[s,c]=Tl(t,e,r),l=Math.sin(e)>0?1:-1;return[[a,o],[s,c],[s+l*i,c]]}function DO(t,e,n){const r=ns(n,t,[e.y,e.y1]),{innerRadius:i,outerRadius:a}=r;return i+(a-i)}function BO(t,e,n){const r=ns(n,t,[e.y,e.y1]),{startAngle:i,endAngle:a}=r;return(i+a)/2}function Hv(t,e,n,r){const{autoRotate:i,rotateToAlignArc:a,offset:o=0,connector:s=!0,connectorLength:c=o,connectorLength2:l=0,connectorDistance:u=0}=n,f=r.getCenter(),d=BO(e,n,r),h=Math.sin(d)>0?1:-1,p=Wv(d,i,a),v={textAlign:h>0||fl(r)?"start":"end",textBaseline:"middle",rotate:p},g=DO(e,n,r),y=g+(s?c:o),[[m,b],[_,O],[w,M]]=bW(f,d,g,y,s?l:0),E=s?+u*h:0,A=w+E,P=M,C={connector:s,connectorPoints:[[_-A,O-P],[w-A,M-P]]};return Object.assign(Object.assign({x0:m,y0:b,x:w+E,y:M},v),C)}function xW(t,e,n,r){const{bounds:i}=n;return i.length===1?jO(t,e,n,r):(fl(r)?NO:Vs(r)?Hv:LO)(t,e,n,r)}var _W=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?1:-1,h=c[0]+(f+ +o)*d,{x:p}=s,v=h-p;return s.x+=v,s.connectorPoints[0][0]-=v,s}var wW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?1:-1,[v,g]=Tl(u,h,d);return s.x=v+(a+o)*p,s.y=g,s}var FO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,theme:r}=e,{render:i}=t;return(a,o)=>{const{text:s,x:c,y:l,transform:u="",transformOrigin:f,className:d=""}=o,h=FO(o,["text","x","y","transform","transformOrigin","className"]),p=EW(a,o,n,r,t),{rotate:v=0,transform:g=""}=p,y=FO(p,["rotate","transform"]);return je(new RO).call(Ae,y).style("text",`${s}`).style("className",`${d} g2-label`).style("innerHTML",i?i(s,o.datum,o.index):void 0).style("labelTransform",`${g} rotate(${+v}) ${u}`.trim()).style("labelTransformOrigin",f).style("coordCenter",n.getCenter()).call(Ae,h).node()}};zO.props={defaultMarker:"point"};function GO(t,e){const{__data__:n}=t,{markKey:r,index:i,seriesIndex:a}=n,{markState:o}=e,s=Array.from(o.keys()).find(c=>c.key===r);if(s)return a?a.map(c=>s.data[c]):s.data[i]}function WO(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}function AW(t){return WO(t,e=>e.className==="component")}function TW(t){return WO(t,e=>e.className==="element")}function Nr(t,e,n,r=i=>!0){return i=>{if(!r(i))return;n.emit(`plot:${t}`,i);const{target:a}=i;if(!a)return;const{className:o}=a;if(o==="plot")return;const s=TW(a),c=AW(a),l=s||c;if(!l)return;const{className:u,markType:f}=l;if(u==="element"){const d=Object.assign(Object.assign({},i),{nativeEvent:!0,data:{data:GO(l,e)}});n.emit(`element:${t}`,d),n.emit(`${f}:${t}`,d)}else{const d=Object.assign(Object.assign({},i),{nativeEvent:!0});n.emit(`component:${t}`,d),n.emit(`${o}:${t}`,d)}}}function HO(){return(t,e,n)=>{const{container:r,view:i}=t,a=Nr(Sn.CLICK,i,n,M=>M.detail===1),o=Nr(Sn.DBLCLICK,i,n,M=>M.detail===2),s=Nr(Sn.POINTER_TAP,i,n),c=Nr(Sn.POINTER_DOWN,i,n),l=Nr(Sn.POINTER_UP,i,n),u=Nr(Sn.POINTER_OVER,i,n),f=Nr(Sn.POINTER_OUT,i,n),d=Nr(Sn.POINTER_MOVE,i,n),h=Nr(Sn.POINTER_ENTER,i,n),p=Nr(Sn.POINTER_LEAVE,i,n),v=Nr(Sn.POINTER_UPOUTSIDE,i,n),g=Nr(Sn.DRAG_START,i,n),y=Nr(Sn.DRAG,i,n),m=Nr(Sn.DRAG_END,i,n),b=Nr(Sn.DRAG_ENTER,i,n),_=Nr(Sn.DRAG_LEAVE,i,n),O=Nr(Sn.DRAG_OVER,i,n),w=Nr(Sn.DROP,i,n);return r.addEventListener("click",a),r.addEventListener("click",o),r.addEventListener("pointertap",s),r.addEventListener("pointerdown",c),r.addEventListener("pointerup",l),r.addEventListener("pointerover",u),r.addEventListener("pointerout",f),r.addEventListener("pointermove",d),r.addEventListener("pointerenter",h),r.addEventListener("pointerleave",p),r.addEventListener("pointerupoutside",v),r.addEventListener("dragstart",g),r.addEventListener("drag",y),r.addEventListener("dragend",m),r.addEventListener("dragenter",b),r.addEventListener("dragleave",_),r.addEventListener("dragover",O),r.addEventListener("drop",w),()=>{r.removeEventListener("click",a),r.removeEventListener("click",o),r.removeEventListener("pointertap",s),r.removeEventListener("pointerdown",c),r.removeEventListener("pointerup",l),r.removeEventListener("pointerover",u),r.removeEventListener("pointerout",f),r.removeEventListener("pointermove",d),r.removeEventListener("pointerenter",h),r.removeEventListener("pointerleave",p),r.removeEventListener("pointerupoutside",v),r.removeEventListener("dragstart",g),r.removeEventListener("drag",y),r.removeEventListener("dragend",m),r.removeEventListener("dragenter",b),r.removeEventListener("dragleave",_),r.removeEventListener("dragover",O),r.removeEventListener("drop",w)}}}HO.props={reapplyWhenUpdate:!0};function PW(){return{"component.axisRadar":tO,"component.axisLinear":lo,"component.axisArc":J2,"component.legendContinuousBlock":gO,"component.legendContinuousBlockSize":yO,"component.legendContinuousSize":Nv,"interaction.event":HO,"composition.mark":mO,"composition.view":bO,"shape.label.label":zO}}var CW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(typeof a!="string")return a;const o=`${t}.${a}`;return n[o]||$s(`Unknown Component: ${o}`)};return[(a,o)=>{const{type:s}=a,c=CW(a,["type"]);s||$s("Plot type is required!");const l=r(s);return l==null?void 0:l(c,o)},r]}function YO(t){const{canvas:e,group:n}=t;return(e==null?void 0:e.document)||(n==null?void 0:n.ownerDocument)||$s("Cannot find library document")}var $O=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);in.type===e)}function is(t){return Qi(t,"polar").length>0}function RW(t){return Qi(t,"helix").length>0}function ac(t){return Qi(t,"transpose").length%2===1}function LW(t){return Qi(t,"parallel").length>0}function XO(t){return Qi(t,"theta").length>0}function NW(t){return Qi(t,"reflect").length>0}function Pl(t){return Qi(t,"radial").length>0}function IW(t){return Qi(t,"radar").length>0}function jW(t){return Qi(t,"reflectY").length>0}function DW(t){return t.find(e=>e.type==="cartesian"||e.type==="cartesian3D")?t:[...t,{type:"cartesian"}]}function nn(t){for(var e=t.length/6|0,n=new Array(e),r=0;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?bd(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?bd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=qW.exec(t))?new Xr(e[1],e[2],e[3],1):(e=ZW.exec(t))?new Xr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=KW.exec(t))?bd(e[1],e[2],e[3],e[4]):(e=QW.exec(t))?bd(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=JW.exec(t))?ew(e[1],e[2]/100,e[3]/100,1):(e=tH.exec(t))?ew(e[1],e[2]/100,e[3]/100,e[4]):UO.hasOwnProperty(t)?KO(UO[t]):t==="transparent"?new Xr(NaN,NaN,NaN,0):null}function KO(t){return new Xr(t>>16&255,t>>8&255,t&255,1)}function bd(t,e,n,r){return r<=0&&(t=e=n=NaN),new Xr(t,e,n,r)}function QO(t){return t instanceof oc||(t=$v(t)),t?(t=t.rgb(),new Xr(t.r,t.g,t.b,t.opacity)):new Xr}function kl(t,e,n,r){return arguments.length===1?QO(t):new Xr(t,e,n,r==null?1:r)}function Xr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}md(Xr,kl,Yv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new Xr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new Xr(os(this.r),os(this.g),os(this.b),xd(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:JO,formatHex:JO,formatHex8:rH,formatRgb:tw,toString:tw}));function JO(){return"#".concat(ss(this.r)).concat(ss(this.g)).concat(ss(this.b))}function rH(){return"#".concat(ss(this.r)).concat(ss(this.g)).concat(ss(this.b)).concat(ss((isNaN(this.opacity)?1:this.opacity)*255))}function tw(){var t=xd(this.opacity);return"".concat(t===1?"rgb(":"rgba(").concat(os(this.r),", ").concat(os(this.g),", ").concat(os(this.b)).concat(t===1?")":", ".concat(t,")"))}function xd(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function os(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ss(t){return t=os(t),(t<16?"0":"")+t.toString(16)}function ew(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ji(t,e,n,r)}function nw(t){if(t instanceof Ji)return new Ji(t.h,t.s,t.l,t.opacity);if(t instanceof oc||(t=$v(t)),!t)return new Ji;if(t instanceof Ji)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Ji(o,s,c,t.opacity)}function iH(t,e,n,r){return arguments.length===1?nw(t):new Ji(t,e,n,r==null?1:r)}function Ji(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}md(Ji,iH,Yv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new Ji(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new Ji(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,a=2*r-i;return new Xr(Vv(e>=240?e-240:e+120,a,i),Vv(e,a,i),Vv(e<120?e+240:e-120,a,i),this.opacity)},clamp:function(){return new Ji(rw(this.h),_d(this.s),_d(this.l),xd(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=xd(this.opacity);return"".concat(e===1?"hsl(":"hsla(").concat(rw(this.h),", ").concat(_d(this.s)*100,"%, ").concat(_d(this.l)*100,"%").concat(e===1?")":", ".concat(e,")"))}}));function rw(t){return t=(t||0)%360,t<0?t+360:t}function _d(t){return Math.max(0,Math.min(1,t||0))}function Vv(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function iw(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function aH(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):Xv(isNaN(t)?e:t)}function lH(t){return(t=+t)==1?lc:function(e,n){return n-e?sH(e,n,t):Xv(isNaN(e)?n:e)}}function lc(t,e){var n=e-t;return n?aw(t,n):Xv(isNaN(t)?e:t)}var Uht=function t(e){var n=lH(e);function r(i,a){var o=n((i=kl(i)).r,(a=kl(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),l=lc(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=t,r}(1);function ow(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;ouH(t[t.length-1]),sw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(nn),fH=Wn(sw),cw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(nn),dH=Wn(cw),lw=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(nn),hH=Wn(lw),uw=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(nn),pH=Wn(uw),fw=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(nn),vH=Wn(fw),dw=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(nn),gH=Wn(dw),hw=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(nn),yH=Wn(hw),pw=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(nn),mH=Wn(pw),vw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(nn),bH=Wn(vw),gw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(nn),xH=Wn(gw),yw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(nn),_H=Wn(yw),mw=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(nn),OH=Wn(mw),bw=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(nn),wH=Wn(bw),xw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(nn),SH=Wn(xw),_w=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(nn),MH=Wn(_w),Ow=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(nn),EH=Wn(Ow),ww=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(nn),AH=Wn(ww),Sw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(nn),TH=Wn(Sw),Mw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(nn),PH=Wn(Mw),Ew=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(nn),CH=Wn(Ew),Aw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(nn),kH=Wn(Aw),Tw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(nn),RH=Wn(Tw),Pw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(nn),LH=Wn(Pw),Cw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(nn),NH=Wn(Cw),kw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(nn),IH=Wn(kw),Rw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(nn),jH=Wn(Rw),Lw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(nn),DH=Wn(Lw);function BH(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-t*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-t*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-t*2475.67)))))))+")"}var FH=Math.PI/180,zH=180/Math.PI,Nw=-.14861,Uv=1.78277,qv=-.29227,Od=-.90649,Rl=1.97294,Iw=Rl*Od,jw=Rl*Uv,Dw=Uv*qv-Od*Nw;function GH(t){if(t instanceof cs)return new cs(t.h,t.s,t.l,t.opacity);t instanceof Xr||(t=QO(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Dw*r+Iw*e-jw*n)/(Dw+Iw-jw),a=r-i,o=(Rl*(n-i)-qv*a)/Od,s=Math.sqrt(o*o+a*a)/(Rl*i*(1-i)),c=s?Math.atan2(o,a)*zH-120:NaN;return new cs(c<0?c+360:c,s,i,t.opacity)}function pa(t,e,n,r){return arguments.length===1?GH(t):new cs(t,e,n,r==null?1:r)}function cs(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}md(cs,pa,Yv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new cs(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new cs(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*FH,n=+this.l,r=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(e),a=Math.sin(e);return new Xr(255*(n+r*(Nw*i+Uv*a)),255*(n+r*(qv*i+Od*a)),255*(n+r*(Rl*i)),this.opacity)}}));function Bw(t){return function e(n){n=+n;function r(i,a){var o=t((i=pa(i)).h,(a=pa(a)).h),s=lc(i.s,a.s),c=lc(i.l,a.l),l=lc(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=e,r}(1)}var Zht=Bw(cH),Zv=Bw(lc),WH=Zv(pa(300,.5,0),pa(-240,.5,1)),HH=Zv(pa(-100,.75,.35),pa(80,1.5,.8)),YH=Zv(pa(260,.75,.35),pa(80,1.5,.8)),wd=pa();function $H(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return wd.h=360*t-100,wd.s=1.5-1.5*e,wd.l=.8-.9*e,wd+""}var Sd=kl(),VH=Math.PI/3,XH=Math.PI*2/3;function UH(t){var e;return t=(.5-t)*Math.PI,Sd.r=255*(e=Math.sin(t))*e,Sd.g=255*(e=Math.sin(t+VH))*e,Sd.b=255*(e=Math.sin(t+XH))*e,Sd+""}function qH(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-t*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+t*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-t*6838.66)))))))+")"}function Md(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var ZH=Md(nn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),KH=Md(nn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),QH=Md(nn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),JH=Md(nn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function tY(t,e,n,r,i,a){const{guide:o={}}=n,s=lY(t,e,n);if(typeof s!="string")return n;const c=uY(s,t,e,n),l=oY(s,c,n);return Object.assign(Object.assign(Object.assign({},n),dY(s,t,e,n,r)),{domain:l,range:fY(s,t,e,n,l,i,a),expectedDomain:c,guide:o,name:t,type:s})}function eY(t,e){const n={};for(const r of t){const{values:i,name:a}=r,o=e[a];for(const s of i){const{name:c,value:l}=s;n[c]=l.map(u=>o.map(u))}}return n}function nY(t,e){var n;const{components:r=[]}=e,i=["scale","encode","axis","legend","data","transform"],a=Array.from(new Set(t.flatMap(s=>s.channels.map(c=>c.scale)))),o=new Map(a.map(s=>[s.name,s]));for(const s of r){const c=aY(s);for(const l of c){const u=o.get(l),f=((n=s.scale)===null||n===void 0?void 0:n[l])||{},{independent:d=!1}=f;if(u&&!d){const{guide:h}=u,p=typeof h=="boolean"?{}:h;u.guide=Dt({},p,s),Object.assign(u,f)}else{const h=Object.assign(Object.assign({},f),{expectedDomain:f.domain,name:l,guide:W2(s,i)});a.push(h)}}}return a}function rY(t){if(!t||!Array.isArray(t))return[qo,qo];let e,n;return[a=>{var o;e=a.map.bind(a),n=(o=a.invert)===null||o===void 0?void 0:o.bind(a);const s=t.filter(([d])=>typeof d=="function"),c=t.filter(([d])=>typeof d!="function"),l=new Map(c);if(a.map=d=>{for(const[h,p]of s)if(h(d))return p;return l.has(d)?l.get(d):e(d)},!n)return a;const u=new Map(c.map(([d,h])=>[h,d])),f=new Map(s.map(([d,h])=>[h,d]));return a.invert=d=>f.has(d)?d:u.has(d)?u.get(d):n(d),a},a=>(e!==null&&(a.map=e),n!==null&&(a.invert=n),a)]}function Fw(t,e){const n=Object.keys(t);for(const r of Object.values(e)){const{name:i}=r.getOptions();if(!(i in t))t[i]=r;else{const a=n.filter(c=>c.startsWith(i)).map(c=>+(c.replace(i,"")||0)),o=Mn(a)+1,s=`${i}${o}`;t[s]=r,r.getOptions().key=s}}return t}function zw(t,e){const[n]=Xn("scale",e),{relations:r}=t,[i]=rY(r),a=n(t);return i(a)}function iY(t){const e=t.flatMap(n=>Array.from(n.values())).flatMap(n=>n.channels.map(r=>r.scale));Gw(e,"x"),Gw(e,"y")}function aY(t){const{channels:e=[],type:n,scale:r={}}=t,i=["shape","color","opacity","size"];return e.length!==0?e:n==="axisX"?["x"]:n==="axisY"?["y"]:n==="legends"?Object.keys(r).filter(a=>i.includes(a)):[]}function Gw(t,e){const n=t.filter(({name:a,facet:o=!0})=>o&&a===e),r=n.flatMap(a=>a.domain),i=n.every(Ww)?Ia(r):n.every(Hw)?Array.from(new Set(r)):null;if(i!==null)for(const a of n)a.domain=i}function oY(t,e,n){const{ratio:r}=n;return r==null?e:Ww({type:t})?sY(e,r,t):Hw({type:t})?cY(e,r):e}function sY(t,e,n){const r=t.map(Number),i=new Vr({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*e]});return n==="time"?t.map(a=>new Date(i.map(a))):t.map(a=>i.map(a))}function cY(t,e){const n=Math.round(t.length*e);return t.slice(0,n)}function Ww(t){const{type:e}=t;return typeof e!="string"?!1:["linear","log","pow","time"].includes(e)}function Hw(t){const{type:e}=t;return typeof e!="string"?!1:["band","point","ordinal"].includes(e)}function lY(t,e,n){const{type:r,domain:i,range:a,quantitative:o,ordinal:s}=n;return r!==void 0?r:wY(e)?"identity":typeof a=="string"?"linear":(i||a||[]).length>2?Kv(t,s):i!==void 0?Uw([i])?Kv(t,s):qw(e)?"time":$w(t,a,o):Uw(e)?Kv(t,s):qw(e)?"time":$w(t,a,o)}function uY(t,e,n,r){const{domain:i}=r;if(i!==void 0)return i;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return Vw(bY(n,r),r);case"band":case"ordinal":case"point":return Xw(n);case"quantile":return xY(n);case"sequential":return Vw(_Y(n),r);default:return[]}}function fY(t,e,n,r,i,a,o){const{range:s}=r;if(typeof s=="string")return hY(s);if(s!==void 0)return s;const{rangeMin:c,rangeMax:l}=r;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":{const u=Yw(n,r,i,a,o),[f,d]=OY(e,u);return[c||f,l||d]}case"band":case"point":return[c||(e==="size"?5:0),l||(e==="size"?10:1)];case"ordinal":return Yw(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}function dY(t,e,n,r,i){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return gY(i,r);case"band":case"point":return yY(t,e,i,r);case"sequential":return vY(r);default:return r}}function Yw(t,e,n,r,i){const[a]=Xn("palette",i),{category10:o,category20:s}=r,c=nB(t.flat()).length<=o.length?o:s,{palette:l=c,offset:u}=e;if(Array.isArray(l))return l;try{return a({type:l})}catch(f){const d=pY(l,n,u);if(d)return d;throw new Error(`Unknown Component: ${l} `)}}function hY(t){return t.split("-")}function pY(t,e,n=r=>r){if(!t)return null;const r=ao(t),i=Nt[`scheme${r}`],a=Nt[`interpolate${r}`];if(!i&&!a)return null;if(i){if(!i.some(Array.isArray))return i;const o=i[e.length];if(o)return o}return e.map((o,s)=>a(n(s/e.length)))}function vY(t){const{palette:e="ylGnBu",offset:n}=t,r=ao(e),i=Nt[`interpolate${r}`];if(!i)throw new Error(`Unknown palette: ${r}`);return{interpolator:n?a=>i(n(a)):i}}function gY(t,e){const{interpolate:n=_l,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}function yY(t,e,n,r){if(r.padding!==void 0||r.paddingInner!==void 0||r.paddingOuter!==void 0)return Object.assign(Object.assign({},r),{unknown:NaN});const i=mY(t,e,n),{paddingInner:a=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:a,paddingOuter:o,padding:i,unknown:NaN})}function mY(t,e,n){return e==="enterDelay"||e==="enterDuration"||e==="size"?0:t==="band"?XO(n)?0:.1:t==="point"?.5:0}function Kv(t,e){return e||(SY(t)?"point":"ordinal")}function $w(t,e,n){return n||(t!=="color"||e?"linear":"sequential")}function Vw(t,e){if(t.length===0)return t;const{domainMin:n,domainMax:r}=e,[i,a]=t;return[n!=null?n:i,r!=null?r:a]}function bY(t,e){const{zero:n=!1}=e;let r=1/0,i=-1/0;for(const a of t)for(const o of a)In(o)&&(r=Math.min(r,+o),i=Math.max(i,+o));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}function Xw(t){return Array.from(new Set(t.flat()))}function xY(t){return Xw(t).sort()}function _Y(t){let e=1/0,n=-1/0;for(const r of t)for(const i of r)In(i)&&(e=Math.min(e,+i),n=Math.max(n,+i));return e===1/0?[]:[e<0?-n:e,n]}function OY(t,e){return t==="enterDelay"?[0,1e3]:t=="enterDuration"?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:t==="color"?[eB(e),C_(e)]:t==="opacity"?[0,1]:t==="size"?[1,10]:[0,1]}function Uw(t){return Qv(t,e=>{const n=typeof e;return n==="string"||n==="boolean"})}function qw(t){return Qv(t,e=>e instanceof Date)}function wY(t){return Qv(t,cl)}function Qv(t,e){for(const n of t)if(n.some(e))return!0;return!1}function SY(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")}function MY(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t==="enterDelay"||t==="enterDuration"||t==="updateDelay"||t==="updateDuration"||t==="exitDelay"||t==="exitDuration"}function EY(t){if(!t||!t.type)return!1;if(typeof t.type=="function")return!0;const{type:e,domain:n,range:r,interpolator:i}=t,a=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(e)&&a&&o||["sequential"].includes(e)&&a&&(o||i)||["constant","identity"].includes(e)&&o)}const AY={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},TY={threshold:"threshold",quantize:"quantize",quantile:"quantile"},PY={ordinal:"ordinal",band:"band",point:"point"},CY={constant:"constant"};var po=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iu!==null),s=[],c=GY(e,t,n);if(s.push(...c),i){const{props:u}=a("title"),{defaultPosition:f,defaultOrientation:d,defaultOrder:h,defaultSize:p,defaultCrossPadding:v}=u,g=typeof i=="string"?{title:i}:i;s.push(Object.assign({type:"title",position:f,orientation:d,order:h,crossPadding:v[0],defaultSize:p},g))}return jY(o,r).forEach(([u,f])=>{const{props:d}=a(u),{defaultPosition:h,defaultPlane:p="xy",defaultOrientation:v,defaultSize:g,defaultOrder:y,defaultLength:m,defaultPadding:b=[0,0],defaultCrossPadding:_=[0,0]}=d,O=Dt({},...f),{guide:w,field:M}=O,E=Array.isArray(w)?w:[w];for(const A of E){const[P,C]=FY(u,h,v,A,f,o,r);if(!P&&!C)continue;const j=P==="left"||P==="right",N=j?b[1]:b[0],k=j?_[1]:_[0],{size:R,order:D=y,length:B=m,padding:F=N,crossPadding:z=k}=A;s.push(Object.assign(Object.assign({title:M},A),{defaultSize:g,length:B,position:P,plane:p,orientation:C,padding:F,order:D,crossPadding:z,size:R,type:u,scales:f}))}}),s}function Zw(t,e,n,r,i){const[a]=Xn("component",r),{scaleInstances:o,scale:s,bbox:c}=t,l=po(t,["scaleInstances","scale","bbox"]),u={bbox:c,library:r};return a(l)({coordinate:e,library:r,markState:i,scales:o,theme:n,value:u,scale:s})}function RY(t){return t.map(e=>{const n=Dt(e,e.style);return delete n.style,n})}function Kht(t){return t.flatMap(e=>e.type=="group"?e.children:e)}function Kw(t,e){const n=["left","right","bottom","top"];return Gf(t,({type:a,position:o,group:s})=>n.includes(o)?s===void 0?a.startsWith("legend")?`legend-${o}`:Symbol("independent"):s==="independent"?Symbol("independent"):s:Symbol("independent")).flatMap(([,a])=>{if(a.length===1)return a[0];if(e!==void 0){const u=a.filter(v=>v.length!==void 0).map(v=>v.length),f=Di(u);if(f>e)return a.forEach(v=>v.group=Symbol("independent")),a;const d=e-f,h=a.length-u.length,p=d/h;a.forEach(v=>{v.length===void 0&&(v.length=p)})}const o=Mn(a,u=>u.size),s=Mn(a,u=>u.order),c=Mn(a,u=>u.crossPadding),l=a[0].position;return{type:"group",size:o,order:s,position:l,children:a,crossPadding:c}})}function LY(t,e){const n=["shape","size","color","opacity"],r=(d,h)=>d==="constant"&&h==="size",i=t.filter(({type:d,name:h})=>typeof d=="string"&&n.includes(h)&&!r(d,h)),a=i.filter(({type:d})=>d==="constant"),o=i.filter(({type:d})=>d!=="constant"),c=Gf(o,d=>d.field?d.field:Symbol("independent")).map(([d,h])=>[d,[...h,...a]]).filter(([,d])=>d.some(h=>h.type!=="constant")),l=new Map(c);if(l.size===0)return[];const u=d=>d.sort(([h],[p])=>h.localeCompare(p));return Array.from(l).map(([,d])=>{const p=rB(d).sort((v,g)=>g.length-v.length).map(v=>({combination:v,option:v.map(g=>[g.name,NY(g)])}));for(const{option:v,combination:g}of p)if(!v.every(y=>y[1]==="constant")&&v.every(y=>y[1]==="discrete"||y[1]==="constant"))return["legendCategory",g];for(const[v,g]of aB)for(const{option:y,combination:m}of p)if(g.some(b=>L_(u(b),u(y))))return[v,m];return null}).filter(In)}function NY(t){const{type:e}=t;return typeof e!="string"?null:e in AY?"continuous":e in PY?"discrete":e in TY?"distribution":e in CY?"constant":null}function IY(t,e){return t.map(n=>{const{name:r}=n;if(RW(e)||XO(e)||ac(e)&&(is(e)||Pl(e)))return null;if(r.startsWith("x"))return is(e)?["axisArc",[n]]:Pl(e)?["axisLinear",[n]]:[ac(e)?"axisY":"axisX",[n]];if(r.startsWith("y"))return is(e)?["axisLinear",[n]]:Pl(e)?["axisArc",[n]]:[ac(e)?"axisX":"axisY",[n]];if(r.startsWith("z"))return["axisZ",[n]];if(r.startsWith("position")){if(IW(e))return["axisRadar",[n]];if(!is(e))return["axisY",[n]]}return null}).filter(In)}function jY(t,e){const n=t.filter(r=>EY(r));return[...LY(n,e),...IY(n,e)]}function Jv(t){const e=Qi(t,"polar");if(e.length){const r=e[e.length-1],{startAngle:i,endAngle:a}=N_(r);return[i,a]}const n=Qi(t,"radial");if(n.length){const r=n[n.length-1],{startAngle:i,endAngle:a}=I_(r);return[i,a]}return[-Math.PI/2,Math.PI/2*3]}function DY(t){const e=/position(\d*)/g.exec(t);return e?+e[1]:null}function BY(t,e,n,r,i){const{name:a}=n[0];if(t==="axisRadar"){const o=r.filter(f=>f.name.startsWith("position")),s=DY(a);if(a===o.slice(-1)[0].name||s===null)return[null,null];const[c,l]=Jv(i);return["center",(l-c)/(o.length-1)*s+c]}if(t==="axisY"&&LW(i))return ac(i)?["center","horizontal"]:["center","vertical"];if(t==="axisLinear"){const[o]=Jv(i);return["center",o]}return t==="axisArc"?e[0]==="inner"?["inner",null]:["outer",null]:is(i)?["center",null]:Pl(i)?["center",null]:t==="axisX"&&NW(i)||t==="axisX"&&jW(i)?["top",null]:e}function FY(t,e,n,r,i,a,o){const[s]=Jv(o),c=[r.position||e,s!=null?s:n];return typeof t=="string"&&t.startsWith("axis")?BY(t,c,i,a,o):typeof t=="string"&&t.startsWith("legend")&&is(o)&&r.position==="center"?["center","vertical"]:c}function zY(t,e,n=[]){return t==="x"?ac(n)?`${e}Y`:`${e}X`:t==="y"?ac(n)?`${e}X`:`${e}Y`:null}function GY(t,e,n){const[,r]=Xn("component",n),{coordinates:i}=t;function a(o,s,c,l){const u=zY(s,o,i);if(!l||!u)return;const{props:f}=r(u),{defaultPosition:d,defaultSize:h,defaultOrder:p,defaultCrossPadding:[v]}=f;return Object.assign(Object.assign({position:d,defaultSize:h,order:p,type:u,crossPadding:v},l),{scales:[c]})}return e.filter(o=>o.slider||o.scrollbar).flatMap(o=>{const{slider:s,scrollbar:c,name:l}=o;return[a("slider",l,o,s),a("scrollbar",l,o,c)]}).filter(o=>!!o)}function Qw(t,e,n,r,i,a){const{type:o}=t;if(!["left","right","bottom","top"].includes(r)||typeof o!="string")return;const c=o;return(()=>c.startsWith("axis")?VY:c.startsWith("group")?WY:c.startsWith("legendContinuous")?XY:c==="legendCategory"?UY:c.startsWith("slider")?$Y:c==="title"?YY:c.startsWith("scrollbar")?HY:()=>{})()(t,e,n,r,i,a)}function WY(t,e,n,r,i,a){const{children:o}=t,s=Mn(o,l=>l.crossPadding);o.forEach(l=>l.crossPadding=s),o.forEach(l=>Qw(l,e,n,r,i,a));const c=Mn(o,l=>l.size);t.size=c,o.forEach(l=>l.size=c)}function HY(t,e,n,r,i,a){const{trackSize:o=6}=Dt({},i.scrollbar,t);t.size=o}function YY(t,e,n,r,i,a){const o=Dt({},i.title,t),{title:s,subtitle:c,spacing:l=0}=o,u=po(o,["title","subtitle","spacing"]);if(s){const f=fe(u,"title"),d=Pd(s,f);t.size=d.height}if(c){const f=fe(u,"subtitle"),d=Pd(c,f);t.size+=l+d.height}}function $Y(t,e,n,r,i,a){const o=()=>{const{slider:u}=i;return Dt({},u,t)},{trackSize:s,handleIconSize:c}=o(),l=Math.max(s,c*2.4);t.size=l}function VY(t,e,n,r,i,a){t.transform=t.transform||[{type:"hide"}];const o=r==="left"||r==="right",s=Jw(t,r,i),{tickLength:c=0,labelSpacing:l=0,titleSpacing:u=0,labelAutoRotate:f}=s,d=po(s,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),h=Ed(t,a),p=Ad(d,h),v=c+l;if(p&&p.length){const y=Mn(p,b=>b.width),m=Mn(p,b=>b.height);if(o)t.size=y+v;else{const{tickFilter:b,labelTransform:_}=t;KY(h,p,e,n,b)&&!_&&f!==!1&&f!==null?(t.labelTransform="rotate(90)",t.size=y+v):t.size=m+v}}else t.size=c;const g=Td(d);g&&(o?t.size+=u+g.width:t.size+=u+g.height)}function XY(t,e,n,r,i,a){const s=(()=>{const{legendContinuous:_}=i;return Dt({},_,t)})(),{labelSpacing:c=0,titleSpacing:l=0}=s,u=po(s,["labelSpacing","titleSpacing"]),f=r==="left"||r==="right",d=fe(u,"ribbon"),{size:h}=d,p=fe(u,"handleIcon"),{size:v}=p,g=Math.max(h,v*2.4);t.size=g;const y=Ed(t,a),m=Ad(u,y);if(m){const _=f?"width":"height",O=Mn(m,w=>w[_]);t.size+=O+c}const b=Td(u);b&&(f?t.size=Math.max(t.size,b.width):t.size+=l+b.height)}function UY(t,e,n,r,i,a){const s=(()=>{const{legendCategory:k}=i,{title:R}=t,[D,B]=Array.isArray(R)?[R,void 0]:[void 0,R];return Dt({title:D},k,Object.assign(Object.assign({},t),{title:B}))})(),{itemSpacing:c,itemMarkerSize:l,titleSpacing:u,rowPadding:f,colPadding:d,maxCols:h=1/0,maxRows:p=1/0}=s,v=po(s,["itemSpacing","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:g,length:y}=t,m=k=>Math.min(k,p),b=k=>Math.min(k,h),_=r==="left"||r==="right",O=y===void 0?e+(_?0:n[0]+n[1]):y,w=Td(v),M=Ed(t,a),E=Ad(v,M,"itemLabel"),A=Math.max(E[0].height,l)+f,P=(k,R=0)=>l+k+c[0]+R;_?(()=>{let k=-1/0,R=0,D=1,B=0,F=-1/0,z=-1/0;const Y=w?w.height:0,q=O-Y;for(const{width:rt}of E){const st=P(rt);k=Math.max(k,st),R+A>q?(D++,F=Math.max(F,B),z=Math.max(z,R),B=1,R=A):(R+=A,B++)}D<=1&&(F=B,z=R),t.size=k*b(D),t.length=z+Y,Dt(t,{cols:b(D),gridRow:F})})():typeof g=="number"?(()=>{const k=Math.ceil(E.length/g),R=Mn(E,D=>P(D.width))*g;t.size=A*m(k)-f,t.length=Math.min(R,O)})():(()=>{let k=1,R=0,D=-1/0;for(const{width:B}of E){const F=P(B,d);R+F>O?(D=Math.max(D,R),R=F,k++):R+=F}k===1&&(D=R),t.size=A*m(k)-f,t.length=D})(),w&&(_?t.size=Math.max(t.size,w.width):t.size+=u+w.height)}function Ed(t,e){const[n]=Xn("scale",e),{scales:r,tickCount:i,tickMethod:a}=t,o=r.find(s=>s.type!=="constant"&&s.type!=="identity");return i!==void 0&&(o.tickCount=i),a!==void 0&&(o.tickMethod=a),n(o)}function Ad(t,e,n="label"){const{labelFormatter:r,tickFilter:i,label:a=!0}=t,o=po(t,["labelFormatter","tickFilter","label"]);if(!a)return null;const s=qY(e,r,i),c=fe(o,n),l=s.map((d,h)=>Object.fromEntries(Object.entries(c).map(([p,v])=>[p,typeof v=="function"?v(d,h):v]))),u=s.map((d,h)=>{const p=l[h];return Pd(d,p)});if(!l.some(d=>d.transform)){const d=s.map((h,p)=>p);t.indexBBox=new Map(d.map(h=>[h,[s[h],u[h]]]))}return u}function Td(t){const e=l=>l===!1||l===null,{title:n}=t,r=po(t,["title"]);if(e(n)||n===void 0)return null;const i=fe(r,"title"),{direction:a,transform:o}=i,s=Array.isArray(n)?n.join(","):n;return typeof s!="string"?null:Pd(s,Object.assign(Object.assign({},i),{transform:o||(a==="vertical"?"rotate(-90)":"")}))}function Jw(t,e,n){const{title:r}=t,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${J0(e)}`]:s}=n;return Dt({title:i},o,s,Object.assign(Object.assign({},t),{title:a}))}function tS(t,e){const n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function qY(t,e,n){const i=tS(t,n).map(o=>typeof o=="number"?$f(o):o),a=e?typeof e=="string"?oo(e):e:t.getFormatter?t.getFormatter():o=>`${o}`;return i.map(a)}function ZY(t,e){return t.getBandWidth?t.getBandWidth(e)/2:0}function KY(t,e,n,r,i){if(Di(e,h=>h.width)>n)return!0;const o=t.clone();o.update({range:[0,n]});const s=tS(t,i),c=s.map(h=>o.map(h)+ZY(o,h)),l=s.map((h,p)=>p),u=-r[0],f=n+r[1],d=(h,p)=>{const{width:v}=p;return[h-v/2,h+v/2]};for(let h=0;hf)return!0;const y=c[h+1];if(y){const[m]=d(y,e[h+1]);if(g>m)return!0}}return!1}function Pd(t,e){const n=QY(t),{filter:r}=e,i=po(e,["filter"]);return n.attr(Object.assign(Object.assign({},i),{visibility:"none"})),n.getBBox()}function QY(t){return t instanceof $r?t:new Zi({style:{text:`${t}`}})}function Ei(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function fr(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function JY(t){const e=t.find(({type:n})=>n==="axisZ");if(e){const n=t.find(({type:i})=>i==="axisX");n.plane="xy";const r=t.find(({type:i})=>i==="axisY");r.plane="xy",e.plane="yz",e.origin=[n.bbox.x,n.bbox.y,0],e.eulerAngles=[0,-90,0],e.bbox.x=n.bbox.x,e.bbox.y=n.bbox.y,t.push(Object.assign(Object.assign({},n),{plane:"xz",showLabel:!1,showTitle:!1,origin:[n.bbox.x,n.bbox.y,0],eulerAngles:[-90,0,0]})),t.push(Object.assign(Object.assign({},r),{plane:"yz",showLabel:!1,showTitle:!1,origin:[r.bbox.x+r.bbox.width,r.bbox.y,0],eulerAngles:[0,-90,0]})),t.push(Object.assign(Object.assign({},e),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]}))}}function t$(t,e,n,r){var i,a;const{width:o,height:s,depth:c,x:l=0,y:u=0,z:f=0,inset:d=(i=n.inset)!==null&&i!==void 0?i:0,insetLeft:h=d,insetTop:p=d,insetBottom:v=d,insetRight:g=d,margin:y=(a=n.margin)!==null&&a!==void 0?a:0,marginLeft:m=y,marginBottom:b=y,marginTop:_=y,marginRight:O=y,padding:w=n.padding,paddingBottom:M=w,paddingLeft:E=w,paddingRight:A=w,paddingTop:P=w}=n$(t,e,n,r),C=1/4,j=(ue,we,Ue,ze,Je)=>{const{marks:hn}=e;if(hn.length===0)return[ze,Je];if(ue-ze-Je-ue*C>0)return[ze,Je];const mr=ue*(1-C);return[we==="auto"?mr*ze/(ze+Je):ze,Ue==="auto"?mr*Je/(ze+Je):Je]},N=ue=>ue==="auto"?20:ue!=null?ue:20,k=N(P),R=N(M),D=eS(t,s-k-R,[k+_,R+b],["left","right"],e,n,r),{paddingLeft:B,paddingRight:F}=D,z=o-m-O,[Y,q]=j(z,E,A,B,F),rt=z-Y-q,st=eS(t,rt,[Y+m,q+O],["bottom","top"],e,n,r),{paddingTop:At,paddingBottom:Yt}=st,qt=s-b-_,[Rt,Lt]=j(qt,M,P,Yt,At),le=qt-Rt-Lt;return{width:o,height:s,depth:c,insetLeft:h,insetTop:p,insetBottom:v,insetRight:g,innerWidth:rt,innerHeight:le,paddingLeft:Y,paddingRight:q,paddingTop:Lt,paddingBottom:Rt,marginLeft:m,marginBottom:b,marginTop:_,marginRight:O,x:l,y:u,z:f}}function e$(t){const{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:s=r,margin:c=16,marginLeft:l=c,marginRight:u=c,marginTop:f=c,marginBottom:d=c,inset:h=0,insetLeft:p=h,insetRight:v=h,insetTop:g=h,insetBottom:y=h}=t,m=O=>O==="auto"?20:O,b=n-m(i)-m(a)-l-u-p-v,_=e-m(o)-m(s)-f-d-g-y;return{width:b,height:_}}function n$(t,e,n,r){const{coordinates:i}=e;if(!is(i)&&!Pl(i))return e;const a=t.filter(y=>typeof y.type=="string"&&y.type.startsWith("axis"));if(a.length===0)return e;const o=a.map(y=>{const m=y.type==="axisArc"?"arc":"linear";return Jw(y,m,n)}),s=Mn(o,y=>{var m;return(m=y.labelSpacing)!==null&&m!==void 0?m:0}),c=a.flatMap((y,m)=>{const b=o[m],_=Ed(y,r);return Ad(b,_)}).filter(In),l=Mn(c,y=>y.height)+s,u=a.flatMap((y,m)=>{const b=o[m];return Td(b)}).filter(y=>y!==null),f=u.length===0?0:Mn(u,y=>y.height),{inset:d=l,insetLeft:h=d,insetBottom:p=d,insetTop:v=d+f,insetRight:g=d}=e;return Object.assign(Object.assign({},e),{insetLeft:h,insetBottom:p,insetTop:v,insetRight:g})}function eS(t,e,n,r,i,a,o){const s=Kn(t,p=>p.position),{padding:c=a.padding,paddingLeft:l=c,paddingRight:u=c,paddingBottom:f=c,paddingTop:d=c}=i,h={paddingBottom:f,paddingLeft:l,paddingTop:d,paddingRight:u};for(const p of r){const v=`padding${J0(EO(p))}`,g=s.get(p)||[],y=h[v],m=A=>{A.size===void 0&&(A.size=A.defaultSize)},b=A=>{A.type==="group"?(A.children.forEach(m),A.size=Mn(A.children,P=>P.size)):A.size=A.defaultSize},_=A=>{A.size||(y!=="auto"?b(A):(Qw(A,e,n,p,a,o),m(A)))},O=A=>{A.type.startsWith("axis")&&A.labelAutoHide===void 0&&(A.labelAutoHide=!0)},w=p==="bottom"||p==="top",M=Ei(g,A=>A.order),E=g.filter(A=>A.type.startsWith("axis")&&A.order==M);if(E.length&&(E[0].crossPadding=0),typeof y=="number")g.forEach(m),g.forEach(O);else if(g.length===0)h[v]=0;else{const A=w?e+n[0]+n[1]:e,P=Kw(g,A);P.forEach(_);const C=P.reduce((j,{size:N,crossPadding:k=12})=>j+N+k,0);h[v]=C}}return h}function r$(t,e,n){const r=Kn(t,w=>`${w.plane||"xy"}-${w.position}`),{paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:c,marginTop:l,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:v,insetRight:g,insetTop:y,height:m,width:b,depth:_}=n,O={xy:tg({width:b,height:m,paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:c,marginTop:l,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:v,insetRight:g,insetTop:y}),yz:tg({width:_,height:m,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:_,innerHeight:m,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:tg({width:b,height:_,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:_,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(const[w,M]of r.entries()){const[E,A]=w.split("-"),P=O[E][A],[C,j]=k_(M,N=>typeof N.type!="string"?!1:!!(A==="center"||N.type.startsWith("axis")&&["inner","outer"].includes(A)));C.length&&i$(C,e,P,A),j.length&&h$(M,e,P)}}function tg({width:t,height:e,paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:a,marginLeft:o,marginTop:s,marginBottom:c,marginRight:l,innerHeight:u,innerWidth:f,insetBottom:d,insetLeft:h,insetRight:p,insetTop:v}){const g=n+o,y=i+s,m=r+l,b=a+c,_=t-o-l,O=[g+h,y+v,f-h-p,u-v-d,"center",null,null];return{top:[g,0,f,y,"vertical",!0,fr,o,_],right:[t-m,y,m,u,"horizontal",!1,fr],bottom:[g,e-b,f,b,"vertical",!1,fr,o,_],left:[0,y,g,u,"horizontal",!0,fr],"top-left":[g,0,f,y,"vertical",!0,fr],"top-right":[g,0,f,y,"vertical",!0,fr],"bottom-left":[g,e-b,f,b,"vertical",!1,fr],"bottom-right":[g,e-b,f,b,"vertical",!1,fr],center:O,inner:O,outer:O}}function i$(t,e,n,r){const[i,a]=k_(t,o=>!!(typeof o.type=="string"&&o.type.startsWith("axis")));a$(i,e,n,r),p$(a,e,n)}function a$(t,e,n,r){r==="center"?oB(e)?d$(t,e,n,r):Gn(e)?c$(t,e,n):dl(e)&&l$(t,e,n,t[0].orientation):r==="inner"?o$(t,e,n):r==="outer"&&s$(t,e,n)}function o$(t,e,n){const[r,i,,a]=n,[o,s]=e.getCenter(),[c]=Vf(e),l=a/2,u=c*l,f=o-u,d=s-u;for(let h=0;hu%2===0).map(l=>l+r);for(let l=0;lu%2===1).map(l=>l+i);for(let l=0;ll==null?void 0:l(A.order,P.order));const _=A=>A==="title"||A==="group"||A.startsWith("legend"),O=(A,P,C)=>C===void 0?P:_(A)?C:P,w=(A,P,C)=>C===void 0?P:_(A)?C:P,M=c?h+y:h;for(let A=0,P=M;AA.type==="group");for(const A of E){const{bbox:P,children:C}=A,j=P[m],N=j/C.length,k=C.reduce((z,Y)=>{var q;const rt=(q=Y.layout)===null||q===void 0?void 0:q.justifyContent;return rt||z},"flex-start"),R=C.map((z,Y)=>{const{length:q=N,padding:rt=0}=z;return q+(Y===C.length-1?0:rt)}),D=Di(R),B=j-D,F=k==="flex-start"?0:k==="center"?B/2:B;for(let z=0,Y=P[p]+F;zE$(o)?o:{type:A$(i,o),value:o});return[t,Object.assign(Object.assign({},e),{encode:a})]}function b$(t,e,n){const{encode:r}=e;if(!r)return[t,e];const i=so(r,(a,o)=>{const{type:s}=a;return s!=="constant"||MY(o)?a:Object.assign(Object.assign({},a),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function x$(t,e,n){const{encode:r,data:i}=e;if(!r)return[t,e];const{library:a}=n,o=R$(a),s=so(r,c=>o(i,c));return[t,Object.assign(Object.assign({},e),{encode:s})]}function _$(t,e,n){const{tooltip:r={}}=e;return ka(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:cl(r)&&nS(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function O$(t,e,n){const{data:r,encode:i,tooltip:a={}}=e;if(ka(a))return[t,e];const o=f=>{if(!f)return f;if(typeof f=="string")return t.map(d=>({name:f,value:r[d][f]}));if(cl(f)){const{field:d,channel:h,color:p,name:v=d,valueFormatter:g=w=>w}=f,y=typeof g=="string"?oo(g):g,m=h&&i[h],b=m&&i[h].field,_=v||b||h,O=[];for(const w of t){const M=d?r[w][d]:m?i[h].value[w]:null;O[w]={name:_,color:p,value:y(M)}}return O}if(typeof f=="function"){const d=[];for(const h of t){const p=f(r[h],h,r,i);cl(p)?d[h]=p:d[h]={value:p}}return d}return f},{title:s,items:c=[]}=a,l=uc(a,["title","items"]),u=Object.assign({title:o(s),items:Array.isArray(c)?c.map(o):[]},l);return[t,Object.assign(Object.assign({},e),{tooltip:u})]}function w$(t,e,n){const{encode:r}=e,i=uc(e,["encode"]);if(!r)return[t,e];const a=Object.entries(r),o=a.filter(([,c])=>{const{value:l}=c;return Array.isArray(l[0])}).flatMap(([c,l])=>{const u=[[c,new Array(t.length).fill(void 0)]],{value:f}=l,d=uc(l,["value"]);for(let h=0;h[h,Object.assign({type:"column",value:p},d)])}),s=Object.fromEntries([...a,...o]);return[t,Object.assign(Object.assign({},i),{encode:s})]}function S$(t,e,n){const{axis:r={},legend:i={},slider:a={},scrollbar:o={}}=e,s=(l,u)=>{if(typeof l=="boolean")return l?{}:null;const f=l[u];return f===void 0||f?f:null},c=typeof r=="object"?Array.from(new Set(["x","y",...Object.keys(r)])):["x","y"];return Dt(e,{scale:Object.assign(Object.assign({},Object.fromEntries(c.map(l=>{const u=s(o,l);return[l,Object.assign({guide:s(r,l),slider:s(a,l),scrollbar:u},u&&{ratio:u.ratio===void 0?.5:u.ratio})]}))),{color:{guide:s(i,"color")},size:{guide:s(i,"size")},shape:{guide:s(i,"shape")},opacity:{guide:s(i,"opacity")}})}),[t,e]}function M$(t,e,n){const{animate:r}=e;return r||r===void 0?[t,e]:(Dt(e,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[t,e])}function E$(t){if(typeof t!="object"||t instanceof Date||t===null)return!1;const{type:e}=t;return In(e)}function A$(t,e){return typeof e=="function"?"transform":typeof e=="string"&&T$(t,e)?"field":"constant"}function T$(t,e){return Array.isArray(t)?t.some(n=>n[e]!==void 0):!1}function P$(t){if((0,xr.Z)(t))return{type:"inline",value:t};if(!t)return{type:"inline",value:null};if(Array.isArray(t))return{type:"inline",value:t};const{type:e="inline"}=t,n=uc(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}var iS=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},C$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iIn(h)),h=>h.map(([p,v])=>Object.assign({name:p},v)),([h])=>{var p;const v=(p=/([^\d]+)\d*$/.exec(h))===null||p===void 0?void 0:p[1],g=u.find(y=>y.name===v);return g!=null&&g.independent?h:v}),d=u.filter(h=>{const{name:p,required:v}=h;if(f.find(([g])=>g===p))return!0;if(v)throw new Error(`Missing encoding for channel: ${p}.`);return!1}).flatMap(h=>{const{name:p,scale:v,scaleKey:g,range:y,quantitative:m,ordinal:b}=h;return f.filter(([O])=>O.startsWith(p)).map(([O,w],M)=>{const E=w.some(B=>B.visual),A=w.some(B=>B.constant),P=s[O]||{},{independent:C=!1,key:j=g||O,type:N=A?"constant":E?"identity":v}=P,k=C$(P,["independent","key","type"]),R=N==="constant",D=R?void 0:y;return{name:O,values:w,scaleKey:C||R?Symbol("independent"):j,scale:Object.assign(Object.assign({type:N,range:D},k),{quantitative:m,ordinal:b})}})});return[a,Object.assign(Object.assign({},e),{index:i,channels:d,tooltip:l})]})}function R$(t){const[e]=Xn("encode",t);return(n,r)=>r===void 0||n===void 0?null:Object.assign(Object.assign({},r),{type:"column",value:e(r)(n),field:N$(r)})}function L$(t,e,n){return iS(this,void 0,void 0,function*(){const{library:r}=n,[i]=Xn("transform",r),{preInference:a=[],postInference:o=[]}=e,{transform:s=[]}=t,c=[g$,rS,y$,m$,b$,x$,w$,M$,S$,_$,...a.map(i),...s.map(i),...o.map(i),O$];let l=[],u=t;for(const f of c)[l,u]=yield f(l,u,n);return[l,u]})}function N$(t){const{type:e,value:n}=t;return e==="field"&&typeof n=="string"?n:null}var Da=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},vo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var R;return(R=/mark\.(.*)/.exec(k))===null||R===void 0?void 0:R[1]}).filter(In)),l=new Set(Object.keys(n).map(k=>{var R;return(R=/component\.(.*)/.exec(k))===null||R===void 0?void 0:R[1]}).filter(In)),u=k=>{const{type:R}=k;if(typeof R=="function"){const{props:D={}}=R,{composite:B=!0}=D;if(B)return"mark"}return typeof R!="string"?R:c.has(R)||l.has(R)?"mark":R},f=k=>u(k)==="mark",d=k=>u(k)==="standardView",h=k=>{const{type:R}=k;return typeof R!="string"?!1:!!l.has(R)},p=k=>{if(d(k))return[k];const R=u(k);return o({type:R,static:h(k)})(k)},v=[],g=new Map,y=new Map,m=[t],b=[];for(;m.length;){const k=m.shift();if(d(k)){const R=y.get(k),[D,B]=R?cS(R,k,n):yield oS(k,n);g.set(D,k),v.push(D);const F=B.flatMap(p).map(z=>VO(z,n));if(m.push(...F),F.every(d)){const z=yield Promise.all(F.map(Y=>sS(Y,n)));iY(z);for(let Y=0;Yk.key).join(k=>k.append("g").attr("className",$0).attr("id",R=>R.key).call(aS).each(function(R,D,B){ig(R,je(B),w,n,r),_.set(R,B)}),k=>k.call(aS).each(function(R,D,B){ig(R,je(B),w,n,r),O.set(R,B)}),k=>k.each(function(R,D,B){const F=B.nameInteraction.values();for(const z of F)z.destroy()}).remove());const M=k=>Array.from(k.entries()).map(([R,D])=>{const B=new Map,F=(q,rt=st=>st)=>B.set(q,rt),z=g.get(R),Y=j$(je(D),z,n,r);return{view:R,container:D,options:z,setState:F,update:q=>Da(this,void 0,void 0,function*(){const st=Q0(Array.from(B.values()))(z);return yield Y(st,q)})}}),E=M(_);for(const k of E){const{options:R}=k,D=new Map;k.container.nameInteraction=D;for(const B of Cd(R)){const[F,z]=B;if(z){const q=rg(k.view,F,z,s)(k,E,r.emitter);D.set(F,{destroy:q})}}}const A=M(O);for(const k of A){const{options:R,container:D}=k,B=D.nameInteraction;for(const F of Cd(R)){const[z,Y]=F,q=B.get(z);if(q&&((i=q.destroy)===null||i===void 0||i.call(q)),Y){const st=rg(k.view,z,Y,s)(k,A,r.emitter);B.set(z,{destroy:st})}}}const{width:P,height:C}=t,j=[];for(const k of b){const R=new Promise(D=>Da(this,void 0,void 0,function*(){for(const B of k){const F=Object.assign({width:P,height:C},B);yield ng(F,e,n,r)}D()}));j.push(R)}r.views=v,(a=r.animations)===null||a===void 0||a.forEach(k=>k==null?void 0:k.cancel()),r.animations=w,r.emitter.emit(Sn.AFTER_PAINT);const N=w.filter(In).map(K$).map(k=>k.finished);return Promise.all([...N,...j])})}function aS(t){t.style("transform",e=>`translate(${e.layout.x}, ${e.layout.y})`)}function I$(t){const[,e]=Xn("interaction",t);return n=>{const[r,i]=n;try{return[r,e(r)]}catch(a){return[r,i.type]}}}function j$(t,e,n,r){const i=I$(n),a=c=>c[1]&&c[1].props&&c[1].props.reapplyWhenUpdate,s=Cd(e).map(i).filter(a).map(c=>c[0]);return(c,l)=>Da(this,void 0,void 0,function*(){const u=[],[f,d]=yield oS(c,n);ig(f,t,u,n,r);for(const h of s.filter(p=>p!==l))D$(h,t,c,f,n,r);for(const h of d)ng(h,t,n,r);return{options:c,view:f}})}function D$(t,e,n,r,i,a){var o;const[s]=Xn("interaction",i),l=e.node().nameInteraction,u=Cd(n).find(([v])=>v===t),f=l.get(t);if(!f||((o=f.destroy)===null||o===void 0||o.call(f),!u[1]))return;const d=rg(r,t,u[1],s),h={options:n,view:r,container:e.node(),update:v=>Promise.resolve(v)},p=d(h,[],a.emitter);l.set(t,{destroy:p})}function oS(t,e){return Da(this,void 0,void 0,function*(){const n=yield F$(t,e),r=B$(n);t.interaction=r.interaction,t.coordinate=r.coordinate,t.marks=[...r.marks,...r.components];const i=VO(r,e),a=yield sS(i,e);return cS(a,i,e)})}function B$(t){const{coordinate:e={},interaction:n={},style:r={},marks:i}=t,a=vo(t,["coordinate","interaction","style","marks"]),o=i.map(d=>d.coordinate||{}),s=i.map(d=>d.interaction||{}),c=i.map(d=>d.viewStyle||{}),l=[...o,e].reduceRight((d,h)=>Dt(d,h),{}),u=[n,...s].reduce((d,h)=>Dt(d,h),{}),f=[...c,r].reduce((d,h)=>Dt(d,h),{});return Object.assign(Object.assign({},a),{marks:i,coordinate:l,interaction:u,style:f})}function F$(t,e){return Da(this,void 0,void 0,function*(){const[n,r]=Xn("mark",e),i=new Set(Object.keys(e).map(d=>{var h;return(h=/component\.(.*)/.exec(d))===null||h===void 0?void 0:h[1]}).filter(In)),{marks:a}=t,o=[],s=[],c=[...a],{width:l,height:u}=e$(t),f={options:t,width:l,height:u};for(;c.length;){const[d]=c.splice(0,1),h=yield dS(d,e),{type:p=$s("G2Mark type is required."),key:v}=h;if(i.has(p))s.push(h);else{const{props:g={}}=r(p),{composite:y=!0}=g;if(!y)o.push(h);else{const{data:m}=h,b=Object.assign(Object.assign({},h),{data:m&&(Array.isArray(m)?m:m.value)}),_=yield n(b,f),O=Array.isArray(_)?_:[_];c.unshift(...O.map((w,M)=>Object.assign(Object.assign({},w),{key:`${v}-${M}`})))}}}return Object.assign(Object.assign({},t),{marks:o,components:s})})}function sS(t,e){return Da(this,void 0,void 0,function*(){const[n]=Xn("theme",e),[,r]=Xn("mark",e),{theme:i,marks:a,coordinates:o=[]}=t,s=n(fS(i)),c=new Map;for(const u of a){const{type:f}=u,{props:d={}}=r(f),h=yield k$(u,d,e);if(h){const[p,v]=h;c.set(p,v)}}const l=Kn(Array.from(c.values()).flatMap(u=>u.channels),({scaleKey:u})=>u);for(const u of l.values()){const f=u.reduce((b,{scale:_})=>Dt(b,_),{}),{scaleKey:d}=u[0],{values:h}=u[0],p=Array.from(new Set(h.map(b=>b.field).filter(In))),v=Dt({guide:{title:p.length===0?void 0:p},field:p[0]},f),{name:g}=u[0],y=u.flatMap(({values:b})=>b.map(_=>_.value)),m=Object.assign(Object.assign({},tY(g,y,v,o,s,e)),{key:d});u.forEach(b=>b.scale=m)}return c})}function rg(t,e,n,r){const i=t.theme,a=typeof e=="string"?i[e]||{}:{};return r(Dt(a,Object.assign({type:e},n)))}function cS(t,e,n){const[r]=Xn("mark",n),[i]=Xn("theme",n),[a]=Xn("labelTransform",n),{key:o,frame:s=!1,theme:c,clip:l,style:u={},labelTransform:f=[]}=e,d=i(fS(c)),h=Array.from(t.values()),p=nY(h,e),v=RY(kY(eV(Array.from(p),h,t),e,n)),g=t$(v,e,d,n),y=kW(g,e,n),m=s?Dt({mainLineWidth:1,mainStroke:"#000"},u):u;r$(Kw(v),y,g),JY(v);const b={};for(const w of v){const{scales:M=[]}=w,E=[];for(const A of M){const{name:P}=A,C=zw(A,n);E.push(C),Fw(b,{[P]:C})}w.scaleInstances=E}const _=[];for(const[w,M]of t.entries()){const{children:E,dataDomain:A,modifier:P,key:C}=w,{index:j,channels:N,tooltip:k}=M,R=Object.fromEntries(N.map(({name:Lt,scale:le})=>[Lt,le])),D=so(R,Lt=>zw(Lt,n));Fw(b,D);const B=eY(N,D),F=r(w),[z,Y,q]=W$(F(j,D,B,y)),rt=A||z.length,st=P?P(Y,rt,g):[],At=Lt=>{var le,ue;return(ue=(le=k.title)===null||le===void 0?void 0:le[Lt])===null||ue===void 0?void 0:ue.value},Yt=Lt=>k.items.map(le=>le[Lt]),qt=z.map((Lt,le)=>{const ue=Object.assign({points:Y[le],transform:st[le],index:Lt,markKey:C,viewKey:o},k&&{title:At(Lt),items:Yt(Lt)});for(const[we,Ue]of Object.entries(B))ue[we]=Ue[Lt],q&&(ue[`series${ao(we)}`]=q[le].map(ze=>Ue[ze]));return q&&(ue.seriesIndex=q[le]),q&&k&&(ue.seriesItems=q[le].map(we=>Yt(we)),ue.seriesTitle=q[le].map(we=>At(we))),ue});M.data=qt,M.index=z;const Rt=E==null?void 0:E(qt,D,g);_.push(...Rt||[])}return[{layout:g,theme:d,coordinate:y,markState:t,key:o,clip:l,scale:b,style:m,components:v,labelTransform:Q0(f.map(a))},_]}function ig(t,e,n,r,i){return Da(this,void 0,void 0,function*(){const{components:a,theme:o,layout:s,markState:c,coordinate:l,key:u,style:f,clip:d,scale:h}=t,{x:p,y:v,width:g,height:y}=s,m=vo(s,["x","y","width","height"]),b=["view","plot","main","content"],_=b.map((F,z)=>z),O=["a","margin","padding","inset"],w=b.map(F=>__(Object.assign({},o.view,f),F)),M=O.map(F=>fe(m,F)),E=F=>F.style("x",z=>N[z].x).style("y",z=>N[z].y).style("width",z=>N[z].width).style("height",z=>N[z].height).each(function(z,Y,q){nV(je(q),w[z])});let A=0,P=0,C=g,j=y;const N=_.map(F=>{const z=M[F],{left:Y=0,top:q=0,bottom:rt=0,right:st=0}=z;return A+=Y,P+=q,C-=Y+st,j-=q+rt,{x:A,y:P,width:C,height:j}});e.selectAll(ya(o_)).data(_.filter(F=>In(w[F])),F=>b[F]).join(F=>F.append("rect").attr("className",o_).style("zIndex",-2).call(E),F=>F.call(E),F=>F.remove());const k=V$(c),R=k?{duration:k[1]}:!1;for(const[,F]of Gf(a,z=>`${z.type}-${z.position}`))F.forEach((z,Y)=>z.index=Y);const D=e.selectAll(ya(a_)).data(a,F=>`${F.type}-${F.position}-${F.index}`).join(F=>F.append("g").style("zIndex",({zIndex:z})=>z||-1).attr("className",a_).append(z=>Zw(Dt({animate:R,scale:h},z),l,o,r,c)),F=>F.transition(function(z,Y,q){const{preserve:rt=!1}=z;if(rt)return;const st=Zw(Dt({animate:R,scale:h},z),l,o,r,c),{attributes:At}=st,[Yt]=q.childNodes;return Yt.update(At)})).transitions();n.push(...D.flat().filter(In));const B=e.selectAll(ya(Df)).data([s],()=>u).join(F=>F.append("rect").style("zIndex",0).style("fill","transparent").attr("className",Df).call(hS).call(vS,Array.from(c.keys())).call(gS,d),F=>F.call(vS,Array.from(c.keys())).call(z=>k?tV(z,k):hS(z)).call(gS,d)).transitions();n.push(...B.flat());for(const[F,z]of c.entries()){const{data:Y}=z,{key:q,class:rt,type:st}=F,At=e.select(`#${q}`),Yt=q$(F,z,t,r,i),qt=Z$(F,z,t,r),Rt=Q$(F,z,t,r),Lt=J$(F,z,t,r),le=X$(e,At,rt,"element"),ue=At.selectAll(ya(Ca)).selectFacetAll(le).data(Y,we=>we.key,we=>we.groupKey).join(we=>we.append(Yt).attr("className",Ca).attr("markType",st).transition(function(Ue,ze,Je){return qt(Ue,[Je])}),we=>we.call(Ue=>{const ze=Ue.parent(),Je=G7(hn=>{const[xn,Un]=hn.getBounds().min;return[xn,Un]});Ue.transition(function(hn,xn,Un){U$(Un,ze,Je);const mr=Yt(hn,xn),xi=Rt(hn,[Un],[mr]);return xi!==null||(Un.nodeName===mr.nodeName&&mr.nodeName!=="g"?tv(Un,mr):(Un.parentNode.replaceChild(mr,Un),mr.className=Ca,mr.markType=st,mr.__data__=Un.__data__)),xi}).attr("markType",st).attr("className",Ca)}),we=>we.each(function(Ue,ze,Je){Je.__removed__=!0}).transition(function(Ue,ze,Je){return Lt(Ue,[Je])}).remove(),we=>we.append(Yt).attr("className",Ca).attr("markType",st).transition(function(Ue,ze,Je){const{__fromElements__:hn}=Je,xn=Rt(Ue,hn,[Je]);return new _r(hn,null,Je.parentNode).transition(xn).remove(),xn}),we=>we.transition(function(Ue,ze,Je){const xn=new _r([],Je.__toData__,Je.parentNode).append(Yt).attr("className",Ca).attr("markType",st).nodes();return Rt(Ue,[Je],xn)}).remove()).transitions();n.push(...ue.flat())}z$(t,e,n,r,i)})}function z$(t,e,n,r,i){const[a]=Xn("labelTransform",r),{markState:o,labelTransform:s}=t,c=e.select(ya(Y0)).node(),l=new Map,u=new Map,f=Array.from(o.entries()).flatMap(([v,g])=>{const{labels:y=[],key:m}=v,b=$$(v,g,t,r,i),_=e.select(`#${m}`).selectAll(ya(Ca)).nodes().filter(O=>!O.__removed__);return y.flatMap((O,w)=>{const{transform:M=[]}=O,E=vo(O,["transform"]);return _.flatMap(A=>{const P=G$(E,w,A);return P.forEach(C=>{l.set(C,b),u.set(C,O)}),P})})}),d=je(c).selectAll(ya(V0)).data(f,v=>v.key).join(v=>v.append(g=>l.get(g)(g)).attr("className",V0),v=>v.each(function(g,y,m){const _=l.get(g)(g);tv(m,_)}),v=>v.remove()).nodes(),h=Kn(d,v=>u.get(v.__data__)),{coordinate:p}=t;for(const[v,g]of h){const{transform:y=[]}=v;Q0(y.map(a))(g,p)}s&&s(d,p)}function G$(t,e,n){const{seriesIndex:r,seriesKey:i,points:a,key:o,index:s}=n.__data__,c=Y$(n);if(!r)return[Object.assign(Object.assign({},t),{key:`${o}-${e}`,bounds:c,index:s,points:a,dependentElement:n})];const l=H$(t),u=r.map((f,d)=>Object.assign(Object.assign({},t),{key:`${i[d]}-${e}`,bounds:[a[d]],index:f,points:a,dependentElement:n}));return l?l(u):u}function W$([t,e,n]){if(n)return[t,e,n];const r=[],i=[];for(let a=0;aIn(c)&&In(l))&&(r.push(o),i.push(s))}return[r,i]}function H$(t){const{selector:e}=t;if(!e)return null;if(typeof e=="function")return e;if(e==="first")return n=>[n[0]];if(e==="last")return n=>[n[n.length-1]];throw new Error(`Unknown selector: ${e}`)}function Y$(t){const e=t.cloneNode(),n=t.getAnimations();e.style.visibility="hidden",n.forEach(o=>{const s=o.effect.getKeyframes();e.attr(s[s.length-1])}),t.parentNode.appendChild(e);const r=e.getLocalBounds();e.destroy();const{min:i,max:a}=r;return[i,a]}function $$(t,e,n,r,i){const[a]=Xn("shape",r),{data:o}=t,{data:s,defaultLabelShape:c}=e,l=s.map(h=>h.points),{theme:u,coordinate:f}=n,d=Object.assign(Object.assign({},i),{document:YO(i),theme:u,coordinate:f});return h=>{const{index:p,points:v}=h,g=o[p],{formatter:y=R=>`${R}`,transform:m,style:b,render:_}=h,O=vo(h,["formatter","transform","style","render"]),w=so(Object.assign(Object.assign({},O),b),R=>lS(R,g,p,o)),{shape:M=c,text:E}=w,A=vo(w,["shape","text"]),P=typeof y=="string"?oo(y):y,C=Object.assign(Object.assign({},A),{text:P(E,g,p,o),datum:g}),j=Object.assign({type:`label.${M}`,render:_},A),N=a(j,d),k=uS(u,"label",M,"label");return N(v,C,k,l)}}function lS(t,e,n,r){return typeof t=="function"?t(e,n,r):typeof t!="string"?t:e[t]!==void 0?e[t]:t}function V$(t){let e=-1/0,n=1/0;for(const[r,i]of t){const{animate:a={}}=r,{data:o}=i,{enter:s={},update:c={},exit:l={}}=a,{type:u,duration:f=300,delay:d=0}=c,{type:h,duration:p=300,delay:v=0}=s,{type:g,duration:y=300,delay:m=0}=l;for(const b of o){const{updateType:_=u,updateDuration:O=f,updateDelay:w=d,enterType:M=h,enterDuration:E=p,enterDelay:A=v,exitDuration:P=y,exitDelay:C=m,exitType:j=g}=b;(_===void 0||_)&&(e=Math.max(e,O+w),n=Math.min(n,w)),(j===void 0||j)&&(e=Math.max(e,P+C),n=Math.min(n,C)),(M===void 0||M)&&(e=Math.max(e,E+A),n=Math.min(n,A))}}return e===-1/0?null:[n,e-n]}function X$(t,e,n,r){return t.node().parentElement.findAll(a=>a.style.facet!==void 0&&a.style.facet===n&&a!==e.node()).flatMap(a=>a.getElementsByClassName(r))}function U$(t,e,n){if(!t.__facet__)return;const r=t.parentNode.parentNode,i=e.parentNode,[a,o]=n(r),[s,c]=n(i),l=`translate(${a-s}, ${o-c})`;W7(t,l),e.append(t)}function q$(t,e,n,r,i){const[a]=Xn("shape",r),{data:o}=t,{defaultShape:s,data:c,shape:l}=e,u=c.map(g=>g.points),{theme:f,coordinate:d}=n,{type:h,style:p={}}=t,v=Object.assign(Object.assign({},i),{document:YO(i),coordinate:d,theme:f});return g=>{const{shape:y=s}=p,{shape:m=y,points:b,seriesIndex:_,index:O}=g,w=vo(g,["shape","points","seriesIndex","index"]),M=Object.assign(Object.assign({},w),{index:O}),E=_?_.map(N=>o[N]):o[O],A=_||O,P=so(p,N=>lS(N,E,A,o)),C=l[m]?l[m](P,v):a(Object.assign(Object.assign({},P),{type:pS(t,m)}),v),j=uS(f,h,m,s);return C(b,M,j,u)}}function uS(t,e,n,r){if(typeof e!="string")return;const{color:i}=t,a=t[e]||{},o=a[n]||a[r];return Object.assign({color:i},o)}function ag(t,e,n,r,i){var a,o;const[,s]=Xn("shape",i),[c]=Xn("animation",i),{defaultShape:l,shape:u}=n,{theme:f,coordinate:d}=r,p=`default${ao(t)}Animation`,{[p]:v}=((a=u[l])===null||a===void 0?void 0:a.props)||s(pS(e,l)).props,{[t]:g={}}=f,y=((o=e.animate)===null||o===void 0?void 0:o[t])||{},m={coordinate:d};return(b,_,O)=>{const{[`${t}Type`]:w,[`${t}Delay`]:M,[`${t}Duration`]:E,[`${t}Easing`]:A}=b,P=Object.assign({type:w||v},y);if(!P.type)return null;const N=c(P,m)(_,O,Dt(g,{delay:M,duration:E,easing:A}));return Array.isArray(N)?N:[N]}}function Z$(t,e,n,r){return ag("enter",t,e,n,r)}function K$(t){return t.finished.then(()=>{t.cancel()}),t}function Q$(t,e,n,r){return ag("update",t,e,n,r)}function J$(t,e,n,r){return ag("exit",t,e,n,r)}function fS(t={}){if(typeof t=="string")return{type:t};const{type:e="light"}=t,n=vo(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}function Cd(t){const e={event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},{interaction:n={}}=t;return Object.entries(Dt(e,n)).reverse()}function dS(t,e){return Da(this,void 0,void 0,function*(){const n={library:e},{data:r}=t,i=vo(t,["data"]);if(r==null)return t;const[,{data:a}]=yield rS([],{data:r},n);return Object.assign({data:a},i)})}function hS(t){t.style("x",e=>e.paddingLeft+e.marginLeft).style("y",e=>e.paddingTop+e.marginTop).style("width",e=>e.innerWidth).style("height",e=>e.innerHeight)}function tV(t,e){const[n,r]=e;t.transition(function(i,a,o){const{x:s,y:c,width:l,height:u}=o.style,{paddingLeft:f,paddingTop:d,innerWidth:h,innerHeight:p,marginLeft:v,marginTop:g}=i,y=[{x:s,y:c,width:l,height:u},{x:f+v,y:d+g,width:h,height:p}];return o.animate(y,{delay:n,duration:r,fill:"both"})})}function pS(t,e){const{type:n}=t;return typeof e=="string"?`${n}.${e}`:e}function vS(t,e){const n=a=>a.class!==void 0?`${a.class}`:"";t.nodes().length===0||(t.selectAll(ya(i_)).data(e,a=>a.key).join(a=>a.append("g").attr("className",i_).attr("id",o=>o.key).style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.remove()),t.select(ya(Y0)).node())||t.append("g").attr("className",Y0).style("zIndex",0)}function ya(...t){return t.map(e=>`.${e}`).join("")}function gS(t,e){t.node()&&t.style("clipPath",n=>{if(!e)return null;const{paddingTop:r,paddingLeft:i,marginLeft:a,marginTop:o,innerWidth:s,innerHeight:c}=n;return new Xo({style:{x:i+a,y:r+o,width:s,height:c}})})}function eV(t,e,n){var r;for(const[l]of n.entries())if(l.type==="cell")return t.filter(u=>u.name!=="shape");if(e.length!==1||t.some(l=>l.name==="shape"))return t;const{defaultShape:i}=e[0];if(!["point","line","rect","hollow"].includes(i))return t;const o={point:"point",line:"hyphen",rect:"square",hollow:"hollow"},c={field:((r=t.find(l=>l.name==="color"))===null||r===void 0?void 0:r.field)||null,name:"shape",type:"constant",domain:[],range:[o[i]]};return[...t,c]}function nV(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function yS(t){const e=Dt({},t),n=new Map([[e,null]]),r=new Map([[null,-1]]),i=[e];for(;i.length;){const a=i.shift();if(a.key===void 0){const s=n.get(a),c=r.get(a),l=s===null?"0":`${s.key}-${c}`;a.key=l}const{children:o=[]}=a;if(Array.isArray(o))for(let s=0;s{},r=i=>{throw i}){const{width:i=640,height:a=480,depth:o=0}=t,s=yS(t),{canvas:c=rV(i,a),emitter:l=new Wp,library:u}=e;e.canvas=c,e.emitter=l;const{width:f,height:d}=c.getConfig();(f!==i||d!==a)&&c.resize(i,a),l.emit(Sn.BEFORE_RENDER);const h=je(c.document.documentElement);return c.ready.then(()=>ng(Object.assign(Object.assign({},s),{width:i,height:a,depth:o}),h,u,e)).then(()=>{if(o){const[p,v]=c.document.documentElement.getPosition();c.document.documentElement.setPosition(p,v,-o/2)}c.requestAnimationFrame(()=>{l.emit(Sn.AFTER_RENDER),n==null||n()})}).catch(p=>{r==null||r(p)}),oV(c.getConfig().container)}function Qht(t,e={},n=()=>{},r=i=>{throw i}){var i;const{width:a=640,height:o=480}=t,s=yS(t),{group:c=new Group,emitter:l=new EventEmitter,library:u}=e;c!=null&&c.parentElement||error("renderToMountedElement can't render chart to unmounted group.");const f=select(c);return e.group=c,e.emitter=l,e.canvas=e.canvas||((i=c==null?void 0:c.ownerDocument)===null||i===void 0?void 0:i.defaultView),l.emit(ChartEvent.BEFORE_RENDER),plot(Object.assign(Object.assign({},s),{width:a,height:o}),f,u,e).then(()=>{var d;(d=e.canvas)===null||d===void 0||d.requestAnimationFrame(()=>{l.emit(ChartEvent.AFTER_RENDER),n==null||n()})}).catch(d=>{r==null||r(d)}),c}function mS(t,e={},n=!1){const{canvas:r,emitter:i}=e;r&&(aV(r),n?r.destroy():r.destroyChildren()),i.off()}function aV(t){const e=t.getRoot().querySelectorAll(`.${$0}`);e==null||e.forEach(n=>{const{nameInteraction:r=new Map}=n;(r==null?void 0:r.size)>0&&Array.from(r==null?void 0:r.values()).forEach(i=>{i==null||i.destroy()})})}function oV(t){return typeof t=="string"?document.getElementById(t):t}const fc=t=>t?parseInt(t):0;function sV(t){const e=getComputedStyle(t),n=t.clientWidth||fc(e.width),r=t.clientHeight||fc(e.height),i=fc(e.paddingLeft)+fc(e.paddingRight),a=fc(e.paddingTop)+fc(e.paddingBottom);return{width:n-i,height:r-a}}function Jht(t){const{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:s=r,margin:c=0,marginLeft:l=c,marginRight:u=c,marginTop:f=c,marginBottom:d=c,inset:h=0,insetLeft:p=h,insetRight:v=h,insetTop:g=h,insetBottom:y=h}=t,m=O=>O==="auto"?20:O,b=n-m(i)-m(a)-l-u-p-v,_=e-m(o)-m(s)-f-d-g-y;return{width:b,height:_}}function og(t,e){const n=[t];for(;n.length;){const r=n.shift();e&&e(r);const i=r.children||[];for(const a of i)n.push(a)}}class sg{constructor(e={},n){this.parentNode=null,this.children=[],this.index=0,this.type=n,this.value=e}map(e=n=>n){const n=e(this.value);return this.value=n,this}attr(e,n){return arguments.length===1?this.value[e]:this.map(r=>(r[e]=n,r))}append(e){const n=new e({});return n.children=[],this.push(n),n}push(e){return e.parentNode=this,e.index=this.children.length,this.children.push(e),this}remove(){const e=this.parentNode;if(e){const{children:n}=e,r=n.findIndex(i=>i===this);n.splice(r,1)}return this}getNodeByKey(e){let n=null;return og(this,i=>{e===i.attr("key")&&(n=i)}),n}getNodesByType(e){const n=[];return og(this,i=>{e===i.type&&n.push(i)}),n}getNodeByType(e){let n=null;return og(this,r=>{n||e===r.type&&(n=r)}),n}call(e,...n){return e(this.map(),...n),this}getRoot(){let e=this;for(;e&&e.parentNode;)e=e.parentNode;return e}}var bS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{e=r,t=i}),e,t]}const xV={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function _V(t,e){var n;return(n=t.style[e])!==null&&n!==void 0?n:xV[e]}function lg(t,e,n,r){t.style[e]=n,r&&t.children.forEach(i=>lg(i,e,n,r))}function ug(t){lg(t,"visibility","hidden",!0)}function fg(t){lg(t,"visibility","visible",!0)}function OV(t,e,{key:n=e}){t.prototype[e]=function(r){return arguments.length===0?this.attr(n):this.attr(n,r)}}function wV(t,e,{key:n=e}){t.prototype[e]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,r);const i=[...this.attr(n)||[],r];return this.attr(n,i)}}function SV(t,e,{key:n=e}){t.prototype[e]=function(r,i){if(arguments.length===0)return this.attr(n);if(arguments.length===1&&typeof r!="string")return this.attr(n,r);const a=this.attr(n)||{};return a[r]=arguments.length===1?!0:i,this.attr(n,a)}}function MV(t,e,n){t.prototype[e]=function(r){if(arguments.length===0)return this.attr(e);if(Array.isArray(r))return this.attr(e,{items:r});if(cl(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(e,r);if(r===null||r===!1)return this.attr(e,r);const i=this.attr(e)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(e,i)}}function EV(t,e,{ctor:n}){t.prototype[e]=function(r){const i=this.append(n);return e==="mark"&&(i.type=r),i}}function AV(t,e,{ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}function kd(t){return e=>{for(const[n,r]of Object.entries(t)){const{type:i}=r;i==="value"?OV(e,n,r):i==="array"?wV(e,n,r):i==="object"?SV(e,n,r):i==="node"?EV(e,n,r):i==="container"?AV(e,n,r):i==="mix"&&MV(e,n,r)}return e}}function ES(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,{type:"node",ctor:n}]))}const AS={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},TV=Object.assign(Object.assign({},AS),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),PV=Object.assign(Object.assign({},AS),{labelTransform:{type:"array"}});var CV=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};let Rd=class extends sg{changeData(e){var n;const r=this.getRoot();if(r)return this.attr("data",e),!((n=this.children)===null||n===void 0)&&n.length&&this.children.forEach(i=>{i.attr("data",e)}),r==null?void 0:r.render()}getView(){const e=this.getRoot(),{views:n}=e.getContext();if(n!=null&&n.length)return n.find(r=>r.key===this._key)}getScale(){var e;return(e=this.getView())===null||e===void 0?void 0:e.scale}getScaleByChannel(e){const n=this.getScale();if(n)return n[e]}getCoordinate(){var e;return(e=this.getView())===null||e===void 0?void 0:e.coordinate}getTheme(){var e;return(e=this.getView())===null||e===void 0?void 0:e.theme}getGroup(){const e=this._key;return e?this.getRoot().getContext().canvas.getRoot().getElementById(e):void 0}show(){const e=this.getGroup();e&&!e.isVisible()&&fg(e)}hide(){const e=this.getGroup();e&&e.isVisible()&&ug(e)}};Rd=CV([kd(PV)],Rd);var kV=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};let dg=class extends sg{changeData(e){const n=this.getRoot();if(n)return this.attr("data",e),n==null?void 0:n.render()}getMark(){var e;const n=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(!n)return;const{markState:r}=n,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var e;const n=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(n)return n==null?void 0:n.scale}getScaleByChannel(e){var n,r;const i=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[e]}getGroup(){const e=this.attr("key");return e?this.getRoot().getContext().canvas.getRoot().getElementById(e):void 0}};dg=kV([kd(TV)],dg);const TS={};function tpt(t,e){Object.assign(TS,{[t]:e})}var RV=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},LV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{this.forceFit()},300),this._renderer=i||new u_,this._plugins=a||[],this._container=cV(n),this._emitter=new Wp,this._context={library:Object.assign(Object.assign({},o),TS),emitter:this._emitter,canvas:r},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._context.canvas.getConfig().supportsCSSTransform=!0,this._bindAutoFit(),this._rendering=!0;const e=new Promise((a,o)=>iV(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[n,r,i]=bV();return e.then(r).catch(i).then(()=>this._renderTrailing()),n}options(e){if(arguments.length===0)return fV(this);const{type:n}=e;return n&&(this._previousDefinedType=n),mV(this,e,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(e,n,r){return this._emitter.on(e,n,r),this}once(e,n){return this._emitter.once(e,n),this}emit(e,...n){return this._emitter.emit(e,...n),this}off(e,n){return this._emitter.off(e,n),this}clear(){const e=this.options();this.emit(Sn.BEFORE_CLEAR),this._reset(),mS(e,this._context,!1),this.emit(Sn.AFTER_CLEAR)}destroy(){const e=this.options();this.emit(Sn.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),mS(e,this._context,!0),this._container[_S]&&lV(this._container),this.emit(Sn.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:e,height:n}=cg(this.options(),this._container);if(e===this._width&&n===this._height)return Promise.resolve(this);this.emit(Sn.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(Sn.AFTER_CHANGE_SIZE)}),r}changeSize(e,n){if(e===this._width&&n===this._height)return Promise.resolve(this);this.emit(Sn.BEFORE_CHANGE_SIZE),this.attr("width",e),this.attr("height",n);const r=this.render();return r.then(()=>{this.emit(Sn.AFTER_CHANGE_SIZE)}),r}_create(){const{library:e}=this._context,n=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(e).filter(n)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends dg{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(c){const l=this.append(s);return o==="mark"&&(l.type=c),l}}const i=["composition.view",...Object.keys(e).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends Rd{constructor(){super({},o)}};return s=RV([kd(ES(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))kd(ES(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const e=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([n])=>n.startsWith("margin")||n.startsWith("padding")||n.startsWith("inset")||e.includes(n))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const e=this._trailingResolve.bind(this);this._trailingResolve=null,e(this)}).catch(e=>{const n=this._trailingReject.bind(this);this._trailingReject=null,n(e)}))}_createResolve(e){return()=>{this._rendering=!1,e(this)}}_createReject(e){return n=>{this._rendering=!1,e(n)}}_computedOptions(){const e=this.options(),{key:n=NV}=e,{width:r,height:i,depth:a}=cg(e,this._container);return this._width=r,this._height=i,this._key=n,Object.assign(Object.assign({key:this._key},e),{width:r,height:i,depth:a})}_createCanvas(){const{width:e,height:n}=cg(this.options(),this._container);this._plugins.push(new f_),this._plugins.forEach(r=>this._renderer.registerPlugin(r)),this._context.canvas=new Fx({container:this._container,width:e,height:n,renderer:this._renderer})}_addToTrailing(){var e;return(e=this._trailingResolve)===null||e===void 0||e.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const e=this.options(),{autoFit:n}=e;if(this._hasBindAutoFit){n||this._unbindAutoFit();return}n&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}function jV(t,e){class n extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:e}))}}return n}Pt.enableCSSParsing=!1;var DV=Object.prototype.hasOwnProperty,PS=function(t,e){if(t===null||!io(t))return{};var n={};return Cv(e,function(r){DV.call(t,r)&&(n[r]=t[r])}),n};function CS(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ll(t,e,n,r,i){for(var a=t.children,o,s=-1,c=a.length,l=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;t.value=e}function GV(){return this.eachAfter(zV)}var hg=gt(38887);function WV(t,e){var n=-1,r=hg(this),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t.call(e,a,++n,this)}}catch(o){r.e(o)}finally{r.f()}return this}function HV(t,e){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(t.call(e,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function YV(t,e){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o=0;)n+=r[i].value;e.value=n})}function XV(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function UV(t){for(var e=this,n=qV(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function qV(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function ZV(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function KV(){return Array.from(this)}function QV(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function JV(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}var kS=gt(13448),tX=kS().mark(RS);function RS(){var t,e,n,r,i,a;return kS().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=this,n=[t];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){s.next=8;break}return s.next=5,t;case 5:if(r=t.children)for(i=0,a=r.length;i=0;--s)i.push(a=o[s]=new hc(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(LS)}function eX(){return dc(this).eachBefore(iX)}function nX(t){return t.children}function rX(t){return Array.isArray(t)?t[1]:null}function iX(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function LS(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function hc(t){this.data=t,this.depth=this.height=0,this.parent=null}hc.prototype=dc.prototype=FV({constructor:hc,count:GV,each:WV,eachAfter:YV,eachBefore:HV,find:$V,sum:VV,sort:XV,path:UV,ancestors:ZV,descendants:KV,leaves:QV,links:JV,copy:eX},Symbol.iterator,RS);var aX=function(t,e){if(!ll(t))return t;for(var n=[],r=0;re.value-t.value,as:["x","y"],ignoreParentValue:!0},uX="nodeIndex",Nl="childNodeCount",fX="nodeAncestor",vg="Invalid field: it must be a string!";function dX(t,e){const{field:n,fields:r}=t;if(er(n))return n;if(Dr(n))return console.warn(vg),n[0];if(console.warn(`${vg} will try to get fields instead.`),er(r))return r;if(Dr(r)&&r.length)return r[0];if(e)return e;throw new TypeError(vg)}function hX(t){const e=[];if(t&&t.each){let n,r;t.each(i=>{var a,o;i.parent!==n?(n=i.parent,r=0):r+=1;const s=oX((((a=i.ancestors)===null||a===void 0?void 0:a.call(i))||[]).map(c=>e.find(l=>l.name===c.name)||c),({depth:c})=>c>0&&c{e.push(n)});return e}function pX(t,e){e=sX({},lX,e);const n=e.as;if(!Dr(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=dX(e)}catch(c){console.warn(c)}const a=(c=>BV().size(e.size).round(e.round).padding(e.padding)(dc(c).sum(l=>cX(l.children)?e.ignoreParentValue?0:l[r]-G2(l.children,(u,f)=>u+f[r],0):l[r]).sort(e.sort)))(t),o=n[0],s=n[1];return a.each(c=>{var l,u;c[o]=[c.x0,c.x1,c.x1,c.x0],c[s]=[c.y1,c.y1,c.y0,c.y0],c.name=c.name||((l=c.data)===null||l===void 0?void 0:l.name)||((u=c.data)===null||u===void 0?void 0:u.label),c.data.name=c.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete c[f]})}),hX(a)}var vX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var l,u,f,d;if(c.depth===0)return null;let h=c.data.name;const p=[h];let v=Object.assign({},c);for(;v.depth>1;)h=`${(l=v.parent.data)===null||l===void 0?void 0:l.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const g=Object.assign(Object.assign(Object.assign({},PS(c.data,[i])),{[NS]:h,[Ld]:v.data.name}),c);r&&r!==Ld&&(g[r]=c.data[r]||((d=(f=c.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(g)}),s.map(c=>Object.assign(Object.assign({},c),{x:c.x.slice(0,2),y:[c.y[2],c.y[0]],fillOpacity:Math.pow(.85,c.depth)}))}const IS={id:pc,encode:{x:"x",y:"y",key:NS,color:Ld,value:"value"},axis:{x:!1,y:!1},style:{[gg]:pc,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[Nl]:Nl,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},jS=t=>{const{encode:e,data:n=[],legend:r}=t,i=vX(t,["encode","data","legend"]),a=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(zi(i,["coordinate","innerRadius"],.2),1e-5)}),o=Object.assign(Object.assign({},IS.encode),e),{value:s}=o,c=gX({encode:o,data:n});return[Dt({},IS,Object.assign(Object.assign({type:"rect",data:c,encode:o,tooltip:{title:"path",items:[l=>({name:s,value:l[s]})]}},i),{coordinate:a}))]};jS.props={};var yX=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Cv(t,function(n,r){gi(t)&&r==="prototype"||e.push(r)}),e},mX=yX,bX=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const xX=t=>t.querySelectorAll(".element").filter(e=>zi(e,["style",gg])===pc);function _X(t){return je(t).select(`.${Df}`).node()}const OX={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function wX(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=Dt({},OX,e);return i=>{const{update:a,setState:o,container:s,view:c,options:l}=i,u=_X(s),f=l.marks.find(({id:m})=>m===pc),{state:d}=f,h=new Br;u.appendChild(h);const p=(m,b)=>bX(this,void 0,void 0,function*(){if(h.removeChildren(),m){const _=new Zi({style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});h.appendChild(_);let O="";const w=m==null?void 0:m.split(" / ");let M=r.style.y,E=h.getBBox().width;const A=u.getBBox().width,P=w.map((C,j)=>{const N=new Zi({style:Object.assign(Object.assign({x:E,text:" / "},r.style),{y:M})});h.appendChild(N),E+=N.getBBox().width,O=`${O}${C} / `;const k=new Zi({name:O.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:C,x:E,depth:j+1},r.style),{y:M})});return h.appendChild(k),E+=k.getBBox().width,E>A&&(M=h.getBBox().height,E=0,N.attr({x:E,y:M}),E+=N.getBBox().width,k.attr({x:E,y:M}),E+=k.getBBox().width),k});[_,...P].forEach((C,j)=>{if(j===P.length)return;const N=Object.assign({},C.attributes);C.attr("cursor","pointer"),C.addEventListener("mouseenter",()=>{C.attr(r.active)}),C.addEventListener("mouseleave",()=>{C.attr(N)}),C.addEventListener("click",()=>{p(C.name,zi(C,["style","depth"]))})})}o("drillDown",_=>{const{marks:O}=_,w=O.map(M=>{if(M.id!==pc&&M.type!=="rect")return M;const{data:E}=M,A=Object.fromEntries(["color"].map(C=>[C,{domain:c.scale[C].getOptions().domain}])),P=E.filter(C=>{const j=C.path;return n&&(C[Ld]=j.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(j):!0});return Dt({},M,n?{data:P}:{data:P,scale:A})});return Object.assign(Object.assign({},_),{marks:w})}),yield a()}),v=m=>{const b=m.target;if(zi(b,["style",gg])!==pc||zi(b,["markType"])!=="rect"||!zi(b,["style",Nl]))return;const _=zi(b,["__data__","key"]),O=zi(b,["style","depth"]);b.style.cursor="pointer",p(_,O)};u.addEventListener("click",v);const g=mX(Object.assign(Object.assign({},d.active),d.inactive)),y=()=>{xX(u).forEach(b=>{const _=zi(b,["style",Nl]);if(zi(b,["style","cursor"])!=="pointer"&&_){b.style.cursor="pointer";const w=PS(b.attributes,g);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(Dt(w,d.inactive))})}})};return u.addEventListener("mousemove",y),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",y)}}}Pt.enableCSSParsing=!1;function SX(){return{"interaction.drillDown":wX,"mark.sunburst":jS}}const DS=()=>[["cartesian"]];DS.props={};const yg=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];yg.props={transform:!0};const MX=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},BS=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=MX(t);return[...yg(),...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};BS.props={};const mg=()=>[["parallel",0,1,0,1]];mg.props={};const FS=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];FS.props={transform:!0};const zS=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...mg(),...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};zS.props={};const GS=({value:t})=>e=>e.map(()=>t);GS.props={};const WS=({value:t})=>e=>e.map(n=>n[t]);WS.props={};const HS=({value:t})=>e=>e.map(t);HS.props={};const YS=({value:t})=>()=>t;YS.props={};function dr(t,e){if(t!==null)return{type:"column",value:t,field:e}}function Nd(t,e){const n=dr(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function Id(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function EX(t,e){const n=dr(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function go(t,e){const n=[];for(const r of t)n[r]=e;return n}function un(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function Il(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=un(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function bg(t){return t instanceof Date?!1:typeof t=="object"}const jl=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,Dt({},e,{encode:{y1:Nd(go(t,0))}})]};jl.props={};const ls=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,Dt({},e,{encode:{x:Nd(go(t,0))},scale:{x:{guide:null}}})]};ls.props={};const $S=Math.abs,Ur=Math.atan2,us=Math.cos,AX=Math.max,xg=Math.min,ma=Math.sin,vc=Math.sqrt,qr=1e-12,Dl=Math.PI,jd=Dl/2,TX=2*Dl;function PX(t){return t>1?0:t<-1?Dl:Math.acos(t)}function VS(t){return t>=1?jd:t<=-1?-jd:Math.asin(t)}function CX(t){return t.innerRadius}function kX(t){return t.outerRadius}function RX(t){return t.startAngle}function LX(t){return t.endAngle}function NX(t){return t&&t.padAngle}function IX(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+R*R&&(E=P,A=C),{cx:E,cy:A,x01:-u,y01:-f,x11:E*(i/O-1),y11:A*(i/O-1)}}function Bd(){var t=CX,e=kX,n=Vn(0),r=null,i=RX,a=LX,o=NX,s=null,c=zv(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-jd,v=a.apply(this,arguments)-jd,g=$S(v-p),y=v>p;if(s||(s=u=c()),hqr))s.moveTo(0,0);else if(g>TX-qr)s.moveTo(h*us(p),h*ma(p)),s.arc(0,0,h,p,v,!y),d>qr&&(s.moveTo(d*us(v),d*ma(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,_=p,O=v,w=g,M=g,E=o.apply(this,arguments)/2,A=E>qr&&(r?+r.apply(this,arguments):vc(d*d+h*h)),P=xg($S(h-d)/2,+n.apply(this,arguments)),C=P,j=P,N,k;if(A>qr){var R=VS(A/d*ma(E)),D=VS(A/h*ma(E));(w-=R*2)>qr?(R*=y?1:-1,_+=R,O-=R):(w=0,_=O=(p+v)/2),(M-=D*2)>qr?(D*=y?1:-1,m+=D,b-=D):(M=0,m=b=(p+v)/2)}var B=h*us(m),F=h*ma(m),z=d*us(O),Y=d*ma(O);if(P>qr){var q=h*us(b),rt=h*ma(b),st=d*us(_),At=d*ma(_),Yt;if(gqr?j>qr?(N=Dd(st,At,B,F,h,j,y),k=Dd(q,rt,z,Y,h,j,y),s.moveTo(N.cx+N.x01,N.cy+N.y01),jqr)||!(w>qr)?s.lineTo(z,Y):C>qr?(N=Dd(z,Y,q,rt,d,-C,y),k=Dd(B,F,st,At,d,-C,y),s.lineTo(N.cx+N.x01,N.cy+N.y01),C0?C:C+N,D=k>0?j:j+k,B=Math.abs(N),F=Math.abs(k),z=R+s,Y=D+c,q=B-(s+l),rt=F-(c+u),st=E?Yf(q,y,1/0):Yf(q,v,g),At=E?Yf(rt,v,g):Yf(rt,y,1/0),Yt=E?z:z-(st-q)/2,qt=E?Y-(At-rt)/2:Y-(At-rt);return je(t.createElement("rect",{})).style("x",Yt).style("y",qt).style("width",st).style("height",At).style("radius",[h,p,d,f]).call(Ae,m).node()}const{y:b,y1:_}=n,O=r.getCenter(),w=ns(r,e,[b,_]),M=Bd().cornerRadius(o).padAngle(a*Math.PI/180);return je(t.createElement("path",{})).style("path",M(w)).style("transform",`translate(${O[0]}, ${O[1]})`).style("radius",o).style("inset",a).call(Ae,m).node()}const Bl=(t,e)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=Fd(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d,radius:h=0}=f,p=Fd(f,["color","radius"]),v=p.lineWidth||1,{stroke:g,radius:y=h,radiusTopLeft:m=y,radiusTopRight:b=y,radiusBottomRight:_=y,radiusBottomLeft:O=y,innerRadius:w=0,innerRadiusTopLeft:M=w,innerRadiusTopRight:E=w,innerRadiusBottomRight:A=w,innerRadiusBottomLeft:P=w,lineWidth:C=n==="stroke"||g?v:0,inset:j=0,insetLeft:N=j,insetRight:k=j,insetBottom:R=j,insetTop:D=j,minWidth:B,maxWidth:F,minHeight:z}=o,Y=Fd(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:q=d,opacity:rt}=u,st=[i?m:M,i?b:E,a?_:A,a?O:P],At=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];$n(s)&&At.push(At.shift());const Yt=Object.assign(Object.assign({radius:y},Object.fromEntries(At.map((qt,Rt)=>[qt,st[Rt]]))),{inset:j,insetLeft:N,insetRight:k,insetBottom:R,insetTop:D,minWidth:B,maxWidth:F,minHeight:z});return je(XS(c,l,u,s,Yt)).call(Ae,p).style("fill","transparent").style(n,q).style(wO(t),rt).style("lineWidth",C).style("stroke",g===void 0?q:g).call(Ae,Y).node()}};Bl.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const fs=(t,e)=>Bl(Object.assign({colorAttribute:"fill"},t),e);fs.props=Object.assign(Object.assign({},Bl.props),{defaultMarker:"square"});const zd=(t,e)=>Bl(Object.assign({colorAttribute:"stroke"},t),e);zd.props=Object.assign(Object.assign({},Bl.props),{defaultMarker:"hollowSquare"});function gc(){}function US(t){this._context=t}US.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function _g(t){return new US(t)}var qS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{adjustPoints:n=jX}=t,r=qS(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(o,s,c,l)=>{const{index:u}=s,{color:f}=c,d=qS(c,["color"]),h=l[u+1],p=n(o,h,i),v=!!$n(i),[g,y,m,b]=v?gd(p):p,{color:_=f,opacity:O}=s,w=ho().curve(_g)([g,y,m,b]);return je(a.createElement("path",{})).call(Ae,d).style("path",w).style("fill",_).style("fillOpacity",O).call(Ae,r).node()}};Og.props={defaultMarker:"square"};function DX(t,e,n){const[r,i,a,o]=t;if($n(n)){const l=[e?e[0][0]:(i[0]+a[0])/2,i[1]],u=[e?e[3][0]:(i[0]+a[0])/2,a[1]];return[r,l,u,o]}const s=[i[0],e?e[0][1]:(i[1]+a[1])/2],c=[a[0],e?e[3][1]:(i[1]+a[1])/2];return[r,s,c,o]}const ZS=(t,e)=>Og(Object.assign({adjustPoints:DX},t),e);ZS.props={defaultMarker:"square"};function Gd(t){return t==null?null:KS(t)}function KS(t){if(typeof t!="function")throw new Error;return t}var BX={depth:-1},QS={},wg={};function FX(t){return t.id}function zX(t){return t.parentId}function Sg(){var t=FX,e=zX,n;function r(i){var a=Array.from(i),o=t,s=e,c,l,u,f,d,h,p,v,g=new Map;if(n!=null){var y=a.map(function(E,A){return GX(n(E,A,i))}),m=y.map(JS),b=new Set(y).add(""),_=hg(m),O;try{for(_.s();!(O=_.n()).done;){var w=O.value;b.has(w)||(b.add(w),y.push(w),m.push(JS(w)),a.push(wg))}}catch(E){_.e(E)}finally{_.f()}o=function(A,P){return y[P]},s=function(A,P){return m[P]}}for(u=0,c=a.length;u=0&&(h=a[M],h.data===wg);--M)h.data=null}if(f.parent=BX,f.eachBefore(function(E){E.depth=E.parent.depth+1,--c}).eachBefore(LS),f.parent=null,c>0)throw new Error("cycle");return f}return r.id=function(i){return arguments.length?(t=Gd(i),r):t},r.parentId=function(i){return arguments.length?(e=Gd(i),r):e},r.path=function(i){return arguments.length?(n=Gd(i),r):n},r}function GX(t){t="".concat(t);var e=t.length;return Mg(t,e-1)&&!Mg(t,e-2)&&(t=t.slice(0,-1)),t[0]==="/"?t:"/".concat(t)}function JS(t){var e=t.length;if(e<2)return"";for(;--e>1&&!Mg(t,e););return t.slice(0,e)}function Mg(t,e){if(t[e]==="/"){for(var n=0;e>0&&t[--e]==="\\";)++n;if(!(n&1))return!0}return!1}function Fl(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function WX(t){const e=t.getFullYear(),n=Fl(t.getMonth()+1),r=Fl(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${Fl(a)}:${Fl(o)}:${Fl(s)}`:i}const Wd=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(ka(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>un(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?WX(u[l]):u[l]).join(", ")};return[n,Dt({},r,{tooltip:{title:c}})]}};Wd.props={};const Hd=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(ka(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,Dt({},r,{tooltip:{items:c}})]}};Hd.props={};var HX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=HX(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,Dt({},e,{encode:{key:dr(o)}})]};tM.props={};function eM(t={}){const{shapes:e}=t;return[{name:"color"},{name:"opacity"},{name:"shape",range:e},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function ii(t={}){return[...eM(t),{name:"title",scale:"identity"}]}function npt(){return[{type:MaybeTitle,channel:"color"},{type:MaybeTooltip,channel:["x","y","z"]}]}function yo(){return[{type:Wd,channel:"color"},{type:Hd,channel:["x","y"]}]}function yc(){return[{type:Wd,channel:"x"},{type:Hd,channel:["y"]}]}function YX(){return[{type:Wd,channel:"color"},{type:Hd,channel:["position"]}]}function mc(t={}){return eM(t)}function gr(){return[{type:tM}]}function Or(){return[]}function Eg(t,e){return t.getBandWidth(t.invert(e))}function ds(t,e,n={}){const{x:r,y:i,series:a}=e,{x:o,y:s,series:c}=t,{style:{bandOffset:l=c?0:.5,bandOffsetX:u=l,bandOffsetY:f=l}={}}=n,d=!!(o!=null&&o.getBandWidth),h=!!(s!=null&&s.getBandWidth),p=!!(c!=null&&c.getBandWidth);return!d&&!h?v=>v:(v,g)=>{const y=d?Eg(o,r[g]):0,m=h?Eg(s,i[g]):0,_=p&&a?(()=>(Eg(c,a[g])/2+ +a[g])*y)():0,[O,w]=v;return[O+u*y+_,w+f*m]}}function Yd(t){return parseFloat(t)/100}function Ag(t,e,n,r){const{x:i,y:a}=n,{innerWidth:o,innerHeight:s}=r.getOptions(),c=Array.from(t,l=>{const u=i[l],f=a[l],d=typeof u=="string"?Yd(u)*o:+u,h=typeof f=="string"?Yd(f)*s:+f;return[[d,h]]});return[t,c]}function ba(t){return typeof t=="function"?t:e=>e[t]}function Tg(t,e){return Array.from(t,ba(e))}function Pg(t,e){const{source:n=u=>u.source,target:r=u=>u.target,value:i=u=>u.value}=e,{links:a,nodes:o}=t,s=Tg(a,n),c=Tg(a,r),l=Tg(a,i);return{links:a.map((u,f)=>({target:c[f],source:s[f],value:l[f]})),nodes:o||Array.from(new Set([...s,...c]),u=>({key:u}))}}function $X(t,e){return Array.isArray(t)?typeof e=="function"?Sg().path(e)(t):Sg()(t):dc(t)}function nM(t,e){return t.getBandWidth(t.invert(e))}const rM={rect:fs,hollow:zd,funnel:Og,pyramid:ZS},iM=()=>(t,e,n,r)=>{const{x:i,y:a,y1:o,series:s,size:c}=n,l=e.x,u=e.series,[f]=r.getSize(),d=c?c.map(v=>+v/f):null,h=c?(v,g,y)=>{const m=v+g/2,b=d[y];return[m-b/2,m+b/2]}:(v,g,y)=>[v,v+g],p=Array.from(t,v=>{const g=nM(l,i[v]),y=u?nM(u,s==null?void 0:s[v]):1,m=g*y,b=(+(s==null?void 0:s[v])||0)*g,_=+i[v]+b,[O,w]=h(_,m,v),M=+a[v],E=+o[v];return[[O,M],[w,M],[w,E],[O,E]].map(N=>r.map(N))});return[t,p]};iM.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:rM,channels:[...ii({shapes:Object.keys(rM)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...gr(),{type:jl},{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const aM={rect:fs,hollow:zd},oM=()=>(t,e,n,r)=>{const{x:i,x1:a,y:o,y1:s}=n,c=Array.from(t,l=>{const u=[+i[l],+o[l]],f=[+a[l],+o[l]],d=[+a[l],+s[l]],h=[+i[l],+s[l]];return[u,f,d,h].map(p=>r.map(p))});return[t,c]};oM.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:aM,channels:[...ii({shapes:Object.keys(aM)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:jl}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};var sM=Cg(Al);function cM(t){this._curve=t}cM.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Cg(t){function e(n){return new cM(t(n))}return e._curve=t,e}function zl(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Cg(n)):e()._curve},t}function VX(){return zl(ho().curve(sM))}var lM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;je(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(Ae,r),je(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(Ae,i)});function UX(t,e){const n=[],r=[];let i=!1,a=null;for(const o of t)!e(o[0])||!e(o[1])?i=!0:(n.push(o),i&&(i=!1,r.push([a,o])),a=o);return[n,r]}const Hi=(t,e)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=u=>!Number.isNaN(u)&&u!==void 0&&u!==null,connect:o=!1}=t,s=lM(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:c,document:l}=e;return(u,f,d)=>{const{color:h,lineWidth:p}=d,v=lM(d,["color","lineWidth"]),{color:g=h,size:y=p,seriesColor:m,seriesX:b,seriesY:_}=f,O=SO(c,f),w=$n(c),M=r&&m?OO(m,b,_,r,i,w):g,E=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v),M&&{stroke:M}),y&&{lineWidth:y}),O&&{transform:O}),s);let A;if(Gn(c)){const R=c.getCenter();A=D=>VX().angle((B,F)=>nc(ur(D[F],R))).radius((B,F)=>Jn(D[F],R)).defined(([B,F])=>a(B)&&a(F)).curve(n)(D)}else A=ho().x(R=>R[0]).y(R=>R[1]).defined(([R,D])=>a(R)&&a(D)).curve(n);const[P,C]=UX(u,a),j=fe(E,"connect"),N=!!C.length;if(!N||o&&!Object.keys(j).length)return je(l.createElement("path",{})).style("d",A(P)||[]).call(Ae,E).node();if(N&&!o)return je(l.createElement("path",{})).style("d",A(u)).call(Ae,E).node();const k=R=>R.map(A).join(",");return je(new XX).style("style1",Object.assign(Object.assign({},E),j)).style("style2",E).style("d1",k(C)).style("d2",A(u)).node()}};Hi.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const uM=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Gn(n)?_g:Al;return Hi(Object.assign({curve:i},t),e)(...r)}};uM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"line"});function kg(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rg(t,e){this._context=t,this._k=(1-e)/6}Rg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:kg(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:kg(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var rpt=function t(e){function n(r){return new Rg(r,e)}return n.tension=function(r){return t(+r)},n}(0);function Lg(t,e){this._context=t,this._k=(1-e)/6}Lg.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:kg(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ipt=function t(e){function n(r){return new Lg(r,e)}return n.tension=function(r){return t(+r)},n}(0);function fM(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>qr){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>qr){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function dM(t,e){this._context=t,this._alpha=e}dM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:fM(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var apt=function t(e){function n(r){return e?new dM(r,e):new Rg(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function hM(t,e){this._context=t,this._alpha=e}hM.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:fM(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var pM=function t(e){function n(r){return e?new hM(r,e):new Lg(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function vM(t){return t<0?-1:1}function gM(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(vM(a)+vM(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function yM(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Ng(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function $d(t){this._context=t}$d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ng(this,this._t0,yM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ng(this,yM(this,n=gM(this,t,e)),n);break;default:Ng(this,this._t0,n=gM(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function mM(t){this._context=new bM(t)}(mM.prototype=Object.create($d.prototype)).point=function(t,e){$d.prototype.point.call(this,e,t)};function bM(t){this._context=t}bM.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function xM(t){return new $d(t)}function _M(t){return new mM(t)}var qX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=qX(t,[]),{coordinate:r}=e;return(...i)=>{const a=Gn(r)?pM:$n(r)?_M:xM;return Hi(Object.assign({curve:a},n),e)(...i)}};OM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"smooth"});function Vd(t,e){this._context=t,this._t=e}Vd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function wM(t){return new Vd(t,.5)}function SM(t){return new Vd(t,0)}function MM(t){return new Vd(t,1)}const EM=(t,e)=>Hi(Object.assign({curve:MM},t),e);EM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"hv"});const AM=(t,e)=>Hi(Object.assign({curve:SM},t),e);AM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"vh"});const TM=(t,e)=>Hi(Object.assign({curve:wM},t),e);TM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"hvh"});var ZX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{seriesSize:o,color:s}=i,{color:c}=a,l=ZX(a,["color"]),u=Wi();for(let f=0;f(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,Dt({},e,{encode:{series:Id(go(t,void 0))}})]};CM.props={};const Ig=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=un(n,"color");return[t,Dt({},e,{encode:{series:dr(a,o)}})]};Ig.props={};const kM={line:uM,smooth:OM,hv:EM,vh:AM,hvh:TM,trail:PM},QX=(t,e,n,r)=>{var i,a;const{series:o,x:s,y:c}=n,{x:l,y:u}=e;if(s===void 0||c===void 0)throw new Error("Missing encode for x or y channel.");const f=o?Array.from(Kn(t,g=>o[g]).values()):[t],d=f.map(g=>g[0]).filter(g=>g!==void 0),h=(((i=l==null?void 0:l.getBandWidth)===null||i===void 0?void 0:i.call(l))||0)/2,p=(((a=u==null?void 0:u.getBandWidth)===null||a===void 0?void 0:a.call(u))||0)/2,v=Array.from(f,g=>g.map(y=>r.map([+s[y]+h,+c[y]+p])));return[d,v,f]},JX=(t,e,n,r)=>{const i=Object.entries(n).filter(([o])=>o.startsWith("position")).map(([,o])=>o);if(i.length===0)throw new Error("Missing encode for position channel.");const a=Array.from(t,o=>{const s=i.map(u=>+u[o]),c=r.map(s),l=[];for(let u=0;u(t,e,n,r)=>(dl(r)?JX:QX)(t,e,n,r);RM.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:kM,channels:[...ii({shapes:Object.keys(kM)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...gr(),{type:CM},{type:Ig}],postInference:[...Or(),...yc(),...YX()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};var tU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];jg.style=["fill"];const LM=jg.bind(void 0);LM.style=["stroke","lineWidth"];const Xd=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];Xd.style=["fill"];const NM=Xd.bind(void 0);NM.style=["fill"];const IM=Xd.bind(void 0);IM.style=["stroke","lineWidth"];const Dg=(t,e,n)=>{const r=n*.618;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};Dg.style=["fill"];const jM=Dg.bind(void 0);jM.style=["stroke","lineWidth"];const Bg=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};Bg.style=["fill"];const DM=Bg.bind(void 0);DM.style=["stroke","lineWidth"];const Fg=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};Fg.style=["fill"];const BM=Fg.bind(void 0);BM.style=["stroke","lineWidth"];const zg=(t,e,n)=>{const r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};zg.style=["fill"];const FM=zg.bind(void 0);FM.style=["stroke","lineWidth"];const Gg=(t,e,n)=>{const r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};Gg.style=["fill"];const zM=Gg.bind(void 0);zM.style=["stroke","lineWidth"];const GM=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];GM.style=["stroke","lineWidth"];const WM=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];WM.style=["stroke","lineWidth"];const HM=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];HM.style=["stroke","lineWidth"];const YM=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];YM.style=["stroke","lineWidth"];const $M=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];$M.style=["stroke","lineWidth"];const Wg=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];Wg.style=["stroke","lineWidth"];const VM=Wg.bind(void 0);VM.style=["stroke","lineWidth"];const XM=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];XM.style=["stroke","lineWidth"];const UM=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];UM.style=["stroke","lineWidth"];const qM=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];qM.style=["stroke","lineWidth"];const ZM=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];ZM.style=["stroke","lineWidth"];const KM=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];KM.style=["stroke","lineWidth"];const bc=new Map([["bowtie",Gg],["cross",WM],["dash",VM],["diamond",Dg],["dot",Wg],["hexagon",zg],["hollowBowtie",zM],["hollowDiamond",jM],["hollowHexagon",FM],["hollowPoint",LM],["hollowSquare",IM],["hollowTriangle",DM],["hollowTriangleDown",BM],["hv",UM],["hvh",ZM],["hyphen",$M],["line",GM],["plus",YM],["point",jg],["rect",NM],["smooth",XM],["square",Xd],["tick",HM],["triangleDown",Fg],["triangle",Bg],["vh",qM],["vhv",KM]]);function eU(t,e){var{d:n,fill:r,strokeWidth:i,path:a,stroke:o,lineWidth:s,color:c}=e,l=tU(e,["d","fill","strokeWidth","path","stroke","lineWidth","color"]);const u=bc.get(t)||bc.get("point");return(...f)=>new ri({style:Object.assign(Object.assign({},l),{path:u(...f),stroke:u.style.includes("stroke")?c||o:"",fill:u.style.includes("fill")?c||r:"",lineWidth:u.style.includes("lineWidth")?s||s||2:0})})}function opt(t,e){bc.set(t,e)}function spt(t){bc.delete(t)}var nU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=nU(t,["colorAttribute","symbol","mode"]),o=bc.get(r)||bc.get("point"),{coordinate:s,document:c}=e;return(l,u,f)=>{const{lineWidth:d,color:h}=f,p=a.stroke?d||1:d,{color:v=h,transform:g,opacity:y}=u,[m,b]=MO(l),O=rU(i,l,u,s)||a.r||f.r;return je(c.createElement("path",{})).call(Ae,f).style("fill","transparent").style("d",o(m,b,O)).style("lineWidth",p).style("transform",g).style("stroke",v).style(wO(t),y).style(n,v).call(Ae,a).node()}};on.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const QM=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);QM.props=Object.assign({defaultMarker:"hollowPoint"},on.props);const JM=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);JM.props=Object.assign({defaultMarker:"hollowDiamond"},on.props);const tE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);tE.props=Object.assign({defaultMarker:"hollowHexagon"},on.props);const eE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);eE.props=Object.assign({defaultMarker:"hollowSquare"},on.props);const nE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);nE.props=Object.assign({defaultMarker:"hollowTriangleDown"},on.props);const rE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);rE.props=Object.assign({defaultMarker:"hollowTriangle"},on.props);const iE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);iE.props=Object.assign({defaultMarker:"hollowBowtie"},on.props);const aE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);aE.props=Object.assign({defaultMarker:"point"},on.props);const oE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);oE.props=Object.assign({defaultMarker:"plus"},on.props);const sE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);sE.props=Object.assign({defaultMarker:"diamond"},on.props);const cE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);cE.props=Object.assign({defaultMarker:"square"},on.props);const lE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);lE.props=Object.assign({defaultMarker:"triangle"},on.props);const uE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);uE.props=Object.assign({defaultMarker:"hexagon"},on.props);const fE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);fE.props=Object.assign({defaultMarker:"cross"},on.props);const dE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);dE.props=Object.assign({defaultMarker:"bowtie"},on.props);const hE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);hE.props=Object.assign({defaultMarker:"hyphen"},on.props);const pE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);pE.props=Object.assign({defaultMarker:"line"},on.props);const vE=(t,e)=>on(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);vE.props=Object.assign({defaultMarker:"tick"},on.props);const gE=(t,e)=>on(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);gE.props=Object.assign({defaultMarker:"triangleDown"},on.props);const Ud=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,Dt({},e,{encode:{y:Nd(go(t,0))},scale:{y:{guide:null}}})]};Ud.props={};const yE=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,Dt({},e,{encode:{size:Id(go(t,3))}})]};yE.props={};const mE={hollow:QM,hollowDiamond:JM,hollowHexagon:tE,hollowSquare:eE,hollowTriangleDown:nE,hollowTriangle:rE,hollowBowtie:iE,point:aE,plus:oE,diamond:sE,square:cE,triangle:lE,hexagon:uE,cross:fE,bowtie:dE,hyphen:hE,line:pE,tick:vE,triangleDown:gE},bE=t=>(e,n,r,i)=>{const{x:a,y:o,x1:s,y1:c,size:l,dx:u,dy:f}=r,[d,h]=i.getSize(),p=ds(n,r,t),v=y=>{const m=+((u==null?void 0:u[y])||0),b=+((f==null?void 0:f[y])||0),_=s?(+a[y]+ +s[y])/2:+a[y],O=c?(+o[y]+ +c[y])/2:+o[y],w=_+m,M=O+b;return[w,M]},g=l?Array.from(e,y=>{const[m,b]=v(y),_=+l[y],O=_/d,w=_/h,M=[m-O,b-w],E=[m+O,b+w];return[i.map(p(M,y)),i.map(p(E,y))]}):Array.from(e,y=>[i.map(p(v(y),y))]);return[e,g]};bE.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:mE,channels:[...ii({shapes:Object.keys(mE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...gr(),{type:ls},{type:Ud}],postInference:[...Or(),{type:yE},...yo()]};const xE=(t,e)=>{const{coordinate:n}=e;return(r,i,a)=>{const{color:o,text:s="",fontSize:c,rotate:l=0,transform:u=""}=i,f={text:String(s),stroke:o,fill:o,fontSize:c},[[d,h]]=r;return je(new RO).style("x",d).style("y",h).call(Ae,a).style("transform",`${u}rotate(${+l})`).style("coordCenter",n.getCenter()).call(Ae,f).call(Ae,t).node()}};xE.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Hg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const e=t.attributes,{class:n,x:r,y:i}=e,a=Hg(e,["class","x","y"]),o=fe(a,"marker"),{size:s=24}=o,c=()=>iU(s/2),l=je(t).maybeAppend("marker",()=>new Rn({})).call(d=>d.node().update(Object.assign({symbol:c},o))).node(),[u,f]=aU(l);je(t).maybeAppend("text","text").style("x",u).style("y",f).call(Ae,a)}),_E=(t,e)=>{const n=Hg(t,[]);return(r,i,a)=>{const{color:o}=a,s=Hg(a,["color"]),{color:c=o,text:l=""}=i,u={text:String(l),stroke:c,fill:c},[[f,d]]=r;return je(new oU).call(Ae,s).style("x",f).style("y",d).call(Ae,u).call(Ae,n).node()}};_E.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const qd=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(bg))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,Dt({},e,{encode:{x:dr(i),y:dr(a)}})]};qd.props={};var OE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=OE(e,["data","style"]),{x:a,y:o}=r,s=OE(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],Dt({},i,{data:[0],cartesian:!0,encode:{x:dr([c]),y:dr([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};Zd.props={};const wE={text:xE,badge:_E},SE=t=>{const{cartesian:e=!1}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};SE.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:wE,channels:[...ii({shapes:Object.keys(wE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[...gr(),{type:qd},{type:Zd}],postInference:[...Or(),...yo()]};const Yg=()=>(t,e)=>[t,Dt({scale:{x:{padding:0},y:{padding:0}}},e)];Yg.props={};const ME={cell:fs,hollow:zd},EE=()=>(t,e,n,r)=>{const{x:i,y:a}=n,o=e.x,s=e.y,c=Array.from(t,l=>{const u=o.getBandWidth(o.invert(+i[l])),f=s.getBandWidth(s.invert(+a[l])),d=+i[l],h=+a[l],p=[d,h],v=[d+u,h],g=[d+u,h+f],y=[d,h+f];return[p,v,g,y].map(m=>r.map(m))});return[t,c]};EE.props={defaultShape:"cell",defaultLabelShape:"label",shape:ME,composite:!1,channels:[...ii({shapes:Object.keys(ME)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...gr(),{type:ls},{type:Ud},{type:Yg}],postInference:[...Or(),...yo()]};function $g(t,e,n){var r=null,i=Vn(!0),a=null,o=Al,s=null,c=zv(l);t=typeof t=="function"?t:t===void 0?CO:Vn(+t),e=typeof e=="function"?e:Vn(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?kO:Vn(+n);function l(f){var d,h,p,v=(f=AO(f)).length,g,y=!1,m,b=new Array(v),_=new Array(v);for(a==null&&(s=o(m=c())),d=0;d<=v;++d){if(!(d=h;--p)s.point(b[p],_[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),_[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):_[d]))}if(m)return s=null,m+""||null}function u(){return ho().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Vn(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Vn(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Vn(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Vn(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Vn(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Vn(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Vn(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}function sU(){var t=$g().curve(sM),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return zl(n())},delete t.lineX0,t.lineEndAngle=function(){return zl(r())},delete t.lineX1,t.lineInnerRadius=function(){return zl(i())},delete t.lineY0,t.lineOuterRadius=function(){return zl(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Cg(o)):e()._curve},t}var cU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i!e(f)))a=!0;else{if(n.push(l),r.push(u),a&&o){a=!1;const[f,d]=o;i.push([f,l,d,u])}o=[l,u]}}return[n.concat(r),i]}const AE=rc(t=>{const{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,a=t.ownerDocument;je(t).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(Ae,i),je(t).maybeAppend("area-path",()=>a.createElement("path",{})).style("d",e).call(Ae,r)}),ta=(t,e)=>{const{curve:n,gradient:r=!1,defined:i=l=>!Number.isNaN(l)&&l!==void 0&&l!==null,connect:a=!1}=t,o=cU(t,["curve","gradient","defined","connect"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d}=f,{color:h=d,seriesColor:p,seriesX:v,seriesY:g}=u,y=$n(s),m=SO(s,u),b=r&&p?OO(p,v,g,r,void 0,y):h,_=Object.assign(Object.assign(Object.assign(Object.assign({},f),{stroke:b,fill:b}),m&&{transform:m}),o),[O,w]=lU(l,i),M=fe(_,"connect"),E=!!w.length,A=P=>je(c.createElement("path",{})).style("d",P||"").call(Ae,_).node();if(Gn(s)){const P=C=>{const j=s.getCenter(),N=C.slice(0,C.length/2),k=C.slice(C.length/2);return sU().angle((R,D)=>nc(ur(N[D],j))).outerRadius((R,D)=>Jn(N[D],j)).innerRadius((R,D)=>Jn(k[D],j)).defined((R,D)=>[...N[D],...k[D]].every(i)).curve(n)(k)};return!E||a&&!Object.keys(M).length?A(P(O)):E&&!a?A(P(l)):je(new AE).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},M),o)).style("areaPath",P(l)).style("connectPath",w.map(P).join("")).node()}else{const P=C=>{const j=C.slice(0,C.length/2),N=C.slice(C.length/2);return y?$g().y((k,R)=>j[R][1]).x1((k,R)=>j[R][0]).x0((k,R)=>N[R][0]).defined((k,R)=>[...j[R],...N[R]].every(i)).curve(n)(j):$g().x((k,R)=>j[R][0]).y1((k,R)=>j[R][1]).y0((k,R)=>N[R][1]).defined((k,R)=>[...j[R],...N[R]].every(i)).curve(n)(j)};return!E||a&&!Object.keys(M).length?A(P(O)):E&&!a?A(P(l)):je(new AE).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},M),o)).style("areaPath",P(l)).style("connectPath",w.map(P).join("")).node()}}};ta.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const TE=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Gn(n)?_g:Al;return ta(Object.assign({curve:i},t),e)(...r)}};TE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"square"});var uU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=uU(t,[]),{coordinate:r}=e;return(...i)=>{const a=Gn(r)?pM:$n(r)?_M:xM;return ta(Object.assign({curve:a},n),e)(...i)}};PE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"smooth"});const CE=(t,e)=>(...n)=>ta(Object.assign({curve:wM},t),e)(...n);CE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"hvh"});const kE=(t,e)=>(...n)=>ta(Object.assign({curve:SM},t),e)(...n);kE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"vh"});const RE=(t,e)=>(...n)=>ta(Object.assign({curve:MM},t),e)(...n);RE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"hv"});const LE={area:TE,smooth:PE,hvh:CE,vh:kE,hv:RE},NE=()=>(t,e,n,r)=>{var i,a;const{x:o,y:s,y1:c,series:l}=n,{x:u,y:f}=e,d=l?Array.from(Kn(t,y=>l[y]).values()):[t],h=d.map(y=>y[0]).filter(y=>y!==void 0),p=(((i=u==null?void 0:u.getBandWidth)===null||i===void 0?void 0:i.call(u))||0)/2,v=(((a=f==null?void 0:f.getBandWidth)===null||a===void 0?void 0:a.call(f))||0)/2,g=Array.from(d,y=>{const m=y.length,b=new Array(m*2);for(let _=0;_(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=un(n,"y");return[t,Dt({},e,{encode:{y1:dr([...i])}})]};IE.props={};const jE=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=un(n,"x");return[t,Dt({},e,{encode:{x1:dr([...i])}})]};jE.props={};var DE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n=!0,arrowSize:r="40%"}=t,i=DE(t,["arrow","arrowSize"]),{document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=DE(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=Wi();if(v.moveTo(...h),v.lineTo(...p),n){const[g,y]=lW(h,p,{arrowSize:r});v.moveTo(...p),v.lineTo(...g),v.moveTo(...p),v.lineTo(...y)}return je(a.createElement("path",{})).call(Ae,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(Ae,i).node()}};Vg.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const BE=(t,e)=>{const{arrow:n=!1}=t;return(...r)=>Vg(Object.assign(Object.assign({},t),{arrow:n}),e)(...r)};BE.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var FE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=FE(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=FE(s,["color"]),{color:u=c,transform:f}=o,[d,h]=a,p=Wi();if(p.moveTo(d[0],d[1]),Gn(r)){const v=r.getCenter();p.quadraticCurveTo(v[0],v[1],h[0],h[1])}else{const v=_O(d,h),g=Jn(d,h)/2;El(p,d,h,v,g)}return je(i.createElement("path",{})).call(Ae,l).style("d",p.toString()).style("stroke",u).style("transform",f).call(Ae,n).node()}};zE.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var GE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=GE(t,[]),{document:r}=e;return(i,a,o)=>{const{color:s}=o,c=GE(o,["color"]),{color:l=s,transform:u}=a,[f,d]=i,h=Wi();return h.moveTo(f[0],f[1]),h.bezierCurveTo(f[0]/2+d[0]/2,f[1],f[0]/2+d[0]/2,d[1],d[0],d[1]),je(r.createElement("path",{})).call(Ae,c).style("d",h.toString()).style("stroke",l).style("transform",u).call(Ae,n).node()}};WE.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var HE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{cornerRatio:n=1/3}=t,r=HE(t,["cornerRatio"]),{coordinate:i,document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=HE(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=fU(h,p,i,n);return je(a.createElement("path",{})).call(Ae,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(Ae,r).node()}};YE.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const $E={link:BE,arc:zE,smooth:WE,vhv:YE},Xg=t=>(e,n,r,i)=>{const{x:a,y:o,x1:s=a,y1:c=o}=r,l=ds(n,r,t),u=e.map(f=>[i.map(l([+a[f],+o[f]],f)),i.map(l([+s[f],+c[f]],f))]);return[e,u]};Xg.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:$E,channels:[...ii({shapes:Object.keys($E)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:IE},{type:jE}],postInference:[...Or(),...yo()]};var dU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=dU(o,["color"]),{color:l=s,src:u="",size:f=32,transform:d=""}=a;let{width:h=f,height:p=f}=t;const[[v,g]]=i,[y,m]=n.getSize();h=typeof h=="string"?Yd(h)*y:h,p=typeof p=="string"?Yd(p)*m:p;const b=v-Number(h)/2,_=g-Number(p)/2;return je(r.createElement("image",{})).call(Ae,c).style("x",b).style("y",_).style("img",u).style("stroke",l).style("transform",d).call(Ae,t).style("width",h).style("height",p).node()}};VE.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const XE={image:VE},UE=t=>{const{cartesian:e}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};UE.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:XE,channels:[...ii({shapes:Object.keys(XE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...gr(),{type:qd},{type:Zd}],postInference:[...Or(),...yo()]};var hU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iJn(o,r));return i.forEach((o,s)=>{if(s===0){n.moveTo(o[0],o[1]);return}const c=a[s],l=t[s-1],u=a[s-1];u!==void 0&&Math.abs(c-u)<1e-10?El(n,l,o,r,c):n.lineTo(o[0],o[1])}),n.closePath(),n}return cW(n,t)}const qE=(t,e)=>{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=hU(o,["color"]),{color:l=s,transform:u}=a,f=pU(i,n);return je(r.createElement("path",{})).call(Ae,c).style("d",f.toString()).style("stroke",l).style("fill",l).style("transform",u).call(Ae,t).node()}};qE.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var ZE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=ZE(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=ZE(s,["color"]),{color:u=c,transform:f}=o,d=vU(a,r);return je(i.createElement("path",{})).call(Ae,l).style("d",d.toString()).style("fill",u||c).style("stroke",u||c).style("transform",f).call(Ae,n).node()}};KE.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const QE={polygon:qE,ribbon:KE},JE=()=>(t,e,n,r)=>{const i=Object.entries(n).filter(([s])=>s.startsWith("x")).map(([,s])=>s),a=Object.entries(n).filter(([s])=>s.startsWith("y")).map(([,s])=>s),o=t.map(s=>{const c=[];for(let l=0;l{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s,transform:c}=a,{color:l,fill:u=l,stroke:f=l}=o,d=gU(o,["color","fill","stroke"]),h=yU(i,n);return je(r.createElement("path",{})).call(Ae,d).style("d",h.toString()).style("stroke",f).style("fill",s||u).style("transform",c).call(Ae,t).node()}};tA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var mU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s,transform:c}=a,l=4,{color:u,fill:f=u,stroke:d=u}=o,h=mU(o,["color","fill","stroke"]),p=bU(i,n,l);return je(r.createElement("path",{})).call(Ae,h).style("d",p.toString()).style("stroke",d).style("fill",s||f).style("transform",c).call(Ae,t).node()}};eA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const nA={box:tA,violin:eA},rA=()=>(t,e,n,r)=>{const{x:i,y:a,y1:o,y2:s,y3:c,y4:l,series:u}=n,f=e.x,d=e.series,h=Array.from(t,p=>{const v=f.getBandWidth(f.invert(+i[p])),g=d?d.getBandWidth(d.invert(+(u==null?void 0:u[p]))):1,y=v*g,m=(+(u==null?void 0:u[p])||0)*v,b=+i[p]+m+y/2,[_,O,w,M,E]=[+a[p],+o[p],+s[p],+c[p],+l[p]];return[[b-y/2,E],[b+y/2,E],[b,E],[b,M],[b-y/2,M],[b+y/2,M],[b+y/2,O],[b-y/2,O],[b-y/2,w],[b+y/2,w],[b,O],[b,_],[b-y/2,_],[b+y/2,_]].map(P=>r.map(P))});return[t,h]};rA.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:nA,channels:[...ii({shapes:Object.keys(nA)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...gr(),{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const iA={vector:Vg},aA=()=>(t,e,n,r)=>{const{x:i,y:a,size:o,rotate:s}=n,[c,l]=r.getSize(),u=t.map(f=>{const d=+s[f]/180*Math.PI,h=+o[f],p=h/c,v=h/l,g=p*Math.cos(d),y=-v*Math.sin(d);return[r.map([+i[f]-g/2,+a[f]-y/2]),r.map([+i[f]+g/2,+a[f]+y/2])]});return[t,u]};aA.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:iA,channels:[...ii({shapes:Object.keys(iA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...gr()],postInference:[...Or(),...yo()]};var oA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ir[0]).y(r=>r[1])(t);const n=e.getCenter();return Bd()({startAngle:0,endAngle:Math.PI*2,outerRadius:Jn(t[0],n),innerRadius:Jn(t[1],n)})}function OU(t,e){if(!Gn(t))return e;const[n,r]=t.getCenter();return`translate(${n}, ${r}) ${e||""}`}const Ug=(t,e)=>{const{arrow:n,arrowSize:r=4}=t,i=oA(t,["arrow","arrowSize"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,lineWidth:f}=l,d=oA(l,["color","lineWidth"]),{color:h=u,size:p=f}=c,v=n?xU(o,r,Object.assign({fill:i.stroke||h,stroke:i.stroke||h},fe(i,"arrow"))):null,g=_U(s,a),y=OU(a,c.transform);return je(o.createElement("path",{})).call(Ae,d).style("d",g).style("stroke",h).style("lineWidth",p).style("transform",y).style("markerEnd",v).call(Ae,i).node()}};Ug.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const sA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(bg)?[t,e]:[t,Dt({},e,{encode:{x:dr(n)}})]};sA.props={};const cA={line:Ug},lA=t=>(e,n,r,i)=>{const{x:a}=r,o=ds(n,r,Dt({style:{bandOffset:0}},t)),s=Array.from(e,c=>{const l=[a[c],1],u=[a[c],0];return[l,u].map(f=>i.map(o(f,c)))});return[e,s]};lA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:cA,channels:[...mc({shapes:Object.keys(cA)}),{name:"x",required:!0}],preInference:[...gr(),{type:sA}],postInference:[...Or()]};const uA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(bg)?[t,e]:[t,Dt({},e,{encode:{y:dr(n)}})]};uA.props={};const fA={line:Ug},dA=t=>(e,n,r,i)=>{const{y:a}=r,o=ds(n,r,Dt({style:{bandOffset:0}},t)),s=Array.from(e,c=>{const l=[0,a[c]],u=[1,a[c]];return[l,u].map(f=>i.map(o(f,c)))});return[e,s]};dA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:fA,channels:[...mc({shapes:Object.keys(fA)}),{name:"y",required:!0}],preInference:[...gr(),{type:uA}],postInference:[...Or()]};var hA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie[0]).y(e=>e[1])(t)}function MU(t,e,n,r,i=0){const[[a,o],[s,c]]=e;if($n(t)){const d=a+n,h=s+r,p=d+i;return[[d,o],[p,o],[p,c],[h,c]]}const l=o-n,u=c-r,f=l-i;return[[a,l],[a,f],[s,f],[s,u]]}const pA=(t,e)=>{const{offset:n=0,offset1:r=n,offset2:i=n,connectLength1:a,endMarker:o=!0}=t,s=hA(t,["offset","offset1","offset2","connectLength1","endMarker"]),{coordinate:c}=e;return(l,u,f)=>{const{color:d,connectLength1:h}=f,p=hA(f,["color","connectLength1"]),{color:v,transform:g}=u,y=MU(c,l,r,i,a!=null?a:h),m=fe(Object.assign(Object.assign({},s),f),"endMarker");return je(new ri).call(Ae,p).style("path",SU(y)).style("stroke",v||d).style("transform",g).style("markerEnd",o?new Rn({className:"marker",style:Object.assign(Object.assign({},m),{symbol:wU})}):null).call(Ae,s).node()}};pA.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const vA={connector:pA},gA=(...t)=>Xg(...t);gA.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:vA,channels:[...mc({shapes:Object.keys(vA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr()],postInference:[...Or()]};function yA(t,e,n,r){if(e)return()=>[0,1];const{[t]:i,[`${t}1`]:a}=n;return o=>{var s;const c=((s=r.getBandWidth)===null||s===void 0?void 0:s.call(r,r.invert(+a[o])))||0;return[i[o],a[o]+c]}}function qg(t={}){const{extendX:e=!1,extendY:n=!1}=t;return(r,i,a,o)=>{const s=yA("x",e,a,i.x),c=yA("y",n,a,i.y),l=Array.from(r,u=>{const[f,d]=s(u),[h,p]=c(u);return[[f,h],[d,h],[d,p],[f,p]].map(b=>o.map(b))});return[r,l]}}const mA={range:fs},bA=()=>qg();bA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:mA,channels:[...mc({shapes:Object.keys(mA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr()],postInference:[...Or()]};const xA={range:fs},_A=()=>qg({extendY:!0});_A.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:xA,channels:[...mc({shapes:Object.keys(xA)}),{name:"x",required:!0}],preInference:[...gr()],postInference:[...Or()]};const OA={range:fs},wA=()=>qg({extendX:!0});wA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:OA,channels:[...mc({shapes:Object.keys(OA)}),{name:"y",required:!0}],preInference:[...gr()],postInference:[...Or()]};var SA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n,colorAttribute:r}=t,i=SA(t,["arrow","colorAttribute"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,stroke:f}=l,d=SA(l,["color","stroke"]),{d:h,color:p=u}=c,[v,g]=a.getSize();return je(o.createElement("path",{})).call(Ae,d).style("d",typeof h=="function"?h({width:v,height:g}):h).style(r,p).call(Ae,i).node()}};Zg.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const MA=(t,e)=>Zg(Object.assign({colorAttribute:"fill"},t),e);MA.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const EA=(t,e)=>Zg(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);EA.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const AA={path:MA,hollow:EA},TA=t=>(e,n,r,i)=>[e,e.map(()=>[[0,0]])];TA.props={defaultShape:"path",defaultLabelShape:"label",shape:AA,composite:!1,channels:[...ii({shapes:Object.keys(AA)}),{name:"d",scale:"identity"}],preInference:[...gr()],postInference:[...Or()]};var EU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{render:n}=t,r=EU(t,["render"]);return i=>{const[[a,o]]=i;return n(Object.assign(Object.assign({},r),{x:a,y:o}),e)}};PA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const CA=()=>(t,e)=>{const{style:n={}}=e;return[t,Dt({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};CA.props={};const AU={shape:PA},kA=t=>{const{cartesian:e}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};kA.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:AU,channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:qd},{type:Zd},{type:CA}]};var TU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{transform:o}=i,{color:s}=a,c=TU(a,["color"]),{color:l=s}=i,[u,...f]=r,d=Wi();return d.moveTo(...u),f.forEach(([h,p])=>{d.lineTo(h,p)}),d.closePath(),je(n.createElement("path",{})).call(Ae,c).style("d",d.toString()).style("stroke",l||s).style("fill",l||s).style("fillOpacity",.4).style("transform",o).call(Ae,t).node()}};RA.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const LA={density:RA},NA=()=>(t,e,n,r)=>{const{x:i,series:a}=n,o=Object.entries(n).filter(([f])=>f.startsWith("y")).map(([,f])=>f),s=Object.entries(n).filter(([f])=>f.startsWith("size")).map(([,f])=>f);if(i===void 0||o===void 0||s===void 0)throw new Error("Missing encode for x or y or size channel.");const c=e.x,l=e.series,u=Array.from(t,f=>{const d=c.getBandWidth(c.invert(+i[f])),h=l?l.getBandWidth(l.invert(+(a==null?void 0:a[f]))):1,p=d*h,v=(+(a==null?void 0:a[f])||0)*d,g=+i[f]+v+p/2;return[...o.map((m,b)=>[g+ +s[b][f]/t.length,+o[b][f]]),...o.map((m,b)=>[g-+s[b][f]/t.length,+o[b][f]]).reverse()].map(m=>r.map(m))});return[t,u]};NA.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:LA,channels:[...ii({shapes:Object.keys(LA)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...gr(),{type:jl},{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const cpt=gv(3);function PU(t,e=(...r)=>`${r[0]}`,n=16){const r=gv(n);return(...i)=>{const a=e(...i);let o=r.get(a);return r.has(a)?r.get(a):(o=t(...i),r.set(a,o),o)}}function CU(t){return typeof t=="string"?t.split(" ").map(e=>{const[n,r]=e.split(":");return[+n,r]}):t}function Kd(t,e,n){const r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}const kU=PU((t,e,n)=>{const r=Kd(n,t*2,t*2),i=r.getContext("2d"),a=t,o=t;if(e===1)i.beginPath(),i.arc(a,o,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{const s=i.createRadialGradient(a,o,t*e,a,o,t);s.addColorStop(0,"rgba(0,0,0,1)"),s.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=s,i.fillRect(0,0,2*t,2*t)}return r},t=>`${t}`);function RU(t,e){const r=Kd(e,256,1).getContext("2d"),i=r.createLinearGradient(0,0,256,1);return CU(t).forEach(([a,o])=>{i.addColorStop(a,o)}),r.fillStyle=i,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}function LU(t,e,n,r,i,a){const{blur:o}=i;let s=r.length;for(;s--;){const{x:c,y:l,value:u,radius:f}=r[s],d=Math.min(u,n),h=c-f,p=l-f,v=kU(f,1-o,a),g=(d-e)/(n-e);t.globalAlpha=Math.max(g,.001),t.drawImage(v,h,p)}return t}function NU(t,e,n,r,i){const{minOpacity:a,opacity:o,maxOpacity:s,useGradientOpacity:c}=i,l=0,u=0,f=e,d=n,h=t.getImageData(l,u,f,d),p=h.data,v=p.length;for(let g=3;g{const i=t[r];return e(i,r)||(n[r]=i),n},{})}const IA=(t,e)=>{const{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:s}=t,c=jU(t,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:l,createCanvas:u,document:f}=e;return(d,h,p)=>{const{transform:v}=h,[g,y]=l.getSize(),m=d.map(M=>({x:M[0],y:M[1],value:M[2],radius:M[3]})),b=Ei(d,M=>M[2]),_=Mn(d,M=>M[2]),w=g&&y?IU(g,y,b,_,m,DU({gradient:n,opacity:r,minOpacity:a,maxOpacity:i,blur:o,useGradientOpacity:s},M=>M===void 0),u):{canvas:null};return je(f.createElement("image",{})).call(Ae,p).style("x",0).style("y",0).style("width",g).style("height",y).style("src",w.canvas).style("transform",v).call(Ae,c).node()}};IA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const jA={heatmap:IA},DA=t=>(e,n,r,i)=>{const{x:a,y:o,size:s,color:c}=r,l=Array.from(e,u=>{const f=s?+s[u]:40;return[...i.map([+a[u],+o[u]]),c[u],f]});return[[0],[l]]};DA.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:jA,channels:[...ii({shapes:Object.keys(jA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...gr(),{type:ls},{type:Ud}],postInference:[...Or(),...yo()]};const BA=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];BA.props={};const FA=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];FA.props={};const zA=t=>new Vr(t);zA.props={};const Qd=Symbol("defaultUnknown");function GA(t,e,n){for(let r=0;r`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}class Jd extends xl{getDefaultOptions(){return{domain:[],range:[],unknown:Qd}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&GA(this.domainIndexMap,this.getDomain(),this.domainKey),WA({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&GA(this.rangeIndexMap,this.getRange(),this.rangeKey),WA({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=HA(n),this.rangeKey=HA(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new Jd(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}}const YA=t=>new Jd(t);YA.props={};function $A({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):n}function BU({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function FU({map:t,initKey:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function zU(t){return typeof t=="object"?t.valueOf():t}class VA extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=zU,e!==null)for(const[n,r]of e)this.set(n,r)}get(e){return super.get($A({map:this.map,initKey:this.initKey},e))}has(e){return super.has($A({map:this.map,initKey:this.initKey},e))}set(e,n){return super.set(BU({map:this.map,initKey:this.initKey},e),n)}delete(e){return super.delete(FU({map:this.map,initKey:this.initKey},e))}}function GU(t){const e=Math.min(...t);return t.map(n=>n/e)}function WU(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function HU(t){return Math.round(t*1e12)/1e12}function YU(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=WU(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=GU(l),m=y.reduce((j,N)=>j+N),b=g/m,_=new VA(e.map((j,N)=>{const k=y[N]*b;return[j,o?Math.floor(k):k]})),O=new VA(e.map((j,N)=>{const R=y[N]*b+v;return[j,o?Math.floor(R):R]})),w=Array.from(O.values()).reduce((j,N)=>j+N),E=(d-(w-w/c*i))*s,A=u+E;let P=o?Math.round(A):A;const C=new Array(c);for(let j=0;jd+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}class mo extends Jd{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Qd,flex:[]}}constructor(e){super(e)}clone(){return new mo(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=$U({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}}const XA=t=>new mo(t);XA.props={};class th extends xl{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:Rv}}map(e){return od(e)?e:this.options.unknown}invert(e){return this.map(e)}clone(){return new th(this.options)}getTicks(){const{domain:e,tickCount:n,tickMethod:r}=this.options,[i,a]=e;return!Zs(i)||!Zs(a)?[]:r(i,a,n)}}const UA=t=>new th(t);UA.props={};class Kg extends mo{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Qd,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new Kg(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}const qA=t=>new Kg(t);qA.props={};var ZA=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,bo="\\d\\d?",xo="\\d\\d",VU="\\d{3}",XU="\\d{4}",Gl="[^\\s]+",KA=/\[([^]*?)\]/gm;function QA(t,e){for(var n=[],r=0,i=t.length;r-1?i:null}};function hs(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},eh=hs({},nT),ZU=function(t){return eh=hs(eh,t)},rT=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},yi=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+yi(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+yi(Math.floor(Math.abs(e)/60),2)+":"+yi(Math.abs(e)%60,2)}},iT=function(t){return+t-1},aT=[null,bo],oT=[null,Gl],sT=["isPm",Gl,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],cT=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],QU={D:["day",bo],DD:["day",xo],Do:["day",bo+Gl,function(t){return parseInt(t,10)}],M:["month",bo,iT],MM:["month",xo,iT],YY:["year",xo,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",bo,void 0,"isPm"],hh:["hour",xo,void 0,"isPm"],H:["hour",bo],HH:["hour",xo],m:["minute",bo],mm:["minute",xo],s:["second",bo],ss:["second",xo],YYYY:["year",XU],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",xo,function(t){return+t*10}],SSS:["millisecond",VU],d:aT,dd:aT,ddd:oT,dddd:oT,MMM:["month",Gl,JA("monthNamesShort")],MMMM:["month",Gl,JA("monthNames")],a:sT,A:sT,ZZ:cT,Z:cT},nh={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},JU=function(t){return hs(nh,t)},lT=function(t,e,n){if(e===void 0&&(e=nh.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=nh[e]||e;var r=[];e=e.replace(KA,function(a,o){return r.push(o),"@@@"});var i=hs(hs({},eh),n);return e=e.replace(ZA,function(a){return KU[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};function tq(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=nh[e]||e,t.length>1e3)return null;var r=new Date,i={year:r.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=e.replace(KA,function(_,O){return o.push(rT(O)),"@@@"}),c={},l={};s=rT(s).replace(ZA,function(_){var O=QU[_],w=O[0],M=O[1],E=O[3];if(c[w])throw new Error("Invalid format. "+w+" specified twice in format");return c[w]=!0,E&&(l[E]=!0),a.push(O),"("+M+")"}),Object.keys(l).forEach(function(_){if(!c[_])throw new Error("Invalid format. "+_+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var f=hs(hs({},eh),n),d=1;d11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return y}var lpt={format:lT,parse:tq,defaultI18n:nT,setGlobalDateI18n:ZU,setGlobalDateMasks:JU},upt=null;const Wl=1e3,Hl=Wl*60,Yl=Hl*60,ps=Yl*24,xc=ps*7,uT=ps*30,fT=ps*365;function Zr(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;+g<+u;n(g,p),a(g))h.push(new Date(+g));return h},duration:t}}const eq=Zr(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),nq=Zr(Wl,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+Wl*e)},t=>t.getSeconds()),rq=Zr(Hl,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+Hl*e)},t=>t.getMinutes()),iq=Zr(Yl,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Yl*e)},t=>t.getHours()),aq=Zr(ps,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ps*e)},t=>t.getDate()-1),dT=Zr(uT,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),oq=Zr(xc,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+xc*e)},t=>{const e=dT.floor(t),n=new Date(+t);return Math.floor((+n-+e)/xc)}),sq=Zr(fT,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),hT={millisecond:eq,second:nq,minute:rq,hour:iq,day:aq,week:oq,month:dT,year:sq},cq=Zr(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),lq=Zr(Wl,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+Wl*e)},t=>t.getUTCSeconds()),uq=Zr(Hl,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+Hl*e)},t=>t.getUTCMinutes()),fq=Zr(Yl,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Yl*e)},t=>t.getUTCHours()),dq=Zr(ps,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ps*e)},t=>t.getUTCDate()-1),pT=Zr(uT,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),hq=Zr(xc,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+xc*e)},t=>{const e=pT.floor(t),n=new Date(+t);return Math.floor((+n-+e)/xc)}),pq=Zr(fT,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),vT={millisecond:cq,second:lq,minute:uq,hour:fq,day:dq,week:hq,month:pT,year:pq};function vq(t){const e=t?vT:hT,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function gT(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=vq(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Mv(s,d,0,h,u);let v;if(p===h){const g=B2(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=gT(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u},yq=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=gT(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};function mq(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)+r,r=>new Date(r)]}chooseNice(){return yq}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?vT:hT,i=n?bq:ts;return a=>lT(i(a),e||mq(a,r))}clone(){return new Qg(this.options)}}const yT=t=>new Qg(t);yT.props={};const mT=t=>e=>-t(-e),Jg=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?mT(r):r},ty=(t,e)=>{const n=t===Math.E?Math.exp:r=>wr(t,r);return e?mT(n):n},xq=(t,e,n,r=10)=>{const i=t<0,a=ty(r,i),o=Jg(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2{const i=t<0,a=Jg(r,i),o=ty(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u};class ey extends cd{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:_l,tickMethod:xq,tickCount:5}}chooseNice(){return _q}getTickMethodOptions(){const{domain:e,tickCount:n,base:r}=this.options,i=e[0],a=e[e.length-1];return[i,a,n,r]}chooseTransforms(){const{base:e,domain:n}=this.options,r=n[0]<0;return[Jg(e,r),ty(e,r)]}clone(){return new ey(this.options)}}const bT=t=>new ey(t);bT.props={};const Oq=t=>e=>e<0?-wr(-e,t):wr(e,t),wq=t=>e=>e<0?-wr(-e,1/t):wr(e,1/t),Sq=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class rh extends cd{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:_l,tickMethod:es,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[ts,ts];const n=e===.5?Sq:Oq(e),r=wq(e);return[n,r]}clone(){return new rh(this.options)}}const xT=t=>new rh(t);xT.props={};class ny extends rh{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:_l,tickMethod:es,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new ny(this.options)}}const _T=t=>new ny(t);_T.props={};const OT=t=>new Js(t);OT.props={};const wT=t=>new pd(t);wT.props={};const ST=t=>new hd(t);ST.props={};const Mq=t=>e=>{const n=t(e);return Zs(n)?Math.round(n):n};function Eq(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?Mq(o):o;this.output=Ks(l,c,i,r)},n.prototype.invert=void 0}}var Aq=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},ry;function Tq(t){return[t(0),t(1)]}const Pq=t=>{const[e,n]=t;return Ks(Qs(0,1),ad(e,n))};let iy=ry=class extends Vr{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:ts,tickMethod:es,tickCount:5}}constructor(e){super(e)}clone(){return new ry(this.options)}};iy=ry=Aq([Eq(Tq,Pq)],iy);const MT=t=>new iy(t);MT.props={};const ET=t=>new Sl(t);ET.props={};function ay({colorDefault:t,colorBlack:e,colorWhite:n,colorStroke:r,colorBackground:i,padding1:a,padding2:o,padding3:s,alpha90:c,alpha65:l,alpha45:u,alpha25:f,alpha10:d,category10:h,category20:p,sizeDefault:v=1,padding:g="auto",margin:y=16}){return{padding:g,margin:y,size:v,color:t,category10:h,category20:p,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:i,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:e,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,strokeWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,strokeWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:e,gridStrokeOpacity:d,labelAlign:"horizontal",labelFill:e,labelOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:a,line:!1,lineLineWidth:.5,lineStroke:e,lineStrokeOpacity:u,tickLength:4,tickLineWidth:1,tickStroke:e,tickOpacity:u,titleFill:e,titleOpacity:c,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",label:!1,tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:e,itemLabelFillOpacity:c,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,itemSpacing:[a,a],itemValueFill:e,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:e,navButtonFillOpacity:.65,navPageNumFill:e,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:e,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:e,tickStrokeOpacity:.25,rowPadding:a,colPadding:o,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:e,handleLabelFillOpacity:u,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:e,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:e,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:e,labelFillOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:c,tickStroke:e,tickStrokeOpacity:u},label:{fill:e,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:e,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:e,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:t,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:e,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:e,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:e,titleFillOpacity:c,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:e,subtitleFillOpacity:l,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"}}}const Cq=ay({colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),oy=t=>Dt({},Cq,t);oy.props={};const AT=t=>Dt({},oy(),{category10:"category10",category20:"category20"},t);AT.props={};const kq=ay({colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"#141414",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25}),TT=t=>Dt({},kq,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},t),PT=t=>Object.assign({},TT(),{category10:"category10",category20:"category20"},t);PT.props={};const Rq=ay({colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),CT=t=>Dt({},Rq,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(e,n)=>n!==0},axisRight:{gridFilter:(e,n)=>n!==0},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},t);CT.props={};const kT=t=>(...e)=>{const n=lo(Object.assign({},{crossPadding:50},t))(...e);return q2(n,t),n};kT.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"bottom"});function ppt(){}const RT=t=>(...e)=>{const n=lo(Object.assign({},{crossPadding:10},t))(...e);return q2(n,t),n};RT.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"left"});var sy=function(){},Lq=function(t,e,n){var r=t,i=er(e)?e.split("."):e;return i.forEach(function(a,o){o1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var n=this.pageViews,r=(0,S.CR)(Iq(n.map(function(f){var d=f.getBBox(),h=d.width,p=d.height;return[h,p]})).map(function(f){return Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(f),!1))}),2),i=r[0],a=r[1],o=this.attributes,s=o.pageWidth,c=s===void 0?i:s,l=o.pageHeight,u=l===void 0?a:l;return{pageWidth:c,pageHeight:u}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=t.prototype.getBBox.call(this),r=n.x,i=n.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,c=o.pageHeight;return new Qn(r,i,s+a.width,c)},e.prototype.goTo=function(n){var r=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,c=a.playWindow,l=a.pageViews;if(s!=="idle"||n<0||l.length<=0||n>=l.length)return null;l[o].setLocalPosition(0,0),this.prepareFollowingPage(n);var u=(0,S.CR)(this.getFollowingPageDiff(n),2),f=u[0],d=u[1];this.playState="running";var h=H_(c,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-f,", ").concat(-d,")")}],i);return Xs(h,function(){r.innerCurrPage=n,r.playState="idle",r.setVisiblePages([n]),r.updatePageInfo()}),h},e.prototype.prev=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i<=0)return null;var a=n?(i-1+r)%r:(0,cr.Z)(i-1,0,r);return this.goTo(a)},e.prototype.next=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i>=r-1)return null;var a=n?(i+1)%r:(0,cr.Z)(i+1,0,r);return this.goTo(a)},e.prototype.renderClipPath=function(n){var r=this.pageShape,i=r.pageWidth,a=r.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=n.maybeAppendByClassName(Yi.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(n){this.playWindow.children.forEach(function(r,i){n.includes(i)?hl(r):co(r)})},e.prototype.adjustControllerLayout=function(){var n=this,r=n.prevBtnGroup,i=n.nextBtnGroup,a=n.pageInfoGroup,o=this.attributes,s=o.orientation,c=o.controllerPadding,l=a.getBBox(),u=l.width,f=l.height,d=(0,S.CR)(s==="horizontal"?[-180,0]:[-90,90],2),h=d[0],p=d[1];r.setLocalEulerAngles(h),i.setLocalEulerAngles(p);var v=r.getBBox(),g=v.width,y=v.height,m=i.getBBox(),b=m.width,_=m.height,O=Math.max(g,u,b),w=s==="horizontal"?{offset:[[0,0],[g/2+c,0],[g+u+c*2,0]],textAlign:"start"}:{offset:[[O/2,-y-c],[O/2,0],[O/2,_+c]],textAlign:"center"},M=(0,S.CR)(w.offset,3),E=(0,S.CR)(M[0],2),A=E[0],P=E[1],C=(0,S.CR)(M[1],2),j=C[0],N=C[1],k=(0,S.CR)(M[2],2),R=k[0],D=k[1],B=w.textAlign,F=a.querySelector("text");F&&(F.style.textAlign=B),r.setLocalPosition(A,P),a.setLocalPosition(j,N),i.setLocalPosition(R,D)},e.prototype.updatePageInfo=function(){var n,r=this,i=r.currPage,a=r.pageViews,o=r.attributes.formatter;a.length<2||((n=this.pageInfoGroup.querySelector(Yi.pageInfo.class))===null||n===void 0||n.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(n){var r=this.currPage;if(r===n)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,c=n=2,l=n.maybeAppendByClassName(Yi.controller,"g");if(Xf(l.node(),c),!!c){var u=en(this.attributes,"button"),f=en(this.attributes,"pageNum"),d=(0,S.CR)(Na(u),2),h=d[0],p=d[1],v=h.size,g=(0,S._T)(h,["size"]),y=!l.select(Yi.prevBtnGroup.class).node(),m=l.maybeAppendByClassName(Yi.prevBtnGroup,"g").styles(p);this.prevBtnGroup=m.node();var b=m.maybeAppendByClassName(Yi.prevBtn,"path"),_=l.maybeAppendByClassName(Yi.nextBtnGroup,"g").styles(p);this.nextBtnGroup=_.node();var O=_.maybeAppendByClassName(Yi.nextBtn,"path");[b,O].forEach(function(M){M.styles((0,S.pi)((0,S.pi)({},g),{transformOrigin:"center"})),hv(M.node(),v,!0)});var w=l.maybeAppendByClassName(Yi.pageInfoGroup,"g");this.pageInfoGroup=w.node(),w.maybeAppendByClassName(Yi.pageInfo,"text").styles(f),this.updatePageInfo(),l.node().setLocalPosition(o+i,s/2),y&&(this.prevBtnGroup.addEventListener("click",function(){r.prev()}),this.nextBtnGroup.addEventListener("click",function(){r.next()}))}},e.prototype.render=function(n,r){var i=qe(r);this.renderClipPath(i),this.renderController(i),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var n=this,r=d_(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(Ie.INSERTED,r),this.playWindow.addEventListener(Ie.REMOVED,r)},e}(Rr),Ai=Bi({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item");function Dq(t){var e=t.querySelector(Ai.marker.class);return e?e.style:{}}var Bq=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{span:[1,1],marker:function(){return new nl({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return Object.defineProperty(e.prototype,"showValue",{get:function(){var n=this.attributes.valueText;return n?typeof n=="string"||typeof n=="number"?n!=="":typeof n=="function"?!0:n.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var n=this.labelGroup,r=this.valueGroup,i=this.attributes.markerSize,a=n.node().getBBox(),o=a.width,s=a.height,c=r.node().getBBox(),l=c.width,u=c.height;return{markerWidth:i,labelWidth:o,valueWidth:l,height:Math.max(i,s,u)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var n=this.attributes.span;if(!n)return[1,1];var r=(0,S.CR)(zr(n),2),i=r[0],a=r[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n,r=this.attributes,i=r.markerSize,a=r.width,o=this.actualSpace,s=o.markerWidth,c=o.height,l=this.actualSpace,u=l.labelWidth,f=l.valueWidth,d=(0,S.CR)(this.spacing,2),h=d[0],p=d[1];if(a){var v=a-i-h-p,g=(0,S.CR)(this.span,2),y=g[0],m=g[1];n=(0,S.CR)([y*v,m*v],2),u=n[0],f=n[1]}var b=s+u+f+h+p;return{width:b,height:c,markerWidth:s,labelWidth:u,valueWidth:f}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var n=this.attributes.spacing;if(!n)return[0,0];var r=(0,S.CR)(zr(n),2),i=r[0],a=r[1];return this.showValue?[i,a]:[i,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var n=this.shape,r=n.markerWidth,i=n.labelWidth,a=n.valueWidth,o=n.width,s=n.height,c=(0,S.CR)(this.spacing,2),l=c[0],u=c[1];return{height:s,width:o,markerWidth:r,labelWidth:i,valueWidth:a,position:[r/2,r+l,r+i+l+u]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var n=Dq(this.markerGroup.node()),r=this.attributes,i=r.markerSize,a=r.markerStrokeWidth,o=a===void 0?n.strokeWidth:a,s=r.markerLineWidth,c=s===void 0?n.lineWidth:s,l=r.markerStroke,u=l===void 0?n.stroke:l,f=+(o||c||(u?1:0))*Math.sqrt(2),d=this.markerGroup.node().getBBox(),h=d.width,p=d.height;return(1-f/Math.max(h,p))*i},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(n){var r=this,i=this.attributes.marker,a=en(this.attributes,"marker");this.markerGroup=n.maybeAppendByClassName(Ai.markerGroup,"g").style("zIndex",0),vi(!!i,this.markerGroup,function(){var o=r.markerGroup.node(),s=o.getElementsByClassName(Ai.marker.name)[0],c=i();s?c.nodeName===s.nodeName?(lF(s,c),qe(s).styles(a)):(s.remove(),qe(c).attr("className",Ai.marker.name).styles(a),o.appendChild(c)):(qe(c).attr("className",Ai.marker.name).styles(a),o.appendChild(c)),r.markerGroup.node().scale(1/r.markerGroup.node().getScale()[0]),hv(r.markerGroup.node(),r.scaleSize,!0)})},e.prototype.renderLabel=function(n){var r=en(this.attributes,"label"),i=r.text,a=(0,S._T)(r,["text"]);this.labelGroup=n.maybeAppendByClassName(Ai.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(Ai.label,function(){return Jo(i)}).styles(a)},e.prototype.renderValue=function(n){var r=this,i=en(this.attributes,"value"),a=i.text,o=(0,S._T)(i,["text"]);this.valueGroup=n.maybeAppendByClassName(Ai.valueGroup,"g").style("zIndex",0),vi(this.showValue,this.valueGroup,function(){r.valueGroup.maybeAppendByClassName(Ai.value,function(){return Jo(a)}).styles(o)})},e.prototype.renderBackground=function(n){var r=this.shape,i=r.width,a=r.height,o=en(this.attributes,"background");this.background=n.maybeAppendByClassName(Ai.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(Ai.background,"rect").styles((0,S.pi)({width:i,height:a},o))},e.prototype.adjustLayout=function(){var n=this.layout,r=n.labelWidth,i=n.valueWidth,a=n.height,o=(0,S.CR)(n.position,3),s=o[0],c=o[1],l=o[2],u=a/2;this.markerGroup.styles({x:s,y:u}),this.labelGroup.styles({x:c,y:u}),mv(this.labelGroup.select(Ai.label.class).node(),Math.ceil(r)),this.showValue&&(this.valueGroup.styles({x:l,y:u}),mv(this.valueGroup.select(Ai.value.class).node(),Math.ceil(i)))},e.prototype.render=function(n,r){var i=qe(r);this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.adjustLayout()},e}(Rr),vs=Bi({page:"item-page",navigator:"navigator",item:"item"},"items"),LT=function(t,e,n){return n===void 0&&(n=!0),t?e(t):n},Fq=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:sy,mouseenter:sy,mouseleave:sy})||this;return r.navigatorShape=[0,0],r}return Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var n=this.attributes,r=n.gridRow,i=n.gridCol,a=n.data;if(!r&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return r&&i?[r,i]:r?[r,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var n=this.attributes,r=n.data,i=n.layout,a=en(this.attributes,"item"),o=r.map(function(s,c){var l=s.id,u=l===void 0?c:l,f=s.label,d=s.value;return{id:"".concat(u),index:c,style:(0,S.pi)({layout:i,labelText:f,valueText:d},Object.fromEntries(Object.entries(a).map(function(h){var p=(0,S.CR)(h,2),v=p[0],g=p[1];return[v,Fi(g,[s,c,r])]})))}});return o},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var n=this,r=this.attributes,i=r.orientation,a=r.width,o=r.rowPadding,s=r.colPadding,c=(0,S.CR)(this.navigatorShape,1),l=c[0],u=(0,S.CR)(this.grid,2),f=u[0],d=u[1],h=d*f,p=0;return this.pageViews.children.map(function(v,g){var y,m,b=Math.floor(g/h),_=g%h,O=n.ifHorizontal(d,f),w=[Math.floor(_/O),_%O];i==="vertical"&&w.reverse();var M=(0,S.CR)(w,2),E=M[0],A=M[1],P=(a-l-(d-1)*s)/d,C=v.getBBox().height,j=(0,S.CR)([0,0],2),N=j[0],k=j[1];return i==="horizontal"?(y=(0,S.CR)([p,E*(C+o)],2),N=y[0],k=y[1],p=A===d-1?0:p+P+s):(m=(0,S.CR)([A*(P+s),p],2),N=m[0],k=m[1],p=E===f-1?0:p+C+o),{page:b,index:g,row:E,col:A,pageIndex:_,width:P,height:C,x:N,y:k}})},e.prototype.getFlexLayout=function(){var n=this.attributes,r=n.width,i=n.height,a=n.rowPadding,o=n.colPadding,s=(0,S.CR)(this.navigatorShape,1),c=s[0],l=(0,S.CR)(this.grid,2),u=l[0],f=l[1],d=(0,S.CR)([r-c,i],2),h=d[0],p=d[1],v=(0,S.CR)([0,0,0,0,0,0,0,0],8),g=v[0],y=v[1],m=v[2],b=v[3],_=v[4],O=v[5],w=v[6],M=v[7];return this.pageViews.children.map(function(E,A){var P,C,j,N,k=E.getBBox(),R=k.width,D=k.height,B=w===0?0:o,F=w+B+R;if(F<=h&<(_,function(Y){return Y0?(this.navigatorShape=[55,0],n.call(this)):r},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){var i=this.attributes.orientation;return da(i,n,r)},e.prototype.flattenPage=function(n){n.querySelectorAll(vs.item.class).forEach(function(r){n.appendChild(r)}),n.querySelectorAll(vs.page.class).forEach(function(r){var i=n.removeChild(r);i.destroy()})},e.prototype.renderItems=function(n){var r=this.attributes,i=r.click,a=r.mouseenter,o=r.mouseleave;this.flattenPage(n);var s=this.dispatchCustomEvent.bind(this);qe(n).selectAll(vs.item.class).data(this.renderData,function(c){return c.id}).join(function(c){return c.append(function(l){var u=l.style;return new Bq({style:u})}).attr("className",vs.item.name).on("click",function(){i==null||i(this),s("itemClick",{item:this})}).on("pointerenter",function(){a==null||a(this),s("itemMouseenter",{item:this})}).on("pointerleave",function(){o==null||o(this),s("itemMouseleave",{item:this})})},function(c){return c.each(function(l){var u=l.style;this.update(u)})},function(c){return c.remove()})},e.prototype.relayoutNavigator=function(){var n,r=this.attributes,i=r.layout,a=r.width,o=((n=this.pageViews.children[0])===null||n===void 0?void 0:n.getBBox().height)||0,s=(0,S.CR)(this.navigatorShape,2),c=s[0],l=s[1];this.navigator.update(i==="grid"?{pageWidth:a-c,pageHeight:o-l}:{})},e.prototype.adjustLayout=function(){var n=this,r=Object.entries(Nq(this.itemsLayout,"page")).map(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];return{page:s,layouts:c}}),i=(0,S.ev)([],(0,S.CR)(this.navigator.getContainer().children),!1);r.forEach(function(a){var o=a.layouts,s=n.pageViews.appendChild(new Br({className:vs.page.name}));o.forEach(function(c){var l=c.x,u=c.y,f=c.index,d=c.width,h=c.height,p=i[f];s.appendChild(p),Lq(p,"__layout__",c),p.update({x:l,y:u,width:d,height:h})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(n){var r=this.attributes.orientation,i=en(this.attributes,"nav"),a=Ra({orientation:r},i),o=this;return n.selectAll(vs.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new jq({style:a})}).attr("className",vs.navigator.name).each(function(){o.navigator=this})},function(s){return s.each(function(){this.update(a)})},function(s){return s.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(n,r){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(qe(r));this.renderItems(a.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(n,r){var i=new Nn(n,{detail:r});this.dispatchEvent(i)},e}(Rr),zq=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,EG)||this}return e.prototype.renderTitle=function(n,r,i){var a=this.attributes,o=a.showTitle,s=a.titleText,c=en(this.attributes,"title"),l=(0,S.CR)(Na(c),2),u=l[0],f=l[1];this.titleGroup=n.maybeAppendByClassName(Lr.titleGroup,"g").styles(f);var d=(0,S.pi)((0,S.pi)({width:r,height:i},u),{text:o?s:""});this.title=this.titleGroup.maybeAppendByClassName(Lr.title,function(){return new O2({style:d})}).update(d)},e.prototype.renderItems=function(n,r){var i=r.x,a=r.y,o=r.width,s=r.height,c=en(this.attributes,"title",!0),l=(0,S.CR)(Na(c),2),u=l[0],f=l[1],d=(0,S.pi)((0,S.pi)({},u),{width:o,height:s,x:0,y:0});this.itemsGroup=n.maybeAppendByClassName(Lr.itemsGroup,"g").styles((0,S.pi)({x:i,y:a},f));var h=this;this.itemsGroup.selectAll(Lr.items.class).data(["items"]).join(function(p){return p.append(function(){return new Fq({style:d})}).attr("className",Lr.items.name).each(function(){h.items=qe(this)})},function(p){return p.update(d)},function(p){return p.remove()})},e.prototype.adjustLayout=function(){var n=this.attributes.showTitle;if(n){var r=this.title.node().getAvailableSpace(),i=r.x,a=r.y;this.itemsGroup.node().setLocalPosition(i,a)}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes,r=n.showTitle,i=n.width,a=n.height;return r?this.title.node().getAvailableSpace():new Qn(0,0,i,a)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n,r,i=(n=this.title)===null||n===void 0?void 0:n.node(),a=(r=this.items)===null||r===void 0?void 0:r.node();return!i||!a?t.prototype.getBBox.call(this):CF(i,a)},e.prototype.render=function(n,r){var i=n.width,a=n.height,o=qe(r);this.renderTitle(o,i,a),this.renderItems(o,this.availableSpace),this.adjustLayout()},e}(Rr);function Gq(t){if(ll(t)){var e=t;return e[e.length-1]}}var Wq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?r==null?void 0:r.getOptions().domain:c.data).map((d,h)=>{var p;return i?i.map(d||"point"):((p=s==null?void 0:s.style)===null||p===void 0?void 0:p.shape)||c.defaultShape||"point"});typeof l=="string"&&a.push([l,f])}if(a.length===0)return["point",["point"]];if(a.length===1||!n)return a[0];const{range:o}=n.getOptions();return a.map(([s,c])=>{let l=0;for(let u=0;uc[0]-s[0])[0][1]}function Yq(t,e){const{scales:n,library:r,markState:i}=e,[a,o]=Hq(n,i),{itemMarker:s,itemMarkerSize:c}=t,l=(d,h)=>{var p,v,g;const y=((g=(v=(p=r[`mark.${a}`])===null||p===void 0?void 0:p.props)===null||v===void 0?void 0:v.shape[d])===null||g===void 0?void 0:g.props.defaultMarker)||Gq(d.split(".")),m=typeof c=="function"?c(h):c;return()=>eU(y,{color:h.color})(0,0,m)},u=d=>`${o[d]}`;return ua(n,"shape")&&!s?(d,h)=>l(u(h),d):typeof s=="function"?(d,h)=>{const p=s(d.id,h);return typeof p=="string"?l(p,d):p}:(d,h)=>l(s||u(h),d)}function $q(t){const e=ua(t,"opacity");if(e){const{range:n}=e.getOptions();return(r,i)=>n[i]}}function Vq(t,e){const n=ua(t,"size");return n instanceof th?n.map(NaN)*2:e}function Xq(t,e){const{labelFormatter:n=d=>`${d}`}=t,{scales:r,theme:i}=e,a=i.legendCategory.itemMarkerSize,o=Vq(r,a),s={itemMarker:Yq(Object.assign(Object.assign({},t),{itemMarkerSize:o}),e),itemMarkerSize:o,itemMarkerOpacity:$q(r)},c=typeof n=="string"?oo(n):n,l=ua(r,"color"),u=Nz(r),f=l?d=>l.map(d):()=>e.theme.color;return Object.assign(Object.assign({},s),{data:u.map(d=>({id:d,label:c(d),color:f(d)}))})}function Uq(t,e,n){const{position:r}=e;if(r==="center"){const{bbox:o}=t,{width:s,height:c}=o;return{width:s,height:c}}const{width:i,height:a}=X2(t,e,n);return{width:i,height:a}}const cy=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,cols:c,itemMarker:l}=t,u=Wq(t,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:f}=u;return d=>{const{value:h,theme:p}=d,{bbox:v}=h,{width:g,height:y}=Uq(h,t,cy),m=$2(a,n),b=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(a)?"vertical":"horizontal",width:g,height:y,layout:c!==void 0?"grid":"flex"},c!==void 0&&{gridCol:c}),f!==void 0&&{gridRow:f}),{titleText:ld(s)}),Xq(t,d)),{legendCategory:_={}}=p,O=ud(Object.assign({},_,b,u)),w=new kz({style:Object.assign(Object.assign({x:v.x,y:v.y,width:v.width,height:v.height},m),{subOptions:O})});return w.appendChild(new zq({className:"legend-category",style:O})),w}};cy.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const NT=t=>()=>new Br;NT.props={};var qq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(!i)return d.node().remove();d.node().attr(Object.assign(Object.assign(Object.assign({},IT(0,f.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),l))})}}),jT=t=>({value:e,theme:n})=>{const{x:r,y:i,width:a,height:o}=e.bbox;return new Zq({style:Dt({},n.title,Object.assign({x:r,y:i,width:a,height:o},t))})};jT.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};var ly=function(t){if(typeof t!="object"||t===null)return t;var e;if(Dr(t)){e=[];for(var n=0,r=t.length;no&&(n=(0,S.CR)([o,s],2),s=n[0],o=n[1]),t.map(function(c){var l=c.map(function(u,f){return[r.map(f),(0,cr.Z)(i.map(u),s,o)]});return l})}function $l(t,e){e===void 0&&(e=!1);var n=e?t.length-1:0,r=t.map(function(i,a){return(0,S.ev)([a===n?"M":"L"],(0,S.CR)(i),!1)});return e?r.reverse():r}function ih(t,e){if(e===void 0&&(e=!1),t.length<=2)return $l(t);for(var n=[],r=t.length,i=0;i=0;i-=1){var a=t[i],o=$l(a),s=void 0;if(i===0)s=fy(o,e,n);else{var c=t[i-1],l=$l(c,!0);l[0][0]="L",s=(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(o),!1),(0,S.CR)(l),!1),[["Z"]],!1)}r.push(s)}return r}function iZ(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=ih(a),s=void 0;if(i===0)s=fy(o,e,n);else{var c=t[i-1],l=ih(c,!0),u=a[0];l[0][0]="L",s=(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(o),!1),(0,S.CR)(l),!1),[(0,S.ev)(["M"],(0,S.CR)(u),!1),["Z"]],!1)}r.push(s)}return r}var aZ=function(t,e){if(Dr(t)){for(var n,r=1/0,i=0;ir&&(n=a,r=o)}return n}};function DT(t){return t.length===0?[0,0]:[af(aZ(t,function(e){return af(e)||0})),of(oZ(t,function(e){return of(e)||0}))]}function BT(t){for(var e=uy(t),n=e[0].length,r=(0,S.CR)([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],a=r[1],o=0;o=0?(s[c]+=i[c],i[c]=s[c]):(s[c]+=a[c],a[c]=s[c]);return e}var sZ=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{type:"line",width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(e.prototype,"rawData",{get:function(){var n=this.attributes.data;if(!n||(n==null?void 0:n.length)===0)return[[]];var r=uy(n);return(0,xr.Z)(r[0])?[r]:r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?BT(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var n=this.scales.y,r=(0,S.CR)(n.getOptions().domain||[0,0],2),i=r[0],a=r[1];return a<0?n.map(a):n.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var n=this.attributes,r=n.width,i=n.height;return{width:r,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var n=this,r=this.attributes,i=r.type,a=r.isStack,o=r.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=en(this.attributes,"area"),c=en(this.attributes,"line"),l=this.containerShape.width,u=this.data;if(u[0].length===0)return{lines:[],areas:[]};var f=this.scales,d=f.x,h=f.y,p=eZ(u,{type:"line",x:d,y:h}),v=[];if(s){var g=this.baseline;a?v=o?iZ(p,l,g):rZ(p,l,g):v=nZ(p,o,l,g)}return{lines:p.map(function(y,m){return(0,S.pi)({stroke:n.getColor(m),path:o?ih(y):$l(y)},c)}),areas:v.map(function(y,m){return(0,S.pi)({path:y,fill:n.getColor(m)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var n=this,r=en(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var c=this.containerShape.height,l=this.rawData;if(!l)return{columns:[]};a&&(l=BT(l));var u=this.createScales(l),f=u.x,d=u.y,h=(0,S.CR)(DT(l),2),p=h[0],v=h[1],g=new Vr({domain:[0,v-(p>0?0:p)],range:[0,c*s]}),y=f.getBandWidth(),m=this.rawData;return{columns:l.map(function(b,_){return b.map(function(O,w){var M=y/l.length,E=function(){return{x:f.map(w)+M*_,y:O>=0?d.map(O):d.map(0),width:M,height:g.map(Math.abs(O))}},A=function(){return{x:f.map(w),y:d.map(O),width:y,height:g.map(m[_][w])}};return(0,S.pi)((0,S.pi)({fill:n.getColor(_)},r),a?A():E())})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){_B(r,".container","rect").attr("className","container").node();var i=n.type,a="spark".concat(i),o=i==="line"?this.linesStyle:this.columnsStyle;qe(r).selectAll(".spark").data([i]).join(function(s){return s.append(function(c){return c==="line"?new Qq({className:a,style:o}):new Kq({className:a,style:o})}).attr("className","spark ".concat(a))},function(s){return s.update(o)},function(s){return s.remove()})},e.prototype.getColor=function(n){var r=this.attributes.color;return Dr(r)?r[n%r.length]:gi(r)?r.call(null,n):r},e.prototype.createScales=function(n){var r,i,a=this.attributes,o=a.type,s=a.scale,c=a.range,l=c===void 0?[]:c,u=a.spacing,f=this.containerShape,d=f.width,h=f.height,p=(0,S.CR)(DT(n),2),v=p[0],g=p[1],y=new Vr({domain:[(r=l[0])!==null&&r!==void 0?r:v,(i=l[1])!==null&&i!==void 0?i:g],range:[h,h*(1-s)]});return o==="line"?{type:o,x:new Vr({domain:[0,n[0].length-1],range:[0,d]}),y}:{type:o,x:new mo({domain:n[0].map(function(m,b){return b}),range:[0,d],paddingInner:u,paddingOuter:u/2,align:.5}),y}},e.tag="sparkline",e}(Rr),FT=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,(0,S.pi)((0,S.pi)((0,S.pi)({animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},la(rO,"handle")),la(eO,"handleIcon")),la(nO,"handleLabel")))||this;return r.range=[0,1],r.onDragStart=function(i){return function(a){a.stopPropagation(),r.target=i,r.prevPos=r.getOrientVal(dd(a));var o=r.availableSpace,s=o.x,c=o.y,l=r.getBBox(),u=l.x,f=l.y;r.selectionStartPos=r.getRatio(r.prevPos-r.getOrientVal([s,c])-r.getOrientVal([+u,+f])),r.selectionWidth=0,document.addEventListener("pointermove",r.onDragging),document.addEventListener("pointerup",r.onDragEnd)}},r.onDragging=function(i){var a=r.attributes,o=a.slidable,s=a.brushable,c=a.type;i.stopPropagation();var l=r.getOrientVal(dd(i)),u=l-r.prevPos;if(u){var f=r.getRatio(u);switch(r.target){case"start":o&&r.setValuesOffset(f);break;case"end":o&&r.setValuesOffset(0,f);break;case"selection":o&&r.setValuesOffset(f,f);break;case"track":if(!s)return;r.selectionWidth+=f,c==="range"?r.innerSetValues([r.selectionStartPos,r.selectionStartPos+r.selectionWidth].sort(),!0):r.innerSetValues([0,r.selectionStartPos+r.selectionWidth],!0);break;default:break}r.prevPos=l}},r.onDragEnd=function(){document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointerup",r.onDragEnd),r.target="",r.updateHandlesPosition(!1)},r.onValueChange=function(i){var a=r.attributes,o=a.onChange,s=a.type,c=s==="range"?i:i[1],l=s==="range"?r.getValues():r.getValues()[1],u=new Nn("valuechange",{detail:{oldValue:c,value:l}});r.dispatchEvent(u),o==null||o(l)},r.selectionStartPos=0,r.selectionWidth=0,r.prevPos=0,r.target="",r}return Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(n){this.attributes.values=this.clampValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){var n=this.attributes.orientation;if(n!=="horizontal")return null;var r=en(this.attributes,"sparkline");return(0,S.pi)((0,S.pi)({zIndex:0},this.availableSpace),r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n=this.attributes,r=n.trackLength,i=n.trackSize,a=(0,S.CR)(this.getOrientVal([[r,i],[i,r]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.padding,r=(0,S.CR)(zr(n),4),i=r[0],a=r[1],o=r[2],s=r[3],c=this.shape,l=c.width,u=c.height;return{x:s,y:i,width:l-(s+a),height:u-(i+o)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1),this.attributes.values=n;var i=r===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},e.prototype.updateSelectionArea=function(n){var r=this.calcSelectionArea();this.foregroundGroup.selectAll(fa.selection.class).each(function(i,a){Ki(this,r[a],n)})},e.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&Ki(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&Ki(this.endHandle,this.getHandleStyle("end"),n))},e.prototype.innerSetValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1);var i=this.values,a=this.clampValues(n);this.attributes.values=a,this.setValues(a),r&&this.onValueChange(i)},e.prototype.renderTrack=function(n){var r=en(this.attributes,"track");this.trackShape=qe(n).maybeAppendByClassName(fa.track,"rect").styles((0,S.pi)((0,S.pi)({},this.shape),r))},e.prototype.renderBrushArea=function(n){var r=this.attributes.brushable;this.brushArea=qe(n).maybeAppendByClassName(fa.brushArea,"rect").styles((0,S.pi)({fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(n){var r=this,i=this.attributes.orientation,a=qe(n).maybeAppendByClassName(fa.sparklineGroup,"g");vi(i==="horizontal",a,function(o){var s=r.sparklineStyle;o.maybeAppendByClassName(fa.sparkline,function(){return new sZ({style:s})}).update(s)})},e.prototype.renderHandles=function(){var n=this,r,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],c=a?s:[],l=this;(r=this.foregroundGroup)===null||r===void 0||r.selectAll(fa.handle.class).data(c.map(function(u){return{type:u}}),function(u){return u.type}).join(function(u){return u.append(function(f){var d=f.type;return new iO({style:n.getHandleStyle(d)})}).each(function(f){var d=f.type;this.attr("class","".concat(fa.handle.name," ").concat(d,"-handle"));var h="".concat(d,"Handle");l[h]=this,this.addEventListener("pointerdown",l.onDragStart(d))})},function(u){return u.each(function(f){var d=f.type;this.update(l.getHandleStyle(d))})},function(u){return u.each(function(f){var d=f.type,h="".concat(d,"Handle");l[h]=void 0}).remove()})},e.prototype.renderSelection=function(n){var r=this.attributes,i=r.type,a=r.selectionType;this.foregroundGroup=qe(n).maybeAppendByClassName(fa.foreground,"g");var o=en(this.attributes,"selection"),s=function(l){return l.style("visibility",function(u){return u.show?"visible":"hidden"}).style("cursor",function(u){return a==="select"?"grab":a==="invert"?"crosshair":"default"}).styles(o)},c=this;this.foregroundGroup.selectAll(fa.selection.class).data(i==="value"?[]:this.calcSelectionArea().map(function(l,u){return{style:(0,S.pi)({},l),index:u,show:a==="select"?u===1:u!==1}}),function(l){return l.index}).join(function(l){return l.append("rect").attr("className",fa.selection.name).call(s).each(function(u,f){var d=this;f===1?(c.selectionShape=qe(this),this.on("pointerdown",function(h){d.attr("cursor","grabbing"),c.onDragStart("selection")(h)}),c.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),c.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),c.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){d.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){d.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){d.attr("cursor","pointer")})):this.on("pointerdown",c.onDragStart("track"))})},function(l){return l.call(s)},function(l){return l.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(n,r){this.renderTrack(r),this.renderSparkline(r),this.renderBrushArea(r),this.renderSelection(r)},e.prototype.clampValues=function(n,r){var i;r===void 0&&(r=4);var a=(0,S.CR)(this.range,2),o=a[0],s=a[1],c=(0,S.CR)(this.getValues().map(function(g){return fd(g,r)}),2),l=c[0],u=c[1],f=Array.isArray(n)?n:[l,n!=null?n:u],d=(0,S.CR)((f||[l,u]).map(function(g){return fd(g,r)}),2),h=d[0],p=d[1];if(this.attributes.type==="value")return[0,(0,cr.Z)(p,o,s)];h>p&&(i=(0,S.CR)([p,h],2),h=i[0],p=i[1]);var v=p-h;return v>s-o?[o,s]:hs?u===s&&l===h?[h,s]:[s-v,s]:[h,p]},e.prototype.calcSelectionArea=function(n){var r=(0,S.CR)(this.clampValues(n),2),i=r[0],a=r[1],o=this.availableSpace,s=o.x,c=o.y,l=o.width,u=o.height;return this.getOrientVal([[{y:c,height:u,x:s,width:i*l},{y:c,height:u,x:i*l+s,width:(a-i)*l},{y:c,height:u,x:a*l,width:(1-a)*l}],[{x:s,width:l,y:c,height:i*u},{x:s,width:l,y:i*u+c,height:(a-i)*u},{x:s,width:l,y:a*u,height:(1-a)*u}]])},e.prototype.calcHandlePosition=function(n){var r=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,c=i.height,l=(0,S.CR)(this.clampValues(),2),u=l[0],f=l[1],d=n==="start"?-r:r,h=(n==="start"?u:f)*this.getOrientVal([s,c])+d;return{x:a+this.getOrientVal([h,s/2]),y:o+this.getOrientVal([c/2,h])}},e.prototype.inferTextStyle=function(n){var r=this.attributes.orientation;return r==="horizontal"?{}:n==="start"?{transform:"rotate(90)",textAlign:"start"}:n==="end"?{transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(n){var r,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,c=i.autoFitLabel,l=en(this.attributes,"handle"),u=en(l,"label"),f=l.spacing,d=this.getHandleSize(),h=this.clampValues(),p=n==="start"?h[0]:h[1],v=s(p),g=new sv({style:(0,S.pi)((0,S.pi)((0,S.pi)({},u),this.inferTextStyle(n)),{text:v})}),y=g.getBBox(),m=y.width,b=y.height;if(g.destroy(),!c){if(a==="value")return{text:v,x:0,y:-b-f};var _=f+d+(o==="horizontal"?m/2:0);return r={text:v},r[o==="horizontal"?"x":"y"]=n==="start"?-_:_,r}var O=0,w=0,M=this.availableSpace,E=M.width,A=M.height,P=this.calcSelectionArea()[1],C=P.x,j=P.y,N=P.width,k=P.height,R=f+d;if(o==="horizontal"){var D=R+m/2;if(n==="start"){var B=C-R-m;O=B>0?-D:D}else{var F=E-C-N-R>m;O=F?D:-D}}else{var z=R,Y=b+R;n==="start"?w=j-d>b?-Y:z:w=A-(j+k)-d>b?Y:-z}return{x:O,y:w,text:v}},e.prototype.getHandleLabelStyle=function(n){var r=en(this.attributes,"handleLabel");return(0,S.pi)((0,S.pi)((0,S.pi)({},r),this.calcHandleText(n)),this.inferTextStyle(n))},e.prototype.getHandleIconStyle=function(){var n=this.attributes.handleIconShape,r=en(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return(0,S.pi)({cursor:i,shape:n,size:a},r)},e.prototype.getHandleStyle=function(n){var r=this.attributes,i=r.showLabel,a=r.showLabelOnInteraction,o=r.orientation,s=this.calcHandlePosition(n),c=this.calcHandleText(n),l=i;return!i&&a&&(this.target?l=!0:l=!1),(0,S.pi)((0,S.pi)((0,S.pi)((0,S.pi)({},la(this.getHandleIconStyle(),"icon")),la((0,S.pi)((0,S.pi)({},this.getHandleLabelStyle(n)),c),"label")),s),{orientation:o,showLabel:l,type:n,zIndex:3})},e.prototype.getHandleSize=function(){var n=this.attributes,r=n.handleIconSize,i=n.width,a=n.height;return r||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},e.prototype.getOrientVal=function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1],o=this.attributes.orientation;return o==="horizontal"?i:a},e.prototype.setValuesOffset=function(n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=this.attributes.type,o=(0,S.CR)(this.getValues(),2),s=o[0],c=o[1],l=a==="range"?n:0,u=[s+l,c+r].sort();i?this.setValues(u):this.innerSetValues(u,!0)},e.prototype.getRatio=function(n){var r=this.availableSpace,i=r.width,a=r.height;return n/this.getOrientVal([i,a])},e.prototype.dispatchCustomEvent=function(n,r,i){var a=this;n.on(r,function(o){o.stopPropagation(),a.dispatchEvent(new Nn(i,{detail:o}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var n=this.brushArea;this.dispatchCustomEvent(n,"click","trackClick"),this.dispatchCustomEvent(n,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(n,"pointerleave","trackMouseleave"),n.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(n){var r=this.attributes.scrollable;if(r){var i=n.deltaX,a=n.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s,!0)}},e.tag="slider",e}(Rr);function cZ(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function _c(t){let e,n,r;t.length!==2?(e=fr,n=(s,c)=>fr(t(s),c),r=(s,c)=>t(s)-c):(e=t===fr||t===cZ?t:lZ,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function lZ(){return 0}function dy(t){return t===null?NaN:+t}function*uZ(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const zT=_c(fr),fZ=zT.right,dZ=zT.left,hZ=_c(dy).center;var pZ=fZ;function vZ(t,e){return Array.from(e,n=>t[n])}function Ba(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=Vl(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>Vl(n[i],n[a]))),vZ(t,r)}return t.sort(GT(n))}function GT(t=fr){if(t===fr)return Vl;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function Vl(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function gZ(t,e,n){return Math.min(n,Math.max(e,t))}function Xl(t){return!!t.getBandWidth}function Oc(t,e,n){if(!Xl(t))return t.invert(e);const{adjustedRange:r}=t,{domain:i}=t.getOptions(),a=n?-1:0,o=t.getStep(),s=n?r:r.map(u=>u+o),c=dZ(s,e),l=gZ(c+a,0,i.length-1);return i[l]}function _o(t,e,n){if(!e)return t.getOptions().domain;if(!Xl(t)){const c=Ba(e);if(!n)return c;const[l]=c,{range:u}=t.getOptions(),[f,d]=u,h=f>d?-1:1,p=t.invert(t.map(l)+h*n);return[l,p]}const{domain:r}=t.getOptions(),i=e[0],a=r.indexOf(i);if(n){const c=a+Math.round(r.length*n);return r.slice(a,c)}const o=e[e.length-1],s=r.indexOf(o);return r.slice(a,s+1)}function ah(t,e,n,r,i,a){const{x:o,y:s}=i,c=(h,p)=>{const[v,g]=a.invert(h);return[Oc(o,v,p),Oc(s,g,p)]},l=c([t,e],!0),u=c([n,r],!1),f=_o(o,[l[0],u[0]]),d=_o(s,[l[1],u[1]]);return[f,d]}function oh(t,e){const[n,r]=t,i=a=>a.getStep?a.getStep():0;return[e.map(n),e.map(r)+i(e)]}function yZ(t,e,n){const{x:r,y:i}=e,[a,o]=t,s=oh(a,r),c=oh(o,i),l=[s[0],c[0]],u=[s[1],c[1]],[f,d]=n.map(l),[h,p]=n.map(u);return[f,d,h,p]}var mZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{orientation:e,labelFormatter:n,size:r,style:i={},position:a}=t,o=mZ(t,["orientation","labelFormatter","size","style","position"]);return s=>{var c;const{scales:[l],value:u,theme:f,coordinate:d}=s,{bbox:h}=u,{width:p,height:v}=h,{slider:g={}}=f,y=((c=l.getFormatter)===null||c===void 0?void 0:c.call(l))||(E=>E+""),m=typeof n=="string"?oo(n):n,b=e==="horizontal",_=$n(d)&&b,{trackSize:O=g.trackSize}=i,[w,M]=bZ(h,a,O);return new FT({className:"slider",style:Object.assign({},g,Object.assign(Object.assign({x:w,y:M,trackLength:b?p:v,orientation:e,formatter:E=>{const A=m||y,P=_?1-E:E,C=Oc(l,P,!0);return A(C)},sparklineData:_Z(t,s)},i),o))})}};function xZ(t,e){const[n]=Array.from(t.entries()).filter(([i])=>i.type==="line"||i.type==="area").map(([i])=>{const{encode:a,slider:o}=i;if(o!=null&&o.x&&Object.keys(o.x).length===0){const s=c=>{const l=a[c];return[c,l?l.value:void 0]};return Object.fromEntries(e.map(s))}});if(!(n!=null&&n.series))return n==null?void 0:n.y;const r=n.series.reduce((i,a,o)=>(i[a]=i[a]||[],i[a].push(n.y[o]),i),{});return Object.values(r)}function _Z(t,e){const{markState:n}=e;return Dr(t.sparklineData)?t.sparklineData:xZ(n,["y","series"])}Ul.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const WT=t=>Ul(Object.assign(Object.assign({},t),{orientation:"horizontal"}));WT.props=Object.assign(Object.assign({},Ul.props),{defaultPosition:"bottom"});const HT=t=>Ul(Object.assign(Object.assign({},t),{orientation:"vertical"}));HT.props=Object.assign(Object.assign({},Ul.props),{defaultPosition:"left"});var OZ=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,{isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return r.range=[0,1],r.onValueChange=function(i){var a=r.attributes.value;if(i!==a){var o={detail:{oldValue:i,value:a}};r.dispatchEvent(new Nn("scroll",o)),r.dispatchEvent(new Nn("valuechange",o))}},r.onTrackClick=function(i){var a=r.attributes.slidable;if(a){var o=(0,S.CR)(r.getLocalPosition(),2),s=o[0],c=o[1],l=(0,S.CR)(r.padding,4),u=l[0],f=l[3],d=r.getOrientVal([s+f,c+u]),h=r.getOrientVal(dd(i)),p=(h-d)/r.trackLength;r.setValue(p,!0)}},r.onThumbMouseenter=function(i){r.dispatchEvent(new Nn("thumbMouseenter",{detail:i.detail}))},r.onTrackMouseenter=function(i){r.dispatchEvent(new Nn("trackMouseenter",{detail:i.detail}))},r.onThumbMouseleave=function(i){r.dispatchEvent(new Nn("thumbMouseleave",{detail:i.detail}))},r.onTrackMouseleave=function(i){r.dispatchEvent(new Nn("trackMouseleave",{detail:i.detail}))},r}return Object.defineProperty(e.prototype,"padding",{get:function(){var n=this.attributes.padding;return zr(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var n=this.attributes.value,r=(0,S.CR)(this.range,2),i=r[0],a=r[1];return(0,cr.Z)(n,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var n=this.attributes,r=n.viewportLength,i=n.trackLength,a=i===void 0?r:i;return a},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.trackSize,r=this.trackLength,i=(0,S.CR)(this.padding,4),a=i[0],o=i[1],s=i[2],c=i[3],l=(0,S.CR)(this.getOrientVal([[r,n],[n,r]]),2),u=l[0],f=l[1];return{x:c,y:a,width:+u-(c+o),height:+f-(a+s)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.trackSize;return r?i/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.thumbRadius;if(!r)return 0;var a=this.availableSpace,o=a.width,s=a.height;return i||this.getOrientVal([s,o])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(n){n===void 0&&(n=this.value);var r=this.attributes,i=r.viewportLength,a=r.contentLength,o=i/a,s=(0,S.CR)(this.range,2),c=s[0],l=s[1],u=n*(l-c-o);return[u,u+o]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(n){var r=this.attributes,i=r.orientation,a=r.trackSize,o=r.padding,s=r.slidable,c=en(this.attributes,"track"),l=en(this.attributes,"thumb"),u=(0,S.pi)((0,S.pi)({brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:s,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:a,values:this.getValues()},la(c,"track")),la(l,"selection"));this.slider=qe(n).maybeAppendByClassName("scrollbar",function(){return new FT({style:u})}).update(u).node()},e.prototype.render=function(n,r){this.renderSlider(r)},e.prototype.setValue=function(n,r){r===void 0&&(r=!1);var i=this.attributes.value,a=(0,S.CR)(this.range,2),o=a[0],s=a[1];this.slider.setValues(this.getValues((0,cr.Z)(n,o,s)),r),this.onValueChange(i)},e.prototype.bindEvents=function(){var n=this;this.slider.addEventListener("trackClick",function(r){r.stopPropagation(),n.onTrackClick(r.detail)}),this.onHover()},e.prototype.getOrientVal=function(n){var r=this.attributes.orientation;return r==="horizontal"?n[0]:n[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(Rr),wZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{orientation:e,labelFormatter:n,style:r}=t,i=wZ(t,["orientation","labelFormatter","style"]);return({scales:[a],value:o,theme:s})=>{const{bbox:c}=o,{x:l,y:u,width:f,height:d}=c,{scrollbar:h={}}=s,{ratio:p,range:v}=a.getOptions(),g=e==="horizontal"?f:d,y=g/p,[m,b]=v,_=b>m?0:1;return new OZ({className:"g2-scrollbar",style:Object.assign({},h,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:l,y:u,trackLength:g,value:_}),i),{orientation:e,contentLength:y,viewportLength:g}))})}};ql.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const YT=t=>ql(Object.assign(Object.assign({},t),{orientation:"horizontal"}));YT.props=Object.assign(Object.assign({},ql.props),{defaultPosition:"bottom"});const $T=t=>ql(Object.assign(Object.assign({},t),{orientation:"vertical"}));$T.props=Object.assign(Object.assign({},ql.props),{defaultPosition:"left"});const hy=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=$n(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.01},{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f}];return s.animate(p,Object.assign(Object.assign({},o),t))}},SZ=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=$n(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.99},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),t))}},VT=(t,e)=>{const{coordinate:r}=e;return Dx.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:ce.NUMBER}),(i,a,o)=>{const[s]=i,c=u=>{const{__data__:f,style:d}=u,{radius:h=0,inset:p=0,fillOpacity:v=1,strokeOpacity:g=1,opacity:y=1}=d,{points:m,y:b,y1:_}=f,O=ns(r,m,[b,_]),{innerRadius:w,outerRadius:M}=O,E=Bd().cornerRadius(h).padAngle(p*Math.PI/180),A=new ri({}),P=r.getCenter(),C=k=>{A.attr({d:E(k),transform:`translate(${P[0]}, ${P[1]})`});const R=g0(A);return A.style.transform="",R},j=[{scaleInYRadius:w+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:w+1e-4,fillOpacity:v,strokeOpacity:g,opacity:y,offset:.01},{scaleInYRadius:M,fillOpacity:v,strokeOpacity:g,opacity:y}],N=u.animate(j,Object.assign(Object.assign({},o),t));return N.onframe=function(){u.style.path=C(Object.assign(Object.assign({},O),{outerRadius:Number(u.style.scaleInYRadius)}))},N.onfinish=function(){u.style.path=C(Object.assign(Object.assign({},O),{outerRadius:M}))},N},l=u=>{const{style:f}=u,{transform:d="",fillOpacity:h=1,strokeOpacity:p=1,opacity:v=1}=f,[g,y]=$n(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],m=[{transform:`${d} ${y}`.trimStart(),transformOrigin:g,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${d} ${y}`.trimStart(),transformOrigin:g,fillOpacity:h,strokeOpacity:p,opacity:v,offset:.01},{transform:`${d} scale(1, 1)`.trimStart(),transformOrigin:g,fillOpacity:h,strokeOpacity:p,opacity:v}];return u.animate(m,Object.assign(Object.assign({},o),t))};return Gn(r)?c(s):l(s)}},MZ=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=$n(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],p=[{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.99},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),t))}},XT=(t,e)=>{Dx.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:ce.NUMBER});const{coordinate:r}=e;return(i,a,o)=>{const[s]=i;if(!Gn(r))return hy(t,e)(i,a,o);const c=r.getCenter(),{__data__:l,style:u}=s,{radius:f=0,inset:d=0,fillOpacity:h=1,strokeOpacity:p=1,opacity:v=1}=u,{points:g,y,y1:m}=l,b=Bd().cornerRadius(f).padAngle(d*Math.PI/180),_=ns(r,g,[y,m]),{startAngle:O,endAngle:w}=_,M=new ri({}),E=C=>{M.attr({d:b(C),transform:`translate(${c[0]}, ${c[1]})`});const j=g0(M);return M.style.transform="",j},A=[{waveInArcAngle:O+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:O+1e-4,fillOpacity:h,strokeOpacity:p,opacity:v,offset:.01},{waveInArcAngle:w,fillOpacity:h,strokeOpacity:p,opacity:v}],P=s.animate(A,Object.assign(Object.assign({},o),t));return P.onframe=function(){s.style.path=E(Object.assign(Object.assign({},_),{endAngle:Number(s.style.waveInArcAngle)}))},P.onfinish=function(){s.style.path=E(Object.assign(Object.assign({},_),{endAngle:w}))},P}};XT.props={};const UT=t=>(e,n,r)=>{const[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:a,strokeOpacity:o,opacity:s}];return i.animate(c,Object.assign(Object.assign({},r),t))};UT.props={};const qT=t=>(e,n,r)=>{const[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,c=[{fillOpacity:a,strokeOpacity:o,opacity:s},{fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(c,Object.assign(Object.assign({},r),t))};qT.props={};const EZ=t=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:c=1,opacity:l=1}=a.style,u="center center",f=[{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l,offset:.01},{transform:`${o} scale(1)`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l}];return a.animate(f,Object.assign(Object.assign({},i),t))},AZ=t=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:c=1,opacity:l=1}=a.style,u="center center",f=[{transform:`${o} scale(1)`.trimStart(),transformOrigin:u},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l,offset:.99},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}];return a.animate(f,Object.assign(Object.assign({},i),t))},ZT=t=>(e,n,r)=>{var i,a;const[o]=e,s=((a=(i=o).getTotalLength)===null||a===void 0?void 0:a.call(i))||0,c=[{lineDash:[0,s]},{lineDash:[s,0]}];return o.animate(c,Object.assign(Object.assign({},r),t))};ZT.props={};function wc(t,e){const n={};for(const r of e){const i=t.style[r];i&&(n[r]=i)}return n}const Sc=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function py(t){const{min:e,max:n}=t.getLocalBounds(),[r,i]=e,[a,o]=n,s=o-i,c=a-r;return[r,i,c,s]}function TZ(t){const[e,n,r,i]=t;return` - M ${e} ${n} - L ${e+r} ${n} - L ${e+r} ${n+i} - L ${e} ${n+i} - Z - `}function PZ(t,e){const[n,r,i,a]=py(t),o=a/i,s=Math.ceil(Math.sqrt(e/o)),c=Math.ceil(e/s),l=[],u=a/c;let f=0,d=e;for(;d>0;){const h=Math.min(d,s),p=i/h;for(let v=0;v{u.style.transform="none",tv(u,n)},u.style.transform="none",d}function NZ(t,e,n,r){t.style.visibility="hidden";const i=r(t,e.length);return e.map((a,o)=>{const s=new ri({style:Object.assign({path:i[o]},wc(t,Sc))});return vy(a,s,a,n)})}function IZ(t,e,n,r){const i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=e.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:s}],l=e.animate(c,n);return[...t.map((f,d)=>{const h=new ri({style:{path:i[d],fill:e.style.fill}});return vy(f,f,h,n)}),l]}const tP=t=>(e,n,r)=>{const i=CZ(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:s}=n;if(o===1&&s===1||o>1&&s>1){const[c]=e,[l]=n;return vy(c,c,l,a)}if(o===1&&s>1){const[c]=e;return NZ(c,n,a,i)}if(o>1&&s===1){const[c]=n;return IZ(e,c,a,i)}return null};tP.props={};const eP=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new ri({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,hy(t,e)([c],r,i)};eP.props={};const nP=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new ri({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,VT(t,e)([c],r,i)};nP.props={};var Zl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i!e.__removed__)}function rP(t,e){return gy(t,e).flatMap(({container:n})=>Oo(n))}function gy(t,e){return e.filter(n=>n!==t&&n.options.parentKey===t.options.key)}function Fa(t){return je(t).select(`.${Df}`).node()}function iP(t){if(t.nodeName!=="rect")return t.getRenderBounds();const{x:e,y:n,width:r,height:i}=t.style;return{min:[e,n],max:[e+r,n+i]}}function yy(t,e){const{offsetX:n,offsetY:r}=e,i=iP(t),{min:[a,o],max:[s,c]}=i,l=ns,u=rc;return l||u?null:[n-a,r-o]}function my(t,e){const{offsetX:n,offsetY:r}=e,[i,a,o,s]=jZ(t);return[Math.min(o,Math.max(i,n))-i,Math.min(s,Math.max(a,r))-a]}function jZ(t){const e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return[n,r,i,a]}function aP(t){return e=>e.__data__.color}function by(t){return e=>e.__data__.x}function gs(t){const e=Array.isArray(t)?t:[t],n=new Map(e.flatMap(r=>Array.from(r.markState.keys()).map(a=>[sh(r.key,a.key),a.data])));return r=>{const{index:i,markKey:a,viewKey:o}=r.__data__;return n.get(sh(o,a))[i]}}function za(t,e=(r,i)=>r,n=(r,i,a)=>r.setAttribute(i,a)){const r="__states__",i="__ordinal__",a=u=>{const{[r]:f=[],[i]:d={}}=u,h=f.reduce((p,v)=>Object.assign(Object.assign({},p),t[v]),d);if(Object.keys(h).length!==0){for(const[p,v]of Object.entries(h)){const g=_V(u,p),y=e(v,u);n(u,p,y),p in d||(d[p]=g)}u[i]=d}},o=u=>{u[r]||(u[r]=[])};return{setState:(u,...f)=>{o(u),u[r]=[...f],a(u)},removeState:(u,...f)=>{o(u);for(const d of f){const h=u[r].indexOf(d);h!==-1&&u[r].splice(h,1)}a(u)},hasState:(u,f)=>(o(u),u[r].indexOf(f)!==-1)}}function DZ(t){return t===void 0?!0:typeof t!="object"?!1:Object.keys(t).length===0}function sh(t,e){return`${t},${e}`}function Mc(t,e){const r=(Array.isArray(t)?t:[t]).flatMap(a=>a.marks.map(o=>[sh(a.key,o.key),o.state])),i={};for(const a of e){const[o,s]=Array.isArray(a)?a:[a,{}];i[o]=r.reduce((c,l)=>{const[u,f={}]=l,d=DZ(f[o])?s:f[o];for(const[h,p]of Object.entries(d)){const v=c[h],g=(y,m,b,_)=>{const O=sh(_.__data__.viewKey,_.__data__.markKey);return u!==O?v==null?void 0:v(y,m,b,_):typeof p!="function"?p:p(y,m,b,_)};c[h]=g}return c},{})}return i}function Kl(t,e){const n=new Map(t.map((i,a)=>[i,a])),r=e?t.map(e):t;return(i,a)=>{if(typeof i!="function")return i;const o=n.get(a),s=e?e(a):a;return i(s,o,r,a)}}function oP(t){var{link:e=!1,valueof:n=(u,f)=>u,coordinate:r}=t,i=Zl(t,["link","valueof","coordinate"]);const a="element-link";if(!e)return[()=>{},()=>{}];const o=u=>u.__data__.points,s=(u,f)=>{const[,d,h]=u,[p,,,v]=f;return[d,p,v,h]};return[u=>{var f;if(u.length<=1)return;const d=Ba(u,(h,p)=>{const{x:v}=h.__data__,{x:g}=p.__data__;return v-g});for(let h=1;hn(A,v)),{fill:w=v.getAttribute("fill")}=O,M=Zl(O,["fill"]),E=new ri({className:a,style:Object.assign({d:p.toString(),fill:w,zIndex:-2},M)});(f=v.link)===null||f===void 0||f.remove(),v.parentNode.appendChild(E),v.link=E}},u=>{var f;(f=u.link)===null||f===void 0||f.remove(),u.link=null}]}function sP(t,e,n){const r=i=>{const{transform:a}=t.style;return a?`${a} ${i}`:i};if(Gn(n)){const{points:i}=t.__data__,[a,o]=$n(n)?gd(i):i,s=n.getCenter(),c=ur(a,s),l=ur(o,s),u=Gi(c),f=xO(c,l),d=u+f/2,h=e*Math.cos(d),p=e*Math.sin(d);return r(`translate(${h}, ${p})`)}return $n(n)?r(`translate(${e}, 0)`):r(`translate(0, ${-e})`)}function cP(t){var{document:e,background:n,scale:r,coordinate:i,valueof:a}=t,o=Zl(t,["document","background","scale","coordinate","valueof"]);const s="element-background";if(!n)return[()=>{},()=>{}];const c=(y,m,b)=>{const _=y.invert(m),O=m+y.getBandWidth(_)/2,w=y.getStep(_)/2,M=w*b;return[O-w+M,O+w-M]},l=(y,m)=>{const{x:b}=r;if(!Xl(b))return[0,1];const{__data__:_}=y,{x:O}=_,[w,M]=c(b,O,m);return[w,M]},u=(y,m)=>{const{y:b}=r;if(!Xl(b))return[0,1];const{__data__:_}=y,{y:O}=_,[w,M]=c(b,O,m);return[w,M]},f=(y,m)=>{const{padding:b}=m,[_,O]=l(y,b),[w,M]=u(y,b),E=[[_,w],[O,w],[O,M],[_,M]].map(j=>i.map(j)),{__data__:A}=y,{y:P,y1:C}=A;return XS(e,E,{y:P,y1:C},i,m)},d=(y,m)=>{const{transform:b="scale(1.2, 1.2)",transformOrigin:_="center center",stroke:O=""}=m,w=Zl(m,["transform","transformOrigin","stroke"]),M=Object.assign({transform:b,transformOrigin:_,stroke:O},w),E=y.cloneNode(!0);for(const[A,P]of Object.entries(M))E.style[A]=P;return E},h=()=>{const{x:y,y:m}=r;return[y,m].some(Xl)};return[y=>{y.background&&y.background.remove();const m=so(o,j=>a(j,y)),{fill:b="#CCD6EC",fillOpacity:_=.3,zIndex:O=-2,padding:w=.001,strokeWidth:M=0}=m,E=Zl(m,["fill","fillOpacity","zIndex","padding","strokeWidth"]),A=Object.assign(Object.assign({},E),{fill:b,fillOpacity:_,zIndex:O,padding:w,strokeWidth:M}),C=(h()?f:d)(y,A);C.className=s,y.parentNode.appendChild(C),y.background=C},y=>{var m;(m=y.background)===null||m===void 0||m.remove(),y.background=null},y=>y.className===s]}function wo(t,e){const r=t.getRootNode().defaultView.getContextService().getDomElement();r!=null&&r.style&&(t.cursor=r.style.cursor,r.style.cursor=e)}function BZ(t){wo(t,t.cursor)}function xy(t,e,n){return t.find(r=>Object.entries(e).every(([i,a])=>n(r)[i]===a))}var FZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);if,link:i=!1,background:a=!1,delay:o=60,scale:s,coordinate:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=Kn(d,r),v=Kl(d,n),[g,y]=oP(Object.assign({elements:d,valueof:v,link:i,coordinate:c},fe(u.active,"link"))),[m,b,_]=cP(Object.assign({document:t.ownerDocument,scale:s,coordinate:c,background:a,valueof:v},fe(u.active,"background"))),O=Dt(u,{active:Object.assign({},((f=u.active)===null||f===void 0?void 0:f.offset)&&{transform:(...B)=>{const F=u.active.offset(...B),[,z]=B;return sP(d[z],F,c)}})}),{setState:w,removeState:M,hasState:E}=za(O,v);let A;const P=B=>{const{target:F,nativeEvent:z=!0}=B;if(!h.has(F))return;A&&clearTimeout(A);const Y=r(F),q=p.get(Y),rt=new Set(q);for(const st of d)rt.has(st)?E(st,"active")||w(st,"active"):(w(st,"inactive"),y(st)),st!==F&&b(st);m(F),g(q),z&&l.emit("element:highlight",{nativeEvent:z,data:{data:n(F),group:q.map(n)}})},C=()=>{A&&clearTimeout(A),A=setTimeout(()=>{j(),A=null},o)},j=(B=!0)=>{for(const F of d)M(F,"active","inactive"),b(F),y(F);B&&l.emit("element:unhighlight",{nativeEvent:B})},N=B=>{const{target:F}=B;a&&!_(F)||!a&&!h.has(F)||(o>0?C():j())},k=()=>{j()};t.addEventListener("pointerover",P),t.addEventListener("pointerout",N),t.addEventListener("pointerleave",k);const R=B=>{const{nativeEvent:F}=B;F||j(!1)},D=B=>{const{nativeEvent:F}=B;if(F)return;const{data:z}=B.data,Y=xy(d,z,n);Y&&P({target:Y,nativeEvent:!1})};return l.on("element:highlight",D),l.on("element:unhighlight",R),()=>{t.removeEventListener("pointerover",P),t.removeEventListener("pointerout",N),t.removeEventListener("pointerleave",k),l.off("element:highlight",D),l.off("element:unhighlight",R);for(const B of d)b(B),y(B)}}function ch(t){var{delay:e,createGroup:n,background:r=!1,link:i=!1}=t,a=FZ(t,["delay","createGroup","background","link"]);return(o,s,c)=>{const{container:l,view:u,options:f}=o,{scale:d,coordinate:h}=u,p=Fa(l);return zZ(p,Object.assign({elements:Oo,datum:gs(u),groupKey:n?n(u):void 0,coordinate:h,scale:d,state:Mc(f,[["active",r?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:r,link:i,delay:e,emitter:c},a))}}ch.props={reapplyWhenUpdate:!0};function lP(t){return ch(Object.assign(Object.assign({},t),{createGroup:by}))}lP.props={reapplyWhenUpdate:!0};function uP(t){return ch(Object.assign(Object.assign({},t),{createGroup:aP}))}uP.props={reapplyWhenUpdate:!0};var GZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);if,link:i=!1,single:a=!1,coordinate:o,background:s=!1,scale:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=Kn(d,r),v=Kl(d,n),[g,y]=oP(Object.assign({link:i,elements:d,valueof:v,coordinate:o},fe(u.selected,"link"))),[m,b]=cP(Object.assign({document:t.ownerDocument,background:s,coordinate:o,scale:c,valueof:v},fe(u.selected,"background"))),_=Dt(u,{selected:Object.assign({},((f=u.selected)===null||f===void 0?void 0:f.offset)&&{transform:(...k)=>{const R=u.selected.offset(...k),[,D]=k;return sP(d[D],R,o)}})}),{setState:O,removeState:w,hasState:M}=za(_,v),E=(k=!0)=>{for(const R of d)w(R,"selected","unselected"),y(R),b(R);k&&l.emit("element:unselect",{nativeEvent:!0})},A=(k,R,D=!0)=>{if(M(R,"selected"))E();else{const B=r(R),F=p.get(B),z=new Set(F);for(const Y of d)z.has(Y)?O(Y,"selected"):(O(Y,"unselected"),y(Y)),Y!==R&&b(Y);if(g(F),m(R),!D)return;l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:D,data:{data:[n(R),...F.map(n)]}}))}},P=(k,R,D=!0)=>{const B=r(R),F=p.get(B),z=new Set(F);if(M(R,"selected")){if(!d.some(q=>!z.has(q)&&M(q,"selected")))return E();for(const q of F)O(q,"unselected"),y(q),b(q)}else{const Y=F.some(q=>M(q,"selected"));for(const q of d)z.has(q)?O(q,"selected"):M(q,"selected")||O(q,"unselected");!Y&&i&&g(F),m(R)}D&&l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:D,data:{data:d.filter(Y=>M(Y,"selected")).map(n)}}))},C=k=>{const{target:R,nativeEvent:D=!0}=k;return h.has(R)?a?A(k,R,D):P(k,R,D):E()};t.addEventListener("click",C);const j=k=>{const{nativeEvent:R,data:D}=k;if(R)return;const B=a?D.data.slice(0,1):D.data;for(const F of B){const z=xy(d,F,n);C({target:z,nativeEvent:!1})}},N=()=>{E(!1)};return l.on("element:select",j),l.on("element:unselect",N),()=>{for(const k of d)y(k);t.removeEventListener("click",C),l.off("element:select",j),l.off("element:unselect",N)}}function lh(t){var{createGroup:e,background:n=!1,link:r=!1}=t,i=GZ(t,["createGroup","background","link"]);return(a,o,s)=>{const{container:c,view:l,options:u}=a,{coordinate:f,scale:d}=l,h=Fa(c);return WZ(h,Object.assign({elements:Oo,datum:gs(l),groupKey:e?e(l):void 0,coordinate:f,scale:d,state:Mc(u,[["selected",n?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:n,link:r,emitter:s},i))}}lh.props={reapplyWhenUpdate:!0};function fP(t){return lh(Object.assign(Object.assign({},t),{createGroup:by}))}fP.props={reapplyWhenUpdate:!0};function dP(t){return lh(Object.assign(Object.assign({},t),{createGroup:aP}))}dP.props={reapplyWhenUpdate:!0};var ys=function(t,e,n){var r,i,a,o,s=0;n||(n={});var c=function(){s=n.leading===!1?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},l=function(){var u=Date.now();!s&&n.leading===!1&&(s=u);var f=e-(u-s);return i=this,a=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l};function HZ(t){const{coordinate:e={}}=t,{transform:n=[]}=e,r=n.find(a=>a.type==="fisheye");if(r)return r;const i={type:"fisheye"};return n.push(i),e.transform=n,t.coordinate=e,i}function YZ({wait:t=30,leading:e,trailing:n=!1}){return r=>{const{options:i,update:a,setState:o,container:s}=r,c=Fa(s),l=ys(u=>{const f=yy(c,u);if(!f){o("fisheye"),a();return}o("fisheye",d=>{const h=Dt({},d,{interaction:{tooltip:{preserve:!0}}});for(const y of h.marks)y.animate=!1;const[p,v]=f,g=HZ(h);return g.focusX=p,g.focusY=v,g.visual=!0,h}),a()},t,{leading:e,trailing:n});return c.addEventListener("pointerenter",l),c.addEventListener("pointermove",l),c.addEventListener("pointerleave",l),()=>{c.removeEventListener("pointerenter",l),c.removeEventListener("pointermove",l),c.removeEventListener("pointerleave",l)}}}var $Z=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},VZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii.type==="normalizeY");if(n)return n;const r={type:"normalizeY"};return e.push(r),t.transform=e,r}function UZ(t,e,n){const[r]=Array.from(t.entries()).filter(([i])=>i.type===e).map(([i])=>{const{encode:a}=i,o=s=>{const c=a[s];return[s,c?c.value:void 0]};return Object.fromEntries(n.map(o))});return r}function hP(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=o=>`${o}`}=t,a=VZ(t,["wait","leading","trailing","labelFormatter"]);return o=>{const{view:s,container:c,update:l,setState:u}=o,{markState:f,scale:d,coordinate:h}=s,p=UZ(f,"line",["x","y","series"]);if(!p)return;const{y:v,x:g,series:y=[]}=p,m=v.map((B,F)=>F),b=Ba(m.map(B=>g[B])),_=Fa(c),O=c.getElementsByClassName(Ca),w=c.getElementsByClassName(V0),E=Kn(w,B=>B.__data__.key.split("-")[0]),A=new rl({style:Object.assign({x1:0,y1:0,x2:0,y2:_.getAttribute("height"),stroke:"black",lineWidth:1},fe(a,"rule"))}),P=new Zi({style:Object.assign({x:0,y:_.getAttribute("height"),text:"",fontSize:10},fe(a,"label"))});A.append(P),_.appendChild(A);const C=(B,F,z)=>{const[Y]=B.invert(z),q=F.invert(Y);return b[hZ(b,q)]},j=(B,F)=>{A.setAttribute("x1",B[0]),A.setAttribute("x2",B[0]),P.setAttribute("text",i(F))};let N;const k=B=>$Z(this,void 0,void 0,function*(){const{x:F}=d,z=C(h,F,B);j(B,z),u("chartIndex",q=>{const rt=Dt({},q),st=rt.marks.find(Lt=>Lt.type==="line"),Yt=Mn(Z0(m,Lt=>Mn(Lt,le=>+v[le])/Ei(Lt,le=>+v[le]),Lt=>y[Lt]).values()),qt=[1/Yt,Yt];Dt(st,{scale:{y:{domain:qt}}});const Rt=XZ(st);Rt.groupBy="color",Rt.basis=(Lt,le)=>{const ue=Lt[_c(we=>g[+we]).center(Lt,z)];return le[ue]};for(const Lt of rt.marks)Lt.animate=!1;return rt}),N=(yield l("chartIndex")).view}),R=B=>{const{scale:F,coordinate:z}=N,{x:Y,y:q}=F,rt=C(z,Y,B);j(B,rt);for(const st of O){const{seriesIndex:At,key:Yt}=st.__data__,qt=At[_c(ze=>g[+ze]).center(At,rt)],Rt=[0,q.map(1)],Lt=[0,q.map(v[qt]/v[At[0]])],[,le]=z.map(Rt),[,ue]=z.map(Lt),we=le-ue;st.setAttribute("transform",`translate(0, ${we})`);const Ue=E.get(Yt)||[];for(const ze of Ue)ze.setAttribute("dy",we)}},D=ys(B=>{const F=yy(_,B);F&&R(F)},e,{leading:n,trailing:r});return k([0,0]),_.addEventListener("pointerenter",D),_.addEventListener("pointermove",D),_.addEventListener("pointerleave",D),()=>{A.remove(),_.removeEventListener("pointerenter",D),_.removeEventListener("pointermove",D),_.removeEventListener("pointerleave",D)}}}hP.props={reapplyWhenUpdate:!0};function Ql(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function uh(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function pP(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function qZ(t,e){return!t||!e?t:t.replace(/\\?\{([^{}]+)\}/g,function(n,r){return n.charAt(0)==="\\"?n.slice(1):e[r]===void 0?"":e[r]})}var ZZ=qZ;function KZ(t,e){return t===void 0&&(t=0),e===void 0&&(e=!1),function(n,r,i){var a=i.value,o;typeof a=="function"&&(i.value=function(){for(var s=[],c=0;c'),title:'
'),item:'
  • - - - {name} - - {value} -
  • `)},style:QZ(o)})||this,r.prevCustomContentKey=r.attributes.contentKey,r.initShape(),r.render(r.attributes,r),r}return Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"position",{set:function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1];this.attributes.x=i,this.attributes.y=a,this.updatePosition()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"elementSize",{get:function(){var n=this.element.offsetWidth,r=this.element.offsetHeight;return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var n=this.attributes,r=n.data,i=n.template;return r.map(function(a,o){var s=a.name,c=s===void 0?"":s,l=a.color,u=l===void 0?"black":l,f=a.index,d=(0,S._T)(a,["name","color","index"]),h=(0,S.pi)({name:c,color:u,index:f!=null?f:o},d);return pP(ZZ(i.item,h))})},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var n;(n=this.element)===null||n===void 0||n.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(n,r){var i=this,a=n!==void 0&&r!==void 0;if(a){var o=this.element.style.transition;this.element.style.transition="none",this.position=[n!=null?n:+this.attributes.x,r!=null?r:+this.attributes.y],setTimeout(function(){i.element.style.transition=o},10)}this.element.style.visibility="visible"},e.prototype.hide=function(){this.element.style.visibility="hidden"},e.prototype.initShape=function(){var n=this.attributes.template;this.element=pP(n.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var n=this.attributes.content;n&&(typeof n=="string"?this.element.innerHTML=n:this.element.replaceChildren(n))}},e.prototype.renderHTMLTooltipElement=function(){var n,r,i=this.attributes,a=i.template,o=i.title,s=i.enterable,c=i.style,l=i.content,u=_y(a.prefixCls),f=this.element;if(this.element.style.pointerEvents=s?"auto":"none",l)this.renderCustomContent();else{o?(f.innerHTML=a.title,f.getElementsByClassName(u.TITLE)[0].innerHTML=o):(r=(n=f.getElementsByClassName(u.TITLE))===null||n===void 0?void 0:n[0])===null||r===void 0||r.remove();var d=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=u.LIST,h.replaceChildren.apply(h,(0,S.ev)([],(0,S.CR)(d),!1));var p=this.element.querySelector(".".concat(u.LIST));p?p.replaceWith(h):f.appendChild(h)}MB(f,c)},e.prototype.getRelativeOffsetFromCursor=function(n){var r=this.attributes,i=r.position,a=r.offset,o=n||i,s=o.split("-"),c={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},l=this.elementSize,u=l.width,f=l.height,d=[-u/2,-f/2];return s.forEach(function(h){var p=(0,S.CR)(d,2),v=p[0],g=p[1],y=(0,S.CR)(c[h],2),m=y[0],b=y[1];d=[v+(u/2+a[0])*m,g+(f/2+a[1])*b]}),d},e.prototype.setOffsetPosition=function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=s===void 0?0:s,l=o.y,u=l===void 0?0:l,f=o.container,d=f.x,h=f.y;this.element.style.left="".concat(+c+d+i,"px"),this.element.style.top="".concat(+u+h+a,"px")},e.prototype.updatePosition=function(){this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor()))},e.prototype.autoPosition=function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=o.y,l=o.bounding,u=o.position;if(!l)return[i,a];var f=this.element,d=f.offsetWidth,h=f.offsetHeight,p=(0,S.CR)([+s+i,+c+a],2),v=p[0],g=p[1],y={left:"right",right:"left",top:"bottom",bottom:"top"},m=l.x,b=l.y,_=l.width,O=l.height,w={left:vm+_,top:gb+O},M=[];u.split("-").forEach(function(A){w[A]?M.push(y[A]):M.push(A)});var E=M.join("-");return this.getRelativeOffsetFromCursor(E)},e.tag="tooltip",(0,S.gn)([KZ(100,!0)],e.prototype,"updatePosition",null),e}(Rr),Jl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var{color:o=mP(t)}=a,s=Jl(a,["color"]);return Object.assign(Object.assign({},s),{color:o})}).map(yP);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}function iK(t,e){const{color:n,series:r,facet:i=!1}=t,{color:a,series:o}=e,s=c=>c&&c.invert&&!(c instanceof mo)&&!(c instanceof Sl);if(s(r))return r.clone().invert(o);if(o&&r instanceof mo&&r.invert(o)!==a&&!i)return r.invert(o);if(s(n)){const c=n.invert(a);return Array.isArray(c)?null:c}return null}function mP(t){const e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=e&&e!=="transparent"?e:n}=r;return i}function bP(t,e=n=>n){const n=new Map(t.map(r=>[e(r),r]));return Array.from(n.values())}function xP(t,e,n,r=t.map(a=>a.__data__),i={}){const a=c=>c instanceof Date?+c:c,o=bP(r.map(c=>c.title),a).filter(In),s=r.flatMap((c,l)=>{const u=t[l],{items:f=[],title:d}=c,h=f.filter(In),p=n!==void 0?n:f.length<=1;return h.map(v=>{var{color:g=mP(u)||i.color,name:y}=v,m=Jl(v,["color","name"]);const b=iK(e,c),_=p?b||y:y||b;return Object.assign(Object.assign({},m),{color:g,name:_||d})})}).map(yP);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:bP(s,c=>`(${a(c.name)}, ${a(c.value)}, ${a(c.color)})`)})}function aK(t,e,n){var{plotWidth:r,plotHeight:i,mainWidth:a,mainHeight:o,startX:s,startY:c,transposed:l,polar:u,insetLeft:f,insetTop:d}=n,h=Jl(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},h),v=e.map(A=>A[1]),g=e.map(A=>A[0]),y=Ql(v),m=Ql(g),b=()=>{if(u){const A=Math.min(a,o)/2,P=s+f+a/2,C=c+d+o/2,j=Gi(ur([m,y],[P,C])),N=P+A*Math.cos(j),k=C+A*Math.sin(j);return[P,N,C,k]}return l?[s,s+r,y+c,y+c]:[m+s,m+s,c,c+i]},[_,O,w,M]=b(),E=()=>{const A=new rl({style:Object.assign({x1:_,x2:O,y1:w,y2:M},p)});return t.appendChild(A),A};if(g.length>0){const A=t.ruleY||E();A.style.x1=_,A.style.x2=O,A.style.y1=w,A.style.y2=M,t.ruleY=A}}function _P(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function oK(t,{data:e,style:n,theme:r}){t.markers&&t.markers.forEach(a=>a.remove());const i=e.filter(a=>{const[{x:o,y:s}]=a;return In(o)&&In(s)}).map(a=>{const[{color:o,element:s},c]=a,l=o||s.style.fill||s.style.stroke||r.color;return new nl({style:Object.assign({cx:c[0],cy:c[1],fill:l,r:4,stroke:"#fff",strokeWidth:2},n)})});for(const a of i)t.appendChild(a);t.markers=i}function OP(t){t.markers&&(t.markers.forEach(e=>e.remove()),t.markers=[])}function wP(t,e){return Array.from(t.values()).some(n=>{var r;return(r=n.interaction)===null||r===void 0?void 0:r[e]})}function wy(t,e){return t===void 0?e:t}function SP(t){const{title:e,items:n}=t;return n.length===0&&e===void 0}function sK(t){return Array.from(t.values()).some(e=>{var n;return((n=e.interaction)===null||n===void 0?void 0:n.seriesTooltip)&&e.tooltip})}function MP(t,e){var{elements:n,sort:r,filter:i,scale:a,coordinate:o,crosshairs:s,render:c,groupName:l,emitter:u,wait:f=50,leading:d=!0,trailing:h=!1,startX:p=0,startY:v=0,body:g=!0,single:y=!0,position:m,enterable:b,mount:_,bounding:O,theme:w,disableNative:M=!1,marker:E=!0,preserve:A=!1,style:P={},css:C={}}=e,j=Jl(e,["elements","sort","filter","scale","coordinate","crosshairs","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","disableNative","marker","preserve","style","css"]);const N=n(t),k=$n(o),R=Gn(o),D=Dt(P,j),{innerWidth:B,innerHeight:F,width:z,height:Y,insetLeft:q,insetTop:rt}=o.getOptions(),st=[],At=[];for(const An of N){const{__data__:_n}=An,{seriesX:ar,title:Tn,items:Ar}=_n;ar?st.push(An):(Tn||Ar)&&At.push(An)}const qt=!!(k?a.y:a.x).getBandWidth&&At.length>0;st.sort((An,_n)=>{const ar=k?0:1,Tn=Ar=>Ar.getBounds().min[ar];return k?Tn(_n)-Tn(An):Tn(An)-Tn(_n)});const Rt=An=>{const _n=k?1:0,{min:ar,max:Tn}=An.getLocalBounds();return Ba([ar[_n],Tn[_n]])};At.sort((An,_n)=>{const[ar,Tn]=Rt(An),[Ar,Ir]=Rt(_n),ki=(ar+Tn)/2,Ri=(Ar+Ir)/2;return k?Ri-ki:ki-Ri});const Lt=new Map(st.map(An=>{const{__data__:_n}=An,{seriesX:ar}=_n,Tn=ar.map((Ir,ki)=>ki),Ar=Ba(Tn,Ir=>ar[+Ir]);return[An,[Ar,ar]]})),{x:le}=a,ue=le!=null&&le.getBandWidth?le.getBandWidth()/2:0,we=An=>{const[_n]=o.invert(An);return _n-ue},Ue=(An,_n,ar)=>{const Tn=we(An),Ar=ar.filter(In),[Ir,ki]=Ba([Ar[0],Ar[Ar.length-1]]);if(!qt&&(Tnki))return null;const Ri=_c(Co=>ar[+Co]).center,ra=Ri(_n,Tn);return _n[ra]},ze=(An,_n)=>{const Tn=An[k?1:0],Ar=_n.filter(Ri=>{const[ra,Co]=Rt(Ri);return Tn>=ra&&Tn<=Co});if(!qt||Ar.length>0)return Ar;const Ir=_c(Ri=>{const[ra,Co]=Rt(Ri);return(ra+Co)/2}).center,ki=Ir(_n,Tn);return[_n[ki]].filter(In)},Je=(An,_n)=>{const{__data__:ar}=An;return Object.fromEntries(Object.entries(ar).filter(([Tn])=>Tn.startsWith("series")&&Tn!=="series").map(([Tn,Ar])=>{const Ir=Ar[_n];return[x_(Tn.replace("series","")),Ir]}))},hn=ys(An=>{const _n=yy(t,An);if(!_n)return;const ar=iP(t),Tn=ar.min[0],Ar=ar.min[1],Ir=[_n[0]-p,_n[1]-v];if(!Ir)return;const ki=ze(Ir,At),Ri=[],ra=[];for(const Tr of st){const[ju,p1]=Lt.get(Tr),G3=Ue(Ir,ju,p1);if(G3!==null){Ri.push(Tr);const W3=Je(Tr,G3),{x:Qlt,y:Jlt}=W3,tut=o.map([(Qlt||0)+ue,Jlt||0]);ra.push([Object.assign(Object.assign({},W3),{element:Tr}),tut])}}const Co=Array.from(new Set(ra.map(Tr=>Tr[0].x))),Zlt=Co[uh(Co,Tr=>Math.abs(Tr-we(Ir)))],h1=ra.filter(Tr=>Tr[0].x===Zlt),Klt=[...h1.map(Tr=>Tr[0]),...ki.map(Tr=>Tr.__data__)],z3=[...Ri,...ki],Iu=xP(z3,a,l,Klt,w);if(r&&Iu.items.sort((Tr,ju)=>r(Tr)-r(ju)),i&&(Iu.items=Iu.items.filter(i)),z3.length===0||SP(Iu)){xn();return}if(g&&gP({root:t,data:Iu,x:_n[0]+Tn,y:_n[1]+Ar,render:c,event:An,single:y,position:m,enterable:b,mount:_,bounding:O,css:C}),s){const Tr=h1.map(p1=>p1[1]),ju=fe(D,"crosshairs");aK(t,Tr,Object.assign(Object.assign({},ju),{plotWidth:B,plotHeight:F,mainWidth:z,mainHeight:Y,insetLeft:q,insetTop:rt,startX:p,startY:v,transposed:k,polar:R}))}if(E){const Tr=fe(D,"marker");oK(t,{data:h1,style:Tr,theme:w})}u.emit("tooltip:show",Object.assign(Object.assign({},An),{nativeEvent:!0,data:{data:{x:Oc(a.x,we(Ir),!0)}}}))},f,{leading:d,trailing:h}),xn=()=>{So({root:t,single:y,emitter:u}),s&&_P(t),E&&OP(t)},Un=()=>{Oy({root:t,single:y}),s&&_P(t),E&&OP(t)},mr=({nativeEvent:An,data:_n})=>{if(An)return;const{x:ar}=_n.data,{x:Tn}=a,Ar=Tn.map(ar),[Ir,ki]=o.map([Ar,.5]),{min:[Ri,ra]}=t.getRenderBounds();hn({offsetX:Ir+Ri,offsetY:ki+ra})},xi=()=>{So({root:t,single:y,emitter:u,nativeEvent:!1})},Va=()=>{Ui(),Un()},ws=()=>{si()},si=()=>{M||(t.addEventListener("pointerenter",hn),t.addEventListener("pointermove",hn),t.addEventListener("pointerleave",xn))},Ui=()=>{M||(t.removeEventListener("pointerenter",hn),t.removeEventListener("pointermove",hn),t.removeEventListener("pointerleave",xn))};return si(),u.on("tooltip:show",mr),u.on("tooltip:hide",xi),u.on("tooltip:disable",Va),u.on("tooltip:enable",ws),()=>{Ui(),u.off("tooltip:show",mr),u.off("tooltip:hide",xi),u.off("tooltip:disable",Va),u.off("tooltip:enable",ws),A?So({root:t,single:y,emitter:u,nativeEvent:!1}):Un()}}function cK(t,{elements:e,scale:n,render:r,groupName:i,sort:a,filter:o,emitter:s,wait:c=50,leading:l=!0,trailing:u=!1,groupKey:f=A=>A,single:d=!0,position:h,enterable:p,datum:v,view:g,mount:y,bounding:m,theme:b,shared:_=!1,body:O=!0,disableNative:w=!1,preserve:M=!1,css:E={}}){const A=e(t),P=new Set(A),C=Kn(A,f),j=ys(Y=>{const{target:q}=Y;if(!P.has(q)){So({root:t,single:d,emitter:s});return}const rt=f(q),st=C.get(rt),At=st.length===1&&!_?rK(st[0]):xP(st,n,i,void 0,b);if(a&&At.items.sort((Rt,Lt)=>a(Rt)-a(Lt)),o&&(At.items=At.items.filter(o)),SP(At)){So({root:t,single:d,emitter:s});return}const{offsetX:Yt,offsetY:qt}=Y;O&&gP({root:t,data:At,x:Yt,y:qt,render:r,event:Y,single:d,position:h,enterable:p,mount:y,bounding:m,css:E}),s.emit("tooltip:show",Object.assign(Object.assign({},Y),{nativeEvent:!0,data:{data:GO(q,g)}}))},c,{leading:l,trailing:u}),N=Y=>{const{target:q}=Y;P.has(q)&&So({root:t,single:d,emitter:s})},k=()=>{w||(t.addEventListener("pointerover",j),t.addEventListener("pointermove",j),t.addEventListener("pointerout",N))},R=()=>{w||(t.removeEventListener("pointerover",j),t.removeEventListener("pointermove",j),t.removeEventListener("pointerout",N))},D=({nativeEvent:Y,data:q})=>{if(Y)return;const rt=xy(A,q.data,v);if(!rt)return;const st=rt.getBBox(),{x:At,y:Yt,width:qt,height:Rt}=st;j({target:rt,offsetX:At+qt/2,offsetY:Yt+Rt/2})},B=({nativeEvent:Y}={})=>{Y||So({root:t,single:d,emitter:s,nativeEvent:!1})},F=()=>{R(),Oy({root:t,single:d})},z=()=>{k()};return s.on("tooltip:show",D),s.on("tooltip:hide",B),s.on("tooltip:enable",z),s.on("tooltip:disable",F),k(),()=>{R(),s.off("tooltip:show",D),s.off("tooltip:hide",B),M?So({root:t,single:d,emitter:s,nativeEvent:!1}):Oy({root:t,single:d})}}function EP(t){const{shared:e,crosshairs:n,series:r,name:i,item:a=()=>({}),facet:o=!1}=t,s=Jl(t,["shared","crosshairs","series","name","item","facet"]);return(c,l,u)=>{const{container:f,view:d}=c,{scale:h,markState:p,coordinate:v,theme:g}=d,y=wP(p,"seriesTooltip"),m=wP(p,"crosshairs"),b=Fa(f),_=wy(r,y);if(_&&sK(p)&&!o)return MP(b,Object.assign(Object.assign({},s),{theme:g,elements:Oo,scale:h,coordinate:v,crosshairs:wy(n,m),item:a,emitter:u}));if(_&&o){const O=l.filter(C=>C!==c&&C.options.parentKey===c.options.key),w=rP(c,l),M=O[0].view.scale,E=b.getBounds(),A=E.min[0],P=E.min[1];return Object.assign(M,{facet:!0}),MP(b.parentNode.parentNode,Object.assign(Object.assign({},s),{theme:g,elements:()=>w,scale:M,coordinate:v,crosshairs:wy(n,m),item:a,startX:A,startY:P,emitter:u}))}return cK(b,Object.assign(Object.assign({},s),{datum:gs(d),elements:Oo,scale:h,coordinate:v,groupKey:e?by(d):void 0,item:a,emitter:u,view:d,theme:g,shared:e}))}}EP.props={reapplyWhenUpdate:!0};var dh=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const AP="legend-category",lK="legend-continuous",uK="items-item",fK="legend-category-item-marker",dK="legend-category-item-label";function TP(t){return t.getElementsByClassName(fK)[0]}function PP(t){return t.getElementsByClassName(dK)[0]}function CP(t){return t.getElementsByClassName(uK)}function kP(t){return t.getElementsByClassName(AP)}function hK(t){return t.getElementsByClassName(lK)}function Sy(t){let e=t.parentNode;for(;e&&!e.__data__;)e=e.parentNode;return e.__data__}function vpt(t){let e=t;for(;e&&!e.attr("class").startsWith("legend");)e=e.children[0];return e.attributes}function pK(t,{legends:e,marker:n,label:r,datum:i,filter:a,emitter:o,channel:s,state:c={}}){const l=new Map,u=new Map,f=new Map,{unselected:d={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=c,h={unselected:fe(d,"marker")},p={unselected:fe(d,"label")},{setState:v,removeState:g}=za(h,void 0),{setState:y,removeState:m}=za(p,void 0),b=Array.from(e(t));let _=b.map(i);const O=()=>{for(const E of b){const A=i(E),P=n(E),C=r(E);_.includes(A)?(g(P,"unselected"),m(C,"unselected")):(v(P,"unselected"),y(C,"unselected"))}};for(const E of b){const A=()=>{wo(t,"pointer")},P=()=>{BZ(t)},C=j=>dh(this,void 0,void 0,function*(){const N=i(E),k=_.indexOf(N);k===-1?_.push(N):_.splice(k,1),_.length===0&&_.push(...b.map(i)),yield a(_),O();const{nativeEvent:R=!0}=j;R&&(_.length===b.length?o.emit("legend:reset",{nativeEvent:R}):o.emit("legend:filter",Object.assign(Object.assign({},j),{nativeEvent:R,data:{channel:s,values:_}})))});E.addEventListener("click",C),E.addEventListener("pointerenter",A),E.addEventListener("pointerout",P),l.set(E,C),u.set(E,A),f.set(E,P)}const w=E=>dh(this,void 0,void 0,function*(){const{nativeEvent:A}=E;if(A)return;const{data:P}=E,{channel:C,values:j}=P;C===s&&(_=j,yield a(_),O())}),M=E=>dh(this,void 0,void 0,function*(){const{nativeEvent:A}=E;A||(_=b.map(i),yield a(_),O())});return o.on("legend:filter",w),o.on("legend:reset",M),()=>{for(const E of b)E.removeEventListener("click",l.get(E)),E.removeEventListener("pointerenter",u.get(E)),E.removeEventListener("pointerout",f.get(E)),o.off("legend:filter",w),o.off("legend:reset",M)}}function vK(t,{legend:e,filter:n,emitter:r,channel:i}){const a=({detail:{value:o}})=>{n(o),r.emit({nativeEvent:!0,data:{channel:i,values:o}})};return e.addEventListener("valuechange",a),()=>{e.removeEventListener("valuechange",a)}}function RP(t,{legend:e,channel:n,value:r,ordinal:i,channels:a,allChannels:o,facet:s=!1}){return dh(this,void 0,void 0,function*(){const{view:c,update:l,setState:u}=t;u(e,f=>{const{marks:d}=f,h=d.map(p=>{if(p.type==="legends")return p;const{transform:v=[]}=p,g=v.findIndex(({type:b})=>b.startsWith("group")||b.startsWith("bin")),y=[...v];y.splice(g+1,0,{type:"filter",[n]:{value:r,ordinal:i}});const m=Object.fromEntries(a.map(b=>[b,{domain:c.scale[b].getOptions().domain}]));return Dt({},p,Object.assign(Object.assign({transform:y,scale:m},!i&&{animate:!1}),{legend:s?!1:Object.fromEntries(o.map(b=>[b,{preserve:!0}]))}))});return Object.assign(Object.assign({},f),{marks:h})}),yield l()})}function gK(t,e){for(const n of t)RP(n,Object.assign(Object.assign({},e),{facet:!0}))}function yK(){return(t,e,n)=>{const{container:r}=t,i=e.filter(f=>f!==t),a=i.length>0,o=f=>Sy(f).scales.map(d=>d.name),s=[...kP(r),...hK(r)],c=s.flatMap(o),l=a?ys(gK,50,{trailing:!0}):ys(RP,50,{trailing:!0}),u=s.map(f=>{const{name:d,domain:h}=Sy(f).scales[0],p=o(f),v={legend:f,channel:d,channels:p,allChannels:c};return f.className===AP?pK(r,{legends:CP,marker:TP,label:PP,datum:g=>{const{__data__:y}=g,{index:m}=y;return h[m]},filter:g=>{const y=Object.assign(Object.assign({},v),{value:g,ordinal:!0});l(a?i:t,y)},state:f.attributes.state,channel:d,emitter:n}):vK(r,{legend:f,filter:g=>{const y=Object.assign(Object.assign({},v),{value:g,ordinal:!1});l(a?i:t,y)},emitter:n,channel:d})});return()=>{u.forEach(f=>f())}}}function mK(){return(t,e,n)=>{const{container:r,view:i,options:a}=t,o=kP(r),s=Oo(r),c=h=>Sy(h).scales[0].name,l=h=>{const{scale:{[h]:p}}=i;return p},u=Mc(a,["active","inactive"]),f=Kl(s,gs(i)),d=[];for(const h of o){const p=Y=>{const{data:q}=h.attributes,{__data__:rt}=Y,{index:st}=rt;return q[st].label},v=c(h),g=CP(h),y=l(v),m=Kn(s,Y=>y.invert(Y.__data__[v])),{state:b={}}=h.attributes,{inactive:_={}}=b,{setState:O,removeState:w}=za(u,f),M={inactive:fe(_,"marker")},E={inactive:fe(_,"label")},{setState:A,removeState:P}=za(M),{setState:C,removeState:j}=za(E),N=Y=>{for(const q of g){const rt=TP(q),st=PP(q);q===Y||Y===null?(P(rt,"inactive"),j(st,"inactive")):(A(rt,"inactive"),C(st,"inactive"))}},k=(Y,q)=>{const rt=p(q),st=new Set(m.get(rt));for(const Yt of s)st.has(Yt)?O(Yt,"active"):O(Yt,"inactive");N(q);const{nativeEvent:At=!0}=Y;At&&n.emit("legend:highlight",Object.assign(Object.assign({},Y),{nativeEvent:At,data:{channel:v,value:rt}}))},R=new Map;for(const Y of g){const q=rt=>{k(rt,Y)};Y.addEventListener("pointerover",q),R.set(Y,q)}const D=Y=>{for(const rt of s)w(rt,"inactive","active");N(null);const{nativeEvent:q=!0}=Y;q&&n.emit("legend:unhighlight",{nativeEvent:q})},B=Y=>{const{nativeEvent:q,data:rt}=Y;if(q)return;const{channel:st,value:At}=rt;if(st!==v)return;const Yt=g.find(qt=>p(qt)===At);Yt&&k({nativeEvent:!1},Yt)},F=Y=>{const{nativeEvent:q}=Y;q||D({nativeEvent:!1})};h.addEventListener("pointerleave",D),n.on("legend:highlight",B),n.on("legend:unhighlight",F);const z=()=>{h.removeEventListener(D),n.off("legend:highlight",B),n.off("legend:unhighlight",F);for(const[Y,q]of R)Y.removeEventListener(q)};d.push(z)}return()=>d.forEach(h=>h())}}var Ti=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii||ca||l{const e=t.attributes,{x:n,y:r,width:i,height:a,class:o,renders:s={},handleSize:c=10,document:l}=e,u=Ti(e,["x","y","width","height","class","renders","handleSize","document"]);if(!l||i===void 0||a===void 0||n===void 0||r===void 0)return;const f=c/2,d=(At,Yt,qt)=>{At.handle||(At.handle=qt.createElement("rect"),At.append(At.handle));const{handle:Rt}=At;return Rt.attr(Yt),Rt},h=fe(ev(u,"handleNW","handleNE"),"handleN"),{render:p=d}=h,v=Ti(h,["render"]),g=fe(u,"handleE"),{render:y=d}=g,m=Ti(g,["render"]),b=fe(ev(u,"handleSE","handleSW"),"handleS"),{render:_=d}=b,O=Ti(b,["render"]),w=fe(u,"handleW"),{render:M=d}=w,E=Ti(w,["render"]),A=fe(u,"handleNW"),{render:P=d}=A,C=Ti(A,["render"]),j=fe(u,"handleNE"),{render:N=d}=j,k=Ti(j,["render"]),R=fe(u,"handleSE"),{render:D=d}=R,B=Ti(R,["render"]),F=fe(u,"handleSW"),{render:z=d}=F,Y=Ti(F,["render"]),q=(At,Yt)=>{const{id:qt}=At,Rt=At.attributes,{x:Lt,y:le}=Rt,ue=Ti(Rt,["x","y"]),we=Yt(At,Object.assign({x:0,y:0},ue),l);we.id=qt,we.style.draggable=!0},rt=At=>()=>{const Yt=rc(qt=>q(qt,At));return new Yt({})},st=je(t).attr("className",o).style("x",n).style("y",r).style("draggable",!0);st.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(Ga,Object.assign({width:i,height:a},ev(u,"handle"))),st.maybeAppend("handle-n",rt(p)).style("x",f).style("y",-f).style("width",i-c).style("height",c).style("fill","transparent").call(Ga,v),st.maybeAppend("handle-e",rt(y)).style("x",i-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(Ga,m),st.maybeAppend("handle-s",rt(_)).style("x",f).style("y",a-f).style("width",i-c).style("height",c).style("fill","transparent").call(Ga,O),st.maybeAppend("handle-w",rt(M)).style("x",-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(Ga,E),st.maybeAppend("handle-nw",rt(P)).style("x",-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,C),st.maybeAppend("handle-ne",rt(N)).style("x",i-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,k),st.maybeAppend("handle-se",rt(D)).style("x",i-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,B),st.maybeAppend("handle-sw",rt(z)).style("x",-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,Y)});function My(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:s=_K(t),brushRegion:c=(Rt,Lt,le,ue,we)=>[Rt,Lt,le,ue],reverse:l=!1,fill:u="#777",fillOpacity:f="0.3",stroke:d="#fff",selectedHandles:h=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=e,p=Ti(e,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let v=null,g=null,y=null,m=null,b=null,_=!1;const[O,w,M,E]=s;wo(t,"crosshair"),t.style.draggable=!0;const A=(Rt,Lt,le)=>{if(a(le),m&&m.remove(),b&&b.remove(),v=[Rt,Lt],l)return P();C()},P=()=>{b=new ri({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:f,stroke:d,pointerEvents:"none"})}),m=new LP({style:{x:0,y:0,width:0,height:0,draggable:!0,document:t.ownerDocument},className:"mask"}),t.appendChild(b),t.appendChild(m)},C=()=>{m=new LP({style:Object.assign(Object.assign({document:t.ownerDocument,x:0,y:0},p),{fill:u,fillOpacity:f,stroke:d,draggable:!0}),className:"mask"}),t.appendChild(m)},j=(Rt=!0)=>{m&&m.remove(),b&&b.remove(),v=null,g=null,y=null,_=!1,m=null,b=null,r(Rt)},N=(Rt,Lt,le=!0)=>{const[ue,we,Ue,ze]=xK(Rt[0],Rt[1],Lt[0],Lt[1],s),[Je,hn,xn,Un]=c(ue,we,Ue,ze,s);return l?R(Je,hn,xn,Un):k(Je,hn,xn,Un),n(Je,hn,xn,Un,le),[Je,hn,xn,Un]},k=(Rt,Lt,le,ue)=>{m.style.x=Rt,m.style.y=Lt,m.style.width=le-Rt,m.style.height=ue-Lt},R=(Rt,Lt,le,ue)=>{b.style.d=` - M${O},${w}L${M},${w}L${M},${E}L${O},${E}Z - M${Rt},${Lt}L${Rt},${ue}L${le},${ue}L${le},${Lt}Z - `,m.style.x=Rt,m.style.y=Lt,m.style.width=le-Rt,m.style.height=ue-Lt},D=Rt=>{const Lt=(hn,xn,Un,mr,xi)=>hn+xnxi?xi-Un:hn,le=Rt[0]-y[0],ue=Rt[1]-y[1],we=Lt(le,v[0],g[0],O,M),Ue=Lt(ue,v[1],g[1],w,E),ze=[v[0]+we,v[1]+Ue],Je=[g[0]+we,g[1]+Ue];N(ze,Je)},B={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},F=Rt=>Y(Rt)||z(Rt),z=Rt=>{const{id:Lt}=Rt;return h.indexOf(Lt)===-1?!1:new Set(Object.keys(B)).has(Lt)},Y=Rt=>Rt===m.getElementById("selection"),q=Rt=>{const{target:Lt}=Rt,[le,ue]=my(t,Rt);if(!m||!F(Lt)){A(le,ue,Rt),_=!0;return}F(Lt)&&(y=[le,ue])},rt=Rt=>{const{target:Lt}=Rt,le=my(t,Rt);if(!v)return;if(!y)return N(v,le);if(Y(Lt))return D(le);const[ue,we]=[le[0]-y[0],le[1]-y[1]],{id:Ue}=Lt;if(B[Ue]){const[ze,Je,hn,xn]=B[Ue].vector;return N([v[0]+ue*ze,v[1]+we*Je],[g[0]+ue*hn,g[1]+we*xn])}},st=Rt=>{if(y){y=null;const{x:Ue,y:ze,width:Je,height:hn}=m.style;v=[Ue,ze],g=[Ue+Je,ze+hn],o(Ue,ze,Ue+Je,ze+hn,Rt);return}g=my(t,Rt);const[Lt,le,ue,we]=N(v,g);_=!1,i(Lt,le,ue,we,Rt)},At=Rt=>{const{target:Lt}=Rt;m&&!F(Lt)&&j()},Yt=Rt=>{const{target:Lt}=Rt;!m||!F(Lt)||_?wo(t,"crosshair"):Y(Lt)?wo(t,"move"):z(Lt)&&wo(t,B[Lt.id].cursor)},qt=()=>{wo(t,"default")};return t.addEventListener("dragstart",q),t.addEventListener("drag",rt),t.addEventListener("dragend",st),t.addEventListener("click",At),t.addEventListener("pointermove",Yt),t.addEventListener("pointerleave",qt),{mask:m,move(Rt,Lt,le,ue,we=!0){m||A(Rt,Lt,{}),v=[Rt,Lt],g=[le,ue],N([Rt,Lt],[le,ue],we)},remove(Rt=!0){m&&j(Rt)},destroy(){m&&j(!1),wo(t,"default"),t.removeEventListener("dragstart",q),t.removeEventListener("drag",rt),t.removeEventListener("dragend",st),t.removeEventListener("click",At),t.removeEventListener("pointermove",Yt),t.removeEventListener("pointerleave",qt)}}}function Ey(t,e,n){return e.filter(r=>{if(r===t)return!1;const{interaction:i={}}=r.options;return Object.values(i).find(a=>a.brushKey===n)})}function OK(t,e,n){return Ey(t,e,n).map(r=>Fa(r.container))}function wK(t,e,n){return Ey(t,e,n).map(r=>r.options)}function NP(t,e){var{elements:n,selectedHandles:r,siblings:i=rt=>[],datum:a,brushRegion:o,extent:s,reverse:c,scale:l,coordinate:u,series:f=!1,key:d=rt=>rt,bboxOf:h=rt=>{const{x:st,y:At,width:Yt,height:qt}=rt.style;return{x:st,y:At,width:Yt,height:qt}},state:p={},emitter:v}=e,g=Ti(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const y=n(t),m=i(t),b=m.flatMap(n),_=Kl(y,a),O=fe(g,"mask"),{setState:w,removeState:M}=za(p,_),E=new Map,{width:A,height:P,x:C=0,y:j=0}=h(t),N=s||[0,0,A,P],k=()=>{for(const rt of[...y,...b])M(rt,"active","inactive")},R=(rt,st,At,Yt)=>{var qt;for(const Lt of m)(qt=Lt.brush)===null||qt===void 0||qt.remove();const Rt=new Set;for(const Lt of y){const{min:le,max:ue}=Lt.getLocalBounds(),[we,Ue]=le,[ze,Je]=ue;bK([we,Ue,ze,Je],[rt,st,At,Yt])?(w(Lt,"active"),Rt.add(d(Lt))):w(Lt,"inactive")}for(const Lt of b)Rt.has(d(Lt))?w(Lt,"active"):w(Lt,"inactive")},D=()=>{for(const rt of y)M(rt,"inactive");for(const rt of E.values())rt.remove();E.clear()},B=(rt,st,At,Yt)=>{const qt=Rt=>{const Lt=Rt.cloneNode();return Lt.__data__=Rt.__data__,Rt.parentNode.appendChild(Lt),E.set(Rt,Lt),Lt};for(const Rt of y){const Lt=E.get(Rt)||qt(Rt);Lt.style.clipPath=new Xo({style:{x:rt+C,y:st+j,width:At-rt,height:Yt-st}}),w(Rt,"inactive"),w(Lt,"active")}},F=My(t,Object.assign(Object.assign({},O),{extent:N,brushRegion:o,reverse:c,selectedHandles:r,brushended:rt=>{const st=f?D:k;rt&&v.emit("brush:remove",{nativeEvent:!0}),st()},brushed:(rt,st,At,Yt,qt)=>{const Rt=ah(rt,st,At,Yt,l,u);qt&&v.emit("brush:highlight",{nativeEvent:!0,data:{selection:Rt}}),(f?B:R)(rt,st,At,Yt)},brushcreated:(rt,st,At,Yt,qt)=>{const Rt=ah(rt,st,At,Yt,l,u);v.emit("brush:end",Object.assign(Object.assign({},qt),{nativeEvent:!0,data:{selection:Rt}}))},brushupdated:(rt,st,At,Yt,qt)=>{const Rt=ah(rt,st,At,Yt,l,u);v.emit("brush:end",Object.assign(Object.assign({},qt),{nativeEvent:!0,data:{selection:Rt}}))},brushstarted:rt=>{v.emit("brush:start",rt)}})),z=({nativeEvent:rt,data:st})=>{if(rt)return;const{selection:At}=st,[Yt,qt,Rt,Lt]=yZ(At,l,u);F.move(Yt,qt,Rt,Lt,!1)};v.on("brush:highlight",z);const Y=({nativeEvent:rt}={})=>{rt||F.remove(!1)};v.on("brush:remove",Y);const q=F.destroy.bind(F);return F.destroy=()=>{v.off("brush:highlight",z),v.off("brush:remove",Y),q()},F}function Ay(t){var{facet:e,brushKey:n}=t,r=Ti(t,["facet","brushKey"]);return(i,a,o)=>{const{container:s,view:c,options:l}=i,u=Fa(s),f={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},d=["active",["inactive",{opacity:.5}]],{scale:h,coordinate:p}=c;if(e){const g=u.getBounds(),y=g.min[0],m=g.min[1],b=g.max[0],_=g.max[1];return NP(u.parentNode.parentNode,Object.assign(Object.assign({elements:()=>rP(i,a),datum:gs(gy(i,a).map(O=>O.view)),brushRegion:(O,w,M,E)=>[O,w,M,E],extent:[y,m,b,_],state:Mc(gy(i,a).map(O=>O.options),d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r))}const v=NP(u,Object.assign(Object.assign({elements:Oo,key:g=>g.__data__.key,siblings:()=>OK(i,a,n),datum:gs([c,...Ey(i,a,n).map(g=>g.view)]),brushRegion:(g,y,m,b)=>[g,y,m,b],extent:void 0,state:Mc([l,...wK(i,a,n)],d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r));return u.brush=v,()=>v.destroy()}}function Ty(t,e,n,r,i){const[,a,,o]=i;return[t,a,n,o]}function SK(t){return Ay(Object.assign(Object.assign({},t),{brushRegion:Ty,selectedHandles:["handle-e","handle-w"]}))}function Py(t,e,n,r,i){const[a,,o]=i;return[a,e,o,r]}function MK(t){return Ay(Object.assign(Object.assign({},t),{brushRegion:Py,selectedHandles:["handle-n","handle-s"]}))}var Cy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i[-1/0,v,1/0,y]:(p,v,g,y)=>[Math.floor(l-r),v,Math.ceil(f-r),y]}}function RK(t,e){var{offsetY:n,offsetX:r,cross:i=!1}=e,a=Cy(e,["offsetY","offsetX","cross"]);const o=DP(t),s=jP(t),[,c]=s.getLocalBounds().min,[l,u]=o.min,[f,d]=o.max,h=d-u;return{brushRegion:Ty,hotZone:new Xo({className:IP,style:Object.assign({x:l,width:f-l,y:i?u:c-h,height:i?h:h*2},a)}),extent:i?(p,v,g,y)=>[p,-1/0,g,1/0]:(p,v,g,y)=>[p,Math.floor(u-n),g,Math.ceil(d-n)]}}function LK(t,e){var{axes:n,elements:r,points:i,horizontal:a,datum:o,offsetY:s,offsetX:c,reverse:l=!1,state:u={},emitter:f,coordinate:d}=e,h=Cy(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);const p=r(t),v=n(t),g=Kl(p,o),{setState:y,removeState:m}=za(u,g),b=new Map,_=fe(h,"mask"),O=z=>Array.from(b.values()).every(([Y,q,rt,st])=>z.some(([At,Yt])=>At>=Y&&At<=rt&&Yt>=q&&Yt<=st)),w=v.map(z=>z.attributes.scale),M=z=>z.length>2?[z[0],z[z.length-1]]:z,E=new Map,A=()=>{E.clear();for(let z=0;z{const q=[];for(const st of p){const At=i(st);O(At)?(y(st,"active"),q.push(st)):y(st,"inactive")}if(E.set(z,j(q,z)),!Y)return;const rt=()=>{if(!N)return Array.from(E.values());const st=[];for(const[At,Yt]of E){const qt=w[At],{name:Rt}=qt.getOptions();Rt==="x"?st[0]=Yt:st[1]=Yt}return st};f.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:rt()}})},C=z=>{for(const Y of p)m(Y,"active","inactive");A(),z&&f.emit("brushAxis:remove",{nativeEvent:!0})},j=(z,Y)=>{const q=w[Y],{name:rt}=q.getOptions(),st=z.map(At=>{const Yt=At.__data__;return q.invert(Yt[rt])});return M(_o(q,st))},N=v.some(a)&&v.some(z=>!a(z)),k=[];for(let z=0;z{const{nativeEvent:Y}=z;Y||k.forEach(q=>q.remove(!1))},D=(z,Y,q)=>{const[rt,st]=z,At=Rt=>Rt.getStep?Rt.getStep():0,Yt=B(rt,Y,q),qt=B(st,Y,q)+At(Y);return a(q)?[Yt,-1/0,qt,1/0]:[-1/0,Yt,1/0,qt]},B=(z,Y,q)=>{const{height:rt,width:st}=d.getOptions(),At=Y.clone();return a(q)?At.update({range:[0,st]}):At.update({range:[rt,0]}),At.map(z)},F=z=>{const{nativeEvent:Y}=z;if(Y)return;const{selection:q}=z.data;for(let rt=0;rt{k.forEach(z=>z.destroy()),f.off("brushAxis:remove",R),f.off("brushAxis:highlight",F)}}function NK(t){return(e,n,r)=>{const{container:i,view:a,options:o}=e,s=Fa(i),{x:c,y:l}=s.getBBox(),{coordinate:u}=a;return LK(i,Object.assign({elements:Oo,axes:PK,offsetY:l,offsetX:c,points:f=>f.__data__.points,horizontal:f=>{const{startPos:[d,h],endPos:[p,v]}=f.attributes;return d!==p&&h===v},datum:gs(a),state:Mc(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},t))}}var IK=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},BP=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{timeStamp:r}=n;return e!==null&&r-e{if(w)return;const{selection:E}=M;n(E,{nativeEvent:!1})};return s.on("brush:filter",O),()=>{m.destroy(),s.off("brush:filter",O),t.removeEventListener("click",_)}}function ky(t){var{hideX:e=!0,hideY:n=!0}=t,r=BP(t,["hideX","hideY"]);return(i,a,o)=>{const{container:s,view:c,options:l,update:u,setState:f}=i,d=Fa(s),h={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1};let p=!1,v=!1,g=c;const{scale:y,coordinate:m}=c;return DK(d,Object.assign(Object.assign({brushRegion:(b,_,O,w)=>[b,_,O,w],selection:(b,_,O,w)=>{const{scale:M,coordinate:E}=g;return ah(b,_,O,w,M,E)},filter:(b,_)=>IK(this,void 0,void 0,function*(){if(v)return;v=!0;const[O,w]=b;f("brushFilter",E=>{const{marks:A}=E,P=A.map(C=>Dt({axis:Object.assign(Object.assign({},e&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},C,{scale:{x:{domain:O,nice:!1},y:{domain:w,nice:!1}}}));return Object.assign(Object.assign({},l),{marks:P,clip:!0})}),o.emit("brush:filter",Object.assign(Object.assign({},_),{data:{selection:[O,w]}})),g=(yield u()).view,v=!1,p=!0}),reset:b=>{if(v||!p)return;const{scale:_}=c,{x:O,y:w}=_,M=O.getOptions().domain,E=w.getOptions().domain;o.emit("brush:filter",Object.assign(Object.assign({},b),{data:{selection:[M,E]}})),p=!1,g=c,f("brushFilter"),u()},extent:void 0,emitter:o,scale:y,coordinate:m},h),r))}}function BK(t){return ky(Object.assign(Object.assign({hideX:!0},t),{brushRegion:Ty}))}function FK(t){return ky(Object.assign(Object.assign({hideY:!0},t),{brushRegion:Py}))}var zK=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const GK="slider";function WK(t,e,n,r=!1,i="x",a="y"){const{marks:o}=t,s=o.map(c=>{var l,u;return Dt({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},c,{scale:e,[n]:Object.assign(Object.assign({},((l=c[n])===null||l===void 0?void 0:l[i])&&{[i]:Object.assign({preserve:!0},r&&{ratio:null})}),((u=c[n])===null||u===void 0?void 0:u[a])&&{[a]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:s,clip:!0,animate:!1})}function HK(t,e,n){const[r,i]=t,a=n?c=>1-c:c=>c,o=Oc(e,a(r),!0),s=Oc(e,a(i),!1);return _o(e,[o,s])}function hh(t){return[t[0],t[t.length-1]]}function FP({initDomain:t={},className:e=GK,prefix:n="slider",setValue:r=(c,l)=>c.setValues(l),hasState:i=!1,wait:a=50,leading:o=!0,trailing:s=!1}){return(c,l,u)=>{const{container:f,view:d,update:h,setState:p}=c,v=f.getElementsByClassName(e);if(!v.length)return()=>{};let g=!1;const{scale:y,coordinate:m,layout:b}=d,{paddingLeft:_,paddingTop:O,paddingBottom:w,paddingRight:M}=b,{x:E,y:A}=y,P=$n(m),C=R=>{const D=R==="vertical"?"y":"x",B=R==="vertical"?"x":"y";return P?[B,D]:[D,B]},j=new Map,N=new Set,k={x:t.x||E.getOptions().domain,y:t.y||A.getOptions().domain};for(const R of v){const{orientation:D}=R.attributes,[B,F]=C(D),z=`${n}${ao(B)}:filter`,Y=B==="x",{ratio:q}=E.getOptions(),{ratio:rt}=A.getOptions(),st=qt=>{if(qt.data){const{selection:we}=qt.data,[Ue=hh(k.x),ze=hh(k.y)]=we;return Y?[_o(E,Ue,q),_o(A,ze,rt)]:[_o(A,ze,rt),_o(E,Ue,q)]}const{value:Rt}=qt.detail,Lt=y[B],le=HK(Rt,Lt,P&&D==="horizontal"),ue=k[F];return[le,ue]},At=ys(qt=>zK(this,void 0,void 0,function*(){if(g)return;g=!0;const{nativeEvent:Rt=!0}=qt,[Lt,le]=st(qt);if(k[B]=Lt,k[F]=le,Rt){const ue=Y?Lt:le,we=Y?le:Lt;u.emit(z,Object.assign(Object.assign({},qt),{nativeEvent:Rt,data:{selection:[hh(ue),hh(we)]}}))}p(R,ue=>Object.assign(Object.assign({},WK(ue,{[B]:{domain:Lt,nice:!1}},n,i,B,F)),{paddingLeft:_,paddingTop:O,paddingBottom:w,paddingRight:M})),yield h(),g=!1}),a,{leading:o,trailing:s}),Yt=qt=>{const{nativeEvent:Rt}=qt;if(Rt)return;const{data:Lt}=qt,{selection:le}=Lt,[ue,we]=le;R.dispatchEvent(new Nn("valuechange",{data:Lt,nativeEvent:!1}));const Ue=Y?oh(ue,E):oh(we,A);r(R,Ue)};u.on(z,Yt),R.addEventListener("valuechange",At),j.set(R,At),N.add([z,Yt])}return h(),()=>{for(const[R,D]of j)R.removeEventListener("valuechange",D);for(const[R,D]of N)u.off(R,D)}}}const zP="g2-scrollbar";function YK(t={}){return(e,n,r)=>{const{view:i,container:a}=e;if(!a.getElementsByClassName(zP).length)return()=>{};const{scale:s}=i,{x:c,y:l}=s,u={x:[...c.getOptions().domain],y:[...l.getOptions().domain]};return c.update({domain:c.getOptions().expectedDomain}),l.update({domain:l.getOptions().expectedDomain}),FP(Object.assign(Object.assign({},t),{initDomain:u,className:zP,prefix:"scrollbar",hasState:!0,setValue:(d,h)=>d.setValue(h[0])}))(e,n,r)}}var $K=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i${e}`}const XK={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function GP(t){return t.nodeName!=="text"?!1:!!t.isOverflowing()}function WP(t){var{offsetX:e=8,offsetY:n=8}=t,r=$K(t,["offsetX","offsetY"]);return i=>{const{container:a}=i,[o,s]=a.getBounds().min,c=fe(r,"tip"),l=new Set,u=d=>{const{target:h}=d;if(!GP(h)){d.stopPropagation();return}const{offsetX:p,offsetY:v}=d,g=p+e-o,y=v+n-s;if(h.tip){h.tip.style.x=g,h.tip.style.y=y;return}const{text:m}=h.style,b=new xf({className:"poptip",style:{innerHTML:VK("div",m,Object.assign(Object.assign({},XK),c)),x:g,y}});a.appendChild(b),h.tip=b,l.add(b)},f=d=>{const{target:h}=d;if(!GP(h)){d.stopPropagation();return}h.tip&&(h.tip.remove(),h.tip=null,l.delete(h.tip))};return a.addEventListener("pointerover",u),a.addEventListener("pointerout",f),()=>{a.removeEventListener("pointerover",u),a.removeEventListener("pointerout",f),l.forEach(d=>d.remove())}}}WP.props={reapplyWhenUpdate:!0};var UK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t;if(!Array.isArray(e))return[];const{x:n=0,y:r=0,width:i,height:a,data:o}=t;return e.map(s=>{var{data:c,x:l,y:u,width:f,height:d}=s,h=UK(s,["data","x","y","width","height"]);return Object.assign(Object.assign({},h),{data:Iv(c,o),x:l!=null?l:n,y:u!=null?u:r,width:f!=null?f:i,height:d!=null?d:a})})};HP.props={};var qK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t;if(!Array.isArray(e))return[];const{direction:n="row",ratio:r=e.map(()=>1),padding:i=0,data:a}=t,[o,s,c,l]=n==="col"?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((v,g)=>v+g),f=t[s]-i*(e.length-1),d=r.map(v=>f*(v/u)),h=[];let p=t[o]||0;for(let v=0;v{const{encode:e,data:n,scale:r,shareSize:i=!1}=t,{x:a,y:o}=e,s=(c,l)=>{var u;if(c===void 0||!i)return{};const f=Kn(n,p=>p[c]),d=((u=r==null?void 0:r[l])===null||u===void 0?void 0:u.domain)||Array.from(f.keys()),h=d.map(p=>f.has(p)?f.get(p).length:1);return{domain:d,flex:h}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:a===void 0?null:{position:"top"}},a===void 0&&{paddingInner:0}),s(a,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:o===void 0?null:{position:"right"}},o===void 0&&{paddingInner:0}),s(o,"y"))}}}),Ry=tc(t=>{const{data:e,scale:n}=t,r=[t];let i,a,o;for(;r.length;){const f=r.shift(),{children:d,encode:h={},scale:p={},legend:v={}}=f,{color:g}=h,{color:y}=p,{color:m}=v;g!==void 0&&(i=g),y!==void 0&&(a=y),m!==void 0&&(o=m),Array.isArray(d)&&r.push(...d)}const s=()=>{var f;const d=(f=n==null?void 0:n.color)===null||f===void 0?void 0:f.domain;if(d!==void 0)return[d];if(i===void 0)return[void 0];const h=typeof i=="function"?i:v=>v[i],p=e.map(h);return p.some(v=>typeof v=="number")?[Ia(p)]:[Array.from(new Set(p)),"ordinal"]},c=typeof i=="string"?i:"",[l,u]=s();return{encode:{color:i},scale:{color:Dt({},a,{domain:l,type:u})},legend:{color:Dt({title:c},o)}}}),Ly=tc(()=>({animate:{enterType:"fadeIn"}})),Ny=ec(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),Iy=ec(()=>({type:"cell"})),$P=ec(t=>{const{data:e}=t;return{data:{type:"inline",value:e,transform:[{type:"custom",callback:()=>{const{data:r,encode:i}=t,{x:a,y:o}=i,s=a?Array.from(new Set(r.map(u=>u[a]))):[],c=o?Array.from(new Set(r.map(u=>u[o]))):[];return(()=>{if(s.length&&c.length){const u=[];for(const f of s)for(const d of c)u.push({[a]:f,[o]:d});return u}if(s.length)return s.map(u=>({[a]:u}));if(c.length)return c.map(u=>({[o]:u}))})()}}]}}}),VP=ec((t,e=QK,n=JK,r=tQ,i={})=>{const{data:a,encode:o,children:s,scale:c,x:l=0,y:u=0,shareData:f=!1,key:d}=t,{value:h}=a,{x:p,y:v}=o,{color:g}=c,{domain:y}=g;return{children:(b,_,O)=>{const{x:w,y:M}=_,{paddingLeft:E,paddingTop:A,marginLeft:P,marginTop:C}=O,{domain:j}=w.getOptions(),{domain:N}=M.getOptions(),k=Zo(b),R=b.map(e),D=b.map(({x:rt,y:st})=>[w.invert(rt),M.invert(st)]),F=D.map(([rt,st])=>At=>{const{[p]:Yt,[v]:qt}=At;return(p!==void 0?Yt===rt:!0)&&(v!==void 0?qt===st:!0)}).map(rt=>h.filter(rt)),z=f?Mn(F,rt=>rt.length):void 0,Y=D.map(([rt,st])=>({columnField:p,columnIndex:j.indexOf(rt),columnValue:rt,columnValuesLength:j.length,rowField:v,rowIndex:N.indexOf(st),rowValue:st,rowValuesLength:N.length})),q=Y.map(rt=>Array.isArray(s)?s:[s(rt)].flat(1));return k.flatMap(rt=>{const[st,At,Yt,qt]=R[rt],Rt=Y[rt],Lt=F[rt];return q[rt].map(ue=>{var we,Ue,{scale:ze,key:Je,facet:hn=!0,axis:xn={},legend:Un={}}=ue,mr=ZK(ue,["scale","key","facet","axis","legend"]);const xi=((we=ze==null?void 0:ze.y)===null||we===void 0?void 0:we.guide)||xn.y,Va=((Ue=ze==null?void 0:ze.x)===null||Ue===void 0?void 0:Ue.guide)||xn.x,ws={x:{tickCount:p?5:void 0},y:{tickCount:v?5:void 0}},si=hn?Lt:Lt.length===0?[]:h,Ui={color:{domain:y}},An={x:XP(Va,n)(Rt,si),y:XP(xi,r)(Rt,si)};return Object.assign(Object.assign({key:`${Je}-${rt}`,data:si,margin:0,x:st+E+l+P,y:At+A+u+C,parentKey:d,width:Yt,height:qt,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!si.length,dataDomain:z,scale:Dt(ws,ze,Ui),axis:Dt({},xn,An),legend:!1},mr),i)})})}}});function QK(t){const{points:e}=t;return Dv(e)}function ph(t,e){return e.length?Dt({title:!1,tick:null,label:null},t):Dt({title:!1,tick:null,label:null,grid:null},t)}function JK(t){return(e,n)=>{const{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=e;if(r!==i-1)return ph(t,n);const s=a!==o-1?!1:void 0,c=n.length?void 0:null;return Dt({title:s,grid:c},t)}}function tQ(t){return(e,n)=>{const{rowIndex:r,columnIndex:i}=e;if(i!==0)return ph(t,n);const a=r!==0?!1:void 0,o=n.length?void 0:null;return Dt({title:a,grid:o},t)}}function XP(t,e){return typeof t=="function"?t:t===null||t===!1?()=>null:e(t)}const UP=()=>t=>[tu.of(t).call(Iy).call(Ry).call(Ly).call(KK).call(Ny).call($P).call(VP).value()];UP.props={};var jy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),nQ=ec(t=>{const{data:e,children:n,x:r=0,y:i=0,key:a}=t;return{children:(s,c,l)=>{const{x:u,y:f}=c,{paddingLeft:d,paddingTop:h,marginLeft:p,marginTop:v}=l,{domain:g}=u.getOptions(),{domain:y}=f.getOptions(),m=Zo(s),b=s.map(({points:M})=>Dv(M)),_=s.map(({x:M,y:E})=>[u.invert(M),f.invert(E)]),O=_.map(([M,E])=>({columnField:M,columnIndex:g.indexOf(M),columnValue:M,columnValuesLength:g.length,rowField:E,rowIndex:y.indexOf(E),rowValue:E,rowValuesLength:y.length})),w=O.map(M=>Array.isArray(n)?n:[n(M)].flat(1));return m.flatMap(M=>{const[E,A,P,C]=b[M],[j,N]=_[M],k=O[M];return w[M].map(D=>{var B,F;const{scale:z,key:Y,encode:q,axis:rt,interaction:st}=D,At=jy(D,["scale","key","encode","axis","interaction"]),Yt=(B=z==null?void 0:z.y)===null||B===void 0?void 0:B.guide,qt=(F=z==null?void 0:z.x)===null||F===void 0?void 0:F.guide,Rt={x:{facet:!1},y:{facet:!1}},Lt={x:iQ(qt)(k,e),y:aQ(Yt)(k,e)},le={x:{tickCount:5},y:{tickCount:5}};return Object.assign({data:e,parentKey:a,key:`${Y}-${M}`,x:E+d+r+p,y:A+h+i+v,width:P,height:C,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:Dt(Rt,z),axis:Dt(le,rt,Lt),legend:!1,encode:Dt({},q,{x:j,y:N}),interaction:Dt({},st,{legendFilter:!1})},At)})})}}}),rQ=ec(t=>{const{encode:e}=t,n=jy(t,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=e,o=jy(e,["position","x","y"]),s=[];for(const c of[i].flat(1))for(const l of[a].flat(1))s.push({$x:c,$y:l});return Object.assign(Object.assign({},n),{data:s,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},[i].flat(1).length===1&&{x:{paddingInner:0}}),[a].flat(1).length===1&&{y:{paddingInner:0}})})});function iQ(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{rowIndex:r,rowValuesLength:i}=e;if(r!==i-1)return ph(t,n)}}function aQ(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{columnIndex:r}=e;if(r!==0)return ph(t,n)}}const oQ=()=>t=>[tu.of(t).call(Iy).call(Ry).call(nQ).call(rQ).call(Ly).call(Ny).call(eQ).value()];var sQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),lQ=tc(t=>({coordinate:{type:"polar"}})),uQ=t=>{const{encode:e}=t,n=sQ(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function qP(t){return e=>null}function fQ(t){const{points:e}=t,[n,r,i,a]=e,o=Jn(n,a),s=ur(n,a),c=ur(r,i),l=xO(s,c),u=1/Math.sin(l/2),f=o/(1+u),d=f*Math.sqrt(2),[h,p]=i,g=nc(s)+l/2,y=f*u,m=h+y*Math.sin(g),b=p-y*Math.cos(g);return[m-d/2,b-d/2,d,d]}const dQ=()=>t=>[tu.of(t).call(Iy).call(uQ).call(Ry).call(lQ).call($P).call(VP,fQ,qP,qP,{frame:!1}).call(Ly).call(Ny).call(cQ).value()];function hQ(t,e,n){const i=n,a=[0,i],o=[-i+1,-0+1];if(t==="normal")return a;if(t==="reverse")return o;if(t==="alternate")return e%2===0?a:o;if(t==="reverse-alternate")return e%2===0?o:a}function pQ(t,e,n){const r=[t];for(;r.length;){const i=r.pop();i.animate=Dt({enter:{duration:e},update:{duration:e,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:e}},i.animate||{});const{children:a}=i;Array.isArray(a)&&r.push(...a)}return t}const ZP=()=>t=>{const{children:e=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:a="ease-in-out-sine"}=t,o=e.length;if(!Array.isArray(e)||o===0)return[];const{key:s}=e[0],c=e.map(l=>Object.assign(Object.assign({},l),{key:s})).map(l=>pQ(l,n,a));return function*(){let l=0,u;for(;r==="infinite"||l{var s;return[o,(s=un(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>In(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(Kn(e,a).values())}function KP(t){return Array.isArray(t)?mQ(t):typeof t=="function"?yQ(t):t==="series"?gQ:t==="value"?bQ:t==="sum"?xQ:t==="maxIndex"?_Q:()=>null}function QP(t,e){for(const n of t)n.sort(e)}function JP(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function vQ(t){return Array.isArray(t)?t:[t]}function gQ(t,e,n){return eu(r=>n[r])}function yQ(t){return(e,n,r)=>eu(i=>t(e[i]))}function mQ(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:fr(e[i][s],e[a][s]),0)}function bQ(t,e,n){return eu(r=>e[r])}function xQ(t,e,n){const r=Zo(t),i=Array.from(Kn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return eu(o=>a.get(n[o]))}function _Q(t,e,n){const r=Zo(t),i=Array.from(Kn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,ic(s,c=>e[c])]));return eu(o=>a.get(n[o]))}function eu(t){return(e,n)=>fr(t(e),t(n))}const tC=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=un(u,"y"),[p,v]=un(u,"y1"),[g]=o?Il(u,"series","color"):un(u,"color"),y=Mo(e,s,c),b=KP(n)(l,d,g);b&&QP(y,b);const _=new Array(s.length),O=new Array(s.length),w=new Array(s.length),M=[],E=[];for(const N of y){r&&N.reverse();const k=p?+p[N[0]]:0,R=[],D=[];for(const st of N){const At=w[st]=+d[st]-k;At<0?D.push(st):At>=0&&R.push(st)}const B=R.length>0?R:D,F=D.length>0?D:R;let z=R.length-1,Y=0;for(;z>0&&d[B[z]]===0;)z--;for(;Y0?rt=_[st]=(O[st]=rt)+At:_[st]=O[st]=rt}}const A=new Set(M),P=new Set(E),C=i==="y"?_:O,j=a==="y"?_:O;return[s,Dt({},c,{encode:{y0:Nd(d,h),y:dr(C,h),y1:dr(j,v)},style:Object.assign({first:(N,k)=>A.has(k),last:(N,k)=>P.has(k)},f)})]}};tC.props={};function eC(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function OQ(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function nC(t,e){const n=OQ(t,e);return n&&Math.sqrt(n)}function wQ(t,e,n){const r=eC(t),i=nC(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}var rC=Array.prototype,SQ=rC.slice,gpt=rC.map;function Dy(t){return()=>t}const MQ=Math.sqrt(50),EQ=Math.sqrt(10),AQ=Math.sqrt(2);function vh(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=MQ?10:a>=EQ?5:a>=AQ?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function CQ(t){return Math.max(1,Math.ceil(Math.log(eC(t))/Math.LN2)+1)}function kQ(){var t=sl,e=Ia,n=CQ;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Ia){const O=nu(f,d,_);isFinite(O)&&(O>0?d=(Math.floor(d/O)+1)*O:O<0&&(d=(Math.ceil(d*-O)+1)/-O))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;an;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));By(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(ru(t,n,e),i(t[r],a)>0&&ru(t,n,r);o0;)--s}i(t[n],a)===0?ru(t,n,s):(++s,ru(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function ru(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function RQ(t,e=fr){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?fr(o,i)>0:fr(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function gh(t,e,n){if(t=Float64Array.from(uZ(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return Ei(t);if(e>=1)return Mn(t);var r,i=(r-1)*e,a=Math.floor(i),o=Mn(By(t,a).subarray(0,a+1)),s=Ei(t.subarray(a+1));return o+(s-o)*(i-a)}}function mpt(t,e,n=number){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(i-a)}}function LQ(t,e,n=dy){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>dy(n(t[c],c,t))),e<=0)return uh(r);if(e>=1)return ic(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return By(i,o,0,a,(s,c)=>Vl(r[s],r[c])),o=RQ(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function Fy(t,e){return gh(t,.5,e)}function NQ(t,e){return LQ(t,.5,e)}var IQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function jQ(t){if(typeof t=="function")return[t,null];const n={mean:DQ,max:FQ,count:GQ,first:HQ,last:YQ,sum:WQ,min:zQ,median:BQ}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function DQ(){const t=(n,r)=>Ql(n,i=>+r[i]),e=Eo("mean");return[t,e]}function BQ(){const t=(n,r)=>Fy(n,i=>+r[i]),e=Eo("median");return[t,e]}function FQ(){const t=(n,r)=>Mn(n,i=>+r[i]),e=Eo("max");return[t,e]}function zQ(){const t=(n,r)=>Ei(n,i=>+r[i]),e=Eo("min");return[t,e]}function GQ(){const t=(n,r)=>n.length,e=Eo("count");return[t,e]}function WQ(){const t=(n,r)=>Di(n,i=>+r[i]),e=Eo("sum");return[t,e]}function HQ(){const t=(n,r)=>r[n[0]],e=Eo("first");return[t,e]}function YQ(){const t=(n,r)=>r[n[n.length-1]],e=Eo("last");return[t,e]}const zy=(t={})=>{const{groupBy:e}=t,n=IQ(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=un(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=jQ(p),[y,m]=un(o,h),b=c(m,p),_=s.map(O=>v(O,y!=null?y:a));return[h,Object.assign(Object.assign({},EX(_,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=un(o,h),g=s.map(y=>p[y[0]]);return[h,dr(g,v)]}),f=s.map(h=>a[h[0]]);return[Zo(s),Dt({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};zy.props={};var $Q=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=$Q(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=un(c,p);return v}),u=fe(r,iC),f=o.filter(p=>l.every(v=>In(v[p]))),d=[...e.map(p=>{const[v]=un(c,p);return v}).filter(In).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||VQ(g),m=kQ().thresholds(y).value(_=>+g[_])(f),b=new Map(m.flatMap(_=>{const{x0:O,x1:w}=_,M=`${O},${w}`;return _.map(E=>[E,M])}));return i[p]=b,_=>b.get(_)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(Kn(f,h).values())};return zy(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(iC)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Gy.props={};const aC=(t={})=>{const{thresholds:e}=t;return Gy(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};aC.props={};var XQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t,a=XQ(t,["groupBy","reverse","orderBy","padding"]);return(o,s)=>{const{data:c,encode:l,scale:u}=s,{series:f}=u,[d]=un(l,"y"),[h]=Il(l,"series","color"),p=JP(h,f),v=Mo(e,o,s),y=KP(r)(c,d,h);y&&QP(v,y);const m=new Array(o.length);for(const b of v){n&&b.reverse();for(let _=0;_{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=un(s,"x"),[d]=un(s,"y"),h=yh(f,l,n),p=yh(d,u,r),v=a.map(()=>mh(i(),...p)),g=a.map(()=>mh(i(),...h));return[a,Dt({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:dr(v),dx:dr(g)}})]}};sC.props={};const cC=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=un(a,"x"),l=yh(c,s,e),u=r.map(()=>mh(n(),...l));return[r,Dt({scale:{x:{padding:.5}}},i,{encode:{dx:dr(u)}})]}};cC.props={};const lC=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=un(a,"y"),l=yh(c,s,e),u=r.map(()=>mh(n(),...l));return[r,Dt({scale:{y:{padding:.5}}},i,{encode:{dy:dr(u)}})]}};lC.props={};var UQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,{x:a}=i,o=UQ(i,["x"]),s=Object.entries(o).filter(([d])=>d.startsWith("y")).map(([d])=>[d,un(i,d)[0]]),c=s.map(([d])=>[d,new Array(n.length)]),l=Mo(e,n,r),u=new Array(l.length);for(let d=0;ds.map(([,m])=>+m[y])),[v,g]=Ia(p);u[d]=(v+g)/2}const f=Math.max(...u);for(let d=0;d[d,dr(h,un(i,d)[1])]))})]}};uC.props={};const fC=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=un(a,"y"),[s,c]=un(a,"y1"),[l]=n?Il(a,"series","color"):un(a,"color"),u=Mo(e,r,i),f=new Array(r.length);for(const d of u){const h=d.map(p=>+o[p]);for(let p=0;pm!==p));f[v]=o[v]>g?g:o[v]}}return[r,Dt({},i,{encode:{y1:dr(f,c)}})]}};fC.props={};const dC=t=>{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,un(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(Kn(m,_=>g[_]).values());y.push(...b)}f=y}if(r){const[g]=un(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[go(o,d)]:Il(c,"enterDuration",go(o,d)),[p]=Il(c,"enterDelay",go(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[_]);for(const _ of m)v[_]=+p[_]+y;y+=b}return[o,Dt({},s,{encode:{enterDuration:Id(h),enterDelay:Id(v)}})]}};dC.props={};var qQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iEi(n,i=>r[+i]),max:(n,r)=>Mn(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>Ql(n,i=>r[+i]),median:(n,r)=>Fy(n,i=>r[+i]),sum:(n,r)=>Di(n,i=>r[+i]),deviation:(n,r)=>nC(n,i=>r[+i])}[t]||Mn}const hC=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,{x:s}=a,c=qQ(a,["x"]),l=Object.entries(c).filter(([v])=>v.startsWith("y")).map(([v])=>[v,un(a,v)[0]]),[,u]=l.find(([v])=>v==="y"),f=l.map(([v])=>[v,new Array(r.length)]),d=Mo(e,r,i),h=ZQ(n);for(const v of d){const g=h(v,u);for(const y of v)for(let m=0;m[v,dr(g,un(a,v)[1])]))},!p&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};hC.props={};function pC(t,e){return[t[0]]}function KQ(t,e){const n=t.length-1;return[t[n]]}function QQ(t,e){const n=ic(t,r=>e[r]);return[t[n]]}function JQ(t,e){const n=uh(t,r=>e[r]);return[t[n]]}function tJ(t){return typeof t=="function"?t:{first:pC,last:KQ,max:QQ,min:JQ}[t]||pC}const bh=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=Mo(e,i,a),[c]=un(o,n),l=tJ(r);return[s.flatMap(u=>l(u,c)),a]}};bh.props={};var eJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=eJ(t,["selector"]);return bh(Object.assign({channel:"x",selector:e},n))};vC.props={};var nJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=nJ(t,["selector"]);return bh(Object.assign({channel:"y",selector:e},n))};gC.props={};var rJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=rJ(t,["channels"]),r=(i,a)=>Mo(e,i,a);return zy(Object.assign(Object.assign({},n),{groupBy:r}))};iu.props={};const yC=(t={})=>iu(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));yC.props={};const mC=(t={})=>iu(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));mC.props={};const bC=(t={})=>iu(Object.assign(Object.assign({},t),{channels:["color"]}));bC.props={};function iJ(t,e,n){return(e.length!==2?Ba(Z0(t,e,n),([r,i],[a,o])=>fr(i,o)||fr(r,a)):Ba(Kn(t,n),([r,i],[a,o])=>e(i,o)||fr(r,a))).map(([r])=>r)}var xC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Mn(o,s=>+a[s]);if(i==="min")return o=>Ei(o,s=>+a[s]);if(i==="sum")return o=>Di(o,s=>+a[s]);if(i==="median")return o=>Fy(o,s=>+a[s]);if(i==="mean")return o=>Ql(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function oJ(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=un(a,i),s=Ba(t,c=>o[c]);return r&&s.reverse(),[s,e]}function sJ(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function cJ(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=xC(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=un(c,o),d=aJ(o,s,c),h=sJ(t,f,u),p=iJ(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,Dt(e,{scale:{[o]:{domain:g}}})]}const xh=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=xC(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?cJ(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):oJ(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};xh.props={};const _C=(t={})=>xh(Object.assign(Object.assign({},t),{channel:"x"}));_C.props={};const OC=(t={})=>xh(Object.assign(Object.assign({},t),{channel:"y"}));OC.props={};const wC=(t={})=>xh(Object.assign(Object.assign({},t),{channel:"color"}));wC.props={};function lJ(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function uJ(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Di(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const SC=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=un(s,"x"),l=e?lJ(o,e):un(s,n)[0],u=uJ(r,l),f=K0(i,u,d=>c[d]).map(d=>d[1]);return[i,Dt({},a,{scale:{x:{flex:f}}})]}};SC.props={};function fJ(t,e,n){const r=t.length;if(r===0)return[];const{innerWidth:i,innerHeight:a}=n,o=a/i;let s=Math.ceil(Math.sqrt(e/o)),c=i/s,l=Math.ceil(e/s),u=l*c;for(;u>a;)s=s+1,c=i/s,l=Math.ceil(e/s),u=l*c;const f=a-l*c,d=l<=1?0:f/(l-1),[h,p]=l<=1?[(i-r*c)/(r-1),(a-c)/2]:[0,0];return t.map((v,g)=>{const[y,m,b,_]=Dv(v),O=g%s,w=Math.floor(g/s),M=O*c,E=(l-w-1)*c+f,A=c/b,P=c/_,C=M-y+h*O,j=E-m-d*w-p;return`translate(${C}, ${j}) scale(${A}, ${P})`})}const MC=()=>(t,e)=>[t,Dt({},e,{modifier:fJ,axis:!1})];MC.props={};function dJ(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function hJ(t){if(typeof t=="function")return t;if(t==="lttb")return dJ;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[uh(r,o=>a[o])]],max:(r,i,a)=>[r[ic(r,o=>a[o])]],median:(r,i,a)=>[r[NQ(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return pJ(r,s).flatMap(l=>n(l,i,a))}}function pJ(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=hJ(e);return(a,o)=>{const{encode:s}=o,c=Mo(r,a,o),[l]=un(s,"x"),[u]=un(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};EC.props={};function vJ(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const AC=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=un(r,u);if(!d)return null;const[h,p=!0]=vJ(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(In);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,Dt({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};AC.props={};var TC={},Wy={},Hy=34,au=10,Yy=13;function PC(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function gJ(t,e){var n=PC(t);return function(r,i){return e(n(r),i,t)}}function CC(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function mi(t,e){var n=t+"",r=n.length;return r9999?"+"+mi(t,6):mi(t,4)}function mJ(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":yJ(t.getUTCFullYear(),4)+"-"+mi(t.getUTCMonth()+1,2)+"-"+mi(t.getUTCDate(),2)+(i?"T"+mi(e,2)+":"+mi(n,2)+":"+mi(r,2)+"."+mi(i,3)+"Z":r?"T"+mi(e,2)+":"+mi(n,2)+":"+mi(r,2)+"Z":n||e?"T"+mi(e,2)+":"+mi(n,2)+"Z":"")}function bJ(t){var e=new RegExp('["'+t+` -\r]`),n=t.charCodeAt(0);function r(f,d){var h,p,v=i(f,function(g,y){if(h)return h(g,y-1);p=g,h=d?gJ(g,d):PC(g)});return v.columns=p||[],v}function i(f,d){var h=[],p=f.length,v=0,g=0,y,m=p<=0,b=!1;f.charCodeAt(p-1)===au&&--p,f.charCodeAt(p-1)===Yy&&--p;function _(){if(m)return Wy;if(b)return b=!1,TC;var w,M=v,E;if(f.charCodeAt(M)===Hy){for(;v++=p?m=!0:(E=f.charCodeAt(v++))===au?b=!0:E===Yy&&(b=!0,f.charCodeAt(v)===au&&++v),f.slice(M+1,w-1).replace(/""/g,'"')}for(;v{const{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>OJ(void 0,void 0,void 0,function*(){const a=yield fetch(e);if(n==="csv"){const o=yield a.text();return bJ(r).parse(o,i?xJ:qo)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};kC.props={};const RC=t=>{const{value:e}=t;return()=>e};RC.props={};function wJ(t,e){return t.map(n=>{if(Array.isArray(n)){const[r,i=e]=n;return[r,i]}return[n,e]})}const LC=t=>{const{fields:e=[]}=t,n=wJ(e,!0);return r=>{const i=(a,o)=>n.reduce((s,[c,l=!0])=>s!==0?s:l?a[c]o[c]?-1:+(a[c]!==o[c]),0);return[...r].sort(i)}};LC.props={};function bpt(t){return t!=null&&!Number.isNaN(t)}const NC=t=>{const{callback:e}=t;return n=>Array.isArray(n)?[...n].sort(e):n};NC.props={};function SJ(t){return t!=null&&!Number.isNaN(t)}const IC=t=>{const{callback:e=SJ}=t;return n=>n.filter(e)};IC.props={};function MJ(t,e=[]){return e.reduce((n,r)=>(r in t&&(n[r]=t[r]),n),{})}const jC=t=>{const{fields:e}=t;return n=>n.map(r=>MJ(r,e))};jC.props={};function EJ(t){return Object.keys(t).length===0}const DC=t=>e=>{if(!t||EJ(t))return e;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return e.map(n)};DC.props={};function AJ(t){return!t||Object.keys(t).length===0}const BC=t=>{const{fields:e,key:n="key",value:r="value"}=t;return i=>AJ(e)?i:i.flatMap(a=>e.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};BC.props={};const FC=t=>{const{start:e,end:n}=t;return r=>r.slice(e,n)};FC.props={};const zC=t=>{const{callback:e=qo}=t;return n=>e(n)};zC.props={};const GC=t=>{const{callback:e=qo}=t;return n=>Array.isArray(n)?n.map(e):n};GC.props={};function WC(t){return typeof t=="string"?e=>e[t]:t}const HC=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=n,c=WC(s),l=WC(o),u=Z0(e,([f])=>f,f=>c(f));return f=>f.map(d=>{const h=u.get(l(d));return Object.assign(Object.assign({},d),r.reduce((p,v,g)=>(p[i[g]]=h?h[v]:a,p),{}))})};HC.props={};var TJ=gt(78434),PJ=gt.n(TJ);function xpt(t){return t!=null&&!Number.isNaN(t)}const YC=t=>{const{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=t,[c,l]=r;return u=>Array.from(Kn(u,d=>n.map(h=>d[h]).join("-")).values()).map(d=>{const h=PJ().create(d.map(g=>g[e]),{min:i,max:a,size:o,width:s}),p=h.map(g=>g.x),v=h.map(g=>g.y);return Object.assign(Object.assign({},d[0]),{[c]:p,[l]:v})})};YC.props={};const $C=()=>t=>(console.log("G2 data section:",t),t);$C.props={};function $y(t){const{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function VC(t,e){const[n,r]=t,[i,a]=e;return n>=i[0]&&n<=a[0]&&r>=i[1]&&r<=a[1]}function CJ(t,e){const[n,r]=t;return!(VC(n,e)&&VC(r,e))}function kJ(t,e){const[n,r]=t,[i,a]=e;return n[0]i[0]&&n[1]i[1]}const RJ=t=>{const{priority:e}=t;return n=>{const r=[];return e&&n.sort(e),n.forEach(i=>{fg(i);const a=i.getLocalBounds();r.some(s=>kJ($y(a),$y(s.getLocalBounds())))?ug(i):r.push(i)}),n}};function LJ([t,e],[n,r]){return r>t&&e>n}function _h(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function NJ(t){const e=t.cloneNode(!0),n=e.getElementById("connector");n&&e.removeChild(n);const{min:r,max:i}=e.getRenderBounds();return e.destroy(),{min:r,max:i}}const IJ=t=>{const{maxIterations:e=10,maxError:n=.1,padding:r=1}=t;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=_h(),[c,l]=_h(),[u,f]=_h(),[d,h]=_h();for(const p of i){const{min:v,max:g}=NJ(p),[y,m]=v,[b,_]=g;s(p,m),l(p,m),f(p,_-m),h(p,[y,b])}for(let p=0;pfr(c(g),c(y)));let v=0;for(let g=0;gt=>(t.forEach(e=>{fg(e);const n=e.attr("bounds"),r=e.getLocalBounds();CJ($y(r),n)&&ug(e)}),t);function DJ(t){return typeof t=="object"?t:Aa(t)}function Vy(t){let e=t/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),e}function XC(t,e,n){return .2126*Vy(t)+.7152*Vy(e)+.0722*Vy(n)}function UC(t,e){const{r:n,g:r,b:i}=t,{r:a,g:o,b:s}=e,c=XC(n,r,i),l=XC(a,o,s);return(Math.max(c,l)+.05)/(Math.min(c,l)+.05)}function BJ(t,e){const n=ic(e,r=>UC(t,DJ(r)));return e[n]}const FJ=t=>{const{threshold:e=4.5,palette:n=["#000","#fff"]}=t;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;UC(o,a)t;function Oh(t,e){t&&ZC.hasOwnProperty(t.type)&&ZC[t.type](t,e)}var qC={Feature:function(t,e){Oh(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}function _pt(t,e){const n=new Wa;if(e===void 0)for(let r of t)(r=+r)&&n.add(r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function Opt(t,e){const n=new Wa;let r=-1;return Float64Array.from(t,e===void 0?i=>n.add(+i||0):i=>n.add(+e(i,++r,t)||0))}var Fe=1e-6,QC=1e-12,sn=Math.PI,yr=sn/2,JC=sn/4,Pi=sn*2,Kr=180/sn,hr=sn/180,mn=Math.abs,Ac=Math.atan,Ha=Math.atan2,rn=Math.cos,wh=Math.ceil,t5=Math.exp,wpt=Math.floor,Spt=Math.hypot,Sh=Math.log,Uy=Math.pow,Qe=Math.sin,$i=Math.sign||function(t){return t>0?1:t<0?-1:0},bi=Math.sqrt,qy=Math.tan;function e5(t){return t>1?0:t<-1?sn:Math.acos(t)}function Vi(t){return t>1?yr:t<-1?-yr:Math.asin(t)}function Mpt(t){return(t=Qe(t/2))*t}function Xi(){}var Zy=new Wa,Ky=new Wa,n5,r5,Qy,Jy,Ao={point:Xi,lineStart:Xi,lineEnd:Xi,polygonStart:function(){Ao.lineStart=GJ,Ao.lineEnd=HJ},polygonEnd:function(){Ao.lineStart=Ao.lineEnd=Ao.point=Xi,Zy.add(mn(Ky)),Ky=new Wa},result:function(){var t=Zy/2;return Zy=new Wa,t}};function GJ(){Ao.point=WJ}function WJ(t,e){Ao.point=i5,n5=Qy=t,r5=Jy=e}function i5(t,e){Ky.add(Jy*t-Qy*e),Qy=t,Jy=e}function HJ(){i5(n5,r5)}var a5=Ao,Tc=1/0,Mh=Tc,su=-Tc,Eh=su,YJ={point:$J,lineStart:Xi,lineEnd:Xi,polygonStart:Xi,polygonEnd:Xi,result:function(){var t=[[Tc,Mh],[su,Eh]];return su=Eh=-(Mh=Tc=1/0),t}};function $J(t,e){tsu&&(su=t),eEh&&(Eh=e)}var Ah=YJ,tm=0,em=0,cu=0,Th=0,Ph=0,Pc=0,nm=0,rm=0,lu=0,o5,s5,xa,_a,ea={point:ms,lineStart:c5,lineEnd:l5,polygonStart:function(){ea.lineStart=UJ,ea.lineEnd=qJ},polygonEnd:function(){ea.point=ms,ea.lineStart=c5,ea.lineEnd=l5},result:function(){var t=lu?[nm/lu,rm/lu]:Pc?[Th/Pc,Ph/Pc]:cu?[tm/cu,em/cu]:[NaN,NaN];return tm=em=cu=Th=Ph=Pc=nm=rm=lu=0,t}};function ms(t,e){tm+=t,em+=e,++cu}function c5(){ea.point=VJ}function VJ(t,e){ea.point=XJ,ms(xa=t,_a=e)}function XJ(t,e){var n=t-xa,r=e-_a,i=bi(n*n+r*r);Th+=i*(xa+t)/2,Ph+=i*(_a+e)/2,Pc+=i,ms(xa=t,_a=e)}function l5(){ea.point=ms}function UJ(){ea.point=ZJ}function qJ(){u5(o5,s5)}function ZJ(t,e){ea.point=u5,ms(o5=xa=t,s5=_a=e)}function u5(t,e){var n=t-xa,r=e-_a,i=bi(n*n+r*r);Th+=i*(xa+t)/2,Ph+=i*(_a+e)/2,Pc+=i,i=_a*t-xa*e,nm+=i*(xa+t),rm+=i*(_a+e),lu+=i*3,ms(xa=t,_a=e)}var f5=ea;function d5(t){this._context=t}d5.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e),this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Pi);break}}},result:Xi};var im=new Wa,am,h5,p5,uu,fu,Ch={point:Xi,lineStart:function(){Ch.point=KJ},lineEnd:function(){am&&v5(h5,p5),Ch.point=Xi},polygonStart:function(){am=!0},polygonEnd:function(){am=null},result:function(){var t=+im;return im=new Wa,t}};function KJ(t,e){Ch.point=v5,h5=uu=t,p5=fu=e}function v5(t,e){uu-=t,fu-=e,im.add(bi(uu*uu+fu*fu)),uu=t,fu=e}var g5=Ch;let y5,kh,m5,b5;class x5{constructor(e){this._append=e==null?_5:QJ(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(e,n){switch(this._point){case 0:{this._append`M${e},${n}`,this._point=1;break}case 1:{this._append`L${e},${n}`;break}default:{if(this._append`M${e},${n}`,this._radius!==m5||this._append!==kh){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,m5=r,kh=this._append,b5=this._,this._=i}this._+=b5;break}}}result(){const e=this._;return this._="",e.length?e:null}}function _5(t){let e=1;this._+=t[0];for(const n=t.length;e=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return _5;if(e!==y5){const n=wr(10,e);y5=e,kh=function(i){let a=1;this._+=i[0];for(const o=i.length;a=0))throw new RangeError(`invalid digits: ${s}`);n=c}return e===null&&(a=new x5(n)),o},o.projection(t).digits(n).context(e)}function Cc(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++rFe}).map(d)).concat(Cc(wh(a/l)*l,i,l).filter(function(b){return mn(b%f)>Fe}).map(h))}return y.lines=function(){return m().map(function(b){return{type:"LineString",coordinates:b}})},y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(v(o).slice(1),p(n).reverse().slice(1),v(s).reverse().slice(1))]}},y.extent=function(b){return arguments.length?y.extentMajor(b).extentMinor(b):y.extentMinor()},y.extentMajor=function(b){return arguments.length?(r=+b[0][0],n=+b[1][0],s=+b[0][1],o=+b[1][1],r>n&&(b=r,r=n,n=b),s>o&&(b=s,s=o,o=b),y.precision(g)):[[r,s],[n,o]]},y.extentMinor=function(b){return arguments.length?(e=+b[0][0],t=+b[1][0],a=+b[0][1],i=+b[1][1],e>t&&(b=e,e=t,t=b),a>i&&(b=a,a=i,i=b),y.precision(g)):[[e,a],[t,i]]},y.step=function(b){return arguments.length?y.stepMajor(b).stepMinor(b):y.stepMinor()},y.stepMajor=function(b){return arguments.length?(u=+b[0],f=+b[1],y):[u,f]},y.stepMinor=function(b){return arguments.length?(c=+b[0],l=+b[1],y):[c,l]},y.precision=function(b){return arguments.length?(g=+b,d=w5(a,i,90),h=S5(e,t,g),p=w5(s,o,90),v=S5(r,n,g),y):g},y.extentMajor([[-180,-90+Fe],[180,90-Fe]]).extentMinor([[-180,-80-Fe],[180,80+Fe]])}function ttt(){return JJ()()}function M5(){var t=[],e;return{point:function(n,r,i){e.push([n,r,i])},lineStart:function(){t.push(e=[])},lineEnd:Xi,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Rh(t,e){return mn(t[0]-e[0])=0;--s)i.point((f=u[s])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,u=d.z,h=!h}while(!d.v);i.lineEnd()}}}function A5(t){if(e=t.length){for(var e,n=0,r=t[0],i;++n=0?1:-1,P=A*E,C=P>sn,j=g*w;if(c.add(Ha(j*A*Qe(P),y*M+j*rn(P))),o+=C?E+A*Pi:E,C^p>=n^_>=n){var N=Ih(kc(h),kc(b));cm(N);var k=Ih(a,N);cm(k);var R=(C^E>=0?-1:1)*Vi(k[2]);(r>R||r===R&&(N[0]||N[1]))&&(s+=C^E>=0?1:-1)}}return(o<-Fe||o0){for(c||(i.polygonStart(),c=!0),i.lineStart(),w=0;w1&&_&2&&O.push(O.pop().concat(O.shift())),u.push(O.filter(rtt))}}return d}}function rtt(t){return t.length>1}function itt(t,e){return((t=t.x)[0]<0?t[1]-yr-Fe:yr-t[1])-((e=e.x)[0]<0?e[1]-yr-Fe:yr-e[1])}var C5=P5(function(){return!0},att,stt,[-sn,-yr]);function att(t){var e=NaN,n=NaN,r=NaN,i;return{lineStart:function(){t.lineStart(),i=1},point:function(a,o){var s=a>0?sn:-sn,c=mn(a-e);mn(c-sn)0?yr:-yr),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),i=0):r!==s&&c>=sn&&(mn(e-r)Fe?Ac((Qe(e)*(a=rn(r))*Qe(n)-Qe(r)*(i=rn(e))*Qe(t))/(i*a*o)):(e+r)/2}function stt(t,e,n,r){var i;if(t==null)i=n*yr,r.point(-sn,i),r.point(0,i),r.point(sn,i),r.point(sn,0),r.point(sn,-i),r.point(0,-i),r.point(-sn,-i),r.point(-sn,0),r.point(-sn,i);else if(mn(t[0]-e[0])>Fe){var a=t[0]0?ia)&&(i+=r*Pi));for(var l,u=i;r>0?u>a:u0,i=mn(e)>Fe;function a(u,f,d,h){k5(h,t,n,d,u,f)}function o(u,f){return rn(u)*rn(f)>e}function s(u){var f,d,h,p,v;return{lineStart:function(){p=h=!1,v=1},point:function(g,y){var m=[g,y],b,_=o(g,y),O=r?_?0:l(g,y):_?l(g+(g<0?sn:-sn),y):0;if(!f&&(p=h=_)&&u.lineStart(),_!==h&&(b=c(f,m),(!b||Rh(f,b)||Rh(m,b))&&(m[2]=1)),_!==h)v=0,_?(u.lineStart(),b=c(m,f),u.point(b[0],b[1])):(b=c(f,m),u.point(b[0],b[1],2),u.lineEnd()),f=b;else if(i&&f&&r^_){var w;!(O&d)&&(w=c(m,f,!0))&&(v=0,r?(u.lineStart(),u.point(w[0][0],w[0][1]),u.point(w[1][0],w[1][1]),u.lineEnd()):(u.point(w[1][0],w[1][1]),u.lineEnd(),u.lineStart(),u.point(w[0][0],w[0][1],3)))}_&&(!f||!Rh(f,m))&&u.point(m[0],m[1]),f=m,h=_,d=O},lineEnd:function(){h&&u.lineEnd(),f=null},clean:function(){return v|(p&&h)<<1}}}function c(u,f,d){var h=kc(u),p=kc(f),v=[1,0,0],g=Ih(h,p),y=Nh(g,g),m=g[0],b=y-m*m;if(!b)return!d&&u;var _=e*y/b,O=-e*m/b,w=Ih(v,g),M=jh(v,_),E=jh(g,O);sm(M,E);var A=w,P=Nh(M,A),C=Nh(A,A),j=P*P-C*(Nh(M,M)-1);if(!(j<0)){var N=bi(j),k=jh(A,(-P-N)/C);if(sm(k,M),k=om(k),!d)return k;var R=u[0],D=f[0],B=u[1],F=f[1],z;D0^k[1]<(mn(k[0]-R)sn^(R<=k[0]&&k[0]<=D)){var st=jh(A,(-P+N)/C);return sm(st,M),[k,om(st)]}}}function l(u,f){var d=r?t:sn-t,h=0;return u<-d?h|=1:u>d&&(h|=2),f<-d?h|=4:f>d&&(h|=8),h}return P5(o,s,a,r?[0,-t]:[-sn,t-sn])}function ltt(t,e,n,r,i,a){var o=t[0],s=t[1],c=e[0],l=e[1],u=0,f=1,d=c-o,h=l-s,p;if(p=n-o,!(!d&&p>0)){if(p/=d,d<0){if(p0){if(p>f)return;p>u&&(u=p)}if(p=i-o,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>u&&(u=p)}else if(d>0){if(p0)){if(p/=h,h<0){if(p0){if(p>f)return;p>u&&(u=p)}if(p=a-s,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>u&&(u=p)}else if(h>0){if(p0&&(t[0]=o+u*d,t[1]=s+u*h),f<1&&(e[0]=o+f*d,e[1]=s+f*h),!0}}}}}var du=1e9,Dh=-du;function L5(t,e,n,r){function i(l,u){return t<=l&&l<=n&&e<=u&&u<=r}function a(l,u,f,d){var h=0,p=0;if(l==null||(h=o(l,f))!==(p=o(u,f))||c(l,u)<0^f>0)do d.point(h===0||h===3?t:n,h>1?r:e);while((h=(h+f+4)%4)!==p);else d.point(u[0],u[1])}function o(l,u){return mn(l[0]-t)0?0:3:mn(l[0]-n)0?2:1:mn(l[1]-e)0?1:0:u>0?3:2}function s(l,u){return c(l.x,u.x)}function c(l,u){var f=o(l,1),d=o(u,1);return f!==d?f-d:f===0?u[1]-l[1]:f===1?l[0]-u[0]:f===2?l[1]-u[1]:u[0]-l[0]}return function(l){var u=l,f=M5(),d,h,p,v,g,y,m,b,_,O,w,M={point:E,lineStart:j,lineEnd:N,polygonStart:P,polygonEnd:C};function E(R,D){i(R,D)&&u.point(R,D)}function A(){for(var R=0,D=0,B=h.length;Dr&&(At-rt)*(r-st)>(Yt-st)*(t-rt)&&++R:Yt<=r&&(At-rt)*(r-st)<(Yt-st)*(t-rt)&&--R;return R}function P(){u=f,d=[],h=[],w=!0}function C(){var R=A(),D=w&&R,B=(d=T5(d)).length;(D||B)&&(l.polygonStart(),D&&(l.lineStart(),a(null,null,1,l),l.lineEnd()),B&&E5(d,s,R,a,l),l.polygonEnd()),u=l,d=h=p=null}function j(){M.point=k,h&&h.push(p=[]),O=!0,_=!1,m=b=NaN}function N(){d&&(k(v,g),y&&_&&f.rejoin(),d.push(f.result())),M.point=E,_&&u.lineEnd()}function k(R,D){var B=i(R,D);if(h&&p.push([R,D]),O)v=R,g=D,y=B,O=!1,B&&(u.lineStart(),u.point(R,D));else if(B&&_)u.point(R,D);else{var F=[m=Math.max(Dh,Math.min(du,m)),b=Math.max(Dh,Math.min(du,b))],z=[R=Math.max(Dh,Math.min(du,R)),D=Math.max(Dh,Math.min(du,D))];ltt(F,z,t,e,n,r)?(_||(u.lineStart(),u.point(F[0],F[1])),u.point(z[0],z[1]),B||u.lineEnd(),w=!1):B&&(u.lineStart(),u.point(R,D),w=!1)}m=R,b=D,_=B}return M}}function um(t,e){function n(r,i){return r=t(r,i),e(r[0],r[1])}return t.invert&&e.invert&&(n.invert=function(r,i){return r=e.invert(r,i),r&&t.invert(r[0],r[1])}),n}function fm(t,e){return mn(t)>sn&&(t-=Math.round(t/Pi)*Pi),[t,e]}fm.invert=fm;function N5(t,e,n){return(t%=Pi)?e||n?um(j5(t),D5(e,n)):j5(t):e||n?D5(e,n):fm}function I5(t){return function(e,n){return e+=t,mn(e)>sn&&(e-=Math.round(e/Pi)*Pi),[e,n]}}function j5(t){var e=I5(t);return e.invert=I5(-t),e}function D5(t,e){var n=rn(t),r=Qe(t),i=rn(e),a=Qe(e);function o(s,c){var l=rn(c),u=rn(s)*l,f=Qe(s)*l,d=Qe(c),h=d*n+u*r;return[Ha(f*i-h*a,u*n-d*r),Vi(h*i+f*a)]}return o.invert=function(s,c){var l=rn(c),u=rn(s)*l,f=Qe(s)*l,d=Qe(c),h=d*i-f*a;return[Ha(f*i+d*a,u*n+h*r),Vi(h*n-u*r)]},o}function utt(t){t=N5(t[0]*hr,t[1]*hr,t.length>2?t[2]*hr:0);function e(n){return n=t(n[0]*hr,n[1]*hr),n[0]*=Kr,n[1]*=Kr,n}return e.invert=function(n){return n=t.invert(n[0]*hr,n[1]*hr),n[0]*=Kr,n[1]*=Kr,n},e}function Apt(t){return{stream:hu(t)}}function hu(t){return function(e){var n=new dm;for(var r in t)n[r]=t[r];return n.stream=e,n}}function dm(){}dm.prototype={constructor:dm,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function hm(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Ec(n,t.stream(Ah)),e(Ah.result()),r!=null&&t.clipExtent(r),t}function Bh(t,e,n){return hm(t,function(r){var i=e[1][0]-e[0][0],a=e[1][1]-e[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+e[0][0]+(i-o*(r[1][0]+r[0][0]))/2,c=+e[0][1]+(a-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([s,c])},n)}function pm(t,e,n){return Bh(t,[[0,0],e],n)}function vm(t,e,n){return hm(t,function(r){var i=+e,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];t.scale(150*a).translate([o,s])},n)}function gm(t,e,n){return hm(t,function(r){var i=+e,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])},n)}var B5=16,ftt=rn(30*hr);function F5(t,e){return+e?htt(t,e):dtt(t)}function dtt(t){return hu({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function htt(t,e){function n(r,i,a,o,s,c,l,u,f,d,h,p,v,g){var y=l-r,m=u-i,b=y*y+m*m;if(b>4*e&&v--){var _=o+d,O=s+h,w=c+p,M=bi(_*_+O*O+w*w),E=Vi(w/=M),A=mn(mn(w)-1)e||mn((y*N+m*k)/b-.5)>.3||o*d+s*h+c*p2?R[2]%360*hr:0,N()):[s*Kr,c*Kr,l*Kr]},C.angle=function(R){return arguments.length?(f=R%360*hr,N()):f*Kr},C.reflectX=function(R){return arguments.length?(d=R?-1:1,N()):d<0},C.reflectY=function(R){return arguments.length?(h=R?-1:1,N()):h<0},C.precision=function(R){return arguments.length?(w=F5(M,O=R*R),k()):bi(O)},C.fitExtent=function(R,D){return Bh(C,R,D)},C.fitSize=function(R,D){return pm(C,R,D)},C.fitWidth=function(R,D){return vm(C,R,D)},C.fitHeight=function(R,D){return gm(C,R,D)};function N(){var R=z5(n,0,0,d,h,f).apply(null,e(a,o)),D=z5(n,r-R[0],i-R[1],d,h,f);return u=N5(s,c,l),M=um(e,D),E=um(u,M),w=F5(M,O),k()}function k(){return A=P=null,C}return function(){return e=t.apply(this,arguments),C.invert=e.invert&&j,N()}}function mm(t){var e=0,n=sn/3,r=ym(t),i=r(e,n);return i.parallels=function(a){return arguments.length?r(e=a[0]*hr,n=a[1]*hr):[e*Kr,n*Kr]},i}function ytt(t){var e=rn(t);function n(r,i){return[r*e,Qe(i)/e]}return n.invert=function(r,i){return[r/e,Vi(i*e)]},n}function G5(t,e){var n=Qe(t),r=(n+Qe(e))/2;if(mn(r)=.12&&g<.234&&v>=-.425&&v<-.214?i:g>=.166&&g<.234&&v>=-.214&&v<-.115?o:n).invert(d)},u.stream=function(d){return t&&e===d?t:t=mtt([n.stream(e=d),i.stream(d),o.stream(d)])},u.precision=function(d){return arguments.length?(n.precision(d),i.precision(d),o.precision(d),f()):n.precision()},u.scale=function(d){return arguments.length?(n.scale(d),i.scale(d*.35),o.scale(d),u.translate(n.translate())):n.scale()},u.translate=function(d){if(!arguments.length)return n.translate();var h=n.scale(),p=+d[0],v=+d[1];return r=n.translate(d).clipExtent([[p-.455*h,v-.238*h],[p+.455*h,v+.238*h]]).stream(l),a=i.translate([p-.307*h,v+.201*h]).clipExtent([[p-.425*h+Fe,v+.12*h+Fe],[p-.214*h-Fe,v+.234*h-Fe]]).stream(l),s=o.translate([p-.205*h,v+.212*h]).clipExtent([[p-.214*h+Fe,v+.166*h+Fe],[p-.115*h-Fe,v+.234*h-Fe]]).stream(l),f()},u.fitExtent=function(d,h){return Bh(u,d,h)},u.fitSize=function(d,h){return pm(u,d,h)},u.fitWidth=function(d,h){return vm(u,d,h)},u.fitHeight=function(d,h){return gm(u,d,h)};function f(){return t=e=null,u}return u.scale(1070)}function H5(t){return function(e,n){var r=rn(e),i=rn(n),a=t(r*i);return a===1/0?[2,0]:[a*i*Qe(e),a*Qe(n)]}}function pu(t){return function(e,n){var r=bi(e*e+n*n),i=t(r),a=Qe(i),o=rn(i);return[Ha(e*a,r*o),Vi(r&&n*a/r)]}}var bm=H5(function(t){return bi(2/(1+t))});bm.invert=pu(function(t){return 2*Vi(t/2)});function xtt(){return Oa(bm).scale(124.75).clipAngle(180-.001)}var xm=H5(function(t){return(t=e5(t))&&t/Qe(t)});xm.invert=pu(function(t){return t});function _tt(){return Oa(xm).scale(79.4188).clipAngle(180-.001)}function vu(t,e){return[t,Sh(qy((yr+e)/2))]}vu.invert=function(t,e){return[t,2*Ac(t5(e))-yr]};function Ott(){return Y5(vu).scale(961/Pi)}function Y5(t){var e=Oa(t),n=e.center,r=e.scale,i=e.translate,a=e.clipExtent,o=null,s,c,l;e.scale=function(f){return arguments.length?(r(f),u()):r()},e.translate=function(f){return arguments.length?(i(f),u()):i()},e.center=function(f){return arguments.length?(n(f),u()):n()},e.clipExtent=function(f){return arguments.length?(f==null?o=s=c=l=null:(o=+f[0][0],s=+f[0][1],c=+f[1][0],l=+f[1][1]),u()):o==null?null:[[o,s],[c,l]]};function u(){var f=sn*r(),d=e(utt(e.rotate()).invert([0,0]));return a(o==null?[[d[0]-f,d[1]-f],[d[0]+f,d[1]+f]]:t===vu?[[Math.max(d[0]-f,o),s],[Math.min(d[0]+f,c),l]]:[[o,Math.max(d[1]-f,s)],[c,Math.min(d[1]+f,l)]])}return u()}function zh(t){return qy((yr+t)/2)}function $5(t,e){var n=rn(t),r=t===e?Qe(t):Sh(n/rn(e))/Sh(zh(e)/zh(t)),i=n*Uy(zh(t),r)/r;if(!r)return vu;function a(o,s){i>0?s<-yr+Fe&&(s=-yr+Fe):s>yr-Fe&&(s=yr-Fe);var c=i/Uy(zh(s),r);return[c*Qe(r*o),i-c*rn(r*o)]}return a.invert=function(o,s){var c=i-s,l=$i(r)*bi(o*o+c*c),u=Ha(o,mn(c))*$i(c);return c*r<0&&(u-=sn*$i(o)*$i(c)),[u/r,2*Ac(Uy(i/l,1/r))-yr]},a}function wtt(){return mm($5).scale(109.5).parallels([30,30])}function gu(t,e){return[t,e]}gu.invert=gu;function Stt(){return Oa(gu).scale(152.63)}function V5(t,e){var n=rn(t),r=t===e?Qe(t):(n-rn(e))/(e-t),i=n/r+t;if(mn(r)Fe&&--r>0);return[t/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function Ctt(){return Oa(wm).scale(175.295)}function Sm(t,e){return[rn(e)*Qe(t),Qe(e)]}Sm.invert=pu(Vi);function ktt(){return Oa(Sm).scale(249.5).clipAngle(90+Fe)}function Mm(t,e){var n=rn(e),r=1+rn(t)*n;return[n*Qe(t)/r,Qe(e)/r]}Mm.invert=pu(function(t){return 2*Ac(t)});function Rtt(){return Oa(Mm).scale(250).clipAngle(142)}function Em(t,e){return[Sh(qy((yr+e)/2)),-t]}Em.invert=function(t,e){return[-e,2*Ac(t5(t))-yr]};function Ltt(){var t=Y5(Em),e=t.center,n=t.rotate;return t.center=function(r){return arguments.length?e([-r[1],r[0]]):(r=e(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}var Ntt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iDtt(e).features)}}function Dtt(t){const e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"};if(!t||!t.type)return null;const n=e[t.type];if(!n)return null;if(n==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]};if(n==="feature")return{type:"FeatureCollection",features:[t]};if(n==="featureCollection")return t}function Btt(t,e){var n;for(const[r,i]of Object.entries(e))(n=t[r])===null||n===void 0||n.call(t,i)}function Ftt(t,e,n,r){const i=()=>{const s=e.filter(X5);return s.find(l=>l.sphere)?{type:"Sphere"}:jtt(s.filter(l=>!l.sphere).flatMap(l=>l.data.value))},{outline:a=i()}=r,{size:o="fitExtent"}=r;if(o==="fitExtent")return ztt(t,a,n);if(o==="fitWidth")return Gtt(t,a,n)}function ztt(t,e,n){const{x:r,y:i,width:a,height:o}=n;t.fitExtent([[r,i],[a,o]],e)}function Gtt(t,e,n){const{width:r,height:i}=n,[[a,o],[s,c]]=O5(t.fitWidth(r,e)).bounds(e),l=Math.ceil(c-o),u=Math.min(Math.ceil(s-a),l),f=t.scale()*(u-1)/u,[d,h]=t.translate(),p=h+(i-l)/2;t.scale(f).translate([d,p]).precision(.2)}function Wtt(t){const{data:e}=t;if(Array.isArray(e))return Object.assign(Object.assign({},t),{data:{value:e}});const{type:n}=e;return n==="graticule10"?Object.assign(Object.assign({},t),{data:{value:[ttt()]}}):n==="sphere"?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function X5(t){return t.type==="geoPath"}const U5=()=>t=>{const{children:e,coordinate:n={}}=t;if(!Array.isArray(e))return[];const{type:r="equalEarth"}=n,i=Ntt(n,["type"]),a=Itt(r),o=e.map(Wtt);let s;function c(){return[["custom",(f,d,h,p)=>{const v=a();Ftt(v,o,{x:f,y:d,width:h,height:p},i),Btt(v,i),s=O5(v);const y=new Vr({domain:[f,f+h]}),m=new Vr({domain:[d,d+p]}),b=O=>{const w=v(O);if(!w)return[null,null];const[M,E]=w;return[y.map(M),m.map(E)]},_=O=>{if(!O)return null;const[w,M]=O,E=[y.invert(w),m.invert(M)];return v.invert(E)};return{transform:O=>b(O),untransform:O=>_(O)}}]]}function l(f){const{style:d,tooltip:h={}}=f;return Object.assign(Object.assign({},f),{type:"path",tooltip:eg(h,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},d),{d:p=>s(p)||[]})})}const u=f=>X5(f)?l(f):f;return[Object.assign(Object.assign({},t),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:c},children:o.flatMap(u)})]};U5.props={};var Htt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{type:e,data:n,scale:r,encode:i,style:a,animate:o,key:s,state:c}=t,l=Htt(t,["type","data","scale","encode","style","animate","key","state"]);return[Object.assign(Object.assign({type:"geoView"},l),{children:[{type:"geoPath",key:`${s}-0`,data:{value:n},scale:r,encode:i,style:a,animate:o,state:c}]})]};q5.props={};function Ytt(){return{"composition.geoView":U5,"composition.geoPath":q5}}function $tt(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return Z5(this.cover(e,n),e,n,t)}function Z5(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a=t._root,o={data:r},s=t._x0,c=t._y0,l=t._x1,u=t._y1,f,d,h,p,v,g,y,m;if(!a)return t._root=o,t;for(;a.length;)if((v=e>=(f=(s+l)/2))?s=f:l=f,(g=n>=(d=(c+u)/2))?c=d:u=d,i=a,!(a=a[y=g<<1|v]))return i[y]=o,t;if(h=+t._x.call(null,a.data),p=+t._y.call(null,a.data),e===h&&n===p)return o.next=a,i?i[y]=o:t._root=o,t;do i=i?i[y]=new Array(4):t._root=new Array(4),(v=e>=(f=(s+l)/2))?s=f:l=f,(g=n>=(d=(c+u)/2))?c=d:u=d;while((y=g<<1|v)===(m=(p>=d)<<1|h>=f));return i[m]=a,i[y]=o,t}function Vtt(t){var e,n,r=t.length,i,a,o=new Array(r),s=new Array(r),c=1/0,l=1/0,u=-1/0,f=-1/0;for(n=0;nu&&(u=i),af&&(f=a));if(c>u||l>f)return this;for(this.cover(c,l).cover(u,f),n=0;nt||t>=i||r>e||e>=a;)switch(l=(eu||(s=p.y0)>f||(c=p.x1)=y)<<1|t>=g)&&(p=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=p)}else{var m=t-+this._x.call(null,h.data),b=e-+this._y.call(null,h.data),_=m*m+b*b;if(_=(d=(o+c)/2))?o=d:c=d,(v=f>=(h=(s+l)/2))?s=h:l=h,e=n,!(n=n[g=v<<1|p]))return this;if(!n.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(r=e,y=g)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):e?(a?e[g]=a:delete e[g],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=a,this)}function Qtt(t){for(var e=0,n=t.length;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Wh.prototype=J5.prototype={constructor:Wh,on:function(e,n){var r=this._,i=cet(e+"",r),a,o=-1,s=i.length;if(arguments.length<2){for(;++o0)for(var r=new Array(a),i=0,a,o;i=0&&t._call.call(void 0,e),t=t._next;--Lc}function ak(){bs=(Yh=Su.now())+$h,Lc=_u=0;try{het()}finally{Lc=0,vet(),bs=0}}function pet(){var t=Su.now(),e=t-Yh;e>ek&&($h-=e,Yh=t)}function vet(){for(var t,e=Hh,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Hh=n);wu=t,Pm(r)}function Pm(t){if(!Lc){_u&&(_u=clearTimeout(_u));var e=t-bs;e>24?(t<1/0&&(_u=setTimeout(ak,t-Su.now()-$h)),Ou&&(Ou=clearInterval(Ou))):(Ou||(Yh=Su.now(),Ou=setInterval(pet,ek)),Lc=1,nk(ak))}}const get=1664525,yet=1013904223,ok=4294967296;function met(){let t=1;return()=>(t=(get*t+yet)%ok)/ok}function bet(t){return t.x}function xet(t){return t.y}var _et=10,Oet=Math.PI*(3-Math.sqrt(5));function wet(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,c=ik(f),l=fet("tick","end"),u=met();t==null&&(t=[]);function f(){d(),l.call("tick",e),n1?(g==null?s.delete(v):s.set(v,p(g)),e):s.get(v)},find:function(v,g,y){var m=0,b=t.length,_,O,w,M,E;for(y==null?y=1/0:y*=y,m=0;m1?(l.on(v,g),e):l.on(v)}}}function Met(){var t,e,n,r,i=Ci(-30),a,o=1,s=1/0,c=.81;function l(h){var p,v=t.length,g=K5(t,bet,xet).visitAfter(f);for(r=h,p=0;p=s)return;(h.data!==e||h.next)&&(y===0&&(y=Rc(n),_+=y*y),m===0&&(m=Rc(n),_+=m*m),_[e(O,w,o),O])),_;for(g=0,s=new Array(y);gt.source.x,t=>t.target.x],y:[t=>t.source.y,t=>t.target.y]},style:{stroke:"#999",strokeOpacity:.6}},Net={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},Iet={text:""};function jet(t,e,n){const{nodes:r,links:i}=t,{joint:a,nodeStrength:o,linkStrength:s}=e,{nodeKey:c=p=>p.id,linkKey:l=p=>p.id}=n,u=Met(),f=Aet(i).id(ba(l));typeof o=="function"&&u.strength(o),typeof s=="function"&&f.strength(s);const d=wet(r).force("link",f).force("charge",u);a?d.force("center",Tet()):d.force("x",Pet()).force("y",Cet()),d.stop();const h=Math.ceil(Math.log(d.alphaMin())/Math.log(1-d.alphaDecay()));for(let p=0;p{const{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,{nodeKey:u=w=>w.id,linkKey:f=w=>w.id}=n,d=ket(n,["nodeKey","linkKey"]),h=Object.assign({nodeKey:u,linkKey:f},d),p=fe(h,"node"),v=fe(h,"link"),{links:g,nodes:y}=Pg(e,h),{nodesData:m,linksData:b}=jet({links:g,nodes:y},Dt({},Ret,a),h),_=va(l,"link",{items:[w=>({name:"source",value:ba(f)(w.source)}),w=>({name:"target",value:ba(f)(w.target)})]}),O=va(l,"node",{items:[w=>({name:"key",value:ba(u)(w)})]},!0);return[Dt({},Let,{data:b,encode:v,labels:s,style:fe(i,"link"),tooltip:_,animate:ga(c,"link")}),Dt({},Net,{data:m,encode:Object.assign({},p),scale:r,style:fe(i,"node"),tooltip:O,labels:[Object.assign(Object.assign({},Iet),fe(i,"label")),...o],animate:ga(c,"link")})]};ck.props={};function Det(t,e){return t.parent===e.parent?1:2}function Cm(t){var e=t.children;return e?e[0]:t.t}function km(t){var e=t.children;return e?e[e.length-1]:t.t}function Bet(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Fet(t){for(var e=0,n=0,r=t.children,i=r.length,a;--i>=0;)a=r[i],a.z+=e,a.m+=e,e+=a.s+(n+=a.c)}function zet(t,e,n){return t.a.parent===e.parent?t.a:n}function Vh(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Vh.prototype=Object.create(hc.prototype);function Get(t){for(var e=new Vh(t,0),n,r=[e],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=new Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new Vh(a[o],o)),i.parent=n;return(e.parent=new Vh(null,0)).children=[e],e}function Wet(){var t=Det,e=1,n=1,r=null;function i(l){var u=Get(l);if(u.eachAfter(a),u.parent.m=-u.z,u.eachBefore(o),r)l.eachBefore(c);else{var f=l,d=l,h=l;l.eachBefore(function(m){m.xd.x&&(d=m),m.depth>h.depth&&(h=m)});var p=f===d?1:t(f,d)/2,v=p-f.x,g=e/(d.x+p+v),y=n/(h.depth||1);l.eachBefore(function(m){m.x=(m.x+v)*g,m.y=m.depth*y})}return l}function a(l){var u=l.children,f=l.parent.children,d=l.i?f[l.i-1]:null;if(u){Fet(l);var h=(u[0].z+u[u.length-1].z)/2;d?(l.z=d.z+t(l._,d._),l.m=l.z-h):l.z=h}else d&&(l.z=d.z+t(l._,d._));l.parent.A=s(l,d,l.parent.A||f[0])}function o(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,u,f){if(u){for(var d=l,h=l,p=u,v=d.parent.children[0],g=d.m,y=h.m,m=p.m,b=v.m,_;p=km(p),d=Cm(d),p&&d;)v=Cm(v),h=km(h),h.a=l,_=p.z+m-d.z-g+t(p._,d._),_>0&&(Bet(zet(p,l,f),l,_),g+=_,y+=_),m+=p.m,g+=d.m,b+=v.m,y+=h.m;p&&!km(h)&&(h.t=p,h.m+=m-y),d&&!Cm(v)&&(v.t=d,v.m+=g-b,f=l)}return f}function c(l){l.x*=e,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(t=l,i):t},i.size=function(l){return arguments.length?(r=!1,e=+l[0],n=+l[1],i):r?null:[e,n]},i.nodeSize=function(l){return arguments.length?(r=!0,e=+l[0],n=+l[1],i):r?[e,n]:null},i}function Het(t,e){return t.parent===e.parent?1:2}function Yet(t){return t.reduce($et,0)/t.length}function $et(t,e){return t+e.x}function Vet(t){return 1+t.reduce(Xet,0)}function Xet(t,e){return Math.max(t,e.y)}function Uet(t){for(var e;e=t.children;)t=e[0];return t}function qet(t){for(var e;e=t.children;)t=e[e.length-1];return t}function Zet(){var t=Het,e=1,n=1,r=!1;function i(a){var o,s=0;a.eachAfter(function(d){var h=d.children;h?(d.x=Yet(h),d.y=Vet(h)):(d.x=o?s+=t(d,o):0,d.y=0,o=d)});var c=Uet(a),l=qet(a),u=c.x-t(c,l)/2,f=l.x+t(l,c)/2;return a.eachAfter(r?function(d){d.x=(d.x-a.x)*e,d.y=(a.y-d.y)*n}:function(d){d.x=(d.x-u)/(f-u)*e,d.y=(1-(a.y?d.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(t=a,i):t},i.size=function(a){return arguments.length?(r=!1,e=+a[0],n=+a[1],i):r?null:[e,n]},i.nodeSize=function(a){return arguments.length?(r=!0,e=+a[0],n=+a[1],i):r?[e,n]:null},i}const lk=t=>e=>n=>{const{field:r="value",nodeSize:i,separation:a,sortBy:o,as:s=["x","y"]}=e,[c,l]=s,u=dc(n,p=>p.children).sum(p=>p[r]).sort(o),f=t();f.size([1,1]),i&&f.nodeSize(i),a&&f.separation(a),f(u);const d=[];u.each(p=>{p[c]=p.x,p[l]=p.y,p.name=p.data.name,d.push(p)});const h=u.links();return h.forEach(p=>{p[c]=[p.source[c],p.target[c]],p[l]=[p.source[l],p.target[l]]}),{nodes:d,edges:h}},uk=t=>lk(Zet)(t);uk.props={};const fk=t=>lk(Wet)(t);fk.props={};const Ket={sortBy:(t,e)=>e.value-t.value},Qet={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},Jet={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},tnt={text:"",fontSize:10},dk=t=>{const{data:e,encode:n={},scale:r={},style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,u=n==null?void 0:n.value,{nodes:f,edges:d}=fk(Object.assign(Object.assign(Object.assign({},Ket),a),{field:u}))(e),h=va(l,"node",{title:"name",items:["value"]},!0),p=va(l,"link",{title:"",items:[v=>({name:"source",value:v.source.name}),v=>({name:"target",value:v.target.name})]});return[Dt({},Jet,{data:d,encode:fe(n,"link"),scale:fe(r,"link"),labels:s,style:Object.assign({stroke:"#999"},fe(i,"link")),tooltip:p,animate:ga(c,"link")}),Dt({},Qet,{data:f,scale:fe(r,"node"),encode:fe(n,"node"),labels:[Object.assign(Object.assign({},tnt),fe(i,"label")),...o],style:Object.assign({},fe(i,"node")),tooltip:h,animate:ga(c,"node")})]};dk.props={};function xs(){return 0}function Nc(t){return function(){return t}}var ent=1664525,nnt=1013904223,hk=4294967296;function rnt(){var t=1;return function(){return(t=(ent*t+nnt)%hk)/hk}}var int=gt(27566);function ant(t){return int(t)==="object"&&"length"in t?t:Array.from(t)}function ont(t,e){for(var n=t.length,r,i;n;)i=e()*n--|0,r=t[n],t[n]=t[i],t[i]=r;return t}function Tpt(t){return pk(t,lcg())}function pk(t,e){for(var n=0,r=(t=ont(Array.from(t),e)).length,i=[],a,o;n0&&n*n>r*r+i*i}function Rm(t,e){for(var n=0;n1e-6?(C+Math.sqrt(C*C-4*P*j))/(2*P):j/C);return{x:r+w+M*N,y:i+E+A*N,r:N}}function yk(t,e,n){var r=t.x-e.x,i,a,o=t.y-e.y,s,c,l=r*r+o*o;l?(a=e.r+n.r,a*=a,c=t.r+n.r,c*=c,a>c?(i=(l+c-a)/(2*l),s=Math.sqrt(Math.max(0,c/l-i*i)),n.x=t.x-i*r-s*o,n.y=t.y-i*o+s*r):(i=(l+a-c)/(2*l),s=Math.sqrt(Math.max(0,a/l-i*i)),n.x=e.x+i*r-s*o,n.y=e.y+i*o+s*r)):(n.x=e.x+n.r,n.y=e.y)}function mk(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function bk(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Uh(t){this._=t,this.next=null,this.previous=null}function xk(t,e){if(!(a=(t=ant(t)).length))return 0;var n,r,i,a,o,s,c,l,u,f,d;if(n=t[0],n.x=0,n.y=0,!(a>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;yk(r,n,i=t[2]),n=new Uh(n),r=new Uh(r),i=new Uh(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;c({size:[t,e],padding:0,sort:(n,r)=>r.value-n.value}),pnt=(t,e,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,t]},y:{domain:[0,e]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:r=>r.height===0?"#ddd":"#fff",stroke:n.color?void 0:r=>r.height===0?"":"#000"}}),vnt={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.r*2},gnt={title:t=>t.data.name,items:[{field:"value"}]},ynt=(t,e,n)=>{const{value:r}=n,i=Dr(t)?Sg().path(e.path)(t):dc(t);return r?i.sum(a=>ba(r)(a)).sort(e.sort):i.count(),fnt().size(e.size).padding(e.padding)(i),i.descendants()},wk=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o={},style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=dnt(t,["data","encode","scale","style","layout","labels","tooltip"]),d=pnt(n,r,a),h=ynt(i,Dt({},hnt(n,r),c),Dt({},d.encode,a)),p=fe(s,"label");return Dt({},d,Object.assign(Object.assign({data:h,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},vnt),p),...l]},f),{tooltip:eg(u,gnt),axis:!1}))};wk.props={};function mnt(t){return t.target.depth}function bnt(t){return t.depth}function xnt(t,e){return e-1-t.height}function qh(t,e){return t.sourceLinks.length?t.depth:e-1}function _nt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Ei(t.sourceLinks,mnt)-1:0}function Zh(t){return function(){return t}}function Sk(t,e){return Kh(t.source,e.source)||t.index-e.index}function Mk(t,e){return Kh(t.target,e.target)||t.index-e.index}function Kh(t,e){return t.y0-e.y0}function Nm(t){return t.value}function Ont(t){return t.index}function wnt(t){return t.nodes}function Snt(t){return t.links}function Ek(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function Ak({nodes:t}){for(const e of t){let n=e.y0,r=n;for(const i of e.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of e.targetLinks)i.y1=r+i.width/2,r+=i.width}}function Mnt(){let t=0,e=0,n=1,r=1,i=24,a=8,o,s=Ont,c=qh,l,u,f,d=wnt,h=Snt,p=6;function v(D){const B={nodes:d(D),links:h(D)};return g(B),y(B),m(B),b(B),w(B),Ak(B),B}v.update=function(D){return Ak(D),D},v.nodeId=function(D){return arguments.length?(s=typeof D=="function"?D:Zh(D),v):s},v.nodeAlign=function(D){return arguments.length?(c=typeof D=="function"?D:Zh(D),v):c},v.nodeDepth=function(D){return arguments.length?(l=D,v):l},v.nodeSort=function(D){return arguments.length?(u=D,v):u},v.nodeWidth=function(D){return arguments.length?(i=+D,v):i},v.nodePadding=function(D){return arguments.length?(a=o=+D,v):a},v.nodes=function(D){return arguments.length?(d=typeof D=="function"?D:Zh(D),v):d},v.links=function(D){return arguments.length?(h=typeof D=="function"?D:Zh(D),v):h},v.linkSort=function(D){return arguments.length?(f=D,v):f},v.size=function(D){return arguments.length?(t=e=0,n=+D[0],r=+D[1],v):[n-t,r-e]},v.extent=function(D){return arguments.length?(t=+D[0][0],n=+D[1][0],e=+D[0][1],r=+D[1][1],v):[[t,e],[n,r]]},v.iterations=function(D){return arguments.length?(p=+D,v):p};function g({nodes:D,links:B}){D.forEach((z,Y)=>{z.index=Y,z.sourceLinks=[],z.targetLinks=[]});const F=new Map(D.map(z=>[s(z),z]));if(B.forEach((z,Y)=>{z.index=Y;let{source:q,target:rt}=z;typeof q!="object"&&(q=z.source=Ek(F,q)),typeof rt!="object"&&(rt=z.target=Ek(F,rt)),q.sourceLinks.push(z),rt.targetLinks.push(z)}),f!=null)for(const{sourceLinks:z,targetLinks:Y}of D)z.sort(f),Y.sort(f)}function y({nodes:D}){for(const B of D)B.value=B.fixedValue===void 0?Math.max(Di(B.sourceLinks,Nm),Di(B.targetLinks,Nm)):B.fixedValue}function m({nodes:D}){const B=D.length;let F=new Set(D),z=new Set,Y=0;for(;F.size;){if(F.forEach(q=>{q.depth=Y;for(const{target:rt}of q.sourceLinks)z.add(rt)}),++Y>B)throw new Error("circular link");F=z,z=new Set}if(l){const q=Math.max(Mn(D,st=>st.depth)+1,0);let rt;for(let st=0;st{q.height=Y;for(const{source:rt}of q.targetLinks)z.add(rt)}),++Y>B)throw new Error("circular link");F=z,z=new Set}}function _({nodes:D}){const B=Math.max(Mn(D,Y=>Y.depth)+1,0),F=(n-t-i)/(B-1),z=new Array(B).fill(0).map(()=>[]);for(const Y of D){const q=Math.max(0,Math.min(B-1,Math.floor(c.call(null,Y,B))));Y.layer=q,Y.x0=t+q*F,Y.x1=Y.x0+i,z[q]?z[q].push(Y):z[q]=[Y]}if(u)for(const Y of z)Y.sort(u);return z}function O(D){const B=Ei(D,F=>(r-e-(F.length-1)*o)/Di(F,Nm));for(const F of D){let z=e;for(const Y of F){Y.y0=z,Y.y1=z+Y.value*B,z=Y.y1+o;for(const q of Y.sourceLinks)q.width=q.value*B}z=(r-z+o)/(F.length+1);for(let Y=0;YF.length)-1)),O(B);for(let F=0;F0))continue;const Yt=(st/At-rt.y0)*B;rt.y0+=Yt,rt.y1+=Yt,j(rt)}u===void 0&&q.sort(Kh),q.length&&A(q,F)}}function E(D,B,F){for(let z=D.length,Y=z-2;Y>=0;--Y){const q=D[Y];for(const rt of q){let st=0,At=0;for(const{target:qt,value:Rt}of rt.sourceLinks){const Lt=Rt*(qt.layer-rt.layer);st+=R(rt,qt)*Lt,At+=Lt}if(!(At>0))continue;const Yt=(st/At-rt.y0)*B;rt.y0+=Yt,rt.y1+=Yt,j(rt)}u===void 0&&q.sort(Kh),q.length&&A(q,F)}}function A(D,B){const F=D.length>>1,z=D[F];C(D,z.y0-o,F-1,B),P(D,z.y1+o,F+1,B),C(D,r,D.length-1,B),P(D,e,0,B)}function P(D,B,F,z){for(;F1e-6&&(Y.y0+=q,Y.y1+=q),B=Y.y1+o}}function C(D,B,F,z){for(;F>=0;--F){const Y=D[F],q=(Y.y1-B)*z;q>1e-6&&(Y.y0-=q,Y.y1-=q),B=Y.y0-o}}function j({sourceLinks:D,targetLinks:B}){if(f===void 0){for(const{source:{sourceLinks:F}}of B)F.sort(Mk);for(const{target:{targetLinks:F}}of D)F.sort(Sk)}}function N(D){if(f===void 0)for(const{sourceLinks:B,targetLinks:F}of D)B.sort(Mk),F.sort(Sk)}function k(D,B){let F=D.y0-(D.sourceLinks.length-1)*o/2;for(const{target:z,width:Y}of D.sourceLinks){if(z===B)break;F+=Y+o}for(const{source:z,width:Y}of B.targetLinks){if(z===D)break;F-=Y}return F}function R(D,B){let F=B.y0-(B.targetLinks.length-1)*o/2;for(const{source:z,width:Y}of B.targetLinks){if(z===D)break;F+=Y+o}for(const{target:z,width:Y}of D.sourceLinks){if(z===B)break;F-=Y}return F}return v}const Ent={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},Ant={left:bnt,right:xnt,center:_nt,justify:qh};function Tnt(t){const e=typeof t;return e==="string"?Ant[t]||qh:e==="function"?t:qh}const Tk=t=>e=>{const{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:a,nodePadding:o,nodeDepth:s,nodes:c,links:l,linkSort:u,iterations:f}=Object.assign({},Ent,t),d=Mnt().nodeSort(r).linkSort(u).links(l).nodes(c).nodeWidth(a).nodePadding(o).nodeDepth(s).nodeAlign(Tnt(i)).iterations(f).extent([[0,0],[1,1]]);typeof n=="function"&&d.nodeId(n);const h=d(e),{nodes:p,links:v}=h,g=p.map(m=>{const{x0:b,x1:_,y0:O,y1:w}=m;return Object.assign(Object.assign({},m),{x:[b,_,_,b],y:[O,O,w,w]})}),y=v.map(m=>{const{source:b,target:_}=m,O=b.x1,w=_.x0,M=m.width/2;return Object.assign(Object.assign({},m),{x:[O,O,w,w],y:[m.y0+M,m.y0-M,m.y1+M,m.y1-M]})});return{nodes:g,links:y}};Tk.props={};var Pnt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.key,nodeWidth:.02,nodePadding:.02},knt={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},Rnt={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},Lnt={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},Pk=t=>{const{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,{links:u,nodes:f}=Pg(e,n),d=fe(n,"node"),h=fe(n,"link"),{key:p=A=>A.key,color:v=p}=d,{links:g,nodes:y}=Tk(Object.assign(Object.assign(Object.assign({},Cnt),{nodeId:ba(p)}),a))({links:u,nodes:f}),m=fe(i,"label"),{text:b=p,spacing:_=5}=m,O=Pnt(m,["text","spacing"]),w=ba(p),M=va(l,"node",{title:w,items:[{field:"value"}]},!0),E=va(l,"link",{title:"",items:[A=>({name:"source",value:w(A.source)}),A=>({name:"target",value:w(A.target)})]});return[Dt({},knt,{data:y,encode:Object.assign(Object.assign({},d),{color:v}),scale:r,style:fe(i,"node"),labels:[Object.assign(Object.assign(Object.assign({},Lnt),{text:b,dx:A=>A.x[0]<.5?_:-_}),O),...o],tooltip:M,animate:ga(c,"node"),axis:!1}),Dt({},Rnt,{data:g,encode:h,labels:s,style:Object.assign({fill:h.color?void 0:"#aaa",strokeWidth:0},fe(i,"link")),tooltip:E,animate:ga(c,"link")})]};Pk.props={};function Nnt(t,e){return e.value-t.value}function Int(t,e){return e.frequency-t.frequency}function jnt(t,e){return`${t.id}`.localeCompare(`${e.id}`)}function Dnt(t,e){return`${t.name}`.localeCompare(`${e.name}`)}const Bnt={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null};function Fnt(t){const{y:e,thickness:n,weight:r,marginRatio:i,id:a,source:o,target:s,sourceWeight:c,targetWeight:l,sortBy:u}=Object.assign(Object.assign({},Bnt),t);function f(g){const y=g.nodes.map(b=>Object.assign({},b)),m=g.edges.map(b=>Object.assign({},b));return d(y,m),h(y,m),p(y,m),v(y,m),{nodes:y,edges:m}}function d(g,y){y.forEach(_=>{_.source=o(_),_.target=s(_),_.sourceWeight=c(_),_.targetWeight=l(_)});const m=Kn(y,_=>_.source),b=Kn(y,_=>_.target);return g.forEach(_=>{_.id=a(_);const O=m.has(_.id)?m.get(_.id):[],w=b.has(_.id)?b.get(_.id):[];_.frequency=O.length+w.length,_.value=Di(O,M=>M.sourceWeight)+Di(w,M=>M.targetWeight)}),{nodes:g,edges:y}}function h(g,y){const m=typeof u=="function"?u:Be[u];m&&g.sort(m)}function p(g,y){const m=g.length;if(!m)throw $s("Invalid nodes: it's empty!");if(!r){const O=1/m;return g.forEach((w,M)=>{w.x=(M+.5)*O,w.y=e}),{nodes:g,edges:y}}const b=i/(2*m),_=g.reduce((O,w)=>O+=w.value,0);return g.reduce((O,w)=>{w.weight=w.value/_,w.width=w.weight*(1-i),w.height=n;const M=b+O,E=M+w.width,A=e-n/2,P=A+n;return w.x=[M,E,E,M],w.y=[A,A,P,P],O+w.width+2*b},0),{nodes:g,edges:y}}function v(g,y){const m=new Map(g.map(O=>[O.id,O]));if(!r)return y.forEach(O=>{const w=o(O),M=s(O),E=m.get(w),A=m.get(M);E&&A&&(O.x=[E.x,A.x],O.y=[E.y,A.y])}),{nodes:g,edges:y};y.forEach(O=>{O.x=[0,0,0,0],O.y=[e,e,e,e]});const b=Kn(y,O=>O.source),_=Kn(y,O=>O.target);g.forEach(O=>{const{edges:w,width:M,x:E,y:A,value:P,id:C}=O,j=b.get(C)||[],N=_.get(C)||[];let k=0;j.map(R=>{const D=R.sourceWeight/P*M;R.x[0]=E[0]+k,R.x[1]=E[0]+k+D,k+=D}),N.forEach(R=>{const D=R.targetWeight/P*M;R.x[3]=E[0]+k,R.x[2]=E[0]+k+D,k+=D})})}return f}const Im=t=>e=>Fnt(t)(e);Im.props={};var Ck=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.key,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},znt={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},Gnt={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1,strokeWidth:1}},Wnt={position:"outside",fontSize:10},kk=(t,e)=>{const{data:n,encode:r={},scale:i,style:a={},layout:o={},nodeLabels:s=[],linkLabels:c=[],animate:l={},tooltip:u={}}=t,{nodes:f,links:d}=Pg(n,r),h=fe(r,"node"),p=fe(r,"link"),{key:v=R=>R.key,color:g=v}=h,{linkEncodeColor:y=R=>R.source}=p,{nodeWidthRatio:m=jm.thickness,nodePaddingRatio:b=jm.marginRatio}=o,_=Ck(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:O,edges:w}=Im(Object.assign(Object.assign(Object.assign(Object.assign({},jm),{id:ba(v),thickness:m,marginRatio:b}),_),{weight:!0}))({nodes:f,edges:d}),M=fe(a,"label"),{text:E=v}=M,A=Ck(M,["text"]),P=va(u,"node",{title:"",items:[R=>({name:R.key,value:R.value})]},!0),C=va(u,"link",{title:"",items:[R=>({name:`${R.source} -> ${R.target}`,value:R.value})]}),{height:j,width:N}=e,k=Math.min(j,N);return[Dt({},Gnt,{data:w,encode:Object.assign(Object.assign({},p),{color:y}),labels:c,style:Object.assign({fill:y?void 0:"#aaa"},fe(a,"link")),tooltip:C,animate:ga(l,"link")}),Dt({},znt,{data:O,encode:Object.assign(Object.assign({},h),{color:g}),scale:i,style:fe(a,"node"),coordinate:{type:"polar",outerRadius:(k-20)/k,startAngle:-Math.PI*2,endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},Wnt),{text:E}),A),...s],tooltip:P,animate:ga(l,"node"),axis:!1})]};kk.props={};function Hnt(t,e,n,r,i){var a=t.children,o,s=a.length,c,l=new Array(s+1);for(l[0]=c=o=0;o=d-1){var m=a[f];m.x0=p,m.y0=v,m.x1=g,m.y1=y;return}for(var b=l[f],_=h/2+b,O=f+1,w=d-1;O>>1;l[M]<_?O=M+1:w=M}_-l[O-1]y-v){var P=h?(p*A+g*E)/h:g;u(f,O,E,p,v,P,y),u(O,d,A,P,v,g,y)}else{var C=h?(v*A+y*E)/h:y;u(f,O,E,p,v,g,C),u(O,d,A,p,C,g,y)}}}function Qh(t,e,n,r,i){for(var a=t.children,o,s=-1,c=a.length,l=t.value&&(i-n)/t.value;++sm&&(m=l),w=g*g*O,b=Math.max(m/w,w/y),b>_){g-=l;break}_=b}o.push(c={value:g,dice:h1?r:1)},n}(Rk),$nt=function t(e){function n(r,i,a,o,s){if((c=r._squarify)&&c.ratio===e)for(var c,l,u,f,d=-1,h,p=c.length,v=r.value;++d1?r:1)},n}(Rk);function Vnt(){var t=Nk,e=!1,n=1,r=1,i=[0],a=xs,o=xs,s=xs,c=xs,l=xs;function u(d){return d.x0=d.y0=0,d.x1=n,d.y1=r,d.eachBefore(f),i=[0],e&&d.eachBefore(CS),d}function f(d){var h=i[d.depth],p=d.x0+h,v=d.y0+h,g=d.x1-h,y=d.y1-h;ge.ignoreParentValue&&o.children?0:ba(r)(o)).sort(e.sort):a.count(),Vnt().tile(i).size(e.size).round(e.round).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(a),a.descendants().map(o=>Object.assign(o,{x:[o.x0,o.x1],y:[o.y0,o.y1]})).filter(typeof e.layer=="function"?e.layer:o=>o.height===e.layer)}const Znt=(t,e)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[t,e],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(n,r)=>r.value-n.value,layer:0}),Knt=(t,e)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",color:n=>n.data.parent.name},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]}},style:{stroke:"#fff"}}),Qnt={fontSize:10,text:t=>t.data.name,position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0},Jnt={title:t=>t.data.name,items:[{field:"value"}]},Ik=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=Xnt(t,["data","encode","scale","style","layout","labels","tooltip"]),d=qnt(i,Dt({},Znt(n,r),c),a),h=fe(s,"label");return Dt({},Knt(n,r),Object.assign(Object.assign({data:d,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},Qnt),h),...l]},f),{tooltip:eg(u,Jnt),axis:!1}))};Ik.props={};function trt(){return{"data.arc":Im,"data.cluster":uk,"mark.forceGraph":ck,"mark.tree":dk,"mark.pack":wk,"mark.sankey":Pk,"mark.chord":kk,"mark.treemap":Ik}}var jk=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie[n])}function nrt(t,e){return Mn(t,n=>e[n])}function Dk(t,e){const n=Dm(t,e)*2.5-Bm(t,e)*1.5;return Ei(t,r=>e[r]>=n?e[r]:NaN)}function Dm(t,e){return gh(t,.25,n=>e[n])}function rrt(t,e){return gh(t,.5,n=>e[n])}function Bm(t,e){return gh(t,.75,n=>e[n])}function Bk(t,e){const n=Bm(t,e)*2.5-Dm(t,e)*1.5;return Mn(t,r=>e[r]<=n?e[r]:NaN)}function irt(){return(t,e)=>{const{encode:n}=e,{y:r,x:i}=n,{value:a}=r,{value:o}=i;return[Array.from(Kn(t,l=>o[+l]).values()).flatMap(l=>{const u=Dk(l,a),f=Bk(l,a);return l.filter(d=>a[d]f)}),e]}}const Fk=t=>{const{data:e,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=t,s=jk(t,["data","encode","style","tooltip","transform","animate"]),{point:c=!0}=r,l=jk(r,["point"]),{y:u}=n,f={y:u,y1:u,y2:u,y3:u,y4:u},d={y1:Dm,y2:rrt,y3:Bm},h=va(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),p=va(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!c)return Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:ert},d),{y4:nrt})],encode:Object.assign(Object.assign({},n),f),style:l,tooltip:h},s);const v=fe(l,"box"),g=fe(l,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:Dk},d),{y4:Bk})],encode:Object.assign(Object.assign({},n),f),style:v,tooltip:h,animate:ga(o,"box")},s),{type:"point",data:e,transform:[{type:irt}],encode:n,style:Object.assign({},g),tooltip:p,animate:ga(o,"point")}]};Fk.props={};var Jh=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{shape:n,radius:r}=t,i=Jh(t,["shape","radius"]),a=fe(i,"pointer"),o=fe(i,"pin"),{shape:s}=a,c=Jh(a,["shape"]),{shape:l}=o,u=Jh(o,["shape"]),{coordinate:f,theme:d}=e;return(h,p)=>{const v=h.map(k=>f.invert(k)),[g,y,m]=cB(f,"polar"),b=f.clone(),{color:_}=p,O=av({startAngle:g,endAngle:y,innerRadius:m,outerRadius:r});O.push(["cartesian"]),b.update({transformations:O});const w=v.map(k=>b.map(k)),[M,E]=MO(w),[A,P]=f.getCenter(),C=Object.assign(Object.assign({x1:M,y1:E,x2:A,y2:P,stroke:_},c),i),j=Object.assign(Object.assign({cx:A,cy:P,stroke:_},u),i),N=je(new Br);return ka(s)||(typeof s=="function"?N.append(()=>s(w,p,b,d)):N.append("line").call(Ae,C).node()),ka(l)||(typeof l=="function"?N.append(()=>l(w,p,b,d)):N.append("circle").call(Ae,j).node()),N.node()}},zk={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-11/10*Math.PI,endAngle:1/10*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},ort={style:{shape:art,lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},srt={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"}};function crt(t){if((0,xr.Z)(t)){const e=Math.max(0,Math.min(t,1));return{percent:e,target:e,total:1}}return t}function lrt(t,e){const{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=crt(t),s=a||r,c=a?1:i,l=Object.assign({y:{domain:[0,c]}},e);return o.length?{targetData:[{x:n,y:s,color:"target"}],totalData:o.map((u,f)=>({x:n,y:f>=1?u-o[f-1]:u,color:f})),target:s,total:c,scale:l}:{targetData:[{x:n,y:s,color:"target"}],totalData:[{x:n,y:s,color:"target"},{x:n,y:c-s,color:"total"}],target:s,total:c,scale:l}}function urt(t,{target:e,total:n}){const{content:r}=t;return r?r(e,n):e.toString()}const Gk=t=>{const{data:e={},scale:n={},style:r={},animate:i={},transform:a=[]}=t,o=Jh(t,["data","scale","style","animate","transform"]),{targetData:s,totalData:c,target:l,total:u,scale:f}=lrt(e,n),d=fe(r,"text"),h=H7(r,["pointer","pin"]);return[Dt({},zk,Object.assign({type:"interval",transform:[{type:"stackY"}],data:c,scale:f,style:fe(r,"arc"),animate:typeof i=="object"?fe(i,"arc"):i},o)),Dt({},zk,ort,Object.assign({type:"point",data:s,scale:f,style:h,animate:typeof i=="object"?fe(i,"indicator"):i},o)),Dt({},srt,{style:Object.assign({text:urt(d,{target:l,total:u})},d),animate:typeof i=="object"?fe(i,"text"):i})]};Gk.props={};const Fm=Math.PI/180,Eu=64,tp=2048;function frt(t){return t.text}function drt(){return"serif"}function Wk(){return"normal"}function hrt(t){return t.value}function prt(){return~~(Math.random()*2)*90}function vrt(){return 1}function grt(){}function yrt(t,e,n,r){if(e.sprite)return;const i=t.context,a=t.ratio;i.clearRect(0,0,(Eu<<5)/a,tp/a);let o=0,s=0,c=0;const l=n.length;for(--r;++r>5<<5,h=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else d=d+31>>5<<5;if(h>c&&(c=h),o+d>=Eu<<5&&(o=0,s+=c,c=0),s+h>=tp)break;i.translate((o+(d>>1))/a,(s+(h>>1))/a),e.rotate&&i.rotate(e.rotate*Fm),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=d,e.height=h,e.xoff=o,e.yoff=s,e.x1=d>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=d}const u=i.getImageData(0,0,(Eu<<5)/a,tp/a).data,f=[];for(;--r>=0;){if(e=n[r],!e.hasText)continue;const d=e.width,h=d>>5;let p=e.y1-e.y0;for(let y=0;y>5),_=u[(s+y)*(Eu<<5)+(o+m)<<2]?1<<31-m%32:0;f[b]|=_,v|=_}v?g=y:(e.y0++,p--,y--,s++)}e.y1=e.y0+g,e.sprite=f.slice(0,(e.y1-e.y0)*h)}}function mrt(t,e,n){n>>=5;const r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=a&127,s=32-o,c=t.y1-t.y0;let l=(t.y+t.y0)*n+(a>>5),u;for(let f=0;f>>o:0))&e[l+d])return!0;l+=n}return!1}function brt(t,e){const n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function xrt(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>5)*t[1]),w=u.length,M=[],E=u.map(function(j,N,k){return j.text=e.call(this,j,N,k),j.font=n.call(this,j,N,k),j.style=h.call(this,j,N,k),j.weight=i.call(this,j,N,k),j.rotate=a.call(this,j,N,k),j.size=~~r.call(this,j,N,k),j.padding=o.call(this,j,N,k),j}).sort(function(j,N){return N.size-j.size});let A=-1,P=v.board?[{x:0,y:0},{x:m,y:b}]:void 0;f&&clearInterval(f),f=setInterval(C,0),C();function C(){const j=Date.now();for(;Date.now()-j>1,N.y=b*(c()+.5)>>1,yrt(_,N,E,A),N.hasText&&y(O,N,P)&&(l.call(null,"word",{cloud:v,word:N}),M.push(N),P?v.hasImage||brt(P,N):P=[{x:N.x+N.x0,y:N.y+N.y0},{x:N.x+N.x1,y:N.y+N.y1}],N.x-=t[0]>>1,N.y-=t[1]>>1)}v._tags=M,v._bounds=P,A>=w&&(v.stop(),l.call(null,"end",{cloud:v,words:M,bounds:P}))}return v},v.stop=function(){return f&&(clearInterval(f),f=null),v};function g(m){m.width=m.height=1;const b=Math.sqrt(m.getContext("2d").getImageData(0,0,1,1).data.length>>2);m.width=(Eu<<5)/b,m.height=tp/b;const _=m.getContext("2d");return _.fillStyle=_.strokeStyle="red",_.textAlign="center",{context:_,ratio:b}}function y(m,b,_){const O=b.x,w=b.y,M=Math.sqrt(t[0]*t[0]+t[1]*t[1]),E=s(t),A=c()<.5?1:-1;let P,C=-A,j,N;for(;(P=E(C+=A))&&(j=~~P[0],N=~~P[1],!(Math.min(Math.abs(j),Math.abs(N))>=M));)if(b.x=O+j,b.y=w+N,!(b.x+b.x0<0||b.y+b.y0<0||b.x+b.x1>t[0]||b.y+b.y1>t[1])&&(!_||!mrt(b,m,t[0]))&&(!_||xrt(b,_))){const k=b.sprite,R=b.width>>5,D=t[0]>>5,B=b.x-(R<<4),F=B&127,z=32-F,Y=b.y1-b.y0;let q,rt=(b.y+b.y0)*D+(B>>5);for(let st=0;st>>F:0);rt+=D}return delete b.sprite,!0}return!1}return v.createMask=m=>{const b=document.createElement("canvas"),[_,O]=t;if(!_||!O)return;const w=_>>5,M=Yk((_>>5)*O);b.width=_,b.height=O;const E=b.getContext("2d");E.drawImage(m,0,0,m.width,m.height,0,0,_,O);const A=E.getImageData(0,0,_,O).data;for(let P=0;P>5),N=P*_+C<<2,R=A[N]>=250&&A[N+1]>=250&&A[N+2]>=250?1<<31-C%32:0;M[j]|=R}v.board=M,v.hasImage=!0},v.timeInterval=function(m){d=m==null?1/0:m},v.words=function(m){u=m},v.size=function(m=[]){t=[+m[0],+m[1]]},v.text=function(m){e=To(m)},v.font=function(m){n=To(m)},v.fontWeight=function(m){i=To(m)},v.rotate=function(m){a=To(m)},v.spiral=function(m){s=wrt[m]||m},v.fontSize=function(m){r=To(m)},v.padding=function(m){o=To(m)},v.random=function(m){c=To(m)},v.on=function(m){l=To(m)},v}var Mrt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function Ert(t,e){return{set(n,r,i){if(e[n]===void 0)return this;const a=r?r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this},setAsync(n,r,i){return Mrt(this,void 0,void 0,function*(){if(e[n]===void 0)return this;const a=r?yield r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this})}}}var Art=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},Trt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(t instanceof HTMLImageElement){e(t);return}if(typeof t=="string"){const r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>e(r),r.onerror=()=>{console.error(`'image ${t} load failed !!!'`),n()};return}n()})}function krt(t,e){if(typeof t=="function")return t;if(Array.isArray(t)){const[n,r]=t;if(!e)return()=>(r+n)/2;const[i,a]=e;return a===i?()=>(r+n)/2:({value:o})=>(r-n)/(a-i)*(o-i)+n}return()=>t}const $k=t=>e=>Art(void 0,void 0,void 0,function*(){const n=Object.assign({},Prt,t),r=Srt();yield Ert(r,n).set("fontSize",y=>{const m=e.map(b=>b.value);return krt(y,[Ei(m),Mn(m)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").setAsync("imageMask",Crt,r.createMask),r.words([...e]);const i=r.start(),[a,o]=n.size,s=[{x:0,y:0},{x:a,y:o}],{_bounds:c=s,_tags:l,hasImage:u}=i,f=l.map(y=>{var{x:m,y:b}=y,_=Trt(y,["x","y"]);return Object.assign(Object.assign({},_),{x:m+a/2,y:b+o/2})}),[{x:d,y:h},{x:p,y:v}]=c,g={text:"",value:0,opacity:0,fontSize:0};return f.push(Object.assign(Object.assign({},g),{x:u?0:d,y:u?0:h}),Object.assign(Object.assign({},g),{x:u?a:p,y:u?o:v})),f});$k.props={};var Rrt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},Lrt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iObject.assign(Object.assign({},i),{text:i[n],value:i[r]}))}const Irt=(t,e)=>({size:[t,e]}),jrt=(t,e)=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size"},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]},fontSize:{type:"identity"},rotate:{type:"identity"}},style:{textAlign:"center"}}),Vk=(t,e)=>Rrt(void 0,void 0,void 0,function*(){const{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:s={},layout:c={}}=t,l=Lrt(t,["data","encode","scale","style","layout"]),u=Nrt(i,a),f=yield $k(Object.assign(Object.assign({},Irt(n,r)),c))(u);return Dt({},jrt(n,r),Object.assign(Object.assign({data:f,encode:a,scale:o,style:s},l),{axis:!1}))});Vk.props={};const Xk=5e3;function Uk(t,e,n){return t+(e-t)*n}function Drt(t,e,n,r){return e===0?[[t+1/2*n/Math.PI/2,r/2],[t+1/2*n/Math.PI,r],[t+n/4,r]]:e===1?[[t+1/2*n/Math.PI/2*(Math.PI-2),r],[t+1/2*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:e===2?[[t+1/2*n/Math.PI/2,-r/2],[t+1/2*n/Math.PI,-r],[t+n/4,-r]]:[[t+1/2*n/Math.PI/2*(Math.PI-2),-r],[t+1/2*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function Brt(t,e,n,r,i,a,o){const s=Math.ceil(2*t/n*4)*4,c=[];let l=r;for(;l<-Math.PI*2;)l+=Math.PI*2;for(;l>0;)l-=Math.PI*2;l=l/Math.PI/2*n;const u=a-t+l-t*2;c.push(["M",u,e]);let f=0;for(let d=0;dqk[t]||qk.circle,Kk=(t,e)=>{if(!e)return;const{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:s,outline:c={},wave:l={}}=i,u=Zk(i,["background","outline","wave"]),{border:f=2,distance:d=0}=c,h=Zk(c,["border","distance"]),{length:p=192,count:v=3}=l;return(g,y,m)=>{const{document:b}=e.canvas,{color:_,fillOpacity:O}=m,w=Object.assign(Object.assign({fill:_},m),u),M=b.createElement("g",{}),[E,A]=n.getCenter(),P=n.getSize(),C=Math.min(...P)/2,N=(gi(a)?a:$rt(a))(E,A,C,...P);if(Object.keys(s).length){const D=b.createElement("path",{style:Object.assign({path:N,fill:"#fff"},s)});M.appendChild(D)}if(o>0){const D=b.createElement("path",{style:{path:N}});M.appendChild(D),M.style.clipPath=D,Frt(E,A,1-o,v,w,M,D.getBBox().y,C*2,p,!0,b)}const k=b.createElement("path",{style:{path:N,fill:"transparent",lineWidth:f+2*d,stroke:"#fff"}}),R=b.createElement("path",{style:Object.assign(Object.assign(Object.assign({path:N,stroke:_,strokeOpacity:O,lineWidth:f},w),h),{fill:"transparent"})});return M.appendChild(k),M.appendChild(R),M}};Kk.props={};var Vrt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{data:e={},style:n={},animate:r}=t,i=Vrt(t,["data","style","animate"]),a=Math.max(0,(0,xr.Z)(e)?e:e==null?void 0:e.percent),o=[{percent:a,type:"liquid"}],s=fe(n,"text"),c=fe(n,"outline"),l=fe(n,"wave"),u=fe(n,"background");return[Dt({},Xrt,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:n==null?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:c,wave:l,background:u})},animate:r},i)),Dt({},Urt,{style:Object.assign({text:`${$f(a*100)} %`},s),animate:r})]};Qk.props={};var Ya=gt(52827);const Jk=1e-10;function t3(t,e){const n=Zrt(t),r=n.filter(function(c){return qrt(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=Krt(r);for(o=0;o-1){const p=t[u.parentIndex[h]],v=Math.atan2(u.x-p.x,u.y-p.y),g=Math.atan2(l.x-p.x,l.y-p.y);let y=g-v;y<0&&(y+=2*Math.PI);const m=g-y/2;let b=Au(f,{x:p.x+p.radius*Math.sin(m),y:p.y+p.radius*Math.cos(m)});b>p.radius*2&&(b=p.radius*2),(d===null||d.width>b)&&(d={circle:p,width:b,p1:u,p2:l})}d!==null&&(s.push(d),i+=zm(d.circle.radius,d.width),l=u)}}else{let c=t[0];for(o=1;oMath.abs(c.radius-t[o].radius)){l=!0;break}l?i=a=0:(i=c.radius*c.radius*Math.PI,s.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-Jk,y:c.y+c.radius},width:c.radius*2}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=n),i+a}function qrt(t,e){for(let n=0;ne[n].radius+Jk)return!1;return!0}function Zrt(t){const e=[];for(let n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const r=t-(n*n-e*e+t*t)/(2*n),i=e-(n*n-t*t+e*e)/(2*n);return zm(t,r)+zm(e,i)}function n3(t,e){const n=Au(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];const a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=t.x+a*(e.x-t.x)/n,c=t.y+a*(e.y-t.y)/n,l=-(e.y-t.y)*(o/n),u=-(e.x-t.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function Krt(t){const e={x:0,y:0};for(let n=0;ns>c?1:-1),r=0;r=Math.min(e[o].size,e[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}function eit(t,e,n,r){let i=0,a;for(a=0;a0&&p<=f||d<0&&p>=f||(i+=2*v*v,e[2*a]+=4*v*(o-l),e[2*a+1]+=4*v*(s-u),e[2*c]+=4*v*(l-o),e[2*c+1]+=4*v*(u-s))}}return i}function nit(t,e){let n=iit(t,e);const r=e.lossFunction||Wm;if(t.length>=8){const i=rit(t,e),a=r(i,t),o=r(n,t);a+1e-8=Math.min(r[p].size,r[v].size)&&(h=0),i[p].push({set:v,size:d.size,weight:h}),i[v].push({set:p,size:d.size,weight:h})}const o=[];for(a in i)if(i.hasOwnProperty(a)){let f=0;for(let d=0;d0){const i=t[0].x,a=t[0].y;for(r=0;r1){const i=Math.atan2(t[1].x,t[1].y)-e;let a,o;const s=Math.cos(i),c=Math.sin(i);for(r=0;r2){let i=Math.atan2(t[2].x,t[2].y)-e;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const a=t[1].y/(1e-10+t[1].x);for(r=0;ro;r.push(` -A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const i3=t=>{const{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return s=>{const c=s.map(f=>Object.assign(Object.assign({},f),{sets:f[e],size:f[n],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=Qrt(c);let u;return c.map(f=>{const d=f[e],h=({width:p,height:v})=>{u=u||sit(l,p,v,i);const g=d.map(m=>u[m]);let y=lit(g);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};i3.props={};function uit(){return{"data.venn":i3,"mark.boxplot":Fk,"mark.gauge":Gk,"mark.wordCloud":Vk,"mark.liquid":Qk}}function fit(){return Object.assign(Object.assign(Object.assign(Object.assign({},Ytt()),trt()),uit()),zJ())}var ep=function(){return ep=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0){var w=_.x,M=_.y,E=_.height,A=_.width,P=_.data,C=Mr(P,l),j=v/2;if(e){var N=w+A/2,k=M;d.push({points:[[N+j,k-f+b],[N+j,k-y-b],[N,k-b],[N-j,k-y-b],[N-j,k-f+b]],center:[N,k-f/2-b],width:f,value:[u,C]})}else{var N=w,k=M+E/2;d.push({points:[[w-f+b,k-j],[w-y-b,k-j],[N-b,k],[w-y-b,k+j],[w-f+b,k+j]],center:[N-f/2-b,k],width:f,value:[u,C]})}u=C}}),d},t.prototype.init=function(){var e=this.chart.getContext().canvas;this.canvas=e,this.setDirection(),this.drawConversionTag()},t.prototype.setDirection=function(){var e=this.chart.getCoordinate(),n=Mr(e,"options.transformations"),r="horizontal";n.forEach(function(i){i.includes("transpose")&&(r="vertical")}),this.direction=r},t.prototype.drawConversionTag=function(){var e=this,n=this.getConversionTagLayout(),r=this.options,i=r.style,a=r.text,o=a.style,s=a.formatter;n.forEach(function(c){var l=c.points,u=c.center,f=c.value,d=f[0],h=f[1],p=u[0],v=u[1],g=new il({style:np({points:l,fill:"#eee"},i)}),y=new Zi({style:np({x:p,y:v,text:Wt(s)?s(d,h):(h/d*100).toFixed(2)+"%",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000"},o)});e.canvas.appendChild(g),e.canvas.appendChild(y),e.container.push(g,y)})},t.prototype.update=function(e){},t.prototype.destroy=function(){this.container.forEach(function(e){e.destroy()})},t}(),pit=1,vit=2;function git(t,e,n,r){var i=n.length,a=i,o=!r;if(t==null)return!a;for(t=Object(t);i--;){var s=n[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i-1}var qit=Uit;function Zit(t,e,n){for(var r=-1,i=t==null?0:t.length;++r=nat){var l=e?null:eat(t);if(l)return xp(l);o=!1,i=g1,c=new v1}else c=e?[]:s;t:for(;++r0&&n(s)?e>1?g3(s,e-1,n,r,i):Op(i,s):r||(i[i.length]=s)}return i}var Wat=g3;function Hat(t){var e=t==null?0:t.length;return e?Wat(t,1):[]}var Yat=Hat;function $at(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Vat=$at,y3=Math.max;function Xat(t,e,n){return e=y3(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=y3(r.length-e,0),o=Array(a);++i0){if(++e>=Qat)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var not=eot,rot=not(Kat),b3=rot;function iot(t){return b3(m3(t,void 0,Yat),t+"")}var Jm=iot,aot=Jm(function(t,e){return t==null?{}:Fat(t,e)}),rp=aot;function oot(t,e,n){return t==null?t:p3(t,e,n)}var $e=oot,ku=function(){return ku=Object.assign||function(t){for(var e,n=1,r=arguments.length;ni?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(i);++r1),a}),Cs(t,U1(t),n),r&&(n=rb(n,Sot|Mot|Eot,wot));for(var i=e.length;i--;)vot(n,e[i]);return n}),e1=Aot,Tot=function(t){return Object.keys(t).forEach(function(e){qm.includes(e)&&delete t[e]}),t},Pot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ic=function(){return Ic=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1&&$e(r,"children",[{type:"interval"}]);var i=r.scale,a=r.markBackground,o=r.data,s=r.children,c=Mr(i,"y.domain",[]);if(a&&c.length&&Mt(o)){var l="domainMax",u=o.map(function(f){var d;return Lu(Lu({},f),(d={},d[l]=c[c.length-1],d))});s.unshift(Lu({type:"interval",data:u,yField:l,tooltip:!1,legend:!1,style:{fill:"#eee"},label:!1},a))}return n};return bn(e,pr,En)(t)}var ost=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),sst=function(t){ost(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Bar",n}return e.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return C3},e}(yn),cst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),lst=function(t){cst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlightByColor:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return C3},e}(yn);function ust(t){var e=function(n){var r=n.options,i=r.annotations,a=i===void 0?[]:i,o=r.children,s=o===void 0?[]:o,c=!1;return s.forEach(function(l,u){var f="child".concat(u,"Scale");$e(l,"scale.y.key",f);var d=l.annotations,h=d===void 0?[]:d;h.length>0&&($e(l,"scale.y.independent",!1),h.forEach(function(p){$e(p,"scale.y.key",f)})),!c&&a.length>0&&Mr(l,"scale.y.independent")===void 0&&(c=!0,$e(l,"scale.y.independent",!1),a.forEach(function(p){$e(p,"scale.y.key",f)}))}),n};return bn(e,pr,En)(t)}var fst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),k3=function(t){fst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="DualAxes",n}return e.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ust},e}(yn);function dst(t){var e=function(a){var o=a.options,s=o.xField,c=o.colorField;return c||$e(o,"colorField",s),a},n=function(a){var o=a.options,s=o.compareField,c=o.transform,l=o.isTransposed,u=l===void 0?!0:l,f=o.coordinate;return c||(s?$e(o,"transform",[]):$e(o,"transform",[{type:"symmetryY"}])),!f&&u&&$e(o,"coordinate",{transform:[{type:"transpose"}]}),a},r=function(a){var o=a.options,s=o.compareField,c=o.seriesField,l=o.data,u=o.children,f=o.yField,d=o.isTransposed,h=d===void 0?!0:d;if(s||c){var p=Object.values(f3(l,function(v){return v[s||c]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete o.compareField,delete o.data}return c&&($e(o,"type","spaceFlex"),$e(o,"ratio",[1,1]),$e(o,"direction",h?"row":"col"),delete o.seriesField),a},i=function(a){var o=a.options,s=o.tooltip,c=o.xField,l=o.yField;return s||$e(o,"tooltip",{title:!1,items:[function(u){return{name:u[c],value:u[l]}}]}),a};return bn(e,n,r,i,pr,En)(t)}var hst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),pst=function(t){hst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return dst},e}(yn);function vst(t){return bn(pr,En)(t)}var gst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yst=function(t){gst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="line",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vst},e}(yn);function mst(t){return bn(ip,En)(t)}var bst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),xst=function(t){bst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="pie",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return mst},e}(yn);function _st(t){return bn(pr,En)(t)}var Ost=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),wst=function(t){Ost(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="scatter",n}return e.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return _st},e}(yn);function Sst(t){var e=function(n){return $e(n,"options.coordinate",{type:Mr(n,"options.coordinateType","polar")}),n};return bn(e,ip,En)(t)}var Mst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Est=function(t){Mst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radar",n}return e.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Sst},e}(yn);function Ast(t,e){var n=-1,r=Do(t)?Array(t.length):[];return u3(t,function(i,a,o){r[++n]=e(i,a,o)}),r}var Tst=Ast;function Pst(t,e){var n=Mt(t)?Zu:Tst;return n(t,$m(e,3))}var jc=Pst,$a=function(){return $a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(d.x1=f[s],d.x2=d[s],d.y1=f[Dc]),d},[]),u.shift(),c.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:u1({stroke:"#697474"},l),label:!1,tooltip:!1}),r};return bn(e,n,pr,En)(t)}var ict=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),act=function(t){ict(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="waterfall",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:l1,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return rct},e}(yn),oct="[object Number]";function sct(t){return typeof t=="number"||Oi(t)&&ot(t)==oct}var Bc=sct;function cct(t,e){return b3(m3(t,e,Ym),t+"")}var lct=cct;function uct(t,e,n){if(!Ot(n))return!1;var r=typeof e;return(r=="number"?Do(n)&&Yu(e,n.length):r=="string"&&e in n)?Pe(n[e],t):!1}var fct=uct;function dct(t){return lct(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,o&&fct(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r-1:!!i&&c3(t,e,n)>-1}var hlt=dlt,na=function(){return na=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=L.length?void 0:L)&&L[V++],done:!L}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")}function Nt(L,I){var G=typeof Symbol=="function"&&L[Symbol.iterator];if(!G)return L;var V,at,lt=G.call(L),Q=[];try{for(;(I===void 0||0at=>G(V(at)),L)}function De(L,I){return I-L?G=>(G-L)/(I-L):G=>.5}const an=Math.sqrt(50),_e=Math.sqrt(10),Me=Math.sqrt(2);function pn(L,I,G){return I=(I-L)/Math.max(0,G),L=Math.floor(Math.log(I)/Math.LN10),G=I/wr(10,L),0<=L?(G>=an?10:G>=_e?5:G>=Me?2:1)*wr(10,L):-wr(10,-L)/(G>=an?10:G>=_e?5:G>=Me?2:1)}const Ln=(L,I,G=5)=>{L=[L,I];let V=0,at=L.length-1,lt=L[V],Q=L[at],J;return Q{G.prototype.rescale=function(){this.initRange(),this.nice();var[V]=this.chooseTransforms();this.composeOutput(V,this.chooseClamp(V))},G.prototype.initRange=function(){var V=this.options.interpolator;this.options.range=L(V)},G.prototype.composeOutput=function(V,at){var lt,{domain:J,interpolator:Q,round:pt}=this.getOptions(),J=I(J.map(V)),pt=pt?(lt=Q,bt=>(bt=lt(bt),yt(bt)?Math.round(bt):bt)):Q;this.output=He(pt,J,at,V)},G.prototype.invert=void 0}}var fn,Ee={exports:{}},Xe={exports:{}},mt=function(L){return!(!L||typeof L=="string")&&(L instanceof Array||Array.isArray(L)||0<=L.length&&(L.splice instanceof Function||Object.getOwnPropertyDescriptor(L,L.length-1)&&L.constructor.name!=="String"))},U=Array.prototype.concat,X=Array.prototype.slice,Z=Xe.exports=function(L){for(var I=[],G=0,V=L.length;GG=>L*(1-G)+I*G,wt=(L,I)=>{if(typeof L=="number"&&typeof I=="number")return ft(L,I);if(typeof L!="string"||typeof I!="string")return()=>L;{var G=L,V=I;const at=et(G),lt=et(V);return at===null||lt===null?at?()=>G:()=>V:Q=>{var J=new Array(4);for(let de=0;de<4;de+=1){var pt=at[de],bt=lt[de];J[de]=pt*(1-Q)+bt*Q}var[ne,ae,be,re]=J;return`rgba(${Math.round(ne)}, ${Math.round(ae)}, ${Math.round(be)}, ${re})`}}},H=(L,I)=>{const G=ft(L,I);return V=>Math.round(G(V))};function tt({map:L,initKey:I},G){return I=I(G),L.has(I)?L.get(I):G}function ht(L){return typeof L=="object"?L.valueOf():L}class x extends Map{constructor(I){if(super(),this.map=new Map,this.initKey=ht,I!==null)for(var[G,V]of I)this.set(G,V)}get(I){return super.get(tt({map:this.map,initKey:this.initKey},I))}has(I){return super.has(tt({map:this.map,initKey:this.initKey},I))}set(I,G){return super.set(([{map:I,initKey:V},at]=[{map:this.map,initKey:this.initKey},I],V=V(at),I.has(V)?I.get(V):(I.set(V,at),at)),G);var V,at}delete(I){return super.delete(([{map:I,initKey:G},V]=[{map:this.map,initKey:this.initKey},I],G=G(V),I.has(G)&&(V=I.get(G),I.delete(G)),V));var G,V}}class T{constructor(I){this.options=$t({},this.getDefaultOptions()),this.update(I)}getOptions(){return this.options}update(I={}){this.options=$t({},this.options,I),this.rescale(I)}rescale(I){}}const W=Symbol("defaultUnknown");function K(L,I,G){for(let V=0;V""+I:typeof L=="object"?I=>JSON.stringify(I):I=>I}class xt extends T{getDefaultOptions(){return{domain:[],range:[],unknown:W}}constructor(I){super(I)}map(I){return this.domainIndexMap.size===0&&K(this.domainIndexMap,this.getDomain(),this.domainKey),nt({value:this.domainKey(I),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(I){return this.rangeIndexMap.size===0&&K(this.rangeIndexMap,this.getRange(),this.rangeKey),nt({value:this.rangeKey(I),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(I){var[G]=this.options.domain,[V]=this.options.range;this.domainKey=ot(G),this.rangeKey=ot(V),this.rangeIndexMap?(I&&!I.range||this.rangeIndexMap.clear(),I&&!I.domain&&!I.compare||(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new xt(this.options)}getRange(){return this.options.range}getDomain(){var I,G;return this.sortedDomain||({domain:I,compare:G}=this.options,this.sortedDomain=G?[...I].sort(G):I),this.sortedDomain}}function Ot(Xt){const{domain:I,range:G,paddingOuter:V,paddingInner:at,flex:lt,round:Q,align:J}=Xt;var pt=I.length,re=0<(re=(Xt=pt)-(bt=lt).length)?[...bt,...new Array(re).fill(1)]:re<0?bt.slice(0,Xt):bt,[Xt,bt]=G,bt=bt-Xt,ve=bt/(2/pt*V+1-1/pt*at);const ne=ve*at/pt;ve-=pt*ne;const ae=function(ge){const Te=Math.min(...ge);return ge.map(tn=>tn/Te)}(re),be=ve/ae.reduce((ge,Te)=>ge+Te);var re=new x(I.map((ge,Te)=>(Te=ae[Te]*be,[ge,Q?Math.floor(Te):Te]))),de=new x(I.map((ge,Te)=>(Te=ae[Te]*be+ne,[ge,Q?Math.floor(Te):Te]))),ve=Array.from(de.values()).reduce((ge,Te)=>ge+Te),Xt=Xt+(bt-(ve-ve/pt*at))*J;let Ce=Q?Math.round(Xt):Xt;var xe=new Array(pt);for(let ge=0;geve+Ce*re),{valueStep:re,valueBandWidth:de,adjustedRange:bt}}({align:V,range:at,round:lt,flex:G,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:I});this.valueStep=lt,this.valueBandWidth=at,this.adjustedRange=V}}const Tt=(L,I,G)=>{let V,at,lt=L,Q=I;if(lt===Q&&0{var[V,at]=V,[lt,Q]=lt;let J,pt;return He(pt=V{const V=Math.min(L.length,I.length)-1,at=new Array(V),lt=new Array(V);var Q=L[0]>L[V],J=Q?[...L].reverse():L,pt=Q?[...I].reverse():I;for(let bt=0;bt{var ne=function(be,re,de,ve,Xt){let Ce=de||0,xe=ve||be.length;for(var ke=Xt||(Te=>Te);Cere?xe=ge:Ce=ge+1}return Ce}(L,bt,1,V)-1,ae=at[ne];return He(lt[ne],ae)(bt)}},Vt=(L,I,G,V)=>(2Math.min(Math.max(lt,J),Q)}return te}composeOutput(I,G){var{domain:Q,range:V,round:at,interpolate:lt}=this.options,Q=Vt(Q.map(I),V,lt,at);this.output=He(Q,G,I)}composeInput(I,G,V){var{domain:at,range:lt}=this.options,lt=Vt(lt,at.map(I),ft);this.input=He(G,V,lt)}}class Qt extends Wt{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:wt,tickMethod:Tt,tickCount:5}}chooseTransforms(){return[te,te]}clone(){return new Qt(this.options)}}class se extends Et{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:W,paddingInner:1,paddingOuter:0}}constructor(I){super(I)}getPaddingInner(){return 1}clone(){return new se(this.options)}update(I){super.update(I)}getPaddingOuter(){return this.options.padding}}function Mt(L,I){for(var G=[],V=0,at=L.length;V{var[I,G]=I;return He(ft(0,1),De(I,G))})],Le);let jn=Ne=class extends Qt{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:te,tickMethod:Tt,tickCount:5}}constructor(L){super(L)}clone(){return new Ne(this.options)}};jn=Ne=function(L,I,G,V){var at,lt=arguments.length,Q=lt<3?I:V===null?V=Object.getOwnPropertyDescriptor(I,G):V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(L,I,G,V);else for(var J=L.length-1;0<=J;J--)(at=L[J])&&(Q=(lt<3?at(Q):3{const[I,G,V]=L,at=He(ft(0,.5),De(I,G)),lt=He(ft(.5,1),De(G,V));return Q=>(I>V?Qye?ye:_t};Ge.Z=gt},58622:function(Ve,Ge){"use strict";var gt=function(_t){return _t==null};Ge.Z=gt},39696:function(Ve,Ge,gt){"use strict";var _t=gt(98104),Nt=function(ye){return(0,_t.Z)(ye,"Number")};Ge.Z=Nt},98104:function(Ve,Ge){"use strict";var gt={}.toString,_t=function(Nt,ye){return gt.call(Nt)==="[object "+ye+"]"};Ge.Z=_t},50304:function(Ve,Ge,gt){"use strict";gt.d(Ge,{Z:function(){return mt}});var _t=gt(50959),Nt=gt(84875),ye=gt.n(Nt),Be=gt(87017),Jt=gt(31594),he=gt(17436),ie=gt(25670),Ht=gt(66146),yt=function(U,X){var Z={};for(var it in U)Object.prototype.hasOwnProperty.call(U,it)&&X.indexOf(it)<0&&(Z[it]=U[it]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,it=Object.getOwnPropertySymbols(U);ct{var{prefixCls:X,className:Z,hoverable:it=!0}=U,ct=yt(U,["prefixCls","className","hoverable"]);const{getPrefixCls:zt}=_t.useContext(Jt.E_),Ct=zt("card",X),ee=ye()(`${Ct}-grid`,Z,{[`${Ct}-grid-hoverable`]:it});return _t.createElement("div",Object.assign({},ct,{className:ee}))},$t=gt(60076),te=gt(6301),Bt=gt(81501),It=gt(90467);const kt=U=>{const{antCls:X,componentCls:Z,headerHeight:it,cardPaddingBase:ct,tabsMarginBottom:zt}=U;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:it,marginBottom:-1,padding:`0 ${(0,$t.bf)(ct)}`,color:U.colorTextHeading,fontWeight:U.fontWeightStrong,fontSize:U.headerFontSize,background:U.headerBg,borderBottom:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${U.colorBorderSecondary}`,borderRadius:`${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)} 0 0`},(0,te.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},te.vS),{[` - > ${Z}-typography, - > ${Z}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${X}-tabs-top`]:{clear:"both",marginBottom:zt,color:U.colorText,fontWeight:"normal",fontSize:U.fontSize,"&-bar":{borderBottom:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${U.colorBorderSecondary}`}}})},Ft=U=>{const{cardPaddingBase:X,colorBorderSecondary:Z,cardShadow:it,lineWidth:ct}=U;return{width:"33.33%",padding:X,border:0,borderRadius:0,boxShadow:` - ${(0,$t.bf)(ct)} 0 0 0 ${Z}, - 0 ${(0,$t.bf)(ct)} 0 0 ${Z}, - ${(0,$t.bf)(ct)} ${(0,$t.bf)(ct)} 0 0 ${Z}, - ${(0,$t.bf)(ct)} 0 0 0 ${Z} inset, - 0 ${(0,$t.bf)(ct)} 0 0 ${Z} inset; - `,transition:`all ${U.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:it}}},Se=U=>{const{componentCls:X,iconCls:Z,actionsLiMargin:it,cardActionsIconSize:ct,colorBorderSecondary:zt,actionsBg:Ct}=U;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:Ct,borderTop:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${zt}`,display:"flex",borderRadius:`0 0 ${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)}`},(0,te.dF)()),{"& > li":{margin:it,color:U.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:U.calc(U.cardActionsIconSize).mul(2).equal(),fontSize:U.fontSize,lineHeight:U.lineHeight,cursor:"pointer","&:hover":{color:U.colorPrimary,transition:`color ${U.motionDurationMid}`},[`a:not(${X}-btn), > ${Z}`]:{display:"inline-block",width:"100%",color:U.colorTextDescription,lineHeight:(0,$t.bf)(U.fontHeight),transition:`color ${U.motionDurationMid}`,"&:hover":{color:U.colorPrimary}},[`> ${Z}`]:{fontSize:ct,lineHeight:(0,$t.bf)(U.calc(ct).mul(U.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${zt}`}}})},Re=U=>Object.assign(Object.assign({margin:`${(0,$t.bf)(U.calc(U.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,te.dF)()),{"&-avatar":{paddingInlineEnd:U.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:U.marginXS}},"&-title":Object.assign({color:U.colorTextHeading,fontWeight:U.fontWeightStrong,fontSize:U.fontSizeLG},te.vS),"&-description":{color:U.colorTextDescription}}),Ke=U=>{const{componentCls:X,cardPaddingBase:Z,colorFillAlter:it}=U;return{[`${X}-head`]:{padding:`0 ${(0,$t.bf)(Z)}`,background:it,"&-title":{fontSize:U.fontSize}},[`${X}-body`]:{padding:`${(0,$t.bf)(U.padding)} ${(0,$t.bf)(Z)}`}}},We=U=>{const{componentCls:X}=U;return{overflow:"hidden",[`${X}-body`]:{userSelect:"none"}}},Ze=U=>{const{antCls:X,componentCls:Z,cardShadow:it,cardHeadPadding:ct,colorBorderSecondary:zt,boxShadowTertiary:Ct,cardPaddingBase:ee,extraColor:$}=U;return{[Z]:Object.assign(Object.assign({},(0,te.Wf)(U)),{position:"relative",background:U.colorBgContainer,borderRadius:U.borderRadiusLG,[`&:not(${Z}-bordered)`]:{boxShadow:Ct},[`${Z}-head`]:kt(U),[`${Z}-extra`]:{marginInlineStart:"auto",color:$,fontWeight:"normal",fontSize:U.fontSize},[`${Z}-body`]:Object.assign({padding:ee,borderRadius:` 0 0 ${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)}`},(0,te.dF)()),[`${Z}-grid`]:Ft(U),[`${Z}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${X}-image-mask`]:{borderRadius:`${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)} 0 0`}},[`${Z}-actions`]:Se(U),[`${Z}-meta`]:Re(U)}),[`${Z}-bordered`]:{border:`${(0,$t.bf)(U.lineWidth)} ${U.lineType} ${zt}`,[`${Z}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${Z}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${U.motionDurationMid}, border-color ${U.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:it}},[`${Z}-contain-grid`]:{borderRadius:`${(0,$t.bf)(U.borderRadiusLG)} ${(0,$t.bf)(U.borderRadiusLG)} 0 0 `,[`${Z}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${Z}-loading) ${Z}-body`]:{marginBlockStart:U.calc(U.lineWidth).mul(-1).equal(),marginInlineStart:U.calc(U.lineWidth).mul(-1).equal(),padding:0}},[`${Z}-contain-tabs`]:{[`> ${Z}-head`]:{minHeight:0,[`${Z}-head-title, ${Z}-extra`]:{paddingTop:ct}}},[`${Z}-type-inner`]:Ke(U),[`${Z}-loading`]:We(U),[`${Z}-rtl`]:{direction:"rtl"}}},cn=U=>{const{componentCls:X,cardPaddingSM:Z,headerHeightSM:it,headerFontSizeSM:ct}=U;return{[`${X}-small`]:{[`> ${X}-head`]:{minHeight:it,padding:`0 ${(0,$t.bf)(Z)}`,fontSize:ct,[`> ${X}-head-wrapper`]:{[`> ${X}-extra`]:{fontSize:U.fontSize}}},[`> ${X}-body`]:{padding:Z}},[`${X}-small${X}-contain-tabs`]:{[`> ${X}-head`]:{[`${X}-head-title, ${X}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},He=U=>({headerBg:"transparent",headerFontSize:U.fontSizeLG,headerFontSizeSM:U.fontSize,headerHeight:U.fontSizeLG*U.lineHeightLG+U.padding*2,headerHeightSM:U.fontSize*U.lineHeight+U.paddingXS*2,actionsBg:U.colorBgContainer,actionsLiMargin:`${U.paddingSM}px 0`,tabsMarginBottom:-U.padding-U.lineWidth,extraColor:U.colorText});var De=(0,Bt.I$)("Card",U=>{const X=(0,It.TS)(U,{cardShadow:U.boxShadowCard,cardHeadPadding:U.padding,cardPaddingBase:U.paddingLG,cardActionsIconSize:U.fontSize,cardPaddingSM:12});return[Ze(X),cn(X)]},He),an=function(U,X){var Z={};for(var it in U)Object.prototype.hasOwnProperty.call(U,it)&&X.indexOf(it)<0&&(Z[it]=U[it]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,it=Object.getOwnPropertySymbols(U);ct{const{prefixCls:X,actions:Z=[]}=U;return _t.createElement("ul",{className:`${X}-actions`},Z.map((it,ct)=>{const zt=`action-${ct}`;return _t.createElement("li",{style:{width:`${100/Z.length}%`},key:zt},_t.createElement("span",null,it))}))};var pn=_t.forwardRef((U,X)=>{const{prefixCls:Z,className:it,rootClassName:ct,style:zt,extra:Ct,headStyle:ee={},bodyStyle:$={},title:ut,loading:vt,bordered:Ut=!0,size:et,type:ft,cover:wt,actions:H,tabList:tt,children:ht,activeTabKey:x,defaultActiveTabKey:T,tabBarExtraContent:W,hoverable:K,tabProps:nt={}}=U,ot=an(U,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:xt,direction:Ot,card:Et}=_t.useContext(Jt.E_),Tt=On=>{var gn;(gn=U.onTabChange)===null||gn===void 0||gn.call(U,On)},Gt=_t.useMemo(()=>{let On=!1;return _t.Children.forEach(ht,gn=>{gn&&gn.type&&gn.type===Zt&&(On=!0)}),On},[ht]),jt=xt("card",Z),[Vt,Wt]=De(jt),Qt=_t.createElement(ie.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},ht),se=x!==void 0,Mt=Object.assign(Object.assign({},nt),{[se?"activeKey":"defaultActiveKey"]:se?x:T,tabBarExtraContent:W});let Oe;const Xe=(0,he.Z)(et),Ee=!Xe||Xe==="default"?"large":Xe,Pe=tt?_t.createElement(Ht.Z,Object.assign({size:Ee},Mt,{className:`${jt}-head-tabs`,onChange:Tt,items:tt.map(On=>{var{tab:gn}=On,or=an(On,["tab"]);return Object.assign({label:gn},or)})})):null;(ut||Ct||Pe)&&(Oe=_t.createElement("div",{className:`${jt}-head`,style:ee},_t.createElement("div",{className:`${jt}-head-wrapper`},ut&&_t.createElement("div",{className:`${jt}-head-title`},ut),Ct&&_t.createElement("div",{className:`${jt}-extra`},Ct)),Pe));const Ne=wt?_t.createElement("div",{className:`${jt}-cover`},wt):null,Le=_t.createElement("div",{className:`${jt}-body`,style:$},vt?Qt:ht),jn=H&&H.length?_t.createElement(_e,{prefixCls:jt,actions:H}):null,Dn=(0,Be.Z)(ot,["onTabChange"]),Bn=ye()(jt,Et==null?void 0:Et.className,{[`${jt}-loading`]:vt,[`${jt}-bordered`]:Ut,[`${jt}-hoverable`]:K,[`${jt}-contain-grid`]:Gt,[`${jt}-contain-tabs`]:tt&&tt.length,[`${jt}-${Xe}`]:Xe,[`${jt}-type-${ft}`]:!!ft,[`${jt}-rtl`]:Ot==="rtl"},it,ct,Wt),Fn=Object.assign(Object.assign({},Et==null?void 0:Et.style),zt);return Vt(_t.createElement("div",Object.assign({ref:X},Dn,{className:Bn,style:Fn}),Oe,Ne,Le,jn))}),Ln=function(U,X){var Z={};for(var it in U)Object.prototype.hasOwnProperty.call(U,it)&&X.indexOf(it)<0&&(Z[it]=U[it]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,it=Object.getOwnPropertySymbols(U);ct{const{prefixCls:X,className:Z,avatar:it,title:ct,description:zt}=U,Ct=Ln(U,["prefixCls","className","avatar","title","description"]),{getPrefixCls:ee}=_t.useContext(Jt.E_),$=ee("card",X),ut=ye()(`${$}-meta`,Z),vt=it?_t.createElement("div",{className:`${$}-meta-avatar`},it):null,Ut=ct?_t.createElement("div",{className:`${$}-meta-title`},ct):null,et=zt?_t.createElement("div",{className:`${$}-meta-description`},zt):null,ft=Ut||et?_t.createElement("div",{className:`${$}-meta-detail`},Ut,et):null;return _t.createElement("div",Object.assign({},Ct,{className:ut}),vt,ft)};const fn=pn;fn.Grid=Zt,fn.Meta=ln;var mt=fn},82099:function(Ve,Ge,gt){"use strict";var _t=gt(50120);Ge.Z=_t.Z},23870:function(Ve,Ge,gt){"use strict";var _t=gt(72611);Ge.Z=_t.Z},99419:function(Ve){"use strict";Ve.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2489:function(Ve,Ge,gt){var _t=gt(99419),Nt=gt(27933),ye=Object.hasOwnProperty,Be=Object.create(null);for(var Jt in _t)ye.call(_t,Jt)&&(Be[_t[Jt]]=Jt);var he=Ve.exports={to:{},get:{}};he.get=function(yt){var pe=yt.substring(0,3).toLowerCase(),Zt,$t;switch(pe){case"hsl":Zt=he.get.hsl(yt),$t="hsl";break;case"hwb":Zt=he.get.hwb(yt),$t="hwb";break;default:Zt=he.get.rgb(yt),$t="rgb";break}return Zt?{model:$t,value:Zt}:null},he.get.rgb=function(yt){if(!yt)return null;var pe=/^#([a-f0-9]{3,4})$/i,Zt=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,$t=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,te=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,Bt=/^(\w+)$/,It=[0,0,0,1],kt,Ft,Se;if(kt=yt.match(Zt)){for(Se=kt[2],kt=kt[1],Ft=0;Ft<3;Ft++){var Re=Ft*2;It[Ft]=parseInt(kt.slice(Re,Re+2),16)}Se&&(It[3]=parseInt(Se,16)/255)}else if(kt=yt.match(pe)){for(kt=kt[1],Se=kt[3],Ft=0;Ft<3;Ft++)It[Ft]=parseInt(kt[Ft]+kt[Ft],16);Se&&(It[3]=parseInt(Se+Se,16)/255)}else if(kt=yt.match($t)){for(Ft=0;Ft<3;Ft++)It[Ft]=parseInt(kt[Ft+1],0);kt[4]&&(kt[5]?It[3]=parseFloat(kt[4])*.01:It[3]=parseFloat(kt[4]))}else if(kt=yt.match(te)){for(Ft=0;Ft<3;Ft++)It[Ft]=Math.round(parseFloat(kt[Ft+1])*2.55);kt[4]&&(kt[5]?It[3]=parseFloat(kt[4])*.01:It[3]=parseFloat(kt[4]))}else return(kt=yt.match(Bt))?kt[1]==="transparent"?[0,0,0,0]:ye.call(_t,kt[1])?(It=_t[kt[1]],It[3]=1,It):null:null;for(Ft=0;Ft<3;Ft++)It[Ft]=ie(It[Ft],0,255);return It[3]=ie(It[3],0,1),It},he.get.hsl=function(yt){if(!yt)return null;var pe=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,Zt=yt.match(pe);if(Zt){var $t=parseFloat(Zt[4]),te=(parseFloat(Zt[1])%360+360)%360,Bt=ie(parseFloat(Zt[2]),0,100),It=ie(parseFloat(Zt[3]),0,100),kt=ie(isNaN($t)?1:$t,0,1);return[te,Bt,It,kt]}return null},he.get.hwb=function(yt){if(!yt)return null;var pe=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,Zt=yt.match(pe);if(Zt){var $t=parseFloat(Zt[4]),te=(parseFloat(Zt[1])%360+360)%360,Bt=ie(parseFloat(Zt[2]),0,100),It=ie(parseFloat(Zt[3]),0,100),kt=ie(isNaN($t)?1:$t,0,1);return[te,Bt,It,kt]}return null},he.to.hex=function(){var yt=Nt(arguments);return"#"+Ht(yt[0])+Ht(yt[1])+Ht(yt[2])+(yt[3]<1?Ht(Math.round(yt[3]*255)):"")},he.to.rgb=function(){var yt=Nt(arguments);return yt.length<4||yt[3]===1?"rgb("+Math.round(yt[0])+", "+Math.round(yt[1])+", "+Math.round(yt[2])+")":"rgba("+Math.round(yt[0])+", "+Math.round(yt[1])+", "+Math.round(yt[2])+", "+yt[3]+")"},he.to.rgb.percent=function(){var yt=Nt(arguments),pe=Math.round(yt[0]/255*100),Zt=Math.round(yt[1]/255*100),$t=Math.round(yt[2]/255*100);return yt.length<4||yt[3]===1?"rgb("+pe+"%, "+Zt+"%, "+$t+"%)":"rgba("+pe+"%, "+Zt+"%, "+$t+"%, "+yt[3]+")"},he.to.hsl=function(){var yt=Nt(arguments);return yt.length<4||yt[3]===1?"hsl("+yt[0]+", "+yt[1]+"%, "+yt[2]+"%)":"hsla("+yt[0]+", "+yt[1]+"%, "+yt[2]+"%, "+yt[3]+")"},he.to.hwb=function(){var yt=Nt(arguments),pe="";return yt.length>=4&&yt[3]!==1&&(pe=", "+yt[3]),"hwb("+yt[0]+", "+yt[1]+"%, "+yt[2]+"%"+pe+")"},he.to.keyword=function(yt){return Be[yt.slice(0,3)]};function ie(yt,pe,Zt){return Math.min(Math.max(pe,yt),Zt)}function Ht(yt){var pe=Math.round(yt).toString(16).toUpperCase();return pe.length<2?"0"+pe:pe}},52617:function(Ve,Ge,gt){"use strict";gt.d(Ge,{ZP:function(){return Ke},B8:function(){return He}});function _t(mt,U,X){mt.prototype=U.prototype=X,X.constructor=mt}function Nt(mt,U){var X=Object.create(mt.prototype);for(var Z in U)X[Z]=U[Z];return X}function ye(){}var Be=.7,Jt=1/Be,he="\\s*([+-]?\\d+)\\s*",ie="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ht="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yt=/^#([0-9a-f]{3,8})$/,pe=new RegExp("^rgb\\("+[he,he,he]+"\\)$"),Zt=new RegExp("^rgb\\("+[Ht,Ht,Ht]+"\\)$"),$t=new RegExp("^rgba\\("+[he,he,he,ie]+"\\)$"),te=new RegExp("^rgba\\("+[Ht,Ht,Ht,ie]+"\\)$"),Bt=new RegExp("^hsl\\("+[ie,Ht,Ht]+"\\)$"),It=new RegExp("^hsla\\("+[ie,Ht,Ht,ie]+"\\)$"),kt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};_t(ye,Ke,{copy:function(mt){return Object.assign(new this.constructor,this,mt)},displayable:function(){return this.rgb().displayable()},hex:Ft,formatHex:Ft,formatHsl:Se,formatRgb:Re,toString:Re});function Ft(){return this.rgb().formatHex()}function Se(){return Ln(this).formatHsl()}function Re(){return this.rgb().formatRgb()}function Ke(mt){var U,X;return mt=(mt+"").trim().toLowerCase(),(U=yt.exec(mt))?(X=U[1].length,U=parseInt(U[1],16),X===6?We(U):X===3?new De(U>>8&15|U>>4&240,U>>4&15|U&240,(U&15)<<4|U&15,1):X===8?Ze(U>>24&255,U>>16&255,U>>8&255,(U&255)/255):X===4?Ze(U>>12&15|U>>8&240,U>>8&15|U>>4&240,U>>4&15|U&240,((U&15)<<4|U&15)/255):null):(U=pe.exec(mt))?new De(U[1],U[2],U[3],1):(U=Zt.exec(mt))?new De(U[1]*255/100,U[2]*255/100,U[3]*255/100,1):(U=$t.exec(mt))?Ze(U[1],U[2],U[3],U[4]):(U=te.exec(mt))?Ze(U[1]*255/100,U[2]*255/100,U[3]*255/100,U[4]):(U=Bt.exec(mt))?pn(U[1],U[2]/100,U[3]/100,1):(U=It.exec(mt))?pn(U[1],U[2]/100,U[3]/100,U[4]):kt.hasOwnProperty(mt)?We(kt[mt]):mt==="transparent"?new De(NaN,NaN,NaN,0):null}function We(mt){return new De(mt>>16&255,mt>>8&255,mt&255,1)}function Ze(mt,U,X,Z){return Z<=0&&(mt=U=X=NaN),new De(mt,U,X,Z)}function cn(mt){return mt instanceof ye||(mt=Ke(mt)),mt?(mt=mt.rgb(),new De(mt.r,mt.g,mt.b,mt.opacity)):new De}function He(mt,U,X,Z){return arguments.length===1?cn(mt):new De(mt,U,X,Z==null?1:Z)}function De(mt,U,X,Z){this.r=+mt,this.g=+U,this.b=+X,this.opacity=+Z}_t(De,He,Nt(ye,{brighter:function(mt){return mt=mt==null?Jt:Math.pow(Jt,mt),new De(this.r*mt,this.g*mt,this.b*mt,this.opacity)},darker:function(mt){return mt=mt==null?Be:Math.pow(Be,mt),new De(this.r*mt,this.g*mt,this.b*mt,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:an,formatHex:an,formatRgb:_e,toString:_e}));function an(){return"#"+Me(this.r)+Me(this.g)+Me(this.b)}function _e(){var mt=this.opacity;return mt=isNaN(mt)?1:Math.max(0,Math.min(1,mt)),(mt===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(mt===1?")":", "+mt+")")}function Me(mt){return mt=Math.max(0,Math.min(255,Math.round(mt)||0)),(mt<16?"0":"")+mt.toString(16)}function pn(mt,U,X,Z){return Z<=0?mt=U=X=NaN:X<=0||X>=1?mt=U=NaN:U<=0&&(mt=NaN),new ln(mt,U,X,Z)}function Ln(mt){if(mt instanceof ln)return new ln(mt.h,mt.s,mt.l,mt.opacity);if(mt instanceof ye||(mt=Ke(mt)),!mt)return new ln;if(mt instanceof ln)return mt;mt=mt.rgb();var U=mt.r/255,X=mt.g/255,Z=mt.b/255,it=Math.min(U,X,Z),ct=Math.max(U,X,Z),zt=NaN,Ct=ct-it,ee=(ct+it)/2;return Ct?(U===ct?zt=(X-Z)/Ct+(X0&&ee<1?0:zt,new ln(zt,Ct,ee,mt.opacity)}function qn(mt,U,X,Z){return arguments.length===1?Ln(mt):new ln(mt,U,X,Z==null?1:Z)}function ln(mt,U,X,Z){this.h=+mt,this.s=+U,this.l=+X,this.opacity=+Z}_t(ln,qn,Nt(ye,{brighter:function(mt){return mt=mt==null?Jt:Math.pow(Jt,mt),new ln(this.h,this.s,this.l*mt,this.opacity)},darker:function(mt){return mt=mt==null?Be:Math.pow(Be,mt),new ln(this.h,this.s,this.l*mt,this.opacity)},rgb:function(){var mt=this.h%360+(this.h<0)*360,U=isNaN(mt)||isNaN(this.s)?0:this.s,X=this.l,Z=X+(X<.5?X:1-X)*U,it=2*X-Z;return new De(fn(mt>=240?mt-240:mt+120,it,Z),fn(mt,it,Z),fn(mt<120?mt+240:mt-120,it,Z),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var mt=this.opacity;return mt=isNaN(mt)?1:Math.max(0,Math.min(1,mt)),(mt===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(mt===1?")":", "+mt+")")}}));function fn(mt,U,X){return(mt<60?U+(X-U)*mt/60:mt<180?X:mt<240?U+(X-U)*(240-mt)/60:U)*255}},2337:function(Ve){"use strict";var Ge=Object.prototype.hasOwnProperty,gt="~";function _t(){}Object.create&&(_t.prototype=Object.create(null),new _t().__proto__||(gt=!1));function Nt(he,ie,Ht){this.fn=he,this.context=ie,this.once=Ht||!1}function ye(he,ie,Ht,yt,pe){if(typeof Ht!="function")throw new TypeError("The listener must be a function");var Zt=new Nt(Ht,yt||he,pe),$t=gt?gt+ie:ie;return he._events[$t]?he._events[$t].fn?he._events[$t]=[he._events[$t],Zt]:he._events[$t].push(Zt):(he._events[$t]=Zt,he._eventsCount++),he}function Be(he,ie){--he._eventsCount===0?he._events=new _t:delete he._events[ie]}function Jt(){this._events=new _t,this._eventsCount=0}Jt.prototype.eventNames=function(){var ie=[],Ht,yt;if(this._eventsCount===0)return ie;for(yt in Ht=this._events)Ge.call(Ht,yt)&&ie.push(gt?yt.slice(1):yt);return Object.getOwnPropertySymbols?ie.concat(Object.getOwnPropertySymbols(Ht)):ie},Jt.prototype.listeners=function(ie){var Ht=gt?gt+ie:ie,yt=this._events[Ht];if(!yt)return[];if(yt.fn)return[yt.fn];for(var pe=0,Zt=yt.length,$t=new Array(Zt);pe0)throw"Initial bisect points must have opposite signs";if(Re===0)return Bt;if(Ke===0)return It;for(var Ze=0;Ze=0&&(Bt=cn),Math.abs(We)=_e[an-1].fx){var zt=!1;if(fn.fx>ct.fx?(ie(mt,1+cn,ln,-cn,ct),mt.fx=te(mt),mt.fx=1)break;for(Me=1;Me<_e.length;++Me)ie(_e[Me],1-He,_e[0],He,_e[Me]),_e[Me].fx=te(_e[Me])}}else Ln(fn)}return _e.sort(qn),{fx:_e[0].fx,x:_e[0]}}function yt(te,Bt,It,kt,Ft,Se,Re){var Ke=It.fx,We=Be(It.fxprime,Bt),Ze=Ke,cn=Ke,He=We,De=0;Ft=Ft||1,Se=Se||1e-6,Re=Re||.1;function an(Me,pn,Ln){for(var qn=0;qn<16;++qn)if(Ft=(Me+pn)/2,ie(kt.x,1,It.x,Ft,Bt),Ze=kt.fx=te(kt.x,kt.fxprime),He=Be(kt.fxprime,Bt),Ze>Ke+Se*Ft*We||Ze>=Ln)pn=Ft;else{if(Math.abs(He)<=-Re*We)return Ft;He*(pn-Me)>=0&&(pn=Me),Me=Ft,Ln=Ze}return 0}for(var _e=0;_e<10;++_e){if(ie(kt.x,1,It.x,Ft,Bt),Ze=kt.fx=te(kt.x,kt.fxprime),He=Be(kt.fxprime,Bt),Ze>Ke+Se*Ft*We||_e&&Ze>=cn)return an(De,Ft,cn);if(Math.abs(He)<=-Re*We)return Ft;if(He>=0)return an(Ft,De,Ze);cn=Ze,De=Ft,Ft*=2}return Ft}function pe(te,Bt,It){var kt={x:Bt.slice(),fx:0,fxprime:Bt.slice()},Ft={x:Bt.slice(),fx:0,fxprime:Bt.slice()},Se=Bt.slice(),Re,Ke,We=1,Ze;It=It||{},Ze=It.maxIterations||Bt.length*20,kt.fx=te(kt.x,kt.fxprime),Re=kt.fxprime.slice(),he(Re,kt.fxprime,-1);for(var cn=0;cn0?(W[0]=(Ot*xt+Gt*K+Et*ot-Tt*nt)*2/jt,W[1]=(Et*xt+Gt*nt+Tt*K-Ot*ot)*2/jt,W[2]=(Tt*xt+Gt*ot+Ot*nt-Et*K)*2/jt):(W[0]=(Ot*xt+Gt*K+Et*ot-Tt*nt)*2,W[1]=(Et*xt+Gt*nt+Tt*K-Ot*ot)*2,W[2]=(Tt*xt+Gt*ot+Ot*nt-Et*K)*2),De(x,T,W),x}function _e(x,T){return x[0]=T[12],x[1]=T[13],x[2]=T[14],x}function Me(x,T){var W=T[0],K=T[1],nt=T[2],ot=T[4],xt=T[5],Ot=T[6],Et=T[8],Tt=T[9],Gt=T[10];return x[0]=Math.hypot(W,K,nt),x[1]=Math.hypot(ot,xt,Ot),x[2]=Math.hypot(Et,Tt,Gt),x}function pn(x,T){var W=new _t.WT(3);Me(W,T);var K=1/W[0],nt=1/W[1],ot=1/W[2],xt=T[0]*K,Ot=T[1]*nt,Et=T[2]*ot,Tt=T[4]*K,Gt=T[5]*nt,jt=T[6]*ot,Vt=T[8]*K,Wt=T[9]*nt,Qt=T[10]*ot,se=xt+Gt+Qt,Mt=0;return se>0?(Mt=Math.sqrt(se+1)*2,x[3]=.25*Mt,x[0]=(jt-Wt)/Mt,x[1]=(Vt-Et)/Mt,x[2]=(Ot-Tt)/Mt):xt>Gt&&xt>Qt?(Mt=Math.sqrt(1+xt-Gt-Qt)*2,x[3]=(jt-Wt)/Mt,x[0]=.25*Mt,x[1]=(Ot+Tt)/Mt,x[2]=(Vt+Et)/Mt):Gt>Qt?(Mt=Math.sqrt(1+Gt-xt-Qt)*2,x[3]=(Vt-Et)/Mt,x[0]=(Ot+Tt)/Mt,x[1]=.25*Mt,x[2]=(jt+Wt)/Mt):(Mt=Math.sqrt(1+Qt-xt-Gt)*2,x[3]=(Ot-Tt)/Mt,x[0]=(Vt+Et)/Mt,x[1]=(jt+Wt)/Mt,x[2]=.25*Mt),x}function Ln(x,T,W,K){var nt=T[0],ot=T[1],xt=T[2],Ot=T[3],Et=nt+nt,Tt=ot+ot,Gt=xt+xt,jt=nt*Et,Vt=nt*Tt,Wt=nt*Gt,Qt=ot*Tt,se=ot*Gt,Mt=xt*Gt,Oe=Ot*Et,Xe=Ot*Tt,Ee=Ot*Gt,Pe=K[0],Ne=K[1],Le=K[2];return x[0]=(1-(Qt+Mt))*Pe,x[1]=(Vt+Ee)*Pe,x[2]=(Wt-Xe)*Pe,x[3]=0,x[4]=(Vt-Ee)*Ne,x[5]=(1-(jt+Mt))*Ne,x[6]=(se+Oe)*Ne,x[7]=0,x[8]=(Wt+Xe)*Le,x[9]=(se-Oe)*Le,x[10]=(1-(jt+Qt))*Le,x[11]=0,x[12]=W[0],x[13]=W[1],x[14]=W[2],x[15]=1,x}function qn(x,T,W,K,nt){var ot=T[0],xt=T[1],Ot=T[2],Et=T[3],Tt=ot+ot,Gt=xt+xt,jt=Ot+Ot,Vt=ot*Tt,Wt=ot*Gt,Qt=ot*jt,se=xt*Gt,Mt=xt*jt,Oe=Ot*jt,Xe=Et*Tt,Ee=Et*Gt,Pe=Et*jt,Ne=K[0],Le=K[1],jn=K[2],Dn=nt[0],Bn=nt[1],Fn=nt[2],On=(1-(se+Oe))*Ne,gn=(Wt+Pe)*Ne,or=(Qt-Ee)*Ne,dn=(Wt-Pe)*Le,Qr=(1-(Vt+Oe))*Le,wa=(Mt+Xe)*Le,ci=(Qt+Ee)*jn,Sa=(Mt-Xe)*jn,Ma=(1-(Vt+se))*jn;return x[0]=On,x[1]=gn,x[2]=or,x[3]=0,x[4]=dn,x[5]=Qr,x[6]=wa,x[7]=0,x[8]=ci,x[9]=Sa,x[10]=Ma,x[11]=0,x[12]=W[0]+Dn-(On*Dn+dn*Bn+ci*Fn),x[13]=W[1]+Bn-(gn*Dn+Qr*Bn+Sa*Fn),x[14]=W[2]+Fn-(or*Dn+wa*Bn+Ma*Fn),x[15]=1,x}function ln(x,T){var W=T[0],K=T[1],nt=T[2],ot=T[3],xt=W+W,Ot=K+K,Et=nt+nt,Tt=W*xt,Gt=K*xt,jt=K*Ot,Vt=nt*xt,Wt=nt*Ot,Qt=nt*Et,se=ot*xt,Mt=ot*Ot,Oe=ot*Et;return x[0]=1-jt-Qt,x[1]=Gt+Oe,x[2]=Vt-Mt,x[3]=0,x[4]=Gt-Oe,x[5]=1-Tt-Qt,x[6]=Wt+se,x[7]=0,x[8]=Vt+Mt,x[9]=Wt-se,x[10]=1-Tt-jt,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}function fn(x,T,W,K,nt,ot,xt){var Ot=1/(W-T),Et=1/(nt-K),Tt=1/(ot-xt);return x[0]=ot*2*Ot,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ot*2*Et,x[6]=0,x[7]=0,x[8]=(W+T)*Ot,x[9]=(nt+K)*Et,x[10]=(xt+ot)*Tt,x[11]=-1,x[12]=0,x[13]=0,x[14]=xt*ot*2*Tt,x[15]=0,x}function mt(x,T,W,K,nt){var ot=1/Math.tan(T/2),xt;return x[0]=ot/W,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ot,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[11]=-1,x[12]=0,x[13]=0,x[15]=0,nt!=null&&nt!==1/0?(xt=1/(K-nt),x[10]=(nt+K)*xt,x[14]=2*nt*K*xt):(x[10]=-1,x[14]=-2*K),x}var U=mt;function X(x,T,W,K,nt){var ot=1/Math.tan(T/2),xt;return x[0]=ot/W,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ot,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[11]=-1,x[12]=0,x[13]=0,x[15]=0,nt!=null&&nt!==1/0?(xt=1/(K-nt),x[10]=nt*xt,x[14]=nt*K*xt):(x[10]=-1,x[14]=-K),x}function Z(x,T,W,K){var nt=Math.tan(T.upDegrees*Math.PI/180),ot=Math.tan(T.downDegrees*Math.PI/180),xt=Math.tan(T.leftDegrees*Math.PI/180),Ot=Math.tan(T.rightDegrees*Math.PI/180),Et=2/(xt+Ot),Tt=2/(nt+ot);return x[0]=Et,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=Tt,x[6]=0,x[7]=0,x[8]=-((xt-Ot)*Et*.5),x[9]=(nt-ot)*Tt*.5,x[10]=K/(W-K),x[11]=-1,x[12]=0,x[13]=0,x[14]=K*W/(W-K),x[15]=0,x}function it(x,T,W,K,nt,ot,xt){var Ot=1/(T-W),Et=1/(K-nt),Tt=1/(ot-xt);return x[0]=-2*Ot,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*Et,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=2*Tt,x[11]=0,x[12]=(T+W)*Ot,x[13]=(nt+K)*Et,x[14]=(xt+ot)*Tt,x[15]=1,x}var ct=it;function zt(x,T,W,K,nt,ot,xt){var Ot=1/(T-W),Et=1/(K-nt),Tt=1/(ot-xt);return x[0]=-2*Ot,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*Et,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=Tt,x[11]=0,x[12]=(T+W)*Ot,x[13]=(nt+K)*Et,x[14]=ot*Tt,x[15]=1,x}function Ct(x,T,W,K){var nt,ot,xt,Ot,Et,Tt,Gt,jt,Vt,Wt,Qt=T[0],se=T[1],Mt=T[2],Oe=K[0],Xe=K[1],Ee=K[2],Pe=W[0],Ne=W[1],Le=W[2];return Math.abs(Qt-Pe)<_t.Ib&&Math.abs(se-Ne)<_t.Ib&&Math.abs(Mt-Le)<_t.Ib?ie(x):(Gt=Qt-Pe,jt=se-Ne,Vt=Mt-Le,Wt=1/Math.hypot(Gt,jt,Vt),Gt*=Wt,jt*=Wt,Vt*=Wt,nt=Xe*Vt-Ee*jt,ot=Ee*Gt-Oe*Vt,xt=Oe*jt-Xe*Gt,Wt=Math.hypot(nt,ot,xt),Wt?(Wt=1/Wt,nt*=Wt,ot*=Wt,xt*=Wt):(nt=0,ot=0,xt=0),Ot=jt*xt-Vt*ot,Et=Vt*nt-Gt*xt,Tt=Gt*ot-jt*nt,Wt=Math.hypot(Ot,Et,Tt),Wt?(Wt=1/Wt,Ot*=Wt,Et*=Wt,Tt*=Wt):(Ot=0,Et=0,Tt=0),x[0]=nt,x[1]=Ot,x[2]=Gt,x[3]=0,x[4]=ot,x[5]=Et,x[6]=jt,x[7]=0,x[8]=xt,x[9]=Tt,x[10]=Vt,x[11]=0,x[12]=-(nt*Qt+ot*se+xt*Mt),x[13]=-(Ot*Qt+Et*se+Tt*Mt),x[14]=-(Gt*Qt+jt*se+Vt*Mt),x[15]=1,x)}function ee(x,T,W,K){var nt=T[0],ot=T[1],xt=T[2],Ot=K[0],Et=K[1],Tt=K[2],Gt=nt-W[0],jt=ot-W[1],Vt=xt-W[2],Wt=Gt*Gt+jt*jt+Vt*Vt;Wt>0&&(Wt=1/Math.sqrt(Wt),Gt*=Wt,jt*=Wt,Vt*=Wt);var Qt=Et*Vt-Tt*jt,se=Tt*Gt-Ot*Vt,Mt=Ot*jt-Et*Gt;return Wt=Qt*Qt+se*se+Mt*Mt,Wt>0&&(Wt=1/Math.sqrt(Wt),Qt*=Wt,se*=Wt,Mt*=Wt),x[0]=Qt,x[1]=se,x[2]=Mt,x[3]=0,x[4]=jt*Mt-Vt*se,x[5]=Vt*Qt-Gt*Mt,x[6]=Gt*se-jt*Qt,x[7]=0,x[8]=Gt,x[9]=jt,x[10]=Vt,x[11]=0,x[12]=nt,x[13]=ot,x[14]=xt,x[15]=1,x}function $(x){return"mat4("+x[0]+", "+x[1]+", "+x[2]+", "+x[3]+", "+x[4]+", "+x[5]+", "+x[6]+", "+x[7]+", "+x[8]+", "+x[9]+", "+x[10]+", "+x[11]+", "+x[12]+", "+x[13]+", "+x[14]+", "+x[15]+")"}function ut(x){return Math.hypot(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15])}function vt(x,T,W){return x[0]=T[0]+W[0],x[1]=T[1]+W[1],x[2]=T[2]+W[2],x[3]=T[3]+W[3],x[4]=T[4]+W[4],x[5]=T[5]+W[5],x[6]=T[6]+W[6],x[7]=T[7]+W[7],x[8]=T[8]+W[8],x[9]=T[9]+W[9],x[10]=T[10]+W[10],x[11]=T[11]+W[11],x[12]=T[12]+W[12],x[13]=T[13]+W[13],x[14]=T[14]+W[14],x[15]=T[15]+W[15],x}function Ut(x,T,W){return x[0]=T[0]-W[0],x[1]=T[1]-W[1],x[2]=T[2]-W[2],x[3]=T[3]-W[3],x[4]=T[4]-W[4],x[5]=T[5]-W[5],x[6]=T[6]-W[6],x[7]=T[7]-W[7],x[8]=T[8]-W[8],x[9]=T[9]-W[9],x[10]=T[10]-W[10],x[11]=T[11]-W[11],x[12]=T[12]-W[12],x[13]=T[13]-W[13],x[14]=T[14]-W[14],x[15]=T[15]-W[15],x}function et(x,T,W){return x[0]=T[0]*W,x[1]=T[1]*W,x[2]=T[2]*W,x[3]=T[3]*W,x[4]=T[4]*W,x[5]=T[5]*W,x[6]=T[6]*W,x[7]=T[7]*W,x[8]=T[8]*W,x[9]=T[9]*W,x[10]=T[10]*W,x[11]=T[11]*W,x[12]=T[12]*W,x[13]=T[13]*W,x[14]=T[14]*W,x[15]=T[15]*W,x}function ft(x,T,W,K){return x[0]=T[0]+W[0]*K,x[1]=T[1]+W[1]*K,x[2]=T[2]+W[2]*K,x[3]=T[3]+W[3]*K,x[4]=T[4]+W[4]*K,x[5]=T[5]+W[5]*K,x[6]=T[6]+W[6]*K,x[7]=T[7]+W[7]*K,x[8]=T[8]+W[8]*K,x[9]=T[9]+W[9]*K,x[10]=T[10]+W[10]*K,x[11]=T[11]+W[11]*K,x[12]=T[12]+W[12]*K,x[13]=T[13]+W[13]*K,x[14]=T[14]+W[14]*K,x[15]=T[15]+W[15]*K,x}function wt(x,T){return x[0]===T[0]&&x[1]===T[1]&&x[2]===T[2]&&x[3]===T[3]&&x[4]===T[4]&&x[5]===T[5]&&x[6]===T[6]&&x[7]===T[7]&&x[8]===T[8]&&x[9]===T[9]&&x[10]===T[10]&&x[11]===T[11]&&x[12]===T[12]&&x[13]===T[13]&&x[14]===T[14]&&x[15]===T[15]}function H(x,T){var W=x[0],K=x[1],nt=x[2],ot=x[3],xt=x[4],Ot=x[5],Et=x[6],Tt=x[7],Gt=x[8],jt=x[9],Vt=x[10],Wt=x[11],Qt=x[12],se=x[13],Mt=x[14],Oe=x[15],Xe=T[0],Ee=T[1],Pe=T[2],Ne=T[3],Le=T[4],jn=T[5],Dn=T[6],Bn=T[7],Fn=T[8],On=T[9],gn=T[10],or=T[11],dn=T[12],Qr=T[13],wa=T[14],ci=T[15];return Math.abs(W-Xe)<=_t.Ib*Math.max(1,Math.abs(W),Math.abs(Xe))&&Math.abs(K-Ee)<=_t.Ib*Math.max(1,Math.abs(K),Math.abs(Ee))&&Math.abs(nt-Pe)<=_t.Ib*Math.max(1,Math.abs(nt),Math.abs(Pe))&&Math.abs(ot-Ne)<=_t.Ib*Math.max(1,Math.abs(ot),Math.abs(Ne))&&Math.abs(xt-Le)<=_t.Ib*Math.max(1,Math.abs(xt),Math.abs(Le))&&Math.abs(Ot-jn)<=_t.Ib*Math.max(1,Math.abs(Ot),Math.abs(jn))&&Math.abs(Et-Dn)<=_t.Ib*Math.max(1,Math.abs(Et),Math.abs(Dn))&&Math.abs(Tt-Bn)<=_t.Ib*Math.max(1,Math.abs(Tt),Math.abs(Bn))&&Math.abs(Gt-Fn)<=_t.Ib*Math.max(1,Math.abs(Gt),Math.abs(Fn))&&Math.abs(jt-On)<=_t.Ib*Math.max(1,Math.abs(jt),Math.abs(On))&&Math.abs(Vt-gn)<=_t.Ib*Math.max(1,Math.abs(Vt),Math.abs(gn))&&Math.abs(Wt-or)<=_t.Ib*Math.max(1,Math.abs(Wt),Math.abs(or))&&Math.abs(Qt-dn)<=_t.Ib*Math.max(1,Math.abs(Qt),Math.abs(dn))&&Math.abs(se-Qr)<=_t.Ib*Math.max(1,Math.abs(se),Math.abs(Qr))&&Math.abs(Mt-wa)<=_t.Ib*Math.max(1,Math.abs(Mt),Math.abs(wa))&&Math.abs(Oe-ci)<=_t.Ib*Math.max(1,Math.abs(Oe),Math.abs(ci))}var tt=$t,ht=Ut},38015:function(Ve,Ge,gt){"use strict";gt.d(Ge,{$X:function(){return Ht},AK:function(){return De},Fv:function(){return He},I6:function(){return Z},IH:function(){return ie},JG:function(){return Jt},Ue:function(){return Nt},al:function(){return Be},lu:function(){return zt},t7:function(){return _e},t8:function(){return he},tk:function(){return Ze}});var _t=gt(31767);function Nt(){var et=new _t.WT(2);return _t.WT!=Float32Array&&(et[0]=0,et[1]=0),et}function ye(et){var ft=new glMatrix.ARRAY_TYPE(2);return ft[0]=et[0],ft[1]=et[1],ft}function Be(et,ft){var wt=new _t.WT(2);return wt[0]=et,wt[1]=ft,wt}function Jt(et,ft){return et[0]=ft[0],et[1]=ft[1],et}function he(et,ft,wt){return et[0]=ft,et[1]=wt,et}function ie(et,ft,wt){return et[0]=ft[0]+wt[0],et[1]=ft[1]+wt[1],et}function Ht(et,ft,wt){return et[0]=ft[0]-wt[0],et[1]=ft[1]-wt[1],et}function yt(et,ft,wt){return et[0]=ft[0]*wt[0],et[1]=ft[1]*wt[1],et}function pe(et,ft,wt){return et[0]=ft[0]/wt[0],et[1]=ft[1]/wt[1],et}function Zt(et,ft){return et[0]=Math.ceil(ft[0]),et[1]=Math.ceil(ft[1]),et}function $t(et,ft){return et[0]=Math.floor(ft[0]),et[1]=Math.floor(ft[1]),et}function te(et,ft,wt){return et[0]=Math.min(ft[0],wt[0]),et[1]=Math.min(ft[1],wt[1]),et}function Bt(et,ft,wt){return et[0]=Math.max(ft[0],wt[0]),et[1]=Math.max(ft[1],wt[1]),et}function It(et,ft){return et[0]=Math.round(ft[0]),et[1]=Math.round(ft[1]),et}function kt(et,ft,wt){return et[0]=ft[0]*wt,et[1]=ft[1]*wt,et}function Ft(et,ft,wt,H){return et[0]=ft[0]+wt[0]*H,et[1]=ft[1]+wt[1]*H,et}function Se(et,ft){var wt=ft[0]-et[0],H=ft[1]-et[1];return Math.hypot(wt,H)}function Re(et,ft){var wt=ft[0]-et[0],H=ft[1]-et[1];return wt*wt+H*H}function Ke(et){var ft=et[0],wt=et[1];return Math.hypot(ft,wt)}function We(et){var ft=et[0],wt=et[1];return ft*ft+wt*wt}function Ze(et,ft){return et[0]=-ft[0],et[1]=-ft[1],et}function cn(et,ft){return et[0]=1/ft[0],et[1]=1/ft[1],et}function He(et,ft){var wt=ft[0],H=ft[1],tt=wt*wt+H*H;return tt>0&&(tt=1/Math.sqrt(tt)),et[0]=ft[0]*tt,et[1]=ft[1]*tt,et}function De(et,ft){return et[0]*ft[0]+et[1]*ft[1]}function an(et,ft,wt){var H=ft[0]*wt[1]-ft[1]*wt[0];return et[0]=et[1]=0,et[2]=H,et}function _e(et,ft,wt,H){var tt=ft[0],ht=ft[1];return et[0]=tt+H*(wt[0]-tt),et[1]=ht+H*(wt[1]-ht),et}function Me(et,ft){ft=ft||1;var wt=glMatrix.RANDOM()*2*Math.PI;return et[0]=Math.cos(wt)*ft,et[1]=Math.sin(wt)*ft,et}function pn(et,ft,wt){var H=ft[0],tt=ft[1];return et[0]=wt[0]*H+wt[2]*tt,et[1]=wt[1]*H+wt[3]*tt,et}function Ln(et,ft,wt){var H=ft[0],tt=ft[1];return et[0]=wt[0]*H+wt[2]*tt+wt[4],et[1]=wt[1]*H+wt[3]*tt+wt[5],et}function qn(et,ft,wt){var H=ft[0],tt=ft[1];return et[0]=wt[0]*H+wt[3]*tt+wt[6],et[1]=wt[1]*H+wt[4]*tt+wt[7],et}function ln(et,ft,wt){var H=ft[0],tt=ft[1];return et[0]=wt[0]*H+wt[4]*tt+wt[12],et[1]=wt[1]*H+wt[5]*tt+wt[13],et}function fn(et,ft,wt,H){var tt=ft[0]-wt[0],ht=ft[1]-wt[1],x=Math.sin(H),T=Math.cos(H);return et[0]=tt*T-ht*x+wt[0],et[1]=tt*x+ht*T+wt[1],et}function mt(et,ft){var wt=et[0],H=et[1],tt=ft[0],ht=ft[1],x=Math.sqrt(wt*wt+H*H)*Math.sqrt(tt*tt+ht*ht),T=x&&(wt*tt+H*ht)/x;return Math.acos(Math.min(Math.max(T,-1),1))}function U(et){return et[0]=0,et[1]=0,et}function X(et){return"vec2("+et[0]+", "+et[1]+")"}function Z(et,ft){return et[0]===ft[0]&&et[1]===ft[1]}function it(et,ft){var wt=et[0],H=et[1],tt=ft[0],ht=ft[1];return Math.abs(wt-tt)<=glMatrix.EPSILON*Math.max(1,Math.abs(wt),Math.abs(tt))&&Math.abs(H-ht)<=glMatrix.EPSILON*Math.max(1,Math.abs(H),Math.abs(ht))}var ct=null,zt=Ht,Ct=null,ee=null,$=null,ut=null,vt=null,Ut=function(){var et=Nt();return function(ft,wt,H,tt,ht,x){var T,W;for(wt||(wt=2),H||(H=0),tt?W=Math.min(tt*wt+H,ft.length):W=ft.length,T=H;T0&&(W=1/Math.sqrt(W)),H[0]=tt[0]*W,H[1]=tt[1]*W,H[2]=tt[2]*W,H}function De(H,tt){return H[0]*tt[0]+H[1]*tt[1]+H[2]*tt[2]}function an(H,tt,ht){var x=tt[0],T=tt[1],W=tt[2],K=ht[0],nt=ht[1],ot=ht[2];return H[0]=T*ot-W*nt,H[1]=W*K-x*ot,H[2]=x*nt-T*K,H}function _e(H,tt,ht,x){var T=tt[0],W=tt[1],K=tt[2];return H[0]=T+x*(ht[0]-T),H[1]=W+x*(ht[1]-W),H[2]=K+x*(ht[2]-K),H}function Me(H,tt,ht,x,T,W){var K=W*W,nt=K*(2*W-3)+1,ot=K*(W-2)+W,xt=K*(W-1),Ot=K*(3-2*W);return H[0]=tt[0]*nt+ht[0]*ot+x[0]*xt+T[0]*Ot,H[1]=tt[1]*nt+ht[1]*ot+x[1]*xt+T[1]*Ot,H[2]=tt[2]*nt+ht[2]*ot+x[2]*xt+T[2]*Ot,H}function pn(H,tt,ht,x,T,W){var K=1-W,nt=K*K,ot=W*W,xt=nt*K,Ot=3*W*nt,Et=3*ot*K,Tt=ot*W;return H[0]=tt[0]*xt+ht[0]*Ot+x[0]*Et+T[0]*Tt,H[1]=tt[1]*xt+ht[1]*Ot+x[1]*Et+T[1]*Tt,H[2]=tt[2]*xt+ht[2]*Ot+x[2]*Et+T[2]*Tt,H}function Ln(H,tt){tt=tt||1;var ht=_t.FD()*2*Math.PI,x=_t.FD()*2-1,T=Math.sqrt(1-x*x)*tt;return H[0]=Math.cos(ht)*T,H[1]=Math.sin(ht)*T,H[2]=x*tt,H}function qn(H,tt,ht){var x=tt[0],T=tt[1],W=tt[2],K=ht[3]*x+ht[7]*T+ht[11]*W+ht[15];return K=K||1,H[0]=(ht[0]*x+ht[4]*T+ht[8]*W+ht[12])/K,H[1]=(ht[1]*x+ht[5]*T+ht[9]*W+ht[13])/K,H[2]=(ht[2]*x+ht[6]*T+ht[10]*W+ht[14])/K,H}function ln(H,tt,ht){var x=tt[0],T=tt[1],W=tt[2];return H[0]=x*ht[0]+T*ht[3]+W*ht[6],H[1]=x*ht[1]+T*ht[4]+W*ht[7],H[2]=x*ht[2]+T*ht[5]+W*ht[8],H}function fn(H,tt,ht){var x=ht[0],T=ht[1],W=ht[2],K=ht[3],nt=tt[0],ot=tt[1],xt=tt[2],Ot=T*xt-W*ot,Et=W*nt-x*xt,Tt=x*ot-T*nt,Gt=T*Tt-W*Et,jt=W*Ot-x*Tt,Vt=x*Et-T*Ot,Wt=K*2;return Ot*=Wt,Et*=Wt,Tt*=Wt,Gt*=2,jt*=2,Vt*=2,H[0]=nt+Ot+Gt,H[1]=ot+Et+jt,H[2]=xt+Tt+Vt,H}function mt(H,tt,ht,x){var T=[],W=[];return T[0]=tt[0]-ht[0],T[1]=tt[1]-ht[1],T[2]=tt[2]-ht[2],W[0]=T[0],W[1]=T[1]*Math.cos(x)-T[2]*Math.sin(x),W[2]=T[1]*Math.sin(x)+T[2]*Math.cos(x),H[0]=W[0]+ht[0],H[1]=W[1]+ht[1],H[2]=W[2]+ht[2],H}function U(H,tt,ht,x){var T=[],W=[];return T[0]=tt[0]-ht[0],T[1]=tt[1]-ht[1],T[2]=tt[2]-ht[2],W[0]=T[2]*Math.sin(x)+T[0]*Math.cos(x),W[1]=T[1],W[2]=T[2]*Math.cos(x)-T[0]*Math.sin(x),H[0]=W[0]+ht[0],H[1]=W[1]+ht[1],H[2]=W[2]+ht[2],H}function X(H,tt,ht,x){var T=[],W=[];return T[0]=tt[0]-ht[0],T[1]=tt[1]-ht[1],T[2]=tt[2]-ht[2],W[0]=T[0]*Math.cos(x)-T[1]*Math.sin(x),W[1]=T[0]*Math.sin(x)+T[1]*Math.cos(x),W[2]=T[2],H[0]=W[0]+ht[0],H[1]=W[1]+ht[1],H[2]=W[2]+ht[2],H}function Z(H,tt){var ht=H[0],x=H[1],T=H[2],W=tt[0],K=tt[1],nt=tt[2],ot=Math.sqrt(ht*ht+x*x+T*T),xt=Math.sqrt(W*W+K*K+nt*nt),Ot=ot*xt,Et=Ot&&De(H,tt)/Ot;return Math.acos(Math.min(Math.max(Et,-1),1))}function it(H){return H[0]=0,H[1]=0,H[2]=0,H}function ct(H){return"vec3("+H[0]+", "+H[1]+", "+H[2]+")"}function zt(H,tt){return H[0]===tt[0]&&H[1]===tt[1]&&H[2]===tt[2]}function Ct(H,tt){var ht=H[0],x=H[1],T=H[2],W=tt[0],K=tt[1],nt=tt[2];return Math.abs(ht-W)<=_t.Ib*Math.max(1,Math.abs(ht),Math.abs(W))&&Math.abs(x-K)<=_t.Ib*Math.max(1,Math.abs(x),Math.abs(K))&&Math.abs(T-nt)<=_t.Ib*Math.max(1,Math.abs(T),Math.abs(nt))}var ee=yt,$=pe,ut=Zt,vt=Re,Ut=Ke,et=Be,ft=We,wt=function(){var H=Nt();return function(tt,ht,x,T,W,K){var nt,ot;for(ht||(ht=3),x||(x=0),T?ot=Math.min(T*ht+x,tt.length):ot=tt.length,nt=x;nt0&&(wt=1/Math.sqrt(wt)),$[0]=vt*wt,$[1]=Ut*wt,$[2]=et*wt,$[3]=ft*wt,$}function De($,ut){return $[0]*ut[0]+$[1]*ut[1]+$[2]*ut[2]+$[3]*ut[3]}function an($,ut,vt,Ut){var et=vt[0]*Ut[1]-vt[1]*Ut[0],ft=vt[0]*Ut[2]-vt[2]*Ut[0],wt=vt[0]*Ut[3]-vt[3]*Ut[0],H=vt[1]*Ut[2]-vt[2]*Ut[1],tt=vt[1]*Ut[3]-vt[3]*Ut[1],ht=vt[2]*Ut[3]-vt[3]*Ut[2],x=ut[0],T=ut[1],W=ut[2],K=ut[3];return $[0]=T*ht-W*tt+K*H,$[1]=-(x*ht)+W*wt-K*ft,$[2]=x*tt-T*wt+K*et,$[3]=-(x*H)+T*ft-W*et,$}function _e($,ut,vt,Ut){var et=ut[0],ft=ut[1],wt=ut[2],H=ut[3];return $[0]=et+Ut*(vt[0]-et),$[1]=ft+Ut*(vt[1]-ft),$[2]=wt+Ut*(vt[2]-wt),$[3]=H+Ut*(vt[3]-H),$}function Me($,ut){ut=ut||1;var vt,Ut,et,ft,wt,H;do vt=glMatrix.RANDOM()*2-1,Ut=glMatrix.RANDOM()*2-1,wt=vt*vt+Ut*Ut;while(wt>=1);do et=glMatrix.RANDOM()*2-1,ft=glMatrix.RANDOM()*2-1,H=et*et+ft*ft;while(H>=1);var tt=Math.sqrt((1-wt)/H);return $[0]=ut*vt,$[1]=ut*Ut,$[2]=ut*et*tt,$[3]=ut*ft*tt,$}function pn($,ut,vt){var Ut=ut[0],et=ut[1],ft=ut[2],wt=ut[3];return $[0]=vt[0]*Ut+vt[4]*et+vt[8]*ft+vt[12]*wt,$[1]=vt[1]*Ut+vt[5]*et+vt[9]*ft+vt[13]*wt,$[2]=vt[2]*Ut+vt[6]*et+vt[10]*ft+vt[14]*wt,$[3]=vt[3]*Ut+vt[7]*et+vt[11]*ft+vt[15]*wt,$}function Ln($,ut,vt){var Ut=ut[0],et=ut[1],ft=ut[2],wt=vt[0],H=vt[1],tt=vt[2],ht=vt[3],x=ht*Ut+H*ft-tt*et,T=ht*et+tt*Ut-wt*ft,W=ht*ft+wt*et-H*Ut,K=-wt*Ut-H*et-tt*ft;return $[0]=x*ht+K*-wt+T*-tt-W*-H,$[1]=T*ht+K*-H+W*-wt-x*-tt,$[2]=W*ht+K*-tt+x*-H-T*-wt,$[3]=ut[3],$}function qn($){return $[0]=0,$[1]=0,$[2]=0,$[3]=0,$}function ln($){return"vec4("+$[0]+", "+$[1]+", "+$[2]+", "+$[3]+")"}function fn($,ut){return $[0]===ut[0]&&$[1]===ut[1]&&$[2]===ut[2]&&$[3]===ut[3]}function mt($,ut){var vt=$[0],Ut=$[1],et=$[2],ft=$[3],wt=ut[0],H=ut[1],tt=ut[2],ht=ut[3];return Math.abs(vt-wt)<=_t.Ib*Math.max(1,Math.abs(vt),Math.abs(wt))&&Math.abs(Ut-H)<=_t.Ib*Math.max(1,Math.abs(Ut),Math.abs(H))&&Math.abs(et-tt)<=_t.Ib*Math.max(1,Math.abs(et),Math.abs(tt))&&Math.abs(ft-ht)<=_t.Ib*Math.max(1,Math.abs(ft),Math.abs(ht))}var U=null,X=null,Z=null,it=null,ct=null,zt=null,Ct=null,ee=function(){var $=Nt();return function(ut,vt,Ut,et,ft,wt){var H,tt;for(vt||(vt=4),Ut||(Ut=0),et?tt=Math.min(et*vt+Ut,ut.length):tt=ut.length,H=Ut;H=0&&(gt.splice instanceof Function||Object.getOwnPropertyDescriptor(gt,gt.length-1)&>.constructor.name!=="String")}},42956:function(Ve){"use strict";var Ge=Ve.exports;Ve.exports.isNumber=function(gt){return typeof gt=="number"},Ve.exports.findMin=function(gt){if(gt.length===0)return 1/0;for(var _t=gt[0],Nt=1;Nt=Ft.length)){var pn=Math.max(Me-Zt,0),Ln=Me,qn=Math.min(Me+Zt,Ft.length-1),ln=pn-(Me-Zt),fn=Me+Zt-qn,mt=Ke[-Zt-1+ln]||0,U=Ke[-Zt-1+fn]||0,X=We/(We-mt-U);ln>0&&(cn+=X*(ln-1)*Ze);var Z=Math.max(0,Me-Zt+1);Jt.inside(0,Ft.length-1,Z)&&(Ft[Z].y+=X*1*Ze),Jt.inside(0,Ft.length-1,Ln+1)&&(Ft[Ln+1].y-=X*2*Ze),Jt.inside(0,Ft.length-1,qn+1)&&(Ft[qn+1].y+=X*1*Ze)}});var He=cn,De=0,an=0;return Ft.forEach(function(_e){De+=_e.y,He+=De,_e.y=He,an+=He}),an>0&&Ft.forEach(function(_e){_e.y/=an}),Ft};function ie(Ht,yt){for(var pe={},Zt=0,$t=-yt;$t<=yt;$t++)Zt+=Ht($t/yt),pe[$t]=Zt;return pe}Ve.exports.getExpectedValueFromPdf=function(Ht){if(!(!Ht||Ht.length===0)){var yt=0;return Ht.forEach(function(pe){yt+=pe.x*pe.y}),yt}},Ve.exports.getXWithLeftTailArea=function(Ht,yt){if(!(!Ht||Ht.length===0)){for(var pe=0,Zt=0,$t=0;$t=yt));$t++);return Ht[Zt].x}},Ve.exports.getPerplexity=function(Ht){if(!(!Ht||Ht.length===0)){var yt=0;return Ht.forEach(function(pe){var Zt=Math.log(pe.y);isFinite(Zt)&&(yt+=pe.y*Zt)}),yt=-yt/ye,Math.pow(2,yt)}}},27933:function(Ve,Ge,gt){"use strict";var _t=gt(48254),Nt=Array.prototype.concat,ye=Array.prototype.slice,Be=Ve.exports=function(he){for(var ie=[],Ht=0,yt=he.length;Ht=ye.length?{done:!0}:{done:!1,value:ye[he++]}},e:function($t){throw $t},f:ie}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ht=!0,yt=!1,pe;return{s:function(){Jt=Jt.call(ye)},n:function(){var $t=Jt.next();return Ht=$t.done,$t},e:function($t){yt=!0,pe=$t},f:function(){try{!Ht&&Jt.return!=null&&Jt.return()}finally{if(yt)throw pe}}}}Ve.exports=Nt,Ve.exports.__esModule=!0,Ve.exports.default=Ve.exports},73983:function(Ve,Ge,gt){"use strict";var _t=gt(2337);Ge.Z=_t},99938:function(Ve,Ge,gt){"use strict";gt.d(Ge,{CR:function(){return Ft},Jh:function(){return te},Q_:function(){return pn},XA:function(){return kt},ZT:function(){return Nt},_T:function(){return Be},ev:function(){return Ke},gn:function(){return Jt},mG:function(){return $t},pi:function(){return ye},pr:function(){return Re}});var _t=function(X,Z){return _t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(it,ct){it.__proto__=ct}||function(it,ct){for(var zt in ct)Object.prototype.hasOwnProperty.call(ct,zt)&&(it[zt]=ct[zt])},_t(X,Z)};function Nt(X,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");_t(X,Z);function it(){this.constructor=X}X.prototype=Z===null?Object.create(Z):(it.prototype=Z.prototype,new it)}var ye=function(){return ye=Object.assign||function(Z){for(var it,ct=1,zt=arguments.length;ct=0;$--)(ee=X[$])&&(Ct=(zt<3?ee(Ct):zt>3?ee(Z,it,Ct):ee(Z,it))||Ct);return zt>3&&Ct&&Object.defineProperty(Z,it,Ct),Ct}function he(X,Z){return function(it,ct){Z(it,ct,X)}}function ie(X,Z,it,ct,zt,Ct){function ee(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var $=ct.kind,ut=$==="getter"?"get":$==="setter"?"set":"value",vt=!Z&&X?ct.static?X:X.prototype:null,Ut=Z||(vt?Object.getOwnPropertyDescriptor(vt,ct.name):{}),et,ft=!1,wt=it.length-1;wt>=0;wt--){var H={};for(var tt in ct)H[tt]=tt==="access"?{}:ct[tt];for(var tt in ct.access)H.access[tt]=ct.access[tt];H.addInitializer=function(x){if(ft)throw new TypeError("Cannot add initializers after decoration has completed");Ct.push(ee(x||null))};var ht=(0,it[wt])($==="accessor"?{get:Ut.get,set:Ut.set}:Ut[ut],H);if($==="accessor"){if(ht===void 0)continue;if(ht===null||typeof ht!="object")throw new TypeError("Object expected");(et=ee(ht.get))&&(Ut.get=et),(et=ee(ht.set))&&(Ut.set=et),(et=ee(ht.init))&&zt.unshift(et)}else(et=ee(ht))&&($==="field"?zt.unshift(et):Ut[ut]=et)}vt&&Object.defineProperty(vt,ct.name,Ut),ft=!0}function Ht(X,Z,it){for(var ct=arguments.length>2,zt=0;zt0&&Ct[Ct.length-1])&&(vt[0]===6||vt[0]===2)){it=0;continue}if(vt[0]===3&&(!Ct||vt[1]>Ct[0]&&vt[1]=X.length&&(X=void 0),{value:X&&X[ct++],done:!X}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ft(X,Z){var it=typeof Symbol=="function"&&X[Symbol.iterator];if(!it)return X;var ct=it.call(X),zt,Ct=[],ee;try{for(;(Z===void 0||Z-- >0)&&!(zt=ct.next()).done;)Ct.push(zt.value)}catch($){ee={error:$}}finally{try{zt&&!zt.done&&(it=ct.return)&&it.call(ct)}finally{if(ee)throw ee.error}}return Ct}function Se(){for(var X=[],Z=0;Z1||$(ft,wt)})})}function $(ft,wt){try{ut(ct[ft](wt))}catch(H){et(Ct[0][3],H)}}function ut(ft){ft.value instanceof We?Promise.resolve(ft.value.v).then(vt,Ut):et(Ct[0][2],ft)}function vt(ft){$("next",ft)}function Ut(ft){$("throw",ft)}function et(ft,wt){ft(wt),Ct.shift(),Ct.length&&$(Ct[0][0],Ct[0][1])}}function cn(X){var Z,it;return Z={},ct("next"),ct("throw",function(zt){throw zt}),ct("return"),Z[Symbol.iterator]=function(){return this},Z;function ct(zt,Ct){Z[zt]=X[zt]?function(ee){return(it=!it)?{value:We(X[zt](ee)),done:!1}:Ct?Ct(ee):ee}:Ct}}function He(X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Z=X[Symbol.asyncIterator],it;return Z?Z.call(X):(X=typeof kt=="function"?kt(X):X[Symbol.iterator](),it={},ct("next"),ct("throw"),ct("return"),it[Symbol.asyncIterator]=function(){return this},it);function ct(Ct){it[Ct]=X[Ct]&&function(ee){return new Promise(function($,ut){ee=X[Ct](ee),zt($,ut,ee.done,ee.value)})}}function zt(Ct,ee,$,ut){Promise.resolve(ut).then(function(vt){Ct({value:vt,done:$})},ee)}}function De(X,Z){return Object.defineProperty?Object.defineProperty(X,"raw",{value:Z}):X.raw=Z,X}var an=Object.create?function(X,Z){Object.defineProperty(X,"default",{enumerable:!0,value:Z})}:function(X,Z){X.default=Z};function _e(X){if(X&&X.__esModule)return X;var Z={};if(X!=null)for(var it in X)it!=="default"&&Object.prototype.hasOwnProperty.call(X,it)&&Bt(Z,X,it);return an(Z,X),Z}function Me(X){return X&&X.__esModule?X:{default:X}}function pn(X,Z,it,ct){if(it==="a"&&!ct)throw new TypeError("Private accessor was defined without a getter");if(typeof Z=="function"?X!==Z||!ct:!Z.has(X))throw new TypeError("Cannot read private member from an object whose class did not declare it");return it==="m"?ct:it==="a"?ct.call(X):ct?ct.value:Z.get(X)}function Ln(X,Z,it,ct,zt){if(ct==="m")throw new TypeError("Private method is not writable");if(ct==="a"&&!zt)throw new TypeError("Private accessor was defined without a setter");if(typeof Z=="function"?X!==Z||!zt:!Z.has(X))throw new TypeError("Cannot write private member to an object whose class did not declare it");return ct==="a"?zt.call(X,it):zt?zt.value=it:Z.set(X,it),it}function qn(X,Z){if(Z===null||typeof Z!="object"&&typeof Z!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof X=="function"?Z===X:X.has(Z)}function ln(X,Z,it){if(Z!=null){if(typeof Z!="object"&&typeof Z!="function")throw new TypeError("Object expected.");var ct;if(it){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");ct=Z[Symbol.asyncDispose]}if(ct===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");ct=Z[Symbol.dispose]}if(typeof ct!="function")throw new TypeError("Object not disposable.");X.stack.push({value:Z,dispose:ct,async:it})}else it&&X.stack.push({async:!0});return Z}var fn=typeof SuppressedError=="function"?SuppressedError:function(X,Z,it){var ct=new Error(it);return ct.name="SuppressedError",ct.error=X,ct.suppressed=Z,ct};function mt(X){function Z(ct){X.error=X.hasError?new fn(ct,X.error,"An error was suppressed during disposal."):ct,X.hasError=!0}function it(){for(;X.stack.length;){var ct=X.stack.pop();try{var zt=ct.dispose&&ct.dispose.call(ct.value);if(ct.async)return Promise.resolve(zt).then(it,function(Ct){return Z(Ct),it()})}catch(Ct){Z(Ct)}}if(X.hasError)throw X.error}return it()}var U={__extends:Nt,__assign:ye,__rest:Be,__decorate:Jt,__param:he,__metadata:Zt,__awaiter:$t,__generator:te,__createBinding:Bt,__exportStar:It,__values:kt,__read:Ft,__spread:Se,__spreadArrays:Re,__spreadArray:Ke,__await:We,__asyncGenerator:Ze,__asyncDelegator:cn,__asyncValues:He,__makeTemplateObject:De,__importStar:_e,__importDefault:Me,__classPrivateFieldGet:pn,__classPrivateFieldSet:Ln,__classPrivateFieldIn:qn,__addDisposableResource:ln,__disposeResources:mt}}}]); -}()); \ No newline at end of file diff --git a/8088.ea26c177.async.js b/8088.ea26c177.async.js deleted file mode 100644 index a8663822..00000000 --- a/8088.ea26c177.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8088],{83011:function(se,G,r){var m=r(33346),h=r(50959),I=r(8941),B=r(69164),n=function(w,k){return h.createElement(B.Z,(0,m.Z)((0,m.Z)({},w),{},{ref:k,icon:I.Z}))};n.displayName="EditOutlined",G.Z=h.forwardRef(n)},1442:function(se,G,r){var m=r(33346),h=r(50959),I=r(63374),B=r(69164),n=function(w,k){return h.createElement(B.Z,(0,m.Z)((0,m.Z)({},w),{},{ref:k,icon:I.Z}))};n.displayName="PlusOutlined",G.Z=h.forwardRef(n)},44585:function(se,G,r){r.d(G,{vY:function(){return Oe}});var m=r(1788),h=r(3224),I=r(47801),B=r(10570),n=r(33346),P=r(50959),w=r(70616),k=r(69164),$=function(t,a){return P.createElement(k.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:a,icon:w.Z}))};$.displayName="CloseOutlined";var R=P.forwardRef($),ee=r(67880),J=function(t,a){return P.createElement(k.Z,(0,n.Z)((0,n.Z)({},t),{},{ref:a,icon:ee.Z}))};J.displayName="CheckOutlined";var z=P.forwardRef(J),b=r(83011),_=r(91805),D=r(82578),d=r(25670),q=r(97004),f=r(50304),p=r(84922),L=r(75200),e=r(11527),te=function(t){var a=t.padding;return(0,e.jsx)("div",{style:{padding:a||"0 24px"},children:(0,e.jsx)(p.Z,{style:{margin:0}})})},ne={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},le=function(t){var a=t.size,l=t.active,s=(0,P.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),u=q.ZP.useBreakpoint()||s,x=Object.keys(u).filter(function(y){return u[y]===!0})[0]||"md",E=a===void 0?ne[x]||6:a,T=function(c){return c===0?0:E>2?42:16};return(0,e.jsx)(f.Z,{bordered:!1,style:{marginBlockEnd:16},children:(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(E).fill(null).map(function(y,c){return(0,e.jsxs)("div",{style:{borderInlineStart:E>2&&c===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingInlineStart:T(c),flex:1,marginInlineEnd:c===0?16:0},children:[(0,e.jsx)(d.Z,{active:l,paragraph:!1,title:{width:100,style:{marginBlockStart:0}}}),(0,e.jsx)(d.Z.Button,{active:l,style:{height:48}})]},c)})})})},Y=function(t){var a=t.active;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(f.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,e.jsx)(d.Z,{active:a,title:{width:100,style:{marginBlockStart:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:165,marginBlockStart:12}})]})}),(0,e.jsx)(te,{})]})},ie=function(t){var a=t.size,l=t.active,s=l===void 0?!0:l,u=t.actionButton;return(0,e.jsxs)(f.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(a).fill(null).map(function(x,E){return(0,e.jsx)(Y,{active:!!s},E)}),u!==!1&&(0,e.jsx)(f.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(d.Z.Button,{style:{width:102},active:s,size:"small"})})]})},ae=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginBlockEnd:16},children:[(0,e.jsx)(d.Z,{paragraph:!1,title:{width:185}}),(0,e.jsx)(d.Z.Button,{active:a,size:"small"})]})},Q=function(t){var a=t.active;return(0,e.jsx)(f.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBlockEnd:8},children:(0,e.jsxs)(L.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,e.jsx)(d.Z.Button,{active:a,style:{width:200},size:"small"}),(0,e.jsxs)(L.Z,{children:[(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:120}}),(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:80}})]})]})})},Me=function(t){var a=t.active,l=a===void 0?!0:a,s=t.statistic,u=t.actionButton,x=t.toolbar,E=t.pageHeader,T=t.list,y=T===void 0?5:T;return(0,e.jsxs)("div",{style:{width:"100%"},children:[E!==!1&&(0,e.jsx)(ae,{active:l}),s!==!1&&(0,e.jsx)(le,{size:s,active:l}),(x!==!1||y!==!1)&&(0,e.jsxs)(f.Z,{bordered:!1,bodyStyle:{padding:0},children:[x!==!1&&(0,e.jsx)(Q,{active:l}),y!==!1&&(0,e.jsx)(ie,{size:y,active:l,actionButton:u})]})]})},Ie=Me,Ee={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},Be=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginBlockStart:32},children:[(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,e.jsxs)("div",{style:{flex:1,marginInlineEnd:24,maxWidth:300},children:[(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}})]}),(0,e.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{marginBlockStart:8}}})]})})]})]})},Re=function(t){var a=t.size,l=t.active,s=(0,P.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),u=q.ZP.useBreakpoint()||s,x=Object.keys(u).filter(function(T){return u[T]===!0})[0]||"md",E=a===void 0?Ee[x]||3:a;return(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(E).fill(null).map(function(T,y){return(0,e.jsxs)("div",{style:{flex:1,paddingInlineStart:y===0?0:24,paddingInlineEnd:y===E-1?0:24},children:[(0,e.jsx)(d.Z,{active:l,paragraph:!1,title:{style:{marginBlockStart:0}}}),(0,e.jsx)(d.Z,{active:l,paragraph:!1,title:{style:{marginBlockStart:8}}}),(0,e.jsx)(d.Z,{active:l,paragraph:!1,title:{style:{marginBlockStart:8}}})]},y)})})},ye=function(t){var a=t.active,l=t.header,s=l===void 0?!1:l,u=(0,P.useMemo)(function(){return{lg:!0,md:!0,sm:!1,xl:!1,xs:!1,xxl:!1}},[]),x=q.ZP.useBreakpoint()||u,E=Object.keys(x).filter(function(y){return x[y]===!0})[0]||"md",T=Ee[E]||3;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{display:"flex",background:s?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(T).fill(null).map(function(y,c){return(0,e.jsx)("div",{style:{flex:1,paddingInlineStart:s&&c===0?0:20,paddingInlineEnd:32},children:(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:s?"75px":"100%"}}})},c)}),(0,e.jsx)("div",{style:{flex:3,paddingInlineStart:32},children:(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:s?"75px":"100%"}}})})]}),(0,e.jsx)(te,{padding:"0px 0px"})]})},be=function(t){var a=t.active,l=t.size,s=l===void 0?4:l;return(0,e.jsxs)(f.Z,{bordered:!1,children:[(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsx)(ye,{header:!0,active:a}),new Array(s).fill(null).map(function(u,x){return(0,e.jsx)(ye,{active:a},x)}),(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingBlockStart:16},children:(0,e.jsx)(d.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},_e=function(t){var a=t.active;return(0,e.jsxs)(f.Z,{bordered:!1,style:{borderStartEndRadius:0,borderTopLeftRadius:0},children:[(0,e.jsx)(d.Z.Button,{active:a,size:"small",style:{width:100,marginBlockEnd:16}}),(0,e.jsx)(Re,{active:a}),(0,e.jsx)(Be,{active:a})]})},Fe=function(t){var a=t.active,l=a===void 0?!0:a,s=t.pageHeader,u=t.list;return(0,e.jsxs)("div",{style:{width:"100%"},children:[s!==!1&&(0,e.jsx)(ae,{active:l}),(0,e.jsx)(_e,{active:l}),u!==!1&&(0,e.jsx)(te,{}),u!==!1&&(0,e.jsx)(be,{active:l,size:u})]})},Le=Fe,Ae=function(t){var a=t.active,l=a===void 0?!0:a,s=t.pageHeader;return(0,e.jsxs)("div",{style:{width:"100%"},children:[s!==!1&&(0,e.jsx)(ae,{active:l}),(0,e.jsx)(f.Z,{children:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,e.jsx)(d.Z.Avatar,{size:64,style:{marginBlockEnd:32}}),(0,e.jsx)(d.Z.Button,{active:l,style:{width:214,marginBlockEnd:8}}),(0,e.jsx)(d.Z.Button,{active:l,style:{width:328},size:"small"}),(0,e.jsxs)(L.Z,{style:{marginBlockStart:24},children:[(0,e.jsx)(d.Z.Button,{active:l,style:{width:116}}),(0,e.jsx)(d.Z.Button,{active:l,style:{width:116}})]})]})})]})},We=Ae,Ke=["type"],Ue=function(t){var a=t.type,l=a===void 0?"list":a,s=(0,B.Z)(t,Ke);return l==="result"?(0,e.jsx)(We,(0,n.Z)({},s)):l==="descriptions"?(0,e.jsx)(Le,(0,n.Z)({},s)):(0,e.jsx)(Ie,(0,n.Z)({},s))},ke=Ue,pe=r(66313),ze=r(45362),Ze=r(11175),we=r(46613),me=r(21804),$e=r(75565),he=r(32682),Ne=r(17122),je=r(52497),ge=r(65589),ue=r(44139),He=function(t){return(je.ZP.warn||je.ZP.warning)(t)};function Ve(i){var t=i.data,a=i.row;return(0,n.Z)((0,n.Z)({},t),a)}function Ge(i){var t=i.type||"single",a=(0,Ne.YB)(),l=(0,ge.Z)([],{value:i.editableKeys,onChange:i.onChange?function(Z){var S;i==null||(S=i.onChange)===null||S===void 0||S.call(i,Z,i.dataSource)}:void 0}),s=(0,he.Z)(l,2),u=s[0],x=s[1],E=(0,P.useMemo)(function(){var Z=t==="single"?u==null?void 0:u.slice(0,1):u;return new Set(Z)},[(u||[]).join(","),t]),T=(0,P.useCallback)(function(Z){return!!(u!=null&&u.includes((0,ue.sN)(Z)))},[(u||[]).join(",")]),y=function(S){return E.size>0&&t==="single"?(He(i.onlyOneLineEditorAlertMessage||a.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(E.add((0,ue.sN)(S)),x(Array.from(E)),!0)},c=function(S){return E.delete((0,ue.sN)(S)),x(Array.from(E)),!0},F=function(){var Z=(0,I.Z)((0,h.Z)().mark(function S(M,C,K,X){var V,U;return(0,h.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i==null||(V=i.onCancel)===null||V===void 0?void 0:V.call(i,M,C,K,X);case 2:if(U=o.sent,U!==!1){o.next=5;break}return o.abrupt("return",!1);case 5:return o.abrupt("return",!0);case 6:case"end":return o.stop()}},S)}));return function(M,C,K,X){return Z.apply(this,arguments)}}(),N=function(){var Z=(0,I.Z)((0,h.Z)().mark(function S(M,C,K){var X,V,U;return(0,h.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i==null||(X=i.onSave)===null||X===void 0?void 0:X.call(i,M,C,K);case 2:if(V=o.sent,V!==!1){o.next=5;break}return o.abrupt("return",!1);case 5:return o.next=7,c(M);case 7:return U={data:i.dataSource,row:C,key:M,childrenColumnName:i.childrenColumnName||"children"},i.setDataSource(Ve(U)),o.abrupt("return",!0);case 10:case"end":return o.stop()}},S)}));return function(M,C,K){return Z.apply(this,arguments)}}(),A=a.getMessage("editableTable.action.save","\u4FDD\u5B58"),W=a.getMessage("editableTable.action.delete","\u5220\u9664"),O=a.getMessage("editableTable.action.cancel","\u53D6\u6D88"),H=(0,P.useCallback)(function(Z,S){var M=(0,n.Z)({recordKey:Z,cancelEditable:c,onCancel:F,onSave:N,editableKeys:u,setEditableRowKeys:x,saveText:A,cancelText:O,deleteText:W,deletePopconfirmMessage:"".concat(a.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?"),editorType:"Map"},S),C=(0,ue.aX)(i.dataSource,M);return i.actionRender?i.actionRender(i.dataSource,M,{save:C.save,delete:C.delete,cancel:C.cancel}):[C.save,C.delete,C.cancel]},[u&&u.join(","),i.dataSource]);return{editableKeys:u,setEditableRowKeys:x,isEditable:T,actionRender:H,startEditable:y,cancelEditable:c}}var Xe=r(27542),Ce=r(63945),Pe=r(8303),Qe=r(56197),Ye=r(13763),Je=r(85108),qe=function(t,a){var l=a||{},s=l.onRequestError,u=l.effects,x=l.manual,E=l.dataSource,T=l.defaultDataSource,y=l.onDataSourceChange,c=(0,ge.Z)(T,{value:E,onChange:y}),F=(0,he.Z)(c,2),N=F[0],A=F[1],W=(0,ge.Z)(a==null?void 0:a.loading,{value:a==null?void 0:a.loading,onChange:a==null?void 0:a.onLoadingChange}),O=(0,he.Z)(W,2),H=O[0],Z=O[1],S=function(K){A(K),Z(!1)},M=function(){var C=(0,I.Z)((0,h.Z)().mark(function K(){var X,V,U;return(0,h.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!H){o.next=2;break}return o.abrupt("return");case 2:return Z(!0),o.prev=3,o.next=6,t();case 6:if(o.t0=o.sent,o.t0){o.next=9;break}o.t0={};case 9:X=o.t0,V=X.data,U=X.success,U!==!1&&S(V),o.next=23;break;case 15:if(o.prev=15,o.t1=o.catch(3),s!==void 0){o.next=21;break}throw new Error(o.t1);case 21:s(o.t1);case 22:Z(!1);case 23:return o.prev=23,Z(!1),o.finish(23);case 26:case"end":return o.stop()}},K,null,[[3,15,23,26]])}));return function(){return C.apply(this,arguments)}}();return(0,P.useEffect)(function(){x||M()},[].concat((0,m.Z)(u||[]),[x])),{dataSource:N,setDataSource:A,loading:H,reload:function(){return M()}}},et=qe,Se=r(26488),tt=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],at=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],rt=function(t,a){var l=t.dataIndex;if(l){var s=Array.isArray(l)?(0,Je.Z)(a,l):a[l];if(s!==void 0||s!==null)return s}return t.children},De=function(t){var a,l=t.valueEnum,s=t.action,u=t.index,x=t.text,E=t.entity,T=t.mode,y=t.render,c=t.editableUtils,F=t.valueType,N=t.plain,A=t.dataIndex,W=t.request,O=t.renderFormItem,H=t.params,Z=_.ZP.useFormInstance(),S=(a=Se.Ow.useToken)===null||a===void 0?void 0:a.call(Se.Ow),M=S.token,C={text:x,valueEnum:l,mode:T||"read",proFieldProps:{emptyText:t.emptyText,render:y?function(V){return y==null?void 0:y(V,E,u,s,(0,n.Z)((0,n.Z)({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:F,request:W,params:H,plain:N};if(T==="read"||!T||F==="option"){var K=(0,pe.w)(t.fieldProps,void 0,(0,n.Z)((0,n.Z)({},t),{},{rowKey:A,isEditable:!1}));return(0,e.jsx)(D.Z,(0,n.Z)((0,n.Z)({name:A},C),{},{fieldProps:K}))}var X=function(){var U,v=(0,pe.w)(t.formItemProps,Z,(0,n.Z)((0,n.Z)({},t),{},{rowKey:A,isEditable:!0})),o=(0,pe.w)(t.fieldProps,Z,(0,n.Z)((0,n.Z)({},t),{},{rowKey:A,isEditable:!0}));return(0,e.jsxs)("div",{style:{display:"flex",gap:M.marginXS,alignItems:"baseline"},children:[(0,e.jsx)(ze.U,(0,n.Z)((0,n.Z)({name:A},v),{},{style:(0,n.Z)({margin:0},(v==null?void 0:v.style)||{}),initialValue:x||(v==null?void 0:v.initialValue),children:(0,e.jsx)(D.Z,(0,n.Z)((0,n.Z)({},C),{},{proFieldProps:(0,n.Z)({},C.proFieldProps),renderFormItem:O?function(){return O==null?void 0:O((0,n.Z)((0,n.Z)({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:A,record:Z.getFieldValue([A].flat(1)),defaultRender:function(){return(0,e.jsx)(D.Z,(0,n.Z)((0,n.Z)({},C),{},{fieldProps:o}))},type:"descriptions"},Z)}:void 0,fieldProps:o}))})),(0,e.jsx)("div",{style:{display:"flex",maxHeight:M.controlHeight,alignItems:"center",gap:M.marginXS},children:c==null||(U=c.actionRender)===null||U===void 0?void 0:U.call(c,A||u,{cancelText:(0,e.jsx)(R,{}),saveText:(0,e.jsx)(z,{}),deleteText:!1})})]})};return(0,e.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:X()})},nt=function(t,a,l,s,u){var x,E=[],T=(0,Ze.n)(Ce.Z,"5.8.0")>=0,y=t==null||(x=t.map)===null||x===void 0?void 0:x.call(t,function(c,F){var N,A,W;if(P.isValidElement(c))return T?{children:c}:c;var O=c,H=O.valueEnum,Z=O.render,S=O.renderText,M=O.mode,C=O.plain,K=O.dataIndex,X=O.request,V=O.params,U=O.editable,v=(0,B.Z)(O,tt),o=(N=rt(c,a))!==null&&N!==void 0?N:v.children,re=S?S(o,a,F,l):o,g=typeof v.title=="function"?v.title(c,"descriptions",null):v.title,j=typeof v.valueType=="function"?v.valueType(a||{},"descriptions"):v.valueType,xe=s==null?void 0:s.isEditable(K||F),oe=M||xe?"edit":"read",de=s&&oe==="read"&&U!==!1&&(U==null?void 0:U(re,a,F))!==!1,ve=de?L.Z:P.Fragment,ce=oe==="edit"?re:(0,we.X)(re,c,re),fe=T&&j!=="option"?(0,n.Z)((0,n.Z)({},v),{},{key:v.key||((A=v.label)===null||A===void 0?void 0:A.toString())||F,label:(g||v.label||v.tooltip||v.tip)&&(0,e.jsx)(me.G,{label:g||v.label,tooltip:v.tooltip||v.tip,ellipsis:c.ellipsis}),children:(0,e.jsxs)(ve,{children:[(0,e.jsx)(De,(0,n.Z)((0,n.Z)({},c),{},{dataIndex:c.dataIndex||F,mode:oe,text:ce,valueType:j,entity:a,index:F,emptyText:u,action:l,editableUtils:s})),de&&(0,e.jsx)(b.Z,{onClick:function(){s==null||s.startEditable(K||F)}})]})}):(0,P.createElement)(Pe.Z.Item,(0,n.Z)((0,n.Z)({},v),{},{key:v.key||((W=v.label)===null||W===void 0?void 0:W.toString())||F,label:(g||v.label||v.tooltip||v.tip)&&(0,e.jsx)(me.G,{label:g||v.label,tooltip:v.tooltip||v.tip,ellipsis:c.ellipsis})}),(0,e.jsxs)(ve,{children:[(0,e.jsx)(De,(0,n.Z)((0,n.Z)({},c),{},{dataIndex:c.dataIndex||F,mode:oe,text:ce,valueType:j,entity:a,index:F,action:l,editableUtils:s})),de&&j!=="option"&&(0,e.jsx)(b.Z,{onClick:function(){s==null||s.startEditable(K||F)}})]}));return j==="option"?(E.push(fe),null):fe}).filter(function(c){return c});return{options:E!=null&&E.length?E:null,children:y}},Te=function(t){return(0,e.jsx)(Pe.Z.Item,(0,n.Z)((0,n.Z)({},t),{},{children:t.children}))};Te.displayName="ProDescriptionsItem";var lt=function(t){return t.children},Oe=function(t){var a,l=t.request,s=t.columns,u=t.params,x=t.dataSource,E=t.onDataSourceChange,T=t.formProps,y=t.editable,c=t.loading,F=t.onLoadingChange,N=t.actionRef,A=t.onRequestError,W=(0,B.Z)(t,at),O=(0,P.useContext)(Qe.ZP.ConfigContext),H=et((0,I.Z)((0,h.Z)().mark(function o(){var re;return(0,h.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!l){j.next=6;break}return j.next=3,l(u||{});case 3:j.t0=j.sent,j.next=7;break;case 6:j.t0={data:{}};case 7:return re=j.t0,j.abrupt("return",re);case 9:case"end":return j.stop()}},o)})),{onRequestError:A,effects:[(0,$e.ZP)(u)],manual:!l,dataSource:x,loading:c,onLoadingChange:F,onDataSourceChange:E}),Z=Ge((0,n.Z)((0,n.Z)({},t.editable),{},{childrenColumnName:void 0,dataSource:H.dataSource,setDataSource:H.setDataSource}));if((0,P.useEffect)(function(){N&&(N.current=(0,n.Z)({reload:H.reload},Z))},[H,N,Z]),H.loading||H.loading===void 0&&l)return(0,e.jsx)(ke,{type:"descriptions",list:!1,pageHeader:!1});var S=function(){var re=(0,Ye.Z)(t.children).filter(Boolean).map(function(g){if(!P.isValidElement(g))return g;var j=g==null?void 0:g.props,xe=j.valueEnum,oe=j.valueType,de=j.dataIndex,ve=j.ellipsis,ce=j.copyable,fe=j.request;return!oe&&!xe&&!de&&!fe&&!ve&&!ce&&g.type.displayName!=="ProDescriptionsItem"?g:(0,n.Z)((0,n.Z)({},g==null?void 0:g.props),{},{entity:x})});return[].concat((0,m.Z)(s||[]),(0,m.Z)(re)).filter(function(g){return!g||g!=null&&g.valueType&&["index","indexBorder"].includes(g==null?void 0:g.valueType)?!1:!(g!=null&&g.hideInDescriptions)}).sort(function(g,j){return j.order||g.order?(j.order||0)-(g.order||0):(j.index||0)-(g.index||0)})},M=nt(S(),H.dataSource||{},(N==null?void 0:N.current)||H,y?Z:void 0,t.emptyText),C=M.options,K=M.children,X=y?_.ZP:lt,V=null;(W.title||W.tooltip||W.tip)&&(V=(0,e.jsx)(me.G,{label:W.title,tooltip:W.tooltip||W.tip}));var U=O.getPrefixCls("pro-descriptions"),v=(0,Ze.n)(Ce.Z,"5.8.0")>=0;return(0,e.jsx)(Xe.S,{children:(0,e.jsx)(X,(0,n.Z)((0,n.Z)({form:(a=t.editable)===null||a===void 0?void 0:a.form,component:!1,submitter:!1},T),{},{onFinish:void 0,children:(0,e.jsx)(Pe.Z,(0,n.Z)((0,n.Z)({className:U},W),{},{contentStyle:{minWidth:0},extra:W.extra?(0,e.jsxs)(L.Z,{children:[C,W.extra]}):C,title:V,items:v?K:void 0,children:v?null:K}))}),"form")})};Oe.Item=Te;var st=null},98150:function(se,G,r){var m=r(33346),h=r(10570),I=r(50959),B=r(54970),n=r(82578),P=r(11527),w=["fieldProps","proFieldProps"],k="dateTime",$=I.forwardRef(function(R,ee){var J=R.fieldProps,z=R.proFieldProps,b=(0,h.Z)(R,w),_=(0,I.useContext)(B.Z);return(0,P.jsx)(n.Z,(0,m.Z)({ref:ee,fieldProps:(0,m.Z)({getPopupContainer:_.getPopupContainer},J),valueType:k,proFieldProps:z,filedConfig:{valueType:k,customLightMode:!0}},b))});G.Z=$},66790:function(se,G,r){var m=r(33346),h=r(10570),I=r(44559),B=r(22900),n=r(50959),P=r(81298),w=r(82578),k=r(11527),$=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],R=n.forwardRef(function(b,_){var D=b.fieldProps,d=b.options,q=b.radioType,f=b.layout,p=b.proFieldProps,L=b.valueEnum,e=(0,h.Z)(b,$);return(0,k.jsx)(w.Z,(0,m.Z)((0,m.Z)({valueType:q==="button"?"radioButton":"radio",ref:_,valueEnum:(0,I.h)(L,void 0)},e),{},{fieldProps:(0,m.Z)({options:d,layout:f},D),proFieldProps:p,filedConfig:{customLightMode:!0}}))}),ee=n.forwardRef(function(b,_){var D=b.fieldProps,d=b.children;return(0,k.jsx)(B.ZP,(0,m.Z)((0,m.Z)({},D),{},{ref:_,children:d}))}),J=(0,P.G)(ee,{valuePropName:"checked",ignoreWidth:!0}),z=J;z.Group=R,z.Button=B.ZP.Button,z.displayName="ProFormComponent",G.Z=z},79712:function(se,G,r){var m=r(33346),h=r(10570),I=r(44559),B=r(50959),n=r(54970),P=r(82578),w=r(11527),k=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],$=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],R=function(D,d){var q=D.fieldProps,f=D.children,p=D.params,L=D.proFieldProps,e=D.mode,te=D.valueEnum,ne=D.request,le=D.showSearch,Y=D.options,ie=(0,h.Z)(D,k),ae=(0,B.useContext)(n.Z);return(0,w.jsx)(P.Z,(0,m.Z)((0,m.Z)({valueEnum:(0,I.h)(te),request:ne,params:p,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,m.Z)({options:Y,mode:e,showSearch:le,getPopupContainer:ae.getPopupContainer},q),ref:d,proFieldProps:L},ie),{},{children:f}))},ee=B.forwardRef(function(_,D){var d=_.fieldProps,q=_.children,f=_.params,p=_.proFieldProps,L=_.mode,e=_.valueEnum,te=_.request,ne=_.options,le=(0,h.Z)(_,$),Y=(0,m.Z)({options:ne,mode:L||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},d),ie=(0,B.useContext)(n.Z);return(0,w.jsx)(P.Z,(0,m.Z)((0,m.Z)({valueEnum:(0,I.h)(e),request:te,params:f,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,m.Z)({getPopupContainer:ie.getPopupContainer},Y),ref:D,proFieldProps:p},le),{},{children:q}))}),J=B.forwardRef(R),z=ee,b=J;b.SearchSelect=z,b.displayName="ProFormComponent",G.Z=b},59224:function(se,G,r){var m=r(33346),h=r(10570),I=r(50959),B=r(82578),n=r(11527),P=["fieldProps","proFieldProps"],w=function($,R){var ee=$.fieldProps,J=$.proFieldProps,z=(0,h.Z)($,P);return(0,n.jsx)(B.Z,(0,m.Z)({ref:R,valueType:"textarea",fieldProps:ee,proFieldProps:J},z))};G.Z=I.forwardRef(w)},60010:function(se,G,r){var m=r(32682),h=r(33346),I=r(10570),B=r(65589),n=r(67190),P=r(82757),w=r(71770),k=r(50959),$=r(82578),R=r(11527),ee=["fieldProps","proFieldProps"],J=["fieldProps","proFieldProps"],z="text",b=function(f){var p=f.fieldProps,L=f.proFieldProps,e=(0,I.Z)(f,ee);return(0,R.jsx)($.Z,(0,h.Z)({valueType:z,fieldProps:p,filedConfig:{valueType:z},proFieldProps:L},e))},_=function(f){var p=(0,B.Z)(f.open||!1,{value:f.open,onChange:f.onOpenChange}),L=(0,m.Z)(p,2),e=L[0],te=L[1];return(0,R.jsx)(n.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(le){var Y,ie=le.getFieldValue(f.name||[]);return(0,R.jsx)(P.Z,(0,h.Z)((0,h.Z)({getPopupContainer:function(Q){return Q&&Q.parentNode?Q.parentNode:Q},onOpenChange:te,content:(0,R.jsxs)("div",{style:{padding:"4px 0"},children:[(Y=f.statusRender)===null||Y===void 0?void 0:Y.call(f,ie),f.strengthText?(0,R.jsx)("div",{style:{marginTop:10},children:(0,R.jsx)("span",{children:f.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},f.popoverProps),{},{open:e,children:f.children}))}})},D=function(f){var p=f.fieldProps,L=f.proFieldProps,e=(0,I.Z)(f,J),te=(0,k.useState)(!1),ne=(0,m.Z)(te,2),le=ne[0],Y=ne[1];return p!=null&&p.statusRender&&e.name?(0,R.jsx)(_,{name:e.name,statusRender:p==null?void 0:p.statusRender,popoverProps:p==null?void 0:p.popoverProps,strengthText:p==null?void 0:p.strengthText,open:le,onOpenChange:Y,children:(0,R.jsx)($.Z,(0,h.Z)({valueType:"password",fieldProps:(0,h.Z)((0,h.Z)({},(0,w.Z)(p,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(ae){var Q;p==null||(Q=p.onBlur)===null||Q===void 0||Q.call(p,ae),Y(!1)},onClick:function(ae){var Q;p==null||(Q=p.onClick)===null||Q===void 0||Q.call(p,ae),Y(!0)}}),proFieldProps:L,filedConfig:{valueType:z}},e))}):(0,R.jsx)($.Z,(0,h.Z)({valueType:"password",fieldProps:p,proFieldProps:L,filedConfig:{valueType:z}},e))},d=b;d.Password=D,d.displayName="ProFormComponent",G.Z=d}}]); diff --git a/8161.6bbeb40d.async.js b/8161.6bbeb40d.async.js deleted file mode 100644 index da5ca355..00000000 --- a/8161.6bbeb40d.async.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8161],{82099:function(it,ge,i){var N=i(50120);ge.Z=N.Z},67190:function(it,ge,i){i.d(ge,{Z:function(){return tn}});var N=i(1788),ke=i(84875),A=i.n(ke),he=i(10091),o=i(50959),Ae=i(58351),S=i(1415);function Me(e){const[t,n]=o.useState(e);return o.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}var s=i(60076),f=i(6301),P=i(37747),G=i(23148),O=i(90467),g=i(81501),j=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, - opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Y=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},[`input[type='file']:focus, - input[type='radio']:focus, - input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${(0,s.bf)(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ne=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},st=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},(0,f.Wf)(e)),Y(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Ne(e,e.controlHeightSM)),"&-large":Object.assign({},Ne(e,e.controlHeightLG))})}},ct=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:l,labelRequiredMarkColor:a,labelColor:d,labelFontSize:b,labelHeight:m,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:v,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},(0,f.Wf)(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${l}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:m,color:d,fontSize:b,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:v},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{["--ant-display"]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${l}-col-'"]):not([class*="' ${l}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:P.kr,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},_e=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},Pe=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},M=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pe=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:M(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},be=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, - .${r}-col-24${n}-label, - .${r}-col-xl-24${n}-label`]:M(e),[`@media (max-width: ${(0,s.bf)(e.screenXSMax)})`]:[pe(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:M(e)}}],[`@media (max-width: ${(0,s.bf)(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:M(e)}},[`@media (max-width: ${(0,s.bf)(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:M(e)}},[`@media (max-width: ${(0,s.bf)(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:M(e)}}}},ve=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0}),ce=(e,t)=>(0,O.TS)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t});var re=(0,g.I$)("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=ce(e,n);return[st(r),ct(r),j(r),_e(r),Pe(r),be(r),(0,G.Z)(r),P.kr]},ve,{order:-1e3}),oe=i(10254);const ye=[];function Ce(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}var xe=e=>{let{help:t,helpStatus:n,errors:r=ye,warnings:l=ye,className:a,fieldId:d,onVisibleChanged:b}=e;const{prefixCls:m}=o.useContext(S.Rk),u=`${m}-item-explain`,v=(0,oe.Z)(m),[p,Z]=re(m,v),E=(0,o.useMemo)(()=>(0,Ae.Z)(m),[m]),R=Me(r),L=Me(l),W=o.useMemo(()=>t!=null?[Ce(t,"help",n)]:[].concat((0,N.Z)(R.map((c,y)=>Ce(c,"error","error",y))),(0,N.Z)(L.map((c,y)=>Ce(c,"warning","warning",y)))),[t,n,R,L]),F={};return d&&(F.id=`${d}_help`),p(o.createElement(he.ZP,{motionDeadline:E.motionDeadline,motionName:`${m}-show-help`,visible:!!W.length,onVisibleChanged:b},c=>{const{className:y,style:x}=c;return o.createElement("div",Object.assign({},F,{className:A()(u,y,v,a,Z),style:x,role:"alert"}),o.createElement(he.V4,Object.assign({keys:W},(0,Ae.Z)(m),{motionName:`${m}-show-help-item`,component:!1}),C=>{const{key:$,error:H,errorStatus:V,className:U,style:z}=C;return o.createElement("div",{key:$,className:A()(U,{[`${u}-${V}`]:V}),style:z},H)}))}))},J=i(7445),je=i(31594),Be=i(69943),tt=i(81046),B=i(17436),X=i(10886);const Xe=["parentNode"],le="form_item";function h(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function $e(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:Xe.includes(n)?`${le}_${n}`:n}function Se(e,t,n,r,l,a){let d=r;return a!==void 0?d=a:n.validating?d="validating":e.length?d="error":t.length?d="warning":(n.touched||l&&n.validated)&&(d="success"),d}function Ie(e){return h(e).join("_")}function Re(e){const[t]=(0,J.cI)(),n=o.useRef({}),r=o.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:l=>a=>{const d=Ie(l);a?n.current[d]=a:delete n.current[d]}},scrollToField:function(l){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const d=h(l),b=$e(d,r.__INTERNAL__.name),m=b?document.getElementById(b):null;m&&(0,X.Z)(m,Object.assign({scrollMode:"if-needed",block:"nearest"},a))},getFieldInstance:l=>{const a=Ie(l);return n.current[a]}}),[e,t]);return[r]}var Ke=i(67347),Le=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const n=o.useContext(Be.Z),{getPrefixCls:r,direction:l,form:a}=o.useContext(je.E_),{prefixCls:d,className:b,rootClassName:m,size:u,disabled:v=n,form:p,colon:Z,labelAlign:E,labelWrap:R,labelCol:L,wrapperCol:W,hideRequiredMark:F,layout:c="horizontal",scrollToFirstError:y,requiredMark:x,onFinishFailed:C,name:$,style:H,feedbackIcons:V}=e,U=Le(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),z=(0,B.Z)(u),de=o.useContext(Ke.Z),me=(0,o.useMemo)(()=>x!==void 0?x:a&&a.requiredMark!==void 0?a.requiredMark:!F,[F,x,a]),ie=Z!=null?Z:a==null?void 0:a.colon,w=r("form",d),se=(0,oe.Z)(w),[_,ee]=re(w,se),Qe=A()(w,`${w}-${c}`,{[`${w}-hide-required-mark`]:me===!1,[`${w}-rtl`]:l==="rtl",[`${w}-${z}`]:z},se,ee,a==null?void 0:a.className,b,m),[ue]=Re(p),{__INTERNAL__:rt}=ue;rt.name=$;const Fe=(0,o.useMemo)(()=>({name:$,labelAlign:E,labelCol:L,labelWrap:R,wrapperCol:W,vertical:c==="vertical",colon:ie,requiredMark:me,itemRef:rt.itemRef,form:ue,feedbackIcons:V}),[$,E,L,W,c,ie,me,ue,V]);o.useImperativeHandle(t,()=>ue);const De=(te,ne)=>{if(te){let I={block:"nearest"};typeof te=="object"&&(I=te),ue.scrollToField(ne,I)}},dt=te=>{if(C==null||C(te),te.errorFields.length){const ne=te.errorFields[0].name;if(y!==void 0){De(y,ne);return}a&&a.scrollToFirstError!==void 0&&De(a.scrollToFirstError,ne)}};return _(o.createElement(Be.n,{disabled:v},o.createElement(tt.Z.Provider,{value:z},o.createElement(S.RV,{validateMessages:de},o.createElement(S.q3.Provider,{value:Fe},o.createElement(J.ZP,Object.assign({id:$},U,{name:$,onFinishFailed:dt,form:ue,style:Object.assign(Object.assign({},a==null?void 0:a.style),H),className:Qe})))))))};var Ze=o.forwardRef(Te),Ve=i(42291),Ee=i(12602),Q=i(94914),k=i(27970),We=i(13763);function He(e){if(typeof e=="function")return e;const t=(0,We.Z)(e);return t.length<=1?t[0]:t}const ze=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,o.useContext)(S.aM);return{status:e,errors:t,warnings:n}};ze.Context=S.aM;var Ye=ze,qe=i(28449);function nt(e){const[t,n]=o.useState(e),r=(0,o.useRef)(null),l=(0,o.useRef)([]),a=(0,o.useRef)(!1);o.useEffect(()=>(a.current=!1,()=>{a.current=!0,qe.Z.cancel(r.current),r.current=null}),[]);function d(b){a.current||(r.current===null&&(l.current=[],r.current=(0,qe.Z)(()=>{r.current=null,n(m=>{let u=m;return l.current.forEach(v=>{u=v(u)}),u})})),l.current.push(b))}return[t,d]}function $t(){const{itemRef:e}=o.useContext(S.q3),t=o.useRef({});function n(r,l){const a=l&&typeof l=="object"&&l.ref,d=r.join("_");return(t.current.name!==d||t.current.originRef!==a)&&(t.current.name=d,t.current.originRef=a,t.current.ref=(0,Ee.sQ)(e(r),a)),t.current.ref}return n}var St=i(95992),It=i(77189),Et=i(87017),Ft=i(72611),gt=i(50120);const wt=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}};var Ot=(0,g.bk)(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=ce(e,n);return[wt(r)]}),Mt=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:l,errors:a,warnings:d,_internalItemRender:b,extra:m,help:u,fieldId:v,marginBottom:p,onErrorVisibleChanged:Z}=e,E=`${t}-item`,R=o.useContext(S.q3),L=r||R.wrapperCol||{},W=A()(`${E}-control`,L.className),F=o.useMemo(()=>Object.assign({},R),[R]);delete F.labelCol,delete F.wrapperCol;const c=o.createElement("div",{className:`${E}-control-input`},o.createElement("div",{className:`${E}-control-input-content`},l)),y=o.useMemo(()=>({prefixCls:t,status:n}),[t,n]),x=p!==null||a.length||d.length?o.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},o.createElement(S.Rk.Provider,{value:y},o.createElement(xe,{fieldId:v,errors:a,warnings:d,help:u,helpStatus:n,className:`${E}-explain-connected`,onVisibleChanged:Z})),!!p&&o.createElement("div",{style:{width:0,height:p}})):null,C={};v&&(C.id=`${v}_extra`);const $=m?o.createElement("div",Object.assign({},C,{className:`${E}-extra`}),m):null,H=b&&b.mark==="pro_table_render"&&b.render?b.render(e,{input:c,errorList:x,extra:$}):o.createElement(o.Fragment,null,c,x,$);return o.createElement(S.q3.Provider,{value:F},o.createElement(gt.Z,Object.assign({},L,{className:W}),H),o.createElement(Ot,{prefixCls:t}))},Nt=i(38126),Pt=i(948),jt=i(38782),Rt=function(t,n){return o.createElement(jt.Z,(0,Nt.Z)({},t,{ref:n,icon:Pt.Z}))},Lt=o.forwardRef(Rt),Tt=i(59848),Zt=i(45449),Vt=i(32618),Wt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{let{prefixCls:t,label:n,htmlFor:r,labelCol:l,labelAlign:a,colon:d,required:b,requiredMark:m,tooltip:u}=e;var v;const[p]=(0,Zt.Z)("Form"),{vertical:Z,labelAlign:E,labelCol:R,labelWrap:L,colon:W}=o.useContext(S.q3);if(!n)return null;const F=l||R||{},c=a||E,y=`${t}-item-label`,x=A()(y,c==="left"&&`${y}-left`,F.className,{[`${y}-wrap`]:!!L});let C=n;const $=d===!0||W!==!1&&d!==!1;$&&!Z&&typeof n=="string"&&n.trim()!==""&&(C=n.replace(/[:|:]\s*$/,""));const V=Ht(u);if(V){const{icon:me=o.createElement(Lt,null)}=V,ie=Wt(V,["icon"]),w=o.createElement(Vt.Z,Object.assign({},ie),o.cloneElement(me,{className:`${t}-item-tooltip`,title:"",onClick:se=>{se.preventDefault()},tabIndex:null}));C=o.createElement(o.Fragment,null,C,w)}const U=m==="optional",z=typeof m=="function";z?C=m(C,{required:!!b}):U&&!b&&(C=o.createElement(o.Fragment,null,C,o.createElement("span",{className:`${t}-item-optional`,title:""},(p==null?void 0:p.optional)||((v=Tt.Z.Form)===null||v===void 0?void 0:v.optional))));const de=A()({[`${t}-item-required`]:b,[`${t}-item-required-mark-optional`]:U||z,[`${t}-item-no-colon`]:!$});return o.createElement(gt.Z,Object.assign({},F,{className:x}),o.createElement("label",{htmlFor:r,className:de,title:typeof n=="string"?n:""},C))},Dt=i(71349),At=i(67536),Bt=i(39388),Xt=i(58516);const Kt={success:Dt.Z,warning:Bt.Z,error:At.Z,validating:Xt.Z};function ht(e){let{children:t,errors:n,warnings:r,hasFeedback:l,validateStatus:a,prefixCls:d,meta:b,noStyle:m}=e;const u=`${d}-item`,{feedbackIcons:v}=o.useContext(S.q3),p=Se(n,r,b,null,!!l,a),{isFormItemInput:Z,status:E,hasFeedback:R,feedbackIcon:L}=o.useContext(S.aM),W=o.useMemo(()=>{var F;let c;if(l){const x=l!==!0&&l.icons||v,C=p&&((F=x==null?void 0:x({status:p,errors:n,warnings:r}))===null||F===void 0?void 0:F[p]),$=p&&Kt[p];c=C!==!1&&$?o.createElement("span",{className:A()(`${u}-feedback-icon`,`${u}-feedback-icon-${p}`)},C||o.createElement($,null)):null}const y={status:p||"",errors:n,warnings:r,hasFeedback:!!l,feedbackIcon:c,isFormItemInput:!0};return m&&(y.status=(p!=null?p:E)||"",y.isFormItemInput=Z,y.hasFeedback=!!(l!=null?l:R),y.feedbackIcon=l!==void 0?y.feedbackIcon:L),y},[p,l,m,Z,E]);return o.createElement(S.aM.Provider,{value:W},t)}var Gt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{if(V&&x.current){const _=getComputedStyle(x.current);de(parseInt(_.marginBottom,10))}},[V,U]);const me=_=>{_||de(null)},w=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ee=_?C:u.errors,Qe=_?$:u.warnings;return Se(ee,Qe,u,"",!!v,m)}(),se=A()(c,n,r,{[`${c}-with-help`]:H||C.length||$.length,[`${c}-has-feedback`]:w&&v,[`${c}-has-success`]:w==="success",[`${c}-has-warning`]:w==="warning",[`${c}-has-error`]:w==="error",[`${c}-is-validating`]:w==="validating",[`${c}-hidden`]:p});return o.createElement("div",{className:se,style:l,ref:x},o.createElement(Ft.Z,Object.assign({className:`${c}-row`},(0,Et.Z)(F,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(zt,Object.assign({htmlFor:E},e,{requiredMark:y,required:R!=null?R:L,prefixCls:t})),o.createElement(Mt,Object.assign({},e,u,{errors:C,warnings:$,prefixCls:t,status:w,help:a,marginBottom:z,onErrorVisibleChanged:me}),o.createElement(S.qI.Provider,{value:W},o.createElement(ht,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:v,validateStatus:w},Z)))),!!z&&o.createElement("div",{className:`${c}-margin-offset`,style:{marginBottom:-z}}))}const qt="__SPLIT__",ln=null,Qt=o.memo(e=>{let{children:t}=e;return t},(e,t)=>e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function pt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ut(e){const{name:t,noStyle:n,className:r,dependencies:l,prefixCls:a,shouldUpdate:d,rules:b,children:m,required:u,label:v,messageVariables:p,trigger:Z="onChange",validateTrigger:E,hidden:R,help:L}=e,{getPrefixCls:W}=o.useContext(je.E_),{name:F}=o.useContext(S.q3),c=He(m),y=typeof c=="function",x=o.useContext(S.qI),{validateTrigger:C}=o.useContext(J.zb),$=E!==void 0?E:C,H=t!=null,V=W("form",a),U=(0,oe.Z)(V),[z,de]=re(V,U),me=(0,k.ln)("Form.Item"),ie=o.useContext(J.ZM),w=o.useRef(),[se,_]=nt({}),[ee,Qe]=(0,Ve.Z)(()=>pt()),ue=I=>{const K=ie==null?void 0:ie.getKey(I.name);if(Qe(I.destroy?pt():I,!0),n&&L!==!1&&x){let D=I.name;if(I.destroy)D=w.current||D;else if(K!==void 0){const[fe,we]=K;D=[fe].concat((0,N.Z)(we)),w.current=D}x(I,D)}},rt=(I,K)=>{_(D=>{const fe=Object.assign({},D),Ue=[].concat((0,N.Z)(I.name.slice(0,-1)),(0,N.Z)(K)).join(qt);return I.destroy?delete fe[Ue]:fe[Ue]=I,fe})},[Fe,De]=o.useMemo(()=>{const I=(0,N.Z)(ee.errors),K=(0,N.Z)(ee.warnings);return Object.values(se).forEach(D=>{I.push.apply(I,(0,N.Z)(D.errors||[])),K.push.apply(K,(0,N.Z)(D.warnings||[]))}),[I,K]},[se,ee.errors,ee.warnings]),dt=$t();function te(I,K,D){return n&&!R?o.createElement(ht,{prefixCls:V,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:ee,errors:Fe,warnings:De,noStyle:!0},I):o.createElement(Yt,Object.assign({key:"row"},e,{className:A()(r,U,de),prefixCls:V,fieldId:K,isRequired:D,errors:Fe,warnings:De,meta:ee,onSubItemMetaChange:rt}),I)}if(!H&&!y&&!l)return z(te(c));let ne={};return typeof v=="string"?ne.label=v:t&&(ne.label=String(t)),p&&(ne=Object.assign(Object.assign({},ne),p)),z(o.createElement(J.gN,Object.assign({},e,{messageVariables:ne,trigger:Z,validateTrigger:$,onMetaChange:ue}),(I,K,D)=>{const fe=h(t).length&&K?K.name:[],we=$e(fe,F),Ue=u!==void 0?u:!!(b&&b.some(T=>{if(T&&typeof T=="object"&&T.required&&!T.warningOnly)return!0;if(typeof T=="function"){const lt=T(D);return lt&<.required&&!lt.warningOnly}return!1})),ot=Object.assign({},I);let Je=null;if(Array.isArray(c)&&H)Je=c;else if(!(y&&(!(d||l)||H))){if(!(l&&!y&&!H))if((0,Q.l$)(c)){const T=Object.assign(Object.assign({},c.props),ot);if(T.id||(T.id=we),L||Fe.length>0||De.length>0||e.extra){const Oe=[];(L||Fe.length>0)&&Oe.push(`${we}_help`),e.extra&&Oe.push(`${we}_extra`),T["aria-describedby"]=Oe.join(" ")}Fe.length>0&&(T["aria-invalid"]="true"),Ue&&(T["aria-required"]="true"),(0,Ee.Yr)(c)&&(T.ref=dt(fe,c)),new Set([].concat((0,N.Z)(h(Z)),(0,N.Z)(h($)))).forEach(Oe=>{T[Oe]=function(){for(var vt,yt,mt,Ct,ut,xt=arguments.length,ft=new Array(xt),at=0;at{var{prefixCls:t,children:n}=e,r=kt(e,["prefixCls","children"]);const{getPrefixCls:l}=o.useContext(je.E_),a=l("form",t),d=o.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return o.createElement(J.aV,Object.assign({},r),(b,m,u)=>o.createElement(S.Rk.Provider,{value:d},n(b.map(v=>Object.assign(Object.assign({},v),{fieldKey:v.key})),m,{errors:u.errors,warnings:u.warnings})))};function en(){const{form:e}=(0,o.useContext)(S.q3);return e}const ae=Ze;ae.Item=Jt,ae.List=_t,ae.ErrorList=xe,ae.useForm=Re,ae.useFormInstance=en,ae.useWatch=J.qo,ae.Provider=S.RV,ae.create=()=>{};var tn=ae},23870:function(it,ge,i){var N=i(72611);ge.Z=N.Z},10886:function(it,ge,i){i.d(ge,{Z:function(){return Me}});const N=s=>typeof s=="object"&&s!=null&&s.nodeType===1,ke=(s,f)=>(!f||s!=="hidden")&&s!=="visible"&&s!=="clip",A=(s,f)=>{if(s.clientHeight{const O=(g=>{if(!g.ownerDocument||!g.ownerDocument.defaultView)return null;try{return g.ownerDocument.defaultView.frameElement}catch(q){return null}})(G);return!!O&&(O.clientHeightgf||g>s&&q=f&&j>=P?g-s-G:q>f&&jP?q-f+O:0,o=s=>{const f=s.parentElement;return f==null?s.getRootNode().host||null:f},Ae=(s,f)=>{var P,G,O,g;if(typeof document=="undefined")return[];const{scrollMode:q,block:j,inline:Y,boundary:Ne,skipOverflowHiddenElements:st}=f,ct=typeof Ne=="function"?Ne:le=>le!==Ne;if(!N(s))throw new TypeError("Invalid target");const _e=document.scrollingElement||document.documentElement,Pe=[];let M=s;for(;N(M)&&ct(M);){if(M=o(M),M===_e){Pe.push(M);break}M!=null&&M===document.body&&A(M)&&!A(document.documentElement)||M!=null&&A(M,st)&&Pe.push(M)}const pe=(G=(P=window.visualViewport)==null?void 0:P.width)!=null?G:innerWidth,be=(g=(O=window.visualViewport)==null?void 0:O.height)!=null?g:innerHeight,{scrollX:ve,scrollY:ce}=window,{height:re,width:oe,top:ye,right:Ce,bottom:et,left:xe}=s.getBoundingClientRect(),{top:J,right:je,bottom:Be,left:tt}=(le=>{const h=window.getComputedStyle(le);return{top:parseFloat(h.scrollMarginTop)||0,right:parseFloat(h.scrollMarginRight)||0,bottom:parseFloat(h.scrollMarginBottom)||0,left:parseFloat(h.scrollMarginLeft)||0}})(s);let B=j==="start"||j==="nearest"?ye-J:j==="end"?et+Be:ye+re/2-J+Be,X=Y==="center"?xe+oe/2-tt+je:Y==="end"?Ce+je:xe-tt;const Xe=[];for(let le=0;le=0&&xe>=0&&et<=be&&Ce<=pe&&ye>=Ie&&et<=Ke&&xe>=Le&&Ce<=Re)return Xe;const Te=getComputedStyle(h),Ge=parseInt(Te.borderLeftWidth,10),Ze=parseInt(Te.borderTopWidth,10),Ve=parseInt(Te.borderRightWidth,10),Ee=parseInt(Te.borderBottomWidth,10);let Q=0,k=0;const We="offsetWidth"in h?h.offsetWidth-h.clientWidth-Ge-Ve:0,He="offsetHeight"in h?h.offsetHeight-h.clientHeight-Ze-Ee:0,ze="offsetWidth"in h?h.offsetWidth===0?0:Se/h.offsetWidth:0,Ye="offsetHeight"in h?h.offsetHeight===0?0:$e/h.offsetHeight:0;if(_e===h)Q=j==="start"?B:j==="end"?B-be:j==="nearest"?he(ce,ce+be,be,Ze,Ee,ce+B,ce+B+re,re):B-be/2,k=Y==="start"?X:Y==="center"?X-pe/2:Y==="end"?X-pe:he(ve,ve+pe,pe,Ge,Ve,ve+X,ve+X+oe,oe),Q=Math.max(0,Q+ce),k=Math.max(0,k+ve);else{Q=j==="start"?B-Ie-Ze:j==="end"?B-Ke+Ee+He:j==="nearest"?he(Ie,Ke,$e,Ze,Ee+He,B,B+re,re):B-(Ie+$e/2)+He/2,k=Y==="start"?X-Le-Ge:Y==="center"?X-(Le+Se/2)+We/2:Y==="end"?X-Re+Ve+We:he(Le,Re,Se,Ge,Ve+We,X,X+oe,oe);const{scrollLeft:qe,scrollTop:nt}=h;Q=Ye===0?0:Math.max(0,Math.min(nt+Q/Ye,h.scrollHeight-$e/Ye+He)),k=ze===0?0:Math.max(0,Math.min(qe+k/ze,h.scrollWidth-Se/ze+We)),B+=nt-Q,X+=qe-k}Xe.push({el:h,top:Q,left:k})}return Xe},S=s=>s===!1?{block:"end",inline:"nearest"}:(f=>f===Object(f)&&Object.keys(f).length!==0)(s)?s:{block:"start",inline:"nearest"};function Me(s,f){if(!s.isConnected||!(O=>{let g=O;for(;g&&g.parentNode;){if(g.parentNode===document)return!0;g=g.parentNode instanceof ShadowRoot?g.parentNode.host:g.parentNode}return!1})(s))return;const P=(O=>{const g=window.getComputedStyle(O);return{top:parseFloat(g.scrollMarginTop)||0,right:parseFloat(g.scrollMarginRight)||0,bottom:parseFloat(g.scrollMarginBottom)||0,left:parseFloat(g.scrollMarginLeft)||0}})(s);if((O=>typeof O=="object"&&typeof O.behavior=="function")(f))return f.behavior(Ae(s,f));const G=typeof f=="boolean"||f==null?void 0:f.behavior;for(const{el:O,top:g,left:q}of Ae(s,S(f))){const j=g-P.top+P.bottom,Y=q-P.left+P.right;O.scroll({top:j,left:Y,behavior:G})}}}}]); diff --git a/8178.f567e559.async.js b/8178.f567e559.async.js new file mode 100644 index 00000000..4116fbdd --- /dev/null +++ b/8178.f567e559.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8178],{88178:function(T,P,O){var M,v;(function(n,m){M=m,v=typeof M=="function"?M.call(P,O,P,T):M,v!==void 0&&(T.exports=v)})(this,function(){var n,m,L="2.0.6",g={},N={},y={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},c={currentLocale:y.currentLocale,zeroFormat:y.zeroFormat,nullFormat:y.nullFormat,defaultFormat:y.defaultFormat,scalePercentBy100:y.scalePercentBy100};function E(e,r){this._input=e,this._value=r}return n=function(e){var r,l,i,t;if(n.isNumeral(e))r=e.value();else if(e===0||typeof e=="undefined")r=0;else if(e===null||m.isNaN(e))r=null;else if(typeof e=="string")if(c.zeroFormat&&e===c.zeroFormat)r=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(l in g)if(t=typeof g[l].regexps.unformat=="function"?g[l].regexps.unformat():g[l].regexps.unformat,t&&e.match(t)){i=g[l].unformat;break}i=i||n._.stringToNumber,r=i(e)}else r=Number(e)||null;return new E(e,r)},n.version=L,n.isNumeral=function(e){return e instanceof E},n._=m={numberToFormat:function(e,r,l){var i=N[n.options.currentLocale],t=!1,o=!1,a=0,u="",f=1e12,s=1e9,h=1e6,w=1e3,d="",B=!1,p,x,z,R,A,b,_,k,S,F;if(e=e||0,x=Math.abs(e),n._.includes(r,"(")?(t=!0,r=r.replace(/[\(|\)]/g,"")):(n._.includes(r,"+")||n._.includes(r,"-"))&&(k=n._.includes(r,"+")?r.indexOf("+"):e<0?r.indexOf("-"):-1,r=r.replace(/[\+|\-]/g,"")),n._.includes(r,"a")&&(p=r.match(/a(k|m|b|t)?/),p=p?p[1]:!1,n._.includes(r," a")&&(u=" "),r=r.replace(new RegExp(u+"a[kmbt]?"),""),x>=f&&!p||p==="t"?(u+=i.abbreviations.trillion,e=e/f):x=s&&!p||p==="b"?(u+=i.abbreviations.billion,e=e/s):x=h&&!p||p==="m"?(u+=i.abbreviations.million,e=e/h):(x=w&&!p||p==="k")&&(u+=i.abbreviations.thousand,e=e/w)),n._.includes(r,"[.]")&&(o=!0,r=r.replace("[.]",".")),b=e.toString().split(".")[0],_=r.split(".")[1],S=r.indexOf(","),a=(r.split(".")[0].split(",")[0].match(/0/g)||[]).length,_?(n._.includes(_,"[")?(_=_.replace("]",""),_=_.split("["),d=n._.toFixed(e,_[0].length+_[1].length,l,_[1].length)):d=n._.toFixed(e,_.length,l),b=d.split(".")[0],n._.includes(d,".")?d=i.delimiters.decimal+d.split(".")[1]:d="",o&&Number(d.slice(1))===0&&(d="")):b=n._.toFixed(e,0,l),u&&!p&&Number(b)>=1e3&&u!==i.abbreviations.trillion)switch(b=String(Number(b)/1e3),u){case i.abbreviations.thousand:u=i.abbreviations.million;break;case i.abbreviations.million:u=i.abbreviations.billion;break;case i.abbreviations.billion:u=i.abbreviations.trillion;break}if(n._.includes(b,"-")&&(b=b.slice(1),B=!0),b.length0;$--)b="0"+b;return S>-1&&(b=b.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i.delimiters.thousands)),r.indexOf(".")===0&&(b=""),F=b+d+(u||""),t?F=(t&&B?"(":"")+F+(t&&B?")":""):k>=0?F=k===0?(B?"-":"+")+F:F+(B?"-":"+"):B&&(F="-"+F),F},stringToNumber:function(e){var r=N[c.currentLocale],l=e,i={thousand:3,million:6,billion:9,trillion:12},t,o,a,u;if(c.zeroFormat&&e===c.zeroFormat)o=0;else if(c.nullFormat&&e===c.nullFormat||!e.replace(/[^0-9]+/g,"").length)o=null;else{o=1,r.delimiters.decimal!=="."&&(e=e.replace(/\./g,"").replace(r.delimiters.decimal,"."));for(t in i)if(u=new RegExp("[^a-zA-Z]"+r.abbreviations[t]+"(?:\\)|(\\"+r.currency.symbol+")?(?:\\))?)?$"),l.match(u)){o*=Math.pow(10,i[t]);break}o*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),o*=Number(e)}return o},isNaN:function(e){return typeof e=="number"&&isNaN(e)},includes:function(e,r){return e.indexOf(r)!==-1},insert:function(e,r,l){return e.slice(0,l)+r+e.slice(l)},reduce:function(e,r){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof r!="function")throw new TypeError(r+" is not a function");var l=Object(e),i=l.length>>>0,t=0,o;if(arguments.length===3)o=arguments[2];else{for(;t=i)throw new TypeError("Reduce of empty array with no initial value");o=l[t++]}for(;ti?r:i},1)},toFixed:function(e,r,l,i){var t=e.toString().split("."),o=r-(i||0),a,u,f,s;return t.length===2?a=Math.min(Math.max(t[1].length,o),r):a=o,f=Math.pow(10,a),s=(l(e+"e+"+a)/f).toFixed(a),i>r-a&&(u=new RegExp("\\.?0{1,"+(i-(r-a))+"}$"),s=s.replace(u,"")),s}},n.options=c,n.formats=g,n.locales=N,n.locale=function(e){return e&&(c.currentLocale=e.toLowerCase()),c.currentLocale},n.localeData=function(e){if(!e)return N[c.currentLocale];if(e=e.toLowerCase(),!N[e])throw new Error("Unknown locale : "+e);return N[e]},n.reset=function(){for(var e in y)c[e]=y[e]},n.zeroFormat=function(e){c.zeroFormat=typeof e=="string"?e:null},n.nullFormat=function(e){c.nullFormat=typeof e=="string"?e:null},n.defaultFormat=function(e){c.defaultFormat=typeof e=="string"?e:"0.0"},n.register=function(e,r,l){if(r=r.toLowerCase(),this[e+"s"][r])throw new TypeError(r+" "+e+" already registered.");return this[e+"s"][r]=l,l},n.validate=function(e,r){var l,i,t,o,a,u,f,s;if(typeof e!="string"&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(e==="")return!1;try{f=n.localeData(r)}catch(h){f=n.localeData(n.locale())}return t=f.currency.symbol,a=f.abbreviations,l=f.delimiters.decimal,f.delimiters.thousands==="."?i="\\.":i=f.delimiters.thousands,s=e.match(/^[^\d]+/),s!==null&&(e=e.substr(1),s[0]!==t)||(s=e.match(/[^\d]+$/),s!==null&&(e=e.slice(0,-1),s[0]!==a.thousand&&s[0]!==a.million&&s[0]!==a.billion&&s[0]!==a.trillion))?!1:(u=new RegExp(i+"{2}"),e.match(/[^\d.,]/g)?!1:(o=e.split(l),o.length>2?!1:o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u):o[0].length===1?!!o[0].match(/^\d+$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(u)&&!!o[1].match(/^\d+$/)))},n.fn=E.prototype={clone:function(){return n(this)},format:function(e,r){var l=this._value,i=e||c.defaultFormat,t,o,a;if(r=r||Math.round,l===0&&c.zeroFormat!==null)o=c.zeroFormat;else if(l===null&&c.nullFormat!==null)o=c.nullFormat;else{for(t in g)if(i.match(g[t].regexps.format)){a=g[t].format;break}a=a||n._.numberToFormat,o=a(l,i,r)}return o},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i+Math.round(r*t)}return this._value=m.reduce([this._value,e],l,0)/r,this},subtract:function(e){var r=m.correctionFactor.call(null,this._value,e);function l(i,t,o,a){return i-Math.round(r*t)}return this._value=m.reduce([e],l,Math.round(this._value*r))/r,this},multiply:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)*Math.round(i*a)/Math.round(a*a)}return this._value=m.reduce([this._value,e],r,1),this},divide:function(e){function r(l,i,t,o){var a=m.correctionFactor(l,i);return Math.round(l*a)/Math.round(i*a)}return this._value=m.reduce([this._value,e],r),this},difference:function(e){return Math.abs(n(this._value).subtract(e).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var r=e%10;return~~(e%100/10)===1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th"},currency:{symbol:"$"}}),function(){n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,r,l){var i=n._.includes(r," BPS")?" ":"",t;return e=e*1e4,r=r.replace(/\s?BPS/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"BPS"),t=t.join("")):t=t+i+"BPS",t},unformat:function(e){return+(n._.stringToNumber(e)*1e-4).toFixed(15)}})}(),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},l=e.suffixes.concat(r.suffixes.filter(function(t){return e.suffixes.indexOf(t)<0})),i=l.join("|");i="("+i.replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,o,a){var u,f=n._.includes(o,"ib")?r:e,s=n._.includes(o," b")||n._.includes(o," ib")?" ":"",h,w,d;for(o=o.replace(/\s?i?b/,""),h=0;h<=f.suffixes.length;h++)if(w=Math.pow(f.base,h),d=Math.pow(f.base,h+1),t===null||t===0||t>=w&&t0&&(t=t/w);break}return u=n._.numberToFormat(t,o,a),u+s},unformat:function(t){var o=n._.stringToNumber(t),a,u;if(o){for(a=e.suffixes.length-1;a>=0;a--){if(n._.includes(t,e.suffixes[a])){u=Math.pow(e.base,a);break}if(n._.includes(t,r.suffixes[a])){u=Math.pow(r.base,a);break}}o*=u||1}return o}})}(),function(){n.register("format","currency",{regexps:{format:/(\$)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t={before:r.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:r.match(/([\+|\-|\)|\s|\$]*)$/)[0]},o,a,u;for(r=r.replace(/\s?\$\s?/,""),o=n._.numberToFormat(e,r,l),e>=0?(t.before=t.before.replace(/[\-\(]/,""),t.after=t.after.replace(/[\-\)]/,"")):e<0&&!n._.includes(t.before,"-")&&!n._.includes(t.before,"(")&&(t.before="-"+t.before),u=0;u=0;u--)switch(a=t.after[u],a){case"$":o=u===t.after.length-1?o+i.currency.symbol:n._.insert(o,i.currency.symbol,-(t.after.length-(1+u)));break;case" ":o=u===t.after.length-1?o+" ":n._.insert(o," ",-(t.after.length-(1+u)+i.currency.symbol.length-1));break}return o}})}(),function(){n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,r,l){var i,t=typeof e=="number"&&!n._.isNaN(e)?e.toExponential():"0e+0",o=t.split("e");return r=r.replace(/e[\+|\-]{1}0/,""),i=n._.numberToFormat(Number(o[0]),r,l),i+"e"+o[1]},unformat:function(e){var r=n._.includes(e,"e+")?e.split("e+"):e.split("e-"),l=Number(r[0]),i=Number(r[1]);i=n._.includes(e,"e-")?i*=-1:i;function t(o,a,u,f){var s=n._.correctionFactor(o,a),h=o*s*(a*s)/(s*s);return h}return n._.reduce([l,Math.pow(10,i)],t,1)}})}(),function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,r,l){var i=n.locales[n.options.currentLocale],t,o=n._.includes(r," o")?" ":"";return r=r.replace(/\s?o/,""),o+=i.ordinal(e),t=n._.numberToFormat(e,r,l),t+o}})}(),function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,r,l){var i=n._.includes(r," %")?" ":"",t;return n.options.scalePercentBy100&&(e=e*100),r=r.replace(/\s?\%/,""),t=n._.numberToFormat(e,r,l),n._.includes(t,")")?(t=t.split(""),t.splice(-1,0,i+"%"),t=t.join("")):t=t+i+"%",t},unformat:function(e){var r=n._.stringToNumber(e);return n.options.scalePercentBy100?r*.01:r}})}(),function(){n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,r,l){var i=Math.floor(e/60/60),t=Math.floor((e-i*60*60)/60),o=Math.round(e-i*60*60-t*60);return i+":"+(t<10?"0"+t:t)+":"+(o<10?"0"+o:o)},unformat:function(e){var r=e.split(":"),l=0;return r.length===3?(l=l+Number(r[0])*60*60,l=l+Number(r[1])*60,l=l+Number(r[2])):r.length===2&&(l=l+Number(r[0])*60,l=l+Number(r[1])),Number(l)}})}(),n})}}]); diff --git a/825.684eec4b.async.js b/825.684eec4b.async.js deleted file mode 100644 index fdb99224..00000000 --- a/825.684eec4b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[825],{9455:function(De,U){var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};U.Z=e},43997:function(De,U,e){e.d(U,{A:function(){return t}});var p=e(33346),i=e(67190),P=e(50959),T=e(1704),te=e(58922),L=e(73273),K=e(32682),re=e(25671),ve=e(65589),me=e(21804),Q=e(56197),X=e(75200),J=e(84875),oe=e.n(J),fe=e(54970),W=e(21510),w=e(26488),A=function(h){var Z;return(0,L.Z)({},h.componentCls,{"&-title":{marginBlockEnd:h.marginXL,fontWeight:"bold"},"&-container":(0,L.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(h.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(Z={display:"block",width:"100%"},(0,L.Z)(Z,"".concat(h.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,L.Z)(Z,"".concat(h.componentCls,"-container"),{paddingInlineStart:16}),(0,L.Z)(Z,"".concat(h.antCls,"-space-item,").concat(h.antCls,"-form-item"),{width:"100%"}),(0,L.Z)(Z,"".concat(h.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),Z)})};function R(m){return(0,w.Xj)("ProFormGroup",function(h){var Z=(0,p.Z)((0,p.Z)({},h),{},{componentCls:".".concat(m)});return[A(Z)]})}var u=e(11527),k=P.forwardRef(function(m,h){var Z=P.useContext(fe.Z),s=Z.groupProps,d=(0,p.Z)((0,p.Z)({},s),m),se=d.children,_=d.collapsible,b=d.defaultCollapsed,Le=d.style,We=d.labelLayout,Ze=d.title,ee=Ze===void 0?m.label:Ze,ye=d.tooltip,ae=d.align,Ce=ae===void 0?"start":ae,ie=d.direction,l=d.size,v=l===void 0?32:l,n=d.titleStyle,x=d.titleRender,c=d.spaceProps,z=d.extra,D=d.autoFocus,ne=(0,ve.Z)(function(){return b||!1},{value:m.collapsed,onChange:m.onCollapse}),Se=(0,K.Z)(ne,2),o=Se[0],y=Se[1],E=(0,P.useContext)(Q.ZP.ConfigContext),V=E.getPrefixCls,C=(0,W.zx)(m),$=C.ColWrapper,le=C.RowWrapper,S=V("pro-form-group"),Fe=R(S),Ae=Fe.wrapSSR,B=Fe.hashId,Pe=_&&(0,u.jsx)(re.Z,{style:{marginInlineEnd:8},rotate:o?void 0:90}),ue=(0,u.jsx)(me.G,{label:Pe?(0,u.jsxs)("div",{children:[Pe,ee]}):ee,tooltip:ye}),O=(0,P.useCallback)(function(H){var Y=H.children;return(0,u.jsx)(X.Z,(0,p.Z)((0,p.Z)({},c),{},{className:oe()("".concat(S,"-container ").concat(B),c==null?void 0:c.className),size:v,align:Ce,direction:ie,style:(0,p.Z)({rowGap:0},c==null?void 0:c.style),children:Y}))},[Ce,S,ie,B,v,c]),N=x?x(ue,m):ue,$e=(0,P.useMemo)(function(){var H=[],Y=P.Children.toArray(se).map(function(M,ce){var G;return P.isValidElement(M)&&M!==null&&M!==void 0&&(G=M.props)!==null&&G!==void 0&&G.hidden?(H.push(M),null):ce===0&&P.isValidElement(M)&&D?P.cloneElement(M,(0,p.Z)((0,p.Z)({},M.props),{},{autoFocus:D})):M});return[(0,u.jsx)(le,{Wrapper:O,children:Y},"children"),H.length>0?(0,u.jsx)("div",{style:{display:"none"},children:H}):null]},[se,le,O,D]),he=(0,K.Z)($e,2),j=he[0],Re=he[1];return Ae((0,u.jsx)($,{children:(0,u.jsxs)("div",{className:oe()(S,B,(0,L.Z)({},"".concat(S,"-twoLine"),We==="twoLine")),style:Le,ref:h,children:[Re,(ee||ye||z)&&(0,u.jsx)("div",{className:"".concat(S,"-title ").concat(B).trim(),style:n,onClick:function(){y(!o)},children:z?(0,u.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[N,(0,u.jsx)("span",{onClick:function(Y){return Y.stopPropagation()},children:z})]}):N}),(0,u.jsx)("div",{style:{display:_&&o?"none":void 0},children:j})]})}))});k.displayName="ProForm-Group";var q=k,pe=e(75693);function t(m){return(0,u.jsx)(T.I,(0,p.Z)({layout:"vertical",submitter:{render:function(Z,s){return s.reverse()}},contentRender:function(Z,s){return(0,u.jsxs)(u.Fragment,{children:[Z,s]})}},m))}t.Group=q,t.useForm=i.Z.useForm,t.Item=pe.Z,t.useWatch=i.Z.useWatch,t.ErrorList=i.Z.ErrorList,t.Provider=i.Z.Provider,t.useFormInstance=i.Z.useFormInstance,t.EditOrReadOnlyContext=te.A},76791:function(De,U,e){e.d(U,{U9:function(){return ae},L0:function(){return ie},bg:function(){return ee}});var p=e(73273),i=e(33346),P=e(3224),T=e(47801),te=e(1788),L=e(32682),K=e(10570),re=e(17122),ve=e(94204),me=e(11175),Q=e(13165),X=e(23870),J=e(82099),oe=e(56197),fe=e(63945),W=e(27575),w=e(47100),A=e(75200),R=e(67190),u=e(84875),k=e.n(u),q=e(13763),pe=e(65589),t=e(50959),m=e(71770),h=e(12868),Z=e(1704),s=e(11527),d=["onFinish","step","formRef","title","stepProps"];function se(l){var v=(0,t.useRef)(),n=(0,t.useContext)(ee),x=(0,t.useContext)(ae),c=(0,i.Z)((0,i.Z)({},l),x),z=c.onFinish,D=c.step,ne=c.formRef,Se=c.title,o=c.stepProps,y=(0,K.Z)(c,d);return(0,h.ET)(!y.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,t.useImperativeHandle)(ne,function(){return v.current},[ne==null?void 0:ne.current]),(0,t.useEffect)(function(){if(c.name||c.step){var E=(c.name||c.step).toString();return n==null||n.regForm(E,c),function(){n==null||n.unRegForm(E)}}},[]),n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[D||0]=v),(0,s.jsx)(Z.I,(0,i.Z)({formRef:v,onFinish:function(){var E=(0,T.Z)((0,P.Z)().mark(function V(C){var $;return(0,P.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(y.name&&(n==null||n.onFormFinish(y.name,C)),!z){S.next=9;break}return n==null||n.setLoading(!0),S.next=5,z==null?void 0:z(C);case 5:return $=S.sent,$&&(n==null||n.next()),n==null||n.setLoading(!1),S.abrupt("return");case 9:n!=null&&n.lastStep||n==null||n.next();case 10:case"end":return S.stop()}},V)}));return function(V){return E.apply(this,arguments)}}(),onInit:function(V,C){var $;v.current=C,n&&n!==null&&n!==void 0&&n.formArrayRef&&(n.formArrayRef.current[D||0]=v),y==null||($=y.onInit)===null||$===void 0||$.call(y,V,C)},layout:"vertical"},(0,m.Z)(y,["layoutType","columns"])))}var _=se,b=e(26488),Le=function(v){return(0,p.Z)({},v.componentCls,{"&-container":{width:"max-content",minWidth:"420px",maxWidth:"100%",margin:"auto"},"&-steps-container":(0,p.Z)({maxWidth:"1160px",margin:"auto"},"".concat(v.antCls,"-steps-vertical"),{height:"100%"}),"&-step":{display:"none",marginBlockStart:"32px","&-active":{display:"block"},"> form":{maxWidth:"100%"}}})};function We(l){return(0,b.Xj)("StepsForm",function(v){var n=(0,i.Z)((0,i.Z)({},v),{},{componentCls:".".concat(l)});return[Le(n)]})}var Ze=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef","layoutRender"],ee=t.createContext(void 0),ye={horizontal:function(v){var n=v.stepsDom,x=v.formDom;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X.Z,{gutter:{xs:8,sm:16,md:24},children:(0,s.jsx)(J.Z,{span:24,children:n})}),(0,s.jsx)(X.Z,{gutter:{xs:8,sm:16,md:24},children:(0,s.jsx)(J.Z,{span:24,children:x})})]})},vertical:function(v){var n=v.stepsDom,x=v.formDom;return(0,s.jsxs)(X.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,s.jsx)(J.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:t.cloneElement(n,{style:{height:"100%"}})}),(0,s.jsx)(J.Z,{children:(0,s.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:x})})]})}},ae=t.createContext(null);function Ce(l){var v=(0,t.useContext)(oe.ZP.ConfigContext),n=v.getPrefixCls,x=n("pro-steps-form"),c=We(x),z=c.wrapSSR,D=c.hashId,ne=l.current,Se=l.onCurrentChange,o=l.submitter,y=l.stepsFormRender,E=l.stepsRender,V=l.stepFormRender,C=l.stepsProps,$=l.onFinish,le=l.formProps,S=l.containerStyle,Fe=l.formRef,Ae=l.formMapRef,B=l.layoutRender,Pe=(0,K.Z)(l,Ze),ue=(0,t.useRef)(new Map),O=(0,t.useRef)(new Map),N=(0,t.useRef)([]),$e=(0,t.useState)([]),he=(0,L.Z)($e,2),j=he[0],Re=he[1],H=(0,t.useState)(!1),Y=(0,L.Z)(H,2),M=Y[0],ce=Y[1],G=(0,re.YB)(),Je=(0,pe.Z)(0,{value:l.current,onChange:l.onCurrentChange}),be=(0,L.Z)(Je,2),F=be[0],je=be[1],Ee=(0,t.useMemo)(function(){return ye[(C==null?void 0:C.direction)||"horizontal"]},[C==null?void 0:C.direction]),Ne=(0,t.useMemo)(function(){return F===j.length-1},[j.length,F]),Ye=(0,t.useCallback)(function(r,a){O.current.has(r)||Re(function(g){return[].concat((0,te.Z)(g),[r])}),O.current.set(r,a)},[]),Ue=(0,t.useCallback)(function(r){Re(function(a){return a.filter(function(g){return g!==r})}),O.current.delete(r),ue.current.delete(r)},[]);(0,t.useImperativeHandle)(Ae,function(){return N.current},[N.current]),(0,t.useImperativeHandle)(Fe,function(){var r;return(r=N.current[F||0])===null||r===void 0?void 0:r.current},[F,N.current]);var Ke=(0,t.useCallback)(function(){var r=(0,T.Z)((0,P.Z)().mark(function a(g,f){var xe,Ie;return(0,P.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(ue.current.set(g,f),!(!Ne||!$)){I.next=3;break}return I.abrupt("return");case 3:return ce(!0),xe=ve.T.apply(void 0,[{}].concat((0,te.Z)(Array.from(ue.current.values())))),I.prev=5,I.next=8,$(xe);case 8:Ie=I.sent,Ie&&(je(0),N.current.forEach(function(ke){var Ge;return(Ge=ke.current)===null||Ge===void 0?void 0:Ge.resetFields()})),I.next=15;break;case 12:I.prev=12,I.t0=I.catch(5),console.log(I.t0);case 15:return I.prev=15,ce(!1),I.finish(15);case 18:case"end":return I.stop()}},a,null,[[5,12,15,18]])}));return function(a,g){return r.apply(this,arguments)}}(),[Ne,$,ce,je]),Te=(0,t.useMemo)(function(){var r=(0,me.n)(fe.Z,"4.24.0")>-1,a=r?{items:j.map(function(g){var f=O.current.get(g);return(0,i.Z)({key:g,title:f==null?void 0:f.title},f==null?void 0:f.stepProps)})}:{};return(0,s.jsx)("div",{className:"".concat(x,"-steps-container ").concat(D).trim(),style:{maxWidth:Math.min(j.length*320,1160)},children:(0,s.jsx)(W.Z,(0,i.Z)((0,i.Z)((0,i.Z)({},C),a),{},{current:F,onChange:void 0,children:!r&&j.map(function(g){var f=O.current.get(g);return(0,s.jsx)(W.Z.Step,(0,i.Z)({title:f==null?void 0:f.title},f==null?void 0:f.stepProps),g)})}))})},[j,D,x,F,C]),de=(0,Q.J)(function(){var r,a=N.current[F];(r=a.current)===null||r===void 0||r.submit()}),Me=(0,Q.J)(function(){F<1||je(F-1)}),ze=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(w.ZP,(0,i.Z)((0,i.Z)({type:"primary",loading:M},o==null?void 0:o.submitButtonProps),{},{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),de()},children:G.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[G,M,de,o]),Be=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(w.ZP,(0,i.Z)((0,i.Z)({},o==null?void 0:o.resetButtonProps),{},{onClick:function(){var a;Me(),o==null||(a=o.onReset)===null||a===void 0||a.call(o)},children:G.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[G,Me,o]),Oe=(0,t.useMemo)(function(){return o!==!1&&(0,s.jsx)(w.ZP,(0,i.Z)((0,i.Z)({type:"primary",loading:M},o==null?void 0:o.submitButtonProps),{},{onClick:function(){var a;o==null||(a=o.onSubmit)===null||a===void 0||a.call(o),de()},children:G.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[G,M,de,o]),Qe=(0,Q.J)(function(){F>j.length-2||je(F+1)}),ge=(0,t.useMemo)(function(){var r=[],a=F||0;if(a<1?j.length===1?r.push(Oe):r.push(ze):a+1===j.length?r.push(Be,Oe):r.push(Be,ze),r=r.filter(t.isValidElement),o&&o.render){var g,f={form:(g=N.current[F])===null||g===void 0?void 0:g.current,onSubmit:de,step:F,onPre:Me};return o.render(f,r)}return o&&(o==null?void 0:o.render)===!1?null:r},[j.length,ze,de,Be,Me,F,Oe,o]),Ve=(0,t.useMemo)(function(){return(0,q.Z)(l.children).map(function(r,a){var g=r.props,f=g.name||"".concat(a),xe=F===a,Ie=xe?{contentRender:V,submitter:!1}:{};return(0,s.jsx)("div",{className:k()("".concat(x,"-step"),D,(0,p.Z)({},"".concat(x,"-step-active"),xe)),children:(0,s.jsx)(ae.Provider,{value:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},Ie),le),g),{},{name:f,step:a}),children:r})},f)})},[le,D,x,l.children,F,V]),He=(0,t.useMemo)(function(){return E?E(j.map(function(r){var a;return{key:r,title:(a=O.current.get(r))===null||a===void 0?void 0:a.title}}),Te):Te},[j,Te,E]),Xe=(0,t.useMemo)(function(){return(0,s.jsxs)("div",{className:"".concat(x,"-container ").concat(D).trim(),style:S,children:[Ve,y?null:(0,s.jsx)(A.Z,{children:ge})]})},[S,Ve,D,x,y,ge]),we=(0,t.useMemo)(function(){var r={stepsDom:He,formDom:Xe};return y?y(B?B(r):Ee(r),ge):B?B(r):Ee(r)},[He,Xe,Ee,y,ge,B]);return z((0,s.jsx)("div",{className:k()(x,D),children:(0,s.jsx)(R.Z.Provider,(0,i.Z)((0,i.Z)({},Pe),{},{children:(0,s.jsx)(ee.Provider,{value:{loading:M,setLoading:ce,regForm:Ye,keyArray:j,next:Qe,formArrayRef:N,formMapRef:O,lastStep:Ne,unRegForm:Ue,onFormFinish:Ke},children:we})}))}))}function ie(l){return(0,s.jsx)(re._Y,{needDeps:!0,children:(0,s.jsx)(Ce,(0,i.Z)({},l))})}ie.StepForm=_,ie.useForm=R.Z.useForm},21804:function(De,U,e){e.d(U,{G:function(){return w}});var p=e(33346),i=e(73273),P=e(38126),T=e(50959),te=e(9455),L=e(38782),K=function(R,u){return T.createElement(L.Z,(0,P.Z)({},R,{ref:u,icon:te.Z}))},re=T.forwardRef(K),ve=e(56197),me=e(32618),Q=e(84875),X=e.n(Q),J=e(26488),oe=function(R){return(0,i.Z)({},R.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:R.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:R.colorTextSecondary,fontWeight:"normal",fontSize:R.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function fe(A){return(0,J.Xj)("LabelIconTip",function(R){var u=(0,p.Z)((0,p.Z)({},R),{},{componentCls:".".concat(A)});return[oe(u)]})}var W=e(11527),w=T.memo(function(A){var R=A.label,u=A.tooltip,k=A.ellipsis,q=A.subTitle,pe=(0,T.useContext)(ve.ZP.ConfigContext),t=pe.getPrefixCls,m=t("pro-core-label-tip"),h=fe(m),Z=h.wrapSSR,s=h.hashId;if(!u&&!q)return(0,W.jsx)(W.Fragment,{children:R});var d=typeof u=="string"||T.isValidElement(u)?{title:u}:u,se=(d==null?void 0:d.icon)||(0,W.jsx)(re,{});return Z((0,W.jsxs)("div",{className:X()(m,s),onMouseDown:function(b){return b.stopPropagation()},onMouseLeave:function(b){return b.stopPropagation()},onMouseMove:function(b){return b.stopPropagation()},children:[(0,W.jsx)("div",{className:X()("".concat(m,"-title"),s,(0,i.Z)({},"".concat(m,"-title-ellipsis"),k)),children:R}),q&&(0,W.jsx)("div",{className:"".concat(m,"-subtitle ").concat(s).trim(),children:q}),u&&(0,W.jsx)(me.Z,(0,p.Z)((0,p.Z)({},d),{},{children:(0,W.jsx)("span",{className:"".concat(m,"-icon ").concat(s).trim(),children:se})}))]}))})}}]); diff --git a/8325.6ff6247f.async.js b/8325.6ff6247f.async.js deleted file mode 100644 index a03a4bbe..00000000 --- a/8325.6ff6247f.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8325],{50304:function(ye,Q,c){c.d(Q,{Z:function(){return l}});var i=c(50959),U=c(84875),I=c.n(U),W=c(87017),P=c(31594),J=c(17436),Y=c(25670),G=c(66146),R=function(e,o){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{var{prefixCls:o,className:r,hoverable:a=!0}=e,n=R(e,["prefixCls","className","hoverable"]);const{getPrefixCls:f}=i.useContext(P.E_),u=f("card",o),v=I()(`${u}-grid`,r,{[`${u}-grid-hoverable`]:a});return i.createElement("div",Object.assign({},n,{className:v}))},s=c(60076),$=c(6301),q=c(81501),H=c(90467);const M=e=>{const{antCls:o,componentCls:r,headerHeight:a,cardPaddingBase:n,tabsMarginBottom:f}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,s.bf)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0`},(0,$.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},$.vS),{[` - > ${r}-typography, - > ${r}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${o}-tabs-top`]:{clear:"both",marginBottom:f,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},F=e=>{const{cardPaddingBase:o,colorBorderSecondary:r,cardShadow:a,lineWidth:n}=e;return{width:"33.33%",padding:o,border:0,borderRadius:0,boxShadow:` - ${(0,s.bf)(n)} 0 0 0 ${r}, - 0 ${(0,s.bf)(n)} 0 0 ${r}, - ${(0,s.bf)(n)} ${(0,s.bf)(n)} 0 0 ${r}, - ${(0,s.bf)(n)} 0 0 0 ${r} inset, - 0 ${(0,s.bf)(n)} 0 0 ${r} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},k=e=>{const{componentCls:o,iconCls:r,actionsLiMargin:a,cardActionsIconSize:n,colorBorderSecondary:f,actionsBg:u}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:u,borderTop:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${f}`,display:"flex",borderRadius:`0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`},(0,$.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${o}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,s.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:n,lineHeight:(0,s.bf)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${f}`}}})},fe=e=>Object.assign(Object.assign({margin:`${(0,s.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,$.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},$.vS),"&-description":{color:e.colorTextDescription}}),_=e=>{const{componentCls:o,cardPaddingBase:r,colorFillAlter:a}=e;return{[`${o}-head`]:{padding:`0 ${(0,s.bf)(r)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${o}-body`]:{padding:`${(0,s.bf)(e.padding)} ${(0,s.bf)(r)}`}}},ee=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},te=e=>{const{antCls:o,componentCls:r,cardShadow:a,cardHeadPadding:n,colorBorderSecondary:f,boxShadowTertiary:u,cardPaddingBase:v,extraColor:m}=e;return{[r]:Object.assign(Object.assign({},(0,$.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${r}-bordered)`]:{boxShadow:u},[`${r}-head`]:M(e),[`${r}-extra`]:{marginInlineStart:"auto",color:m,fontWeight:"normal",fontSize:e.fontSize},[`${r}-body`]:Object.assign({padding:v,borderRadius:` 0 0 ${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)}`},(0,$.dF)()),[`${r}-grid`]:F(e),[`${r}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${o}-image-mask`]:{borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0`}},[`${r}-actions`]:k(e),[`${r}-meta`]:fe(e)}),[`${r}-bordered`]:{border:`${(0,s.bf)(e.lineWidth)} ${e.lineType} ${f}`,[`${r}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${r}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${r}-contain-grid`]:{borderRadius:`${(0,s.bf)(e.borderRadiusLG)} ${(0,s.bf)(e.borderRadiusLG)} 0 0 `,[`${r}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${r}-loading) ${r}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${r}-contain-tabs`]:{[`> ${r}-head`]:{minHeight:0,[`${r}-head-title, ${r}-extra`]:{paddingTop:n}}},[`${r}-type-inner`]:_(e),[`${r}-loading`]:ee(e),[`${r}-rtl`]:{direction:"rtl"}}},re=e=>{const{componentCls:o,cardPaddingSM:r,headerHeightSM:a,headerFontSizeSM:n}=e;return{[`${o}-small`]:{[`> ${o}-head`]:{minHeight:a,padding:`0 ${(0,s.bf)(r)}`,fontSize:n,[`> ${o}-head-wrapper`]:{[`> ${o}-extra`]:{fontSize:e.fontSize}}},[`> ${o}-body`]:{padding:r}},[`${o}-small${o}-contain-tabs`]:{[`> ${o}-head`]:{[`${o}-head-title, ${o}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ae=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var E=(0,q.I$)("Card",e=>{const o=(0,H.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[te(o),re(o)]},ae),A=function(e,o){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,actions:r=[]}=e;return i.createElement("ul",{className:`${o}-actions`},r.map((a,n)=>{const f=`action-${n}`;return i.createElement("li",{style:{width:`${100/r.length}%`},key:f},i.createElement("span",null,a))}))};var Z=i.forwardRef((e,o)=>{const{prefixCls:r,className:a,rootClassName:n,style:f,extra:u,headStyle:v={},bodyStyle:m={},title:p,loading:x,bordered:O=!0,size:h,type:B,cover:w,actions:N,tabList:z,children:T,activeTabKey:K,defaultActiveTabKey:y,tabBarExtraContent:ie,hoverable:le,tabProps:se={}}=e,X=A(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:ce,direction:de,card:C}=i.useContext(P.E_),ge=j=>{var S;(S=e.onTabChange)===null||S===void 0||S.call(e,j)},V=i.useMemo(()=>{let j=!1;return i.Children.forEach(T,S=>{S&&S.type&&S.type===D&&(j=!0)}),j},[T]),b=ce("card",r),[$e,ve]=E(b),Ce=i.createElement(Y.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),me=K!==void 0,Se=Object.assign(Object.assign({},se),{[me?"activeKey":"defaultActiveKey"]:me?K:y,tabBarExtraContent:ie});let pe;const L=(0,J.Z)(h),xe=!L||L==="default"?"large":L,he=z?i.createElement(G.Z,Object.assign({size:xe},Se,{className:`${b}-head-tabs`,onChange:ge,items:z.map(j=>{var{tab:S}=j,Be=A(j,["tab"]);return Object.assign({label:S},Be)})})):null;(p||u||he)&&(pe=i.createElement("div",{className:`${b}-head`,style:v},i.createElement("div",{className:`${b}-head-wrapper`},p&&i.createElement("div",{className:`${b}-head-title`},p),u&&i.createElement("div",{className:`${b}-extra`},u)),he));const Oe=w?i.createElement("div",{className:`${b}-cover`},w):null,Te=i.createElement("div",{className:`${b}-body`,style:m},x?Ce:T),ze=N&&N.length?i.createElement(oe,{prefixCls:b,actions:N}):null,je=(0,W.Z)(X,["onTabChange"]),Pe=I()(b,C==null?void 0:C.className,{[`${b}-loading`]:x,[`${b}-bordered`]:O,[`${b}-hoverable`]:le,[`${b}-contain-grid`]:V,[`${b}-contain-tabs`]:z&&z.length,[`${b}-${L}`]:L,[`${b}-type-${B}`]:!!B,[`${b}-rtl`]:de==="rtl"},a,n,ve),Ee=Object.assign(Object.assign({},C==null?void 0:C.style),f);return $e(i.createElement("div",Object.assign({ref:o},je,{className:Pe,style:Ee}),pe,Oe,Te,ze))}),ne=function(e,o){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{const{prefixCls:o,className:r,avatar:a,title:n,description:f}=e,u=ne(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:v}=i.useContext(P.E_),m=v("card",o),p=I()(`${m}-meta`,r),x=a?i.createElement("div",{className:`${m}-meta-avatar`},a):null,O=n?i.createElement("div",{className:`${m}-meta-title`},n):null,h=f?i.createElement("div",{className:`${m}-meta-description`},f):null,B=O||h?i.createElement("div",{className:`${m}-meta-detail`},O,h):null;return i.createElement("div",Object.assign({},u,{className:p}),x,B)};const g=Z;g.Grid=D,g.Meta=d;var l=g},28566:function(ye,Q,c){c.d(Q,{Z:function(){return ne}});var i=c(50959),U=c(22410),I=c(84875),W=c.n(I),P=c(74364),J=c(7551),Y=c(42672),G=c(31594),R=c(60076),be=c(99978),D=c(6301),s=c(90467),$=c(81501);const q=t=>{const{paddingXXS:d,lineWidth:g,tagPaddingHorizontal:l,componentCls:e,calc:o}=t,r=o(l).sub(g).equal(),a=o(d).sub(g).equal();return{[e]:Object.assign(Object.assign({},(0,D.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:r,fontSize:t.tagFontSize,lineHeight:t.tagLineHeight,whiteSpace:"nowrap",background:t.defaultBg,border:`${(0,R.bf)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",position:"relative",[`&${e}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.defaultColor},[`${e}-close-icon`]:{marginInlineStart:a,fontSize:t.tagIconSize,color:t.colorTextDescription,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${e}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${t.iconCls}-close, ${t.iconCls}-close:hover`]:{color:t.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${e}-checkable-checked):hover`]:{color:t.colorPrimary,backgroundColor:t.colorFillSecondary},"&:active, &-checked":{color:t.colorTextLightSolid},"&-checked":{backgroundColor:t.colorPrimary,"&:hover":{backgroundColor:t.colorPrimaryHover}},"&:active":{backgroundColor:t.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${t.iconCls} + span, > span + ${t.iconCls}`]:{marginInlineStart:r}}),[`${e}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}},H=t=>{const{lineWidth:d,fontSizeIcon:g,calc:l}=t,e=t.fontSizeSM;return(0,s.TS)(t,{tagFontSize:e,tagLineHeight:(0,R.bf)(l(t.lineHeightSM).mul(e).equal()),tagIconSize:l(g).sub(l(d).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary})},M=t=>({defaultBg:new be.C(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var F=(0,$.I$)("Tag",t=>{const d=H(t);return q(d)},M),k=function(t,d){var g={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&d.indexOf(l)<0&&(g[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,l=Object.getOwnPropertySymbols(t);e{const{prefixCls:g,style:l,className:e,checked:o,onChange:r,onClick:a}=t,n=k(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:u}=i.useContext(G.E_),v=h=>{r==null||r(!o),a==null||a(h)},m=f("tag",g),[p,x]=F(m),O=W()(m,`${m}-checkable`,{[`${m}-checkable-checked`]:o},u==null?void 0:u.className,e,x);return p(i.createElement("span",Object.assign({},n,{ref:d,style:Object.assign(Object.assign({},l),u==null?void 0:u.style),className:O,onClick:v})))}),ee=c(78163);const te=t=>(0,ee.Z)(t,(d,g)=>{let{textColor:l,lightBorderColor:e,lightColor:o,darkColor:r}=g;return{[`${t.componentCls}-${d}`]:{color:l,background:o,borderColor:e,"&-inverse":{color:t.colorTextLightSolid,background:r,borderColor:r},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,$.bk)(["Tag","preset"],t=>{const d=H(t);return te(d)},M);function ae(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const E=(t,d,g)=>{const l=ae(g);return{[`${t.componentCls}-${d}`]:{color:t[`color${g}`],background:t[`color${l}Bg`],borderColor:t[`color${l}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var A=(0,$.bk)(["Tag","status"],t=>{const d=H(t);return[E(d,"success","Success"),E(d,"processing","Info"),E(d,"error","Error"),E(d,"warning","Warning")]},M),oe=function(t,d){var g={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&d.indexOf(l)<0&&(g[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,l=Object.getOwnPropertySymbols(t);e{const{prefixCls:g,className:l,rootClassName:e,style:o,children:r,icon:a,color:n,onClose:f,closeIcon:u,closable:v,bordered:m=!0}=t,p=oe(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:x,direction:O,tag:h}=i.useContext(G.E_),[B,w]=i.useState(!0);i.useEffect(()=>{"visible"in p&&w(p.visible)},[p.visible]);const N=(0,P.o2)(n),z=(0,P.yT)(n),T=N||z,K=Object.assign(Object.assign({backgroundColor:n&&!T?n:void 0},h==null?void 0:h.style),o),y=x("tag",g),[ie,le]=F(y),se=W()(y,h==null?void 0:h.className,{[`${y}-${n}`]:T,[`${y}-has-color`]:n&&!T,[`${y}-hidden`]:!B,[`${y}-rtl`]:O==="rtl",[`${y}-borderless`]:!m},l,e,le),X=b=>{b.stopPropagation(),f==null||f(b),!b.defaultPrevented&&w(!1)},[,ce]=(0,J.Z)(v,u,b=>b===null?i.createElement(U.Z,{className:`${y}-close-icon`,onClick:X}):i.createElement("span",{className:`${y}-close-icon`,onClick:X},b),null,!1),de=typeof p.onClick=="function"||r&&r.type==="a",C=a||null,ge=C?i.createElement(i.Fragment,null,C,r&&i.createElement("span",null,r)):r,V=i.createElement("span",Object.assign({},p,{ref:d,className:se,style:K}),ge,ce,N&&i.createElement(re,{key:"preset",prefixCls:y}),z&&i.createElement(A,{key:"status",prefixCls:y}));return ie(de?i.createElement(Y.Z,{component:"Tag"},V):V)},Z=i.forwardRef(ue);Z.CheckableTag=_;var ne=Z}}]); diff --git a/8588.f81935fb.async.js b/8588.f81935fb.async.js new file mode 100644 index 00000000..009e3727 --- /dev/null +++ b/8588.f81935fb.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8588],{18283:function(N,v,d){d.d(v,{Z:function(){return oe}});var i=d(79685),b=d(68591),x=d.n(b),L=d(3139),f=d(99248),c=d(73064),C=d(57196),p=d(55095),O=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:n,className:t,hoverable:r=!0}=e,a=O(e,["prefixCls","className","hoverable"]);const{getPrefixCls:s}=i.useContext(f.E_),g=s("card",n),h=x()(`${g}-grid`,t,{[`${g}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},a,{className:h}))},o=d(26477),$=d(4614),Z=d(44244),X=d(25830);const U=e=>{const{antCls:n,componentCls:t,headerHeight:r,cardPaddingBase:a,tabsMarginBottom:s}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,o.bf)(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)} 0 0`},(0,$.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},$.vS),{[` + > ${t}-typography, + > ${t}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${n}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},V=e=>{const{cardPaddingBase:n,colorBorderSecondary:t,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:n,border:0,borderRadius:0,boxShadow:` + ${(0,o.bf)(a)} 0 0 0 ${t}, + 0 ${(0,o.bf)(a)} 0 0 ${t}, + ${(0,o.bf)(a)} ${(0,o.bf)(a)} 0 0 ${t}, + ${(0,o.bf)(a)} 0 0 0 ${t} inset, + 0 ${(0,o.bf)(a)} 0 0 ${t} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},J=e=>{const{componentCls:n,iconCls:t,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:s,actionsBg:g}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:g,borderTop:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)}`},(0,$.dF)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${n}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,o.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:a,lineHeight:(0,o.bf)(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${s}`}}})},Q=e=>Object.assign(Object.assign({margin:`${(0,o.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,$.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},$.vS),"&-description":{color:e.colorTextDescription}}),Y=e=>{const{componentCls:n,cardPaddingBase:t,colorFillAlter:r}=e;return{[`${n}-head`]:{padding:`0 ${(0,o.bf)(t)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${n}-body`]:{padding:`${(0,o.bf)(e.padding)} ${(0,o.bf)(t)}`}}},q=e=>{const{componentCls:n}=e;return{overflow:"hidden",[`${n}-body`]:{userSelect:"none"}}},_=e=>{const{antCls:n,componentCls:t,cardShadow:r,cardHeadPadding:a,colorBorderSecondary:s,boxShadowTertiary:g,cardPaddingBase:h,extraColor:u}=e;return{[t]:Object.assign(Object.assign({},(0,$.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:g},[`${t}-head`]:U(e),[`${t}-extra`]:{marginInlineStart:"auto",color:u,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:h,borderRadius:` 0 0 ${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)}`},(0,$.dF)()),[`${t}-grid`]:V(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${n}-image-mask`]:{borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:J(e),[`${t}-meta`]:Q(e)}),[`${t}-bordered`]:{border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${s}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:Y(e),[`${t}-loading`]:q(e),[`${t}-rtl`]:{direction:"rtl"}}},k=e=>{const{componentCls:n,cardPaddingSM:t,headerHeightSM:r,headerFontSizeSM:a}=e;return{[`${n}-small`]:{[`> ${n}-head`]:{minHeight:r,padding:`0 ${(0,o.bf)(t)}`,fontSize:a,[`> ${n}-head-wrapper`]:{[`> ${n}-extra`]:{fontSize:e.fontSize}}},[`> ${n}-body`]:{padding:t}},[`${n}-small${n}-contain-tabs`]:{[`> ${n}-head`]:{[`${n}-head-title, ${n}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ee=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var te=(0,Z.I$)("Card",e=>{const n=(0,X.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[_(n),k(n)]},ee),I=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,actions:t=[]}=e;return i.createElement("ul",{className:`${n}-actions`},t.map((r,a)=>{const s=`action-${a}`;return i.createElement("li",{style:{width:`${100/t.length}%`},key:s},i.createElement("span",null,r))}))};var ae=i.forwardRef((e,n)=>{const{prefixCls:t,className:r,rootClassName:a,style:s,extra:g,headStyle:h={},bodyStyle:u={},title:z,loading:j,bordered:P=!0,size:T,type:w,cover:R,actions:H,tabList:B,children:M,activeTabKey:W,defaultActiveTabKey:de,tabBarExtraContent:le,hoverable:se,tabProps:ce={}}=e,ge=I(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:be,direction:fe,card:S}=i.useContext(f.E_),ue=y=>{var m;(m=e.onTabChange)===null||m===void 0||m.call(e,y)},me=i.useMemo(()=>{let y=!1;return i.Children.forEach(M,m=>{m&&m.type&&m.type===D&&(y=!0)}),y},[M]),l=be("card",t),[pe,$e]=te(l),he=i.createElement(C.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),A=W!==void 0,ye=Object.assign(Object.assign({},ce),{[A?"activeKey":"defaultActiveKey"]:A?W:de,tabBarExtraContent:le});let F;const E=(0,c.Z)(T),Se=!E||E==="default"?"large":E,K=B?i.createElement(p.Z,Object.assign({size:Se},ye,{className:`${l}-head-tabs`,onChange:ue,items:B.map(y=>{var{tab:m}=y,je=I(y,["tab"]);return Object.assign({label:m},je)})})):null;(z||g||K)&&(F=i.createElement("div",{className:`${l}-head`,style:h},i.createElement("div",{className:`${l}-head-wrapper`},z&&i.createElement("div",{className:`${l}-head-title`},z),g&&i.createElement("div",{className:`${l}-extra`},g)),K));const ve=R?i.createElement("div",{className:`${l}-cover`},R):null,xe=i.createElement("div",{className:`${l}-body`,style:u},j?he:M),Ce=H&&H.length?i.createElement(re,{prefixCls:l,actions:H}):null,Oe=(0,L.Z)(ge,["onTabChange"]),ze=x()(l,S==null?void 0:S.className,{[`${l}-loading`]:j,[`${l}-bordered`]:P,[`${l}-hoverable`]:se,[`${l}-contain-grid`]:me,[`${l}-contain-tabs`]:B&&B.length,[`${l}-${E}`]:E,[`${l}-type-${w}`]:!!w,[`${l}-rtl`]:fe==="rtl"},r,a,$e),Ee=Object.assign(Object.assign({},S==null?void 0:S.style),s);return pe(i.createElement("div",Object.assign({ref:n},Oe,{className:ze,style:Ee}),F,ve,xe,Ce))}),ne=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:t,avatar:r,title:a,description:s}=e,g=ne(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:h}=i.useContext(f.E_),u=h("card",n),z=x()(`${u}-meta`,t),j=r?i.createElement("div",{className:`${u}-meta-avatar`},r):null,P=a?i.createElement("div",{className:`${u}-meta-title`},a):null,T=s?i.createElement("div",{className:`${u}-meta-description`},s):null,w=P||T?i.createElement("div",{className:`${u}-meta-detail`},P,T):null;return i.createElement("div",Object.assign({},g,{className:z}),j,w)};const G=ae;G.Grid=D,G.Meta=ie;var oe=G},40325:function(N,v,d){d.d(v,{N:function(){return i}});const i=b=>({color:b.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${b.motionDurationSlow}`,"&:focus, &:hover":{color:b.colorLinkHover},"&:active":{color:b.colorLinkActive}})},68786:function(N,v,d){d.d(v,{G:function(){return L}});var i=d(68450),b=function(c){if((0,i.Z)()&&window.document.documentElement){var C=Array.isArray(c)?c:[c],p=window.document.documentElement;return C.some(function(O){return O in p.style})}return!1},x=function(c,C){if(!b(c))return!1;var p=document.createElement("div"),O=p.style[c];return p.style[c]=C,p.style[c]!==O};function L(f,c){return!Array.isArray(f)&&c!==void 0?x(f,c):b(f)}}}]); diff --git a/8912.7a51fc1f.async.js b/8912.7a51fc1f.async.js new file mode 100644 index 00000000..41abb248 --- /dev/null +++ b/8912.7a51fc1f.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8912],{26396:function(L,h){var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};h.Z=i},55751:function(L,h){var i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};h.Z=i},43588:function(L,h,i){var n=i(93264),v=i(79685),y=i(26396),O=i(64507),m=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:y.Z}))};m.displayName="DownloadOutlined",h.Z=v.forwardRef(m)},69392:function(L,h,i){var n=i(93264),v=i(79685),y=i(55751),O=i(64507),m=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:y.Z}))};m.displayName="EditOutlined",h.Z=v.forwardRef(m)},12086:function(L,h,i){var n=i(93264),v=i(79685),y=i(62415),O=i(64507),m=function(x,E){return v.createElement(O.Z,(0,n.Z)((0,n.Z)({},x),{},{ref:E,icon:y.Z}))};m.displayName="EllipsisOutlined",h.Z=v.forwardRef(m)},88133:function(L,h,i){i.d(h,{Z:function(){return x}});var n=i(93264),v=i(79685),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},O=y,m=i(64507),z=function(A,U){return v.createElement(m.Z,(0,n.Z)((0,n.Z)({},A),{},{ref:U,icon:O}))};z.displayName="ShareAltOutlined";var x=v.forwardRef(z)},18283:function(L,h,i){i.d(h,{Z:function(){return s}});var n=i(79685),v=i(68591),y=i.n(v),O=i(3139),m=i(99248),z=i(73064),x=i(57196),E=i(55095),A=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{var{prefixCls:o,className:a,hoverable:r=!0}=e,l=A(e,["prefixCls","className","hoverable"]);const{getPrefixCls:f}=n.useContext(m.E_),b=f("card",o),T=y()(`${b}-grid`,a,{[`${b}-grid-hoverable`]:r});return n.createElement("div",Object.assign({},l,{className:T}))},c=i(26477),P=i(4614),k=i(44244),Z=i(25830);const G=e=>{const{antCls:o,componentCls:a,headerHeight:r,cardPaddingBase:l,tabsMarginBottom:f}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,c.bf)(l)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0`},(0,P.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},P.vS),{[` + > ${a}-typography, + > ${a}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${o}-tabs-top`]:{clear:"both",marginBottom:f,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},V=e=>{const{cardPaddingBase:o,colorBorderSecondary:a,cardShadow:r,lineWidth:l}=e;return{width:"33.33%",padding:o,border:0,borderRadius:0,boxShadow:` + ${(0,c.bf)(l)} 0 0 0 ${a}, + 0 ${(0,c.bf)(l)} 0 0 ${a}, + ${(0,c.bf)(l)} ${(0,c.bf)(l)} 0 0 ${a}, + ${(0,c.bf)(l)} 0 0 0 ${a} inset, + 0 ${(0,c.bf)(l)} 0 0 ${a} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ee=e=>{const{componentCls:o,iconCls:a,actionsLiMargin:r,cardActionsIconSize:l,colorBorderSecondary:f,actionsBg:b}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:b,borderTop:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${f}`,display:"flex",borderRadius:`0 0 ${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)}`},(0,P.dF)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${o}-btn), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,c.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:l,lineHeight:(0,c.bf)(e.calc(l).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${f}`}}})},be=e=>Object.assign(Object.assign({margin:`${(0,c.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,P.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},P.vS),"&-description":{color:e.colorTextDescription}}),te=e=>{const{componentCls:o,cardPaddingBase:a,colorFillAlter:r}=e;return{[`${o}-head`]:{padding:`0 ${(0,c.bf)(a)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${o}-body`]:{padding:`${(0,c.bf)(e.padding)} ${(0,c.bf)(a)}`}}},ae=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},re=e=>{const{antCls:o,componentCls:a,cardShadow:r,cardHeadPadding:l,colorBorderSecondary:f,boxShadowTertiary:b,cardPaddingBase:T,extraColor:p}=e;return{[a]:Object.assign(Object.assign({},(0,P.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:b},[`${a}-head`]:G(e),[`${a}-extra`]:{marginInlineStart:"auto",color:p,fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:T,borderRadius:` 0 0 ${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)}`},(0,P.dF)()),[`${a}-grid`]:V(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${o}-image-mask`]:{borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0`}},[`${a}-actions`]:ee(e),[`${a}-meta`]:be(e)}),[`${a}-bordered`]:{border:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${f}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${a}-contain-grid`]:{borderRadius:`${(0,c.bf)(e.borderRadiusLG)} ${(0,c.bf)(e.borderRadiusLG)} 0 0 `,[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{minHeight:0,[`${a}-head-title, ${a}-extra`]:{paddingTop:l}}},[`${a}-type-inner`]:te(e),[`${a}-loading`]:ae(e),[`${a}-rtl`]:{direction:"rtl"}}},ne=e=>{const{componentCls:o,cardPaddingSM:a,headerHeightSM:r,headerFontSizeSM:l}=e;return{[`${o}-small`]:{[`> ${o}-head`]:{minHeight:r,padding:`0 ${(0,c.bf)(a)}`,fontSize:l,[`> ${o}-head-wrapper`]:{[`> ${o}-extra`]:{fontSize:e.fontSize}}},[`> ${o}-body`]:{padding:a}},[`${o}-small${o}-contain-tabs`]:{[`> ${o}-head`]:{[`${o}-head-title, ${o}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},oe=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var W=(0,k.I$)("Card",e=>{const o=(0,Z.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[re(o),ne(o)]},oe),X=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:o,actions:a=[]}=e;return n.createElement("ul",{className:`${o}-actions`},a.map((r,l)=>{const f=`action-${l}`;return n.createElement("li",{style:{width:`${100/a.length}%`},key:f},n.createElement("span",null,r))}))};var Q=n.forwardRef((e,o)=>{const{prefixCls:a,className:r,rootClassName:l,style:f,extra:b,headStyle:T={},bodyStyle:p={},title:C,loading:j,bordered:I=!0,size:$,type:H,cover:K,actions:w,tabList:N,children:D,activeTabKey:J,defaultActiveTabKey:S,tabBarExtraContent:se,hoverable:ce,tabProps:de={}}=e,Y=X(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:ge,direction:ue,card:M}=n.useContext(m.E_),fe=R=>{var B;(B=e.onTabChange)===null||B===void 0||B.call(e,R)},q=n.useMemo(()=>{let R=!1;return n.Children.forEach(D,B=>{B&&B.type&&B.type===_&&(R=!0)}),R},[D]),u=ge("card",a),[ye,Ce]=W(u),$e=n.createElement(x.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},D),pe=J!==void 0,Se=Object.assign(Object.assign({},de),{[pe?"activeKey":"defaultActiveKey"]:pe?J:S,tabBarExtraContent:se});let he;const F=(0,z.Z)($),Oe=!F||F==="default"?"large":F,ve=N?n.createElement(E.Z,Object.assign({size:Oe},Se,{className:`${u}-head-tabs`,onChange:fe,items:N.map(R=>{var{tab:B}=R,Be=X(R,["tab"]);return Object.assign({label:B},Be)})})):null;(C||b||ve)&&(he=n.createElement("div",{className:`${u}-head`,style:T},n.createElement("div",{className:`${u}-head-wrapper`},C&&n.createElement("div",{className:`${u}-head-title`},C),b&&n.createElement("div",{className:`${u}-extra`},b)),ve));const xe=K?n.createElement("div",{className:`${u}-cover`},K):null,Ee=n.createElement("div",{className:`${u}-body`,style:p},j?$e:D),Pe=w&&w.length?n.createElement(le,{prefixCls:u,actions:w}):null,Te=(0,O.Z)(Y,["onTabChange"]),ze=y()(u,M==null?void 0:M.className,{[`${u}-loading`]:j,[`${u}-bordered`]:I,[`${u}-hoverable`]:ce,[`${u}-contain-grid`]:q,[`${u}-contain-tabs`]:N&&N.length,[`${u}-${F}`]:F,[`${u}-type-${H}`]:!!H,[`${u}-rtl`]:ue==="rtl"},r,l,Ce),Me=Object.assign(Object.assign({},M==null?void 0:M.style),f);return ye(n.createElement("div",Object.assign({ref:o},Te,{className:ze,style:Me}),he,xe,Ee,Pe))}),ie=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:o,className:a,avatar:r,title:l,description:f}=e,b=ie(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:T}=n.useContext(m.E_),p=T("card",o),C=y()(`${p}-meta`,a),j=r?n.createElement("div",{className:`${p}-meta-avatar`},r):null,I=l?n.createElement("div",{className:`${p}-meta-title`},l):null,$=f?n.createElement("div",{className:`${p}-meta-description`},f):null,H=I||$?n.createElement("div",{className:`${p}-meta-detail`},I,$):null;return n.createElement("div",Object.assign({},b,{className:C}),j,H)};const g=Q;g.Grid=_,g.Meta=d;var s=g},90936:function(L,h,i){i.d(h,{Z:function(){return ie}});var n=i(79685),v=i(99992),y=i(68591),O=i.n(y),m=i(28726),z=i(37770),x=i(42480),E=i(99248),A=i(26477),U=i(73838),_=i(4614),c=i(25830),P=i(44244);const k=t=>{const{paddingXXS:d,lineWidth:g,tagPaddingHorizontal:s,componentCls:e,calc:o}=t,a=o(s).sub(g).equal(),r=o(d).sub(g).equal();return{[e]:Object.assign(Object.assign({},(0,_.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:a,fontSize:t.tagFontSize,lineHeight:t.tagLineHeight,whiteSpace:"nowrap",background:t.defaultBg,border:`${(0,A.bf)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",position:"relative",[`&${e}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.defaultColor},[`${e}-close-icon`]:{marginInlineStart:r,fontSize:t.tagIconSize,color:t.colorTextDescription,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${e}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${t.iconCls}-close, ${t.iconCls}-close:hover`]:{color:t.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${e}-checkable-checked):hover`]:{color:t.colorPrimary,backgroundColor:t.colorFillSecondary},"&:active, &-checked":{color:t.colorTextLightSolid},"&-checked":{backgroundColor:t.colorPrimary,"&:hover":{backgroundColor:t.colorPrimaryHover}},"&:active":{backgroundColor:t.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${t.iconCls} + span, > span + ${t.iconCls}`]:{marginInlineStart:a}}),[`${e}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}},Z=t=>{const{lineWidth:d,fontSizeIcon:g,calc:s}=t,e=t.fontSizeSM;return(0,c.TS)(t,{tagFontSize:e,tagLineHeight:(0,A.bf)(s(t.lineHeightSM).mul(e).equal()),tagIconSize:s(g).sub(s(d).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:t.colorFillTertiary})},G=t=>({defaultBg:new U.C(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var V=(0,P.I$)("Tag",t=>{const d=Z(t);return k(d)},G),ee=function(t,d){var g={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&d.indexOf(s)<0&&(g[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,s=Object.getOwnPropertySymbols(t);e{const{prefixCls:g,style:s,className:e,checked:o,onChange:a,onClick:r}=t,l=ee(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:b}=n.useContext(E.E_),T=$=>{a==null||a(!o),r==null||r($)},p=f("tag",g),[C,j]=V(p),I=O()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},b==null?void 0:b.className,e,j);return C(n.createElement("span",Object.assign({},l,{ref:d,style:Object.assign(Object.assign({},s),b==null?void 0:b.style),className:I,onClick:T})))}),ae=i(57069);const re=t=>(0,ae.Z)(t,(d,g)=>{let{textColor:s,lightBorderColor:e,lightColor:o,darkColor:a}=g;return{[`${t.componentCls}-${d}`]:{color:s,background:o,borderColor:e,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ne=(0,P.bk)(["Tag","preset"],t=>{const d=Z(t);return re(d)},G);function oe(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const W=(t,d,g)=>{const s=oe(g);return{[`${t.componentCls}-${d}`]:{color:t[`color${g}`],background:t[`color${s}Bg`],borderColor:t[`color${s}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var X=(0,P.bk)(["Tag","status"],t=>{const d=Z(t);return[W(d,"success","Success"),W(d,"processing","Info"),W(d,"error","Error"),W(d,"warning","Warning")]},G),le=function(t,d){var g={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&d.indexOf(s)<0&&(g[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var e=0,s=Object.getOwnPropertySymbols(t);e{const{prefixCls:g,className:s,rootClassName:e,style:o,children:a,icon:r,color:l,onClose:f,closeIcon:b,closable:T,bordered:p=!0}=t,C=le(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:j,direction:I,tag:$}=n.useContext(E.E_),[H,K]=n.useState(!0);n.useEffect(()=>{"visible"in C&&K(C.visible)},[C.visible]);const w=(0,m.o2)(l),N=(0,m.yT)(l),D=w||N,J=Object.assign(Object.assign({backgroundColor:l&&!D?l:void 0},$==null?void 0:$.style),o),S=j("tag",g),[se,ce]=V(S),de=O()(S,$==null?void 0:$.className,{[`${S}-${l}`]:D,[`${S}-has-color`]:l&&!D,[`${S}-hidden`]:!H,[`${S}-rtl`]:I==="rtl",[`${S}-borderless`]:!p},s,e,ce),Y=u=>{u.stopPropagation(),f==null||f(u),!u.defaultPrevented&&K(!1)},[,ge]=(0,z.Z)(T,b,u=>u===null?n.createElement(v.Z,{className:`${S}-close-icon`,onClick:Y}):n.createElement("span",{className:`${S}-close-icon`,onClick:Y},u),null,!1),ue=typeof C.onClick=="function"||a&&a.type==="a",M=r||null,fe=M?n.createElement(n.Fragment,null,M,a&&n.createElement("span",null,a)):a,q=n.createElement("span",Object.assign({},C,{ref:d,className:de,style:J}),fe,ge,w&&n.createElement(ne,{key:"preset",prefixCls:S}),N&&n.createElement(X,{key:"status",prefixCls:S}));return se(ue?n.createElement(x.Z,{component:"Tag"},q):q)},Q=n.forwardRef(me);Q.CheckableTag=te;var ie=Q}}]); diff --git a/9217.0e815c5b.async.js b/9217.0e815c5b.async.js new file mode 100644 index 00000000..84930d88 --- /dev/null +++ b/9217.0e815c5b.async.js @@ -0,0 +1,108 @@ +!(function(){var wr=Math.pow;(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9217],{81383:function(Ye,Ve,yt){"use strict";yt.d(Ve,{P:function(){return tut}});var kt={};yt.r(kt),yt.d(kt,{area:function(){return _W},bottom:function(){return ja},bottomLeft:function(){return ja},bottomRight:function(){return ja},inside:function(){return ja},left:function(){return ja},outside:function(){return SW},right:function(){return ja},spider:function(){return EW},surround:function(){return TW},top:function(){return ja},topLeft:function(){return ja},topRight:function(){return ja}});var Rt={};yt.r(Rt),yt.d(Rt,{interpolateBlues:function(){return jH},interpolateBrBG:function(){return vH},interpolateBuGn:function(){return SH},interpolateBuPu:function(){return MH},interpolateCividis:function(){return WH},interpolateCool:function(){return UH},interpolateCubehelixDefault:function(){return XH},interpolateGnBu:function(){return EH},interpolateGreens:function(){return DH},interpolateGreys:function(){return FH},interpolateInferno:function(){return nY},interpolateMagma:function(){return eY},interpolateOrRd:function(){return AH},interpolateOranges:function(){return GH},interpolatePRGn:function(){return gH},interpolatePiYG:function(){return yH},interpolatePlasma:function(){return rY},interpolatePuBu:function(){return PH},interpolatePuBuGn:function(){return TH},interpolatePuOr:function(){return mH},interpolatePuRd:function(){return CH},interpolatePurples:function(){return BH},interpolateRainbow:function(){return qH},interpolateRdBu:function(){return bH},interpolateRdGy:function(){return xH},interpolateRdPu:function(){return kH},interpolateRdYlBu:function(){return _H},interpolateRdYlGn:function(){return OH},interpolateReds:function(){return zH},interpolateSinebow:function(){return QH},interpolateSpectral:function(){return wH},interpolateTurbo:function(){return JH},interpolateViridis:function(){return tY},interpolateWarm:function(){return $H},interpolateYlGn:function(){return LH},interpolateYlGnBu:function(){return RH},interpolateYlOrBr:function(){return NH},interpolateYlOrRd:function(){return IH},schemeAccent:function(){return HW},schemeBlues:function(){return kw},schemeBrBG:function(){return uw},schemeBuGn:function(){return bw},schemeBuPu:function(){return xw},schemeCategory10:function(){return WW},schemeDark2:function(){return YW},schemeGnBu:function(){return _w},schemeGreens:function(){return Rw},schemeGreys:function(){return Lw},schemeOrRd:function(){return Ow},schemeOranges:function(){return jw},schemePRGn:function(){return fw},schemePaired:function(){return VW},schemePastel1:function(){return XW},schemePastel2:function(){return $W},schemePiYG:function(){return dw},schemePuBu:function(){return Sw},schemePuBuGn:function(){return ww},schemePuOr:function(){return hw},schemePuRd:function(){return Mw},schemePurples:function(){return Nw},schemeRdBu:function(){return pw},schemeRdGy:function(){return vw},schemeRdPu:function(){return Ew},schemeRdYlBu:function(){return gw},schemeRdYlGn:function(){return yw},schemeReds:function(){return Iw},schemeSet1:function(){return UW},schemeSet2:function(){return qW},schemeSet3:function(){return ZW},schemeSpectral:function(){return mw},schemeTableau10:function(){return KW},schemeYlGn:function(){return Tw},schemeYlGnBu:function(){return Aw},schemeYlOrBr:function(){return Pw},schemeYlOrRd:function(){return Cw}});var be={};yt.r(be),yt.d(be,{geoAlbers:function(){return Xk},geoAlbersUsa:function(){return Ott},geoAzimuthalEqualArea:function(){return wtt},geoAzimuthalEqualAreaRaw:function(){return bm},geoAzimuthalEquidistant:function(){return Stt},geoAzimuthalEquidistantRaw:function(){return xm},geoConicConformal:function(){return Ett},geoConicConformalRaw:function(){return qk},geoConicEqualArea:function(){return zh},geoConicEqualAreaRaw:function(){return Vk},geoConicEquidistant:function(){return Ttt},geoConicEquidistantRaw:function(){return Zk},geoEqualEarth:function(){return Ctt},geoEqualEarthRaw:function(){return _m},geoEquirectangular:function(){return Att},geoEquirectangularRaw:function(){return yu},geoGnomonic:function(){return ktt},geoGnomonicRaw:function(){return Om},geoIdentity:function(){return Rtt},geoMercator:function(){return Mtt},geoMercatorRaw:function(){return gu},geoNaturalEarth1:function(){return Ltt},geoNaturalEarth1Raw:function(){return wm},geoOrthographic:function(){return Ntt},geoOrthographicRaw:function(){return Sm},geoProjection:function(){return Oa},geoProjectionMutator:function(){return ym},geoStereographic:function(){return Itt},geoStereographicRaw:function(){return Mm},geoTransverseMercator:function(){return jtt},geoTransverseMercatorRaw:function(){return Em}});var We={};yt.r(We),yt.d(We,{frequency:function(){return Fnt},id:function(){return Bnt},name:function(){return znt},weight:function(){return Dnt}});var te=yt(79685),ge=yt(50374),re=yt.t(ge,2),Gt=function(){return Gt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=18&&(Lt=Zt.createRoot)}catch(t){}function Dt(t){var e=Zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&typeof e=="object"&&(e.usingClientEntryPoint=t)}var Se="__rc_react_root__";function ke(t,e){Dt(!0);var n=e[Se]||Lt(e);Dt(!1),n.render(t),e[Se]=n}function Qe(t,e){ie(t,e)}function Xe(t,e){}function qe(t,e){if(Lt){ke(t,e);return}Qe(t,e)}function ln(t){return dt(this,void 0,void 0,function(){return pe(this,function(e){return[2,Promise.resolve().then(function(){var n;(n=t[Se])===null||n===void 0||n.unmount(),delete t[Se]})]})})}function $e(t){jt(t)}function Be(t){}function cn(t){return dt(this,void 0,void 0,function(){return pe(this,function(e){return Lt!==void 0?[2,ln(t)]:($e(t),[2])})})}var _e=new Map;_e.set("tooltip",document.createElement("div"));var Me=function(t,e){e===void 0&&(e=!1);var n=document.createElement("div");return e?n=_e.get("tooltip"):t!=null&&t.key&&(_e.get(t.key)||_e.set(t.key,n),n=_e.get(t.key)),qe(t,n),n},gn=function(t){var e=t.attachShadow({mode:"open"}),n=document.createElement("div"),r=document.createElement("style");r.innerHTML=`.loading { + display: inline-block; + position: relative; + width: 80px; + height: 80px; + } + .loading div { + position: absolute; + top: 33px; + width: 13px; + height: 13px; + border-radius: 50%; + background: #ccc; + animation-timing-function: cubic-bezier(0, 1, 1, 0); + } + .loading div:nth-child(1) { + left: 8px; + animation: loading1 0.6s infinite; + } + .loading div:nth-child(2) { + left: 8px; + animation: loading2 0.6s infinite; + } + .loading div:nth-child(3) { + left: 32px; + animation: loading2 0.6s infinite; + } + .loading div:nth-child(4) { + left: 56px; + animation: loading3 0.6s infinite; + } + @keyframes loading1 { + 0% { + transform: scale(0); + } + 100% { + transform: scale(1); + } + } + @keyframes loading3 { + 0% { + transform: scale(1); + } + 100% { + transform: scale(0); + } + } + @keyframes loading2 { + 0% { + transform: translate(0, 0); + } + 100% { + transform: translate(24px, 0); + } + } + `,n.classList.add("loading"),n.innerHTML="
    ",e.appendChild(r),e.appendChild(n)},Dn=function(t){var e=t.loadingTemplate,n=t.theme,r=n===void 0?"light":n,i=te.useRef(null);te.useEffect(function(){!e&&i.current&&gn(i.current)},[]);var a=function(){return e||te.createElement("div",{ref:i})};return te.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:r==="dark"?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},a())},Qn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),un=function(t){Qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasError:!1},n.renderError=function(r){var i=n.props.errorTemplate;switch(r){default:return typeof i=="function"?i(r):i||te.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",r.message)}},n}return e.getDerivedStateFromError=function(n){return{hasError:!0,error:n}},e.getDerivedStateFromProps=function(n,r){return r.children!==n.children?{children:n.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):te.createElement(te.Fragment,null,this.props.children)},e}(te.Component),yn=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r-1}var fn=mr;function Qr(t,e){var n=this.__data__,r=Le(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var wa=Qr;function ci(t){var e=-1,n=t==null?0:t.length;for(this.clear();++es))return!1;var l=a.get(t),u=a.get(e);if(l&&u)return l==e&&u==t;var f=-1,d=!0,h=n&pR?new g1:void 0;for(a.set(t,e),a.set(e,t);++f-1&&t%1==0&&t-1&&t%1==0&&t<=aL}var Ep=oL,sL="[object Arguments]",cL="[object Array]",lL="[object Boolean]",uL="[object Date]",fL="[object Error]",dL="[object Function]",hL="[object Map]",pL="[object Number]",vL="[object Object]",gL="[object RegExp]",yL="[object Set]",mL="[object String]",bL="[object WeakMap]",xL="[object ArrayBuffer]",_L="[object DataView]",OL="[object Float32Array]",wL="[object Float64Array]",SL="[object Int8Array]",ML="[object Int16Array]",EL="[object Int32Array]",AL="[object Uint8Array]",TL="[object Uint8ClampedArray]",PL="[object Uint16Array]",CL="[object Uint32Array]",qn={};qn[OL]=qn[wL]=qn[SL]=qn[ML]=qn[EL]=qn[AL]=qn[TL]=qn[PL]=qn[CL]=!0,qn[sL]=qn[cL]=qn[xL]=qn[lL]=qn[_L]=qn[uL]=qn[fL]=qn[dL]=qn[hL]=qn[pL]=qn[vL]=qn[gL]=qn[yL]=qn[mL]=qn[bL]=!1;function kL(t){return wi(t)&&Ep(t.length)&&!!qn[rt(t)]}var RL=kL;function LL(t){return function(e){return t(e)}}var Ap=LL,T1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gc=T1&&typeof module=="object"&&module&&!module.nodeType&&module,NL=Gc&&Gc.exports===T1,Tp=NL&&_t.process,IL=function(){try{var t=Gc&&Gc.require&&Gc.require("util").types;return t||Tp&&Tp.binding&&Tp.binding("util")}catch(e){}}(),Ts=IL,P1=Ts&&Ts.isTypedArray,jL=P1?Ap(P1):RL,C1=jL,DL=Object.prototype,FL=DL.hasOwnProperty;function BL(t,e){var n=wt(t),r=!n&&Mp(t),i=!n&&!r&&Yu(t),a=!n&&!r&&!i&&C1(t),o=n||r||i||a,s=o?YR(t.length,String):[],c=s.length;for(var l in t)(e||FL.call(t,l))&&!(o&&(l=="length"||i&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Vu(l,c)))&&s.push(l);return s}var k1=BL,zL=Object.prototype;function GL(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||zL;return t===n}var Xu=GL;function WL(t,e){return function(n){return t(e(n))}}var R1=WL,HL=R1(Object.keys,Object),YL=HL,VL=Object.prototype,XL=VL.hasOwnProperty;function $L(t){if(!Xu(t))return YL(t);var e=[];for(var n in Object(t))XL.call(t,n)&&n!="constructor"&&e.push(n);return e}var UL=$L;function qL(t){return t!=null&&Ep(t.length)&&!zt(t)}var Do=qL;function ZL(t){return Do(t)?k1(t):UL(t)}var Fo=ZL;function KL(t){return x1(t,Fo,Sp)}var Pp=KL,QL=1,JL=Object.prototype,tN=JL.hasOwnProperty;function eN(t,e,n,r,i,a){var o=n&QL,s=Pp(t),c=s.length,l=Pp(e),u=l.length;if(c!=u&&!o)return!1;for(var f=c;f--;){var d=s[f];if(!(o?d in e:tN.call(e,d)))return!1}var h=a.get(t),p=a.get(e);if(h&&p)return h==e&&p==t;var v=!0;a.set(t,e),a.set(e,t);for(var g=o;++fglMatrix.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function jut(t,e){var n=qI(t,e);return Math.acos(2*n*n-1)}function Ua(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],c=n[1],l=n[2],u=n[3];return t[0]=r*u+o*s+i*l-a*c,t[1]=i*u+o*c+a*s-r*l,t[2]=a*u+o*l+r*c-i*s,t[3]=o*u-r*s-i*c-a*l,t}function Dut(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*s,t[1]=i*c+a*s,t[2]=a*c-i*s,t[3]=o*c-r*s,t}function Fut(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c-a*s,t[1]=i*c+o*s,t[2]=a*c+r*s,t[3]=o*c-i*s,t}function But(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),c=Math.cos(n);return t[0]=r*c+i*s,t[1]=i*c-r*s,t[2]=a*c+o*s,t[3]=o*c-a*s,t}function zut(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function VI(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),c=o>0?s*Math.sin(o)/o:0;return t[0]=n*c,t[1]=r*c,t[2]=i*c,t[3]=s*Math.cos(o),t}function XI(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function Gut(t,e,n){return XI(t,e),UI(t,t,n),VI(t,t),t}function Vp(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=n[0],l=n[1],u=n[2],f=n[3],d,h,p,v,g;return h=i*c+a*l+o*u+s*f,h<0&&(h=-h,c=-c,l=-l,u=-u,f=-f),1-h>Ls.Ib?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function Wut(t){var e=glMatrix.RANDOM(),n=glMatrix.RANDOM(),r=glMatrix.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t}function Xp(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function Hut(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function $I(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function Ju(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}function Yut(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var Vut=sr.d9,$p=sr.al,tf=sr.JG,Xut=sr.t8,$ut=sr.IH,fb=Ua,UI=sr.bA,qI=sr.AK,Uut=sr.t7,qut=sr.kE,Zut=null,Kut=sr.we,Qut=null,ef=sr.Fv,Jut=sr.I6,tft=sr.fS,eft=function(){var t=ot.create(),e=ot.fromValues(1,0,0),n=ot.fromValues(0,1,0);return function(r,i,a){var o=ot.dot(i,a);return o<-.999999?(ot.cross(t,e,i),ot.len(t)<1e-6&&ot.cross(t,n,i),ot.normalize(t,t),$a(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(ot.cross(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,ef(r,r))}}(),nft=function(){var t=br(),e=br();return function(n,r,i,a,o,s){return Vp(t,r,o,s),Vp(e,i,a,s),Vp(n,t,e,2*s*(1-s)),n}}(),rft=function(){var t=ub();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],ef(e,$I(e,t))}}(),Vc=yt(1153),xr=yt(72909);function ui(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ye=yt(63385),nf=yt(33317),tr=function(t){return(0,nf.Z)(t,"String")},cr=yt(58046),Xc={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function db(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Xc[n]===e.length-1&&"achlmqstvz".includes(n)})}function hb(t){return db(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function pb(t){return hb(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}var vb={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function gb(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Xc[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Xc[n]))),!!Xc[n]););}function ZI(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function KI(t){return t>=48&&t<=57||t===43||t===45||t===46}function Ns(t){return t>=48&&t<=57}function QI(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!Ns(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function rf(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(ej(i)&&(o===3||o===4)?ZI(t):QI(t),t.err.length)return;t.data.push(t.param),rf(t),t.index=t.max||!KI(n.charCodeAt(t.index)))break}gb(t)}var rj=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function ij(t){if(db(t))return[].concat(t);var e=new rj(t);for(rf(e);e.index=a)o={x:n,y:r};else{var s=qa([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function yb(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function sj(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Up(t,e,s,c,l).point;var b=(t-s)/2,_=(e-c)/2,O={x:d(m)*b+f(m)*_,y:-f(m)*b+d(m)*_},w=Math.pow(O.x,2)/Math.pow(v,2)+Math.pow(O.y,2)/Math.pow(g,2);w>1&&(v*=h(w),g*=h(w));var M=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(O.y,2)-Math.pow(g,2)*Math.pow(O.x,2),E=Math.pow(v,2)*Math.pow(O.y,2)+Math.pow(g,2)*Math.pow(O.x,2),A=M/E;A=A<0?0:A;var P=(a!==o?1:-1)*h(A),C={x:P*(v*O.y/g),y:P*(-(g*O.x)/v)},j={x:d(m)*C.x-f(m)*C.y+(t+s)/2,y:f(m)*C.x+d(m)*C.y+(e+c)/2},N={x:(O.x-C.x)/v,y:(O.y-C.y)/g},k=yb({x:1,y:0},N),R={x:(-O.x-C.x)/v,y:(-O.y-C.y)/g},D=yb(N,R);!o&&D>0?D-=2*p:o&&D<0&&(D+=2*p),D%=2*p;var F=k+D*l,B=v*d(F),z=g*f(F),Y={x:d(m)*B-f(m)*z+j.x,y:f(m)*B+d(m)*z+j.y};return Y}function cj(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,_=e,O=0,w=[b,_,O],M=[b,_],E=0,A={x:0,y:0},P=[{x:b,y:_}];m&&l<=0&&(A={x:b,y:_});for(var C=0;C<=y;C+=1){if(E=C/y,f=sj(t,e,n,r,i,a,o,s,c,E),b=f.x,_=f.y,h&&P.push({x:b,y:_}),v&&(O+=ui(M,[b,_])),M=[b,_],m&&O>=l&&l>w[2]){var j=(O-l)/(O-w[2]);A={x:M[0]*(1-j)+w[0]*j,y:M[1]*(1-j)+w[1]*j}}w=[b,_,O]}return m&&l>=O&&(A={x:s,y:c}),{length:O,point:A,min:{x:Math.min.apply(null,P.map(function(N){return N.x})),y:Math.min.apply(null,P.map(function(N){return N.y}))},max:{x:Math.max.apply(null,P.map(function(N){return N.x})),y:Math.max.apply(null,P.map(function(N){return N.y}))}}}function lj(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function mb(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,_=0,O=[m,b,_],w=[m,b],M=0,E={x:0,y:0},A=[{x:m,y:b}];y&&c<=0&&(E={x:m,y:b});for(var P=0;P<=g;P+=1){if(M=P/g,u=lj(t,e,n,r,i,a,o,s,M),m=u.x,b=u.y,d&&A.push({x:m,y:b}),p&&(_+=ui(w,[m,b])),w=[m,b],y&&_>=c&&c>O[2]){var C=(_-c)/(_-O[2]);E={x:w[0]*(1-C)+O[0]*C,y:w[1]*(1-C)+O[1]*C}}O=[m,b,_]}return y&&c>=_&&(E={x:o,y:s}),{length:_,point:E,min:{x:Math.min.apply(null,A.map(function(j){return j.x})),y:Math.min.apply(null,A.map(function(j){return j.y}))},max:{x:Math.max.apply(null,A.map(function(j){return j.x})),y:Math.max.apply(null,A.map(function(j){return j.y}))}}}function uj(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function fj(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],_=[g,y],O=0,w={x:0,y:0},M=[{x:g,y}];v&&o<=0&&(w={x:g,y});for(var E=0;E<=p;E+=1){if(O=E/p,c=uj(t,e,n,r,i,a,O),g=c.x,y=c.y,u&&M.push({x:g,y}),d&&(m+=ui(_,[g,y])),_=[g,y],v&&m>=o&&o>b[2]){var A=(m-o)/(m-b[2]);w={x:_[0]*(1-A)+b[0]*A,y:_[1]*(1-A)+b[1]*A}}b=[g,y,m]}return v&&o>=m&&(w={x:i,y:a}),{length:m,point:w,min:{x:Math.min.apply(null,M.map(function(P){return P.x})),y:Math.min.apply(null,M.map(function(P){return P.y}))},max:{x:Math.max.apply(null,M.map(function(P){return P.x})),y:Math.max.apply(null,M.map(function(P){return P.y}))}}}function bb(t,e,n){for(var r,i,a,o,s,c,l=af(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],_=[],O=0,w={x:0,y:0},M=w,E=w,A=w,P=0,C=0,j=l.length;C=e&&(A=E),_.push(M),b.push(w),P+=O,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=P&&(A={x:p,y:v}),{length:P,point:A,min:{x:Math.min.apply(null,b.map(function(N){return N.x})),y:Math.min.apply(null,b.map(function(N){return N.y}))},max:{x:Math.max.apply(null,_.map(function(N){return N.x})),y:Math.max.apply(null,_.map(function(N){return N.y}))}}}function dj(t,e){return bb(t,void 0,(0,S.pi)((0,S.pi)({},e),{bbox:!1,length:!0})).length}var Dr=function(t){return Array.isArray?Array.isArray(t):(0,nf.Z)(t,"Array")},of=function(t){if(Dr(t))return t.reduce(function(e,n){return Math.min(e,n)},t[0])},sf=function(t){if(Dr(t))return t.reduce(function(e,n){return Math.max(e,n)},t[0])},hj=1e-5;function $c(t,e,n){return n===void 0&&(n=hj),Math.abs(t-e)7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}function gj(t){return pb(t)&&t.every(function(e){var n=e[0];return"MC".includes(n)})}function cf(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}}function qp(t,e,n,r,i,a,o,s,c,l){var u=t,f=e,d=n,h=r,p=s,v=c,g=Math.PI*120/180,y=Math.PI/180*(+i||0),m=[],b,_,O,w,M;if(l)_=l[0],O=l[1],w=l[2],M=l[3];else{b=cf(u,f,-y),u=b.x,f=b.y,b=cf(p,v,-y),p=b.x,v=b.y;var E=(u-p)/2,A=(f-v)/2,P=E*E/(d*d)+A*A/(h*h);P>1&&(P=Math.sqrt(P),d*=P,h*=P);var C=d*d,j=h*h,N=(a===o?-1:1)*Math.sqrt(Math.abs((C*j-C*A*A-j*E*E)/(C*A*A+j*E*E)));w=N*d*A/h+(u+p)/2,M=N*-h*E/d+(f+v)/2,_=Math.asin(((f-M)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),O=Math.asin(((v-M)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),_=uO&&(_-=Math.PI*2),!o&&O>_&&(O-=Math.PI*2)}var k=O-_;if(Math.abs(k)>g){var R=O,D=p,F=v;O=_+g*(o&&O>_?1:-1),p=w+d*Math.cos(O),v=M+h*Math.sin(O),m=qp(p,v,d,h,i,0,o,D,F,[O,R,w,M])}k=O-_;var B=Math.cos(_),z=Math.sin(_),Y=Math.cos(O),$=Math.sin(O),tt=Math.tan(k/4),it=4/3*d*tt,St=4/3*h*tt,Ft=[u,f],Xt=[u+it*z,f-St*B],Pt=[p+it*$,v-St*Y],Ct=[p,v];if(Xt[0]=2*Ft[0]-Xt[0],Xt[1]=2*Ft[1]-Xt[1],l)return Xt.concat(Pt,Ct,m);m=Xt.concat(Pt,Ct,m);for(var se=[],ce=0,Oe=m.length;ce=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:wb(v[0],v[1],f)}function xj(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function _j(t){var e=0,n=0,r=0;return Zp(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=xj(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function Sb(t){return _j(t)>=0}function Oj(t){var e=t.slice(1).map(function(n,r,i){return r?i[r-1].slice(-2).concat(n.slice(1)):t[0].slice(1).concat(n.slice(1))}).map(function(n){return n.map(function(r,i){return n[n.length-i-2*(1-i%2)]})}).reverse();return[["M"].concat(e[0].slice(0,2))].concat(e.map(function(n){return["C"].concat(n.slice(2))}))}function wj(t){return t.map(function(e){return Array.isArray(e)?[].concat(e):e})}function Sj(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function Mj(t,e){var n=t.length-1,r=[],i=0,a=0,o=Sj(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=ui(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}var Ej=function(t){return(0,nf.Z)(t,"Boolean")},Mb=Ej,zo=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"},Aj=function(t){return t===void 0},er=Aj;function Tj(t,e,n){return bb(t,e,(0,S.pi)((0,S.pi)({},n),{bbox:!1,length:!0})).point}var Pj=yt(19007);function Hr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function lf(t,e){var n=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(t),!1)),r=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(e),!1)),i=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(t),!1)),a=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function Eb(t){return(t+Math.PI*2)%(Math.PI*2)}function Ab(t,e){var n=Math.abs(t);return e>0?n:n*-1}function Cj(t,e,n,r,i,a){var o=n,s=r;if(o===0||s===0)return{x:t,y:e};for(var c=i-t,l=a-e,u=Math.abs(c),f=Math.abs(l),d=o*o,h=s*s,p=Math.PI/4,v=0,g=0,y=0;y<4;y++){v=o*Math.cos(p),g=s*Math.sin(p);var m=(d-h)*Math.pow(Math.cos(p),3)/o,b=(h-d)*Math.pow(Math.sin(p),3)/s,_=v-m,O=g-b,w=u-m,M=f-b,E=Math.hypot(O,_),A=Math.hypot(M,w),P=E*Math.asin((_*M-O*w)/(E*A)),C=P/Math.sqrt(d+h-v*v-g*g);p+=C,p=Math.min(Math.PI/2,Math.max(0,p))}return{x:t+Ab(v,c),y:e+Ab(g,l)}}function kj(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}function Rj(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}function Lj(t,e,n){return Math.atan(-e/t*Math.tan(n))}function Nj(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function Ij(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function jj(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function Dj(t,e,n,r){var i=Math.atan2(r*t,n*e);return(i+Math.PI*2)%(Math.PI*2)}function Tb(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function Pb(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}function Fj(t,e,n,r,i,a,o){for(var s=Lj(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=Nj(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}function ift(t,e,n,r,i,a,o,s,c){var l=Pb(s-t,c-e,-i),u=__read(l,2),f=u[0],d=u[1],h=Cj(0,0,n,r,f,d),p=Dj(n,r,h.x,h.y);po&&(h=Tb(n,r,o));var v=Pb(h.x,h.y,i);return{x:v[0]+t,y:v[1]+e}}function aft(t,e,n,r,i,a,o,s){var c=(o-a)*s+a,l=kj(t,e,n,r,i,a,o,c),u=Rj(t,e,n,r,i,a,o,c);return Eb(Math.atan2(u,l))}var Bj=1e-4;function Cb(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,(0,S.ev)([],(0,S.CR)(t.concat([h])),!1)),i.apply(void 0,(0,S.ev)([],(0,S.CR)(e.concat([h])),!1))],v=Hr(c[0],c[1],p[0],p[1]);v=0&&vs?Hr(n,r,i,a):Rb(t,e,n,r,i,a)}function Rb(t,e,n,r,i,a){var o=[n-t,r-e];if(Vc.I6(o,[0,0]))return Math.sqrt((i-t)*(i-t)+(a-e)*(a-e));var s=[-o[1],o[0]];Vc.Fv(s,s);var c=[i-t,a-e];return Math.abs(Vc.AK(c,s))}function sft(t,e,n,r){return Math.atan2(r-e,n-t)}function Go(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function Lb(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function Nb(t,e,n,r){var i=-3*t+9*e-9*n+3*r,a=6*t-12*e+6*n,o=3*e-3*t,s=[],c,l,u;if($c(i,0))$c(a,0)||(c=-o/a,c>=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;$c(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function Wj(t,e,n,r,i,a,o,s,c){var l=Go(t,n,i,o,c),u=Go(e,r,a,s,c),f=aa(t,e,n,r,c),d=aa(n,r,i,a,c),h=aa(i,a,o,s,c),p=aa(f.x,f.y,d.x,d.y,c),v=aa(d.x,d.y,h.x,h.y,c);return[[t,e,f.x,f.y,p.x,p.y,l,u],[l,u,v.x,v.y,h.x,h.y,o,s]]}function Kp(t,e,n,r,i,a,o,s,c){if(c===0)return zj([t,n,i,o],[e,r,a,s]);var l=Wj(t,e,n,r,i,a,o,s,.5),u=__spreadArray(__spreadArray([],__read(l[0]),!1),[c-1],!1),f=__spreadArray(__spreadArray([],__read(l[1]),!1),[c-1],!1);return Kp.apply(void 0,__spreadArray([],__read(u),!1))+Kp.apply(void 0,__spreadArray([],__read(f),!1))}function Hj(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Nb(t,n,i,o),f=Nb(e,r,a,s),d=0;d1||e<0||t.length<2)return null;var n=jb(t),r=n.segments,i=n.totalLength;if(i===0)return{x:t[0][0],y:t[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+f){var d=(e-a)/f;o=aa(l[0],l[1],u[0],u[1],d);break}a+=f}return o}function Bb(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=jb(t),r=n.segments,i=n.totalLength,a=0,o=0,s=0;s=a&&e<=a+f){o=Math.atan2(u[1]-l[1],u[0]-l[0]);break}a+=f}return o}function zb(t,e,n){for(var r=1/0,i=0;i=0?[i]:[]}function $j(t,e,n,r,i,a,o){var s=Uc(t,n,i,o),c=Uc(e,r,a,o),l=aa(t,e,n,r,o),u=aa(n,r,i,a,o);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,i,a]]}function Qp(t,e,n,r,i,a,o){if(o===0)return(Hr(t,e,n,r)+Hr(n,r,i,a)+Hr(t,e,i,a))/2;var s=$j(t,e,n,r,i,a,.5),c=s[0],l=s[1];return c.push(o-1),l.push(o-1),Qp.apply(void 0,__spreadArray([],__read(c),!1))+Qp.apply(void 0,__spreadArray([],__read(l),!1))}function Uj(t,e,n,r,i,a){var o=Gb(t,n,i)[0],s=Gb(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(Uc(t,n,i,o)),s!==void 0&&l.push(Uc(e,r,a,s)),lf(c,l)}function bft(t,e,n,r,i,a){return Qp(t,e,n,r,i,a,3)}function qj(t,e,n,r,i,a,o,s){return Cb([t,n,i],[e,r,a],o,s,Uc)}function Zj(t,e,n,r,i,a,o,s){var c=qj(t,e,n,r,i,a,o,s);return Hr(c.x,c.y,o,s)}var Kj=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof yt.g!="undefined"?yt.g:typeof self!="undefined"?self:{},Wb={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Kj,function(){function n(O,w,M,E,A){r(O,w,M||0,E||O.length-1,A||a)}function r(O,w,M,E,A){for(;E>M;){if(E-M>600){var P=E-M+1,C=w-M+1,j=Math.log(P),N=.5*Math.exp(2*j/3),k=.5*Math.sqrt(j*N*(P-N)/P)*(C-P/2<0?-1:1),R=Math.max(M,Math.floor(w-C*N/P+k)),D=Math.min(E,Math.floor(w+(P-C)*N/P+k));r(O,w,R,D,A)}var F=O[w],B=M,z=E;for(i(O,M,w),A(O[E],F)>0&&i(O,M,E);B0;)z--}A(O[M],F)===0?i(O,M,z):(z++,i(O,z,E)),z<=w&&(M=z+1),w<=z&&(E=z-1)}}function i(O,w,M){var E=O[w];O[w]=O[M],O[M]=E}function a(O,w){return Ow?1:0}var o=function(w){w===void 0&&(w=9),this._maxEntries=Math.max(4,w),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(w){var M=this.data,E=[];if(!m(w,M))return E;for(var A=this.toBBox,P=[];M;){for(var C=0;C=0&&P[M].children.length>this._maxEntries;)this._split(P,M),M--;this._adjustParentBBoxes(A,P,M)},o.prototype._split=function(w,M){var E=w[M],A=E.children.length,P=this._minEntries;this._chooseSplitAxis(E,P,A);var C=this._chooseSplitIndex(E,P,A),j=b(E.children.splice(C,E.children.length-C));j.height=E.height,j.leaf=E.leaf,c(E,this.toBBox),c(j,this.toBBox),M?w[M-1].children.push(j):this._splitRoot(E,j)},o.prototype._splitRoot=function(w,M){this.data=b([w,M]),this.data.height=w.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(w,M,E){for(var A,P=1/0,C=1/0,j=M;j<=E-M;j++){var N=l(w,0,j,this.toBBox),k=l(w,j,E,this.toBBox),R=g(N,k),D=h(N)+h(k);R=M;D--){var F=w.children[D];u(j,w.leaf?P(F):F),N+=p(j)}return N},o.prototype._adjustParentBBoxes=function(w,M,E){for(var A=E;A>=0;A--)u(M[A],w)},o.prototype._condense=function(w){for(var M=w.length-1,E=void 0;M>=0;M--)w[M].children.length===0?M>0?(E=w[M-1].children,E.splice(E.indexOf(w[M]),1)):this.clear():c(w[M],this.toBBox)};function s(O,w,M){if(!M)return w.indexOf(O);for(var E=0;E=O.minX&&w.maxY>=O.minY}function b(O){return{children:O,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(O,w,M,E,A){for(var P=[w,M];P.length;)if(M=P.pop(),w=P.pop(),!(M-w<=E)){var C=w+Math.ceil((M-w)/E/2)*E;n(O,C,w,M,A),P.push(w,C,C,M)}}return o})})(Wb);var Qj=Wb.exports,bt;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(bt||(bt={}));var Is;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(Is||(Is={}));var Za=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),Jj=function(){function t(e){this.clipSpaceNearZ=Is.NEGATIVE_ONE,this.plugins=[],this.config=(0,S.pi)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function js(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Jp(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function ff(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Hb(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function t6(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function e6(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Ds(t){return t===void 0?0:t>360||t<-360?t%360:t}function ei(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?ot.clone(t):(0,xr.Z)(t)?ot.fromValues(t,e,n):ot.fromValues(t[0],t[1]||e,t[2]||n)}function nr(t){return t*(Math.PI/180)}function Li(t){return t*(180/Math.PI)}function xft(t){return t=t%400,t<0&&(t+=400),t/400*360}function _ft(t){return t/360}function n6(t){return 360*t}function r6(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function i6(t,e){var n,r,i=Math.PI*.5,a=(0,S.CR)(qt.getScaling(ot.create(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function t0(t,e){return e.length===16?i6(t,e):r6(t,e)}function a6(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return YI(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function o6(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function Yb(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eze[1][2]&&(a[0]=-a[0]),ze[0][2]>ze[2][0]&&(a[1]=-a[1]),ze[1][0]>ze[0][1]&&(a[2]=-a[2]),!0}function c6(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function l6(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function e0(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var Er=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){js(this.center,e),js(this.halfExtents,n),Jp(this.min,this.center,this.halfExtents),ff(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){ff(this.center,n,e),Hb(this.center,this.center,.5),Jp(this.halfExtents,n,e),Hb(this.halfExtents,this.halfExtents,.5),js(this.min,e),js(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],_=e.halfExtents,O=_[0],w=_[1],M=_[2],E=y-O,A=y+O,P=m-w,C=m+w,j=b-M,N=b+M;Ef&&(f=A),Ph&&(h=C),jv&&(v=N),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),_=Math.abs(f),O=Math.abs(d),w=Math.abs(h),M=Math.abs(p),E=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+_*o[1]+O*o[2],i[2]=w*o[0]+M*o[1]+E*o[2],Jp(this.min,r,i),ff(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=t6([0,0,0],this.getMin(),e.getMin()),i=e6([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?js([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?js([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),u6=function(){function t(e,n){this.distance=e||0,this.normal=n||ot.fromValues(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return ot.dot(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/ot.len(this.normal);ot.scale(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&ot.lerp(r,e,n,o),s},t}(),Ka;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(Ka||(Ka={}));var f6=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new u6)}return t.prototype.extractFromVPMatrix=function(e){var n=(0,S.CR)(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];ot.set(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,ot.set(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,ot.set(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,ot.set(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,ot.set(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,ot.set(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Cr=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Wo=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),Tn="Method not implemented.",Fs="Use document.documentElement instead.",d6="Cannot append a destroyed element.",On;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(On||(On={}));var Zc;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(Zc||(Zc={}));var fi;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(fi||(fi={}));var Xb={UPDATED:"updated"},$b=2e-4,Ub=function(){function t(){this.clipSpaceNearZ=Is.NEGATIVE_ONE,this.eventEmitter=new Yp.Z,this.matrix=qt.create(),this.right=ot.fromValues(1,0,0),this.up=ot.fromValues(0,1,0),this.forward=ot.fromValues(0,0,1),this.position=ot.fromValues(0,0,1),this.focalPoint=ot.fromValues(0,0,0),this.distanceVector=ot.fromValues(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=qt.create(),this.projectionMatrixInverse=qt.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=On.EXPLORING,this.trackingMode=Zc.DEFAULT,this.projectionMode=fi.PERSPECTIVE,this.frustum=new f6,this.orthoMatrix=qt.create()}return t.prototype.isOrtho=function(){return this.projectionMode===fi.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===On.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===On.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==On.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return qt.invert(qt.create(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=qt.fromTranslation(qt.create(),[e,n,0]);this.jitteredProjectionMatrix=qt.multiply(qt.create(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===fi.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===fi.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===fi.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===fi.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=ot.fromValues(c-i,l-a,0),f=ot.dot(u,this.right)/ot.length(this.right),d=ot.dot(u,this.up)/ot.length(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=fi.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(nr(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return o6(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===Is.ZERO),qt.scale(this.projectionMatrix,this.projectionMatrix,ot.fromValues(1,-1,1)),qt.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=fi.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===Is.NEGATIVE_ONE?qt.ortho(this.projectionMatrix,d,h,v,p,a,o):qt.orthoZO(this.projectionMatrix,d,h,v,p,a,o),qt.scale(this.projectionMatrix,this.projectionMatrix,ot.fromValues(1,-1,1)),qt.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=ei(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=ot.fromValues(0,1,0);if(this.focalPoint=ei(e,n,r),this.trackingMode===Zc.CINEMATIC){var a=ot.subtract(ot.create(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=ot.length(a),s=Li(Math.asin(n/o)),c=90+Li(Math.atan2(r,e)),l=qt.create();qt.rotateY(l,l,nr(c)),qt.rotateX(l,l,nr(s)),i=ot.transformMat4(ot.create(),[0,1,0],l)}return qt.invert(this.matrix,qt.lookAt(qt.create(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance<$b&&(this.distance=$b),this.dollyingStep=this.distance/100;var n=ot.create();e=this.distance;var r=this.forward,i=this.focalPoint;return n[0]=e*r[0]+i[0],n[1]=e*r[1]+i[1],n[2]=e*r[2]+i[2],this._setPosition(n),this.triggerUpdate(),this},t.prototype.setMaxDistance=function(e){return this.maxDistance=e,this},t.prototype.setMinDistance=function(e){return this.minDistance=e,this},t.prototype.setAzimuth=function(e){return this.azimuth=Ds(e),this.computeMatrix(),this._getAxes(),this.type===On.ORBITING||this.type===On.EXPLORING?this._getPosition():this.type===On.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getAzimuth=function(){return this.azimuth},t.prototype.setElevation=function(e){return this.elevation=Ds(e),this.computeMatrix(),this._getAxes(),this.type===On.ORBITING||this.type===On.EXPLORING?this._getPosition():this.type===On.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getElevation=function(){return this.elevation},t.prototype.setRoll=function(e){return this.roll=Ds(e),this.computeMatrix(),this._getAxes(),this.type===On.ORBITING||this.type===On.EXPLORING?this._getPosition():this.type===On.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.prototype.getRoll=function(){return this.roll},t.prototype._update=function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()},t.prototype.computeMatrix=function(){var e=$a(br(),[0,0,1],nr(this.roll));qt.identity(this.matrix);var n=$a(br(),[1,0,0],nr((this.rotateWorld&&this.type!==On.TRACKING||this.type===On.TRACKING?1:-1)*this.elevation)),r=$a(br(),[0,1,0],nr((this.rotateWorld&&this.type!==On.TRACKING||this.type===On.TRACKING?1:-1)*this.azimuth)),i=Ua(br(),r,n);i=Ua(br(),i,e);var a=qt.fromQuat(qt.create(),i);this.type===On.ORBITING||this.type===On.EXPLORING?(qt.translate(this.matrix,this.matrix,this.focalPoint),qt.multiply(this.matrix,this.matrix,a),qt.translate(this.matrix,this.matrix,[0,0,this.distance])):this.type===On.TRACKING&&(qt.translate(this.matrix,this.matrix,this.position),qt.multiply(this.matrix,this.matrix,a))},t.prototype._setPosition=function(e,n,r){this.position=ei(e,n,r);var i=this.matrix;i[12]=this.position[0],i[13]=this.position[1],i[14]=this.position[2],i[15]=1,this._getOrthoMatrix()},t.prototype._getAxes=function(){ot.copy(this.right,ei(sr.fF(sr.Ue(),[1,0,0,0],this.matrix))),ot.copy(this.up,ei(sr.fF(sr.Ue(),[0,1,0,0],this.matrix))),ot.copy(this.forward,ei(sr.fF(sr.Ue(),[0,0,1,0],this.matrix))),ot.normalize(this.right,this.right),ot.normalize(this.up,this.up),ot.normalize(this.forward,this.forward)},t.prototype._getAngles=function(){var e=this.distanceVector[0],n=this.distanceVector[1],r=this.distanceVector[2],i=ot.length(this.distanceVector);if(i===0){this.elevation=0,this.azimuth=0;return}this.type===On.TRACKING?(this.elevation=Li(Math.asin(n/i)),this.azimuth=Li(Math.atan2(-e,-r))):this.rotateWorld?(this.elevation=Li(Math.asin(n/i)),this.azimuth=Li(Math.atan2(-e,-r))):(this.elevation=-Li(Math.asin(n/i)),this.azimuth=-Li(Math.atan2(-e,-r)))},t.prototype._getPosition=function(){ot.copy(this.position,ei(sr.fF(sr.Ue(),[0,0,0,1],this.matrix))),this._getDistance()},t.prototype._getFocalPoint=function(){ot.transformMat3(this.distanceVector,[0,0,-this.distance],HI(ub(),this.matrix)),ot.add(this.focalPoint,this.position,this.distanceVector),this._getDistance()},t.prototype._getDistance=function(){this.distanceVector=ot.subtract(ot.create(),this.focalPoint,this.position),this.distance=ot.length(this.distanceVector),this.dollyingStep=this.distance/100},t.prototype._getOrthoMatrix=function(){if(this.projectionMode===fi.ORTHOGRAPHIC){var e=this.position,n=$a(br(),[0,0,1],-this.roll*Math.PI/180);qt.fromRotationTranslationScaleOrigin(this.orthoMatrix,n,ot.fromValues((this.rright-this.left)/2-e[0],(this.top-this.bottom)/2-e[1],0),ot.fromValues(this.zoom,this.zoom,1),e)}},t.prototype.triggerUpdate=function(){if(this.enableUpdate){var e=this.getViewTransform(),n=qt.multiply(qt.create(),this.getPerspective(),e);this.getFrustum().extractFromVPMatrix(n),this.eventEmitter.emit(Xb.UPDATED)}},t.prototype.rotate=function(e,n,r){throw new Error(Tn)},t.prototype.pan=function(e,n){throw new Error(Tn)},t.prototype.dolly=function(e){throw new Error(Tn)},t.prototype.createLandmark=function(e,n){throw new Error(Tn)},t.prototype.gotoLandmark=function(e,n){throw new Error(Tn)},t.prototype.cancelLandmarkAnimation=function(){throw new Error(Tn)},t}();function Yr(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i=ne.kEms&&e=Qa.kUnitType&&this.getType()<=Qa.kClampType},t}(),m6=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return Qa.kColorType},e.prototype.to=function(n){return this},e}(df),sa;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(sa||(sa={}));var hf=function(t){(0,S.ZT)(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return Qa.kColorType},e}(df),di=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return Qa.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(df),b6=Yr(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Kb=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function x6(t){if(!t)throw new Error}function Bs(t){return typeof t=="function"}function _6(t){return typeof t=="symbol"}var Oft=function(t){return Object.fromEntries(Object.entries(t).filter(function(e){var n=__read(e,2),r=n[1];return r!==void 0}))},O6={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},a0=Yr(function(t){var e=b6(t),n=O6[e];return e=(n==null?void 0:n.alias)||e,e}),w6=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(x6(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},o0=function(t){return y6(g6(t))},Pn=function(t){(0,S.ZT)(e,t);function e(n,r){r===void 0&&(r=ne.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=v6(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return Qa.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=o0(this.unit);if(r!==o0(n)||r===ne.kUnknown)return null;var i=Zb(this.unit)/Zb(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case ne.kUnknown:break;case ne.kInteger:a=Number(this.value).toFixed(0);break;case ne.kNumber:case ne.kPercentage:case ne.kEms:case ne.kRems:case ne.kPixels:case ne.kDegrees:case ne.kRadians:case ne.kGradians:case ne.kMilliseconds:case ne.kSeconds:case ne.kTurns:{var o=-999999,s=999999,c=this.value,l=i0(this.unit);if(cs){var u=i0(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=w6(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(df),kr=new Pn(0,"px");new Pn(1,"px");var Ea=new Pn(0,"deg"),s0=function(t){(0,S.ZT)(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(m6),Ln=new di("unset"),S6=new di("initial"),M6=new di("inherit"),c0={"":Ln,unset:Ln,initial:S6,inherit:M6},l0=function(t){return c0[t]||(c0[t]=new di(t)),c0[t]},u0=new s0(0,0,0,0,!0),Qb=new s0(0,0,0,0),E6=Yr(function(t,e,n,r){return new s0(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),rr=function(t,e){return e===void 0&&(e=ne.kNumber),new Pn(t,e)},pf=new Pn(50,"%"),f0;(function(t){t[t.Standard=0]="Standard"})(f0||(f0={}));var zs;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})(zs||(zs={}));var Jb={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Wo(0,0,0,0)},oe;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(oe||(oe={}));function A6(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var T6=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(F){throw new Error(e+": "+F)}function r(){var F=i();return e.length>0&&n("Invalid input not EOF"),F}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(F,B,z){return s(B,function(Y){var $=z();return $&&(R(t.comma)||n("Missing comma before color stops")),{type:F,orientation:$,colorStops:b(_)}})}function s(F,B){var z=R(F);if(z){R(t.startCall)||n("Missing (");var Y=B(z);return R(t.endCall)||n("Missing )"),Y}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var F,B=d(),z;return B&&(F=[],F.push(B),z=e,R(t.comma)&&(B=d(),B?F.push(B):e=z)),F}function d(){var F=h()||p();if(F)F.at=g();else{var B=v();if(B){F=B;var z=g();z&&(F.at=z)}else{var Y=y();Y&&(F={type:"default-radial",at:Y})}}return F}function h(){var F=k("shape",/^(circle)/i,0);return F&&(F.style=N()||v()),F}function p(){var F=k("shape",/^(ellipse)/i,0);return F&&(F.style=C()||v()),F}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var F=y();return F||n("Missing positioning value"),F}}function y(){var F=m();if(F.x||F.y)return{type:"position",value:F}}function m(){return{x:C(),y:C()}}function b(F){var B=F(),z=[];if(B)for(z.push(B);R(t.comma);)B=F(),B?z.push(B):n("One extra comma");return z}function _(){var F=O();return F||n("Expected color definition"),F.length=C(),F}function O(){return M()||A()||E()||w()}function w(){return k("literal",t.literalColor,0)}function M(){return k("hex",t.hexColor,1)}function E(){return s(t.rgbColor,function(){return{type:"rgb",value:b(P)}})}function A(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(P)}})}function P(){return R(t.number)[1]}function C(){return k("%",t.percentageValue,1)||j()||N()}function j(){return k("position-keyword",t.positionKeywords,1)}function N(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(F,B,z){var Y=R(B);if(Y)return{type:F,value:Y[z]}}function R(F){var B=/^[\n\r\t\s]+/.exec(e);B&&D(B[0].length);var z=F.exec(e);return z&&D(z[0].length),z}function D(F){e=e.substring(F)}return function(F){return e=F,r()}}();function P6(t,e,n){var r=nr(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function C6(t,e,n,r,i){var a=n.value,o=r.value;n.unit===ne.kPercentage&&(a=n.value/100*t),r.unit===ne.kPercentage&&(o=r.value/100*e);var s=Math.max(ui([0,0],[a,o]),ui([0,e],[a,o]),ui([t,e],[a,o]),ui([t,0],[a,o]));return i&&(i instanceof Pn?s=i.value:i instanceof di&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(ui([0,0],[a,o]),ui([0,e],[a,o]),ui([t,e],[a,o]),ui([t,0],[a,o]))))),{x:a,y:o,r:s}}var k6=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,R6=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,L6=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,tx=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function N6(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=T6(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;N6(u);var f=u.map(function(b){return{offset:rr(Number(b.length.value),"%"),color:A6(b)}});if(c==="linear-gradient")return new hf(sa.LinearGradient,{angle:l?j6(l):Ea,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=D6(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=l0(m):v=rr(m,y)}return new hf(sa.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=k6.exec(t);if(i){var a=((e=i[2].match(tx))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new hf(sa.LinearGradient,{angle:rr(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=(0,S.CR)(s,2),l=c[0],u=c[1];return{offset:rr(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=B6(t);if(o)if(tr(o))t=o;else return[new hf(sa.RadialGradient,o)]}else if(r==="p")return z6(t)}});function B6(t){var e,n=R6.exec(t);if(n){var r=((e=n[4].match(tx))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:rr(50,"%"),cy:rr(50,"%"),steps:r.map(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];return{offset:rr(Number(o)*100,"%"),color:s}})}}return null}function z6(t){var e=L6.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function wft(t){return!!t.type&&!!t.value}function Kc(t){return t&&!!t.image}function vf(t){return t&&!(0,ye.Z)(t.r)&&!(0,ye.Z)(t.g)&&!(0,ye.Z)(t.b)}var Aa=Yr(function(t){if(Kc(t))return(0,S.pi)({repetition:"repeat"},t);if((0,ye.Z)(t)&&(t=""),t==="transparent")return Qb;t==="currentColor"&&(t="black");var e=F6(t);if(e)return e;var n=Pj.ZP(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),E6.apply(void 0,(0,S.ev)([],(0,S.CR)(r),!1))});function G6(t,e){if(!(!vf(t)||!vf(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round((0,cr.Z)(r[i],0,255));return r[3]=(0,cr.Z)(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Qc(t,e){if((0,ye.Z)(e))return rr(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return rr(Number(e),"px");if("deg".search(t)>=0)return rr(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return rr(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var W6=Yr(function(t){return Qc(new RegExp("px","g"),t)});Yr(function(t){return Qc(new RegExp("%","g"),t)});var Gs=function(t){return(0,xr.Z)(t)||isFinite(Number(t))?rr(Number(t)||0,"px"):Qc(new RegExp("px|%|em|rem","g"),t)},ex=Yr(function(t){return Qc(new RegExp("deg|rad|grad|turn","g"),t)});function H6(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=o0(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=i0(t.unit)):(Pn.isLength(t.unit)||Pn.isLength(e.unit))&&(o=Ei(t,i,n),s=Ei(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function Mi(t){var e=0;return t.unit===ne.kDegrees?e=t.value:t.unit===ne.kRadians?e=Li(Number(t.value)):t.unit===ne.kTurns&&(e=n6(Number(t.value))),e}function d0(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):tr(t)?n=t.split(" ").map(function(r){return Number(r)}):(0,xr.Z)(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function nx(t){return tr(t)?t.split(" ").map(function(e){return Gs(e)}):t.map(function(e){return Gs(e.toString())})}function Ei(t,e,n){if(t.value===0)return 0;if(t.unit===ne.kPixels)return Number(t.value);if(t.unit===ne.kPercentage&&n){var r=n.nodeName===bt.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var Y6=function(t){return Qc(/deg|rad|grad|turn|px|%/g,t)},V6=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function rx(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,V6.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return Y6(a)||Aa(a)})}),e.lastIndex===t.length)return n}return[]}function ix(t){return t.toString()}var Ho=Yr(function(t){return typeof t=="number"?rr(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?rr(Number(t)):rr(0)});Yr(function(t){return tr(t)?t.split(" ").map(Ho):t.map(Ho)});function h0(t,e){return[t,e,ix]}function p0(t,e){return function(n,r){return[n,r,function(i){return ix((0,cr.Z)(i,t,e))}]}}function ax(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function v0(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=dj(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function X6(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function gf(t,e){return t[0]===e[0]&&t[1]===e[1]}function q6(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function ox(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var sx=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},cx=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=xb(r,360);var c=nr(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},_=sx({x:1,y:0},b),O={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},w=sx(b,O);!a&&w>0?w-=2*Math.PI:a&&w<0&&(w+=2*Math.PI),w%=2*Math.PI;var M=_+w*s,E=e*Math.cos(M),A=n*Math.sin(M),P={x:Math.cos(c)*E-Math.sin(c)*A+m.x,y:Math.sin(c)*E+Math.cos(c)*A+m.y,ellipticalArcStartAngle:_,ellipticalArcEndAngle:_+w,ellipticalArcAngle:M,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return P};function Z6(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,_=[(f-g)/n,(d-y)/r],O=[(-1*f-g)/n,(-1*d-y)/r],w=ux([1,0],_),M=ux(_,O);return g0(_,O)<=-1&&(M=Math.PI),g0(_,O)>=1&&(M=0),o===0&&M>0&&(M=M-2*Math.PI),o===1&&M<0&&(M=M+2*Math.PI),{cx:m,cy:b,rx:gf(t,[l,u])?0:n,ry:gf(t,[l,u])?0:r,startAngle:w,endAngle:w+M,xRotation:i,arcFlag:a,sweepFlag:o}}function Q6(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=ot.fromValues(l[1]-a,l[2]-s,0);n&&ot.transformMat4(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=ot.fromValues(l[1]-a,l[2]-s,0),h=ot.fromValues(l[3]-a,l[4]-s,0),p=ot.fromValues(l[5]-a,l[6]-s,0);n&&(ot.transformMat4(d,d,n),ot.transformMat4(h,h,n),ot.transformMat4(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=ot.fromValues(l[6]-a,l[7]-s,0);n&&ot.transformMat4(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=ot.fromValues(l[1]-a,l[2]-s,0),h=ot.fromValues(l[3]-a,l[4]-s,0);n&&(ot.transformMat4(d,d,n),ot.transformMat4(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function J6(t,e,n,r){return[["M",t,e],["L",n,r]]}function fx(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function t8(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function e8(t,e,n,r,i){if(i){var a=(0,S.CR)(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function y0(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case bt.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=J6(a,s,l,f);break;case bt.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=fx(p,p,g,m);break}case bt.ELLIPSE:{var b=t.parsedStyle,_=b.rx,O=_===void 0?0:_,w=b.ry,M=w===void 0?0:w,E=b.cx,g=E===void 0?0:E,A=b.cy,m=A===void 0?0:A;n=fx(O,M,g,m);break}case bt.POLYLINE:case bt.POLYGON:var P=t.parsedStyle.points;n=t8(P.points,t.nodeName===bt.POLYGON);break;case bt.RECT:var C=t.parsedStyle,j=C.width,N=j===void 0?0:j,k=C.height,R=k===void 0?0:k,D=C.x,F=D===void 0?0:D,B=C.y,z=B===void 0?0:B,Y=C.radius,$=Y&&Y.some(function(it){return it!==0});n=e8(N,R,F,z,$&&Y.map(function(it){return(0,cr.Z)(it,0,Math.min(Math.abs(N)/2,Math.abs(R)/2))}));break;case bt.PATH:var tt=t.parsedStyle.path.absolutePath;n=(0,S.ev)([],(0,S.CR)(tt),!1);break}if(n.length)return Q6(n,t,e)}function Sft(t,e,n,r,i,a,o){r===void 0&&(r=0),i===void 0&&(i=0),a===void 0&&(a=0),o===void 0&&(o=0);var s=t.map(function(c,l){var u=c[0],f=t[l+1],d=l===0&&(r!==0||i!==0),h=(l===t.length-1||f&&(f[0]==="M"||f[0]==="Z"))&&a!==0&&o!==0;switch(u){case"M":return d?"M ".concat(c[1]-e+r,",").concat(c[2]-n+i," L ").concat(c[1]-e,",").concat(c[2]-n):"M ".concat(c[1]-e,",").concat(c[2]-n);case"L":return"L ".concat(c[1]-e+(h?a:0),",").concat(c[2]-n+(h?o:0));case"Q":return"Q ".concat(c[1]-e," ").concat(c[2]-n,",").concat(c[3]-e," ").concat(c[4]-n)+(h?" L ".concat(c[3]-e+a,",").concat(c[4]-n+o):"");case"C":return"C ".concat(c[1]-e," ").concat(c[2]-n,",").concat(c[3]-e," ").concat(c[4]-n,",").concat(c[5]-e," ").concat(c[6]-n)+(h?" L ".concat(c[5]-e+a,",").concat(c[6]-n+o):"");case"A":return"A ".concat(c[1]," ").concat(c[2]," ").concat(c[3]," ").concat(c[4]," ").concat(c[5]," ").concat(c[6]-e," ").concat(c[7]-n)+(h?" L ".concat(c[6]-e+a,",").concat(c[7]-n+o):"");case"Z":return"Z"}}).join(" ");return~s.indexOf("NaN")?"":s}var dx=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=af(t)}catch(d){e=af(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}X6(e);var n=$6(e),r=U6(e),i=r.polygons,a=r.polylines,o=Z6(e),s=q6(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},n8=Yr(dx);function m0(t){return tr(t)?n8(t):dx(t)}function r8(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=Zp(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=Zp(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=wb(r,i));var o=Sb(a[0])!==Sb(a[1])?Oj(a[0]):wj(a[0]);return[o,Mj(a[1],o),function(s){return s}]}function hx(t,e){var n;tr(t)?n=t.split(" ").map(function(u){var f=(0,S.CR)(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=Xj(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=kb(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function i8(t,e){return[t.points,e.points,function(n){return n}]}var lr=null;function hi(t){return function(e){var n=0;return t.map(function(r){return r===lr?e[n++]:r})}}function Yo(t){return t}var b0={matrix:["NNNNNN",[lr,lr,0,0,lr,lr,0,0,0,0,1,0,lr,lr,0,1],Yo],matrix3d:["NNNNNNNNNNNNNNNN",Yo],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",hi([lr,lr,new Pn(1)]),Yo],scalex:["N",hi([lr,new Pn(1),new Pn(1)]),hi([lr,new Pn(1)])],scaley:["N",hi([new Pn(1),lr,new Pn(1)]),hi([new Pn(1),lr])],scalez:["N",hi([new Pn(1),new Pn(1),lr])],scale3d:["NNN",Yo],skew:["Aa",null,Yo],skewx:["A",null,hi([lr,Ea])],skewy:["A",null,hi([Ea,lr])],translate:["Tt",hi([lr,lr,kr]),Yo],translatex:["T",hi([lr,kr,kr]),hi([lr,kr])],translatey:["T",hi([kr,lr,kr]),hi([kr,lr])],translatez:["L",hi([kr,kr,lr])],translate3d:["TTL",Yo]};function bf(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=b0[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=d0(n.anchor,2)),n.transform&&(e.parsedStyle.transform=bf(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=vx(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===bt.CIRCLE||e.nodeName===bt.ELLIPSE)&&(!(0,ye.Z)(n.cx)||!(0,ye.Z)(n.cy))||(e.nodeName===bt.RECT||e.nodeName===bt.IMAGE||e.nodeName===bt.GROUP||e.nodeName===bt.HTML||e.nodeName===bt.TEXT||e.nodeName===bt.MESH)&&(!(0,ye.Z)(n.x)||!(0,ye.Z)(n.y)||!(0,ye.Z)(n.z))||e.nodeName===bt.LINE&&(!(0,ye.Z)(n.x1)||!(0,ye.Z)(n.y1)||!(0,ye.Z)(n.z1)||!(0,ye.Z)(n.x2)||!(0,ye.Z)(n.y2)||!(0,ye.Z)(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),(0,ye.Z)(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),(0,ye.Z)(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=d,v=Object.keys(n);v.forEach(function(g){var y;u||(e.attributes[g]=n[g]),!p&&(!((y=Ja[g])===null||y===void 0)&&y.l)&&(p=!0)}),f||v.forEach(function(g){e.computedStyle[g]=i.parseProperty(g,e.attributes[g],e)}),h!=null&&h.length&&(v=Array.from(new Set(v.concat(h)))),v.forEach(function(g){g in e.computedStyle&&(e.parsedStyle[g]=i.computeProperty(g,e.computedStyle[g],e))}),p&&this.updateGeometry(e),v.forEach(function(g){g in e.parsedStyle&&i.postProcessProperty(g,e,v)}),this.runtime.enableCSSParsing&&e.children.length&&v.forEach(function(g){g in e.parsedStyle&&i.isPropertyInheritable(g)&&e.children.forEach(function(y){y.internalSetAttribute(g,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r){var i=Ja[e],a=n;if((n===""||(0,ye.Z)(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")a=l0(n);else if(i){var o=i.k,s=i.syntax,c=s&&this.getPropertySyntax(s);o&&o.indexOf(n)>-1?a=l0(n):c&&c.parser&&(a=c.parser(n,r))}return a},t.prototype.computeProperty=function(e,n,r){var i=Ja[e],a=r.id==="g-root",o=n;if(i){var s=i.syntax,c=i.inh,l=i.d;if(n instanceof di){var u=n.value;if(u==="unset"&&(c&&!a?u="inherit":u="initial"),u==="initial")(0,ye.Z)(l)||(n=this.parseProperty(e,Bs(l)?l(r.nodeName):l,r));else if(u==="inherit"){var f=this.tryToResolveProperty(r,e,{inherited:!0});if((0,ye.Z)(f)){this.addUnresolveProperty(r,e);return}else return f}}var d=s&&this.getPropertySyntax(s);if(d&&d.calculator){var h=r.parsedStyle[e];o=d.calculator(e,h,n,r,this.runtime)}else n instanceof di?o=n.value:o=n}return o},t.prototype.postProcessProperty=function(e,n,r){var i=Ja[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=Ws.get(e);r||(Ws.set(e,[]),r=Ws.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&p8(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=Ws.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),Ws.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new Er),i.renderBounds||(i.renderBounds=new Er);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,_=m.lineWidth,O=m.increasedLineWidthForHitTesting,w=m.shadowType,M=m.shadowColor,E=m.filter,A=E===void 0?[]:E,P=m.transformOrigin,C=a.anchor;n===bt.TEXT?delete a.anchor:n===bt.MESH&&(a.anchor[2]=.5);var j=[(1-(C&&C[0]||0)*2)*s/2+d,(1-(C&&C[1]||0)*2)*c/2+p,(1-(C&&C[2]||0)*2)*y[2]+g];i.contentBounds.update(j,y);var N=n===bt.POLYLINE||n===bt.POLYGON||n===bt.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var R=((_||0)+(O||0))*N;y[0]+=R,y[1]+=R}if(i.renderBounds.update(j,y),M&&w&&w!=="inner"){var D=i.renderBounds,F=D.min,B=D.max,z=a,Y=z.shadowBlur,$=z.shadowOffsetX,tt=z.shadowOffsetY,it=Y||0,St=$||0,Ft=tt||0,Xt=F[0]-it+St,Pt=B[0]+it+St,Ct=F[1]-it+Ft,se=B[1]+it+Ft;F[0]=Math.min(F[0],Xt),B[0]=Math.max(B[0],Pt),F[1]=Math.min(F[1],Ct),B[1]=Math.max(B[1],se),i.renderBounds.setMinMax(F,B)}A.forEach(function(Ke){var dn=Ke.name,xn=Ke.params;if(dn==="blur"){var Yn=xn[0].value;i.renderBounds.update(i.renderBounds.center,ff(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Yn,Yn,0]))}else if(dn==="drop-shadow"){var yr=xn[0].value,xi=xn[1].value,Xa=xn[2].value,ws=i.renderBounds,si=ws.min,Ui=ws.max,pn=si[0]-Xa+yr,_n=Ui[0]+Xa+yr,ir=si[1]-Xa+xi,En=Ui[1]+Xa+xi;si[0]=Math.min(si[0],pn),Ui[0]=Math.max(Ui[0],_n),si[1]=Math.min(si[1],ir),Ui[1]=Math.max(Ui[1],En),i.renderBounds.setMinMax(si,Ui)}}),C=a.anchor;var ce=s<0,Oe=c<0,He=(ce?-1:1)*(P?Ei(P[0],0,e):0),Fe=(Oe?-1:1)*(P?Ei(P[1],1,e):0);He=He-(ce?-1:1)*(C&&C[0]||0)*i.contentBounds.halfExtents[0]*2,Fe=Fe-(Oe?-1:1)*(C&&C[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(He,Fe),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Ja[e];return n?n.inh:!1},t}(),g8=function(){function t(){this.parser=ex,this.parserWithCSSDisabled=null,this.mixer=h0}return t.prototype.calculator=function(e,n,r,i){return Mi(r)},t}(),y8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof di&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),m8=function(){function t(){this.parser=Aa,this.parserWithCSSDisabled=Aa,this.mixer=G6}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?r.value==="none"?u0:Qb:r},t}(),b8=function(){function t(){this.parser=rx}return t.prototype.calculator=function(e,n,r){return r instanceof di?[]:r},t}();function mx(t){var e=t.parsedStyle.fontSize;return(0,ye.Z)(e)?null:e}var S0=function(){function t(){this.parser=Gs,this.parserWithCSSDisabled=null,this.mixer=h0}return t.prototype.calculator=function(e,n,r,i,a){var o;if((0,xr.Z)(r))return r;if(Pn.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===ne.kPercentage)return 0;if(r.unit===ne.kEms){if(i.parentNode){var c=mx(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===ne.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=mx(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),x8=function(){function t(){this.mixer=ax}return t.prototype.parser=function(e){var n=nx((0,xr.Z)(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),_8=function(){function t(){this.mixer=ax}return t.prototype.parser=function(e){var n=nx((0,xr.Z)(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),Jc=qt.create();function M0(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[kr,kr];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[kr];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[kr];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[kr];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[kr,kr,kr];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Ea];e.rotateLocal(0,0,Mi(l[0]))}else if(a==="rotatex"){var l=o||[Ea];e.rotateLocal(Mi(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Ea];e.rotateLocal(0,Mi(l[0]),0)}else if(a==="rotatez"){var l=o||[Ea];e.rotateLocal(0,0,Mi(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(nr(u[0]),nr(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(nr(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],nr(u[0]))}else if(a==="matrix"){var f=(0,S.CR)(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(qt.set(Jc,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(qt.set.apply(qt,(0,S.ev)([Jc],(0,S.CR)(o.map(function(m){return m.value})),!1)),Jc[12]+=n,Jc[13]+=r,e.setLocalTransform(Jc))}),e.getLocalTransform()}var O8=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case bt.CIRCLE:case bt.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;(0,ye.Z)(c)||(i=c),(0,ye.Z)(l)||(a=l),(0,ye.Z)(u)||(o=u);break;case bt.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case bt.RECT:case bt.IMAGE:case bt.GROUP:case bt.HTML:case bt.TEXT:case bt.MESH:(0,ye.Z)(n.parsedStyle.x)||(i=n.parsedStyle.x),(0,ye.Z)(n.parsedStyle.y)||(a=n.parsedStyle.y),(0,ye.Z)(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==bt.PATH&&n.nodeName!==bt.POLYLINE&&n.nodeName!==bt.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!(0,ye.Z)(i)||!(0,ye.Z)(a)||!(0,ye.Z)(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)M0(b,n);else{var _=(0,S.CR)(n.getLocalPosition(),3),O=_[0],w=_[1],M=_[2];n.setLocalPosition((0,ye.Z)(i)?O:i,(0,ye.Z)(a)?w:a,(0,ye.Z)(o)?M:o)}}},e}(S0),w8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof di&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),S8=function(){function t(){this.mixer=h0,this.parser=Ho,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),M8=function(){function t(){this.parser=Ho,this.parserWithCSSDisabled=null,this.mixer=p0(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===bt.LINE||a===bt.PATH||a===bt.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),E8=function(){function t(){this.parser=Ho,this.parserWithCSSDisabled=null,this.mixer=p0(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),A8=function(){function t(){this.parser=m0,this.parserWithCSSDisabled=m0,this.mixer=r8}return t.prototype.calculator=function(e,n,r){return r instanceof di&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Wo(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===bt.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),T8=function(){function t(){this.parser=hx,this.mixer=i8}return t.prototype.postProcessor=function(e,n){if((e.nodeName===bt.POLYGON||e.nodeName===bt.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),P8=function(t){(0,S.ZT)(e,t);function e(){var n=t.apply(this,(0,S.ev)([],(0,S.CR)(arguments),!1))||this;return n.mixer=p0(0,1/0),n}return e}(S0),C8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),k8=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),E0={},R8=0;function L8(t,e){if(t){var n=typeof t=="string"?t:t.id||R8++;E0[n]&&E0[n].destroy(),E0[n]=e}}var tl=typeof window!="undefined"&&typeof window.document!="undefined";function N8(t){return!!t.getAttribute}function I8(t,e){for(var n=0,r=t.length;n>>1;bx(t[i],e)<0?n=i+1:r=i}return n}function bx(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function xx(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var _x="px";function j8(t,e,n){tl&&t.style&&(t.style.width=e+_x,t.style.height=n+_x)}function Ox(t,e){if(tl)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function D8(t){var e=Ox(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function F8(t){var e=Ox(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var B8=1,z8={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},A0=typeof performance=="object"&&performance.now?performance:Date;function Vo(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var G8=1,W8=function(){return G8++},ca=typeof self=="object"&&self.self==self?self:typeof yt.g=="object"&&yt.g.global==yt.g?yt.g:{},H8=Date.now(),Y8=function(){return ca.performance&&typeof ca.performance.now=="function"?ca.performance.now():Date.now()-H8},el={},wx=Date.now(),V8=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-wx,r=n>16?0:16-n,i=W8();return el[i]=t,Object.keys(el).length>1||setTimeout(function(){wx=e;var a=el;el={},Object.keys(a).forEach(function(o){return a[o](Y8())})},r),i},X8=function(t){delete el[t]},$8=["","webkit","moz","ms","o"],Sx=function(t){return typeof t!="string"?V8:t===""?ca.requestAnimationFrame:ca[t+"RequestAnimationFrame"]},U8=function(t){return typeof t!="string"?X8:t===""?ca.cancelAnimationFrame:ca[t+"CancelAnimationFrame"]||ca[t+"CancelRequestAnimationFrame"]},q8=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},Mx=q8($8,function(t){return!!Sx(t)}),Ex=Sx(Mx),Ax=U8(Mx);ca.requestAnimationFrame=Ex,ca.cancelAnimationFrame=Ax;var Z8=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!J8.test(l)&&Q8.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var eD=function(){function t(){this.parser=bf,this.parserWithCSSDisabled=bf,this.mixer=h8}return t.prototype.calculator=function(e,n,r,i){return r instanceof di?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;M0(n,e)},t}(),nD=function(){function t(){this.parser=vx}return t}(),rD=function(){function t(){this.parser=Ho}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=zs.Z_INDEX_CHANGED)}},t}(),iD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),aD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),oD=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),sD=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),cD=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Dr(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),lD=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!tr(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),uD=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!(0,ye.Z)(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var _=0;return c==="middle"?_=y[1]:c==="top"||c==="hanging"?_=y[1]*2:c==="alphabetic"?_=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(_=0),l&&(b+=l),u&&(_+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:_}},t}();function fD(t){return!!t.type}var xf=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Cr,this.page=new Cr,this.canvas=new Cr,this.viewport=new Cr,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(Tn)},t}(),Tx=function(t){(0,S.ZT)(e,t);function e(){var n=t.apply(this,(0,S.ev)([],(0,S.CR)(arguments),!1))||this;return n.client=new Cr,n.movement=new Cr,n.offset=new Cr,n.global=new Cr,n.screen=new Cr,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(Tn)},e}(xf),P0=function(t){(0,S.ZT)(e,t);function e(){var n=t.apply(this,(0,S.ev)([],(0,S.CR)(arguments),!1))||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(Tx),C0=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(Tx),kn=function(t){(0,S.ZT)(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}(xf),Px=":",Cx=function(){function t(){this.emitter=new Yp.Z}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Mb(r)&&r||zo(r)&&r.capture,a=zo(r)&&r.once,o=Bs(n)?void 0:n,s=!1,c="";if(e.indexOf(Px)>-1){var l=(0,S.CR)(e.split(Px),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=Bs(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(Tn)},e.prototype.lookupNamespaceURI=function(n){throw new Error(Tn)},e.prototype.lookupPrefix=function(n){throw new Error(Tn)},e.prototype.normalize=function(){throw new Error(Tn)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Cx),dD=2048,hD=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new Yp.Z,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=qt.create(),this.tmpVec3=ot.create(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=A0.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}Rr.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),Rr.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&Rr.isNode(c)&&c.parentNode;p&&p!==(Rr.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(Rr.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(Rr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),Rr.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(Rr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),Rr.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(Rr.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),Rr.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),Rr.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Cr(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Cr(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=qt.multiply(this.tmpMatrix,u,l),d=ot.set(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return ot.transformMat4(d,d,f),new Cr(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=qt.multiply(this.tmpMatrix,i,a),s=ot.set(this.tmpVec3,e.x,e.y,0);ot.transformMat4(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Cr((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=(0,S.XA)(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(P0);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r!=null?r:o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i,typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(C0);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(C0);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(P0);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n!=null?n:r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=A0.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n!=null?n:e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||Rr.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=N8(n)&&n.getAttribute("cursor");if(r)return r;n=Rr.isNode(n)&&n.parentNode}},t}(),pD=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||Et.offscreenCanvas)this.canvas=e||Et.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(r){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,S.pi)({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),to;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(to||(to={}));var vD=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new ni,initAsync:new Z8,dirtycheck:new T0,cull:new T0,beginFrame:new ni,beforeRender:new ni,render:new ni,afterRender:new ni,endFrame:new ni,destroy:new ni,pick:new K8,pickSync:new T0,pointerDown:new ni,pointerUp:new ni,pointerMove:new ni,pointerOut:new ni,pointerOver:new ni,pointerWheel:new ni,pointerCancel:new ni,click:new ni}}return t.prototype.init=function(e){var n=this,r=(0,S.pi)((0,S.pi)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(to.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(to.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==zs.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=I8(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(bx)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(to.DISPLAY_OBJECT_CHANGED)},t}(),gD=/\[\s*(.*)=(.*)\s*\]/,yD=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(gD),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return(0,ye.Z)(r)?"":r.toString?r.toString():""},t}(),eo=function(t){(0,S.ZT)(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}(xf),Ne;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(Ne||(Ne={}));function kx(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var mD=new eo(Ne.REPARENT,null,"","","",0,"",""),bD=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new kn(Ne.BOUNDS_CHANGED),this.rotate=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=ot.fromValues(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=br();Ju(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);tf(r,f),Xp(r,r),Ua(l,r,l),Ua(c.localRotation,l,u),ef(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=ot.fromValues(a,o,s));var c=i.transformable;Ju(r,a[0],a[1],a[2]),fb(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=br();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=ot.fromValues(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{Ju(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);tf(r,Xp(br(),l)),fb(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=ot.fromValues(i,a,o));var s=r.transformable;ot.equals(i,ot.create())||(ot.transformQuat(i,i,s.localRotation),ot.add(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=qt.create(),i=ot.create();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!ot.equals(n.getPosition(a),i)){if(ot.copy(s.position,i),a.parentNode===null||!a.parentNode.transformable)ot.copy(s.localPosition,i);else{var c=a.parentNode.transformable;qt.copy(r,c.worldTransform),qt.invert(r,r),ot.transformMat4(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=ot.create();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!ot.equals(o.localPosition,r)&&(ot.copy(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=ot.create(),i=ot.create(),a=ot.create();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=ot.set(i,s,c,l)),!ot.equals(s,r)&&(ot.add(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=br();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=$p(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);tf(r,u),Xp(r,r),Ua(l.localRotation,r,a),ef(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=qt.create(),i=ot.create(),a=$p(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(qt.fromRotationTranslationScaleOrigin(o.localTransform,o.localRotation,o.localPosition,ot.fromValues(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=qt.identity(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),qt.multiply(o.localTransform,o.localTransform,c)}var l=qt.fromRotationTranslationScaleOrigin(r,a,i,o.localScale,o.origin);qt.multiply(o.localTransform,o.localTransform,l)}else qt.fromRotationTranslationScaleOrigin(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,(0,ye.Z)(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=zs.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(mD)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=zs.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=ot.fromValues(n,r,i));var a=e.transformable;Ju(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;ot.multiply(r.localScale,r.localScale,ot.fromValues(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=ot.fromValues(n[0],n[1],n[2]||r.localScale[2]);ot.equals(i,r.localScale)||(ot.copy(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=$p(n,r,i,a));var o=e.transformable;tf(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=Vc.al(n,r));var i=e.transformable;Vc.JG(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)kx(r),r=r.parentNode;n&&e.forEach(function(i){kx(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new eo(Ne.ATTR_MODIFIED,a,n,n,i,eo.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return qt.getTranslation(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return qt.getRotation(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return qt.getScaling(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=qt.getTranslation(ot.create(),n),i=qt.getRotation(br(),n),a=qt.getScaling(ot.create(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(Er.isEmpty(i))return null;var a=r||new Er;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new Er},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new Er,o.update(f.center,f.halfExtents)))}),n){var c=xx(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new Er),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=qt.create();e.parentNode.transformable&&(n=qt.invert(qt.create(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!Er.isEmpty(r)){var i=new Er;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);Er.isEmpty(a)||(i=new Er,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=(0,S.CR)(i.getMin(),2),c=s[0],l=s[1],u=(0,S.CR)(i.getMax(),2),f=u[0],d=u[1];return new Wo(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Wo((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+A>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var P=p[v].length,C=0,j=P,N=0;Nd){j=N;break}C+=k}p[v]=(p[v]||"").slice(0,j)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(w))continue;this.canBreakInLastChar(w)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(w,E)&&(p=this.trimByKinsokuShorui(p),g+=m(M||""))}g+=A,p[v]=(p[v]||"")+w}return p.join(` +`)},t.prototype.isBreakingSpace=function(e){return typeof e!="string"?!1:Xo.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:Xo.Newlines.indexOf(e.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(e){var n=(0,S.ev)([],(0,S.CR)(e),!1),r=n[n.length-2],i=this.findBreakableIndex(r);if(i===-1||!r)return n;var a=r.slice(i,i+1),o=this.isBreakingSpace(a),s=i+1,c=i+(o?0:1);return n[n.length-1]+=r.slice(s,r.length),n[n.length-2]=r.slice(0,c),n},t.prototype.canBreakInLastChar=function(e){return!(e&&Rx.test(e))},t.prototype.sumTextWidthByCache=function(e,n){return e.split("").reduce(function(r,i){if(!n[i])throw Error("cannot count the word without cache");return r+n[i]},0)},t.prototype.findBreakableIndex=function(e){for(var n=e.length-1;n>=0;n--)if(!Rx.test(e[n]))return n;return-1},t.prototype.getFromCache=function(e,n,r,i){var a=r[e];if(typeof a!="number"){var o=e.length*n;a=i.measureText(e).width+o,r[e]=a}return a},t}(),Et={},kD=function(){var t,e=new lD,n=new cD;return t={},t[bt.CIRCLE]=new iD,t[bt.ELLIPSE]=new aD,t[bt.RECT]=e,t[bt.IMAGE]=e,t[bt.GROUP]=e,t[bt.LINE]=new oD,t[bt.TEXT]=new uD(Et),t[bt.POLYLINE]=n,t[bt.POLYGON]=n,t[bt.PATH]=new sD,t[bt.HTML]=null,t[bt.MESH]=null,t}(),RD=function(){var t,e=new m8,n=new S0;return t={},t[oe.PERCENTAGE]=null,t[oe.NUMBER]=new S8,t[oe.ANGLE]=new g8,t[oe.DEFINED_PATH]=new y8,t[oe.PAINT]=e,t[oe.COLOR]=e,t[oe.FILTER]=new b8,t[oe.LENGTH]=n,t[oe.LENGTH_PERCENTAGE]=n,t[oe.LENGTH_PERCENTAGE_12]=new x8,t[oe.LENGTH_PERCENTAGE_14]=new _8,t[oe.COORDINATE]=new O8,t[oe.OFFSET_DISTANCE]=new M8,t[oe.OPACITY_VALUE]=new E8,t[oe.PATH]=new A8,t[oe.LIST_OF_POINTS]=new T8,t[oe.SHADOW_BLUR]=new P8,t[oe.TEXT]=new C8,t[oe.TEXT_TRANSFORM]=new k8,t[oe.TRANSFORM]=new eD,t[oe.TRANSFORM_ORIGIN]=new nD,t[oe.Z_INDEX]=new rD,t[oe.MARKER]=new w8,t}(),LD=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof yt.g!="undefined"?yt.g:{}};Et.CameraContribution=Ub,Et.AnimationTimeline=null,Et.EasingFunction=null,Et.offscreenCanvasCreator=new pD,Et.sceneGraphSelector=new yD,Et.sceneGraphService=new bD(Et),Et.textService=new CD(Et),Et.geometryUpdaterFactory=kD,Et.CSSPropertySyntaxFactory=RD,Et.styleValueRegistry=new v8(Et),Et.layoutRegistry=null,Et.globalThis=LD(),Et.enableCSSParsing=!0,Et.enableDataset=!1,Et.enableStyleSyntax=!0;var Lx=0;function Mft(){Lx=0}var Nx=new eo(Ne.INSERTED,null,"","","",0,"",""),Ix=new eo(Ne.REMOVED,null,"","","",0,"",""),ND=new kn(Ne.DESTROY),ID=function(t){(0,S.ZT)(e,t);function e(){var n=t.apply(this,(0,S.ev)([],(0,S.CR)(arguments),!1))||this;return n.entity=Lx++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:f0.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={},n.computedStyle=Et.enableCSSParsing?{anchor:Ln,opacity:Ln,fillOpacity:Ln,strokeOpacity:Ln,fill:Ln,stroke:Ln,transform:Ln,transformOrigin:Ln,visibility:Ln,pointerEvents:Ln,lineWidth:Ln,lineCap:Ln,lineJoin:Ln,increasedLineWidthForHitTesting:Ln,fontSize:Ln,fontFamily:Ln,fontStyle:Ln,fontWeight:Ln,fontVariant:Ln,textAlign:Ln,textBaseline:Ln,textTransform:Ln,zIndex:Ln,filter:Ln,shadowType:Ln}:null,n.parsedStyle={},n.attributes={},n}return Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(n){return n!==""})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(n){throw new Error(Tn)},e.prototype.appendChild=function(n,r){var i;if(n.destroyed)throw new Error(d6);return Et.sceneGraphService.attach(n,this,r),!((i=this.ownerDocument)===null||i===void 0)&&i.defaultView&&this.ownerDocument.defaultView.mountChildren(n),Nx.relatedNode=this,n.dispatchEvent(Nx),n},e.prototype.insertBefore=function(n,r){if(!r)this.appendChild(n);else{n.parentElement&&n.parentElement.removeChild(n);var i=this.childNodes.indexOf(r);i===-1?this.appendChild(n):this.appendChild(n,i)}return n},e.prototype.replaceChild=function(n,r){var i=this.childNodes.indexOf(r);return this.removeChild(r),this.appendChild(n,i),r},e.prototype.removeChild=function(n){var r;return Ix.relatedNode=this,n.dispatchEvent(Ix),!((r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n.ownerDocument.defaultView.unmountChildren(n),Et.sceneGraphService.detach(n),n},e.prototype.removeChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];this.removeChild(r)}},e.prototype.destroyChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];r.childNodes.length&&r.destroyChildren(),r.destroy()}},e.prototype.matches=function(n){return Et.sceneGraphService.matches(n,this)},e.prototype.getElementById=function(n){return Et.sceneGraphService.querySelector("#".concat(n),this)},e.prototype.getElementsByName=function(n){return Et.sceneGraphService.querySelectorAll('[name="'.concat(n,'"]'),this)},e.prototype.getElementsByClassName=function(n){return Et.sceneGraphService.querySelectorAll(".".concat(n),this)},e.prototype.getElementsByTagName=function(n){return Et.sceneGraphService.querySelectorAll(n,this)},e.prototype.querySelector=function(n){return Et.sceneGraphService.querySelector(n,this)},e.prototype.querySelectorAll=function(n){return Et.sceneGraphService.querySelectorAll(n,this)},e.prototype.closest=function(n){var r=this;do{if(Et.sceneGraphService.matches(n,r))return r;r=r.parentElement}while(r!==null);return null},e.prototype.find=function(n){var r=this,i=null;return this.forEach(function(a){return a!==r&&n(a)?(i=a,!0):!1}),i},e.prototype.findAll=function(n){var r=this,i=[];return this.forEach(function(a){a!==r&&n(a)&&i.push(a)}),i},e.prototype.after=function(){for(var n=this,r=[],i=0;i1){var i=n[0].currentPoint,a=n[1].currentPoint,o=n[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.path.segments,r=n.length,i=[];if(r>1){var a=n[r-2].currentPoint,o=n[r-1].currentPoint,s=n[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},e}(Vr),il=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=this,i=n.style,a=(0,S._T)(n,["style"]);r=t.call(this,(0,S.pi)({type:bt.POLYGON,style:Et.enableCSSParsing?(0,S.pi)({points:"",miterLimit:"",isClosed:!0},i):(0,S.pi)({},i),initialParsedStyle:Et.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},a))||this,r.markerStartAngle=0,r.markerEndAngle=0,r.markerMidList=[];var o=r.parsedStyle,s=o.markerStart,c=o.markerEnd,l=o.markerMid;return s&&hn(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),l&&hn(l)&&r.placeMarkerMid(l),c&&hn(c)&&(r.markerEndAngle=c.getLocalEulerAngles(),r.appendChild(c)),r.transformMarker(!0),r.transformMarker(!1),r}return e.prototype.attributeChangedCallback=function(n,r,i,a,o){n==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(a&&hn(a)&&(this.markerStartAngle=0,a.remove()),o&&hn(o)&&(this.markerStartAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!0))):n==="markerEnd"?(a&&hn(a)&&(this.markerEndAngle=0,a.remove()),o&&hn(o)&&(this.markerEndAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!1))):n==="markerMid"&&this.placeMarkerMid(o)},e.prototype.transformMarker=function(n){var r=this.parsedStyle,i=r.markerStart,a=r.markerEnd,o=r.markerStartOffset,s=r.markerEndOffset,c=r.points,l=r.defX,u=r.defY,f=(c||{}).points,d=n?i:a;if(!(!d||!hn(d)||!f)){var h=0,p,v,g,y,m,b;if(g=f[0][0]-l,y=f[0][1]-u,n)p=f[1][0]-f[0][0],v=f[1][1]-f[0][1],m=o||0,b=this.markerStartAngle;else{var _=f.length;this.parsedStyle.isClosed?(p=f[_-1][0]-f[0][0],v=f[_-1][1]-f[0][1]):(g=f[_-1][0]-l,y=f[_-1][1]-u,p=f[_-2][0]-f[_-1][0],v=f[_-2][1]-f[_-1][1]),m=s||0,b=this.markerEndAngle}h=Math.atan2(v,p),d.setLocalEulerAngles(h*180/Math.PI+b),d.setLocalPosition(g+Math.cos(h)*m,y+Math.sin(h)*m)}},e.prototype.placeMarkerMid=function(n){var r=this.parsedStyle,i=r.points,a=r.defX,o=r.defY,s=(i||{}).points;if(this.markerMidList.forEach(function(d){d.remove()}),this.markerMidList=[],n&&hn(n)&&s)for(var c=1;c<(this.parsedStyle.isClosed?s.length:s.length-1);c++){var l=s[c][0]-a,u=s[c][1]-o,f=c===1?n:n.cloneNode(!0);this.markerMidList.push(f),this.appendChild(f),f.setLocalPosition(l,u)}},e}(Vr),N0=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:bt.POLYLINE,style:Et.enableCSSParsing?(0,S.pi)({points:"",miterLimit:"",isClosed:!1},r):(0,S.pi)({},r),initialParsedStyle:Et.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i))||this}return e.prototype.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(n,r){return r===void 0&&(r=!1),this.getPoint(n/this.getTotalLength(),r)},e.prototype.getPoint=function(n,r){r===void 0&&(r=!1);var i=this.parsedStyle,a=i.defX,o=i.defY,s=i.points,c=s.points,l=s.segments,u=0,f=0;l.forEach(function(g,y){n>=g[0]&&n<=g[1]&&(u=(n-g[0])/(g[1]-g[0]),f=y)});var d=aa(c[f][0],c[f][1],c[f+1][0],c[f+1][1],u),h=d.x,p=d.y,v=ot.transformMat4(ot.create(),ot.fromValues(h-a,p-o,0),r?this.getWorldTransform():this.getLocalTransform());return new Cr(v[0],v[1])},e.prototype.getStartTangent=function(){var n=this.parsedStyle.points.points,r=[];return r.push([n[1][0],n[1][1]]),r.push([n[0][0],n[0][1]]),r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.points.points,r=n.length-1,i=[];return i.push([n[r-1][0],n[r-1][1]]),i.push([n[r][0],n[r][1]]),i},e}(il),$o=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:bt.RECT,style:Et.enableCSSParsing?(0,S.pi)({x:"",y:"",width:"",height:"",radius:""},r):(0,S.pi)({},r)},i))||this}return e}(Vr),Zi=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=(0,S._T)(n,["style"]);return t.call(this,(0,S.pi)({type:bt.TEXT,style:Et.enableCSSParsing?(0,S.pi)({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},r):(0,S.pi)({fill:"black"},r),initialParsedStyle:Et.enableCSSParsing?{}:{x:0,y:0,fontSize:16,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",lineHeight:0,letterSpacing:0,textBaseline:"alphabetic",textAlign:"start",wordWrap:!1,wordWrapWidth:0,leading:0,dx:0,dy:0}},i))||this}return e.prototype.getComputedTextLength=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.lineMetrics)||[]},e.prototype.isOverflowing=function(){return!!this.parsedStyle.isOverflowing},e}(Vr),zD=function(){function t(){this.registry={},this.define(bt.CIRCLE,nl),this.define(bt.ELLIPSE,R0),this.define(bt.RECT,$o),this.define(bt.IMAGE,L0),this.define(bt.LINE,rl),this.define(bt.GROUP,Fr),this.define(bt.PATH,ri),this.define(bt.POLYGON,il),this.define(bt.POLYLINE,N0),this.define(bt.TEXT,Zi),this.define(bt.HTML,_f)}return t.prototype.define=function(e,n){this.registry[e]=n},t.prototype.get=function(e){return this.registry[e]},t}(),GD=function(t){(0,S.ZT)(e,t);function e(){var n=t.call(this)||this;n.defaultView=null,n.ownerDocument=null,n.nodeName="document";try{n.timeline=new Et.AnimationTimeline(n)}catch(i){}var r={};return w0.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(r[a]=Bs(s)?s(bt.GROUP):s)}),n.documentElement=new Fr({id:"g-root",style:r}),n.documentElement.ownerDocument=n,n.documentElement.parentNode=n,n.childNodes=[n.documentElement],n}return Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(n,r){if(n==="svg")return this.documentElement;var i=this.defaultView.customElements.get(n);i||(console.warn("Unsupported tagName: ",n),i=n==="tspan"?Zi:Fr);var a=new i(r);return a.ownerDocument=this,a},e.prototype.createElementNS=function(n,r,i){return this.createElement(r,i)},e.prototype.cloneNode=function(n){throw new Error(Tn)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(n){}},e.prototype.elementsFromBBox=function(n,r,i,a){var o=this.defaultView.context.rBushRoot,s=o.search({minX:n,minY:r,maxX:i,maxY:a}),c=[];return s.forEach(function(l){var u=l.displayObject,f=u.parsedStyle.pointerEvents,d=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(f);(!d||d&&u.isVisible())&&!u.isCulled()&&u.isInteractive()&&c.push(u)}),c.sort(function(l,u){return u.sortable.renderOrder-l.sortable.renderOrder}),c},e.prototype.elementFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return null;var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(n,r){return(0,S.mG)(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return(0,S.Jh)(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,null]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,[2,h&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return[];var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(n,r){return(0,S.mG)(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return(0,S.Jh)(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,[]]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,h[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(n,r){throw new Error(Fs)},e.prototype.insertBefore=function(n,r){throw new Error(Fs)},e.prototype.removeChild=function(n,r){throw new Error(Fs)},e.prototype.replaceChild=function(n,r,i){throw new Error(Fs)},e.prototype.append=function(){throw new Error(Fs)},e.prototype.prepend=function(){throw new Error(Fs)},e.prototype.getElementById=function(n){return this.documentElement.getElementById(n)},e.prototype.getElementsByName=function(n){return this.documentElement.getElementsByName(n)},e.prototype.getElementsByTagName=function(n){return this.documentElement.getElementsByTagName(n)},e.prototype.getElementsByClassName=function(n){return this.documentElement.getElementsByClassName(n)},e.prototype.querySelector=function(n){return this.documentElement.querySelector(n)},e.prototype.querySelectorAll=function(n){return this.documentElement.querySelectorAll(n)},e.prototype.find=function(n){return this.documentElement.find(n)},e.prototype.findAll=function(n){return this.documentElement.findAll(n)},e}(Rr),WD=function(){function t(e){this.strategies=e}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,a=this.strategies;r.hooks.cull.tap(t.tag,function(o){if(o){var s=o.cullable;return a.length===0?s.visible=i.unculledEntities.indexOf(o.entity)>-1:s.visible=a.every(function(c){return c.isVisible(n,o)}),!o.isCulled()&&o.isVisible()?o:(o.dispatchEvent(new kn(Ne.CULLED)),null)}return o}),r.hooks.afterRender.tap(t.tag,function(o){o.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),HD=function(){function t(){var e=this;this.autoPreventDefault=!1,this.rootPointerEvent=new P0(null),this.rootWheelEvent=new C0(null),this.onPointerMove=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView;if(!(s.supportsTouchEvents&&n.pointerType==="touch")){var c=e.normalizeToPointerEvent(n,s);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}},this.onClick=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView,c=e.normalizeToPointerEvent(n,s);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(a){var o=n.context.renderingService.hooks.pickSync.call({position:a,picked:[],topmost:!0}).picked;return o[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(a){var o=n.normalizeWheelEvent(a);n.context.eventService.mapEvent(o)}),r.hooks.pointerDown.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.normalizeToPointerEvent(a,i);if(n.autoPreventDefault&&c[0].isNormalized){var l=a.cancelable||!("cancelable"in a);l&&a.preventDefault()}try{for(var u=(0,S.XA)(c),f=u.next();!f.done;f=u.next()){var d=f.value,h=n.bootstrapEvent(n.rootPointerEvent,d,i,a);n.context.eventService.mapEvent(h)}}catch(p){o={error:p}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.context.contextService.getDomElement(),l="outside";try{l=c&&a.target&&a.target!==c&&c.contains&&!c.contains(a.target)?"outside":""}catch(v){}var u=n.normalizeToPointerEvent(a,i);try{for(var f=(0,S.XA)(u),d=f.next();!d.done;d=f.next()){var h=d.value,p=n.bootstrapEvent(n.rootPointerEvent,h,i,a);p.type+=l,n.context.eventService.mapEvent(p)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(a){var o,s,c=n.normalizeToPointerEvent(a,i);try{for(var l=(0,S.XA)(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=n.bootstrapEvent(n.rootPointerEvent,f,i,a);n.context.eventService.mapEvent(d)}}catch(h){o={error:h}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.getViewportXY=function(e){var n,r,i=e.offsetX,a=e.offsetY,o=e.clientX,s=e.clientY;if(this.context.config.supportsCSSTransform&&!(0,ye.Z)(i)&&!(0,ye.Z)(a))n=i,r=a;else{var c=this.context.eventService.client2Viewport(new Cr(o,s));n=c.x,r=c.y}return{x:n,y:r}},t.prototype.bootstrapEvent=function(e,n,r,i){e.view=r,e.originalEvent=null,e.nativeEvent=i,e.pointerId=n.pointerId,e.width=n.width,e.height=n.height,e.isPrimary=n.isPrimary,e.pointerType=n.pointerType,e.pressure=n.pressure,e.tangentialPressure=n.tangentialPressure,e.tiltX=n.tiltX,e.tiltY=n.tiltY,e.twist=n.twist,this.transferMouseData(e,n);var a=this.getViewportXY(n),o=a.x,s=a.y;e.viewport.x=o,e.viewport.y=s;var c=this.context.eventService.viewport2Canvas(e.viewport),l=c.x,u=c.y;return e.canvas.x=l,e.canvas.y=u,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.isTrusted=i.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=z8[e.type]||e.type),e},t.prototype.normalizeWheelEvent=function(e){var n=this.rootWheelEvent;this.transferMouseData(n,e),n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ;var r=this.getViewportXY(e),i=r.x,a=r.y;n.viewport.x=i,n.viewport.y=a;var o=this.context.eventService.viewport2Canvas(n.viewport),s=o.x,c=o.y;return n.canvas.x=s,n.canvas.y=c,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.nativeEvent=e,n.type=e.type,n},t.prototype.transferMouseData=function(e,n){e.isTrusted=n.isTrusted,e.srcElement=n.srcElement,e.timeStamp=A0.now(),e.type=n.type,e.altKey=n.altKey,e.metaKey=n.metaKey,e.shiftKey=n.shiftKey,e.ctrlKey=n.ctrlKey,e.button=n.button,e.buttons=n.buttons,e.client.x=n.clientX,e.client.y=n.clientY,e.movement.x=n.movementX,e.movement.y=n.movementY,e.page.x=n.pageX,e.page.y=n.pageY,e.screen.x=n.screenX,e.screen.y=n.screenY,e.relatedTarget=null},t.prototype.setCursor=function(e){this.context.contextService.applyCursorStyle(e||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(e,n){var r=[];if(n.isTouchEvent(e))for(var i=0;i-1,s=0,c=i.length;s=1?Math.ceil(C):1,A=s||D8(a)||a.width/C,P=c||F8(a)||a.height/C),o&&(Et.offscreenCanvas=o),r.devicePixelRatio=C,r.requestAnimationFrame=p!=null?p:Ex.bind(Et.globalThis),r.cancelAnimationFrame=v!=null?v:Ax.bind(Et.globalThis),r.supportsTouchEvents=m!=null?m:"ontouchstart"in Et.globalThis,r.supportsPointerEvents=y!=null?y:!!Et.globalThis.PointerEvent,r.isTouchEvent=M!=null?M:function(j){return r.supportsTouchEvents&&j instanceof Et.globalThis.TouchEvent},r.isMouseEvent=E!=null?E:function(j){return!Et.globalThis.MouseEvent||j instanceof Et.globalThis.MouseEvent&&(!r.supportsPointerEvents||!(j instanceof Et.globalThis.PointerEvent))},r.initRenderingContext({container:i,canvas:a,width:A,height:P,renderer:u,offscreenCanvas:o,devicePixelRatio:C,cursor:d||"default",background:f||"transparent",createImage:g,document:h,supportsCSSTransform:b,useNativeClickEvent:O,alwaysTriggerPointerEventOnCanvas:w}),r.initDefaultCamera(A,P,u.clipSpaceNearZ),r.initRenderer(u,!0),r}return e.prototype.initRenderingContext=function(n){this.context.config=n,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(n,r,i){var a=this,o=new Et.CameraContribution;o.clipSpaceNearZ=i,o.setType(On.EXPLORING,Zc.DEFAULT).setPosition(n/2,r/2,Bx).setFocalPoint(n/2,r/2,0).setOrthographic(n/-2,n/2,r/2,r/-2,$D,UD),o.canvas=this,o.eventEmitter.on(Xb.UPDATED,function(){a.context.renderingContext.renderReasons.add(to.CAMERA_CHANGED)}),this.context.camera=o},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var n=this;return this.readyPromise||(this.readyPromise=new Promise(function(r){n.resolveReadyPromise=function(){r(n)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!1),r||this.dispatchEvent(new kn(pi.BEFORE_DESTROY)),this.frameId){var i=this.getConfig().cancelAnimationFrame||cancelAnimationFrame;i(this.frameId)}var a=this.getRoot();this.unmountChildren(a),n&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),n&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),r||this.dispatchEvent(new kn(pi.AFTER_DESTROY))},e.prototype.changeSize=function(n,r){this.resize(n,r)},e.prototype.resize=function(n,r){var i=this.context.config;i.width=n,i.height=r,this.getContextService().resize(n,r);var a=this.context.camera,o=a.getProjectionMode();a.setPosition(n/2,r/2,Bx).setFocalPoint(n/2,r/2,0),o===fi.ORTHOGRAPHIC?a.setOrthographic(n/-2,n/2,r/2,r/-2,a.getNear(),a.getFar()):a.setAspect(n/r),this.dispatchEvent(new kn(pi.RESIZE,{width:n,height:r}))},e.prototype.appendChild=function(n,r){return this.document.documentElement.appendChild(n,r)},e.prototype.insertBefore=function(n,r){return this.document.documentElement.insertBefore(n,r)},e.prototype.removeChild=function(n){return this.document.documentElement.removeChild(n)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(){var n=this;this.dispatchEvent(qD);var r=this.getRenderingService();r.render(this.getConfig(),function(){n.dispatchEvent(ZD)}),this.dispatchEvent(KD)},e.prototype.run=function(){var n=this,r=function(){n.render(),n.frameId=n.requestAnimationFrame(r)};r()},e.prototype.initRenderer=function(n,r){var i=this;if(r===void 0&&(r=!1),!n)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new Qj,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new HD,new XD,new WD([new VD])),this.loadRendererContainerModule(n),this.context.contextService=new this.context.ContextService((0,S.pi)((0,S.pi)({},Et),this.context)),this.context.renderingService=new vD(Et,this.context),this.context.eventService=new hD(Et,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(n,r,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(n,r)})},e.prototype.initRenderingService=function(n,r,i){var a=this;r===void 0&&(r=!1),i===void 0&&(i=!1),this.context.renderingService.init(function(){a.inited=!0,r?(i?a.requestAnimationFrame(function(){a.dispatchEvent(new kn(pi.READY))}):a.dispatchEvent(new kn(pi.READY)),a.readyPromise&&a.resolveReadyPromise()):a.dispatchEvent(new kn(pi.RENDERER_CHANGED)),r||a.getRoot().forEach(function(o){var s=o.renderable;s&&(s.renderBoundsDirty=!0,s.boundsDirty=!0,s.dirty=!0)}),a.mountChildren(a.getRoot()),n.getConfig().enableAutoRendering&&a.run()})},e.prototype.loadRendererContainerModule=function(n){var r=this,i=n.getPlugins();i.forEach(function(a){a.context=r.context,a.init(Et)})},e.prototype.setRenderer=function(n){var r=this.getConfig();if(r.renderer!==n){var i=r.renderer;r.renderer=n,this.destroy(!1,!0),(0,S.ev)([],(0,S.CR)(i==null?void 0:i.getPlugins()),!1).reverse().forEach(function(a){a.destroy(Et)}),this.initRenderer(n)}},e.prototype.setCursor=function(n){var r=this.getConfig();r.cursor=n,this.getContextService().applyCursorStyle(n)},e.prototype.unmountChildren=function(n){var r=this;n.childNodes.forEach(function(i){r.unmountChildren(i)}),this.inited&&(n.isMutationObserved?n.dispatchEvent(j0):(j0.target=n,this.dispatchEvent(j0,!0)),n!==this.document.documentElement&&(n.ownerDocument=null),n.isConnected=!1),n.isCustomElement&&n.disconnectedCallback&&n.disconnectedCallback()},e.prototype.mountChildren=function(n){var r=this;this.inited?n.isConnected||(n.ownerDocument=this.document,n.isConnected=!0,n.isMutationObserved?n.dispatchEvent(I0):(I0.target=n,this.dispatchEvent(I0,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",n.nodeName),n.childNodes.forEach(function(i){r.mountChildren(i)}),n.isCustomElement&&n.connectedCallback&&n.connectedCallback()},e.prototype.client2Viewport=function(n){return this.getEventService().client2Viewport(n)},e.prototype.viewport2Client=function(n){return this.getEventService().viewport2Client(n)},e.prototype.viewport2Canvas=function(n){return this.getEventService().viewport2Canvas(n)},e.prototype.canvas2Viewport=function(n){return this.getEventService().canvas2Viewport(n)},e.prototype.getPointByClient=function(n,r){return this.client2Viewport({x:n,y:r})},e.prototype.getClientByPoint=function(n,r){return this.viewport2Client({x:n,y:r})},e}(Cx),QD=function(t){(0,S.ZT)(e,t);function e(){var n=t.apply(this,(0,S.ev)([],(0,S.CR)(arguments),!1))||this;return n.landmarks=[],n}return e.prototype.rotate=function(n,r,i){if(this.relElevation=Ds(r),this.relAzimuth=Ds(n),this.relRoll=Ds(i),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===On.EXPLORING){var a=$a(br(),[1,0,0],nr((this.rotateWorld?1:-1)*this.relElevation)),o=$a(br(),[0,1,0],nr((this.rotateWorld?1:-1)*this.relAzimuth)),s=$a(br(),[0,0,1],nr(this.relRoll)),c=Ua(br(),o,a);c=Ua(br(),c,s);var l=qt.fromQuat(qt.create(),c);qt.translate(this.matrix,this.matrix,[0,0,-this.distance]),qt.multiply(this.matrix,this.matrix,l),qt.translate(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===On.ORBITING||this.type===On.EXPLORING?this._getPosition():this.type===On.TRACKING&&this._getFocalPoint(),this._update(),this},e.prototype.pan=function(n,r){var i=ei(n,r,0),a=ot.clone(this.position);return ot.add(a,a,ot.scale(ot.create(),this.right,i[0])),ot.add(a,a,ot.scale(ot.create(),this.up,i[1])),this._setPosition(a),this.triggerUpdate(),this},e.prototype.dolly=function(n){var r=this.forward,i=ot.clone(this.position),a=n*this.dollyingStep,o=this.distance+n*this.dollyingStep;return a=Math.max(Math.min(o,this.maxDistance),this.minDistance)-this.distance,i[0]+=a*r[0],i[1]+=a*r[1],i[2]+=a*r[2],this._setPosition(i),this.type===On.ORBITING||this.type===On.EXPLORING?this._getDistance():this.type===On.TRACKING&&ot.add(this.focalPoint,i,this.distanceVector),this.triggerUpdate(),this},e.prototype.cancelLandmarkAnimation=function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)},e.prototype.createLandmark=function(n,r){var i,a,o,s;r===void 0&&(r={});var c=r.position,l=c===void 0?this.position:c,u=r.focalPoint,f=u===void 0?this.focalPoint:u,d=r.roll,h=r.zoom,p=new Et.CameraContribution;p.setType(this.type,void 0),p.setPosition(l[0],(i=l[1])!==null&&i!==void 0?i:this.position[1],(a=l[2])!==null&&a!==void 0?a:this.position[2]),p.setFocalPoint(f[0],(o=f[1])!==null&&o!==void 0?o:this.focalPoint[1],(s=f[2])!==null&&s!==void 0?s:this.focalPoint[2]),p.setRoll(d!=null?d:this.roll),p.setZoom(h!=null?h:this.zoom);var v={name:n,matrix:qt.clone(p.getWorldTransform()),right:ot.clone(p.right),up:ot.clone(p.up),forward:ot.clone(p.forward),position:ot.clone(p.getPosition()),focalPoint:ot.clone(p.getFocalPoint()),distanceVector:ot.clone(p.getDistanceVector()),distance:p.getDistance(),dollyingStep:p.getDollyingStep(),azimuth:p.getAzimuth(),elevation:p.getElevation(),roll:p.getRoll(),relAzimuth:p.relAzimuth,relElevation:p.relElevation,relRoll:p.relRoll,zoom:p.getZoom()};return this.landmarks.push(v),v},e.prototype.gotoLandmark=function(n,r){var i=this;r===void 0&&(r={});var a=tr(n)?this.landmarks.find(function(P){return P.name===n}):n;if(a){var o=(0,xr.Z)(r)?{duration:r}:r,s=o.easing,c=s===void 0?"linear":s,l=o.duration,u=l===void 0?100:l,f=o.easingFunction,d=f===void 0?void 0:f,h=o.onfinish,p=h===void 0?void 0:h,v=o.onframe,g=v===void 0?void 0:v,y=.01;if(u===0){this.syncFromLandmark(a),p&&p();return}this.cancelLandmarkAnimation();var m=a.position,b=a.focalPoint,_=a.zoom,O=a.roll,w=d||Et.EasingFunction(c),M,E=function(){i.setFocalPoint(b),i.setPosition(m),i.setRoll(O),i.setZoom(_),i.computeMatrix(),i.triggerUpdate(),p&&p()},A=function(P){M===void 0&&(M=P);var C=P-M;if(C>u){E();return}var j=w(C/u),N=ot.create(),k=ot.create(),R=1,D=0;ot.lerp(N,i.focalPoint,b,j),ot.lerp(k,i.position,m,j),D=i.roll*(1-j)+O*j,R=i.zoom*(1-j)+_*j,i.setFocalPoint(N),i.setPosition(k),i.setRoll(D),i.setZoom(R);var F=ot.dist(N,b)+ot.dist(k,m);if(F<=y&&_==null&&O==null){E();return}i.computeMatrix(),i.triggerUpdate(),C0){var i=n[r-1],a=i9(i,e);if(a){n[r-1]=a;return}}else o9(this.observer);n[r]=e},t.prototype.addListeners=function(){this.addListeners_(this.target)},t.prototype.addListeners_=function(e){var n=this.options;n.attributes&&e.addEventListener(Ne.ATTR_MODIFIED,this,!0),n.childList&&e.addEventListener(Ne.INSERTED,this,!0),(n.childList||n.subtree)&&e.addEventListener(Ne.REMOVED,this,!0)},t.prototype.removeListeners=function(){this.removeListeners_(this.target)},t.prototype.removeListeners_=function(e){var n=this.options;n.attributes&&e.removeEventListener(Ne.ATTR_MODIFIED,this,!0),n.childList&&e.removeEventListener(Ne.INSERTED,this,!0),(n.childList||n.subtree)&&e.removeEventListener(Ne.REMOVED,this,!0)},t.prototype.removeTransientObservers=function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(n){this.removeListeners_(n);for(var r=Hs.get(n),i=0;i0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDuration",{get:function(){return this._totalDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_needsTick",{get:function(){return this.pending||this.playState==="running"||!this._finishedFlag},enumerable:!1,configurable:!0}),t.prototype.updatePromises=function(){var e=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==e&&(n==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):e==="pending"?this.resolveReadyPromise():n==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&n!==e&&(n==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):n==="finished"?this.resolveFinishedPromise():e==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise},t.prototype.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()},t.prototype.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()},t.prototype.finish=function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},t.prototype.cancel=function(){var e=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new z0(null,this,this.currentTime,null);setTimeout(function(){e.oncancel(n)})}},t.prototype.reverse=function(){this.updatePromises();var e=this.currentTime;this.playbackRate*=-1,this.play(),e!==null&&(this.currentTime=e),this.updatePromises()},t.prototype.updatePlaybackRate=function(e){this.playbackRate=e},t.prototype.targetAnimations=function(){var e,n=(e=this.effect)===null||e===void 0?void 0:e.target;return n.getAnimations()},t.prototype.markTarget=function(){var e=this.targetAnimations();e.indexOf(this)===-1&&e.push(this)},t.prototype.unmarkTarget=function(){var e=this.targetAnimations(),n=e.indexOf(this);n!==-1&&e.splice(n,1)},t.prototype.tick=function(e,n){!this._idle&&!this._paused&&(this._startTime===null?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(e))},t.prototype.rewind=function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")},t.prototype.persist=function(){throw new Error(Tn)},t.prototype.addEventListener=function(e,n,r){throw new Error(Tn)},t.prototype.removeEventListener=function(e,n,r){throw new Error(Tn)},t.prototype.dispatchEvent=function(e){throw new Error(Tn)},t.prototype.commitStyles=function(){throw new Error(Tn)},t.prototype.ensureAlive=function(){var e,n;this.playbackRate<0&&this.currentTime===0?this._inEffect=!!(!((e=this.effect)===null||e===void 0)&&e.update(-1)):this._inEffect=!!(!((n=this.effect)===null||n===void 0)&&n.update(this.currentTime)),!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))},t.prototype.tickCurrentTime=function(e,n){e!==this._currentTime&&(this._currentTime=e,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())},t.prototype.fireEvents=function(e){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var r=new z0(null,this,this.currentTime,e);setTimeout(function(){n.onfinish&&n.onfinish(r)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var i=new z0(null,this,this.currentTime,e);this.onframe(i)}this._finishedFlag=!1}},t}(),l9=4,u9=.001,f9=1e-7,d9=10,al=11,wf=1/(al-1),h9=typeof Float32Array=="function",Yx=function(t,e){return 1-3*e+3*t},Vx=function(t,e){return 3*e-6*t},Xx=function(t){return 3*t},Sf=function(t,e,n){return((Yx(e,n)*t+Vx(e,n))*t+Xx(e))*t},$x=function(t,e,n){return 3*Yx(e,n)*t*t+2*Vx(e,n)*t+Xx(e)},p9=function(t,e,n,r,i){var a,o,s=0;do o=e+(n-e)/2,a=Sf(o,r,i)-t,a>0?n=o:e=o;while(Math.abs(a)>f9&&++s=u9?v9(s,d,t,n):h===0?d:p9(s,c,c+wf,t,n)};return function(s){return s===0||s===1?s:Sf(o(s),e,r)}},g9=function(t){return t=t.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},Mf=function(t){return Math.pow(t,2)},Ef=function(t){return Math.pow(t,3)},Af=function(t){return Math.pow(t,4)},Tf=function(t){return Math.pow(t,5)},Pf=function(t){return Math.pow(t,6)},Cf=function(t){return 1-Math.cos(t*Math.PI/2)},kf=function(t){return 1-Math.sqrt(1-t*t)},Rf=function(t){return t*t*(3*t-2)},Lf=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((e*3-2)/22-t,2)},Nf=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,2),r=n[0],i=r===void 0?1:r,a=n[1],o=a===void 0?.5:a,s=(0,cr.Z)(Number(i),1,10),c=(0,cr.Z)(Number(o),.1,2);return t===0||t===1?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-c/(Math.PI*2)*Math.asin(1/s))*(Math.PI*2)/c)},ol=function(t,e,n){e===void 0&&(e=[]);var r=(0,S.CR)(e,4),i=r[0],a=i===void 0?1:i,o=r[1],s=o===void 0?100:o,c=r[2],l=c===void 0?10:c,u=r[3],f=u===void 0?0:u;a=(0,cr.Z)(a,.1,1e3),s=(0,cr.Z)(s,.1,1e3),l=(0,cr.Z)(l,.1,1e3),f=(0,cr.Z)(f,.1,1e3);var d=Math.sqrt(s/a),h=l/(2*Math.sqrt(s*a)),p=h<1?d*Math.sqrt(1-h*h):0,v=1,g=h<1?(h*d+-f)/p:-f+d,y=n?n*t/1e3:t;return h<1?y=Math.exp(-y*h*d)*(v*Math.cos(p*y)+g*Math.sin(p*y)):y=(v+g*y)*Math.exp(-y*d),t===0||t===1?t:1-y},W0=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,2),r=n[0],i=r===void 0?10:r,a=n[1],o=a=="start"?Math.ceil:Math.floor;return o((0,cr.Z)(t,0,1)*i)/i},Ux=function(t,e){e===void 0&&(e=[]);var n=(0,S.CR)(e,4),r=n[0],i=n[1],a=n[2],o=n[3];return G0(r,i,a,o)(t)},If=G0(.42,0,1,1),Ni=function(t){return function(e,n,r){return n===void 0&&(n=[]),1-t(1-e,n,r)}},Ii=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?t(e*2,n,r)/2:1-t(e*-2+2,n,r)/2}},ji=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?(1-t(1-e*2,n,r))/2:(t(e*2-1,n,r)+1)/2}},qx={steps:W0,"step-start":function(t){return W0(t,[1,"start"])},"step-end":function(t){return W0(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":Ux,ease:function(t){return Ux(t,[.25,.1,.25,1])},in:If,out:Ni(If),"in-out":Ii(If),"out-in":ji(If),"in-quad":Mf,"out-quad":Ni(Mf),"in-out-quad":Ii(Mf),"out-in-quad":ji(Mf),"in-cubic":Ef,"out-cubic":Ni(Ef),"in-out-cubic":Ii(Ef),"out-in-cubic":ji(Ef),"in-quart":Af,"out-quart":Ni(Af),"in-out-quart":Ii(Af),"out-in-quart":ji(Af),"in-quint":Tf,"out-quint":Ni(Tf),"in-out-quint":Ii(Tf),"out-in-quint":ji(Tf),"in-expo":Pf,"out-expo":Ni(Pf),"in-out-expo":Ii(Pf),"out-in-expo":ji(Pf),"in-sine":Cf,"out-sine":Ni(Cf),"in-out-sine":Ii(Cf),"out-in-sine":ji(Cf),"in-circ":kf,"out-circ":Ni(kf),"in-out-circ":Ii(kf),"out-in-circ":ji(kf),"in-back":Rf,"out-back":Ni(Rf),"in-out-back":Ii(Rf),"out-in-back":ji(Rf),"in-bounce":Lf,"out-bounce":Ni(Lf),"in-out-bounce":Ii(Lf),"out-in-bounce":ji(Lf),"in-elastic":Nf,"out-elastic":Ni(Nf),"in-out-elastic":Ii(Nf),"out-in-elastic":ji(Nf),spring:ol,"spring-in":ol,"spring-out":Ni(ol),"spring-in-out":Ii(ol),"spring-out-in":ji(ol)},y9=function(t){return g9(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},m9=function(t){return qx[y9(t)]||qx.linear},b9=function(t){return t},x9=1,_9=.5,Zx=0;function Kx(t,e){return function(n){if(n>=1)return 1;var r=1/t;return n+=e*r,n-n%r}}var jf="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",O9=new RegExp("cubic-bezier\\("+jf+","+jf+","+jf+","+jf+"\\)"),w9=/steps\(\s*(\d+)\s*\)/,S9=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function H0(t){var e=O9.exec(t);if(e)return G0.apply(void 0,(0,S.ev)([],(0,S.CR)(e.slice(1).map(Number)),!1));var n=w9.exec(t);if(n)return Kx(Number(n[1]),Zx);var r=S9.exec(t);return r?Kx(Number(r[1]),{start:x9,middle:_9,end:Zx}[r[2]]):m9(t)}function M9(t){return Math.abs(E9(t)/(t.playbackRate||1))}function E9(t){var e;return t.duration===0||t.iterations===0?0:(t.duration==="auto"?0:Number(t.duration))*((e=t.iterations)!==null&&e!==void 0?e:1)}var Qx=0,Y0=1,Df=2,Jx=3;function A9(t,e,n){if(e===null)return Qx;var r=n.endTime;return e=Math.min(n.delay+t+n.endDelay,r)?Df:Jx}function T9(t,e,n,r,i){switch(r){case Y0:return e==="backwards"||e==="both"?0:null;case Jx:return n-i;case Df:return e==="forwards"||e==="both"?t:null;case Qx:return null}}function P9(t,e,n,r,i){var a=i;return t===0?e!==Y0&&(a+=n):a+=r/t,a}function C9(t,e,n,r,i,a){var o=t===1/0?e%1:t%1;return o===0&&n===Df&&r!==0&&(i!==0||a===0)&&(o=1),o}function k9(t,e,n,r){return t===Df&&e===1/0?1/0:n===1?Math.floor(r)-1:Math.floor(r)}function R9(t,e,n){var r=t;if(t!=="normal"&&t!=="reverse"){var i=e;t==="alternate-reverse"&&(i+=1),r="normal",i!==1/0&&i%2!==0&&(r="reverse")}return r==="normal"?n:1-n}function L9(t,e,n){var r=A9(t,e,n),i=T9(t,n.fill,e,r,n.delay);if(i===null)return null;var a=n.duration==="auto"?0:n.duration,o=P9(a,r,n.iterations,i,n.iterationStart),s=C9(o,n.iterationStart,r,n.iterations,i,a),c=k9(r,n.iterations,s,o),l=R9(n.direction,c,s);return n.currentIteration=c,n.progress=l,n.easingFunction(l)}function N9(t,e,n){var r=I9(t,e),i=j9(r,n);return function(a,o){if(o!==null)i.filter(function(c){return o>=c.applyFrom&&o1)throw new Error("Keyframe offsets must be between 0 and 1.");l.computedOffset=f}}else if(u==="composite"&&["replace","add","accumulate","auto"].indexOf(f)===-1)throw new Error("".concat(f," compositing is not supported"));l[u]=f}return l.offset===void 0&&(l.offset=null),l.easing===void 0&&(l.easing=(e==null?void 0:e.easing)||"linear"),l.composite===void 0&&(l.composite="auto"),l}),r=!0,i=-1/0,a=0;a=0&&Number(c.offset)<=1});function s(){var c,l,u=n.length;n[u-1].computedOffset=Number((c=n[u-1].offset)!==null&&c!==void 0?c:1),u>1&&(n[0].computedOffset=Number((l=n[0].offset)!==null&&l!==void 0?l:0));for(var f=0,d=Number(n[0].computedOffset),h=1;ha?i:a,s=i>a?1:i/a,c=i>a?a/i:1;t.save(),t.scale(s,c),t.arc(o,o,o,0,Math.PI*2)}}function q9(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.defX,s=o===void 0?0:o,c=e.defY,l=c===void 0?0:c,u=e.markerStart,f=e.markerEnd,d=e.markerStartOffset,h=e.markerEndOffset,p=0,v=0,g=0,y=0,m=0,b,_;u&&hn(u)&&d&&(b=i-n,_=a-r,m=Math.atan2(_,b),p=Math.cos(m)*(d||0),v=Math.sin(m)*(d||0)),f&&hn(f)&&h&&(b=n-i,_=r-a,m=Math.atan2(_,b),g=Math.cos(m)*(h||0),y=Math.sin(m)*(h||0)),t.moveTo(n-s+p,r-l+v),t.lineTo(i-s+g,a-l+y)}function Z9(t,e){var n=e.defX,r=n===void 0?0:n,i=e.defY,a=i===void 0?0:i,o=e.markerStart,s=e.markerEnd,c=e.markerStartOffset,l=e.markerEndOffset,u=e.path,f=u.absolutePath,d=u.segments,h=0,p=0,v=0,g=0,y=0,m,b;if(o&&hn(o)&&c){var _=(0,S.CR)(o.parentNode.getStartTangent(),2),O=_[0],w=_[1];m=O[0]-w[0],b=O[1]-w[1],y=Math.atan2(b,m),h=Math.cos(y)*(c||0),p=Math.sin(y)*(c||0)}if(s&&hn(s)&&l){var M=(0,S.CR)(s.parentNode.getEndTangent(),2),O=M[0],w=M[1];m=O[0]-w[0],b=O[1]-w[1],y=Math.atan2(b,m),v=Math.cos(y)*(l||0),g=Math.sin(y)*(l||0)}for(var E=0;EB?F:B,St=F>B?1:F/B,Ft=F>B?B/F:1;t.translate(R-r,D-a),t.rotate($),t.scale(St,Ft),t.arc(0,0,it,z,Y,!!(1-tt)),t.scale(1/St,1/Ft),t.rotate(-$),t.translate(-(R-r),-(D-a))}N&&t.lineTo(A[6]-r+v,A[7]-a+g);break}case"Z":t.closePath();break}}}function K9(t,e){var n=e.defX,r=n===void 0?0:n,i=e.defY,a=i===void 0?0:i,o=e.markerStart,s=e.markerEnd,c=e.markerStartOffset,l=e.markerEndOffset,u=e.points.points,f=u.length,d=u[0][0]-r,h=u[0][1]-a,p=u[f-1][0]-r,v=u[f-1][1]-a,g=0,y=0,m=0,b=0,_=0,O,w;o&&hn(o)&&c&&(O=u[1][0]-u[0][0],w=u[1][1]-u[0][1],_=Math.atan2(w,O),g=Math.cos(_)*(c||0),y=Math.sin(_)*(c||0)),s&&hn(s)&&l&&(O=u[f-1][0]-u[0][0],w=u[f-1][1]-u[0][1],_=Math.atan2(w,O),m=Math.cos(_)*(l||0),b=Math.sin(_)*(l||0)),t.moveTo(d+(g||m),h+(y||b));for(var M=1;M0?1:-1,l=i>0?1:-1,u=c+l===0,f=(0,S.CR)(n.map(function(g){return(0,cr.Z)(g,0,Math.min(Math.abs(a)/2,Math.abs(o)/2))}),4),d=f[0],h=f[1],p=f[2],v=f[3];t.moveTo(c*d,0),t.lineTo(a-c*h,0),h!==0&&t.arc(a-c*h,l*h,h,-l*Math.PI/2,c>0?0:Math.PI,u),t.lineTo(a,o-l*p),p!==0&&t.arc(a-c*p,o-l*p,p,c>0?0:Math.PI,l>0?Math.PI/2:1.5*Math.PI,u),t.lineTo(c*v,o),v!==0&&t.arc(c*v,o-l*v,v,l>0?Math.PI/2:-Math.PI/2,c>0?Math.PI:0,u),t.lineTo(0,l*d),d!==0&&t.arc(c*d,l*d,d,c>0?Math.PI:0,l>0?Math.PI*1.5:Math.PI/2,u)}}var t7=function(t){(0,S.ZT)(e,t);function e(){var n=t.apply(this,(0,S.ev)([],(0,S.CR)(arguments),!1))||this;return n.name="canvas-path-generator",n}return e.prototype.init=function(){var n,r=(n={},n[bt.CIRCLE]=$9,n[bt.ELLIPSE]=U9,n[bt.RECT]=J9,n[bt.LINE]=q9,n[bt.POLYLINE]=Q9,n[bt.POLYGON]=K9,n[bt.PATH]=Z9,n[bt.TEXT]=void 0,n[bt.GROUP]=void 0,n[bt.IMAGE]=void 0,n[bt.HTML]=void 0,n[bt.MESH]=void 0,n);this.context.pathGeneratorFactory=r},e.prototype.destroy=function(){delete this.context.pathGeneratorFactory},e}(Za),e7=ot.create(),n7=ot.create(),r7=ot.create(),i7=qt.create(),a7=function(){function t(){var e=this;this.isHit=function(n,r,i,a){var o=e.context.pointInPathPickerFactory[n.nodeName];if(o){var s=qt.invert(i7,i),c=ot.transformMat4(n7,ot.set(r7,r[0],r[1],0),s),l=n.getGeometryBounds().halfExtents,u=n.parsedStyle.anchor;if(c[0]+=(u&&u[0]||0)*l[0]*2,c[1]+=(u&&u[1]||0)*l[1]*2,o(n,new Cr(c[0],c[1]),a,e.isPointInPath,e.context,e.runtime))return!0}return!1},this.isPointInPath=function(n,r){var i=e.runtime.offscreenCanvasCreator.getOrCreateContext(e.context.config.offscreenCanvas),a=e.context.pathGeneratorFactory[n.nodeName];return a&&(i.beginPath(),a(i,n.parsedStyle),i.closePath()),i.isPointInPath(r.x,r.y)}}return t.prototype.apply=function(e,n){var r=this,i,a=e.renderingService,o=e.renderingContext;this.context=e,this.runtime=n;var s=(i=o.root)===null||i===void 0?void 0:i.ownerDocument;a.hooks.pick.tapPromise(t.tag,function(c){return(0,S.mG)(r,void 0,void 0,function(){return(0,S.Jh)(this,function(l){return[2,this.pick(s,c)]})})}),a.hooks.pickSync.tap(t.tag,function(c){return r.pick(s,c)})},t.prototype.pick=function(e,n){var r,i,a=n.topmost,o=n.position,s=o.x,c=o.y,l=ot.set(e7,s,c,0),u=e.elementsFromBBox(l[0],l[1],l[0],l[1]),f=[];try{for(var d=(0,S.XA)(u),h=d.next();!h.done;h=d.next()){var p=h.value,v=p.getWorldTransform(),g=this.isHit(p,l,v,!1);if(g){var y=xx(p);if(y){var m=y.parsedStyle.clipPath,b=this.isHit(m,l,m.getWorldTransform(),!0);if(b){if(a)return n.picked=[p],n;f.push(p)}}else{if(a)return n.picked=[p],n;f.push(p)}}}}catch(_){r={error:_}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return n.picked=f,n},t.tag="CanvasPicker",t}();function o7(t,e,n){var r=t.parsedStyle,i=r.r,a=r.fill,o=r.stroke,s=r.lineWidth,c=r.increasedLineWidthForHitTesting,l=r.pointerEvents,u=((s||0)+(c||0))/2,f=Hr(i,i,e.x,e.y),d=(0,S.CR)(Vo(l,a,o),2),h=d[0],p=d[1];return h&&p||n?f<=i+u:h?f<=i:p?f>=i-u&&f<=i+u:!1}function Bf(t,e,n,r){return t/(n*n)+e/(r*r)}function s7(t,e,n){var r=t.parsedStyle,i=r.rx,a=r.ry,o=r.fill,s=r.stroke,c=r.lineWidth,l=r.increasedLineWidthForHitTesting,u=r.pointerEvents,f=e.x,d=e.y,h=(0,S.CR)(Vo(u,o,s),2),p=h[0],v=h[1],g=((c||0)+(l||0))/2,y=(f-i)*(f-i),m=(d-a)*(d-a);return p&&v||n?Bf(y,m,i+g,a+g)<=1:p?Bf(y,m,i,a)<=1:v?Bf(y,m,i-g,a-g)>=1&&Bf(y,m,i+g,a+g)<=1:!1}function Uo(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function c7(t,e,n,r,i,a,o){var s=i/2;return Uo(t-s,e-s,n,i,a,o)||Uo(t+n-s,e-s,i,r,a,o)||Uo(t+s,e+r-s,n,i,a,o)||Uo(t-s,e+s,i,r,a,o)}function zf(t,e,n,r,i,a,o,s){var c=(Math.atan2(s-e,o-t)+Math.PI*2)%(Math.PI*2),l={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return Hr(l.x,l.y,o,s)<=a/2}function no(t,e,n,r,i,a,o){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),f=i/2;return a>=s-f&&a<=c+f&&o>=l-f&&o<=u+f?Rb(t,e,n,r,a,o)<=i/2:!1}function u_(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;o0!=U0(s[1]-n)>0&&U0(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function d_(t,e,n){for(var r=!1,i=0;i_&&A>O,v&&(v.resetTransform?v.resetTransform():v.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(v,0,0,y*g,m*g,i.background))});var p=function(v,g){v.isVisible()&&!v.isCulled()&&(r.renderDisplayObject(v,g,r.context,r.restoreStack,n),r.saveDirtyAABB(v));var y=v.sortable.sorted||v.childNodes;y.forEach(function(m){p(m,g)})};o.hooks.endFrame.tap(t.tag,function(){var v=u.getContext(),g=u.getDPR();if(qt.fromScaling(r.dprMatrix,[g,g,1]),qt.multiply(r.vpMatrix,r.dprMatrix,a.getOrthoMatrix()),r.clearFullScreen)p(s.root,v);else{var y=r.safeMergeAABB.apply(r,(0,S.ev)([r.mergeDirtyAABBs(r.renderQueue)],(0,S.CR)(r.removedRBushNodeAABBs.map(function($){var tt=$.minX,it=$.minY,St=$.maxX,Ft=$.maxY,Xt=new Er;return Xt.setMinMax([tt,it,0],[St,Ft,0]),Xt})),!1));if(r.removedRBushNodeAABBs=[],Er.isEmpty(y)){r.renderQueue=[];return}var m=r.convertAABB2Rect(y),b=m.x,_=m.y,O=m.width,w=m.height,M=ot.transformMat4(r.vec3a,[b,_,0],r.vpMatrix),E=ot.transformMat4(r.vec3b,[b+O,_,0],r.vpMatrix),A=ot.transformMat4(r.vec3c,[b,_+w,0],r.vpMatrix),P=ot.transformMat4(r.vec3d,[b+O,_+w,0],r.vpMatrix),C=Math.min(M[0],E[0],P[0],A[0]),j=Math.min(M[1],E[1],P[1],A[1]),N=Math.max(M[0],E[0],P[0],A[0]),k=Math.max(M[1],E[1],P[1],A[1]),R=Math.floor(C),D=Math.floor(j),F=Math.ceil(N-C),B=Math.ceil(k-j);v.save(),r.clearRect(v,R,D,F,B,i.background),v.beginPath(),v.rect(R,D,F,B),v.clip(),v.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]);var z=i.renderer.getConfig().enableDirtyRectangleRenderingDebug;z&&f.dispatchEvent(new kn(pi.DIRTY_RECTANGLE,{dirtyRect:{x:R,y:D,width:F,height:B}}));var Y=r.searchDirtyObjects(y);Y.sort(function($,tt){return $.sortable.renderOrder-tt.sortable.renderOrder}).forEach(function($){$&&$.isVisible()&&!$.isCulled()&&r.renderDisplayObject($,v,r.context,r.restoreStack,n)}),v.restore(),r.renderQueue.forEach(function($){r.saveDirtyAABB($)}),r.renderQueue=[]}r.restoreStack.forEach(function(){v.restore()}),r.restoreStack=[]}),o.hooks.render.tap(t.tag,function(v){r.clearFullScreen||r.renderQueue.push(v)})},t.prototype.clearRect=function(e,n,r,i,a,o){e.clearRect(n,r,i,a),o&&(e.fillStyle=o,e.fillRect(n,r,i,a))},t.prototype.renderDisplayObject=function(e,n,r,i,a){var o=e.nodeName,s=i[i.length-1];s&&!(e.compareDocumentPosition(s)&Rr.DOCUMENT_POSITION_CONTAINS)&&(n.restore(),i.pop());var c=this.context.styleRendererFactory[o],l=this.pathGeneratorFactory[o],u=e.parsedStyle.clipPath;if(u){this.applyWorldTransform(n,u);var f=this.pathGeneratorFactory[u.nodeName];f&&(n.save(),i.push(e),n.beginPath(),f(n,u.parsedStyle),n.closePath(),n.clip())}c&&(this.applyWorldTransform(n,e),n.save(),this.applyAttributesToContext(n,e)),l&&(n.beginPath(),l(n,e.parsedStyle),e.nodeName!==bt.LINE&&e.nodeName!==bt.PATH&&e.nodeName!==bt.POLYLINE&&n.closePath()),c&&(c.render(n,e.parsedStyle,e,r,this,a),n.restore()),e.renderable.dirty=!1},t.prototype.convertAABB2Rect=function(e){var n=e.getMin(),r=e.getMax(),i=Math.floor(n[0]),a=Math.floor(n[1]),o=Math.ceil(r[0]),s=Math.ceil(r[1]),c=o-i,l=s-a;return{x:i,y:a,width:c,height:l}},t.prototype.mergeDirtyAABBs=function(e){var n=new Er;return e.forEach(function(r){var i=r.getRenderBounds();n.add(i);var a=r.renderable.dirtyRenderBounds;a&&n.add(a)}),n},t.prototype.searchDirtyObjects=function(e){var n=(0,S.CR)(e.getMin(),2),r=n[0],i=n[1],a=(0,S.CR)(e.getMax(),2),o=a[0],s=a[1],c=this.rBush.search({minX:r,minY:i,maxX:o,maxY:s});return c.map(function(l){var u=l.displayObject;return u})},t.prototype.saveDirtyAABB=function(e){var n=e.renderable;n.dirtyRenderBounds||(n.dirtyRenderBounds=new Er);var r=e.getRenderBounds();r&&n.dirtyRenderBounds.update(r.center,r.halfExtents)},t.prototype.applyAttributesToContext=function(e,n){var r=n.parsedStyle,i=r.stroke,a=r.fill,o=r.opacity,s=r.lineDash,c=r.lineDashOffset;s&&e.setLineDash(s),(0,ye.Z)(c)||(e.lineDashOffset=c),(0,ye.Z)(o)||(e.globalAlpha*=o),!(0,ye.Z)(i)&&!Array.isArray(i)&&!i.isNone&&(e.strokeStyle=n.attributes.stroke),!(0,ye.Z)(a)&&!Array.isArray(a)&&!a.isNone&&(e.fillStyle=n.attributes.fill)},t.prototype.applyWorldTransform=function(e,n,r){var i=0,a=0,o=(n.parsedStyle||{}).anchor,s=o&&o[0]||0,c=o&&o[1]||0;if(s!==0||c!==0){var l=n.geometry.contentBounds,u=l&&l.halfExtents[0]*2||0,f=l&&l.halfExtents[1]*2||0;i=-(s*u),a=-(c*f)}r?(qt.copy(this.tmpMat4,n.getLocalTransform()),this.vec3a[0]=i,this.vec3a[1]=a,this.vec3a[2]=0,qt.translate(this.tmpMat4,this.tmpMat4,this.vec3a),qt.multiply(this.tmpMat4,r,this.tmpMat4),qt.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(qt.copy(this.tmpMat4,n.getWorldTransform()),this.vec3a[0]=i,this.vec3a[1]=a,this.vec3a[2]=0,qt.translate(this.tmpMat4,this.tmpMat4,this.vec3a),qt.multiply(this.tmpMat4,this.vpMatrix,this.tmpMat4)),e.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},t.prototype.safeMergeAABB=function(){for(var e=[],n=0;n0,M=s.alpha===0,E=!!(b&&b.length),A=!(0,ye.Z)(y)&&m>0,P=r.nodeName,C=g==="inner",j=w&&A&&(P===bt.PATH||P===bt.LINE||P===bt.POLYLINE||M||C);O&&(e.globalAlpha=l*u,j||Gf(r,e,A),this.fill(e,r,s,c,i,a,o),j||this.clearShadowAndFilter(e,E,A)),w&&(e.globalAlpha=l*d,e.lineWidth=h,(0,ye.Z)(_)||(e.miterLimit=_),(0,ye.Z)(p)||(e.lineCap=p),(0,ye.Z)(v)||(e.lineJoin=v),j&&(C&&(e.globalCompositeOperation="source-atop"),Gf(r,e,!0),C&&(this.stroke(e,r,f,i,a,o),e.globalCompositeOperation="source-over",this.clearShadowAndFilter(e,E,!0))),this.stroke(e,r,f,i,a,o))},t.prototype.clearShadowAndFilter=function(e,n,r){if(r&&(e.shadowColor="transparent",e.shadowBlur=0),n){var i=e.filter;!(0,ye.Z)(i)&&i.indexOf("drop-shadow")>-1&&(e.filter=i.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}},t.prototype.fill=function(e,n,r,i,a,o,s){var c=this;Array.isArray(r)?r.forEach(function(l){e.fillStyle=c.getColor(l,n,e),i?e.fill(i):e.fill()}):(Kc(r)&&(e.fillStyle=this.getPattern(r,n,e,a,o,s)),i?e.fill(i):e.fill())},t.prototype.stroke=function(e,n,r,i,a,o){var s=this;Array.isArray(r)?r.forEach(function(c){e.strokeStyle=s.getColor(c,n,e),e.stroke()}):(Kc(r)&&(e.strokeStyle=this.getPattern(r,n,e,i,a,o)),e.stroke())},t.prototype.getPattern=function(e,n,r,i,a,o){var s,c;if(e.image.nodeName==="rect"){var l=e.image.parsedStyle,u=l.width,f=l.height;c=i.contextService.getDPR();var d=i.config.offscreenCanvas;s=o.offscreenCanvasCreator.getOrCreateCanvas(d),s.width=u*c,s.height=f*c;var h=o.offscreenCanvasCreator.getOrCreateContext(d),p=[];e.image.forEach(function(g){a.renderDisplayObject(g,h,i,p,o)}),p.forEach(function(){h.restore()})}var v=this.imagePool.getOrCreatePatternSync(e,r,s,c,function(){n.renderable.dirty=!0,i.renderingService.dirtify()});return v},t.prototype.getColor=function(e,n,r){var i;if(e.type===sa.LinearGradient||e.type===sa.RadialGradient){var a=n.getGeometryBounds(),o=a&&a.halfExtents[0]*2||1,s=a&&a.halfExtents[1]*2||1;i=this.imagePool.getOrCreateGradient((0,S.pi)((0,S.pi)({type:e.type},e.value),{width:o,height:s}),r)}return i},t}();function Gf(t,e,n){var r=t.parsedStyle,i=r.filter,a=r.shadowColor,o=r.shadowBlur,s=r.shadowOffsetX,c=r.shadowOffsetY;i&&i.length&&(e.filter=t.style.filter),n&&(e.shadowColor=a.toString(),e.shadowBlur=o||0,e.shadowOffsetX=s||0,e.shadowOffsetY=c||0)}var _7=function(){function t(e){this.imagePool=e}return t.prototype.render=function(e,n,r){var i=n.width,a=n.height,o=n.img,s=n.shadowColor,c=n.shadowBlur,l,u=i,f=a;if(tr(o)?l=this.imagePool.getImageSync(o):(u||(u=o.width),f||(f=o.height),l=o),l){var d=!(0,ye.Z)(s)&&c>0;Gf(r,e,d);try{e.drawImage(l,0,0,u,f)}catch(h){}}},t}(),O7=function(){function t(){}return t.prototype.render=function(e,n,r,i,a,o){var s=n,c=s.lineWidth,l=s.textAlign,u=s.textBaseline,f=s.lineJoin,d=s.miterLimit,h=s.letterSpacing,p=s.stroke,v=s.fill,g=s.fillOpacity,y=s.strokeOpacity,m=s.opacity,b=s.metrics,_=s.dx,O=s.dy,w=s.shadowColor,M=s.shadowBlur,E=b.font,A=b.lines,P=b.height,C=b.lineHeight,j=b.lineMetrics;e.font=E,e.lineWidth=c,e.textAlign=l==="middle"?"center":l;var N=u;!o.enableCSSParsing&&N==="alphabetic"&&(N="bottom"),e.lineJoin=f,(0,ye.Z)(d)||(e.miterLimit=d);var k=0;u==="middle"?k=-P/2-C/2:u==="bottom"||u==="alphabetic"||u==="ideographic"?k=-P:(u==="top"||u==="hanging")&&(k=-C);var R=_||0;k+=O||0,A.length===1&&(N==="bottom"?(N="middle",k-=.5*P):N==="top"&&(N="middle",k+=.5*P)),e.textBaseline=N;var D=!(0,ye.Z)(w)&&M>0;Gf(r,e,D);for(var F=0;F=1?Math.ceil(i):1,this.dpr=i,this.$canvas&&(this.$canvas.width=this.dpr*e,this.$canvas.height=this.dpr*n,j8(this.$canvas,e,n)),this.renderingContext.renderReasons.add(to.CAMERA_CHANGED)},t.prototype.applyCursorStyle=function(e){this.$container&&this.$container.style&&(this.$container.style.cursor=e)},t.prototype.toDataURL=function(e){return e===void 0&&(e={}),(0,S.mG)(this,void 0,void 0,function(){var n,r;return(0,S.Jh)(this,function(i){return n=e.type,r=e.encoderOptions,[2,this.context.canvas.toDataURL(n,r)]})})},t}(),L7=function(t){(0,S.ZT)(e,t);function e(){var n=t.apply(this,(0,S.ev)([],(0,S.CR)(arguments),!1))||this;return n.name="canvas-context-register",n}return e.prototype.init=function(){this.context.ContextService=R7},e.prototype.destroy=function(){delete this.context.ContextService},e}(Za),h_=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n)||this;return r.registerPlugin(new L7),r.registerPlugin(new k7),r.registerPlugin(new t7),r.registerPlugin(new w7),r.registerPlugin(new M7),r.registerPlugin(new b7),r.registerPlugin(new T7),r}return e}(Jj),N7=function(){function t(e){this.dragndropPluginOptions=e}return t.prototype.apply=function(e){var n=this,r=e.renderingService,i=e.renderingContext,a=i.root.ownerDocument,o=a.defaultView,s=function(c){var l=c.target,u=l===a,f=u&&n.dragndropPluginOptions.isDocumentDraggable?a:l.closest&&l.closest("[draggable=true]");if(f){var d=!1,h=c.timeStamp,p=[c.clientX,c.clientY],v=null,g=[c.clientX,c.clientY],y=function(b){return(0,S.mG)(n,void 0,void 0,function(){var _,O,w,M,E,A;return(0,S.Jh)(this,function(P){switch(P.label){case 0:if(!d){if(_=b.timeStamp-h,O=ui([b.clientX,b.clientY],p),_<=this.dragndropPluginOptions.dragstartTimeThreshold||O<=this.dragndropPluginOptions.dragstartDistanceThreshold)return[2];b.type="dragstart",f.dispatchEvent(b),d=!0}return b.type="drag",b.dx=b.clientX-g[0],b.dy=b.clientY-g[1],f.dispatchEvent(b),g=[b.clientX,b.clientY],u?[3,2]:(w=this.dragndropPluginOptions.overlap==="pointer"?[b.canvasX,b.canvasY]:l.getBounds().center,[4,a.elementsFromPoint(w[0],w[1])]);case 1:M=P.sent(),E=M[M.indexOf(l)+1],A=(E==null?void 0:E.closest("[droppable=true]"))||(this.dragndropPluginOptions.isDocumentDroppable?a:null),v!==A&&(v&&(b.type="dragleave",b.target=v,v.dispatchEvent(b)),A&&(b.type="dragenter",b.target=A,A.dispatchEvent(b)),v=A,v&&(b.type="dragover",b.target=v,v.dispatchEvent(b))),P.label=2;case 2:return[2]}})})};o.addEventListener("pointermove",y);var m=function(b){if(d){b.detail={preventClick:!0};var _=b.clone();v&&(_.type="drop",_.target=v,v.dispatchEvent(_)),_.type="dragend",f.dispatchEvent(_),d=!1}o.removeEventListener("pointermove",y)};l.addEventListener("pointerup",m,{once:!0}),l.addEventListener("pointerupoutside",m,{once:!0})}};r.hooks.init.tap(t.tag,function(){o.addEventListener("pointerdown",s)}),r.hooks.destroy.tap(t.tag,function(){o.removeEventListener("pointerdown",s)})},t.tag="Dragndrop",t}(),p_=function(t){(0,S.ZT)(e,t);function e(n){n===void 0&&(n={});var r=t.call(this)||this;return r.options=n,r.name="dragndrop",r}return e.prototype.init=function(){this.addRenderingPlugin(new N7((0,S.pi)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))},e.prototype.destroy=function(){this.removeAllRenderingPlugins()},e.prototype.setOptions=function(n){Object.assign(this.plugins[0].dragndropPluginOptions,n)},e}(Za);function I7(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}var v_=I7,j7=function(t){return typeof t=="object"&&t!==null},q0=j7,D7=function(t){if(!q0(t)||!(0,nf.Z)(t,"Object"))return!1;if(Object.getPrototypeOf(t)===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},io=D7,F7=5;function B7(t,e){if(Object.hasOwn)return Object.hasOwn(t,e);if(t==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}function g_(t,e,n,r){n=n||0,r=r||F7;for(var i in e)if(B7(e,i)){var a=e[i];a!==null&&io(a)?(io(t[i])||(t[i]={}),ni.pop().map(([a,o])=>[...i,a,o]));return t}function Dft(t,...e){return x_(Wf(t,...e),e)}function Fft(t,e,...n){return x_(Q0(t,e,...n),n)}function K0(t,e,...n){return Ys(t,sl,e,n)}function Q0(t,e,...n){return Ys(t,Array.from,e,n)}function Bft(t,...e){return Ys(t,identity,__,e)}function zft(t,...e){return Ys(t,Array.from,__,e)}function __(t){if(t.length!==1)throw new Error("duplicate key");return t[0]}function Ys(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new G7,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}var O_=function(t){return(0,ye.Z)(t)?"":t.toString()},W7=function(t){var e=O_(t);return e.charAt(0).toLowerCase()+e.substring(1)},w_=W7,H7=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function qo(t){return t}function J0(t){return t.reduce((e,n)=>(r,...i)=>n(e(r,...i),...i),qo)}function Y7(t){return t.reduce((e,n)=>r=>H7(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),qo)}function tv(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function Vs(t=""){throw new Error(t)}function ev(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function Rn(t){return t!=null&&!Number.isNaN(t)}function Gft(t,e){return t+(e-t)*Math.random()}function V7(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function X7(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function le(t,e){return S_(t,e)||{}}function S_(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[w_(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function Wft(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>[`${e}${upperFirst(n)}`,r]))}function $7(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function nv(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function M_(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function cl(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function ka(t){return t===null||t===!1}function E_(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!io(a)||!io(t[i])?t[i]=a:E_(t[i],a,n,r+1)}return t}}function je(t){return new _r([t],null,t,t.ownerDocument)}class _r{constructor(e=null,n=null,r=null,i=null,a=[null,null,null,null,null],o=[],s=[]){this._elements=Array.from(e),this._data=n,this._parent=r,this._document=i,this._enter=a[0],this._update=a[1],this._exit=a[2],this._merge=a[3],this._split=a[4],this._transitions=o,this._facetElements=s}selectAll(e){const n=typeof e=="string"?this._parent.querySelectorAll(e):e;return new _r(n,null,this._elements[0],this._document)}selectFacetAll(e){const n=typeof e=="string"?this._parent.querySelectorAll(e):e;return new _r(this._elements,null,this._parent,this._document,void 0,void 0,n)}select(e){const n=typeof e=="string"?this._parent.querySelectorAll(e)[0]||null:e;return new _r([n],null,n,this._document)}append(e){const n=typeof e=="function"?e:()=>this.createElement(e),r=[];if(this._data!==null){for(let i=0;ii,r=()=>null){const i=[],a=[],o=new Set(this._elements),s=[],c=new Set,l=new Map(this._elements.map((h,p)=>[n(h.__data__,p),h])),u=new Map(this._facetElements.map((h,p)=>[n(h.__data__,p),h])),f=Zn(this._elements,h=>r(h.__data__));for(let h=0;ho,n=o=>o,r=o=>o.remove(),i=o=>o,a=o=>o.remove()){const o=e(this._enter),s=n(this._update),c=r(this._exit),l=i(this._merge),u=a(this._split);return s.merge(o).merge(c).merge(l).merge(u)}remove(){for(let e=0;ei.finished)).then(()=>{this._elements[e].remove()})}else this._elements[e].remove()}return new _r([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let n=0;nn:n;return this.each(function(i,a,o){n!==void 0&&(o[e]=r(i,a,o))})}style(e,n){const r=typeof n!="function"?()=>n:n;return this.each(function(i,a,o){n!==void 0&&(o.style[e]=r(i,a,o))})}transition(e){const n=typeof e!="function"?()=>e:e,{_transitions:r}=this;return this.each(function(i,a,o){r[a]=n(i,a,o)})}on(e,n){return this.each(function(r,i,a){a.addEventListener(e,n)}),this}call(e,...n){return e(this,...n),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}_r.registry={g:Fr,rect:$o,circle:nl,path:ri,text:Zi,ellipse:R0,image:L0,line:rl,polygon:il,polyline:N0,html:_f};const wn={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CHANGE_DATA:"beforechangedata",AFTER_CHANGE_DATA:"afterchangedata",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MOVE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"};var U7=function(t){var e=O_(t);return e.charAt(0).toUpperCase()+e.substring(1)},ao=U7;function q7(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Hf(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Z7(t){return t=Hf(Math.abs(t)),t?t[1]:NaN}function K7(t,e){return function(n,r){for(var i=n.length,a=[],o=0,s=t[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=t[o=(o+1)%t.length];return a.reverse().join(e)}}function Q7(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var J7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rv(t){if(!(e=J7.exec(t)))throw new Error("invalid format: "+t);var e;return new iv({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}rv.prototype=iv.prototype;function iv(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}iv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tF(t){t:for(var e=t.length,n=1,r=-1,i;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(i+1):t}var A_;function eF(t,e){var n=Hf(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(A_=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Hf(t,Math.max(0,e+a-1))[0]}function T_(t,e){var n=Hf(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var P_={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:q7,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>T_(t*100,e),r:T_,s:eF,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function C_(t){return t}var k_=Array.prototype.map,R_=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function nF(t){var e=t.grouping===void 0||t.thousands===void 0?C_:K7(k_.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",a=t.numerals===void 0?C_:Q7(k_.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function l(f){f=rv(f);var d=f.fill,h=f.align,p=f.sign,v=f.symbol,g=f.zero,y=f.width,m=f.comma,b=f.precision,_=f.trim,O=f.type;O==="n"?(m=!0,O="g"):P_[O]||(b===void 0&&(b=12),_=!0,O="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var w=v==="$"?n:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",M=v==="$"?r:/[%p]/.test(O)?o:"",E=P_[O],A=/[defgprs%]/.test(O);b=b===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function P(C){var j=w,N=M,k,R,D;if(O==="c")N=E(C)+N,C="";else{C=+C;var F=C<0||1/C<0;if(C=isNaN(C)?c:E(Math.abs(C),b),_&&(C=tF(C)),F&&+C==0&&p!=="+"&&(F=!1),j=(F?p==="("?p:s:p==="-"||p==="("?"":p)+j,N=(O==="s"?R_[8+A_/3]:"")+N+(F&&p==="("?")":""),A){for(k=-1,R=C.length;++kD||D>57){N=(D===46?i+C.slice(k+1):C.slice(k))+N,C=C.slice(0,k);break}}}m&&!g&&(C=e(C,1/0));var B=j.length+C.length+N.length,z=B>1)+j+C+N+z.slice(B);break;default:C=z+j+C+N;break}return a(C)}return P.toString=function(){return f+""},P}function u(f,d){var h=l((f=rv(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Z7(d)/3)))*3,v=Math.pow(10,-p),g=R_[8+p/3];return function(y){return h(v*y)+g}}return{format:l,formatPrefix:u}}var Yf,oo,rF;iF({thousands:",",grouping:[3],currency:["$",""]});function iF(t){return Yf=nF(t),oo=Yf.format,rF=Yf.formatPrefix,Yf}function so(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Zo(t){return t.map((e,n)=>n)}function Hft(t){const e=t.length,n=t[0].length,r=new Array(n).fill(0).map(()=>new Array(e));for(let i=0;i{n[e(r)?0:1].push(r)}),n}function I_(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function sF(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...I_(t,n));return e}var cF=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},ll=cF,av=function(t,e){if(t===e)return!0;if(!t||!e||tr(t)||tr(e))return!1;if(ll(t)||ll(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}const D_=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},ul=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=D_(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};ul.props={};const F_=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},ov=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=F_(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};ov.props={};function Vf(t,e,n){return Math.max(e,Math.min(t,n))}function Xf(t,e=10){return typeof t!="number"||Math.abs(t)<1e-15?t:parseFloat(t.toFixed(e))}const lF=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]];var B_=yt(38628);function zn(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Nn(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function fl(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function z_(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function dl(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function G_(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function uF(t){return dl(t)&&Nn(t)}function Xs(t){return z_(t)||Nn(t)}function W_(t){return Nn(t)&&zn(t)}function Vft(t){return Nn(t)||dl(t)||fl(t)||W_(t)}function fF(t){if(Xs(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function $f(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function sv(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function dF(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}function H_(t,e){e(t),t.children&&t.children.forEach(function(n){n&&H_(n,e)})}function hl(t){Uf(t,!0)}function co(t){Uf(t,!1)}function Uf(t,e){var n=e?"visible":"hidden";H_(t,function(r){r.attr("visibility",n)})}function hF(t){return typeof t=="boolean"?!1:"enter"in t&&"update"in t&&"exit"in t}function Y_(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(r){var i=(0,S.CR)(r,1),a=i[0];return!e.includes(a)}));return Object.fromEntries(e.map(function(r){return hF(t)?t[r]===!1?[r,!1]:[r,(0,S.pi)((0,S.pi)({},t[r]),n)]:[r,n]}))}function $s(t,e){t?t.finished.then(e):e()}function pF(t,e){t.length===0?e():Promise.all(t.map(function(n){return n==null?void 0:n.finished})).then(e)}function V_(t,e){"update"in t?t.update(e):t.attr(e)}function X_(t,e,n){if(e.length===0)return null;if(!n){var r=e.slice(-1)[0];return V_(t,{style:r}),null}return t.animate(e,n)}function vF(t,e){return!(t.nodeName!=="text"||e.nodeName!=="text"||t.attributes.text!==e.attributes.text)}function gF(t,e,n,r){if(r===void 0&&(r="destroy"),vF(t,e))return t.remove(),[null];var i=function(){r==="destroy"?t.destroy():r==="hide"&&co(t),e.isVisible()&&hl(e)};if(!n)return i(),[null];var a=n.duration,o=a===void 0?0:a,s=n.delay,c=s===void 0?0:s,l=Math.ceil(+o/2),u=+o/4,f=function(C){if(C.nodeName==="circle"){var j=(0,S.CR)(C.getLocalPosition(),2),N=j[0],k=j[1],R=C.attr("r");return[N-R,k-R]}return C.getLocalPosition()},d=(0,S.CR)(f(t),2),h=d[0],p=d[1],v=(0,S.CR)(f(e),2),g=v[0],y=v[1],m=(0,S.CR)([(h+g)/2-h,(p+y)/2-p],2),b=m[0],_=m[1],O=t.style.opacity,w=O===void 0?1:O,M=e.style.opacity,E=M===void 0?1:M,A=t.animate([{opacity:w,transform:"translate(0, 0)"},{opacity:0,transform:"translate(".concat(b,", ").concat(_,")")}],(0,S.pi)((0,S.pi)({fill:"both"},n),{duration:c+l+u})),P=e.animate([{opacity:0,transform:"translate(".concat(-b,", ").concat(-_,")"),offset:.01},{opacity:E,transform:"translate(0, 0)"}],(0,S.pi)((0,S.pi)({fill:"both"},n),{duration:l+u,delay:c+l-u}));return $s(P,i),[A,P]}function Ki(t,e,n){var r={},i={};return Object.entries(e).forEach(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];if(!(0,ye.Z)(c)){var l=t.style[s]||t.parsedStyle[s]||0;l!==c&&(r[s]=l,i[s]=c)}}),n?X_(t,[r,i],(0,S.pi)({fill:"both"},n)):(V_(t,i),null)}var yF=5,$_=function(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=yF),Object.entries(e).forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1],c=t;Object.prototype.hasOwnProperty.call(e,o)&&(s?io(s)?(io(t[o])||(c[o]={}),n="A"&&n<="Z"};function en(t,e,n){n===void 0&&(n=!1);var r={};return Object.entries(t).forEach(function(i){var a=(0,S.CR)(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(qf(o,"show")&&qf(K_(o,"show"),e)!==n)o===TF(e,"show")?r[o]=s:r[o.replace(new RegExp(fv(e)),"")]=s;else if(!qf(o,"show")&&qf(o,e)!==n){var c=K_(o,e);c==="filter"&&typeof s=="function"||(r[c]=s)}}}),r}function la(t,e){return Object.entries(t).reduce(function(n,r){var i=(0,S.CR)(r,2),a=i[0],o=i[1];return a.startsWith("show")?n["show".concat(e).concat(a.slice(4))]=o:n["".concat(e).concat(fv(a))]=o,n},{})}function Na(t,e){e===void 0&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(t).forEach(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];e.includes(s)||(n.indexOf(s)!==-1?i[s]=c:r[s]=c)}),[r,i]}function Bi(t,e){return gi(t)?t.apply(void 0,(0,S.ev)([],(0,S.CR)(e),!1)):t}function Zf(t,e){return t.style.opacity||(t.style.opacity=1),Ki(t,{opacity:0},e)}var CF=["$el","anchor","cx","cy","d","defX","defY","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function kF(t){return CF.includes(t)}function Q_(t){var e={};for(var n in t)kF(n)&&(e[n]=t[n]);return e}var qs=Fi({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function J_(t){return t.reduce(function(e,n,r){return e.push((0,S.ev)([r===0?"M":"L"],(0,S.CR)(n),!1)),e},[])}function RF(t,e,n){var r=e.connect,i=r===void 0?"line":r,a=e.center;if(i==="line")return J_(t);if(!a)return[];var o=vl(t[0],a),s=n?0:1;return t.reduce(function(c,l,u){return u===0?c.push((0,S.ev)(["M"],(0,S.CR)(l),!1)):c.push((0,S.ev)(["A",o,o,0,0,s],(0,S.CR)(l),!1)),c},[])}function dv(t,e,n){return e.type==="surround"?RF(t,e,n):J_(t)}function LF(t,e,n){var r=n.type,i=n.connect,a=n.center,o=n.closed,s=o?[["Z"]]:[],c=(0,S.CR)([dv(t,n),dv(e.slice().reverse(),n,!0)],2),l=c[0],u=c[1],f=(0,S.CR)([t[0],e.slice(-1)[0]],2),d=f[0],h=f[1],p=function(m,b){return[l,m,u,b,s].flat()};if(i==="line"||r==="surround")return p([(0,S.ev)(["L"],(0,S.CR)(h),!1)],[(0,S.ev)(["L"],(0,S.CR)(d),!1)]);if(!a)throw new Error("Arc grid need to specified center");var v=(0,S.CR)([vl(h,a),vl(d,a)],2),g=v[0],y=v[1];return p([(0,S.ev)(["A",g,g,0,0,1],(0,S.CR)(h),!1),(0,S.ev)(["L"],(0,S.CR)(h),!1)],[(0,S.ev)(["A",y,y,0,0,0],(0,S.CR)(d),!1),(0,S.ev)(["L"],(0,S.CR)(d),!1)])}function NF(t,e,n,r){var i=n.animate,a=n.isBillboard,o=e.map(function(s,c){return{id:s.id||"grid-line-".concat(c),path:dv(s.points,n)}});return t.selectAll(qs.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(c,l){var u=Bi(Q_((0,S.pi)({path:c.path},r)),[c,l,o]);this.attr((0,S.pi)({class:qs.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},u))})},function(s){return s.transition(function(c,l){var u=Bi(Q_((0,S.pi)({path:c.path},r)),[c,l,o]);return Ki(this,u,i.update)})},function(s){return s.transition(function(){var c=this,l=Zf(this,i.exit);return $s(l,function(){return c.remove()}),l})}).transitions()}function IF(t,e,n){var r=n.animate,i=n.connect,a=n.areaFill;if(e.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(p){return o[p%o.length]},c=[],l=0;l180?1:0,E=t>e?0:1,A=!1;return A?"M".concat(n,",").concat(r,",L").concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(M,",").concat(E,",").concat(y,",").concat(m,",L").concat(n,",").concat(r):"M".concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(M,",").concat(E,",").concat(y,",").concat(m)}function YF(t){var e=t.attributes,n=e.startAngle,r=e.endAngle,i=e.center,a=e.radius;return(0,S.ev)((0,S.ev)([n,r],(0,S.CR)(i),!1),[a],!1)}function VF(t,e,n,r){var i=e.startAngle,a=e.endAngle,o=e.center,s=e.radius;return t.selectAll(An.line.class).data([{path:o2.apply(void 0,(0,S.ev)((0,S.ev)([i,a],(0,S.CR)(o),!1),[s],!1))}],function(c,l){return l}).join(function(c){return c.append("path").attr("className",An.line.name).styles(e).styles({path:function(l){return l.path}})},function(c){return c.transition(function(){var l=this,u=GF(this,YF(this),(0,S.ev)((0,S.ev)([i,a],(0,S.CR)(o),!1),[s],!1),r.update);if(u){var f=function(){var d=zi(l.attributes,"__keyframe_data__");l.style.path=o2.apply(void 0,(0,S.ev)([],(0,S.CR)(d),!1))};u.onframe=f,u.onfinish=f}return u}).styles(e)},function(c){return c.remove()}).styles(n).transitions()}function XF(t,e){var n=e.truncRange,r=e.truncShape,i=e.lineExtension}function $F(t,e,n){n===void 0&&(n=[0,0]);var r=(0,S.CR)([t,e,n],3),i=(0,S.CR)(r[0],2),a=i[0],o=i[1],s=(0,S.CR)(r[1],2),c=s[0],l=s[1],u=(0,S.CR)(r[2],2),f=u[0],d=u[1],h=(0,S.CR)([c-a,l-o],2),p=h[0],v=h[1],g=Math.sqrt(Math.pow(p,2)+Math.pow(v,2)),y=(0,S.CR)([-f/g,d/g],2),m=y[0],b=y[1];return[m*p,m*v,b*p,b*v]}function s2(t){var e=(0,S.CR)(t,2),n=(0,S.CR)(e[0],2),r=n[0],i=n[1],a=(0,S.CR)(e[1],2),o=a[0],s=a[1];return{x1:r,y1:i,x2:o,y2:s}}function UF(t,e,n,r){var i=e.showTrunc,a=e.startPos,o=e.endPos,s=e.truncRange,c=e.lineExtension,l=(0,S.CR)([a,o],2),u=(0,S.CR)(l[0],2),f=u[0],d=u[1],h=(0,S.CR)(l[1],2),p=h[0],v=h[1],g=(0,S.CR)(c?$F(a,o,c):new Array(4).fill(0),4),y=g[0],m=g[1],b=g[2],_=g[3],O=function(B){return t.selectAll(An.line.class).data(B,function(z,Y){return Y}).join(function(z){return z.append("line").attr("className",function(Y){return"".concat(An.line.name," ").concat(Y.className)}).styles(n).transition(function(Y){return Ki(this,s2(Y.line),!1)})},function(z){return z.styles(n).transition(function(Y){var $=Y.line;return Ki(this,s2($),r.update)})},function(z){return z.remove()}).transitions()};if(!i||!s)return O([{line:[[f+y,d+m],[p+b,v+_]],className:An.line.name}]);var w=(0,S.CR)(s,2),M=w[0],E=w[1],A=p-f,P=v-d,C=(0,S.CR)([f+A*M,d+P*M],2),j=C[0],N=C[1],k=(0,S.CR)([f+A*E,d+P*E],2),R=k[0],D=k[1],F=O([{line:[[f+y,d+m],[j,N]],className:An.lineFirst.name},{line:[[R,D],[p+b,v+_]],className:An.lineSecond.name}]);return XF(t,e),F}function qF(t,e,n,r){var i=n.showArrow,a=n.showTrunc,o=n.lineArrow,s=n.lineArrowOffset,c=n.lineArrowSize,l;if(e==="arc"?l=t.select(An.line.class):a?l=t.select(An.lineSecond.class):l=t.select(An.line.class),!i||!o||n.type==="arc"&&a2(n.startAngle,n.endAngle)){var u=l.node();u&&(u.style.markerEnd=void 0);return}var f=Jo(o);f.attr(r),pv(f,c,!0),l.style("markerEnd",f).style("markerEndOffset",-s)}function ZF(t,e,n){var r=e.type,i,a=en(e,"line");return r==="linear"?i=UF(t,e,t2(a,"arrow"),n):i=VF(t,e,t2(a,"arrow"),n),qF(t,r,e,a),i}function KF(t,e){return gv(t,e.gridDirection,e)}function c2(t){var e=t.type,n=t.gridCenter;return e==="linear"?n:n||t.center}function QF(t,e){var n=e.gridLength;return t.map(function(r,i){var a=r.value,o=(0,S.CR)(Qf(a,e),2),s=o[0],c=o[1],l=(0,S.CR)(La(KF(a,e),n),2),u=l[0],f=l[1];return{id:i,points:[[s,c],[s+u,c+f]]}})}function JF(t,e){var n=e.gridControlAngles,r=c2(e);if(!r)throw new Error("grid center is not provide");if(t.length<2)throw new Error("Invalid grid data");if(!n||n.length===0)throw new Error("Invalid gridControlAngles");var i=(0,S.CR)(r,2),a=i[0],o=i[1];return t.map(function(s,c){var l=s.value,u=(0,S.CR)(Qf(l,e),2),f=u[0],d=u[1],h=(0,S.CR)([f-a,d-o],2),p=h[0],v=h[1],g=[];return n.forEach(function(y){var m=Us(y),b=(0,S.CR)([Math.cos(m),Math.sin(m)],2),_=b[0],O=b[1],w=p*_-v*O+a,M=p*O+v*_+o;g.push([w,M])}),{points:g,id:c}})}function tB(t,e,n,r){var i=en(n,"grid"),a=i.type,o=i.areaFill,s=c2(n),c=vv(e,n.gridFilter),l=a==="segment"?QF(c,n):JF(c,n),u=(0,S.pi)((0,S.pi)({},i),{center:s,areaFill:gi(o)?c.map(function(f,d){return Bi(o,[f,d,c])}):o,animate:r,data:l});return t.selectAll(An.grid.class).data([1]).join(function(f){return f.append(function(){return new DF({style:u})}).attr("className",An.grid.name)},function(f){return f.transition(function(){return this.update(u)})},function(f){return f.remove()}).transitions()}function Br(t,e,n,r,i){return r===void 0&&(r=!0),i===void 0&&(i=!1),r&&t===e||i&&t===n?!0:t>e&&ti&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}var eB=function(t,e,n){if(n===void 0&&(n=128),!gi(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;a0,m=r-c,b=i-l,_=d*b-h*m;if(_<0===y)return!1;var O=p*b-v*m;return!(O<0===y||_>g===y||O>g===y)}function p2(t,e){var n=[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]];return n.some(function(r){return h2(e,r)})}var Kft={lineToLine:h2,intersectBoxLine:p2,getBounds:ed};function lB(t,e,n){var r,i,a=ed(t,n).flat(1),o=ed(e,n).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var c=(0,S.XA)(s),l=c.next();!l.done;l=c.next()){var u=l.value;if(p2(o,u))return!0}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return!1}function uB(t,e){var n=t.type,r=t.labelDirection,i=t.crossSize;if(!i)return!1;if(n==="arc"){var a=t.center,o=t.radius,s=(0,S.CR)(a,2),c=s[0],l=s[1],u=r==="negative"?0:i,f=-o-u,d=o+u,h=(0,S.CR)(zr(e),4),p=h[0],v=h[1],g=h[2],y=h[3];return new xv(c+f-y,l+f-p,c+d+v,l+d+g)}var m=(0,S.CR)(t.startPos,2),b=m[0],_=m[1],O=(0,S.CR)(t.endPos,2),w=O[0],M=O[1],E=(0,S.CR)(i2(t)?[-e,0,e,0]:[0,e,0,-e],4),A=E[0],P=E[1],C=E[2],j=E[3],N=gl(0,t),k=La(N,i),R=new xv(b,_,w,M);return R.x1+=j,R.y1+=A,R.x2+=P+k[0],R.y2+=C+k[1],R}function nd(t,e,n){var r,i,a=e.crossPadding,o=new Set,s=null,c=uB(e,a),l=function(p){return c?cB(c,p):!0},u=function(p,v){return p?!lB(p,v,zr(n)):!0};try{for(var f=(0,S.XA)(t),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)?!s||u(s,h)?s=h:(o.add(s),o.add(h)):o.add(h)}}catch(p){r={error:p}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return Array.from(o)}function Ov(t,e){return e===void 0&&(e={}),(0,ye.Z)(t)?0:typeof t=="number"?t:Math.floor(nB(t,e))}function fB(t,e,n,r){if(!(t.length<=1)){var i=e.suffix,a=i===void 0?"...":i,o=e.minLength,s=e.maxLength,c=s===void 0?1/0:s,l=e.step,u=l===void 0?" ":l,f=e.margin,d=f===void 0?[0,0,0,0]:f,h=l2(r.getTextShape(t[0])),p=Ov(u,h),v=o?Ov(o,h):p,g=Ov(c,h);((0,ye.Z)(g)||g===1/0)&&(g=Math.max.apply(null,t.map(function(k){return _v(k).width})));for(var y=t.slice(),m=(0,S.CR)(d,4),b=m[0],_=b===void 0?0:b,O=m[1],w=O===void 0?0:O,M=m[2],E=M===void 0?_:M,A=m[3],P=A===void 0?w:A,C=function(k){if(y.forEach(function(R){r.ellipsis(r.getTextShape(R),k,a)}),y=nd(t,n,d),y.length<1)return{value:void 0}},j=g;j>v+p;j-=p){var N=C(j);if(typeof N=="object")return N.value}}}function Qft(t){var e=t&&t.getRenderBounds();if(!e)return{width:0,height:0};var n=e.getMax(),r=e.getMin();return{width:n[0]-r[0],height:n[1]-r[1]}}function v2(t){var e=t.getLocalBounds(),n=e.min,r=e.max,i=(0,S.CR)([n,r],2),a=(0,S.CR)(i[0],2),o=a[0],s=a[1],c=(0,S.CR)(i[1],2),l=c[0],u=c[1];return{x:o,y:s,width:l-o,height:u-s,left:o,bottom:u,top:s,right:l}}function Jft(t,e){var n=select(t).append("text").node();return n.attr(__assign(__assign({},e),{visibility:"hidden"})),n}function dB(t,e){var n=(0,S.CR)(t,2),r=n[0],i=n[1],a=(0,S.CR)(e,2),o=a[0],s=a[1];return r!==o&&i===s}function tdt(t,e){var n=__read(t,2),r=n[0],i=n[1],a=__read(e,2),o=a[0],s=a[1];return r===o&&i!==s}function hB(t,e){var n,r,i=e.attributes;try{for(var a=(0,S.XA)(Object.entries(i)),o=a.next();!o.done;o=a.next()){var s=(0,S.CR)(o.value,2),c=s[0],l=s[1];c!=="id"&&c!=="className"&&t.attr(c,l)}}catch(u){n={error:u}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}var pB={parity:function(t,e){var n=e.seq,r=n===void 0?2:n;return t.filter(function(i,a){return a%r?(co(i),!1):!0})}},vB=function(t){return t.filter(d2)};function gB(t,e,n,r){var i=t.length,a=e.keepHeader,o=e.keepTail;if(!(i<=1||i===2&&a&&o)){var s=pB.parity,c=function(b){return b.forEach(r.show),b},l=2,u=t.slice(),f=t.slice(),d=Math.min.apply(Math,(0,S.ev)([1],(0,S.CR)(t.map(function(b){return _v(b).width})),!1));if(n.type==="linear"&&(r2(n)||i2(n))){var h=v2(t[0]).left,p=v2(t[i-1]).right,v=Math.abs(p-h)||1;l=Math.max(Math.floor(i*d/v),l)}var g,y;for(a&&(g=u.splice(0,1)[0]),o&&(y=u.splice(-1,1)[0],u.reverse()),c(u);ls)){for(var y=h;y<=s;y++)if(g(y),p())return;l&&g(d)}}var xB=new Map([["hide",gB],["rotate",yB],["ellipsis",fB],["wrap",bB]]);function _B(t,e,n){return e.labelOverlap.length<1?!1:n==="hide"?!bF(t[0]):n==="rotate"?!t.some(function(r){var i;return!!(!((i=r.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):n==="ellipsis"||n==="wrap"?t.filter(function(r){return r.querySelector("text")}).length>1:!0}function OB(t,e,n){var r=e.labelOverlap,i=r===void 0?[]:r;i.length&&i.forEach(function(a){var o=a.type,s=xB.get(o);_B(t,e,o)&&(s==null||s(t,a,e,n))})}function wB(){for(var t=[],e=0;e=this.left&&e<=this.right&&n>=this.top&&n<=this.bottom},t}();function edt(t){var e=t.getRenderBounds(),n=__read(e.min,2),r=n[0],i=n[1],a=__read(e.max,2),o=a[0],s=a[1],c=o-r,l=s-i;return new Gn(r,i,c,l)}var S2=Fi({text:"text"},"title");function rd(t){return/\S+-\S+/g.test(t)?t.split("-").map(function(e){return e[0]}):t.length>2?[t[0]]:t.split("")}function NB(t,e){var n=t.attributes,r=n.position,i=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),c=e.getBBox(),l=rd(r),u=(0,S.CR)(zr(o?i:0),4),f=u[0],d=u[1],h=u[2],p=u[3],v=(0,S.CR)(zr(a),4),g=v[0],y=v[1],m=v[2],b=v[3],_=(0,S.CR)([p+d,f+h],2),O=_[0],w=_[1],M=(0,S.CR)([b+y,g+m],2),E=M[0],A=M[1];if(l[0]==="l")return new Gn(s.x,s.y,c.width+s.width+O+E,Math.max(c.height+A,s.height));if(l[0]==="t")return new Gn(s.x,s.y,Math.max(c.width+E,s.width),c.height+s.height+w+A);var P=(0,S.CR)([e.attributes.width||c.width,e.attributes.height||c.height],2),C=P[0],j=P[1];return new Gn(c.x,c.y,C+s.width+O+E,j+s.height+w+A)}function IB(t,e){var n=Object.entries(e).reduce(function(r,i){var a=(0,S.CR)(i,2),o=a[0],s=a[1],c=t.node().attr(o);return c||(r[o]=s),r},{});t.styles(n)}function jB(t){var e,n,r,i,a=t,o=a.width,s=a.height,c=a.position,l=(0,S.CR)([+o/2,+s/2],2),u=l[0],f=l[1],d=(0,S.CR)([+u,+f,"center","middle"],4),h=d[0],p=d[1],v=d[2],g=d[3],y=rd(c);return y.includes("l")&&(e=(0,S.CR)([0,"start"],2),h=e[0],v=e[1]),y.includes("r")&&(n=(0,S.CR)([+o,"end"],2),h=n[0],v=n[1]),y.includes("t")&&(r=(0,S.CR)([0,"top"],2),p=r[0],g=r[1]),y.includes("b")&&(i=(0,S.CR)([+s,"bottom"],2),p=i[0],g=i[1]),{x:h,y:p,textAlign:v,textBaseline:g}}var M2=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return e.prototype.getAvailableSpace=function(){var n=this,r=this.attributes,i=r.width,a=r.height,o=r.position,s=r.spacing,c=r.inset,l=n.querySelector(S2.text.class);if(!l)return new Gn(0,0,+i,+a);var u=l.getBBox(),f=u.width,d=u.height,h=(0,S.CR)(zr(s),4),p=h[0],v=h[1],g=h[2],y=h[3],m=(0,S.CR)([0,0,+i,+a],4),b=m[0],_=m[1],O=m[2],w=m[3],M=rd(o);if(M.includes("i"))return new Gn(b,_,O,w);M.forEach(function(D,F){var B,z,Y,$;D==="t"&&(B=(0,S.CR)(F===0?[d+g,+a-d-g]:[0,+a],2),_=B[0],w=B[1]),D==="r"&&(z=(0,S.CR)([+i-f-y],1),O=z[0]),D==="b"&&(Y=(0,S.CR)([+a-d-p],1),w=Y[0]),D==="l"&&($=(0,S.CR)(F===0?[f+v,+i-f-v]:[0,+i],2),b=$[0],O=$[1])});var E=(0,S.CR)(zr(c),4),A=E[0],P=E[1],C=E[2],j=E[3],N=(0,S.CR)([j+P,A+C],2),k=N[0],R=N[1];return new Gn(b+j,_+A,O-k,w-R)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new Gn(0,0,0,0)},e.prototype.render=function(n,r){var i=this,a=n.width,o=n.height,s=n.position,c=n.spacing,l=(0,S._T)(n,["width","height","position","spacing"]),u=(0,S.CR)(Na(l),1),f=u[0],d=jB(n),h=d.x,p=d.y,v=d.textAlign,g=d.textBaseline;vi(!!l.text,Ue(r),function(y){i.title=y.maybeAppendByClassName(S2.text,"text").styles(f).call(IB,{x:h,y:p,textAlign:v,textBaseline:g}).node()})},e}(Lr);function DB(t,e,n){var r=n.titlePosition,i=r===void 0?"lb":r,a=n.titleSpacing,o=rd(i),s=t.node().getLocalBounds(),c=(0,S.CR)(s.min,2),l=c[0],u=c[1],f=(0,S.CR)(s.halfExtents,2),d=f[0],h=f[1],p=(0,S.CR)(e.node().getLocalBounds().halfExtents,2),v=p[0],g=p[1],y=(0,S.CR)([l+d,u+h],2),m=y[0],b=y[1],_=(0,S.CR)(zr(a),4),O=_[0],w=_[1],M=_[2],E=_[3];if(["start","end"].includes(i)&&n.type==="linear"){var A=n.startPos,P=n.endPos,C=(0,S.CR)(i==="start"?[A,P]:[P,A],2),j=C[0],N=C[1],k=q_([-N[0]+j[0],-N[1]+j[1]]),R=(0,S.CR)(La(k,O),2),D=R[0],F=R[1];return{x:j[0]+D,y:j[1]+F}}return o.includes("t")&&(b-=h+g+O),o.includes("r")&&(m+=d+v+w),o.includes("l")&&(m-=d+v*2+E),o.includes("b")&&(b+=h+g*2+M),{x:m,y:b}}function FB(t,e,n){var r=t.cloneNode(!0);r.style.transform="scale(1, 1)",r.style.transform="none";var i=r.getBBox().height;if(e==="vertical"){if(n==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(n==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function E2(t,e,n,r,i){var a=en(r,"title"),o=(0,S.CR)(Na(a),2),s=o[0],c=o[1],l=c.transform,u=(0,S._T)(c,["transform"]);t.styles(s),e.styles(u);var f=l||FB(t.node(),s.direction,s.position);td(t.node(),f);var d=DB(Ue(n._offscreen||n.querySelector(An.mainGroup.class)),e,r),h=d.x,p=d.y,v=Ki(e.node(),{x:h,y:p},i);return td(t.node(),f),v}function BB(t,e,n,r){var i=n.titleText;return t.selectAll(An.title.class).data([{title:i}].filter(function(a){return!!a.title}),function(a,o){return a.title}).join(function(a){return a.append(function(){return Jo(i)}).attr("className",An.title.name).transition(function(){return E2(Ue(this),t,e,n,r.enter)})},function(a){return a.transition(function(){return E2(Ue(this),t,e,n,r.update)})},function(a){return a.remove()}).transitions()}function A2(t,e,n,r){var i=t.showLine,a=t.showTick,o=t.showLabel,s=e.maybeAppendByClassName(An.lineGroup,"g"),c=vi(i,s,function(h){return ZF(h,t,r)})||[],l=e.maybeAppendByClassName(An.tickGroup,"g"),u=vi(a,l,function(h){return LB(h,n,t,r)})||[],f=e.maybeAppendByClassName(An.labelGroup,"g"),d=vi(o,f,function(h){return TB(h,n,t,r)})||[];return(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(c),!1),(0,S.CR)(u),!1),(0,S.CR)(d),!1).filter(function(h){return!!h})}var Sv=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,lv)||this}return e.prototype.render=function(n,r,i){var a=this,o=n.titleText,s=n.data,c=n.animate,l=n.showTitle,u=n.showGrid,f=n.dataThreshold,d=n.truncRange,h=_F(s,f).filter(function(O){var w=O.value;return!(d&&w>d[0]&&w-1;)UB.call(t,a,1);return t},mdt=null,ZB=Array.prototype.splice,bdt=function(e,n){if(!isArrayLike(e))return[];for(var r=e?n.length:0,i=r-1;r--;){var a=void 0,o=n[r];(r===i||o!==a)&&(a=o,ZB.call(e,o,1))}return e},xdt=null,_dt=function(t,e,n){if(!isArray(t)&&!isPlainObject(t))return t;var r=n;return each(t,function(i,a){r=e(r,i,a)}),r},Odt=null,wdt=function(t,e){var n=[];if(!isArrayLike(t))return n;for(var r=-1,i=[],a=t.length;++ra[s])return 1;if(i[s]0},Kdt=null,Qdt=function(t,e){if(isArray(t)){for(var n,r=-1/0,i=0;ir&&(n=a,r=o)}return n}},Jdt=function(t,e){if(isArray(t)){for(var n,r=1/0,i=0;is&&u>s);)if(c.push(l),s-=u,o=o.substr(i),!o)return c.join("");for(;l=o.substr(0,1),u=measureTextWidth(l,n),!(u+a>s);)if(c.push(l),s-=u,o=o.substr(1),!o)return c.join("");return""+c.join("")+r},Dht=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,n){var r=this.map[e];return r===void 0?n:r},t.prototype.set=function(e,n){this.map[e]=n},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),Fht=null;class xl{constructor(e){this.options=I2({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=I2({},this.options,e),this.rescale(e)}rescale(e){}}function od(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function Ks(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Ev(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}var bz=yt(39872),xz=yt.n(bz);function Av(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function _z(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=Av(o,a,e+1/3),c=Av(o,a,e),l=Av(o,a,e-1/3);return[s*255,c*255,l*255,i]}function z2(t){const e=xz().get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?_z(r):null}const Qs=(t,e)=>n=>t*(1-n)+e*n,Oz=(t,e)=>{const n=z2(t),r=z2(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},_l=(t,e)=>typeof t=="number"&&typeof e=="number"?Qs(t,e):typeof t=="string"&&typeof e=="string"?Oz(t,e):()=>t,wz=(t,e)=>{const n=Qs(t,e);return r=>Math.round(n(r))};function sd(t){return!lz(t)&&!oz(t)&&!Number.isNaN(t)}const Tv=Math.sqrt(50),Pv=Math.sqrt(10),Cv=Math.sqrt(2);function cd(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/wr(10,i);return i>=0?(a>=Tv?10:a>=Pv?5:a>=Cv?2:1)*wr(10,i):-wr(10,-i)/(a>=Tv?10:a>=Pv?5:a>=Cv?2:1)}function G2(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=wr(10,Math.floor(Math.log(r)/Math.LN10));const a=r/i;return a>=Tv?i*=10:a>=Pv?i*=5:a>=Cv&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=cd(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=cd(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r};function Sz(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}const Mz=(t,e,n)=>{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Ev(t,l,1,r)-1,f=i[u],d=a[u];return Ks(d,f)(l)}},H2=(t,e,n,r)=>(Math.min(t.length,e.length)>2?Ez:Mz)(t,e,r?wz:n);class ld extends xl{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Qs,tickCount:5}}map(e){return sd(e)?this.output(e):this.options.unknown}invert(e){return sd(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return W2}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?Sz(i[0],i[a-1]):ts}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=H2(r.map(e),i,o,a);this.output=Ks(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=H2(a,i.map(e),Qs);this.input=Ks(n,r,o)}}const es=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=cd(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),rr&&(r=d),h>i&&(i=h)}return new Gn(e,n,r-e,i-n)}var Pz=function(t,e,n){var r=t.width,i=t.height,a=n.flexDirection,o=a===void 0?"row":a,s=n.flexWrap,c=s===void 0?"nowrap":s,l=n.justifyContent,u=l===void 0?"flex-start":l,f=n.alignContent,d=f===void 0?"flex-start":f,h=n.alignItems,p=h===void 0?"flex-start":h,v=o==="row",g=o==="row"||o==="column",y=v?g?[1,0]:[-1,0]:g?[0,1]:[0,-1],m=(0,S.CR)([0,0],2),b=m[0],_=m[1],O=e.map(function(N){var k,R=N.width,D=N.height,F=(0,S.CR)([b,_],2),B=F[0],z=F[1];return k=(0,S.CR)([b+R*y[0],_+D*y[1]],2),b=k[0],_=k[1],new Gn(B,z,R,D)}),w=X2(O),M={"flex-start":0,"flex-end":v?r-w.width:i-w.height,center:v?(r-w.width)/2:(i-w.height)/2},E=O.map(function(N){var k=N.x,R=N.y,D=Gn.fromRect(N);return D.x=v?k+M[u]:k,D.y=v?R:R+M[u],D}),A=X2(E),P=function(N){var k=(0,S.CR)(v?["height",i]:["width",r],2),R=k[0],D=k[1];switch(p){case"flex-start":return 0;case"flex-end":return D-N[R];case"center":return D/2-N[R]/2;default:return 0}},C=E.map(function(N){var k=N.x,R=N.y,D=Gn.fromRect(N);return D.x=v?k:k+P(D),D.y=v?R+P(D):R,D}),j=C.map(function(N){var k,R,D=Gn.fromRect(N);return D.x+=(k=t.x)!==null&&k!==void 0?k:0,D.y+=(R=t.y)!==null&&R!==void 0?R:0,D});return j},Cz=function(t,e,n){return[]},kz=function(t,e,n){if(e.length===0)return[];var r={flex:Pz,grid:Cz},i=n.display in r?r[n.display]:null;return(i==null?void 0:i.call(null,t,e,n))||[]},Rz=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n)||this;r.layoutEvents=[Ne.BOUNDS_CHANGED,Ne.INSERTED,Ne.REMOVED],r.$margin=zr(0),r.$padding=zr(0);var i=n.style||{},a=i.margin,o=a===void 0?0:a,s=i.padding,c=s===void 0?0:s;return r.margin=o,r.padding=c,r.isMutationObserved=!0,r.bindEvents(),r}return Object.defineProperty(e.prototype,"margin",{get:function(){return this.$margin},set:function(n){this.$margin=zr(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(n){this.$padding=zr(n)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.x,i=r===void 0?0:r,a=n.y,o=a===void 0?0:a,s=n.width,c=n.height,l=(0,S.CR)(this.$margin,4),u=l[0],f=l[1],d=l[2],h=l[3];return new Gn(i-h,o-u,s+h+f,c+u+d)},e.prototype.appendChild=function(n,r){return n.isMutationObserved=!0,t.prototype.appendChild.call(this,n,r),n},e.prototype.getAvailableSpace=function(){var n=this.attributes,r=n.width,i=n.height,a=(0,S.CR)(this.$padding,4),o=a[0],s=a[1],c=a[2],l=a[3],u=(0,S.CR)(this.$margin,4),f=u[0],d=u[3];return new Gn(l+d,o+f,r-l-s,i-o-c)},e.prototype.layout=function(){if(!(!this.attributes.display||!this.isConnected)&&!this.children.some(function(r){return!r.isConnected}))try{var n=kz(this.getAvailableSpace(),this.children.map(function(r){return r.getBBox()}),this.attributes);this.children.forEach(function(r,i){var a=n[i],o=a.x,s=a.y;r.attr({x:o,y:s})})}catch(r){}},e.prototype.bindEvents=function(){var n=this;this.layoutEvents.forEach(function(r){n.addEventListener(r,function(i){i.target.isMutationObserved=!0,n.layout()})})},e.prototype.attributeChangedCallback=function(n,r,i){n==="margin"?this.margin=i:n==="padding"&&(this.padding=i),this.layout()},e}(Fr),Lz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ir.getOptions().name===e))===null||n===void 0?void 0:n[0]}function jz(t){return t==="horizontal"||t===0}function Dz(t){return t==="vertical"||t===-Math.PI/2}function Z2(t,e,n){const{bbox:r}=t,{position:i="top",size:a,length:o}=e,s=["top","bottom","center"].includes(i),[c,l]=s?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:f}=n.props,d=a||u||c,h=o||f||l,p=s?"horizontal":"vertical",[v,g]=s?[h,d]:[d,h];return{orientation:p,width:v,height:g,size:d,length:h}}function Fz(t){return t.find(e=>e.getOptions().domain.length>0).getOptions().domain}function fd(t){const e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=Lz(t,["style"]),i={};return Object.entries(r).forEach(([a,o])=>{e.includes(a)?i[`show${ao(a)}`]=o:i[a]=o}),Object.assign(Object.assign({},i),n)}var K2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(!G_(e))return i;const a=t==="bottom"?[i,1]:[0,i],o=e.map(a);if(t==="bottom"){const s=o[0];return new Xr({domain:[0,n],range:[0,1]}).map(s)}else if(t==="left"){const s=o[1];return new Xr({domain:[0,r],range:[0,1]}).map(s)}return i}}function zz(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;const[r,i]=Ia(e,o=>+o),{tickCount:a}=t.getOptions();return n(r,i,a)}function Gz(t,e){if(Nn(e))return h=>h;const n=e.getOptions(),{innerWidth:r,innerHeight:i,insetTop:a,insetBottom:o,insetLeft:s,insetRight:c}=n,[l,u,f]=t==="left"||t==="right"?[a,o,i]:[s,c,r],d=new Xr({domain:[0,1],range:[l/f,1-u/f]});return h=>d.map(h)}function tO(t,e,n,r,i,a,o,s){var c;(n!==void 0||a!==void 0)&&t.update(Object.assign(Object.assign({},n&&{tickCount:n}),a&&{tickMethod:a}));const l=zz(t,e,a),u=i?l.filter(i):l,f=y=>y instanceof Date?String(y):typeof y=="object"&&y?y:String(y),d=r||((c=t.getFormatter)===null||c===void 0?void 0:c.call(t))||f,h=Gz(o,s),p=Bz(o,s),v=y=>["top","bottom","center","outer"].includes(y),g=y=>["left","right"].includes(y);return Nn(s)||zn(s)?u.map((y,m,b)=>{var _,O;const w=((_=t.getBandWidth)===null||_===void 0?void 0:_.call(t,y))/2||0,M=h(t.map(y)+w);return{value:fl(s)&&o==="center"||zn(s)&&((O=t.getTicks)===null||O===void 0?void 0:O.call(t))&&v(o)||zn(s)&&g(o)?1-M:M,label:f(d(Xf(y),m,b)),id:String(m)}}):u.map((y,m,b)=>{var _;const O=((_=t.getBandWidth)===null||_===void 0?void 0:_.call(t,y))/2||0,w=p(h(t.map(y)+O));return{value:g(o)?1-w:w,label:f(d(Xf(y),m,b)),id:String(m)}})}function Wz(t,e,n="xy"){const[r,i,a]=J2(e);return n==="xy"?t.includes("bottom")||t.includes("top")?i:r:n==="xz"?t.includes("bottom")||t.includes("top")?a:r:t.includes("bottom")||t.includes("top")?i:a}function Hz(t=[],e){if(t.length>0)return t;const{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:a}=e,o=[],s=(c,l)=>{l&&o.push(Object.assign(Object.assign({},c),l))};return s({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),s({type:"ellipsis",minLength:20},i),s({type:"hide"},r),s({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},a),o}function Yz(t,e,n,r,i){const{x:a,y:o,width:s,height:c}=e,l=[a+s/2,o+c/2],u=Math.min(s,c)/2,[f,d]=sv(i),[h,p]=J2(i),v=Math.min(h,p)/2,g={center:l,radius:u,startAngle:f,endAngle:d,gridLength:(r-n)*v};if(t==="inner"){const{insetLeft:y,insetTop:m}=i.getOptions();return Object.assign(Object.assign({},g),{center:[l[0]-y,l[1]-m],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},g),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}function Vz(t,e,n){return W_(e)||dl(e)?!1:t===void 0?!!n.getTicks:t}function Xz(t){const{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}function $z(t,e,n,r){const{x:i,y:a,width:o,height:s}=n;if(t==="bottom")return{startPos:[i,a],endPos:[i+o,a]};if(t==="left")return{startPos:[i+o,a+s],endPos:[i+o,a]};if(t==="right")return{startPos:[i,a+s],endPos:[i,a]};if(t==="top")return{startPos:[i,a+s],endPos:[i+o,a+s]};if(t==="center"){if(e==="vertical")return{startPos:[i,a],endPos:[i,a+s]};if(e==="horizontal")return{startPos:[i,a],endPos:[i+o,a]};if(typeof e=="number"){const[c,l]=r.getCenter(),[u,f]=$f(r),[d,h]=sv(r),p=Math.min(o,s)/2,{insetLeft:v,insetTop:g}=r.getOptions(),y=u*p,m=f*p,[b,_]=[c+i-v,l+a-g],[O,w]=[Math.cos(e),Math.sin(e)],M=[b+m*O,_+m*w],E=[b+y*O,_+y*w];return{startPos:M,endPos:E,gridClosed:h-d===360,gridCenter:[b,_],gridControlAngles:new Array(3).fill(0).map((A,P,C)=>(h-d)/(C.length-1)*P)}}}return{}}const Uz=t=>{const{order:e,size:n,position:r,orientation:i,labelFormatter:a,tickFilter:o,tickCount:s,tickMethod:c,important:l={},style:u={},indexBBox:f,title:d,grid:h=!1}=t,p=K2(t,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","important","style","indexBBox","title","grid"]);return({scales:[v],value:g,coordinate:y,theme:m})=>{const{bbox:b}=g,{domain:_}=v.getOptions(),O=tO(v,_,s,a,o,c,r,y),w=f?O.map((N,k)=>{const R=f.get(k);return!R||R[0]!==N.label?N:Object.assign(Object.assign({},N),{bbox:R[1]})}):O,[M,E]=$f(y),A=Yz(r,b,M,E,y),{axis:P,axisArc:C={}}=m,j=fd(Nt({},P,C,A,Object.assign(Object.assign({type:"arc",data:w,titleText:ud(d),grid:h},p),l)));return new Sv({style:V2(j,["transform"])})}};function qz(t,e,n,r,i,a){const o=n.axis,s=["top","right","bottom","left"].includes(i)?n[`axis${tv(i)}`]:n.axisLinear,c=t.getOptions().name,l=n[`axis${ao(c)}`]||{};return Object.assign({},o,s,l)}function Zz(t,e,n,r,i,a){const o=qz(t,e,n,r,i,a);return i==="center"?Object.assign(Object.assign(Object.assign(Object.assign({},o),{labelDirection:r==="right"?"negative":"positive"}),r==="center"?{labelTransform:"translate(50%,0)"}:null),{tickDirection:r==="right"?"negative":"positive",labelSpacing:r==="center"?0:4,titleSpacing:Dz(a)?10:0,tick:r==="center"?!1:void 0}):o}const Kz=t=>{const{direction:e="left",important:n={},labelFormatter:r,order:i,orientation:a,actualPosition:o,position:s,size:c,style:l={},title:u,tickCount:f,tickFilter:d,tickMethod:h,transform:p,indexBBox:v}=t,g=K2(t,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","transform","indexBBox"]);return({scales:[y],value:m,coordinate:b,theme:_})=>{const{bbox:O}=m,{domain:w}=y.getOptions(),M=Zz(y,b,_,e,s,a),E=Object.assign(Object.assign(Object.assign({},M),l),g),A=Wz(o||s,b,t.plane),P=$z(s,a,O,b),C=Xz(b),j=tO(y,w,f,r,d,h,s,b),N=v?j.map((D,F)=>{const B=v.get(F);return!B||B[0]!==D.label?D:Object.assign(Object.assign({},D),{bbox:B[1]})}):j,k=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E),{type:"linear",data:N,crossSize:c,titleText:ud(u),labelOverlap:Hz(p,E),grid:Vz(E.grid,b,y),gridLength:A,line:!0,indexBBox:v}),E.line?null:{lineOpacity:0}),P),C),n);return k.labelOverlap.find(D=>D.type==="hide")&&(k.crossSize=!1),new Sv({className:"axis",style:fd(k)})}},eO=t=>e=>{const{labelFormatter:n,labelFilter:r=()=>!0}=e;return i=>{var a;const{scales:[o]}=i,s=((a=o.getTicks)===null||a===void 0?void 0:a.call(o))||o.getOptions().domain,c=typeof n=="string"?oo(n):n,l=(f,d,h)=>r(s[d],d,s),u=Object.assign(Object.assign({},e),{labelFormatter:c,labelFilter:l,scale:o});return t(u)(i)}},lo=eO(Kz),nO=eO(Uz);lo.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},nO.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var Qz=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i-Math.PI/2&&eMath.PI/2&&e(c-s)/i.count*f)})}const rO=t=>{const{important:e={}}=t,n=Qz(t,["important"]);return r=>{const{theme:i,coordinate:a,scales:o}=r;return lo(Object.assign(Object.assign(Object.assign({},n),Jz(t.orientation)),{important:Object.assign(Object.assign({},tG(t,i,a,o)),e)}))(r)}};rO.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"center"});function dd(t,e){return+t.toPrecision(e)}function Bht(t){return t.toLocaleString()}function zht(t){return t.toExponential()}function Ght(t,e){return e===void 0&&(e=0),Math.abs(t)<1e3?String(t):"".concat(dd(t/1e3,e).toLocaleString(),"K")}var Wht=function(t,e,n){return t<0&&Number.isFinite(t)?e:n},Hht=function(t,e,n){return t>0&&Number.isFinite(t)?e:n},Yht=function(t,e){return t*e},Vht=function(t,e){return t/2+(e||0)/2};function hd(t){var e=t.canvas,n=t.touches,r=t.offsetX,i=t.offsetY;if(e){var a=e.x,o=e.y;return[a,o]}if(n){var s=n[0],c=s.clientX,l=s.clientY;return[c,l]}return r&&i?[r,i]:[0,0]}var eG={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},Rv=Fi({background:"background",labelGroup:"label-group",label:"label"},"indicator"),nG=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,eG)||this;return r.point=[0,0],r.group=r.appendChild(new Fr({})),r.isMutationObserved=!0,r}return e.prototype.renderBackground=function(){if(this.label){var n=this.attributes,r=n.position,i=n.padding,a=(0,S.CR)(zr(i),4),o=a[0],s=a[1],c=a[2],l=a[3],u=this.label.node().getLocalBounds(),f=u.min,d=u.max,h=new Gn(f[0]-l,f[1]-o,d[0]+s-f[0]+l,d[1]+c-f[1]+o),p=this.getPath(r,h),v=en(this.attributes,"background");this.background=Ue(this.group).maybeAppendByClassName(Rv.background,"path").styles((0,S.pi)((0,S.pi)({},v),{path:p})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var n=this.attributes,r=n.formatter,i=n.labelText,a=en(this.attributes,"label"),o=(0,S.CR)(Na(a),2),s=o[0],c=o[1],l=s.text,u=(0,S._T)(s,["text"]);if(this.label=Ue(this.group).maybeAppendByClassName(Rv.labelGroup,"g").styles(c),!!i){var f=this.label.maybeAppendByClassName(Rv.label,function(){return Jo(r(i))}).style("text",r(i).toString());f.selectAll("text").styles(u)}},e.prototype.adjustLayout=function(){var n=(0,S.CR)(this.point,2),r=n[0],i=n[1];this.group.attr("x",-r).attr("y",-i)},e.prototype.getPath=function(n,r){var i=this.attributes.radius,a=r.x,o=r.y,s=r.width,c=r.height,l=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+c-i],["A",i,i,0,0,1,a+s-i,o+c],["L",a+i,o+c],["A",i,i,0,0,1,a,o+c-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],u={top:4,right:6,bottom:0,left:2},f=u[n],d=this.createCorner([l[f].slice(-2),l[f+1].slice(-2)]);return l.splice.apply(l,(0,S.ev)([f+1,1],(0,S.CR)(d),!1)),l[0][0]="M",l},e.prototype.createCorner=function(n,r){r===void 0&&(r=10);var i=.8,a=dB.apply(void 0,(0,S.ev)([],(0,S.CR)(n),!1)),o=(0,S.CR)(n,2),s=(0,S.CR)(o[0],2),c=s[0],l=s[1],u=(0,S.CR)(o[1],2),f=u[0],d=u[1],h=(0,S.CR)(a?[f-c,[c,f]]:[d-l,[l,d]],2),p=h[0],v=(0,S.CR)(h[1],2),g=v[0],y=v[1],m=p/2,b=p/Math.abs(p),_=r*b,O=_/2,w=_*Math.sqrt(3)/2*i,M=(0,S.CR)([g,g+m-O,g+m,g+m+O,y],5),E=M[0],A=M[1],P=M[2],C=M[3],j=M[4];return a?(this.point=[P,l-w],[["L",E,l],["L",A,l],["L",P,l-w],["L",C,l],["L",j,l]]):(this.point=[c+w,P],[["L",c,E],["L",c,A],["L",c+w,P],["L",c,C],["L",c,j]])},e.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?co(this):hl(this)},e.prototype.bindEvents=function(){this.label.on(Ne.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(Lr),iO={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},aO={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},oO={orientation:"horizontal",showLabel:!0,type:"start"},fa=Fi({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),uo=Fi({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),rG=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.size,a=i===void 0?10:i,o=n.radius,s=o===void 0?a/4:o,c=n.orientation,l=(0,S._T)(n,["size","radius","orientation"]),u=a,f=u*2.4,d=Ue(r).maybeAppendByClassName(uo.iconRect,"rect").styles((0,S.pi)((0,S.pi)({},l),{width:u,height:f,radius:s,x:-u/2,y:-f/2})),h=1/3*u,p=2/3*u,v=1/4*f,g=3/4*f;d.maybeAppendByClassName("".concat(uo.iconLine,"-1"),"line").styles((0,S.pi)({x1:h,x2:h,y1:v,y2:g},l)),d.maybeAppendByClassName("".concat(uo.iconLine,"-2"),"line").styles((0,S.pi)({x1:p,x2:p,y1:v,y2:g},l)),d.node().setOrigin(u/2,f/2),c==="vertical"?r.setLocalEulerAngles(90):r.setLocalEulerAngles(0)},e}(Lr),sO=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,oO)||this}return e.prototype.renderLabel=function(n){var r=this,i=this.attributes.showLabel,a=en(this.attributes,"label"),o=a.transform,s=(0,S._T)(a,["transform"]),c=(0,S.CR)(Na(s,[]),2),l=c[0],u=c[1],f=Ue(n).maybeAppendByClassName(uo.labelGroup,"g").styles(u),d=(0,S.pi)((0,S.pi)({},aO),l),h=d.text,p=(0,S._T)(d,["text"]);vi(!!i,f,function(v){r.label=v.maybeAppendByClassName(uo.label,"text").styles((0,S.pi)((0,S.pi)({},p),{transform:o,text:"".concat(h)})),r.label.on("mousedown",function(g){g.stopPropagation()}),r.label.on("touchstart",function(g){g.stopPropagation()})})},e.prototype.renderIcon=function(n){var r=this.attributes,i=r.orientation,a=r.type,o=(0,S.pi)((0,S.pi)({orientation:i},iO),en(this.attributes,"icon")),s=this.attributes.iconShape,c=s===void 0?function(){return new rG({style:o})}:s,l=Ue(n).maybeAppendByClassName(uo.iconGroup,"g");l.selectAll(uo.icon.class).data([c]).join(function(u){return u.append(typeof c=="string"?c:function(){return c(a)}).attr("className",uo.icon.name)},function(u){return u.update(o)},function(u){return u.remove()})},e.prototype.render=function(n,r){this.renderIcon(r),this.renderLabel(r)},e}(Lr),cO=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},iG=cO,aG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},oG=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},sG=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},cG=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},lG=function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},uG=function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},lO=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},fG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},dG=function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},hG=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},pG=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},uO=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},vG=uO,gG=function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},yG=function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},mG=function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},bG=function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]};function xG(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}var _G=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]};function OG(t){var e="default";if(zo(t)&&t instanceof Image)e="image";else if(gi(t))e="symbol";else if(tr(t)){var n=new RegExp("data:(image|text)");t.match(n)?e="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?e="url":e="symbol"}return e}function wG(t){var e=OG(t);return["base64","url","image"].includes(e)?"image":t&&e==="symbol"?"path":null}var Cn=function(t){(0,S.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.symbol,a=n.size,o=a===void 0?16:a,s=(0,S._T)(n,["symbol","size"]),c=wG(i);vi(!!c,Ue(r),function(l){l.maybeAppendByClassName("marker",c).attr("className","marker ".concat(c,"-marker")).call(function(u){if(c==="image"){var f=o*2;u.styles({img:i,width:f,height:f,x:-o,y:-o})}else{var f=o/2,d=gi(i)?i:e.getSymbol(i);u.styles((0,S.pi)({path:d==null?void 0:d(0,0,f)},s))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(n,r){e.MARKER_SYMBOL_MAP.set(n,r)},e.getSymbol=function(n){return e.MARKER_SYMBOL_MAP.get(n)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(Lr);Cn.registerSymbol("cross",fG),Cn.registerSymbol("hyphen",pG),Cn.registerSymbol("line",lO),Cn.registerSymbol("plus",hG),Cn.registerSymbol("tick",dG),Cn.registerSymbol("circle",cO),Cn.registerSymbol("point",iG),Cn.registerSymbol("bowtie",uG),Cn.registerSymbol("hexagon",lG),Cn.registerSymbol("square",aG),Cn.registerSymbol("diamond",oG),Cn.registerSymbol("triangle",sG),Cn.registerSymbol("triangle-down",cG),Cn.registerSymbol("line",lO),Cn.registerSymbol("dot",uO),Cn.registerSymbol("dash",vG),Cn.registerSymbol("smooth",gG),Cn.registerSymbol("hv",yG),Cn.registerSymbol("vh",mG),Cn.registerSymbol("hvh",bG),Cn.registerSymbol("vhv",xG);function SG(t,e,n){var r=Math.round((t-n)/e);return n+r*e}function MG(t,e,n){var r=1.4,i=r*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]}var fO=1.4,dO=.4;function EG(t,e,n){var r=n,i=r*fO,a=r/2,o=r/6,s=t+i*dO;return[["M",t,e],["L",s,e+a],["L",t+i,e+a],["L",t+i,e-a],["L",s,e-a],["Z"],["M",s,e+o],["L",t+i-2,e+o],["M",s,e-o],["L",t+i-2,e-o]]}function AG(t,e,n){var r=n,i=r*fO,a=r/2,o=r/6,s=e+i*dO;return[["M",t,e],["L",t-a,s],["L",t-a,e+i],["L",t+a,e+i],["L",t+a,s],["Z"],["M",t-o,s],["L",t-o,e+i-2],["M",t+o,s],["L",t+o,e+i-2]]}Cn.registerSymbol("hiddenHandle",MG),Cn.registerSymbol("verticalHandle",EG),Cn.registerSymbol("horizontalHandle",AG);var Xht=function(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n};function TG(t,e,n,r){var i;r===void 0&&(r=4);var a=(0,S.CR)(t,2),o=a[0],s=a[1],c=(0,S.CR)(e,2),l=c[0],u=c[1],f=(0,S.CR)(n,2),d=f[0],h=f[1],p=(0,S.CR)([l,u],2),v=p[0],g=p[1],y=g-v;return v>g&&(i=(0,S.CR)([g,v],2),v=i[0],g=i[1]),y>s-o?[o,s]:vs?h===s&&d===v?[v,s]:[s-y,s]:[v,g]}function da(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n}var Ol=Fi({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),hO={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},PG=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,hO)||this}return e.prototype.render=function(n,r){var i=Ue(r).maybeAppendByClassName(Ol.markerGroup,"g");this.renderMarker(i);var a=Ue(r).maybeAppendByClassName(Ol.labelGroup,"g");this.renderLabel(a)},e.prototype.renderMarker=function(n){var r=this,i=this.attributes,a=i.orientation,o=i.markerSymbol,s=o===void 0?da(a,"horizontalHandle","verticalHandle"):o;vi(!!s,n,function(c){var l=en(r.attributes,"marker"),u=(0,S.pi)({symbol:s},l);r.marker=c.maybeAppendByClassName(Ol.marker,function(){return new Cn({style:u})}).update(u)})},e.prototype.renderLabel=function(n){var r=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,c=s===void 0?0:s,l=i.formatter;vi(a,n,function(u){var f,d=en(r.attributes,"label"),h=d.text,p=(0,S._T)(d,["text"]),v=((f=u.select(Ol.marker.class))===null||f===void 0?void 0:f.node().getBBox())||{},g=v.width,y=g===void 0?0:g,m=v.height,b=m===void 0?0:m,_=(0,S.CR)(da(o,[0,b+c,"center","top"],[y+c,0,"start","middle"]),4),O=_[0],w=_[1],M=_[2],E=_[3];u.maybeAppendByClassName(Ol.label,"text").styles((0,S.pi)((0,S.pi)({},p),{x:O,y:w,text:l(h).toString(),textAlign:M,textBaseline:E}))})},e}(Lr),pO={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},CG=Ra({},pO,{}),kG=Ra({},pO,la(hO,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),RG=.01,$ht=.5,Nr=Fi({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend");function LG(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}function NG(t,e,n){var r=Array.from(e),i=t.length;return new Array(i).fill(0).reduce(function(a,o,s){var c=r[s%r.length];return a+=" ".concat(t[s],":").concat(c).concat(s(r+i)/2?i:r,range:[r,i]}}var wl=Fi({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function gO(t){var e=t.orientation,n=t.size,r=t.length;return da(e,[r,n],[n,r])}function yO(t){var e=t.type,n=(0,S.CR)(gO(t),2),r=n[0],i=n[1];return e==="size"?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function IG(t){return yO(t)}function jG(t){var e=t.orientation,n=t.color,r=t.block,i=t.partition,a;if(gi(n)){var o=20;a=new Array(o).fill(0).map(function(l,u,f){return n(u/(f.length-1))})}else a=n;var s=a.length,c=a.map(function(l){return Aa(l).toString()});return s?s===1?c[0]:r?NG(i,c,e):c.reduce(function(l,u,f){return l+=" ".concat(f/(s-1),":").concat(u)},"l(".concat(da(e,"0","270"),")")):""}function DG(t){var e=t.orientation,n=t.range;if(!n)return[];var r=(0,S.CR)(gO(t),2),i=r[0],a=r[1],o=(0,S.CR)(n,2),s=o[0],c=o[1],l=da(e,s*i,0),u=da(e,0,s*a),f=da(e,c*i,i),d=da(e,a,c*a);return[["M",l,u],["L",l,d],["L",f,d],["L",f,u],["Z"]]}function FG(t,e){var n=en(e,"track");t.maybeAppendByClassName(wl.track,"path").styles((0,S.pi)({path:yO(e)},n))}function BG(t,e){var n=en(e,"selection"),r=jG(e),i=t.maybeAppendByClassName(wl.selection,"path").styles((0,S.pi)({path:IG(e),fill:r},n)),a=i.maybeAppendByClassName(wl.clipPath,"path").styles({path:DG(e)}).node();i.style("clip-path",a)}var zG=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return e.prototype.render=function(n,r){var i=Ue(r).maybeAppendByClassName(wl.trackGroup,"g");FG(i,n);var a=Ue(r).maybeAppendByClassName(wl.selectionGroup,"g");BG(a,n)},e}(Lr);function GG(t){return{min:Math.min.apply(Math,(0,S.ev)([],(0,S.CR)(t.map(function(e){return e.value})),!1)),max:Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(t.map(function(e){return e.value})),!1))}}var WG=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,kG)||this;return r.eventToOffsetScale=new Xr({}),r.innerRibbonScale=new Xr({}),r.cacheLabelBBox=null,r.cacheHandleBBox=null,r.onHovering=function(i){var a=r.attributes,o=a.data,s=a.block;i.stopPropagation();var c=r.getValueByCanvasPoint(i);if(s){var l=vO(o.map(function(f){var d=f.value;return d}),c).range;r.showIndicator((l[0]+l[1])/2,"".concat(l[0],"-").concat(l[1])),r.dispatchIndicated(c,l)}else{var u=r.getTickValue(c);r.showIndicator(u),r.dispatchIndicated(u)}},r.onDragStart=function(i){return function(a){a.stopPropagation(),r.attributes.slidable&&(r.target=i,r.prevValue=r.getTickValue(r.getValueByCanvasPoint(a)),document.addEventListener("mousemove",r.onDragging),document.addEventListener("touchmove",r.onDragging),document.addEventListener("mouseleave",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("touchend",r.onDragEnd))}},r.onDragging=function(i){var a=r.target;r.updateMouse();var o=(0,S.CR)(r.selection,2),s=o[0],c=o[1],l=r.getTickValue(r.getValueByCanvasPoint(i)),u=l-r.prevValue;a==="start"?s!==l&&r.updateSelection(l,c):a==="end"?c!==l&&r.updateSelection(s,l):a==="ribbon"&&u!==0&&(r.prevValue=l,r.updateSelection(u,u,!0))},r.onDragEnd=function(){r.style.cursor="pointer",document.removeEventListener("mousemove",r.onDragging),document.removeEventListener("touchmove",r.onDragging),document.removeEventListener("mouseup",r.onDragEnd),document.removeEventListener("touchend",r.onDragEnd)},r}return Object.defineProperty(e.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.width,i=n.height;return new Gn(0,0,r,i)},e.prototype.render=function(n,r){var i=this,a=n.showLabel;this.renderTitle(Ue(r));var o=this.availableSpace,s=o.x,c=o.y,l=Ue(r).maybeAppendByClassName(Nr.contentGroup,"g").styles({x:s,y:c}),u=l.maybeAppendByClassName(Nr.labelGroup,"g").styles({zIndex:1});vi(!!a,u,function(d){i.renderLabel(d)});var f=l.maybeAppendByClassName(Nr.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=l.maybeAppendByClassName(Nr.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(f),this.renderIndicator(l),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(e.prototype,"range",{get:function(){var n=this.attributes,r=n.data,i=n.domain;return i?{min:i[0],max:i[1]}:GG(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonScale",{get:function(){var n=this.range,r=n.min,i=n.max;return this.innerRibbonScale.update({domain:[r,i],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonRange",{get:function(){var n=(0,S.CR)(this.selection,2),r=n[0],i=n[1],a=this.ribbonScale;return[a.map(r),a.map(i)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){var n=this.range,r=n.min,i=n.max,a=this.attributes.defaultValue,o=a===void 0?[r,i]:a,s=(0,S.CR)(o,2),c=s[0],l=s[1];return[c,l]},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){return da(this.attributes.orientation,typeof n=="function"?n():n,typeof r=="function"?r():r)},e.prototype.renderTitle=function(n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=r.width,s=r.height,c=en(this.attributes,"title"),l=(0,S.pi)((0,S.pi)({},c),{width:o,height:s,text:a}),u=this;n.selectAll(Nr.title.class).data(i?[a]:[]).join(function(f){return f.append(function(){return new M2({style:l})}).attr("className",Nr.title.name).each(function(){u.title=this})},function(f){return f.update(l)},function(f){return f.each(function(){u.title=void 0}).remove()})},Object.defineProperty(e.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var n=this.attributes,r=n.width,i=n.height;return new Gn(0,0,r,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelFixedSpacing",{get:function(){var n=this.attributes.showTick;return n?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){var n=this.attributes,r=n.orientation,i=n.labelDirection,a={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return a[r][i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelBBox",{get:function(){var n,r=this.attributes.showLabel;if(!r)return new Gn(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((n=this.label.querySelector(An.labelGroup.class))===null||n===void 0?void 0:n.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new Gn(0,0,a,o),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelShape",{get:function(){var n=this.attributes,r=n.showLabel,i=n.labelSpacing,a=i===void 0?0:i;if(!r)return{width:0,height:0,size:0,length:0};var o=this.labelBBox,s=o.width,c=o.height,l=this.ifHorizontal(c,s)+a+this.labelFixedSpacing,u=this.ifHorizontal(s,c);return{width:s,height:c,size:l,length:u}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonBBox",{get:function(){var n=this.attributes,r=n.showHandle,i=n.ribbonSize,a=this.availableSpace,o=a.width,s=a.height,c=this.labelShape,l=c.size,u=c.length,f=(0,S.CR)(this.ifHorizontal([s,o],[o,s]),2),d=f[0],h=f[1],p=r?this.handleShape:{size:0,length:0},v=p.size,g=p.length,y=this.handleOffsetRatio,m=0,b=this.labelPosition;i?m=i:["bottom","right"].includes(b)?m=Math.min(d-l,(d-v)/y):d*(1-y)>v?m=Math.max(d-l,0):m=Math.max((d-l-v)/y,0);var _=Math.max(g,u),O=h-_,w=(0,S.CR)(this.ifHorizontal([O,m],[m,O]),2),M=w[0],E=w[1],A=["top","left"].includes(b)?l:0,P=(0,S.CR)(this.ifHorizontal([_/2,A],[A,_/2]),2),C=P[0],j=P[1];return new Gn(C,j,M,E)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var n=this.ribbonBBox,r=n.width,i=n.height;return this.ifHorizontal({size:i,length:r},{size:r,length:i})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(n){var r=this.attributes,i=r.data,a=r.type,o=r.orientation,s=r.color,c=r.block,l=en(this.attributes,"ribbon"),u=this.range,f=u.min,d=u.max,h=this.ribbonBBox,p=h.x,v=h.y,g=this.ribbonShape,y=g.length,m=g.size,b=Ra({x:p,y:v,length:y,size:m,type:a,orientation:o,color:s,block:c,partition:i.map(function(_){return(_.value-f)/(d-f)}),range:this.ribbonRange},l);this.ribbon=n.maybeAppendByClassName(Nr.ribbon,function(){return new zG({style:b})}).update(b)},e.prototype.getHandleClassName=function(n){return"".concat(Nr.prefix("".concat(n,"-handle")))},e.prototype.renderHandles=function(){var n=this.attributes,r=n.showHandle,i=n.orientation,a=en(this.attributes,"handle"),o=(0,S.CR)(this.selection,2),s=o[0],c=o[1],l=(0,S.pi)((0,S.pi)({},a),{orientation:i}),u=a.shape,f=u===void 0?"slider":u,d=f==="basic"?PG:sO,h=this;this.handlesGroup.selectAll(Nr.handle.class).data(r?[{value:s,type:"start"},{value:c,type:"end"}]:[],function(p){return p.type}).join(function(p){return p.append(function(){return new d({style:l})}).attr("className",function(v){var g=v.type;return"".concat(Nr.handle," ").concat(h.getHandleClassName(g))}).each(function(v){var g=v.type,y=v.value;this.update({labelText:y});var m="".concat(g,"Handle");h[m]=this,this.addEventListener("pointerdown",h.onDragStart(g))})},function(p){return p.update(l).each(function(v){var g=v.value;this.update({labelText:g})})},function(p){return p.each(function(v){var g=v.type,y="".concat(g,"Handle");h[y]=void 0}).remove()})},e.prototype.adjustHandles=function(){var n=(0,S.CR)(this.selection,2),r=n[0],i=n[1];this.setHandlePosition("start",r),this.setHandlePosition("end",i)},e.prototype.adjustTitle=function(){var n=this.attributes,r=n.titlePosition,i=n.orientation,a=(0,S.CR)(this.getElementsByClassName(Nr.title.name),1),o=a[0],s=this.handlesGroup.select(".".concat(this.getHandleClassName("start"))).node();if(!(!o||!s)&&!(r!=="top-left"||i!=="horizontal")){var c=(0,S.CR)(s.getLocalBounds().min,1),l=c[0],u=(0,S.CR)(o.getLocalBounds().min,1),f=u[0],d=l-f;o.style.x=+(this.style.x||0)+d}},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new Gn(0,0,0,0);var n=this.startHandle.getBBox(),r=n.width,i=n.height,a=this.endHandle.getBBox(),o=a.width,s=a.height,c=(0,S.CR)([Math.max(r,o),Math.max(i,s)],2),l=c[0],u=c[1];return this.cacheHandleBBox=new Gn(0,0,l,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var n=this.handleBBox,r=n.width,i=n.height,a=(0,S.CR)(this.ifHorizontal([i,r],[r,i]),2),o=a[0],s=a[1];return{width:r,height:i,size:o,length:s}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(n,r){var i=this.attributes.handleFormatter,a=this.ribbonBBox,o=a.x,s=a.y,c=this.ribbonShape.size,l=this.getOffset(r),u=(0,S.CR)(this.ifHorizontal([o+l,s+c*this.handleOffsetRatio],[o+c*this.handleOffsetRatio,s+l]),2),f=u[0],d=u[1],h=this.handlesGroup.select(".".concat(this.getHandleClassName(n))).node();h==null||h.update({x:f,y:d,formatter:i})},e.prototype.renderIndicator=function(n){var r=en(this.attributes,"indicator");this.indicator=n.maybeAppendByClassName(Nr.indicator,function(){return new nG({})}).update(r)},Object.defineProperty(e.prototype,"labelData",{get:function(){var n=this,r=this.attributes.data;return r.reduce(function(i,a,o,s){var c,l,u=(c=a==null?void 0:a.id)!==null&&c!==void 0?c:o.toString();if(i.push((0,S.pi)((0,S.pi)({},a),{id:u,index:o,type:"value",label:(l=a==null?void 0:a.label)!==null&&l!==void 0?l:a.value.toString(),value:n.ribbonScale.map(a.value)})),o=0&&(c=1),1-s/(o-1)-n+c}function $G(t,e,n){const r=B2(e),i=D2(e,t),a=1;return 1-i/(r-1)-n+a}function UG(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function qG(t,e){return t>=e?2-(t-1)/(e-1):1}function ZG(t,e,n,r){const i=e-t;return 1-.5*(wr(e-r,2)+wr(t-n,2))/wr(.1*i,2)}function KG(t,e,n){const r=e-t;if(n>r){const i=(n-r)/2;return 1-wr(i,2)/wr(.1*r,2)}return 1}function QG(){return 1}const Lv=(t,e,n=5,r=!0,i=HG,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||j<=t&&N>=e)&&(s.lmin=j,s.lmax=N,s.lstep=k,s.score=z)}}_+=1}y+=1}}c+=1}const l=Ml(s.lmax),u=Ml(s.lmin),f=Ml(s.lstep),d=Math.floor(VG((l-u)/f))+1,h=new Array(d);h[0]=Ml(u);for(let p=1;pa-o);const i=[];for(let a=1;a({value:e/t,label:String(e)})}function aW(t,e,n,r,i){const a=e.thresholds,o=iW(r);return Object.assign(Object.assign({},t),{color:i,data:[n,...a,r].map(o)})}function oW(t,e,n){const i=[-1/0,...e.thresholds,1/0].map((a,o)=>({value:o,label:a}));return Object.assign(Object.assign({},t),{data:i,color:n,labelFilter:(a,o)=>o>0&&op!==void 0).find(p=>!(p instanceof Sl)));return Object.assign(Object.assign({},t),{domain:[d,h],data:l.getTicks().map(p=>({value:p})),color:new Array(Math.floor(o)).fill(0).map((p,v)=>{const g=(f-u)/(o-1)*v+u,y=l.map(g)||c,m=r?r.map(g):1;return y.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(b,_,O,w)=>`rgba(${_}, ${O}, ${w}, ${m})`)})})}function lW(t,e,n,r,i,a){const o=ua(t,"color"),s=rW(n,r,i);if(o instanceof Js){const{range:u}=o.getOptions(),[f,d]=Nv(o);return o instanceof pd||o instanceof vd?aW(s,o,f,d,u):oW(s,o,u)}const c=ua(t,"size"),l=ua(t,"opacity");return cW(s,o,c,l,e,a)}const fo=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,style:c,crossPadding:l,padding:u}=t,f=eW(t,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:d,value:h,theme:p,scale:v})=>{const{bbox:g}=h,{x:y,y:m,width:b,height:_}=g,O=U2(a,n),{legendContinuous:w={}}=p,M=fd(Object.assign({},w,Object.assign(Object.assign({titleText:ud(s),labelAlign:"value",labelFormatter:typeof e=="string"?A=>oo(e)(A.label):e},lW(d,v,h,t,fo,p)),c),f)),E=new q2({style:Object.assign(Object.assign({x:y,y:m,width:b,height:_},O),{subOptions:M})});return E.appendChild(new WG({className:"legend-continuous",style:M})),E}};fo.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};const bO=t=>(...e)=>fo(Object.assign({},{block:!0},t))(...e);bO.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const Iv=t=>e=>{const{scales:n}=e,r=ua(n,"size");return fo(Object.assign({},{type:"size",data:r.getTicks().map((i,a)=>({value:i,label:String(i)}))},t))(e)};Iv.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const xO=t=>Iv(Object.assign({},{block:!0},t));xO.props=Object.assign(Object.assign({},fo.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var uW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie=>{const{width:n,height:r,depth:i,paddingLeft:a,paddingRight:o,paddingTop:s,paddingBottom:c,padding:l,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,margin:v,marginLeft:g,marginBottom:y,marginTop:m,marginRight:b,data:_,coordinate:O,theme:w,component:M,interaction:E,x:A,y:P,z:C,key:j,frame:N,labelTransform:k,parentKey:R,clip:D,viewStyle:F,title:B}=e,z=uW(e,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:A,y:P,z:C,key:j,width:n,height:r,depth:i,padding:l,paddingLeft:a,paddingRight:o,paddingTop:s,inset:u,insetLeft:f,insetTop:d,insetRight:h,insetBottom:p,paddingBottom:c,theme:w,coordinate:O,component:M,interaction:E,frame:N,labelTransform:k,margin:v,marginLeft:g,marginBottom:y,marginTop:m,marginRight:b,parentKey:R,clip:D,style:F},!t&&{title:B}),{marks:[Object.assign(Object.assign(Object.assign({},z),{key:`${j}-0`,data:_}),t&&{title:B})]})]};_O.props={};var fW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iNt({},t(e,...n),e)}function ec(t){return(e,...n)=>Nt({},e,t(e,...n))}function jv(t,e){if(!t)return e;if(Array.isArray(t))return t;const{value:n=e}=t,r=fW(t,["value"]);return Object.assign(Object.assign({},r),{value:n})}var Dv=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t,n=Dv(t,["children"]);if(!Array.isArray(e))return[];const{data:r,scale:i={},axis:a={},legend:o={},encode:s={},transform:c=[]}=n,l=Dv(n,["data","scale","axis","legend","encode","transform"]),u=e.map(f=>{var{data:d,scale:h={},axis:p={},legend:v={},encode:g={},transform:y=[]}=f,m=Dv(f,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:jv(d,r),scale:Nt({},i,h),encode:Nt({},s,g),transform:[...c,...y],axis:p&&a?Nt({},a,p):!1,legend:v&&o?Nt({},o,v):!1},m)});return[Object.assign(Object.assign({},l),{marks:u,type:"standardView"})]};OO.props={};function ur([t,e],[n,r]){return[t-n,e-r]}function gd([t,e],[n,r]){return[t+n,e+r]}function Kn([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Gi([t,e]){return Math.atan2(e,t)}function nc([t,e]){return Gi([t,e])+Math.PI/2}function wO(t,e){const n=Gi(t),r=Gi(e);return nr===0?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])),t.closePath(),t}function hW(t,e,n){const{arrowSize:r}=n,i=typeof r=="string"?+parseFloat(r)/100*Kn(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),s=Math.PI/2-o-a,c=[e[0]-i*Math.sin(s),e[1]-i*Math.cos(s)],l=o-a,u=[e[0]-i*Math.cos(l),e[1]-i*Math.sin(l)];return[c,u]}function El(t,e,n,r,i){const a=Gi(ur(r,e))+Math.PI,o=Gi(ur(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function MO(t,e,n,r="y",i="between",a=!1){const o=(g,y)=>g==="y"||g===!0?y?180:90:y?90:0,s=r==="y"||r===!0?n:e,c=o(r,a),l=Zo(s),[u,f]=Ia(l,g=>s[g]),d=new Xr({domain:[u,f],range:[0,100]}),h=g=>d.map(s[g]),p={between:g=>`${t[g]} ${h(g)}%`,start:g=>g===0?`${t[g]} ${h(g)}%`:`${t[g-1]} ${h(g)}%, ${t[g]} ${h(g)}%`,end:g=>g===t.length-1?`${t[g]} ${h(g)}%`:`${t[g]} ${h(g)}%, ${t[g+1]} ${h(g)}%`},v=l.sort((g,y)=>h(g)-h(y)).map(p[i]||p.between).join(",");return`linear-gradient(${c}deg, ${v})`}function yd(t){const[e,n,r,i]=t;return[i,e,n,r]}function ns(t,e,n){const[r,i,,a]=zn(t)?yd(e):e,[o,s]=n,c=t.getCenter(),l=nc(ur(r,c)),u=nc(ur(i,c)),f=u===l&&o!==s?u+Math.PI*2:u;return{startAngle:l,endAngle:f-l>=0?f:Math.PI*2+f,innerRadius:Kn(a,c),outerRadius:Kn(r,c)}}function qht(t){const e="connect";return Object.fromEntries(Object.entries(t).filter(([n])=>n.startsWith(e)).map(([n,r])=>[lowerFirst(n.replace(e,"").trim()),r]).filter(([n])=>n!==void 0))}function EO(t){const{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function AO(t,e){if(!Nn(t))return"";const n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function TO(t){if(t.length===1)return t[0];const[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}function PO(t){return t.replace(/-(\w)/g,function(e,n){return n.toUpperCase()})}function pW(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}var Zht=Array.prototype.slice;function CO(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Wn(t){return function(){return t}}function kO(t){this._context=t}kO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Al(t){return new kO(t)}const Bv=Math.PI,zv=2*Bv,rs=1e-6,vW=zv-rs;function RO(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return RO;const n=wr(10,e);return function(r){this._+=r[0];for(let i=1,a=r.length;irs)if(!(Math.abs(f*c-l*u)>rs)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Bv-Math.acos((v+d-g)/(2*y*m)))/2),_=b/m,O=b/y;Math.abs(_-1)>rs&&this._append`L${e+_*u},${n+_*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+O*c},${this._y1=n+O*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>rs||Math.abs(this._y1-u)>rs)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%zv+zv),d>vW?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>rs&&this._append`A${r},${r},0,${+(d>=Bv)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Wi(){return new md}Wi.prototype=md.prototype;function Kht(t=3){return new md(+t)}function Gv(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new md(e)}function LO(t){return t[0]}function NO(t){return t[1]}function ho(t,e){var n=Wn(!0),r=null,i=Al,a=null,o=Gv(s);t=typeof t=="function"?t:t===void 0?LO:Wn(t),e=typeof e=="function"?e:e===void 0?NO:Wn(e);function s(c){var l,u=(c=CO(c)).length,f,d=!1,h;for(r==null&&(a=i(h=o())),l=0;l<=u;++l)!(l0&&(a=e),r<0&&(a=r),n>0&&(o=n),i<0&&(o=i),[a,o]}function mW(t,e=[]){const[n=0,r=0,i=n,a=r]=e,o=t.parentNode,s=o.getEulerAngles();o.setEulerAngles(0);const{min:c,halfExtents:l}=t.getLocalBounds(),[u,f]=c,[d,h]=l;return o.setEulerAngles(s),{x:u-a,y:f-n,width:d*2+a+r,height:h*2+n+i}}const bW=(t,e,n)=>{const r=Kn(t,e),i=Kn(e,n),a=Kn(n,t);return(Math.pow(r,2)+Math.pow(i,2)-Math.pow(a,2))/(2*r*i)};function xW(t,e,n,r){const[[i,a],[o,s]]=e,[c,l]=yW(t);if(i===o&&a===s)return ho()([[0,0],[c,l]]);const u=[[i-o,a-s]].concat(n.length?n:[[0,0]]),f=[r[0]-o,r[1]-s],[d,h]=u;if(bW(f,d,h)>0){const p=(()=>{const{min:v,max:g}=t.getLocalBounds(),y=d[0]+(d[1]-f[1])*(d[1]-0)/(d[0]-f[0]);return g[0]{const e=t.attributes,{className:n,class:r,transform:i,rotate:a,labelTransform:o,labelTransformOrigin:s,x:c,y:l,x0:u=c,y0:f=l,text:d,background:h,connector:p,startMarker:v,endMarker:g,coordCenter:y,innerHTML:m}=e,b=Wv(e,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if([c,l,u,f].some(D=>!(0,xr.Z)(D))){t.children.forEach(D=>D.remove());return}const _=le(b,"background"),{padding:O}=_,w=Wv(_,["padding"]),M=le(b,"connector"),{points:E=[]}=M,A=Wv(M,["points"]),P=[[+u,+f],[+c,+l]];let C;m?C=je(t).maybeAppend("html","html",n).style("zIndex",0).style("innerHTML",m).call(Ee,Object.assign({transform:o,transformOrigin:s},b)).node():C=je(t).maybeAppend("text","text").style("zIndex",0).style("text",d).call(Ee,Object.assign({textBaseline:"middle",transform:o,transformOrigin:s},b)).node();const j=je(t).maybeAppend("background","rect").style("zIndex",-1).call(Ee,mW(C,O)).call(Ee,h?w:{}).node(),N=xW(j,P,E,y),k=v&&new Cn({id:"startMarker",style:Object.assign({x:0,y:0},le(b,"startMarker"))}),R=g&&new Cn({id:"endMarker",style:Object.assign({x:0,y:0},le(b,"endMarker"))});je(t).maybeAppend("connector","path").style("zIndex",0).style("path",N).style("markerStart",k).style("markerEnd",R).call(Ee,p?A:{})});function ic(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function _W(t,e,n,r){const i=e.length/2,a=e.slice(0,i),o=e.slice(i);let s=ic(a,(h,p)=>Math.abs(h[1]-o[p][1]));s=Math.max(Math.min(s,i-2),1);const c=h=>[a[h][0],(a[h][1]+o[h][1])/2],l=c(s),u=c(s-1),f=c(s+1),d=Gi(ur(f,u))/Math.PI*180;return{x:l[0],y:l[1],transform:`rotate(${d})`,textAlign:"center",textBaseline:"middle"}}function jO(t,e,n,r){const{bounds:i}=n,[[a,o],[s,c]]=i,l=s-a,u=c-o,f=d=>{const{x:h,y:p}=d,v=M_(n.x,l),g=M_(n.y,u);return Object.assign(Object.assign({},d),{x:(v||h)+a,y:(g||p)+o})};return f(t==="left"?{x:0,y:u/2,textAnchor:"start",textBaseline:"middle"}:t==="right"?{x:l,y:u/2,textAnchor:"end",textBaseline:"middle"}:t==="top"?{x:l/2,y:0,textAnchor:"center",textBaseline:"top"}:t==="bottom"?{x:l/2,y:u,textAnchor:"center",textBaseline:"bottom"}:t==="top-left"?{x:0,y:0,textAnchor:"start",textBaseline:"top"}:t==="top-right"?{x:l,y:0,textAnchor:"end",textBaseline:"top"}:t==="bottom-left"?{x:0,y:u,textAnchor:"start",textBaseline:"bottom"}:t==="bottom-right"?{x:l,y:u,textAnchor:"end",textBaseline:"bottom"}:{x:l/2,y:u/2,textAnchor:"center",textBaseline:"middle"})}function DO(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s}=n,c=r.getCenter(),l=ns(r,e,[i,a]),{innerRadius:u,outerRadius:f,startAngle:d,endAngle:h}=l,p=t==="inside"?(d+h)/2:h,v=Hv(p,o,s),g=(()=>{const[y,m]=e,b=u+(f-u)*.5,[_,O]=t==="inside"?Tl(c,p,b):SO(y,m);return{x:_,y:O}})();return Object.assign(Object.assign({},g),{textAlign:t==="inside"?"center":"start",textBaseline:"middle",rotate:v})}function Tl(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function Hv(t,e,n){if(!e)return 0;const r=n?0:Math.sin(t)<0?90:-90;return t/Math.PI*180+r}function OW(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s,radius:c=.5,offset:l=0}=n,u=ns(r,e,[i,a]),{startAngle:f,endAngle:d}=u,h=r.getCenter(),p=(f+d)/2,g={textAlign:"center",textBaseline:"middle",rotate:Hv(p,o,s)},{innerRadius:y,outerRadius:m}=u,_=y+(m-y)*c+l,[O,w]=Tl(h,p,_);return Object.assign({x:O,y:w},g)}function FO(t){return t===void 0?null:t}function BO(t,e,n,r){const{bounds:i}=n,[a]=i;return{x:FO(a[0]),y:FO(a[1])}}function ja(t,e,n,r){const{bounds:i}=n;return i.length===1?BO(t,e,n,r):(fl(r)?DO:Xs(r)?OW:jO)(t,e,n,r)}function wW(t,e,n,r,i){const[a,o]=Tl(t,e,n),[s,c]=Tl(t,e,r),l=Math.sin(e)>0?1:-1;return[[a,o],[s,c],[s+l*i,c]]}function zO(t,e,n){const r=ns(n,t,[e.y,e.y1]),{innerRadius:i,outerRadius:a}=r;return i+(a-i)}function GO(t,e,n){const r=ns(n,t,[e.y,e.y1]),{startAngle:i,endAngle:a}=r;return(i+a)/2}function Yv(t,e,n,r){const{autoRotate:i,rotateToAlignArc:a,offset:o=0,connector:s=!0,connectorLength:c=o,connectorLength2:l=0,connectorDistance:u=0}=n,f=r.getCenter(),d=GO(e,n,r),h=Math.sin(d)>0?1:-1,p=Hv(d,i,a),v={textAlign:h>0||fl(r)?"start":"end",textBaseline:"middle",rotate:p},g=zO(e,n,r),y=g+(s?c:o),[[m,b],[_,O],[w,M]]=wW(f,d,g,y,s?l:0),E=s?+u*h:0,A=w+E,P=M,C={connector:s,connectorPoints:[[_-A,O-P],[w-A,M-P]]};return Object.assign(Object.assign({x0:m,y0:b,x:w+E,y:M},v),C)}function SW(t,e,n,r){const{bounds:i}=n;return i.length===1?BO(t,e,n,r):(fl(r)?DO:Xs(r)?Yv:jO)(t,e,n,r)}var MW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?1:-1,h=c[0]+(f+ +o)*d,{x:p}=s,v=h-p;return s.x+=v,s.connectorPoints[0][0]-=v,s}var AW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?1:-1,[v,g]=Tl(u,h,d);return s.x=v+(a+o)*p,s.y=g,s}var WO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,theme:r}=e,{render:i}=t;return(a,o)=>{const{text:s,x:c,y:l,transform:u="",transformOrigin:f,className:d=""}=o,h=WO(o,["text","x","y","transform","transformOrigin","className"]),p=CW(a,o,n,r,t),{rotate:v=0,transform:g=""}=p,y=WO(p,["rotate","transform"]);return je(new IO).call(Ee,y).style("text",`${s}`).style("className",`${d} g2-label`).style("innerHTML",i?i(s,o.datum,o.index):void 0).style("labelTransform",`${g} rotate(${+v}) ${u}`.trim()).style("labelTransformOrigin",f).style("coordCenter",n.getCenter()).call(Ee,h).node()}};HO.props={defaultMarker:"point"};function YO(t,e){const{__data__:n}=t,{markKey:r,index:i,seriesIndex:a}=n,{markState:o}=e,s=Array.from(o.keys()).find(c=>c.key===r);if(s)return a?a.map(c=>s.data[c]):s.data[i]}function VO(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}function kW(t){return VO(t,e=>e.className==="component")}function RW(t){return VO(t,e=>e.className==="element")}function Ir(t,e,n,r=i=>!0){return i=>{if(!r(i))return;n.emit(`plot:${t}`,i);const{target:a}=i;if(!a)return;const{className:o}=a;if(o==="plot")return;const s=RW(a),c=kW(a),l=s||c;if(!l)return;const{className:u,markType:f}=l;if(u==="element"){const d=Object.assign(Object.assign({},i),{nativeEvent:!0,data:{data:YO(l,e)}});n.emit(`element:${t}`,d),n.emit(`${f}:${t}`,d)}else{const d=Object.assign(Object.assign({},i),{nativeEvent:!0});n.emit(`component:${t}`,d),n.emit(`${o}:${t}`,d)}}}function XO(){return(t,e,n)=>{const{container:r,view:i}=t,a=Ir(wn.CLICK,i,n,M=>M.detail===1),o=Ir(wn.DBLCLICK,i,n,M=>M.detail===2),s=Ir(wn.POINTER_TAP,i,n),c=Ir(wn.POINTER_DOWN,i,n),l=Ir(wn.POINTER_UP,i,n),u=Ir(wn.POINTER_OVER,i,n),f=Ir(wn.POINTER_OUT,i,n),d=Ir(wn.POINTER_MOVE,i,n),h=Ir(wn.POINTER_ENTER,i,n),p=Ir(wn.POINTER_LEAVE,i,n),v=Ir(wn.POINTER_UPOUTSIDE,i,n),g=Ir(wn.DRAG_START,i,n),y=Ir(wn.DRAG,i,n),m=Ir(wn.DRAG_END,i,n),b=Ir(wn.DRAG_ENTER,i,n),_=Ir(wn.DRAG_LEAVE,i,n),O=Ir(wn.DRAG_OVER,i,n),w=Ir(wn.DROP,i,n);return r.addEventListener("click",a),r.addEventListener("click",o),r.addEventListener("pointertap",s),r.addEventListener("pointerdown",c),r.addEventListener("pointerup",l),r.addEventListener("pointerover",u),r.addEventListener("pointerout",f),r.addEventListener("pointermove",d),r.addEventListener("pointerenter",h),r.addEventListener("pointerleave",p),r.addEventListener("pointerupoutside",v),r.addEventListener("dragstart",g),r.addEventListener("drag",y),r.addEventListener("dragend",m),r.addEventListener("dragenter",b),r.addEventListener("dragleave",_),r.addEventListener("dragover",O),r.addEventListener("drop",w),()=>{r.removeEventListener("click",a),r.removeEventListener("click",o),r.removeEventListener("pointertap",s),r.removeEventListener("pointerdown",c),r.removeEventListener("pointerup",l),r.removeEventListener("pointerover",u),r.removeEventListener("pointerout",f),r.removeEventListener("pointermove",d),r.removeEventListener("pointerenter",h),r.removeEventListener("pointerleave",p),r.removeEventListener("pointerupoutside",v),r.removeEventListener("dragstart",g),r.removeEventListener("drag",y),r.removeEventListener("dragend",m),r.removeEventListener("dragenter",b),r.removeEventListener("dragleave",_),r.removeEventListener("dragover",O),r.removeEventListener("drop",w)}}}XO.props={reapplyWhenUpdate:!0};function LW(){return{"component.axisRadar":rO,"component.axisLinear":lo,"component.axisArc":nO,"component.legendContinuousBlock":bO,"component.legendContinuousBlockSize":xO,"component.legendContinuousSize":Iv,"interaction.event":XO,"composition.mark":_O,"composition.view":OO,"shape.label.label":HO}}var NW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(typeof a!="string")return a;const o=`${t}.${a}`;return n[o]||Vs(`Unknown Component: ${o}`)};return[(a,o)=>{const{type:s}=a,c=NW(a,["type"]);s||Vs("Plot type is required!");const l=r(s);return l==null?void 0:l(c,o)},r]}function $O(t){const{canvas:e,group:n}=t;return(e==null?void 0:e.document)||(n==null?void 0:n.ownerDocument)||Vs("Cannot find library document")}var UO=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);in.type===e)}function is(t){return Qi(t,"polar").length>0}function jW(t){return Qi(t,"helix").length>0}function ac(t){return Qi(t,"transpose").length%2===1}function DW(t){return Qi(t,"parallel").length>0}function ZO(t){return Qi(t,"theta").length>0}function FW(t){return Qi(t,"reflect").length>0}function Pl(t){return Qi(t,"radial").length>0}function BW(t){return Qi(t,"radar").length>0}function zW(t){return Qi(t,"reflectY").length>0}function GW(t){return t.find(e=>e.type==="cartesian"||e.type==="cartesian3D")?t:[...t,{type:"cartesian"}]}function nn(t){for(var e=t.length/6|0,n=new Array(e),r=0;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?xd(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?xd(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=JW.exec(t))?new $r(e[1],e[2],e[3],1):(e=tH.exec(t))?new $r(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=eH.exec(t))?xd(e[1],e[2],e[3],e[4]):(e=nH.exec(t))?xd(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=rH.exec(t))?iw(e[1],e[2]/100,e[3]/100,1):(e=iH.exec(t))?iw(e[1],e[2]/100,e[3]/100,e[4]):KO.hasOwnProperty(t)?tw(KO[t]):t==="transparent"?new $r(NaN,NaN,NaN,0):null}function tw(t){return new $r(t>>16&255,t>>8&255,t&255,1)}function xd(t,e,n,r){return r<=0&&(t=e=n=NaN),new $r(t,e,n,r)}function ew(t){return t instanceof oc||(t=Xv(t)),t?(t=t.rgb(),new $r(t.r,t.g,t.b,t.opacity)):new $r}function kl(t,e,n,r){return arguments.length===1?ew(t):new $r(t,e,n,r==null?1:r)}function $r(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}bd($r,kl,Vv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new $r(os(this.r),os(this.g),os(this.b),_d(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:nw,formatHex:nw,formatHex8:sH,formatRgb:rw,toString:rw}));function nw(){return"#".concat(ss(this.r)).concat(ss(this.g)).concat(ss(this.b))}function sH(){return"#".concat(ss(this.r)).concat(ss(this.g)).concat(ss(this.b)).concat(ss((isNaN(this.opacity)?1:this.opacity)*255))}function rw(){var t=_d(this.opacity);return"".concat(t===1?"rgb(":"rgba(").concat(os(this.r),", ").concat(os(this.g),", ").concat(os(this.b)).concat(t===1?")":", ".concat(t,")"))}function _d(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function os(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ss(t){return t=os(t),(t<16?"0":"")+t.toString(16)}function iw(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ji(t,e,n,r)}function aw(t){if(t instanceof Ji)return new Ji(t.h,t.s,t.l,t.opacity);if(t instanceof oc||(t=Xv(t)),!t)return new Ji;if(t instanceof Ji)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Ji(o,s,c,t.opacity)}function cH(t,e,n,r){return arguments.length===1?aw(t):new Ji(t,e,n,r==null?1:r)}function Ji(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}bd(Ji,cH,Vv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new Ji(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new Ji(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,a=2*r-i;return new $r($v(e>=240?e-240:e+120,a,i),$v(e,a,i),$v(e<120?e+240:e-120,a,i),this.opacity)},clamp:function(){return new Ji(ow(this.h),Od(this.s),Od(this.l),_d(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=_d(this.opacity);return"".concat(e===1?"hsl(":"hsla(").concat(ow(this.h),", ").concat(Od(this.s)*100,"%, ").concat(Od(this.l)*100,"%").concat(e===1?")":", ".concat(e,")"))}}));function ow(t){return t=(t||0)%360,t<0?t+360:t}function Od(t){return Math.max(0,Math.min(1,t||0))}function $v(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function sw(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function lH(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):Uv(isNaN(t)?e:t)}function hH(t){return(t=+t)==1?lc:function(e,n){return n-e?fH(e,n,t):Uv(isNaN(e)?n:e)}}function lc(t,e){var n=e-t;return n?cw(t,n):Uv(isNaN(t)?e:t)}var Qht=function t(e){var n=hH(e);function r(i,a){var o=n((i=kl(i)).r,(a=kl(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),l=lc(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=c(u),i.opacity=l(u),i+""}}return r.gamma=t,r}(1);function lw(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;opH(t[t.length-1]),uw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(nn),vH=In(uw),fw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(nn),gH=In(fw),dw=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(nn),yH=In(dw),hw=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(nn),mH=In(hw),pw=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(nn),bH=In(pw),vw=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(nn),xH=In(vw),gw=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(nn),_H=In(gw),yw=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(nn),OH=In(yw),mw=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(nn),wH=In(mw),bw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(nn),SH=In(bw),xw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(nn),MH=In(xw),_w=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(nn),EH=In(_w),Ow=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(nn),AH=In(Ow),ww=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(nn),TH=In(ww),Sw=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(nn),PH=In(Sw),Mw=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(nn),CH=In(Mw),Ew=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(nn),kH=In(Ew),Aw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(nn),RH=In(Aw),Tw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(nn),LH=In(Tw),Pw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(nn),NH=In(Pw),Cw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(nn),IH=In(Cw),kw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(nn),jH=In(kw),Rw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(nn),DH=In(Rw),Lw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(nn),FH=In(Lw),Nw=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(nn),BH=In(Nw),Iw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(nn),zH=In(Iw),jw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(nn),GH=In(jw);function WH(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-t*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-t*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-t*2475.67)))))))+")"}var HH=Math.PI/180,YH=180/Math.PI,Dw=-.14861,qv=1.78277,Zv=-.29227,wd=-.90649,Rl=1.97294,Fw=Rl*wd,Bw=Rl*qv,zw=qv*Zv-wd*Dw;function VH(t){if(t instanceof cs)return new cs(t.h,t.s,t.l,t.opacity);t instanceof $r||(t=ew(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(zw*r+Fw*e-Bw*n)/(zw+Fw-Bw),a=r-i,o=(Rl*(n-i)-Zv*a)/wd,s=Math.sqrt(o*o+a*a)/(Rl*i*(1-i)),c=s?Math.atan2(o,a)*YH-120:NaN;return new cs(c<0?c+360:c,s,i,t.opacity)}function pa(t,e,n,r){return arguments.length===1?VH(t):new cs(t,e,n,r==null?1:r)}function cs(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}bd(cs,pa,Vv(oc,{brighter:function(e){return e=e==null?sc:Math.pow(sc,e),new cs(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?as:Math.pow(as,e),new cs(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*HH,n=+this.l,r=isNaN(this.s)?0:this.s*n*(1-n),i=Math.cos(e),a=Math.sin(e);return new $r(255*(n+r*(Dw*i+qv*a)),255*(n+r*(Zv*i+wd*a)),255*(n+r*(Rl*i)),this.opacity)}}));function Gw(t){return function e(n){n=+n;function r(i,a){var o=t((i=pa(i)).h,(a=pa(a)).h),s=lc(i.s,a.s),c=lc(i.l,a.l),l=lc(i.opacity,a.opacity);return function(u){return i.h=o(u),i.s=s(u),i.l=c(Math.pow(u,n)),i.opacity=l(u),i+""}}return r.gamma=e,r}(1)}var tpt=Gw(dH),Kv=Gw(lc),XH=Kv(pa(300,.5,0),pa(-240,.5,1)),$H=Kv(pa(-100,.75,.35),pa(80,1.5,.8)),UH=Kv(pa(260,.75,.35),pa(80,1.5,.8)),Sd=pa();function qH(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Sd.h=360*t-100,Sd.s=1.5-1.5*e,Sd.l=.8-.9*e,Sd+""}var Md=kl(),ZH=Math.PI/3,KH=Math.PI*2/3;function QH(t){var e;return t=(.5-t)*Math.PI,Md.r=255*(e=Math.sin(t))*e,Md.g=255*(e=Math.sin(t+ZH))*e,Md.b=255*(e=Math.sin(t+KH))*e,Md+""}function JH(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-t*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+t*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-t*6838.66)))))))+")"}function Ed(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var tY=Ed(nn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),eY=Ed(nn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),nY=Ed(nn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),rY=Ed(nn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function iY(t,e,n,r,i,a){const{guide:o={}}=n,s=hY(t,e,n);if(typeof s!="string")return n;const c=pY(s,t,e,n),l=uY(s,c,n);return Object.assign(Object.assign(Object.assign({},n),gY(s,t,e,n,r)),{domain:l,range:vY(s,t,e,n,l,i,a),expectedDomain:c,guide:o,name:t,type:s})}function aY(t,e){const n={};for(const r of t){const{values:i,name:a}=r,o=e[a];for(const s of i){const{name:c,value:l}=s;n[c]=l.map(u=>o.map(u))}}return n}function oY(t,e){var n;const{components:r=[]}=e,i=["scale","encode","axis","legend","data","transform"],a=Array.from(new Set(t.flatMap(s=>s.channels.map(c=>c.scale)))),o=new Map(a.map(s=>[s.name,s]));for(const s of r){const c=lY(s);for(const l of c){const u=o.get(l),f=((n=s.scale)===null||n===void 0?void 0:n[l])||{},{independent:d=!1}=f;if(u&&!d){const{guide:h}=u,p=typeof h=="boolean"?{}:h;u.guide=Nt({},p,s),Object.assign(u,f)}else{const h=Object.assign(Object.assign({},f),{expectedDomain:f.domain,name:l,guide:V2(s,i)});a.push(h)}}}return a}function sY(t){if(!t||!Array.isArray(t))return[qo,qo];let e,n;return[a=>{var o;e=a.map.bind(a),n=(o=a.invert)===null||o===void 0?void 0:o.bind(a);const s=t.filter(([d])=>typeof d=="function"),c=t.filter(([d])=>typeof d!="function"),l=new Map(c);if(a.map=d=>{for(const[h,p]of s)if(h(d))return p;return l.has(d)?l.get(d):e(d)},!n)return a;const u=new Map(c.map(([d,h])=>[h,d])),f=new Map(s.map(([d,h])=>[h,d]));return a.invert=d=>f.has(d)?d:u.has(d)?u.get(d):n(d),a},a=>(e!==null&&(a.map=e),n!==null&&(a.invert=n),a)]}function Ww(t,e){const n=Object.keys(t);for(const r of Object.values(e)){const{name:i}=r.getOptions();if(!(i in t))t[i]=r;else{const a=n.filter(c=>c.startsWith(i)).map(c=>+(c.replace(i,"")||0)),o=Sn(a)+1,s=`${i}${o}`;t[s]=r,r.getOptions().key=s}}return t}function Hw(t,e){const[n]=Hn("scale",e),{relations:r}=t,[i]=sY(r),a=n(t);return i(a)}function cY(t){const e=t.flatMap(n=>Array.from(n.values())).flatMap(n=>n.channels.map(r=>r.scale));Yw(e,"x"),Yw(e,"y")}function lY(t){const{channels:e=[],type:n,scale:r={}}=t,i=["shape","color","opacity","size"];return e.length!==0?e:n==="axisX"?["x"]:n==="axisY"?["y"]:n==="legends"?Object.keys(r).filter(a=>i.includes(a)):[]}function Yw(t,e){const n=t.filter(({name:a,facet:o=!0})=>o&&a===e),r=n.flatMap(a=>a.domain),i=n.every(Vw)?Ia(r):n.every(Xw)?Array.from(new Set(r)):null;if(i!==null)for(const a of n)a.domain=i}function uY(t,e,n){const{ratio:r}=n;return r==null?e:Vw({type:t})?fY(e,r,t):Xw({type:t})?dY(e,r):e}function fY(t,e,n){const r=t.map(Number),i=new Xr({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*e]});return n==="time"?t.map(a=>new Date(i.map(a))):t.map(a=>i.map(a))}function dY(t,e){const n=Math.round(t.length*e);return t.slice(0,n)}function Vw(t){const{type:e}=t;return typeof e!="string"?!1:["linear","log","pow","time"].includes(e)}function Xw(t){const{type:e}=t;return typeof e!="string"?!1:["band","point","ordinal"].includes(e)}function hY(t,e,n){const{type:r,domain:i,range:a,quantitative:o,ordinal:s}=n;return r!==void 0?r:AY(e)?"identity":typeof a=="string"?"linear":(i||a||[]).length>2?Qv(t,s):i!==void 0?Kw([i])?Qv(t,s):Qw(e)?"time":Uw(t,a,o):Kw(e)?Qv(t,s):Qw(e)?"time":Uw(t,a,o)}function pY(t,e,n,r){const{domain:i}=r;if(i!==void 0)return i;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return qw(wY(n,r),r);case"band":case"ordinal":case"point":return Zw(n);case"quantile":return SY(n);case"sequential":return qw(MY(n),r);default:return[]}}function vY(t,e,n,r,i,a,o){const{range:s}=r;if(typeof s=="string")return yY(s);if(s!==void 0)return s;const{rangeMin:c,rangeMax:l}=r;switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":{const u=$w(n,r,i,a,o),[f,d]=EY(e,u);return[c||f,l||d]}case"band":case"point":return[c||(e==="size"?5:0),l||(e==="size"?10:1)];case"ordinal":return $w(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}function gY(t,e,n,r,i){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return xY(i,r);case"band":case"point":return _Y(t,e,i,r);case"sequential":return bY(r);default:return r}}function $w(t,e,n,r,i){const[a]=Hn("palette",i),{category10:o,category20:s}=r,c=oF(t.flat()).length<=o.length?o:s,{palette:l=c,offset:u}=e;if(Array.isArray(l))return l;try{return a({type:l})}catch(f){const d=mY(l,n,u);if(d)return d;throw new Error(`Unknown Component: ${l} `)}}function yY(t){return t.split("-")}function mY(t,e,n=r=>r){if(!t)return null;const r=ao(t),i=Rt[`scheme${r}`],a=Rt[`interpolate${r}`];if(!i&&!a)return null;if(i){if(!i.some(Array.isArray))return i;const o=i[e.length];if(o)return o}return e.map((o,s)=>a(n(s/e.length)))}function bY(t){const{palette:e="ylGnBu",offset:n}=t,r=ao(e),i=Rt[`interpolate${r}`];if(!i)throw new Error(`Unknown palette: ${r}`);return{interpolator:n?a=>i(n(a)):i}}function xY(t,e){const{interpolate:n=_l,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}function _Y(t,e,n,r){if(r.padding!==void 0||r.paddingInner!==void 0||r.paddingOuter!==void 0)return Object.assign(Object.assign({},r),{unknown:NaN});const i=OY(t,e,n),{paddingInner:a=i,paddingOuter:o=i}=r;return Object.assign(Object.assign({},r),{paddingInner:a,paddingOuter:o,padding:i,unknown:NaN})}function OY(t,e,n){return e==="enterDelay"||e==="enterDuration"||e==="size"?0:t==="band"?ZO(n)?0:.1:t==="point"?.5:0}function Qv(t,e){return e||(TY(t)?"point":"ordinal")}function Uw(t,e,n){return n||(t!=="color"||e?"linear":"sequential")}function qw(t,e){if(t.length===0)return t;const{domainMin:n,domainMax:r}=e,[i,a]=t;return[n!=null?n:i,r!=null?r:a]}function wY(t,e){const{zero:n=!1}=e;let r=1/0,i=-1/0;for(const a of t)for(const o of a)Rn(o)&&(r=Math.min(r,+o),i=Math.max(i,+o));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}function Zw(t){return Array.from(new Set(t.flat()))}function SY(t){return Zw(t).sort()}function MY(t){let e=1/0,n=-1/0;for(const r of t)for(const i of r)Rn(i)&&(e=Math.min(e,+i),n=Math.max(n,+i));return e===1/0?[]:[e<0?-n:e,n]}function EY(t,e){return t==="enterDelay"?[0,1e3]:t=="enterDuration"?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:t==="color"?[aF(e),L_(e)]:t==="opacity"?[0,1]:t==="size"?[1,10]:[0,1]}function Kw(t){return Jv(t,e=>{const n=typeof e;return n==="string"||n==="boolean"})}function Qw(t){return Jv(t,e=>e instanceof Date)}function AY(t){return Jv(t,cl)}function Jv(t,e){for(const n of t)if(n.some(e))return!0;return!1}function TY(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")}function PY(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t==="enterDelay"||t==="enterDuration"||t==="updateDelay"||t==="updateDuration"||t==="exitDelay"||t==="exitDuration"}function CY(t){if(!t||!t.type)return!1;if(typeof t.type=="function")return!0;const{type:e,domain:n,range:r,interpolator:i}=t,a=n&&n.length>0,o=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(e)&&a&&o||["sequential"].includes(e)&&a&&(o||i)||["constant","identity"].includes(e)&&o)}const kY={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},RY={threshold:"threshold",quantize:"quantize",quantile:"quantile"},LY={ordinal:"ordinal",band:"band",point:"point"},NY={constant:"constant"};var po=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iu!==null),s=[],c=VY(e,t,n);if(s.push(...c),i){const{props:u}=a("title"),{defaultPosition:f,defaultOrientation:d,defaultOrder:h,defaultSize:p,defaultCrossPadding:v}=u,g=typeof i=="string"?{title:i}:i;s.push(Object.assign({type:"title",position:f,orientation:d,order:h,crossPadding:v[0],defaultSize:p},g))}return zY(o,r).forEach(([u,f])=>{const{props:d}=a(u),{defaultPosition:h,defaultPlane:p="xy",defaultOrientation:v,defaultSize:g,defaultOrder:y,defaultLength:m,defaultPadding:b=[0,0],defaultCrossPadding:_=[0,0]}=d,O=Nt({},...f),{guide:w,field:M}=O,E=Array.isArray(w)?w:[w];for(const A of E){const[P,C]=HY(u,h,v,A,f,o,r);if(!P&&!C)continue;const j=P==="left"||P==="right",N=j?b[1]:b[0],k=j?_[1]:_[0],{size:R,order:D=y,length:F=m,padding:B=N,crossPadding:z=k}=A;s.push(Object.assign(Object.assign({title:M},A),{defaultSize:g,length:F,position:P,plane:p,orientation:C,padding:B,order:D,crossPadding:z,size:R,type:u,scales:f}))}}),s}function Jw(t,e,n,r,i){const[a]=Hn("component",r),{scaleInstances:o,scale:s,bbox:c}=t,l=po(t,["scaleInstances","scale","bbox"]),u={bbox:c,library:r};return a(l)({coordinate:e,library:r,markState:i,scales:o,theme:n,value:u,scale:s})}function jY(t){return t.map(e=>{const n=Nt(e,e.style);return delete n.style,n})}function ept(t){return t.flatMap(e=>e.type=="group"?e.children:e)}function tS(t,e){const n=["left","right","bottom","top"];return Wf(t,({type:a,position:o,group:s})=>n.includes(o)?s===void 0?a.startsWith("legend")?`legend-${o}`:Symbol("independent"):s==="independent"?Symbol("independent"):s:Symbol("independent")).flatMap(([,a])=>{if(a.length===1)return a[0];if(e!==void 0){const u=a.filter(v=>v.length!==void 0).map(v=>v.length),f=Di(u);if(f>e)return a.forEach(v=>v.group=Symbol("independent")),a;const d=e-f,h=a.length-u.length,p=d/h;a.forEach(v=>{v.length===void 0&&(v.length=p)})}const o=Sn(a,u=>u.size),s=Sn(a,u=>u.order),c=Sn(a,u=>u.crossPadding),l=a[0].position;return{type:"group",size:o,order:s,position:l,children:a,crossPadding:c}})}function DY(t,e){const n=["shape","size","color","opacity"],r=(d,h)=>d==="constant"&&h==="size",i=t.filter(({type:d,name:h})=>typeof d=="string"&&n.includes(h)&&!r(d,h)),a=i.filter(({type:d})=>d==="constant"),o=i.filter(({type:d})=>d!=="constant"),c=Wf(o,d=>d.field?d.field:Symbol("independent")).map(([d,h])=>[d,[...h,...a]]).filter(([,d])=>d.some(h=>h.type!=="constant")),l=new Map(c);if(l.size===0)return[];const u=d=>d.sort(([h],[p])=>h.localeCompare(p));return Array.from(l).map(([,d])=>{const p=sF(d).sort((v,g)=>g.length-v.length).map(v=>({combination:v,option:v.map(g=>[g.name,FY(g)])}));for(const{option:v,combination:g}of p)if(!v.every(y=>y[1]==="constant")&&v.every(y=>y[1]==="discrete"||y[1]==="constant"))return["legendCategory",g];for(const[v,g]of lF)for(const{option:y,combination:m}of p)if(g.some(b=>j_(u(b),u(y))))return[v,m];return null}).filter(Rn)}function FY(t){const{type:e}=t;return typeof e!="string"?null:e in kY?"continuous":e in LY?"discrete":e in RY?"distribution":e in NY?"constant":null}function BY(t,e){return t.map(n=>{const{name:r}=n;if(jW(e)||ZO(e)||ac(e)&&(is(e)||Pl(e)))return null;if(r.startsWith("x"))return is(e)?["axisArc",[n]]:Pl(e)?["axisLinear",[n]]:[ac(e)?"axisY":"axisX",[n]];if(r.startsWith("y"))return is(e)?["axisLinear",[n]]:Pl(e)?["axisArc",[n]]:[ac(e)?"axisX":"axisY",[n]];if(r.startsWith("z"))return["axisZ",[n]];if(r.startsWith("position")){if(BW(e))return["axisRadar",[n]];if(!is(e))return["axisY",[n]]}return null}).filter(Rn)}function zY(t,e){const n=t.filter(r=>CY(r));return[...DY(n,e),...BY(n,e)]}function tg(t){const e=Qi(t,"polar");if(e.length){const r=e[e.length-1],{startAngle:i,endAngle:a}=D_(r);return[i,a]}const n=Qi(t,"radial");if(n.length){const r=n[n.length-1],{startAngle:i,endAngle:a}=F_(r);return[i,a]}return[-Math.PI/2,Math.PI/2*3]}function GY(t){const e=/position(\d*)/g.exec(t);return e?+e[1]:null}function WY(t,e,n,r,i){const{name:a}=n[0];if(t==="axisRadar"){const o=r.filter(f=>f.name.startsWith("position")),s=GY(a);if(a===o.slice(-1)[0].name||s===null)return[null,null];const[c,l]=tg(i);return["center",(l-c)/(o.length-1)*s+c]}if(t==="axisY"&&DW(i))return ac(i)?["center","horizontal"]:["center","vertical"];if(t==="axisLinear"){const[o]=tg(i);return["center",o]}return t==="axisArc"?e[0]==="inner"?["inner",null]:["outer",null]:is(i)?["center",null]:Pl(i)?["center",null]:t==="axisX"&&FW(i)||t==="axisX"&&zW(i)?["top",null]:e}function HY(t,e,n,r,i,a,o){const[s]=tg(o),c=[r.position||e,s!=null?s:n];return typeof t=="string"&&t.startsWith("axis")?WY(t,c,i,a,o):typeof t=="string"&&t.startsWith("legend")&&is(o)&&r.position==="center"?["center","vertical"]:c}function YY(t,e,n=[]){return t==="x"?ac(n)?`${e}Y`:`${e}X`:t==="y"?ac(n)?`${e}X`:`${e}Y`:null}function VY(t,e,n){const[,r]=Hn("component",n),{coordinates:i}=t;function a(o,s,c,l){const u=YY(s,o,i);if(!l||!u)return;const{props:f}=r(u),{defaultPosition:d,defaultSize:h,defaultOrder:p,defaultCrossPadding:[v]}=f;return Object.assign(Object.assign({position:d,defaultSize:h,order:p,type:u,crossPadding:v},l),{scales:[c]})}return e.filter(o=>o.slider||o.scrollbar).flatMap(o=>{const{slider:s,scrollbar:c,name:l}=o;return[a("slider",l,o,s),a("scrollbar",l,o,c)]}).filter(o=>!!o)}function eS(t,e,n,r,i,a){const{type:o}=t;if(!["left","right","bottom","top"].includes(r)||typeof o!="string")return;const c=o;return(()=>c.startsWith("axis")?ZY:c.startsWith("group")?XY:c.startsWith("legendContinuous")?KY:c==="legendCategory"?QY:c.startsWith("slider")?qY:c==="title"?UY:c.startsWith("scrollbar")?$Y:()=>{})()(t,e,n,r,i,a)}function XY(t,e,n,r,i,a){const{children:o}=t,s=Sn(o,l=>l.crossPadding);o.forEach(l=>l.crossPadding=s),o.forEach(l=>eS(l,e,n,r,i,a));const c=Sn(o,l=>l.size);t.size=c,o.forEach(l=>l.size=c)}function $Y(t,e,n,r,i,a){const{trackSize:o=6}=Nt({},i.scrollbar,t);t.size=o}function UY(t,e,n,r,i,a){const o=Nt({},i.title,t),{title:s,subtitle:c,spacing:l=0}=o,u=po(o,["title","subtitle","spacing"]);if(s){const f=le(u,"title"),d=Cd(s,f);t.size=d.height}if(c){const f=le(u,"subtitle"),d=Cd(c,f);t.size+=l+d.height}}function qY(t,e,n,r,i,a){const o=()=>{const{slider:u}=i;return Nt({},u,t)},{trackSize:s,handleIconSize:c}=o(),l=Math.max(s,c*2.4);t.size=l}function ZY(t,e,n,r,i,a){t.transform=t.transform||[{type:"hide"}];const o=r==="left"||r==="right",s=nS(t,r,i),{tickLength:c=0,labelSpacing:l=0,titleSpacing:u=0,labelAutoRotate:f}=s,d=po(s,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),h=Ad(t,a),p=Td(d,h),v=c+l;if(p&&p.length){const y=Sn(p,b=>b.width),m=Sn(p,b=>b.height);if(o)t.size=y+v;else{const{tickFilter:b,labelTransform:_}=t;eV(h,p,e,n,b)&&!_&&f!==!1&&f!==null?(t.labelTransform="rotate(90)",t.size=y+v):t.size=m+v}}else t.size=c;const g=Pd(d);g&&(o?t.size+=u+g.width:t.size+=u+g.height)}function KY(t,e,n,r,i,a){const s=(()=>{const{legendContinuous:_}=i;return Nt({},_,t)})(),{labelSpacing:c=0,titleSpacing:l=0}=s,u=po(s,["labelSpacing","titleSpacing"]),f=r==="left"||r==="right",d=le(u,"ribbon"),{size:h}=d,p=le(u,"handleIcon"),{size:v}=p,g=Math.max(h,v*2.4);t.size=g;const y=Ad(t,a),m=Td(u,y);if(m){const _=f?"width":"height",O=Sn(m,w=>w[_]);t.size+=O+c}const b=Pd(u);b&&(f?t.size=Math.max(t.size,b.width):t.size+=l+b.height)}function QY(t,e,n,r,i,a){const s=(()=>{const{legendCategory:k}=i,{title:R}=t,[D,F]=Array.isArray(R)?[R,void 0]:[void 0,R];return Nt({title:D},k,Object.assign(Object.assign({},t),{title:F}))})(),{itemSpacing:c,itemMarkerSize:l,titleSpacing:u,rowPadding:f,colPadding:d,maxCols:h=1/0,maxRows:p=1/0}=s,v=po(s,["itemSpacing","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:g,length:y}=t,m=k=>Math.min(k,p),b=k=>Math.min(k,h),_=r==="left"||r==="right",O=y===void 0?e+(_?0:n[0]+n[1]):y,w=Pd(v),M=Ad(t,a),E=Td(v,M,"itemLabel"),A=Math.max(E[0].height,l)+f,P=(k,R=0)=>l+k+c[0]+R;_?(()=>{let k=-1/0,R=0,D=1,F=0,B=-1/0,z=-1/0;const Y=w?w.height:0,$=O-Y;for(const{width:tt}of E){const it=P(tt);k=Math.max(k,it),R+A>$?(D++,B=Math.max(B,F),z=Math.max(z,R),F=1,R=A):(R+=A,F++)}D<=1&&(B=F,z=R),t.size=k*b(D),t.length=z+Y,Nt(t,{cols:b(D),gridRow:B})})():typeof g=="number"?(()=>{const k=Math.ceil(E.length/g),R=Sn(E,D=>P(D.width))*g;t.size=A*m(k)-f,t.length=Math.min(R,O)})():(()=>{let k=1,R=0,D=-1/0;for(const{width:F}of E){const B=P(F,d);R+B>O?(D=Math.max(D,R),R=B,k++):R+=B}k===1&&(D=R),t.size=A*m(k)-f,t.length=D})(),w&&(_?t.size=Math.max(t.size,w.width):t.size+=u+w.height)}function Ad(t,e){const[n]=Hn("scale",e),{scales:r,tickCount:i,tickMethod:a}=t,o=r.find(s=>s.type!=="constant"&&s.type!=="identity");return i!==void 0&&(o.tickCount=i),a!==void 0&&(o.tickMethod=a),n(o)}function Td(t,e,n="label"){const{labelFormatter:r,tickFilter:i,label:a=!0}=t,o=po(t,["labelFormatter","tickFilter","label"]);if(!a)return null;const s=JY(e,r,i),c=le(o,n),l=s.map((d,h)=>Object.fromEntries(Object.entries(c).map(([p,v])=>[p,typeof v=="function"?v(d,h):v]))),u=s.map((d,h)=>{const p=l[h];return Cd(d,p)});if(!l.some(d=>d.transform)){const d=s.map((h,p)=>p);t.indexBBox=new Map(d.map(h=>[h,[s[h],u[h]]]))}return u}function Pd(t){const e=l=>l===!1||l===null,{title:n}=t,r=po(t,["title"]);if(e(n)||n===void 0)return null;const i=le(r,"title"),{direction:a,transform:o}=i,s=Array.isArray(n)?n.join(","):n;return typeof s!="string"?null:Cd(s,Object.assign(Object.assign({},i),{transform:o||(a==="vertical"?"rotate(-90)":"")}))}function nS(t,e,n){const{title:r}=t,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${tv(e)}`]:s}=n;return Nt({title:i},o,s,Object.assign(Object.assign({},t),{title:a}))}function rS(t,e){const n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function JY(t,e,n){const i=rS(t,n).map(o=>typeof o=="number"?Xf(o):o),a=e?typeof e=="string"?oo(e):e:t.getFormatter?t.getFormatter():o=>`${o}`;return i.map(a)}function tV(t,e){return t.getBandWidth?t.getBandWidth(e)/2:0}function eV(t,e,n,r,i){if(Di(e,h=>h.width)>n)return!0;const o=t.clone();o.update({range:[0,n]});const s=rS(t,i),c=s.map(h=>o.map(h)+tV(o,h)),l=s.map((h,p)=>p),u=-r[0],f=n+r[1],d=(h,p)=>{const{width:v}=p;return[h-v/2,h+v/2]};for(let h=0;hf)return!0;const y=c[h+1];if(y){const[m]=d(y,e[h+1]);if(g>m)return!0}}return!1}function Cd(t,e){const n=nV(t),{filter:r}=e,i=po(e,["filter"]);return n.attr(Object.assign(Object.assign({},i),{visibility:"none"})),n.getBBox()}function nV(t){return t instanceof Vr?t:new Zi({style:{text:`${t}`}})}function Ai(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function fr(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function rV(t){const e=t.find(({type:n})=>n==="axisZ");if(e){const n=t.find(({type:i})=>i==="axisX");n.plane="xy";const r=t.find(({type:i})=>i==="axisY");r.plane="xy",e.plane="yz",e.origin=[n.bbox.x,n.bbox.y,0],e.eulerAngles=[0,-90,0],e.bbox.x=n.bbox.x,e.bbox.y=n.bbox.y,t.push(Object.assign(Object.assign({},n),{plane:"xz",showLabel:!1,showTitle:!1,origin:[n.bbox.x,n.bbox.y,0],eulerAngles:[-90,0,0]})),t.push(Object.assign(Object.assign({},r),{plane:"yz",showLabel:!1,showTitle:!1,origin:[r.bbox.x+r.bbox.width,r.bbox.y,0],eulerAngles:[0,-90,0]})),t.push(Object.assign(Object.assign({},e),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]}))}}function iV(t,e,n,r){var i,a;const{width:o,height:s,depth:c,x:l=0,y:u=0,z:f=0,inset:d=(i=n.inset)!==null&&i!==void 0?i:0,insetLeft:h=d,insetTop:p=d,insetBottom:v=d,insetRight:g=d,margin:y=(a=n.margin)!==null&&a!==void 0?a:0,marginLeft:m=y,marginBottom:b=y,marginTop:_=y,marginRight:O=y,padding:w=n.padding,paddingBottom:M=w,paddingLeft:E=w,paddingRight:A=w,paddingTop:P=w}=oV(t,e,n,r),C=1/4,j=(ce,Oe,He,Fe,Ke)=>{const{marks:dn}=e;if(dn.length===0)return[Fe,Ke];if(ce-Fe-Ke-ce*C>0)return[Fe,Ke];const yr=ce*(1-C);return[Oe==="auto"?yr*Fe/(Fe+Ke):Fe,He==="auto"?yr*Ke/(Fe+Ke):Ke]},N=ce=>ce==="auto"?20:ce!=null?ce:20,k=N(P),R=N(M),D=iS(t,s-k-R,[k+_,R+b],["left","right"],e,n,r),{paddingLeft:F,paddingRight:B}=D,z=o-m-O,[Y,$]=j(z,E,A,F,B),tt=z-Y-$,it=iS(t,tt,[Y+m,$+O],["bottom","top"],e,n,r),{paddingTop:St,paddingBottom:Ft}=it,Xt=s-b-_,[Pt,Ct]=j(Xt,M,P,Ft,St),se=Xt-Pt-Ct;return{width:o,height:s,depth:c,insetLeft:h,insetTop:p,insetBottom:v,insetRight:g,innerWidth:tt,innerHeight:se,paddingLeft:Y,paddingRight:$,paddingTop:Ct,paddingBottom:Pt,marginLeft:m,marginBottom:b,marginTop:_,marginRight:O,x:l,y:u,z:f}}function aV(t){const{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:s=r,margin:c=16,marginLeft:l=c,marginRight:u=c,marginTop:f=c,marginBottom:d=c,inset:h=0,insetLeft:p=h,insetRight:v=h,insetTop:g=h,insetBottom:y=h}=t,m=O=>O==="auto"?20:O,b=n-m(i)-m(a)-l-u-p-v,_=e-m(o)-m(s)-f-d-g-y;return{width:b,height:_}}function oV(t,e,n,r){const{coordinates:i}=e;if(!is(i)&&!Pl(i))return e;const a=t.filter(y=>typeof y.type=="string"&&y.type.startsWith("axis"));if(a.length===0)return e;const o=a.map(y=>{const m=y.type==="axisArc"?"arc":"linear";return nS(y,m,n)}),s=Sn(o,y=>{var m;return(m=y.labelSpacing)!==null&&m!==void 0?m:0}),c=a.flatMap((y,m)=>{const b=o[m],_=Ad(y,r);return Td(b,_)}).filter(Rn),l=Sn(c,y=>y.height)+s,u=a.flatMap((y,m)=>{const b=o[m];return Pd(b)}).filter(y=>y!==null),f=u.length===0?0:Sn(u,y=>y.height),{inset:d=l,insetLeft:h=d,insetBottom:p=d,insetTop:v=d+f,insetRight:g=d}=e;return Object.assign(Object.assign({},e),{insetLeft:h,insetBottom:p,insetTop:v,insetRight:g})}function iS(t,e,n,r,i,a,o){const s=Zn(t,p=>p.position),{padding:c=a.padding,paddingLeft:l=c,paddingRight:u=c,paddingBottom:f=c,paddingTop:d=c}=i,h={paddingBottom:f,paddingLeft:l,paddingTop:d,paddingRight:u};for(const p of r){const v=`padding${tv(PO(p))}`,g=s.get(p)||[],y=h[v],m=A=>{A.size===void 0&&(A.size=A.defaultSize)},b=A=>{A.type==="group"?(A.children.forEach(m),A.size=Sn(A.children,P=>P.size)):A.size=A.defaultSize},_=A=>{A.size||(y!=="auto"?b(A):(eS(A,e,n,p,a,o),m(A)))},O=A=>{A.type.startsWith("axis")&&A.labelAutoHide===void 0&&(A.labelAutoHide=!0)},w=p==="bottom"||p==="top",M=Ai(g,A=>A.order),E=g.filter(A=>A.type.startsWith("axis")&&A.order==M);if(E.length&&(E[0].crossPadding=0),typeof y=="number")g.forEach(m),g.forEach(O);else if(g.length===0)h[v]=0;else{const A=w?e+n[0]+n[1]:e,P=tS(g,A);P.forEach(_);const C=P.reduce((j,{size:N,crossPadding:k=12})=>j+N+k,0);h[v]=C}}return h}function sV(t,e,n){const r=Zn(t,w=>`${w.plane||"xy"}-${w.position}`),{paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:c,marginTop:l,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:v,insetRight:g,insetTop:y,height:m,width:b,depth:_}=n,O={xy:eg({width:b,height:m,paddingLeft:i,paddingRight:a,paddingTop:o,paddingBottom:s,marginLeft:c,marginTop:l,marginBottom:u,marginRight:f,innerHeight:d,innerWidth:h,insetBottom:p,insetLeft:v,insetRight:g,insetTop:y}),yz:eg({width:_,height:m,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:_,innerHeight:m,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:eg({width:b,height:_,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:_,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(const[w,M]of r.entries()){const[E,A]=w.split("-"),P=O[E][A],[C,j]=N_(M,N=>typeof N.type!="string"?!1:!!(A==="center"||N.type.startsWith("axis")&&["inner","outer"].includes(A)));C.length&&cV(C,e,P,A),j.length&&yV(M,e,P)}}function eg({width:t,height:e,paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:a,marginLeft:o,marginTop:s,marginBottom:c,marginRight:l,innerHeight:u,innerWidth:f,insetBottom:d,insetLeft:h,insetRight:p,insetTop:v}){const g=n+o,y=i+s,m=r+l,b=a+c,_=t-o-l,O=[g+h,y+v,f-h-p,u-v-d,"center",null,null];return{top:[g,0,f,y,"vertical",!0,fr,o,_],right:[t-m,y,m,u,"horizontal",!1,fr],bottom:[g,e-b,f,b,"vertical",!1,fr,o,_],left:[0,y,g,u,"horizontal",!0,fr],"top-left":[g,0,f,y,"vertical",!0,fr],"top-right":[g,0,f,y,"vertical",!0,fr],"bottom-left":[g,e-b,f,b,"vertical",!1,fr],"bottom-right":[g,e-b,f,b,"vertical",!1,fr],center:O,inner:O,outer:O}}function cV(t,e,n,r){const[i,a]=N_(t,o=>!!(typeof o.type=="string"&&o.type.startsWith("axis")));lV(i,e,n,r),mV(a,e,n)}function lV(t,e,n,r){r==="center"?uF(e)?gV(t,e,n,r):Nn(e)?dV(t,e,n):dl(e)&&hV(t,e,n,t[0].orientation):r==="inner"?uV(t,e,n):r==="outer"&&fV(t,e,n)}function uV(t,e,n){const[r,i,,a]=n,[o,s]=e.getCenter(),[c]=$f(e),l=a/2,u=c*l,f=o-u,d=s-u;for(let h=0;hu%2===0).map(l=>l+r);for(let l=0;lu%2===1).map(l=>l+i);for(let l=0;ll==null?void 0:l(A.order,P.order));const _=A=>A==="title"||A==="group"||A.startsWith("legend"),O=(A,P,C)=>C===void 0?P:_(A)?C:P,w=(A,P,C)=>C===void 0?P:_(A)?C:P,M=c?h+y:h;for(let A=0,P=M;AA.type==="group");for(const A of E){const{bbox:P,children:C}=A,j=P[m],N=j/C.length,k=C.reduce((z,Y)=>{var $;const tt=($=Y.layout)===null||$===void 0?void 0:$.justifyContent;return tt||z},"flex-start"),R=C.map((z,Y)=>{const{length:$=N,padding:tt=0}=z;return $+(Y===C.length-1?0:tt)}),D=Di(R),F=j-D,B=k==="flex-start"?0:k==="center"?F/2:F;for(let z=0,Y=P[p]+B;zCV(o)?o:{type:kV(i,o),value:o});return[t,Object.assign(Object.assign({},e),{encode:a})]}function wV(t,e,n){const{encode:r}=e;if(!r)return[t,e];const i=so(r,(a,o)=>{const{type:s}=a;return s!=="constant"||PY(o)?a:Object.assign(Object.assign({},a),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function SV(t,e,n){const{encode:r,data:i}=e;if(!r)return[t,e];const{library:a}=n,o=jV(a),s=so(r,c=>o(i,c));return[t,Object.assign(Object.assign({},e),{encode:s})]}function MV(t,e,n){const{tooltip:r={}}=e;return ka(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:cl(r)&&aS(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function EV(t,e,n){const{data:r,encode:i,tooltip:a={}}=e;if(ka(a))return[t,e];const o=f=>{if(!f)return f;if(typeof f=="string")return t.map(d=>({name:f,value:r[d][f]}));if(cl(f)){const{field:d,channel:h,color:p,name:v=d,valueFormatter:g=w=>w}=f,y=typeof g=="string"?oo(g):g,m=h&&i[h],b=m&&i[h].field,_=v||b||h,O=[];for(const w of t){const M=d?r[w][d]:m?i[h].value[w]:null;O[w]={name:_,color:p,value:y(M)}}return O}if(typeof f=="function"){const d=[];for(const h of t){const p=f(r[h],h,r,i);cl(p)?d[h]=p:d[h]={value:p}}return d}return f},{title:s,items:c=[]}=a,l=uc(a,["title","items"]),u=Object.assign({title:o(s),items:Array.isArray(c)?c.map(o):[]},l);return[t,Object.assign(Object.assign({},e),{tooltip:u})]}function AV(t,e,n){const{encode:r}=e,i=uc(e,["encode"]);if(!r)return[t,e];const a=Object.entries(r),o=a.filter(([,c])=>{const{value:l}=c;return Array.isArray(l[0])}).flatMap(([c,l])=>{const u=[[c,new Array(t.length).fill(void 0)]],{value:f}=l,d=uc(l,["value"]);for(let h=0;h[h,Object.assign({type:"column",value:p},d)])}),s=Object.fromEntries([...a,...o]);return[t,Object.assign(Object.assign({},i),{encode:s})]}function TV(t,e,n){const{axis:r={},legend:i={},slider:a={},scrollbar:o={}}=e,s=(l,u)=>{if(typeof l=="boolean")return l?{}:null;const f=l[u];return f===void 0||f?f:null},c=typeof r=="object"?Array.from(new Set(["x","y",...Object.keys(r)])):["x","y"];return Nt(e,{scale:Object.assign(Object.assign({},Object.fromEntries(c.map(l=>{const u=s(o,l);return[l,Object.assign({guide:s(r,l),slider:s(a,l),scrollbar:u},u&&{ratio:u.ratio===void 0?.5:u.ratio})]}))),{color:{guide:s(i,"color")},size:{guide:s(i,"size")},shape:{guide:s(i,"shape")},opacity:{guide:s(i,"opacity")}})}),[t,e]}function PV(t,e,n){const{animate:r}=e;return r||r===void 0?[t,e]:(Nt(e,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[t,e])}function CV(t){if(typeof t!="object"||t instanceof Date||t===null)return!1;const{type:e}=t;return Rn(e)}function kV(t,e){return typeof e=="function"?"transform":typeof e=="string"&&RV(t,e)?"field":"constant"}function RV(t,e){return Array.isArray(t)?t.some(n=>n[e]!==void 0):!1}function LV(t){if((0,xr.Z)(t))return{type:"inline",value:t};if(!t)return{type:"inline",value:null};if(Array.isArray(t))return{type:"inline",value:t};const{type:e="inline"}=t,n=uc(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}var sS=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},NV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iRn(h)),h=>h.map(([p,v])=>Object.assign({name:p},v)),([h])=>{var p;const v=(p=/([^\d]+)\d*$/.exec(h))===null||p===void 0?void 0:p[1],g=u.find(y=>y.name===v);return g!=null&&g.independent?h:v}),d=u.filter(h=>{const{name:p,required:v}=h;if(f.find(([g])=>g===p))return!0;if(v)throw new Error(`Missing encoding for channel: ${p}.`);return!1}).flatMap(h=>{const{name:p,scale:v,scaleKey:g,range:y,quantitative:m,ordinal:b}=h;return f.filter(([O])=>O.startsWith(p)).map(([O,w],M)=>{const E=w.some(F=>F.visual),A=w.some(F=>F.constant),P=s[O]||{},{independent:C=!1,key:j=g||O,type:N=A?"constant":E?"identity":v}=P,k=NV(P,["independent","key","type"]),R=N==="constant",D=R?void 0:y;return{name:O,values:w,scaleKey:C||R?Symbol("independent"):j,scale:Object.assign(Object.assign({type:N,range:D},k),{quantitative:m,ordinal:b})}})});return[a,Object.assign(Object.assign({},e),{index:i,channels:d,tooltip:l})]})}function jV(t){const[e]=Hn("encode",t);return(n,r)=>r===void 0||n===void 0?null:Object.assign(Object.assign({},r),{type:"column",value:e(r)(n),field:FV(r)})}function DV(t,e,n){return sS(this,void 0,void 0,function*(){const{library:r}=n,[i]=Hn("transform",r),{preInference:a=[],postInference:o=[]}=e,{transform:s=[]}=t,c=[xV,oS,_V,OV,wV,SV,AV,PV,TV,MV,...a.map(i),...s.map(i),...o.map(i),EV];let l=[],u=t;for(const f of c)[l,u]=yield f(l,u,n);return[l,u]})}function FV(t){const{type:e,value:n}=t;return e==="field"&&typeof n=="string"?n:null}var Da=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},vo=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var R;return(R=/mark\.(.*)/.exec(k))===null||R===void 0?void 0:R[1]}).filter(Rn)),l=new Set(Object.keys(n).map(k=>{var R;return(R=/component\.(.*)/.exec(k))===null||R===void 0?void 0:R[1]}).filter(Rn)),u=k=>{const{type:R}=k;if(typeof R=="function"){const{props:D={}}=R,{composite:F=!0}=D;if(F)return"mark"}return typeof R!="string"?R:c.has(R)||l.has(R)?"mark":R},f=k=>u(k)==="mark",d=k=>u(k)==="standardView",h=k=>{const{type:R}=k;return typeof R!="string"?!1:!!l.has(R)},p=k=>{if(d(k))return[k];const R=u(k);return o({type:R,static:h(k)})(k)},v=[],g=new Map,y=new Map,m=[t],b=[];for(;m.length;){const k=m.shift();if(d(k)){const R=y.get(k),[D,F]=R?fS(R,k,n):yield lS(k,n);g.set(D,k),v.push(D);const B=F.flatMap(p).map(z=>qO(z,n));if(m.push(...B),B.every(d)){const z=yield Promise.all(B.map(Y=>uS(Y,n)));cY(z);for(let Y=0;Yk.key).join(k=>k.append("g").attr("className",X0).attr("id",R=>R.key).call(cS).each(function(R,D,F){ag(R,je(F),w,n,r),_.set(R,F)}),k=>k.call(cS).each(function(R,D,F){ag(R,je(F),w,n,r),O.set(R,F)}),k=>k.each(function(R,D,F){const B=F.nameInteraction.values();for(const z of B)z.destroy()}).remove());const M=k=>Array.from(k.entries()).map(([R,D])=>{const F=new Map,B=($,tt=it=>it)=>F.set($,tt),z=g.get(R),Y=zV(je(D),z,n,r);return{view:R,container:D,options:z,setState:B,update:$=>Da(this,void 0,void 0,function*(){const it=J0(Array.from(F.values()))(z);return yield Y(it,$)})}}),E=M(_);for(const k of E){const{options:R}=k,D=new Map;k.container.nameInteraction=D;for(const F of kd(R)){const[B,z]=F;if(z){const $=ig(k.view,B,z,s)(k,E,r.emitter);D.set(B,{destroy:$})}}}const A=M(O);for(const k of A){const{options:R,container:D}=k,F=D.nameInteraction;for(const B of kd(R)){const[z,Y]=B,$=F.get(z);if($&&((i=$.destroy)===null||i===void 0||i.call($)),Y){const it=ig(k.view,z,Y,s)(k,A,r.emitter);F.set(z,{destroy:it})}}}const{width:P,height:C}=t,j=[];for(const k of b){const R=new Promise(D=>Da(this,void 0,void 0,function*(){for(const F of k){const B=Object.assign({width:P,height:C},F);yield rg(B,e,n,r)}D()}));j.push(R)}r.views=v,(a=r.animations)===null||a===void 0||a.forEach(k=>k==null?void 0:k.cancel()),r.animations=w,r.emitter.emit(wn.AFTER_PAINT);const N=w.filter(Rn).map(eX).map(k=>k.finished);return Promise.all([...N,...j])})}function cS(t){t.style("transform",e=>`translate(${e.layout.x}, ${e.layout.y})`)}function BV(t){const[,e]=Hn("interaction",t);return n=>{const[r,i]=n;try{return[r,e(r)]}catch(a){return[r,i.type]}}}function zV(t,e,n,r){const i=BV(n),a=c=>c[1]&&c[1].props&&c[1].props.reapplyWhenUpdate,s=kd(e).map(i).filter(a).map(c=>c[0]);return(c,l)=>Da(this,void 0,void 0,function*(){const u=[],[f,d]=yield lS(c,n);ag(f,t,u,n,r);for(const h of s.filter(p=>p!==l))GV(h,t,c,f,n,r);for(const h of d)rg(h,t,n,r);return{options:c,view:f}})}function GV(t,e,n,r,i,a){var o;const[s]=Hn("interaction",i),l=e.node().nameInteraction,u=kd(n).find(([v])=>v===t),f=l.get(t);if(!f||((o=f.destroy)===null||o===void 0||o.call(f),!u[1]))return;const d=ig(r,t,u[1],s),h={options:n,view:r,container:e.node(),update:v=>Promise.resolve(v)},p=d(h,[],a.emitter);l.set(t,{destroy:p})}function lS(t,e){return Da(this,void 0,void 0,function*(){const n=yield HV(t,e),r=WV(n);t.interaction=r.interaction,t.coordinate=r.coordinate,t.marks=[...r.marks,...r.components];const i=qO(r,e),a=yield uS(i,e);return fS(a,i,e)})}function WV(t){const{coordinate:e={},interaction:n={},style:r={},marks:i}=t,a=vo(t,["coordinate","interaction","style","marks"]),o=i.map(d=>d.coordinate||{}),s=i.map(d=>d.interaction||{}),c=i.map(d=>d.viewStyle||{}),l=[...o,e].reduceRight((d,h)=>Nt(d,h),{}),u=[n,...s].reduce((d,h)=>Nt(d,h),{}),f=[...c,r].reduce((d,h)=>Nt(d,h),{});return Object.assign(Object.assign({},a),{marks:i,coordinate:l,interaction:u,style:f})}function HV(t,e){return Da(this,void 0,void 0,function*(){const[n,r]=Hn("mark",e),i=new Set(Object.keys(e).map(d=>{var h;return(h=/component\.(.*)/.exec(d))===null||h===void 0?void 0:h[1]}).filter(Rn)),{marks:a}=t,o=[],s=[],c=[...a],{width:l,height:u}=aV(t),f={options:t,width:l,height:u};for(;c.length;){const[d]=c.splice(0,1),h=yield vS(d,e),{type:p=Vs("G2Mark type is required."),key:v}=h;if(i.has(p))s.push(h);else{const{props:g={}}=r(p),{composite:y=!0}=g;if(!y)o.push(h);else{const{data:m}=h,b=Object.assign(Object.assign({},h),{data:m&&(Array.isArray(m)?m:m.value)}),_=yield n(b,f),O=Array.isArray(_)?_:[_];c.unshift(...O.map((w,M)=>Object.assign(Object.assign({},w),{key:`${v}-${M}`})))}}}return Object.assign(Object.assign({},t),{marks:o,components:s})})}function uS(t,e){return Da(this,void 0,void 0,function*(){const[n]=Hn("theme",e),[,r]=Hn("mark",e),{theme:i,marks:a,coordinates:o=[]}=t,s=n(pS(i)),c=new Map;for(const u of a){const{type:f}=u,{props:d={}}=r(f),h=yield IV(u,d,e);if(h){const[p,v]=h;c.set(p,v)}}const l=Zn(Array.from(c.values()).flatMap(u=>u.channels),({scaleKey:u})=>u);for(const u of l.values()){const f=u.reduce((b,{scale:_})=>Nt(b,_),{}),{scaleKey:d}=u[0],{values:h}=u[0],p=Array.from(new Set(h.map(b=>b.field).filter(Rn))),v=Nt({guide:{title:p.length===0?void 0:p},field:p[0]},f),{name:g}=u[0],y=u.flatMap(({values:b})=>b.map(_=>_.value)),m=Object.assign(Object.assign({},iY(g,y,v,o,s,e)),{key:d});u.forEach(b=>b.scale=m)}return c})}function ig(t,e,n,r){const i=t.theme,a=typeof e=="string"?i[e]||{}:{};return r(Nt(a,Object.assign({type:e},n)))}function fS(t,e,n){const[r]=Hn("mark",n),[i]=Hn("theme",n),[a]=Hn("labelTransform",n),{key:o,frame:s=!1,theme:c,clip:l,style:u={},labelTransform:f=[]}=e,d=i(pS(c)),h=Array.from(t.values()),p=oY(h,e),v=jY(IY(aX(Array.from(p),h,t),e,n)),g=iV(v,e,d,n),y=IW(g,e,n),m=s?Nt({mainLineWidth:1,mainStroke:"#000"},u):u;sV(tS(v),y,g),rV(v);const b={};for(const w of v){const{scales:M=[]}=w,E=[];for(const A of M){const{name:P}=A,C=Hw(A,n);E.push(C),Ww(b,{[P]:C})}w.scaleInstances=E}const _=[];for(const[w,M]of t.entries()){const{children:E,dataDomain:A,modifier:P,key:C}=w,{index:j,channels:N,tooltip:k}=M,R=Object.fromEntries(N.map(({name:Ct,scale:se})=>[Ct,se])),D=so(R,Ct=>Hw(Ct,n));Ww(b,D);const F=aY(N,D),B=r(w),[z,Y,$]=XV(B(j,D,F,y)),tt=A||z.length,it=P?P(Y,tt,g):[],St=Ct=>{var se,ce;return(ce=(se=k.title)===null||se===void 0?void 0:se[Ct])===null||ce===void 0?void 0:ce.value},Ft=Ct=>k.items.map(se=>se[Ct]),Xt=z.map((Ct,se)=>{const ce=Object.assign({points:Y[se],transform:it[se],index:Ct,markKey:C,viewKey:o},k&&{title:St(Ct),items:Ft(Ct)});for(const[Oe,He]of Object.entries(F))ce[Oe]=He[Ct],$&&(ce[`series${ao(Oe)}`]=$[se].map(Fe=>He[Fe]));return $&&(ce.seriesIndex=$[se]),$&&k&&(ce.seriesItems=$[se].map(Oe=>Ft(Oe)),ce.seriesTitle=$[se].map(Oe=>St(Oe))),ce});M.data=Xt,M.index=z;const Pt=E==null?void 0:E(Xt,D,g);_.push(...Pt||[])}return[{layout:g,theme:d,coordinate:y,markState:t,key:o,clip:l,scale:b,style:m,components:v,labelTransform:J0(f.map(a))},_]}function ag(t,e,n,r,i){return Da(this,void 0,void 0,function*(){const{components:a,theme:o,layout:s,markState:c,coordinate:l,key:u,style:f,clip:d,scale:h}=t,{x:p,y:v,width:g,height:y}=s,m=vo(s,["x","y","width","height"]),b=["view","plot","main","content"],_=b.map((B,z)=>z),O=["a","margin","padding","inset"],w=b.map(B=>S_(Object.assign({},o.view,f),B)),M=O.map(B=>le(m,B)),E=B=>B.style("x",z=>N[z].x).style("y",z=>N[z].y).style("width",z=>N[z].width).style("height",z=>N[z].height).each(function(z,Y,$){oX(je($),w[z])});let A=0,P=0,C=g,j=y;const N=_.map(B=>{const z=M[B],{left:Y=0,top:$=0,bottom:tt=0,right:it=0}=z;return A+=Y,P+=$,C-=Y+it,j-=$+tt,{x:A,y:P,width:C,height:j}});e.selectAll(ya(s_)).data(_.filter(B=>Rn(w[B])),B=>b[B]).join(B=>B.append("rect").attr("className",s_).style("zIndex",-2).call(E),B=>B.call(E),B=>B.remove());const k=ZV(c),R=k?{duration:k[1]}:!1;for(const[,B]of Wf(a,z=>`${z.type}-${z.position}`))B.forEach((z,Y)=>z.index=Y);const D=e.selectAll(ya(o_)).data(a,B=>`${B.type}-${B.position}-${B.index}`).join(B=>B.append("g").style("zIndex",({zIndex:z})=>z||-1).attr("className",o_).append(z=>Jw(Nt({animate:R,scale:h},z),l,o,r,c)),B=>B.transition(function(z,Y,$){const{preserve:tt=!1}=z;if(tt)return;const it=Jw(Nt({animate:R,scale:h},z),l,o,r,c),{attributes:St}=it,[Ft]=$.childNodes;return Ft.update(St)})).transitions();n.push(...D.flat().filter(Rn));const F=e.selectAll(ya(Ff)).data([s],()=>u).join(B=>B.append("rect").style("zIndex",0).style("fill","transparent").attr("className",Ff).call(gS).call(mS,Array.from(c.keys())).call(bS,d),B=>B.call(mS,Array.from(c.keys())).call(z=>k?iX(z,k):gS(z)).call(bS,d)).transitions();n.push(...F.flat());for(const[B,z]of c.entries()){const{data:Y}=z,{key:$,class:tt,type:it}=B,St=e.select(`#${$}`),Ft=JV(B,z,t,r,i),Xt=tX(B,z,t,r),Pt=nX(B,z,t,r),Ct=rX(B,z,t,r),se=KV(e,St,tt,"element"),ce=St.selectAll(ya(Ca)).selectFacetAll(se).data(Y,Oe=>Oe.key,Oe=>Oe.groupKey).join(Oe=>Oe.append(Ft).attr("className",Ca).attr("markType",it).transition(function(He,Fe,Ke){return Xt(He,[Ke])}),Oe=>Oe.call(He=>{const Fe=He.parent(),Ke=V7(dn=>{const[xn,Yn]=dn.getBounds().min;return[xn,Yn]});He.transition(function(dn,xn,Yn){QV(Yn,Fe,Ke);const yr=Ft(dn,xn),xi=Pt(dn,[Yn],[yr]);return xi!==null||(Yn.nodeName===yr.nodeName&&yr.nodeName!=="g"?ev(Yn,yr):(Yn.parentNode.replaceChild(yr,Yn),yr.className=Ca,yr.markType=it,yr.__data__=Yn.__data__)),xi}).attr("markType",it).attr("className",Ca)}),Oe=>Oe.each(function(He,Fe,Ke){Ke.__removed__=!0}).transition(function(He,Fe,Ke){return Ct(He,[Ke])}).remove(),Oe=>Oe.append(Ft).attr("className",Ca).attr("markType",it).transition(function(He,Fe,Ke){const{__fromElements__:dn}=Ke,xn=Pt(He,dn,[Ke]);return new _r(dn,null,Ke.parentNode).transition(xn).remove(),xn}),Oe=>Oe.transition(function(He,Fe,Ke){const xn=new _r([],Ke.__toData__,Ke.parentNode).append(Ft).attr("className",Ca).attr("markType",it).nodes();return Pt(He,[Ke],xn)}).remove()).transitions();n.push(...ce.flat())}YV(t,e,n,r,i)})}function YV(t,e,n,r,i){const[a]=Hn("labelTransform",r),{markState:o,labelTransform:s}=t,c=e.select(ya(V0)).node(),l=new Map,u=new Map,f=Array.from(o.entries()).flatMap(([v,g])=>{const{labels:y=[],key:m}=v,b=qV(v,g,t,r,i),_=e.select(`#${m}`).selectAll(ya(Ca)).nodes().filter(O=>!O.__removed__);return y.flatMap((O,w)=>{const{transform:M=[]}=O,E=vo(O,["transform"]);return _.flatMap(A=>{const P=VV(E,w,A);return P.forEach(C=>{l.set(C,b),u.set(C,O)}),P})})}),d=je(c).selectAll(ya($0)).data(f,v=>v.key).join(v=>v.append(g=>l.get(g)(g)).attr("className",$0),v=>v.each(function(g,y,m){const _=l.get(g)(g);ev(m,_)}),v=>v.remove()).nodes(),h=Zn(d,v=>u.get(v.__data__)),{coordinate:p}=t;for(const[v,g]of h){const{transform:y=[]}=v;J0(y.map(a))(g,p)}s&&s(d,p)}function VV(t,e,n){const{seriesIndex:r,seriesKey:i,points:a,key:o,index:s}=n.__data__,c=UV(n);if(!r)return[Object.assign(Object.assign({},t),{key:`${o}-${e}`,bounds:c,index:s,points:a,dependentElement:n})];const l=$V(t),u=r.map((f,d)=>Object.assign(Object.assign({},t),{key:`${i[d]}-${e}`,bounds:[a[d]],index:f,points:a,dependentElement:n}));return l?l(u):u}function XV([t,e,n]){if(n)return[t,e,n];const r=[],i=[];for(let a=0;aRn(c)&&Rn(l))&&(r.push(o),i.push(s))}return[r,i]}function $V(t){const{selector:e}=t;if(!e)return null;if(typeof e=="function")return e;if(e==="first")return n=>[n[0]];if(e==="last")return n=>[n[n.length-1]];throw new Error(`Unknown selector: ${e}`)}function UV(t){const e=t.cloneNode(),n=t.getAnimations();e.style.visibility="hidden",n.forEach(o=>{const s=o.effect.getKeyframes();e.attr(s[s.length-1])}),t.parentNode.appendChild(e);const r=e.getLocalBounds();e.destroy();const{min:i,max:a}=r;return[i,a]}function qV(t,e,n,r,i){const[a]=Hn("shape",r),{data:o}=t,{data:s,defaultLabelShape:c}=e,l=s.map(h=>h.points),{theme:u,coordinate:f}=n,d=Object.assign(Object.assign({},i),{document:$O(i),theme:u,coordinate:f});return h=>{const{index:p,points:v}=h,g=o[p],{formatter:y=R=>`${R}`,transform:m,style:b,render:_}=h,O=vo(h,["formatter","transform","style","render"]),w=so(Object.assign(Object.assign({},O),b),R=>dS(R,g,p,o)),{shape:M=c,text:E}=w,A=vo(w,["shape","text"]),P=typeof y=="string"?oo(y):y,C=Object.assign(Object.assign({},A),{text:P(E,g,p,o),datum:g}),j=Object.assign({type:`label.${M}`,render:_},A),N=a(j,d),k=hS(u,"label",M,"label");return N(v,C,k,l)}}function dS(t,e,n,r){return typeof t=="function"?t(e,n,r):typeof t!="string"?t:e[t]!==void 0?e[t]:t}function ZV(t){let e=-1/0,n=1/0;for(const[r,i]of t){const{animate:a={}}=r,{data:o}=i,{enter:s={},update:c={},exit:l={}}=a,{type:u,duration:f=300,delay:d=0}=c,{type:h,duration:p=300,delay:v=0}=s,{type:g,duration:y=300,delay:m=0}=l;for(const b of o){const{updateType:_=u,updateDuration:O=f,updateDelay:w=d,enterType:M=h,enterDuration:E=p,enterDelay:A=v,exitDuration:P=y,exitDelay:C=m,exitType:j=g}=b;(_===void 0||_)&&(e=Math.max(e,O+w),n=Math.min(n,w)),(j===void 0||j)&&(e=Math.max(e,P+C),n=Math.min(n,C)),(M===void 0||M)&&(e=Math.max(e,E+A),n=Math.min(n,A))}}return e===-1/0?null:[n,e-n]}function KV(t,e,n,r){return t.node().parentElement.findAll(a=>a.style.facet!==void 0&&a.style.facet===n&&a!==e.node()).flatMap(a=>a.getElementsByClassName(r))}function QV(t,e,n){if(!t.__facet__)return;const r=t.parentNode.parentNode,i=e.parentNode,[a,o]=n(r),[s,c]=n(i),l=`translate(${a-s}, ${o-c})`;X7(t,l),e.append(t)}function JV(t,e,n,r,i){const[a]=Hn("shape",r),{data:o}=t,{defaultShape:s,data:c,shape:l}=e,u=c.map(g=>g.points),{theme:f,coordinate:d}=n,{type:h,style:p={}}=t,v=Object.assign(Object.assign({},i),{document:$O(i),coordinate:d,theme:f});return g=>{const{shape:y=s}=p,{shape:m=y,points:b,seriesIndex:_,index:O}=g,w=vo(g,["shape","points","seriesIndex","index"]),M=Object.assign(Object.assign({},w),{index:O}),E=_?_.map(N=>o[N]):o[O],A=_||O,P=so(p,N=>dS(N,E,A,o)),C=l[m]?l[m](P,v):a(Object.assign(Object.assign({},P),{type:yS(t,m)}),v),j=hS(f,h,m,s);return C(b,M,j,u)}}function hS(t,e,n,r){if(typeof e!="string")return;const{color:i}=t,a=t[e]||{},o=a[n]||a[r];return Object.assign({color:i},o)}function og(t,e,n,r,i){var a,o;const[,s]=Hn("shape",i),[c]=Hn("animation",i),{defaultShape:l,shape:u}=n,{theme:f,coordinate:d}=r,p=`default${ao(t)}Animation`,{[p]:v}=((a=u[l])===null||a===void 0?void 0:a.props)||s(yS(e,l)).props,{[t]:g={}}=f,y=((o=e.animate)===null||o===void 0?void 0:o[t])||{},m={coordinate:d};return(b,_,O)=>{const{[`${t}Type`]:w,[`${t}Delay`]:M,[`${t}Duration`]:E,[`${t}Easing`]:A}=b,P=Object.assign({type:w||v},y);if(!P.type)return null;const N=c(P,m)(_,O,Nt(g,{delay:M,duration:E,easing:A}));return Array.isArray(N)?N:[N]}}function tX(t,e,n,r){return og("enter",t,e,n,r)}function eX(t){return t.finished.then(()=>{t.cancel()}),t}function nX(t,e,n,r){return og("update",t,e,n,r)}function rX(t,e,n,r){return og("exit",t,e,n,r)}function pS(t={}){if(typeof t=="string")return{type:t};const{type:e="light"}=t,n=vo(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}function kd(t){const e={event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},{interaction:n={}}=t;return Object.entries(Nt(e,n)).reverse()}function vS(t,e){return Da(this,void 0,void 0,function*(){const n={library:e},{data:r}=t,i=vo(t,["data"]);if(r==null)return t;const[,{data:a}]=yield oS([],{data:r},n);return Object.assign({data:a},i)})}function gS(t){t.style("x",e=>e.paddingLeft+e.marginLeft).style("y",e=>e.paddingTop+e.marginTop).style("width",e=>e.innerWidth).style("height",e=>e.innerHeight)}function iX(t,e){const[n,r]=e;t.transition(function(i,a,o){const{x:s,y:c,width:l,height:u}=o.style,{paddingLeft:f,paddingTop:d,innerWidth:h,innerHeight:p,marginLeft:v,marginTop:g}=i,y=[{x:s,y:c,width:l,height:u},{x:f+v,y:d+g,width:h,height:p}];return o.animate(y,{delay:n,duration:r,fill:"both"})})}function yS(t,e){const{type:n}=t;return typeof e=="string"?`${n}.${e}`:e}function mS(t,e){const n=a=>a.class!==void 0?`${a.class}`:"";t.nodes().length===0||(t.selectAll(ya(a_)).data(e,a=>a.key).join(a=>a.append("g").attr("className",a_).attr("id",o=>o.key).style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.style("facet",n).style("fill","transparent").style("zIndex",o=>{var s;return(s=o.zIndex)!==null&&s!==void 0?s:0}),a=>a.remove()),t.select(ya(V0)).node())||t.append("g").attr("className",V0).style("zIndex",0)}function ya(...t){return t.map(e=>`.${e}`).join("")}function bS(t,e){t.node()&&t.style("clipPath",n=>{if(!e)return null;const{paddingTop:r,paddingLeft:i,marginLeft:a,marginTop:o,innerWidth:s,innerHeight:c}=n;return new $o({style:{x:i+a,y:r+o,width:s,height:c}})})}function aX(t,e,n){var r;for(const[l]of n.entries())if(l.type==="cell")return t.filter(u=>u.name!=="shape");if(e.length!==1||t.some(l=>l.name==="shape"))return t;const{defaultShape:i}=e[0];if(!["point","line","rect","hollow"].includes(i))return t;const o={point:"point",line:"hyphen",rect:"square",hollow:"hollow"},c={field:((r=t.find(l=>l.name==="color"))===null||r===void 0?void 0:r.field)||null,name:"shape",type:"constant",domain:[],range:[o[i]]};return[...t,c]}function oX(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function xS(t){const e=Nt({},t),n=new Map([[e,null]]),r=new Map([[null,-1]]),i=[e];for(;i.length;){const a=i.shift();if(a.key===void 0){const s=n.get(a),c=r.get(a),l=s===null?"0":`${s.key}-${c}`;a.key=l}const{children:o=[]}=a;if(Array.isArray(o))for(let s=0;s{},r=i=>{throw i}){const{width:i=640,height:a=480,depth:o=0}=t,s=xS(t),{canvas:c=sX(i,a),emitter:l=new Hp,library:u}=e;e.canvas=c,e.emitter=l;const{width:f,height:d}=c.getConfig();(f!==i||d!==a)&&c.resize(i,a),l.emit(wn.BEFORE_RENDER);const h=je(c.document.documentElement);return c.ready.then(()=>rg(Object.assign(Object.assign({},s),{width:i,height:a,depth:o}),h,u,e)).then(()=>{if(o){const[p,v]=c.document.documentElement.getPosition();c.document.documentElement.setPosition(p,v,-o/2)}c.requestAnimationFrame(()=>{l.emit(wn.AFTER_RENDER),n==null||n()})}).catch(p=>{r==null||r(p)}),uX(c.getConfig().container)}function npt(t,e={},n=()=>{},r=i=>{throw i}){var i;const{width:a=640,height:o=480}=t,s=xS(t),{group:c=new Group,emitter:l=new EventEmitter,library:u}=e;c!=null&&c.parentElement||error("renderToMountedElement can't render chart to unmounted group.");const f=select(c);return e.group=c,e.emitter=l,e.canvas=e.canvas||((i=c==null?void 0:c.ownerDocument)===null||i===void 0?void 0:i.defaultView),l.emit(ChartEvent.BEFORE_RENDER),plot(Object.assign(Object.assign({},s),{width:a,height:o}),f,u,e).then(()=>{var d;(d=e.canvas)===null||d===void 0||d.requestAnimationFrame(()=>{l.emit(ChartEvent.AFTER_RENDER),n==null||n()})}).catch(d=>{r==null||r(d)}),c}function _S(t,e={},n=!1){const{canvas:r,emitter:i}=e;r&&(lX(r),n?r.destroy():r.destroyChildren()),i.off()}function lX(t){const e=t.getRoot().querySelectorAll(`.${X0}`);e==null||e.forEach(n=>{const{nameInteraction:r=new Map}=n;(r==null?void 0:r.size)>0&&Array.from(r==null?void 0:r.values()).forEach(i=>{i==null||i.destroy()})})}function uX(t){return typeof t=="string"?document.getElementById(t):t}const fc=t=>t?parseInt(t):0;function fX(t){const e=getComputedStyle(t),n=t.clientWidth||fc(e.width),r=t.clientHeight||fc(e.height),i=fc(e.paddingLeft)+fc(e.paddingRight),a=fc(e.paddingTop)+fc(e.paddingBottom);return{width:n-i,height:r-a}}function rpt(t){const{height:e,width:n,padding:r=0,paddingLeft:i=r,paddingRight:a=r,paddingTop:o=r,paddingBottom:s=r,margin:c=0,marginLeft:l=c,marginRight:u=c,marginTop:f=c,marginBottom:d=c,inset:h=0,insetLeft:p=h,insetRight:v=h,insetTop:g=h,insetBottom:y=h}=t,m=O=>O==="auto"?20:O,b=n-m(i)-m(a)-l-u-p-v,_=e-m(o)-m(s)-f-d-g-y;return{width:b,height:_}}function sg(t,e){const n=[t];for(;n.length;){const r=n.shift();e&&e(r);const i=r.children||[];for(const a of i)n.push(a)}}class cg{constructor(e={},n){this.parentNode=null,this.children=[],this.index=0,this.type=n,this.value=e}map(e=n=>n){const n=e(this.value);return this.value=n,this}attr(e,n){return arguments.length===1?this.value[e]:this.map(r=>(r[e]=n,r))}append(e){const n=new e({});return n.children=[],this.push(n),n}push(e){return e.parentNode=this,e.index=this.children.length,this.children.push(e),this}remove(){const e=this.parentNode;if(e){const{children:n}=e,r=n.findIndex(i=>i===this);n.splice(r,1)}return this}getNodeByKey(e){let n=null;return sg(this,i=>{e===i.attr("key")&&(n=i)}),n}getNodesByType(e){const n=[];return sg(this,i=>{e===i.type&&n.push(i)}),n}getNodeByType(e){let n=null;return sg(this,r=>{n||e===r.type&&(n=r)}),n}call(e,...n){return e(this.map(),...n),this}getRoot(){let e=this;for(;e&&e.parentNode;)e=e.parentNode;return e}}var OS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{e=r,t=i}),e,t]}const SX={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function MX(t,e){var n;return(n=t.style[e])!==null&&n!==void 0?n:SX[e]}function ug(t,e,n,r){t.style[e]=n,r&&t.children.forEach(i=>ug(i,e,n,r))}function fg(t){ug(t,"visibility","hidden",!0)}function dg(t){ug(t,"visibility","visible",!0)}function EX(t,e,{key:n=e}){t.prototype[e]=function(r){return arguments.length===0?this.attr(n):this.attr(n,r)}}function AX(t,e,{key:n=e}){t.prototype[e]=function(r){if(arguments.length===0)return this.attr(n);if(Array.isArray(r))return this.attr(n,r);const i=[...this.attr(n)||[],r];return this.attr(n,i)}}function TX(t,e,{key:n=e}){t.prototype[e]=function(r,i){if(arguments.length===0)return this.attr(n);if(arguments.length===1&&typeof r!="string")return this.attr(n,r);const a=this.attr(n)||{};return a[r]=arguments.length===1?!0:i,this.attr(n,a)}}function PX(t,e,n){t.prototype[e]=function(r){if(arguments.length===0)return this.attr(e);if(Array.isArray(r))return this.attr(e,{items:r});if(cl(r)&&(r.title!==void 0||r.items!==void 0))return this.attr(e,r);if(r===null||r===!1)return this.attr(e,r);const i=this.attr(e)||{},{items:a=[]}=i;return a.push(r),i.items=a,this.attr(e,i)}}function CX(t,e,{ctor:n}){t.prototype[e]=function(r){const i=this.append(n);return e==="mark"&&(i.type=r),i}}function kX(t,e,{ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}function Rd(t){return e=>{for(const[n,r]of Object.entries(t)){const{type:i}=r;i==="value"?EX(e,n,r):i==="array"?AX(e,n,r):i==="object"?TX(e,n,r):i==="node"?CX(e,n,r):i==="container"?kX(e,n,r):i==="mix"&&PX(e,n,r)}return e}}function PS(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,{type:"node",ctor:n}]))}const CS={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},RX=Object.assign(Object.assign({},CS),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),LX=Object.assign(Object.assign({},CS),{labelTransform:{type:"array"}});var NX=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};let Ld=class extends cg{changeData(e){var n;const r=this.getRoot();if(r)return this.attr("data",e),!((n=this.children)===null||n===void 0)&&n.length&&this.children.forEach(i=>{i.attr("data",e)}),r==null?void 0:r.render()}getView(){const e=this.getRoot(),{views:n}=e.getContext();if(n!=null&&n.length)return n.find(r=>r.key===this._key)}getScale(){var e;return(e=this.getView())===null||e===void 0?void 0:e.scale}getScaleByChannel(e){const n=this.getScale();if(n)return n[e]}getCoordinate(){var e;return(e=this.getView())===null||e===void 0?void 0:e.coordinate}getTheme(){var e;return(e=this.getView())===null||e===void 0?void 0:e.theme}getGroup(){const e=this._key;return e?this.getRoot().getContext().canvas.getRoot().getElementById(e):void 0}show(){const e=this.getGroup();e&&!e.isVisible()&&dg(e)}hide(){const e=this.getGroup();e&&e.isVisible()&&fg(e)}};Ld=NX([Rd(LX)],Ld);var IX=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a};let hg=class extends cg{changeData(e){const n=this.getRoot();if(n)return this.attr("data",e),n==null?void 0:n.render()}getMark(){var e;const n=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(!n)return;const{markState:r}=n,i=Array.from(r.keys()).find(a=>a.key===this.attr("key"));return r.get(i)}getScale(){var e;const n=(e=this.getRoot())===null||e===void 0?void 0:e.getView();if(n)return n==null?void 0:n.scale}getScaleByChannel(e){var n,r;const i=(n=this.getRoot())===null||n===void 0?void 0:n.getView();if(i)return(r=i==null?void 0:i.scale)===null||r===void 0?void 0:r[e]}getGroup(){const e=this.attr("key");return e?this.getRoot().getContext().canvas.getRoot().getElementById(e):void 0}};hg=IX([Rd(RX)],hg);var jX=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},DX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{this.forceFit()},300),this._renderer=i||new h_,this._plugins=a||[],this._container=dX(n),this._emitter=new Hp,this._context={library:Object.assign(Object.assign({},o),c_),emitter:this._emitter,canvas:r},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._context.canvas.getConfig().supportsCSSTransform=!0,this._bindAutoFit(),this._rendering=!0;const e=new Promise((a,o)=>cX(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[n,r,i]=wX();return e.then(r).catch(i).then(()=>this._renderTrailing()),n}options(e){if(arguments.length===0)return vX(this);const{type:n}=e;return n&&(this._previousDefinedType=n),OX(this,e,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(e,n,r){return this._emitter.on(e,n,r),this}once(e,n){return this._emitter.once(e,n),this}emit(e,...n){return this._emitter.emit(e,...n),this}off(e,n){return this._emitter.off(e,n),this}clear(){const e=this.options();this.emit(wn.BEFORE_CLEAR),this._reset(),_S(e,this._context,!1),this.emit(wn.AFTER_CLEAR)}destroy(){const e=this.options();this.emit(wn.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),_S(e,this._context,!0),this._container[SS]&&hX(this._container),this.emit(wn.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:e,height:n}=lg(this.options(),this._container);if(e===this._width&&n===this._height)return Promise.resolve(this);this.emit(wn.BEFORE_CHANGE_SIZE);const r=this.render();return r.then(()=>{this.emit(wn.AFTER_CHANGE_SIZE)}),r}changeSize(e,n){if(e===this._width&&n===this._height)return Promise.resolve(this);this.emit(wn.BEFORE_CHANGE_SIZE),this.attr("width",e),this.attr("height",n);const r=this.render();return r.then(()=>{this.emit(wn.AFTER_CHANGE_SIZE)}),r}_create(){const{library:e}=this._context,n=a=>a.startsWith("mark.")||a==="component.axisX"||a==="component.axisY"||a==="component.legends",r=["mark.mark",...Object.keys(e).filter(n)];this._marks={};for(const a of r){const o=a.split(".").pop();class s extends hg{constructor(){super({},o)}}this._marks[o]=s,this[o]=function(c){const l=this.append(s);return o==="mark"&&(l.type=c),l}}const i=["composition.view",...Object.keys(e).filter(a=>a.startsWith("composition.")&&a!=="composition.mark")];this._compositions=Object.fromEntries(i.map(a=>{const o=a.split(".").pop();let s=class extends Ld{constructor(){super({},o)}};return s=jX([Rd(PS(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))Rd(PS(this._compositions))(a);for(const a of i){const o=a.split(".").pop();this[o]=function(){const s=this._compositions[o];return this.type=null,this.append(s)}}}_reset(){const e=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([n])=>n.startsWith("margin")||n.startsWith("padding")||n.startsWith("inset")||e.includes(n))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const e=this._trailingResolve.bind(this);this._trailingResolve=null,e(this)}).catch(e=>{const n=this._trailingReject.bind(this);this._trailingReject=null,n(e)}))}_createResolve(e){return()=>{this._rendering=!1,e(this)}}_createReject(e){return n=>{this._rendering=!1,e(n)}}_computedOptions(){const e=this.options(),{key:n=FX}=e,{width:r,height:i,depth:a}=lg(e,this._container);return this._width=r,this._height=i,this._key=n,Object.assign(Object.assign({key:this._key},e),{width:r,height:i,depth:a})}_createCanvas(){const{width:e,height:n}=lg(this.options(),this._container);this._plugins.push(new p_),this._plugins.forEach(r=>this._renderer.registerPlugin(r)),this._context.canvas=new zx({container:this._container,width:e,height:n,renderer:this._renderer})}_addToTrailing(){var e;return(e=this._trailingResolve)===null||e===void 0||e.call(this,this),this._trailing=!0,new Promise((r,i)=>{this._trailingResolve=r,this._trailingReject=i})}_bindAutoFit(){const e=this.options(),{autoFit:n}=e;if(this._hasBindAutoFit){n||this._unbindAutoFit();return}n&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}function zX(t,e){class n extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:e}))}}return n}Et.enableCSSParsing=!1;var GX=Object.prototype.hasOwnProperty,kS=function(t,e){if(t===null||!io(t))return{};var n={};return kv(e,function(r){GX.call(t,r)&&(n[r]=t[r])}),n};function RS(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ll(t,e,n,r,i){for(var a=t.children,o,s=-1,c=a.length,l=t.value&&(r-e)/t.value;++s=0;)e+=n[r].value;t.value=e}function VX(){return this.eachAfter(YX)}var pg=yt(6419);function XX(t,e){var n=-1,r=pg(this),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t.call(e,a,++n,this)}}catch(o){r.e(o)}finally{r.f()}return this}function $X(t,e){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(t.call(e,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function UX(t,e){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o=0;)n+=r[i].value;e.value=n})}function KX(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function QX(t){for(var e=this,n=JX(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}function JX(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}function t$(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function e$(){return Array.from(this)}function n$(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function r$(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}var LS=yt(29195),i$=LS().mark(NS);function NS(){var t,e,n,r,i,a;return LS().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t=this,n=[t];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){s.next=8;break}return s.next=5,t;case 5:if(r=t.children)for(i=0,a=r.length;i=0;--s)i.push(a=o[s]=new hc(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(IS)}function a$(){return dc(this).eachBefore(c$)}function o$(t){return t.children}function s$(t){return Array.isArray(t)?t[1]:null}function c$(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function IS(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function hc(t){this.data=t,this.depth=this.height=0,this.parent=null}hc.prototype=dc.prototype=HX({constructor:hc,count:VX,each:XX,eachAfter:UX,eachBefore:$X,find:qX,sum:ZX,sort:KX,path:QX,ancestors:t$,descendants:e$,leaves:n$,links:r$,copy:a$},Symbol.iterator,NS);var l$=function(t,e){if(!ll(t))return t;for(var n=[],r=0;re.value-t.value,as:["x","y"],ignoreParentValue:!0},p$="nodeIndex",Nl="childNodeCount",v$="nodeAncestor",gg="Invalid field: it must be a string!";function g$(t,e){const{field:n,fields:r}=t;if(tr(n))return n;if(Dr(n))return console.warn(gg),n[0];if(console.warn(`${gg} will try to get fields instead.`),tr(r))return r;if(Dr(r)&&r.length)return r[0];if(e)return e;throw new TypeError(gg)}function y$(t){const e=[];if(t&&t.each){let n,r;t.each(i=>{var a,o;i.parent!==n?(n=i.parent,r=0):r+=1;const s=u$((((a=i.ancestors)===null||a===void 0?void 0:a.call(i))||[]).map(c=>e.find(l=>l.name===c.name)||c),({depth:c})=>c>0&&c{e.push(n)});return e}function m$(t,e){e=f$({},h$,e);const n=e.as;if(!Dr(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');let r;try{r=g$(e)}catch(c){console.warn(c)}const a=(c=>WX().size(e.size).round(e.round).padding(e.padding)(dc(c).sum(l=>d$(l.children)?e.ignoreParentValue?0:l[r]-Y2(l.children,(u,f)=>u+f[r],0):l[r]).sort(e.sort)))(t),o=n[0],s=n[1];return a.each(c=>{var l,u;c[o]=[c.x0,c.x1,c.x1,c.x0],c[s]=[c.y1,c.y1,c.y0,c.y0],c.name=c.name||((l=c.data)===null||l===void 0?void 0:l.name)||((u=c.data)===null||u===void 0?void 0:u.label),c.data.name=c.name,["x0","x1","y0","y1"].forEach(f=>{n.indexOf(f)===-1&&delete c[f]})}),y$(a)}var b$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var l,u,f,d;if(c.depth===0)return null;let h=c.data.name;const p=[h];let v=Object.assign({},c);for(;v.depth>1;)h=`${(l=v.parent.data)===null||l===void 0?void 0:l.name} / ${h}`,p.unshift((u=v.parent.data)===null||u===void 0?void 0:u.name),v=v.parent;const g=Object.assign(Object.assign(Object.assign({},kS(c.data,[i])),{[jS]:h,[Nd]:v.data.name}),c);r&&r!==Nd&&(g[r]=c.data[r]||((d=(f=c.parent)===null||f===void 0?void 0:f.data)===null||d===void 0?void 0:d[r])),s.push(g)}),s.map(c=>Object.assign(Object.assign({},c),{x:c.x.slice(0,2),y:[c.y[2],c.y[0]],fillOpacity:Math.pow(.85,c.depth)}))}const DS={id:pc,encode:{x:"x",y:"y",key:jS,color:Nd,value:"value"},axis:{x:!1,y:!1},style:{[yg]:pc,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[Nl]:Nl,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},FS=t=>{const{encode:e,data:n=[],legend:r}=t,i=b$(t,["encode","data","legend"]),a=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(zi(i,["coordinate","innerRadius"],.2),1e-5)}),o=Object.assign(Object.assign({},DS.encode),e),{value:s}=o,c=x$({encode:o,data:n});return[Nt({},DS,Object.assign(Object.assign({type:"rect",data:c,encode:o,tooltip:{title:"path",items:[l=>({name:s,value:l[s]})]}},i),{coordinate:a}))]};FS.props={};var _$=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return kv(t,function(n,r){gi(t)&&r==="prototype"||e.push(r)}),e},O$=_$,w$=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const S$=t=>t.querySelectorAll(".element").filter(e=>zi(e,["style",yg])===pc);function M$(t){return je(t).select(`.${Ff}`).node()}const E$={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function A$(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=Nt({},E$,e);return i=>{const{update:a,setState:o,container:s,view:c,options:l}=i,u=M$(s),f=l.marks.find(({id:m})=>m===pc),{state:d}=f,h=new Fr;u.appendChild(h);const p=(m,b)=>w$(this,void 0,void 0,function*(){if(h.removeChildren(),m){const _=new Zi({style:Object.assign({x:0,text:r.rootText,depth:0},r.style)});h.appendChild(_);let O="";const w=m==null?void 0:m.split(" / ");let M=r.style.y,E=h.getBBox().width;const A=u.getBBox().width,P=w.map((C,j)=>{const N=new Zi({style:Object.assign(Object.assign({x:E,text:" / "},r.style),{y:M})});h.appendChild(N),E+=N.getBBox().width,O=`${O}${C} / `;const k=new Zi({name:O.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:C,x:E,depth:j+1},r.style),{y:M})});return h.appendChild(k),E+=k.getBBox().width,E>A&&(M=h.getBBox().height,E=0,N.attr({x:E,y:M}),E+=N.getBBox().width,k.attr({x:E,y:M}),E+=k.getBBox().width),k});[_,...P].forEach((C,j)=>{if(j===P.length)return;const N=Object.assign({},C.attributes);C.attr("cursor","pointer"),C.addEventListener("mouseenter",()=>{C.attr(r.active)}),C.addEventListener("mouseleave",()=>{C.attr(N)}),C.addEventListener("click",()=>{p(C.name,zi(C,["style","depth"]))})})}o("drillDown",_=>{const{marks:O}=_,w=O.map(M=>{if(M.id!==pc&&M.type!=="rect")return M;const{data:E}=M,A=Object.fromEntries(["color"].map(C=>[C,{domain:c.scale[C].getOptions().domain}])),P=E.filter(C=>{const j=C.path;return n&&(C[Nd]=j.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(j):!0});return Nt({},M,n?{data:P}:{data:P,scale:A})});return Object.assign(Object.assign({},_),{marks:w})}),yield a()}),v=m=>{const b=m.target;if(zi(b,["style",yg])!==pc||zi(b,["markType"])!=="rect"||!zi(b,["style",Nl]))return;const _=zi(b,["__data__","key"]),O=zi(b,["style","depth"]);b.style.cursor="pointer",p(_,O)};u.addEventListener("click",v);const g=O$(Object.assign(Object.assign({},d.active),d.inactive)),y=()=>{S$(u).forEach(b=>{const _=zi(b,["style",Nl]);if(zi(b,["style","cursor"])!=="pointer"&&_){b.style.cursor="pointer";const w=kS(b.attributes,g);b.addEventListener("mouseenter",()=>{b.attr(d.active)}),b.addEventListener("mouseleave",()=>{b.attr(Nt(w,d.inactive))})}})};return u.addEventListener("mousemove",y),()=>{h.remove(),u.removeEventListener("click",v),u.removeEventListener("mousemove",y)}}}Et.enableCSSParsing=!1;function T$(){return{"interaction.drillDown":A$,"mark.sunburst":FS}}const BS=()=>[["cartesian"]];BS.props={};const mg=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];mg.props={transform:!0};const P$=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},zS=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=P$(t);return[...mg(),...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};zS.props={};const bg=()=>[["parallel",0,1,0,1]];bg.props={};const GS=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];GS.props={transform:!0};const WS=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...bg(),...ul({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};WS.props={};const HS=({value:t})=>e=>e.map(()=>t);HS.props={};const YS=({value:t})=>e=>e.map(n=>n[t]);YS.props={};const VS=({value:t})=>e=>e.map(t);VS.props={};const XS=({value:t})=>()=>t;XS.props={};function jn(t,e){if(t!==null)return{type:"column",value:t,field:e}}function Id(t,e){const n=jn(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function jd(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function C$(t,e){const n=jn(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function go(t,e){const n=[];for(const r of t)n[r]=e;return n}function sn(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function Il(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=sn(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function jl(t){return t instanceof Date?!1:typeof t=="object"}const Dl=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,Nt({},e,{encode:{y1:Id(go(t,0))}})]};Dl.props={};const ls=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,Nt({},e,{encode:{x:Id(go(t,0))},scale:{x:{guide:null}}})]};ls.props={};const $S=Math.abs,Ur=Math.atan2,us=Math.cos,k$=Math.max,xg=Math.min,ma=Math.sin,vc=Math.sqrt,qr=1e-12,Fl=Math.PI,Dd=Fl/2,R$=2*Fl;function L$(t){return t>1?0:t<-1?Fl:Math.acos(t)}function US(t){return t>=1?Dd:t<=-1?-Dd:Math.asin(t)}function N$(t){return t.innerRadius}function I$(t){return t.outerRadius}function j$(t){return t.startAngle}function D$(t){return t.endAngle}function F$(t){return t&&t.padAngle}function B$(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+R*R&&(E=P,A=C),{cx:E,cy:A,x01:-u,y01:-f,x11:E*(i/O-1),y11:A*(i/O-1)}}function Bd(){var t=N$,e=I$,n=Wn(0),r=null,i=j$,a=D$,o=F$,s=null,c=Gv(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-Dd,v=a.apply(this,arguments)-Dd,g=$S(v-p),y=v>p;if(s||(s=u=c()),hqr))s.moveTo(0,0);else if(g>R$-qr)s.moveTo(h*us(p),h*ma(p)),s.arc(0,0,h,p,v,!y),d>qr&&(s.moveTo(d*us(v),d*ma(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,_=p,O=v,w=g,M=g,E=o.apply(this,arguments)/2,A=E>qr&&(r?+r.apply(this,arguments):vc(d*d+h*h)),P=xg($S(h-d)/2,+n.apply(this,arguments)),C=P,j=P,N,k;if(A>qr){var R=US(A/d*ma(E)),D=US(A/h*ma(E));(w-=R*2)>qr?(R*=y?1:-1,_+=R,O-=R):(w=0,_=O=(p+v)/2),(M-=D*2)>qr?(D*=y?1:-1,m+=D,b-=D):(M=0,m=b=(p+v)/2)}var F=h*us(m),B=h*ma(m),z=d*us(O),Y=d*ma(O);if(P>qr){var $=h*us(b),tt=h*ma(b),it=d*us(_),St=d*ma(_),Ft;if(gqr?j>qr?(N=Fd(it,St,F,B,h,j,y),k=Fd($,tt,z,Y,h,j,y),s.moveTo(N.cx+N.x01,N.cy+N.y01),jqr)||!(w>qr)?s.lineTo(z,Y):C>qr?(N=Fd(z,Y,$,tt,d,-C,y),k=Fd(F,B,it,St,d,-C,y),s.lineTo(N.cx+N.x01,N.cy+N.y01),C0?C:C+N,D=k>0?j:j+k,F=Math.abs(N),B=Math.abs(k),z=R+s,Y=D+c,$=F-(s+l),tt=B-(c+u),it=E?Vf($,y,1/0):Vf($,v,g),St=E?Vf(tt,v,g):Vf(tt,y,1/0),Ft=E?z:z-(it-$)/2,Xt=E?Y-(St-tt)/2:Y-(St-tt);return je(t.createElement("rect",{})).style("x",Ft).style("y",Xt).style("width",it).style("height",St).style("radius",[h,p,d,f]).call(Ee,m).node()}const{y:b,y1:_}=n,O=r.getCenter(),w=ns(r,e,[b,_]),M=Bd().cornerRadius(o).padAngle(a*Math.PI/180);return je(t.createElement("path",{})).style("path",M(w)).style("transform",`translate(${O[0]}, ${O[1]})`).style("radius",o).style("inset",a).call(Ee,m).node()}const Bl=(t,e)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=zd(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d,radius:h=0}=f,p=zd(f,["color","radius"]),v=p.lineWidth||1,{stroke:g,radius:y=h,radiusTopLeft:m=y,radiusTopRight:b=y,radiusBottomRight:_=y,radiusBottomLeft:O=y,innerRadius:w=0,innerRadiusTopLeft:M=w,innerRadiusTopRight:E=w,innerRadiusBottomRight:A=w,innerRadiusBottomLeft:P=w,lineWidth:C=n==="stroke"||g?v:0,inset:j=0,insetLeft:N=j,insetRight:k=j,insetBottom:R=j,insetTop:D=j,minWidth:F,maxWidth:B,minHeight:z}=o,Y=zd(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:$=d,opacity:tt}=u,it=[i?m:M,i?b:E,a?_:A,a?O:P],St=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];zn(s)&&St.push(St.shift());const Ft=Object.assign(Object.assign({radius:y},Object.fromEntries(St.map((Xt,Pt)=>[Xt,it[Pt]]))),{inset:j,insetLeft:N,insetRight:k,insetBottom:R,insetTop:D,minWidth:F,maxWidth:B,minHeight:z});return je(qS(c,l,u,s,Ft)).call(Ee,p).style("fill","transparent").style(n,$).style(EO(t),tt).style("lineWidth",C).style("stroke",g===void 0?$:g).call(Ee,Y).node()}};Bl.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const fs=(t,e)=>Bl(Object.assign({colorAttribute:"fill"},t),e);fs.props=Object.assign(Object.assign({},Bl.props),{defaultMarker:"square"});const Gd=(t,e)=>Bl(Object.assign({colorAttribute:"stroke"},t),e);Gd.props=Object.assign(Object.assign({},Bl.props),{defaultMarker:"hollowSquare"});function gc(){}function ZS(t){this._context=t}ZS.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function _g(t){return new ZS(t)}var KS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{adjustPoints:n=z$}=t,r=KS(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(o,s,c,l)=>{const{index:u}=s,{color:f}=c,d=KS(c,["color"]),h=l[u+1],p=n(o,h,i),v=!!zn(i),[g,y,m,b]=v?yd(p):p,{color:_=f,opacity:O}=s,w=ho().curve(_g)([g,y,m,b]);return je(a.createElement("path",{})).call(Ee,d).style("path",w).style("fill",_).style("fillOpacity",O).call(Ee,r).node()}};Og.props={defaultMarker:"square"};function G$(t,e,n){const[r,i,a,o]=t;if(zn(n)){const l=[e?e[0][0]:(i[0]+a[0])/2,i[1]],u=[e?e[3][0]:(i[0]+a[0])/2,a[1]];return[r,l,u,o]}const s=[i[0],e?e[0][1]:(i[1]+a[1])/2],c=[a[0],e?e[3][1]:(i[1]+a[1])/2];return[r,s,c,o]}const QS=(t,e)=>Og(Object.assign({adjustPoints:G$},t),e);QS.props={defaultMarker:"square"};function Wd(t){return t==null?null:JS(t)}function JS(t){if(typeof t!="function")throw new Error;return t}var W$={depth:-1},tM={},wg={};function H$(t){return t.id}function Y$(t){return t.parentId}function Sg(){var t=H$,e=Y$,n;function r(i){var a=Array.from(i),o=t,s=e,c,l,u,f,d,h,p,v,g=new Map;if(n!=null){var y=a.map(function(E,A){return V$(n(E,A,i))}),m=y.map(eM),b=new Set(y).add(""),_=pg(m),O;try{for(_.s();!(O=_.n()).done;){var w=O.value;b.has(w)||(b.add(w),y.push(w),m.push(eM(w)),a.push(wg))}}catch(E){_.e(E)}finally{_.f()}o=function(A,P){return y[P]},s=function(A,P){return m[P]}}for(u=0,c=a.length;u=0&&(h=a[M],h.data===wg);--M)h.data=null}if(f.parent=W$,f.eachBefore(function(E){E.depth=E.parent.depth+1,--c}).eachBefore(IS),f.parent=null,c>0)throw new Error("cycle");return f}return r.id=function(i){return arguments.length?(t=Wd(i),r):t},r.parentId=function(i){return arguments.length?(e=Wd(i),r):e},r.path=function(i){return arguments.length?(n=Wd(i),r):n},r}function V$(t){t="".concat(t);var e=t.length;return Mg(t,e-1)&&!Mg(t,e-2)&&(t=t.slice(0,-1)),t[0]==="/"?t:"/".concat(t)}function eM(t){var e=t.length;if(e<2)return"";for(;--e>1&&!Mg(t,e););return t.slice(0,e)}function Mg(t,e){if(t[e]==="/"){for(var n=0;e>0&&t[--e]==="\\";)++n;if(!(n&1))return!0}return!1}function zl(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function X$(t){const e=t.getFullYear(),n=zl(t.getMonth()+1),r=zl(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${zl(a)}:${zl(o)}:${zl(s)}`:i}const Hd=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(ka(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>sn(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?X$(u[l]):u[l]).join(", ")};return[n,Nt({},r,{tooltip:{title:c}})]}};Hd.props={};const Yd=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(ka(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,Nt({},r,{tooltip:{items:c}})]}};Yd.props={};var $$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=$$(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,Nt({},e,{encode:{key:jn(o)}})]};nM.props={};function rM(t={}){const{shapes:e}=t;return[{name:"color"},{name:"opacity"},{name:"shape",range:e},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function ii(t={}){return[...rM(t),{name:"title",scale:"identity"}]}function apt(){return[{type:MaybeTitle,channel:"color"},{type:MaybeTooltip,channel:["x","y","z"]}]}function yo(){return[{type:Hd,channel:"color"},{type:Yd,channel:["x","y"]}]}function yc(){return[{type:Hd,channel:"x"},{type:Yd,channel:["y"]}]}function U$(){return[{type:Hd,channel:"color"},{type:Yd,channel:["position"]}]}function mc(t={}){return rM(t)}function vr(){return[{type:nM}]}function Or(){return[]}function Eg(t,e){return t.getBandWidth(t.invert(e))}function ds(t,e,n={}){const{x:r,y:i,series:a}=e,{x:o,y:s,series:c}=t,{style:{bandOffset:l=c?0:.5,bandOffsetX:u=l,bandOffsetY:f=l}={}}=n,d=!!(o!=null&&o.getBandWidth),h=!!(s!=null&&s.getBandWidth),p=!!(c!=null&&c.getBandWidth);return!d&&!h?v=>v:(v,g)=>{const y=d?Eg(o,r[g]):0,m=h?Eg(s,i[g]):0,_=p&&a?(()=>(Eg(c,a[g])/2+ +a[g])*y)():0,[O,w]=v;return[O+u*y+_,w+f*m]}}function Vd(t){return parseFloat(t)/100}function Ag(t,e,n,r){const{x:i,y:a}=n,{innerWidth:o,innerHeight:s}=r.getOptions(),c=Array.from(t,l=>{const u=i[l],f=a[l],d=typeof u=="string"?Vd(u)*o:+u,h=typeof f=="string"?Vd(f)*s:+f;return[[d,h]]});return[t,c]}function ba(t){return typeof t=="function"?t:e=>e[t]}function Tg(t,e){return Array.from(t,ba(e))}function Pg(t,e){const{source:n=u=>u.source,target:r=u=>u.target,value:i=u=>u.value}=e,{links:a,nodes:o}=t,s=Tg(a,n),c=Tg(a,r),l=Tg(a,i);return{links:a.map((u,f)=>({target:c[f],source:s[f],value:l[f]})),nodes:o||Array.from(new Set([...s,...c]),u=>({key:u}))}}function q$(t,e){return Array.isArray(t)?typeof e=="function"?Sg().path(e)(t):Sg()(t):dc(t)}function iM(t,e){return t.getBandWidth(t.invert(e))}const aM={rect:fs,hollow:Gd,funnel:Og,pyramid:QS},oM=()=>(t,e,n,r)=>{const{x:i,y:a,y1:o,series:s,size:c}=n,l=e.x,u=e.series,[f]=r.getSize(),d=c?c.map(v=>+v/f):null,h=c?(v,g,y)=>{const m=v+g/2,b=d[y];return[m-b/2,m+b/2]}:(v,g,y)=>[v,v+g],p=Array.from(t,v=>{const g=iM(l,i[v]),y=u?iM(u,s==null?void 0:s[v]):1,m=g*y,b=(+(s==null?void 0:s[v])||0)*g,_=+i[v]+b,[O,w]=h(_,m,v),M=+a[v],E=+o[v];return[[O,M],[w,M],[w,E],[O,E]].map(N=>r.map(N))});return[t,p]};oM.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:aM,channels:[...ii({shapes:Object.keys(aM)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...vr(),{type:Dl},{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const sM={rect:fs,hollow:Gd},cM=()=>(t,e,n,r)=>{const{x:i,x1:a,y:o,y1:s}=n,c=Array.from(t,l=>{const u=[+i[l],+o[l]],f=[+a[l],+o[l]],d=[+a[l],+s[l]],h=[+i[l],+s[l]];return[u,f,d,h].map(p=>r.map(p))});return[t,c]};cM.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:sM,channels:[...ii({shapes:Object.keys(sM)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...vr(),{type:Dl}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};var lM=Cg(Al);function uM(t){this._curve=t}uM.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Cg(t){function e(n){return new uM(t(n))}return e._curve=t,e}function Gl(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Cg(n)):e()._curve},t}function Z$(){return Gl(ho().curve(lM))}var fM=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;je(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(Ee,r),je(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(Ee,i)});function Q$(t,e){const n=[],r=[];let i=!1,a=null;for(const o of t)!e(o[0])||!e(o[1])?i=!0:(n.push(o),i&&(i=!1,r.push([a,o])),a=o);return[n,r]}const Hi=(t,e)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=u=>!Number.isNaN(u)&&u!==void 0&&u!==null,connect:o=!1}=t,s=fM(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:c,document:l}=e;return(u,f,d)=>{const{color:h,lineWidth:p}=d,v=fM(d,["color","lineWidth"]),{color:g=h,size:y=p,seriesColor:m,seriesX:b,seriesY:_}=f,O=AO(c,f),w=zn(c),M=r&&m?MO(m,b,_,r,i,w):g,E=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v),M&&{stroke:M}),y&&{lineWidth:y}),O&&{transform:O}),s);let A;if(Nn(c)){const R=c.getCenter();A=D=>Z$().angle((F,B)=>nc(ur(D[B],R))).radius((F,B)=>Kn(D[B],R)).defined(([F,B])=>a(F)&&a(B)).curve(n)(D)}else A=ho().x(R=>R[0]).y(R=>R[1]).defined(([R,D])=>a(R)&&a(D)).curve(n);const[P,C]=Q$(u,a),j=le(E,"connect"),N=!!C.length;if(!N||o&&!Object.keys(j).length)return je(l.createElement("path",{})).style("d",A(P)||[]).call(Ee,E).node();if(N&&!o)return je(l.createElement("path",{})).style("d",A(u)).call(Ee,E).node();const k=R=>R.map(A).join(",");return je(new K$).style("style1",Object.assign(Object.assign({},E),j)).style("style2",E).style("d1",k(C)).style("d2",A(u)).node()}};Hi.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const dM=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Nn(n)?_g:Al;return Hi(Object.assign({curve:i},t),e)(...r)}};dM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"line"});function kg(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rg(t,e){this._context=t,this._k=(1-e)/6}Rg.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:kg(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:kg(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var opt=function t(e){function n(r){return new Rg(r,e)}return n.tension=function(r){return t(+r)},n}(0);function Lg(t,e){this._context=t,this._k=(1-e)/6}Lg.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:kg(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var spt=function t(e){function n(r){return new Lg(r,e)}return n.tension=function(r){return t(+r)},n}(0);function hM(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>qr){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>qr){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function pM(t,e){this._context=t,this._alpha=e}pM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:hM(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var cpt=function t(e){function n(r){return e?new pM(r,e):new Rg(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function vM(t,e){this._context=t,this._alpha=e}vM.prototype={areaStart:gc,areaEnd:gc,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:hM(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gM=function t(e){function n(r){return e?new vM(r,e):new Lg(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function yM(t){return t<0?-1:1}function mM(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(yM(a)+yM(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function bM(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Ng(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Xd(t){this._context=t}Xd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ng(this,this._t0,bM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ng(this,bM(this,n=mM(this,t,e)),n);break;default:Ng(this,this._t0,n=mM(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function xM(t){this._context=new _M(t)}(xM.prototype=Object.create(Xd.prototype)).point=function(t,e){Xd.prototype.point.call(this,e,t)};function _M(t){this._context=t}_M.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function OM(t){return new Xd(t)}function wM(t){return new xM(t)}var J$=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=J$(t,[]),{coordinate:r}=e;return(...i)=>{const a=Nn(r)?gM:zn(r)?wM:OM;return Hi(Object.assign({curve:a},n),e)(...i)}};SM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"smooth"});function $d(t,e){this._context=t,this._t=e}$d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function MM(t){return new $d(t,.5)}function EM(t){return new $d(t,0)}function AM(t){return new $d(t,1)}const TM=(t,e)=>Hi(Object.assign({curve:AM},t),e);TM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"hv"});const PM=(t,e)=>Hi(Object.assign({curve:EM},t),e);PM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"vh"});const CM=(t,e)=>Hi(Object.assign({curve:MM},t),e);CM.props=Object.assign(Object.assign({},Hi.props),{defaultMarker:"hvh"});var tU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{seriesSize:o,color:s}=i,{color:c}=a,l=tU(a,["color"]),u=Wi();for(let f=0;f(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,Nt({},e,{encode:{series:jd(go(t,void 0))}})]};RM.props={};const Ig=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=sn(n,"color");return[t,Nt({},e,{encode:{series:jn(a,o)}})]};Ig.props={};const LM={line:dM,smooth:SM,hv:TM,vh:PM,hvh:CM,trail:kM},nU=(t,e,n,r)=>{var i,a;const{series:o,x:s,y:c}=n,{x:l,y:u}=e;if(s===void 0||c===void 0)throw new Error("Missing encode for x or y channel.");const f=o?Array.from(Zn(t,g=>o[g]).values()):[t],d=f.map(g=>g[0]).filter(g=>g!==void 0),h=(((i=l==null?void 0:l.getBandWidth)===null||i===void 0?void 0:i.call(l))||0)/2,p=(((a=u==null?void 0:u.getBandWidth)===null||a===void 0?void 0:a.call(u))||0)/2,v=Array.from(f,g=>g.map(y=>r.map([+s[y]+h,+c[y]+p])));return[d,v,f]},rU=(t,e,n,r)=>{const i=Object.entries(n).filter(([o])=>o.startsWith("position")).map(([,o])=>o);if(i.length===0)throw new Error("Missing encode for position channel.");const a=Array.from(t,o=>{const s=i.map(u=>+u[o]),c=r.map(s),l=[];for(let u=0;u(t,e,n,r)=>(dl(r)?rU:nU)(t,e,n,r);NM.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:LM,channels:[...ii({shapes:Object.keys(LM)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...vr(),{type:RM},{type:Ig}],postInference:[...Or(),...yc(),...U$()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};var iU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];jg.style=["fill"];const IM=jg.bind(void 0);IM.style=["stroke","lineWidth"];const Ud=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];Ud.style=["fill"];const jM=Ud.bind(void 0);jM.style=["fill"];const DM=Ud.bind(void 0);DM.style=["stroke","lineWidth"];const Dg=(t,e,n)=>{const r=n*.618;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};Dg.style=["fill"];const FM=Dg.bind(void 0);FM.style=["stroke","lineWidth"];const Fg=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};Fg.style=["fill"];const BM=Fg.bind(void 0);BM.style=["stroke","lineWidth"];const Bg=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};Bg.style=["fill"];const zM=Bg.bind(void 0);zM.style=["stroke","lineWidth"];const zg=(t,e,n)=>{const r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};zg.style=["fill"];const GM=zg.bind(void 0);GM.style=["stroke","lineWidth"];const Gg=(t,e,n)=>{const r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};Gg.style=["fill"];const WM=Gg.bind(void 0);WM.style=["stroke","lineWidth"];const HM=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];HM.style=["stroke","lineWidth"];const YM=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];YM.style=["stroke","lineWidth"];const VM=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];VM.style=["stroke","lineWidth"];const XM=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];XM.style=["stroke","lineWidth"];const $M=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];$M.style=["stroke","lineWidth"];const Wg=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];Wg.style=["stroke","lineWidth"];const UM=Wg.bind(void 0);UM.style=["stroke","lineWidth"];const qM=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];qM.style=["stroke","lineWidth"];const ZM=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];ZM.style=["stroke","lineWidth"];const KM=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];KM.style=["stroke","lineWidth"];const QM=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];QM.style=["stroke","lineWidth"];const JM=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];JM.style=["stroke","lineWidth"];const bc=new Map([["bowtie",Gg],["cross",YM],["dash",UM],["diamond",Dg],["dot",Wg],["hexagon",zg],["hollowBowtie",WM],["hollowDiamond",FM],["hollowHexagon",GM],["hollowPoint",IM],["hollowSquare",DM],["hollowTriangle",BM],["hollowTriangleDown",zM],["hv",ZM],["hvh",QM],["hyphen",$M],["line",HM],["plus",XM],["point",jg],["rect",jM],["smooth",qM],["square",Ud],["tick",VM],["triangleDown",Bg],["triangle",Fg],["vh",KM],["vhv",JM]]);function aU(t,e){var{d:n,fill:r,strokeWidth:i,path:a,stroke:o,lineWidth:s,color:c}=e,l=iU(e,["d","fill","strokeWidth","path","stroke","lineWidth","color"]);const u=bc.get(t)||bc.get("point");return(...f)=>new ri({style:Object.assign(Object.assign({},l),{path:u(...f),stroke:u.style.includes("stroke")?c||o:"",fill:u.style.includes("fill")?c||r:"",lineWidth:u.style.includes("lineWidth")?s||s||2:0})})}function lpt(t,e){bc.set(t,e)}function upt(t){bc.delete(t)}var oU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=oU(t,["colorAttribute","symbol","mode"]),o=bc.get(r)||bc.get("point"),{coordinate:s,document:c}=e;return(l,u,f)=>{const{lineWidth:d,color:h}=f,p=a.stroke?d||1:d,{color:v=h,transform:g,opacity:y}=u,[m,b]=TO(l),O=sU(i,l,u,s)||a.r||f.r;return je(c.createElement("path",{})).call(Ee,f).style("fill","transparent").style("d",o(m,b,O)).style("lineWidth",p).style("transform",g).style("stroke",v).style(EO(t),y).style(n,v).call(Ee,a).node()}};an.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const tE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);tE.props=Object.assign({defaultMarker:"hollowPoint"},an.props);const eE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);eE.props=Object.assign({defaultMarker:"hollowDiamond"},an.props);const nE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);nE.props=Object.assign({defaultMarker:"hollowHexagon"},an.props);const rE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);rE.props=Object.assign({defaultMarker:"hollowSquare"},an.props);const iE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);iE.props=Object.assign({defaultMarker:"hollowTriangleDown"},an.props);const aE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);aE.props=Object.assign({defaultMarker:"hollowTriangle"},an.props);const oE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);oE.props=Object.assign({defaultMarker:"hollowBowtie"},an.props);const sE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);sE.props=Object.assign({defaultMarker:"point"},an.props);const cE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);cE.props=Object.assign({defaultMarker:"plus"},an.props);const lE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);lE.props=Object.assign({defaultMarker:"diamond"},an.props);const uE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);uE.props=Object.assign({defaultMarker:"square"},an.props);const fE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);fE.props=Object.assign({defaultMarker:"triangle"},an.props);const dE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);dE.props=Object.assign({defaultMarker:"hexagon"},an.props);const hE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);hE.props=Object.assign({defaultMarker:"cross"},an.props);const pE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);pE.props=Object.assign({defaultMarker:"bowtie"},an.props);const vE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);vE.props=Object.assign({defaultMarker:"hyphen"},an.props);const gE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);gE.props=Object.assign({defaultMarker:"line"},an.props);const yE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);yE.props=Object.assign({defaultMarker:"tick"},an.props);const mE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);mE.props=Object.assign({defaultMarker:"triangleDown"},an.props);const qd=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,Nt({},e,{encode:{y:Id(go(t,0))},scale:{y:{guide:null}}})]};qd.props={};const bE=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,Nt({},e,{encode:{size:jd(go(t,3))}})]};bE.props={};const xE={hollow:tE,hollowDiamond:eE,hollowHexagon:nE,hollowSquare:rE,hollowTriangleDown:iE,hollowTriangle:aE,hollowBowtie:oE,point:sE,plus:cE,diamond:lE,square:uE,triangle:fE,hexagon:dE,cross:hE,bowtie:pE,hyphen:vE,line:gE,tick:yE,triangleDown:mE},_E=t=>(e,n,r,i)=>{const{x:a,y:o,x1:s,y1:c,size:l,dx:u,dy:f}=r,[d,h]=i.getSize(),p=ds(n,r,t),v=y=>{const m=+((u==null?void 0:u[y])||0),b=+((f==null?void 0:f[y])||0),_=s?(+a[y]+ +s[y])/2:+a[y],O=c?(+o[y]+ +c[y])/2:+o[y],w=_+m,M=O+b;return[w,M]},g=l?Array.from(e,y=>{const[m,b]=v(y),_=+l[y],O=_/d,w=_/h,M=[m-O,b-w],E=[m+O,b+w];return[i.map(p(M,y)),i.map(p(E,y))]}):Array.from(e,y=>[i.map(p(v(y),y))]);return[e,g]};_E.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:xE,channels:[...ii({shapes:Object.keys(xE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...vr(),{type:ls},{type:qd}],postInference:[...Or(),{type:bE},...yo()]};const OE=(t,e)=>{const{coordinate:n}=e;return(r,i,a)=>{const{color:o,text:s="",fontSize:c,rotate:l=0,transform:u=""}=i,f={text:String(s),stroke:o,fill:o,fontSize:c},[[d,h]]=r;return je(new IO).style("x",d).style("y",h).call(Ee,a).style("transform",`${u}rotate(${+l})`).style("coordCenter",n.getCenter()).call(Ee,f).call(Ee,t).node()}};OE.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Hg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const e=t.attributes,{class:n,x:r,y:i}=e,a=Hg(e,["class","x","y"]),o=le(a,"marker"),{size:s=24}=o,c=()=>cU(s/2),l=je(t).maybeAppend("marker",()=>new Cn({})).call(d=>d.node().update(Object.assign({symbol:c},o))).node(),[u,f]=lU(l);je(t).maybeAppend("text","text").style("x",u).style("y",f).call(Ee,a)}),wE=(t,e)=>{const n=Hg(t,[]);return(r,i,a)=>{const{color:o}=a,s=Hg(a,["color"]),{color:c=o,text:l=""}=i,u={text:String(l),stroke:c,fill:c},[[f,d]]=r;return je(new uU).call(Ee,s).style("x",f).style("y",d).call(Ee,u).call(Ee,n).node()}};wE.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Zd=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(jl))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,Nt({},e,{encode:{x:jn(i),y:jn(a)}})]};Zd.props={};var SE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=SE(e,["data","style"]),{x:a,y:o}=r,s=SE(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],Nt({},i,{data:[0],cartesian:!0,encode:{x:jn([c]),y:jn([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};Kd.props={};const ME={text:OE,badge:wE},EE=t=>{const{cartesian:e=!1}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};EE.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:ME,channels:[...ii({shapes:Object.keys(ME)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[...vr(),{type:Zd},{type:Kd}],postInference:[...Or(),...yo()]};const Yg=()=>(t,e)=>[t,Nt({scale:{x:{padding:0},y:{padding:0}}},e)];Yg.props={};const AE={cell:fs,hollow:Gd},TE=()=>(t,e,n,r)=>{const{x:i,y:a}=n,o=e.x,s=e.y,c=Array.from(t,l=>{const u=o.getBandWidth(o.invert(+i[l])),f=s.getBandWidth(s.invert(+a[l])),d=+i[l],h=+a[l],p=[d,h],v=[d+u,h],g=[d+u,h+f],y=[d,h+f];return[p,v,g,y].map(m=>r.map(m))});return[t,c]};TE.props={defaultShape:"cell",defaultLabelShape:"label",shape:AE,composite:!1,channels:[...ii({shapes:Object.keys(AE)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...vr(),{type:ls},{type:qd},{type:Yg}],postInference:[...Or(),...yo()]};function Vg(t,e,n){var r=null,i=Wn(!0),a=null,o=Al,s=null,c=Gv(l);t=typeof t=="function"?t:t===void 0?LO:Wn(+t),e=typeof e=="function"?e:Wn(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?NO:Wn(+n);function l(f){var d,h,p,v=(f=CO(f)).length,g,y=!1,m,b=new Array(v),_=new Array(v);for(a==null&&(s=o(m=c())),d=0;d<=v;++d){if(!(d=h;--p)s.point(b[p],_[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),_[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):_[d]))}if(m)return s=null,m+""||null}function u(){return ho().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Wn(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Wn(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Wn(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Wn(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Wn(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Wn(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Wn(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}function fU(){var t=Vg().curve(lM),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Gl(n())},delete t.lineX0,t.lineEndAngle=function(){return Gl(r())},delete t.lineX1,t.lineInnerRadius=function(){return Gl(i())},delete t.lineY0,t.lineOuterRadius=function(){return Gl(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Cg(o)):e()._curve},t}var dU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i!e(f)))a=!0;else{if(n.push(l),r.push(u),a&&o){a=!1;const[f,d]=o;i.push([f,l,d,u])}o=[l,u]}}return[n.concat(r),i]}const PE=rc(t=>{const{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,a=t.ownerDocument;je(t).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(Ee,i),je(t).maybeAppend("area-path",()=>a.createElement("path",{})).style("d",e).call(Ee,r)}),ta=(t,e)=>{const{curve:n,gradient:r=!1,defined:i=l=>!Number.isNaN(l)&&l!==void 0&&l!==null,connect:a=!1}=t,o=dU(t,["curve","gradient","defined","connect"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d}=f,{color:h=d,seriesColor:p,seriesX:v,seriesY:g}=u,y=zn(s),m=AO(s,u),b=r&&p?MO(p,v,g,r,void 0,y):h,_=Object.assign(Object.assign(Object.assign(Object.assign({},f),{stroke:b,fill:b}),m&&{transform:m}),o),[O,w]=hU(l,i),M=le(_,"connect"),E=!!w.length,A=P=>je(c.createElement("path",{})).style("d",P||"").call(Ee,_).node();if(Nn(s)){const P=C=>{const j=s.getCenter(),N=C.slice(0,C.length/2),k=C.slice(C.length/2);return fU().angle((R,D)=>nc(ur(N[D],j))).outerRadius((R,D)=>Kn(N[D],j)).innerRadius((R,D)=>Kn(k[D],j)).defined((R,D)=>[...N[D],...k[D]].every(i)).curve(n)(k)};return!E||a&&!Object.keys(M).length?A(P(O)):E&&!a?A(P(l)):je(new PE).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},M),o)).style("areaPath",P(l)).style("connectPath",w.map(P).join("")).node()}else{const P=C=>{const j=C.slice(0,C.length/2),N=C.slice(C.length/2);return y?Vg().y((k,R)=>j[R][1]).x1((k,R)=>j[R][0]).x0((k,R)=>N[R][0]).defined((k,R)=>[...j[R],...N[R]].every(i)).curve(n)(j):Vg().x((k,R)=>j[R][0]).y1((k,R)=>j[R][1]).y0((k,R)=>N[R][1]).defined((k,R)=>[...j[R],...N[R]].every(i)).curve(n)(j)};return!E||a&&!Object.keys(M).length?A(P(O)):E&&!a?A(P(l)):je(new PE).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},M),o)).style("areaPath",P(l)).style("connectPath",w.map(P).join("")).node()}}};ta.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const CE=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Nn(n)?_g:Al;return ta(Object.assign({curve:i},t),e)(...r)}};CE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"square"});var pU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=pU(t,[]),{coordinate:r}=e;return(...i)=>{const a=Nn(r)?gM:zn(r)?wM:OM;return ta(Object.assign({curve:a},n),e)(...i)}};kE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"smooth"});const RE=(t,e)=>(...n)=>ta(Object.assign({curve:MM},t),e)(...n);RE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"hvh"});const LE=(t,e)=>(...n)=>ta(Object.assign({curve:EM},t),e)(...n);LE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"vh"});const NE=(t,e)=>(...n)=>ta(Object.assign({curve:AM},t),e)(...n);NE.props=Object.assign(Object.assign({},ta.props),{defaultMarker:"hv"});const IE={area:CE,smooth:kE,hvh:RE,vh:LE,hv:NE},jE=()=>(t,e,n,r)=>{var i,a;const{x:o,y:s,y1:c,series:l}=n,{x:u,y:f}=e,d=l?Array.from(Zn(t,y=>l[y]).values()):[t],h=d.map(y=>y[0]).filter(y=>y!==void 0),p=(((i=u==null?void 0:u.getBandWidth)===null||i===void 0?void 0:i.call(u))||0)/2,v=(((a=f==null?void 0:f.getBandWidth)===null||a===void 0?void 0:a.call(f))||0)/2,g=Array.from(d,y=>{const m=y.length,b=new Array(m*2);for(let _=0;_(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=sn(n,"y");return[t,Nt({},e,{encode:{y1:jn([...i])}})]};DE.props={};const FE=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=sn(n,"x");return[t,Nt({},e,{encode:{x1:jn([...i])}})]};FE.props={};var BE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n=!0,arrowSize:r="40%"}=t,i=BE(t,["arrow","arrowSize"]),{document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=BE(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=Wi();if(v.moveTo(...h),v.lineTo(...p),n){const[g,y]=hW(h,p,{arrowSize:r});v.moveTo(...p),v.lineTo(...g),v.moveTo(...p),v.lineTo(...y)}return je(a.createElement("path",{})).call(Ee,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(Ee,i).node()}};Xg.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const zE=(t,e)=>{const{arrow:n=!1}=t;return(...r)=>Xg(Object.assign(Object.assign({},t),{arrow:n}),e)(...r)};zE.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var GE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=GE(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=GE(s,["color"]),{color:u=c,transform:f}=o,[d,h]=a,p=Wi();if(p.moveTo(d[0],d[1]),Nn(r)){const v=r.getCenter();p.quadraticCurveTo(v[0],v[1],h[0],h[1])}else{const v=SO(d,h),g=Kn(d,h)/2;El(p,d,h,v,g)}return je(i.createElement("path",{})).call(Ee,l).style("d",p.toString()).style("stroke",u).style("transform",f).call(Ee,n).node()}};WE.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var HE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=HE(t,[]),{document:r}=e;return(i,a,o)=>{const{color:s}=o,c=HE(o,["color"]),{color:l=s,transform:u}=a,[f,d]=i,h=Wi();return h.moveTo(f[0],f[1]),h.bezierCurveTo(f[0]/2+d[0]/2,f[1],f[0]/2+d[0]/2,d[1],d[0],d[1]),je(r.createElement("path",{})).call(Ee,c).style("d",h.toString()).style("stroke",l).style("transform",u).call(Ee,n).node()}};YE.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var VE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{cornerRatio:n=1/3}=t,r=VE(t,["cornerRatio"]),{coordinate:i,document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=VE(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=vU(h,p,i,n);return je(a.createElement("path",{})).call(Ee,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(Ee,r).node()}};XE.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const $E={link:zE,arc:WE,smooth:YE,vhv:XE},$g=t=>(e,n,r,i)=>{const{x:a,y:o,x1:s=a,y1:c=o}=r,l=ds(n,r,t),u=e.map(f=>[i.map(l([+a[f],+o[f]],f)),i.map(l([+s[f],+c[f]],f))]);return[e,u]};$g.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:$E,channels:[...ii({shapes:Object.keys($E)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...vr(),{type:DE},{type:FE}],postInference:[...Or(),...yo()]};var gU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=gU(o,["color"]),{color:l=s,src:u="",size:f=32,transform:d=""}=a;let{width:h=f,height:p=f}=t;const[[v,g]]=i,[y,m]=n.getSize();h=typeof h=="string"?Vd(h)*y:h,p=typeof p=="string"?Vd(p)*m:p;const b=v-Number(h)/2,_=g-Number(p)/2;return je(r.createElement("image",{})).call(Ee,c).style("x",b).style("y",_).style("img",u).style("stroke",l).style("transform",d).call(Ee,t).style("width",h).style("height",p).node()}};UE.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const qE={image:UE},ZE=t=>{const{cartesian:e}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};ZE.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:qE,channels:[...ii({shapes:Object.keys(qE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...vr(),{type:Zd},{type:Kd}],postInference:[...Or(),...yo()]};var yU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iKn(o,r));return i.forEach((o,s)=>{if(s===0){n.moveTo(o[0],o[1]);return}const c=a[s],l=t[s-1],u=a[s-1];u!==void 0&&Math.abs(c-u)<1e-10?El(n,l,o,r,c):n.lineTo(o[0],o[1])}),n.closePath(),n}return dW(n,t)}const KE=(t,e)=>{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=yU(o,["color"]),{color:l=s,transform:u}=a,f=mU(i,n);return je(r.createElement("path",{})).call(Ee,c).style("d",f.toString()).style("stroke",l).style("fill",l).style("transform",u).call(Ee,t).node()}};KE.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var QE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=QE(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=QE(s,["color"]),{color:u=c,transform:f}=o,d=bU(a,r);return je(i.createElement("path",{})).call(Ee,l).style("d",d.toString()).style("fill",u||c).style("stroke",u||c).style("transform",f).call(Ee,n).node()}};JE.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const tA={polygon:KE,ribbon:JE},eA=()=>(t,e,n,r)=>{const i=Object.entries(n).filter(([s])=>s.startsWith("x")).map(([,s])=>s),a=Object.entries(n).filter(([s])=>s.startsWith("y")).map(([,s])=>s),o=t.map(s=>{const c=[];for(let l=0;l{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s,transform:c}=a,{color:l,fill:u=l,stroke:f=l}=o,d=xU(o,["color","fill","stroke"]),h=_U(i,n);return je(r.createElement("path",{})).call(Ee,d).style("d",h.toString()).style("stroke",f).style("fill",s||u).style("transform",c).call(Ee,t).node()}};nA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var OU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s,transform:c}=a,l=4,{color:u,fill:f=u,stroke:d=u}=o,h=OU(o,["color","fill","stroke"]),p=wU(i,n,l);return je(r.createElement("path",{})).call(Ee,h).style("d",p.toString()).style("stroke",d).style("fill",s||f).style("transform",c).call(Ee,t).node()}};rA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const iA={box:nA,violin:rA},aA=()=>(t,e,n,r)=>{const{x:i,y:a,y1:o,y2:s,y3:c,y4:l,series:u}=n,f=e.x,d=e.series,h=Array.from(t,p=>{const v=f.getBandWidth(f.invert(+i[p])),g=d?d.getBandWidth(d.invert(+(u==null?void 0:u[p]))):1,y=v*g,m=(+(u==null?void 0:u[p])||0)*v,b=+i[p]+m+y/2,[_,O,w,M,E]=[+a[p],+o[p],+s[p],+c[p],+l[p]];return[[b-y/2,E],[b+y/2,E],[b,E],[b,M],[b-y/2,M],[b+y/2,M],[b+y/2,O],[b-y/2,O],[b-y/2,w],[b+y/2,w],[b,O],[b,_],[b-y/2,_],[b+y/2,_]].map(P=>r.map(P))});return[t,h]};aA.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:iA,channels:[...ii({shapes:Object.keys(iA)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...vr(),{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const oA={vector:Xg},sA=()=>(t,e,n,r)=>{const{x:i,y:a,size:o,rotate:s}=n,[c,l]=r.getSize(),u=t.map(f=>{const d=+s[f]/180*Math.PI,h=+o[f],p=h/c,v=h/l,g=p*Math.cos(d),y=-v*Math.sin(d);return[r.map([+i[f]-g/2,+a[f]-y/2]),r.map([+i[f]+g/2,+a[f]+y/2])]});return[t,u]};sA.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:oA,channels:[...ii({shapes:Object.keys(oA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...vr()],postInference:[...Or(),...yo()]};var cA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ir[0]).y(r=>r[1])(t);const n=e.getCenter();return Bd()({startAngle:0,endAngle:Math.PI*2,outerRadius:Kn(t[0],n),innerRadius:Kn(t[1],n)})}function EU(t,e){if(!Nn(t))return e;const[n,r]=t.getCenter();return`translate(${n}, ${r}) ${e||""}`}const Ug=(t,e)=>{const{arrow:n,arrowSize:r=4}=t,i=cA(t,["arrow","arrowSize"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,lineWidth:f}=l,d=cA(l,["color","lineWidth"]),{color:h=u,size:p=f}=c,v=n?SU(o,r,Object.assign({fill:i.stroke||h,stroke:i.stroke||h},le(i,"arrow"))):null,g=MU(s,a),y=EU(a,c.transform);return je(o.createElement("path",{})).call(Ee,d).style("d",g).style("stroke",h).style("lineWidth",p).style("transform",y).style("markerEnd",v).call(Ee,i).node()}};Ug.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const lA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(jl)?[t,e]:[t,Nt({},e,{encode:{x:jn(n)}})]};lA.props={};const uA={line:Ug},fA=t=>(e,n,r,i)=>{const{x:a}=r,o=ds(n,r,Nt({style:{bandOffset:0}},t)),s=Array.from(e,c=>{const l=[a[c],1],u=[a[c],0];return[l,u].map(f=>i.map(o(f,c)))});return[e,s]};fA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:uA,channels:[...mc({shapes:Object.keys(uA)}),{name:"x",required:!0}],preInference:[...vr(),{type:lA}],postInference:[...Or()]};const dA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(jl)?[t,e]:[t,Nt({},e,{encode:{y:jn(n)}})]};dA.props={};const hA={line:Ug},pA=t=>(e,n,r,i)=>{const{y:a}=r,o=ds(n,r,Nt({style:{bandOffset:0}},t)),s=Array.from(e,c=>{const l=[0,a[c]],u=[1,a[c]];return[l,u].map(f=>i.map(o(f,c)))});return[e,s]};pA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:hA,channels:[...mc({shapes:Object.keys(hA)}),{name:"y",required:!0}],preInference:[...vr(),{type:dA}],postInference:[...Or()]};var vA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie[0]).y(e=>e[1])(t)}function PU(t,e,n,r,i=0){const[[a,o],[s,c]]=e;if(zn(t)){const d=a+n,h=s+r,p=d+i;return[[d,o],[p,o],[p,c],[h,c]]}const l=o-n,u=c-r,f=l-i;return[[a,l],[a,f],[s,f],[s,u]]}const gA=(t,e)=>{const{offset:n=0,offset1:r=n,offset2:i=n,connectLength1:a,endMarker:o=!0}=t,s=vA(t,["offset","offset1","offset2","connectLength1","endMarker"]),{coordinate:c}=e;return(l,u,f)=>{const{color:d,connectLength1:h}=f,p=vA(f,["color","connectLength1"]),{color:v,transform:g}=u,y=PU(c,l,r,i,a!=null?a:h),m=le(Object.assign(Object.assign({},s),f),"endMarker");return je(new ri).call(Ee,p).style("path",TU(y)).style("stroke",v||d).style("transform",g).style("markerEnd",o?new Cn({className:"marker",style:Object.assign(Object.assign({},m),{symbol:AU})}):null).call(Ee,s).node()}};gA.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const yA={connector:gA},mA=(...t)=>$g(...t);mA.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:yA,channels:[...mc({shapes:Object.keys(yA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...vr()],postInference:[...Or()]};function bA(t,e,n,r){if(e)return()=>[0,1];const{[t]:i,[`${t}1`]:a}=n;return o=>{var s;const c=((s=r.getBandWidth)===null||s===void 0?void 0:s.call(r,r.invert(+a[o])))||0;return[i[o],a[o]+c]}}function qg(t={}){const{extendX:e=!1,extendY:n=!1}=t;return(r,i,a,o)=>{const s=bA("x",e,a,i.x),c=bA("y",n,a,i.y),l=Array.from(r,u=>{const[f,d]=s(u),[h,p]=c(u);return[[f,h],[d,h],[d,p],[f,p]].map(b=>o.map(b))});return[r,l]}}const xA={range:fs},_A=()=>qg();_A.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:xA,channels:[...mc({shapes:Object.keys(xA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...vr()],postInference:[...Or()]};const OA=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(jl))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,Nt({},e,{encode:{x:jn(r(n,0)),x1:jn(r(n,1))}})]}return[t,e]};OA.props={};const wA={range:fs},SA=()=>qg({extendY:!0});SA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:wA,channels:[...mc({shapes:Object.keys(wA)}),{name:"x",required:!0}],preInference:[...vr(),{type:OA}],postInference:[...Or()]};const MA=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(jl))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,Nt({},e,{encode:{y:jn(r(n,0)),y1:jn(r(n,1))}})]}return[t,e]};MA.props={};const EA={range:fs},AA=()=>qg({extendX:!0});AA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:EA,channels:[...mc({shapes:Object.keys(EA)}),{name:"y",required:!0}],preInference:[...vr(),{type:MA}],postInference:[...Or()]};var TA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n,colorAttribute:r}=t,i=TA(t,["arrow","colorAttribute"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,stroke:f}=l,d=TA(l,["color","stroke"]),{d:h,color:p=u}=c,[v,g]=a.getSize();return je(o.createElement("path",{})).call(Ee,d).style("d",typeof h=="function"?h({width:v,height:g}):h).style(r,p).call(Ee,i).node()}};Zg.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const PA=(t,e)=>Zg(Object.assign({colorAttribute:"fill"},t),e);PA.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const CA=(t,e)=>Zg(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);CA.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const kA={path:PA,hollow:CA},RA=t=>(e,n,r,i)=>[e,e.map(()=>[[0,0]])];RA.props={defaultShape:"path",defaultLabelShape:"label",shape:kA,composite:!1,channels:[...ii({shapes:Object.keys(kA)}),{name:"d",scale:"identity"}],preInference:[...vr()],postInference:[...Or()]};var CU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{render:n}=t,r=CU(t,["render"]);return i=>{const[[a,o]]=i;return n(Object.assign(Object.assign({},r),{x:a,y:o}),e)}};LA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const NA=()=>(t,e)=>{const{style:n={}}=e;return[t,Nt({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};NA.props={};const kU={shape:LA},IA=t=>{const{cartesian:e}=t;return e?Ag:(n,r,i,a)=>{const{x:o,y:s}=i,c=ds(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};IA.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:kU,channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...vr(),{type:Zd},{type:Kd},{type:NA}]};var RU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{transform:o}=i,{color:s}=a,c=RU(a,["color"]),{color:l=s}=i,[u,...f]=r,d=Wi();return d.moveTo(...u),f.forEach(([h,p])=>{d.lineTo(h,p)}),d.closePath(),je(n.createElement("path",{})).call(Ee,c).style("d",d.toString()).style("stroke",l||s).style("fill",l||s).style("fillOpacity",.4).style("transform",o).call(Ee,t).node()}};jA.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const DA={density:jA},FA=()=>(t,e,n,r)=>{const{x:i,series:a}=n,o=Object.entries(n).filter(([f])=>f.startsWith("y")).map(([,f])=>f),s=Object.entries(n).filter(([f])=>f.startsWith("size")).map(([,f])=>f);if(i===void 0||o===void 0||s===void 0)throw new Error("Missing encode for x or y or size channel.");const c=e.x,l=e.series,u=Array.from(t,f=>{const d=c.getBandWidth(c.invert(+i[f])),h=l?l.getBandWidth(l.invert(+(a==null?void 0:a[f]))):1,p=d*h,v=(+(a==null?void 0:a[f])||0)*d,g=+i[f]+v+p/2;return[...o.map((m,b)=>[g+ +s[b][f]/t.length,+o[b][f]]),...o.map((m,b)=>[g-+s[b][f]/t.length,+o[b][f]]).reverse()].map(m=>r.map(m))});return[t,u]};FA.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:DA,channels:[...ii({shapes:Object.keys(DA)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...vr(),{type:Dl},{type:ls}],postInference:[...Or(),...yc()],interaction:{shareTooltip:!0}};const fpt=yv(3);function LU(t,e=(...r)=>`${r[0]}`,n=16){const r=yv(n);return(...i)=>{const a=e(...i);let o=r.get(a);return r.has(a)?r.get(a):(o=t(...i),r.set(a,o),o)}}function NU(t){return typeof t=="string"?t.split(" ").map(e=>{const[n,r]=e.split(":");return[+n,r]}):t}function Qd(t,e,n){const r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}const IU=LU((t,e,n)=>{const r=Qd(n,t*2,t*2),i=r.getContext("2d"),a=t,o=t;if(e===1)i.beginPath(),i.arc(a,o,t,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{const s=i.createRadialGradient(a,o,t*e,a,o,t);s.addColorStop(0,"rgba(0,0,0,1)"),s.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=s,i.fillRect(0,0,2*t,2*t)}return r},t=>`${t}`);function jU(t,e){const r=Qd(e,256,1).getContext("2d"),i=r.createLinearGradient(0,0,256,1);return NU(t).forEach(([a,o])=>{i.addColorStop(a,o)}),r.fillStyle=i,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}function DU(t,e,n,r,i,a){const{blur:o}=i;let s=r.length;for(;s--;){const{x:c,y:l,value:u,radius:f}=r[s],d=Math.min(u,n),h=c-f,p=l-f,v=IU(f,1-o,a),g=(d-e)/(n-e);t.globalAlpha=Math.max(g,.001),t.drawImage(v,h,p)}return t}function FU(t,e,n,r,i){const{minOpacity:a,opacity:o,maxOpacity:s,useGradientOpacity:c}=i,l=0,u=0,f=e,d=n,h=t.getImageData(l,u,f,d),p=h.data,v=p.length;for(let g=3;g{const i=t[r];return e(i,r)||(n[r]=i),n},{})}const BA=(t,e)=>{const{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:s}=t,c=zU(t,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:l,createCanvas:u,document:f}=e;return(d,h,p)=>{const{transform:v}=h,[g,y]=l.getSize(),m=d.map(M=>({x:M[0],y:M[1],value:M[2],radius:M[3]})),b=Ai(d,M=>M[2]),_=Sn(d,M=>M[2]),w=g&&y?BU(g,y,b,_,m,GU({gradient:n,opacity:r,minOpacity:a,maxOpacity:i,blur:o,useGradientOpacity:s},M=>M===void 0),u):{canvas:null};return je(f.createElement("image",{})).call(Ee,p).style("x",0).style("y",0).style("width",g).style("height",y).style("src",w.canvas).style("transform",v).call(Ee,c).node()}};BA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const zA={heatmap:BA},GA=t=>(e,n,r,i)=>{const{x:a,y:o,size:s,color:c}=r,l=Array.from(e,u=>{const f=s?+s[u]:40;return[...i.map([+a[u],+o[u]]),c[u],f]});return[[0],[l]]};GA.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:zA,channels:[...ii({shapes:Object.keys(zA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...vr(),{type:ls},{type:qd}],postInference:[...Or(),...yo()]};const WA=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];WA.props={};const HA=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];HA.props={};const YA=t=>new Xr(t);YA.props={};const Jd=Symbol("defaultUnknown");function VA(t,e,n){for(let r=0;r`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}class th extends xl{getDefaultOptions(){return{domain:[],range:[],unknown:Jd}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&VA(this.domainIndexMap,this.getDomain(),this.domainKey),XA({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&VA(this.rangeIndexMap,this.getRange(),this.rangeKey),XA({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=$A(n),this.rangeKey=$A(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new th(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}}const UA=t=>new th(t);UA.props={};function qA({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):n}function WU({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function HU({map:t,initKey:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function YU(t){return typeof t=="object"?t.valueOf():t}class ZA extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=YU,e!==null)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(qA({map:this.map,initKey:this.initKey},e))}has(e){return super.has(qA({map:this.map,initKey:this.initKey},e))}set(e,n){return super.set(WU({map:this.map,initKey:this.initKey},e),n)}delete(e){return super.delete(HU({map:this.map,initKey:this.initKey},e))}}function VU(t){const e=Math.min(...t);return t.map(n=>n/e)}function XU(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function $U(t){return Math.round(t*1e12)/1e12}function UU(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=XU(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=VU(l),m=y.reduce((j,N)=>j+N),b=g/m,_=new ZA(e.map((j,N)=>{const k=y[N]*b;return[j,o?Math.floor(k):k]})),O=new ZA(e.map((j,N)=>{const R=y[N]*b+v;return[j,o?Math.floor(R):R]})),w=Array.from(O.values()).reduce((j,N)=>j+N),E=(d-(w-w/c*i))*s,A=u+E;let P=o?Math.round(A):A;const C=new Array(c);for(let j=0;jd+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}class mo extends th{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Jd,flex:[]}}constructor(e){super(e)}clone(){return new mo(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=qU({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}}const KA=t=>new mo(t);KA.props={};class eh extends xl{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:Lv}}map(e){return sd(e)?e:this.options.unknown}invert(e){return this.map(e)}clone(){return new eh(this.options)}getTicks(){const{domain:e,tickCount:n,tickMethod:r}=this.options,[i,a]=e;return!Zs(i)||!Zs(a)?[]:r(i,a,n)}}const QA=t=>new eh(t);QA.props={};class Kg extends mo{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Jd,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new Kg(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}const JA=t=>new Kg(t);JA.props={};var tT=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,bo="\\d\\d?",xo="\\d\\d",ZU="\\d{3}",KU="\\d{4}",Wl="[^\\s]+",eT=/\[([^]*?)\]/gm;function nT(t,e){for(var n=[],r=0,i=t.length;r-1?i:null}};function hs(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},nh=hs({},oT),tq=function(t){return nh=hs(nh,t)},sT=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},yi=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+yi(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+yi(Math.floor(Math.abs(e)/60),2)+":"+yi(Math.abs(e)%60,2)}},cT=function(t){return+t-1},lT=[null,bo],uT=[null,Wl],fT=["isPm",Wl,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],dT=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=+e[1]*60+parseInt(e[2],10);return e[0]==="+"?n:-n}return 0}],nq={D:["day",bo],DD:["day",xo],Do:["day",bo+Wl,function(t){return parseInt(t,10)}],M:["month",bo,cT],MM:["month",xo,cT],YY:["year",xo,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",bo,void 0,"isPm"],hh:["hour",xo,void 0,"isPm"],H:["hour",bo],HH:["hour",xo],m:["minute",bo],mm:["minute",xo],s:["second",bo],ss:["second",xo],YYYY:["year",KU],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",xo,function(t){return+t*10}],SSS:["millisecond",ZU],d:lT,dd:lT,ddd:uT,dddd:uT,MMM:["month",Wl,rT("monthNamesShort")],MMMM:["month",Wl,rT("monthNames")],a:fT,A:fT,ZZ:dT,Z:dT},rh={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},rq=function(t){return hs(rh,t)},hT=function(t,e,n){if(e===void 0&&(e=rh.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=rh[e]||e;var r=[];e=e.replace(eT,function(a,o){return r.push(o),"@@@"});var i=hs(hs({},nh),n);return e=e.replace(tT,function(a){return eq[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};function iq(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=rh[e]||e,t.length>1e3)return null;var r=new Date,i={year:r.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=e.replace(eT,function(_,O){return o.push(sT(O)),"@@@"}),c={},l={};s=sT(s).replace(tT,function(_){var O=nq[_],w=O[0],M=O[1],E=O[3];if(c[w])throw new Error("Invalid format. "+w+" specified twice in format");return c[w]=!0,E&&(l[E]=!0),a.push(O),"("+M+")"}),Object.keys(l).forEach(function(_){if(!c[_])throw new Error("Invalid format. "+_+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var f=hs(hs({},nh),n),d=1;d11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return y}var dpt={format:hT,parse:iq,defaultI18n:oT,setGlobalDateI18n:tq,setGlobalDateMasks:rq},hpt=null;const Hl=1e3,Yl=Hl*60,Vl=Yl*60,ps=Vl*24,xc=ps*7,pT=ps*30,vT=ps*365;function Zr(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;+g<+u;n(g,p),a(g))h.push(new Date(+g));return h},duration:t}}const aq=Zr(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),oq=Zr(Hl,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+Hl*e)},t=>t.getSeconds()),sq=Zr(Yl,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+Yl*e)},t=>t.getMinutes()),cq=Zr(Vl,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Vl*e)},t=>t.getHours()),lq=Zr(ps,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ps*e)},t=>t.getDate()-1),gT=Zr(pT,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),uq=Zr(xc,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+xc*e)},t=>{const e=gT.floor(t),n=new Date(+t);return Math.floor((+n-+e)/xc)}),fq=Zr(vT,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),yT={millisecond:aq,second:oq,minute:sq,hour:cq,day:lq,week:uq,month:gT,year:fq},dq=Zr(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),hq=Zr(Hl,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+Hl*e)},t=>t.getUTCSeconds()),pq=Zr(Yl,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+Yl*e)},t=>t.getUTCMinutes()),vq=Zr(Vl,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Vl*e)},t=>t.getUTCHours()),gq=Zr(ps,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ps*e)},t=>t.getUTCDate()-1),mT=Zr(pT,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),yq=Zr(xc,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+xc*e)},t=>{const e=mT.floor(t),n=new Date(+t);return Math.floor((+n-+e)/xc)}),mq=Zr(vT,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),bT={millisecond:dq,second:hq,minute:pq,hour:vq,day:gq,week:yq,month:mT,year:mq};function bq(t){const e=t?bT:yT,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function xT(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=bq(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Ev(s,d,0,h,u);let v;if(p===h){const g=G2(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=xT(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u},_q=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=xT(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};function Oq(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)+r,r=>new Date(r)]}chooseNice(){return _q}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?bT:yT,i=n?wq:ts;return a=>hT(i(a),e||Oq(a,r))}clone(){return new Qg(this.options)}}const _T=t=>new Qg(t);_T.props={};const OT=t=>e=>-t(-e),Jg=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?OT(r):r},ty=(t,e)=>{const n=t===Math.E?Math.exp:r=>wr(t,r);return e?OT(n):n},Sq=(t,e,n,r=10)=>{const i=t<0,a=ty(r,i),o=Jg(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2{const i=t<0,a=Jg(r,i),o=ty(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u};class ey extends ld{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:_l,tickMethod:Sq,tickCount:5}}chooseNice(){return Mq}getTickMethodOptions(){const{domain:e,tickCount:n,base:r}=this.options,i=e[0],a=e[e.length-1];return[i,a,n,r]}chooseTransforms(){const{base:e,domain:n}=this.options,r=n[0]<0;return[Jg(e,r),ty(e,r)]}clone(){return new ey(this.options)}}const wT=t=>new ey(t);wT.props={};const Eq=t=>e=>e<0?-wr(-e,t):wr(e,t),Aq=t=>e=>e<0?-wr(-e,1/t):wr(e,1/t),Tq=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class ih extends ld{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:_l,tickMethod:es,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[ts,ts];const n=e===.5?Tq:Eq(e),r=Aq(e);return[n,r]}clone(){return new ih(this.options)}}const ST=t=>new ih(t);ST.props={};class ny extends ih{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:_l,tickMethod:es,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new ny(this.options)}}const MT=t=>new ny(t);MT.props={};const ET=t=>new Js(t);ET.props={};const AT=t=>new vd(t);AT.props={};const TT=t=>new pd(t);TT.props={};const Pq=t=>e=>{const n=t(e);return Zs(n)?Math.round(n):n};function Cq(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?Pq(o):o;this.output=Ks(l,c,i,r)},n.prototype.invert=void 0}}var kq=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},ry;function Rq(t){return[t(0),t(1)]}const Lq=t=>{const[e,n]=t;return Ks(Qs(0,1),od(e,n))};let iy=ry=class extends Xr{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:ts,tickMethod:es,tickCount:5}}constructor(e){super(e)}clone(){return new ry(this.options)}};iy=ry=kq([Cq(Rq,Lq)],iy);const PT=t=>new iy(t);PT.props={};const CT=t=>new Sl(t);CT.props={};function ay({colorDefault:t,colorBlack:e,colorWhite:n,colorStroke:r,colorBackground:i,padding1:a,padding2:o,padding3:s,alpha90:c,alpha65:l,alpha45:u,alpha25:f,alpha10:d,category10:h,category20:p,sizeDefault:v=1,padding:g="auto",margin:y=16}){return{padding:g,margin:y,size:v,color:t,category10:h,category20:p,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:i,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:e,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,strokeWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,strokeWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:e,gridStrokeOpacity:d,labelAlign:"horizontal",labelFill:e,labelOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:a,line:!1,lineLineWidth:.5,lineStroke:e,lineStrokeOpacity:u,tickLength:4,tickLineWidth:1,tickStroke:e,tickOpacity:u,titleFill:e,titleOpacity:c,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",label:!1,tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:e,itemLabelFillOpacity:c,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,itemSpacing:[a,a],itemValueFill:e,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:e,navButtonFillOpacity:.65,navPageNumFill:e,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:e,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:e,tickStrokeOpacity:.25,rowPadding:a,colPadding:o,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:e,handleLabelFillOpacity:u,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:e,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:e,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:e,labelFillOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:c,tickStroke:e,tickStrokeOpacity:u},label:{fill:e,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:e,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:e,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:t,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:e,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:e,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:e,titleFillOpacity:c,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:e,subtitleFillOpacity:l,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"}}}const Nq=ay({colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),oy=t=>Nt({},Nq,t);oy.props={};const kT=t=>Nt({},oy(),{category10:"category10",category20:"category20"},t);kT.props={};const Iq=ay({colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"#141414",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25}),RT=t=>Nt({},Iq,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},t),LT=t=>Object.assign({},RT(),{category10:"category10",category20:"category20"},t);LT.props={};const jq=ay({colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1}),NT=t=>Nt({},jq,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(e,n)=>n!==0},axisRight:{gridFilter:(e,n)=>n!==0},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},t);NT.props={};const IT=t=>(...e)=>{const n=lo(Object.assign({},{crossPadding:50},t))(...e);return Q2(n,t),n};IT.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"bottom"});function ypt(){}const jT=t=>(...e)=>{const n=lo(Object.assign({},{crossPadding:10},t))(...e);return Q2(n,t),n};jT.props=Object.assign(Object.assign({},lo.props),{defaultPosition:"left"});var sy=function(){},Dq=function(t,e,n){var r=t,i=tr(e)?e.split("."):e;return i.forEach(function(a,o){o1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var n=this.pageViews,r=(0,S.CR)(Bq(n.map(function(f){var d=f.getBBox(),h=d.width,p=d.height;return[h,p]})).map(function(f){return Math.max.apply(Math,(0,S.ev)([],(0,S.CR)(f),!1))}),2),i=r[0],a=r[1],o=this.attributes,s=o.pageWidth,c=s===void 0?i:s,l=o.pageHeight,u=l===void 0?a:l;return{pageWidth:c,pageHeight:u}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=t.prototype.getBBox.call(this),r=n.x,i=n.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,c=o.pageHeight;return new Gn(r,i,s+a.width,c)},e.prototype.goTo=function(n){var r=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,c=a.playWindow,l=a.pageViews;if(s!=="idle"||n<0||l.length<=0||n>=l.length)return null;l[o].setLocalPosition(0,0),this.prepareFollowingPage(n);var u=(0,S.CR)(this.getFollowingPageDiff(n),2),f=u[0],d=u[1];this.playState="running";var h=X_(c,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-f,", ").concat(-d,")")}],i);return $s(h,function(){r.innerCurrPage=n,r.playState="idle",r.setVisiblePages([n]),r.updatePageInfo()}),h},e.prototype.prev=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i<=0)return null;var a=n?(i-1+r)%r:(0,cr.Z)(i-1,0,r);return this.goTo(a)},e.prototype.next=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i>=r-1)return null;var a=n?(i+1)%r:(0,cr.Z)(i+1,0,r);return this.goTo(a)},e.prototype.renderClipPath=function(n){var r=this.pageShape,i=r.pageWidth,a=r.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=n.maybeAppendByClassName(Yi.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(n){this.playWindow.children.forEach(function(r,i){n.includes(i)?hl(r):co(r)})},e.prototype.adjustControllerLayout=function(){var n=this,r=n.prevBtnGroup,i=n.nextBtnGroup,a=n.pageInfoGroup,o=this.attributes,s=o.orientation,c=o.controllerPadding,l=a.getBBox(),u=l.width,f=l.height,d=(0,S.CR)(s==="horizontal"?[-180,0]:[-90,90],2),h=d[0],p=d[1];r.setLocalEulerAngles(h),i.setLocalEulerAngles(p);var v=r.getBBox(),g=v.width,y=v.height,m=i.getBBox(),b=m.width,_=m.height,O=Math.max(g,u,b),w=s==="horizontal"?{offset:[[0,0],[g/2+c,0],[g+u+c*2,0]],textAlign:"start"}:{offset:[[O/2,-y-c],[O/2,0],[O/2,_+c]],textAlign:"center"},M=(0,S.CR)(w.offset,3),E=(0,S.CR)(M[0],2),A=E[0],P=E[1],C=(0,S.CR)(M[1],2),j=C[0],N=C[1],k=(0,S.CR)(M[2],2),R=k[0],D=k[1],F=w.textAlign,B=a.querySelector("text");B&&(B.style.textAlign=F),r.setLocalPosition(A,P),a.setLocalPosition(j,N),i.setLocalPosition(R,D)},e.prototype.updatePageInfo=function(){var n,r=this,i=r.currPage,a=r.pageViews,o=r.attributes.formatter;a.length<2||((n=this.pageInfoGroup.querySelector(Yi.pageInfo.class))===null||n===void 0||n.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(n){var r=this.currPage;if(r===n)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,c=n=2,l=n.maybeAppendByClassName(Yi.controller,"g");if(Uf(l.node(),c),!!c){var u=en(this.attributes,"button"),f=en(this.attributes,"pageNum"),d=(0,S.CR)(Na(u),2),h=d[0],p=d[1],v=h.size,g=(0,S._T)(h,["size"]),y=!l.select(Yi.prevBtnGroup.class).node(),m=l.maybeAppendByClassName(Yi.prevBtnGroup,"g").styles(p);this.prevBtnGroup=m.node();var b=m.maybeAppendByClassName(Yi.prevBtn,"path"),_=l.maybeAppendByClassName(Yi.nextBtnGroup,"g").styles(p);this.nextBtnGroup=_.node();var O=_.maybeAppendByClassName(Yi.nextBtn,"path");[b,O].forEach(function(M){M.styles((0,S.pi)((0,S.pi)({},g),{transformOrigin:"center"})),pv(M.node(),v,!0)});var w=l.maybeAppendByClassName(Yi.pageInfoGroup,"g");this.pageInfoGroup=w.node(),w.maybeAppendByClassName(Yi.pageInfo,"text").styles(f),this.updatePageInfo(),l.node().setLocalPosition(o+i,s/2),y&&(this.prevBtnGroup.addEventListener("click",function(){r.prev()}),this.nextBtnGroup.addEventListener("click",function(){r.next()}))}},e.prototype.render=function(n,r){var i=Ue(r);this.renderClipPath(i),this.renderController(i),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var n=this,r=v_(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(Ne.INSERTED,r),this.playWindow.addEventListener(Ne.REMOVED,r)},e}(Lr),Ti=Fi({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item");function Gq(t){var e=t.querySelector(Ti.marker.class);return e?e.style:{}}var Wq=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{span:[1,1],marker:function(){return new nl({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return Object.defineProperty(e.prototype,"showValue",{get:function(){var n=this.attributes.valueText;return n?typeof n=="string"||typeof n=="number"?n!=="":typeof n=="function"?!0:n.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var n=this.labelGroup,r=this.valueGroup,i=this.attributes.markerSize,a=n.node().getBBox(),o=a.width,s=a.height,c=r.node().getBBox(),l=c.width,u=c.height;return{markerWidth:i,labelWidth:o,valueWidth:l,height:Math.max(i,s,u)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var n=this.attributes.span;if(!n)return[1,1];var r=(0,S.CR)(zr(n),2),i=r[0],a=r[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n,r=this.attributes,i=r.markerSize,a=r.width,o=this.actualSpace,s=o.markerWidth,c=o.height,l=this.actualSpace,u=l.labelWidth,f=l.valueWidth,d=(0,S.CR)(this.spacing,2),h=d[0],p=d[1];if(a){var v=a-i-h-p,g=(0,S.CR)(this.span,2),y=g[0],m=g[1];n=(0,S.CR)([y*v,m*v],2),u=n[0],f=n[1]}var b=s+u+f+h+p;return{width:b,height:c,markerWidth:s,labelWidth:u,valueWidth:f}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var n=this.attributes.spacing;if(!n)return[0,0];var r=(0,S.CR)(zr(n),2),i=r[0],a=r[1];return this.showValue?[i,a]:[i,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var n=this.shape,r=n.markerWidth,i=n.labelWidth,a=n.valueWidth,o=n.width,s=n.height,c=(0,S.CR)(this.spacing,2),l=c[0],u=c[1];return{height:s,width:o,markerWidth:r,labelWidth:i,valueWidth:a,position:[r/2,r+l,r+i+l+u]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var n=Gq(this.markerGroup.node()),r=this.attributes,i=r.markerSize,a=r.markerStrokeWidth,o=a===void 0?n.strokeWidth:a,s=r.markerLineWidth,c=s===void 0?n.lineWidth:s,l=r.markerStroke,u=l===void 0?n.stroke:l,f=+(o||c||(u?1:0))*Math.sqrt(2),d=this.markerGroup.node().getBBox(),h=d.width,p=d.height;return(1-f/Math.max(h,p))*i},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(n){var r=this,i=this.attributes.marker,a=en(this.attributes,"marker");this.markerGroup=n.maybeAppendByClassName(Ti.markerGroup,"g").style("zIndex",0),vi(!!i,this.markerGroup,function(){var o=r.markerGroup.node(),s=o.getElementsByClassName(Ti.marker.name)[0],c=i();s?c.nodeName===s.nodeName?(hB(s,c),Ue(s).styles(a)):(s.remove(),Ue(c).attr("className",Ti.marker.name).styles(a),o.appendChild(c)):(Ue(c).attr("className",Ti.marker.name).styles(a),o.appendChild(c)),r.markerGroup.node().scale(1/r.markerGroup.node().getScale()[0]),pv(r.markerGroup.node(),r.scaleSize,!0)})},e.prototype.renderLabel=function(n){var r=en(this.attributes,"label"),i=r.text,a=(0,S._T)(r,["text"]);this.labelGroup=n.maybeAppendByClassName(Ti.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(Ti.label,function(){return Jo(i)}).styles(a)},e.prototype.renderValue=function(n){var r=this,i=en(this.attributes,"value"),a=i.text,o=(0,S._T)(i,["text"]);this.valueGroup=n.maybeAppendByClassName(Ti.valueGroup,"g").style("zIndex",0),vi(this.showValue,this.valueGroup,function(){r.valueGroup.maybeAppendByClassName(Ti.value,function(){return Jo(a)}).styles(o)})},e.prototype.renderBackground=function(n){var r=this.shape,i=r.width,a=r.height,o=en(this.attributes,"background");this.background=n.maybeAppendByClassName(Ti.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(Ti.background,"rect").styles((0,S.pi)({width:i,height:a},o))},e.prototype.adjustLayout=function(){var n=this.layout,r=n.labelWidth,i=n.valueWidth,a=n.height,o=(0,S.CR)(n.position,3),s=o[0],c=o[1],l=o[2],u=a/2;this.markerGroup.styles({x:s,y:u}),this.labelGroup.styles({x:c,y:u}),bv(this.labelGroup.select(Ti.label.class).node(),Math.ceil(r)),this.showValue&&(this.valueGroup.styles({x:l,y:u}),bv(this.valueGroup.select(Ti.value.class).node(),Math.ceil(i)))},e.prototype.render=function(n,r){var i=Ue(r);this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.adjustLayout()},e}(Lr),vs=Fi({page:"item-page",navigator:"navigator",item:"item"},"items"),DT=function(t,e,n){return n===void 0&&(n=!0),t?e(t):n},Hq=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:sy,mouseenter:sy,mouseleave:sy})||this;return r.navigatorShape=[0,0],r}return Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var n=this.attributes,r=n.gridRow,i=n.gridCol,a=n.data;if(!r&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return r&&i?[r,i]:r?[r,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var n=this.attributes,r=n.data,i=n.layout,a=en(this.attributes,"item"),o=r.map(function(s,c){var l=s.id,u=l===void 0?c:l,f=s.label,d=s.value;return{id:"".concat(u),index:c,style:(0,S.pi)({layout:i,labelText:f,valueText:d},Object.fromEntries(Object.entries(a).map(function(h){var p=(0,S.CR)(h,2),v=p[0],g=p[1];return[v,Bi(g,[s,c,r])]})))}});return o},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var n=this,r=this.attributes,i=r.orientation,a=r.width,o=r.rowPadding,s=r.colPadding,c=(0,S.CR)(this.navigatorShape,1),l=c[0],u=(0,S.CR)(this.grid,2),f=u[0],d=u[1],h=d*f,p=0;return this.pageViews.children.map(function(v,g){var y,m,b=Math.floor(g/h),_=g%h,O=n.ifHorizontal(d,f),w=[Math.floor(_/O),_%O];i==="vertical"&&w.reverse();var M=(0,S.CR)(w,2),E=M[0],A=M[1],P=(a-l-(d-1)*s)/d,C=v.getBBox().height,j=(0,S.CR)([0,0],2),N=j[0],k=j[1];return i==="horizontal"?(y=(0,S.CR)([p,E*(C+o)],2),N=y[0],k=y[1],p=A===d-1?0:p+P+s):(m=(0,S.CR)([A*(P+s),p],2),N=m[0],k=m[1],p=E===f-1?0:p+C+o),{page:b,index:g,row:E,col:A,pageIndex:_,width:P,height:C,x:N,y:k}})},e.prototype.getFlexLayout=function(){var n=this.attributes,r=n.width,i=n.height,a=n.rowPadding,o=n.colPadding,s=(0,S.CR)(this.navigatorShape,1),c=s[0],l=(0,S.CR)(this.grid,2),u=l[0],f=l[1],d=(0,S.CR)([r-c,i],2),h=d[0],p=d[1],v=(0,S.CR)([0,0,0,0,0,0,0,0],8),g=v[0],y=v[1],m=v[2],b=v[3],_=v[4],O=v[5],w=v[6],M=v[7];return this.pageViews.children.map(function(E,A){var P,C,j,N,k=E.getBBox(),R=k.width,D=k.height,F=w===0?0:o,B=w+F+R;if(B<=h&&DT(_,function(Y){return Y0?(this.navigatorShape=[55,0],n.call(this)):r},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){var i=this.attributes.orientation;return da(i,n,r)},e.prototype.flattenPage=function(n){n.querySelectorAll(vs.item.class).forEach(function(r){n.appendChild(r)}),n.querySelectorAll(vs.page.class).forEach(function(r){var i=n.removeChild(r);i.destroy()})},e.prototype.renderItems=function(n){var r=this.attributes,i=r.click,a=r.mouseenter,o=r.mouseleave;this.flattenPage(n);var s=this.dispatchCustomEvent.bind(this);Ue(n).selectAll(vs.item.class).data(this.renderData,function(c){return c.id}).join(function(c){return c.append(function(l){var u=l.style;return new Wq({style:u})}).attr("className",vs.item.name).on("click",function(){i==null||i(this),s("itemClick",{item:this})}).on("pointerenter",function(){a==null||a(this),s("itemMouseenter",{item:this})}).on("pointerleave",function(){o==null||o(this),s("itemMouseleave",{item:this})})},function(c){return c.each(function(l){var u=l.style;this.update(u)})},function(c){return c.remove()})},e.prototype.relayoutNavigator=function(){var n,r=this.attributes,i=r.layout,a=r.width,o=((n=this.pageViews.children[0])===null||n===void 0?void 0:n.getBBox().height)||0,s=(0,S.CR)(this.navigatorShape,2),c=s[0],l=s[1];this.navigator.update(i==="grid"?{pageWidth:a-c,pageHeight:o-l}:{})},e.prototype.adjustLayout=function(){var n=this,r=Object.entries(Fq(this.itemsLayout,"page")).map(function(a){var o=(0,S.CR)(a,2),s=o[0],c=o[1];return{page:s,layouts:c}}),i=(0,S.ev)([],(0,S.CR)(this.navigator.getContainer().children),!1);r.forEach(function(a){var o=a.layouts,s=n.pageViews.appendChild(new Fr({className:vs.page.name}));o.forEach(function(c){var l=c.x,u=c.y,f=c.index,d=c.width,h=c.height,p=i[f];s.appendChild(p),Dq(p,"__layout__",c),p.update({x:l,y:u,width:d,height:h})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(n){var r=this.attributes.orientation,i=en(this.attributes,"nav"),a=Ra({orientation:r},i),o=this;return n.selectAll(vs.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new zq({style:a})}).attr("className",vs.navigator.name).each(function(){o.navigator=this})},function(s){return s.each(function(){this.update(a)})},function(s){return s.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(n,r){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(Ue(r));this.renderItems(a.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(n,r){var i=new kn(n,{detail:r});this.dispatchEvent(i)},e}(Lr),Yq=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,CG)||this}return e.prototype.renderTitle=function(n,r,i){var a=this.attributes,o=a.showTitle,s=a.titleText,c=en(this.attributes,"title"),l=(0,S.CR)(Na(c),2),u=l[0],f=l[1];this.titleGroup=n.maybeAppendByClassName(Nr.titleGroup,"g").styles(f);var d=(0,S.pi)((0,S.pi)({width:r,height:i},u),{text:o?s:""});this.title=this.titleGroup.maybeAppendByClassName(Nr.title,function(){return new M2({style:d})}).update(d)},e.prototype.renderItems=function(n,r){var i=r.x,a=r.y,o=r.width,s=r.height,c=en(this.attributes,"title",!0),l=(0,S.CR)(Na(c),2),u=l[0],f=l[1],d=(0,S.pi)((0,S.pi)({},u),{width:o,height:s,x:0,y:0});this.itemsGroup=n.maybeAppendByClassName(Nr.itemsGroup,"g").styles((0,S.pi)({x:i,y:a},f));var h=this;this.itemsGroup.selectAll(Nr.items.class).data(["items"]).join(function(p){return p.append(function(){return new Hq({style:d})}).attr("className",Nr.items.name).each(function(){h.items=Ue(this)})},function(p){return p.update(d)},function(p){return p.remove()})},e.prototype.adjustLayout=function(){var n=this.attributes.showTitle;if(n){var r=this.title.node().getAvailableSpace(),i=r.x,a=r.y;this.itemsGroup.node().setLocalPosition(i,a)}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes,r=n.showTitle,i=n.width,a=n.height;return r?this.title.node().getAvailableSpace():new Gn(0,0,i,a)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n,r,i=(n=this.title)===null||n===void 0?void 0:n.node(),a=(r=this.items)===null||r===void 0?void 0:r.node();return!i||!a?t.prototype.getBBox.call(this):NB(i,a)},e.prototype.render=function(n,r){var i=n.width,a=n.height,o=Ue(r);this.renderTitle(o,i,a),this.renderItems(o,this.availableSpace),this.adjustLayout()},e}(Lr);function Vq(t){if(ll(t)){var e=t;return e[e.length-1]}}var Xq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?r==null?void 0:r.getOptions().domain:c.data).map((d,h)=>{var p;return i?i.map(d||"point"):((p=s==null?void 0:s.style)===null||p===void 0?void 0:p.shape)||c.defaultShape||"point"});typeof l=="string"&&a.push([l,f])}if(a.length===0)return["point",["point"]];if(a.length===1||!n)return a[0];const{range:o}=n.getOptions();return a.map(([s,c])=>{let l=0;for(let u=0;uc[0]-s[0])[0][1]}function Uq(t,e){const{scales:n,library:r,markState:i}=e,[a,o]=$q(n,i),{itemMarker:s,itemMarkerSize:c}=t,l=(d,h)=>{var p,v,g;const y=((g=(v=(p=r[`mark.${a}`])===null||p===void 0?void 0:p.props)===null||v===void 0?void 0:v.shape[d])===null||g===void 0?void 0:g.props.defaultMarker)||Vq(d.split(".")),m=typeof c=="function"?c(h):c;return()=>aU(y,{color:h.color})(0,0,m)},u=d=>`${o[d]}`;return ua(n,"shape")&&!s?(d,h)=>l(u(h),d):typeof s=="function"?(d,h)=>{const p=s(d.id,h);return typeof p=="string"?l(p,d):p}:(d,h)=>l(s||u(h),d)}function qq(t){const e=ua(t,"opacity");if(e){const{range:n}=e.getOptions();return(r,i)=>n[i]}}function Zq(t,e){const n=ua(t,"size");return n instanceof eh?n.map(NaN)*2:e}function Kq(t,e){const{labelFormatter:n=d=>`${d}`}=t,{scales:r,theme:i}=e,a=i.legendCategory.itemMarkerSize,o=Zq(r,a),s={itemMarker:Uq(Object.assign(Object.assign({},t),{itemMarkerSize:o}),e),itemMarkerSize:o,itemMarkerOpacity:qq(r)},c=typeof n=="string"?oo(n):n,l=ua(r,"color"),u=Fz(r),f=l?d=>l.map(d):()=>e.theme.color;return Object.assign(Object.assign({},s),{data:u.map(d=>({id:d,label:c(d),color:f(d)}))})}function Qq(t,e,n){const{position:r}=e;if(r==="center"){const{bbox:o}=t,{width:s,height:c}=o;return{width:s,height:c}}const{width:i,height:a}=Z2(t,e,n);return{width:i,height:a}}const cy=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,cols:c,itemMarker:l}=t,u=Xq(t,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:f}=u;return d=>{const{value:h,theme:p}=d,{bbox:v}=h,{width:g,height:y}=Qq(h,t,cy),m=U2(a,n),b=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(a)?"vertical":"horizontal",width:g,height:y,layout:c!==void 0?"grid":"flex"},c!==void 0&&{gridCol:c}),f!==void 0&&{gridRow:f}),{titleText:ud(s)}),Kq(t,d)),{legendCategory:_={}}=p,O=fd(Object.assign({},_,b,u)),w=new Iz({style:Object.assign(Object.assign({x:v.x,y:v.y,width:v.width,height:v.height},m),{subOptions:O})});return w.appendChild(new Yq({className:"legend-category",style:O})),w}};cy.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const FT=t=>()=>new Fr;FT.props={};var Jq=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(!i)return d.node().remove();d.node().attr(Object.assign(Object.assign(Object.assign({},BT(0,f.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),l))})}}),zT=t=>({value:e,theme:n})=>{const{x:r,y:i,width:a,height:o}=e.bbox;return new tZ({style:Nt({},n.title,Object.assign({x:r,y:i,width:a,height:o},t))})};zT.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};var ly=function(t){if(typeof t!="object"||t===null)return t;var e;if(Dr(t)){e=[];for(var n=0,r=t.length;no&&(n=(0,S.CR)([o,s],2),s=n[0],o=n[1]),t.map(function(c){var l=c.map(function(u,f){return[r.map(f),(0,cr.Z)(i.map(u),s,o)]});return l})}function Xl(t,e){e===void 0&&(e=!1);var n=e?t.length-1:0,r=t.map(function(i,a){return(0,S.ev)([a===n?"M":"L"],(0,S.CR)(i),!1)});return e?r.reverse():r}function ah(t,e){if(e===void 0&&(e=!1),t.length<=2)return Xl(t);for(var n=[],r=t.length,i=0;i=0;i-=1){var a=t[i],o=Xl(a),s=void 0;if(i===0)s=fy(o,e,n);else{var c=t[i-1],l=Xl(c,!0);l[0][0]="L",s=(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(o),!1),(0,S.CR)(l),!1),[["Z"]],!1)}r.push(s)}return r}function cZ(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=ah(a),s=void 0;if(i===0)s=fy(o,e,n);else{var c=t[i-1],l=ah(c,!0),u=a[0];l[0][0]="L",s=(0,S.ev)((0,S.ev)((0,S.ev)([],(0,S.CR)(o),!1),(0,S.CR)(l),!1),[(0,S.ev)(["M"],(0,S.CR)(u),!1),["Z"]],!1)}r.push(s)}return r}var lZ=function(t,e){if(Dr(t)){for(var n,r=1/0,i=0;ir&&(n=a,r=o)}return n}};function GT(t){return t.length===0?[0,0]:[of(lZ(t,function(e){return of(e)||0})),sf(uZ(t,function(e){return sf(e)||0}))]}function WT(t){for(var e=uy(t),n=e[0].length,r=(0,S.CR)([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],a=r[1],o=0;o=0?(s[c]+=i[c],i[c]=s[c]):(s[c]+=a[c],a[c]=s[c]);return e}var fZ=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{type:"line",width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(e.prototype,"rawData",{get:function(){var n=this.attributes.data;if(!n||(n==null?void 0:n.length)===0)return[[]];var r=uy(n);return(0,xr.Z)(r[0])?[r]:r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?WT(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var n=this.scales.y,r=(0,S.CR)(n.getOptions().domain||[0,0],2),i=r[0],a=r[1];return a<0?n.map(a):n.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var n=this.attributes,r=n.width,i=n.height;return{width:r,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var n=this,r=this.attributes,i=r.type,a=r.isStack,o=r.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=en(this.attributes,"area"),c=en(this.attributes,"line"),l=this.containerShape.width,u=this.data;if(u[0].length===0)return{lines:[],areas:[]};var f=this.scales,d=f.x,h=f.y,p=aZ(u,{type:"line",x:d,y:h}),v=[];if(s){var g=this.baseline;a?v=o?cZ(p,l,g):sZ(p,l,g):v=oZ(p,o,l,g)}return{lines:p.map(function(y,m){return(0,S.pi)({stroke:n.getColor(m),path:o?ah(y):Xl(y)},c)}),areas:v.map(function(y,m){return(0,S.pi)({path:y,fill:n.getColor(m)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var n=this,r=en(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var c=this.containerShape.height,l=this.rawData;if(!l)return{columns:[]};a&&(l=WT(l));var u=this.createScales(l),f=u.x,d=u.y,h=(0,S.CR)(GT(l),2),p=h[0],v=h[1],g=new Xr({domain:[0,v-(p>0?0:p)],range:[0,c*s]}),y=f.getBandWidth(),m=this.rawData;return{columns:l.map(function(b,_){return b.map(function(O,w){var M=y/l.length,E=function(){return{x:f.map(w)+M*_,y:O>=0?d.map(O):d.map(0),width:M,height:g.map(Math.abs(O))}},A=function(){return{x:f.map(w),y:d.map(O),width:y,height:g.map(m[_][w])}};return(0,S.pi)((0,S.pi)({fill:n.getColor(_)},r),a?A():E())})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){MF(r,".container","rect").attr("className","container").node();var i=n.type,a="spark".concat(i),o=i==="line"?this.linesStyle:this.columnsStyle;Ue(r).selectAll(".spark").data([i]).join(function(s){return s.append(function(c){return c==="line"?new nZ({className:a,style:o}):new eZ({className:a,style:o})}).attr("className","spark ".concat(a))},function(s){return s.update(o)},function(s){return s.remove()})},e.prototype.getColor=function(n){var r=this.attributes.color;return Dr(r)?r[n%r.length]:gi(r)?r.call(null,n):r},e.prototype.createScales=function(n){var r,i,a=this.attributes,o=a.type,s=a.scale,c=a.range,l=c===void 0?[]:c,u=a.spacing,f=this.containerShape,d=f.width,h=f.height,p=(0,S.CR)(GT(n),2),v=p[0],g=p[1],y=new Xr({domain:[(r=l[0])!==null&&r!==void 0?r:v,(i=l[1])!==null&&i!==void 0?i:g],range:[h,h*(1-s)]});return o==="line"?{type:o,x:new Xr({domain:[0,n[0].length-1],range:[0,d]}),y}:{type:o,x:new mo({domain:n[0].map(function(m,b){return b}),range:[0,d],paddingInner:u,paddingOuter:u/2,align:.5}),y}},e.tag="sparkline",e}(Lr),HT=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,(0,S.pi)((0,S.pi)((0,S.pi)({animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},la(oO,"handle")),la(iO,"handleIcon")),la(aO,"handleLabel")))||this;return r.range=[0,1],r.onDragStart=function(i){return function(a){a.stopPropagation(),r.target=i,r.prevPos=r.getOrientVal(hd(a));var o=r.availableSpace,s=o.x,c=o.y,l=r.getBBox(),u=l.x,f=l.y;r.selectionStartPos=r.getRatio(r.prevPos-r.getOrientVal([s,c])-r.getOrientVal([+u,+f])),r.selectionWidth=0,document.addEventListener("pointermove",r.onDragging),document.addEventListener("pointerup",r.onDragEnd)}},r.onDragging=function(i){var a=r.attributes,o=a.slidable,s=a.brushable,c=a.type;i.stopPropagation();var l=r.getOrientVal(hd(i)),u=l-r.prevPos;if(u){var f=r.getRatio(u);switch(r.target){case"start":o&&r.setValuesOffset(f);break;case"end":o&&r.setValuesOffset(0,f);break;case"selection":o&&r.setValuesOffset(f,f);break;case"track":if(!s)return;r.selectionWidth+=f,c==="range"?r.innerSetValues([r.selectionStartPos,r.selectionStartPos+r.selectionWidth].sort(),!0):r.innerSetValues([0,r.selectionStartPos+r.selectionWidth],!0);break;default:break}r.prevPos=l}},r.onDragEnd=function(){document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointerup",r.onDragEnd),r.target="",r.updateHandlesPosition(!1)},r.onValueChange=function(i){var a=r.attributes,o=a.onChange,s=a.type,c=s==="range"?i:i[1],l=s==="range"?r.getValues():r.getValues()[1],u=new kn("valuechange",{detail:{oldValue:c,value:l}});r.dispatchEvent(u),o==null||o(l)},r.selectionStartPos=0,r.selectionWidth=0,r.prevPos=0,r.target="",r}return Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(n){this.attributes.values=this.clampValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){var n=this.attributes.orientation;if(n!=="horizontal")return null;var r=en(this.attributes,"sparkline");return(0,S.pi)((0,S.pi)({zIndex:0},this.availableSpace),r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n=this.attributes,r=n.trackLength,i=n.trackSize,a=(0,S.CR)(this.getOrientVal([[r,i],[i,r]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.padding,r=(0,S.CR)(zr(n),4),i=r[0],a=r[1],o=r[2],s=r[3],c=this.shape,l=c.width,u=c.height;return{x:s,y:i,width:l-(s+a),height:u-(i+o)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1),this.attributes.values=n;var i=r===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},e.prototype.updateSelectionArea=function(n){var r=this.calcSelectionArea();this.foregroundGroup.selectAll(fa.selection.class).each(function(i,a){Ki(this,r[a],n)})},e.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&Ki(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&Ki(this.endHandle,this.getHandleStyle("end"),n))},e.prototype.innerSetValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1);var i=this.values,a=this.clampValues(n);this.attributes.values=a,this.setValues(a),r&&this.onValueChange(i)},e.prototype.renderTrack=function(n){var r=en(this.attributes,"track");this.trackShape=Ue(n).maybeAppendByClassName(fa.track,"rect").styles((0,S.pi)((0,S.pi)({},this.shape),r))},e.prototype.renderBrushArea=function(n){var r=this.attributes.brushable;this.brushArea=Ue(n).maybeAppendByClassName(fa.brushArea,"rect").styles((0,S.pi)({fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(n){var r=this,i=this.attributes.orientation,a=Ue(n).maybeAppendByClassName(fa.sparklineGroup,"g");vi(i==="horizontal",a,function(o){var s=r.sparklineStyle;o.maybeAppendByClassName(fa.sparkline,function(){return new fZ({style:s})}).update(s)})},e.prototype.renderHandles=function(){var n=this,r,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],c=a?s:[],l=this;(r=this.foregroundGroup)===null||r===void 0||r.selectAll(fa.handle.class).data(c.map(function(u){return{type:u}}),function(u){return u.type}).join(function(u){return u.append(function(f){var d=f.type;return new sO({style:n.getHandleStyle(d)})}).each(function(f){var d=f.type;this.attr("class","".concat(fa.handle.name," ").concat(d,"-handle"));var h="".concat(d,"Handle");l[h]=this,this.addEventListener("pointerdown",l.onDragStart(d))})},function(u){return u.each(function(f){var d=f.type;this.update(l.getHandleStyle(d))})},function(u){return u.each(function(f){var d=f.type,h="".concat(d,"Handle");l[h]=void 0}).remove()})},e.prototype.renderSelection=function(n){var r=this.attributes,i=r.type,a=r.selectionType;this.foregroundGroup=Ue(n).maybeAppendByClassName(fa.foreground,"g");var o=en(this.attributes,"selection"),s=function(l){return l.style("visibility",function(u){return u.show?"visible":"hidden"}).style("cursor",function(u){return a==="select"?"grab":a==="invert"?"crosshair":"default"}).styles(o)},c=this;this.foregroundGroup.selectAll(fa.selection.class).data(i==="value"?[]:this.calcSelectionArea().map(function(l,u){return{style:(0,S.pi)({},l),index:u,show:a==="select"?u===1:u!==1}}),function(l){return l.index}).join(function(l){return l.append("rect").attr("className",fa.selection.name).call(s).each(function(u,f){var d=this;f===1?(c.selectionShape=Ue(this),this.on("pointerdown",function(h){d.attr("cursor","grabbing"),c.onDragStart("selection")(h)}),c.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),c.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),c.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){d.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){d.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){d.attr("cursor","pointer")})):this.on("pointerdown",c.onDragStart("track"))})},function(l){return l.call(s)},function(l){return l.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(n,r){this.renderTrack(r),this.renderSparkline(r),this.renderBrushArea(r),this.renderSelection(r)},e.prototype.clampValues=function(n,r){var i;r===void 0&&(r=4);var a=(0,S.CR)(this.range,2),o=a[0],s=a[1],c=(0,S.CR)(this.getValues().map(function(g){return dd(g,r)}),2),l=c[0],u=c[1],f=Array.isArray(n)?n:[l,n!=null?n:u],d=(0,S.CR)((f||[l,u]).map(function(g){return dd(g,r)}),2),h=d[0],p=d[1];if(this.attributes.type==="value")return[0,(0,cr.Z)(p,o,s)];h>p&&(i=(0,S.CR)([p,h],2),h=i[0],p=i[1]);var v=p-h;return v>s-o?[o,s]:hs?u===s&&l===h?[h,s]:[s-v,s]:[h,p]},e.prototype.calcSelectionArea=function(n){var r=(0,S.CR)(this.clampValues(n),2),i=r[0],a=r[1],o=this.availableSpace,s=o.x,c=o.y,l=o.width,u=o.height;return this.getOrientVal([[{y:c,height:u,x:s,width:i*l},{y:c,height:u,x:i*l+s,width:(a-i)*l},{y:c,height:u,x:a*l,width:(1-a)*l}],[{x:s,width:l,y:c,height:i*u},{x:s,width:l,y:i*u+c,height:(a-i)*u},{x:s,width:l,y:a*u,height:(1-a)*u}]])},e.prototype.calcHandlePosition=function(n){var r=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,c=i.height,l=(0,S.CR)(this.clampValues(),2),u=l[0],f=l[1],d=n==="start"?-r:r,h=(n==="start"?u:f)*this.getOrientVal([s,c])+d;return{x:a+this.getOrientVal([h,s/2]),y:o+this.getOrientVal([c/2,h])}},e.prototype.inferTextStyle=function(n){var r=this.attributes.orientation;return r==="horizontal"?{}:n==="start"?{transform:"rotate(90)",textAlign:"start"}:n==="end"?{transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(n){var r,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,c=i.autoFitLabel,l=en(this.attributes,"handle"),u=en(l,"label"),f=l.spacing,d=this.getHandleSize(),h=this.clampValues(),p=n==="start"?h[0]:h[1],v=s(p),g=new cv({style:(0,S.pi)((0,S.pi)((0,S.pi)({},u),this.inferTextStyle(n)),{text:v})}),y=g.getBBox(),m=y.width,b=y.height;if(g.destroy(),!c){if(a==="value")return{text:v,x:0,y:-b-f};var _=f+d+(o==="horizontal"?m/2:0);return r={text:v},r[o==="horizontal"?"x":"y"]=n==="start"?-_:_,r}var O=0,w=0,M=this.availableSpace,E=M.width,A=M.height,P=this.calcSelectionArea()[1],C=P.x,j=P.y,N=P.width,k=P.height,R=f+d;if(o==="horizontal"){var D=R+m/2;if(n==="start"){var F=C-R-m;O=F>0?-D:D}else{var B=E-C-N-R>m;O=B?D:-D}}else{var z=R,Y=b+R;n==="start"?w=j-d>b?-Y:z:w=A-(j+k)-d>b?Y:-z}return{x:O,y:w,text:v}},e.prototype.getHandleLabelStyle=function(n){var r=en(this.attributes,"handleLabel");return(0,S.pi)((0,S.pi)((0,S.pi)({},r),this.calcHandleText(n)),this.inferTextStyle(n))},e.prototype.getHandleIconStyle=function(){var n=this.attributes.handleIconShape,r=en(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return(0,S.pi)({cursor:i,shape:n,size:a},r)},e.prototype.getHandleStyle=function(n){var r=this.attributes,i=r.showLabel,a=r.showLabelOnInteraction,o=r.orientation,s=this.calcHandlePosition(n),c=this.calcHandleText(n),l=i;return!i&&a&&(this.target?l=!0:l=!1),(0,S.pi)((0,S.pi)((0,S.pi)((0,S.pi)({},la(this.getHandleIconStyle(),"icon")),la((0,S.pi)((0,S.pi)({},this.getHandleLabelStyle(n)),c),"label")),s),{orientation:o,showLabel:l,type:n,zIndex:3})},e.prototype.getHandleSize=function(){var n=this.attributes,r=n.handleIconSize,i=n.width,a=n.height;return r||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},e.prototype.getOrientVal=function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1],o=this.attributes.orientation;return o==="horizontal"?i:a},e.prototype.setValuesOffset=function(n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=this.attributes.type,o=(0,S.CR)(this.getValues(),2),s=o[0],c=o[1],l=a==="range"?n:0,u=[s+l,c+r].sort();i?this.setValues(u):this.innerSetValues(u,!0)},e.prototype.getRatio=function(n){var r=this.availableSpace,i=r.width,a=r.height;return n/this.getOrientVal([i,a])},e.prototype.dispatchCustomEvent=function(n,r,i){var a=this;n.on(r,function(o){o.stopPropagation(),a.dispatchEvent(new kn(i,{detail:o}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var n=this.brushArea;this.dispatchCustomEvent(n,"click","trackClick"),this.dispatchCustomEvent(n,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(n,"pointerleave","trackMouseleave"),n.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(n){var r=this.attributes.scrollable;if(r){var i=n.deltaX,a=n.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s,!0)}},e.tag="slider",e}(Lr);function dZ(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function _c(t){let e,n,r;t.length!==2?(e=fr,n=(s,c)=>fr(t(s),c),r=(s,c)=>t(s)-c):(e=t===fr||t===dZ?t:hZ,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function hZ(){return 0}function dy(t){return t===null?NaN:+t}function*pZ(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const YT=_c(fr),vZ=YT.right,gZ=YT.left,yZ=_c(dy).center;var mZ=vZ;function bZ(t,e){return Array.from(e,n=>t[n])}function Fa(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=$l(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>$l(n[i],n[a]))),bZ(t,r)}return t.sort(VT(n))}function VT(t=fr){if(t===fr)return $l;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function $l(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function xZ(t,e,n){return Math.min(n,Math.max(e,t))}function Ul(t){return!!t.getBandWidth}function Oc(t,e,n){if(!Ul(t))return t.invert(e);const{adjustedRange:r}=t,{domain:i}=t.getOptions(),a=n?-1:0,o=t.getStep(),s=n?r:r.map(u=>u+o),c=gZ(s,e),l=xZ(c+a,0,i.length-1);return i[l]}function _o(t,e,n){if(!e)return t.getOptions().domain;if(!Ul(t)){const c=Fa(e);if(!n)return c;const[l]=c,{range:u}=t.getOptions(),[f,d]=u,h=f>d?-1:1,p=t.invert(t.map(l)+h*n);return[l,p]}const{domain:r}=t.getOptions(),i=e[0],a=r.indexOf(i);if(n){const c=a+Math.round(r.length*n);return r.slice(a,c)}const o=e[e.length-1],s=r.indexOf(o);return r.slice(a,s+1)}function oh(t,e,n,r,i,a){const{x:o,y:s}=i,c=(h,p)=>{const[v,g]=a.invert(h);return[Oc(o,v,p),Oc(s,g,p)]},l=c([t,e],!0),u=c([n,r],!1),f=_o(o,[l[0],u[0]]),d=_o(s,[l[1],u[1]]);return[f,d]}function sh(t,e){const[n,r]=t,i=a=>a.getStep?a.getStep():0;return[e.map(n),e.map(r)+i(e)]}function _Z(t,e,n){const{x:r,y:i}=e,[a,o]=t,s=sh(a,r),c=sh(o,i),l=[s[0],c[0]],u=[s[1],c[1]],[f,d]=n.map(l),[h,p]=n.map(u);return[f,d,h,p]}var OZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{orientation:e,labelFormatter:n,size:r,style:i={},position:a}=t,o=OZ(t,["orientation","labelFormatter","size","style","position"]);return s=>{var c;const{scales:[l],value:u,theme:f,coordinate:d}=s,{bbox:h}=u,{width:p,height:v}=h,{slider:g={}}=f,y=((c=l.getFormatter)===null||c===void 0?void 0:c.call(l))||(E=>E+""),m=typeof n=="string"?oo(n):n,b=e==="horizontal",_=zn(d)&&b,{trackSize:O=g.trackSize}=i,[w,M]=wZ(h,a,O);return new HT({className:"slider",style:Object.assign({},g,Object.assign(Object.assign({x:w,y:M,trackLength:b?p:v,orientation:e,formatter:E=>{const A=m||y,P=_?1-E:E,C=Oc(l,P,!0);return A(C)},sparklineData:MZ(t,s)},i),o))})}};function SZ(t,e){const[n]=Array.from(t.entries()).filter(([i])=>i.type==="line"||i.type==="area").map(([i])=>{const{encode:a,slider:o}=i;if(o!=null&&o.x&&Object.keys(o.x).length===0){const s=c=>{const l=a[c];return[c,l?l.value:void 0]};return Object.fromEntries(e.map(s))}});if(!(n!=null&&n.series))return n==null?void 0:n.y;const r=n.series.reduce((i,a,o)=>(i[a]=i[a]||[],i[a].push(n.y[o]),i),{});return Object.values(r)}function MZ(t,e){const{markState:n}=e;return Dr(t.sparklineData)?t.sparklineData:SZ(n,["y","series"])}ql.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const XT=t=>ql(Object.assign(Object.assign({},t),{orientation:"horizontal"}));XT.props=Object.assign(Object.assign({},ql.props),{defaultPosition:"bottom"});const $T=t=>ql(Object.assign(Object.assign({},t),{orientation:"vertical"}));$T.props=Object.assign(Object.assign({},ql.props),{defaultPosition:"left"});var EZ=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,{isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return r.range=[0,1],r.onValueChange=function(i){var a=r.attributes.value;if(i!==a){var o={detail:{oldValue:i,value:a}};r.dispatchEvent(new kn("scroll",o)),r.dispatchEvent(new kn("valuechange",o))}},r.onTrackClick=function(i){var a=r.attributes.slidable;if(a){var o=(0,S.CR)(r.getLocalPosition(),2),s=o[0],c=o[1],l=(0,S.CR)(r.padding,4),u=l[0],f=l[3],d=r.getOrientVal([s+f,c+u]),h=r.getOrientVal(hd(i)),p=(h-d)/r.trackLength;r.setValue(p,!0)}},r.onThumbMouseenter=function(i){r.dispatchEvent(new kn("thumbMouseenter",{detail:i.detail}))},r.onTrackMouseenter=function(i){r.dispatchEvent(new kn("trackMouseenter",{detail:i.detail}))},r.onThumbMouseleave=function(i){r.dispatchEvent(new kn("thumbMouseleave",{detail:i.detail}))},r.onTrackMouseleave=function(i){r.dispatchEvent(new kn("trackMouseleave",{detail:i.detail}))},r}return Object.defineProperty(e.prototype,"padding",{get:function(){var n=this.attributes.padding;return zr(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var n=this.attributes.value,r=(0,S.CR)(this.range,2),i=r[0],a=r[1];return(0,cr.Z)(n,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var n=this.attributes,r=n.viewportLength,i=n.trackLength,a=i===void 0?r:i;return a},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.trackSize,r=this.trackLength,i=(0,S.CR)(this.padding,4),a=i[0],o=i[1],s=i[2],c=i[3],l=(0,S.CR)(this.getOrientVal([[r,n],[n,r]]),2),u=l[0],f=l[1];return{x:c,y:a,width:+u-(c+o),height:+f-(a+s)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.trackSize;return r?i/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.thumbRadius;if(!r)return 0;var a=this.availableSpace,o=a.width,s=a.height;return i||this.getOrientVal([s,o])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(n){n===void 0&&(n=this.value);var r=this.attributes,i=r.viewportLength,a=r.contentLength,o=i/a,s=(0,S.CR)(this.range,2),c=s[0],l=s[1],u=n*(l-c-o);return[u,u+o]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(n){var r=this.attributes,i=r.orientation,a=r.trackSize,o=r.padding,s=r.slidable,c=en(this.attributes,"track"),l=en(this.attributes,"thumb"),u=(0,S.pi)((0,S.pi)({brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:s,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:a,values:this.getValues()},la(c,"track")),la(l,"selection"));this.slider=Ue(n).maybeAppendByClassName("scrollbar",function(){return new HT({style:u})}).update(u).node()},e.prototype.render=function(n,r){this.renderSlider(r)},e.prototype.setValue=function(n,r){r===void 0&&(r=!1);var i=this.attributes.value,a=(0,S.CR)(this.range,2),o=a[0],s=a[1];this.slider.setValues(this.getValues((0,cr.Z)(n,o,s)),r),this.onValueChange(i)},e.prototype.bindEvents=function(){var n=this;this.slider.addEventListener("trackClick",function(r){r.stopPropagation(),n.onTrackClick(r.detail)}),this.onHover()},e.prototype.getOrientVal=function(n){var r=this.attributes.orientation;return r==="horizontal"?n[0]:n[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(Lr),AZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{orientation:e,labelFormatter:n,style:r}=t,i=AZ(t,["orientation","labelFormatter","style"]);return({scales:[a],value:o,theme:s})=>{const{bbox:c}=o,{x:l,y:u,width:f,height:d}=c,{scrollbar:h={}}=s,{ratio:p,range:v}=a.getOptions(),g=e==="horizontal"?f:d,y=g/p,[m,b]=v,_=b>m?0:1;return new EZ({className:"g2-scrollbar",style:Object.assign({},h,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:l,y:u,trackLength:g,value:_}),i),{orientation:e,contentLength:y,viewportLength:g}))})}};Zl.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const UT=t=>Zl(Object.assign(Object.assign({},t),{orientation:"horizontal"}));UT.props=Object.assign(Object.assign({},Zl.props),{defaultPosition:"bottom"});const qT=t=>Zl(Object.assign(Object.assign({},t),{orientation:"vertical"}));qT.props=Object.assign(Object.assign({},Zl.props),{defaultPosition:"left"});const hy=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=zn(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.01},{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f}];return s.animate(p,Object.assign(Object.assign({},o),t))}},TZ=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=zn(r)?["left bottom",`scale(1, ${1e-4})`]:["left top",`scale(${1e-4}, 1)`],p=[{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.99},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),t))}},ZT=(t,e)=>{const{coordinate:r}=e;return Fx.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:oe.NUMBER}),(i,a,o)=>{const[s]=i,c=u=>{const{__data__:f,style:d}=u,{radius:h=0,inset:p=0,fillOpacity:v=1,strokeOpacity:g=1,opacity:y=1}=d,{points:m,y:b,y1:_}=f,O=ns(r,m,[b,_]),{innerRadius:w,outerRadius:M}=O,E=Bd().cornerRadius(h).padAngle(p*Math.PI/180),A=new ri({}),P=r.getCenter(),C=k=>{A.attr({d:E(k),transform:`translate(${P[0]}, ${P[1]})`});const R=y0(A);return A.style.transform="",R},j=[{scaleInYRadius:w+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:w+1e-4,fillOpacity:v,strokeOpacity:g,opacity:y,offset:.01},{scaleInYRadius:M,fillOpacity:v,strokeOpacity:g,opacity:y}],N=u.animate(j,Object.assign(Object.assign({},o),t));return N.onframe=function(){u.style.path=C(Object.assign(Object.assign({},O),{outerRadius:Number(u.style.scaleInYRadius)}))},N.onfinish=function(){u.style.path=C(Object.assign(Object.assign({},O),{outerRadius:M}))},N},l=u=>{const{style:f}=u,{transform:d="",fillOpacity:h=1,strokeOpacity:p=1,opacity:v=1}=f,[g,y]=zn(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],m=[{transform:`${d} ${y}`.trimStart(),transformOrigin:g,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${d} ${y}`.trimStart(),transformOrigin:g,fillOpacity:h,strokeOpacity:p,opacity:v,offset:.01},{transform:`${d} scale(1, 1)`.trimStart(),transformOrigin:g,fillOpacity:h,strokeOpacity:p,opacity:v}];return u.animate(m,Object.assign(Object.assign({},o),t))};return Nn(r)?c(s):l(s)}},PZ=(t,e)=>{const{coordinate:r}=e;return(i,a,o)=>{const[s]=i,{transform:c="",fillOpacity:l=1,strokeOpacity:u=1,opacity:f=1}=s.style,[d,h]=zn(r)?["left top",`scale(${1e-4}, 1)`]:["left bottom",`scale(1, ${1e-4})`],p=[{transform:`${c} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:u,opacity:f,offset:.99},{transform:`${c} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}];return s.animate(p,Object.assign(Object.assign({},o),t))}},KT=(t,e)=>{Fx.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:oe.NUMBER});const{coordinate:r}=e;return(i,a,o)=>{const[s]=i;if(!Nn(r))return hy(t,e)(i,a,o);const c=r.getCenter(),{__data__:l,style:u}=s,{radius:f=0,inset:d=0,fillOpacity:h=1,strokeOpacity:p=1,opacity:v=1}=u,{points:g,y,y1:m}=l,b=Bd().cornerRadius(f).padAngle(d*Math.PI/180),_=ns(r,g,[y,m]),{startAngle:O,endAngle:w}=_,M=new ri({}),E=C=>{M.attr({d:b(C),transform:`translate(${c[0]}, ${c[1]})`});const j=y0(M);return M.style.transform="",j},A=[{waveInArcAngle:O+1e-4,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:O+1e-4,fillOpacity:h,strokeOpacity:p,opacity:v,offset:.01},{waveInArcAngle:w,fillOpacity:h,strokeOpacity:p,opacity:v}],P=s.animate(A,Object.assign(Object.assign({},o),t));return P.onframe=function(){s.style.path=E(Object.assign(Object.assign({},_),{endAngle:Number(s.style.waveInArcAngle)}))},P.onfinish=function(){s.style.path=E(Object.assign(Object.assign({},_),{endAngle:w}))},P}};KT.props={};const QT=t=>(e,n,r)=>{const[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:a,strokeOpacity:o,opacity:s}];return i.animate(c,Object.assign(Object.assign({},r),t))};QT.props={};const JT=t=>(e,n,r)=>{const[i]=e,{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=i.style,c=[{fillOpacity:a,strokeOpacity:o,opacity:s},{fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(c,Object.assign(Object.assign({},r),t))};JT.props={};const CZ=t=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:c=1,opacity:l=1}=a.style,u="center center",f=[{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l,offset:.01},{transform:`${o} scale(1)`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l}];return a.animate(f,Object.assign(Object.assign({},i),t))},kZ=t=>(n,r,i)=>{const[a]=n,{transform:o="",fillOpacity:s=1,strokeOpacity:c=1,opacity:l=1}=a.style,u="center center",f=[{transform:`${o} scale(1)`.trimStart(),transformOrigin:u},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:c,opacity:l,offset:.99},{transform:`${o} scale(${1e-4})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}];return a.animate(f,Object.assign(Object.assign({},i),t))},tP=t=>(e,n,r)=>{var i,a;const[o]=e,s=((a=(i=o).getTotalLength)===null||a===void 0?void 0:a.call(i))||0,c=[{lineDash:[0,s]},{lineDash:[s,0]}];return o.animate(c,Object.assign(Object.assign({},r),t))};tP.props={};function wc(t,e){const n={};for(const r of e){const i=t.style[r];i&&(n[r]=i)}return n}const Sc=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function py(t){const{min:e,max:n}=t.getLocalBounds(),[r,i]=e,[a,o]=n,s=o-i,c=a-r;return[r,i,c,s]}function RZ(t){const[e,n,r,i]=t;return` + M ${e} ${n} + L ${e+r} ${n} + L ${e+r} ${n+i} + L ${e} ${n+i} + Z + `}function LZ(t,e){const[n,r,i,a]=py(t),o=a/i,s=Math.ceil(Math.sqrt(e/o)),c=Math.ceil(e/s),l=[],u=a/c;let f=0,d=e;for(;d>0;){const h=Math.min(d,s),p=i/h;for(let v=0;v{u.style.transform="none",ev(u,n)},u.style.transform="none",d}function FZ(t,e,n,r){t.style.visibility="hidden";const i=r(t,e.length);return e.map((a,o)=>{const s=new ri({style:Object.assign({path:i[o]},wc(t,Sc))});return vy(a,s,a,n)})}function BZ(t,e,n,r){const i=r(e,t.length),{fillOpacity:a=1,strokeOpacity:o=1,opacity:s=1}=e.style,c=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:a,strokeOpacity:o,opacity:s}],l=e.animate(c,n);return[...t.map((f,d)=>{const h=new ri({style:{path:i[d],fill:e.style.fill}});return vy(f,f,h,n)}),l]}const iP=t=>(e,n,r)=>{const i=NZ(t.split),a=Object.assign(Object.assign({},r),t),{length:o}=e,{length:s}=n;if(o===1&&s===1||o>1&&s>1){const[c]=e,[l]=n;return vy(c,c,l,a)}if(o===1&&s>1){const[c]=e;return FZ(c,n,a,i)}if(o>1&&s===1){const[c]=n;return BZ(e,c,a,i)}return null};iP.props={};const aP=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new ri({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,hy(t,e)([c],r,i)};aP.props={};const oP=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new ri({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,ZT(t,e)([c],r,i)};oP.props={};var Kl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i!e.__removed__)}function sP(t,e){return gy(t,e).flatMap(({container:n})=>Oo(n))}function gy(t,e){return e.filter(n=>n!==t&&n.options.parentKey===t.options.key)}function Ba(t){return je(t).select(`.${Ff}`).node()}function cP(t){if(t.nodeName!=="rect")return t.getRenderBounds();const{x:e,y:n,width:r,height:i}=t.style;return{min:[e,n],max:[e+r,n+i]}}function yy(t,e){const{offsetX:n,offsetY:r}=e,i=cP(t),{min:[a,o],max:[s,c]}=i,l=ns,u=rc;return l||u?null:[n-a,r-o]}function my(t,e){const{offsetX:n,offsetY:r}=e,[i,a,o,s]=zZ(t);return[Math.min(o,Math.max(i,n))-i,Math.min(s,Math.max(a,r))-a]}function zZ(t){const e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return[n,r,i,a]}function lP(t){return e=>e.__data__.color}function by(t){return e=>e.__data__.x}function gs(t){const e=Array.isArray(t)?t:[t],n=new Map(e.flatMap(r=>Array.from(r.markState.keys()).map(a=>[ch(r.key,a.key),a.data])));return r=>{const{index:i,markKey:a,viewKey:o}=r.__data__;return n.get(ch(o,a))[i]}}function za(t,e=(r,i)=>r,n=(r,i,a)=>r.setAttribute(i,a)){const r="__states__",i="__ordinal__",a=u=>{const{[r]:f=[],[i]:d={}}=u,h=f.reduce((p,v)=>Object.assign(Object.assign({},p),t[v]),d);if(Object.keys(h).length!==0){for(const[p,v]of Object.entries(h)){const g=MX(u,p),y=e(v,u);n(u,p,y),p in d||(d[p]=g)}u[i]=d}},o=u=>{u[r]||(u[r]=[])};return{setState:(u,...f)=>{o(u),u[r]=[...f],a(u)},removeState:(u,...f)=>{o(u);for(const d of f){const h=u[r].indexOf(d);h!==-1&&u[r].splice(h,1)}a(u)},hasState:(u,f)=>(o(u),u[r].indexOf(f)!==-1)}}function GZ(t){return t===void 0?!0:typeof t!="object"?!1:Object.keys(t).length===0}function ch(t,e){return`${t},${e}`}function Mc(t,e){const r=(Array.isArray(t)?t:[t]).flatMap(a=>a.marks.map(o=>[ch(a.key,o.key),o.state])),i={};for(const a of e){const[o,s]=Array.isArray(a)?a:[a,{}];i[o]=r.reduce((c,l)=>{const[u,f={}]=l,d=GZ(f[o])?s:f[o];for(const[h,p]of Object.entries(d)){const v=c[h],g=(y,m,b,_)=>{const O=ch(_.__data__.viewKey,_.__data__.markKey);return u!==O?v==null?void 0:v(y,m,b,_):typeof p!="function"?p:p(y,m,b,_)};c[h]=g}return c},{})}return i}function Ql(t,e){const n=new Map(t.map((i,a)=>[i,a])),r=e?t.map(e):t;return(i,a)=>{if(typeof i!="function")return i;const o=n.get(a),s=e?e(a):a;return i(s,o,r,a)}}function uP(t){var{link:e=!1,valueof:n=(u,f)=>u,coordinate:r}=t,i=Kl(t,["link","valueof","coordinate"]);const a="element-link";if(!e)return[()=>{},()=>{}];const o=u=>u.__data__.points,s=(u,f)=>{const[,d,h]=u,[p,,,v]=f;return[d,p,v,h]};return[u=>{var f;if(u.length<=1)return;const d=Fa(u,(h,p)=>{const{x:v}=h.__data__,{x:g}=p.__data__;return v-g});for(let h=1;hn(A,v)),{fill:w=v.getAttribute("fill")}=O,M=Kl(O,["fill"]),E=new ri({className:a,style:Object.assign({d:p.toString(),fill:w,zIndex:-2},M)});(f=v.link)===null||f===void 0||f.remove(),v.parentNode.appendChild(E),v.link=E}},u=>{var f;(f=u.link)===null||f===void 0||f.remove(),u.link=null}]}function fP(t,e,n){const r=i=>{const{transform:a}=t.style;return a?`${a} ${i}`:i};if(Nn(n)){const{points:i}=t.__data__,[a,o]=zn(n)?yd(i):i,s=n.getCenter(),c=ur(a,s),l=ur(o,s),u=Gi(c),f=wO(c,l),d=u+f/2,h=e*Math.cos(d),p=e*Math.sin(d);return r(`translate(${h}, ${p})`)}return zn(n)?r(`translate(${e}, 0)`):r(`translate(0, ${-e})`)}function dP(t){var{document:e,background:n,scale:r,coordinate:i,valueof:a}=t,o=Kl(t,["document","background","scale","coordinate","valueof"]);const s="element-background";if(!n)return[()=>{},()=>{}];const c=(y,m,b)=>{const _=y.invert(m),O=m+y.getBandWidth(_)/2,w=y.getStep(_)/2,M=w*b;return[O-w+M,O+w-M]},l=(y,m)=>{const{x:b}=r;if(!Ul(b))return[0,1];const{__data__:_}=y,{x:O}=_,[w,M]=c(b,O,m);return[w,M]},u=(y,m)=>{const{y:b}=r;if(!Ul(b))return[0,1];const{__data__:_}=y,{y:O}=_,[w,M]=c(b,O,m);return[w,M]},f=(y,m)=>{const{padding:b}=m,[_,O]=l(y,b),[w,M]=u(y,b),E=[[_,w],[O,w],[O,M],[_,M]].map(j=>i.map(j)),{__data__:A}=y,{y:P,y1:C}=A;return qS(e,E,{y:P,y1:C},i,m)},d=(y,m)=>{const{transform:b="scale(1.2, 1.2)",transformOrigin:_="center center",stroke:O=""}=m,w=Kl(m,["transform","transformOrigin","stroke"]),M=Object.assign({transform:b,transformOrigin:_,stroke:O},w),E=y.cloneNode(!0);for(const[A,P]of Object.entries(M))E.style[A]=P;return E},h=()=>{const{x:y,y:m}=r;return[y,m].some(Ul)};return[y=>{y.background&&y.background.remove();const m=so(o,j=>a(j,y)),{fill:b="#CCD6EC",fillOpacity:_=.3,zIndex:O=-2,padding:w=.001,strokeWidth:M=0}=m,E=Kl(m,["fill","fillOpacity","zIndex","padding","strokeWidth"]),A=Object.assign(Object.assign({},E),{fill:b,fillOpacity:_,zIndex:O,padding:w,strokeWidth:M}),C=(h()?f:d)(y,A);C.className=s,y.parentNode.appendChild(C),y.background=C},y=>{var m;(m=y.background)===null||m===void 0||m.remove(),y.background=null},y=>y.className===s]}function wo(t,e){const r=t.getRootNode().defaultView.getContextService().getDomElement();r!=null&&r.style&&(t.cursor=r.style.cursor,r.style.cursor=e)}function WZ(t){wo(t,t.cursor)}function xy(t,e,n){return t.find(r=>Object.entries(e).every(([i,a])=>n(r)[i]===a))}var HZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);if,link:i=!1,background:a=!1,delay:o=60,scale:s,coordinate:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=Zn(d,r),v=Ql(d,n),[g,y]=uP(Object.assign({elements:d,valueof:v,link:i,coordinate:c},le(u.active,"link"))),[m,b,_]=dP(Object.assign({document:t.ownerDocument,scale:s,coordinate:c,background:a,valueof:v},le(u.active,"background"))),O=Nt(u,{active:Object.assign({},((f=u.active)===null||f===void 0?void 0:f.offset)&&{transform:(...F)=>{const B=u.active.offset(...F),[,z]=F;return fP(d[z],B,c)}})}),{setState:w,removeState:M,hasState:E}=za(O,v);let A;const P=F=>{const{target:B,nativeEvent:z=!0}=F;if(!h.has(B))return;A&&clearTimeout(A);const Y=r(B),$=p.get(Y),tt=new Set($);for(const it of d)tt.has(it)?E(it,"active")||w(it,"active"):(w(it,"inactive"),y(it)),it!==B&&b(it);m(B),g($),z&&l.emit("element:highlight",{nativeEvent:z,data:{data:n(B),group:$.map(n)}})},C=()=>{A&&clearTimeout(A),A=setTimeout(()=>{j(),A=null},o)},j=(F=!0)=>{for(const B of d)M(B,"active","inactive"),b(B),y(B);F&&l.emit("element:unhighlight",{nativeEvent:F})},N=F=>{const{target:B}=F;a&&!_(B)||!a&&!h.has(B)||(o>0?C():j())},k=()=>{j()};t.addEventListener("pointerover",P),t.addEventListener("pointerout",N),t.addEventListener("pointerleave",k);const R=F=>{const{nativeEvent:B}=F;B||j(!1)},D=F=>{const{nativeEvent:B}=F;if(B)return;const{data:z}=F.data,Y=xy(d,z,n);Y&&P({target:Y,nativeEvent:!1})};return l.on("element:highlight",D),l.on("element:unhighlight",R),()=>{t.removeEventListener("pointerover",P),t.removeEventListener("pointerout",N),t.removeEventListener("pointerleave",k),l.off("element:highlight",D),l.off("element:unhighlight",R);for(const F of d)b(F),y(F)}}function lh(t){var{delay:e,createGroup:n,background:r=!1,link:i=!1}=t,a=HZ(t,["delay","createGroup","background","link"]);return(o,s,c)=>{const{container:l,view:u,options:f}=o,{scale:d,coordinate:h}=u,p=Ba(l);return YZ(p,Object.assign({elements:Oo,datum:gs(u),groupKey:n?n(u):void 0,coordinate:h,scale:d,state:Mc(f,[["active",r?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:r,link:i,delay:e,emitter:c},a))}}lh.props={reapplyWhenUpdate:!0};function hP(t){return lh(Object.assign(Object.assign({},t),{createGroup:by}))}hP.props={reapplyWhenUpdate:!0};function pP(t){return lh(Object.assign(Object.assign({},t),{createGroup:lP}))}pP.props={reapplyWhenUpdate:!0};var VZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);if,link:i=!1,single:a=!1,coordinate:o,background:s=!1,scale:c,emitter:l,state:u={}}){var f;const d=e(t),h=new Set(d),p=Zn(d,r),v=Ql(d,n),[g,y]=uP(Object.assign({link:i,elements:d,valueof:v,coordinate:o},le(u.selected,"link"))),[m,b]=dP(Object.assign({document:t.ownerDocument,background:s,coordinate:o,scale:c,valueof:v},le(u.selected,"background"))),_=Nt(u,{selected:Object.assign({},((f=u.selected)===null||f===void 0?void 0:f.offset)&&{transform:(...k)=>{const R=u.selected.offset(...k),[,D]=k;return fP(d[D],R,o)}})}),{setState:O,removeState:w,hasState:M}=za(_,v),E=(k=!0)=>{for(const R of d)w(R,"selected","unselected"),y(R),b(R);k&&l.emit("element:unselect",{nativeEvent:!0})},A=(k,R,D=!0)=>{if(M(R,"selected"))E();else{const F=r(R),B=p.get(F),z=new Set(B);for(const Y of d)z.has(Y)?O(Y,"selected"):(O(Y,"unselected"),y(Y)),Y!==R&&b(Y);if(g(B),m(R),!D)return;l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:D,data:{data:[n(R),...B.map(n)]}}))}},P=(k,R,D=!0)=>{const F=r(R),B=p.get(F),z=new Set(B);if(M(R,"selected")){if(!d.some($=>!z.has($)&&M($,"selected")))return E();for(const $ of B)O($,"unselected"),y($),b($)}else{const Y=B.some($=>M($,"selected"));for(const $ of d)z.has($)?O($,"selected"):M($,"selected")||O($,"unselected");!Y&&i&&g(B),m(R)}D&&l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:D,data:{data:d.filter(Y=>M(Y,"selected")).map(n)}}))},C=k=>{const{target:R,nativeEvent:D=!0}=k;return h.has(R)?a?A(k,R,D):P(k,R,D):E()};t.addEventListener("click",C);const j=k=>{const{nativeEvent:R,data:D}=k;if(R)return;const F=a?D.data.slice(0,1):D.data;for(const B of F){const z=xy(d,B,n);C({target:z,nativeEvent:!1})}},N=()=>{E(!1)};return l.on("element:select",j),l.on("element:unselect",N),()=>{for(const k of d)y(k);t.removeEventListener("click",C),l.off("element:select",j),l.off("element:unselect",N)}}function uh(t){var{createGroup:e,background:n=!1,link:r=!1}=t,i=VZ(t,["createGroup","background","link"]);return(a,o,s)=>{const{container:c,view:l,options:u}=a,{coordinate:f,scale:d}=l,h=Ba(c);return XZ(h,Object.assign({elements:Oo,datum:gs(l),groupKey:e?e(l):void 0,coordinate:f,scale:d,state:Mc(u,[["selected",n?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:n,link:r,emitter:s},i))}}uh.props={reapplyWhenUpdate:!0};function vP(t){return uh(Object.assign(Object.assign({},t),{createGroup:by}))}vP.props={reapplyWhenUpdate:!0};function gP(t){return uh(Object.assign(Object.assign({},t),{createGroup:lP}))}gP.props={reapplyWhenUpdate:!0};var ys=function(t,e,n){var r,i,a,o,s=0;n||(n={});var c=function(){s=n.leading===!1?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},l=function(){var u=Date.now();!s&&n.leading===!1&&(s=u);var f=e-(u-s);return i=this,a=arguments,f<=0||f>e?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l};function $Z(t){const{coordinate:e={}}=t,{transform:n=[]}=e,r=n.find(a=>a.type==="fisheye");if(r)return r;const i={type:"fisheye"};return n.push(i),e.transform=n,t.coordinate=e,i}function UZ({wait:t=30,leading:e,trailing:n=!1}){return r=>{const{options:i,update:a,setState:o,container:s}=r,c=Ba(s),l=ys(u=>{const f=yy(c,u);if(!f){o("fisheye"),a();return}o("fisheye",d=>{const h=Nt({},d,{interaction:{tooltip:{preserve:!0}}});for(const y of h.marks)y.animate=!1;const[p,v]=f,g=$Z(h);return g.focusX=p,g.focusY=v,g.visual=!0,h}),a()},t,{leading:e,trailing:n});return c.addEventListener("pointerenter",l),c.addEventListener("pointermove",l),c.addEventListener("pointerleave",l),()=>{c.removeEventListener("pointerenter",l),c.removeEventListener("pointermove",l),c.removeEventListener("pointerleave",l)}}}var qZ=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},ZZ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii.type==="normalizeY");if(n)return n;const r={type:"normalizeY"};return e.push(r),t.transform=e,r}function QZ(t,e,n){const[r]=Array.from(t.entries()).filter(([i])=>i.type===e).map(([i])=>{const{encode:a}=i,o=s=>{const c=a[s];return[s,c?c.value:void 0]};return Object.fromEntries(n.map(o))});return r}function yP(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=o=>`${o}`}=t,a=ZZ(t,["wait","leading","trailing","labelFormatter"]);return o=>{const{view:s,container:c,update:l,setState:u}=o,{markState:f,scale:d,coordinate:h}=s,p=QZ(f,"line",["x","y","series"]);if(!p)return;const{y:v,x:g,series:y=[]}=p,m=v.map((F,B)=>B),b=Fa(m.map(F=>g[F])),_=Ba(c),O=c.getElementsByClassName(Ca),w=c.getElementsByClassName($0),E=Zn(w,F=>F.__data__.key.split("-")[0]),A=new rl({style:Object.assign({x1:0,y1:0,x2:0,y2:_.getAttribute("height"),stroke:"black",lineWidth:1},le(a,"rule"))}),P=new Zi({style:Object.assign({x:0,y:_.getAttribute("height"),text:"",fontSize:10},le(a,"label"))});A.append(P),_.appendChild(A);const C=(F,B,z)=>{const[Y]=F.invert(z),$=B.invert(Y);return b[yZ(b,$)]},j=(F,B)=>{A.setAttribute("x1",F[0]),A.setAttribute("x2",F[0]),P.setAttribute("text",i(B))};let N;const k=F=>qZ(this,void 0,void 0,function*(){const{x:B}=d,z=C(h,B,F);j(F,z),u("chartIndex",$=>{const tt=Nt({},$),it=tt.marks.find(Ct=>Ct.type==="line"),Ft=Sn(K0(m,Ct=>Sn(Ct,se=>+v[se])/Ai(Ct,se=>+v[se]),Ct=>y[Ct]).values()),Xt=[1/Ft,Ft];Nt(it,{scale:{y:{domain:Xt}}});const Pt=KZ(it);Pt.groupBy="color",Pt.basis=(Ct,se)=>{const ce=Ct[_c(Oe=>g[+Oe]).center(Ct,z)];return se[ce]};for(const Ct of tt.marks)Ct.animate=!1;return tt}),N=(yield l("chartIndex")).view}),R=F=>{const{scale:B,coordinate:z}=N,{x:Y,y:$}=B,tt=C(z,Y,F);j(F,tt);for(const it of O){const{seriesIndex:St,key:Ft}=it.__data__,Xt=St[_c(Fe=>g[+Fe]).center(St,tt)],Pt=[0,$.map(1)],Ct=[0,$.map(v[Xt]/v[St[0]])],[,se]=z.map(Pt),[,ce]=z.map(Ct),Oe=se-ce;it.setAttribute("transform",`translate(0, ${Oe})`);const He=E.get(Ft)||[];for(const Fe of He)Fe.setAttribute("dy",Oe)}},D=ys(F=>{const B=yy(_,F);B&&R(B)},e,{leading:n,trailing:r});return k([0,0]),_.addEventListener("pointerenter",D),_.addEventListener("pointermove",D),_.addEventListener("pointerleave",D),()=>{A.remove(),_.removeEventListener("pointerenter",D),_.removeEventListener("pointermove",D),_.removeEventListener("pointerleave",D)}}}yP.props={reapplyWhenUpdate:!0};function Jl(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function fh(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function mP(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function JZ(t,e){return!t||!e?t:t.replace(/\\?\{([^{}]+)\}/g,function(n,r){return n.charAt(0)==="\\"?n.slice(1):e[r]===void 0?"":e[r]})}var tK=JZ;function _y(t){return t===void 0&&(t=""),{CONTAINER:"".concat(t,"tooltip"),TITLE:"".concat(t,"tooltip-title"),LIST:"".concat(t,"tooltip-list"),LIST_ITEM:"".concat(t,"tooltip-list-item"),NAME:"".concat(t,"tooltip-list-item-name"),MARKER:"".concat(t,"tooltip-list-item-marker"),NAME_LABEL:"".concat(t,"tooltip-list-item-name-label"),VALUE:"".concat(t,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(t,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(t,"tooltip-crosshair-y")}}var bP={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function eK(t){var e;t===void 0&&(t="");var n=_y(t);return e={},e[".".concat(n.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},e[".".concat(n.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},e[".".concat(n.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},e[".".concat(n.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},e[".".concat(n.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},e[".".concat(n.NAME)]={display:"flex","align-items":"center","max-width":"216px"},e[".".concat(n.NAME_LABEL)]=(0,S.pi)({flex:1},bP),e[".".concat(n.VALUE)]=(0,S.pi)({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},bP),e[".".concat(n.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},e[".".concat(n.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},e}var nK=function(t){(0,S.ZT)(e,t);function e(n){var r=this,i,a,o=(a=(i=n.style)===null||i===void 0?void 0:i.template)===null||a===void 0?void 0:a.prefixCls,s=_y(o);return r=t.call(this,n,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'
    '),title:'
    '),item:'
  • + + + {name} + + {value} +
  • `)},style:eK(o)})||this,r.timestamp=-1,r.prevCustomContentKey=r.attributes.contentKey,r.initShape(),r.render(r.attributes,r),r}return Object.defineProperty(e.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.element},Object.defineProperty(e.prototype,"elementSize",{get:function(){var n=this.element.offsetWidth,r=this.element.offsetHeight;return{width:n,height:r}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HTMLTooltipItemsElements",{get:function(){var n=this.attributes,r=n.data,i=n.template;return r.map(function(a,o){var s=a.name,c=s===void 0?"":s,l=a.color,u=l===void 0?"black":l,f=a.index,d=(0,S._T)(a,["name","color","index"]),h=(0,S.pi)({name:c,color:u,index:f!=null?f:o},d);return mP(tK(i.item,h))})},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){this.renderHTMLTooltipElement(),this.updatePosition()},e.prototype.destroy=function(){var n;(n=this.element)===null||n===void 0||n.remove(),t.prototype.destroy.call(this)},e.prototype.show=function(n,r){var i=this;if(n!==void 0&&r!==void 0){var a=this.element.style.visibility==="hidden",o=function(){i.attributes.x=n!=null?n:i.attributes.x,i.attributes.y=r!=null?r:i.attributes.y,i.updatePosition()};a?this.closeTransition(o):o()}this.element.style.visibility="visible"},e.prototype.hide=function(n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i=this.attributes.enterable;i&&this.isCursorEntered(n,r)||(this.element.style.visibility="hidden")},e.prototype.initShape=function(){var n=this.attributes.template;this.element=mP(n.container),this.id&&this.element.setAttribute("id",this.id)},e.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var n=this.attributes.content;n&&(typeof n=="string"?this.element.innerHTML=n:this.element.replaceChildren(n))}},e.prototype.renderHTMLTooltipElement=function(){var n,r,i=this.attributes,a=i.template,o=i.title,s=i.enterable,c=i.style,l=i.content,u=_y(a.prefixCls),f=this.element;if(this.element.style.pointerEvents=s?"auto":"none",l)this.renderCustomContent();else{o?(f.innerHTML=a.title,f.getElementsByClassName(u.TITLE)[0].innerHTML=o):(r=(n=f.getElementsByClassName(u.TITLE))===null||n===void 0?void 0:n[0])===null||r===void 0||r.remove();var d=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=u.LIST,h.replaceChildren.apply(h,(0,S.ev)([],(0,S.CR)(d),!1));var p=this.element.querySelector(".".concat(u.LIST));p?p.replaceWith(h):f.appendChild(h)}PF(f,c)},e.prototype.getRelativeOffsetFromCursor=function(n){var r=this.attributes,i=r.position,a=r.offset,o=n||i,s=o.split("-"),c={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},l=this.elementSize,u=l.width,f=l.height,d=[-u/2,-f/2];return s.forEach(function(h){var p=(0,S.CR)(d,2),v=p[0],g=p[1],y=(0,S.CR)(c[h],2),m=y[0],b=y[1];d=[v+(u/2+a[0])*m,g+(f/2+a[1])*b]}),d},e.prototype.setOffsetPosition=function(n){var r=(0,S.CR)(n,2),i=r[0],a=r[1],o=this.attributes,s=o.x,c=s===void 0?0:s,l=o.y,u=l===void 0?0:l,f=o.container,d=f.x,h=f.y;this.element.style.left="".concat(+c+d+i,"px"),this.element.style.top="".concat(+u+h+a,"px")},e.prototype.updatePosition=function(){var n=this.attributes.showDelay,r=n===void 0?60:n,i=Date.now();this.timestamp>0&&i-this.timestampm+_,top:gb+O},M=[];u.split("-").forEach(function(A){w[A]?M.push(y[A]):M.push(A)});var E=M.join("-");return this.getRelativeOffsetFromCursor(E)},e.prototype.isCursorEntered=function(n,r){if(this.element){var i=this.element.getBoundingClientRect(),a=i.x,o=i.y,s=i.width,c=i.height;return new Gn(a,o,s,c).isPointIn(n,r)}return!1},e.prototype.closeTransition=function(n){var r=this,i=this.element.style.transition;this.element.style.transition="none",n(),setTimeout(function(){r.element.style.transition=i},10)},e.tag="tooltip",e}(Lr),tu=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{var{color:o=OP(t)}=a,s=tu(a,["color"]);return Object.assign(Object.assign({},s),{color:o})}).map(_P);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}function sK(t,e){const{color:n,series:r,facet:i=!1}=t,{color:a,series:o}=e,s=c=>c&&c.invert&&!(c instanceof mo)&&!(c instanceof Sl);if(s(r))return r.clone().invert(o);if(o&&r instanceof mo&&r.invert(o)!==a&&!i)return r.invert(o);if(s(n)){const c=n.invert(a);return Array.isArray(c)?null:c}return null}function OP(t){const e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=e&&e!=="transparent"?e:n}=r;return i}function wP(t,e=n=>n){const n=new Map(t.map(r=>[e(r),r]));return Array.from(n.values())}function SP(t,e,n,r=t.map(a=>a.__data__),i={}){const a=c=>c instanceof Date?+c:c,o=wP(r.map(c=>c.title),a).filter(Rn),s=r.flatMap((c,l)=>{const u=t[l],{items:f=[],title:d}=c,h=f.filter(Rn),p=n!==void 0?n:f.length<=1;return h.map(v=>{var{color:g=OP(u)||i.color,name:y}=v,m=tu(v,["color","name"]);const b=sK(e,c),_=p?b||y:y||b;return Object.assign(Object.assign({},m),{color:g,name:_||d})})}).map(_P);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:wP(s,c=>`(${a(c.name)}, ${a(c.value)}, ${a(c.color)})`)})}function cK(t,e,n){var{plotWidth:r,plotHeight:i,mainWidth:a,mainHeight:o,startX:s,startY:c,transposed:l,polar:u,insetLeft:f,insetTop:d}=n,h=tu(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},h),v=e.map(A=>A[1]),g=e.map(A=>A[0]),y=Jl(v),m=Jl(g),b=()=>{if(u){const A=Math.min(a,o)/2,P=s+f+a/2,C=c+d+o/2,j=Gi(ur([m,y],[P,C])),N=P+A*Math.cos(j),k=C+A*Math.sin(j);return[P,N,C,k]}return l?[s,s+r,y+c,y+c]:[m+s,m+s,c,c+i]},[_,O,w,M]=b(),E=()=>{const A=new rl({style:Object.assign({x1:_,x2:O,y1:w,y2:M},p)});return t.appendChild(A),A};if(g.length>0){const A=t.ruleY||E();A.style.x1=_,A.style.x2=O,A.style.y1=w,A.style.y2=M,t.ruleY=A}}function MP(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function lK(t,{data:e,style:n,theme:r}){t.markers&&t.markers.forEach(a=>a.remove());const i=e.filter(a=>{const[{x:o,y:s}]=a;return Rn(o)&&Rn(s)}).map(a=>{const[{color:o,element:s},c]=a,l=o||s.style.fill||s.style.stroke||r.color;return new nl({style:Object.assign({cx:c[0],cy:c[1],fill:l,r:4,stroke:"#fff",strokeWidth:2},n)})});for(const a of i)t.appendChild(a);t.markers=i}function EP(t){t.markers&&(t.markers.forEach(e=>e.remove()),t.markers=[])}function AP(t,e){return Array.from(t.values()).some(n=>{var r;return(r=n.interaction)===null||r===void 0?void 0:r[e]})}function wy(t,e){return t===void 0?e:t}function TP(t){const{title:e,items:n}=t;return n.length===0&&e===void 0}function uK(t){return Array.from(t.values()).some(e=>{var n;return((n=e.interaction)===null||n===void 0?void 0:n.seriesTooltip)&&e.tooltip})}function PP(t,e){var{elements:n,sort:r,filter:i,scale:a,coordinate:o,crosshairs:s,render:c,groupName:l,emitter:u,wait:f=50,leading:d=!0,trailing:h=!1,startX:p=0,startY:v=0,body:g=!0,single:y=!0,position:m,enterable:b,mount:_,bounding:O,theme:w,disableNative:M=!1,marker:E=!0,preserve:A=!1,style:P={},css:C={}}=e,j=tu(e,["elements","sort","filter","scale","coordinate","crosshairs","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","disableNative","marker","preserve","style","css"]);const N=n(t),k=zn(o),R=Nn(o),D=Nt(P,j),{innerWidth:F,innerHeight:B,width:z,height:Y,insetLeft:$,insetTop:tt}=o.getOptions(),it=[],St=[];for(const pn of N){const{__data__:_n}=pn,{seriesX:ir,title:En,items:Ar}=_n;ir?it.push(pn):(En||Ar)&&St.push(pn)}const Xt=!!(k?a.y:a.x).getBandWidth&&St.length>0;it.sort((pn,_n)=>{const ir=k?0:1,En=Ar=>Ar.getBounds().min[ir];return k?En(_n)-En(pn):En(pn)-En(_n)});const Pt=pn=>{const _n=k?1:0,{min:ir,max:En}=pn.getLocalBounds();return Fa([ir[_n],En[_n]])};St.sort((pn,_n)=>{const[ir,En]=Pt(pn),[Ar,Pr]=Pt(_n),_i=(ir+En)/2,Ri=(Ar+Pr)/2;return k?Ri-_i:_i-Ri});const Ct=new Map(it.map(pn=>{const{__data__:_n}=pn,{seriesX:ir}=_n,En=ir.map((Pr,_i)=>_i),Ar=Fa(En,Pr=>ir[+Pr]);return[pn,[Ar,ir]]})),{x:se}=a,ce=se!=null&&se.getBandWidth?se.getBandWidth()/2:0,Oe=pn=>{const[_n]=o.invert(pn);return _n-ce},He=(pn,_n,ir)=>{const En=Oe(pn),Ar=ir.filter(Rn),[Pr,_i]=Fa([Ar[0],Ar[Ar.length-1]]),Ri=Pr===_i;if(!Xt&&(En_i)&&!Ri)return null;const ra=_c(h1=>ir[+h1]).center,Co=ra(_n,En);return _n[Co]},Fe=(pn,_n)=>{const En=pn[k?1:0],Ar=_n.filter(Ri=>{const[ra,Co]=Pt(Ri);return En>=ra&&En<=Co});if(!Xt||Ar.length>0)return Ar;const Pr=_c(Ri=>{const[ra,Co]=Pt(Ri);return(ra+Co)/2}).center,_i=Pr(_n,En);return[_n[_i]].filter(Rn)},Ke=(pn,_n)=>{const{__data__:ir}=pn;return Object.fromEntries(Object.entries(ir).filter(([En])=>En.startsWith("series")&&En!=="series").map(([En,Ar])=>{const Pr=Ar[_n];return[w_(En.replace("series","")),Pr]}))},dn=ys(pn=>{const _n=yy(t,pn);if(!_n)return;const ir=cP(t),En=ir.min[0],Ar=ir.min[1],Pr=[_n[0]-p,_n[1]-v];if(!Pr)return;const _i=Fe(Pr,St),Ri=[],ra=[];for(const Tr of it){const[Du,v1]=Ct.get(Tr),V3=He(Pr,Du,v1);if(V3!==null){Ri.push(Tr);const X3=Ke(Tr,V3),{x:nut,y:rut}=X3,iut=o.map([(nut||0)+ce,rut||0]);ra.push([Object.assign(Object.assign({},X3),{element:Tr}),iut])}}const Co=Array.from(new Set(ra.map(Tr=>Tr[0].x))),h1=Co[fh(Co,Tr=>Math.abs(Tr-Oe(Pr)))],p1=ra.filter(Tr=>Tr[0].x===h1),eut=[...p1.map(Tr=>Tr[0]),..._i.map(Tr=>Tr.__data__)],Y3=[...Ri,..._i],ju=SP(Y3,a,l,eut,w);if(r&&ju.items.sort((Tr,Du)=>r(Tr)-r(Du)),i&&(ju.items=ju.items.filter(i)),Y3.length===0||TP(ju)){xn(pn);return}if(g&&xP({root:t,data:ju,x:_n[0]+En,y:_n[1]+Ar,render:c,event:pn,single:y,position:m,enterable:b,mount:_,bounding:O,css:C}),s){const Tr=p1.map(v1=>v1[1]),Du=le(D,"crosshairs");cK(t,Tr,Object.assign(Object.assign({},Du),{plotWidth:F,plotHeight:B,mainWidth:z,mainHeight:Y,insetLeft:$,insetTop:tt,startX:p,startY:v,transposed:k,polar:R}))}if(E){const Tr=le(D,"marker");lK(t,{data:p1,style:Tr,theme:w})}u.emit("tooltip:show",Object.assign(Object.assign({},pn),{nativeEvent:!0,data:{data:{x:Oc(a.x,Oe(Pr),!0)}}}))},f,{leading:d,trailing:h}),xn=pn=>{So({root:t,single:y,emitter:u,event:pn}),s&&MP(t),E&&EP(t)},Yn=()=>{Oy({root:t,single:y}),s&&MP(t),E&&EP(t)},yr=({nativeEvent:pn,data:_n})=>{if(pn)return;const{x:ir}=_n.data,{x:En}=a,Ar=En.map(ir),[Pr,_i]=o.map([Ar,.5]),{min:[Ri,ra]}=t.getRenderBounds();dn({offsetX:Pr+Ri,offsetY:_i+ra})},xi=()=>{So({root:t,single:y,emitter:u,nativeEvent:!1})},Xa=()=>{Ui(),Yn()},ws=()=>{si()},si=()=>{M||(t.addEventListener("pointerenter",dn),t.addEventListener("pointermove",dn),t.addEventListener("pointerleave",xn))},Ui=()=>{M||(t.removeEventListener("pointerenter",dn),t.removeEventListener("pointermove",dn),t.removeEventListener("pointerleave",xn))};return si(),u.on("tooltip:show",yr),u.on("tooltip:hide",xi),u.on("tooltip:disable",Xa),u.on("tooltip:enable",ws),()=>{Ui(),u.off("tooltip:show",yr),u.off("tooltip:hide",xi),u.off("tooltip:disable",Xa),u.off("tooltip:enable",ws),A?So({root:t,single:y,emitter:u,nativeEvent:!1}):Yn()}}function fK(t,{elements:e,scale:n,render:r,groupName:i,sort:a,filter:o,emitter:s,wait:c=50,leading:l=!0,trailing:u=!1,groupKey:f=A=>A,single:d=!0,position:h,enterable:p,datum:v,view:g,mount:y,bounding:m,theme:b,shared:_=!1,body:O=!0,disableNative:w=!1,preserve:M=!1,css:E={}}){const A=e(t),P=new Set(A),C=Zn(A,f),j=ys(Y=>{const{target:$}=Y;if(!P.has($)){So({root:t,single:d,emitter:s,event:Y});return}const tt=f($),it=C.get(tt),St=it.length===1&&!_?oK(it[0]):SP(it,n,i,void 0,b);if(a&&St.items.sort((Pt,Ct)=>a(Pt)-a(Ct)),o&&(St.items=St.items.filter(o)),TP(St)){So({root:t,single:d,emitter:s,event:Y});return}const{offsetX:Ft,offsetY:Xt}=Y;O&&xP({root:t,data:St,x:Ft,y:Xt,render:r,event:Y,single:d,position:h,enterable:p,mount:y,bounding:m,css:E}),s.emit("tooltip:show",Object.assign(Object.assign({},Y),{nativeEvent:!0,data:{data:YO($,g)}}))},c,{leading:l,trailing:u}),N=Y=>{So({root:t,single:d,emitter:s,event:Y})},k=()=>{w||(t.addEventListener("pointermove",j),t.addEventListener("pointerleave",N))},R=()=>{w||(t.removeEventListener("pointermove",j),t.removeEventListener("pointerleave",N))},D=({nativeEvent:Y,data:$})=>{if(Y)return;const tt=xy(A,$.data,v);if(!tt)return;const it=tt.getBBox(),{x:St,y:Ft,width:Xt,height:Pt}=it;j({target:tt,offsetX:St+Xt/2,offsetY:Ft+Pt/2})},F=({nativeEvent:Y}={})=>{Y||So({root:t,single:d,emitter:s,nativeEvent:!1})},B=()=>{R(),Oy({root:t,single:d})},z=()=>{k()};return s.on("tooltip:show",D),s.on("tooltip:hide",F),s.on("tooltip:enable",z),s.on("tooltip:disable",B),k(),()=>{R(),s.off("tooltip:show",D),s.off("tooltip:hide",F),M?So({root:t,single:d,emitter:s,nativeEvent:!1}):Oy({root:t,single:d})}}function CP(t){const{shared:e,crosshairs:n,series:r,name:i,item:a=()=>({}),facet:o=!1}=t,s=tu(t,["shared","crosshairs","series","name","item","facet"]);return(c,l,u)=>{const{container:f,view:d}=c,{scale:h,markState:p,coordinate:v,theme:g}=d,y=AP(p,"seriesTooltip"),m=AP(p,"crosshairs"),b=Ba(f),_=wy(r,y);if(_&&uK(p)&&!o)return PP(b,Object.assign(Object.assign({},s),{theme:g,elements:Oo,scale:h,coordinate:v,crosshairs:wy(n,m),item:a,emitter:u}));if(_&&o){const O=l.filter(C=>C!==c&&C.options.parentKey===c.options.key),w=sP(c,l),M=O[0].view.scale,E=b.getBounds(),A=E.min[0],P=E.min[1];return Object.assign(M,{facet:!0}),PP(b.parentNode.parentNode,Object.assign(Object.assign({},s),{theme:g,elements:()=>w,scale:M,coordinate:v,crosshairs:wy(n,m),item:a,startX:A,startY:P,emitter:u}))}return fK(b,Object.assign(Object.assign({},s),{datum:gs(d),elements:Oo,scale:h,coordinate:v,groupKey:e?by(d):void 0,item:a,emitter:u,view:d,theme:g,shared:e}))}}CP.props={reapplyWhenUpdate:!0};var hh=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const kP="legend-category",dK="legend-continuous",hK="items-item",pK="legend-category-item-marker",vK="legend-category-item-label";function RP(t){return t.getElementsByClassName(pK)[0]}function LP(t){return t.getElementsByClassName(vK)[0]}function NP(t){return t.getElementsByClassName(hK)}function IP(t){return t.getElementsByClassName(kP)}function gK(t){return t.getElementsByClassName(dK)}function Sy(t){let e=t.parentNode;for(;e&&!e.__data__;)e=e.parentNode;return e.__data__}function mpt(t){let e=t;for(;e&&!e.attr("class").startsWith("legend");)e=e.children[0];return e.attributes}function yK(t,{legends:e,marker:n,label:r,datum:i,filter:a,emitter:o,channel:s,state:c={}}){const l=new Map,u=new Map,f=new Map,{unselected:d={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=c,h={unselected:le(d,"marker")},p={unselected:le(d,"label")},{setState:v,removeState:g}=za(h,void 0),{setState:y,removeState:m}=za(p,void 0),b=Array.from(e(t));let _=b.map(i);const O=()=>{for(const E of b){const A=i(E),P=n(E),C=r(E);_.includes(A)?(g(P,"unselected"),m(C,"unselected")):(v(P,"unselected"),y(C,"unselected"))}};for(const E of b){const A=()=>{wo(t,"pointer")},P=()=>{WZ(t)},C=j=>hh(this,void 0,void 0,function*(){const N=i(E),k=_.indexOf(N);k===-1?_.push(N):_.splice(k,1),_.length===0&&_.push(...b.map(i)),yield a(_),O();const{nativeEvent:R=!0}=j;R&&(_.length===b.length?o.emit("legend:reset",{nativeEvent:R}):o.emit("legend:filter",Object.assign(Object.assign({},j),{nativeEvent:R,data:{channel:s,values:_}})))});E.addEventListener("click",C),E.addEventListener("pointerenter",A),E.addEventListener("pointerout",P),l.set(E,C),u.set(E,A),f.set(E,P)}const w=E=>hh(this,void 0,void 0,function*(){const{nativeEvent:A}=E;if(A)return;const{data:P}=E,{channel:C,values:j}=P;C===s&&(_=j,yield a(_),O())}),M=E=>hh(this,void 0,void 0,function*(){const{nativeEvent:A}=E;A||(_=b.map(i),yield a(_),O())});return o.on("legend:filter",w),o.on("legend:reset",M),()=>{for(const E of b)E.removeEventListener("click",l.get(E)),E.removeEventListener("pointerenter",u.get(E)),E.removeEventListener("pointerout",f.get(E)),o.off("legend:filter",w),o.off("legend:reset",M)}}function mK(t,{legend:e,filter:n,emitter:r,channel:i}){const a=({detail:{value:o}})=>{n(o),r.emit({nativeEvent:!0,data:{channel:i,values:o}})};return e.addEventListener("valuechange",a),()=>{e.removeEventListener("valuechange",a)}}function jP(t,{legend:e,channel:n,value:r,ordinal:i,channels:a,allChannels:o,facet:s=!1}){return hh(this,void 0,void 0,function*(){const{view:c,update:l,setState:u}=t;u(e,f=>{const{marks:d}=f,h=d.map(p=>{if(p.type==="legends")return p;const{transform:v=[]}=p,g=v.findIndex(({type:b})=>b.startsWith("group")||b.startsWith("bin")),y=[...v];y.splice(g+1,0,{type:"filter",[n]:{value:r,ordinal:i}});const m=Object.fromEntries(a.map(b=>[b,{domain:c.scale[b].getOptions().domain}]));return Nt({},p,Object.assign(Object.assign({transform:y,scale:m},!i&&{animate:!1}),{legend:s?!1:Object.fromEntries(o.map(b=>[b,{preserve:!0}]))}))});return Object.assign(Object.assign({},f),{marks:h})}),yield l()})}function bK(t,e){for(const n of t)jP(n,Object.assign(Object.assign({},e),{facet:!0}))}function xK(){return(t,e,n)=>{const{container:r}=t,i=e.filter(f=>f!==t),a=i.length>0,o=f=>Sy(f).scales.map(d=>d.name),s=[...IP(r),...gK(r)],c=s.flatMap(o),l=a?ys(bK,50,{trailing:!0}):ys(jP,50,{trailing:!0}),u=s.map(f=>{const{name:d,domain:h}=Sy(f).scales[0],p=o(f),v={legend:f,channel:d,channels:p,allChannels:c};return f.className===kP?yK(r,{legends:NP,marker:RP,label:LP,datum:g=>{const{__data__:y}=g,{index:m}=y;return h[m]},filter:g=>{const y=Object.assign(Object.assign({},v),{value:g,ordinal:!0});l(a?i:t,y)},state:f.attributes.state,channel:d,emitter:n}):mK(r,{legend:f,filter:g=>{const y=Object.assign(Object.assign({},v),{value:g,ordinal:!1});l(a?i:t,y)},emitter:n,channel:d})});return()=>{u.forEach(f=>f())}}}function _K(){return(t,e,n)=>{const{container:r,view:i,options:a}=t,o=IP(r),s=Oo(r),c=h=>Sy(h).scales[0].name,l=h=>{const{scale:{[h]:p}}=i;return p},u=Mc(a,["active","inactive"]),f=Ql(s,gs(i)),d=[];for(const h of o){const p=Y=>{const{data:$}=h.attributes,{__data__:tt}=Y,{index:it}=tt;return $[it].label},v=c(h),g=NP(h),y=l(v),m=Zn(s,Y=>y.invert(Y.__data__[v])),{state:b={}}=h.attributes,{inactive:_={}}=b,{setState:O,removeState:w}=za(u,f),M={inactive:le(_,"marker")},E={inactive:le(_,"label")},{setState:A,removeState:P}=za(M),{setState:C,removeState:j}=za(E),N=Y=>{for(const $ of g){const tt=RP($),it=LP($);$===Y||Y===null?(P(tt,"inactive"),j(it,"inactive")):(A(tt,"inactive"),C(it,"inactive"))}},k=(Y,$)=>{const tt=p($),it=new Set(m.get(tt));for(const Ft of s)it.has(Ft)?O(Ft,"active"):O(Ft,"inactive");N($);const{nativeEvent:St=!0}=Y;St&&n.emit("legend:highlight",Object.assign(Object.assign({},Y),{nativeEvent:St,data:{channel:v,value:tt}}))},R=new Map;for(const Y of g){const $=tt=>{k(tt,Y)};Y.addEventListener("pointerover",$),R.set(Y,$)}const D=Y=>{for(const tt of s)w(tt,"inactive","active");N(null);const{nativeEvent:$=!0}=Y;$&&n.emit("legend:unhighlight",{nativeEvent:$})},F=Y=>{const{nativeEvent:$,data:tt}=Y;if($)return;const{channel:it,value:St}=tt;if(it!==v)return;const Ft=g.find(Xt=>p(Xt)===St);Ft&&k({nativeEvent:!1},Ft)},B=Y=>{const{nativeEvent:$}=Y;$||D({nativeEvent:!1})};h.addEventListener("pointerleave",D),n.on("legend:highlight",F),n.on("legend:unhighlight",B);const z=()=>{h.removeEventListener(D),n.off("legend:highlight",F),n.off("legend:unhighlight",B);for(const[Y,$]of R)Y.removeEventListener($)};d.push(z)}return()=>d.forEach(h=>h())}}var Pi=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii||ca||l{const e=t.attributes,{x:n,y:r,width:i,height:a,class:o,renders:s={},handleSize:c=10,document:l}=e,u=Pi(e,["x","y","width","height","class","renders","handleSize","document"]);if(!l||i===void 0||a===void 0||n===void 0||r===void 0)return;const f=c/2,d=(St,Ft,Xt)=>{St.handle||(St.handle=Xt.createElement("rect"),St.append(St.handle));const{handle:Pt}=St;return Pt.attr(Ft),Pt},h=le(nv(u,"handleNW","handleNE"),"handleN"),{render:p=d}=h,v=Pi(h,["render"]),g=le(u,"handleE"),{render:y=d}=g,m=Pi(g,["render"]),b=le(nv(u,"handleSE","handleSW"),"handleS"),{render:_=d}=b,O=Pi(b,["render"]),w=le(u,"handleW"),{render:M=d}=w,E=Pi(w,["render"]),A=le(u,"handleNW"),{render:P=d}=A,C=Pi(A,["render"]),j=le(u,"handleNE"),{render:N=d}=j,k=Pi(j,["render"]),R=le(u,"handleSE"),{render:D=d}=R,F=Pi(R,["render"]),B=le(u,"handleSW"),{render:z=d}=B,Y=Pi(B,["render"]),$=(St,Ft)=>{const{id:Xt}=St,Pt=St.attributes,{x:Ct,y:se}=Pt,ce=Pi(Pt,["x","y"]),Oe=Ft(St,Object.assign({x:0,y:0},ce),l);Oe.id=Xt,Oe.style.draggable=!0},tt=St=>()=>{const Ft=rc(Xt=>$(Xt,St));return new Ft({})},it=je(t).attr("className",o).style("x",n).style("y",r).style("draggable",!0);it.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(Ga,Object.assign({width:i,height:a},nv(u,"handle"))),it.maybeAppend("handle-n",tt(p)).style("x",f).style("y",-f).style("width",i-c).style("height",c).style("fill","transparent").call(Ga,v),it.maybeAppend("handle-e",tt(y)).style("x",i-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(Ga,m),it.maybeAppend("handle-s",tt(_)).style("x",f).style("y",a-f).style("width",i-c).style("height",c).style("fill","transparent").call(Ga,O),it.maybeAppend("handle-w",tt(M)).style("x",-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(Ga,E),it.maybeAppend("handle-nw",tt(P)).style("x",-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,C),it.maybeAppend("handle-ne",tt(N)).style("x",i-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,k),it.maybeAppend("handle-se",tt(D)).style("x",i-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,F),it.maybeAppend("handle-sw",tt(z)).style("x",-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(Ga,Y)});function My(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:s=SK(t),brushRegion:c=(Pt,Ct,se,ce,Oe)=>[Pt,Ct,se,ce],reverse:l=!1,fill:u="#777",fillOpacity:f="0.3",stroke:d="#fff",selectedHandles:h=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=e,p=Pi(e,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let v=null,g=null,y=null,m=null,b=null,_=!1;const[O,w,M,E]=s;wo(t,"crosshair"),t.style.draggable=!0;const A=(Pt,Ct,se)=>{if(a(se),m&&m.remove(),b&&b.remove(),v=[Pt,Ct],l)return P();C()},P=()=>{b=new ri({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:f,stroke:d,pointerEvents:"none"})}),m=new DP({style:{x:0,y:0,width:0,height:0,draggable:!0,document:t.ownerDocument},className:"mask"}),t.appendChild(b),t.appendChild(m)},C=()=>{m=new DP({style:Object.assign(Object.assign({document:t.ownerDocument,x:0,y:0},p),{fill:u,fillOpacity:f,stroke:d,draggable:!0}),className:"mask"}),t.appendChild(m)},j=(Pt=!0)=>{m&&m.remove(),b&&b.remove(),v=null,g=null,y=null,_=!1,m=null,b=null,r(Pt)},N=(Pt,Ct,se=!0)=>{const[ce,Oe,He,Fe]=wK(Pt[0],Pt[1],Ct[0],Ct[1],s),[Ke,dn,xn,Yn]=c(ce,Oe,He,Fe,s);return l?R(Ke,dn,xn,Yn):k(Ke,dn,xn,Yn),n(Ke,dn,xn,Yn,se),[Ke,dn,xn,Yn]},k=(Pt,Ct,se,ce)=>{m.style.x=Pt,m.style.y=Ct,m.style.width=se-Pt,m.style.height=ce-Ct},R=(Pt,Ct,se,ce)=>{b.style.d=` + M${O},${w}L${M},${w}L${M},${E}L${O},${E}Z + M${Pt},${Ct}L${Pt},${ce}L${se},${ce}L${se},${Ct}Z + `,m.style.x=Pt,m.style.y=Ct,m.style.width=se-Pt,m.style.height=ce-Ct},D=Pt=>{const Ct=(dn,xn,Yn,yr,xi)=>dn+xnxi?xi-Yn:dn,se=Pt[0]-y[0],ce=Pt[1]-y[1],Oe=Ct(se,v[0],g[0],O,M),He=Ct(ce,v[1],g[1],w,E),Fe=[v[0]+Oe,v[1]+He],Ke=[g[0]+Oe,g[1]+He];N(Fe,Ke)},F={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},B=Pt=>Y(Pt)||z(Pt),z=Pt=>{const{id:Ct}=Pt;return h.indexOf(Ct)===-1?!1:new Set(Object.keys(F)).has(Ct)},Y=Pt=>Pt===m.getElementById("selection"),$=Pt=>{const{target:Ct}=Pt,[se,ce]=my(t,Pt);if(!m||!B(Ct)){A(se,ce,Pt),_=!0;return}B(Ct)&&(y=[se,ce])},tt=Pt=>{const{target:Ct}=Pt,se=my(t,Pt);if(!v)return;if(!y)return N(v,se);if(Y(Ct))return D(se);const[ce,Oe]=[se[0]-y[0],se[1]-y[1]],{id:He}=Ct;if(F[He]){const[Fe,Ke,dn,xn]=F[He].vector;return N([v[0]+ce*Fe,v[1]+Oe*Ke],[g[0]+ce*dn,g[1]+Oe*xn])}},it=Pt=>{if(y){y=null;const{x:He,y:Fe,width:Ke,height:dn}=m.style;v=[He,Fe],g=[He+Ke,Fe+dn],o(He,Fe,He+Ke,Fe+dn,Pt);return}g=my(t,Pt);const[Ct,se,ce,Oe]=N(v,g);_=!1,i(Ct,se,ce,Oe,Pt)},St=Pt=>{const{target:Ct}=Pt;m&&!B(Ct)&&j()},Ft=Pt=>{const{target:Ct}=Pt;!m||!B(Ct)||_?wo(t,"crosshair"):Y(Ct)?wo(t,"move"):z(Ct)&&wo(t,F[Ct.id].cursor)},Xt=()=>{wo(t,"default")};return t.addEventListener("dragstart",$),t.addEventListener("drag",tt),t.addEventListener("dragend",it),t.addEventListener("click",St),t.addEventListener("pointermove",Ft),t.addEventListener("pointerleave",Xt),{mask:m,move(Pt,Ct,se,ce,Oe=!0){m||A(Pt,Ct,{}),v=[Pt,Ct],g=[se,ce],N([Pt,Ct],[se,ce],Oe)},remove(Pt=!0){m&&j(Pt)},destroy(){m&&j(!1),wo(t,"default"),t.removeEventListener("dragstart",$),t.removeEventListener("drag",tt),t.removeEventListener("dragend",it),t.removeEventListener("click",St),t.removeEventListener("pointermove",Ft),t.removeEventListener("pointerleave",Xt)}}}function Ey(t,e,n){return e.filter(r=>{if(r===t)return!1;const{interaction:i={}}=r.options;return Object.values(i).find(a=>a.brushKey===n)})}function MK(t,e,n){return Ey(t,e,n).map(r=>Ba(r.container))}function EK(t,e,n){return Ey(t,e,n).map(r=>r.options)}function FP(t,e){var{elements:n,selectedHandles:r,siblings:i=tt=>[],datum:a,brushRegion:o,extent:s,reverse:c,scale:l,coordinate:u,series:f=!1,key:d=tt=>tt,bboxOf:h=tt=>{const{x:it,y:St,width:Ft,height:Xt}=tt.style;return{x:it,y:St,width:Ft,height:Xt}},state:p={},emitter:v}=e,g=Pi(e,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const y=n(t),m=i(t),b=m.flatMap(n),_=Ql(y,a),O=le(g,"mask"),{setState:w,removeState:M}=za(p,_),E=new Map,{width:A,height:P,x:C=0,y:j=0}=h(t),N=s||[0,0,A,P],k=()=>{for(const tt of[...y,...b])M(tt,"active","inactive")},R=(tt,it,St,Ft)=>{var Xt;for(const Ct of m)(Xt=Ct.brush)===null||Xt===void 0||Xt.remove();const Pt=new Set;for(const Ct of y){const{min:se,max:ce}=Ct.getLocalBounds(),[Oe,He]=se,[Fe,Ke]=ce;OK([Oe,He,Fe,Ke],[tt,it,St,Ft])?(w(Ct,"active"),Pt.add(d(Ct))):w(Ct,"inactive")}for(const Ct of b)Pt.has(d(Ct))?w(Ct,"active"):w(Ct,"inactive")},D=()=>{for(const tt of y)M(tt,"inactive");for(const tt of E.values())tt.remove();E.clear()},F=(tt,it,St,Ft)=>{const Xt=Pt=>{const Ct=Pt.cloneNode();return Ct.__data__=Pt.__data__,Pt.parentNode.appendChild(Ct),E.set(Pt,Ct),Ct};for(const Pt of y){const Ct=E.get(Pt)||Xt(Pt);Ct.style.clipPath=new $o({style:{x:tt+C,y:it+j,width:St-tt,height:Ft-it}}),w(Pt,"inactive"),w(Ct,"active")}},B=My(t,Object.assign(Object.assign({},O),{extent:N,brushRegion:o,reverse:c,selectedHandles:r,brushended:tt=>{const it=f?D:k;tt&&v.emit("brush:remove",{nativeEvent:!0}),it()},brushed:(tt,it,St,Ft,Xt)=>{const Pt=oh(tt,it,St,Ft,l,u);Xt&&v.emit("brush:highlight",{nativeEvent:!0,data:{selection:Pt}}),(f?F:R)(tt,it,St,Ft)},brushcreated:(tt,it,St,Ft,Xt)=>{const Pt=oh(tt,it,St,Ft,l,u);v.emit("brush:end",Object.assign(Object.assign({},Xt),{nativeEvent:!0,data:{selection:Pt}}))},brushupdated:(tt,it,St,Ft,Xt)=>{const Pt=oh(tt,it,St,Ft,l,u);v.emit("brush:end",Object.assign(Object.assign({},Xt),{nativeEvent:!0,data:{selection:Pt}}))},brushstarted:tt=>{v.emit("brush:start",tt)}})),z=({nativeEvent:tt,data:it})=>{if(tt)return;const{selection:St}=it,[Ft,Xt,Pt,Ct]=_Z(St,l,u);B.move(Ft,Xt,Pt,Ct,!1)};v.on("brush:highlight",z);const Y=({nativeEvent:tt}={})=>{tt||B.remove(!1)};v.on("brush:remove",Y);const $=B.destroy.bind(B);return B.destroy=()=>{v.off("brush:highlight",z),v.off("brush:remove",Y),$()},B}function Ay(t){var{facet:e,brushKey:n}=t,r=Pi(t,["facet","brushKey"]);return(i,a,o)=>{const{container:s,view:c,options:l}=i,u=Ba(s),f={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},d=["active",["inactive",{opacity:.5}]],{scale:h,coordinate:p}=c;if(e){const g=u.getBounds(),y=g.min[0],m=g.min[1],b=g.max[0],_=g.max[1];return FP(u.parentNode.parentNode,Object.assign(Object.assign({elements:()=>sP(i,a),datum:gs(gy(i,a).map(O=>O.view)),brushRegion:(O,w,M,E)=>[O,w,M,E],extent:[y,m,b,_],state:Mc(gy(i,a).map(O=>O.options),d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r))}const v=FP(u,Object.assign(Object.assign({elements:Oo,key:g=>g.__data__.key,siblings:()=>MK(i,a,n),datum:gs([c,...Ey(i,a,n).map(g=>g.view)]),brushRegion:(g,y,m,b)=>[g,y,m,b],extent:void 0,state:Mc([l,...EK(i,a,n)],d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r));return u.brush=v,()=>v.destroy()}}function Ty(t,e,n,r,i){const[,a,,o]=i;return[t,a,n,o]}function AK(t){return Ay(Object.assign(Object.assign({},t),{brushRegion:Ty,selectedHandles:["handle-e","handle-w"]}))}function Py(t,e,n,r,i){const[a,,o]=i;return[a,e,o,r]}function TK(t){return Ay(Object.assign(Object.assign({},t),{brushRegion:Py,selectedHandles:["handle-n","handle-s"]}))}var Cy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i[-1/0,v,1/0,y]:(p,v,g,y)=>[Math.floor(l-r),v,Math.ceil(f-r),y]}}function IK(t,e){var{offsetY:n,offsetX:r,cross:i=!1}=e,a=Cy(e,["offsetY","offsetX","cross"]);const o=GP(t),s=zP(t),[,c]=s.getLocalBounds().min,[l,u]=o.min,[f,d]=o.max,h=d-u;return{brushRegion:Ty,hotZone:new $o({className:BP,style:Object.assign({x:l,width:f-l,y:i?u:c-h,height:i?h:h*2},a)}),extent:i?(p,v,g,y)=>[p,-1/0,g,1/0]:(p,v,g,y)=>[p,Math.floor(u-n),g,Math.ceil(d-n)]}}function jK(t,e){var{axes:n,elements:r,points:i,horizontal:a,datum:o,offsetY:s,offsetX:c,reverse:l=!1,state:u={},emitter:f,coordinate:d}=e,h=Cy(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);const p=r(t),v=n(t),g=Ql(p,o),{setState:y,removeState:m}=za(u,g),b=new Map,_=le(h,"mask"),O=z=>Array.from(b.values()).every(([Y,$,tt,it])=>z.some(([St,Ft])=>St>=Y&&St<=tt&&Ft>=$&&Ft<=it)),w=v.map(z=>z.attributes.scale),M=z=>z.length>2?[z[0],z[z.length-1]]:z,E=new Map,A=()=>{E.clear();for(let z=0;z{const $=[];for(const it of p){const St=i(it);O(St)?(y(it,"active"),$.push(it)):y(it,"inactive")}if(E.set(z,j($,z)),!Y)return;const tt=()=>{if(!N)return Array.from(E.values());const it=[];for(const[St,Ft]of E){const Xt=w[St],{name:Pt}=Xt.getOptions();Pt==="x"?it[0]=Ft:it[1]=Ft}return it};f.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:tt()}})},C=z=>{for(const Y of p)m(Y,"active","inactive");A(),z&&f.emit("brushAxis:remove",{nativeEvent:!0})},j=(z,Y)=>{const $=w[Y],{name:tt}=$.getOptions(),it=z.map(St=>{const Ft=St.__data__;return $.invert(Ft[tt])});return M(_o($,it))},N=v.some(a)&&v.some(z=>!a(z)),k=[];for(let z=0;z{const{nativeEvent:Y}=z;Y||k.forEach($=>$.remove(!1))},D=(z,Y,$)=>{const[tt,it]=z,St=Pt=>Pt.getStep?Pt.getStep():0,Ft=F(tt,Y,$),Xt=F(it,Y,$)+St(Y);return a($)?[Ft,-1/0,Xt,1/0]:[-1/0,Ft,1/0,Xt]},F=(z,Y,$)=>{const{height:tt,width:it}=d.getOptions(),St=Y.clone();return a($)?St.update({range:[0,it]}):St.update({range:[tt,0]}),St.map(z)},B=z=>{const{nativeEvent:Y}=z;if(Y)return;const{selection:$}=z.data;for(let tt=0;tt{k.forEach(z=>z.destroy()),f.off("brushAxis:remove",R),f.off("brushAxis:highlight",B)}}function DK(t){return(e,n,r)=>{const{container:i,view:a,options:o}=e,s=Ba(i),{x:c,y:l}=s.getBBox(),{coordinate:u}=a;return jK(i,Object.assign({elements:Oo,axes:RK,offsetY:l,offsetX:c,points:f=>f.__data__.points,horizontal:f=>{const{startPos:[d,h],endPos:[p,v]}=f.attributes;return d!==p&&h===v},datum:gs(a),state:Mc(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},t))}}var FK=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},WP=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{timeStamp:r}=n;return e!==null&&r-e{if(w)return;const{selection:E}=M;n(E,{nativeEvent:!1})};return s.on("brush:filter",O),()=>{m.destroy(),s.off("brush:filter",O),t.removeEventListener("click",_)}}function ky(t){var{hideX:e=!0,hideY:n=!0}=t,r=WP(t,["hideX","hideY"]);return(i,a,o)=>{const{container:s,view:c,options:l,update:u,setState:f}=i,d=Ba(s),h={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1};let p=!1,v=!1,g=c;const{scale:y,coordinate:m}=c;return zK(d,Object.assign(Object.assign({brushRegion:(b,_,O,w)=>[b,_,O,w],selection:(b,_,O,w)=>{const{scale:M,coordinate:E}=g;return oh(b,_,O,w,M,E)},filter:(b,_)=>FK(this,void 0,void 0,function*(){if(v)return;v=!0;const[O,w]=b;f("brushFilter",E=>{const{marks:A}=E,P=A.map(C=>Nt({axis:Object.assign(Object.assign({},e&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},C,{scale:{x:{domain:O,nice:!1},y:{domain:w,nice:!1}}}));return Object.assign(Object.assign({},l),{marks:P,clip:!0})}),o.emit("brush:filter",Object.assign(Object.assign({},_),{data:{selection:[O,w]}})),g=(yield u()).view,v=!1,p=!0}),reset:b=>{if(v||!p)return;const{scale:_}=c,{x:O,y:w}=_,M=O.getOptions().domain,E=w.getOptions().domain;o.emit("brush:filter",Object.assign(Object.assign({},b),{data:{selection:[M,E]}})),p=!1,g=c,f("brushFilter"),u()},extent:void 0,emitter:o,scale:y,coordinate:m},h),r))}}function GK(t){return ky(Object.assign(Object.assign({hideX:!0},t),{brushRegion:Ty}))}function WK(t){return ky(Object.assign(Object.assign({hideY:!0},t),{brushRegion:Py}))}var HK=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};const YK="slider";function VK(t,e,n,r=!1,i="x",a="y"){const{marks:o}=t,s=o.map(c=>{var l,u;return Nt({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},c,{scale:e,[n]:Object.assign(Object.assign({},((l=c[n])===null||l===void 0?void 0:l[i])&&{[i]:Object.assign({preserve:!0},r&&{ratio:null})}),((u=c[n])===null||u===void 0?void 0:u[a])&&{[a]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},t),{marks:s,clip:!0,animate:!1})}function XK(t,e,n){const[r,i]=t,a=n?c=>1-c:c=>c,o=Oc(e,a(r),!0),s=Oc(e,a(i),!1);return _o(e,[o,s])}function ph(t){return[t[0],t[t.length-1]]}function HP({initDomain:t={},className:e=YK,prefix:n="slider",setValue:r=(c,l)=>c.setValues(l),hasState:i=!1,wait:a=50,leading:o=!0,trailing:s=!1}){return(c,l,u)=>{const{container:f,view:d,update:h,setState:p}=c,v=f.getElementsByClassName(e);if(!v.length)return()=>{};let g=!1;const{scale:y,coordinate:m,layout:b}=d,{paddingLeft:_,paddingTop:O,paddingBottom:w,paddingRight:M}=b,{x:E,y:A}=y,P=zn(m),C=R=>{const D=R==="vertical"?"y":"x",F=R==="vertical"?"x":"y";return P?[F,D]:[D,F]},j=new Map,N=new Set,k={x:t.x||E.getOptions().domain,y:t.y||A.getOptions().domain};for(const R of v){const{orientation:D}=R.attributes,[F,B]=C(D),z=`${n}${ao(F)}:filter`,Y=F==="x",{ratio:$}=E.getOptions(),{ratio:tt}=A.getOptions(),it=Xt=>{if(Xt.data){const{selection:Oe}=Xt.data,[He=ph(k.x),Fe=ph(k.y)]=Oe;return Y?[_o(E,He,$),_o(A,Fe,tt)]:[_o(A,Fe,tt),_o(E,He,$)]}const{value:Pt}=Xt.detail,Ct=y[F],se=XK(Pt,Ct,P&&D==="horizontal"),ce=k[B];return[se,ce]},St=ys(Xt=>HK(this,void 0,void 0,function*(){if(g)return;g=!0;const{nativeEvent:Pt=!0}=Xt,[Ct,se]=it(Xt);if(k[F]=Ct,k[B]=se,Pt){const ce=Y?Ct:se,Oe=Y?se:Ct;u.emit(z,Object.assign(Object.assign({},Xt),{nativeEvent:Pt,data:{selection:[ph(ce),ph(Oe)]}}))}p(R,ce=>Object.assign(Object.assign({},VK(ce,{[F]:{domain:Ct,nice:!1}},n,i,F,B)),{paddingLeft:_,paddingTop:O,paddingBottom:w,paddingRight:M})),yield h(),g=!1}),a,{leading:o,trailing:s}),Ft=Xt=>{const{nativeEvent:Pt}=Xt;if(Pt)return;const{data:Ct}=Xt,{selection:se}=Ct,[ce,Oe]=se;R.dispatchEvent(new kn("valuechange",{data:Ct,nativeEvent:!1}));const He=Y?sh(ce,E):sh(Oe,A);r(R,He)};u.on(z,Ft),R.addEventListener("valuechange",St),j.set(R,St),N.add([z,Ft])}return h(),()=>{for(const[R,D]of j)R.removeEventListener("valuechange",D);for(const[R,D]of N)u.off(R,D)}}}const YP="g2-scrollbar";function $K(t={}){return(e,n,r)=>{const{view:i,container:a}=e;if(!a.getElementsByClassName(YP).length)return()=>{};const{scale:s}=i,{x:c,y:l}=s,u={x:[...c.getOptions().domain],y:[...l.getOptions().domain]};return c.update({domain:c.getOptions().expectedDomain}),l.update({domain:l.getOptions().expectedDomain}),HP(Object.assign(Object.assign({},t),{initDomain:u,className:YP,prefix:"scrollbar",hasState:!0,setValue:(d,h)=>d.setValue(h[0])}))(e,n,r)}}var UK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i${e}`}const ZK={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function VP(t){return t.nodeName!=="text"?!1:!!t.isOverflowing()}function XP(t){var{offsetX:e=8,offsetY:n=8}=t,r=UK(t,["offsetX","offsetY"]);return i=>{const{container:a}=i,[o,s]=a.getBounds().min,c=le(r,"tip"),l=new Set,u=d=>{const{target:h}=d;if(!VP(h)){d.stopPropagation();return}const{offsetX:p,offsetY:v}=d,g=p+e-o,y=v+n-s;if(h.tip){h.tip.style.x=g,h.tip.style.y=y;return}const{text:m}=h.style,b=new _f({className:"poptip",style:{innerHTML:qK("div",m,Object.assign(Object.assign({},ZK),c)),x:g,y}});a.appendChild(b),h.tip=b,l.add(b)},f=d=>{const{target:h}=d;if(!VP(h)){d.stopPropagation();return}h.tip&&(h.tip.remove(),h.tip=null,l.delete(h.tip))};return a.addEventListener("pointerover",u),a.addEventListener("pointerout",f),()=>{a.removeEventListener("pointerover",u),a.removeEventListener("pointerout",f),l.forEach(d=>d.remove())}}}XP.props={reapplyWhenUpdate:!0};var KK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t;if(!Array.isArray(e))return[];const{x:n=0,y:r=0,width:i,height:a,data:o}=t;return e.map(s=>{var{data:c,x:l,y:u,width:f,height:d}=s,h=KK(s,["data","x","y","width","height"]);return Object.assign(Object.assign({},h),{data:jv(c,o),x:l!=null?l:n,y:u!=null?u:r,width:f!=null?f:i,height:d!=null?d:a})})};$P.props={};var QK=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{children:e}=t;if(!Array.isArray(e))return[];const{direction:n="row",ratio:r=e.map(()=>1),padding:i=0,data:a}=t,[o,s,c,l]=n==="col"?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((v,g)=>v+g),f=t[s]-i*(e.length-1),d=r.map(v=>f*(v/u)),h=[];let p=t[o]||0;for(let v=0;v{const{encode:e,data:n,scale:r,shareSize:i=!1}=t,{x:a,y:o}=e,s=(c,l)=>{var u;if(c===void 0||!i)return{};const f=Zn(n,p=>p[c]),d=((u=r==null?void 0:r[l])===null||u===void 0?void 0:u.domain)||Array.from(f.keys()),h=d.map(p=>f.has(p)?f.get(p).length:1);return{domain:d,flex:h}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:a===void 0?null:{position:"top"}},a===void 0&&{paddingInner:0}),s(a,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:o===void 0?null:{position:"right"}},o===void 0&&{paddingInner:0}),s(o,"y"))}}}),Ry=tc(t=>{const{data:e,scale:n}=t,r=[t];let i,a,o;for(;r.length;){const f=r.shift(),{children:d,encode:h={},scale:p={},legend:v={}}=f,{color:g}=h,{color:y}=p,{color:m}=v;g!==void 0&&(i=g),y!==void 0&&(a=y),m!==void 0&&(o=m),Array.isArray(d)&&r.push(...d)}const s=()=>{var f;const d=(f=n==null?void 0:n.color)===null||f===void 0?void 0:f.domain;if(d!==void 0)return[d];if(i===void 0)return[void 0];const h=typeof i=="function"?i:v=>v[i],p=e.map(h);return p.some(v=>typeof v=="number")?[Ia(p)]:[Array.from(new Set(p)),"ordinal"]},c=typeof i=="string"?i:"",[l,u]=s();return{encode:{color:i},scale:{color:Nt({},a,{domain:l,type:u})},legend:{color:Nt({title:c},o)}}}),Ly=tc(()=>({animate:{enterType:"fadeIn"}})),Ny=ec(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),Iy=ec(()=>({type:"cell"})),qP=ec(t=>{const{data:e}=t;return{data:{type:"inline",value:e,transform:[{type:"custom",callback:()=>{const{data:r,encode:i}=t,{x:a,y:o}=i,s=a?Array.from(new Set(r.map(u=>u[a]))):[],c=o?Array.from(new Set(r.map(u=>u[o]))):[];return(()=>{if(s.length&&c.length){const u=[];for(const f of s)for(const d of c)u.push({[a]:f,[o]:d});return u}if(s.length)return s.map(u=>({[a]:u}));if(c.length)return c.map(u=>({[o]:u}))})()}}]}}}),ZP=ec((t,e=eQ,n=nQ,r=rQ,i={})=>{const{data:a,encode:o,children:s,scale:c,x:l=0,y:u=0,shareData:f=!1,key:d}=t,{value:h}=a,{x:p,y:v}=o,{color:g}=c,{domain:y}=g;return{children:(b,_,O)=>{const{x:w,y:M}=_,{paddingLeft:E,paddingTop:A,marginLeft:P,marginTop:C}=O,{domain:j}=w.getOptions(),{domain:N}=M.getOptions(),k=Zo(b),R=b.map(e),D=b.map(({x:tt,y:it})=>[w.invert(tt),M.invert(it)]),B=D.map(([tt,it])=>St=>{const{[p]:Ft,[v]:Xt}=St;return(p!==void 0?Ft===tt:!0)&&(v!==void 0?Xt===it:!0)}).map(tt=>h.filter(tt)),z=f?Sn(B,tt=>tt.length):void 0,Y=D.map(([tt,it])=>({columnField:p,columnIndex:j.indexOf(tt),columnValue:tt,columnValuesLength:j.length,rowField:v,rowIndex:N.indexOf(it),rowValue:it,rowValuesLength:N.length})),$=Y.map(tt=>Array.isArray(s)?s:[s(tt)].flat(1));return k.flatMap(tt=>{const[it,St,Ft,Xt]=R[tt],Pt=Y[tt],Ct=B[tt];return $[tt].map(ce=>{var Oe,He,{scale:Fe,key:Ke,facet:dn=!0,axis:xn={},legend:Yn={}}=ce,yr=JK(ce,["scale","key","facet","axis","legend"]);const xi=((Oe=Fe==null?void 0:Fe.y)===null||Oe===void 0?void 0:Oe.guide)||xn.y,Xa=((He=Fe==null?void 0:Fe.x)===null||He===void 0?void 0:He.guide)||xn.x,ws={x:{tickCount:p?5:void 0},y:{tickCount:v?5:void 0}},si=dn?Ct:Ct.length===0?[]:h,Ui={color:{domain:y}},pn={x:KP(Xa,n)(Pt,si),y:KP(xi,r)(Pt,si)};return Object.assign(Object.assign({key:`${Ke}-${tt}`,data:si,margin:0,x:it+E+l+P,y:St+A+u+C,parentKey:d,width:Ft,height:Xt,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!si.length,dataDomain:z,scale:Nt(ws,Fe,Ui),axis:Nt({},xn,pn),legend:!1},yr),i)})})}}});function eQ(t){const{points:e}=t;return Fv(e)}function vh(t,e){return e.length?Nt({title:!1,tick:null,label:null},t):Nt({title:!1,tick:null,label:null,grid:null},t)}function nQ(t){return(e,n)=>{const{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=e;if(r!==i-1)return vh(t,n);const s=a!==o-1?!1:void 0,c=n.length?void 0:null;return Nt({title:s,grid:c},t)}}function rQ(t){return(e,n)=>{const{rowIndex:r,columnIndex:i}=e;if(i!==0)return vh(t,n);const a=r!==0?!1:void 0,o=n.length?void 0:null;return Nt({title:a,grid:o},t)}}function KP(t,e){return typeof t=="function"?t:t===null||t===!1?()=>null:e(t)}const QP=()=>t=>[eu.of(t).call(Iy).call(Ry).call(Ly).call(tQ).call(Ny).call(qP).call(ZP).value()];QP.props={};var jy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),aQ=ec(t=>{const{data:e,children:n,x:r=0,y:i=0,key:a}=t;return{children:(s,c,l)=>{const{x:u,y:f}=c,{paddingLeft:d,paddingTop:h,marginLeft:p,marginTop:v}=l,{domain:g}=u.getOptions(),{domain:y}=f.getOptions(),m=Zo(s),b=s.map(({points:M})=>Fv(M)),_=s.map(({x:M,y:E})=>[u.invert(M),f.invert(E)]),O=_.map(([M,E])=>({columnField:M,columnIndex:g.indexOf(M),columnValue:M,columnValuesLength:g.length,rowField:E,rowIndex:y.indexOf(E),rowValue:E,rowValuesLength:y.length})),w=O.map(M=>Array.isArray(n)?n:[n(M)].flat(1));return m.flatMap(M=>{const[E,A,P,C]=b[M],[j,N]=_[M],k=O[M];return w[M].map(D=>{var F,B;const{scale:z,key:Y,encode:$,axis:tt,interaction:it}=D,St=jy(D,["scale","key","encode","axis","interaction"]),Ft=(F=z==null?void 0:z.y)===null||F===void 0?void 0:F.guide,Xt=(B=z==null?void 0:z.x)===null||B===void 0?void 0:B.guide,Pt={x:{facet:!1},y:{facet:!1}},Ct={x:sQ(Xt)(k,e),y:cQ(Ft)(k,e)},se={x:{tickCount:5},y:{tickCount:5}};return Object.assign({data:e,parentKey:a,key:`${Y}-${M}`,x:E+d+r+p,y:A+h+i+v,width:P,height:C,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:Nt(Pt,z),axis:Nt(se,tt,Ct),legend:!1,encode:Nt({},$,{x:j,y:N}),interaction:Nt({},it,{legendFilter:!1})},St)})})}}}),oQ=ec(t=>{const{encode:e}=t,n=jy(t,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=e,o=jy(e,["position","x","y"]),s=[];for(const c of[i].flat(1))for(const l of[a].flat(1))s.push({$x:c,$y:l});return Object.assign(Object.assign({},n),{data:s,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},[i].flat(1).length===1&&{x:{paddingInner:0}}),[a].flat(1).length===1&&{y:{paddingInner:0}})})});function sQ(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{rowIndex:r,rowValuesLength:i}=e;if(r!==i-1)return vh(t,n)}}function cQ(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{columnIndex:r}=e;if(r!==0)return vh(t,n)}}const lQ=()=>t=>[eu.of(t).call(Iy).call(Ry).call(aQ).call(oQ).call(Ly).call(Ny).call(iQ).value()];var uQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),dQ=tc(t=>({coordinate:{type:"polar"}})),hQ=t=>{const{encode:e}=t,n=uQ(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function JP(t){return e=>null}function pQ(t){const{points:e}=t,[n,r,i,a]=e,o=Kn(n,a),s=ur(n,a),c=ur(r,i),l=wO(s,c),u=1/Math.sin(l/2),f=o/(1+u),d=f*Math.sqrt(2),[h,p]=i,g=nc(s)+l/2,y=f*u,m=h+y*Math.sin(g),b=p-y*Math.cos(g);return[m-d/2,b-d/2,d,d]}const vQ=()=>t=>[eu.of(t).call(Iy).call(hQ).call(Ry).call(dQ).call(qP).call(ZP,pQ,JP,JP,{frame:!1}).call(Ly).call(Ny).call(fQ).value()];function gQ(t,e,n){const i=n,a=[0,i],o=[-i+1,-0+1];if(t==="normal")return a;if(t==="reverse")return o;if(t==="alternate")return e%2===0?a:o;if(t==="reverse-alternate")return e%2===0?o:a}function yQ(t,e,n){const r=[t];for(;r.length;){const i=r.pop();i.animate=Nt({enter:{duration:e},update:{duration:e,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:e}},i.animate||{});const{children:a}=i;Array.isArray(a)&&r.push(...a)}return t}const tC=()=>t=>{const{children:e=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:a="ease-in-out-sine"}=t,o=e.length;if(!Array.isArray(e)||o===0)return[];const{key:s}=e[0],c=e.map(l=>Object.assign(Object.assign({},l),{key:s})).map(l=>yQ(l,n,a));return function*(){let l=0,u;for(;r==="infinite"||l{var s;return[o,(s=sn(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>Rn(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(Zn(e,a).values())}function eC(t){return Array.isArray(t)?_Q(t):typeof t=="function"?xQ(t):t==="series"?bQ:t==="value"?OQ:t==="sum"?wQ:t==="maxIndex"?SQ:()=>null}function nC(t,e){for(const n of t)n.sort(e)}function rC(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function mQ(t){return Array.isArray(t)?t:[t]}function bQ(t,e,n){return nu(r=>n[r])}function xQ(t){return(e,n,r)=>nu(i=>t(e[i]))}function _Q(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:fr(e[i][s],e[a][s]),0)}function OQ(t,e,n){return nu(r=>e[r])}function wQ(t,e,n){const r=Zo(t),i=Array.from(Zn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return nu(o=>a.get(n[o]))}function SQ(t,e,n){const r=Zo(t),i=Array.from(Zn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,ic(s,c=>e[c])]));return nu(o=>a.get(n[o]))}function nu(t){return(e,n)=>fr(t(e),t(n))}const iC=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=sn(u,"y"),[p,v]=sn(u,"y1"),[g]=o?Il(u,"series","color"):sn(u,"color"),y=Mo(e,s,c),b=eC(n)(l,d,g);b&&nC(y,b);const _=new Array(s.length),O=new Array(s.length),w=new Array(s.length),M=[],E=[];for(const N of y){r&&N.reverse();const k=p?+p[N[0]]:0,R=[],D=[];for(const it of N){const St=w[it]=+d[it]-k;St<0?D.push(it):St>=0&&R.push(it)}const F=R.length>0?R:D,B=D.length>0?D:R;let z=R.length-1,Y=0;for(;z>0&&d[F[z]]===0;)z--;for(;Y0?tt=_[it]=(O[it]=tt)+St:_[it]=O[it]=tt}}const A=new Set(M),P=new Set(E),C=i==="y"?_:O,j=a==="y"?_:O;return[s,Nt({},c,{encode:{y0:Id(d,h),y:jn(C,h),y1:jn(j,v)},style:Object.assign({first:(N,k)=>A.has(k),last:(N,k)=>P.has(k)},f)})]}};iC.props={};function aC(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function MQ(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function oC(t,e){const n=MQ(t,e);return n&&Math.sqrt(n)}function EQ(t,e,n){const r=aC(t),i=oC(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}var sC=Array.prototype,AQ=sC.slice,bpt=sC.map;function Dy(t){return()=>t}const TQ=Math.sqrt(50),PQ=Math.sqrt(10),CQ=Math.sqrt(2);function gh(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=TQ?10:a>=PQ?5:a>=CQ?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function LQ(t){return Math.max(1,Math.ceil(Math.log(aC(t))/Math.LN2)+1)}function NQ(){var t=sl,e=Ia,n=LQ;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Ia){const O=ru(f,d,_);isFinite(O)&&(O>0?d=(Math.floor(d/O)+1)*O:O<0&&(d=(Math.ceil(d*-O)+1)/-O))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;an;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));Fy(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(iu(t,n,e),i(t[r],a)>0&&iu(t,n,r);o0;)--s}i(t[n],a)===0?iu(t,n,s):(++s,iu(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function iu(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function IQ(t,e=fr){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?fr(o,i)>0:fr(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function yh(t,e,n){if(t=Float64Array.from(pZ(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return Ai(t);if(e>=1)return Sn(t);var r,i=(r-1)*e,a=Math.floor(i),o=Sn(Fy(t,a).subarray(0,a+1)),s=Ai(t.subarray(a+1));return o+(s-o)*(i-a)}}function _pt(t,e,n=number){if(!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(i-a)}}function jQ(t,e,n=dy){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>dy(n(t[c],c,t))),e<=0)return fh(r);if(e>=1)return ic(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return Fy(i,o,0,a,(s,c)=>$l(r[s],r[c])),o=IQ(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function By(t,e){return yh(t,.5,e)}function DQ(t,e){return jQ(t,.5,e)}var FQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function BQ(t){if(typeof t=="function")return[t,null];const n={mean:zQ,max:WQ,count:YQ,first:XQ,last:$Q,sum:VQ,min:HQ,median:GQ}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function zQ(){const t=(n,r)=>Jl(n,i=>+r[i]),e=Eo("mean");return[t,e]}function GQ(){const t=(n,r)=>By(n,i=>+r[i]),e=Eo("median");return[t,e]}function WQ(){const t=(n,r)=>Sn(n,i=>+r[i]),e=Eo("max");return[t,e]}function HQ(){const t=(n,r)=>Ai(n,i=>+r[i]),e=Eo("min");return[t,e]}function YQ(){const t=(n,r)=>n.length,e=Eo("count");return[t,e]}function VQ(){const t=(n,r)=>Di(n,i=>+r[i]),e=Eo("sum");return[t,e]}function XQ(){const t=(n,r)=>r[n[0]],e=Eo("first");return[t,e]}function $Q(){const t=(n,r)=>r[n[n.length-1]],e=Eo("last");return[t,e]}const zy=(t={})=>{const{groupBy:e}=t,n=FQ(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=sn(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=BQ(p),[y,m]=sn(o,h),b=c(m,p),_=s.map(O=>v(O,y!=null?y:a));return[h,Object.assign(Object.assign({},C$(_,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=sn(o,h),g=s.map(y=>p[y[0]]);return[h,jn(g,v)]}),f=s.map(h=>a[h[0]]);return[Zo(s),Nt({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};zy.props={};var UQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=UQ(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=sn(c,p);return v}),u=le(r,cC),f=o.filter(p=>l.every(v=>Rn(v[p]))),d=[...e.map(p=>{const[v]=sn(c,p);return v}).filter(Rn).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||qQ(g),m=NQ().thresholds(y).value(_=>+g[_])(f),b=new Map(m.flatMap(_=>{const{x0:O,x1:w}=_,M=`${O},${w}`;return _.map(E=>[E,M])}));return i[p]=b,_=>b.get(_)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(Zn(f,h).values())};return zy(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(cC)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Gy.props={};const lC=(t={})=>{const{thresholds:e}=t;return Gy(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};lC.props={};var ZQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t,a=ZQ(t,["groupBy","reverse","orderBy","padding"]);return(o,s)=>{const{data:c,encode:l,scale:u}=s,{series:f}=u,[d]=sn(l,"y"),[h]=Il(l,"series","color"),p=rC(h,f),v=Mo(e,o,s),y=eC(r)(c,d,h);y&&nC(v,y);const m=new Array(o.length);for(const b of v){n&&b.reverse();for(let _=0;_{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=sn(s,"x"),[d]=sn(s,"y"),h=mh(f,l,n),p=mh(d,u,r),v=a.map(()=>bh(i(),...p)),g=a.map(()=>bh(i(),...h));return[a,Nt({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:jn(v),dx:jn(g)}})]}};fC.props={};const dC=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=sn(a,"x"),l=mh(c,s,e),u=r.map(()=>bh(n(),...l));return[r,Nt({scale:{x:{padding:.5}}},i,{encode:{dx:jn(u)}})]}};dC.props={};const hC=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=sn(a,"y"),l=mh(c,s,e),u=r.map(()=>bh(n(),...l));return[r,Nt({scale:{y:{padding:.5}}},i,{encode:{dy:jn(u)}})]}};hC.props={};var KQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,{x:a}=i,o=KQ(i,["x"]),s=Object.entries(o).filter(([d])=>d.startsWith("y")).map(([d])=>[d,sn(i,d)[0]]),c=s.map(([d])=>[d,new Array(n.length)]),l=Mo(e,n,r),u=new Array(l.length);for(let d=0;ds.map(([,m])=>+m[y])),[v,g]=Ia(p);u[d]=(v+g)/2}const f=Math.max(...u);for(let d=0;d[d,jn(h,sn(i,d)[1])]))})]}};pC.props={};const vC=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=sn(a,"y"),[s,c]=sn(a,"y1"),[l]=n?Il(a,"series","color"):sn(a,"color"),u=Mo(e,r,i),f=new Array(r.length);for(const d of u){const h=d.map(p=>+o[p]);for(let p=0;pm!==p));f[v]=o[v]>g?g:o[v]}}return[r,Nt({},i,{encode:{y1:jn(f,c)}})]}};vC.props={};const gC=t=>{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,sn(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(Zn(m,_=>g[_]).values());y.push(...b)}f=y}if(r){const[g]=sn(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[go(o,d)]:Il(c,"enterDuration",go(o,d)),[p]=Il(c,"enterDelay",go(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[_]);for(const _ of m)v[_]=+p[_]+y;y+=b}return[o,Nt({},s,{encode:{enterDuration:jd(h),enterDelay:jd(v)}})]}};gC.props={};var QQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iAi(n,i=>r[+i]),max:(n,r)=>Sn(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>Jl(n,i=>r[+i]),median:(n,r)=>By(n,i=>r[+i]),sum:(n,r)=>Di(n,i=>r[+i]),deviation:(n,r)=>oC(n,i=>r[+i])}[t]||Sn}const yC=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,{x:s}=a,c=QQ(a,["x"]),l=Object.entries(c).filter(([v])=>v.startsWith("y")).map(([v])=>[v,sn(a,v)[0]]),[,u]=l.find(([v])=>v==="y"),f=l.map(([v])=>[v,new Array(r.length)]),d=Mo(e,r,i),h=JQ(n);for(const v of d){const g=h(v,u);for(const y of v)for(let m=0;m[v,jn(g,sn(a,v)[1])]))},!p&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};yC.props={};function mC(t,e){return[t[0]]}function tJ(t,e){const n=t.length-1;return[t[n]]}function eJ(t,e){const n=ic(t,r=>e[r]);return[t[n]]}function nJ(t,e){const n=fh(t,r=>e[r]);return[t[n]]}function rJ(t){return typeof t=="function"?t:{first:mC,last:tJ,max:eJ,min:nJ}[t]||mC}const xh=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=Mo(e,i,a),[c]=sn(o,n),l=rJ(r);return[s.flatMap(u=>l(u,c)),a]}};xh.props={};var iJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=iJ(t,["selector"]);return xh(Object.assign({channel:"x",selector:e},n))};bC.props={};var aJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=aJ(t,["selector"]);return xh(Object.assign({channel:"y",selector:e},n))};xC.props={};var oJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=oJ(t,["channels"]),r=(i,a)=>Mo(e,i,a);return zy(Object.assign(Object.assign({},n),{groupBy:r}))};au.props={};const _C=(t={})=>au(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));_C.props={};const OC=(t={})=>au(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));OC.props={};const wC=(t={})=>au(Object.assign(Object.assign({},t),{channels:["color"]}));wC.props={};function sJ(t,e,n){return(e.length!==2?Fa(K0(t,e,n),([r,i],[a,o])=>fr(i,o)||fr(r,a)):Fa(Zn(t,n),([r,i],[a,o])=>e(i,o)||fr(r,a))).map(([r])=>r)}var SC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Sn(o,s=>+a[s]);if(i==="min")return o=>Ai(o,s=>+a[s]);if(i==="sum")return o=>Di(o,s=>+a[s]);if(i==="median")return o=>By(o,s=>+a[s]);if(i==="mean")return o=>Jl(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function lJ(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=sn(a,i),s=Fa(t,c=>o[c]);return r&&s.reverse(),[s,e]}function uJ(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function fJ(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=SC(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=sn(c,o),d=cJ(o,s,c),h=uJ(t,f,u),p=sJ(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,Nt(e,{scale:{[o]:{domain:g}}})]}const _h=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=SC(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?fJ(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):lJ(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};_h.props={};const MC=(t={})=>_h(Object.assign(Object.assign({},t),{channel:"x"}));MC.props={};const EC=(t={})=>_h(Object.assign(Object.assign({},t),{channel:"y"}));EC.props={};const AC=(t={})=>_h(Object.assign(Object.assign({},t),{channel:"color"}));AC.props={};function dJ(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function hJ(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Di(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const TC=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=sn(s,"x"),l=e?dJ(o,e):sn(s,n)[0],u=hJ(r,l),f=Q0(i,u,d=>c[d]).map(d=>d[1]);return[i,Nt({},a,{scale:{x:{flex:f}}})]}};TC.props={};function pJ(t,e,n){const r=t.length;if(r===0)return[];const{innerWidth:i,innerHeight:a}=n,o=a/i;let s=Math.ceil(Math.sqrt(e/o)),c=i/s,l=Math.ceil(e/s),u=l*c;for(;u>a;)s=s+1,c=i/s,l=Math.ceil(e/s),u=l*c;const f=a-l*c,d=l<=1?0:f/(l-1),[h,p]=l<=1?[(i-r*c)/(r-1),(a-c)/2]:[0,0];return t.map((v,g)=>{const[y,m,b,_]=Fv(v),O=g%s,w=Math.floor(g/s),M=O*c,E=(l-w-1)*c+f,A=c/b,P=c/_,C=M-y+h*O,j=E-m-d*w-p;return`translate(${C}, ${j}) scale(${A}, ${P})`})}const PC=()=>(t,e)=>[t,Nt({},e,{modifier:pJ,axis:!1})];PC.props={};function vJ(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function gJ(t){if(typeof t=="function")return t;if(t==="lttb")return vJ;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[fh(r,o=>a[o])]],max:(r,i,a)=>[r[ic(r,o=>a[o])]],median:(r,i,a)=>[r[DQ(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return yJ(r,s).flatMap(l=>n(l,i,a))}}function yJ(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=gJ(e);return(a,o)=>{const{encode:s}=o,c=Mo(r,a,o),[l]=sn(s,"x"),[u]=sn(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};CC.props={};function mJ(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const kC=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=sn(r,u);if(!d)return null;const[h,p=!0]=mJ(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(Rn);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,Nt({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};kC.props={};var RC={},Wy={},Hy=34,ou=10,Yy=13;function LC(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function bJ(t,e){var n=LC(t);return function(r,i){return e(n(r),i,t)}}function NC(t){var e=Object.create(null),n=[];return t.forEach(function(r){for(var i in r)i in e||n.push(e[i]=i)}),n}function mi(t,e){var n=t+"",r=n.length;return r9999?"+"+mi(t,6):mi(t,4)}function _J(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":xJ(t.getUTCFullYear(),4)+"-"+mi(t.getUTCMonth()+1,2)+"-"+mi(t.getUTCDate(),2)+(i?"T"+mi(e,2)+":"+mi(n,2)+":"+mi(r,2)+"."+mi(i,3)+"Z":r?"T"+mi(e,2)+":"+mi(n,2)+":"+mi(r,2)+"Z":n||e?"T"+mi(e,2)+":"+mi(n,2)+"Z":"")}function OJ(t){var e=new RegExp('["'+t+` +\r]`),n=t.charCodeAt(0);function r(f,d){var h,p,v=i(f,function(g,y){if(h)return h(g,y-1);p=g,h=d?bJ(g,d):LC(g)});return v.columns=p||[],v}function i(f,d){var h=[],p=f.length,v=0,g=0,y,m=p<=0,b=!1;f.charCodeAt(p-1)===ou&&--p,f.charCodeAt(p-1)===Yy&&--p;function _(){if(m)return Wy;if(b)return b=!1,RC;var w,M=v,E;if(f.charCodeAt(M)===Hy){for(;v++=p?m=!0:(E=f.charCodeAt(v++))===ou?b=!0:E===Yy&&(b=!0,f.charCodeAt(v)===ou&&++v),f.slice(M+1,w-1).replace(/""/g,'"')}for(;v{const{value:e,format:n=e.split(".").pop(),delimiter:r=",",autoType:i=!0}=t;return()=>MJ(void 0,void 0,void 0,function*(){const a=yield fetch(e);if(n==="csv"){const o=yield a.text();return OJ(r).parse(o,i?wJ:qo)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};IC.props={};const jC=t=>{const{value:e}=t;return()=>e};jC.props={};function EJ(t,e){return t.map(n=>{if(Array.isArray(n)){const[r,i=e]=n;return[r,i]}return[n,e]})}const DC=t=>{const{fields:e=[]}=t,n=EJ(e,!0);return r=>{const i=(a,o)=>n.reduce((s,[c,l=!0])=>s!==0?s:l?a[c]o[c]?-1:+(a[c]!==o[c]),0);return[...r].sort(i)}};DC.props={};function Opt(t){return t!=null&&!Number.isNaN(t)}const FC=t=>{const{callback:e}=t;return n=>Array.isArray(n)?[...n].sort(e):n};FC.props={};function AJ(t){return t!=null&&!Number.isNaN(t)}const BC=t=>{const{callback:e=AJ}=t;return n=>n.filter(e)};BC.props={};function TJ(t,e=[]){return e.reduce((n,r)=>(r in t&&(n[r]=t[r]),n),{})}const zC=t=>{const{fields:e}=t;return n=>n.map(r=>TJ(r,e))};zC.props={};function PJ(t){return Object.keys(t).length===0}const GC=t=>e=>{if(!t||PJ(t))return e;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return e.map(n)};GC.props={};function CJ(t){return!t||Object.keys(t).length===0}const WC=t=>{const{fields:e,key:n="key",value:r="value"}=t;return i=>CJ(e)?i:i.flatMap(a=>e.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};WC.props={};const HC=t=>{const{start:e,end:n}=t;return r=>r.slice(e,n)};HC.props={};const YC=t=>{const{callback:e=qo}=t;return n=>e(n)};YC.props={};const VC=t=>{const{callback:e=qo}=t;return n=>Array.isArray(n)?n.map(e):n};VC.props={};function XC(t){return typeof t=="string"?e=>e[t]:t}const $C=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=n,c=XC(s),l=XC(o),u=K0(e,([f])=>f,f=>c(f));return f=>f.map(d=>{const h=u.get(l(d));return Object.assign(Object.assign({},d),r.reduce((p,v,g)=>(p[i[g]]=h?h[v]:a,p),{}))})};$C.props={};var kJ=yt(50517),RJ=yt.n(kJ);function wpt(t){return t!=null&&!Number.isNaN(t)}const UC=t=>{const{field:e,groupBy:n,as:r=["y","size"],min:i,max:a,size:o=10,width:s}=t,[c,l]=r;return u=>Array.from(Zn(u,d=>n.map(h=>d[h]).join("-")).values()).map(d=>{const h=RJ().create(d.map(g=>g[e]),{min:i,max:a,size:o,width:s}),p=h.map(g=>g.x),v=h.map(g=>g.y);return Object.assign(Object.assign({},d[0]),{[c]:p,[l]:v})})};UC.props={};const qC=()=>t=>(console.log("G2 data section:",t),t);qC.props={};function Vy(t){const{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function ZC(t,e){const[n,r]=t,[i,a]=e;return n>=i[0]&&n<=a[0]&&r>=i[1]&&r<=a[1]}function LJ(t,e){const[n,r]=t;return!(ZC(n,e)&&ZC(r,e))}function NJ(t,e){const[n,r]=t,[i,a]=e;return n[0]i[0]&&n[1]i[1]}const IJ=t=>{const{priority:e}=t;return n=>{const r=[];return e&&n.sort(e),n.forEach(i=>{dg(i);const a=i.getLocalBounds();r.some(s=>NJ(Vy(a),Vy(s.getLocalBounds())))?fg(i):r.push(i)}),n}};function jJ([t,e],[n,r]){return r>t&&e>n}function Oh(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function DJ(t){const e=t.cloneNode(!0),n=e.getElementById("connector");n&&e.removeChild(n);const{min:r,max:i}=e.getRenderBounds();return e.destroy(),{min:r,max:i}}const FJ=t=>{const{maxIterations:e=10,maxError:n=.1,padding:r=1}=t;return i=>{const a=i.length;if(a<=1)return i;const[o,s]=Oh(),[c,l]=Oh(),[u,f]=Oh(),[d,h]=Oh();for(const p of i){const{min:v,max:g}=DJ(p),[y,m]=v,[b,_]=g;s(p,m),l(p,m),f(p,_-m),h(p,[y,b])}for(let p=0;pfr(c(g),c(y)));let v=0;for(let g=0;gt=>(t.forEach(e=>{dg(e);const n=e.attr("bounds"),r=e.getLocalBounds();LJ(Vy(r),n)&&fg(e)}),t);function zJ(t){return typeof t=="object"?t:Aa(t)}function Xy(t){let e=t/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),e}function KC(t,e,n){return .2126*Xy(t)+.7152*Xy(e)+.0722*Xy(n)}function QC(t,e){const{r:n,g:r,b:i}=t,{r:a,g:o,b:s}=e,c=KC(n,r,i),l=KC(a,o,s);return(Math.max(c,l)+.05)/(Math.min(c,l)+.05)}function GJ(t,e){const n=ic(e,r=>QC(t,zJ(r)));return e[n]}const WJ=t=>{const{threshold:e=4.5,palette:n=["#000","#fff"]}=t;return r=>(r.forEach(i=>{const a=i.attr("dependentElement").parsedStyle.fill,o=i.parsedStyle.fill;QC(o,a)t;function wh(t,e){t&&tk.hasOwnProperty(t.type)&&tk[t.type](t,e)}var JC={Feature:function(t,e){wh(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}function Spt(t,e){const n=new Wa;if(e===void 0)for(let r of t)(r=+r)&&n.add(r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&n.add(i)}return+n}function Mpt(t,e){const n=new Wa;let r=-1;return Float64Array.from(t,e===void 0?i=>n.add(+i||0):i=>n.add(+e(i,++r,t)||0))}var De=1e-6,nk=1e-12,on=Math.PI,gr=on/2,rk=on/4,Ci=on*2,Kr=180/on,dr=on/180,mn=Math.abs,Ac=Math.atan,Ha=Math.atan2,rn=Math.cos,Sh=Math.ceil,ik=Math.exp,Ept=Math.floor,Apt=Math.hypot,Mh=Math.log,Uy=Math.pow,Ze=Math.sin,Vi=Math.sign||function(t){return t>0?1:t<0?-1:0},bi=Math.sqrt,qy=Math.tan;function ak(t){return t>1?0:t<-1?on:Math.acos(t)}function Xi(t){return t>1?gr:t<-1?-gr:Math.asin(t)}function Tpt(t){return(t=Ze(t/2))*t}function $i(){}var Zy=new Wa,Ky=new Wa,ok,sk,Qy,Jy,Ao={point:$i,lineStart:$i,lineEnd:$i,polygonStart:function(){Ao.lineStart=YJ,Ao.lineEnd=XJ},polygonEnd:function(){Ao.lineStart=Ao.lineEnd=Ao.point=$i,Zy.add(mn(Ky)),Ky=new Wa},result:function(){var t=Zy/2;return Zy=new Wa,t}};function YJ(){Ao.point=VJ}function VJ(t,e){Ao.point=ck,ok=Qy=t,sk=Jy=e}function ck(t,e){Ky.add(Jy*t-Qy*e),Qy=t,Jy=e}function XJ(){ck(ok,sk)}var lk=Ao,Tc=1/0,Eh=Tc,cu=-Tc,Ah=cu,$J={point:UJ,lineStart:$i,lineEnd:$i,polygonStart:$i,polygonEnd:$i,result:function(){var t=[[Tc,Eh],[cu,Ah]];return cu=Ah=-(Eh=Tc=1/0),t}};function UJ(t,e){tcu&&(cu=t),eAh&&(Ah=e)}var Th=$J,tm=0,em=0,lu=0,Ph=0,Ch=0,Pc=0,nm=0,rm=0,uu=0,uk,fk,xa,_a,ea={point:ms,lineStart:dk,lineEnd:hk,polygonStart:function(){ea.lineStart=KJ,ea.lineEnd=QJ},polygonEnd:function(){ea.point=ms,ea.lineStart=dk,ea.lineEnd=hk},result:function(){var t=uu?[nm/uu,rm/uu]:Pc?[Ph/Pc,Ch/Pc]:lu?[tm/lu,em/lu]:[NaN,NaN];return tm=em=lu=Ph=Ch=Pc=nm=rm=uu=0,t}};function ms(t,e){tm+=t,em+=e,++lu}function dk(){ea.point=qJ}function qJ(t,e){ea.point=ZJ,ms(xa=t,_a=e)}function ZJ(t,e){var n=t-xa,r=e-_a,i=bi(n*n+r*r);Ph+=i*(xa+t)/2,Ch+=i*(_a+e)/2,Pc+=i,ms(xa=t,_a=e)}function hk(){ea.point=ms}function KJ(){ea.point=JJ}function QJ(){pk(uk,fk)}function JJ(t,e){ea.point=pk,ms(uk=xa=t,fk=_a=e)}function pk(t,e){var n=t-xa,r=e-_a,i=bi(n*n+r*r);Ph+=i*(xa+t)/2,Ch+=i*(_a+e)/2,Pc+=i,i=_a*t-xa*e,nm+=i*(xa+t),rm+=i*(_a+e),uu+=i*3,ms(xa=t,_a=e)}var vk=ea;function gk(t){this._context=t}gk.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e),this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Ci);break}}},result:$i};var im=new Wa,am,yk,mk,fu,du,kh={point:$i,lineStart:function(){kh.point=ttt},lineEnd:function(){am&&bk(yk,mk),kh.point=$i},polygonStart:function(){am=!0},polygonEnd:function(){am=null},result:function(){var t=+im;return im=new Wa,t}};function ttt(t,e){kh.point=bk,yk=fu=t,mk=du=e}function bk(t,e){fu-=t,du-=e,im.add(bi(fu*fu+du*du)),fu=t,du=e}var xk=kh;let _k,Rh,Ok,wk;class Sk{constructor(e){this._append=e==null?Mk:ett(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(e,n){switch(this._point){case 0:{this._append`M${e},${n}`,this._point=1;break}case 1:{this._append`L${e},${n}`;break}default:{if(this._append`M${e},${n}`,this._radius!==Ok||this._append!==Rh){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,Ok=r,Rh=this._append,wk=this._,this._=i}this._+=wk;break}}}result(){const e=this._;return this._="",e.length?e:null}}function Mk(t){let e=1;this._+=t[0];for(const n=t.length;e=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return Mk;if(e!==_k){const n=wr(10,e);_k=e,Rh=function(i){let a=1;this._+=i[0];for(const o=i.length;a=0))throw new RangeError(`invalid digits: ${s}`);n=c}return e===null&&(a=new Sk(n)),o},o.projection(t).digits(n).context(e)}function Cc(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++rDe}).map(d)).concat(Cc(Sh(a/l)*l,i,l).filter(function(b){return mn(b%f)>De}).map(h))}return y.lines=function(){return m().map(function(b){return{type:"LineString",coordinates:b}})},y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(v(o).slice(1),p(n).reverse().slice(1),v(s).reverse().slice(1))]}},y.extent=function(b){return arguments.length?y.extentMajor(b).extentMinor(b):y.extentMinor()},y.extentMajor=function(b){return arguments.length?(r=+b[0][0],n=+b[1][0],s=+b[0][1],o=+b[1][1],r>n&&(b=r,r=n,n=b),s>o&&(b=s,s=o,o=b),y.precision(g)):[[r,s],[n,o]]},y.extentMinor=function(b){return arguments.length?(e=+b[0][0],t=+b[1][0],a=+b[0][1],i=+b[1][1],e>t&&(b=e,e=t,t=b),a>i&&(b=a,a=i,i=b),y.precision(g)):[[e,a],[t,i]]},y.step=function(b){return arguments.length?y.stepMajor(b).stepMinor(b):y.stepMinor()},y.stepMajor=function(b){return arguments.length?(u=+b[0],f=+b[1],y):[u,f]},y.stepMinor=function(b){return arguments.length?(c=+b[0],l=+b[1],y):[c,l]},y.precision=function(b){return arguments.length?(g=+b,d=Ak(a,i,90),h=Tk(e,t,g),p=Ak(s,o,90),v=Tk(r,n,g),y):g},y.extentMajor([[-180,-90+De],[180,90-De]]).extentMinor([[-180,-80-De],[180,80+De]])}function rtt(){return ntt()()}function Pk(){var t=[],e;return{point:function(n,r,i){e.push([n,r,i])},lineStart:function(){t.push(e=[])},lineEnd:$i,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Lh(t,e){return mn(t[0]-e[0])=0;--s)i.point((f=u[s])[0],f[1]);else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,u=d.z,h=!h}while(!d.v);i.lineEnd()}}}function kk(t){if(e=t.length){for(var e,n=0,r=t[0],i;++n=0?1:-1,P=A*E,C=P>on,j=g*w;if(c.add(Ha(j*A*Ze(P),y*M+j*rn(P))),o+=C?E+A*Ci:E,C^p>=n^_>=n){var N=jh(kc(h),kc(b));cm(N);var k=jh(a,N);cm(k);var R=(C^E>=0?-1:1)*Xi(k[2]);(r>R||r===R&&(N[0]||N[1]))&&(s+=C^E>=0?1:-1)}}return(o<-De||o0){for(c||(i.polygonStart(),c=!0),i.lineStart(),w=0;w1&&_&2&&O.push(O.pop().concat(O.shift())),u.push(O.filter(ott))}}return d}}function ott(t){return t.length>1}function stt(t,e){return((t=t.x)[0]<0?t[1]-gr-De:gr-t[1])-((e=e.x)[0]<0?e[1]-gr-De:gr-e[1])}var Nk=Lk(function(){return!0},ctt,utt,[-on,-gr]);function ctt(t){var e=NaN,n=NaN,r=NaN,i;return{lineStart:function(){t.lineStart(),i=1},point:function(a,o){var s=a>0?on:-on,c=mn(a-e);mn(c-on)0?gr:-gr),t.point(r,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),i=0):r!==s&&c>=on&&(mn(e-r)De?Ac((Ze(e)*(a=rn(r))*Ze(n)-Ze(r)*(i=rn(e))*Ze(t))/(i*a*o)):(e+r)/2}function utt(t,e,n,r){var i;if(t==null)i=n*gr,r.point(-on,i),r.point(0,i),r.point(on,i),r.point(on,0),r.point(on,-i),r.point(0,-i),r.point(-on,-i),r.point(-on,0),r.point(-on,i);else if(mn(t[0]-e[0])>De){var a=t[0]0?ia)&&(i+=r*Ci));for(var l,u=i;r>0?u>a:u0,i=mn(e)>De;function a(u,f,d,h){Ik(h,t,n,d,u,f)}function o(u,f){return rn(u)*rn(f)>e}function s(u){var f,d,h,p,v;return{lineStart:function(){p=h=!1,v=1},point:function(g,y){var m=[g,y],b,_=o(g,y),O=r?_?0:l(g,y):_?l(g+(g<0?on:-on),y):0;if(!f&&(p=h=_)&&u.lineStart(),_!==h&&(b=c(f,m),(!b||Lh(f,b)||Lh(m,b))&&(m[2]=1)),_!==h)v=0,_?(u.lineStart(),b=c(m,f),u.point(b[0],b[1])):(b=c(f,m),u.point(b[0],b[1],2),u.lineEnd()),f=b;else if(i&&f&&r^_){var w;!(O&d)&&(w=c(m,f,!0))&&(v=0,r?(u.lineStart(),u.point(w[0][0],w[0][1]),u.point(w[1][0],w[1][1]),u.lineEnd()):(u.point(w[1][0],w[1][1]),u.lineEnd(),u.lineStart(),u.point(w[0][0],w[0][1],3)))}_&&(!f||!Lh(f,m))&&u.point(m[0],m[1]),f=m,h=_,d=O},lineEnd:function(){h&&u.lineEnd(),f=null},clean:function(){return v|(p&&h)<<1}}}function c(u,f,d){var h=kc(u),p=kc(f),v=[1,0,0],g=jh(h,p),y=Ih(g,g),m=g[0],b=y-m*m;if(!b)return!d&&u;var _=e*y/b,O=-e*m/b,w=jh(v,g),M=Dh(v,_),E=Dh(g,O);sm(M,E);var A=w,P=Ih(M,A),C=Ih(A,A),j=P*P-C*(Ih(M,M)-1);if(!(j<0)){var N=bi(j),k=Dh(A,(-P-N)/C);if(sm(k,M),k=om(k),!d)return k;var R=u[0],D=f[0],F=u[1],B=f[1],z;D0^k[1]<(mn(k[0]-R)on^(R<=k[0]&&k[0]<=D)){var it=Dh(A,(-P+N)/C);return sm(it,M),[k,om(it)]}}}function l(u,f){var d=r?t:on-t,h=0;return u<-d?h|=1:u>d&&(h|=2),f<-d?h|=4:f>d&&(h|=8),h}return Lk(o,s,a,r?[0,-t]:[-on,t-on])}function dtt(t,e,n,r,i,a){var o=t[0],s=t[1],c=e[0],l=e[1],u=0,f=1,d=c-o,h=l-s,p;if(p=n-o,!(!d&&p>0)){if(p/=d,d<0){if(p0){if(p>f)return;p>u&&(u=p)}if(p=i-o,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>u&&(u=p)}else if(d>0){if(p0)){if(p/=h,h<0){if(p0){if(p>f)return;p>u&&(u=p)}if(p=a-s,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>u&&(u=p)}else if(h>0){if(p0&&(t[0]=o+u*d,t[1]=s+u*h),f<1&&(e[0]=o+f*d,e[1]=s+f*h),!0}}}}}var hu=1e9,Fh=-hu;function Dk(t,e,n,r){function i(l,u){return t<=l&&l<=n&&e<=u&&u<=r}function a(l,u,f,d){var h=0,p=0;if(l==null||(h=o(l,f))!==(p=o(u,f))||c(l,u)<0^f>0)do d.point(h===0||h===3?t:n,h>1?r:e);while((h=(h+f+4)%4)!==p);else d.point(u[0],u[1])}function o(l,u){return mn(l[0]-t)0?0:3:mn(l[0]-n)0?2:1:mn(l[1]-e)0?1:0:u>0?3:2}function s(l,u){return c(l.x,u.x)}function c(l,u){var f=o(l,1),d=o(u,1);return f!==d?f-d:f===0?u[1]-l[1]:f===1?l[0]-u[0]:f===2?l[1]-u[1]:u[0]-l[0]}return function(l){var u=l,f=Pk(),d,h,p,v,g,y,m,b,_,O,w,M={point:E,lineStart:j,lineEnd:N,polygonStart:P,polygonEnd:C};function E(R,D){i(R,D)&&u.point(R,D)}function A(){for(var R=0,D=0,F=h.length;Dr&&(St-tt)*(r-it)>(Ft-it)*(t-tt)&&++R:Ft<=r&&(St-tt)*(r-it)<(Ft-it)*(t-tt)&&--R;return R}function P(){u=f,d=[],h=[],w=!0}function C(){var R=A(),D=w&&R,F=(d=Rk(d)).length;(D||F)&&(l.polygonStart(),D&&(l.lineStart(),a(null,null,1,l),l.lineEnd()),F&&Ck(d,s,R,a,l),l.polygonEnd()),u=l,d=h=p=null}function j(){M.point=k,h&&h.push(p=[]),O=!0,_=!1,m=b=NaN}function N(){d&&(k(v,g),y&&_&&f.rejoin(),d.push(f.result())),M.point=E,_&&u.lineEnd()}function k(R,D){var F=i(R,D);if(h&&p.push([R,D]),O)v=R,g=D,y=F,O=!1,F&&(u.lineStart(),u.point(R,D));else if(F&&_)u.point(R,D);else{var B=[m=Math.max(Fh,Math.min(hu,m)),b=Math.max(Fh,Math.min(hu,b))],z=[R=Math.max(Fh,Math.min(hu,R)),D=Math.max(Fh,Math.min(hu,D))];dtt(B,z,t,e,n,r)?(_||(u.lineStart(),u.point(B[0],B[1])),u.point(z[0],z[1]),F||u.lineEnd(),w=!1):F&&(u.lineStart(),u.point(R,D),w=!1)}m=R,b=D,_=F}return M}}function um(t,e){function n(r,i){return r=t(r,i),e(r[0],r[1])}return t.invert&&e.invert&&(n.invert=function(r,i){return r=e.invert(r,i),r&&t.invert(r[0],r[1])}),n}function fm(t,e){return mn(t)>on&&(t-=Math.round(t/Ci)*Ci),[t,e]}fm.invert=fm;function Fk(t,e,n){return(t%=Ci)?e||n?um(zk(t),Gk(e,n)):zk(t):e||n?Gk(e,n):fm}function Bk(t){return function(e,n){return e+=t,mn(e)>on&&(e-=Math.round(e/Ci)*Ci),[e,n]}}function zk(t){var e=Bk(t);return e.invert=Bk(-t),e}function Gk(t,e){var n=rn(t),r=Ze(t),i=rn(e),a=Ze(e);function o(s,c){var l=rn(c),u=rn(s)*l,f=Ze(s)*l,d=Ze(c),h=d*n+u*r;return[Ha(f*i-h*a,u*n-d*r),Xi(h*i+f*a)]}return o.invert=function(s,c){var l=rn(c),u=rn(s)*l,f=Ze(s)*l,d=Ze(c),h=d*i-f*a;return[Ha(f*i+d*a,u*n+h*r),Xi(h*n-u*r)]},o}function htt(t){t=Fk(t[0]*dr,t[1]*dr,t.length>2?t[2]*dr:0);function e(n){return n=t(n[0]*dr,n[1]*dr),n[0]*=Kr,n[1]*=Kr,n}return e.invert=function(n){return n=t.invert(n[0]*dr,n[1]*dr),n[0]*=Kr,n[1]*=Kr,n},e}function Cpt(t){return{stream:pu(t)}}function pu(t){return function(e){var n=new dm;for(var r in t)n[r]=t[r];return n.stream=e,n}}function dm(){}dm.prototype={constructor:dm,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function hm(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Ec(n,t.stream(Th)),e(Th.result()),r!=null&&t.clipExtent(r),t}function Bh(t,e,n){return hm(t,function(r){var i=e[1][0]-e[0][0],a=e[1][1]-e[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+e[0][0]+(i-o*(r[1][0]+r[0][0]))/2,c=+e[0][1]+(a-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([s,c])},n)}function pm(t,e,n){return Bh(t,[[0,0],e],n)}function vm(t,e,n){return hm(t,function(r){var i=+e,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];t.scale(150*a).translate([o,s])},n)}function gm(t,e,n){return hm(t,function(r){var i=+e,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])},n)}var Wk=16,ptt=rn(30*dr);function Hk(t,e){return+e?gtt(t,e):vtt(t)}function vtt(t){return pu({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function gtt(t,e){function n(r,i,a,o,s,c,l,u,f,d,h,p,v,g){var y=l-r,m=u-i,b=y*y+m*m;if(b>4*e&&v--){var _=o+d,O=s+h,w=c+p,M=bi(_*_+O*O+w*w),E=Xi(w/=M),A=mn(mn(w)-1)e||mn((y*N+m*k)/b-.5)>.3||o*d+s*h+c*p2?R[2]%360*dr:0,N()):[s*Kr,c*Kr,l*Kr]},C.angle=function(R){return arguments.length?(f=R%360*dr,N()):f*Kr},C.reflectX=function(R){return arguments.length?(d=R?-1:1,N()):d<0},C.reflectY=function(R){return arguments.length?(h=R?-1:1,N()):h<0},C.precision=function(R){return arguments.length?(w=Hk(M,O=R*R),k()):bi(O)},C.fitExtent=function(R,D){return Bh(C,R,D)},C.fitSize=function(R,D){return pm(C,R,D)},C.fitWidth=function(R,D){return vm(C,R,D)},C.fitHeight=function(R,D){return gm(C,R,D)};function N(){var R=Yk(n,0,0,d,h,f).apply(null,e(a,o)),D=Yk(n,r-R[0],i-R[1],d,h,f);return u=Fk(s,c,l),M=um(e,D),E=um(u,M),w=Hk(M,O),k()}function k(){return A=P=null,C}return function(){return e=t.apply(this,arguments),C.invert=e.invert&&j,N()}}function mm(t){var e=0,n=on/3,r=ym(t),i=r(e,n);return i.parallels=function(a){return arguments.length?r(e=a[0]*dr,n=a[1]*dr):[e*Kr,n*Kr]},i}function xtt(t){var e=rn(t);function n(r,i){return[r*e,Ze(i)/e]}return n.invert=function(r,i){return[r/e,Xi(i*e)]},n}function Vk(t,e){var n=Ze(t),r=(n+Ze(e))/2;if(mn(r)=.12&&g<.234&&v>=-.425&&v<-.214?i:g>=.166&&g<.234&&v>=-.214&&v<-.115?o:n).invert(d)},u.stream=function(d){return t&&e===d?t:t=_tt([n.stream(e=d),i.stream(d),o.stream(d)])},u.precision=function(d){return arguments.length?(n.precision(d),i.precision(d),o.precision(d),f()):n.precision()},u.scale=function(d){return arguments.length?(n.scale(d),i.scale(d*.35),o.scale(d),u.translate(n.translate())):n.scale()},u.translate=function(d){if(!arguments.length)return n.translate();var h=n.scale(),p=+d[0],v=+d[1];return r=n.translate(d).clipExtent([[p-.455*h,v-.238*h],[p+.455*h,v+.238*h]]).stream(l),a=i.translate([p-.307*h,v+.201*h]).clipExtent([[p-.425*h+De,v+.12*h+De],[p-.214*h-De,v+.234*h-De]]).stream(l),s=o.translate([p-.205*h,v+.212*h]).clipExtent([[p-.214*h+De,v+.166*h+De],[p-.115*h-De,v+.234*h-De]]).stream(l),f()},u.fitExtent=function(d,h){return Bh(u,d,h)},u.fitSize=function(d,h){return pm(u,d,h)},u.fitWidth=function(d,h){return vm(u,d,h)},u.fitHeight=function(d,h){return gm(u,d,h)};function f(){return t=e=null,u}return u.scale(1070)}function $k(t){return function(e,n){var r=rn(e),i=rn(n),a=t(r*i);return a===1/0?[2,0]:[a*i*Ze(e),a*Ze(n)]}}function vu(t){return function(e,n){var r=bi(e*e+n*n),i=t(r),a=Ze(i),o=rn(i);return[Ha(e*a,r*o),Xi(r&&n*a/r)]}}var bm=$k(function(t){return bi(2/(1+t))});bm.invert=vu(function(t){return 2*Xi(t/2)});function wtt(){return Oa(bm).scale(124.75).clipAngle(180-.001)}var xm=$k(function(t){return(t=ak(t))&&t/Ze(t)});xm.invert=vu(function(t){return t});function Stt(){return Oa(xm).scale(79.4188).clipAngle(180-.001)}function gu(t,e){return[t,Mh(qy((gr+e)/2))]}gu.invert=function(t,e){return[t,2*Ac(ik(e))-gr]};function Mtt(){return Uk(gu).scale(961/Ci)}function Uk(t){var e=Oa(t),n=e.center,r=e.scale,i=e.translate,a=e.clipExtent,o=null,s,c,l;e.scale=function(f){return arguments.length?(r(f),u()):r()},e.translate=function(f){return arguments.length?(i(f),u()):i()},e.center=function(f){return arguments.length?(n(f),u()):n()},e.clipExtent=function(f){return arguments.length?(f==null?o=s=c=l=null:(o=+f[0][0],s=+f[0][1],c=+f[1][0],l=+f[1][1]),u()):o==null?null:[[o,s],[c,l]]};function u(){var f=on*r(),d=e(htt(e.rotate()).invert([0,0]));return a(o==null?[[d[0]-f,d[1]-f],[d[0]+f,d[1]+f]]:t===gu?[[Math.max(d[0]-f,o),s],[Math.min(d[0]+f,c),l]]:[[o,Math.max(d[1]-f,s)],[c,Math.min(d[1]+f,l)]])}return u()}function Gh(t){return qy((gr+t)/2)}function qk(t,e){var n=rn(t),r=t===e?Ze(t):Mh(n/rn(e))/Mh(Gh(e)/Gh(t)),i=n*Uy(Gh(t),r)/r;if(!r)return gu;function a(o,s){i>0?s<-gr+De&&(s=-gr+De):s>gr-De&&(s=gr-De);var c=i/Uy(Gh(s),r);return[c*Ze(r*o),i-c*rn(r*o)]}return a.invert=function(o,s){var c=i-s,l=Vi(r)*bi(o*o+c*c),u=Ha(o,mn(c))*Vi(c);return c*r<0&&(u-=on*Vi(o)*Vi(c)),[u/r,2*Ac(Uy(i/l,1/r))-gr]},a}function Ett(){return mm(qk).scale(109.5).parallels([30,30])}function yu(t,e){return[t,e]}yu.invert=yu;function Att(){return Oa(yu).scale(152.63)}function Zk(t,e){var n=rn(t),r=t===e?Ze(t):(n-rn(e))/(e-t),i=n/r+t;if(mn(r)De&&--r>0);return[t/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function Ltt(){return Oa(wm).scale(175.295)}function Sm(t,e){return[rn(e)*Ze(t),Ze(e)]}Sm.invert=vu(Xi);function Ntt(){return Oa(Sm).scale(249.5).clipAngle(90+De)}function Mm(t,e){var n=rn(e),r=1+rn(t)*n;return[n*Ze(t)/r,Ze(e)/r]}Mm.invert=vu(function(t){return 2*Ac(t)});function Itt(){return Oa(Mm).scale(250).clipAngle(142)}function Em(t,e){return[Mh(qy((gr+e)/2)),-t]}Em.invert=function(t,e){return[-e,2*Ac(ik(t))-gr]};function jtt(){var t=Uk(Em),e=t.center,n=t.rotate;return t.center=function(r){return arguments.length?e([-r[1],r[0]]):(r=e(),[r[1],-r[0]])},t.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}var Dtt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iztt(e).features)}}function ztt(t){const e={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"};if(!t||!t.type)return null;const n=e[t.type];if(!n)return null;if(n==="geometry")return{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]};if(n==="feature")return{type:"FeatureCollection",features:[t]};if(n==="featureCollection")return t}function Gtt(t,e){var n;for(const[r,i]of Object.entries(e))(n=t[r])===null||n===void 0||n.call(t,i)}function Wtt(t,e,n,r){const i=()=>{const s=e.filter(Kk);return s.find(l=>l.sphere)?{type:"Sphere"}:Btt(s.filter(l=>!l.sphere).flatMap(l=>l.data.value))},{outline:a=i()}=r,{size:o="fitExtent"}=r;if(o==="fitExtent")return Htt(t,a,n);if(o==="fitWidth")return Ytt(t,a,n)}function Htt(t,e,n){const{x:r,y:i,width:a,height:o}=n;t.fitExtent([[r,i],[a,o]],e)}function Ytt(t,e,n){const{width:r,height:i}=n,[[a,o],[s,c]]=Ek(t.fitWidth(r,e)).bounds(e),l=Math.ceil(c-o),u=Math.min(Math.ceil(s-a),l),f=t.scale()*(u-1)/u,[d,h]=t.translate(),p=h+(i-l)/2;t.scale(f).translate([d,p]).precision(.2)}function Vtt(t){const{data:e}=t;if(Array.isArray(e))return Object.assign(Object.assign({},t),{data:{value:e}});const{type:n}=e;return n==="graticule10"?Object.assign(Object.assign({},t),{data:{value:[rtt()]}}):n==="sphere"?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function Kk(t){return t.type==="geoPath"}const Qk=()=>t=>{const{children:e,coordinate:n={}}=t;if(!Array.isArray(e))return[];const{type:r="equalEarth"}=n,i=Dtt(n,["type"]),a=Ftt(r),o=e.map(Vtt);let s;function c(){return[["custom",(f,d,h,p)=>{const v=a();Wtt(v,o,{x:f,y:d,width:h,height:p},i),Gtt(v,i),s=Ek(v);const y=new Xr({domain:[f,f+h]}),m=new Xr({domain:[d,d+p]}),b=O=>{const w=v(O);if(!w)return[null,null];const[M,E]=w;return[y.map(M),m.map(E)]},_=O=>{if(!O)return null;const[w,M]=O,E=[y.invert(w),m.invert(M)];return v.invert(E)};return{transform:O=>b(O),untransform:O=>_(O)}}]]}function l(f){const{style:d,tooltip:h={}}=f;return Object.assign(Object.assign({},f),{type:"path",tooltip:ng(h,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},d),{d:p=>s(p)||[]})})}const u=f=>Kk(f)?l(f):f;return[Object.assign(Object.assign({},t),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:c},children:o.flatMap(u)})]};Qk.props={};var Xtt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it=>{const{type:e,data:n,scale:r,encode:i,style:a,animate:o,key:s,state:c}=t,l=Xtt(t,["type","data","scale","encode","style","animate","key","state"]);return[Object.assign(Object.assign({type:"geoView"},l),{children:[{type:"geoPath",key:`${s}-0`,data:{value:n},scale:r,encode:i,style:a,animate:o,state:c}]})]};Jk.props={};function $tt(){return{"composition.geoView":Qk,"composition.geoPath":Jk}}function Utt(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return t5(this.cover(e,n),e,n,t)}function t5(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a=t._root,o={data:r},s=t._x0,c=t._y0,l=t._x1,u=t._y1,f,d,h,p,v,g,y,m;if(!a)return t._root=o,t;for(;a.length;)if((v=e>=(f=(s+l)/2))?s=f:l=f,(g=n>=(d=(c+u)/2))?c=d:u=d,i=a,!(a=a[y=g<<1|v]))return i[y]=o,t;if(h=+t._x.call(null,a.data),p=+t._y.call(null,a.data),e===h&&n===p)return o.next=a,i?i[y]=o:t._root=o,t;do i=i?i[y]=new Array(4):t._root=new Array(4),(v=e>=(f=(s+l)/2))?s=f:l=f,(g=n>=(d=(c+u)/2))?c=d:u=d;while((y=g<<1|v)===(m=(p>=d)<<1|h>=f));return i[m]=a,i[y]=o,t}function qtt(t){var e,n,r=t.length,i,a,o=new Array(r),s=new Array(r),c=1/0,l=1/0,u=-1/0,f=-1/0;for(n=0;nu&&(u=i),af&&(f=a));if(c>u||l>f)return this;for(this.cover(c,l).cover(u,f),n=0;nt||t>=i||r>e||e>=a;)switch(l=(eu||(s=p.y0)>f||(c=p.x1)=y)<<1|t>=g)&&(p=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=p)}else{var m=t-+this._x.call(null,h.data),b=e-+this._y.call(null,h.data),_=m*m+b*b;if(_=(d=(o+c)/2))?o=d:c=d,(v=f>=(h=(s+l)/2))?s=h:l=h,e=n,!(n=n[g=v<<1|p]))return this;if(!n.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(r=e,y=g)}for(;n.data!==t;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):e?(a?e[g]=a:delete e[g],(n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=a,this)}function eet(t){for(var e=0,n=t.length;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Hh.prototype=r5.prototype={constructor:Hh,on:function(e,n){var r=this._,i=det(e+"",r),a,o=-1,s=i.length;if(arguments.length<2){for(;++o0)for(var r=new Array(a),i=0,a,o;i=0&&t._call.call(void 0,e),t=t._next;--Lc}function l5(){bs=(Vh=Mu.now())+Xh,Lc=Ou=0;try{get()}finally{Lc=0,met(),bs=0}}function yet(){var t=Mu.now(),e=t-Vh;e>a5&&(Xh-=e,Vh=t)}function met(){for(var t,e=Yh,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Yh=n);Su=t,Pm(r)}function Pm(t){if(!Lc){Ou&&(Ou=clearTimeout(Ou));var e=t-bs;e>24?(t<1/0&&(Ou=setTimeout(l5,t-Mu.now()-Xh)),wu&&(wu=clearInterval(wu))):(wu||(Vh=Mu.now(),wu=setInterval(yet,a5)),Lc=1,o5(l5))}}const bet=1664525,xet=1013904223,u5=4294967296;function _et(){let t=1;return()=>(t=(bet*t+xet)%u5)/u5}function Oet(t){return t.x}function wet(t){return t.y}var Met=10,Eet=Math.PI*(3-Math.sqrt(5));function Aet(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,c=c5(f),l=pet("tick","end"),u=_et();t==null&&(t=[]);function f(){d(),l.call("tick",e),n1?(g==null?s.delete(v):s.set(v,p(g)),e):s.get(v)},find:function(v,g,y){var m=0,b=t.length,_,O,w,M,E;for(y==null?y=1/0:y*=y,m=0;m1?(l.on(v,g),e):l.on(v)}}}function Tet(){var t,e,n,r,i=ki(-30),a,o=1,s=1/0,c=.81;function l(h){var p,v=t.length,g=e5(t,Oet,wet).visitAfter(f);for(r=h,p=0;p=s)return;(h.data!==e||h.next)&&(y===0&&(y=Rc(n),_+=y*y),m===0&&(m=Rc(n),_+=m*m),_[e(O,w,o),O])),_;for(g=0,s=new Array(y);gt.source.x,t=>t.target.x],y:[t=>t.source.y,t=>t.target.y]},style:{stroke:"#999",strokeOpacity:.6}},Det={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},Fet={text:""};function Bet(t,e,n){const{nodes:r,links:i}=t,{joint:a,nodeStrength:o,linkStrength:s}=e,{nodeKey:c=p=>p.id,linkKey:l=p=>p.id}=n,u=Tet(),f=Cet(i).id(ba(l));typeof o=="function"&&u.strength(o),typeof s=="function"&&f.strength(s);const d=Aet(r).force("link",f).force("charge",u);a?d.force("center",ket()):d.force("x",Ret()).force("y",Let()),d.stop();const h=Math.ceil(Math.log(d.alphaMin())/Math.log(1-d.alphaDecay()));for(let p=0;p{const{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,{nodeKey:u=w=>w.id,linkKey:f=w=>w.id}=n,d=Net(n,["nodeKey","linkKey"]),h=Object.assign({nodeKey:u,linkKey:f},d),p=le(h,"node"),v=le(h,"link"),{links:g,nodes:y}=Pg(e,h),{nodesData:m,linksData:b}=Bet({links:g,nodes:y},Nt({},Iet,a),h),_=va(l,"link",{items:[w=>({name:"source",value:ba(f)(w.source)}),w=>({name:"target",value:ba(f)(w.target)})]}),O=va(l,"node",{items:[w=>({name:"key",value:ba(u)(w)})]},!0);return[Nt({},jet,{data:b,encode:v,labels:s,style:le(i,"link"),tooltip:_,animate:ga(c,"link")}),Nt({},Det,{data:m,encode:Object.assign({},p),scale:r,style:le(i,"node"),tooltip:O,labels:[Object.assign(Object.assign({},Fet),le(i,"label")),...o],animate:ga(c,"link")})]};d5.props={};function zet(t,e){return t.parent===e.parent?1:2}function Cm(t){var e=t.children;return e?e[0]:t.t}function km(t){var e=t.children;return e?e[e.length-1]:t.t}function Get(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Wet(t){for(var e=0,n=0,r=t.children,i=r.length,a;--i>=0;)a=r[i],a.z+=e,a.m+=e,e+=a.s+(n+=a.c)}function Het(t,e,n){return t.a.parent===e.parent?t.a:n}function $h(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}$h.prototype=Object.create(hc.prototype);function Yet(t){for(var e=new $h(t,0),n,r=[e],i,a,o,s;n=r.pop();)if(a=n._.children)for(n.children=new Array(s=a.length),o=s-1;o>=0;--o)r.push(i=n.children[o]=new $h(a[o],o)),i.parent=n;return(e.parent=new $h(null,0)).children=[e],e}function Vet(){var t=zet,e=1,n=1,r=null;function i(l){var u=Yet(l);if(u.eachAfter(a),u.parent.m=-u.z,u.eachBefore(o),r)l.eachBefore(c);else{var f=l,d=l,h=l;l.eachBefore(function(m){m.xd.x&&(d=m),m.depth>h.depth&&(h=m)});var p=f===d?1:t(f,d)/2,v=p-f.x,g=e/(d.x+p+v),y=n/(h.depth||1);l.eachBefore(function(m){m.x=(m.x+v)*g,m.y=m.depth*y})}return l}function a(l){var u=l.children,f=l.parent.children,d=l.i?f[l.i-1]:null;if(u){Wet(l);var h=(u[0].z+u[u.length-1].z)/2;d?(l.z=d.z+t(l._,d._),l.m=l.z-h):l.z=h}else d&&(l.z=d.z+t(l._,d._));l.parent.A=s(l,d,l.parent.A||f[0])}function o(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,u,f){if(u){for(var d=l,h=l,p=u,v=d.parent.children[0],g=d.m,y=h.m,m=p.m,b=v.m,_;p=km(p),d=Cm(d),p&&d;)v=Cm(v),h=km(h),h.a=l,_=p.z+m-d.z-g+t(p._,d._),_>0&&(Get(Het(p,l,f),l,_),g+=_,y+=_),m+=p.m,g+=d.m,b+=v.m,y+=h.m;p&&!km(h)&&(h.t=p,h.m+=m-y),d&&!Cm(v)&&(v.t=d,v.m+=g-b,f=l)}return f}function c(l){l.x*=e,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(t=l,i):t},i.size=function(l){return arguments.length?(r=!1,e=+l[0],n=+l[1],i):r?null:[e,n]},i.nodeSize=function(l){return arguments.length?(r=!0,e=+l[0],n=+l[1],i):r?[e,n]:null},i}function Xet(t,e){return t.parent===e.parent?1:2}function $et(t){return t.reduce(Uet,0)/t.length}function Uet(t,e){return t+e.x}function qet(t){return 1+t.reduce(Zet,0)}function Zet(t,e){return Math.max(t,e.y)}function Ket(t){for(var e;e=t.children;)t=e[0];return t}function Qet(t){for(var e;e=t.children;)t=e[e.length-1];return t}function Jet(){var t=Xet,e=1,n=1,r=!1;function i(a){var o,s=0;a.eachAfter(function(d){var h=d.children;h?(d.x=$et(h),d.y=qet(h)):(d.x=o?s+=t(d,o):0,d.y=0,o=d)});var c=Ket(a),l=Qet(a),u=c.x-t(c,l)/2,f=l.x+t(l,c)/2;return a.eachAfter(r?function(d){d.x=(d.x-a.x)*e,d.y=(a.y-d.y)*n}:function(d){d.x=(d.x-u)/(f-u)*e,d.y=(1-(a.y?d.y/a.y:1))*n})}return i.separation=function(a){return arguments.length?(t=a,i):t},i.size=function(a){return arguments.length?(r=!1,e=+a[0],n=+a[1],i):r?null:[e,n]},i.nodeSize=function(a){return arguments.length?(r=!0,e=+a[0],n=+a[1],i):r?[e,n]:null},i}const h5=t=>e=>n=>{const{field:r="value",nodeSize:i,separation:a,sortBy:o,as:s=["x","y"]}=e,[c,l]=s,u=dc(n,p=>p.children).sum(p=>p[r]).sort(o),f=t();f.size([1,1]),i&&f.nodeSize(i),a&&f.separation(a),f(u);const d=[];u.each(p=>{p[c]=p.x,p[l]=p.y,p.name=p.data.name,d.push(p)});const h=u.links();return h.forEach(p=>{p[c]=[p.source[c],p.target[c]],p[l]=[p.source[l],p.target[l]]}),{nodes:d,edges:h}},p5=t=>h5(Jet)(t);p5.props={};const v5=t=>h5(Vet)(t);v5.props={};const tnt={sortBy:(t,e)=>e.value-t.value},ent={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},nnt={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},rnt={text:"",fontSize:10},g5=t=>{const{data:e,encode:n={},scale:r={},style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,u=n==null?void 0:n.value,{nodes:f,edges:d}=v5(Object.assign(Object.assign(Object.assign({},tnt),a),{field:u}))(e),h=va(l,"node",{title:"name",items:["value"]},!0),p=va(l,"link",{title:"",items:[v=>({name:"source",value:v.source.name}),v=>({name:"target",value:v.target.name})]});return[Nt({},nnt,{data:d,encode:le(n,"link"),scale:le(r,"link"),labels:s,style:Object.assign({stroke:"#999"},le(i,"link")),tooltip:p,animate:ga(c,"link")}),Nt({},ent,{data:f,scale:le(r,"node"),encode:le(n,"node"),labels:[Object.assign(Object.assign({},rnt),le(i,"label")),...o],style:Object.assign({},le(i,"node")),tooltip:h,animate:ga(c,"node")})]};g5.props={};function xs(){return 0}function Nc(t){return function(){return t}}var int=1664525,ant=1013904223,y5=4294967296;function ont(){var t=1;return function(){return(t=(int*t+ant)%y5)/y5}}var snt=yt(80445);function cnt(t){return snt(t)==="object"&&"length"in t?t:Array.from(t)}function lnt(t,e){for(var n=t.length,r,i;n;)i=e()*n--|0,r=t[n],t[n]=t[i],t[i]=r;return t}function kpt(t){return m5(t,lcg())}function m5(t,e){for(var n=0,r=(t=lnt(Array.from(t),e)).length,i=[],a,o;n0&&n*n>r*r+i*i}function Rm(t,e){for(var n=0;n1e-6?(C+Math.sqrt(C*C-4*P*j))/(2*P):j/C);return{x:r+w+M*N,y:i+E+A*N,r:N}}function _5(t,e,n){var r=t.x-e.x,i,a,o=t.y-e.y,s,c,l=r*r+o*o;l?(a=e.r+n.r,a*=a,c=t.r+n.r,c*=c,a>c?(i=(l+c-a)/(2*l),s=Math.sqrt(Math.max(0,c/l-i*i)),n.x=t.x-i*r-s*o,n.y=t.y-i*o+s*r):(i=(l+a-c)/(2*l),s=Math.sqrt(Math.max(0,a/l-i*i)),n.x=e.x+i*r-s*o,n.y=e.y+i*o+s*r)):(n.x=e.x+n.r,n.y=e.y)}function O5(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function w5(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function qh(t){this._=t,this.next=null,this.previous=null}function S5(t,e){if(!(a=(t=cnt(t)).length))return 0;var n,r,i,a,o,s,c,l,u,f,d;if(n=t[0],n.x=0,n.y=0,!(a>1))return n.r;if(r=t[1],n.x=-r.r,r.x=n.r,r.y=0,!(a>2))return n.r+r.r;_5(r,n,i=t[2]),n=new qh(n),r=new qh(r),i=new qh(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(c=3;c({size:[t,e],padding:0,sort:(n,r)=>r.value-n.value}),ynt=(t,e,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,t]},y:{domain:[0,e]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:r=>r.height===0?"#ddd":"#fff",stroke:n.color?void 0:r=>r.height===0?"":"#000"}}),mnt={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.r*2},bnt={title:t=>t.data.name,items:[{field:"value"}]},xnt=(t,e,n)=>{const{value:r}=n,i=Dr(t)?Sg().path(e.path)(t):dc(t);return r?i.sum(a=>ba(r)(a)).sort(e.sort):i.count(),pnt().size(e.size).padding(e.padding)(i),i.descendants()},A5=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o={},style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=vnt(t,["data","encode","scale","style","layout","labels","tooltip"]),d=ynt(n,r,a),h=xnt(i,Nt({},gnt(n,r),c),Nt({},d.encode,a)),p=le(s,"label");return Nt({},d,Object.assign(Object.assign({data:h,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},mnt),p),...l]},f),{tooltip:ng(u,bnt),axis:!1}))};A5.props={};function _nt(t){return t.target.depth}function Ont(t){return t.depth}function wnt(t,e){return e-1-t.height}function Zh(t,e){return t.sourceLinks.length?t.depth:e-1}function Snt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Ai(t.sourceLinks,_nt)-1:0}function Kh(t){return function(){return t}}function T5(t,e){return Qh(t.source,e.source)||t.index-e.index}function P5(t,e){return Qh(t.target,e.target)||t.index-e.index}function Qh(t,e){return t.y0-e.y0}function Nm(t){return t.value}function Mnt(t){return t.index}function Ent(t){return t.nodes}function Ant(t){return t.links}function C5(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function k5({nodes:t}){for(const e of t){let n=e.y0,r=n;for(const i of e.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of e.targetLinks)i.y1=r+i.width/2,r+=i.width}}function Tnt(){let t=0,e=0,n=1,r=1,i=24,a=8,o,s=Mnt,c=Zh,l,u,f,d=Ent,h=Ant,p=6;function v(D){const F={nodes:d(D),links:h(D)};return g(F),y(F),m(F),b(F),w(F),k5(F),F}v.update=function(D){return k5(D),D},v.nodeId=function(D){return arguments.length?(s=typeof D=="function"?D:Kh(D),v):s},v.nodeAlign=function(D){return arguments.length?(c=typeof D=="function"?D:Kh(D),v):c},v.nodeDepth=function(D){return arguments.length?(l=D,v):l},v.nodeSort=function(D){return arguments.length?(u=D,v):u},v.nodeWidth=function(D){return arguments.length?(i=+D,v):i},v.nodePadding=function(D){return arguments.length?(a=o=+D,v):a},v.nodes=function(D){return arguments.length?(d=typeof D=="function"?D:Kh(D),v):d},v.links=function(D){return arguments.length?(h=typeof D=="function"?D:Kh(D),v):h},v.linkSort=function(D){return arguments.length?(f=D,v):f},v.size=function(D){return arguments.length?(t=e=0,n=+D[0],r=+D[1],v):[n-t,r-e]},v.extent=function(D){return arguments.length?(t=+D[0][0],n=+D[1][0],e=+D[0][1],r=+D[1][1],v):[[t,e],[n,r]]},v.iterations=function(D){return arguments.length?(p=+D,v):p};function g({nodes:D,links:F}){D.forEach((z,Y)=>{z.index=Y,z.sourceLinks=[],z.targetLinks=[]});const B=new Map(D.map(z=>[s(z),z]));if(F.forEach((z,Y)=>{z.index=Y;let{source:$,target:tt}=z;typeof $!="object"&&($=z.source=C5(B,$)),typeof tt!="object"&&(tt=z.target=C5(B,tt)),$.sourceLinks.push(z),tt.targetLinks.push(z)}),f!=null)for(const{sourceLinks:z,targetLinks:Y}of D)z.sort(f),Y.sort(f)}function y({nodes:D}){for(const F of D)F.value=F.fixedValue===void 0?Math.max(Di(F.sourceLinks,Nm),Di(F.targetLinks,Nm)):F.fixedValue}function m({nodes:D}){const F=D.length;let B=new Set(D),z=new Set,Y=0;for(;B.size;){if(B.forEach($=>{$.depth=Y;for(const{target:tt}of $.sourceLinks)z.add(tt)}),++Y>F)throw new Error("circular link");B=z,z=new Set}if(l){const $=Math.max(Sn(D,it=>it.depth)+1,0);let tt;for(let it=0;it{$.height=Y;for(const{source:tt}of $.targetLinks)z.add(tt)}),++Y>F)throw new Error("circular link");B=z,z=new Set}}function _({nodes:D}){const F=Math.max(Sn(D,Y=>Y.depth)+1,0),B=(n-t-i)/(F-1),z=new Array(F).fill(0).map(()=>[]);for(const Y of D){const $=Math.max(0,Math.min(F-1,Math.floor(c.call(null,Y,F))));Y.layer=$,Y.x0=t+$*B,Y.x1=Y.x0+i,z[$]?z[$].push(Y):z[$]=[Y]}if(u)for(const Y of z)Y.sort(u);return z}function O(D){const F=Ai(D,B=>(r-e-(B.length-1)*o)/Di(B,Nm));for(const B of D){let z=e;for(const Y of B){Y.y0=z,Y.y1=z+Y.value*F,z=Y.y1+o;for(const $ of Y.sourceLinks)$.width=$.value*F}z=(r-z+o)/(B.length+1);for(let Y=0;YB.length)-1)),O(F);for(let B=0;B0))continue;const Ft=(it/St-tt.y0)*F;tt.y0+=Ft,tt.y1+=Ft,j(tt)}u===void 0&&$.sort(Qh),$.length&&A($,B)}}function E(D,F,B){for(let z=D.length,Y=z-2;Y>=0;--Y){const $=D[Y];for(const tt of $){let it=0,St=0;for(const{target:Xt,value:Pt}of tt.sourceLinks){const Ct=Pt*(Xt.layer-tt.layer);it+=R(tt,Xt)*Ct,St+=Ct}if(!(St>0))continue;const Ft=(it/St-tt.y0)*F;tt.y0+=Ft,tt.y1+=Ft,j(tt)}u===void 0&&$.sort(Qh),$.length&&A($,B)}}function A(D,F){const B=D.length>>1,z=D[B];C(D,z.y0-o,B-1,F),P(D,z.y1+o,B+1,F),C(D,r,D.length-1,F),P(D,e,0,F)}function P(D,F,B,z){for(;B1e-6&&(Y.y0+=$,Y.y1+=$),F=Y.y1+o}}function C(D,F,B,z){for(;B>=0;--B){const Y=D[B],$=(Y.y1-F)*z;$>1e-6&&(Y.y0-=$,Y.y1-=$),F=Y.y0-o}}function j({sourceLinks:D,targetLinks:F}){if(f===void 0){for(const{source:{sourceLinks:B}}of F)B.sort(P5);for(const{target:{targetLinks:B}}of D)B.sort(T5)}}function N(D){if(f===void 0)for(const{sourceLinks:F,targetLinks:B}of D)F.sort(P5),B.sort(T5)}function k(D,F){let B=D.y0-(D.sourceLinks.length-1)*o/2;for(const{target:z,width:Y}of D.sourceLinks){if(z===F)break;B+=Y+o}for(const{source:z,width:Y}of F.targetLinks){if(z===D)break;B-=Y}return B}function R(D,F){let B=F.y0-(F.targetLinks.length-1)*o/2;for(const{source:z,width:Y}of F.targetLinks){if(z===D)break;B+=Y+o}for(const{target:z,width:Y}of D.sourceLinks){if(z===F)break;B-=Y}return B}return v}const Pnt={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},Cnt={left:Ont,right:wnt,center:Snt,justify:Zh};function knt(t){const e=typeof t;return e==="string"?Cnt[t]||Zh:e==="function"?t:Zh}const R5=t=>e=>{const{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:a,nodePadding:o,nodeDepth:s,nodes:c,links:l,linkSort:u,iterations:f}=Object.assign({},Pnt,t),d=Tnt().nodeSort(r).linkSort(u).links(l).nodes(c).nodeWidth(a).nodePadding(o).nodeDepth(s).nodeAlign(knt(i)).iterations(f).extent([[0,0],[1,1]]);typeof n=="function"&&d.nodeId(n);const h=d(e),{nodes:p,links:v}=h,g=p.map(m=>{const{x0:b,x1:_,y0:O,y1:w}=m;return Object.assign(Object.assign({},m),{x:[b,_,_,b],y:[O,O,w,w]})}),y=v.map(m=>{const{source:b,target:_}=m,O=b.x1,w=_.x0,M=m.width/2;return Object.assign(Object.assign({},m),{x:[O,O,w,w],y:[m.y0+M,m.y0-M,m.y1+M,m.y1-M]})});return{nodes:g,links:y}};R5.props={};var Rnt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.key,nodeWidth:.02,nodePadding:.02},Nnt={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},Int={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},jnt={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},L5=t=>{const{data:e,encode:n={},scale:r,style:i={},layout:a={},nodeLabels:o=[],linkLabels:s=[],animate:c={},tooltip:l={}}=t,{links:u,nodes:f}=Pg(e,n),d=le(n,"node"),h=le(n,"link"),{key:p=A=>A.key,color:v=p}=d,{links:g,nodes:y}=R5(Object.assign(Object.assign(Object.assign({},Lnt),{nodeId:ba(p)}),a))({links:u,nodes:f}),m=le(i,"label"),{text:b=p,spacing:_=5}=m,O=Rnt(m,["text","spacing"]),w=ba(p),M=va(l,"node",{title:w,items:[{field:"value"}]},!0),E=va(l,"link",{title:"",items:[A=>({name:"source",value:w(A.source)}),A=>({name:"target",value:w(A.target)})]});return[Nt({},Nnt,{data:y,encode:Object.assign(Object.assign({},d),{color:v}),scale:r,style:le(i,"node"),labels:[Object.assign(Object.assign(Object.assign({},jnt),{text:b,dx:A=>A.x[0]<.5?_:-_}),O),...o],tooltip:M,animate:ga(c,"node"),axis:!1}),Nt({},Int,{data:g,encode:h,labels:s,style:Object.assign({fill:h.color?void 0:"#aaa",strokeWidth:0},le(i,"link")),tooltip:E,animate:ga(c,"link")})]};L5.props={};function Dnt(t,e){return e.value-t.value}function Fnt(t,e){return e.frequency-t.frequency}function Bnt(t,e){return`${t.id}`.localeCompare(`${e.id}`)}function znt(t,e){return`${t.name}`.localeCompare(`${e.name}`)}const Gnt={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null};function Wnt(t){const{y:e,thickness:n,weight:r,marginRatio:i,id:a,source:o,target:s,sourceWeight:c,targetWeight:l,sortBy:u}=Object.assign(Object.assign({},Gnt),t);function f(g){const y=g.nodes.map(b=>Object.assign({},b)),m=g.edges.map(b=>Object.assign({},b));return d(y,m),h(y,m),p(y,m),v(y,m),{nodes:y,edges:m}}function d(g,y){y.forEach(_=>{_.source=o(_),_.target=s(_),_.sourceWeight=c(_),_.targetWeight=l(_)});const m=Zn(y,_=>_.source),b=Zn(y,_=>_.target);return g.forEach(_=>{_.id=a(_);const O=m.has(_.id)?m.get(_.id):[],w=b.has(_.id)?b.get(_.id):[];_.frequency=O.length+w.length,_.value=Di(O,M=>M.sourceWeight)+Di(w,M=>M.targetWeight)}),{nodes:g,edges:y}}function h(g,y){const m=typeof u=="function"?u:We[u];m&&g.sort(m)}function p(g,y){const m=g.length;if(!m)throw Vs("Invalid nodes: it's empty!");if(!r){const O=1/m;return g.forEach((w,M)=>{w.x=(M+.5)*O,w.y=e}),{nodes:g,edges:y}}const b=i/(2*m),_=g.reduce((O,w)=>O+=w.value,0);return g.reduce((O,w)=>{w.weight=w.value/_,w.width=w.weight*(1-i),w.height=n;const M=b+O,E=M+w.width,A=e-n/2,P=A+n;return w.x=[M,E,E,M],w.y=[A,A,P,P],O+w.width+2*b},0),{nodes:g,edges:y}}function v(g,y){const m=new Map(g.map(O=>[O.id,O]));if(!r)return y.forEach(O=>{const w=o(O),M=s(O),E=m.get(w),A=m.get(M);E&&A&&(O.x=[E.x,A.x],O.y=[E.y,A.y])}),{nodes:g,edges:y};y.forEach(O=>{O.x=[0,0,0,0],O.y=[e,e,e,e]});const b=Zn(y,O=>O.source),_=Zn(y,O=>O.target);g.forEach(O=>{const{edges:w,width:M,x:E,y:A,value:P,id:C}=O,j=b.get(C)||[],N=_.get(C)||[];let k=0;j.map(R=>{const D=R.sourceWeight/P*M;R.x[0]=E[0]+k,R.x[1]=E[0]+k+D,k+=D}),N.forEach(R=>{const D=R.targetWeight/P*M;R.x[3]=E[0]+k,R.x[2]=E[0]+k+D,k+=D})})}return f}const Im=t=>e=>Wnt(t)(e);Im.props={};var N5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);it.key,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null},Hnt={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},Ynt={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1,strokeWidth:1}},Vnt={position:"outside",fontSize:10},I5=(t,e)=>{const{data:n,encode:r={},scale:i,style:a={},layout:o={},nodeLabels:s=[],linkLabels:c=[],animate:l={},tooltip:u={}}=t,{nodes:f,links:d}=Pg(n,r),h=le(r,"node"),p=le(r,"link"),{key:v=R=>R.key,color:g=v}=h,{linkEncodeColor:y=R=>R.source}=p,{nodeWidthRatio:m=jm.thickness,nodePaddingRatio:b=jm.marginRatio}=o,_=N5(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:O,edges:w}=Im(Object.assign(Object.assign(Object.assign(Object.assign({},jm),{id:ba(v),thickness:m,marginRatio:b}),_),{weight:!0}))({nodes:f,edges:d}),M=le(a,"label"),{text:E=v}=M,A=N5(M,["text"]),P=va(u,"node",{title:"",items:[R=>({name:R.key,value:R.value})]},!0),C=va(u,"link",{title:"",items:[R=>({name:`${R.source} -> ${R.target}`,value:R.value})]}),{height:j,width:N}=e,k=Math.min(j,N);return[Nt({},Ynt,{data:w,encode:Object.assign(Object.assign({},p),{color:y}),labels:c,style:Object.assign({fill:y?void 0:"#aaa"},le(a,"link")),tooltip:C,animate:ga(l,"link")}),Nt({},Hnt,{data:O,encode:Object.assign(Object.assign({},h),{color:g}),scale:i,style:le(a,"node"),coordinate:{type:"polar",outerRadius:(k-20)/k,startAngle:-Math.PI*2,endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},Vnt),{text:E}),A),...s],tooltip:P,animate:ga(l,"node"),axis:!1})]};I5.props={};function Xnt(t,e,n,r,i){var a=t.children,o,s=a.length,c,l=new Array(s+1);for(l[0]=c=o=0;o=d-1){var m=a[f];m.x0=p,m.y0=v,m.x1=g,m.y1=y;return}for(var b=l[f],_=h/2+b,O=f+1,w=d-1;O>>1;l[M]<_?O=M+1:w=M}_-l[O-1]y-v){var P=h?(p*A+g*E)/h:g;u(f,O,E,p,v,P,y),u(O,d,A,P,v,g,y)}else{var C=h?(v*A+y*E)/h:y;u(f,O,E,p,v,g,C),u(O,d,A,p,C,g,y)}}}function Jh(t,e,n,r,i){for(var a=t.children,o,s=-1,c=a.length,l=t.value&&(i-n)/t.value;++sm&&(m=l),w=g*g*O,b=Math.max(m/w,w/y),b>_){g-=l;break}_=b}o.push(c={value:g,dice:h1?r:1)},n}(j5),Unt=function t(e){function n(r,i,a,o,s){if((c=r._squarify)&&c.ratio===e)for(var c,l,u,f,d=-1,h,p=c.length,v=r.value;++d1?r:1)},n}(j5);function qnt(){var t=F5,e=!1,n=1,r=1,i=[0],a=xs,o=xs,s=xs,c=xs,l=xs;function u(d){return d.x0=d.y0=0,d.x1=n,d.y1=r,d.eachBefore(f),i=[0],e&&d.eachBefore(RS),d}function f(d){var h=i[d.depth],p=d.x0+h,v=d.y0+h,g=d.x1-h,y=d.y1-h;ge.ignoreParentValue&&o.children?0:ba(r)(o)).sort(e.sort):a.count(),qnt().tile(i).size(e.size).round(e.round).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(a),a.descendants().map(o=>Object.assign(o,{x:[o.x0,o.x1],y:[o.y0,o.y1]})).filter(typeof e.layer=="function"?e.layer:o=>o.height===e.layer)}const Jnt=(t,e)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[t,e],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(n,r)=>r.value-n.value,layer:0}),trt=(t,e)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",color:n=>n.data.parent.name},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]}},style:{stroke:"#fff"}}),ert={fontSize:10,text:t=>t.data.name,position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0},nrt={title:t=>t.data.name,items:[{field:"value"}]},B5=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=Znt(t,["data","encode","scale","style","layout","labels","tooltip"]),d=Qnt(i,Nt({},Jnt(n,r),c),a),h=le(s,"label");return Nt({},trt(n,r),Object.assign(Object.assign({data:d,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},ert),h),...l]},f),{tooltip:ng(u,nrt),axis:!1}))};B5.props={};function rrt(){return{"data.arc":Im,"data.cluster":p5,"mark.forceGraph":d5,"mark.tree":g5,"mark.pack":A5,"mark.sankey":L5,"mark.chord":I5,"mark.treemap":B5}}var z5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie[n])}function art(t,e){return Sn(t,n=>e[n])}function G5(t,e){const n=Dm(t,e)*2.5-Fm(t,e)*1.5;return Ai(t,r=>e[r]>=n?e[r]:NaN)}function Dm(t,e){return yh(t,.25,n=>e[n])}function ort(t,e){return yh(t,.5,n=>e[n])}function Fm(t,e){return yh(t,.75,n=>e[n])}function W5(t,e){const n=Fm(t,e)*2.5-Dm(t,e)*1.5;return Sn(t,r=>e[r]<=n?e[r]:NaN)}function srt(){return(t,e)=>{const{encode:n}=e,{y:r,x:i}=n,{value:a}=r,{value:o}=i;return[Array.from(Zn(t,l=>o[+l]).values()).flatMap(l=>{const u=G5(l,a),f=W5(l,a);return l.filter(d=>a[d]f)}),e]}}const H5=t=>{const{data:e,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=t,s=z5(t,["data","encode","style","tooltip","transform","animate"]),{point:c=!0}=r,l=z5(r,["point"]),{y:u}=n,f={y:u,y1:u,y2:u,y3:u,y4:u},d={y1:Dm,y2:ort,y3:Fm},h=va(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),p=va(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!c)return Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:irt},d),{y4:art})],encode:Object.assign(Object.assign({},n),f),style:l,tooltip:h},s);const v=le(l,"box"),g=le(l,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:G5},d),{y4:W5})],encode:Object.assign(Object.assign({},n),f),style:v,tooltip:h,animate:ga(o,"box")},s),{type:"point",data:e,transform:[{type:srt}],encode:n,style:Object.assign({},g),tooltip:p,animate:ga(o,"point")}]};H5.props={};var tp=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{shape:n,radius:r}=t,i=tp(t,["shape","radius"]),a=le(i,"pointer"),o=le(i,"pin"),{shape:s}=a,c=tp(a,["shape"]),{shape:l}=o,u=tp(o,["shape"]),{coordinate:f,theme:d}=e;return(h,p)=>{const v=h.map(k=>f.invert(k)),[g,y,m]=dF(f,"polar"),b=f.clone(),{color:_}=p,O=ov({startAngle:g,endAngle:y,innerRadius:m,outerRadius:r});O.push(["cartesian"]),b.update({transformations:O});const w=v.map(k=>b.map(k)),[M,E]=TO(w),[A,P]=f.getCenter(),C=Object.assign(Object.assign({x1:M,y1:E,x2:A,y2:P,stroke:_},c),i),j=Object.assign(Object.assign({cx:A,cy:P,stroke:_},u),i),N=je(new Fr);return ka(s)||(typeof s=="function"?N.append(()=>s(w,p,b,d)):N.append("line").call(Ee,C).node()),ka(l)||(typeof l=="function"?N.append(()=>l(w,p,b,d)):N.append("circle").call(Ee,j).node()),N.node()}},Y5={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-11/10*Math.PI,endAngle:1/10*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},lrt={style:{shape:crt,lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},urt={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"}};function frt(t){if((0,xr.Z)(t)){const e=Math.max(0,Math.min(t,1));return{percent:e,target:e,total:1}}return t}function drt(t,e){const{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=frt(t),s=a||r,c=a?1:i,l=Object.assign({y:{domain:[0,c]}},e);return o.length?{targetData:[{x:n,y:s,color:"target"}],totalData:o.map((u,f)=>({x:n,y:f>=1?u-o[f-1]:u,color:f})),target:s,total:c,scale:l}:{targetData:[{x:n,y:s,color:"target"}],totalData:[{x:n,y:s,color:"target"},{x:n,y:c-s,color:"total"}],target:s,total:c,scale:l}}function hrt(t,{target:e,total:n}){const{content:r}=t;return r?r(e,n):e.toString()}const V5=t=>{const{data:e={},scale:n={},style:r={},animate:i={},transform:a=[]}=t,o=tp(t,["data","scale","style","animate","transform"]),{targetData:s,totalData:c,target:l,total:u,scale:f}=drt(e,n),d=le(r,"text"),h=$7(r,["pointer","pin"]);return[Nt({},Y5,Object.assign({type:"interval",transform:[{type:"stackY"}],data:c,scale:f,style:le(r,"arc"),animate:typeof i=="object"?le(i,"arc"):i},o)),Nt({},Y5,lrt,Object.assign({type:"point",data:s,scale:f,style:h,animate:typeof i=="object"?le(i,"indicator"):i},o)),Nt({},urt,{style:Object.assign({text:hrt(d,{target:l,total:u})},d),animate:typeof i=="object"?le(i,"text"):i})]};V5.props={};const Bm=Math.PI/180,Au=64,ep=2048;function prt(t){return t.text}function vrt(){return"serif"}function X5(){return"normal"}function grt(t){return t.value}function yrt(){return~~(Math.random()*2)*90}function mrt(){return 1}function brt(){}function xrt(t,e,n,r){if(e.sprite)return;const i=t.context,a=t.ratio;i.clearRect(0,0,(Au<<5)/a,ep/a);let o=0,s=0,c=0;const l=n.length;for(--r;++r>5<<5,h=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else d=d+31>>5<<5;if(h>c&&(c=h),o+d>=Au<<5&&(o=0,s+=c,c=0),s+h>=ep)break;i.translate((o+(d>>1))/a,(s+(h>>1))/a),e.rotate&&i.rotate(e.rotate*Bm),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=d,e.height=h,e.xoff=o,e.yoff=s,e.x1=d>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=d}const u=i.getImageData(0,0,(Au<<5)/a,ep/a).data,f=[];for(;--r>=0;){if(e=n[r],!e.hasText)continue;const d=e.width,h=d>>5;let p=e.y1-e.y0;for(let y=0;y>5),_=u[(s+y)*(Au<<5)+(o+m)<<2]?1<<31-m%32:0;f[b]|=_,v|=_}v?g=y:(e.y0++,p--,y--,s++)}e.y1=e.y0+g,e.sprite=f.slice(0,(e.y1-e.y0)*h)}}function _rt(t,e,n){n>>=5;const r=t.sprite,i=t.width>>5,a=t.x-(i<<4),o=a&127,s=32-o,c=t.y1-t.y0;let l=(t.y+t.y0)*n+(a>>5),u;for(let f=0;f>>o:0))&e[l+d])return!0;l+=n}return!1}function Ort(t,e){const n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function wrt(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>5)*t[1]),w=u.length,M=[],E=u.map(function(j,N,k){return j.text=e.call(this,j,N,k),j.font=n.call(this,j,N,k),j.style=h.call(this,j,N,k),j.weight=i.call(this,j,N,k),j.rotate=a.call(this,j,N,k),j.size=~~r.call(this,j,N,k),j.padding=o.call(this,j,N,k),j}).sort(function(j,N){return N.size-j.size});let A=-1,P=v.board?[{x:0,y:0},{x:m,y:b}]:void 0;f&&clearInterval(f),f=setInterval(C,0),C();function C(){const j=Date.now();for(;Date.now()-j>1,N.y=b*(c()+.5)>>1,xrt(_,N,E,A),N.hasText&&y(O,N,P)&&(l.call(null,"word",{cloud:v,word:N}),M.push(N),P?v.hasImage||Ort(P,N):P=[{x:N.x+N.x0,y:N.y+N.y0},{x:N.x+N.x1,y:N.y+N.y1}],N.x-=t[0]>>1,N.y-=t[1]>>1)}v._tags=M,v._bounds=P,A>=w&&(v.stop(),l.call(null,"end",{cloud:v,words:M,bounds:P}))}return v},v.stop=function(){return f&&(clearInterval(f),f=null),v};function g(m){m.width=m.height=1;const b=Math.sqrt(m.getContext("2d").getImageData(0,0,1,1).data.length>>2);m.width=(Au<<5)/b,m.height=ep/b;const _=m.getContext("2d");return _.fillStyle=_.strokeStyle="red",_.textAlign="center",{context:_,ratio:b}}function y(m,b,_){const O=b.x,w=b.y,M=Math.sqrt(t[0]*t[0]+t[1]*t[1]),E=s(t),A=c()<.5?1:-1;let P,C=-A,j,N;for(;(P=E(C+=A))&&(j=~~P[0],N=~~P[1],!(Math.min(Math.abs(j),Math.abs(N))>=M));)if(b.x=O+j,b.y=w+N,!(b.x+b.x0<0||b.y+b.y0<0||b.x+b.x1>t[0]||b.y+b.y1>t[1])&&(!_||!_rt(b,m,t[0]))&&(!_||wrt(b,_))){const k=b.sprite,R=b.width>>5,D=t[0]>>5,F=b.x-(R<<4),B=F&127,z=32-B,Y=b.y1-b.y0;let $,tt=(b.y+b.y0)*D+(F>>5);for(let it=0;it>>B:0);tt+=D}return delete b.sprite,!0}return!1}return v.createMask=m=>{const b=document.createElement("canvas"),[_,O]=t;if(!_||!O)return;const w=_>>5,M=U5((_>>5)*O);b.width=_,b.height=O;const E=b.getContext("2d");E.drawImage(m,0,0,m.width,m.height,0,0,_,O);const A=E.getImageData(0,0,_,O).data;for(let P=0;P>5),N=P*_+C<<2,R=A[N]>=250&&A[N+1]>=250&&A[N+2]>=250?1<<31-C%32:0;M[j]|=R}v.board=M,v.hasImage=!0},v.timeInterval=function(m){d=m==null?1/0:m},v.words=function(m){u=m},v.size=function(m=[]){t=[+m[0],+m[1]]},v.text=function(m){e=To(m)},v.font=function(m){n=To(m)},v.fontWeight=function(m){i=To(m)},v.rotate=function(m){a=To(m)},v.spiral=function(m){s=Ert[m]||m},v.fontSize=function(m){r=To(m)},v.padding=function(m){o=To(m)},v.random=function(m){c=To(m)},v.on=function(m){l=To(m)},v}var Trt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})};function Prt(t,e){return{set(n,r,i){if(e[n]===void 0)return this;const a=r?r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this},setAsync(n,r,i){return Trt(this,void 0,void 0,function*(){if(e[n]===void 0)return this;const a=r?yield r.call(null,e[n]):e[n];return i?i.call(null,a):typeof t[n]=="function"?t[n](a):t[n]=a,this})}}}var Crt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},krt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{if(t instanceof HTMLImageElement){e(t);return}if(typeof t=="string"){const r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=()=>e(r),r.onerror=()=>{console.error(`'image ${t} load failed !!!'`),n()};return}n()})}function Nrt(t,e){if(typeof t=="function")return t;if(Array.isArray(t)){const[n,r]=t;if(!e)return()=>(r+n)/2;const[i,a]=e;return a===i?()=>(r+n)/2:({value:o})=>(r-n)/(a-i)*(o-i)+n}return()=>t}const q5=t=>e=>Crt(void 0,void 0,void 0,function*(){const n=Object.assign({},Rrt,t),r=Art();yield Prt(r,n).set("fontSize",y=>{const m=e.map(b=>b.value);return Nrt(y,[Ai(m),Sn(m)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").setAsync("imageMask",Lrt,r.createMask),r.words([...e]);const i=r.start(),[a,o]=n.size,s=[{x:0,y:0},{x:a,y:o}],{_bounds:c=s,_tags:l,hasImage:u}=i,f=l.map(y=>{var{x:m,y:b}=y,_=krt(y,["x","y"]);return Object.assign(Object.assign({},_),{x:m+a/2,y:b+o/2})}),[{x:d,y:h},{x:p,y:v}]=c,g={text:"",value:0,opacity:0,fontSize:0};return f.push(Object.assign(Object.assign({},g),{x:u?0:d,y:u?0:h}),Object.assign(Object.assign({},g),{x:u?a:p,y:u?o:v})),f});q5.props={};var Irt=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(u){try{l(r.next(u))}catch(f){o(f)}}function c(u){try{l(r.throw(u))}catch(f){o(f)}}function l(u){u.done?a(u.value):i(u.value).then(s,c)}l((r=r.apply(t,e||[])).next())})},jrt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);iObject.assign(Object.assign({},i),{text:i[n],value:i[r]}))}const Frt=(t,e)=>({size:[t,e]}),Brt=(t,e)=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size"},scale:{x:{domain:[0,t],range:[0,1]},y:{domain:[0,e],range:[0,1]},fontSize:{type:"identity"},rotate:{type:"identity"}},style:{textAlign:"center"}}),Z5=(t,e)=>Irt(void 0,void 0,void 0,function*(){const{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:s={},layout:c={}}=t,l=jrt(t,["data","encode","scale","style","layout"]),u=Drt(i,a),f=yield q5(Object.assign(Object.assign({},Frt(n,r)),c))(u);return Nt({},Brt(n,r),Object.assign(Object.assign({data:f,encode:a,scale:o,style:s},l),{axis:!1}))});Z5.props={};const K5=5e3;function Q5(t,e,n){return t+(e-t)*n}function zrt(t,e,n,r){return e===0?[[t+1/2*n/Math.PI/2,r/2],[t+1/2*n/Math.PI,r],[t+n/4,r]]:e===1?[[t+1/2*n/Math.PI/2*(Math.PI-2),r],[t+1/2*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:e===2?[[t+1/2*n/Math.PI/2,-r/2],[t+1/2*n/Math.PI,-r],[t+n/4,-r]]:[[t+1/2*n/Math.PI/2*(Math.PI-2),-r],[t+1/2*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function Grt(t,e,n,r,i,a,o){const s=Math.ceil(2*t/n*4)*4,c=[];let l=r;for(;l<-Math.PI*2;)l+=Math.PI*2;for(;l>0;)l-=Math.PI*2;l=l/Math.PI/2*n;const u=a-t+l-t*2;c.push(["M",u,e]);let f=0;for(let d=0;dJ5[t]||J5.circle,e3=(t,e)=>{if(!e)return;const{coordinate:n}=e,{liquidOptions:r,styleOptions:i}=t,{liquidShape:a,percent:o}=r,{background:s,outline:c={},wave:l={}}=i,u=t3(i,["background","outline","wave"]),{border:f=2,distance:d=0}=c,h=t3(c,["border","distance"]),{length:p=192,count:v=3}=l;return(g,y,m)=>{const{document:b}=e.canvas,{color:_,fillOpacity:O}=m,w=Object.assign(Object.assign({fill:_},m),u),M=b.createElement("g",{}),[E,A]=n.getCenter(),P=n.getSize(),C=Math.min(...P)/2,N=(gi(a)?a:Urt(a))(E,A,C,...P);if(Object.keys(s).length){const D=b.createElement("path",{style:Object.assign({path:N,fill:"#fff"},s)});M.appendChild(D)}if(o>0){const D=b.createElement("path",{style:{path:N}});M.appendChild(D),M.style.clipPath=D,Wrt(E,A,1-o,v,w,M,D.getBBox().y,C*2,p,!0,b)}const k=b.createElement("path",{style:{path:N,fill:"transparent",lineWidth:f+2*d,stroke:"#fff"}}),R=b.createElement("path",{style:Object.assign(Object.assign(Object.assign({path:N,stroke:_,strokeOpacity:O,lineWidth:f},w),h),{fill:"transparent"})});return M.appendChild(k),M.appendChild(R),M}};e3.props={};var qrt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{data:e={},style:n={},animate:r}=t,i=qrt(t,["data","style","animate"]),a=Math.max(0,(0,xr.Z)(e)?e:e==null?void 0:e.percent),o=[{percent:a,type:"liquid"}],s=le(n,"text"),c=le(n,"outline"),l=le(n,"wave"),u=le(n,"background");return[Nt({},Zrt,Object.assign({type:"interval",data:o,style:{liquidOptions:{percent:a,liquidShape:n==null?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:c,wave:l,background:u})},animate:r},i)),Nt({},Krt,{style:Object.assign({text:`${Xf(a*100)} %`},s),animate:r})]};n3.props={};var Ya=yt(12886);const r3=1e-10;function i3(t,e){const n=Jrt(t),r=n.filter(function(c){return Qrt(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=tit(r);for(o=0;o-1){const p=t[u.parentIndex[h]],v=Math.atan2(u.x-p.x,u.y-p.y),g=Math.atan2(l.x-p.x,l.y-p.y);let y=g-v;y<0&&(y+=2*Math.PI);const m=g-y/2;let b=Tu(f,{x:p.x+p.radius*Math.sin(m),y:p.y+p.radius*Math.cos(m)});b>p.radius*2&&(b=p.radius*2),(d===null||d.width>b)&&(d={circle:p,width:b,p1:u,p2:l})}d!==null&&(s.push(d),i+=zm(d.circle.radius,d.width),l=u)}}else{let c=t[0];for(o=1;oMath.abs(c.radius-t[o].radius)){l=!0;break}l?i=a=0:(i=c.radius*c.radius*Math.PI,s.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-r3,y:c.y+c.radius},width:c.radius*2}))}return a/=2,e&&(e.area=i+a,e.arcArea=i,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=n),i+a}function Qrt(t,e){for(let n=0;ne[n].radius+r3)return!1;return!0}function Jrt(t){const e=[];for(let n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);const r=t-(n*n-e*e+t*t)/(2*n),i=e-(n*n-t*t+e*e)/(2*n);return zm(t,r)+zm(e,i)}function o3(t,e){const n=Tu(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];const a=(r*r-i*i+n*n)/(2*n),o=Math.sqrt(r*r-a*a),s=t.x+a*(e.x-t.x)/n,c=t.y+a*(e.y-t.y)/n,l=-(e.y-t.y)*(o/n),u=-(e.x-t.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function tit(t){const e={x:0,y:0};for(let n=0;ns>c?1:-1),r=0;r=Math.min(e[o].size,e[s].size)?f=1:a.size<=1e-10&&(f=-1),i[o][s]=i[s][o]=f}),{distances:r,constraints:i}}function iit(t,e,n,r){let i=0,a;for(a=0;a0&&p<=f||d<0&&p>=f||(i+=2*v*v,e[2*a]+=4*v*(o-l),e[2*a+1]+=4*v*(s-u),e[2*c]+=4*v*(l-o),e[2*c+1]+=4*v*(u-s))}}return i}function ait(t,e){let n=sit(t,e);const r=e.lossFunction||Wm;if(t.length>=8){const i=oit(t,e),a=r(i,t),o=r(n,t);a+1e-8=Math.min(r[p].size,r[v].size)&&(h=0),i[p].push({set:v,size:d.size,weight:h}),i[v].push({set:p,size:d.size,weight:h})}const o=[];for(a in i)if(i.hasOwnProperty(a)){let f=0;for(let d=0;d0){const i=t[0].x,a=t[0].y;for(r=0;r1){const i=Math.atan2(t[1].x,t[1].y)-e;let a,o;const s=Math.cos(i),c=Math.sin(i);for(r=0;r2){let i=Math.atan2(t[2].x,t[2].y)-e;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const a=t[1].y/(1e-10+t[1].x);for(r=0;ro;r.push(` +A`,o,o,0,s?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}}const c3=t=>{const{sets:e="sets",size:n="size",as:r=["key","path"],padding:i=0}=t,[a,o]=r;return s=>{const c=s.map(f=>Object.assign(Object.assign({},f),{sets:f[e],size:f[n],[a]:f.sets.join("&")}));c.sort((f,d)=>f.sets.length-d.sets.length);const l=eit(c);let u;return c.map(f=>{const d=f[e],h=({width:p,height:v})=>{u=u||uit(l,p,v,i);const g=d.map(m=>u[m]);let y=dit(g);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};c3.props={};function hit(){return{"data.venn":c3,"mark.boxplot":H5,"mark.gauge":V5,"mark.wordCloud":Z5,"mark.liquid":n3}}function pit(){return Object.assign(Object.assign(Object.assign(Object.assign({},$tt()),rrt()),hit()),HJ())}var np=function(){return np=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0){var w=_.x,M=_.y,E=_.height,A=_.width,P=_.data,C=Mr(P,l),j=v/2;if(e){var N=w+A/2,k=M;d.push({points:[[N+j,k-f+b],[N+j,k-y-b],[N,k-b],[N-j,k-y-b],[N-j,k-f+b]],center:[N,k-f/2-b],width:f,value:[u,C]})}else{var N=w,k=M+E/2;d.push({points:[[w-f+b,k-j],[w-y-b,k-j],[N-b,k],[w-y-b,k+j],[w-f+b,k+j]],center:[N-f/2-b,k],width:f,value:[u,C]})}u=C}}),d},t.prototype.init=function(){var e=this.chart.getContext().canvas;this.canvas=e,this.setDirection(),this.drawConversionTag()},t.prototype.setDirection=function(){var e=this.chart.getCoordinate(),n=Mr(e,"options.transformations"),r="horizontal";n.forEach(function(i){i.includes("transpose")&&(r="vertical")}),this.direction=r},t.prototype.drawConversionTag=function(){var e=this,n=this.getConversionTagLayout(),r=this.options,i=r.style,a=r.text,o=a.style,s=a.formatter;n.forEach(function(c){var l=c.points,u=c.center,f=c.value,d=f[0],h=f[1],p=u[0],v=u[1],g=new il({style:rp({points:l,fill:"#eee"},i)}),y=new Zi({style:rp({x:p,y:v,text:zt(s)?s(d,h):(h/d*100).toFixed(2)+"%",fontSize:12,textBaseline:"middle",textAlign:"center",fill:"#000"},o)});e.canvas.appendChild(g),e.canvas.appendChild(y),e.container.push(g,y)})},t.prototype.update=function(e){},t.prototype.destroy=function(){this.container.forEach(function(e){e.destroy()})},t}(),yit=1,mit=2;function bit(t,e,n,r){var i=n.length,a=i,o=!r;if(t==null)return!a;for(t=Object(t);i--;){var s=n[i];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i-1}var Qit=Kit;function Jit(t,e,n){for(var r=-1,i=t==null?0:t.length;++r=aat){var l=e?null:iat(t);if(l)return _p(l);o=!1,i=y1,c=new g1}else c=e?[]:s;t:for(;++r0&&n(s)?e>1?x3(s,e-1,n,r,i):wp(i,s):r||(i[i.length]=s)}return i}var Vat=x3;function Xat(t){var e=t==null?0:t.length;return e?Vat(t,1):[]}var $at=Xat;function Uat(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var qat=Uat,_3=Math.max;function Zat(t,e,n){return e=_3(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=_3(r.length-e,0),o=Array(a);++i0){if(++e>=eot)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var aot=iot,oot=aot(tot),w3=oot;function sot(t){return w3(O3(t,void 0,$at),t+"")}var Jm=sot,cot=Jm(function(t,e){return t==null?{}:Wat(t,e)}),ip=cot;function lot(t,e,n){return t==null?t:m3(t,e,n)}var Ge=lot,Ru=function(){return Ru=Object.assign||function(t){for(var e,n=1,r=arguments.length;ni?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(i);++r1),a}),Cs(t,q1(t),n),r&&(n=ib(n,Aot|Tot|Pot,Eot));for(var i=e.length;i--;)mot(n,e[i]);return n}),e1=Cot,kot=function(t){return Object.keys(t).forEach(function(e){qm.includes(e)&&delete t[e]}),t},Rot=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ic=function(){return Ic=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1&&Ge(r,"children",[{type:"interval"}]);var i=r.scale,a=r.markBackground,o=r.data,s=r.children,c=Mr(i,"y.domain",[]);if(a&&c.length&&wt(o)){var l="domainMax",u=o.map(function(f){var d;return Nu(Nu({},f),(d={},d[l]=c[c.length-1],d))});s.unshift(Nu({type:"interval",data:u,yField:l,tooltip:!1,legend:!1,style:{fill:"#eee"},label:!1},a))}return n};return bn(e,hr,Mn)(t)}var lst=function(){var t=function(e,n){return function(r){var i=e.fill,a=i===void 0?"#2888FF":i,o=e.stroke,s=e.fillOpacity,c=s===void 0?1:s,l=e.strokeOpacity,u=l===void 0?.2:l,f=e.pitch,d=f===void 0?8:f,h=r[0],p=r[1],v=r[2],g=r[3],y=(p[1]-h[1])/2,m=n.document,b=m.createElement("g",{}),_=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],[v[0]-d,h[1]+y],g],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u,inset:30}}),O=m.createElement("polygon",{style:{points:[[h[0]-d,h[1]+y],p,v,[v[0]-d,h[1]+y]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u}}),w=m.createElement("polygon",{style:{points:[h,[h[0]-d,h[1]+y],p,[h[0]+d,h[1]+y]],fill:a,fillOpacity:c-.2}});return b.appendChild(_),b.appendChild(O),b.appendChild(w),b}};l_("shape.interval.bar25D",t)},ust=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();lst();var fst=function(t){ust(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Bar",n}return e.getDefaultOptions=function(){return{type:"view",coordinate:{transform:[{type:"transpose"}]},children:[{type:"interval"}],scale:{y:{nice:!0}},axis:{y:{title:!1},x:{title:!1}},interaction:{tooltip:{shared:!0},elementHighlightByColor:{background:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return N3},e}(vn),dst=function(){var t=function(e,n){return function(r){var i=e.fill,a=i===void 0?"#2888FF":i,o=e.stroke,s=e.fillOpacity,c=s===void 0?1:s,l=e.strokeOpacity,u=l===void 0?.2:l,f=e.pitch,d=f===void 0?8:f,h=r[1][0]-r[0][0],p=h/2+r[0][0],v=n.document,g=v.createElement("g",{}),y=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]+d],[p,r[3][1]+d],[r[3][0],r[3][1]]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u,inset:30}}),m=v.createElement("polygon",{style:{points:[[p,r[1][1]+d],[r[1][0],r[1][1]],[r[2][0],r[2][1]],[p,r[2][1]+d]],fill:a,fillOpacity:c,stroke:o,strokeOpacity:u}}),b=v.createElement("polygon",{style:{points:[[r[0][0],r[0][1]],[p,r[1][1]-d],[r[1][0],r[1][1]],[p,r[1][1]+d]],fill:a,fillOpacity:c-.2}});return g.appendChild(m),g.appendChild(y),g.appendChild(b),g}};l_("shape.interval.column25D",t)},hst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();dst();var pst=function(t){hst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0},elementHighlightByColor:{background:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return N3},e}(vn);function vst(t){var e=function(n){var r=n.options,i=r.annotations,a=i===void 0?[]:i,o=r.children,s=o===void 0?[]:o,c=!1;return s.forEach(function(l,u){var f="child".concat(u,"Scale");Ge(l,"scale.y.key",f);var d=l.annotations,h=d===void 0?[]:d;h.length>0&&(Ge(l,"scale.y.independent",!1),h.forEach(function(p){Ge(p,"scale.y.key",f)})),!c&&a.length>0&&Mr(l,"scale.y.independent")===void 0&&(c=!0,Ge(l,"scale.y.independent",!1),a.forEach(function(p){Ge(p,"scale.y.key",f)}))}),n};return bn(e,hr,Mn)(t)}var gst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),I3=function(t){gst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="DualAxes",n}return e.getDefaultOptions=function(){return{type:"view",axis:{y:{title:!1,tick:!1},x:{title:!1}},scale:{y:{independent:!0,nice:!0}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return vst},e}(vn);function yst(t){var e=function(a){var o=a.options,s=o.xField,c=o.colorField;return c||Ge(o,"colorField",s),a},n=function(a){var o=a.options,s=o.compareField,c=o.transform,l=o.isTransposed,u=l===void 0?!0:l,f=o.coordinate;return c||(s?Ge(o,"transform",[]):Ge(o,"transform",[{type:"symmetryY"}])),!f&&u&&Ge(o,"coordinate",{transform:[{type:"transpose"}]}),a},r=function(a){var o=a.options,s=o.compareField,c=o.seriesField,l=o.data,u=o.children,f=o.yField,d=o.isTransposed,h=d===void 0?!0:d;if(s||c){var p=Object.values(v3(l,function(v){return v[s||c]}));u[0].data=p[0],u.push({type:"interval",data:p[1],yField:function(v){return-v[f]}}),delete o.compareField,delete o.data}return c&&(Ge(o,"type","spaceFlex"),Ge(o,"ratio",[1,1]),Ge(o,"direction",h?"row":"col"),delete o.seriesField),a},i=function(a){var o=a.options,s=o.tooltip,c=o.xField,l=o.yField;return s||Ge(o,"tooltip",{title:!1,items:[function(u){return{name:u[c],value:u[l]}}]}),a};return bn(e,n,r,i,hr,Mn)(t)}var mst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),bst=function(t){mst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return{type:"view",scale:{x:{padding:0}},animate:{enter:{type:"fadeIn"}},axis:!1,shapeField:"funnel",label:{position:"inside",transform:[{type:"contrastReverse"}]},children:[{type:"interval"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return yst},e}(vn);function xst(t){return bn(hr,Mn)(t)}var _st=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ost=function(t){_st(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="line",n}return e.getDefaultOptions=function(){return{type:"view",scale:{y:{nice:!0}},interaction:{tooltip:{shared:!0}},axis:{y:{title:!1},x:{title:!1}},children:[{type:"line"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return xst},e}(vn);function wst(t){return bn(ap,Mn)(t)}var Sst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mst=function(t){Sst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="pie",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"interval"}],coordinate:{type:"theta"},transform:[{type:"stackY",reverse:!0}],animate:{enter:{type:"waveIn"}}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return wst},e}(vn);function Est(t){return bn(hr,Mn)(t)}var Ast=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tst=function(t){Ast(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="scatter",n}return e.getDefaultOptions=function(){return{axis:{y:{title:!1},x:{title:!1}},legend:{size:!1},children:[{type:"point"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Est},e}(vn);function Pst(t){var e=function(n){return Ge(n,"options.coordinate",{type:Mr(n,"options.coordinateType","polar")}),n};return bn(e,ap,Mn)(t)}var Cst=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),kst=function(t){Cst(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radar",n}return e.getDefaultOptions=function(){return{axis:{x:{grid:!0,line:!0},y:{zIndex:1,title:!1,line:!0,nice:!0}},meta:{x:{padding:.5,align:0}},interaction:{tooltip:{style:{crosshairsLineDash:[4,4]}}},children:[{type:"line"}],coordinateType:"polar"}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Pst},e}(vn);function Rst(t,e){var n=-1,r=Do(t)?Array(t.length):[];return p3(t,function(i,a,o){r[++n]=e(i,a,o)}),r}var Lst=Rst;function Nst(t,e){var n=wt(t)?Ku:Lst;return n(t,Vm(e,3))}var jc=Nst,Va=function(){return Va=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(d.x1=f[s],d.x2=d[s],d.y1=f[Dc]),d},[]),u.shift(),c.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:u1({stroke:"#697474"},l),label:!1,tooltip:!1}),r};return bn(e,n,hr,Mn)(t)}var lct=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),uct=function(t){lct(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="waterfall",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{field:l1,valueFormatter:"~s",name:"value"},axis:{y:{title:null,labelFormatter:"~s"},x:{title:null}},children:[{type:"interval",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return cct},e}(vn),fct="[object Number]";function dct(t){return typeof t=="number"||wi(t)&&rt(t)==fct}var Fc=dct;function hct(t,e){return w3(O3(t,e,Ym),t+"")}var pct=hct;function vct(t,e,n){if(!mt(n))return!1;var r=typeof e;return(r=="number"?Do(n)&&Vu(e,n.length):r=="string"&&e in n)?Re(n[e],t):!1}var gct=vct;function yct(t){return pct(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,o&&gct(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r-1:!!i&&d3(t,e,n)>-1}var mlt=ylt,na=function(){return na=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=L.length?void 0:L)&&L[V++],done:!L}}};throw new TypeError(I?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rt(L,I){var G=typeof Symbol=="function"&&L[Symbol.iterator];if(!G)return L;var V,nt,at=G.call(L),U=[];try{for(;(I===void 0||0nt=>G(V(nt)),L)}function Be(L,I){return I-L?G=>(G-L)/(I-L):G=>.5}const cn=Math.sqrt(50),_e=Math.sqrt(10),Me=Math.sqrt(2);function gn(L,I,G){return I=(I-L)/Math.max(0,G),L=Math.floor(Math.log(I)/Math.LN10),G=I/wr(10,L),0<=L?(G>=cn?10:G>=_e?5:G>=Me?2:1)*wr(10,L):-wr(10,-L)/(G>=cn?10:G>=_e?5:G>=Me?2:1)}const Dn=(L,I,G=5)=>{L=[L,I];let V=0,nt=L.length-1,at=L[V],U=L[nt],Z;return U{G.prototype.rescale=function(){this.initRange(),this.nice();var[V]=this.chooseTransforms();this.composeOutput(V,this.chooseClamp(V))},G.prototype.initRange=function(){var V=this.options.interpolator;this.options.range=L(V)},G.prototype.composeOutput=function(V,nt){var at,{domain:Z,interpolator:U,round:ft}=this.getOptions(),Z=I(Z.map(V)),ft=ft?(at=U,pt=>(pt=at(pt),dt(pt)?Math.round(pt):pt)):U;this.output=$e(ft,Z,nt,V)},G.prototype.invert=void 0}}var yn,Ae={exports:{}},Je={exports:{}},vt=function(L){return!(!L||typeof L=="string")&&(L instanceof Array||Array.isArray(L)||0<=L.length&&(L.splice instanceof Function||Object.getOwnPropertyDescriptor(L,L.length-1)&&L.constructor.name!=="String"))},Yt=Array.prototype.concat,et=Array.prototype.slice,lt=Je.exports=function(L){for(var I=[],G=0,V=L.length;GG=>L*(1-G)+I*G,xt=(L,I)=>{if(typeof L=="number"&&typeof I=="number")return st(L,I);if(typeof L!="string"||typeof I!="string")return()=>L;{var G=L,V=I;const nt=Q(G),at=Q(V);return nt===null||at===null?nt?()=>G:()=>V:U=>{var Z=new Array(4);for(let de=0;de<4;de+=1){var ft=nt[de],pt=at[de];Z[de]=ft*(1-U)+pt*U}var[Qt,ee,me,Jt]=Z;return`rgba(${Math.round(Qt)}, ${Math.round(ee)}, ${Math.round(me)}, ${Jt})`}}},H=(L,I)=>{const G=st(L,I);return V=>Math.round(G(V))};function K({map:L,initKey:I},G){return I=I(G),L.has(I)?L.get(I):G}function ut(L){return typeof L=="object"?L.valueOf():L}class x extends Map{constructor(I){if(super(),this.map=new Map,this.initKey=ut,I!==null)for(var[G,V]of I)this.set(G,V)}get(I){return super.get(K({map:this.map,initKey:this.initKey},I))}has(I){return super.has(K({map:this.map,initKey:this.initKey},I))}set(I,G){return super.set(([{map:I,initKey:V},nt]=[{map:this.map,initKey:this.initKey},I],V=V(nt),I.has(V)?I.get(V):(I.set(V,nt),nt)),G);var V,nt}delete(I){return super.delete(([{map:I,initKey:G},V]=[{map:this.map,initKey:this.initKey},I],G=G(V),I.has(G)&&(V=I.get(G),I.delete(G)),V));var G,V}}class T{constructor(I){this.options=ue({},this.getDefaultOptions()),this.update(I)}getOptions(){return this.options}update(I={}){this.options=ue({},this.options,I),this.rescale(I)}rescale(I){}}const W=Symbol("defaultUnknown");function q(L,I,G){for(let V=0;V""+I:typeof L=="object"?I=>JSON.stringify(I):I=>I}class gt extends T{getDefaultOptions(){return{domain:[],range:[],unknown:W}}constructor(I){super(I)}map(I){return this.domainIndexMap.size===0&&q(this.domainIndexMap,this.getDomain(),this.domainKey),J({value:this.domainKey(I),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(I){return this.rangeIndexMap.size===0&&q(this.rangeIndexMap,this.getRange(),this.rangeKey),J({value:this.rangeKey(I),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(I){var[G]=this.options.domain,[V]=this.options.range;this.domainKey=rt(G),this.rangeKey=rt(V),this.rangeIndexMap?(I&&!I.range||this.rangeIndexMap.clear(),I&&!I.domain&&!I.compare||(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new gt(this.options)}getRange(){return this.options.range}getDomain(){var I,G;return this.sortedDomain||({domain:I,compare:G}=this.options,this.sortedDomain=G?[...I].sort(G):I),this.sortedDomain}}function mt(Ht){const{domain:I,range:G,paddingOuter:V,paddingInner:nt,flex:at,round:U,align:Z}=Ht;var ft=I.length,Jt=0<(Jt=(Ht=ft)-(pt=at).length)?[...pt,...new Array(Jt).fill(1)]:Jt<0?pt.slice(0,Ht):pt,[Ht,pt]=G,pt=pt-Ht,he=pt/(2/ft*V+1-1/ft*nt);const Qt=he*nt/ft;he-=ft*Qt;const ee=function(ve){const Te=Math.min(...ve);return ve.map(tn=>tn/Te)}(Jt),me=he/ee.reduce((ve,Te)=>ve+Te);var Jt=new x(I.map((ve,Te)=>(Te=ee[Te]*me,[ve,U?Math.floor(Te):Te]))),de=new x(I.map((ve,Te)=>(Te=ee[Te]*me+Qt,[ve,U?Math.floor(Te):Te]))),he=Array.from(de.values()).reduce((ve,Te)=>ve+Te),Ht=Ht+(pt-(he-he/ft*nt))*Z;let Pe=U?Math.round(Ht):Ht;var xe=new Array(ft);for(let ve=0;vehe+Pe*Jt),{valueStep:Jt,valueBandWidth:de,adjustedRange:pt}}({align:V,range:nt,round:at,flex:G,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:I});this.valueStep=at,this.valueBandWidth=nt,this.adjustedRange=V}}const Mt=(L,I,G)=>{let V,nt,at=L,U=I;if(at===U&&0{var[V,nt]=V,[at,U]=at;let Z,ft;return $e(ft=V{const V=Math.min(L.length,I.length)-1,nt=new Array(V),at=new Array(V);var U=L[0]>L[V],Z=U?[...L].reverse():L,ft=U?[...I].reverse():I;for(let pt=0;pt{var Qt=function(me,Jt,de,he,Ht){let Pe=de||0,xe=he||me.length;for(var Ce=Ht||(Te=>Te);PeJt?xe=ve:Pe=ve+1}return Pe}(L,pt,1,V)-1,ee=nt[Qt];return $e(at[Qt],ee)(pt)}},Vt=(L,I,G,V)=>(2Math.min(Math.max(at,Z),U)}return ie}composeOutput(I,G){var{domain:U,range:V,round:nt,interpolate:at}=this.options,U=Vt(U.map(I),V,at,nt);this.output=$e(U,G,I)}composeInput(I,G,V){var{domain:nt,range:at}=this.options,at=Vt(at,nt.map(I),st);this.input=$e(G,V,at)}}class Kt extends zt{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:xt,tickMethod:Mt,tickCount:5}}chooseTransforms(){return[ie,ie]}clone(){return new Kt(this.options)}}class fe extends At{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:W,paddingInner:1,paddingOuter:0}}constructor(I){super(I)}getPaddingInner(){return 1}clone(){return new fe(this.options)}update(I){super.update(I)}getPaddingOuter(){return this.options.padding}}function wt(L,I){for(var G=[],V=0,nt=L.length;V{var[I,G]=I;return $e(st(0,1),Be(I,G))})],Le);let Vn=Ie=class extends Kt{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:ie,tickMethod:Mt,tickCount:5}}constructor(L){super(L)}clone(){return new Ie(this.options)}};Vn=Ie=function(L,I,G,V){var nt,at=arguments.length,U=at<3?I:V===null?V=Object.getOwnPropertyDescriptor(I,G):V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(L,I,G,V);else for(var Z=L.length-1;0<=Z;Z--)(nt=L[Z])&&(U=(at<3?nt(U):3{const[I,G,V]=L,nt=$e(st(0,.5),Be(I,G)),at=$e(st(.5,1),Be(G,V));return U=>(I>V?Ube?be:kt};Ve.Z=yt},63385:function(Ye,Ve){"use strict";var yt=function(kt){return kt==null};Ve.Z=yt},72909:function(Ye,Ve,yt){"use strict";var kt=yt(33317),Rt=function(be){return(0,kt.Z)(be,"Number")};Ve.Z=Rt},33317:function(Ye,Ve){"use strict";var yt={}.toString,kt=function(Rt,be){return yt.call(Rt)==="[object "+be+"]"};Ve.Z=kt},43241:function(Ye,Ve,yt){"use strict";var kt=yt(49425);Ve.Z=kt.Z},61728:function(Ye,Ve,yt){"use strict";var kt=yt(27634);Ve.Z=kt.Z},74553:function(Ye){"use strict";Ye.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},39872:function(Ye,Ve,yt){var kt=yt(74553),Rt=yt(55607),be=Object.hasOwnProperty,We=Object.create(null);for(var te in kt)be.call(kt,te)&&(We[kt[te]]=te);var ge=Ye.exports={to:{},get:{}};ge.get=function(dt){var pe=dt.substring(0,3).toLowerCase(),Zt,ue;switch(pe){case"hsl":Zt=ge.get.hsl(dt),ue="hsl";break;case"hwb":Zt=ge.get.hwb(dt),ue="hwb";break;default:Zt=ge.get.rgb(dt),ue="rgb";break}return Zt?{model:ue,value:Zt}:null},ge.get.rgb=function(dt){if(!dt)return null;var pe=/^#([a-f0-9]{3,4})$/i,Zt=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,ue=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,ie=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,jt=/^(\w+)$/,Lt=[0,0,0,1],Tt,Dt,Se;if(Tt=dt.match(Zt)){for(Se=Tt[2],Tt=Tt[1],Dt=0;Dt<3;Dt++){var ke=Dt*2;Lt[Dt]=parseInt(Tt.slice(ke,ke+2),16)}Se&&(Lt[3]=parseInt(Se,16)/255)}else if(Tt=dt.match(pe)){for(Tt=Tt[1],Se=Tt[3],Dt=0;Dt<3;Dt++)Lt[Dt]=parseInt(Tt[Dt]+Tt[Dt],16);Se&&(Lt[3]=parseInt(Se+Se,16)/255)}else if(Tt=dt.match(ue)){for(Dt=0;Dt<3;Dt++)Lt[Dt]=parseInt(Tt[Dt+1],0);Tt[4]&&(Tt[5]?Lt[3]=parseFloat(Tt[4])*.01:Lt[3]=parseFloat(Tt[4]))}else if(Tt=dt.match(ie)){for(Dt=0;Dt<3;Dt++)Lt[Dt]=Math.round(parseFloat(Tt[Dt+1])*2.55);Tt[4]&&(Tt[5]?Lt[3]=parseFloat(Tt[4])*.01:Lt[3]=parseFloat(Tt[4]))}else return(Tt=dt.match(jt))?Tt[1]==="transparent"?[0,0,0,0]:be.call(kt,Tt[1])?(Lt=kt[Tt[1]],Lt[3]=1,Lt):null:null;for(Dt=0;Dt<3;Dt++)Lt[Dt]=re(Lt[Dt],0,255);return Lt[3]=re(Lt[3],0,1),Lt},ge.get.hsl=function(dt){if(!dt)return null;var pe=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,Zt=dt.match(pe);if(Zt){var ue=parseFloat(Zt[4]),ie=(parseFloat(Zt[1])%360+360)%360,jt=re(parseFloat(Zt[2]),0,100),Lt=re(parseFloat(Zt[3]),0,100),Tt=re(isNaN(ue)?1:ue,0,1);return[ie,jt,Lt,Tt]}return null},ge.get.hwb=function(dt){if(!dt)return null;var pe=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,Zt=dt.match(pe);if(Zt){var ue=parseFloat(Zt[4]),ie=(parseFloat(Zt[1])%360+360)%360,jt=re(parseFloat(Zt[2]),0,100),Lt=re(parseFloat(Zt[3]),0,100),Tt=re(isNaN(ue)?1:ue,0,1);return[ie,jt,Lt,Tt]}return null},ge.to.hex=function(){var dt=Rt(arguments);return"#"+Gt(dt[0])+Gt(dt[1])+Gt(dt[2])+(dt[3]<1?Gt(Math.round(dt[3]*255)):"")},ge.to.rgb=function(){var dt=Rt(arguments);return dt.length<4||dt[3]===1?"rgb("+Math.round(dt[0])+", "+Math.round(dt[1])+", "+Math.round(dt[2])+")":"rgba("+Math.round(dt[0])+", "+Math.round(dt[1])+", "+Math.round(dt[2])+", "+dt[3]+")"},ge.to.rgb.percent=function(){var dt=Rt(arguments),pe=Math.round(dt[0]/255*100),Zt=Math.round(dt[1]/255*100),ue=Math.round(dt[2]/255*100);return dt.length<4||dt[3]===1?"rgb("+pe+"%, "+Zt+"%, "+ue+"%)":"rgba("+pe+"%, "+Zt+"%, "+ue+"%, "+dt[3]+")"},ge.to.hsl=function(){var dt=Rt(arguments);return dt.length<4||dt[3]===1?"hsl("+dt[0]+", "+dt[1]+"%, "+dt[2]+"%)":"hsla("+dt[0]+", "+dt[1]+"%, "+dt[2]+"%, "+dt[3]+")"},ge.to.hwb=function(){var dt=Rt(arguments),pe="";return dt.length>=4&&dt[3]!==1&&(pe=", "+dt[3]),"hwb("+dt[0]+", "+dt[1]+"%, "+dt[2]+"%"+pe+")"},ge.to.keyword=function(dt){return We[dt.slice(0,3)]};function re(dt,pe,Zt){return Math.min(Math.max(pe,dt),Zt)}function Gt(dt){var pe=Math.round(dt).toString(16).toUpperCase();return pe.length<2?"0"+pe:pe}},19007:function(Ye,Ve,yt){"use strict";yt.d(Ve,{ZP:function(){return Qe},B8:function(){return $e}});function kt(vt,Yt,et){vt.prototype=Yt.prototype=et,et.constructor=vt}function Rt(vt,Yt){var et=Object.create(vt.prototype);for(var lt in Yt)et[lt]=Yt[lt];return et}function be(){}var We=.7,te=1/We,ge="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dt=/^#([0-9a-f]{3,8})$/,pe=new RegExp("^rgb\\("+[ge,ge,ge]+"\\)$"),Zt=new RegExp("^rgb\\("+[Gt,Gt,Gt]+"\\)$"),ue=new RegExp("^rgba\\("+[ge,ge,ge,re]+"\\)$"),ie=new RegExp("^rgba\\("+[Gt,Gt,Gt,re]+"\\)$"),jt=new RegExp("^hsl\\("+[re,Gt,Gt]+"\\)$"),Lt=new RegExp("^hsla\\("+[re,Gt,Gt,re]+"\\)$"),Tt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kt(be,Qe,{copy:function(vt){return Object.assign(new this.constructor,this,vt)},displayable:function(){return this.rgb().displayable()},hex:Dt,formatHex:Dt,formatHsl:Se,formatRgb:ke,toString:ke});function Dt(){return this.rgb().formatHex()}function Se(){return Dn(this).formatHsl()}function ke(){return this.rgb().formatRgb()}function Qe(vt){var Yt,et;return vt=(vt+"").trim().toLowerCase(),(Yt=dt.exec(vt))?(et=Yt[1].length,Yt=parseInt(Yt[1],16),et===6?Xe(Yt):et===3?new Be(Yt>>8&15|Yt>>4&240,Yt>>4&15|Yt&240,(Yt&15)<<4|Yt&15,1):et===8?qe(Yt>>24&255,Yt>>16&255,Yt>>8&255,(Yt&255)/255):et===4?qe(Yt>>12&15|Yt>>8&240,Yt>>8&15|Yt>>4&240,Yt>>4&15|Yt&240,((Yt&15)<<4|Yt&15)/255):null):(Yt=pe.exec(vt))?new Be(Yt[1],Yt[2],Yt[3],1):(Yt=Zt.exec(vt))?new Be(Yt[1]*255/100,Yt[2]*255/100,Yt[3]*255/100,1):(Yt=ue.exec(vt))?qe(Yt[1],Yt[2],Yt[3],Yt[4]):(Yt=ie.exec(vt))?qe(Yt[1]*255/100,Yt[2]*255/100,Yt[3]*255/100,Yt[4]):(Yt=jt.exec(vt))?gn(Yt[1],Yt[2]/100,Yt[3]/100,1):(Yt=Lt.exec(vt))?gn(Yt[1],Yt[2]/100,Yt[3]/100,Yt[4]):Tt.hasOwnProperty(vt)?Xe(Tt[vt]):vt==="transparent"?new Be(NaN,NaN,NaN,0):null}function Xe(vt){return new Be(vt>>16&255,vt>>8&255,vt&255,1)}function qe(vt,Yt,et,lt){return lt<=0&&(vt=Yt=et=NaN),new Be(vt,Yt,et,lt)}function ln(vt){return vt instanceof be||(vt=Qe(vt)),vt?(vt=vt.rgb(),new Be(vt.r,vt.g,vt.b,vt.opacity)):new Be}function $e(vt,Yt,et,lt){return arguments.length===1?ln(vt):new Be(vt,Yt,et,lt==null?1:lt)}function Be(vt,Yt,et,lt){this.r=+vt,this.g=+Yt,this.b=+et,this.opacity=+lt}kt(Be,$e,Rt(be,{brighter:function(vt){return vt=vt==null?te:Math.pow(te,vt),new Be(this.r*vt,this.g*vt,this.b*vt,this.opacity)},darker:function(vt){return vt=vt==null?We:Math.pow(We,vt),new Be(this.r*vt,this.g*vt,this.b*vt,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cn,formatHex:cn,formatRgb:_e,toString:_e}));function cn(){return"#"+Me(this.r)+Me(this.g)+Me(this.b)}function _e(){var vt=this.opacity;return vt=isNaN(vt)?1:Math.max(0,Math.min(1,vt)),(vt===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(vt===1?")":", "+vt+")")}function Me(vt){return vt=Math.max(0,Math.min(255,Math.round(vt)||0)),(vt<16?"0":"")+vt.toString(16)}function gn(vt,Yt,et,lt){return lt<=0?vt=Yt=et=NaN:et<=0||et>=1?vt=Yt=NaN:Yt<=0&&(vt=NaN),new un(vt,Yt,et,lt)}function Dn(vt){if(vt instanceof un)return new un(vt.h,vt.s,vt.l,vt.opacity);if(vt instanceof be||(vt=Qe(vt)),!vt)return new un;if(vt instanceof un)return vt;vt=vt.rgb();var Yt=vt.r/255,et=vt.g/255,lt=vt.b/255,_t=Math.min(Yt,et,lt),Ot=Math.max(Yt,et,lt),$t=NaN,It=Ot-_t,ae=(Ot+_t)/2;return It?(Yt===Ot?$t=(et-lt)/It+(et0&&ae<1?0:$t,new un($t,It,ae,vt.opacity)}function Qn(vt,Yt,et,lt){return arguments.length===1?Dn(vt):new un(vt,Yt,et,lt==null?1:lt)}function un(vt,Yt,et,lt){this.h=+vt,this.s=+Yt,this.l=+et,this.opacity=+lt}kt(un,Qn,Rt(be,{brighter:function(vt){return vt=vt==null?te:Math.pow(te,vt),new un(this.h,this.s,this.l*vt,this.opacity)},darker:function(vt){return vt=vt==null?We:Math.pow(We,vt),new un(this.h,this.s,this.l*vt,this.opacity)},rgb:function(){var vt=this.h%360+(this.h<0)*360,Yt=isNaN(vt)||isNaN(this.s)?0:this.s,et=this.l,lt=et+(et<.5?et:1-et)*Yt,_t=2*et-lt;return new Be(yn(vt>=240?vt-240:vt+120,_t,lt),yn(vt,_t,lt),yn(vt<120?vt+240:vt-120,_t,lt),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var vt=this.opacity;return vt=isNaN(vt)?1:Math.max(0,Math.min(1,vt)),(vt===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(vt===1?")":", "+vt+")")}}));function yn(vt,Yt,et){return(vt<60?Yt+(et-Yt)*vt/60:vt<180?et:vt<240?Yt+(et-Yt)*(240-vt)/60:Yt)*255}},77572:function(Ye){"use strict";var Ve=Object.prototype.hasOwnProperty,yt="~";function kt(){}Object.create&&(kt.prototype=Object.create(null),new kt().__proto__||(yt=!1));function Rt(ge,re,Gt){this.fn=ge,this.context=re,this.once=Gt||!1}function be(ge,re,Gt,dt,pe){if(typeof Gt!="function")throw new TypeError("The listener must be a function");var Zt=new Rt(Gt,dt||ge,pe),ue=yt?yt+re:re;return ge._events[ue]?ge._events[ue].fn?ge._events[ue]=[ge._events[ue],Zt]:ge._events[ue].push(Zt):(ge._events[ue]=Zt,ge._eventsCount++),ge}function We(ge,re){--ge._eventsCount===0?ge._events=new kt:delete ge._events[re]}function te(){this._events=new kt,this._eventsCount=0}te.prototype.eventNames=function(){var re=[],Gt,dt;if(this._eventsCount===0)return re;for(dt in Gt=this._events)Ve.call(Gt,dt)&&re.push(yt?dt.slice(1):dt);return Object.getOwnPropertySymbols?re.concat(Object.getOwnPropertySymbols(Gt)):re},te.prototype.listeners=function(re){var Gt=yt?yt+re:re,dt=this._events[Gt];if(!dt)return[];if(dt.fn)return[dt.fn];for(var pe=0,Zt=dt.length,ue=new Array(Zt);pe0)throw"Initial bisect points must have opposite signs";if(ke===0)return jt;if(Qe===0)return Lt;for(var qe=0;qe=0&&(jt=ln),Math.abs(Xe)=_e[cn-1].fx){var $t=!1;if(yn.fx>Ot.fx?(re(vt,1+ln,un,-ln,Ot),vt.fx=ie(vt),vt.fx=1)break;for(Me=1;Me<_e.length;++Me)re(_e[Me],1-$e,_e[0],$e,_e[Me]),_e[Me].fx=ie(_e[Me])}}else Dn(yn)}return _e.sort(Qn),{fx:_e[0].fx,x:_e[0]}}function dt(ie,jt,Lt,Tt,Dt,Se,ke){var Qe=Lt.fx,Xe=We(Lt.fxprime,jt),qe=Qe,ln=Qe,$e=Xe,Be=0;Dt=Dt||1,Se=Se||1e-6,ke=ke||.1;function cn(Me,gn,Dn){for(var Qn=0;Qn<16;++Qn)if(Dt=(Me+gn)/2,re(Tt.x,1,Lt.x,Dt,jt),qe=Tt.fx=ie(Tt.x,Tt.fxprime),$e=We(Tt.fxprime,jt),qe>Qe+Se*Dt*Xe||qe>=Dn)gn=Dt;else{if(Math.abs($e)<=-ke*Xe)return Dt;$e*(gn-Me)>=0&&(gn=Me),Me=Dt,Dn=qe}return 0}for(var _e=0;_e<10;++_e){if(re(Tt.x,1,Lt.x,Dt,jt),qe=Tt.fx=ie(Tt.x,Tt.fxprime),$e=We(Tt.fxprime,jt),qe>Qe+Se*Dt*Xe||_e&&qe>=ln)return cn(Be,Dt,ln);if(Math.abs($e)<=-ke*Xe)return Dt;if($e>=0)return cn(Dt,Be,qe);ln=qe,Be=Dt,Dt*=2}return Dt}function pe(ie,jt,Lt){var Tt={x:jt.slice(),fx:0,fxprime:jt.slice()},Dt={x:jt.slice(),fx:0,fxprime:jt.slice()},Se=jt.slice(),ke,Qe,Xe=1,qe;Lt=Lt||{},qe=Lt.maxIterations||jt.length*20,Tt.fx=ie(Tt.x,Tt.fxprime),ke=Tt.fxprime.slice(),ge(ke,Tt.fxprime,-1);for(var ln=0;ln0?(W[0]=(mt*gt+Bt*q+At*rt-Mt*J)*2/Wt,W[1]=(At*gt+Bt*J+Mt*q-mt*rt)*2/Wt,W[2]=(Mt*gt+Bt*rt+mt*J-At*q)*2/Wt):(W[0]=(mt*gt+Bt*q+At*rt-Mt*J)*2,W[1]=(At*gt+Bt*J+Mt*q-mt*rt)*2,W[2]=(Mt*gt+Bt*rt+mt*J-At*q)*2),Be(x,T,W),x}function _e(x,T){return x[0]=T[12],x[1]=T[13],x[2]=T[14],x}function Me(x,T){var W=T[0],q=T[1],J=T[2],rt=T[4],gt=T[5],mt=T[6],At=T[8],Mt=T[9],Bt=T[10];return x[0]=Math.hypot(W,q,J),x[1]=Math.hypot(rt,gt,mt),x[2]=Math.hypot(At,Mt,Bt),x}function gn(x,T){var W=new kt.WT(3);Me(W,T);var q=1/W[0],J=1/W[1],rt=1/W[2],gt=T[0]*q,mt=T[1]*J,At=T[2]*rt,Mt=T[4]*q,Bt=T[5]*J,Wt=T[6]*rt,Vt=T[8]*q,zt=T[9]*J,Kt=T[10]*rt,fe=gt+Bt+Kt,wt=0;return fe>0?(wt=Math.sqrt(fe+1)*2,x[3]=.25*wt,x[0]=(Wt-zt)/wt,x[1]=(Vt-At)/wt,x[2]=(mt-Mt)/wt):gt>Bt&>>Kt?(wt=Math.sqrt(1+gt-Bt-Kt)*2,x[3]=(Wt-zt)/wt,x[0]=.25*wt,x[1]=(mt+Mt)/wt,x[2]=(Vt+At)/wt):Bt>Kt?(wt=Math.sqrt(1+Bt-gt-Kt)*2,x[3]=(Vt-At)/wt,x[0]=(mt+Mt)/wt,x[1]=.25*wt,x[2]=(Wt+zt)/wt):(wt=Math.sqrt(1+Kt-gt-Bt)*2,x[3]=(mt-Mt)/wt,x[0]=(Vt+At)/wt,x[1]=(Wt+zt)/wt,x[2]=.25*wt),x}function Dn(x,T,W,q){var J=T[0],rt=T[1],gt=T[2],mt=T[3],At=J+J,Mt=rt+rt,Bt=gt+gt,Wt=J*At,Vt=J*Mt,zt=J*Bt,Kt=rt*Mt,fe=rt*Bt,wt=gt*Bt,we=mt*At,Je=mt*Mt,Ae=mt*Bt,Re=q[0],Ie=q[1],Le=q[2];return x[0]=(1-(Kt+wt))*Re,x[1]=(Vt+Ae)*Re,x[2]=(zt-Je)*Re,x[3]=0,x[4]=(Vt-Ae)*Ie,x[5]=(1-(Wt+wt))*Ie,x[6]=(fe+we)*Ie,x[7]=0,x[8]=(zt+Je)*Le,x[9]=(fe-we)*Le,x[10]=(1-(Wt+Kt))*Le,x[11]=0,x[12]=W[0],x[13]=W[1],x[14]=W[2],x[15]=1,x}function Qn(x,T,W,q,J){var rt=T[0],gt=T[1],mt=T[2],At=T[3],Mt=rt+rt,Bt=gt+gt,Wt=mt+mt,Vt=rt*Mt,zt=rt*Bt,Kt=rt*Wt,fe=gt*Bt,wt=gt*Wt,we=mt*Wt,Je=At*Mt,Ae=At*Bt,Re=At*Wt,Ie=q[0],Le=q[1],Vn=q[2],Xn=J[0],$n=J[1],Un=J[2],ar=(1-(fe+we))*Ie,or=(zt+Re)*Ie,mr=(Kt-Ae)*Ie,fn=(zt-Re)*Le,Qr=(1-(Vt+we))*Le,wa=(wt+Je)*Le,ci=(Kt+Ae)*Vn,Sa=(wt-Je)*Vn,Ma=(1-(Vt+fe))*Vn;return x[0]=ar,x[1]=or,x[2]=mr,x[3]=0,x[4]=fn,x[5]=Qr,x[6]=wa,x[7]=0,x[8]=ci,x[9]=Sa,x[10]=Ma,x[11]=0,x[12]=W[0]+Xn-(ar*Xn+fn*$n+ci*Un),x[13]=W[1]+$n-(or*Xn+Qr*$n+Sa*Un),x[14]=W[2]+Un-(mr*Xn+wa*$n+Ma*Un),x[15]=1,x}function un(x,T){var W=T[0],q=T[1],J=T[2],rt=T[3],gt=W+W,mt=q+q,At=J+J,Mt=W*gt,Bt=q*gt,Wt=q*mt,Vt=J*gt,zt=J*mt,Kt=J*At,fe=rt*gt,wt=rt*mt,we=rt*At;return x[0]=1-Wt-Kt,x[1]=Bt+we,x[2]=Vt-wt,x[3]=0,x[4]=Bt-we,x[5]=1-Mt-Kt,x[6]=zt+fe,x[7]=0,x[8]=Vt+wt,x[9]=zt-fe,x[10]=1-Mt-Wt,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}function yn(x,T,W,q,J,rt,gt){var mt=1/(W-T),At=1/(J-q),Mt=1/(rt-gt);return x[0]=rt*2*mt,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=rt*2*At,x[6]=0,x[7]=0,x[8]=(W+T)*mt,x[9]=(J+q)*At,x[10]=(gt+rt)*Mt,x[11]=-1,x[12]=0,x[13]=0,x[14]=gt*rt*2*Mt,x[15]=0,x}function vt(x,T,W,q,J){var rt=1/Math.tan(T/2),gt;return x[0]=rt/W,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=rt,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[11]=-1,x[12]=0,x[13]=0,x[15]=0,J!=null&&J!==1/0?(gt=1/(q-J),x[10]=(J+q)*gt,x[14]=2*J*q*gt):(x[10]=-1,x[14]=-2*q),x}var Yt=vt;function et(x,T,W,q,J){var rt=1/Math.tan(T/2),gt;return x[0]=rt/W,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=rt,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[11]=-1,x[12]=0,x[13]=0,x[15]=0,J!=null&&J!==1/0?(gt=1/(q-J),x[10]=J*gt,x[14]=J*q*gt):(x[10]=-1,x[14]=-q),x}function lt(x,T,W,q){var J=Math.tan(T.upDegrees*Math.PI/180),rt=Math.tan(T.downDegrees*Math.PI/180),gt=Math.tan(T.leftDegrees*Math.PI/180),mt=Math.tan(T.rightDegrees*Math.PI/180),At=2/(gt+mt),Mt=2/(J+rt);return x[0]=At,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=Mt,x[6]=0,x[7]=0,x[8]=-((gt-mt)*At*.5),x[9]=(J-rt)*Mt*.5,x[10]=q/(W-q),x[11]=-1,x[12]=0,x[13]=0,x[14]=q*W/(W-q),x[15]=0,x}function _t(x,T,W,q,J,rt,gt){var mt=1/(T-W),At=1/(q-J),Mt=1/(rt-gt);return x[0]=-2*mt,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*At,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=2*Mt,x[11]=0,x[12]=(T+W)*mt,x[13]=(J+q)*At,x[14]=(gt+rt)*Mt,x[15]=1,x}var Ot=_t;function $t(x,T,W,q,J,rt,gt){var mt=1/(T-W),At=1/(q-J),Mt=1/(rt-gt);return x[0]=-2*mt,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*At,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=Mt,x[11]=0,x[12]=(T+W)*mt,x[13]=(J+q)*At,x[14]=rt*Mt,x[15]=1,x}function It(x,T,W,q){var J,rt,gt,mt,At,Mt,Bt,Wt,Vt,zt,Kt=T[0],fe=T[1],wt=T[2],we=q[0],Je=q[1],Ae=q[2],Re=W[0],Ie=W[1],Le=W[2];return Math.abs(Kt-Re)0&&(zt=1/Math.sqrt(zt),Bt*=zt,Wt*=zt,Vt*=zt);var Kt=At*Vt-Mt*Wt,fe=Mt*Bt-mt*Vt,wt=mt*Wt-At*Bt;return zt=Kt*Kt+fe*fe+wt*wt,zt>0&&(zt=1/Math.sqrt(zt),Kt*=zt,fe*=zt,wt*=zt),x[0]=Kt,x[1]=fe,x[2]=wt,x[3]=0,x[4]=Wt*wt-Vt*fe,x[5]=Vt*Kt-Bt*wt,x[6]=Bt*fe-Wt*Kt,x[7]=0,x[8]=Bt,x[9]=Wt,x[10]=Vt,x[11]=0,x[12]=J,x[13]=rt,x[14]=gt,x[15]=1,x}function X(x){return"mat4("+x[0]+", "+x[1]+", "+x[2]+", "+x[3]+", "+x[4]+", "+x[5]+", "+x[6]+", "+x[7]+", "+x[8]+", "+x[9]+", "+x[10]+", "+x[11]+", "+x[12]+", "+x[13]+", "+x[14]+", "+x[15]+")"}function ct(x){return Math.hypot(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],x[8],x[9],x[10],x[11],x[12],x[13],x[14],x[15])}function ht(x,T,W){return x[0]=T[0]+W[0],x[1]=T[1]+W[1],x[2]=T[2]+W[2],x[3]=T[3]+W[3],x[4]=T[4]+W[4],x[5]=T[5]+W[5],x[6]=T[6]+W[6],x[7]=T[7]+W[7],x[8]=T[8]+W[8],x[9]=T[9]+W[9],x[10]=T[10]+W[10],x[11]=T[11]+W[11],x[12]=T[12]+W[12],x[13]=T[13]+W[13],x[14]=T[14]+W[14],x[15]=T[15]+W[15],x}function Ut(x,T,W){return x[0]=T[0]-W[0],x[1]=T[1]-W[1],x[2]=T[2]-W[2],x[3]=T[3]-W[3],x[4]=T[4]-W[4],x[5]=T[5]-W[5],x[6]=T[6]-W[6],x[7]=T[7]-W[7],x[8]=T[8]-W[8],x[9]=T[9]-W[9],x[10]=T[10]-W[10],x[11]=T[11]-W[11],x[12]=T[12]-W[12],x[13]=T[13]-W[13],x[14]=T[14]-W[14],x[15]=T[15]-W[15],x}function Q(x,T,W){return x[0]=T[0]*W,x[1]=T[1]*W,x[2]=T[2]*W,x[3]=T[3]*W,x[4]=T[4]*W,x[5]=T[5]*W,x[6]=T[6]*W,x[7]=T[7]*W,x[8]=T[8]*W,x[9]=T[9]*W,x[10]=T[10]*W,x[11]=T[11]*W,x[12]=T[12]*W,x[13]=T[13]*W,x[14]=T[14]*W,x[15]=T[15]*W,x}function st(x,T,W,q){return x[0]=T[0]+W[0]*q,x[1]=T[1]+W[1]*q,x[2]=T[2]+W[2]*q,x[3]=T[3]+W[3]*q,x[4]=T[4]+W[4]*q,x[5]=T[5]+W[5]*q,x[6]=T[6]+W[6]*q,x[7]=T[7]+W[7]*q,x[8]=T[8]+W[8]*q,x[9]=T[9]+W[9]*q,x[10]=T[10]+W[10]*q,x[11]=T[11]+W[11]*q,x[12]=T[12]+W[12]*q,x[13]=T[13]+W[13]*q,x[14]=T[14]+W[14]*q,x[15]=T[15]+W[15]*q,x}function xt(x,T){return x[0]===T[0]&&x[1]===T[1]&&x[2]===T[2]&&x[3]===T[3]&&x[4]===T[4]&&x[5]===T[5]&&x[6]===T[6]&&x[7]===T[7]&&x[8]===T[8]&&x[9]===T[9]&&x[10]===T[10]&&x[11]===T[11]&&x[12]===T[12]&&x[13]===T[13]&&x[14]===T[14]&&x[15]===T[15]}function H(x,T){var W=x[0],q=x[1],J=x[2],rt=x[3],gt=x[4],mt=x[5],At=x[6],Mt=x[7],Bt=x[8],Wt=x[9],Vt=x[10],zt=x[11],Kt=x[12],fe=x[13],wt=x[14],we=x[15],Je=T[0],Ae=T[1],Re=T[2],Ie=T[3],Le=T[4],Vn=T[5],Xn=T[6],$n=T[7],Un=T[8],ar=T[9],or=T[10],mr=T[11],fn=T[12],Qr=T[13],wa=T[14],ci=T[15];return Math.abs(W-Je)<=kt.Ib*Math.max(1,Math.abs(W),Math.abs(Je))&&Math.abs(q-Ae)<=kt.Ib*Math.max(1,Math.abs(q),Math.abs(Ae))&&Math.abs(J-Re)<=kt.Ib*Math.max(1,Math.abs(J),Math.abs(Re))&&Math.abs(rt-Ie)<=kt.Ib*Math.max(1,Math.abs(rt),Math.abs(Ie))&&Math.abs(gt-Le)<=kt.Ib*Math.max(1,Math.abs(gt),Math.abs(Le))&&Math.abs(mt-Vn)<=kt.Ib*Math.max(1,Math.abs(mt),Math.abs(Vn))&&Math.abs(At-Xn)<=kt.Ib*Math.max(1,Math.abs(At),Math.abs(Xn))&&Math.abs(Mt-$n)<=kt.Ib*Math.max(1,Math.abs(Mt),Math.abs($n))&&Math.abs(Bt-Un)<=kt.Ib*Math.max(1,Math.abs(Bt),Math.abs(Un))&&Math.abs(Wt-ar)<=kt.Ib*Math.max(1,Math.abs(Wt),Math.abs(ar))&&Math.abs(Vt-or)<=kt.Ib*Math.max(1,Math.abs(Vt),Math.abs(or))&&Math.abs(zt-mr)<=kt.Ib*Math.max(1,Math.abs(zt),Math.abs(mr))&&Math.abs(Kt-fn)<=kt.Ib*Math.max(1,Math.abs(Kt),Math.abs(fn))&&Math.abs(fe-Qr)<=kt.Ib*Math.max(1,Math.abs(fe),Math.abs(Qr))&&Math.abs(wt-wa)<=kt.Ib*Math.max(1,Math.abs(wt),Math.abs(wa))&&Math.abs(we-ci)<=kt.Ib*Math.max(1,Math.abs(we),Math.abs(ci))}var K=ue,ut=Ut},1153:function(Ye,Ve,yt){"use strict";yt.d(Ve,{$X:function(){return Gt},AK:function(){return Be},Fv:function(){return $e},I6:function(){return lt},IH:function(){return re},JG:function(){return te},Ue:function(){return Rt},al:function(){return We},lu:function(){return $t},t7:function(){return _e},t8:function(){return ge},tk:function(){return qe}});var kt=yt(96140);function Rt(){var Q=new kt.WT(2);return kt.WT!=Float32Array&&(Q[0]=0,Q[1]=0),Q}function be(Q){var st=new glMatrix.ARRAY_TYPE(2);return st[0]=Q[0],st[1]=Q[1],st}function We(Q,st){var xt=new kt.WT(2);return xt[0]=Q,xt[1]=st,xt}function te(Q,st){return Q[0]=st[0],Q[1]=st[1],Q}function ge(Q,st,xt){return Q[0]=st,Q[1]=xt,Q}function re(Q,st,xt){return Q[0]=st[0]+xt[0],Q[1]=st[1]+xt[1],Q}function Gt(Q,st,xt){return Q[0]=st[0]-xt[0],Q[1]=st[1]-xt[1],Q}function dt(Q,st,xt){return Q[0]=st[0]*xt[0],Q[1]=st[1]*xt[1],Q}function pe(Q,st,xt){return Q[0]=st[0]/xt[0],Q[1]=st[1]/xt[1],Q}function Zt(Q,st){return Q[0]=Math.ceil(st[0]),Q[1]=Math.ceil(st[1]),Q}function ue(Q,st){return Q[0]=Math.floor(st[0]),Q[1]=Math.floor(st[1]),Q}function ie(Q,st,xt){return Q[0]=Math.min(st[0],xt[0]),Q[1]=Math.min(st[1],xt[1]),Q}function jt(Q,st,xt){return Q[0]=Math.max(st[0],xt[0]),Q[1]=Math.max(st[1],xt[1]),Q}function Lt(Q,st){return Q[0]=Math.round(st[0]),Q[1]=Math.round(st[1]),Q}function Tt(Q,st,xt){return Q[0]=st[0]*xt,Q[1]=st[1]*xt,Q}function Dt(Q,st,xt,H){return Q[0]=st[0]+xt[0]*H,Q[1]=st[1]+xt[1]*H,Q}function Se(Q,st){var xt=st[0]-Q[0],H=st[1]-Q[1];return Math.hypot(xt,H)}function ke(Q,st){var xt=st[0]-Q[0],H=st[1]-Q[1];return xt*xt+H*H}function Qe(Q){var st=Q[0],xt=Q[1];return Math.hypot(st,xt)}function Xe(Q){var st=Q[0],xt=Q[1];return st*st+xt*xt}function qe(Q,st){return Q[0]=-st[0],Q[1]=-st[1],Q}function ln(Q,st){return Q[0]=1/st[0],Q[1]=1/st[1],Q}function $e(Q,st){var xt=st[0],H=st[1],K=xt*xt+H*H;return K>0&&(K=1/Math.sqrt(K)),Q[0]=st[0]*K,Q[1]=st[1]*K,Q}function Be(Q,st){return Q[0]*st[0]+Q[1]*st[1]}function cn(Q,st,xt){var H=st[0]*xt[1]-st[1]*xt[0];return Q[0]=Q[1]=0,Q[2]=H,Q}function _e(Q,st,xt,H){var K=st[0],ut=st[1];return Q[0]=K+H*(xt[0]-K),Q[1]=ut+H*(xt[1]-ut),Q}function Me(Q,st){st=st||1;var xt=glMatrix.RANDOM()*2*Math.PI;return Q[0]=Math.cos(xt)*st,Q[1]=Math.sin(xt)*st,Q}function gn(Q,st,xt){var H=st[0],K=st[1];return Q[0]=xt[0]*H+xt[2]*K,Q[1]=xt[1]*H+xt[3]*K,Q}function Dn(Q,st,xt){var H=st[0],K=st[1];return Q[0]=xt[0]*H+xt[2]*K+xt[4],Q[1]=xt[1]*H+xt[3]*K+xt[5],Q}function Qn(Q,st,xt){var H=st[0],K=st[1];return Q[0]=xt[0]*H+xt[3]*K+xt[6],Q[1]=xt[1]*H+xt[4]*K+xt[7],Q}function un(Q,st,xt){var H=st[0],K=st[1];return Q[0]=xt[0]*H+xt[4]*K+xt[12],Q[1]=xt[1]*H+xt[5]*K+xt[13],Q}function yn(Q,st,xt,H){var K=st[0]-xt[0],ut=st[1]-xt[1],x=Math.sin(H),T=Math.cos(H);return Q[0]=K*T-ut*x+xt[0],Q[1]=K*x+ut*T+xt[1],Q}function vt(Q,st){var xt=Q[0],H=Q[1],K=st[0],ut=st[1],x=Math.sqrt(xt*xt+H*H)*Math.sqrt(K*K+ut*ut),T=x&&(xt*K+H*ut)/x;return Math.acos(Math.min(Math.max(T,-1),1))}function Yt(Q){return Q[0]=0,Q[1]=0,Q}function et(Q){return"vec2("+Q[0]+", "+Q[1]+")"}function lt(Q,st){return Q[0]===st[0]&&Q[1]===st[1]}function _t(Q,st){var xt=Q[0],H=Q[1],K=st[0],ut=st[1];return Math.abs(xt-K)<=glMatrix.EPSILON*Math.max(1,Math.abs(xt),Math.abs(K))&&Math.abs(H-ut)<=glMatrix.EPSILON*Math.max(1,Math.abs(H),Math.abs(ut))}var Ot=null,$t=Gt,It=null,ae=null,X=null,ct=null,ht=null,Ut=function(){var Q=Rt();return function(st,xt,H,K,ut,x){var T,W;for(xt||(xt=2),H||(H=0),K?W=Math.min(K*xt+H,st.length):W=st.length,T=H;T0&&(W=1/Math.sqrt(W)),H[0]=K[0]*W,H[1]=K[1]*W,H[2]=K[2]*W,H}function Be(H,K){return H[0]*K[0]+H[1]*K[1]+H[2]*K[2]}function cn(H,K,ut){var x=K[0],T=K[1],W=K[2],q=ut[0],J=ut[1],rt=ut[2];return H[0]=T*rt-W*J,H[1]=W*q-x*rt,H[2]=x*J-T*q,H}function _e(H,K,ut,x){var T=K[0],W=K[1],q=K[2];return H[0]=T+x*(ut[0]-T),H[1]=W+x*(ut[1]-W),H[2]=q+x*(ut[2]-q),H}function Me(H,K,ut,x,T,W){var q=W*W,J=q*(2*W-3)+1,rt=q*(W-2)+W,gt=q*(W-1),mt=q*(3-2*W);return H[0]=K[0]*J+ut[0]*rt+x[0]*gt+T[0]*mt,H[1]=K[1]*J+ut[1]*rt+x[1]*gt+T[1]*mt,H[2]=K[2]*J+ut[2]*rt+x[2]*gt+T[2]*mt,H}function gn(H,K,ut,x,T,W){var q=1-W,J=q*q,rt=W*W,gt=J*q,mt=3*W*J,At=3*rt*q,Mt=rt*W;return H[0]=K[0]*gt+ut[0]*mt+x[0]*At+T[0]*Mt,H[1]=K[1]*gt+ut[1]*mt+x[1]*At+T[1]*Mt,H[2]=K[2]*gt+ut[2]*mt+x[2]*At+T[2]*Mt,H}function Dn(H,K){K=K||1;var ut=kt.FD()*2*Math.PI,x=kt.FD()*2-1,T=Math.sqrt(1-x*x)*K;return H[0]=Math.cos(ut)*T,H[1]=Math.sin(ut)*T,H[2]=x*K,H}function Qn(H,K,ut){var x=K[0],T=K[1],W=K[2],q=ut[3]*x+ut[7]*T+ut[11]*W+ut[15];return q=q||1,H[0]=(ut[0]*x+ut[4]*T+ut[8]*W+ut[12])/q,H[1]=(ut[1]*x+ut[5]*T+ut[9]*W+ut[13])/q,H[2]=(ut[2]*x+ut[6]*T+ut[10]*W+ut[14])/q,H}function un(H,K,ut){var x=K[0],T=K[1],W=K[2];return H[0]=x*ut[0]+T*ut[3]+W*ut[6],H[1]=x*ut[1]+T*ut[4]+W*ut[7],H[2]=x*ut[2]+T*ut[5]+W*ut[8],H}function yn(H,K,ut){var x=ut[0],T=ut[1],W=ut[2],q=ut[3],J=K[0],rt=K[1],gt=K[2],mt=T*gt-W*rt,At=W*J-x*gt,Mt=x*rt-T*J,Bt=T*Mt-W*At,Wt=W*mt-x*Mt,Vt=x*At-T*mt,zt=q*2;return mt*=zt,At*=zt,Mt*=zt,Bt*=2,Wt*=2,Vt*=2,H[0]=J+mt+Bt,H[1]=rt+At+Wt,H[2]=gt+Mt+Vt,H}function vt(H,K,ut,x){var T=[],W=[];return T[0]=K[0]-ut[0],T[1]=K[1]-ut[1],T[2]=K[2]-ut[2],W[0]=T[0],W[1]=T[1]*Math.cos(x)-T[2]*Math.sin(x),W[2]=T[1]*Math.sin(x)+T[2]*Math.cos(x),H[0]=W[0]+ut[0],H[1]=W[1]+ut[1],H[2]=W[2]+ut[2],H}function Yt(H,K,ut,x){var T=[],W=[];return T[0]=K[0]-ut[0],T[1]=K[1]-ut[1],T[2]=K[2]-ut[2],W[0]=T[2]*Math.sin(x)+T[0]*Math.cos(x),W[1]=T[1],W[2]=T[2]*Math.cos(x)-T[0]*Math.sin(x),H[0]=W[0]+ut[0],H[1]=W[1]+ut[1],H[2]=W[2]+ut[2],H}function et(H,K,ut,x){var T=[],W=[];return T[0]=K[0]-ut[0],T[1]=K[1]-ut[1],T[2]=K[2]-ut[2],W[0]=T[0]*Math.cos(x)-T[1]*Math.sin(x),W[1]=T[0]*Math.sin(x)+T[1]*Math.cos(x),W[2]=T[2],H[0]=W[0]+ut[0],H[1]=W[1]+ut[1],H[2]=W[2]+ut[2],H}function lt(H,K){var ut=H[0],x=H[1],T=H[2],W=K[0],q=K[1],J=K[2],rt=Math.sqrt(ut*ut+x*x+T*T),gt=Math.sqrt(W*W+q*q+J*J),mt=rt*gt,At=mt&&Be(H,K)/mt;return Math.acos(Math.min(Math.max(At,-1),1))}function _t(H){return H[0]=0,H[1]=0,H[2]=0,H}function Ot(H){return"vec3("+H[0]+", "+H[1]+", "+H[2]+")"}function $t(H,K){return H[0]===K[0]&&H[1]===K[1]&&H[2]===K[2]}function It(H,K){var ut=H[0],x=H[1],T=H[2],W=K[0],q=K[1],J=K[2];return Math.abs(ut-W)<=kt.Ib*Math.max(1,Math.abs(ut),Math.abs(W))&&Math.abs(x-q)<=kt.Ib*Math.max(1,Math.abs(x),Math.abs(q))&&Math.abs(T-J)<=kt.Ib*Math.max(1,Math.abs(T),Math.abs(J))}var ae=dt,X=pe,ct=Zt,ht=ke,Ut=Qe,Q=We,st=Xe,xt=function(){var H=Rt();return function(K,ut,x,T,W,q){var J,rt;for(ut||(ut=3),x||(x=0),T?rt=Math.min(T*ut+x,K.length):rt=K.length,J=x;J0&&(xt=1/Math.sqrt(xt)),X[0]=ht*xt,X[1]=Ut*xt,X[2]=Q*xt,X[3]=st*xt,X}function Be(X,ct){return X[0]*ct[0]+X[1]*ct[1]+X[2]*ct[2]+X[3]*ct[3]}function cn(X,ct,ht,Ut){var Q=ht[0]*Ut[1]-ht[1]*Ut[0],st=ht[0]*Ut[2]-ht[2]*Ut[0],xt=ht[0]*Ut[3]-ht[3]*Ut[0],H=ht[1]*Ut[2]-ht[2]*Ut[1],K=ht[1]*Ut[3]-ht[3]*Ut[1],ut=ht[2]*Ut[3]-ht[3]*Ut[2],x=ct[0],T=ct[1],W=ct[2],q=ct[3];return X[0]=T*ut-W*K+q*H,X[1]=-(x*ut)+W*xt-q*st,X[2]=x*K-T*xt+q*Q,X[3]=-(x*H)+T*st-W*Q,X}function _e(X,ct,ht,Ut){var Q=ct[0],st=ct[1],xt=ct[2],H=ct[3];return X[0]=Q+Ut*(ht[0]-Q),X[1]=st+Ut*(ht[1]-st),X[2]=xt+Ut*(ht[2]-xt),X[3]=H+Ut*(ht[3]-H),X}function Me(X,ct){ct=ct||1;var ht,Ut,Q,st,xt,H;do ht=glMatrix.RANDOM()*2-1,Ut=glMatrix.RANDOM()*2-1,xt=ht*ht+Ut*Ut;while(xt>=1);do Q=glMatrix.RANDOM()*2-1,st=glMatrix.RANDOM()*2-1,H=Q*Q+st*st;while(H>=1);var K=Math.sqrt((1-xt)/H);return X[0]=ct*ht,X[1]=ct*Ut,X[2]=ct*Q*K,X[3]=ct*st*K,X}function gn(X,ct,ht){var Ut=ct[0],Q=ct[1],st=ct[2],xt=ct[3];return X[0]=ht[0]*Ut+ht[4]*Q+ht[8]*st+ht[12]*xt,X[1]=ht[1]*Ut+ht[5]*Q+ht[9]*st+ht[13]*xt,X[2]=ht[2]*Ut+ht[6]*Q+ht[10]*st+ht[14]*xt,X[3]=ht[3]*Ut+ht[7]*Q+ht[11]*st+ht[15]*xt,X}function Dn(X,ct,ht){var Ut=ct[0],Q=ct[1],st=ct[2],xt=ht[0],H=ht[1],K=ht[2],ut=ht[3],x=ut*Ut+H*st-K*Q,T=ut*Q+K*Ut-xt*st,W=ut*st+xt*Q-H*Ut,q=-xt*Ut-H*Q-K*st;return X[0]=x*ut+q*-xt+T*-K-W*-H,X[1]=T*ut+q*-H+W*-xt-x*-K,X[2]=W*ut+q*-K+x*-H-T*-xt,X[3]=ct[3],X}function Qn(X){return X[0]=0,X[1]=0,X[2]=0,X[3]=0,X}function un(X){return"vec4("+X[0]+", "+X[1]+", "+X[2]+", "+X[3]+")"}function yn(X,ct){return X[0]===ct[0]&&X[1]===ct[1]&&X[2]===ct[2]&&X[3]===ct[3]}function vt(X,ct){var ht=X[0],Ut=X[1],Q=X[2],st=X[3],xt=ct[0],H=ct[1],K=ct[2],ut=ct[3];return Math.abs(ht-xt)<=kt.Ib*Math.max(1,Math.abs(ht),Math.abs(xt))&&Math.abs(Ut-H)<=kt.Ib*Math.max(1,Math.abs(Ut),Math.abs(H))&&Math.abs(Q-K)<=kt.Ib*Math.max(1,Math.abs(Q),Math.abs(K))&&Math.abs(st-ut)<=kt.Ib*Math.max(1,Math.abs(st),Math.abs(ut))}var Yt=null,et=null,lt=null,_t=null,Ot=null,$t=null,It=null,ae=function(){var X=Rt();return function(ct,ht,Ut,Q,st,xt){var H,K;for(ht||(ht=4),Ut||(Ut=0),Q?K=Math.min(Q*ht+Ut,ct.length):K=ct.length,H=Ut;H=0&&(yt.splice instanceof Function||Object.getOwnPropertyDescriptor(yt,yt.length-1)&&yt.constructor.name!=="String")}},86319:function(Ye){"use strict";var Ve=Ye.exports;Ye.exports.isNumber=function(yt){return typeof yt=="number"},Ye.exports.findMin=function(yt){if(yt.length===0)return 1/0;for(var kt=yt[0],Rt=1;Rt=Dt.length)){var gn=Math.max(Me-Zt,0),Dn=Me,Qn=Math.min(Me+Zt,Dt.length-1),un=gn-(Me-Zt),yn=Me+Zt-Qn,vt=Qe[-Zt-1+un]||0,Yt=Qe[-Zt-1+yn]||0,et=Xe/(Xe-vt-Yt);un>0&&(ln+=et*(un-1)*qe);var lt=Math.max(0,Me-Zt+1);te.inside(0,Dt.length-1,lt)&&(Dt[lt].y+=et*1*qe),te.inside(0,Dt.length-1,Dn+1)&&(Dt[Dn+1].y-=et*2*qe),te.inside(0,Dt.length-1,Qn+1)&&(Dt[Qn+1].y+=et*1*qe)}});var $e=ln,Be=0,cn=0;return Dt.forEach(function(_e){Be+=_e.y,$e+=Be,_e.y=$e,cn+=$e}),cn>0&&Dt.forEach(function(_e){_e.y/=cn}),Dt};function re(Gt,dt){for(var pe={},Zt=0,ue=-dt;ue<=dt;ue++)Zt+=Gt(ue/dt),pe[ue]=Zt;return pe}Ye.exports.getExpectedValueFromPdf=function(Gt){if(!(!Gt||Gt.length===0)){var dt=0;return Gt.forEach(function(pe){dt+=pe.x*pe.y}),dt}},Ye.exports.getXWithLeftTailArea=function(Gt,dt){if(!(!Gt||Gt.length===0)){for(var pe=0,Zt=0,ue=0;ue=dt));ue++);return Gt[Zt].x}},Ye.exports.getPerplexity=function(Gt){if(!(!Gt||Gt.length===0)){var dt=0;return Gt.forEach(function(pe){var Zt=Math.log(pe.y);isFinite(Zt)&&(dt+=pe.y*Zt)}),dt=-dt/be,Math.pow(2,dt)}}},55607:function(Ye,Ve,yt){"use strict";var kt=yt(11144),Rt=Array.prototype.concat,be=Array.prototype.slice,We=Ye.exports=function(ge){for(var re=[],Gt=0,dt=ge.length;Gt=be.length?{done:!0}:{done:!1,value:be[ge++]}},e:function(ue){throw ue},f:re}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Gt=!0,dt=!1,pe;return{s:function(){te=te.call(be)},n:function(){var ue=te.next();return Gt=ue.done,ue},e:function(ue){dt=!0,pe=ue},f:function(){try{!Gt&&te.return!=null&&te.return()}finally{if(dt)throw pe}}}}Ye.exports=Rt,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports},69687:function(Ye,Ve,yt){"use strict";var kt=yt(77572);Ve.Z=kt},21769:function(Ye,Ve,yt){"use strict";yt.d(Ve,{CR:function(){return Dt},Jh:function(){return ie},Q_:function(){return gn},XA:function(){return Tt},ZT:function(){return Rt},_T:function(){return We},ev:function(){return Qe},mG:function(){return ue},pi:function(){return be},pr:function(){return ke}});var kt=function(et,lt){return kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_t,Ot){_t.__proto__=Ot}||function(_t,Ot){for(var $t in Ot)Object.prototype.hasOwnProperty.call(Ot,$t)&&(_t[$t]=Ot[$t])},kt(et,lt)};function Rt(et,lt){if(typeof lt!="function"&<!==null)throw new TypeError("Class extends value "+String(lt)+" is not a constructor or null");kt(et,lt);function _t(){this.constructor=et}et.prototype=lt===null?Object.create(lt):(_t.prototype=lt.prototype,new _t)}var be=function(){return be=Object.assign||function(lt){for(var _t,Ot=1,$t=arguments.length;Ot<$t;Ot++){_t=arguments[Ot];for(var It in _t)Object.prototype.hasOwnProperty.call(_t,It)&&(lt[It]=_t[It])}return lt},be.apply(this,arguments)};function We(et,lt){var _t={};for(var Ot in et)Object.prototype.hasOwnProperty.call(et,Ot)&<.indexOf(Ot)<0&&(_t[Ot]=et[Ot]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Ot=Object.getOwnPropertySymbols(et);$t=0;X--)(ae=et[X])&&(It=($t<3?ae(It):$t>3?ae(lt,_t,It):ae(lt,_t))||It);return $t>3&&It&&Object.defineProperty(lt,_t,It),It}function ge(et,lt){return function(_t,Ot){lt(_t,Ot,et)}}function re(et,lt,_t,Ot,$t,It){function ae(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var X=Ot.kind,ct=X==="getter"?"get":X==="setter"?"set":"value",ht=!lt&&et?Ot.static?et:et.prototype:null,Ut=lt||(ht?Object.getOwnPropertyDescriptor(ht,Ot.name):{}),Q,st=!1,xt=_t.length-1;xt>=0;xt--){var H={};for(var K in Ot)H[K]=K==="access"?{}:Ot[K];for(var K in Ot.access)H.access[K]=Ot.access[K];H.addInitializer=function(x){if(st)throw new TypeError("Cannot add initializers after decoration has completed");It.push(ae(x||null))};var ut=(0,_t[xt])(X==="accessor"?{get:Ut.get,set:Ut.set}:Ut[ct],H);if(X==="accessor"){if(ut===void 0)continue;if(ut===null||typeof ut!="object")throw new TypeError("Object expected");(Q=ae(ut.get))&&(Ut.get=Q),(Q=ae(ut.set))&&(Ut.set=Q),(Q=ae(ut.init))&&$t.unshift(Q)}else(Q=ae(ut))&&(X==="field"?$t.unshift(Q):Ut[ct]=Q)}ht&&Object.defineProperty(ht,Ot.name,Ut),st=!0}function Gt(et,lt,_t){for(var Ot=arguments.length>2,$t=0;$t0&&It[It.length-1])&&(ht[0]===6||ht[0]===2)){_t=0;continue}if(ht[0]===3&&(!It||ht[1]>It[0]&&ht[1]=et.length&&(et=void 0),{value:et&&et[Ot++],done:!et}}};throw new TypeError(lt?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dt(et,lt){var _t=typeof Symbol=="function"&&et[Symbol.iterator];if(!_t)return et;var Ot=_t.call(et),$t,It=[],ae;try{for(;(lt===void 0||lt-- >0)&&!($t=Ot.next()).done;)It.push($t.value)}catch(X){ae={error:X}}finally{try{$t&&!$t.done&&(_t=Ot.return)&&_t.call(Ot)}finally{if(ae)throw ae.error}}return It}function Se(){for(var et=[],lt=0;lt1||X(st,xt)})})}function X(st,xt){try{ct(Ot[st](xt))}catch(H){Q(It[0][3],H)}}function ct(st){st.value instanceof Xe?Promise.resolve(st.value.v).then(ht,Ut):Q(It[0][2],st)}function ht(st){X("next",st)}function Ut(st){X("throw",st)}function Q(st,xt){st(xt),It.shift(),It.length&&X(It[0][0],It[0][1])}}function ln(et){var lt,_t;return lt={},Ot("next"),Ot("throw",function($t){throw $t}),Ot("return"),lt[Symbol.iterator]=function(){return this},lt;function Ot($t,It){lt[$t]=et[$t]?function(ae){return(_t=!_t)?{value:Xe(et[$t](ae)),done:!1}:It?It(ae):ae}:It}}function $e(et){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var lt=et[Symbol.asyncIterator],_t;return lt?lt.call(et):(et=typeof Tt=="function"?Tt(et):et[Symbol.iterator](),_t={},Ot("next"),Ot("throw"),Ot("return"),_t[Symbol.asyncIterator]=function(){return this},_t);function Ot(It){_t[It]=et[It]&&function(ae){return new Promise(function(X,ct){ae=et[It](ae),$t(X,ct,ae.done,ae.value)})}}function $t(It,ae,X,ct){Promise.resolve(ct).then(function(ht){It({value:ht,done:X})},ae)}}function Be(et,lt){return Object.defineProperty?Object.defineProperty(et,"raw",{value:lt}):et.raw=lt,et}var cn=Object.create?function(et,lt){Object.defineProperty(et,"default",{enumerable:!0,value:lt})}:function(et,lt){et.default=lt};function _e(et){if(et&&et.__esModule)return et;var lt={};if(et!=null)for(var _t in et)_t!=="default"&&Object.prototype.hasOwnProperty.call(et,_t)&&jt(lt,et,_t);return cn(lt,et),lt}function Me(et){return et&&et.__esModule?et:{default:et}}function gn(et,lt,_t,Ot){if(_t==="a"&&!Ot)throw new TypeError("Private accessor was defined without a getter");if(typeof lt=="function"?et!==lt||!Ot:!lt.has(et))throw new TypeError("Cannot read private member from an object whose class did not declare it");return _t==="m"?Ot:_t==="a"?Ot.call(et):Ot?Ot.value:lt.get(et)}function Dn(et,lt,_t,Ot,$t){if(Ot==="m")throw new TypeError("Private method is not writable");if(Ot==="a"&&!$t)throw new TypeError("Private accessor was defined without a setter");if(typeof lt=="function"?et!==lt||!$t:!lt.has(et))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ot==="a"?$t.call(et,_t):$t?$t.value=_t:lt.set(et,_t),_t}function Qn(et,lt){if(lt===null||typeof lt!="object"&&typeof lt!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof et=="function"?lt===et:et.has(lt)}function un(et,lt,_t){if(lt!=null){if(typeof lt!="object"&&typeof lt!="function")throw new TypeError("Object expected.");var Ot;if(_t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Ot=lt[Symbol.asyncDispose]}if(Ot===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Ot=lt[Symbol.dispose]}if(typeof Ot!="function")throw new TypeError("Object not disposable.");et.stack.push({value:lt,dispose:Ot,async:_t})}else _t&&et.stack.push({async:!0});return lt}var yn=typeof SuppressedError=="function"?SuppressedError:function(et,lt,_t){var Ot=new Error(_t);return Ot.name="SuppressedError",Ot.error=et,Ot.suppressed=lt,Ot};function vt(et){function lt(Ot){et.error=et.hasError?new yn(Ot,et.error,"An error was suppressed during disposal."):Ot,et.hasError=!0}function _t(){for(;et.stack.length;){var Ot=et.stack.pop();try{var $t=Ot.dispose&&Ot.dispose.call(Ot.value);if(Ot.async)return Promise.resolve($t).then(_t,function(It){return lt(It),_t()})}catch(It){lt(It)}}if(et.hasError)throw et.error}return _t()}var Yt={__extends:Rt,__assign:be,__rest:We,__decorate:te,__param:ge,__metadata:Zt,__awaiter:ue,__generator:ie,__createBinding:jt,__exportStar:Lt,__values:Tt,__read:Dt,__spread:Se,__spreadArrays:ke,__spreadArray:Qe,__await:Xe,__asyncGenerator:qe,__asyncDelegator:ln,__asyncValues:$e,__makeTemplateObject:Be,__importStar:_e,__importDefault:Me,__classPrivateFieldGet:gn,__classPrivateFieldSet:Dn,__classPrivateFieldIn:Qn,__addDisposableResource:un,__disposeResources:vt}}}]); +}()); \ No newline at end of file diff --git a/9295.2fcd0b6c.async.js b/9295.2fcd0b6c.async.js new file mode 100644 index 00000000..f22c6185 --- /dev/null +++ b/9295.2fcd0b6c.async.js @@ -0,0 +1,17 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9295],{26396:function(le,I){var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};I.Z=t},92933:function(le,I){var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};I.Z=t},96818:function(le,I){var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};I.Z=t},90656:function(le,I,t){t.d(I,{Z:function(){return j}});var o=t(93264),v=t(79685),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M789 610.3c-38.7-12.9-90.7-32.7-148.5-53.6 34.8-60.3 62.5-129 80.7-203.6H530.5v-68.6h233.6v-38.3H530.5V132h-95.4c-16.7 0-16.7 16.5-16.7 16.5v97.8H182.2v38.3h236.3v68.6H223.4v38.3h378.4a667.18 667.18 0 01-54.5 132.9c-122.8-40.4-253.8-73.2-336.1-53-52.6 13-86.5 36.1-106.5 60.3-91.4 111-25.9 279.6 167.2 279.6C386 811.2 496 747.6 581.2 643 708.3 704 960 808.7 960 808.7V659.4s-31.6-2.5-171-49.1zM253.9 746.6c-150.5 0-195-118.3-120.6-183.1 24.8-21.9 70.2-32.6 94.4-35 89.4-8.8 172.2 25.2 269.9 72.8-68.8 89.5-156.3 145.3-243.7 145.3z"}}]},name:"alipay",theme:"outlined"},Z=O,P=t(64507),h=function(U,D){return v.createElement(P.Z,(0,o.Z)((0,o.Z)({},U),{},{ref:D,icon:Z}))};h.displayName="AlipayOutlined";var j=v.forwardRef(h)},49726:function(le,I,t){t.d(I,{Z:function(){return j}});var o=t(93264),v=t(79685),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},Z=O,P=t(64507),h=function(U,D){return v.createElement(P.Z,(0,o.Z)((0,o.Z)({},U),{},{ref:D,icon:Z}))};h.displayName="DingdingOutlined";var j=v.forwardRef(h)},51851:function(le,I,t){t.d(I,{Z:function(){return j}});var o=t(93264),v=t(79685),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168.5 273.7a68.7 68.7 0 10137.4 0 68.7 68.7 0 10-137.4 0zm730 79.2s-23.7-184.4-426.9-70.1c17.3-30 25.6-49.5 25.6-49.5L396.4 205s-40.6 132.6-113 194.4c0 0 70.1 40.6 69.4 39.4 20.1-20.1 38.2-40.6 53.7-60.4 16.1-7 31.5-13.6 46.7-19.8-18.6 33.5-48.7 83.8-78.8 115.6l42.4 37s28.8-27.7 60.4-61.2h36v61.8H372.9v49.5h140.3v118.5c-1.7 0-3.6 0-5.4-.2-15.4-.7-39.5-3.3-49-18.2-11.5-18.1-3-51.5-2.4-71.9h-97l-3.4 1.8s-35.5 159.1 102.3 155.5c129.1 3.6 203-36 238.6-63.1l14.2 52.6 79.6-33.2-53.9-131.9-64.6 20.1 12.1 45.2c-16.6 12.4-35.6 21.7-56.2 28.4V561.3h137.1v-49.5H628.1V450h137.6v-49.5H521.3c17.6-21.4 31.5-41.1 35-53.6l-42.5-11.6c182.8-65.5 284.5-54.2 283.6 53.2v282.8s10.8 97.1-100.4 90.1l-60.2-12.9-14.2 57.1S882.5 880 903.7 680.2c21.3-200-5.2-327.3-5.2-327.3zm-707.4 18.3l-45.4 69.7 83.6 52.1s56 28.5 29.4 81.9C233.8 625.5 112 736.3 112 736.3l109 68.1c75.4-163.7 70.5-142 89.5-200.7 19.5-60.1 23.7-105.9-9.4-139.1-42.4-42.6-47-46.6-110-93.4z"}}]},name:"taobao",theme:"outlined"},Z=O,P=t(64507),h=function(U,D){return v.createElement(P.Z,(0,o.Z)((0,o.Z)({},U),{},{ref:D,icon:Z}))};h.displayName="TaobaoOutlined";var j=v.forwardRef(h)},86734:function(le,I,t){t.d(I,{Z:function(){return j}});var o=t(93264),v=t(79685),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},Z=O,P=t(64507),h=function(U,D){return v.createElement(P.Z,(0,o.Z)((0,o.Z)({},U),{},{ref:D,icon:Z}))};h.displayName="UploadOutlined";var j=v.forwardRef(h)},32678:function(le,I,t){var o=t(21137),v=t(79685),O=t(96818),Z=t(83317),P=function(j,N){return v.createElement(Z.Z,(0,o.Z)({},j,{ref:N,icon:O.Z}))};I.Z=v.forwardRef(P)},35122:function(le,I,t){var o=t(93264),v=t(57963),O=t(98787),Z=t(5745),P=t(27097),h=t(79714),j=t(89259),N=t(79685),U=t(46821),D=t(25393),te=t(63342),se=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],k=["children","space","valuePropName"],H={space:P.Z,group:h.Z.Group};function W(m){var d=arguments.length<=1?void 0:arguments[1];return d&&d.target&&m in d.target?d.target[m]:d}var F=function(d){var V=d.children,T=d.value,B=T===void 0?[]:T,M=d.valuePropName,x=d.onChange,E=d.fieldProps,R=d.space,G=d.type,C=G===void 0?"space":G,Ne=d.transform,$e=d.convertValue,Oe=d.lightProps,at=(0,O.Z)(d,se),We=(0,Z.J)(function(X,xe){var A,ie=(0,v.Z)(B);ie[xe]=W(M||"value",X),x==null||x(ie),E==null||(A=E.onChange)===null||A===void 0||A.call(E,ie)}),Be=-1,Ze=(0,j.Z)(V).map(function(X){if(N.isValidElement(X)){var xe,A,ie;Be+=1;var Ee=Be,Qe=(X==null||(xe=X.type)===null||xe===void 0?void 0:xe.displayName)==="ProFormComponent"||(X==null||(A=X.props)===null||A===void 0?void 0:A.readonly),it=Qe?(0,o.Z)((0,o.Z)({key:Ee,ignoreFormItem:!0},X.props||{}),{},{fieldProps:(0,o.Z)((0,o.Z)({},X==null||(ie=X.props)===null||ie===void 0?void 0:ie.fieldProps),{},{onChange:function(){We(arguments.length<=0?void 0:arguments[0],Ee)}}),value:B==null?void 0:B[Ee],onChange:void 0}):(0,o.Z)((0,o.Z)({key:Ee},X.props||{}),{},{value:B==null?void 0:B[Ee],onChange:function(De){var Re,lt;We(De,Ee),(Re=(lt=X.props).onChange)===null||Re===void 0||Re.call(lt,De)}});return N.cloneElement(X,it)}return X}),ze=H[C],Xe=(0,D.zx)(at),Je=Xe.RowWrapper,be=(0,N.useMemo)(function(){return(0,o.Z)({},C==="group"?{compact:!0}:{})},[C]),Ye=(0,N.useCallback)(function(X){var xe=X.children;return(0,te.jsx)(ze,(0,o.Z)((0,o.Z)((0,o.Z)({},be),R),{},{align:"start",wrap:!0,children:xe}))},[ze,R,be]);return(0,te.jsx)(Je,{Wrapper:Ye,children:Ze})},ae=N.forwardRef(function(m,d){var V=m.children,T=m.space,B=m.valuePropName,M=(0,O.Z)(m,k);return(0,N.useImperativeHandle)(d,function(){return{}}),(0,te.jsx)(F,(0,o.Z)((0,o.Z)((0,o.Z)({space:T,valuePropName:B},M.fieldProps),{},{onChange:void 0},M),{},{children:V}))}),K=(0,U.G)(ae);I.Z=K},5754:function(le,I,t){var o=t(93264),v=t(98787),O=t(92879),Z=t(79685),P=t(77204),h=t(81468),j=t(63342),N=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],U=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],D=function(F,ae){var K=F.fieldProps,m=F.children,d=F.params,V=F.proFieldProps,T=F.mode,B=F.valueEnum,M=F.request,x=F.showSearch,E=F.options,R=(0,v.Z)(F,N),G=(0,Z.useContext)(P.Z);return(0,j.jsx)(h.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,O.h)(B),request:M,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({options:E,mode:T,showSearch:x,getPopupContainer:G.getPopupContainer},K),ref:ae,proFieldProps:V},R),{},{children:m}))},te=Z.forwardRef(function(W,F){var ae=W.fieldProps,K=W.children,m=W.params,d=W.proFieldProps,V=W.mode,T=W.valueEnum,B=W.request,M=W.options,x=(0,v.Z)(W,U),E=(0,o.Z)({options:M,mode:V||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},ae),R=(0,Z.useContext)(P.Z);return(0,j.jsx)(h.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,O.h)(T),request:B,params:m,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({getPopupContainer:R.getPopupContainer},E),ref:F,proFieldProps:d},x),{},{children:K}))}),se=Z.forwardRef(D),k=te,H=se;H.SearchSelect=k,H.displayName="ProFormComponent",I.Z=H},30869:function(le,I,t){var o=t(89342),v=t(93264),O=t(98787),Z=t(46501),P=t(73952),h=t(8262),j=t(12869),N=t(79685),U=t(81468),D=t(63342),te=["fieldProps","proFieldProps"],se=["fieldProps","proFieldProps"],k="text",H=function(m){var d=m.fieldProps,V=m.proFieldProps,T=(0,O.Z)(m,te);return(0,D.jsx)(U.Z,(0,v.Z)({valueType:k,fieldProps:d,filedConfig:{valueType:k},proFieldProps:V},T))},W=function(m){var d=(0,Z.Z)(m.open||!1,{value:m.open,onChange:m.onOpenChange}),V=(0,o.Z)(d,2),T=V[0],B=V[1];return(0,D.jsx)(P.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(x){var E,R=x.getFieldValue(m.name||[]);return(0,D.jsx)(h.Z,(0,v.Z)((0,v.Z)({getPopupContainer:function(C){return C&&C.parentNode?C.parentNode:C},onOpenChange:B,content:(0,D.jsxs)("div",{style:{padding:"4px 0"},children:[(E=m.statusRender)===null||E===void 0?void 0:E.call(m,R),m.strengthText?(0,D.jsx)("div",{style:{marginTop:10},children:(0,D.jsx)("span",{children:m.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},m.popoverProps),{},{open:T,children:m.children}))}})},F=function(m){var d=m.fieldProps,V=m.proFieldProps,T=(0,O.Z)(m,se),B=(0,N.useState)(!1),M=(0,o.Z)(B,2),x=M[0],E=M[1];return d!=null&&d.statusRender&&T.name?(0,D.jsx)(W,{name:T.name,statusRender:d==null?void 0:d.statusRender,popoverProps:d==null?void 0:d.popoverProps,strengthText:d==null?void 0:d.strengthText,open:x,onOpenChange:E,children:(0,D.jsx)(U.Z,(0,v.Z)({valueType:"password",fieldProps:(0,v.Z)((0,v.Z)({},(0,j.Z)(d,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(G){var C;d==null||(C=d.onBlur)===null||C===void 0||C.call(d,G),E(!1)},onClick:function(G){var C;d==null||(C=d.onClick)===null||C===void 0||C.call(d,G),E(!0)}}),proFieldProps:V,filedConfig:{valueType:k}},T))}):(0,D.jsx)(U.Z,(0,v.Z)({valueType:"password",fieldProps:d,proFieldProps:V,filedConfig:{valueType:k}},T))},ae=H;ae.Password=F,ae.displayName="ProFormComponent",I.Z=ae},43602:function(le,I,t){var o=t(93264),v=t(98787),O=t(79685),Z=t(81468),P=t(63342),h=["fieldProps","proFieldProps"],j=function(U,D){var te=U.fieldProps,se=U.proFieldProps,k=(0,v.Z)(U,h);return(0,P.jsx)(Z.Z,(0,o.Z)({ref:D,valueType:"textarea",fieldProps:te,proFieldProps:se},k))};I.Z=O.forwardRef(j)},66197:function(le,I,t){t.d(I,{A:function(){return M}});var o=t(93264),v=t(73952),O=t(79685),Z=t(29927),P=t(43901),h=t(6346),j=t(89342),N=t(60190),U=t(46501),D=t(89869),te=t(89543),se=t(27097),k=t(68591),H=t.n(k),W=t(77204),F=t(25393),ae=t(33298),K=function(E){var R;return(0,h.Z)({},E.componentCls,{"&-title":{marginBlockEnd:E.marginXL,fontWeight:"bold"},"&-container":(0,h.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(E.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(R={display:"block",width:"100%"},(0,h.Z)(R,"".concat(E.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,h.Z)(R,"".concat(E.componentCls,"-container"),{paddingInlineStart:16}),(0,h.Z)(R,"".concat(E.antCls,"-space-item,").concat(E.antCls,"-form-item"),{width:"100%"}),(0,h.Z)(R,"".concat(E.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),R)})};function m(x){return(0,ae.Xj)("ProFormGroup",function(E){var R=(0,o.Z)((0,o.Z)({},E),{},{componentCls:".".concat(x)});return[K(R)]})}var d=t(63342),V=O.forwardRef(function(x,E){var R=O.useContext(W.Z),G=R.groupProps,C=(0,o.Z)((0,o.Z)({},G),x),Ne=C.children,$e=C.collapsible,Oe=C.defaultCollapsed,at=C.style,We=C.labelLayout,Be=C.title,Ze=Be===void 0?x.label:Be,ze=C.tooltip,Xe=C.align,Je=Xe===void 0?"start":Xe,be=C.direction,Ye=C.size,X=Ye===void 0?32:Ye,xe=C.titleStyle,A=C.titleRender,ie=C.spaceProps,Ee=C.extra,Qe=C.autoFocus,it=(0,U.Z)(function(){return Oe||!1},{value:x.collapsed,onChange:x.onCollapse}),qe=(0,j.Z)(it,2),De=qe[0],Re=qe[1],lt=(0,O.useContext)(te.ZP.ConfigContext),St=lt.getPrefixCls,st=(0,F.zx)(x),$t=st.ColWrapper,ft=st.RowWrapper,Te=St("pro-form-group"),It=m(Te),wt=It.wrapSSR,ke=It.hashId,gt=$e&&(0,d.jsx)(N.Z,{style:{marginInlineEnd:8},rotate:De?void 0:90}),ht=(0,d.jsx)(D.G,{label:gt?(0,d.jsxs)("div",{children:[gt,Ze]}):Ze,tooltip:ze}),yt=(0,O.useCallback)(function(Me){var He=Me.children;return(0,d.jsx)(se.Z,(0,o.Z)((0,o.Z)({},ie),{},{className:H()("".concat(Te,"-container ").concat(ke),ie==null?void 0:ie.className),size:X,align:Je,direction:be,style:(0,o.Z)({rowGap:0},ie==null?void 0:ie.style),children:He}))},[Je,Te,be,ke,X,ie]),Pt=A?A(ht,x):ht,_e=(0,O.useMemo)(function(){var Me=[],He=O.Children.toArray(Ne).map(function(Se,Dt){var ct;return O.isValidElement(Se)&&Se!==null&&Se!==void 0&&(ct=Se.props)!==null&&ct!==void 0&&ct.hidden?(Me.push(Se),null):Dt===0&&O.isValidElement(Se)&&Qe?O.cloneElement(Se,(0,o.Z)((0,o.Z)({},Se.props),{},{autoFocus:Qe})):Se});return[(0,d.jsx)(ft,{Wrapper:yt,children:He},"children"),Me.length>0?(0,d.jsx)("div",{style:{display:"none"},children:Me}):null]},[Ne,ft,yt,Qe]),Ct=(0,j.Z)(_e,2),Zt=Ct[0],Et=Ct[1];return wt((0,d.jsx)($t,{children:(0,d.jsxs)("div",{className:H()(Te,ke,(0,h.Z)({},"".concat(Te,"-twoLine"),We==="twoLine")),style:at,ref:E,children:[Et,(Ze||ze||Ee)&&(0,d.jsx)("div",{className:"".concat(Te,"-title ").concat(ke).trim(),style:xe,onClick:function(){Re(!De)},children:Ee?(0,d.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Pt,(0,d.jsx)("span",{onClick:function(He){return He.stopPropagation()},children:Ee})]}):Pt}),(0,d.jsx)("div",{style:{display:$e&&De?"none":void 0},children:Zt})]})}))});V.displayName="ProForm-Group";var T=V,B=t(30825);function M(x){return(0,d.jsx)(Z.I,(0,o.Z)({layout:"vertical",submitter:{render:function(R,G){return G.reverse()}},contentRender:function(R,G){return(0,d.jsxs)(d.Fragment,{children:[R,G]})}},x))}M.Group=T,M.useForm=v.Z.useForm,M.Item=B.Z,M.useWatch=v.Z.useWatch,M.ErrorList=v.Z.ErrorList,M.Provider=v.Z.Provider,M.useFormInstance=v.Z.useFormInstance,M.EditOrReadOnlyContext=P.A},79586:function(le,I,t){t.d(I,{f:function(){return se}});var o=t(6346),v=t(89543),O=t(68591),Z=t.n(O),P=t(79685),h=t(34435),j=t(93264),N=t(33298),U=function(H){return(0,o.Z)({},H.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function D(k){return(0,N.Xj)("ProLayoutGridContent",function(H){var W=(0,j.Z)((0,j.Z)({},H),{},{componentCls:".".concat(k)});return[U(W)]})}var te=t(63342),se=function(H){var W=(0,P.useContext)(h.X),F=H.children,ae=H.contentWidth,K=H.className,m=H.style,d=(0,P.useContext)(v.ZP.ConfigContext),V=d.getPrefixCls,T=H.prefixCls||V("pro"),B=ae||W.contentWidth,M="".concat(T,"-grid-content"),x=D(M),E=x.wrapSSR,R=x.hashId,G=B==="Fixed"&&W.layout==="top";return E((0,te.jsx)("div",{className:Z()(M,R,K,(0,o.Z)({},"".concat(M,"-wide"),G)),style:m,children:(0,te.jsx)("div",{className:"".concat(T,"-grid-content-children ").concat(R).trim(),children:F})}))}},34435:function(le,I,t){t.d(I,{X:function(){return v}});var o=t(79685),v=(0,o.createContext)({})},89869:function(le,I,t){t.d(I,{G:function(){return ae}});var o=t(93264),v=t(6346),O=t(21137),Z=t(79685),P=t(92933),h=t(83317),j=function(m,d){return Z.createElement(h.Z,(0,O.Z)({},m,{ref:d,icon:P.Z}))},N=Z.forwardRef(j),U=t(89543),D=t(58898),te=t(68591),se=t.n(te),k=t(33298),H=function(m){return(0,v.Z)({},m.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:m.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:m.colorTextSecondary,fontWeight:"normal",fontSize:m.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function W(K){return(0,k.Xj)("LabelIconTip",function(m){var d=(0,o.Z)((0,o.Z)({},m),{},{componentCls:".".concat(K)});return[H(d)]})}var F=t(63342),ae=Z.memo(function(K){var m=K.label,d=K.tooltip,V=K.ellipsis,T=K.subTitle,B=(0,Z.useContext)(U.ZP.ConfigContext),M=B.getPrefixCls,x=M("pro-core-label-tip"),E=W(x),R=E.wrapSSR,G=E.hashId;if(!d&&!T)return(0,F.jsx)(F.Fragment,{children:m});var C=typeof d=="string"||Z.isValidElement(d)?{title:d}:d,Ne=(C==null?void 0:C.icon)||(0,F.jsx)(N,{});return R((0,F.jsxs)("div",{className:se()(x,G),onMouseDown:function(Oe){return Oe.stopPropagation()},onMouseLeave:function(Oe){return Oe.stopPropagation()},onMouseMove:function(Oe){return Oe.stopPropagation()},children:[(0,F.jsx)("div",{className:se()("".concat(x,"-title"),G,(0,v.Z)({},"".concat(x,"-title-ellipsis"),V)),children:m}),T&&(0,F.jsx)("div",{className:"".concat(x,"-subtitle ").concat(G).trim(),children:T}),d&&(0,F.jsx)(D.Z,(0,o.Z)((0,o.Z)({},C),{},{children:(0,F.jsx)("span",{className:"".concat(x,"-icon ").concat(G).trim(),children:Ne})}))]}))})},50287:function(le,I,t){t.d(I,{Z:function(){return fn}});var o=t(79685),v=t(57963),O=t(50374),Z=t(68591),P=t.n(Z),h=t(21137),j=t(30114),N=t(51392),U=t(61926),D=t(92596),te=t(6346),se=t(98787),k=t(7623),H=t(63195),W=t(64632),F=t(55883);function ae(e,a){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(a.status,"'"),i=new Error(n);return i.status=a.status,i.method=e.method,i.url=e.action,i}function K(e){var a=e.responseText||e.response;if(!a)return a;try{return JSON.parse(a)}catch(n){return a}}function m(e){var a=new XMLHttpRequest;e.onProgress&&a.upload&&(a.upload.onprogress=function(l){l.total>0&&(l.percent=l.loaded/l.total*100),e.onProgress(l)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(c){var l=e.data[c];if(Array.isArray(l)){l.forEach(function(s){n.append("".concat(c,"[]"),s)});return}n.append(c,l)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),a.onerror=function(l){e.onError(l)},a.onload=function(){return a.status<200||a.status>=300?e.onError(ae(e,a),K(a)):e.onSuccess(K(a),a)},a.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0);var i=e.headers||{};return i["X-Requested-With"]!==null&&a.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach(function(c){i[c]!==null&&a.setRequestHeader(c,i[c])}),a.send(n),{abort:function(){a.abort()}}}var d=+new Date,V=0;function T(){return"rc-upload-".concat(d,"-").concat(++V)}var B=t(30765),M=function(e,a){if(e&&a){var n=Array.isArray(a)?a:a.split(","),i=e.name||"",c=e.type||"",l=c.replace(/\/.*$/,"");return n.some(function(s){var r=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(r.charAt(0)==="."){var p=i.toLowerCase(),u=r.toLowerCase(),f=[u];return(u===".jpg"||u===".jpeg")&&(f=[".jpg",".jpeg"]),f.some(function(S){return p.endsWith(S)})}return/\/\*$/.test(r)?l===r.replace(/\/.*$/,""):c===r?!0:/^\w+$/.test(r)?((0,B.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(r,"'.Skip for check.")),!0):!1})}return!0};function x(e,a){var n=e.createReader(),i=[];function c(){n.readEntries(function(l){var s=Array.prototype.slice.apply(l);i=i.concat(s);var r=!s.length;r?a(i):c()})}c()}var E=function(a,n,i){var c=function l(s,r){s&&(s.path=r||"",s.isFile?s.file(function(p){i(p)&&(s.fullPath&&!p.webkitRelativePath&&(Object.defineProperties(p,{webkitRelativePath:{writable:!0}}),p.webkitRelativePath=s.fullPath.replace(/^\//,""),Object.defineProperties(p,{webkitRelativePath:{writable:!1}})),n([p]))}):s.isDirectory&&x(s,function(p){p.forEach(function(u){l(u,"".concat(r).concat(s.name,"/"))})}))};a.forEach(function(l){c(l.webkitGetAsEntry())})},R=E,G=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],C=function(e){(0,U.Z)(n,e);var a=(0,D.Z)(n);function n(){var i;(0,j.Z)(this,n);for(var c=arguments.length,l=new Array(c),s=0;s{const{componentCls:a,iconCls:n}=e;return{[`${a}-wrapper`]:{[`${a}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,A.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[a]:{padding:`${(0,A.bf)(e.padding)} 0`},[`${a}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${a}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${a}-disabled):hover, + &-hover:not(${a}-disabled) + `]:{borderColor:e.colorPrimaryHover},[`p${a}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${a}-text`]:{margin:`0 0 ${(0,A.bf)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${a}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${a}-disabled`]:{[`p${a}-drag-icon ${n}, + p${a}-text, + p${a}-hint + `]:{color:e.colorTextDisabled}}}}}},it=e=>{const{componentCls:a,antCls:n,iconCls:i,fontSize:c,lineHeight:l,calc:s}=e,r=`${a}-list-item`,p=`${r}-actions`,u=`${r}-action`,f=e.fontHeightSM;return{[`${a}-wrapper`]:{[`${a}-list`]:Object.assign(Object.assign({},(0,be.dF)()),{lineHeight:e.lineHeight,[r]:{position:"relative",height:s(e.lineHeight).mul(c).equal(),marginTop:e.marginXS,fontSize:c,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${r}-name`]:Object.assign(Object.assign({},be.vS),{padding:`0 ${(0,A.bf)(e.paddingXS)}`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[p]:{[u]:{opacity:0},[`${u}${n}-btn-sm`]:{height:f,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${u}:focus-visible, + &.picture ${u} + `]:{opacity:1},[i]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${i}`]:{color:e.colorText}},[`${a}-icon ${i}`]:{color:e.colorTextDescription,fontSize:c},[`${r}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:s(c).add(e.paddingXS).equal(),fontSize:c,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${r}:hover ${u}`]:{opacity:1,color:e.colorText},[`${r}-error`]:{color:e.colorError,[`${r}-name, ${a}-icon ${i}`]:{color:e.colorError},[p]:{[`${i}, ${i}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${a}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},qe=t(16947);const De=new A.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Re=new A.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var St=e=>{const{componentCls:a}=e,n=`${a}-animate-inline`;return[{[`${a}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:De},[`${n}-leave`]:{animationName:Re}}},{[`${a}-wrapper`]:(0,qe.J$)(e)},De,Re]},st=t(32145),$t=t(73838);const ft=e=>{const{componentCls:a,iconCls:n,uploadThumbnailSize:i,uploadProgressOffset:c,calc:l}=e,s=`${a}-list`,r=`${s}-item`;return{[`${a}-wrapper`]:{[` + ${s}${s}-picture, + ${s}${s}-picture-card, + ${s}${s}-picture-circle + `]:{[r]:{position:"relative",height:l(i).add(l(e.lineWidth).mul(2)).add(l(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,A.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${r}-thumbnail`]:Object.assign(Object.assign({},be.vS),{width:i,height:i,lineHeight:(0,A.bf)(l(i).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${r}-progress`]:{bottom:c,width:`calc(100% - ${(0,A.bf)(l(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:l(i).add(e.paddingXS).equal()}},[`${r}-error`]:{borderColor:e.colorError,[`${r}-thumbnail ${n}`]:{[`svg path[fill='${st.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${st.blue.primary}']`]:{fill:e.colorError}}},[`${r}-uploading`]:{borderStyle:"dashed",[`${r}-name`]:{marginBottom:c}}},[`${s}${s}-picture-circle ${r}`]:{[`&, &::before, ${r}-thumbnail`]:{borderRadius:"50%"}}}}},Te=e=>{const{componentCls:a,iconCls:n,fontSizeLG:i,colorTextLightSolid:c,calc:l}=e,s=`${a}-list`,r=`${s}-item`,p=e.uploadPicCardSize;return{[` + ${a}-wrapper${a}-picture-card-wrapper, + ${a}-wrapper${a}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,be.dF)()),{display:"inline-block",width:"100%",[`${a}${a}-select`]:{width:p,height:p,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,A.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${a}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${a}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${s}${s}-picture-card, ${s}${s}-picture-circle`]:{[`${s}-item-container`]:{display:"inline-block",width:p,height:p,marginBlock:`0 ${(0,A.bf)(e.marginXS)}`,marginInline:`0 ${(0,A.bf)(e.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[r]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,A.bf)(l(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,A.bf)(l(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${r}:hover`]:{[`&::before, ${r}-actions`]:{opacity:1}},[`${r}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:i,margin:`0 ${(0,A.bf)(e.marginXXS)}`,fontSize:i,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${r}-actions, ${r}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new $t.C(c).setAlpha(.65).toRgbString(),"&:hover":{color:c}}},[`${r}-thumbnail, ${r}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${r}-name`]:{display:"none",textAlign:"center"},[`${r}-file + ${r}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,A.bf)(l(e.paddingXS).mul(2).equal())})`},[`${r}-uploading`]:{[`&${r}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${r}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,A.bf)(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${a}-wrapper${a}-picture-circle-wrapper`]:{[`${a}${a}-select`]:{borderRadius:"50%"}}}};var wt=e=>{const{componentCls:a}=e;return{[`${a}-rtl`]:{direction:"rtl"}}};const ke=e=>{const{componentCls:a,colorTextDisabled:n}=e;return{[`${a}-wrapper`]:Object.assign(Object.assign({},(0,be.Wf)(e)),{[a]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${a}-select`]:{display:"inline-block"},[`${a}-disabled`]:{color:n,cursor:"not-allowed"}})}},gt=e=>({actionsColor:e.colorTextDescription});var ht=(0,X.I$)("Upload",e=>{const{fontSizeHeading3:a,fontHeight:n,lineWidth:i,controlHeightLG:c,calc:l}=e,s=(0,xe.TS)(e,{uploadThumbnailSize:l(a).mul(2).equal(),uploadProgressOffset:l(l(n).div(2)).add(i).equal(),uploadPicCardSize:l(c).mul(2.55).equal()});return[ke(s),Ee(s),ft(s),Te(s),it(s),St(s),wt(s),(0,Ye.Z)(s)]},gt),yt={icon:function(a,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:a}}]}},name:"file",theme:"twotone"},Pt=yt,_e=t(83317),Ct=function(a,n){return o.createElement(_e.Z,(0,h.Z)({},a,{ref:n,icon:Pt}))},Zt=o.forwardRef(Ct),Et=t(75527),Me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},He=Me,Se=function(a,n){return o.createElement(_e.Z,(0,h.Z)({},a,{ref:n,icon:He}))},Dt=o.forwardRef(Se),ct={icon:function(a,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:a}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:a}}]}},name:"picture",theme:"twotone"},Vt=ct,Gt=function(a,n){return o.createElement(_e.Z,(0,h.Z)({},a,{ref:n,icon:Vt}))},Xt=o.forwardRef(Gt),Mt=t(96990),Jt=t(28120),Yt=t(4477),Ot=t(23196),At=t(10951);function bt(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function xt(e,a){const n=(0,v.Z)(a),i=n.findIndex(c=>{let{uid:l}=c;return l===e.uid});return i===-1?n.push(e):n[i]=e,n}function Ft(e,a){const n=e.uid!==void 0?"uid":"name";return a.filter(i=>i[n]===e[n])[0]}function Qt(e,a){const n=e.uid!==void 0?"uid":"name",i=a.filter(c=>c[n]!==e[n]);return i.length===a.length?null:i}const qt=function(){const a=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),i=a[a.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},Nt=e=>e.indexOf("image/")===0,kt=e=>{if(e.type&&!e.thumbUrl)return Nt(e.type);const a=e.thumbUrl||e.url||"",n=qt(a);return/^data:image\//.test(a)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(a)||n)},je=200;function _t(e){return new Promise(a=>{if(!e.type||!Nt(e.type)){a("");return}const n=document.createElement("canvas");n.width=je,n.height=je,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${je}px; height: ${je}px; z-index: 9999; display: none;`,document.body.appendChild(n);const i=n.getContext("2d"),c=new Image;if(c.onload=()=>{const{width:l,height:s}=c;let r=je,p=je,u=0,f=0;l>s?(p=s*(je/l),f=-(p-r)/2):(r=l*(je/s),u=-(r-p)/2),i.drawImage(c,u,f,r,p);const S=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(c.src),a(S)},c.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.onload=()=>{l.result&&(c.src=l.result)},l.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const l=new FileReader;l.onload=()=>{l.result&&a(l.result)},l.readAsDataURL(e)}else c.src=window.URL.createObjectURL(e)})}var en=t(19951),tn=t(26396),nn=function(a,n){return o.createElement(_e.Z,(0,h.Z)({},a,{ref:n,icon:tn.Z}))},rn=o.forwardRef(nn),on=t(71449),an=t(40701),ln=t(58898),sn=o.forwardRef((e,a)=>{let{prefixCls:n,className:i,style:c,locale:l,listType:s,file:r,items:p,progress:u,iconRender:f,actionIconRender:S,itemRender:w,isImgUrl:J,showPreviewIcon:ce,showRemoveIcon:fe,showDownloadIcon:ge,previewIcon:re,removeIcon:pe,downloadIcon:de,onPreview:oe,onDownload:b,onClose:ue}=e;var ne,Le;const{status:Ie}=r,[he,et]=o.useState(Ie);o.useEffect(()=>{Ie!=="removed"&&et(Ie)},[Ie]);const[ut,pt]=o.useState(!1);o.useEffect(()=>{const Y=setTimeout(()=>{pt(!0)},300);return()=>{clearTimeout(Y)}},[]);const Ke=f(r);let ye=o.createElement("div",{className:`${n}-icon`},Ke);if(s==="picture"||s==="picture-card"||s==="picture-circle")if(he==="uploading"||!r.thumbUrl&&!r.url){const Y=P()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:he!=="uploading"});ye=o.createElement("div",{className:Y},Ke)}else{const Y=J!=null&&J(r)?o.createElement("img",{src:r.thumbUrl||r.url,alt:r.name,className:`${n}-list-item-image`,crossOrigin:r.crossOrigin}):Ke,Q=P()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:J&&!J(r)});ye=o.createElement("a",{className:Q,onClick:Fe=>oe(r,Fe),href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Y)}const _=P()(`${n}-list-item`,`${n}-list-item-${he}`),tt=typeof r.linkProps=="string"?JSON.parse(r.linkProps):r.linkProps,nt=fe?S((typeof pe=="function"?pe(r):pe)||o.createElement(en.Z,null),()=>ue(r),n,l.removeFile):null,rt=ge&&he==="done"?S((typeof de=="function"?de(r):de)||o.createElement(rn,null),()=>b(r),n,l.downloadFile):null,Ue=s!=="picture-card"&&s!=="picture-circle"&&o.createElement("span",{key:"download-delete",className:P()(`${n}-list-item-actions`,{picture:s==="picture"})},rt,nt),Pe=P()(`${n}-list-item-name`),vt=r.url?[o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Pe,title:r.name},tt,{href:r.url,onClick:Y=>oe(r,Y)}),r.name),Ue]:[o.createElement("span",{key:"view",className:Pe,onClick:Y=>oe(r,Y),title:r.name},r.name),Ue],g={pointerEvents:"none",opacity:.5},ee=ce?o.createElement("a",{href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:r.url||r.thumbUrl?void 0:g,onClick:Y=>oe(r,Y),title:l.previewFile},typeof re=="function"?re(r):re||o.createElement(on.Z,null)):null,Ce=(s==="picture-card"||s==="picture-circle")&&he!=="uploading"&&o.createElement("span",{className:`${n}-list-item-actions`},ee,he==="done"&&rt,nt),{getPrefixCls:ve}=o.useContext(Ze.E_),Ae=ve(),we=o.createElement("div",{className:_},ye,vt,Ce,ut&&o.createElement(Mt.ZP,{motionName:`${Ae}-fade`,visible:he==="uploading",motionDeadline:2e3},Y=>{let{className:Q}=Y;const Fe="percent"in r?o.createElement(an.Z,Object.assign({},u,{type:"line",percent:r.percent,"aria-label":r["aria-label"],"aria-labelledby":r["aria-labelledby"]})):null;return o.createElement("div",{className:P()(`${n}-list-item-progress`,Q)},Fe)})),Tt=r.response&&typeof r.response=="string"?r.response:((ne=r.error)===null||ne===void 0?void 0:ne.statusText)||((Le=r.error)===null||Le===void 0?void 0:Le.message)||l.uploadError,mt=he==="error"?o.createElement(ln.Z,{title:Tt,getPopupContainer:Y=>Y.parentNode},we):we;return o.createElement("div",{className:P()(`${n}-list-item-container`,i),style:c,ref:a},w?w(mt,r,p,{download:b.bind(null,r),preview:oe.bind(null,r),remove:ue.bind(null,r)}):mt)});const cn=(e,a)=>{const{listType:n="text",previewFile:i=_t,onPreview:c,onDownload:l,onRemove:s,locale:r,iconRender:p,isImageUrl:u=kt,prefixCls:f,items:S=[],showPreviewIcon:w=!0,showRemoveIcon:J=!0,showDownloadIcon:ce=!1,removeIcon:fe,previewIcon:ge,downloadIcon:re,progress:pe={size:[-1,2],showInfo:!1},appendAction:de,appendActionVisible:oe=!0,itemRender:b,disabled:ue}=e,ne=(0,Jt.Z)(),[Le,Ie]=o.useState(!1);o.useEffect(()=>{n!=="picture"&&n!=="picture-card"&&n!=="picture-circle"||(S||[]).forEach(g=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(g.originFileObj instanceof File||g.originFileObj instanceof Blob)||g.thumbUrl!==void 0||(g.thumbUrl="",i&&i(g.originFileObj).then(ee=>{g.thumbUrl=ee||"",ne()}))})},[n,S,i]),o.useEffect(()=>{Ie(!0)},[]);const he=(g,ee)=>{if(c)return ee==null||ee.preventDefault(),c(g)},et=g=>{typeof l=="function"?l(g):g.url&&window.open(g.url)},ut=g=>{s==null||s(g)},pt=g=>{if(p)return p(g,n);const ee=g.status==="uploading",Ce=u&&u(g)?o.createElement(Xt,null):o.createElement(Zt,null);let ve=ee?o.createElement(Et.Z,null):o.createElement(Dt,null);return n==="picture"?ve=ee?o.createElement(Et.Z,null):Ce:(n==="picture-card"||n==="picture-circle")&&(ve=ee?r.uploading:Ce),ve},Ke=(g,ee,Ce,ve)=>{const Ae={type:"text",size:"small",title:ve,onClick:we=>{ee(),(0,Ot.l$)(g)&&g.props.onClick&&g.props.onClick(we)},className:`${Ce}-list-item-action`,disabled:ue};if((0,Ot.l$)(g)){const we=(0,Ot.Tm)(g,Object.assign(Object.assign({},g.props),{onClick:()=>{}}));return o.createElement(At.ZP,Object.assign({},Ae,{icon:we}))}return o.createElement(At.ZP,Object.assign({},Ae),o.createElement("span",null,g))};o.useImperativeHandle(a,()=>({handlePreview:he,handleDownload:et}));const{getPrefixCls:ye}=o.useContext(Ze.E_),_=ye("upload",f),tt=ye(),nt=P()(`${_}-list`,`${_}-list-${n}`),rt=(0,v.Z)(S.map(g=>({key:g.uid,file:g})));let Pe={motionDeadline:2e3,motionName:`${_}-${n==="picture-card"||n==="picture-circle"?"animate-inline":"animate"}`,keys:rt,motionAppear:Le};const vt=o.useMemo(()=>{const g=Object.assign({},(0,Yt.Z)(tt));return delete g.onAppearEnd,delete g.onEnterEnd,delete g.onLeaveEnd,g},[tt]);return n!=="picture-card"&&n!=="picture-circle"&&(Pe=Object.assign(Object.assign({},vt),Pe)),o.createElement("div",{className:nt},o.createElement(Mt.V4,Object.assign({},Pe,{component:!1}),g=>{let{key:ee,file:Ce,className:ve,style:Ae}=g;return o.createElement(sn,{key:ee,locale:r,prefixCls:_,className:ve,style:Ae,file:Ce,items:S,progress:pe,listType:n,isImgUrl:u,showPreviewIcon:w,showRemoveIcon:J,showDownloadIcon:ce,removeIcon:fe,previewIcon:ge,downloadIcon:re,iconRender:pt,actionIconRender:Ke,itemRender:b,onPreview:he,onDownload:et,onClose:ut})}),de&&o.createElement(Mt.ZP,Object.assign({},Pe,{visible:oe,forceRender:!0}),g=>{let{className:ee,style:Ce}=g;return(0,Ot.Tm)(de,ve=>({className:P()(ve.className,ee),style:Object.assign(Object.assign(Object.assign({},Ce),{pointerEvents:ee?"none":void 0}),ve.style)}))}))};var dn=o.forwardRef(cn),un=function(e,a,n,i){function c(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function r(f){try{u(i.next(f))}catch(S){s(S)}}function p(f){try{u(i.throw(f))}catch(S){s(S)}}function u(f){f.done?l(f.value):c(f.value).then(r,p)}u((i=i.apply(e,a||[])).next())})};const dt=`__LIST_IGNORE_${Date.now()}__`,pn=(e,a)=>{const{fileList:n,defaultFileList:i,onRemove:c,showUploadList:l=!0,listType:s="text",onPreview:r,onDownload:p,onChange:u,onDrop:f,previewFile:S,disabled:w,locale:J,iconRender:ce,isImageUrl:fe,progress:ge,prefixCls:re,className:pe,type:de="select",children:oe,style:b,itemRender:ue,maxCount:ne,data:Le={},multiple:Ie=!1,action:he="",accept:et="",supportServerRender:ut=!0,rootClassName:pt}=e,Ke=o.useContext(ze.Z),ye=w!=null?w:Ke,[_,tt]=(0,Be.Z)(i||[],{value:n,postState:y=>y!=null?y:[]}),[nt,rt]=o.useState("drop"),Ue=o.useRef(null);o.useMemo(()=>{const y=Date.now();(n||[]).forEach((L,q)=>{!L.uid&&!Object.isFrozen(L)&&(L.uid=`__AUTO__${y}_${q}__`)})},[n]);const Pe=(y,L,q)=>{let $=(0,v.Z)(L),z=!1;ne===1?$=$.slice(-1):ne&&(z=$.length>ne,$=$.slice(0,ne)),(0,O.flushSync)(()=>{tt($)});const me={file:y,fileList:$};q&&(me.event=q),(!z||$.some(Ve=>Ve.uid===y.uid))&&(0,O.flushSync)(()=>{u==null||u(me)})},vt=(y,L)=>un(void 0,void 0,void 0,function*(){const{beforeUpload:q,transformFile:$}=e;let z=y;if(q){const me=yield q(y,L);if(me===!1)return!1;if(delete y[dt],me===dt)return Object.defineProperty(y,dt,{value:!0,configurable:!0}),!1;typeof me=="object"&&me&&(z=me)}return $&&(z=yield $(z)),z}),g=y=>{const L=y.filter(z=>!z.file[dt]);if(!L.length)return;const q=L.map(z=>bt(z.file));let $=(0,v.Z)(_);q.forEach(z=>{$=xt(z,$)}),q.forEach((z,me)=>{let Ve=z;if(L[me].parsedFile)z.status="uploading";else{const{originFileObj:ot}=z;let Ge;try{Ge=new File([ot],ot.name,{type:ot.type})}catch(Dn){Ge=new Blob([ot],{type:ot.type}),Ge.name=ot.name,Ge.lastModifiedDate=new Date,Ge.lastModified=new Date().getTime()}Ge.uid=z.uid,Ve=Ge}Pe(Ve,$)})},ee=(y,L,q)=>{try{typeof y=="string"&&(y=JSON.parse(y))}catch(me){}if(!Ft(L,_))return;const $=bt(L);$.status="done",$.percent=100,$.response=y,$.xhr=q;const z=xt($,_);Pe($,z)},Ce=(y,L)=>{if(!Ft(L,_))return;const q=bt(L);q.status="uploading",q.percent=y.percent;const $=xt(q,_);Pe(q,$,y)},ve=(y,L,q)=>{if(!Ft(q,_))return;const $=bt(q);$.error=y,$.response=L,$.status="error";const z=xt($,_);Pe($,z)},Ae=y=>{let L;Promise.resolve(typeof c=="function"?c(y):c).then(q=>{var $;if(q===!1)return;const z=Qt(y,_);z&&(L=Object.assign(Object.assign({},y),{status:"removed"}),_==null||_.forEach(me=>{const Ve=L.uid!==void 0?"uid":"name";me[Ve]===L[Ve]&&!Object.isFrozen(me)&&(me.status="removed")}),($=Ue.current)===null||$===void 0||$.abort(L),Pe(L,z))})},we=y=>{rt(y.type),y.type==="drop"&&(f==null||f(y))};o.useImperativeHandle(a,()=>({onBatchStart:g,onSuccess:ee,onProgress:Ce,onError:ve,fileList:_,upload:Ue.current}));const{getPrefixCls:Tt,direction:mt,upload:Y}=o.useContext(Ze.E_),Q=Tt("upload",re),Fe=Object.assign(Object.assign({onBatchStart:g,onError:ve,onProgress:Ce,onSuccess:ee},e),{data:Le,multiple:Ie,action:he,accept:et,supportServerRender:ut,prefixCls:Q,disabled:ye,beforeUpload:vt,onChange:void 0});delete Fe.className,delete Fe.style,(!oe||ye)&&delete Fe.id;const Bt=`${Q}-wrapper`,[jt,zt]=ht(Q,Bt),[gn]=(0,Xe.Z)("Upload",Je.Z.Upload),{showRemoveIcon:Ht,showPreviewIcon:hn,showDownloadIcon:yn,removeIcon:Pn,previewIcon:Cn,downloadIcon:En}=typeof l=="boolean"?{}:l,On=typeof Ht=="undefined"?!ye:!!Ht,Lt=(y,L)=>l?o.createElement(dn,{prefixCls:Q,listType:s,items:_,previewFile:S,onPreview:r,onDownload:p,onRemove:Ae,showRemoveIcon:On,showPreviewIcon:hn,showDownloadIcon:yn,removeIcon:Pn,previewIcon:Cn,downloadIcon:En,iconRender:ce,locale:Object.assign(Object.assign({},gn),J),isImageUrl:fe,progress:ge,appendAction:y,appendActionVisible:L,itemRender:ue,disabled:ye}):y,Ut=P()(Bt,pe,pt,zt,Y==null?void 0:Y.className,{[`${Q}-rtl`]:mt==="rtl",[`${Q}-picture-card-wrapper`]:s==="picture-card",[`${Q}-picture-circle-wrapper`]:s==="picture-circle"}),bn=Object.assign(Object.assign({},Y==null?void 0:Y.style),b);if(de==="drag"){const y=P()(zt,Q,`${Q}-drag`,{[`${Q}-drag-uploading`]:_.some(L=>L.status==="uploading"),[`${Q}-drag-hover`]:nt==="dragover",[`${Q}-disabled`]:ye,[`${Q}-rtl`]:mt==="rtl"});return jt(o.createElement("span",{className:Ut},o.createElement("div",{className:y,style:bn,onDrop:we,onDragOver:we,onDragLeave:we},o.createElement(We,Object.assign({},Fe,{ref:Ue,className:`${Q}-btn`}),o.createElement("div",{className:`${Q}-drag-container`},oe))),Lt()))}const xn=P()(Q,`${Q}-select`,{[`${Q}-disabled`]:ye}),Kt=(y=>o.createElement("div",{className:xn,style:y},o.createElement(We,Object.assign({},Fe,{ref:Ue}))))(oe?void 0:{display:"none"});return jt(s==="picture-card"||s==="picture-circle"?o.createElement("span",{className:Ut},Lt(Kt,!!oe)):o.createElement("span",{className:Ut},Kt,Lt()))};var Wt=o.forwardRef(pn),vn=function(e,a){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(e);c{var{style:n,height:i}=e,c=vn(e,["style","height"]);return o.createElement(Wt,Object.assign({ref:a},c,{type:"drag",style:Object.assign(Object.assign({},n),{height:i})}))});const Rt=Wt;Rt.Dragger=mn,Rt.LIST_IGNORE=dt;var fn=Rt}}]); diff --git a/9336.14d62ef2.async.js b/9336.14d62ef2.async.js new file mode 100644 index 00000000..d79add8d --- /dev/null +++ b/9336.14d62ef2.async.js @@ -0,0 +1,58 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9336],{20371:function(te,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};b.default=a},50397:function(te,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0});var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};b.default=a},98737:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;const u=Z(a(56768));function Z(N){return N&&N.__esModule?N:{default:N}}const d=u;b.default=d,te.exports=d},55553:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;const u=Z(a(24868));function Z(N){return N&&N.__esModule?N:{default:N}}const d=u;b.default=d,te.exports=d},83451:function(te,b,a){"use client";"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return S}});var u=r(a(79685)),Z=j(a(68591)),d=a(32145),N=j(a(38408)),K=j(a(8285)),L=a(90453),G=a(50198);function k(i,f){(f==null||f>i.length)&&(f=i.length);for(var y=0,x=new Array(f);y=0)&&Object.prototype.propertyIsEnumerable.call(i,x)&&(y[x]=i[x])}return y}function P(i,f){if(i==null)return{};var y={},x=Object.keys(i),D,V;for(V=0;V=0)&&(y[D]=i[D]);return y}function O(i,f){return p(i)||s(i,f)||W(i,f)||v()}function W(i,f){if(i){if(typeof i=="string")return k(i,f);var y=Object.prototype.toString.call(i).slice(8,-1);if(y==="Object"&&i.constructor&&(y=i.constructor.name),y==="Map"||y==="Set")return Array.from(y);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return k(i,f)}}(0,L.setTwoToneColor)(d.blue.primary);var m=u.forwardRef(function(i,f){var y=i.className,x=i.icon,D=i.spin,V=i.rotate,pe=i.tabIndex,xe=i.onClick,Ee=i.twoToneColor,ye=C(i,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),Be=u.useContext(N.default),$e=Be.prefixCls,Ie=$e===void 0?"anticon":$e,le=Be.rootClassName,je,Me=(0,Z.default)(le,Ie,(je={},A(je,"".concat(Ie,"-").concat(x.name),!!x.name),A(je,"".concat(Ie,"-spin"),!!D||x.name==="loading"),je),y),De=pe;De===void 0&&xe&&(De=-1);var We=V?{msTransform:"rotate(".concat(V,"deg)"),transform:"rotate(".concat(V,"deg)")}:void 0,He=O((0,G.normalizeTwoToneColors)(Ee),2),ze=He[0],Se=He[1];return u.createElement("span",g(c({role:"img","aria-label":x.name},ye),{ref:f,tabIndex:De,onClick:xe,className:Me}),u.createElement(K.default,{icon:x,primaryColor:ze,secondaryColor:Se,style:We}))});m.displayName="AntdIcon",m.getTwoToneColor=L.getTwoToneColor,m.setTwoToneColor=L.setTwoToneColor;var S=m},38408:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return d}});var u=a(79685),Z=(0,u.createContext)({}),d=Z},8285:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return v}});var u=K(a(79685)),Z=a(50198);function d(c,h,g){return h in c?Object.defineProperty(c,h,{value:g,enumerable:!0,configurable:!0,writable:!0}):c[h]=g,c}function N(c){if(typeof WeakMap!="function")return null;var h=new WeakMap,g=new WeakMap;return(N=function(C){return C?g:h})(c)}function K(c,h){if(!h&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var g=N(h);if(g&&g.has(c))return g.get(c);var C={},P=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in c)if(O!=="default"&&Object.prototype.hasOwnProperty.call(c,O)){var W=P?Object.getOwnPropertyDescriptor(c,O):null;W&&(W.get||W.set)?Object.defineProperty(C,O,W):C[O]=c[O]}return C.default=c,g&&g.set(c,C),C}function L(c){for(var h=1;h=0)&&Object.prototype.propertyIsEnumerable.call(c,C)&&(g[C]=c[C])}return g}function A(c,h){if(c==null)return{};var g={},C=Object.keys(c),P,O;for(O=0;O=0)&&(g[P]=c[P]);return g}var j={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function U(c){var h=c.primaryColor,g=c.secondaryColor;j.primaryColor=h,j.secondaryColor=g||(0,Z.getSecondaryColor)(h),j.calculated=!!g}function r(){return L({},j)}var s=function(c){var h=c.icon,g=c.className,C=c.onClick,P=c.style,O=c.primaryColor,W=c.secondaryColor,m=p(c,["icon","className","onClick","style","primaryColor","secondaryColor"]),S=u.useRef(),i=j;if(O&&(i={primaryColor:O,secondaryColor:W||(0,Z.getSecondaryColor)(O)}),(0,Z.useInsertStyles)(S),(0,Z.warning)((0,Z.isIconDefinition)(h),"icon should be icon definiton, but got ".concat(h)),!(0,Z.isIconDefinition)(h))return null;var f=h;return f&&typeof f.icon=="function"&&(f=k(L({},f),{icon:f.icon(i.primaryColor,i.secondaryColor)})),(0,Z.generate)(f.icon,"svg-".concat(f.name),k(L({className:g,onClick:C,style:P,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{ref:S}))};s.displayName="IconReact",s.getTwoToneColors=r,s.setTwoToneColors=U;var v=s},90453:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0});function u(r,s){for(var v in s)Object.defineProperty(r,v,{enumerable:!0,get:s[v]})}u(b,{setTwoToneColor:function(){return j},getTwoToneColor:function(){return U}});var Z=L(a(8285)),d=a(50198);function N(r,s){(s==null||s>r.length)&&(s=r.length);for(var v=0,c=new Array(s);v0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(m).reduce(function(S,i){var f=m[i];switch(i){case"class":S.className=f,delete S.class;break;default:delete S[i],S[r(i)]=f}return S},{})}function h(m,S,i){return i?L.default.createElement(m.tag,U({key:S},c(m.attrs),i),(m.children||[]).map(function(f,y){return h(f,"".concat(S,"-").concat(m.tag,"-").concat(y))})):L.default.createElement(m.tag,U({key:S},c(m.attrs)),(m.children||[]).map(function(f,y){return h(f,"".concat(S,"-").concat(m.tag,"-").concat(y))}))}function g(m){return(0,Z.generate)(m)[0]}function C(m){return m?Array.isArray(m)?m:[m]:[]}var P={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},O=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,W=function(m){var S=(0,L.useContext)(G.default),i=S.csp,f=S.prefixCls,y=O;f&&(y=y.replace(/anticon/g,f)),(0,L.useEffect)(function(){var x=m.current,D=(0,N.getShadowRoot)(x);(0,d.updateCSS)(y,"@ant-design-icons",{prepend:!0,csp:i,attachTo:D})},[])}},20802:function(te,b,a){"use strict";a.d(b,{S:function(){return C}});var u=a(93264),Z=a(6346),d=a(63195),N=a(98787),K=a(30650),L=a(89543),G=a(68591),k=a.n(G),p=a(12869),A=a(79685),j=a(50374),U=a(34435),r=a(33298),s=function(O){return(0,Z.Z)({},O.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,r.uK)(O.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(O.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:O.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:O.colorText},"&-right":{color:O.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function v(P){return(0,r.Xj)("ProLayoutFooterToolbar",function(O){var W=(0,u.Z)((0,u.Z)({},O),{},{componentCls:".".concat(P)});return[s(W)]})}function c(P,O){var W=O.stylish;return(0,r.Xj)("ProLayoutFooterToolbarStylish",function(m){var S=(0,u.Z)((0,u.Z)({},m),{},{componentCls:".".concat(P)});return W?[(0,Z.Z)({},"".concat(S.componentCls),W==null?void 0:W(S))]:[]})}var h=a(63342),g=["children","className","extra","portalDom","style","renderContent"],C=function(O){var W=O.children,m=O.className,S=O.extra,i=O.portalDom,f=i===void 0?!0:i,y=O.style,x=O.renderContent,D=(0,N.Z)(O,g),V=(0,A.useContext)(L.ZP.ConfigContext),pe=V.getPrefixCls,xe=V.getTargetContainer,Ee=O.prefixCls||pe("pro"),ye="".concat(Ee,"-footer-bar"),Be=v(ye),$e=Be.wrapSSR,Ie=Be.hashId,le=(0,A.useContext)(U.X),je=(0,A.useMemo)(function(){var Se=le.hasSiderMenu,Ke=le.isMobile,Ue=le.siderWidth;if(Se)return Ue?Ke?"100%":"calc(100% - ".concat(Ue,"px)"):"100%"},[le.collapsed,le.hasSiderMenu,le.isMobile,le.siderWidth]),Me=(0,A.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,d.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,d.Z)(document))===void 0?null:(xe==null?void 0:xe())||document.body},[]),De=c("".concat(ye,".").concat(ye,"-stylish"),{stylish:O.stylish}),We=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"".concat(ye,"-left ").concat(Ie).trim(),children:S}),(0,h.jsx)("div",{className:"".concat(ye,"-right ").concat(Ie).trim(),children:W})]});(0,A.useEffect)(function(){return!le||!(le!=null&&le.setHasFooterToolbar)?function(){}:(le==null||le.setHasFooterToolbar(!0),function(){var Se;le==null||(Se=le.setHasFooterToolbar)===null||Se===void 0||Se.call(le,!1)})},[]);var He=(0,h.jsx)("div",(0,u.Z)((0,u.Z)({className:k()(m,Ie,ye,(0,Z.Z)({},"".concat(ye,"-stylish"),!!O.stylish)),style:(0,u.Z)({width:je},y)},(0,p.Z)(D,["prefixCls"])),{},{children:x?x((0,u.Z)((0,u.Z)((0,u.Z)({},O),le),{},{leftWidth:je}),We):We})),ze=!(0,K.j)()||!f||!Me?He:(0,j.createPortal)(He,Me,ye);return De.wrapSSR($e((0,h.jsx)(A.Fragment,{children:ze},ye)))}},79586:function(te,b,a){"use strict";a.d(b,{f:function(){return U}});var u=a(6346),Z=a(89543),d=a(68591),N=a.n(d),K=a(79685),L=a(34435),G=a(93264),k=a(33298),p=function(s){return(0,u.Z)({},s.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function A(r){return(0,k.Xj)("ProLayoutGridContent",function(s){var v=(0,G.Z)((0,G.Z)({},s),{},{componentCls:".".concat(r)});return[p(v)]})}var j=a(63342),U=function(s){var v=(0,K.useContext)(L.X),c=s.children,h=s.contentWidth,g=s.className,C=s.style,P=(0,K.useContext)(Z.ZP.ConfigContext),O=P.getPrefixCls,W=s.prefixCls||O("pro"),m=h||v.contentWidth,S="".concat(W,"-grid-content"),i=A(S),f=i.wrapSSR,y=i.hashId,x=m==="Fixed"&&v.layout==="top";return f((0,j.jsx)("div",{className:N()(S,y,g,(0,u.Z)({},"".concat(S,"-wide"),x)),style:C,children:(0,j.jsx)("div",{className:"".concat(W,"-grid-content-children ").concat(y).trim(),children:c})}))}},89336:function(te,b,a){"use strict";a.d(b,{_z:function(){return Yt}});var u=a(6346),Z=a(98787),d=a(93264),N=a(63195),K=a(56671),L=a(55095),G=a(91509),k=a(89543),p=a(79685),A=a(68591),j=a.n(A),U=a(58718),r=a(3139),s=a(57963),v=a(54272);function c(t){let e;const n=l=>()=>{e=null,t.apply(void 0,(0,s.Z)(l))},o=function(){if(e==null){for(var l=arguments.length,w=new Array(l),I=0;I{v.Z.cancel(e),e=null},o}var h=c,g=a(99248),C=a(44244);const P=t=>{const{componentCls:e}=t;return{[e]:{position:"fixed",zIndex:t.zIndexPopup}}},O=t=>({zIndexPopup:t.zIndexBase+10});var W=(0,C.I$)("Affix",P,O);function m(t){return t!==window?t.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function S(t,e,n){if(n!==void 0&&e.top>t.top-n)return n+e.top}function i(t,e,n){if(n!==void 0&&e.bottom{var n;const{style:o,offsetTop:l,offsetBottom:w,prefixCls:I,className:R,rootClassName:ne,children:z,target:_,onChange:H}=t,{getPrefixCls:re,getTargetContainer:Y}=p.useContext(g.E_),F=re("affix",I),[J,E]=p.useState(!1),[B,M]=p.useState(),[ae,q]=p.useState(),$=p.useRef(x.None),Q=p.useRef(null),de=p.useRef(),X=p.useRef(null),se=p.useRef(null),fe=p.useRef(null),oe=(n=_!=null?_:Y)!==null&&n!==void 0?n:y,Ce=w===void 0&&l===void 0?0:l,Oe=()=>{if($.current!==x.Prepare||!se.current||!X.current||!oe)return;const ce=oe();if(ce){const ie={status:x.None},ee=m(X.current);if(ee.top===0&&ee.left===0&&ee.width===0&&ee.height===0)return;const Ne=m(ce),we=S(ee,Ne,Ce),Pe=i(ee,Ne,w);we!==void 0?(ie.affixStyle={position:"fixed",top:we,width:ee.width,height:ee.height},ie.placeholderStyle={width:ee.width,height:ee.height}):Pe!==void 0&&(ie.affixStyle={position:"fixed",bottom:Pe,width:ee.width,height:ee.height},ie.placeholderStyle={width:ee.width,height:ee.height}),ie.lastAffix=!!ie.affixStyle,J!==ie.lastAffix&&(H==null||H(ie.lastAffix)),$.current=ie.status,M(ie.affixStyle),q(ie.placeholderStyle),E(ie.lastAffix)}},ge=()=>{var ce;$.current=x.Prepare,Oe()},ve=h(()=>{ge()}),he=h(()=>{if(oe&&B){const ce=oe();if(ce&&X.current){const ie=m(ce),ee=m(X.current),Ne=S(ee,ie,Ce),we=i(ee,ie,w);if(Ne!==void 0&&B.top===Ne||we!==void 0&&B.bottom===we)return}}ge()}),be=()=>{const ce=oe==null?void 0:oe();ce&&(f.forEach(ie=>{var ee;de.current&&((ee=Q.current)===null||ee===void 0||ee.removeEventListener(ie,de.current)),ce==null||ce.addEventListener(ie,he)}),Q.current=ce,de.current=he)},Te=()=>{fe.current&&(clearTimeout(fe.current),fe.current=null);const ce=oe==null?void 0:oe();f.forEach(ie=>{var ee;ce==null||ce.removeEventListener(ie,he),de.current&&((ee=Q.current)===null||ee===void 0||ee.removeEventListener(ie,de.current))}),ve.cancel(),he.cancel()};p.useImperativeHandle(e,()=>({updatePosition:ve})),p.useEffect(()=>(fe.current=setTimeout(be),()=>Te()),[]),p.useEffect(()=>{be()},[_,B]),p.useEffect(()=>{ve()},[_,l,w]);const[ue,me]=W(F),Re=j()(ne,me,F),Ae=j()({[Re]:B});let Fe=(0,r.Z)(t,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return ue(p.createElement(U.Z,{onResize:ve},p.createElement("div",Object.assign({style:o,className:R,ref:X},Fe),B&&p.createElement("div",{style:ae,"aria-hidden":"true"}),p.createElement("div",{className:Ae,ref:se,style:B},p.createElement(U.Z,{onResize:ve},z)))))}),pe=a(34435),xe=a(20802),Ee=a(79586),ye=a(89342),Be=a(98737),$e=a.n(Be),Ie=a(55553),le=a.n(Ie),je=a(89259),Me=a(55883),De=a(23196),We=a(13795),He=a(35131);const ze=t=>{let{children:e}=t;const{getPrefixCls:n}=p.useContext(g.E_),o=n("breadcrumb");return p.createElement("li",{className:`${o}-separator`,"aria-hidden":"true"},e===""?e:e||"/")};ze.__ANT_BREADCRUMB_SEPARATOR=!0;var Se=ze,Ke=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);le[l]||o)}function Je(t,e,n,o){if(n==null)return null;const{className:l,onClick:w}=e,I=Ke(e,["className","onClick"]),R=Object.assign(Object.assign({},(0,Me.Z)(I,{data:!0,aria:!0})),{onClick:w});return o!==void 0?p.createElement("a",Object.assign({},R,{className:j()(`${t}-link`,l),href:o}),n):p.createElement("span",Object.assign({},R,{className:j()(`${t}-link`,l)}),n)}function dt(t,e){return(o,l,w,I,R)=>{if(e)return e(o,l,w,I);const ne=Ue(o,l);return Je(t,o,ne,R)}}var Ve=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l{const{prefixCls:e,separator:n="/",children:o,menu:l,overlay:w,dropdownProps:I,href:R}=t,z=(_=>{if(l||w){const H=Object.assign({},I);if(l){const re=l||{},{items:Y}=re,F=Ve(re,["items"]);H.menu=Object.assign(Object.assign({},F),{items:Y==null?void 0:Y.map((J,E)=>{var{key:B,title:M,label:ae,path:q}=J,$=Ve(J,["key","title","label","path"]);let Q=ae!=null?ae:M;return q&&(Q=p.createElement("a",{href:`${R}${q}`},Q)),Object.assign(Object.assign({},$),{key:B!=null?B:E,label:Q})})})}else w&&(H.overlay=w);return p.createElement(He.Z,Object.assign({placement:"bottom"},H),p.createElement("span",{className:`${e}-overlay-link`},_,p.createElement(We.Z,null)))}return _})(o);return z!=null?p.createElement(p.Fragment,null,p.createElement("li",null,z),n&&p.createElement(Se,null,n)):null},et=t=>{const{prefixCls:e,children:n,href:o}=t,l=Ve(t,["prefixCls","children","href"]),{getPrefixCls:w}=p.useContext(g.E_),I=w("breadcrumb",e);return p.createElement(qe,Object.assign({},l,{prefixCls:I}),Je(I,l,n,o))};et.__ANT_BREADCRUMB_ITEM=!0;var st=et,tt=a(26477),nt=a(4614),ft=a(25830);const vt=t=>{const{componentCls:e,iconCls:n,calc:o}=t;return{[e]:Object.assign(Object.assign({},(0,nt.Wf)(t)),{color:t.itemColor,fontSize:t.fontSize,[n]:{fontSize:t.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:t.linkColor,transition:`color ${t.motionDurationMid}`,padding:`0 ${(0,tt.bf)(t.paddingXXS)}`,borderRadius:t.borderRadiusSM,height:t.fontHeight,display:"inline-block",marginInline:o(t.marginXXS).mul(-1).equal(),"&:hover":{color:t.linkHoverColor,backgroundColor:t.colorBgTextHover}},(0,nt.Qy)(t)),["li:last-child"]:{color:t.lastItemColor},[`${e}-separator`]:{marginInline:t.separatorMargin,color:t.separatorColor},[`${e}-link`]:{[` + > ${n} + span, + > ${n} + a + `]:{marginInlineStart:t.marginXXS}},[`${e}-overlay-link`]:{borderRadius:t.borderRadiusSM,height:t.fontHeight,display:"inline-block",padding:`0 ${(0,tt.bf)(t.paddingXXS)}`,marginInline:o(t.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:t.marginXXS,fontSize:t.fontSizeIcon},"&:hover":{color:t.linkHoverColor,backgroundColor:t.colorBgTextHover,a:{color:t.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${t.componentCls}-rtl`]:{direction:"rtl"}})}},mt=t=>({itemColor:t.colorTextDescription,lastItemColor:t.colorText,iconFontSize:t.fontSize,linkColor:t.colorTextDescription,linkHoverColor:t.colorText,separatorColor:t.colorTextDescription,separatorMargin:t.marginXS});var gt=(0,C.I$)("Breadcrumb",t=>{const e=(0,ft.TS)(t,{});return vt(e)},mt),rt=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l{var{breadcrumbName:I}=w,R=rt(w,["breadcrumbName"]);return Object.assign(Object.assign({},R),{title:I})})}),l}function yt(t,e){return(0,p.useMemo)(()=>t||(e?e.map(pt):null),[t,e])}var ht=function(t,e){var n={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(t);l{if(e===void 0)return e;let n=(e||"").replace(/^\//,"");return Object.keys(t).forEach(o=>{n=n.replace(`:${o}`,t[o])}),n},Ye=t=>{const{prefixCls:e,separator:n="/",style:o,className:l,rootClassName:w,routes:I,items:R,children:ne,itemRender:z,params:_={}}=t,H=ht(t,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:re,direction:Y,breadcrumb:F}=p.useContext(g.E_);let J;const E=re("breadcrumb",e),[B,M]=gt(E),ae=yt(R,I),q=dt(E,z);if(ae&&ae.length>0){const de=[],X=R||I;J=ae.map((se,fe)=>{const{path:oe,key:Ce,type:Oe,menu:ge,overlay:ve,onClick:he,className:be,separator:Te,dropdownProps:ue}=se,me=Ct(_,oe);me!==void 0&&de.push(me);const Re=Ce!=null?Ce:fe;if(Oe==="separator")return p.createElement(Se,{key:Re},Te);const Ae={},Fe=fe===ae.length-1;ge?Ae.menu=ge:ve&&(Ae.overlay=ve);let{href:ce}=se;return de.length&&me!==void 0&&(ce=`#/${de.join("/")}`),p.createElement(qe,Object.assign({key:Re},Ae,(0,Me.Z)(se,{data:!0,aria:!0}),{className:be,dropdownProps:ue,href:ce,separator:Fe?"":n,onClick:he,prefixCls:E}),q(se,_,X,de,ce))})}else if(ne){const de=(0,je.Z)(ne).length;J=(0,je.Z)(ne).map((X,se)=>{if(!X)return X;const fe=se===de-1;return(0,De.Tm)(X,{separator:fe?"":n,key:se})})}const $=j()(E,F==null?void 0:F.className,{[`${E}-rtl`]:Y==="rtl"},l,w,M),Q=Object.assign(Object.assign({},F==null?void 0:F.style),o);return B(p.createElement("nav",Object.assign({className:$,style:Q},H),p.createElement("ol",null,J)))};Ye.Item=st,Ye.Separator=Se;var bt=Ye,Ot=bt,Pt=a(61030),xt=a(27097),Ze=a(33298),at=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},St=function(e){var n,o,l;return(0,u.Z)({},e.componentCls,(0,d.Z)((0,d.Z)({},Ze.Wf===null||Ze.Wf===void 0?void 0:(0,Ze.Wf)(e)),{},(l={position:"relative",backgroundColor:e.pageHeaderBgGhost,paddingBlock:e.pageHeaderPaddingVertical+2,paddingInline:e.pageHeaderPadding,"&-no-children":{height:(n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent},"& &-has-breadcrumb":{paddingBlockStart:e.pageHeaderPaddingBreadCrumb},"& &-has-footer":{paddingBlockEnd:0},"& &-back":(0,u.Z)({marginInlineEnd:e.margin,fontSize:16,lineHeight:1,"&-button":(0,d.Z)((0,d.Z)({fontSize:16},Ze.Nd===null||Ze.Nd===void 0?void 0:(0,Ze.Nd)(e)),{},{color:e.pageHeaderColorBack,cursor:"pointer"})},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:0})},(0,u.Z)(l,"& ".concat("ant","-divider-vertical"),{height:14,marginBlock:0,marginInline:e.marginSM,verticalAlign:"middle"}),(0,u.Z)(l,"& &-breadcrumb + &-heading",{marginBlockStart:e.marginXS}),(0,u.Z)(l,"& &-heading",{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,overflow:"hidden"},"&-title":(0,d.Z)((0,d.Z)({marginInlineEnd:e.marginSM,marginBlockEnd:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderFontSizeHeaderTitle,lineHeight:e.controlHeight+"px"},at()),{},(0,u.Z)({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0,marginInlineStart:e.marginSM})),"&-avatar":(0,u.Z)({marginInlineEnd:e.marginSM},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:e.marginSM}),"&-tags":(0,u.Z)({},"".concat(e.componentCls,"-rlt &"),{float:"right"}),"&-sub-title":(0,d.Z)((0,d.Z)({marginInlineEnd:e.marginSM,color:e.colorTextSecondary,fontSize:e.pageHeaderFontSizeHeaderSubTitle,lineHeight:e.lineHeight},at()),{},(0,u.Z)({},"".concat(e.componentCls,"-rlt &"),{float:"right",marginInlineEnd:0,marginInlineStart:12})),"&-extra":(o={marginBlock:e.marginXS/2,marginInlineEnd:0,marginInlineStart:0,whiteSpace:"nowrap","> *":(0,u.Z)({"white-space":"unset"},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:e.marginSM,marginInlineStart:0})},(0,u.Z)(o,"".concat(e.componentCls,"-rlt &"),{float:"left"}),(0,u.Z)(o,"*:first-child",(0,u.Z)({},"".concat(e.componentCls,"-rlt &"),{marginInlineEnd:0})),o)}),(0,u.Z)(l,"&-content",{paddingBlockStart:e.pageHeaderPaddingContentPadding}),(0,u.Z)(l,"&-footer",{marginBlockStart:e.margin}),(0,u.Z)(l,"&-compact &-heading",{flexWrap:"wrap"}),(0,u.Z)(l,"&-wide",{maxWidth:1152,margin:"0 auto"}),(0,u.Z)(l,"&-rtl",{direction:"rtl"}),l)))};function wt(t){return(0,Ze.Xj)("ProLayoutPageHeader",function(e){var n=(0,d.Z)((0,d.Z)({},e),{},{componentCls:".".concat(t),pageHeaderBgGhost:"transparent",pageHeaderPadding:16,pageHeaderPaddingVertical:4,pageHeaderPaddingBreadCrumb:e.paddingSM,pageHeaderColorBack:e.colorTextHeading,pageHeaderFontSizeHeaderTitle:e.fontSizeHeading4,pageHeaderFontSizeHeaderSubTitle:14,pageHeaderPaddingContentPadding:e.paddingSM});return[St(n)]})}var T=a(63342),jt=function(e,n,o,l){return!o||!l?null:(0,T.jsx)("div",{className:"".concat(e,"-back ").concat(n).trim(),children:(0,T.jsx)("div",{role:"button",onClick:function(I){l==null||l(I)},className:"".concat(e,"-back-button ").concat(n).trim(),"aria-label":"back",children:o})})},Zt=function(e,n){var o;return(o=e.items)!==null&&o!==void 0&&o.length?(0,T.jsx)(Ot,(0,d.Z)((0,d.Z)({},e),{},{className:j()("".concat(n,"-breadcrumb"),e.className)})):null},It=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:n==="rtl"?(0,T.jsx)(le(),{}):(0,T.jsx)($e(),{})},Tt=function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",l=arguments.length>3?arguments[3]:void 0,w=n.title,I=n.avatar,R=n.subTitle,ne=n.tags,z=n.extra,_=n.onBack,H="".concat(e,"-heading"),re=w||R||ne||z;if(!re)return null;var Y=It(n,o),F=jt(e,l,Y,_),J=F||I||re;return(0,T.jsxs)("div",{className:H+" "+l,children:[J&&(0,T.jsxs)("div",{className:"".concat(H,"-left ").concat(l).trim(),children:[F,I&&(0,T.jsx)(Pt.C,(0,d.Z)({className:j()("".concat(H,"-avatar"),l,I.className)},I)),w&&(0,T.jsx)("span",{className:"".concat(H,"-title ").concat(l).trim(),title:typeof w=="string"?w:void 0,children:w}),R&&(0,T.jsx)("span",{className:"".concat(H,"-sub-title ").concat(l).trim(),title:typeof R=="string"?R:void 0,children:R}),ne&&(0,T.jsx)("span",{className:"".concat(H,"-tags ").concat(l).trim(),children:ne})]}),z&&(0,T.jsx)("span",{className:"".concat(H,"-extra ").concat(l).trim(),children:(0,T.jsx)(xt.Z,{children:z})})]})},Rt=function(e,n,o){return n?(0,T.jsx)("div",{className:"".concat(e,"-footer ").concat(o).trim(),children:n}):null},Nt=function(e,n,o){return(0,T.jsx)("div",{className:"".concat(e,"-content ").concat(o).trim(),children:n})},Et=function(e){var n,o,l=p.useState(!1),w=(0,ye.Z)(l,2),I=w[0],R=w[1],ne=function(ue){var me=ue.width;return R(me<768)},z=p.useContext(k.ZP.ConfigContext),_=z.getPrefixCls,H=z.direction,re=e.prefixCls,Y=e.style,F=e.footer,J=e.children,E=e.breadcrumb,B=e.breadcrumbRender,M=e.className,ae=e.contentWidth,q=e.layout,$=_("page-header",re),Q=wt($),de=Q.wrapSSR,X=Q.hashId,se=function(){return E&&!(E!=null&&E.items)&&E!==null&&E!==void 0&&E.routes&&(E.items=E.routes),E!=null&&E.items?Zt(E,$):null},fe=se(),oe=E&&"props"in E,Ce=(n=B==null?void 0:B((0,d.Z)((0,d.Z)({},e),{},{prefixCls:$}),fe))!==null&&n!==void 0?n:fe,Oe=oe?E:Ce,ge=j()($,X,M,(o={},(0,u.Z)(o,"".concat($,"-has-breadcrumb"),!!Oe),(0,u.Z)(o,"".concat($,"-has-footer"),!!F),(0,u.Z)(o,"".concat($,"-rtl"),H==="rtl"),(0,u.Z)(o,"".concat($,"-compact"),I),(0,u.Z)(o,"".concat($,"-wide"),ae==="Fixed"&&q=="top"),(0,u.Z)(o,"".concat($,"-ghost"),!0),o)),ve=Tt($,e,H,X),he=J&&Nt($,J,X),be=Rt($,F,X);return!Oe&&!ve&&!be&&!he?(0,T.jsx)("div",{className:j()(X,["".concat($,"-no-children")])}):de((0,T.jsx)(U.Z,{onResize:ne,children:(0,T.jsxs)("div",{className:ge,style:Y,children:[Oe,ve,he,be]})}))},Bt=a(43700),Mt=function(e){if(!e)return 1;var n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||1;return(window.devicePixelRatio||1)/n},Dt=function(e){var n=(0,Ze.dQ)(),o=n.token,l=e.children,w=e.style,I=e.className,R=e.markStyle,ne=e.markClassName,z=e.zIndex,_=z===void 0?9:z,H=e.gapX,re=H===void 0?212:H,Y=e.gapY,F=Y===void 0?222:Y,J=e.width,E=J===void 0?120:J,B=e.height,M=B===void 0?64:B,ae=e.rotate,q=ae===void 0?-22:ae,$=e.image,Q=e.offsetLeft,de=e.offsetTop,X=e.fontStyle,se=X===void 0?"normal":X,fe=e.fontWeight,oe=fe===void 0?"normal":fe,Ce=e.fontColor,Oe=Ce===void 0?o.colorFill:Ce,ge=e.fontSize,ve=ge===void 0?16:ge,he=e.fontFamily,be=he===void 0?"sans-serif":he,Te=e.prefixCls,ue=(0,p.useContext)(k.ZP.ConfigContext),me=ue.getPrefixCls,Re=me("pro-layout-watermark",Te),Ae=j()("".concat(Re,"-wrapper"),I),Fe=j()(Re,ne),ce=(0,p.useState)(""),ie=(0,ye.Z)(ce,2),ee=ie[0],Ne=ie[1];return(0,p.useEffect)(function(){var we=document.createElement("canvas"),Pe=we.getContext("2d"),_e=Mt(Pe),Qt="".concat((re+E)*_e,"px"),kt="".concat((F+M)*_e,"px"),Jt=Q||re/2,qt=de||F/2;if(we.setAttribute("width",Qt),we.setAttribute("height",kt),!Pe){console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");return}Pe.translate(Jt*_e,qt*_e),Pe.rotate(Math.PI/180*Number(q));var en=E*_e,ct=M*_e,ut=function(Xe){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ke=Number(ve)*_e;Pe.font="".concat(se," normal ").concat(oe," ").concat(ke,"px/").concat(ct,"px ").concat(be),Pe.fillStyle=Oe,Array.isArray(Xe)?Xe==null||Xe.forEach(function(tn,nn){return Pe.fillText(tn,0,nn*ke+Qe)}):Pe.fillText(Xe,0,Qe?Qe+ke:0),Ne(we.toDataURL())};if($){var Le=new Image;Le.crossOrigin="anonymous",Le.referrerPolicy="no-referrer",Le.src=$,Le.onload=function(){if(Pe.drawImage(Le,0,0,en,ct),Ne(we.toDataURL()),e.content){ut(e.content,Le.height+8);return}};return}if(e.content){ut(e.content);return}},[re,F,Q,de,q,se,oe,E,M,be,Oe,$,e.content,ve]),(0,T.jsxs)("div",{style:(0,d.Z)({position:"relative"},w),className:Ae,children:[l,(0,T.jsx)("div",{className:Fe,style:(0,d.Z)((0,d.Z)({zIndex:_,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(re+E,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},ee?{backgroundImage:"url('".concat(ee,"')")}:{}),R)})]})},Ht=[576,768,992,1200].map(function(t){return"@media (max-width: ".concat(t,"px)")}),Ge=(0,ye.Z)(Ht,4),ot=Ge[0],it=Ge[1],At=Ge[2],_t=Ge[3],$t=function(e){var n,o,l,w,I,R,ne,z,_,H,re,Y,F,J,E,B,M,ae,q,$,Q;return(0,u.Z)({},e.componentCls,(Q={position:"relative","&-children-container":{paddingBlockStart:0,paddingBlockEnd:(n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent,paddingInline:(o=e.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.paddingInlinePageContainerContent},"&-children-container-no-header":{paddingBlockStart:(l=e.layout)===null||l===void 0||(l=l.pageContainer)===null||l===void 0?void 0:l.paddingBlockPageContainerContent},"&-affix":(0,u.Z)({},"".concat(e.antCls,"-affix"),(0,u.Z)({},"".concat(e.componentCls,"-warp"),{backgroundColor:(w=e.layout)===null||w===void 0||(w=w.pageContainer)===null||w===void 0?void 0:w.colorBgPageContainerFixed,transition:"background-color 0.3s",boxShadow:"0 2px 8px #f0f1f2"}))},(0,u.Z)(Q,"& &-warp-page-header",(q={paddingBlockStart:((I=(R=e.layout)===null||R===void 0||(R=R.pageContainer)===null||R===void 0?void 0:R.paddingBlockPageContainerContent)!==null&&I!==void 0?I:40)/4,paddingBlockEnd:((ne=(z=e.layout)===null||z===void 0||(z=z.pageContainer)===null||z===void 0?void 0:z.paddingBlockPageContainerContent)!==null&&ne!==void 0?ne:40)/2,paddingInlineStart:(_=e.layout)===null||_===void 0||(_=_.pageContainer)===null||_===void 0?void 0:_.paddingInlinePageContainerContent,paddingInlineEnd:(H=e.layout)===null||H===void 0||(H=H.pageContainer)===null||H===void 0?void 0:H.paddingInlinePageContainerContent},(0,u.Z)(q,"& ~ ".concat(e.proComponentsCls,"-grid-content"),(0,u.Z)({},"".concat(e.proComponentsCls,"-page-container-children-content"),{paddingBlock:((re=(Y=e.layout)===null||Y===void 0||(Y=Y.pageContainer)===null||Y===void 0?void 0:Y.paddingBlockPageContainerContent)!==null&&re!==void 0?re:24)/3})),(0,u.Z)(q,"".concat(e.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((F=(J=e.layout)===null||J===void 0||(J=J.pageContainer)===null||J===void 0?void 0:J.paddingBlockPageContainerContent)!==null&&F!==void 0?F:40)/4+10}),(0,u.Z)(q,"".concat(e.antCls,"-page-header-heading"),{paddingBlockStart:((E=(B=e.layout)===null||B===void 0||(B=B.pageContainer)===null||B===void 0?void 0:B.paddingBlockPageContainerContent)!==null&&E!==void 0?E:40)/4}),(0,u.Z)(q,"".concat(e.antCls,"-page-header-footer"),{marginBlockStart:((M=(ae=e.layout)===null||ae===void 0||(ae=ae.pageContainer)===null||ae===void 0?void 0:ae.paddingBlockPageContainerContent)!==null&&M!==void 0?M:40)/4}),q)),(0,u.Z)(Q,"&-detail",(0,u.Z)({display:"flex"},ot,{display:"block"})),(0,u.Z)(Q,"&-main",{width:"100%"}),(0,u.Z)(Q,"&-row",(0,u.Z)({display:"flex",width:"100%"},it,{display:"block"})),(0,u.Z)(Q,"&-content",{flex:"auto",width:"100%"}),(0,u.Z)(Q,"&-extraContent",($={flex:"0 1 auto",minWidth:"242px",marginInlineStart:88,textAlign:"end"},(0,u.Z)($,_t,{marginInlineStart:44}),(0,u.Z)($,At,{marginInlineStart:20}),(0,u.Z)($,it,{marginInlineStart:0,textAlign:"start"}),(0,u.Z)($,ot,{marginInlineStart:0}),$)),Q))};function Wt(t,e){return(0,Ze.Xj)("ProLayoutPageContainer",function(n){var o,l=(0,d.Z)((0,d.Z)({},n),{},{componentCls:".".concat(t),layout:(0,d.Z)((0,d.Z)({},n==null?void 0:n.layout),{},{pageContainer:(0,d.Z)((0,d.Z)({},n==null||(o=n.layout)===null||o===void 0?void 0:o.pageContainer),e)})});return[$t(l)]})}function zt(t,e){var n=e.stylish;return(0,Ze.Xj)("ProLayoutPageContainerStylish",function(o){var l=(0,d.Z)((0,d.Z)({},o),{},{componentCls:".".concat(t)});return n?[(0,u.Z)({},"div".concat(l.componentCls),n==null?void 0:n(l))]:[]})}var Lt=a(97340),Ft=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","childrenContentStyle","style","prefixCls","hashId","value","breadcrumbRender"],Xt=["children","loading","className","style","footer","affixProps","token","fixedHeader","breadcrumbRender","footerToolBarProps","childrenContentStyle"];function Ut(t){return(0,N.Z)(t)==="object"?t:{spinning:t}}var Gt=function(e){var n=e.tabList,o=e.tabActiveKey,l=e.onTabChange,w=e.hashId,I=e.tabBarExtraContent,R=e.tabProps,ne=e.prefixedClassName;return Array.isArray(n)||I?(0,T.jsx)(L.Z,(0,d.Z)((0,d.Z)({className:"".concat(ne,"-tabs ").concat(w).trim(),activeKey:o,onChange:function(_){l&&l(_)},tabBarExtraContent:I,items:n==null?void 0:n.map(function(z,_){var H;return(0,d.Z)((0,d.Z)({label:z.tab},z),{},{key:((H=z.key)===null||H===void 0?void 0:H.toString())||(_==null?void 0:_.toString())})})},R),{},{children:(0,Lt.n)(G.Z,"4.23.0")<0?n==null?void 0:n.map(function(z,_){return(0,T.jsx)(L.Z.TabPane,(0,d.Z)({tab:z.tab},z),z.key||_)}):null})):null},Kt=function(e,n,o,l){return!e&&!n?null:(0,T.jsx)("div",{className:"".concat(o,"-detail ").concat(l).trim(),children:(0,T.jsx)("div",{className:"".concat(o,"-main ").concat(l).trim(),children:(0,T.jsxs)("div",{className:"".concat(o,"-row ").concat(l).trim(),children:[e&&(0,T.jsx)("div",{className:"".concat(o,"-content ").concat(l).trim(),children:e}),n&&(0,T.jsx)("div",{className:"".concat(o,"-extraContent ").concat(l).trim(),children:n})]})})})},rn=function(e){var n=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},n==null?void 0:n.breadcrumb),n==null?void 0:n.breadcrumbProps),e))})},lt=function(e){var n,o=e.title,l=e.content,w=e.pageHeaderRender,I=e.header,R=e.prefixedClassName,ne=e.extraContent,z=e.childrenContentStyle,_=e.style,H=e.prefixCls,re=e.hashId,Y=e.value,F=e.breadcrumbRender,J=(0,Z.Z)(e,Ft),E=function(){if(F)return F};if(w===!1)return null;if(w)return(0,T.jsxs)(T.Fragment,{children:[" ",w((0,d.Z)((0,d.Z)({},e),Y))]});var B=o;!o&&o!==!1&&(B=Y.title);var M=(0,d.Z)((0,d.Z)((0,d.Z)({},Y),{},{title:B},J),{},{footer:Gt((0,d.Z)((0,d.Z)({},J),{},{hashId:re,breadcrumbRender:F,prefixedClassName:R}))},I),ae=M,q=ae.breadcrumb,$=(!q||!(q!=null&&q.itemRender)&&!(q!=null&&(n=q.items)!==null&&n!==void 0&&n.length))&&!F;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(Q){return!M[Q]})&&$&&!l&&!ne?null:(0,T.jsx)(Et,(0,d.Z)((0,d.Z)({},M),{},{className:"".concat(R,"-warp-page-header ").concat(re).trim(),breadcrumb:F===!1?void 0:(0,d.Z)((0,d.Z)({},M.breadcrumb),Y.breadcrumbProps),breadcrumbRender:E(),prefixCls:H,children:(I==null?void 0:I.children)||Kt(l,ne,R,re)}))},Vt=function(e){var n,o,l,w=e.children,I=e.loading,R=I===void 0?!1:I,ne=e.className,z=e.style,_=e.footer,H=e.affixProps,re=e.token,Y=e.fixedHeader,F=e.breadcrumbRender,J=e.footerToolBarProps,E=e.childrenContentStyle,B=(0,Z.Z)(e,Xt),M=(0,p.useContext)(pe.X);(0,p.useEffect)(function(){var ue;return!M||!(M!=null&&M.setHasPageContainer)?function(){}:(M==null||(ue=M.setHasPageContainer)===null||ue===void 0||ue.call(M,function(me){return me+1}),function(){var me;M==null||(me=M.setHasPageContainer)===null||me===void 0||me.call(M,function(Re){return Re-1})})},[]);var ae=(0,p.useContext)(K.L_),q=ae.token,$=(0,p.useContext)(k.ZP.ConfigContext),Q=$.getPrefixCls,de=e.prefixCls||Q("pro"),X="".concat(de,"-page-container"),se=Wt(X,re),fe=se.wrapSSR,oe=se.hashId,Ce=zt("".concat(X,".").concat(X,"-stylish"),{stylish:e.stylish}),Oe=(0,p.useMemo)(function(){var ue;return F==!1?!1:F||(B==null||(ue=B.header)===null||ue===void 0?void 0:ue.breadcrumbRender)},[F,B==null||(n=B.header)===null||n===void 0?void 0:n.breadcrumbRender]),ge=lt((0,d.Z)((0,d.Z)({},B),{},{breadcrumbRender:Oe,ghost:!0,hashId:oe,prefixCls:void 0,prefixedClassName:X,value:M})),ve=(0,p.useMemo)(function(){if(p.isValidElement(R))return R;if(typeof R=="boolean"&&!R)return null;var ue=Ut(R);return ue.spinning?(0,T.jsx)(Bt.S,(0,d.Z)({},ue)):null},[R]),he=(0,p.useMemo)(function(){return w?(0,T.jsx)(T.Fragment,{children:(0,T.jsx)("div",{className:j()(oe,"".concat(X,"-children-container"),(0,u.Z)({},"".concat(X,"-children-container-no-header"),!ge)),style:E,children:w})}):null},[w,X,E,oe]),be=(0,p.useMemo)(function(){var ue=ve||he;if(e.waterMarkProps||M.waterMarkProps){var me=(0,d.Z)((0,d.Z)({},M.waterMarkProps),e.waterMarkProps);return(0,T.jsx)(Dt,(0,d.Z)((0,d.Z)({},me),{},{children:ue}))}return ue},[e.waterMarkProps,M.waterMarkProps,ve,he]),Te=j()(X,oe,ne,(o={},(0,u.Z)(o,"".concat(X,"-with-footer"),_),(0,u.Z)(o,"".concat(X,"-with-affix"),Y&&ge),(0,u.Z)(o,"".concat(X,"-stylish"),!!B.stylish),o));return fe(Ce.wrapSSR((0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{style:z,className:Te,children:[Y&&ge?(0,T.jsx)(V,(0,d.Z)((0,d.Z)({offsetTop:M.hasHeader&&M.fixedHeader?(l=q.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.heightLayoutHeader:1},H),{},{className:"".concat(X,"-affix ").concat(oe).trim(),children:(0,T.jsx)("div",{className:"".concat(X,"-warp ").concat(oe).trim(),children:ge})})):ge,be&&(0,T.jsx)(Ee.f,{children:be})]}),_&&(0,T.jsx)(xe.S,(0,d.Z)((0,d.Z)({stylish:B.footerStylish,prefixCls:de},J),{},{children:_}))]})))},Yt=function(e){return(0,T.jsx)(K._Y,{needDeps:!0,children:(0,T.jsx)(Vt,(0,d.Z)({},e))})},an=function(e){var n=useContext(RouteContext);return lt(_objectSpread(_objectSpread({},e),{},{hashId:"",value:n}))}},43700:function(te,b,a){"use strict";a.d(b,{S:function(){return G}});var u=a(93264),Z=a(98787),d=a(2219),N=a(79685),K=a(63342),L=["isLoading","pastDelay","timedOut","error","retry"],G=function(p){var A=p.isLoading,j=p.pastDelay,U=p.timedOut,r=p.error,s=p.retry,v=(0,Z.Z)(p,L);return(0,K.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,K.jsx)(d.Z,(0,u.Z)({size:"large"},v))})}},34435:function(te,b,a){"use strict";a.d(b,{X:function(){return Z}});var u=a(79685),Z=(0,u.createContext)({})},67236:function(te,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=a;function a(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},64514:function(te,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=a;function a(u,Z){if(!u)return!1;if(u.contains)return u.contains(Z);for(var d=Z;d;){if(d===u)return!0;d=d.parentNode}return!1}},18834:function(te,b,a){"use strict";var u=a(51055).default;Object.defineProperty(b,"__esModule",{value:!0}),b.clearContainerCache=c,b.injectCSS=U,b.removeCSS=s,b.updateCSS=h;var Z=u(a(67236)),d=u(a(64514)),N="data-rc-order",K="data-rc-priority",L="rc-util-key",G=new Map;function k(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=g.mark;return C?C.startsWith("data-")?C:"data-".concat(C):L}function p(g){if(g.attachTo)return g.attachTo;var C=document.querySelector("head");return C||document.body}function A(g){return g==="queue"?"prependQueue":g?"prepend":"append"}function j(g){return Array.from((G.get(g)||g).children).filter(function(C){return C.tagName==="STYLE"})}function U(g){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,Z.default)())return null;var P=C.csp,O=C.prepend,W=C.priority,m=W===void 0?0:W,S=A(O),i=S==="prependQueue",f=document.createElement("style");f.setAttribute(N,S),i&&m&&f.setAttribute(K,"".concat(m)),P!=null&&P.nonce&&(f.nonce=P==null?void 0:P.nonce),f.innerHTML=g;var y=p(C),x=y.firstChild;if(O){if(i){var D=j(y).filter(function(V){if(!["prepend","prependQueue"].includes(V.getAttribute(N)))return!1;var pe=Number(V.getAttribute(K)||0);return m>=pe});if(D.length)return y.insertBefore(f,D[D.length-1].nextSibling),f}y.insertBefore(f,x)}else y.appendChild(f);return f}function r(g){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=p(C);return j(P).find(function(O){return O.getAttribute(k(C))===g})}function s(g){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},P=r(g,C);if(P){var O=p(C);O.removeChild(P)}}function v(g,C){var P=G.get(g);if(!P||!(0,d.default)(document,P)){var O=U("",C),W=O.parentNode;G.set(g,W),g.removeChild(O)}}function c(){G.clear()}function h(g,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},O=p(P);v(O,P);var W=r(C,P);if(W){var m,S;if((m=P.csp)!==null&&m!==void 0&&m.nonce&&W.nonce!==((S=P.csp)===null||S===void 0?void 0:S.nonce)){var i;W.nonce=(i=P.csp)===null||i===void 0?void 0:i.nonce}return W.innerHTML!==g&&(W.innerHTML=g),W}var f=U(g,P);return f.setAttribute(k(P),C),f}},96501:function(te,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getShadowRoot=Z,b.inShadow=u;function a(d){var N;return d==null||(N=d.getRootNode)===null||N===void 0?void 0:N.call(d)}function u(d){return a(d)instanceof ShadowRoot}function Z(d){return u(d)?a(d):null}},22801:function(te,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.call=L,b.default=void 0,b.note=N,b.noteOnce=k,b.preMessage=void 0,b.resetWarned=K,b.warning=d,b.warningOnce=G;var a={},u=[],Z=b.preMessage=function(j){u.push(j)};function d(A,j){if(!1)var U}function N(A,j){if(!1)var U}function K(){a={}}function L(A,j,U){!j&&!a[U]&&(A(!1,U),a[U]=!0)}function G(A,j){L(d,A,j)}function k(A,j){L(N,A,j)}G.preMessage=Z,G.resetWarned=K,G.noteOnce=k;var p=b.default=G},51055:function(te){function b(a){return a&&a.__esModule?a:{default:a}}te.exports=b,te.exports.__esModule=!0,te.exports.default=te.exports}}]); diff --git a/9809.6053660b.async.js b/9809.6053660b.async.js new file mode 100644 index 00000000..ca9b85b3 --- /dev/null +++ b/9809.6053660b.async.js @@ -0,0 +1,27 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9809],{32942:function(Re,Ie,g){"use strict";g.d(Ie,{f:function(){return to}});var l=g(6346),he=g(7623),ie=g(64632),ye=g(98787),F=g(89342),v=g(93264),k=g(56671),ce=g(46501),m=g(79685);function de(r){var e=typeof window=="undefined",n=(0,m.useState)(function(){return e?!1:window.matchMedia(r).matches}),t=(0,F.Z)(n,2),a=t[0],i=t[1];return(0,m.useLayoutEffect)(function(){if(!e){var o=window.matchMedia(r),u=function(s){return i(s.matches)};return o.addListener(u),function(){return o.removeListener(u)}}},[r]),a}var fe={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},Ce=function(){var e=void 0;if(typeof window=="undefined")return e;var n=Object.keys(fe).find(function(t){var a=fe[t].matchMedia;return!!window.matchMedia(a).matches});return e=n,e},L=function(){var e=de(fe.md.matchMedia),n=de(fe.lg.matchMedia),t=de(fe.xxl.matchMedia),a=de(fe.xl.matchMedia),i=de(fe.sm.matchMedia),o=de(fe.xs.matchMedia),u=(0,m.useState)(Ce()),d=(0,F.Z)(u,2),s=d[0],f=d[1];return(0,m.useEffect)(function(){if(t){f("xxl");return}if(a){f("xl");return}if(n){f("lg");return}if(e){f("md");return}if(i){f("sm");return}if(o){f("xs");return}f("md")},[e,n,t,a,i,o]),s},U=g(30650);function h(r,e){var n=typeof r.pageName=="string"?r.title:e;(0,m.useEffect)(function(){(0,U.j)()&&n&&(document.title=n)},[r.title,n])}var I=g(97340),b=g(74454);function j(r){if((0,I.n)((0,b.b)(),"5.6.0")<0)return r;var e={colorGroupTitle:"groupTitleColor",radiusItem:"itemBorderRadius",radiusSubMenuItem:"subMenuItemBorderRadius",colorItemText:"itemColor",colorItemTextHover:"itemHoverColor",colorItemTextHoverHorizontal:"horizontalItemHoverColor",colorItemTextSelected:"itemSelectedColor",colorItemTextSelectedHorizontal:"horizontalItemSelectedColor",colorItemTextDisabled:"itemDisabledColor",colorDangerItemText:"dangerItemColor",colorDangerItemTextHover:"dangerItemHoverColor",colorDangerItemTextSelected:"dangerItemSelectedColor",colorDangerItemBgActive:"dangerItemActiveBg",colorDangerItemBgSelected:"dangerItemSelectedBg",colorItemBg:"itemBg",colorItemBgHover:"itemHoverBg",colorSubItemBg:"subMenuItemBg",colorItemBgActive:"itemActiveBg",colorItemBgSelected:"itemSelectedBg",colorItemBgSelectedHorizontal:"horizontalItemSelectedBg",colorActiveBarWidth:"activeBarWidth",colorActiveBarHeight:"activeBarHeight",colorActiveBarBorderSize:"activeBarBorderWidth"},n=(0,v.Z)({},r);return Object.keys(e).forEach(function(t){n[t]!==void 0&&(n[e[t]]=n[t],delete n[t])}),n}var ae=g(43600);function D(r,e){return e>>>r|e<<32-r}function w(r,e,n){return r&e^~r&n}function A(r,e,n){return r&e^r&n^e&n}function Y(r){return D(2,r)^D(13,r)^D(22,r)}function q(r){return D(6,r)^D(11,r)^D(25,r)}function K(r){return D(7,r)^D(18,r)^r>>>3}function G(r){return D(17,r)^D(19,r)^r>>>10}function xe(r,e){return r[e&15]+=G(r[e+14&15])+r[e+9&15]+K(r[e+1&15])}var me=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W,le,H,Te="0123456789abcdef";function _e(r,e){var n=(r&65535)+(e&65535),t=(r>>16)+(e>>16)+(n>>16);return t<<16|n&65535}function Oe(){W=new Array(8),le=new Array(2),H=new Array(64),le[0]=le[1]=0,W[0]=1779033703,W[1]=3144134277,W[2]=1013904242,W[3]=2773480762,W[4]=1359893119,W[5]=2600822924,W[6]=528734635,W[7]=1541459225}function Ee(){var r,e,n,t,a,i,o,u,d,s,f=new Array(16);r=W[0],e=W[1],n=W[2],t=W[3],a=W[4],i=W[5],o=W[6],u=W[7];for(var p=0;p<16;p++)f[p]=H[(p<<2)+3]|H[(p<<2)+2]<<8|H[(p<<2)+1]<<16|H[p<<2]<<24;for(var y=0;y<64;y++)d=u+q(a)+w(a,i,o)+me[y],y<16?d+=f[y]:d+=xe(f,y),s=Y(r)+A(r,e,n),u=o,o=i,i=a,a=_e(t,d),t=n,n=e,e=r,r=_e(d,s);W[0]+=r,W[1]+=e,W[2]+=n,W[3]+=t,W[4]+=a,W[5]+=i,W[6]+=o,W[7]+=u}function $e(r,e){var n,t,a=0;t=le[0]>>3&63;var i=e&63;for((le[0]+=e<<3)>29,n=0;n+63>3&63;if(H[r++]=128,r<=56)for(var e=r;e<56;e++)H[e]=0;else{for(var n=r;n<64;n++)H[n]=0;Ee();for(var t=0;t<56;t++)H[t]=0}H[56]=le[1]>>>24&255,H[57]=le[1]>>>16&255,H[58]=le[1]>>>8&255,H[59]=le[1]&255,H[60]=le[0]>>>24&255,H[61]=le[0]>>>16&255,H[62]=le[0]>>>8&255,H[63]=le[0]&255,Ee()}function We(){for(var r=0,e=new Array(32),n=0;n<8;n++)e[r++]=W[n]>>>24&255,e[r++]=W[n]>>>16&255,e[r++]=W[n]>>>8&255,e[r++]=W[n]&255;return e}function Ue(){for(var r=new String,e=0;e<8;e++)for(var n=28;n>=0;n-=4)r+=Te.charAt(W[e]>>>n&15);return r}function pn(r){return Oe(),$e(r,r.length),De(),Ue()}var Bn=pn;function tn(r){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(r)}var Lt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function At(r,e){return Dt(r)||Nt(r,e)||En(r,e)||Ht()}function Ht(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nt(r,e){var n=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var t=[],a=!0,i=!1,o,u;try{for(n=n.call(r);!(a=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));a=!0);}catch(d){i=!0,u=d}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw u}}return t}}function Dt(r){if(Array.isArray(r))return r}function Ot(r,e){var n=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(!n){if(Array.isArray(r)||(n=En(r))||e&&r&&typeof r.length=="number"){n&&(r=n);var t=0,a=function(){};return{s:a,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(s){throw s},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,u;return{s:function(){n=n.call(r)},n:function(){var s=n.next();return i=s.done,s},e:function(s){o=!0,u=s},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(o)throw u}}}}function $t(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Un(r,e){for(var n=0;nr.length)&&(e=r.length);for(var n=0,t=new Array(e);n=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function Jt(r,e){if(r==null)return{};var n={},t=Object.keys(r),a,i;for(i=0;i=0)&&(n[a]=r[a]);return n}function Vn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function be(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||n).startsWith("/")||wn(e)?e:"/".concat(n,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},nr=function(e,n){var t=e.menu,a=t===void 0?{}:t,i=e.indexRoute,o=e.path,u=o===void 0?"":o,d=e.children||[],s=a.name,f=s===void 0?e.name:s,p=a.icon,y=p===void 0?e.icon:p,Z=a.hideChildren,E=Z===void 0?e.hideChildren:Z,T=a.flatMenu,M=T===void 0?e.flatMenu:T,O=i&&Object.keys(i).join(",")!=="redirect"?[be({path:u,menu:a},i)].concat(d||[]):d,$=be({},e);if(f&&($.name=f),y&&($.icon=y),O&&O.length){if(E)return delete $.children,$;var z=_n(be(be({},n),{},{data:O}),e);if(M)return z;delete $[we]}return $},Ge=function(e){return Array.isArray(e)&&e.length>0};function _n(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=r.data,t=r.formatMessage,a=r.parentName,i=r.locale;return!n||!Array.isArray(n)?[]:n.filter(function(o){return o?Ge(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,d;return!(o==null||(u=o.menu)===null||u===void 0)&&u.name||o!=null&&o.flatMenu||!(o==null||(d=o.menu)===null||d===void 0)&&d.flatMenu?!0:o.menu!==!1}).map(function(o){var u=be(be({},o),{},{path:o.path||o.originPath});return!u.children&&u[we]&&(u.children=u[we],delete u[we]),u.unaccessible&&delete u.name,u.path==="*"&&(u.path="."),u.path==="/*"&&(u.path="."),!u.path&&u.originPath&&(u.path=u.originPath),u}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[we]||[],d=Qn(o.path,e?e.path:"/"),s=o.name,f=er(o,a||"menu"),p=f!==!1&&i!==!1&&t&&f?t({id:f,defaultMessage:s}):s,y=e.pro_layout_parentKeys,Z=y===void 0?[]:y,E=e.children,T=e.icon,M=e.flatMenu,O=e.indexRoute,$=e.routes,z=Yt(e,Lt),N=new Set([].concat(Xn(Z),Xn(o.parentKeys||[])));e.key&&N.add(e.key);var R=be(be(be({},z),{},{menu:void 0},o),{},{path:d,locale:f,key:o.key||qt(be(be({},o),{},{path:d})),pro_layout_parentKeys:Array.from(N).filter(function(S){return S&&S!=="/"})});if(p?R.name=p:delete R.name,R.menu===void 0&&delete R.menu,Ge(u)){var x=_n(be(be({},r),{},{data:u,parentName:f||""}),R);Ge(x)&&(R.children=x)}return nr(R,r)}).flat(1)}var tr=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(n){return n&&(n.name||Ge(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var t=be({},n),a=t.children||n[we]||[];if(delete t[we],Ge(a)&&!t.hideChildrenInMenu&&a.some(function(o){return o&&!!o.name})){var i=r(a);if(i.length)return be(be({},t),{},{children:i})}return be({},n)}).filter(function(n){return n})},rr=function(r){zt(n,r);var e=Ft(n);function n(){return $t(this,n),e.apply(this,arguments)}return Wt(n,[{key:"get",value:function(a){var i;try{var o=Ot(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var d=At(u.value,2),s=d[0],f=d[1],p=on(s);if(!wn(s)&&(0,ae.Bo)(p,[]).test(a)){i=f;break}}}catch(y){o.e(y)}finally{o.f()}}catch(y){i=void 0}return i}}]),n}(Pn(Map)),ar=function(e){var n=new rr,t=function a(i,o){i.forEach(function(u){var d=u.children||u[we]||[];Ge(d)&&a(d,u);var s=Qn(u.path,o?o.path:"/");n.set(on(s),u)})};return t(e),n},or=function r(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(n){var t=n.children||n[we];if(Ge(t)){var a=r(t);if(a.length)return be({},n)}var i=be({},n);return delete i[we],delete i.children,i}).filter(function(n){return n})},ir=function(e,n,t,a){var i=_n({data:e,formatMessage:t,locale:n}),o=a?or(i):tr(i),u=ar(i);return{breadcrumb:u,menuData:o}},lr=ir;function Yn(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function ln(r){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],n={};return e.forEach(function(t){var a=ln({},t);if(!(!a||!a.key)){!a.children&&a[we]&&(a.children=a[we],delete a[we]);var i=a.children||[];n[on(a.path||a.key||"/")]=ln({},a),n[a.key||a.path||"/"]=ln({},a),i&&(n=ln(ln({},n),r(i)))}}),n},dr=cr,sr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;return e.filter(function(a){if(a==="/"&&n==="/")return!0;if(a!=="/"&&a!=="/*"&&a&&!wn(a)){var i=on(a);try{if(t&&(0,ae.Bo)("".concat(i)).test(n)||(0,ae.Bo)("".concat(i),[]).test(n)||(0,ae.Bo)("".concat(i,"/(.*)")).test(n))return!0}catch(o){}}return!1}).sort(function(a,i){return a===n?10:i===n?-10:a.substr(1).split("/").length-i.substr(1).split("/").length})},vr=function(e,n,t,a){var i=dr(n),o=Object.keys(i),u=sr(o,e||"/",a);return!u||u.length<1?[]:(t||(u=[u[u.length-1]]),u.map(function(d){var s=i[d]||{pro_layout_parentKeys:"",key:""},f=new Map,p=(s.pro_layout_parentKeys||[]).map(function(y){return f.has(y)?null:(f.set(y,!0),i[y])}).filter(function(y){return y});return s.key&&p.push(s),p}).flat(1))},fr=vr,He=g(89543),Ve=g(8459),mr=g(68591),te=g.n(mr),Jn=g(12869),hr=g(30765),kn=g(85123),gr=g(4218),c=g(63342),pr=function(e){var n,t=(0,m.useContext)(k.L_),a=t.hashId,i=e.style,o=e.prefixCls,u=e.children,d=e.hasPageContainer,s=d===void 0?0:d,f=te()("".concat(o,"-content"),a,(n={},(0,l.Z)(n,"".concat(o,"-has-header"),e.hasHeader),(0,l.Z)(n,"".concat(o,"-content-has-page-container"),s>0),n)),p=e.ErrorBoundary||gr.S;return e.ErrorBoundary===!1?(0,c.jsx)(Ve.Z.Content,{className:f,style:i,children:u}):(0,c.jsx)(p,{children:(0,c.jsx)(Ve.Z.Content,{className:f,style:i,children:u})})},yr=function(){return(0,c.jsxs)("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[(0,c.jsxs)("defs",{children:[(0,c.jsxs)("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[(0,c.jsx)("stop",{stopColor:"#4285EB",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[(0,c.jsx)("stop",{stopColor:"#29CDFF",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),(0,c.jsx)("stop",{stopColor:"#0A60FF",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[(0,c.jsx)("stop",{stopColor:"#FA816E",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),(0,c.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]}),(0,c.jsxs)("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[(0,c.jsx)("stop",{stopColor:"#FA8E7D",offset:"0%"}),(0,c.jsx)("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),(0,c.jsx)("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),(0,c.jsx)("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{transform:"translate(-20.000000, -20.000000)",children:(0,c.jsx)("g",{transform:"translate(20.000000, 20.000000)",children:(0,c.jsxs)("g",{children:[(0,c.jsxs)("g",{fillRule:"nonzero",children:[(0,c.jsxs)("g",{children:[(0,c.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),(0,c.jsx)("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),(0,c.jsx)("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),(0,c.jsx)("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},xr=g(94353),un=g(69870),xn=g(21137),Cr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},br=Cr,Sr=g(83317),Zr=function(e,n){return m.createElement(Sr.Z,(0,xn.Z)({},e,{ref:n,icon:br}))},Mr=m.forwardRef(Zr),Ir=g(8262),Rr=function(){return(0,c.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},Tr=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,c.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,c.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,u){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,c.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,c.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,c.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},u):(0,c.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,c.jsxs)("a",{href:i?void 0:o.url,target:o.target,rel:"noreferrer",children:[An(o.icon),(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:o.title}),o.desc?(0,c.jsx)("span",{children:o.desc}):null]})]})},u)})})})},Ln=function(e){if(!e||!e.startsWith("http"))return!1;try{var n=new URL(e);return!!n}catch(t){return!1}},Br=function(e,n){if(e&&typeof e=="string"&&Ln(e))return(0,c.jsx)("img",{src:e,alt:"logo"});if(typeof e=="function")return e();if(e&&typeof e=="string")return(0,c.jsx)("div",{id:"avatarLogo",children:e});if(!e&&n&&typeof n=="string"){var t=n.substring(0,1);return(0,c.jsx)("div",{id:"avatarLogo",children:t})}return e},Pr=function r(e){var n=e.appList,t=e.baseClassName,a=e.hashId,i=e.itemClick;return(0,c.jsx)("div",{className:"".concat(t,"-content ").concat(a).trim(),children:(0,c.jsx)("ul",{className:"".concat(t,"-content-list ").concat(a).trim(),children:n==null?void 0:n.map(function(o,u){var d;return o!=null&&(d=o.children)!==null&&d!==void 0&&d.length?(0,c.jsxs)("div",{className:"".concat(t,"-content-list-item-group ").concat(a).trim(),children:[(0,c.jsx)("div",{className:"".concat(t,"-content-list-item-group-title ").concat(a).trim(),children:o.title}),(0,c.jsx)(r,{hashId:a,itemClick:i,appList:o==null?void 0:o.children,baseClassName:t})]},u):(0,c.jsx)("li",{className:"".concat(t,"-content-list-item ").concat(a).trim(),onClick:function(f){f.stopPropagation(),i==null||i(o)},children:(0,c.jsxs)("a",{href:i?"javascript:;":o.url,target:o.target,rel:"noreferrer",children:[Br(o.icon,o.title),(0,c.jsx)("div",{children:(0,c.jsx)("div",{children:o.title})})]})},u)})})})},je=g(33298),Er=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},"* div":je.Wf===null||je.Wf===void 0?void 0:(0,je.Wf)(e),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},jr=function(e){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:e.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:e.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:e.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:e.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:e.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:e.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},wr=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=e.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:e.borderRadius,"&:hover":{color:(t=e.layout)===null||t===void 0?void 0:t.colorTextAppListIconHover,backgroundColor:(a=e.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover},"&-active":{color:(i=e.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(o=e.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":(0,l.Z)({},"".concat(e.antCls,"-popover-arrow"),{display:"none"}),"&-simple":jr(e),"&-default":Er(e)})};function _r(r){return(0,je.Xj)("AppsLogoComponents",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[wr(n)]})}var An=function(e){return typeof e=="string"?(0,c.jsx)("img",{width:"auto",height:22,src:e,alt:"logo"}):typeof e=="function"?e():e},Hn=function(e){var n,t=e.appList,a=e.appListRender,i=e.prefixCls,o=i===void 0?"ant-pro":i,u=e.onItemClick,d=m.useRef(null),s=m.useRef(null),f="".concat(o,"-layout-apps"),p=_r(f),y=p.wrapSSR,Z=p.hashId,E=(0,m.useState)(!1),T=(0,F.Z)(E,2),M=T[0],O=T[1],$=function(S){u==null||u(S,s)},z=(0,m.useMemo)(function(){var x=t==null?void 0:t.some(function(S){return!(S!=null&&S.desc)});return x?(0,c.jsx)(Pr,{hashId:Z,appList:t,itemClick:u?$:void 0,baseClassName:"".concat(f,"-simple")}):(0,c.jsx)(Tr,{hashId:Z,appList:t,itemClick:u?$:void 0,baseClassName:"".concat(f,"-default")})},[t,f,Z]);if(!(e!=null&&(n=e.appList)!==null&&n!==void 0&&n.length))return null;var N=a?a(e==null?void 0:e.appList,z):z,R=(0,b.X)(void 0,function(x){return O(x)});return y((0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{ref:d,onClick:function(S){S.stopPropagation(),S.preventDefault()}}),(0,c.jsx)(Ir.Z,(0,v.Z)((0,v.Z)({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},R),{},{overlayClassName:"".concat(f,"-popover ").concat(Z).trim(),content:N,getPopupContainer:function(){return d.current||document.body},children:(0,c.jsx)("span",{ref:s,onClick:function(S){S.stopPropagation()},className:te()("".concat(f,"-icon"),Z,(0,l.Z)({},"".concat(f,"-icon-active"),M)),children:(0,c.jsx)(Rr,{})})}))]}))},qn=g(61030),Lr=g(27097),et=g(97034);function Ar(){return(0,c.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:(0,c.jsx)("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var Hr=function(e){var n,t,a;return(0,l.Z)({},e.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function Nr(r){return(0,je.Xj)("SiderMenuCollapsedIcon",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[Hr(n)]})}var Dr=["isMobile","collapsed"],Or=function(e){var n,t=e.isMobile,a=e.collapsed,i=(0,ye.Z)(e,Dr),o=Nr(e.className),u=o.wrapSSR,d=o.hashId;return t&&a?null:u((0,c.jsx)("div",(0,v.Z)((0,v.Z)({},i),{},{className:te()(e.className,d,(n={},(0,l.Z)(n,"".concat(e.className,"-collapsed"),a),(0,l.Z)(n,"".concat(e.className,"-is-mobile"),t),n)),children:(0,c.jsx)(Ar,{})})))},Cn=g(57963),$r=g(51392),Wr=g(30114),zr=g(52401),Fr=g(93370),bn=g(32296),Kr=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],nt=m.forwardRef(function(r,e){var n=r.className,t=r.component,a=r.viewBox,i=r.spin,o=r.rotate,u=r.tabIndex,d=r.onClick,s=r.children,f=(0,ye.Z)(r,Kr),p=m.useRef(),y=(0,zr.x1)(p,e);(0,bn.Kp)(!!(t||s),"Should have `component` prop or `children`."),(0,bn.C3)(p);var Z=m.useContext(Fr.Z),E=Z.prefixCls,T=E===void 0?"anticon":E,M=Z.rootClassName,O=te()(M,T,n),$=te()((0,l.Z)({},"".concat(T,"-spin"),!!i)),z=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,N=(0,v.Z)((0,v.Z)({},bn.vD),{},{className:$,style:z,viewBox:a});a||delete N.viewBox;var R=function(){return t?m.createElement(t,N,s):s?((0,bn.Kp)(!!a||m.Children.count(s)===1&&m.isValidElement(s)&&m.Children.only(s).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),m.createElement("svg",(0,xn.Z)({},N,{viewBox:a}),s)):null},x=u;return x===void 0&&d&&(x=-1),m.createElement("span",(0,xn.Z)({role:"img"},f,{ref:y,tabIndex:x,onClick:d,className:O}),R())});nt.displayName="AntdIcon";var Ur=nt,Gr=["type","children"],tt=new Set;function Xr(r){return!!(typeof r=="string"&&r.length&&!tt.has(r))}function Sn(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=r[e];if(Xr(n)){var t=document.createElement("script");t.setAttribute("src",n),t.setAttribute("data-namespace",n),r.length>e+1&&(t.onload=function(){Sn(r,e+1)},t.onerror=function(){Sn(r,e+1)}),tt.add(n),document.body.appendChild(t)}}function rt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.scriptUrl,n=r.extraCommonProps,t=n===void 0?{}:n;e&&typeof document!="undefined"&&typeof window!="undefined"&&typeof document.createElement=="function"&&(Array.isArray(e)?Sn(e.reverse()):Sn([e]));var a=m.forwardRef(function(i,o){var u=i.type,d=i.children,s=(0,ye.Z)(i,Gr),f=null;return i.type&&(f=m.createElement("use",{xlinkHref:"#".concat(u)})),d&&(f=d),m.createElement(Ur,(0,xn.Z)({},t,s,{ref:o}),f)});return a.displayName="Iconfont",a}function Vr(r){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(r)}var Qr=g(58898),Yr=g(57196),at=g(72026),Jr=function(e,n){var t,a,i,o,u,d,s,f=n.includes("horizontal")?(t=e.layout)===null||t===void 0?void 0:t.header:(a=e.layout)===null||a===void 0?void 0:a.sider;return(0,v.Z)((0,v.Z)((0,l.Z)({},"".concat(e.componentCls),(s={background:"transparent",color:f==null?void 0:f.colorTextMenu,border:"none"},(0,l.Z)(s,"".concat(e.componentCls,"-menu-item"),{transition:"none !important"}),(0,l.Z)(s,"".concat(e.componentCls,"-submenu-has-icon"),(0,l.Z)({},"> ".concat(e.antCls,"-menu-sub"),{paddingInlineStart:10})),(0,l.Z)(s,"".concat(e.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),(0,l.Z)(s,"".concat(e.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),(0,l.Z)(s,"".concat(e.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),(0,l.Z)(s,"&&-collapsed",(i={},(0,l.Z)(i,"".concat(e.antCls,`-menu-item, + `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,`-menu-item, + `).concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu > ").concat(e.antCls,`-menu-submenu-title, + `).concat(e.antCls,"-menu-submenu > ").concat(e.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),(0,l.Z)(i,"".concat(e.antCls,"-menu-item-group > ").concat(e.antCls,"-menu-item-group-list > ").concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,`-menu-submenu-title, + `).concat(e.antCls,"-menu-submenu-selected > ").concat(e.antCls,"-menu-submenu-title"),{backgroundColor:f==null?void 0:f.colorBgMenuItemSelected,borderRadius:e.borderRadiusLG}),(0,l.Z)(i,"".concat(e.componentCls,"-group"),(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{paddingInline:0})),i)),(0,l.Z)(s,"&-item-title",(d={display:"flex",flexDirection:"row",alignItems:"center",gap:e.marginXS},(0,l.Z)(d,"".concat(e.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),(0,l.Z)(d,"&-collapsed",(o={minWidth:40,height:40},(0,l.Z)(o,"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),(0,l.Z)(o,"".concat(e.componentCls,"-item-text-has-icon"),{display:"none !important"}),o)),(0,l.Z)(d,"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),(0,l.Z)(d,"&".concat(e.componentCls,"-group-item-title"),{gap:e.marginXS,height:18,overflow:"hidden"}),(0,l.Z)(d,"&".concat(e.componentCls,"-item-collapsed-show-title"),(0,l.Z)({lineHeight:"16px",gap:0},"&".concat(e.componentCls,"-item-title-collapsed"),(u={display:"flex"},(0,l.Z)(u,"".concat(e.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),(0,l.Z)(u,"".concat(e.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4}),u))),d)),(0,l.Z)(s,"&-group",(0,l.Z)({},"".concat(e.antCls,"-menu-item-group-title"),{fontSize:12,color:e.colorTextLabel,".anticon":{marginInlineEnd:8}})),(0,l.Z)(s,"&-group-divider",{color:e.colorTextSecondary,fontSize:12,lineHeight:20}),s)),n.includes("horizontal")?{}:(0,l.Z)({},"".concat(e.antCls,"-menu-submenu").concat(e.antCls,"-menu-submenu-popup"),(0,l.Z)({},"".concat(e.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function kr(r,e){return(0,je.Xj)("ProLayoutBaseMenu"+e,function(n){var t=(0,v.Z)((0,v.Z)({},n),{},{componentCls:".".concat(r)});return[Jr(t,e||"inline")]})}var ot=function(e){var n=(0,m.useState)(e.collapsed),t=(0,F.Z)(n,2),a=t[0],i=t[1],o=(0,m.useState)(!1),u=(0,F.Z)(o,2),d=u[0],s=u[1];return(0,m.useEffect)(function(){s(!1),setTimeout(function(){i(e.collapsed)},400)},[e.collapsed]),e.disable?e.children:(0,c.jsx)(Qr.Z,{title:e.title,open:a&&e.collapsed?d:!1,placement:"right",onOpenChange:s,children:e.children})},it=rt({scriptUrl:at.h.iconfontUrl}),lt=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",t=arguments.length>2?arguments[2]:void 0;if(typeof e=="string"&&e!==""){if(Ln(e)||Vr(e))return(0,c.jsx)("img",{width:16,src:e,alt:"icon",className:t},e);if(e.startsWith(n))return(0,c.jsx)(it,{type:e})}return e},ut=function(e){if(e&&typeof e=="string"){var n=e.substring(0,1).toUpperCase();return n}return null},qr=(0,$r.Z)(function r(e){var n=this;(0,Wr.Z)(this,r),(0,l.Z)(this,"props",void 0),(0,l.Z)(this,"getNavMenuItems",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return t.map(function(o){return n.getSubMenuOrItem(o,a,i)}).filter(function(o){return o}).flat(1)}),(0,l.Z)(this,"getSubMenuOrItem",function(t,a,i){var o=n.props,u=o.subMenuItemRender,d=o.baseClassName,s=o.prefixCls,f=o.collapsed,p=o.menu,y=o.iconPrefixes,Z=o.layout,E=(p==null?void 0:p.type)==="group"&&Z!=="top",T=n.props.token,M=n.getIntlName(t),O=(t==null?void 0:t.children)||(t==null?void 0:t.routes),$=E&&a===0?"group":void 0;if(Array.isArray(O)&&O.length>0){var z,N,R,x,S,ee,_,B=a===0||E&&a===1,V=lt(t.icon,y,"".concat(d,"-icon ").concat((z=n.props)===null||z===void 0?void 0:z.hashId)),oe=f&&B?ut(M):null,C=(0,c.jsxs)("div",{className:te()("".concat(d,"-item-title"),(N=n.props)===null||N===void 0?void 0:N.hashId,(R={},(0,l.Z)(R,"".concat(d,"-item-title-collapsed"),f),(0,l.Z)(R,"".concat(d,"-item-title-collapsed-level-").concat(i),f),(0,l.Z)(R,"".concat(d,"-group-item-title"),$==="group"),(0,l.Z)(R,"".concat(d,"-item-collapsed-show-title"),(p==null?void 0:p.collapsedShowTitle)&&f),R)),children:[$==="group"&&f?null:B&&V?(0,c.jsx)("span",{className:"".concat(d,"-item-icon ").concat((x=n.props)===null||x===void 0?void 0:x.hashId).trim(),children:V}):oe,(0,c.jsx)("span",{className:te()("".concat(d,"-item-text"),(S=n.props)===null||S===void 0?void 0:S.hashId,(0,l.Z)({},"".concat(d,"-item-text-has-icon"),$!=="group"&&B&&(V||oe))),children:M})]}),Q=u?u((0,v.Z)((0,v.Z)({},t),{},{isUrl:!1}),C,n.props):C;if(E&&a===0&&n.props.collapsed&&!p.collapsedShowGroupTitle)return n.getNavMenuItems(O,a+1,a);var ne=n.getNavMenuItems(O,a+1,E&&a===0&&n.props.collapsed?a:a+1);return[{type:$,key:t.key||t.path,label:Q,onClick:E?void 0:t.onTitleClick,children:ne,className:te()((ee={},(0,l.Z)(ee,"".concat(d,"-group"),$==="group"),(0,l.Z)(ee,"".concat(d,"-submenu"),$!=="group"),(0,l.Z)(ee,"".concat(d,"-submenu-has-icon"),$!=="group"&&B&&V),ee))},E&&a===0?{type:"divider",prefixCls:s,className:"".concat(d,"-divider"),key:(t.key||t.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:T==null||(_=T.layout)===null||_===void 0||(_=_.sider)===null||_===void 0?void 0:_.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(d,"-menu-item"),disabled:t.disabled,key:t.key||t.path,onClick:t.onTitleClick,label:n.getMenuItemPath(t,a,i)}}),(0,l.Z)(this,"getIntlName",function(t){var a=t.name,i=t.locale,o=n.props,u=o.menu,d=o.formatMessage;return i&&(u==null?void 0:u.locale)!==!1?d==null?void 0:d({id:i,defaultMessage:a}):a}),(0,l.Z)(this,"getMenuItemPath",function(t,a,i){var o,u,d,s,f,p=n.conversionPath(t.path||"/"),y=n.props,Z=y.location,E=Z===void 0?{pathname:"/"}:Z,T=y.isMobile,M=y.onCollapse,O=y.menuItemRender,$=y.iconPrefixes,z=n.getIntlName(t),N=n.props,R=N.baseClassName,x=N.menu,S=N.collapsed,ee=(x==null?void 0:x.type)==="group",_=a===0||ee&&a===1,B=_?lt(t.icon,$,"".concat(R,"-icon ").concat((o=n.props)===null||o===void 0?void 0:o.hashId)):null,V=S&&_?ut(z):null,oe=(0,c.jsxs)("div",{className:te()("".concat(R,"-item-title"),(u=n.props)===null||u===void 0?void 0:u.hashId,(d={},(0,l.Z)(d,"".concat(R,"-item-title-collapsed"),S),(0,l.Z)(d,"".concat(R,"-item-title-collapsed-level-").concat(i),S),(0,l.Z)(d,"".concat(R,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&S),d)),children:[(0,c.jsx)("span",{className:"".concat(R,"-item-icon ").concat((s=n.props)===null||s===void 0?void 0:s.hashId).trim(),style:{display:V===null&&!B?"none":""},children:B||(0,c.jsx)("span",{className:"anticon",children:V})}),(0,c.jsx)("span",{className:te()("".concat(R,"-item-text"),(f=n.props)===null||f===void 0?void 0:f.hashId,(0,l.Z)({},"".concat(R,"-item-text-has-icon"),_&&(B||V))),children:z})]},p),C=Ln(p);if(C){var Q,ne,P,re;oe=(0,c.jsxs)("span",{onClick:function(){var J,se;(J=window)===null||J===void 0||(se=J.open)===null||se===void 0||se.call(J,p,"_blank")},className:te()("".concat(R,"-item-title"),(Q=n.props)===null||Q===void 0?void 0:Q.hashId,(ne={},(0,l.Z)(ne,"".concat(R,"-item-title-collapsed"),S),(0,l.Z)(ne,"".concat(R,"-item-title-collapsed-level-").concat(i),S),(0,l.Z)(ne,"".concat(R,"-item-link"),!0),(0,l.Z)(ne,"".concat(R,"-item-collapsed-show-title"),(x==null?void 0:x.collapsedShowTitle)&&S),ne)),children:[(0,c.jsx)("span",{className:"".concat(R,"-item-icon ").concat((P=n.props)===null||P===void 0?void 0:P.hashId).trim(),style:{display:V===null&&!B?"none":""},children:B||(0,c.jsx)("span",{className:"anticon",children:V})}),(0,c.jsx)("span",{className:te()("".concat(R,"-item-text"),(re=n.props)===null||re===void 0?void 0:re.hashId,(0,l.Z)({},"".concat(R,"-item-text-has-icon"),_&&(B||V))),children:z})]},p)}if(O){var ue=(0,v.Z)((0,v.Z)({},t),{},{isUrl:C,itemPath:p,isMobile:T,replace:p===E.pathname,onClick:function(){return M&&M(!0)},children:void 0});return a===0?(0,c.jsx)(ot,{collapsed:S,title:z,disable:t.disabledTooltip,children:O(ue,oe,n.props)}):O(ue,oe,n.props)}return a===0?(0,c.jsx)(ot,{collapsed:S,title:z,disable:t.disabledTooltip,children:oe}):oe}),(0,l.Z)(this,"conversionPath",function(t){return t&&t.indexOf("http")===0?t:"/".concat(t||"").replace(/\/+/g,"/")}),this.props=e}),ea=function(e,n){var t=n.layout,a=n.collapsed,i={};return e&&!a&&["side","mix"].includes(t||"mix")&&(i={openKeys:e}),i},ct=function(e){var n,t=e.mode,a=e.className,i=e.handleOpenChange,o=e.style,u=e.menuData,d=e.prefixCls,s=e.menu,f=e.matchMenuKeys,p=e.iconfontUrl,y=e.selectedKeys,Z=e.onSelect,E=e.menuRenderType,T=e.openKeys,M=(0,m.useContext)(k.L_),O=M.dark,$=M.token,z="".concat(d,"-base-menu-").concat(t),N=(0,m.useRef)([]),R=(0,ce.Z)(s==null?void 0:s.defaultOpenAll),x=(0,F.Z)(R,2),S=x[0],ee=x[1],_=(0,ce.Z)(function(){return s!=null&&s.defaultOpenAll?(0,un.O7)(u)||[]:T===!1?!1:[]},{value:T===!1?void 0:T,onChange:i}),B=(0,F.Z)(_,2),V=B[0],oe=B[1],C=(0,ce.Z)([],{value:y,onChange:Z?function(ge){Z&&ge&&Z(ge)}:void 0}),Q=(0,F.Z)(C,2),ne=Q[0],P=Q[1];(0,m.useEffect)(function(){s!=null&&s.defaultOpenAll||T===!1||f&&(oe(f),P(f))},[f.join("-")]),(0,m.useEffect)(function(){p&&(it=rt({scriptUrl:p}))},[p]),(0,m.useEffect)(function(){if(f.join("-")!==(ne||[]).join("-")&&P(f),!S&&T!==!1&&f.join("-")!==(V||[]).join("-")){var ge=f;(s==null?void 0:s.autoClose)===!1&&(ge=Array.from(new Set([].concat((0,Cn.Z)(f),(0,Cn.Z)(V||[]))))),oe(ge)}else s!=null&&s.ignoreFlatMenu&&S?oe((0,un.O7)(u)):ee(!1)},[f.join("-")]);var re=(0,m.useMemo)(function(){return ea(V,e)},[V&&V.join(","),e.layout,e.collapsed]),ue=kr(z,t),pe=ue.wrapSSR,J=ue.hashId,se=(0,m.useMemo)(function(){return new qr((0,v.Z)((0,v.Z)({},e),{},{token:$,menuRenderType:E,baseClassName:z,hashId:J}))},[e,$,E,z,J]);if(s!=null&&s.loading)return(0,c.jsx)("div",{style:t!=null&&t.includes("inline")?{padding:24}:{marginBlockStart:16},children:(0,c.jsx)(Yr.Z,{active:!0,title:!1,paragraph:{rows:t!=null&&t.includes("inline")?6:1}})});e.openKeys===!1&&!e.handleOpenChange&&(N.current=f);var ve=e.postMenuData?e.postMenuData(u):u;return ve&&(ve==null?void 0:ve.length)<1?null:pe((0,m.createElement)(et.Z,(0,v.Z)((0,v.Z)({},re),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:t,inlineIndent:16,defaultOpenKeys:N.current,theme:O?"dark":"light",selectedKeys:ne,style:(0,v.Z)({backgroundColor:"transparent",border:"none"},o),className:te()(a,J,z,(n={},(0,l.Z)(n,"".concat(z,"-horizontal"),t==="horizontal"),(0,l.Z)(n,"".concat(z,"-collapsed"),e.collapsed),n)),items:se.getNavMenuItems(ve,0,0),onOpenChange:function(Se){e.collapsed||oe(Se)}},e.menuProps)))};function na(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,je.Xj)("ProLayoutSiderMenuStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var ta=["title","render"],ra=m.memo(function(r){return(0,c.jsx)(c.Fragment,{children:r.children})}),aa=Ve.Z.Sider,dt=Ve.Z._InternalSiderContext,oa=dt===void 0?{Provider:ra}:dt,Nn=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",t=e.logo,a=e.title,i=e.layout,o=e[n];if(o===!1)return null;var u=An(t),d=(0,c.jsx)("h1",{children:a!=null?a:"Ant Design Pro"});return o?o(u,e.collapsed?null:d,e):e.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:e.collapsed?(0,c.jsx)("a",{children:u},"title"):(0,c.jsxs)("a",{children:[u,d]},"title")},st=function(e){var n,t,a=e.collapsed,i=e.originCollapsed,o=e.fixSiderbar,u=e.menuFooterRender,d=e.onCollapse,s=e.theme,f=e.siderWidth,p=e.isMobile,y=e.onMenuHeaderClick,Z=e.breakpoint,E=Z===void 0?"lg":Z,T=e.style,M=e.layout,O=e.menuExtraRender,$=O===void 0?!1:O,z=e.links,N=e.menuContentRender,R=e.collapsedButtonRender,x=e.prefixCls,S=e.avatarProps,ee=e.rightContentRender,_=e.actionsRender,B=e.onOpenChange,V=e.stylish,oe=e.logoStyle,C=(0,m.useContext)(k.L_),Q=C.hashId,ne=(0,m.useMemo)(function(){return!(p||M==="mix")},[p,M]),P="".concat(x,"-sider"),re=64,ue=na("".concat(P,".").concat(P,"-stylish"),{stylish:V,proLayoutCollapsedWidth:re}),pe=te()("".concat(P),Q,(n={},(0,l.Z)(n,"".concat(P,"-fixed"),o),(0,l.Z)(n,"".concat(P,"-fixed-mix"),M==="mix"&&!p&&o),(0,l.Z)(n,"".concat(P,"-collapsed"),e.collapsed),(0,l.Z)(n,"".concat(P,"-layout-").concat(M),M&&!p),(0,l.Z)(n,"".concat(P,"-light"),s!=="dark"),(0,l.Z)(n,"".concat(P,"-mix"),M==="mix"&&!p),(0,l.Z)(n,"".concat(P,"-stylish"),!!V),n)),J=Nn(e),se=$&&$(e),ve=(0,m.useMemo)(function(){return N!==!1&&(0,m.createElement)(ct,(0,v.Z)((0,v.Z)({},e),{},{key:"base-menu",mode:a&&!p?"vertical":"inline",handleOpenChange:B,style:{width:"100%"},className:"".concat(P,"-menu ").concat(Q).trim()}))},[P,Q,N,B,e]),ge=(z||[]).map(function(Pe,Le){return{className:"".concat(P,"-link"),label:Pe,key:Le}}),Se=(0,m.useMemo)(function(){return N?N(e,ve):ve},[N,ve,e]),Ze=(0,m.useMemo)(function(){if(!S)return null;var Pe=S.title,Le=S.render,Ae=(0,ye.Z)(S,ta),Je=(0,c.jsxs)("div",{className:"".concat(P,"-actions-avatar"),children:[Ae!=null&&Ae.src||Ae!=null&&Ae.srcSet||Ae.icon||Ae.children?(0,c.jsx)(qn.C,(0,v.Z)({size:28},Ae)):null,S.title&&!a&&(0,c.jsx)("span",{children:Pe})]});return Le?Le(S,Je,e):Je},[S,P,a]),Me=(0,m.useMemo)(function(){return _?(0,c.jsx)(Lr.Z,{align:"center",size:4,direction:a?"vertical":"horizontal",className:te()(["".concat(P,"-actions-list"),a&&"".concat(P,"-actions-list-collapsed"),Q]),children:_==null?void 0:_(e).map(function(Pe,Le){return(0,c.jsx)("div",{className:"".concat(P,"-actions-list-item ").concat(Q).trim(),children:Pe},Le)})}):null},[_,P,a]),ze=(0,m.useMemo)(function(){return(0,c.jsx)(Hn,{onItemClick:e.itemClick,appList:e.appList,prefixCls:e.prefixCls})},[e.appList,e.prefixCls]),Fe=(0,m.useMemo)(function(){if(R===!1)return null;var Pe=(0,c.jsx)(Or,{isMobile:p,collapsed:i,className:"".concat(P,"-collapsed-button"),onClick:function(){d==null||d(!i)}});return R?R(a,Pe):Pe},[R,p,i,P,a,d]),cn=(0,m.useMemo)(function(){return!Ze&&!Me?null:(0,c.jsxs)("div",{className:te()("".concat(P,"-actions"),Q,a&&"".concat(P,"-actions-collapsed")),children:[Ze,Me]})},[Me,Ze,P,a,Q]),Xe=(0,m.useMemo)(function(){var Pe;return e!=null&&(Pe=e.menu)!==null&&Pe!==void 0&&Pe.hideMenuWhenCollapsed&&a?"".concat(P,"-hide-menu-collapsed"):null},[P,a,e==null||(t=e.menu)===null||t===void 0?void 0:t.hideMenuWhenCollapsed]),Mn=u&&(u==null?void 0:u(e)),dn=(0,c.jsxs)(c.Fragment,{children:[J&&(0,c.jsxs)("div",{className:te()([te()("".concat(P,"-logo"),Q,(0,l.Z)({},"".concat(P,"-logo-collapsed"),a))]),onClick:ne?y:void 0,id:"logo",style:oe,children:[J,ze]}),se&&(0,c.jsx)("div",{className:te()(["".concat(P,"-extra"),!J&&"".concat(P,"-extra-no-logo"),Q]),children:se}),(0,c.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Se}),(0,c.jsxs)(oa.Provider,{value:{},children:[z?(0,c.jsx)("div",{className:"".concat(P,"-links ").concat(Q).trim(),children:(0,c.jsx)(et.Z,{inlineIndent:16,className:"".concat(P,"-link-menu ").concat(Q).trim(),selectedKeys:[],openKeys:[],theme:s,mode:"inline",items:ge})}):null,ne&&(0,c.jsxs)(c.Fragment,{children:[cn,!Me&&ee?(0,c.jsx)("div",{className:te()("".concat(P,"-actions"),Q,(0,l.Z)({},"".concat(P,"-actions-collapsed"),a)),children:ee==null?void 0:ee(e)}):null]}),Mn&&(0,c.jsx)("div",{className:te()(["".concat(P,"-footer"),Q,(0,l.Z)({},"".concat(P,"-footer-collapsed"),a)]),children:Mn})]})]});return ue.wrapSSR((0,c.jsxs)(c.Fragment,{children:[o&&!p&&!Xe&&(0,c.jsx)("div",{style:(0,v.Z)({width:a?re:f,overflow:"hidden",flex:"0 0 ".concat(a?re:f,"px"),maxWidth:a?re:f,minWidth:a?re:f,transition:"all 0.2s ease 0s"},T)}),(0,c.jsxs)(aa,{collapsible:!0,trigger:null,collapsed:a,breakpoint:E===!1?void 0:E,onCollapse:function(Le){p||d==null||d(Le)},collapsedWidth:re,style:T,theme:s,width:f,className:te()(pe,Q,Xe),children:[Xe?(0,c.jsx)("div",{className:"".concat(P,"-hide-when-collapsed ").concat(Q).trim(),style:{height:"100%",width:"100%",opacity:Xe?0:1},children:dn}):dn,Fe]})]}))},ia=g(45557),la=g(58718),ua=function(e){var n,t,a,i,o;return(0,l.Z)({},e.componentCls,{"&-header-actions":{display:"flex",height:"100%","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:e.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:e.borderRadius,"&:hover":{backgroundColor:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:e.padding,paddingInlineEnd:e.padding,cursor:"pointer",color:(a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextRightActionsItem,"> div":{height:"44px",color:(i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:e.borderRadius,"&:hover":{backgroundColor:(o=e.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgRightActionsItemHover}}}}})};function ca(r){return(0,je.Xj)("ProLayoutRightContent",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ua(n)]})}var da=["rightContentRender","avatarProps","actionsRender","headerContentRender"],sa=["title","render"],vt=function(e){var n=e.rightContentRender,t=e.avatarProps,a=e.actionsRender,i=e.headerContentRender,o=(0,ye.Z)(e,da),u=(0,m.useContext)(He.ZP.ConfigContext),d=u.getPrefixCls,s="".concat(d(),"-pro-global-header"),f=ca(s),p=f.wrapSSR,y=f.hashId,Z=(0,m.useState)("auto"),E=(0,F.Z)(Z,2),T=E[0],M=E[1],O=(0,m.useMemo)(function(){if(!t)return null;var R=t.title,x=t.render,S=(0,ye.Z)(t,sa),ee=[S!=null&&S.src||S!=null&&S.srcSet||S.icon||S.children?(0,m.createElement)(qn.C,(0,v.Z)((0,v.Z)({},S),{},{size:28,key:"avatar"})):null,R?(0,c.jsx)("span",{style:{marginInlineStart:8},children:R},"name"):void 0];return x?x(t,(0,c.jsx)("div",{children:ee}),o):(0,c.jsx)("div",{children:ee})},[t]),$=a||O?function(R){var x=a&&(a==null?void 0:a(R));return!x&&!O?null:(Array.isArray(x)||(x=[x]),p((0,c.jsxs)("div",{className:"".concat(s,"-header-actions ").concat(y).trim(),children:[x.filter(Boolean).map(function(S,ee){var _=!1;if(m.isValidElement(S)){var B;_=!!(S!=null&&(B=S.props)!==null&&B!==void 0&&B["aria-hidden"])}return(0,c.jsx)("div",{className:te()("".concat(s,"-header-actions-item ").concat(y),(0,l.Z)({},"".concat(s,"-header-actions-hover"),!_)),children:S},ee)}),O&&(0,c.jsx)("span",{className:"".concat(s,"-header-actions-avatar ").concat(y).trim(),children:O})]})))}:void 0,z=(0,ia.D)(function(){var R=(0,ie.Z)((0,he.Z)().mark(function x(S){return(0,he.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:M(S);case 1:case"end":return _.stop()}},x)}));return function(x){return R.apply(this,arguments)}}(),160),N=$||n;return(0,c.jsx)("div",{className:"".concat(s,"-right-content ").concat(y).trim(),style:{minWidth:T,height:"100%"},children:(0,c.jsx)("div",{style:{height:"100%"},children:(0,c.jsx)(la.Z,{onResize:function(x){var S=x.width;z.run(S)},children:N?(0,c.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:N((0,v.Z)((0,v.Z)({},o),{},{rightContentSize:T}))}):null})})})},va=function(e){var n,t;return(0,l.Z)({},e.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":(0,l.Z)({display:"flex",alignItems:"center"},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56)-12,40),"px")}})};function fa(r){return(0,je.Xj)("ProLayoutTopNavHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[va(n)]})}var ft=function(e){var n,t,a,i,o,u,d,s=(0,m.useRef)(null),f=e.onMenuHeaderClick,p=e.contentWidth,y=e.rightContentRender,Z=e.className,E=e.style,T=e.headerContentRender,M=e.layout,O=e.actionsRender,$=(0,m.useContext)(He.ZP.ConfigContext),z=$.getPrefixCls,N=(0,m.useContext)(k.L_),R=N.dark,x="".concat(e.prefixCls||z("pro"),"-top-nav-header"),S=fa(x),ee=S.wrapSSR,_=S.hashId,B=void 0;e.menuHeaderRender!==void 0?B="menuHeaderRender":(M==="mix"||M==="top")&&(B="headerTitleRender");var V=Nn((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),B),oe=(0,m.useContext)(k.L_),C=oe.token,Q=(0,m.useMemo)(function(){var ne,P,re,ue,pe,J,se,ve,ge,Se,Ze,Me,ze,Fe=(0,c.jsx)(He.ZP,{theme:{hashed:(0,k.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:(0,v.Z)({},j({colorItemBg:((ne=C.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorBgHeader)||"transparent",colorSubItemBg:((P=C.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorBgHeader)||"transparent",radiusItem:C.borderRadius,colorItemBgSelected:((re=C.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorBgMenuItemSelected)||(C==null?void 0:C.colorBgTextHover),itemHoverBg:((ue=C.layout)===null||ue===void 0||(ue=ue.header)===null||ue===void 0?void 0:ue.colorBgMenuItemHover)||(C==null?void 0:C.colorBgTextHover),colorItemBgSelectedHorizontal:((pe=C.layout)===null||pe===void 0||(pe=pe.header)===null||pe===void 0?void 0:pe.colorBgMenuItemSelected)||(C==null?void 0:C.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((J=C.layout)===null||J===void 0||(J=J.header)===null||J===void 0?void 0:J.colorTextMenu)||(C==null?void 0:C.colorTextSecondary),colorItemTextHoverHorizontal:((se=C.layout)===null||se===void 0||(se=se.header)===null||se===void 0?void 0:se.colorTextMenuActive)||(C==null?void 0:C.colorText),colorItemTextSelectedHorizontal:((ve=C.layout)===null||ve===void 0||(ve=ve.header)===null||ve===void 0?void 0:ve.colorTextMenuSelected)||(C==null?void 0:C.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((ge=C.layout)===null||ge===void 0||(ge=ge.header)===null||ge===void 0?void 0:ge.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((Se=C.layout)===null||Se===void 0||(Se=Se.header)===null||Se===void 0?void 0:Se.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((Ze=C.layout)===null||Ze===void 0||(Ze=Ze.header)===null||Ze===void 0?void 0:Ze.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:C==null?void 0:C.colorBgElevated,subMenuItemBg:C==null?void 0:C.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:C==null?void 0:C.colorBgElevated}))},token:{colorBgElevated:((Me=C.layout)===null||Me===void 0||(Me=Me.header)===null||Me===void 0?void 0:Me.colorBgHeader)||"transparent"}},children:(0,c.jsx)(ct,(0,v.Z)((0,v.Z)((0,v.Z)({theme:R?"dark":"light"},e),{},{className:"".concat(x,"-base-menu ").concat(_).trim()},e.menuProps),{},{style:(0,v.Z)({width:"100%"},(ze=e.menuProps)===null||ze===void 0?void 0:ze.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return T?T(e,Fe):Fe},[(n=C.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(t=C.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorBgMenuItemSelected,(a=C.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgMenuItemHover,(i=C.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(o=C.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextMenuActive,(u=C.layout)===null||u===void 0||(u=u.header)===null||u===void 0?void 0:u.colorTextMenuSelected,(d=C.layout)===null||d===void 0||(d=d.header)===null||d===void 0?void 0:d.colorBgMenuElevated,C.borderRadius,C==null?void 0:C.colorBgTextHover,C==null?void 0:C.colorTextSecondary,C==null?void 0:C.colorText,C==null?void 0:C.colorTextBase,C.colorBgElevated,R,e,x,_,T]);return ee((0,c.jsx)("div",{className:te()(x,_,Z,(0,l.Z)({},"".concat(x,"-light"),!0)),style:E,children:(0,c.jsxs)("div",{ref:s,className:te()("".concat(x,"-main"),_,(0,l.Z)({},"".concat(x,"-wide"),p==="Fixed"&&M==="top")),children:[V&&(0,c.jsxs)("div",{className:te()("".concat(x,"-main-left ").concat(_)),onClick:f,children:[(0,c.jsx)(Hn,(0,v.Z)({},e)),(0,c.jsx)("div",{className:"".concat(x,"-logo ").concat(_).trim(),id:"logo",children:V},"logo")]}),(0,c.jsx)("div",{style:{flex:1},className:"".concat(x,"-menu ").concat(_).trim(),children:Q}),(y||O||e.avatarProps)&&(0,c.jsx)(vt,(0,v.Z)((0,v.Z)({rightContentRender:y},e),{},{prefixCls:x}))]})}))},ma=function(e){var n,t,a,i;return(0,l.Z)({},e.componentCls,(i={position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},(0,l.Z)(i,"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),(0,l.Z)(i,"&-collapsed-button",{minHeight:"22px",color:(t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),(0,l.Z)(i,"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorHeaderTitle)||e.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),(0,l.Z)(i,"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}),i))};function ha(r){return(0,je.Xj)("ProLayoutGlobalHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ma(n)]})}var ga=function(e,n){return e===!1?null:e?e(n,null):n},pa=function(e){var n,t=e.isMobile,a=e.logo,i=e.collapsed,o=e.onCollapse,u=e.rightContentRender,d=e.menuHeaderRender,s=e.onMenuHeaderClick,f=e.className,p=e.style,y=e.layout,Z=e.children,E=e.splitMenus,T=e.menuData,M=e.prefixCls,O=(0,m.useContext)(He.ZP.ConfigContext),$=O.getPrefixCls,z=O.direction,N="".concat(M||$("pro"),"-global-header"),R=ha(N),x=R.wrapSSR,S=R.hashId,ee=te()(f,N,S);if(y==="mix"&&!t&&E){var _=(T||[]).map(function(C){return(0,v.Z)((0,v.Z)({},C),{},{children:void 0,routes:void 0})}),B=(0,un.QX)(_);return(0,c.jsx)(ft,(0,v.Z)((0,v.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:B}))}var V=te()("".concat(N,"-logo"),S,(n={},(0,l.Z)(n,"".concat(N,"-logo-rtl"),z==="rtl"),(0,l.Z)(n,"".concat(N,"-logo-mix"),y==="mix"),(0,l.Z)(n,"".concat(N,"-logo-mobile"),t),n)),oe=(0,c.jsx)("span",{className:V,children:(0,c.jsx)("a",{children:An(a)})},"logo");return x((0,c.jsxs)("div",{className:ee,style:(0,v.Z)({},p),children:[t&&(0,c.jsx)("span",{className:"".concat(N,"-collapsed-button ").concat(S).trim(),onClick:function(){o==null||o(!i)},children:(0,c.jsx)(Mr,{})}),t&&ga(d,oe),y==="mix"&&!t&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(Hn,(0,v.Z)({},e)),(0,c.jsx)("div",{className:V,onClick:s,children:Nn((0,v.Z)((0,v.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})]}),(0,c.jsx)("div",{style:{flex:1},children:Z}),(u||e.actionsRender||e.avatarProps)&&(0,c.jsx)(vt,(0,v.Z)({rightContentRender:u},e))]}))},ya=function(e){var n,t,a,i;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(e.antCls,"-layout-header").concat(e.componentCls),{height:((n=e.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((t=e.layout)===null||t===void 0||(t=t.header)===null||t===void 0?void 0:t.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(e.colorSplit),backgroundColor:((a=e.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((i=e.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:e.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function xa(r){return(0,je.Xj)("ProLayoutHeader",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[ya(n)]})}function Ca(r,e){var n=e.stylish,t=e.proLayoutCollapsedWidth;return(0,je.Xj)("ProLayoutHeaderStylish",function(a){var i=(0,v.Z)((0,v.Z)({},a),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:t});return n?[(0,l.Z)({},"div".concat(a.proComponentsCls,"-layout"),(0,l.Z)({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var mt=Ve.Z.Header,ba=function(e){var n,t,a,i,o=e.isMobile,u=e.fixedHeader,d=e.className,s=e.style,f=e.collapsed,p=e.prefixCls,y=e.onCollapse,Z=e.layout,E=e.headerRender,T=e.headerContentRender,M=(0,m.useContext)(k.L_),O=M.token,$=(0,m.useContext)(He.ZP.ConfigContext),z=(0,m.useState)(!1),N=(0,F.Z)(z,2),R=N[0],x=N[1],S=u||Z==="mix",ee=(0,m.useCallback)(function(){var P=Z==="top",re=(0,un.QX)(e.menuData||[]),ue=(0,c.jsx)(pa,(0,v.Z)((0,v.Z)({onCollapse:y},e),{},{menuData:re,children:T&&T(e,null)}));return P&&!o&&(ue=(0,c.jsx)(ft,(0,v.Z)((0,v.Z)({mode:"horizontal",onCollapse:y},e),{},{menuData:re}))),E&&typeof E=="function"?E(e,ue):ue},[T,E,o,Z,y,e]);(0,m.useEffect)(function(){var P,re=($==null||(P=$.getTargetContainer)===null||P===void 0?void 0:P.call($))||document.body,ue=function(){var J,se=re.scrollTop;return se>(((J=O.layout)===null||J===void 0||(J=J.header)===null||J===void 0?void 0:J.heightLayoutHeader)||56)&&!R?(x(!0),!0):(R&&x(!1),!1)};if(S&&typeof window!="undefined")return re.addEventListener("scroll",ue,{passive:!0}),function(){re.removeEventListener("scroll",ue)}},[(n=O.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,S,R]);var _=Z==="top",B="".concat(p,"-layout-header"),V=xa(B),oe=V.wrapSSR,C=V.hashId,Q=Ca("".concat(B,".").concat(B,"-stylish"),{proLayoutCollapsedWidth:64,stylish:e.stylish}),ne=te()(d,C,B,(t={},(0,l.Z)(t,"".concat(B,"-fixed-header"),S),(0,l.Z)(t,"".concat(B,"-fixed-header-scroll"),R),(0,l.Z)(t,"".concat(B,"-mix"),Z==="mix"),(0,l.Z)(t,"".concat(B,"-fixed-header-action"),!f),(0,l.Z)(t,"".concat(B,"-top-menu"),_),(0,l.Z)(t,"".concat(B,"-header"),!0),(0,l.Z)(t,"".concat(B,"-stylish"),!!e.stylish),t));return Z==="side"&&!o?null:Q.wrapSSR(oe((0,c.jsx)(c.Fragment,{children:(0,c.jsxs)(He.ZP,{theme:{hashed:(0,k.nu)(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[S&&(0,c.jsx)(mt,{style:(0,v.Z)({height:((a=O.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.heightLayoutHeader)||56,lineHeight:"".concat(((i=O.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},s)}),(0,c.jsx)(mt,{className:ne,style:s,children:ee()})]})})))},Sa=g(43700),Za=g(60708),Ma=g(26477),ht=new Ma.E4("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Ia=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,E,T,M;return(0,l.Z)({},"".concat(e.proComponentsCls,"-layout"),(M={},(0,l.Z)(M,"".concat(e.antCls,"-layout-sider").concat(e.componentCls),{background:((n=e.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),(0,l.Z)(M,e.componentCls,(Z={position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},(0,l.Z)(Z,"& ".concat(e.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.paddingInlineLayoutMenu,paddingBlock:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(e.colorSplit),marginInlineEnd:-1}),(0,l.Z)(Z,"".concat(e.antCls,"-menu"),(o={},(0,l.Z)(o,"".concat(e.antCls,"-menu-item-group-title"),{fontSize:e.fontSizeSM,paddingBottom:4}),(0,l.Z)(o,"".concat(e.antCls,"-menu-item:hover"),{color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuItemHover}),o)),(0,l.Z)(Z,"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(u=e.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuTitle,animationName:ht,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":(0,l.Z)({flexDirection:"column-reverse",margin:0,padding:12},"".concat(e.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),(0,l.Z)(Z,"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(p=e.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:e.borderRadius,"&:hover":{background:e.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:e.marginXS,borderRadius:e.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:e.colorBgTextHover}}}),(0,l.Z)(Z,"&-hide-menu-collapsed",{insetInlineStart:"-".concat(e.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),(0,l.Z)(Z,"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),(0,l.Z)(Z,"&-links",{width:"100%",ul:{height:"auto"}}),(0,l.Z)(Z,"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),(0,l.Z)(Z,"&-footer",{color:(y=e.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:e.fontSize,animationName:ht,animationDuration:".4s",animationTimingFunction:"ease"}),Z)),(0,l.Z)(M,"".concat(e.componentCls).concat(e.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((E=e.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((T=e.layout)===null||T===void 0||(T=T.header)===null||T===void 0?void 0:T.heightLayoutHeader)||56,"px")}}),M))};function Ra(r,e){var n=e.proLayoutCollapsedWidth;return(0,je.Xj)("ProLayoutSiderMenu",function(t){var a=(0,v.Z)((0,v.Z)({},t),{},{componentCls:".".concat(r),proLayoutCollapsedWidth:n});return[Ia(a)]})}var gt=function(e){var n,t=e.isMobile,a=e.siderWidth,i=e.collapsed,o=e.onCollapse,u=e.style,d=e.className,s=e.hide,f=e.prefixCls,p=(0,m.useContext)(k.L_),y=p.token;(0,m.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var Z=(0,Jn.Z)(e,["className","style"]),E=m.useContext(He.ZP.ConfigContext),T=E.direction,M=Ra("".concat(f,"-sider"),{proLayoutCollapsedWidth:64}),O=M.wrapSSR,$=M.hashId,z=te()("".concat(f,"-sider"),d,$);if(s)return null;var N=(0,b.X)(!i,function(){return o==null?void 0:o(!0)});return O(t?(0,c.jsx)(Za.Z,(0,v.Z)((0,v.Z)({placement:T==="rtl"?"right":"left",className:te()("".concat(f,"-drawer-sider"),d)},N),{},{style:(0,v.Z)({padding:0,height:"100vh"},u),onClose:function(){o==null||o(!0)},maskClosable:!0,closable:!1,width:a,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=y.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:(0,c.jsx)(st,(0,v.Z)((0,v.Z)({},Z),{},{isMobile:!0,className:z,collapsed:t?!1:i,splitMenus:!1,originCollapsed:i}))})):(0,c.jsx)(st,(0,v.Z)((0,v.Z)({className:z,originCollapsed:i},Z),{},{style:u})))},pt=g(34435),Ta=g(98047),Dn=g.n(Ta),Ba=function(e,n,t){if(t){var a=(0,Cn.Z)(t.keys()).find(function(o){return Dn()(o).test(e)});if(a)return t.get(a)}if(n){var i=Object.keys(n).find(function(o){return Dn()(o).test(e)});if(i)return n[i]}return{path:""}},On=function(e,n){var t=e.pathname,a=t===void 0?"/":t,i=e.breadcrumb,o=e.breadcrumbMap,u=e.formatMessage,d=e.title,s=e.menu,f=s===void 0?{locale:!1}:s,p=n?"":d||"",y=Ba(a,i,o);if(!y)return{title:p,id:"",pageName:p};var Z=y.name;return f.locale!==!1&&y.locale&&u&&(Z=u({id:y.locale||"",defaultMessage:y.name})),Z?n||!d?{title:Z,id:y.locale||"",pageName:Z}:{title:"".concat(Z," - ").concat(d),id:y.locale||"",pageName:Z}:{title:p,id:y.locale||"",pageName:p}},bo=function(e,n){return On(e,n).title},Pa=g(92570),Zn=g(91509),Qe=g(93738),Ea=function(){var e;return typeof Qe=="undefined"?Zn.Z:((e=Qe)===null||Qe===void 0||(Qe={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Qe===void 0?void 0:Qe.ANTD_VERSION)||Zn.Z},ja=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,E,T,M,O,$,z,N,R,x,S,ee,_,B,V,oe,C,Q,ne,P,re,ue,pe,J,se,ve,ge,Se,Ze,Me;return(n=Ea())!==null&&n!==void 0&&n.startsWith("5")?{}:(Me={},(0,l.Z)(Me,e.componentCls,(ue={width:"100%",height:"100%"},(0,l.Z)(ue,"".concat(e.proComponentsCls,"-base-menu"),(_={color:(t=e.layout)===null||t===void 0||(t=t.sider)===null||t===void 0?void 0:t.colorTextMenu},(0,l.Z)(_,"".concat(e.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(a=e.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu}),(0,l.Z)(_,"& ".concat(e.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu-expand-icon, ").concat(e.antCls,"-menu-submenu-arrow"),{color:"inherit"}),(0,l.Z)(_,"&".concat(e.antCls,"-menu"),(o={color:(i=e.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},(0,l.Z)(o,"".concat(e.antCls,"-menu-item"),{"*":{transition:"none !important"}}),(0,l.Z)(o,"".concat(e.antCls,"-menu-item a"),{color:"inherit"}),o)),(0,l.Z)(_,"&".concat(e.antCls,"-menu-inline"),(0,l.Z)({},"".concat(e.antCls,"-menu-selected::after,").concat(e.antCls,"-menu-item-selected::after"),{display:"none"})),(0,l.Z)(_,"".concat(e.antCls,"-menu-sub ").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),(0,l.Z)(_,"".concat(e.antCls,`-menu-item:active, + `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-light"),(0,l.Z)({},"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,`-menu-submenu-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(u=e.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(d=e.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorTextMenuActive}))),(0,l.Z)(_,"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(Z={},(0,l.Z)(Z,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:(s=e.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemSelected,borderRadius:e.borderRadius}),(0,l.Z)(Z,"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(f=e.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuActive,borderRadius:e.borderRadius,backgroundColor:"".concat((p=e.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.colorBgMenuItemHover," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(y=e.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenuActive})),Z)),(0,l.Z)(_,"".concat(e.antCls,"-menu-item-selected"),{color:(E=e.layout)===null||E===void 0||(E=E.sider)===null||E===void 0?void 0:E.colorTextMenuSelected}),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu-selected"),{color:(T=e.layout)===null||T===void 0||(T=T.sider)===null||T===void 0?void 0:T.colorTextMenuSelected}),(0,l.Z)(_,"&".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-inline) ").concat(e.antCls,"-menu-submenu-open"),{color:(M=e.layout)===null||M===void 0||(M=M.sider)===null||M===void 0?void 0:M.colorTextMenuSelected}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-vertical"),(0,l.Z)({},"".concat(e.antCls,"-menu-submenu-selected"),{borderRadius:e.borderRadius,color:(O=e.layout)===null||O===void 0||(O=O.sider)===null||O===void 0?void 0:O.colorTextMenuSelected})),(0,l.Z)(_,"".concat(e.antCls,"-menu-submenu:hover > ").concat(e.antCls,"-menu-submenu-title > ").concat(e.antCls,"-menu-submenu-arrow"),{color:($=e.layout)===null||$===void 0||($=$.sider)===null||$===void 0?void 0:$.colorTextMenuActive}),(0,l.Z)(_,"&".concat(e.antCls,"-menu-horizontal"),(ee={},(0,l.Z)(ee,"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-submenu:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(z=e.layout)===null||z===void 0||(z=z.header)===null||z===void 0?void 0:z.colorTextMenuActive,backgroundColor:"".concat((N=e.layout)===null||N===void 0||(N=N.header)===null||N===void 0?void 0:N.colorBgMenuItemHover," !important")}),(0,l.Z)(ee,"".concat(e.antCls,`-menu-item-open, + `).concat(e.antCls,`-menu-submenu-open, + `).concat(e.antCls,`-menu-item-selected, + `).concat(e.antCls,"-menu-submenu-selected"),(0,l.Z)({backgroundColor:(R=e.layout)===null||R===void 0||(R=R.header)===null||R===void 0?void 0:R.colorBgMenuItemSelected,borderRadius:e.borderRadius,transition:"none",color:"".concat((x=e.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorTextMenuSelected," !important")},"".concat(e.antCls,"-menu-submenu-arrow"),{color:"".concat((S=e.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorTextMenuSelected," !important")})),(0,l.Z)(ee,"> ".concat(e.antCls,"-menu-item, > ").concat(e.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),(0,l.Z)(ee,"> ".concat(e.antCls,"-menu-item::after, > ").concat(e.antCls,"-menu-submenu::after"),{display:"none"}),ee)),_)),(0,l.Z)(ue,"".concat(e.proComponentsCls,"-top-nav-header-base-menu"),(re={},(0,l.Z)(re,"&".concat(e.antCls,"-menu"),(0,l.Z)({color:(B=e.layout)===null||B===void 0||(B=B.header)===null||B===void 0?void 0:B.colorTextMenu},"".concat(e.antCls,"-menu-item a"),{color:"inherit"})),(0,l.Z)(re,"&".concat(e.antCls,"-menu-light"),(P={},(0,l.Z)(P,"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,`-menu-submenu-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(V=e.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorTextMenuActive,borderRadius:e.borderRadius,transition:"none",backgroundColor:(oe=e.layout)===null||oe===void 0||(oe=oe.header)===null||oe===void 0?void 0:oe.colorBgMenuItemSelected},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(C=e.layout)===null||C===void 0||(C=C.header)===null||C===void 0?void 0:C.colorTextMenuActive})),(0,l.Z)(P,"".concat(e.antCls,"-menu-item-selected"),{color:(Q=e.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorTextMenuSelected,borderRadius:e.borderRadius,backgroundColor:(ne=e.layout)===null||ne===void 0||(ne=ne.header)===null||ne===void 0?void 0:ne.colorBgMenuItemSelected}),P)),re)),ue)),(0,l.Z)(Me,"".concat(e.antCls,"-menu-sub").concat(e.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),(0,l.Z)(Me,"".concat(e.antCls,"-menu-submenu-popup"),(Ze={backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},(0,l.Z)(Ze,"".concat(e.antCls,"-menu"),(0,l.Z)({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(e.antCls,`-menu-item:active, + `).concat(e.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),(0,l.Z)(Ze,"".concat(e.antCls,"-menu-item-selected"),{color:(pe=e.layout)===null||pe===void 0||(pe=pe.sider)===null||pe===void 0?void 0:pe.colorTextMenuSelected}),(0,l.Z)(Ze,"".concat(e.antCls,"-menu-submenu-selected"),{color:(J=e.layout)===null||J===void 0||(J=J.sider)===null||J===void 0?void 0:J.colorTextMenuSelected}),(0,l.Z)(Ze,"".concat(e.antCls,"-menu:not(").concat(e.antCls,"-menu-horizontal)"),(Se={},(0,l.Z)(Se,"".concat(e.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:e.borderRadius,color:(se=e.layout)===null||se===void 0||(se=se.sider)===null||se===void 0?void 0:se.colorTextMenuSelected}),(0,l.Z)(Se,"".concat(e.antCls,`-menu-item:hover, + `).concat(e.antCls,`-menu-item-active, + `).concat(e.antCls,"-menu-submenu-title:hover"),(0,l.Z)({color:(ve=e.layout)===null||ve===void 0||(ve=ve.sider)===null||ve===void 0?void 0:ve.colorTextMenuActive,borderRadius:e.borderRadius},"".concat(e.antCls,"-menu-submenu-arrow"),{color:(ge=e.layout)===null||ge===void 0||(ge=ge.sider)===null||ge===void 0?void 0:ge.colorTextMenuActive})),Se)),Ze)),Me)},wa=function(e){var n,t,a,i,o,u;return u={},(0,l.Z)(u,"".concat(e.antCls,"-layout"),{backgroundColor:"transparent !important"}),(0,l.Z)(u,e.componentCls,(o={},(0,l.Z)(o,"& ".concat(e.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),(0,l.Z)(o,"".concat(e.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(t=e.layout)===null||t===void 0||(t=t.pageContainer)===null||t===void 0?void 0:t.paddingBlockPageContainerContent,paddingInline:(a=e.layout)===null||a===void 0||(a=a.pageContainer)===null||a===void 0?void 0:a.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),(0,l.Z)(o,"".concat(e.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),(0,l.Z)(o,"".concat(e.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(i=e.layout)===null||i===void 0?void 0:i.bgLayout}),o)),u};function _a(r){return(0,je.Xj)("ProLayout",function(e){var n=(0,v.Z)((0,v.Z)({},e),{},{componentCls:".".concat(r)});return[wa(n),ja(n)]})}function La(r){if(!r||r==="/")return["/"];var e=r.split("/").filter(function(n){return n});return e.map(function(n,t){return"/".concat(e.slice(0,t+1).join("/"))})}var Ye=g(93738),Aa=function(){var e;return typeof Ye=="undefined"?Zn.Z:((e=Ye)===null||Ye===void 0||(Ye={NODE_ENV:"production",PUBLIC_PATH:"/"})===null||Ye===void 0?void 0:Ye.ANTD_VERSION)||Zn.Z},Ha=function(e,n,t){var a=e,i=a.breadcrumbName,o=a.title,u=a.path,d=t.findIndex(function(s){return s.linkPath===e.path})===t.length-1;return d?(0,c.jsx)("span",{children:o||i}):(0,c.jsx)("span",{onClick:u?function(){return location.href=u}:void 0,children:o||i})},Na=function(e,n){var t=n.formatMessage,a=n.menu;return e.locale&&t&&(a==null?void 0:a.locale)!==!1?t({id:e.locale,defaultMessage:e.name}):e.name},Da=function(e,n){var t=e.get(n);if(!t){var a=Array.from(e.keys())||[],i=a.find(function(o){return Dn()(o.replace("?","")).test(n)});i&&(t=e.get(i))}return t||{path:""}},Oa=function(e){var n=e.location,t=e.breadcrumbMap;return{location:n,breadcrumbMap:t}},$a=function(e,n,t){var a=La(e==null?void 0:e.pathname),i=a.map(function(o){var u=Da(n,o),d=Na(u,t),s=u.hideInBreadcrumb;return d&&!s?{linkPath:o,breadcrumbName:d,title:d,component:u.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(o){return o&&o.linkPath});return i},Wa=function(e){var n=Oa(e),t=n.location,a=n.breadcrumbMap;return t&&t.pathname&&a?$a(t,a,e):[]},za=function(e,n){var t=e.breadcrumbRender,a=e.itemRender,i=n.breadcrumbProps||{},o=i.minLength,u=o===void 0?2:o,d=Wa(e),s=function(y){for(var Z=a||Ha,E=arguments.length,T=new Array(E>1?E-1:0),M=1;M-1?{items:f,itemRender:s}:{routes:f,itemRender:s}};function Fa(r){return(0,Cn.Z)(r).reduce(function(e,n){var t=(0,F.Z)(n,2),a=t[0],i=t[1];return e[a]=i,e},{})}var Ka=function r(e,n,t,a){var i=lr(e,(n==null?void 0:n.locale)||!1,t,!0),o=i.menuData,u=i.breadcrumb;return a?r(a(o),n,t,void 0):{breadcrumb:Fa(u),breadcrumbMap:u,menuData:o}},Ua=g(63195),Ga=g(85865),Xa=function(e){var n=(0,m.useState)({}),t=(0,F.Z)(n,2),a=t[0],i=t[1];return(0,m.useEffect)(function(){i((0,Ga.Y)({layout:(0,Ua.Z)(e.layout)!=="object"?e.layout:void 0,navTheme:e.navTheme,menuRender:e.menuRender,footerRender:e.footerRender,menuHeaderRender:e.menuHeaderRender,headerRender:e.headerRender,fixSiderbar:e.fixSiderbar}))},[e.layout,e.navTheme,e.menuRender,e.footerRender,e.menuHeaderRender,e.headerRender,e.fixSiderbar]),a},Va=["id","defaultMessage"],Qa=["fixSiderbar","navTheme","layout"],yt=0,Ya=function(e,n){var t;return e.headerRender===!1||e.pure?null:(0,c.jsx)(ba,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{stylish:(t=e.stylish)===null||t===void 0?void 0:t.header}))},Ja=function(e){return e.footerRender===!1||e.pure?null:e.footerRender?e.footerRender((0,v.Z)({},e),(0,c.jsx)(xr.q,{})):null},ka=function(e,n){var t,a=e.layout,i=e.isMobile,o=e.selectedKeys,u=e.openKeys,d=e.splitMenus,s=e.suppressSiderWhenMenuEmpty,f=e.menuRender;if(e.menuRender===!1||e.pure)return null;var p=e.menuData;if(d&&(u!==!1||a==="mix")&&!i){var y=o||n,Z=(0,F.Z)(y,1),E=Z[0];if(E){var T;p=((T=e.menuData)===null||T===void 0||(T=T.find(function(z){return z.key===E}))===null||T===void 0?void 0:T.children)||[]}else p=[]}var M=(0,un.QX)(p||[]);if(M&&(M==null?void 0:M.length)<1&&(d||s))return null;if(a==="top"&&!i){var O;return(0,c.jsx)(gt,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{hide:!0,stylish:(O=e.stylish)===null||O===void 0?void 0:O.sider}))}var $=(0,c.jsx)(gt,(0,v.Z)((0,v.Z)({matchMenuKeys:n},e),{},{menuData:M,stylish:(t=e.stylish)===null||t===void 0?void 0:t.sider}));return f?f(e,$):$},qa=function(e,n){var t=n.pageTitleRender,a=On(e);if(t===!1)return{title:n.title||"",id:"",pageName:""};if(t){var i=t(e,a.title,a);if(typeof i=="string")return On((0,v.Z)((0,v.Z)({},a),{},{title:i}));(0,hr.ZP)(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return a},eo=function(e,n,t){return e?n?64:t:0},no=function(e){var n,t,a,i,o,u,d,s,f,p,y,Z,E,T,M=e||{},O=M.children,$=M.onCollapse,z=M.location,N=z===void 0?{pathname:"/"}:z,R=M.contentStyle,x=M.route,S=M.defaultCollapsed,ee=M.style,_=M.siderWidth,B=M.menu,V=M.siderMenuType,oe=M.isChildrenLayout,C=M.menuDataRender,Q=M.actionRef,ne=M.bgLayoutImgList,P=M.formatMessage,re=M.loading,ue=(0,m.useMemo)(function(){return _||(e.layout==="mix"?215:256)},[e.layout,_]),pe=(0,m.useContext)(He.ZP.ConfigContext),J=(n=e.prefixCls)!==null&&n!==void 0?n:pe.getPrefixCls("pro"),se=(0,ce.Z)(!1,{value:B==null?void 0:B.loading,onChange:B==null?void 0:B.onLoadingChange}),ve=(0,F.Z)(se,2),ge=ve[0],Se=ve[1],Ze=(0,m.useState)(function(){return yt+=1,"pro-layout-".concat(yt)}),Me=(0,F.Z)(Ze,1),ze=Me[0],Fe=(0,m.useCallback)(function(Be){var Ke=Be.id,Tn=Be.defaultMessage,hn=(0,ye.Z)(Be,Va);if(P)return P((0,v.Z)({id:Ke,defaultMessage:Tn},hn));var gn=(0,Pa.e)();return gn[Ke]?gn[Ke]:Tn},[P]),cn=(0,kn.ZP)([ze,B==null?void 0:B.params],function(){var Be=(0,ie.Z)((0,he.Z)().mark(function Ke(Tn){var hn,gn,wt,_t;return(0,he.Z)().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return gn=(0,F.Z)(Tn,2),wt=gn[1],Se(!0),nn.next=4,B==null||(hn=B.request)===null||hn===void 0?void 0:hn.call(B,wt||{},(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[]);case 4:return _t=nn.sent,Se(!1),nn.abrupt("return",_t);case 7:case"end":return nn.stop()}},Ke)}));return function(Ke){return Be.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),Xe=cn.data,Mn=cn.mutate,dn=cn.isLoading;(0,m.useEffect)(function(){Se(dn)},[dn]);var Pe=(0,kn.kY)(),Le=Pe.cache;(0,m.useEffect)(function(){return function(){Le instanceof Map&&Le.delete(ze)}},[]);var Ae=(0,m.useMemo)(function(){return Ka(Xe||(x==null?void 0:x.children)||(x==null?void 0:x.routes)||[],B,Fe,C)},[Fe,B,C,Xe,x==null?void 0:x.children,x==null?void 0:x.routes]),Je=Ae||{},ro=Je.breadcrumb,xt=Je.breadcrumbMap,Ct=Je.menuData,sn=Ct===void 0?[]:Ct;Q&&B!==null&&B!==void 0&&B.request&&(Q.current={reload:function(){Mn()}});var vn=(0,m.useMemo)(function(){return fr(N.pathname||"/",sn||[],!0)},[N.pathname,sn]),$n=(0,m.useMemo)(function(){return Array.from(new Set(vn.map(function(Be){return Be.key||Be.path||""})))},[vn]),bt=vn[vn.length-1]||{},St=Xa(bt),In=(0,v.Z)((0,v.Z)({},e),St),ao=In.fixSiderbar,So=In.navTheme,fn=In.layout,oo=(0,ye.Z)(In,Qa),ke=L(),qe=(0,m.useMemo)(function(){return(ke==="sm"||ke==="xs")&&!e.disableMobile},[ke,e.disableMobile]),io=fn!=="top"&&!qe,lo=(0,ce.Z)(function(){return S!==void 0?S:!!(qe||ke==="md")},{value:e.collapsed,onChange:$}),Zt=(0,F.Z)(lo,2),mn=Zt[0],Mt=Zt[1],en=(0,Jn.Z)((0,v.Z)((0,v.Z)((0,v.Z)({prefixCls:J},e),{},{siderWidth:ue},St),{},{formatMessage:Fe,breadcrumb:ro,menu:(0,v.Z)((0,v.Z)({},B),{},{type:V||(B==null?void 0:B.type),loading:ge}),layout:fn}),["className","style","breadcrumbRender"]),Wn=qa((0,v.Z)((0,v.Z)({pathname:N.pathname},en),{},{breadcrumbMap:xt}),e),uo=za((0,v.Z)((0,v.Z)({},en),{},{breadcrumbRender:e.breadcrumbRender,breadcrumbMap:xt}),e),Rn=ka((0,v.Z)((0,v.Z)({},en),{},{menuData:sn,onCollapse:Mt,isMobile:qe,collapsed:mn}),$n),zn=Ya((0,v.Z)((0,v.Z)({},en),{},{children:null,hasSiderMenu:!!Rn,menuData:sn,isMobile:qe,collapsed:mn,onCollapse:Mt}),$n),It=Ja((0,v.Z)({isMobile:qe,collapsed:mn},en)),co=(0,m.useContext)(pt.X),so=co.isChildrenLayout,Fn=oe!==void 0?oe:so,Ne="".concat(J,"-layout"),Rt=_a(Ne),vo=Rt.wrapSSR,Kn=Rt.hashId,fo=te()(e.className,Kn,"ant-design-pro",Ne,(t={},(0,l.Z)(t,"screen-".concat(ke),ke),(0,l.Z)(t,"".concat(Ne,"-top-menu"),fn==="top"),(0,l.Z)(t,"".concat(Ne,"-is-children"),Fn),(0,l.Z)(t,"".concat(Ne,"-fix-siderbar"),ao),(0,l.Z)(t,"".concat(Ne,"-").concat(fn),fn),t)),mo=eo(!!io,mn,ue),Tt={position:"relative"};(Fn||R&&R.minHeight)&&(Tt.minHeight=0),(0,m.useEffect)(function(){var Be;(Be=e.onPageChange)===null||Be===void 0||Be.call(e,e.location)},[N.pathname,(a=N.pathname)===null||a===void 0?void 0:a.search]);var ho=(0,m.useState)(!1),Bt=(0,F.Z)(ho,2),Pt=Bt[0],go=Bt[1],po=(0,m.useState)(0),Et=(0,F.Z)(po,2),jt=Et[0],yo=Et[1];h(Wn,e.title||!1);var xo=(0,m.useMemo)(function(){return ne&&ne.length>0?ne.map(function(Be,Ke){return(0,c.jsx)("img",{src:Be.src,style:(0,v.Z)({position:"absolute"},Be)},Ke)}):null},[ne]),Co=(0,m.useContext)(k.L_),X=Co.token;return vo((0,c.jsx)(pt.X.Provider,{value:(0,v.Z)((0,v.Z)({},en),{},{breadcrumb:uo,menuData:sn,isMobile:qe,collapsed:mn,hasPageContainer:jt,setHasPageContainer:yo,isChildrenLayout:!0,title:Wn.pageName,hasSiderMenu:!!Rn,hasHeader:!!zn,siderWidth:mo,hasFooter:!!It,hasFooterToolbar:Pt,setHasFooterToolbar:go,pageTitleInfo:Wn,matchMenus:vn,matchMenuKeys:$n,currentMenu:bt}),children:e.pure?(0,c.jsx)(c.Fragment,{children:O}):(0,c.jsxs)("div",{className:fo,children:[(0,c.jsx)("div",{className:te()("".concat(Ne,"-bg-list"),Kn),children:xo}),(0,c.jsxs)(Ve.Z,{style:(0,v.Z)({minHeight:"100%",flexDirection:Rn?"row":void 0},ee),children:[(0,c.jsx)(He.ZP,{theme:{hashed:(0,k.nu)(),token:{controlHeightLG:((i=X.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(X==null?void 0:X.controlHeightLG)},components:{Menu:j({colorItemBg:((o=X.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorMenuBackground)||"transparent",colorSubItemBg:((u=X.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorMenuBackground)||"transparent",radiusItem:X.borderRadius,colorItemBgSelected:((d=X.layout)===null||d===void 0||(d=d.sider)===null||d===void 0?void 0:d.colorBgMenuItemSelected)||(X==null?void 0:X.colorBgTextHover),colorItemBgHover:((s=X.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorBgMenuItemHover)||(X==null?void 0:X.colorBgTextHover),colorItemBgActive:((f=X.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemActive)||(X==null?void 0:X.colorBgTextActive),colorItemBgSelectedHorizontal:((p=X.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorBgMenuItemSelected)||(X==null?void 0:X.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((y=X.layout)===null||y===void 0||(y=y.sider)===null||y===void 0?void 0:y.colorTextMenu)||(X==null?void 0:X.colorTextSecondary),colorItemTextHover:((Z=X.layout)===null||Z===void 0||(Z=Z.sider)===null||Z===void 0?void 0:Z.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((E=X.layout)===null||E===void 0||(E=E.sider)===null||E===void 0?void 0:E.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:X==null?void 0:X.colorBgElevated,subMenuItemBg:X==null?void 0:X.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:X==null?void 0:X.colorBgElevated})}},children:Rn}),(0,c.jsxs)("div",{style:Tt,className:"".concat(Ne,"-container ").concat(Kn).trim(),children:[zn,(0,c.jsx)(pr,(0,v.Z)((0,v.Z)({hasPageContainer:jt,isChildrenLayout:Fn},oo),{},{hasHeader:!!zn,prefixCls:Ne,style:R,children:re?(0,c.jsx)(Sa.S,{}):O})),It,Pt&&(0,c.jsx)("div",{className:"".concat(Ne,"-has-footer"),style:{height:64,marginBlockStart:(T=X.layout)===null||T===void 0||(T=T.pageContainer)===null||T===void 0?void 0:T.paddingBlockPageContainerContent}})]})]})]})}))},to=function(e){var n=e.colorPrimary,t=e.navTheme!==void 0?{dark:e.navTheme==="realDark"}:{};return(0,c.jsx)(He.ZP,{theme:n?{token:{colorPrimary:n}}:void 0,children:(0,c.jsx)(k._Y,(0,v.Z)((0,v.Z)({autoClearCache:!0},t),{},{token:e.token,prefixCls:e.prefixCls,children:(0,c.jsx)(no,(0,v.Z)((0,v.Z)({logo:(0,c.jsx)(yr,{})},at.h),{},{location:(0,U.j)()?window.location:void 0},e))}))})}},43700:function(Re,Ie,g){"use strict";g.d(Ie,{S:function(){return k}});var l=g(93264),he=g(98787),ie=g(2219),ye=g(79685),F=g(63342),v=["isLoading","pastDelay","timedOut","error","retry"],k=function(m){var de=m.isLoading,fe=m.pastDelay,Ce=m.timedOut,L=m.error,U=m.retry,h=(0,he.Z)(m,v);return(0,F.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,F.jsx)(ie.Z,(0,l.Z)({size:"large"},h))})}},34435:function(Re,Ie,g){"use strict";g.d(Ie,{X:function(){return he}});var l=g(79685),he=(0,l.createContext)({})},4218:function(Re,Ie,g){"use strict";g.d(Ie,{S:function(){return de}});var l=g(30114),he=g(51392),ie=g(13547),ye=g(61926),F=g(92596),v=g(6346),k=g(94154),ce=g(79685),m=g(63342),de=function(fe){(0,ye.Z)(L,fe);var Ce=(0,F.Z)(L);function L(){var U;(0,l.Z)(this,L);for(var h=arguments.length,I=new Array(h),b=0;b=48&&w<=57||w>=65&&w<=90||w>=97&&w<=122||w===95){ae+=h[D++];continue}break}if(!ae)throw new TypeError("Missing parameter name at "+b);I.push({type:"NAME",index:b,value:ae}),b=D;continue}if(j==="("){var A=1,Y="",D=b+1;if(h[D]==="?")throw new TypeError('Pattern cannot start with "?" at '+D);for(;D-1:Ee===void 0;ae||(me+="(?:"+xe+"(?="+G+"))?"),$e||(me+="(?="+xe+"|"+G+")")}return new RegExp(me,m(b))}g=L;function U(h,I,b){return h instanceof RegExp?de(h,I):Array.isArray(h)?fe(h,I,b):Ce(h,I,b)}Ie.Bo=U},98047:function(Re){Re.exports=Ce,Re.exports.parse=he,Re.exports.compile=ie,Re.exports.tokensToFunction=ye,Re.exports.tokensToRegExp=fe;var Ie="/",g="./",l=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function he(L,U){for(var h=[],I=0,b=0,j="",ae=U&&U.delimiter||Ie,D=U&&U.delimiters||g,w=!1,A;(A=l.exec(L))!==null;){var Y=A[0],q=A[1],K=A.index;if(j+=L.slice(b,K),b=K+Y.length,q){j+=q[1],w=!0;continue}var G="",xe=L[b],me=A[2],W=A[3],le=A[4],H=A[5];if(!w&&j.length){var Te=j.length-1;D.indexOf(j[Te])>-1&&(G=j[Te],j=j.slice(0,Te))}j&&(h.push(j),j="",w=!1);var _e=G!==""&&xe!==void 0&&xe!==G,Oe=H==="+"||H==="*",Ee=H==="?"||H==="*",$e=G||ae,De=W||le;h.push({name:me||I++,prefix:G,delimiter:$e,optional:Ee,repeat:Oe,partial:_e,pattern:De?v(De):"[^"+F($e)+"]+?"})}return(j||b-1;else{var G=K.repeat?"(?:"+K.pattern+")(?:"+F(K.delimiter)+"(?:"+K.pattern+"))*":K.pattern;U&&U.push(K),K.optional?K.partial?A+=F(K.prefix)+"("+G+")?":A+="(?:"+F(K.prefix)+"("+G+"))?":A+=F(K.prefix)+"("+G+")"}}return j?(I||(A+="(?:"+ae+")?"),A+=w==="$"?"$":"(?="+w+")"):(I||(A+="(?:"+ae+"(?="+w+"))?"),Y||(A+="(?="+ae+"|"+w+")")),new RegExp(A,k(h))}function Ce(L,U,h){return L instanceof RegExp?ce(L,U):Array.isArray(L)?m(L,U,h):de(L,U,h)}},6419:function(Re,Ie,g){var l=g(1507);function he(ie,ye){var F=typeof Symbol!="undefined"&&ie[Symbol.iterator]||ie["@@iterator"];if(!F){if(Array.isArray(ie)||(F=l(ie))||ye&&ie&&typeof ie.length=="number"){F&&(ie=F);var v=0,k=function(){};return{s:k,n:function(){return v>=ie.length?{done:!0}:{done:!1,value:ie[v++]}},e:function(Ce){throw Ce},f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ce=!0,m=!1,de;return{s:function(){F=F.call(ie)},n:function(){var Ce=F.next();return ce=Ce.done,Ce},e:function(Ce){m=!0,de=Ce},f:function(){try{!ce&&F.return!=null&&F.return()}finally{if(m)throw de}}}}Re.exports=he,Re.exports.__esModule=!0,Re.exports.default=Re.exports}}]); diff --git a/9906.e4b73fe6.async.js b/9906.e4b73fe6.async.js new file mode 100644 index 00000000..aedea27a --- /dev/null +++ b/9906.e4b73fe6.async.js @@ -0,0 +1,11 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9906],{33974:function($e,he,n){n.d(he,{Z:function(){return C}});var d=n(21137),P=n(79685),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},le=ee,ye=n(83317),ge=function(U,ue){return P.createElement(ye.Z,(0,d.Z)({},U,{ref:ue,icon:le}))},C=P.forwardRef(ge)},71449:function($e,he,n){n.d(he,{Z:function(){return C}});var d=n(21137),P=n(79685),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},le=ee,ye=n(83317),ge=function(U,ue){return P.createElement(ye.Z,(0,d.Z)({},U,{ref:ue,icon:le}))},C=P.forwardRef(ge)},26163:function($e,he,n){n.d(he,{Z:function(){return C}});var d=n(21137),P=n(79685),ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},le=ee,ye=n(83317),ge=function(U,ue){return P.createElement(ye.Z,(0,d.Z)({},U,{ref:ue,icon:le}))},C=P.forwardRef(ge)},42359:function($e,he,n){n.d(he,{Z:function(){return T}});var d=n(79685),P=n(68591),ee=n.n(P),le=n(72541),ye=n(42480),ge=n(75946),C=n(99248),j=n(456),U=n(84477),ue=n(56107),te=d.createContext(null),J=n(57670),Y=function(k,h){var W={};for(var t in k)Object.prototype.hasOwnProperty.call(k,t)&&h.indexOf(t)<0&&(W[t]=k[t]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,t=Object.getOwnPropertySymbols(k);K{var W;const{prefixCls:t,className:K,rootClassName:u,children:V,indeterminate:r=!1,style:i,onMouseEnter:f,onMouseLeave:g,skipGroup:Q=!1,disabled:se}=k,H=Y(k,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:y,direction:I,checkbox:R}=d.useContext(C.E_),m=d.useContext(te),{isFormItemInput:O}=d.useContext(ue.aM),ve=d.useContext(j.Z),B=(W=(m==null?void 0:m.disabled)||se)!==null&&W!==void 0?W:ve,pe=d.useRef(H.value);d.useEffect(()=>{m==null||m.registerValue(H.value)},[]),d.useEffect(()=>{if(!Q)return H.value!==pe.current&&(m==null||m.cancelValue(pe.current),m==null||m.registerValue(H.value),pe.current=H.value),()=>m==null?void 0:m.cancelValue(H.value)},[H.value]);const re=y("checkbox",t),me=(0,U.Z)(re),[de,Ce]=(0,J.ZP)(re,me),be=Object.assign({},H);m&&!Q&&(be.onChange=function(){H.onChange&&H.onChange.apply(H,arguments),m.toggleOption&&m.toggleOption({label:V,value:H.value})},be.name=m.name,be.checked=m.value.includes(H.value));const v=ee()(`${re}-wrapper`,{[`${re}-rtl`]:I==="rtl",[`${re}-wrapper-checked`]:be.checked,[`${re}-wrapper-disabled`]:B,[`${re}-wrapper-in-form-item`]:O},R==null?void 0:R.className,K,u,me,Ce),X=ee()({[`${re}-indeterminate`]:r},ge.A,Ce),_=r?"mixed":void 0;return de(d.createElement(ye.Z,{component:"Checkbox",disabled:B},d.createElement("label",{className:v,style:Object.assign(Object.assign({},R==null?void 0:R.style),i),onMouseEnter:f,onMouseLeave:g},d.createElement(le.Z,Object.assign({"aria-checked":_},be,{prefixCls:re,className:X,disabled:B,ref:h})),V!==void 0&&d.createElement("span",null,V))))};var $=d.forwardRef(b),ne=n(57963),oe=n(3139),D=function(k,h){var W={};for(var t in k)Object.prototype.hasOwnProperty.call(k,t)&&h.indexOf(t)<0&&(W[t]=k[t]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var K=0,t=Object.getOwnPropertySymbols(k);K{const{defaultValue:W,children:t,options:K=[],prefixCls:u,className:V,rootClassName:r,style:i,onChange:f}=k,g=D(k,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Q,direction:se}=d.useContext(C.E_),[H,y]=d.useState(g.value||W||[]),[I,R]=d.useState([]);d.useEffect(()=>{"value"in g&&y(g.value||[])},[g.value]);const m=d.useMemo(()=>K.map(e=>typeof e=="string"||typeof e=="number"?{label:e,value:e}:e),[K]),O=e=>{R(E=>E.filter(z=>z!==e))},ve=e=>{R(E=>[].concat((0,ne.Z)(E),[e]))},B=e=>{const E=H.indexOf(e.value),z=(0,ne.Z)(H);E===-1?z.push(e.value):z.splice(E,1),"value"in g||y(z),f==null||f(z.filter(G=>I.includes(G)).sort((G,o)=>{const s=m.findIndex(x=>x.value===G),a=m.findIndex(x=>x.value===o);return s-a}))},pe=Q("checkbox",u),re=`${pe}-group`,me=(0,U.Z)(pe),[de,Ce]=(0,J.ZP)(pe,me),be=(0,oe.Z)(g,["value","disabled"]),v=K.length?m.map(e=>d.createElement($,{prefixCls:pe,key:e.value.toString(),disabled:"disabled"in e?e.disabled:g.disabled,value:e.value,checked:H.includes(e.value),onChange:e.onChange,className:`${re}-item`,style:e.style,title:e.title,id:e.id,required:e.required},e.label)):t,X={toggleOption:B,value:H,disabled:g.disabled,name:g.name,registerValue:ve,cancelValue:O},_=ee()(re,{[`${re}-rtl`]:se==="rtl"},V,r,me,Ce);return de(d.createElement("div",Object.assign({className:_,style:i},be,{ref:h}),d.createElement(te.Provider,{value:X},v)))},p=d.forwardRef(c);var w=d.memo(p);const N=$;N.Group=w,N.__ANT_CHECKBOX=!0;var T=N},57670:function($e,he,n){n.d(he,{C2:function(){return ge}});var d=n(26477),P=n(4614),ee=n(25830),le=n(44244);const ye=C=>{const{checkboxCls:j}=C,U=`${j}-wrapper`;return[{[`${j}-group`]:Object.assign(Object.assign({},(0,P.Wf)(C)),{display:"inline-flex",flexWrap:"wrap",columnGap:C.marginXS,[`> ${C.antCls}-row`]:{flex:1}}),[U]:Object.assign(Object.assign({},(0,P.Wf)(C)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${U}`]:{marginInlineStart:0},[`&${U}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[j]:Object.assign(Object.assign({},(0,P.Wf)(C)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:C.borderRadiusSM,alignSelf:"center",[`${j}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${j}-inner`]:Object.assign({},(0,P.oN)(C))},[`${j}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:C.checkboxSize,height:C.checkboxSize,direction:"ltr",backgroundColor:C.colorBgContainer,border:`${(0,d.bf)(C.lineWidth)} ${C.lineType} ${C.colorBorder}`,borderRadius:C.borderRadiusSM,borderCollapse:"separate",transition:`all ${C.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:C.calc(C.checkboxSize).div(14).mul(5).equal(),height:C.calc(C.checkboxSize).div(14).mul(8).equal(),border:`${(0,d.bf)(C.lineWidthBold)} solid ${C.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${C.motionDurationFast} ${C.motionEaseInBack}, opacity ${C.motionDurationFast}`}},"& + span":{paddingInlineStart:C.paddingXS,paddingInlineEnd:C.paddingXS}})},{[` + ${U}:not(${U}-disabled), + ${j}:not(${j}-disabled) + `]:{[`&:hover ${j}-inner`]:{borderColor:C.colorPrimary}},[`${U}:not(${U}-disabled)`]:{[`&:hover ${j}-checked:not(${j}-disabled) ${j}-inner`]:{backgroundColor:C.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${j}-checked:not(${j}-disabled):after`]:{borderColor:C.colorPrimaryHover}}},{[`${j}-checked`]:{[`${j}-inner`]:{backgroundColor:C.colorPrimary,borderColor:C.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${C.motionDurationMid} ${C.motionEaseOutBack} ${C.motionDurationFast}`}}},[` + ${U}-checked:not(${U}-disabled), + ${j}-checked:not(${j}-disabled) + `]:{[`&:hover ${j}-inner`]:{backgroundColor:C.colorPrimaryHover,borderColor:"transparent"}}},{[j]:{"&-indeterminate":{[`${j}-inner`]:{backgroundColor:C.colorBgContainer,borderColor:C.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:C.calc(C.fontSizeLG).div(2).equal(),height:C.calc(C.fontSizeLG).div(2).equal(),backgroundColor:C.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${U}-disabled`]:{cursor:"not-allowed"},[`${j}-disabled`]:{[`&, ${j}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${j}-inner`]:{background:C.colorBgContainerDisabled,borderColor:C.colorBorder,"&:after":{borderColor:C.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:C.colorTextDisabled},[`&${j}-indeterminate ${j}-inner::after`]:{background:C.colorTextDisabled}}}]};function ge(C,j){const U=(0,ee.TS)(j,{checkboxCls:`.${C}`,checkboxSize:j.controlInteractiveSize});return[ye(U)]}he.ZP=(0,le.I$)("Checkbox",(C,j)=>{let{prefixCls:U}=j;return[ge(U,C)]})},79714:function($e,he,n){n.d(he,{Z:function(){return K}});var d=n(79685),P=n(68591),ee=n.n(P),le=n(99248),ye=n(56107),ge=n(57873),j=u=>{const{getPrefixCls:V,direction:r}=(0,d.useContext)(le.E_),{prefixCls:i,className:f}=u,g=V("input-group",i),Q=V("input"),[se,H]=(0,ge.ZP)(Q),y=ee()(g,{[`${g}-lg`]:u.size==="large",[`${g}-sm`]:u.size==="small",[`${g}-compact`]:u.compact,[`${g}-rtl`]:r==="rtl"},H,f),I=(0,d.useContext)(ye.aM),R=(0,d.useMemo)(()=>Object.assign(Object.assign({},I),{isFormItemInput:!1}),[I]);return se(d.createElement("span",{className:y,style:u.style,onMouseEnter:u.onMouseEnter,onMouseLeave:u.onMouseLeave,onFocus:u.onFocus,onBlur:u.onBlur},d.createElement(ye.aM.Provider,{value:R},u.children)))},U=n(92006),ue=n(33974),ie=n(71449),te=n(3139),J=n(52401),Y=n(86054),b=function(u,V){var r={};for(var i in u)Object.prototype.hasOwnProperty.call(u,i)&&V.indexOf(i)<0&&(r[i]=u[i]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,i=Object.getOwnPropertySymbols(u);fu?d.createElement(ie.Z,null):d.createElement(ue.Z,null),$={click:"onClick",hover:"onMouseOver"};var oe=d.forwardRef((u,V)=>{const{visibilityToggle:r=!0}=u,i=typeof r=="object"&&r.visible!==void 0,[f,g]=(0,d.useState)(()=>i?r.visible:!1),Q=(0,d.useRef)(null);d.useEffect(()=>{i&&g(r.visible)},[i,r]);const se=(0,Y.Z)(Q),H=()=>{const{disabled:be}=u;be||(f&&se(),g(v=>{var X;const _=!v;return typeof r=="object"&&((X=r.onVisibleChange)===null||X===void 0||X.call(r,_)),_}))},y=be=>{const{action:v="click",iconRender:X=l}=u,_=$[v]||"",e=X(f),E={[_]:H,className:`${be}-icon`,key:"passwordIcon",onMouseDown:z=>{z.preventDefault()},onMouseUp:z=>{z.preventDefault()}};return d.cloneElement(d.isValidElement(e)?e:d.createElement("span",null,e),E)},{className:I,prefixCls:R,inputPrefixCls:m,size:O}=u,ve=b(u,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:B}=d.useContext(le.E_),pe=B("input",m),re=B("input-password",R),me=r&&y(re),de=ee()(re,I,{[`${re}-${O}`]:!!O}),Ce=Object.assign(Object.assign({},(0,te.Z)(ve,["suffix","iconRender","visibilityToggle"])),{type:f?"text":"password",className:de,prefixCls:pe,suffix:me});return O&&(Ce.size=O),d.createElement(U.Z,Object.assign({ref:(0,J.sQ)(V,Q)},Ce))}),D=n(66907),c=n(23196),p=n(10951),w=n(73064),N=n(26490),T=function(u,V){var r={};for(var i in u)Object.prototype.hasOwnProperty.call(u,i)&&V.indexOf(i)<0&&(r[i]=u[i]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,i=Object.getOwnPropertySymbols(u);f{const{prefixCls:r,inputPrefixCls:i,className:f,size:g,suffix:Q,enterButton:se=!1,addonAfter:H,loading:y,disabled:I,onSearch:R,onChange:m,onCompositionStart:O,onCompositionEnd:ve}=u,B=T(u,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:pe,direction:re}=d.useContext(le.E_),me=d.useRef(!1),de=pe("input-search",r),Ce=pe("input",i),{compactSize:be}=(0,N.ri)(de,re),v=(0,w.Z)(M=>{var F;return(F=g!=null?g:be)!==null&&F!==void 0?F:M}),X=d.useRef(null),_=M=>{M&&M.target&&M.type==="click"&&R&&R(M.target.value,M,{source:"clear"}),m&&m(M)},e=M=>{var F;document.activeElement===((F=X.current)===null||F===void 0?void 0:F.input)&&M.preventDefault()},E=M=>{var F,A;R&&R((A=(F=X.current)===null||F===void 0?void 0:F.input)===null||A===void 0?void 0:A.value,M,{source:"input"})},z=M=>{me.current||y||E(M)},G=typeof se=="boolean"?d.createElement(D.Z,null):null,o=`${de}-button`;let s;const a=se||{},x=a.type&&a.type.__ANT_BUTTON===!0;x||a.type==="button"?s=(0,c.Tm)(a,Object.assign({onMouseDown:e,onClick:M=>{var F,A;(A=(F=a==null?void 0:a.props)===null||F===void 0?void 0:F.onClick)===null||A===void 0||A.call(F,M),E(M)},key:"enterButton"},x?{className:o,size:v}:{})):s=d.createElement(p.ZP,{className:o,type:se?"primary":void 0,size:v,disabled:I,key:"enterButton",onMouseDown:e,onClick:E,loading:y,icon:G},se),H&&(s=[s,(0,c.Tm)(H,{key:"addonAfter"})]);const L=ee()(de,{[`${de}-rtl`]:re==="rtl",[`${de}-${v}`]:!!v,[`${de}-with-button`]:!!se},f),Z=M=>{me.current=!0,O==null||O(M)},q=M=>{me.current=!1,ve==null||ve(M)};return d.createElement(U.Z,Object.assign({ref:(0,J.sQ)(X,V),onPressEnter:z},B,{size:v,onCompositionStart:Z,onCompositionEnd:q,prefixCls:Ce,addonAfter:s,suffix:Q,onChange:_,className:L,disabled:I}))}),W=n(51807);const t=U.Z;t.Group=j,t.Search=h,t.TextArea=W.Z,t.Password=oe;var K=t},48829:function($e,he,n){n.d(he,{ZP:function(){return H}});var d=n(79685),P=n(68591),ee=n.n(P),le=n(46501),ye=n(55883),ge=n(99248),C=n(73064);const j=d.createContext(null),U=j.Provider;var ue=j;const ie=d.createContext(null),te=ie.Provider;var J=n(72541),Y=n(52401),b=n(42480),l=n(75946),$=n(456),ne=n(56107),oe=n(26477),D=n(4614),c=n(44244),p=n(25830);const w=y=>{const{componentCls:I,antCls:R}=y,m=`${I}-group`;return{[m]:Object.assign(Object.assign({},(0,D.Wf)(y)),{display:"inline-block",fontSize:0,[`&${m}-rtl`]:{direction:"rtl"},[`${R}-badge ${R}-badge-count`]:{zIndex:1},[`> ${R}-badge:not(:first-child) > ${R}-button-wrapper`]:{borderInlineStart:"none"}})}},N=y=>{const{componentCls:I,wrapperMarginInlineEnd:R,colorPrimary:m,radioSize:O,motionDurationSlow:ve,motionDurationMid:B,motionEaseInOutCirc:pe,colorBgContainer:re,colorBorder:me,lineWidth:de,colorBgContainerDisabled:Ce,colorTextDisabled:be,paddingXS:v,dotColorDisabled:X,lineType:_,radioColor:e,radioBgColor:E,calc:z}=y,G=`${I}-inner`,o=4,s=z(O).sub(z(o).mul(2)),a=z(1).mul(O).equal();return{[`${I}-wrapper`]:Object.assign(Object.assign({},(0,D.Wf)(y)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:R,cursor:"pointer",[`&${I}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:y.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${I}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,oe.bf)(de)} ${_} ${m}`,borderRadius:"50%",visibility:"hidden",content:'""'},[I]:Object.assign(Object.assign({},(0,D.Wf)(y)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${I}-wrapper:hover &, + &:hover ${G}`]:{borderColor:m},[`${I}-input:focus-visible + ${G}`]:Object.assign({},(0,D.oN)(y)),[`${I}:hover::after, ${I}-wrapper:hover &::after`]:{visibility:"visible"},[`${I}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:a,height:a,marginBlockStart:z(1).mul(O).div(-2).equal(),marginInlineStart:z(1).mul(O).div(-2).equal(),backgroundColor:e,borderBlockStart:0,borderInlineStart:0,borderRadius:a,transform:"scale(0)",opacity:0,transition:`all ${ve} ${pe}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:a,height:a,backgroundColor:re,borderColor:me,borderStyle:"solid",borderWidth:de,borderRadius:"50%",transition:`all ${B}`},[`${I}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${I}-checked`]:{[G]:{borderColor:m,backgroundColor:E,"&::after":{transform:`scale(${y.calc(y.dotSize).div(O).equal()})`,opacity:1,transition:`all ${ve} ${pe}`}}},[`${I}-disabled`]:{cursor:"not-allowed",[G]:{backgroundColor:Ce,borderColor:me,cursor:"not-allowed","&::after":{backgroundColor:X}},[`${I}-input`]:{cursor:"not-allowed"},[`${I}-disabled + span`]:{color:be,cursor:"not-allowed"},[`&${I}-checked`]:{[G]:{"&::after":{transform:`scale(${z(s).div(O).equal({unit:!1})})`}}}},[`span${I} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},T=y=>{const{buttonColor:I,controlHeight:R,componentCls:m,lineWidth:O,lineType:ve,colorBorder:B,motionDurationSlow:pe,motionDurationMid:re,buttonPaddingInline:me,fontSize:de,buttonBg:Ce,fontSizeLG:be,controlHeightLG:v,controlHeightSM:X,paddingXS:_,borderRadius:e,borderRadiusSM:E,borderRadiusLG:z,buttonCheckedBg:G,buttonSolidCheckedColor:o,colorTextDisabled:s,colorBgContainerDisabled:a,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:L,colorPrimary:Z,colorPrimaryHover:q,colorPrimaryActive:M,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:A,buttonSolidCheckedActiveBg:S,calc:ae}=y;return{[`${m}-button-wrapper`]:{position:"relative",display:"inline-block",height:R,margin:0,paddingInline:me,paddingBlock:0,color:I,fontSize:de,lineHeight:(0,oe.bf)(ae(R).sub(ae(O).mul(2)).equal()),background:Ce,border:`${(0,oe.bf)(O)} ${ve} ${B}`,borderBlockStartWidth:ae(O).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:O,cursor:"pointer",transition:[`color ${re}`,`background ${re}`,`box-shadow ${re}`].join(","),a:{color:I},[`> ${m}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:ae(O).mul(-1).equal(),insetInlineStart:ae(O).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:O,paddingInline:0,backgroundColor:B,transition:`background-color ${pe}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,oe.bf)(O)} ${ve} ${B}`,borderStartStartRadius:e,borderEndStartRadius:e},"&:last-child":{borderStartEndRadius:e,borderEndEndRadius:e},"&:first-child:last-child":{borderRadius:e},[`${m}-group-large &`]:{height:v,fontSize:be,lineHeight:(0,oe.bf)(ae(v).sub(ae(O).mul(2)).equal()),"&:first-child":{borderStartStartRadius:z,borderEndStartRadius:z},"&:last-child":{borderStartEndRadius:z,borderEndEndRadius:z}},[`${m}-group-small &`]:{height:X,paddingInline:ae(_).sub(O).equal(),paddingBlock:0,lineHeight:(0,oe.bf)(ae(X).sub(ae(O).mul(2)).equal()),"&:first-child":{borderStartStartRadius:E,borderEndStartRadius:E},"&:last-child":{borderStartEndRadius:E,borderEndEndRadius:E}},"&:hover":{position:"relative",color:Z},"&:has(:focus-visible)":Object.assign({},(0,D.oN)(y)),[`${m}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${m}-button-wrapper-disabled)`]:{zIndex:1,color:Z,background:G,borderColor:Z,"&::before":{backgroundColor:Z},"&:first-child":{borderColor:Z},"&:hover":{color:q,borderColor:q,"&::before":{backgroundColor:q}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${m}-group-solid &-checked:not(${m}-button-wrapper-disabled)`]:{color:o,background:F,borderColor:F,"&:hover":{color:o,background:A,borderColor:A},"&:active":{color:o,background:S,borderColor:S}},"&-disabled":{color:s,backgroundColor:a,borderColor:B,cursor:"not-allowed","&:first-child, &:hover":{color:s,backgroundColor:a,borderColor:B}},[`&-disabled${m}-button-wrapper-checked`]:{color:L,backgroundColor:x,borderColor:B,boxShadow:"none"}}}},k=y=>{const{wireframe:I,padding:R,marginXS:m,lineWidth:O,fontSizeLG:ve,colorText:B,colorBgContainer:pe,colorTextDisabled:re,controlItemBgActiveDisabled:me,colorTextLightSolid:de,colorPrimary:Ce,colorPrimaryHover:be,colorPrimaryActive:v,colorWhite:X}=y,_=4,e=ve,E=I?e-_*2:e-(_+O)*2;return{radioSize:e,dotSize:E,dotColorDisabled:re,buttonSolidCheckedColor:de,buttonSolidCheckedBg:Ce,buttonSolidCheckedHoverBg:be,buttonSolidCheckedActiveBg:v,buttonBg:pe,buttonCheckedBg:pe,buttonColor:B,buttonCheckedBgDisabled:me,buttonCheckedColorDisabled:re,buttonPaddingInline:R-O,wrapperMarginInlineEnd:m,radioColor:I?Ce:X,radioBgColor:I?pe:Ce}};var h=(0,c.I$)("Radio",y=>{const{controlOutline:I,controlOutlineWidth:R}=y,m=`0 0 0 ${(0,oe.bf)(R)} ${I}`,O=m,ve=(0,p.TS)(y,{radioFocusShadow:m,radioButtonFocusShadow:O});return[w(ve),N(ve),T(ve)]},k,{unitless:{radioSize:!0,dotSize:!0}}),W=n(84477),t=function(y,I){var R={};for(var m in y)Object.prototype.hasOwnProperty.call(y,m)&&I.indexOf(m)<0&&(R[m]=y[m]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,m=Object.getOwnPropertySymbols(y);O{var R,m;const O=d.useContext(ue),ve=d.useContext(ie),{getPrefixCls:B,direction:pe,radio:re}=d.useContext(ge.E_),me=d.useRef(null),de=(0,Y.sQ)(I,me),{isFormItemInput:Ce}=d.useContext(ne.aM),be=F=>{var A,S;(A=y.onChange)===null||A===void 0||A.call(y,F),(S=O==null?void 0:O.onChange)===null||S===void 0||S.call(O,F)},{prefixCls:v,className:X,rootClassName:_,children:e,style:E}=y,z=t(y,["prefixCls","className","rootClassName","children","style"]),G=B("radio",v),o=((O==null?void 0:O.optionType)||ve)==="button",s=o?`${G}-button`:G,a=(0,W.Z)(G),[x,L]=h(G,a),Z=Object.assign({},z),q=d.useContext($.Z);O&&(Z.name=O.name,Z.onChange=be,Z.checked=y.value===O.value,Z.disabled=(R=Z.disabled)!==null&&R!==void 0?R:O.disabled),Z.disabled=(m=Z.disabled)!==null&&m!==void 0?m:q;const M=ee()(`${s}-wrapper`,{[`${s}-wrapper-checked`]:Z.checked,[`${s}-wrapper-disabled`]:Z.disabled,[`${s}-wrapper-rtl`]:pe==="rtl",[`${s}-wrapper-in-form-item`]:Ce},re==null?void 0:re.className,X,_,L,a);return x(d.createElement(b.Z,{component:"Radio",disabled:Z.disabled},d.createElement("label",{className:M,style:Object.assign(Object.assign({},re==null?void 0:re.style),E),onMouseEnter:y.onMouseEnter,onMouseLeave:y.onMouseLeave},d.createElement(J.Z,Object.assign({},Z,{className:ee()(Z.className,!o&&l.A),type:"radio",prefixCls:s,ref:de})),e!==void 0?d.createElement("span",null,e):null)))};var V=d.forwardRef(K);const r=d.forwardRef((y,I)=>{const{getPrefixCls:R,direction:m}=d.useContext(ge.E_),[O,ve]=(0,le.Z)(y.defaultValue,{value:y.value}),B=A=>{const S=O,ae=A.target.value;"value"in y||ve(ae);const{onChange:fe}=y;fe&&ae!==S&&fe(A)},{prefixCls:pe,className:re,rootClassName:me,options:de,buttonStyle:Ce="outline",disabled:be,children:v,size:X,style:_,id:e,onMouseEnter:E,onMouseLeave:z,onFocus:G,onBlur:o}=y,s=R("radio",pe),a=`${s}-group`,x=(0,W.Z)(s),[L,Z]=h(s,x);let q=v;de&&de.length>0&&(q=de.map(A=>typeof A=="string"||typeof A=="number"?d.createElement(V,{key:A.toString(),prefixCls:s,disabled:be,value:A,checked:O===A},A):d.createElement(V,{key:`radio-group-value-options-${A.value}`,prefixCls:s,disabled:A.disabled||be,value:A.value,checked:O===A.value,title:A.title,style:A.style,id:A.id,required:A.required},A.label)));const M=(0,C.Z)(X),F=ee()(a,`${a}-${Ce}`,{[`${a}-${M}`]:M,[`${a}-rtl`]:m==="rtl"},re,me,Z,x);return L(d.createElement("div",Object.assign({},(0,ye.Z)(y,{aria:!0,data:!0}),{className:F,style:_,onMouseEnter:E,onMouseLeave:z,onFocus:G,onBlur:o,id:e,ref:I}),d.createElement(U,{value:{onChange:B,value:O,disabled:y.disabled,name:y.name,optionType:y.optionType}},q)))});var i=d.memo(r),f=function(y,I){var R={};for(var m in y)Object.prototype.hasOwnProperty.call(y,m)&&I.indexOf(m)<0&&(R[m]=y[m]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,m=Object.getOwnPropertySymbols(y);O{const{getPrefixCls:R}=d.useContext(ge.E_),{prefixCls:m}=y,O=f(y,["prefixCls"]),ve=R("radio",m);return d.createElement(te,{value:"button"},d.createElement(V,Object.assign({prefixCls:ve},O,{type:"radio",ref:I})))};var Q=d.forwardRef(g);const se=V;se.Button=Q,se.Group=i,se.__ANT_RADIO=!0;var H=se},27685:function($e,he,n){n.d(he,{TM:function(){return J},Yk:function(){return te}});var d=n(26477),P=n(57670),ee=n(4614),le=n(95178),ye=n(25830),ge=n(44244);const C=new d.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),j=(b,l)=>({[`.${b}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${l.motionDurationSlow}`}}}),U=(b,l)=>({[`.${b}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:l.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,d.bf)(l.lineWidthBold)} solid ${l.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ue=(b,l)=>{const{treeCls:$,treeNodeCls:ne,treeNodePadding:oe,titleHeight:D,nodeSelectedBg:c,nodeHoverBg:p}=l,w=l.paddingXS;return{[$]:Object.assign(Object.assign({},(0,ee.Wf)(l)),{background:l.colorBgContainer,borderRadius:l.borderRadius,transition:`background-color ${l.motionDurationSlow}`,[`&${$}-rtl`]:{[`${$}-switcher`]:{"&_close":{[`${$}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${$}-active-focused)`]:Object.assign({},(0,ee.oN)(l)),[`${$}-list-holder-inner`]:{alignItems:"flex-start"},[`&${$}-block-node`]:{[`${$}-list-holder-inner`]:{alignItems:"stretch",[`${$}-node-content-wrapper`]:{flex:"auto"},[`${ne}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:oe,insetInlineStart:0,border:`1px solid ${l.colorPrimary}`,opacity:0,animationName:C,animationDuration:l.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ne}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,d.bf)(oe)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${$}-node-content-wrapper`]:{color:l.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${$}-node-content-wrapper`]:Object.assign({},(0,ee.oN)(l)),[`&:not(${ne}-disabled).filter-node ${$}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${$}-draggable-icon`]:{flexShrink:0,width:D,lineHeight:`${(0,d.bf)(D)}`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${l.motionDurationSlow}`,[`${ne}:hover &`]:{opacity:.45}},[`&${ne}-disabled`]:{[`${$}-draggable-icon`]:{visibility:"hidden"}}}},[`${$}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:D}},[`${$}-draggable-icon`]:{visibility:"hidden"},[`${$}-switcher`]:Object.assign(Object.assign({},j(b,l)),{position:"relative",flex:"none",alignSelf:"stretch",width:D,margin:0,lineHeight:`${(0,d.bf)(D)}`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${$}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:l.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l.calc(D).div(2).equal(),bottom:l.calc(oe).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${l.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:l.calc(l.calc(D).div(2).equal()).mul(.8).equal(),height:l.calc(D).div(2).equal(),borderBottom:`1px solid ${l.colorBorder}`,content:'""'}}}),[`${$}-checkbox`]:{top:"initial",marginInlineEnd:w,alignSelf:"flex-start",marginTop:l.marginXXS},[`${$}-node-content-wrapper, ${$}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:D,margin:0,padding:`0 ${(0,d.bf)(l.calc(l.paddingXS).div(2).equal())}`,color:"inherit",lineHeight:`${(0,d.bf)(D)}`,background:"transparent",borderRadius:l.borderRadius,cursor:"pointer",transition:`all ${l.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:p},[`&${$}-node-selected`]:{backgroundColor:c},[`${$}-iconEle`]:{display:"inline-block",width:D,height:D,lineHeight:`${(0,d.bf)(D)}`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${$}-unselectable ${$}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${$}-node-content-wrapper`]:Object.assign({lineHeight:`${(0,d.bf)(D)}`,userSelect:"none"},U(b,l)),[`${ne}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${l.colorPrimary}`}},"&-show-line":{[`${$}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l.calc(D).div(2).equal(),bottom:l.calc(oe).mul(-1).equal(),borderInlineEnd:`1px solid ${l.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${$}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ne}-leaf-last`]:{[`${$}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,d.bf)(l.calc(D).div(2).equal())} !important`}}}}})}},ie=b=>{const{treeCls:l,treeNodeCls:$,treeNodePadding:ne,directoryNodeSelectedBg:oe,directoryNodeSelectedColor:D}=b;return{[`${l}${l}-directory`]:{[$]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ne,insetInlineStart:0,transition:`background-color ${b.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:b.controlItemBgHover}},"> *":{zIndex:1},[`${l}-switcher`]:{transition:`color ${b.motionDurationMid}`},[`${l}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${l}-node-selected`]:{color:D,background:"transparent"}},"&-selected":{[` + &:hover::before, + &::before + `]:{background:oe},[`${l}-switcher`]:{color:D},[`${l}-node-content-wrapper`]:{color:D,background:"transparent"}}}}}},te=(b,l)=>{const $=`.${b}`,ne=`${$}-treenode`,oe=l.calc(l.paddingXS).div(2).equal(),D=(0,ye.TS)(l,{treeCls:$,treeNodeCls:ne,treeNodePadding:oe});return[ue(b,D),ie(D)]},J=b=>{const{controlHeightSM:l}=b;return{titleHeight:l,nodeHoverBg:b.controlItemBgHover,nodeSelectedBg:b.controlItemBgActive}},Y=b=>{const{colorTextLightSolid:l,colorPrimary:$}=b;return Object.assign(Object.assign({},J(b)),{directoryNodeSelectedColor:l,directoryNodeSelectedBg:$})};he.ZP=(0,ge.I$)("Tree",(b,l)=>{let{prefixCls:$}=l;return[{[b.componentCls]:(0,P.C2)(`${$}-checkbox`,b)},te($,b),(0,le.Z)(b)]},Y)},15208:function($e,he,n){n.d(he,{Z:function(){return p}});var d=n(21137),P=n(79685),ee={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},le=ee,ye=n(83317),ge=function(N,T){return P.createElement(ye.Z,(0,d.Z)({},N,{ref:T,icon:le}))},C=P.forwardRef(ge),j=n(26163),U=n(75527),ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ie=ue,te=function(N,T){return P.createElement(ye.Z,(0,d.Z)({},N,{ref:T,icon:ie}))},J=P.forwardRef(te),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},b=Y,l=function(N,T){return P.createElement(ye.Z,(0,d.Z)({},N,{ref:T,icon:b}))},$=P.forwardRef(l),ne=n(68591),oe=n.n(ne),D=n(23196),p=w=>{const{prefixCls:N,switcherIcon:T,treeNodeProps:k,showLine:h}=w,{isLeaf:W,expanded:t,loading:K}=k;if(K)return P.createElement(U.Z,{className:`${N}-switcher-loading-icon`});let u;if(h&&typeof h=="object"&&(u=h.showLeafIcon),W){if(!h)return null;if(typeof u!="boolean"&&u){const i=typeof u=="function"?u(k):u,f=`${N}-switcher-line-custom-icon`;return(0,D.l$)(i)?(0,D.Tm)(i,{className:oe()(i.props.className||"",f)}):i}return u?P.createElement(j.Z,{className:`${N}-switcher-line-icon`}):P.createElement("span",{className:`${N}-switcher-leaf-line`})}const V=`${N}-switcher-icon`,r=typeof T=="function"?T(k):T;return(0,D.l$)(r)?(0,D.Tm)(r,{className:oe()(r.props.className||"",V)}):r!==void 0?r:h?t?P.createElement(J,{className:`${N}-switcher-line-icon`}):P.createElement($,{className:`${N}-switcher-line-icon`}):P.createElement(C,{className:V})}},72541:function($e,he,n){var d=n(21137),P=n(93264),ee=n(6346),le=n(89342),ye=n(98787),ge=n(68591),C=n.n(ge),j=n(46501),U=n(79685),ue=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],ie=(0,U.forwardRef)(function(te,J){var Y,b=te.prefixCls,l=b===void 0?"rc-checkbox":b,$=te.className,ne=te.style,oe=te.checked,D=te.disabled,c=te.defaultChecked,p=c===void 0?!1:c,w=te.type,N=w===void 0?"checkbox":w,T=te.title,k=te.onChange,h=(0,ye.Z)(te,ue),W=(0,U.useRef)(null),t=(0,j.Z)(p,{value:oe}),K=(0,le.Z)(t,2),u=K[0],V=K[1];(0,U.useImperativeHandle)(J,function(){return{focus:function(){var g;(g=W.current)===null||g===void 0||g.focus()},blur:function(){var g;(g=W.current)===null||g===void 0||g.blur()},input:W.current}});var r=C()(l,$,(Y={},(0,ee.Z)(Y,"".concat(l,"-checked"),u),(0,ee.Z)(Y,"".concat(l,"-disabled"),D),Y)),i=function(g){D||("checked"in te||V(g.target.checked),k==null||k({target:(0,P.Z)((0,P.Z)({},te),{},{type:N,checked:g.target.checked}),stopPropagation:function(){g.stopPropagation()},preventDefault:function(){g.preventDefault()},nativeEvent:g.nativeEvent}))};return U.createElement("span",{className:r,title:T,style:ne},U.createElement("input",(0,d.Z)({},h,{className:"".concat(l,"-input"),ref:W,onChange:i,disabled:D,checked:!!u,type:N})),U.createElement("span",{className:"".concat(l,"-inner")}))});he.Z=ie},25111:function($e,he,n){n.d(he,{Z:function(){return T}});var d=n(21137),P=n(6346),ee=n(98787),le=n(93264),ye=n(30114),ge=n(51392),C=n(13547),j=n(61926),U=n(92596),ue=n(68591),ie=n.n(ue),te=n(55883),J=n(79685),Y=n(13699),b=function(h){for(var W=h.prefixCls,t=h.level,K=h.isStart,u=h.isEnd,V="".concat(W,"-indent-unit"),r=[],i=0;i0&&arguments[0]!==void 0?arguments[0]:[],X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_=v.length,e=X.length;if(Math.abs(_-e)!==1)return{add:!1,key:null};function E(z,G){var o=new Map;z.forEach(function(a){o.set(a,!0)});var s=G.filter(function(a){return!o.has(a)});return s.length===1?s[0]:null}return _ ").concat(X);return X}var O=l.forwardRef(function(v,X){var _=v.prefixCls,e=v.data,E=v.selectable,z=v.checkable,G=v.expandedKeys,o=v.selectedKeys,s=v.checkedKeys,a=v.loadedKeys,x=v.loadingKeys,L=v.halfCheckedKeys,Z=v.keyEntities,q=v.disabled,M=v.dragging,F=v.dragOverNodeKey,A=v.dropPosition,S=v.motion,ae=v.height,fe=v.itemHeight,ce=v.virtual,xe=v.focusable,Ee=v.activeItem,Ke=v.focused,Se=v.tabIndex,Oe=v.onKeyDown,Me=v.onFocus,De=v.onBlur,Ne=v.onActiveChange,ke=v.onListChangeStart,Ie=v.onListChangeEnd,Re=(0,c.Z)(v,i),we=l.useRef(null),Te=l.useRef(null);l.useImperativeHandle(X,function(){return{scrollTo:function(Ze){we.current.scrollTo(Ze)},getIndentWidth:function(){return Te.current.offsetWidth}}});var Le=l.useState(G),Ve=(0,D.Z)(Le,2),qe=Ve[0],_e=Ve[1],et=l.useState(e),Xe=(0,D.Z)(et,2),Ae=Xe[0],Ye=Xe[1],tt=l.useState(e),Qe=(0,D.Z)(tt,2),nt=Qe[0],He=Qe[1],ot=l.useState([]),Be=(0,D.Z)(ot,2),ct=Be[0],rt=Be[1],ut=l.useState(null),lt=(0,D.Z)(ut,2),ft=lt[0],at=lt[1],st=l.useRef(e);st.current=e;function it(){var Pe=st.current;Ye(Pe),He(Pe),rt([]),at(null),Ie()}(0,p.Z)(function(){_e(G);var Pe=V(qe,G);if(Pe.key!==null)if(Pe.add){var Ze=Ae.findIndex(function(Ue){var Ge=Ue.key;return Ge===Pe.key}),ze=I(r(Ae,e,Pe.key),ce,ae,fe),Fe=Ae.slice();Fe.splice(Ze+1,0,y),He(Fe),rt(ze),at("show")}else{var je=e.findIndex(function(Ue){var Ge=Ue.key;return Ge===Pe.key}),We=I(r(e,Ae,Pe.key),ce,ae,fe),Je=e.slice();Je.splice(je+1,0,y),He(Je),rt(We),at("hide")}else Ae!==e&&(Ye(e),He(e))},[G,e]),l.useEffect(function(){M||it()},[M]);var vt=S?nt:e,dt={expandedKeys:G,selectedKeys:o,loadedKeys:a,loadingKeys:x,checkedKeys:s,halfCheckedKeys:L,dragOverNodeKey:F,dropPosition:A,keyEntities:Z};return l.createElement(l.Fragment,null,Ke&&Ee&&l.createElement("span",{style:f,"aria-live":"assertive"},m(Ee)),l.createElement("div",null,l.createElement("input",{style:f,disabled:xe===!1||q,tabIndex:xe!==!1?Se:null,onKeyDown:Oe,onFocus:Me,onBlur:De,value:"",onChange:g,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(_,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(_,"-indent")},l.createElement("div",{ref:Te,className:"".concat(_,"-indent-unit")}))),l.createElement(w.Z,(0,d.Z)({},Re,{data:vt,itemKey:R,height:ae,fullHeight:!1,virtual:ce,itemHeight:fe,prefixCls:"".concat(_,"-list"),ref:we,onVisibleChange:function(Ze,ze){var Fe=new Set(Ze),je=ze.filter(function(We){return!Fe.has(We)});je.some(function(We){return R(We)===Q})&&it()}}),function(Pe){var Ze=Pe.pos,ze=(0,d.Z)({},(oe(Pe.data),Pe.data)),Fe=Pe.title,je=Pe.key,We=Pe.isStart,Je=Pe.isEnd,Ue=(0,h.km)(je,Ze);delete ze.key,delete ze.children;var Ge=(0,h.H8)(Ue,dt);return l.createElement(u,(0,d.Z)({},ze,Ge,{title:Fe,active:!!Ee&&je===Ee.key,pos:Ze,data:Pe.data,isStart:We,isEnd:Je,motion:S,motionNodes:je===Q?ct:null,motionType:ft,onMotionStart:ke,onMotionEnd:it,treeNodeRequiredProps:dt,onMouseMove:function(){Ne(null)}}))}))});O.displayName="NodeList";var ve=O,B=n(55568),pe=n(25263),re=n(98275),me=10,de=function(v){(0,U.Z)(_,v);var X=(0,ue.Z)(_);function _(){var e;(0,ge.Z)(this,_);for(var E=arguments.length,z=new Array(E),G=0;G2&&arguments[2]!==void 0?arguments[2]:!1,L=e.state,Z=L.dragChildrenKeys,q=L.dropPosition,M=L.dropTargetKey,F=L.dropTargetPos,A=L.dropAllowed;if(A){var S=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),M!==null){var ae=(0,le.Z)((0,le.Z)({},(0,h.H8)(M,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===M,data:(0,re.Z)(e.state.keyEntities,M).node}),fe=Z.indexOf(M)!==-1;(0,b.ZP)(!fe,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ce=(0,B.yx)(F),xe={event:o,node:(0,h.F)(ae),dragNode:e.dragNode?(0,h.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(Z),dropToGap:q!==0,dropPosition:q+Number(ce[ce.length-1])};x||S==null||S(xe),e.dragNode=null}}},e.cleanDragState=function(){var o=e.state.draggingNodeKey;o!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(o,s){var a=e.state,x=a.expandedKeys,L=a.flattenNodes,Z=s.expanded,q=s.key,M=s.isLeaf;if(!(M||o.shiftKey||o.metaKey||o.ctrlKey)){var F=L.filter(function(S){return S.key===q})[0],A=(0,h.F)((0,le.Z)((0,le.Z)({},(0,h.H8)(q,e.getTreeNodeRequiredProps())),{},{data:F.data}));e.setExpandedKeys(Z?(0,B._5)(x,q):(0,B.L0)(x,q)),e.onNodeExpand(o,A)}},e.onNodeClick=function(o,s){var a=e.props,x=a.onClick,L=a.expandAction;L==="click"&&e.triggerExpandActionExpand(o,s),x==null||x(o,s)},e.onNodeDoubleClick=function(o,s){var a=e.props,x=a.onDoubleClick,L=a.expandAction;L==="doubleClick"&&e.triggerExpandActionExpand(o,s),x==null||x(o,s)},e.onNodeSelect=function(o,s){var a=e.state.selectedKeys,x=e.state,L=x.keyEntities,Z=x.fieldNames,q=e.props,M=q.onSelect,F=q.multiple,A=s.selected,S=s[Z.key],ae=!A;ae?F?a=(0,B.L0)(a,S):a=[S]:a=(0,B._5)(a,S);var fe=a.map(function(ce){var xe=(0,re.Z)(L,ce);return xe?xe.node:null}).filter(function(ce){return ce});e.setUncontrolledState({selectedKeys:a}),M==null||M(a,{event:"select",selected:ae,node:s,selectedNodes:fe,nativeEvent:o.nativeEvent})},e.onNodeCheck=function(o,s,a){var x=e.state,L=x.keyEntities,Z=x.checkedKeys,q=x.halfCheckedKeys,M=e.props,F=M.checkStrictly,A=M.onCheck,S=s.key,ae,fe={event:"check",node:s,checked:a,nativeEvent:o.nativeEvent};if(F){var ce=a?(0,B.L0)(Z,S):(0,B._5)(Z,S),xe=(0,B._5)(q,S);ae={checked:ce,halfChecked:xe},fe.checkedNodes=ce.map(function(De){return(0,re.Z)(L,De)}).filter(function(De){return De}).map(function(De){return De.node}),e.setUncontrolledState({checkedKeys:ce})}else{var Ee=(0,pe.S)([].concat((0,ye.Z)(Z),[S]),!0,L),Ke=Ee.checkedKeys,Se=Ee.halfCheckedKeys;if(!a){var Oe=new Set(Ke);Oe.delete(S);var Me=(0,pe.S)(Array.from(Oe),{checked:!1,halfCheckedKeys:Se},L);Ke=Me.checkedKeys,Se=Me.halfCheckedKeys}ae=Ke,fe.checkedNodes=[],fe.checkedNodesPositions=[],fe.halfCheckedKeys=Se,Ke.forEach(function(De){var Ne=(0,re.Z)(L,De);if(Ne){var ke=Ne.node,Ie=Ne.pos;fe.checkedNodes.push(ke),fe.checkedNodesPositions.push({node:ke,pos:Ie})}}),e.setUncontrolledState({checkedKeys:Ke},!1,{halfCheckedKeys:Se})}A==null||A(ae,fe)},e.onNodeLoad=function(o){var s=o.key,a=new Promise(function(x,L){e.setState(function(Z){var q=Z.loadedKeys,M=q===void 0?[]:q,F=Z.loadingKeys,A=F===void 0?[]:F,S=e.props,ae=S.loadData,fe=S.onLoad;if(!ae||M.indexOf(s)!==-1||A.indexOf(s)!==-1)return null;var ce=ae(o);return ce.then(function(){var xe=e.state.loadedKeys,Ee=(0,B.L0)(xe,s);fe==null||fe(Ee,{event:"load",node:o}),e.setUncontrolledState({loadedKeys:Ee}),e.setState(function(Ke){return{loadingKeys:(0,B._5)(Ke.loadingKeys,s)}}),x()}).catch(function(xe){if(e.setState(function(Ke){return{loadingKeys:(0,B._5)(Ke.loadingKeys,s)}}),e.loadingRetryTimes[s]=(e.loadingRetryTimes[s]||0)+1,e.loadingRetryTimes[s]>=me){var Ee=e.state.loadedKeys;(0,b.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,B.L0)(Ee,s)}),x()}L(xe)}),{loadingKeys:(0,B.L0)(A,s)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(o,s){var a=e.props.onMouseEnter;a==null||a({event:o,node:s})},e.onNodeMouseLeave=function(o,s){var a=e.props.onMouseLeave;a==null||a({event:o,node:s})},e.onNodeContextMenu=function(o,s){var a=e.props.onRightClick;a&&(o.preventDefault(),a({event:o,node:s}))},e.onFocus=function(){var o=e.props.onFocus;e.setState({focused:!0});for(var s=arguments.length,a=new Array(s),x=0;x1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var x=!1,L=!0,Z={};Object.keys(o).forEach(function(q){if(q in e.props){L=!1;return}x=!0,Z[q]=o[q]}),x&&(!s||L)&&e.setState((0,le.Z)((0,le.Z)({},Z),a))}},e.scrollTo=function(o){e.listRef.current.scrollTo(o)},e}return(0,C.Z)(_,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var E=this.props,z=E.activeKey,G=E.itemScrollOffset,o=G===void 0?0:G;z!==void 0&&z!==this.state.activeKey&&(this.setState({activeKey:z}),z!==null&&this.scrollTo({key:z,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var E,z=this.state,G=z.focused,o=z.flattenNodes,s=z.keyEntities,a=z.draggingNodeKey,x=z.activeKey,L=z.dropLevelOffset,Z=z.dropContainerKey,q=z.dropTargetKey,M=z.dropPosition,F=z.dragOverNodeKey,A=z.indent,S=this.props,ae=S.prefixCls,fe=S.className,ce=S.style,xe=S.showLine,Ee=S.focusable,Ke=S.tabIndex,Se=Ke===void 0?0:Ke,Oe=S.selectable,Me=S.showIcon,De=S.icon,Ne=S.switcherIcon,ke=S.draggable,Ie=S.checkable,Re=S.checkStrictly,we=S.disabled,Te=S.motion,Le=S.loadData,Ve=S.filterTreeNode,qe=S.height,_e=S.itemHeight,et=S.virtual,Xe=S.titleRender,Ae=S.dropIndicatorRender,Ye=S.onContextMenu,tt=S.onScroll,Qe=S.direction,nt=S.rootClassName,He=S.rootStyle,ot=(0,Y.Z)(this.props,{aria:!0,data:!0}),Be;return ke&&((0,ee.Z)(ke)==="object"?Be=ke:typeof ke=="function"?Be={nodeDraggable:ke}:Be={}),l.createElement($.k.Provider,{value:{prefixCls:ae,selectable:Oe,showIcon:Me,icon:De,switcherIcon:Ne,draggable:Be,draggingNodeKey:a,checkable:Ie,checkStrictly:Re,disabled:we,keyEntities:s,dropLevelOffset:L,dropContainerKey:Z,dropTargetKey:q,dropPosition:M,dragOverNodeKey:F,indent:A,direction:Qe,dropIndicatorRender:Ae,loadData:Le,filterTreeNode:Ve,titleRender:Xe,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},l.createElement("div",{role:"tree",className:te()(ae,fe,nt,(E={},(0,P.Z)(E,"".concat(ae,"-show-line"),xe),(0,P.Z)(E,"".concat(ae,"-focused"),G),(0,P.Z)(E,"".concat(ae,"-active-focused"),x!==null),E)),style:He},l.createElement(ve,(0,d.Z)({ref:this.listRef,prefixCls:ae,style:ce,data:o,disabled:we,selectable:Oe,checkable:!!Ie,motion:Te,dragging:a!==null,height:qe,itemHeight:_e,virtual:et,focusable:Ee,focused:G,tabIndex:Se,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ye,onScroll:tt},this.getTreeNodeRequiredProps(),ot))))}}],[{key:"getDerivedStateFromProps",value:function(E,z){var G=z.prevProps,o={prevProps:E};function s(Ee){return!G&&Ee in E||G&&G[Ee]!==E[Ee]}var a,x=z.fieldNames;if(s("fieldNames")&&(x=(0,h.w$)(E.fieldNames),o.fieldNames=x),s("treeData")?a=E.treeData:s("children")&&((0,b.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,h.zn)(E.children)),a){o.treeData=a;var L=(0,h.I8)(a,{fieldNames:x});o.keyEntities=(0,le.Z)((0,P.Z)({},Q,H),L.keyEntities)}var Z=o.keyEntities||z.keyEntities;if(s("expandedKeys")||G&&s("autoExpandParent"))o.expandedKeys=E.autoExpandParent||!G&&E.defaultExpandParent?(0,B.r7)(E.expandedKeys,Z):E.expandedKeys;else if(!G&&E.defaultExpandAll){var q=(0,le.Z)({},Z);delete q[Q],o.expandedKeys=Object.keys(q).map(function(Ee){return q[Ee].key})}else!G&&E.defaultExpandedKeys&&(o.expandedKeys=E.autoExpandParent||E.defaultExpandParent?(0,B.r7)(E.defaultExpandedKeys,Z):E.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,a||o.expandedKeys){var M=(0,h.oH)(a||z.treeData,o.expandedKeys||z.expandedKeys,x);o.flattenNodes=M}if(E.selectable&&(s("selectedKeys")?o.selectedKeys=(0,B.BT)(E.selectedKeys,E):!G&&E.defaultSelectedKeys&&(o.selectedKeys=(0,B.BT)(E.defaultSelectedKeys,E))),E.checkable){var F;if(s("checkedKeys")?F=(0,B.E6)(E.checkedKeys)||{}:!G&&E.defaultCheckedKeys?F=(0,B.E6)(E.defaultCheckedKeys)||{}:a&&(F=(0,B.E6)(E.checkedKeys)||{checkedKeys:z.checkedKeys,halfCheckedKeys:z.halfCheckedKeys}),F){var A=F,S=A.checkedKeys,ae=S===void 0?[]:S,fe=A.halfCheckedKeys,ce=fe===void 0?[]:fe;if(!E.checkStrictly){var xe=(0,pe.S)(ae,!0,Z);ae=xe.checkedKeys,ce=xe.halfCheckedKeys}o.checkedKeys=ae,o.halfCheckedKeys=ce}}return s("loadedKeys")&&(o.loadedKeys=E.loadedKeys),o}}]),_}(l.Component);de.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ne,allowDrop:function(){return!0},expandAction:!1},de.TreeNode=T.Z;var Ce=de,be=Ce},55568:function($e,he,n){n.d(he,{BT:function(){return l},E6:function(){return oe},L0:function(){return ue},OM:function(){return b},_5:function(){return U},r7:function(){return D},wA:function(){return te},yx:function(){return ie}});var d=n(57963),P=n(63195),ee=n(30765),le=n(79685),ye=n(25111),ge=n(98275),C=n(82921),j=null;function U(c,p){if(!c)return[];var w=c.slice(),N=w.indexOf(p);return N>=0&&w.splice(N,1),w}function ue(c,p){var w=(c||[]).slice();return w.indexOf(p)===-1&&w.push(p),w}function ie(c){return c.split("-")}function te(c,p){var w=[],N=(0,ge.Z)(p,c);function T(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];k.forEach(function(h){var W=h.key,t=h.children;w.push(W),T(t)})}return T(N.children),w}function J(c){if(c.parent){var p=ie(c.pos);return Number(p[p.length-1])===c.parent.children.length-1}return!1}function Y(c){var p=ie(c.pos);return Number(p[p.length-1])===0}function b(c,p,w,N,T,k,h,W,t,K){var u,V=c.clientX,r=c.clientY,i=c.target.getBoundingClientRect(),f=i.top,g=i.height,Q=(K==="rtl"?-1:1)*(((T==null?void 0:T.x)||0)-V),se=(Q-12)/N,H=(0,ge.Z)(W,w.props.eventKey);if(r-1.5?k({dragNode:me,dropNode:de,dropPosition:1})?B=1:Ce=!1:k({dragNode:me,dropNode:de,dropPosition:0})?B=0:k({dragNode:me,dropNode:de,dropPosition:1})?B=1:Ce=!1:k({dragNode:me,dropNode:de,dropPosition:1})?B=1:Ce=!1,{dropPosition:B,dropLevelOffset:pe,dropTargetKey:H.key,dropTargetPos:H.pos,dragOverNodeKey:ve,dropContainerKey:B===0?null:((u=H.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:Ce}}function l(c,p){if(c){var w=p.multiple;return w?c.slice():c.length?[c[0]]:c}}var $=function(p){return p};function ne(c,p){if(!c)return[];var w=p||{},N=w.processProps,T=N===void 0?$:N,k=Array.isArray(c)?c:[c];return k.map(function(h){var W=h.children,t=_objectWithoutProperties(h,j),K=ne(W,p);return React.createElement(TreeNode,_extends({key:t.key},T(t)),K)})}function oe(c){if(!c)return null;var p;if(Array.isArray(c))p={checkedKeys:c,halfCheckedKeys:void 0};else if((0,P.Z)(c)==="object")p={checkedKeys:c.checked||void 0,halfCheckedKeys:c.halfChecked||void 0};else return(0,ee.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return p}function D(c,p){var w=new Set;function N(T){if(!w.has(T)){var k=(0,ge.Z)(p,T);if(k){w.add(T);var h=k.parent,W=k.node;W.disabled||h&&N(h.key)}}}return(c||[]).forEach(function(T){N(T)}),(0,d.Z)(w)}},25263:function($e,he,n){n.d(he,{S:function(){return C}});var d=n(30765),P=n(98275);function ee(j,U){var ue=new Set;return j.forEach(function(ie){U.has(ie)||ue.add(ie)}),ue}function le(j){var U=j||{},ue=U.disabled,ie=U.disableCheckbox,te=U.checkable;return!!(ue||ie)||te===!1}function ye(j,U,ue,ie){for(var te=new Set(j),J=new Set,Y=0;Y<=ue;Y+=1){var b=U.get(Y)||new Set;b.forEach(function(oe){var D=oe.key,c=oe.node,p=oe.children,w=p===void 0?[]:p;te.has(D)&&!ie(c)&&w.filter(function(N){return!ie(N.node)}).forEach(function(N){te.add(N.key)})})}for(var l=new Set,$=ue;$>=0;$-=1){var ne=U.get($)||new Set;ne.forEach(function(oe){var D=oe.parent,c=oe.node;if(!(ie(c)||!oe.parent||l.has(oe.parent.key))){if(ie(oe.parent.node)){l.add(D.key);return}var p=!0,w=!1;(D.children||[]).filter(function(N){return!ie(N.node)}).forEach(function(N){var T=N.key,k=te.has(T);p&&!k&&(p=!1),!w&&(k||J.has(T))&&(w=!0)}),p&&te.add(D.key),w&&J.add(D.key),l.add(D.key)}})}return{checkedKeys:Array.from(te),halfCheckedKeys:Array.from(ee(J,te))}}function ge(j,U,ue,ie,te){for(var J=new Set(j),Y=new Set(U),b=0;b<=ie;b+=1){var l=ue.get(b)||new Set;l.forEach(function(D){var c=D.key,p=D.node,w=D.children,N=w===void 0?[]:w;!J.has(c)&&!Y.has(c)&&!te(p)&&N.filter(function(T){return!te(T.node)}).forEach(function(T){J.delete(T.key)})})}Y=new Set;for(var $=new Set,ne=ie;ne>=0;ne-=1){var oe=ue.get(ne)||new Set;oe.forEach(function(D){var c=D.parent,p=D.node;if(!(te(p)||!D.parent||$.has(D.parent.key))){if(te(D.parent.node)){$.add(c.key);return}var w=!0,N=!1;(c.children||[]).filter(function(T){return!te(T.node)}).forEach(function(T){var k=T.key,h=J.has(k);w&&!h&&(w=!1),!N&&(h||Y.has(k))&&(N=!0)}),w||J.delete(c.key),N&&Y.add(c.key),$.add(c.key)}})}return{checkedKeys:Array.from(J),halfCheckedKeys:Array.from(ee(Y,J))}}function C(j,U,ue,ie){var te=[],J;ie?J=ie:J=le;var Y=new Set(j.filter(function(ne){var oe=!!(0,P.Z)(ue,ne);return oe||te.push(ne),oe})),b=new Map,l=0;Object.keys(ue).forEach(function(ne){var oe=ue[ne],D=oe.level,c=b.get(D);c||(c=new Set,b.set(D,c)),c.add(oe),l=Math.max(l,D)}),(0,d.ZP)(!te.length,"Tree missing follow keys: ".concat(te.slice(0,100).map(function(ne){return"'".concat(ne,"'")}).join(", ")));var $;return U===!0?$=ye(Y,b,l,J):$=ge(Y,U.halfCheckedKeys,b,l,J),$}},98275:function($e,he,n){n.d(he,{Z:function(){return d}});function d(P,ee){return P[ee]}},82921:function($e,he,n){n.d(he,{F:function(){return D},H8:function(){return oe},I8:function(){return ne},km:function(){return te},oH:function(){return l},w$:function(){return J},zn:function(){return b}});var d=n(63195),P=n(57963),ee=n(93264),le=n(98787),ye=n(89259),ge=n(3139),C=n(30765),j=n(98275),U=["children"];function ue(c,p){return"".concat(c,"-").concat(p)}function ie(c){return c&&c.type&&c.type.isTreeNode}function te(c,p){return c!=null?c:p}function J(c){var p=c||{},w=p.title,N=p._title,T=p.key,k=p.children,h=w||"title";return{title:h,_title:N||[h],key:T||"key",children:k||"children"}}function Y(c,p){var w=new Map;function N(T){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(T||[]).forEach(function(h){var W=h[p.key],t=h[p.children];warning(W!=null,"Tree node must have a certain key: [".concat(k).concat(W,"]"));var K=String(W);warning(!w.has(K)||W===null||W===void 0,"Same 'key' exist in the Tree: ".concat(K)),w.set(K,!0),N(t,"".concat(k).concat(K," > "))})}N(c)}function b(c){function p(w){var N=(0,ye.Z)(w);return N.map(function(T){if(!ie(T))return(0,C.ZP)(!T,"Tree/TreeNode can only accept TreeNode as children."),null;var k=T.key,h=T.props,W=h.children,t=(0,le.Z)(h,U),K=(0,ee.Z)({key:k},t),u=p(W);return u.length&&(K.children=u),K}).filter(function(T){return T})}return p(c)}function l(c,p,w){var N=J(w),T=N._title,k=N.key,h=N.children,W=new Set(p===!0?[]:p),t=[];function K(u){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(r,i){for(var f=ue(V?V.pos:"0",i),g=te(r[k],f),Q,se=0;se1&&arguments[1]!==void 0?arguments[1]:{},w=p.initWrapper,N=p.processEntity,T=p.onProcessFinished,k=p.externalGetKey,h=p.childrenPropName,W=p.fieldNames,t=arguments.length>2?arguments[2]:void 0,K=k||t,u={},V={},r={posEntities:u,keyEntities:V};return w&&(r=w(r)||r),$(c,function(i){var f=i.node,g=i.index,Q=i.pos,se=i.key,H=i.parentPos,y=i.level,I=i.nodes,R={node:f,nodes:I,index:g,key:se,pos:Q,level:y},m=te(se,Q);u[Q]=R,V[m]=R,R.parent=u[H],R.parent&&(R.parent.children=R.parent.children||[],R.parent.children.push(R)),N&&N(R,r)},{externalGetKey:K,childrenPropName:h,fieldNames:W}),T&&T(r),r}function oe(c,p){var w=p.expandedKeys,N=p.selectedKeys,T=p.loadedKeys,k=p.loadingKeys,h=p.checkedKeys,W=p.halfCheckedKeys,t=p.dragOverNodeKey,K=p.dropPosition,u=p.keyEntities,V=(0,j.Z)(u,c),r={eventKey:c,expanded:w.indexOf(c)!==-1,selected:N.indexOf(c)!==-1,loaded:T.indexOf(c)!==-1,loading:k.indexOf(c)!==-1,checked:h.indexOf(c)!==-1,halfChecked:W.indexOf(c)!==-1,pos:String(V?V.pos:""),dragOver:t===c&&K===0,dragOverGapTop:t===c&&K===-1,dragOverGapBottom:t===c&&K===1};return r}function D(c){var p=c.data,w=c.expanded,N=c.selected,T=c.checked,k=c.loaded,h=c.loading,W=c.halfChecked,t=c.dragOver,K=c.dragOverGapTop,u=c.dragOverGapBottom,V=c.pos,r=c.active,i=c.eventKey,f=(0,ee.Z)((0,ee.Z)({},p),{},{expanded:w,selected:N,checked:T,loaded:k,loading:h,halfChecked:W,dragOver:t,dragOverGapTop:K,dragOverGapBottom:u,pos:V,active:r,key:i});return"props"in f||Object.defineProperty(f,"props",{get:function(){return(0,C.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),c}}),f}},25442:function($e,he,n){n.d(he,{Z:function(){return P}});var d=n(50374);function P(ee,le,ye,ge){var C=d.unstable_batchedUpdates?function(U){d.unstable_batchedUpdates(ye,U)}:ye;return ee!=null&&ee.addEventListener&&ee.addEventListener(le,C,ge),{remove:function(){ee!=null&&ee.removeEventListener&&ee.removeEventListener(le,C,ge)}}}},93688:function($e,he,n){n.d(he,{g1:function(){return ie},os:function(){return J}});var d=/margin|padding|width|height|max|min|offset/,P={left:!0,top:!0},ee={cssFloat:1,styleFloat:1,float:1};function le(Y){return Y.nodeType===1?Y.ownerDocument.defaultView.getComputedStyle(Y,null):{}}function ye(Y,b,l){if(b=b.toLowerCase(),l==="auto"){if(b==="height")return Y.offsetHeight;if(b==="width")return Y.offsetWidth}return b in P||(P[b]=d.test(b)),P[b]?parseFloat(l)||0:l}function ge(Y,b){var l=arguments.length,$=le(Y);return b=ee[b]?"cssFloat"in Y.style?"cssFloat":"styleFloat":b,l===1?$:ye(Y,b,$[b]||Y.style[b])}function C(Y,b,l){var $=arguments.length;if(b=ee[b]?"cssFloat"in Y.style?"cssFloat":"styleFloat":b,$===3)return typeof l=="number"&&d.test(b)&&(l="".concat(l,"px")),Y.style[b]=l,l;for(var ne in b)b.hasOwnProperty(ne)&&C(Y,ne,b[ne]);return le(Y)}function j(Y){return Y===document.body?document.documentElement.clientWidth:Y.offsetWidth}function U(Y){return Y===document.body?window.innerHeight||document.documentElement.clientHeight:Y.offsetHeight}function ue(){var Y=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Y,height:b}}function ie(){var Y=document.documentElement.clientWidth,b=window.innerHeight||document.documentElement.clientHeight;return{width:Y,height:b}}function te(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function J(Y){var b=Y.getBoundingClientRect(),l=document.documentElement;return{left:b.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:b.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/index.html b/index.html index 78b7323a..fc0da4dd 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@
    - + \ No newline at end of file diff --git a/p__404.d7494e27.async.js b/p__404.d7494e27.async.js new file mode 100644 index 00000000..1aa97bd6 --- /dev/null +++ b/p__404.d7494e27.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2571],{6918:function(o,s,t){t.r(s);var n=t(8025),u=t(94154),_=t(10951),E=t(79685),a=t(63342),e=function(){return(0,a.jsx)(u.ZP,{status:"404",title:"404",subTitle:(0,n.useIntl)().formatMessage({id:"pages.404.subTitle"}),extra:(0,a.jsx)(_.ZP,{type:"primary",onClick:function(){return n.history.push("/")},children:(0,n.useIntl)().formatMessage({id:"pages.404.buttonText"})})})};s.default=e}}]); diff --git a/p__404.fbe375d1.async.js b/p__404.fbe375d1.async.js deleted file mode 100644 index 45cee4a1..00000000 --- a/p__404.fbe375d1.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2571],{10869:function(o,s,t){t.r(s);var n=t(27533),u=t(6053),_=t(47100),E=t(50959),a=t(11527),e=function(){return(0,a.jsx)(u.ZP,{status:"404",title:"404",subTitle:(0,n.useIntl)().formatMessage({id:"pages.404.subTitle"}),extra:(0,a.jsx)(_.ZP,{type:"primary",onClick:function(){return n.history.push("/")},children:(0,n.useIntl)().formatMessage({id:"pages.404.buttonText"})})})};s.default=e}}]); diff --git a/p__account__center__index.04779b52.async.js b/p__account__center__index.04779b52.async.js deleted file mode 100644 index 9e64c852..00000000 --- a/p__account__center__index.04779b52.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4679],{7559:function(_t,U,a){a.r(U),a.d(U,{default:function(){return Jt}});var J=a(67855),O=a.n(J),Q=a(28152),z=a.n(Q),w=a(1442),q=a(93590),_=a(64935),tt=a(26252),et=a(19494),y=a(27533),L=a(28566),at=a(33952),W=a(23870),D=a(82099),S=a(50304),K=a(84922),C=a(21757),p=a(50959),T=a(8700),nt=(0,T.kc)(function(s){var e=s.token;return{avatarHolder:{marginBottom:"24px",textAlign:"center","& > img":{width:"104px",height:"104px",marginBottom:"20px"}},name:{marginBottom:"4px",color:e.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},detail:{p:{position:"relative",marginBottom:"8px",paddingLeft:"26px","&:last-child":{marginBottom:"0"}},i:{position:"absolute",top:"4px",left:"0",width:"14px",height:"14px"}},tagsTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500"},teamTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500"},tags:{".ant-tag":{marginBottom:"8px"}},team:{".ant-avatar":{marginRight:"12px"},a:{display:"block",marginBottom:"24px",overflow:"hidden",color:e.colorText,whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all",transition:"color 0.3s","&:hover":{color:e.colorPrimary}}},tabsCard:{".ant-card-head":{padding:"0 16px"}}}}),F=nt,rt=a(94573),st=a(83011),it=a(25468),lt=a(27174),f=a(90543),N=a(32618),ot=a(10591),dt=a(4587),ct=a.n(dt),ut=a(13448),B=a.n(ut),vt=a(74815),G=a.n(vt);function xt(){return E.apply(this,arguments)}function E(){return E=G()(B()().mark(function s(){return B()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/currentUserDetail"));case 1:case"end":return n.stop()}},s)})),E.apply(this,arguments)}function R(s){return P.apply(this,arguments)}function P(){return P=G()(B()().mark(function s(e){return B()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,y.request)("/api/fake_list_Detail",{params:e}));case 1:case"end":return i.stop()}},s)})),P.apply(this,arguments)}var ht=(0,T.kc)(function(s){var e=s.token;return{filterCardList:{marginBottom:"-24px",".ant-card-meta-content":{marginTop:"0"},".ant-card-meta-avatar":{fontSize:"0"},".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},cardInfo:{marginTop:"16px",marginLeft:"40px",zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},"& > div":{position:"relative",float:"left",width:"50%",textAlign:"left",p:{margin:"0",fontSize:"24px",lineHeight:"32px"},"p:first-child":{marginBottom:"4px",color:e.colorTextSecondary,fontSize:"12px",lineHeight:"20px"}}}}}),mt=ht,t=a(11527);function pt(s){var e=s*1;if(!e||Number.isNaN(e))return"";var n=s;return s>1e4&&(n=(0,t.jsxs)("span",{children:[Math.floor(s/1e4),(0,t.jsx)("span",{style:{position:"relative",top:-2,fontSize:14,fontStyle:"normal",marginLeft:2},children:"\u4E07"})]})),n}var gt=function(){var e=mt(),n=e.styles,i=(0,y.useRequest)(function(){return R({count:30})}),o=i.data,d=function(r){var l=r.activeUser,x=r.newUser;return(0,t.jsxs)("div",{className:n.cardInfo,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"\u6D3B\u8DC3\u7528\u6237"}),(0,t.jsx)("p",{children:l})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"\u65B0\u589E\u7528\u6237"}),(0,t.jsx)("p",{children:x})]})]})};return(0,t.jsx)(f.Z,{rowKey:"id",className:n.filterCardList,grid:{gutter:24,xxl:3,xl:2,lg:2,md:2,sm:2,xs:1},dataSource:(o==null?void 0:o.list)||[],renderItem:function(r){return(0,t.jsx)(f.Z.Item,{children:(0,t.jsxs)(S.Z,{hoverable:!0,bodyStyle:{paddingBottom:20},actions:[(0,t.jsx)(N.Z,{title:"\u4E0B\u8F7D",children:(0,t.jsx)(rt.Z,{})},"download"),(0,t.jsx)(N.Z,{title:"\u7F16\u8F91",children:(0,t.jsx)(st.Z,{})},"edit"),(0,t.jsx)(N.Z,{title:"\u5206\u4EAB",children:(0,t.jsx)(it.Z,{})},"share"),(0,t.jsx)(ot.Z,{items:[{key:"1",title:"1st menu item"},{key:"2",title:"2nd menu item"}],children:(0,t.jsx)(lt.Z,{})},"ellipsis")],children:[(0,t.jsx)(S.Z.Meta,{avatar:(0,t.jsx)(C.C,{size:"small",src:r.avatar}),title:r.title}),(0,t.jsx)("div",{children:(0,t.jsx)(d,{activeUser:pt(r.activeUser),newUser:ct()(r.newUser).format("0,0")})})]})},r.id)}})},ft=gt,jt=a(50615),yt=a(19791),St=a(55842),Ct=a(5726),M=a.n(Ct),Tt=a(21320),H=a.n(Tt),It=(0,T.kc)(function(s){var e=s.token;return{description:{maxWidth:"720px",lineHeight:"22px"},extra:H()({marginTop:"16px",color:e.colorTextSecondary,lineHeight:"22px","& > em":{marginLeft:"16px",color:e.colorTextDisabled,fontStyle:"normal"}},"@media screen and (max-width: ".concat(e.screenXS,"px)"),{"& > em":{display:"block",marginTop:"8px",marginLeft:"0"}})}}),Lt=It,Zt=function(e){var n=e.data,i=n.content,o=n.updatedAt,d=n.avatar,c=n.owner,r=n.href,l=Lt(),x=l.styles;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:x.description,children:i}),(0,t.jsxs)("div",{className:x.extra,children:[(0,t.jsx)(C.C,{src:d,size:"small"}),(0,t.jsx)("a",{href:r,children:c})," \u53D1\u5E03\u5728 ",(0,t.jsx)("a",{href:r,children:r}),(0,t.jsx)("em",{children:M()(o).format("YYYY-MM-DD HH:mm")})]})]})},At=Zt,zt=(0,T.kc)(function(s){var e=s.token;return{articleList:{".ant-list-item:first-child":{paddingTop:"0"}},listItemMetaTitle:{color:e.colorTextHeading}}}),Nt=zt,Bt=function(){var e=Nt(),n=e.styles,i=function(r){var l=r.icon,x=r.text;return(0,t.jsxs)("span",{children:[l," ",x]})},o=(0,y.useRequest)(function(){return R({count:30})}),d=o.data;return(0,t.jsx)(f.Z,{size:"large",className:n.articleList,rowKey:"id",itemLayout:"vertical",dataSource:(d==null?void 0:d.list)||[],renderItem:function(r){return(0,t.jsxs)(f.Z.Item,{actions:[(0,t.jsx)(i,{icon:(0,t.jsx)(jt.Z,{}),text:r.star},"star"),(0,t.jsx)(i,{icon:(0,t.jsx)(yt.Z,{}),text:r.like},"like"),(0,t.jsx)(i,{icon:(0,t.jsx)(St.Z,{}),text:r.message},"message")],children:[(0,t.jsx)(f.Z.Item.Meta,{title:(0,t.jsx)("a",{className:n.listItemMetaTitle,href:r.href,children:r.title}),description:(0,t.jsxs)("span",{children:[(0,t.jsx)(L.Z,{children:"Ant Design"}),(0,t.jsx)(L.Z,{children:"\u8BBE\u8BA1\u8BED\u8A00"}),(0,t.jsx)(L.Z,{children:"\u8682\u8681\u91D1\u670D"})]})}),(0,t.jsx)(At,{data:r})]},r.id)}})},Ht=Bt,Dt=a(92117),Et=a.n(Dt),Rt=a(77117),b=a.n(Rt),Pt=a(95530),Mt=a.n(Pt),Ut=a(84875),Ot=a.n(Ut),Wt=(0,T.kc)(function(s){var e=s.token;return{avatarList:{display:"inline-block",ul:{display:"inline-block",marginLeft:"8px",fontSize:"0"}},avatarItem:{display:"inline-block",width:e.controlHeight,height:e.controlHeight,marginLeft:"-8px",fontSize:e.fontSize,".ant-avatar":{border:"1px solid ".concat(e.colorBorder)}},avatarItemLarge:{width:e.controlHeightLG,height:e.controlHeightLG},avatarItemSmall:{width:e.controlHeightSM,height:e.controlHeightSM},avatarItemMini:{width:"20px",height:"20px",".ant-avatar":{width:"20px",height:"20px",lineHeight:"20px",".ant-avatar-string":{fontSize:"12px",lineHeight:"18px"}}}}}),Y=Wt,Kt=["children","size","maxLength","excessItemsStyle"],Ft=function(e){var n=e.src,i=e.size,o=e.tips,d=e.onClick,c=d===void 0?function(){}:d,r=Y(),l=r.styles,x=function(v){var u;return Ot()(l.avatarItem,(u={},H()(u,l.avatarItemLarge,v==="large"),H()(u,l.avatarItemSmall,v==="small"),H()(u,l.avatarItemMini,v==="mini"),u))},m=x(i);return(0,t.jsx)("li",{className:m,onClick:c,children:o?(0,t.jsx)(N.Z,{title:o,children:(0,t.jsx)(C.C,{src:n,size:i,style:{cursor:"pointer"}})}):(0,t.jsx)(C.C,{src:n,size:i})})},$=function(e){var n=e.children,i=e.size,o=e.maxLength,d=o===void 0?5:o,c=e.excessItemsStyle,r=Mt()(e,Kt),l=Y(),x=l.styles,m=p.Children.count(n),g=d>=m?m:d,v=p.Children.toArray(n),u=v.slice(0,g).map(function(I){return p.cloneElement(I,{size:i})});if(g a":{display:"inline-block",maxWidth:"100%",color:e.colorTextHeading}},".ant-card-meta-description":{height:"44px",overflow:"hidden",lineHeight:"22px"},"&:hover":{".ant-card-meta-title > a":{color:e.colorPrimary}}},cardItemContent:{display:"flex",height:"20px",marginTop:"16px",marginBottom:"-4px",lineHeight:"20px","& > span":{flex:"1",color:e.colorTextSecondary,fontSize:"12px"}},avatarList:{flex:"0 1 auto"},cardList:{marginTop:"24px"},coverCardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}}}}),bt=Gt;M().extend(Et());var Yt=function(){var e=bt(),n=e.styles,i=(0,y.useRequest)(function(){return R({count:30})}),o=i.data;return(0,t.jsx)(f.Z,{className:n.coverCardList,rowKey:"id",grid:{gutter:24,xxl:3,xl:2,lg:2,md:2,sm:2,xs:1},dataSource:(o==null?void 0:o.list)||[],renderItem:function(c){return(0,t.jsx)(f.Z.Item,{children:(0,t.jsxs)(S.Z,{className:n.card,hoverable:!0,cover:(0,t.jsx)("img",{alt:c.title,src:c.cover}),children:[(0,t.jsx)(S.Z.Meta,{title:(0,t.jsx)("a",{children:c.title}),description:c.subDescription}),(0,t.jsxs)("div",{className:n.cardItemContent,children:[(0,t.jsx)("span",{children:M()(c.updatedAt).fromNow()}),(0,t.jsx)("div",{className:n.avatarList,children:(0,t.jsx)(V,{size:"small",children:c.members.map(function(r){return(0,t.jsx)(V.Item,{src:r.avatar,tips:r.name},"".concat(c.id,"-avatar-").concat(r.id))})})})]})]})})}})},$t=Yt,Vt=[{key:"articles",tab:(0,t.jsxs)("span",{children:["\u6587\u7AE0"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})},{key:"applications",tab:(0,t.jsxs)("span",{children:["\u5E94\u7528"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})},{key:"projects",tab:(0,t.jsxs)("span",{children:["\u9879\u76EE"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})}],kt=function(e){var n=e.tags,i=F(),o=i.styles,d=(0,p.useRef)(null),c=(0,p.useState)([]),r=z()(c,2),l=r[0],x=r[1],m=(0,p.useState)(!1),g=z()(m,2),v=g[0],u=g[1],Z=(0,p.useState)(""),I=z()(Z,2),j=I[0],k=I[1],Qt=function(){if(u(!0),d.current){var h;(h=d.current)===null||h===void 0||h.focus()}},wt=function(h){k(h.target.value)},X=function(){var h=O()(l);j&&h.filter(function(qt){return qt.label===j}).length===0&&(h=[].concat(O()(h),[{key:"new-".concat(h.length),label:j}])),x(h),u(!1),k("")};return(0,t.jsxs)("div",{className:o.tags,children:[(0,t.jsx)("div",{className:o.tagsTitle,children:"\u6807\u7B7E"}),(n||[]).concat(l).map(function(A){return(0,t.jsx)(L.Z,{children:A.label},A.key)}),v&&(0,t.jsx)(at.Z,{ref:d,type:"text",size:"small",style:{width:78},value:j,onChange:wt,onBlur:X,onPressEnter:X}),!v&&(0,t.jsx)(L.Z,{onClick:Qt,style:{borderStyle:"dashed"},children:(0,t.jsx)(w.Z,{})})]})},Xt=function(){var e=F(),n=e.styles,i=(0,p.useState)("articles"),o=z()(i,2),d=o[0],c=o[1],r=(0,y.useRequest)(function(){return xt()}),l=r.data,x=r.loading,m=function(u){var Z=u.title,I=u.group,j=u.geographic;return(0,t.jsxs)("div",{className:n.detail,children:[(0,t.jsxs)("p",{children:[(0,t.jsx)(q.Z,{style:{marginRight:8}}),Z]}),(0,t.jsxs)("p",{children:[(0,t.jsx)(_.Z,{style:{marginRight:8}}),I]}),(0,t.jsxs)("p",{children:[(0,t.jsx)(tt.Z,{style:{marginRight:8}}),(j||{province:{label:""}}).province.label,(j||{city:{label:""}}).city.label]})]})},g=function(u){return u==="projects"?(0,t.jsx)($t,{}):u==="applications"?(0,t.jsx)(ft,{}):u==="articles"?(0,t.jsx)(Ht,{}):null};return(0,t.jsx)(et.f,{children:(0,t.jsxs)(W.Z,{gutter:24,children:[(0,t.jsx)(D.Z,{lg:7,md:24,children:(0,t.jsx)(S.Z,{bordered:!1,style:{marginBottom:24},loading:x,children:!x&&l&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:n.avatarHolder,children:[(0,t.jsx)("img",{alt:"",src:l.avatar}),(0,t.jsx)("div",{className:n.name,children:l.name}),(0,t.jsx)("div",{children:l==null?void 0:l.signature})]}),m(l),(0,t.jsx)(K.Z,{dashed:!0}),(0,t.jsx)(kt,{tags:l.tags||[]}),(0,t.jsx)(K.Z,{style:{marginTop:16},dashed:!0}),(0,t.jsxs)("div",{className:n.team,children:[(0,t.jsx)("div",{className:n.teamTitle,children:"\u56E2\u961F"}),(0,t.jsx)(W.Z,{gutter:36,children:l.notice&&l.notice.map(function(v){return(0,t.jsx)(D.Z,{lg:24,xl:12,children:(0,t.jsxs)("a",{href:v.href,children:[(0,t.jsx)(C.C,{size:"small",src:v.logo}),v.member]})},v.id)})})]})]})})}),(0,t.jsx)(D.Z,{lg:17,md:24,children:(0,t.jsx)(S.Z,{className:n.tabsCard,bordered:!1,tabList:Vt,activeTabKey:d,onTabChange:function(u){c(u)},children:g(d)})})]})})},Jt=Xt}}]); diff --git a/p__account__center__index.c221b05c.async.js b/p__account__center__index.c221b05c.async.js new file mode 100644 index 00000000..0b354552 --- /dev/null +++ b/p__account__center__index.c221b05c.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4679],{53054:function(_t,U,a){a.r(U),a.d(U,{default:function(){return Jt}});var J=a(31013),O=a.n(J),Q=a(97380),z=a.n(Q),w=a(19346),q=a(21086),_=a(28970),tt=a(54301),et=a(79586),y=a(8025),L=a(90936),at=a(79714),W=a(61728),D=a(43241),S=a(18283),K=a(498),C=a(61030),p=a(79685),T=a(24507),nt=(0,T.kc)(function(s){var e=s.token;return{avatarHolder:{marginBottom:"24px",textAlign:"center","& > img":{width:"104px",height:"104px",marginBottom:"20px"}},name:{marginBottom:"4px",color:e.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},detail:{p:{position:"relative",marginBottom:"8px",paddingLeft:"26px","&:last-child":{marginBottom:"0"}},i:{position:"absolute",top:"4px",left:"0",width:"14px",height:"14px"}},tagsTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500"},teamTitle:{marginBottom:"12px",color:e.colorTextHeading,fontWeight:"500"},tags:{".ant-tag":{marginBottom:"8px"}},team:{".ant-avatar":{marginRight:"12px"},a:{display:"block",marginBottom:"24px",overflow:"hidden",color:e.colorText,whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all",transition:"color 0.3s","&:hover":{color:e.colorPrimary}}},tabsCard:{".ant-card-head":{padding:"0 16px"}}}}),F=nt,rt=a(43588),st=a(69392),it=a(88133),lt=a(12086),f=a(21583),N=a(58898),ot=a(37741),dt=a(88178),ct=a.n(dt),ut=a(29195),B=a.n(ut),vt=a(56717),G=a.n(vt);function xt(){return E.apply(this,arguments)}function E(){return E=G()(B()().mark(function s(){return B()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,y.request)("/api/currentUserDetail"));case 1:case"end":return n.stop()}},s)})),E.apply(this,arguments)}function R(s){return P.apply(this,arguments)}function P(){return P=G()(B()().mark(function s(e){return B()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,y.request)("/api/fake_list_Detail",{params:e}));case 1:case"end":return i.stop()}},s)})),P.apply(this,arguments)}var ht=(0,T.kc)(function(s){var e=s.token;return{filterCardList:{marginBottom:"-24px",".ant-card-meta-content":{marginTop:"0"},".ant-card-meta-avatar":{fontSize:"0"},".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},cardInfo:{marginTop:"16px",marginLeft:"40px",zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},"& > div":{position:"relative",float:"left",width:"50%",textAlign:"left",p:{margin:"0",fontSize:"24px",lineHeight:"32px"},"p:first-child":{marginBottom:"4px",color:e.colorTextSecondary,fontSize:"12px",lineHeight:"20px"}}}}}),mt=ht,t=a(63342);function pt(s){var e=s*1;if(!e||Number.isNaN(e))return"";var n=s;return s>1e4&&(n=(0,t.jsxs)("span",{children:[Math.floor(s/1e4),(0,t.jsx)("span",{style:{position:"relative",top:-2,fontSize:14,fontStyle:"normal",marginLeft:2},children:"\u4E07"})]})),n}var gt=function(){var e=mt(),n=e.styles,i=(0,y.useRequest)(function(){return R({count:30})}),o=i.data,d=function(r){var l=r.activeUser,x=r.newUser;return(0,t.jsxs)("div",{className:n.cardInfo,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"\u6D3B\u8DC3\u7528\u6237"}),(0,t.jsx)("p",{children:l})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{children:"\u65B0\u589E\u7528\u6237"}),(0,t.jsx)("p",{children:x})]})]})};return(0,t.jsx)(f.Z,{rowKey:"id",className:n.filterCardList,grid:{gutter:24,xxl:3,xl:2,lg:2,md:2,sm:2,xs:1},dataSource:(o==null?void 0:o.list)||[],renderItem:function(r){return(0,t.jsx)(f.Z.Item,{children:(0,t.jsxs)(S.Z,{hoverable:!0,bodyStyle:{paddingBottom:20},actions:[(0,t.jsx)(N.Z,{title:"\u4E0B\u8F7D",children:(0,t.jsx)(rt.Z,{})},"download"),(0,t.jsx)(N.Z,{title:"\u7F16\u8F91",children:(0,t.jsx)(st.Z,{})},"edit"),(0,t.jsx)(N.Z,{title:"\u5206\u4EAB",children:(0,t.jsx)(it.Z,{})},"share"),(0,t.jsx)(ot.Z,{items:[{key:"1",title:"1st menu item"},{key:"2",title:"2nd menu item"}],children:(0,t.jsx)(lt.Z,{})},"ellipsis")],children:[(0,t.jsx)(S.Z.Meta,{avatar:(0,t.jsx)(C.C,{size:"small",src:r.avatar}),title:r.title}),(0,t.jsx)("div",{children:(0,t.jsx)(d,{activeUser:pt(r.activeUser),newUser:ct()(r.newUser).format("0,0")})})]})},r.id)}})},ft=gt,jt=a(43490),yt=a(14604),St=a(76397),Ct=a(50510),M=a.n(Ct),Tt=a(37482),H=a.n(Tt),It=(0,T.kc)(function(s){var e=s.token;return{description:{maxWidth:"720px",lineHeight:"22px"},extra:H()({marginTop:"16px",color:e.colorTextSecondary,lineHeight:"22px","& > em":{marginLeft:"16px",color:e.colorTextDisabled,fontStyle:"normal"}},"@media screen and (max-width: ".concat(e.screenXS,"px)"),{"& > em":{display:"block",marginTop:"8px",marginLeft:"0"}})}}),Lt=It,Zt=function(e){var n=e.data,i=n.content,o=n.updatedAt,d=n.avatar,c=n.owner,r=n.href,l=Lt(),x=l.styles;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:x.description,children:i}),(0,t.jsxs)("div",{className:x.extra,children:[(0,t.jsx)(C.C,{src:d,size:"small"}),(0,t.jsx)("a",{href:r,children:c})," \u53D1\u5E03\u5728 ",(0,t.jsx)("a",{href:r,children:r}),(0,t.jsx)("em",{children:M()(o).format("YYYY-MM-DD HH:mm")})]})]})},At=Zt,zt=(0,T.kc)(function(s){var e=s.token;return{articleList:{".ant-list-item:first-child":{paddingTop:"0"}},listItemMetaTitle:{color:e.colorTextHeading}}}),Nt=zt,Bt=function(){var e=Nt(),n=e.styles,i=function(r){var l=r.icon,x=r.text;return(0,t.jsxs)("span",{children:[l," ",x]})},o=(0,y.useRequest)(function(){return R({count:30})}),d=o.data;return(0,t.jsx)(f.Z,{size:"large",className:n.articleList,rowKey:"id",itemLayout:"vertical",dataSource:(d==null?void 0:d.list)||[],renderItem:function(r){return(0,t.jsxs)(f.Z.Item,{actions:[(0,t.jsx)(i,{icon:(0,t.jsx)(jt.Z,{}),text:r.star},"star"),(0,t.jsx)(i,{icon:(0,t.jsx)(yt.Z,{}),text:r.like},"like"),(0,t.jsx)(i,{icon:(0,t.jsx)(St.Z,{}),text:r.message},"message")],children:[(0,t.jsx)(f.Z.Item.Meta,{title:(0,t.jsx)("a",{className:n.listItemMetaTitle,href:r.href,children:r.title}),description:(0,t.jsxs)("span",{children:[(0,t.jsx)(L.Z,{children:"Ant Design"}),(0,t.jsx)(L.Z,{children:"\u8BBE\u8BA1\u8BED\u8A00"}),(0,t.jsx)(L.Z,{children:"\u8682\u8681\u91D1\u670D"})]})}),(0,t.jsx)(At,{data:r})]},r.id)}})},Ht=Bt,Dt=a(96300),Et=a.n(Dt),Rt=a(42329),b=a.n(Rt),Pt=a(77128),Mt=a.n(Pt),Ut=a(68591),Ot=a.n(Ut),Wt=(0,T.kc)(function(s){var e=s.token;return{avatarList:{display:"inline-block",ul:{display:"inline-block",marginLeft:"8px",fontSize:"0"}},avatarItem:{display:"inline-block",width:e.controlHeight,height:e.controlHeight,marginLeft:"-8px",fontSize:e.fontSize,".ant-avatar":{border:"1px solid ".concat(e.colorBorder)}},avatarItemLarge:{width:e.controlHeightLG,height:e.controlHeightLG},avatarItemSmall:{width:e.controlHeightSM,height:e.controlHeightSM},avatarItemMini:{width:"20px",height:"20px",".ant-avatar":{width:"20px",height:"20px",lineHeight:"20px",".ant-avatar-string":{fontSize:"12px",lineHeight:"18px"}}}}}),Y=Wt,Kt=["children","size","maxLength","excessItemsStyle"],Ft=function(e){var n=e.src,i=e.size,o=e.tips,d=e.onClick,c=d===void 0?function(){}:d,r=Y(),l=r.styles,x=function(v){var u;return Ot()(l.avatarItem,(u={},H()(u,l.avatarItemLarge,v==="large"),H()(u,l.avatarItemSmall,v==="small"),H()(u,l.avatarItemMini,v==="mini"),u))},m=x(i);return(0,t.jsx)("li",{className:m,onClick:c,children:o?(0,t.jsx)(N.Z,{title:o,children:(0,t.jsx)(C.C,{src:n,size:i,style:{cursor:"pointer"}})}):(0,t.jsx)(C.C,{src:n,size:i})})},$=function(e){var n=e.children,i=e.size,o=e.maxLength,d=o===void 0?5:o,c=e.excessItemsStyle,r=Mt()(e,Kt),l=Y(),x=l.styles,m=p.Children.count(n),g=d>=m?m:d,v=p.Children.toArray(n),u=v.slice(0,g).map(function(I){return p.cloneElement(I,{size:i})});if(g a":{display:"inline-block",maxWidth:"100%",color:e.colorTextHeading}},".ant-card-meta-description":{height:"44px",overflow:"hidden",lineHeight:"22px"},"&:hover":{".ant-card-meta-title > a":{color:e.colorPrimary}}},cardItemContent:{display:"flex",height:"20px",marginTop:"16px",marginBottom:"-4px",lineHeight:"20px","& > span":{flex:"1",color:e.colorTextSecondary,fontSize:"12px"}},avatarList:{flex:"0 1 auto"},cardList:{marginTop:"24px"},coverCardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}}}}),bt=Gt;M().extend(Et());var Yt=function(){var e=bt(),n=e.styles,i=(0,y.useRequest)(function(){return R({count:30})}),o=i.data;return(0,t.jsx)(f.Z,{className:n.coverCardList,rowKey:"id",grid:{gutter:24,xxl:3,xl:2,lg:2,md:2,sm:2,xs:1},dataSource:(o==null?void 0:o.list)||[],renderItem:function(c){return(0,t.jsx)(f.Z.Item,{children:(0,t.jsxs)(S.Z,{className:n.card,hoverable:!0,cover:(0,t.jsx)("img",{alt:c.title,src:c.cover}),children:[(0,t.jsx)(S.Z.Meta,{title:(0,t.jsx)("a",{children:c.title}),description:c.subDescription}),(0,t.jsxs)("div",{className:n.cardItemContent,children:[(0,t.jsx)("span",{children:M()(c.updatedAt).fromNow()}),(0,t.jsx)("div",{className:n.avatarList,children:(0,t.jsx)(V,{size:"small",children:c.members.map(function(r){return(0,t.jsx)(V.Item,{src:r.avatar,tips:r.name},"".concat(c.id,"-avatar-").concat(r.id))})})})]})]})})}})},$t=Yt,Vt=[{key:"articles",tab:(0,t.jsxs)("span",{children:["\u6587\u7AE0"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})},{key:"applications",tab:(0,t.jsxs)("span",{children:["\u5E94\u7528"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})},{key:"projects",tab:(0,t.jsxs)("span",{children:["\u9879\u76EE"," ",(0,t.jsx)("span",{style:{fontSize:14},children:"(8)"})]})}],kt=function(e){var n=e.tags,i=F(),o=i.styles,d=(0,p.useRef)(null),c=(0,p.useState)([]),r=z()(c,2),l=r[0],x=r[1],m=(0,p.useState)(!1),g=z()(m,2),v=g[0],u=g[1],Z=(0,p.useState)(""),I=z()(Z,2),j=I[0],k=I[1],Qt=function(){if(u(!0),d.current){var h;(h=d.current)===null||h===void 0||h.focus()}},wt=function(h){k(h.target.value)},X=function(){var h=O()(l);j&&h.filter(function(qt){return qt.label===j}).length===0&&(h=[].concat(O()(h),[{key:"new-".concat(h.length),label:j}])),x(h),u(!1),k("")};return(0,t.jsxs)("div",{className:o.tags,children:[(0,t.jsx)("div",{className:o.tagsTitle,children:"\u6807\u7B7E"}),(n||[]).concat(l).map(function(A){return(0,t.jsx)(L.Z,{children:A.label},A.key)}),v&&(0,t.jsx)(at.Z,{ref:d,type:"text",size:"small",style:{width:78},value:j,onChange:wt,onBlur:X,onPressEnter:X}),!v&&(0,t.jsx)(L.Z,{onClick:Qt,style:{borderStyle:"dashed"},children:(0,t.jsx)(w.Z,{})})]})},Xt=function(){var e=F(),n=e.styles,i=(0,p.useState)("articles"),o=z()(i,2),d=o[0],c=o[1],r=(0,y.useRequest)(function(){return xt()}),l=r.data,x=r.loading,m=function(u){var Z=u.title,I=u.group,j=u.geographic;return(0,t.jsxs)("div",{className:n.detail,children:[(0,t.jsxs)("p",{children:[(0,t.jsx)(q.Z,{style:{marginRight:8}}),Z]}),(0,t.jsxs)("p",{children:[(0,t.jsx)(_.Z,{style:{marginRight:8}}),I]}),(0,t.jsxs)("p",{children:[(0,t.jsx)(tt.Z,{style:{marginRight:8}}),(j||{province:{label:""}}).province.label,(j||{city:{label:""}}).city.label]})]})},g=function(u){return u==="projects"?(0,t.jsx)($t,{}):u==="applications"?(0,t.jsx)(ft,{}):u==="articles"?(0,t.jsx)(Ht,{}):null};return(0,t.jsx)(et.f,{children:(0,t.jsxs)(W.Z,{gutter:24,children:[(0,t.jsx)(D.Z,{lg:7,md:24,children:(0,t.jsx)(S.Z,{bordered:!1,style:{marginBottom:24},loading:x,children:!x&&l&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:n.avatarHolder,children:[(0,t.jsx)("img",{alt:"",src:l.avatar}),(0,t.jsx)("div",{className:n.name,children:l.name}),(0,t.jsx)("div",{children:l==null?void 0:l.signature})]}),m(l),(0,t.jsx)(K.Z,{dashed:!0}),(0,t.jsx)(kt,{tags:l.tags||[]}),(0,t.jsx)(K.Z,{style:{marginTop:16},dashed:!0}),(0,t.jsxs)("div",{className:n.team,children:[(0,t.jsx)("div",{className:n.teamTitle,children:"\u56E2\u961F"}),(0,t.jsx)(W.Z,{gutter:36,children:l.notice&&l.notice.map(function(v){return(0,t.jsx)(D.Z,{lg:24,xl:12,children:(0,t.jsxs)("a",{href:v.href,children:[(0,t.jsx)(C.C,{size:"small",src:v.logo}),v.member]})},v.id)})})]})]})})}),(0,t.jsx)(D.Z,{lg:17,md:24,children:(0,t.jsx)(S.Z,{className:n.tabsCard,bordered:!1,tabList:Vt,activeTabKey:d,onTabChange:function(u){c(u)},children:g(d)})})]})})},Jt=Xt}}]); diff --git a/p__account__settings__index.0aeefff8.async.js b/p__account__settings__index.0aeefff8.async.js deleted file mode 100644 index 9c81c2cc..00000000 --- a/p__account__settings__index.0aeefff8.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[331],{83089:function(we,D,r){r.r(D),r.d(D,{default:function(){return ge}});var I=r(77117),g=r.n(I),V=r(28152),T=r.n(V),L=r(19494),P=r(62737),w=r(50959),W=r(13448),d=r.n(W),H=r(74815),y=r.n(H),K=r(68968),N=r(43997),A=r(60010),$=r(59224),S=r(79712),U=r(80288),G=r(68344),B=r(27533),O=r(86962),k=r(47100),X=r(52497),z=r(33952);function J(){return b.apply(this,arguments)}function b(){return b=y()(d()().mark(function s(){return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,B.request)("/api/accountSettingCurrentUser"));case 1:case"end":return t.stop()}},s)})),b.apply(this,arguments)}function Q(){return C.apply(this,arguments)}function C(){return C=y()(d()().mark(function s(){return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,B.request)("/api/geographic/province"));case 1:case"end":return t.stop()}},s)})),C.apply(this,arguments)}function Y(s){return E.apply(this,arguments)}function E(){return E=y()(d()().mark(function s(n){return d()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.request)("/api/geographic/city/".concat(n)));case 1:case"end":return a.stop()}},s)})),E.apply(this,arguments)}function Be(){return Z.apply(this,arguments)}function Z(){return Z=_asyncToGenerator(_regeneratorRuntime().mark(function s(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/users"));case 1:case"end":return t.stop()}},s)})),Z.apply(this,arguments)}var q=r(21320),j=r.n(q),R=r(8700),_=(0,R.kc)(function(s){var n=s.token;return{baseView:j()({display:"flex",paddingTop:"12px",".ant-legacy-form-item .ant-legacy-form-item-control-wrapper":{width:"100%"}},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{flexDirection:"column-reverse"}),left:{minWidth:"224px",maxWidth:"448px"},right:j()({flex:"1",paddingLeft:"104px"},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"448px",padding:"20px"}),avatar_title:j()({height:"22px",marginBottom:"8px",color:n.colorTextHeading,fontSize:n.fontSize,lineHeight:"22px"},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{display:"none"}),avatar:{width:"144px",height:"144px",marginBottom:"12px",overflow:"hidden",img:{width:"100%"}},button_view:{width:"144px",textAlign:"center"},area_code:{width:"72px"},phone_number:{width:"214px"}}}),ee=_,e=r(11527),te=function(n,t,a){t[0]||a("Please input your area code!"),t[1]||a("Please input your phone number!"),a()},ne=function(){var n=ee(),t=n.styles,a=function(c){var i=c.avatar;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:t.avatar_title,children:"\u5934\u50CF"}),(0,e.jsx)("div",{className:t.avatar,children:(0,e.jsx)("img",{src:i,alt:"avatar"})}),(0,e.jsx)(O.Z,{showUploadList:!1,children:(0,e.jsx)("div",{className:t.button_view,children:(0,e.jsxs)(k.ZP,{children:[(0,e.jsx)(K.Z,{}),"\u66F4\u6362\u5934\u50CF"]})})})]})},u=(0,B.useRequest)(function(){return J()}),p=u.data,v=u.loading,F=function(){if(p){if(p.avatar)return p.avatar;var c="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";return c}return""},x=function(){var h=y()(d()().mark(function c(){return d()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:X.ZP.success("\u66F4\u65B0\u57FA\u672C\u4FE1\u606F\u6210\u529F");case 1:case"end":return m.stop()}},c)}));return function(){return h.apply(this,arguments)}}();return(0,e.jsx)("div",{className:t.baseView,children:v?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:t.left,children:(0,e.jsxs)(N.A,{layout:"vertical",onFinish:x,submitter:{searchConfig:{submitText:"\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"},render:function(c,i){return i[1]}},initialValues:g()(g()({},p),{},{phone:p==null?void 0:p.phone.split("-")}),hideRequiredMark:!0,children:[(0,e.jsx)(A.Z,{width:"md",name:"email",label:"\u90AE\u7BB1",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u90AE\u7BB1!"}]}),(0,e.jsx)(A.Z,{width:"md",name:"name",label:"\u6635\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0!"}]}),(0,e.jsx)($.Z,{name:"profile",label:"\u4E2A\u4EBA\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB!"}],placeholder:"\u4E2A\u4EBA\u7B80\u4ECB"}),(0,e.jsx)(S.Z,{width:"sm",name:"country",label:"\u56FD\u5BB6/\u5730\u533A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u56FD\u5BB6\u6216\u5730\u533A!"}],options:[{label:"\u4E2D\u56FD",value:"China"}]}),(0,e.jsxs)(N.A.Group,{title:"\u6240\u5728\u7701\u5E02",size:8,children:[(0,e.jsx)(S.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u7701!"}],width:"sm",fieldProps:{labelInValue:!0},name:"province",className:t.item,request:y()(d()().mark(function h(){return d()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Q().then(function(m){var o=m.data;return o.map(function(l){return{label:l.name,value:l.id}})}));case 1:case"end":return i.stop()}},h)}))}),(0,e.jsx)(U.Z,{name:["province"],children:function(c){var i=c.province;return(0,e.jsx)(S.Z,{params:{key:i==null?void 0:i.value},name:"city",width:"sm",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u57CE\u5E02!"}],disabled:!i,className:t.item,request:y()(d()().mark(function m(){return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(i!=null&&i.key){l.next=2;break}return l.abrupt("return",[]);case 2:return l.abrupt("return",Y(i.key||"").then(function(ye){var je=ye.data;return je.map(function(M){return{label:M.name,value:M.id}})}));case 3:case"end":return l.stop()}},m)}))})}})]}),(0,e.jsx)(A.Z,{width:"md",name:"address",label:"\u8857\u9053\u5730\u5740",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u8857\u9053\u5730\u5740!"}]}),(0,e.jsxs)(G.Z,{name:"phone",label:"\u8054\u7CFB\u7535\u8BDD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u8054\u7CFB\u7535\u8BDD!"},{validator:te}],children:[(0,e.jsx)(z.Z,{className:t.area_code}),(0,e.jsx)(z.Z,{className:t.phone_number})]})]})}),(0,e.jsx)("div",{className:t.right,children:(0,e.jsx)(a,{avatar:F()})})]})})},re=ne,ae=r(62624),ie=r(34700),se=r(10587),f=r(90543),ue=function(){var n=function(){return[{title:"\u7ED1\u5B9A\u6DD8\u5B9D",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u6DD8\u5B9D\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(ae.Z,{className:"taobao"})},{title:"\u7ED1\u5B9A\u652F\u4ED8\u5B9D",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u652F\u4ED8\u5B9D\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(ie.Z,{className:"alipay"})},{title:"\u7ED1\u5B9A\u9489\u9489",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u9489\u9489\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(se.Z,{className:"dingding"})}]};return(0,e.jsx)(w.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:n(),renderItem:function(a){return(0,e.jsx)(f.Z.Item,{actions:a.actions,children:(0,e.jsx)(f.Z.Item.Meta,{avatar:a.avatar,title:a.title,description:a.description})})}})})},oe=ue,le=r(41868),de=function(){var n=function(){var u=(0,e.jsx)(le.Z,{checkedChildren:"\u5F00",unCheckedChildren:"\u5173",defaultChecked:!0});return[{title:"\u8D26\u6237\u5BC6\u7801",description:"\u5176\u4ED6\u7528\u6237\u7684\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]},{title:"\u7CFB\u7EDF\u6D88\u606F",description:"\u7CFB\u7EDF\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]},{title:"\u5F85\u529E\u4EFB\u52A1",description:"\u5F85\u529E\u4EFB\u52A1\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]}]},t=n();return(0,e.jsx)(w.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:t,renderItem:function(u){return(0,e.jsx)(f.Z.Item,{actions:u.actions,children:(0,e.jsx)(f.Z.Item.Meta,{title:u.title,description:u.description})})}})})},ce=de,me={strong:(0,e.jsx)("span",{className:"strong",children:"\u5F3A"}),medium:(0,e.jsx)("span",{className:"medium",children:"\u4E2D"}),weak:(0,e.jsx)("span",{className:"weak",children:"\u5F31 Weak"})},he=function(){var n=function(){return[{title:"\u8D26\u6237\u5BC6\u7801",description:(0,e.jsxs)(e.Fragment,{children:["\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6\uFF1A",me.strong]}),actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"\u5BC6\u4FDD\u624B\u673A",description:"\u5DF2\u7ED1\u5B9A\u624B\u673A\uFF1A138****8293",actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"\u5BC6\u4FDD\u95EE\u9898",description:"\u672A\u8BBE\u7F6E\u5BC6\u4FDD\u95EE\u9898\uFF0C\u5BC6\u4FDD\u95EE\u9898\u53EF\u6709\u6548\u4FDD\u62A4\u8D26\u6237\u5B89\u5168",actions:[(0,e.jsx)("a",{children:"\u8BBE\u7F6E"},"Set")]},{title:"\u5907\u7528\u90AE\u7BB1",description:"\u5DF2\u7ED1\u5B9A\u90AE\u7BB1\uFF1Aant***sign.com",actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"MFA \u8BBE\u5907",description:"\u672A\u7ED1\u5B9A MFA \u8BBE\u5907\uFF0C\u7ED1\u5B9A\u540E\uFF0C\u53EF\u4EE5\u8FDB\u884C\u4E8C\u6B21\u786E\u8BA4",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"bind")]}]},t=n();return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:t,renderItem:function(u){return(0,e.jsx)(f.Z.Item,{actions:u.actions,children:(0,e.jsx)(f.Z.Item.Meta,{title:u.title,description:u.description})})}})})},pe=he,fe=(0,R.kc)(function(s){var n=s.token;return{main:j()({display:"flex",width:"100%",height:"100%",paddingTop:"16px",paddingBottom:"16px",backgroundColor:n.colorBgContainer,".ant-list-split .ant-list-item:last-child":{borderBottom:"1px solid ".concat(n.colorSplit)},".ant-list-item":{paddingTop:"14px",paddingBottom:"14px"}},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{flexDirection:"column"}),leftMenu:j()({width:"224px",borderRight:"".concat(n.lineWidth,"px solid ").concat(n.colorSplit),".ant-menu-inline":{border:"none"},".ant-menu-horizontal":{fontWeight:"bold"}},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{width:"100%",border:"none"}),right:j()({flex:"1",padding:"8px 40px"},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{padding:"40px"}),title:{marginBottom:"12px",color:n.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},taobao:{display:"block",color:"#ff4000",fontSize:"48px",lineHeight:"48px",borderRadius:n.borderRadius},dingding:{margin:"2px",padding:"6px",color:"#fff",fontSize:"32px",lineHeight:"32px",backgroundColor:"#2eabff",borderRadius:n.borderRadius},alipay:{color:"#2eabff",fontSize:"48px",lineHeight:"48px",borderRadius:n.borderRadius},":global":{"font.strong":{color:n.colorSuccess},"font.medium":{color:n.colorWarning},"font.weak":{color:n.colorError}}}}),ve=fe,xe=function(){var n=ve(),t=n.styles,a={base:"\u57FA\u672C\u8BBE\u7F6E",security:"\u5B89\u5168\u8BBE\u7F6E",binding:"\u8D26\u53F7\u7ED1\u5B9A",notification:"\u65B0\u6D88\u606F\u901A\u77E5"},u=(0,w.useState)({mode:"inline",selectKey:"base"}),p=T()(u,2),v=p[0],F=p[1],x=(0,w.useRef)(),h=function(){requestAnimationFrame(function(){if(x.current){var o="inline",l=x.current.offsetWidth;x.current.offsetWidth<641&&l>400&&(o="horizontal"),window.innerWidth<768&&l>400&&(o="horizontal"),F(g()(g()({},v),{},{mode:o}))}})};(0,w.useLayoutEffect)(function(){return x.current&&(window.addEventListener("resize",h),h()),function(){window.removeEventListener("resize",h)}},[x.current]);var c=function(){return Object.keys(a).map(function(o){return{key:o,label:a[o]}})},i=function(){var o=v.selectKey;switch(o){case"base":return(0,e.jsx)(re,{});case"security":return(0,e.jsx)(pe,{});case"binding":return(0,e.jsx)(oe,{});case"notification":return(0,e.jsx)(ce,{});default:return null}};return(0,e.jsx)(L.f,{children:(0,e.jsxs)("div",{className:t.main,ref:function(o){o&&(x.current=o)},children:[(0,e.jsx)("div",{className:t.leftMenu,children:(0,e.jsx)(P.Z,{mode:v.mode,selectedKeys:[v.selectKey],onClick:function(o){var l=o.key;F(g()(g()({},v),{},{selectKey:l}))},items:c()})}),(0,e.jsxs)("div",{className:t.right,children:[(0,e.jsx)("div",{className:t.title,children:a[v.selectKey]}),i()]})]})})},ge=xe}}]); diff --git a/p__account__settings__index.bd56c1b7.async.js b/p__account__settings__index.bd56c1b7.async.js new file mode 100644 index 00000000..4d66b57e --- /dev/null +++ b/p__account__settings__index.bd56c1b7.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[331],{85697:function(we,D,r){r.r(D),r.d(D,{default:function(){return ge}});var I=r(42329),g=r.n(I),V=r(97380),T=r.n(V),L=r(79586),P=r(97034),w=r(79685),W=r(29195),d=r.n(W),H=r(56717),y=r.n(H),K=r(86734),N=r(66197),A=r(30869),$=r(43602),S=r(5754),U=r(67823),G=r(35122),B=r(8025),O=r(50287),k=r(10951),X=r(68852),z=r(79714);function J(){return b.apply(this,arguments)}function b(){return b=y()(d()().mark(function s(){return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,B.request)("/api/accountSettingCurrentUser"));case 1:case"end":return t.stop()}},s)})),b.apply(this,arguments)}function Q(){return C.apply(this,arguments)}function C(){return C=y()(d()().mark(function s(){return d()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,B.request)("/api/geographic/province"));case 1:case"end":return t.stop()}},s)})),C.apply(this,arguments)}function Y(s){return E.apply(this,arguments)}function E(){return E=y()(d()().mark(function s(n){return d()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.request)("/api/geographic/city/".concat(n)));case 1:case"end":return a.stop()}},s)})),E.apply(this,arguments)}function Be(){return Z.apply(this,arguments)}function Z(){return Z=_asyncToGenerator(_regeneratorRuntime().mark(function s(){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/api/users"));case 1:case"end":return t.stop()}},s)})),Z.apply(this,arguments)}var q=r(37482),j=r.n(q),R=r(24507),_=(0,R.kc)(function(s){var n=s.token;return{baseView:j()({display:"flex",paddingTop:"12px",".ant-legacy-form-item .ant-legacy-form-item-control-wrapper":{width:"100%"}},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{flexDirection:"column-reverse"}),left:{minWidth:"224px",maxWidth:"448px"},right:j()({flex:"1",paddingLeft:"104px"},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"448px",padding:"20px"}),avatar_title:j()({height:"22px",marginBottom:"8px",color:n.colorTextHeading,fontSize:n.fontSize,lineHeight:"22px"},"@media screen and (max-width: ".concat(n.screenXL,"px)"),{display:"none"}),avatar:{width:"144px",height:"144px",marginBottom:"12px",overflow:"hidden",img:{width:"100%"}},button_view:{width:"144px",textAlign:"center"},area_code:{width:"72px"},phone_number:{width:"214px"}}}),ee=_,e=r(63342),te=function(n,t,a){t[0]||a("Please input your area code!"),t[1]||a("Please input your phone number!"),a()},ne=function(){var n=ee(),t=n.styles,a=function(c){var i=c.avatar;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:t.avatar_title,children:"\u5934\u50CF"}),(0,e.jsx)("div",{className:t.avatar,children:(0,e.jsx)("img",{src:i,alt:"avatar"})}),(0,e.jsx)(O.Z,{showUploadList:!1,children:(0,e.jsx)("div",{className:t.button_view,children:(0,e.jsxs)(k.ZP,{children:[(0,e.jsx)(K.Z,{}),"\u66F4\u6362\u5934\u50CF"]})})})]})},u=(0,B.useRequest)(function(){return J()}),p=u.data,v=u.loading,F=function(){if(p){if(p.avatar)return p.avatar;var c="https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";return c}return""},x=function(){var h=y()(d()().mark(function c(){return d()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:X.ZP.success("\u66F4\u65B0\u57FA\u672C\u4FE1\u606F\u6210\u529F");case 1:case"end":return m.stop()}},c)}));return function(){return h.apply(this,arguments)}}();return(0,e.jsx)("div",{className:t.baseView,children:v?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:t.left,children:(0,e.jsxs)(N.A,{layout:"vertical",onFinish:x,submitter:{searchConfig:{submitText:"\u66F4\u65B0\u57FA\u672C\u4FE1\u606F"},render:function(c,i){return i[1]}},initialValues:g()(g()({},p),{},{phone:p==null?void 0:p.phone.split("-")}),hideRequiredMark:!0,children:[(0,e.jsx)(A.Z,{width:"md",name:"email",label:"\u90AE\u7BB1",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u90AE\u7BB1!"}]}),(0,e.jsx)(A.Z,{width:"md",name:"name",label:"\u6635\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0!"}]}),(0,e.jsx)($.Z,{name:"profile",label:"\u4E2A\u4EBA\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E2A\u4EBA\u7B80\u4ECB!"}],placeholder:"\u4E2A\u4EBA\u7B80\u4ECB"}),(0,e.jsx)(S.Z,{width:"sm",name:"country",label:"\u56FD\u5BB6/\u5730\u533A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u56FD\u5BB6\u6216\u5730\u533A!"}],options:[{label:"\u4E2D\u56FD",value:"China"}]}),(0,e.jsxs)(N.A.Group,{title:"\u6240\u5728\u7701\u5E02",size:8,children:[(0,e.jsx)(S.Z,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u7701!"}],width:"sm",fieldProps:{labelInValue:!0},name:"province",className:t.item,request:y()(d()().mark(function h(){return d()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Q().then(function(m){var o=m.data;return o.map(function(l){return{label:l.name,value:l.id}})}));case 1:case"end":return i.stop()}},h)}))}),(0,e.jsx)(U.Z,{name:["province"],children:function(c){var i=c.province;return(0,e.jsx)(S.Z,{params:{key:i==null?void 0:i.value},name:"city",width:"sm",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6240\u5728\u57CE\u5E02!"}],disabled:!i,className:t.item,request:y()(d()().mark(function m(){return d()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(i!=null&&i.key){l.next=2;break}return l.abrupt("return",[]);case 2:return l.abrupt("return",Y(i.key||"").then(function(ye){var je=ye.data;return je.map(function(M){return{label:M.name,value:M.id}})}));case 3:case"end":return l.stop()}},m)}))})}})]}),(0,e.jsx)(A.Z,{width:"md",name:"address",label:"\u8857\u9053\u5730\u5740",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u8857\u9053\u5730\u5740!"}]}),(0,e.jsxs)(G.Z,{name:"phone",label:"\u8054\u7CFB\u7535\u8BDD",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u8054\u7CFB\u7535\u8BDD!"},{validator:te}],children:[(0,e.jsx)(z.Z,{className:t.area_code}),(0,e.jsx)(z.Z,{className:t.phone_number})]})]})}),(0,e.jsx)("div",{className:t.right,children:(0,e.jsx)(a,{avatar:F()})})]})})},re=ne,ae=r(51851),ie=r(90656),se=r(49726),f=r(21583),ue=function(){var n=function(){return[{title:"\u7ED1\u5B9A\u6DD8\u5B9D",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u6DD8\u5B9D\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(ae.Z,{className:"taobao"})},{title:"\u7ED1\u5B9A\u652F\u4ED8\u5B9D",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u652F\u4ED8\u5B9D\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(ie.Z,{className:"alipay"})},{title:"\u7ED1\u5B9A\u9489\u9489",description:"\u5F53\u524D\u672A\u7ED1\u5B9A\u9489\u9489\u8D26\u53F7",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"Bind")],avatar:(0,e.jsx)(se.Z,{className:"dingding"})}]};return(0,e.jsx)(w.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:n(),renderItem:function(a){return(0,e.jsx)(f.Z.Item,{actions:a.actions,children:(0,e.jsx)(f.Z.Item.Meta,{avatar:a.avatar,title:a.title,description:a.description})})}})})},oe=ue,le=r(55159),de=function(){var n=function(){var u=(0,e.jsx)(le.Z,{checkedChildren:"\u5F00",unCheckedChildren:"\u5173",defaultChecked:!0});return[{title:"\u8D26\u6237\u5BC6\u7801",description:"\u5176\u4ED6\u7528\u6237\u7684\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]},{title:"\u7CFB\u7EDF\u6D88\u606F",description:"\u7CFB\u7EDF\u6D88\u606F\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]},{title:"\u5F85\u529E\u4EFB\u52A1",description:"\u5F85\u529E\u4EFB\u52A1\u5C06\u4EE5\u7AD9\u5185\u4FE1\u7684\u5F62\u5F0F\u901A\u77E5",actions:[u]}]},t=n();return(0,e.jsx)(w.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:t,renderItem:function(u){return(0,e.jsx)(f.Z.Item,{actions:u.actions,children:(0,e.jsx)(f.Z.Item.Meta,{title:u.title,description:u.description})})}})})},ce=de,me={strong:(0,e.jsx)("span",{className:"strong",children:"\u5F3A"}),medium:(0,e.jsx)("span",{className:"medium",children:"\u4E2D"}),weak:(0,e.jsx)("span",{className:"weak",children:"\u5F31 Weak"})},he=function(){var n=function(){return[{title:"\u8D26\u6237\u5BC6\u7801",description:(0,e.jsxs)(e.Fragment,{children:["\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6\uFF1A",me.strong]}),actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"\u5BC6\u4FDD\u624B\u673A",description:"\u5DF2\u7ED1\u5B9A\u624B\u673A\uFF1A138****8293",actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"\u5BC6\u4FDD\u95EE\u9898",description:"\u672A\u8BBE\u7F6E\u5BC6\u4FDD\u95EE\u9898\uFF0C\u5BC6\u4FDD\u95EE\u9898\u53EF\u6709\u6548\u4FDD\u62A4\u8D26\u6237\u5B89\u5168",actions:[(0,e.jsx)("a",{children:"\u8BBE\u7F6E"},"Set")]},{title:"\u5907\u7528\u90AE\u7BB1",description:"\u5DF2\u7ED1\u5B9A\u90AE\u7BB1\uFF1Aant***sign.com",actions:[(0,e.jsx)("a",{children:"\u4FEE\u6539"},"Modify")]},{title:"MFA \u8BBE\u5907",description:"\u672A\u7ED1\u5B9A MFA \u8BBE\u5907\uFF0C\u7ED1\u5B9A\u540E\uFF0C\u53EF\u4EE5\u8FDB\u884C\u4E8C\u6B21\u786E\u8BA4",actions:[(0,e.jsx)("a",{children:"\u7ED1\u5B9A"},"bind")]}]},t=n();return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(f.Z,{itemLayout:"horizontal",dataSource:t,renderItem:function(u){return(0,e.jsx)(f.Z.Item,{actions:u.actions,children:(0,e.jsx)(f.Z.Item.Meta,{title:u.title,description:u.description})})}})})},pe=he,fe=(0,R.kc)(function(s){var n=s.token;return{main:j()({display:"flex",width:"100%",height:"100%",paddingTop:"16px",paddingBottom:"16px",backgroundColor:n.colorBgContainer,".ant-list-split .ant-list-item:last-child":{borderBottom:"1px solid ".concat(n.colorSplit)},".ant-list-item":{paddingTop:"14px",paddingBottom:"14px"}},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{flexDirection:"column"}),leftMenu:j()({width:"224px",borderRight:"".concat(n.lineWidth,"px solid ").concat(n.colorSplit),".ant-menu-inline":{border:"none"},".ant-menu-horizontal":{fontWeight:"bold"}},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{width:"100%",border:"none"}),right:j()({flex:"1",padding:"8px 40px"},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{padding:"40px"}),title:{marginBottom:"12px",color:n.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},taobao:{display:"block",color:"#ff4000",fontSize:"48px",lineHeight:"48px",borderRadius:n.borderRadius},dingding:{margin:"2px",padding:"6px",color:"#fff",fontSize:"32px",lineHeight:"32px",backgroundColor:"#2eabff",borderRadius:n.borderRadius},alipay:{color:"#2eabff",fontSize:"48px",lineHeight:"48px",borderRadius:n.borderRadius},":global":{"font.strong":{color:n.colorSuccess},"font.medium":{color:n.colorWarning},"font.weak":{color:n.colorError}}}}),ve=fe,xe=function(){var n=ve(),t=n.styles,a={base:"\u57FA\u672C\u8BBE\u7F6E",security:"\u5B89\u5168\u8BBE\u7F6E",binding:"\u8D26\u53F7\u7ED1\u5B9A",notification:"\u65B0\u6D88\u606F\u901A\u77E5"},u=(0,w.useState)({mode:"inline",selectKey:"base"}),p=T()(u,2),v=p[0],F=p[1],x=(0,w.useRef)(),h=function(){requestAnimationFrame(function(){if(x.current){var o="inline",l=x.current.offsetWidth;x.current.offsetWidth<641&&l>400&&(o="horizontal"),window.innerWidth<768&&l>400&&(o="horizontal"),F(g()(g()({},v),{},{mode:o}))}})};(0,w.useLayoutEffect)(function(){return x.current&&(window.addEventListener("resize",h),h()),function(){window.removeEventListener("resize",h)}},[x.current]);var c=function(){return Object.keys(a).map(function(o){return{key:o,label:a[o]}})},i=function(){var o=v.selectKey;switch(o){case"base":return(0,e.jsx)(re,{});case"security":return(0,e.jsx)(pe,{});case"binding":return(0,e.jsx)(oe,{});case"notification":return(0,e.jsx)(ce,{});default:return null}};return(0,e.jsx)(L.f,{children:(0,e.jsxs)("div",{className:t.main,ref:function(o){o&&(x.current=o)},children:[(0,e.jsx)("div",{className:t.leftMenu,children:(0,e.jsx)(P.Z,{mode:v.mode,selectedKeys:[v.selectKey],onClick:function(o){var l=o.key;F(g()(g()({},v),{},{selectKey:l}))},items:c()})}),(0,e.jsxs)("div",{className:t.right,children:[(0,e.jsx)("div",{className:t.title,children:a[v.selectKey]}),i()]})]})})},ge=xe}}]); diff --git a/p__dashboard__analysis__index.716fbd2f.async.js b/p__dashboard__analysis__index.716fbd2f.async.js deleted file mode 100644 index 3be9adb1..00000000 --- a/p__dashboard__analysis__index.716fbd2f.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7071],{9455:function(H,D){var a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};D.Z=a},27174:function(H,D,a){var E=a(33346),S=a(50959),b=a(44108),N=a(69164),j=function(y,v){return S.createElement(N.Z,(0,E.Z)((0,E.Z)({},y),{},{ref:v,icon:b.Z}))};j.displayName="EllipsisOutlined",D.Z=S.forwardRef(j)},49997:function(H,D,a){var E=a(33346),S=a(50959),b=a(9455),N=a(69164),j=function(y,v){return S.createElement(N.Z,(0,E.Z)((0,E.Z)({},y),{},{ref:v,icon:b.Z}))};j.displayName="InfoCircleOutlined",D.Z=S.forwardRef(j)},4638:function(H,D,a){var E=a(50959),S=a(38551),b=function(){return b=Object.assign||function(j){for(var P,y=1,v=arguments.length;y *":{position:"relative"}},footerMargin:{marginTop:"20px"}}}),Je=Ye,n=a(11527),Qe=["loading","contentHeight","title","avatar","action","total","footer","children"],qe=function(e){var t=Je(),i=t.styles,l=function(s){if(!s&&s!==0)return null;var L;switch($e()(s)){case"undefined":L=null;break;case"function":L=(0,n.jsx)("div",{className:i.total,children:s()});break;default:L=(0,n.jsx)("div",{className:i.total,children:s})}return L},d=function(){var s=e.contentHeight,L=e.title,De=e.avatar,Ee=e.action,X=e.total,W=e.footer,G=e.children,be=e.loading;return be?!1:(0,n.jsxs)("div",{className:i.chartCard,children:[(0,n.jsxs)("div",{className:_()(i.chartTop,C()({},i.chartTopMargin,!G&&!W)),children:[(0,n.jsx)("div",{className:i.avatar,children:De}),(0,n.jsxs)("div",{className:i.metaWrap,children:[(0,n.jsxs)("div",{className:i.meta,children:[(0,n.jsx)("span",{children:L}),(0,n.jsx)("span",{className:i.action,children:Ee})]}),l(X)]})]}),G&&(0,n.jsx)("div",{className:i.content,style:{height:s||"auto"},children:(0,n.jsx)("div",{className:s&&i.contentFixed,children:G})}),W&&(0,n.jsx)("div",{className:_()(i.footer,C()({},i.footerMargin,!G)),children:W})]})},u=e.loading,g=u===void 0?!1:u,f=e.contentHeight,o=e.title,c=e.avatar,p=e.action,T=e.total,I=e.footer,Se=e.children,re=q()(e,Qe);return(0,n.jsx)(U.Z,x()(x()({loading:g,bodyStyle:{padding:"20px 24px 8px 24px"}},re),{},{children:d()}))},V=qe,_e=(0,B.kc)(function(r){var e=r.token;return{field:{margin:"0",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},label:{fontSize:e.fontSize,lineHeight:"22px"},number:{marginLeft:"8px",color:e.colorTextHeading}}}),en=_e,nn=["label","value"],tn=function(e){var t=e.label,i=e.value,l=q()(e,nn),d=en(),u=d.styles;return(0,n.jsxs)("div",x()(x()({className:u.field},l),{},{children:[(0,n.jsx)("span",{className:u.label,children:t}),(0,n.jsx)("span",{className:u.number,children:i})]}))},ee=tn,Ze=function(e){return"\xA5 ".concat(O()(e).format("0,0"))},tt={yuan:Ze,ChartCard:V,Field:ee},an=function(r){We()(t,r);var e=Ke()(t);function t(){var i;ce()(this,t);for(var l=arguments.length,d=new Array(l),u=0;u span":{color:e.colorText}},subTotal:{marginRight:"0",color:e.colorTextSecondary,fontSize:e["font-size-lg"],verticalAlign:"top"},anticon:{marginLeft:"4px",fontSize:"12px",transform:"scale(0.82)"},"anticon-caret-up":{color:e["red-6"]},"anticon-caret-down":{color:e["green-6"]}}}),On=bn,Pn=["theme","title","subTitle","total","subTotal","status","suffix","gap"],Zn=function(e){var t=e.theme,i=e.title,l=e.subTitle,d=e.total,u=e.subTotal,g=e.status,f=e.suffix,o=e.gap,c=q()(e,Pn),p=On(),T=p.styles;return(0,n.jsxs)("div",x()(x()({className:_()(T.numberInfo,C()({},T["numberInfo".concat(t)],t))},c),{},{children:[i&&(0,n.jsx)("div",{className:T.numberInfoTitle,title:typeof i=="string"?i:"",children:i}),l&&(0,n.jsx)("div",{className:T.numberInfoSubTitle,title:typeof l=="string"?l:"",children:l}),(0,n.jsxs)("div",{className:T.numberInfoValue,style:o?{marginTop:o}:{},children:[(0,n.jsxs)("span",{children:[d,f&&(0,n.jsx)("em",{className:T.suffix,children:f})]}),(g||u)&&(0,n.jsxs)("span",{className:T.subTotal,children:[u,g&&g==="up"?(0,n.jsx)(Ie,{}):(0,n.jsx)(Fe,{})]})]})]}))},me=Zn,Nn=function(e){var t=e.data,i=e.currentTabKey;return(0,n.jsxs)(y.Z,{gutter:8,style:{width:138,margin:"8px 0"},children:[(0,n.jsx)(v.Z,{span:12,children:(0,n.jsx)(me,{title:t.name,subTitle:"\u8F6C\u5316\u7387",gap:2,total:"".concat(t.cvr*100,"%"),theme:i!==t.name?"light":void 0})}),(0,n.jsx)(v.Z,{span:12,style:{paddingTop:36},children:(0,n.jsx)(Sn.Ring,{height:60,width:60,percent:t.cvr,color:["#E8EEF4","#5FABF4"]})})]})},Bn=function(e){var t=e.activeKey,i=e.loading,l=e.offlineData,d=e.offlineChartData,u=e.handleTabChange,g=M(),f=g.styles;return(0,n.jsx)(U.Z,{loading:i,className:f.offlineCard,bordered:!1,style:{marginTop:32},children:(0,n.jsx)(Ae.Z,{activeKey:t,onChange:u,items:l.map(function(o){return{key:o.name,label:(0,n.jsx)(Nn,{data:o,currentTabKey:t}),children:(0,n.jsx)("div",{style:{padding:"0 24px"},children:(0,n.jsx)(En,{height:400,data:d,xField:"date",yField:"value",colorField:"type",slider:{x:!0},axis:{x:{title:!1},y:{title:!1,gridLineDash:null,gridStroke:"#ccc",gridStrokeOpacity:1}},legend:{color:{layout:{justifyContent:"center"}}}})})}})})})},In=Bn,Rn=a(38705),Fn=function(){return(0,n.jsx)("div",{style:{paddingTop:100,textAlign:"center"},children:(0,n.jsx)(Rn.Z,{size:"large"})})},pe=function(){return pe=Object.assign||function(r){for(var e,t=1,i=arguments.length;t *":{position:"relative"}},footerMargin:{marginTop:"20px"}}}),Je=Ye,n=a(63342),Qe=["loading","contentHeight","title","avatar","action","total","footer","children"],qe=function(e){var t=Je(),i=t.styles,l=function(s){if(!s&&s!==0)return null;var M;switch($e()(s)){case"undefined":M=null;break;case"function":M=(0,n.jsx)("div",{className:i.total,children:s()});break;default:M=(0,n.jsx)("div",{className:i.total,children:s})}return M},d=function(){var s=e.contentHeight,M=e.title,De=e.avatar,Ee=e.action,X=e.total,z=e.footer,W=e.children,be=e.loading;return be?!1:(0,n.jsxs)("div",{className:i.chartCard,children:[(0,n.jsxs)("div",{className:_()(i.chartTop,C()({},i.chartTopMargin,!W&&!z)),children:[(0,n.jsx)("div",{className:i.avatar,children:De}),(0,n.jsxs)("div",{className:i.metaWrap,children:[(0,n.jsxs)("div",{className:i.meta,children:[(0,n.jsx)("span",{children:M}),(0,n.jsx)("span",{className:i.action,children:Ee})]}),l(X)]})]}),W&&(0,n.jsx)("div",{className:i.content,style:{height:s||"auto"},children:(0,n.jsx)("div",{className:s&&i.contentFixed,children:W})}),z&&(0,n.jsx)("div",{className:_()(i.footer,C()({},i.footerMargin,!W)),children:z})]})},u=e.loading,g=u===void 0?!1:u,f=e.contentHeight,o=e.title,c=e.avatar,p=e.action,T=e.total,I=e.footer,Se=e.children,re=q()(e,Qe);return(0,n.jsx)(U.Z,x()(x()({loading:g,bodyStyle:{padding:"20px 24px 8px 24px"}},re),{},{children:d()}))},V=qe,_e=(0,B.kc)(function(r){var e=r.token;return{field:{margin:"0",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},label:{fontSize:e.fontSize,lineHeight:"22px"},number:{marginLeft:"8px",color:e.colorTextHeading}}}),en=_e,nn=["label","value"],tn=function(e){var t=e.label,i=e.value,l=q()(e,nn),d=en(),u=d.styles;return(0,n.jsxs)("div",x()(x()({className:u.field},l),{},{children:[(0,n.jsx)("span",{className:u.label,children:t}),(0,n.jsx)("span",{className:u.number,children:i})]}))},ee=tn,Ze=function(e){return"\xA5 ".concat(O()(e).format("0,0"))},tt={yuan:Ze,ChartCard:V,Field:ee},an=function(r){We()(t,r);var e=Ke()(t);function t(){var i;ce()(this,t);for(var l=arguments.length,d=new Array(l),u=0;u span":{color:e.colorText}},subTotal:{marginRight:"0",color:e.colorTextSecondary,fontSize:e["font-size-lg"],verticalAlign:"top"},anticon:{marginLeft:"4px",fontSize:"12px",transform:"scale(0.82)"},"anticon-caret-up":{color:e["red-6"]},"anticon-caret-down":{color:e["green-6"]}}}),On=bn,Pn=["theme","title","subTitle","total","subTotal","status","suffix","gap"],Zn=function(e){var t=e.theme,i=e.title,l=e.subTitle,d=e.total,u=e.subTotal,g=e.status,f=e.suffix,o=e.gap,c=q()(e,Pn),p=On(),T=p.styles;return(0,n.jsxs)("div",x()(x()({className:_()(T.numberInfo,C()({},T["numberInfo".concat(t)],t))},c),{},{children:[i&&(0,n.jsx)("div",{className:T.numberInfoTitle,title:typeof i=="string"?i:"",children:i}),l&&(0,n.jsx)("div",{className:T.numberInfoSubTitle,title:typeof l=="string"?l:"",children:l}),(0,n.jsxs)("div",{className:T.numberInfoValue,style:o?{marginTop:o}:{},children:[(0,n.jsxs)("span",{children:[d,f&&(0,n.jsx)("em",{className:T.suffix,children:f})]}),(g||u)&&(0,n.jsxs)("span",{className:T.subTotal,children:[u,g&&g==="up"?(0,n.jsx)(Ie,{}):(0,n.jsx)(Fe,{})]})]})]}))},me=Zn,Nn=function(e){var t=e.data,i=e.currentTabKey;return(0,n.jsxs)(y.Z,{gutter:8,style:{width:138,margin:"8px 0"},children:[(0,n.jsx)(v.Z,{span:12,children:(0,n.jsx)(me,{title:t.name,subTitle:"\u8F6C\u5316\u7387",gap:2,total:"".concat(t.cvr*100,"%"),theme:i!==t.name?"light":void 0})}),(0,n.jsx)(v.Z,{span:12,style:{paddingTop:36},children:(0,n.jsx)(Sn.Ring,{height:60,width:60,percent:t.cvr,color:["#E8EEF4","#5FABF4"]})})]})},Bn=function(e){var t=e.activeKey,i=e.loading,l=e.offlineData,d=e.offlineChartData,u=e.handleTabChange,g=L(),f=g.styles;return(0,n.jsx)(U.Z,{loading:i,className:f.offlineCard,bordered:!1,style:{marginTop:32},children:(0,n.jsx)(Ae.Z,{activeKey:t,onChange:u,items:l.map(function(o){return{key:o.name,label:(0,n.jsx)(Nn,{data:o,currentTabKey:t}),children:(0,n.jsx)("div",{style:{padding:"0 24px"},children:(0,n.jsx)(En,{height:400,data:d,xField:"date",yField:"value",colorField:"type",slider:{x:!0},axis:{x:{title:!1},y:{title:!1,gridLineDash:null,gridStroke:"#ccc",gridStrokeOpacity:1}},legend:{color:{layout:{justifyContent:"center"}}}})})}})})})},In=Bn,Rn=a(2219),Fn=function(){return(0,n.jsx)("div",{style:{paddingTop:100,textAlign:"center"},children:(0,n.jsx)(Rn.Z,{size:"large"})})},pe=function(){return pe=Object.assign||function(r){for(var e,t=1,i=arguments.length;t2e3}},size:{values:12},style:{opacity:1,strokeOpacity:1,strokeWidth:0}},"5")]]})}}]),s}(m.Component);function ot(){return Z.apply(this,arguments)}function Z(){return Z=M()(y()().mark(function i(){return y()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,B.request)("/api/tags"));case 1:case"end":return s.stop()}},i)})),Z.apply(this,arguments)}var dt=(0,z.kc)(function(i){var n=i.token;return{mapChart:T()({height:"452px",paddingTop:"24px",img:{display:"inline-block",maxWidth:"100%",maxHeight:"437px"}},"@media screen and (max-width: ".concat(n.screenLG,"px)"),{height:"auto"})}}),ut=dt,ct=x.Z.Countdown,ht=Date.now()+1e3*60*60*24*2+1e3*30,vt=function(){var n=ut(),s=n.styles,d=(0,B.useRequest)(ot),o=d.loading,r=d.data,l=((r==null?void 0:r.list)||[]).map(function(c){return{id:+Date.now(),word:c.name,weight:c.value}});return(0,t.jsx)(R.f,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(p.Z,{gutter:24,children:[(0,t.jsx)(u.Z,{xl:18,lg:24,md:24,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsxs)(v.Z,{title:"\u6D3B\u52A8\u5B9E\u65F6\u4EA4\u6613\u60C5\u51B5",bordered:!1,children:[(0,t.jsxs)(p.Z,{children:[(0,t.jsx)(u.Z,{md:6,sm:12,xs:24,children:(0,t.jsx)(x.Z,{title:"\u4ECA\u65E5\u4EA4\u6613\u603B\u989D",suffix:"\u5143",value:F()(124543233).format("0,0")})}),(0,t.jsx)(u.Z,{md:6,sm:12,xs:24,children:(0,t.jsx)(x.Z,{title:"\u9500\u552E\u76EE\u6807\u5B8C\u6210\u7387",value:"92%"})}),(0,t.jsx)(u.Z,{md:6,sm:12,xs:24,children:(0,t.jsx)(ct,{title:"\u6D3B\u52A8\u5269\u4F59\u65F6\u95F4",value:ht,format:"HH:mm:ss:SSS"})}),(0,t.jsx)(u.Z,{md:6,sm:12,xs:24,children:(0,t.jsx)(x.Z,{title:"\u6BCF\u79D2\u4EA4\u6613\u603B\u989D",suffix:"\u5143",value:F()(234).format("0,0")})})]}),(0,t.jsx)("div",{className:s.mapChart,children:(0,t.jsx)(it,{})})]})}),(0,t.jsxs)(u.Z,{xl:6,lg:24,md:24,sm:24,xs:24,children:[(0,t.jsx)(v.Z,{title:"\u6D3B\u52A8\u60C5\u51B5\u9884\u6D4B",style:{marginBottom:24},bordered:!1,children:(0,t.jsx)(U,{})}),(0,t.jsx)(v.Z,{title:"\u5238\u6838\u6548\u7387",style:{marginBottom:24},bodyStyle:{textAlign:"center"},bordered:!1,children:(0,t.jsx)($.Z,{height:180,data:{target:80,total:100,name:"score",thresholds:[20,40,60,80,100]},padding:-16,style:{textContent:function(){return"\u4F18"}},meta:{color:{range:["#6395FA","#62DAAB","#657798","#F7C128","#1F8718"]}}})})]})]}),(0,t.jsxs)(p.Z,{gutter:24,children:[(0,t.jsx)(u.Z,{xl:12,lg:24,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(v.Z,{title:"\u5404\u54C1\u7C7B\u5360\u6BD4",bordered:!1,children:(0,t.jsxs)(p.Z,{style:{padding:"16px 0"},children:[(0,t.jsx)(u.Z,{span:8,children:(0,t.jsx)(C.Z,{type:"dashboard",percent:75})}),(0,t.jsx)(u.Z,{span:8,children:(0,t.jsx)(C.Z,{type:"dashboard",percent:48})}),(0,t.jsx)(u.Z,{span:8,children:(0,t.jsx)(C.Z,{type:"dashboard",percent:33})})]})})}),(0,t.jsx)(u.Z,{xl:6,lg:12,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(v.Z,{title:"\u70ED\u95E8\u641C\u7D22",loading:o,bordered:!1,bodyStyle:{overflow:"hidden"},children:(0,t.jsx)(N.Z,{data:l,height:162,textField:"word",colorField:"word",layout:{spiral:"rectangular",fontSize:[10,20]}})})}),(0,t.jsx)(u.Z,{xl:6,lg:12,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(v.Z,{title:"\u8D44\u6E90\u5269\u4F59",bodyStyle:{textAlign:"center",fontSize:0},bordered:!1,children:(0,t.jsx)(L.Z,{height:160,percent:.35})})})]})]})})},ft=vt}}]); diff --git a/p__dashboard__monitor__index.fe359b32.async.js b/p__dashboard__monitor__index.fe359b32.async.js deleted file mode 100644 index 81906ebe..00000000 --- a/p__dashboard__monitor__index.fe359b32.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[533],{56865:function(gt,D,e){e.r(D),e.d(D,{default:function(){return ft}});var $=e(71463),N=e(17103),L=e(82283),R=e(19494),B=e(27533),x=e(53295),p=e(23870),u=e(82099),v=e(50304),C=e(17519),P=e(4587),F=e.n(P),G=e(67855),S=e.n(G),H=e(28152),E=e.n(H),I=e(4638),m=e(50959),z=e(8700),O=(0,z.kc)(function(){return{activeChart:{position:"relative"},activeChartGrid:{p:{position:"absolute",top:"80px"},"p:last-child":{top:"115px"}},activeChartLegend:{position:"relative",height:"20px",marginTop:"8px",fontSize:"0",lineHeight:"20px",span:{display:"inline-block",width:"33.33%",fontSize:"12px",textAlign:"center"},"span:first-child":{textAlign:"left"},"span:last-child":{textAlign:"right"}},dashedLine:{position:"relative",top:"-70px",left:"-3px",height:"1px"},line:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",backgroundImage:"linear-gradient(to right, transparent 50%, #e9e9e9 50%)",backgroundSize:"6px"},"dashedLine:last-child":{top:"-36px"}}}),W=O,t=e(11527);function J(i){return i*1<10?"0".concat(i):i}function K(){for(var i=[],n=0;n<24;n+=1)i.push({x:"".concat(J(n),":00"),y:Math.floor(Math.random()*200)+n*50});return i}var Q=function(){var n,s,d,o,r=(0,m.useRef)(null),l=(0,m.useRef)(null),c=W(),h=c.styles,f=(0,m.useState)([]),A=E()(f,2),a=A[0],g=A[1],xt=function mt(){l.current=requestAnimationFrame(function(){r.current=window.setTimeout(function(){g(K()),mt()},2e3)})};return(0,m.useEffect)(function(){return xt(),function(){clearTimeout(r.current),l.current&&cancelAnimationFrame(l.current)}},[]),(0,t.jsxs)("div",{className:h.activeChart,children:[(0,t.jsx)(x.Z,{title:"\u76EE\u6807\u8BC4\u4F30",value:"\u6709\u671B\u8FBE\u5230\u9884\u671F"}),(0,t.jsx)("div",{style:{marginTop:32},children:(0,t.jsx)(I.Z,{padding:[0,0,0,0],xField:"x",axis:!1,yField:"y",height:84,style:{fill:"linear-gradient(-90deg, white 0%, #6294FA 100%)",fillOpacity:.6},data:a})}),a&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:h.activeChartGrid,children:[(0,t.jsxs)("p",{children:[((n=S()(a).sort()[a.length-1])===null||n===void 0?void 0:n.y)+200," \u4EBF\u5143"]}),(0,t.jsxs)("p",{children:[(s=S()(a).sort()[Math.floor(a.length/2)])===null||s===void 0?void 0:s.y," \u4EBF\u5143"]})]}),(0,t.jsx)("div",{className:h.dashedLine,children:(0,t.jsx)("div",{className:h.line})}),(0,t.jsx)("div",{className:h.dashedLine,children:(0,t.jsx)("div",{className:h.line})})]}),a&&(0,t.jsxs)("div",{className:h.activeChartLegend,children:[(0,t.jsx)("span",{children:"00:00"}),(0,t.jsx)("span",{children:(d=a[Math.floor(a.length/2)])===null||d===void 0?void 0:d.x}),(0,t.jsx)("span",{children:(o=a[a.length-1])===null||o===void 0?void 0:o.x})]})]})},U=Q,V=e(13448),y=e.n(V),X=e(74815),M=e.n(X),Y=e(15033),b=e.n(Y),w=e(96345),k=e.n(w),q=e(90696),_=e.n(q),tt=e(13762),et=e.n(tt),at=e(41206),nt=e.n(at),st=e(21320),T=e.n(st),lt=e(27449),j=e(91934),rt=["#eff3ff","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],it=function(i){et()(s,i);var n=nt()(s);function s(){var d;b()(this,s);for(var o=arguments.length,r=new Array(o),l=0;l2e3}},size:{values:12},style:{opacity:1,strokeOpacity:1,strokeWidth:0}},"5")]]})}}]),s}(m.Component);function ot(){return Z.apply(this,arguments)}function Z(){return Z=M()(y()().mark(function i(){return y()().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,B.request)("/api/tags"));case 1:case"end":return s.stop()}},i)})),Z.apply(this,arguments)}var dt=(0,z.kc)(function(i){var n=i.token;return{mapChart:T()({height:"452px",paddingTop:"24px",img:{display:"inline-block",maxWidth:"100%",maxHeight:"437px"}},"@media screen and (max-width: ".concat(n.screenLG,"px)"),{height:"auto"})}}),ut=dt,ct=x.Z.Countdown,ht=Date.now()+1e3*60*60*24*2+1e3*30,vt=function(){var n=ut(),s=n.styles,d=(0,B.useRequest)(ot),o=d.loading,r=d.data,l=((r==null?void 0:r.list)||[]).map(function(c){return{id:+Date.now(),word:c.name,weight:c.value}});return(0,t.jsx)(R.f,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(p.Z,{gutter:24,children:[(0,t.jsx)(u.Z,{xl:18,lg:24,md:24,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsxs)(v.Z,{title:"\u6D3B\u52A8\u5B9E\u65F6\u4EA4\u6613\u60C5\u51B5",bordered:!1,children:[(0,t.jsxs)(p.Z,{children:[(0,t.jsx)(u.Z,{md:6,sm:12,xs:24,children:(0,t.jsx)(x.Z,{title:"\u4ECA\u65E5\u4EA4\u6613\u603B\u989D",suffix:"\u5143",value:F()(124543233).format("0,0")})}),(0,t.jsx)(u.Z,{md:6,sm:12,xs:24,children:(0,t.jsx)(x.Z,{title:"\u9500\u552E\u76EE\u6807\u5B8C\u6210\u7387",value:"92%"})}),(0,t.jsx)(u.Z,{md:6,sm:12,xs:24,children:(0,t.jsx)(ct,{title:"\u6D3B\u52A8\u5269\u4F59\u65F6\u95F4",value:ht,format:"HH:mm:ss:SSS"})}),(0,t.jsx)(u.Z,{md:6,sm:12,xs:24,children:(0,t.jsx)(x.Z,{title:"\u6BCF\u79D2\u4EA4\u6613\u603B\u989D",suffix:"\u5143",value:F()(234).format("0,0")})})]}),(0,t.jsx)("div",{className:s.mapChart,children:(0,t.jsx)(it,{})})]})}),(0,t.jsxs)(u.Z,{xl:6,lg:24,md:24,sm:24,xs:24,children:[(0,t.jsx)(v.Z,{title:"\u6D3B\u52A8\u60C5\u51B5\u9884\u6D4B",style:{marginBottom:24},bordered:!1,children:(0,t.jsx)(U,{})}),(0,t.jsx)(v.Z,{title:"\u5238\u6838\u6548\u7387",style:{marginBottom:24},bodyStyle:{textAlign:"center"},bordered:!1,children:(0,t.jsx)($.Z,{height:180,data:{target:80,total:100,name:"score",thresholds:[20,40,60,80,100]},padding:-16,style:{textContent:function(){return"\u4F18"}},meta:{color:{range:["#6395FA","#62DAAB","#657798","#F7C128","#1F8718"]}}})})]})]}),(0,t.jsxs)(p.Z,{gutter:24,children:[(0,t.jsx)(u.Z,{xl:12,lg:24,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(v.Z,{title:"\u5404\u54C1\u7C7B\u5360\u6BD4",bordered:!1,children:(0,t.jsxs)(p.Z,{style:{padding:"16px 0"},children:[(0,t.jsx)(u.Z,{span:8,children:(0,t.jsx)(C.Z,{type:"dashboard",percent:75})}),(0,t.jsx)(u.Z,{span:8,children:(0,t.jsx)(C.Z,{type:"dashboard",percent:48})}),(0,t.jsx)(u.Z,{span:8,children:(0,t.jsx)(C.Z,{type:"dashboard",percent:33})})]})})}),(0,t.jsx)(u.Z,{xl:6,lg:12,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(v.Z,{title:"\u70ED\u95E8\u641C\u7D22",loading:o,bordered:!1,bodyStyle:{overflow:"hidden"},children:(0,t.jsx)(N.Z,{data:l,height:162,textField:"word",colorField:"word",layout:{spiral:"rectangular",fontSize:[10,20]}})})}),(0,t.jsx)(u.Z,{xl:6,lg:12,sm:24,xs:24,style:{marginBottom:24},children:(0,t.jsx)(v.Z,{title:"\u8D44\u6E90\u5269\u4F59",bodyStyle:{textAlign:"center",fontSize:0},bordered:!1,children:(0,t.jsx)(L.Z,{height:160,percent:.35})})})]})]})})},ft=vt}}]); diff --git a/p__dashboard__workplace__index.0ce69ea2.async.js b/p__dashboard__workplace__index.0ce69ea2.async.js deleted file mode 100644 index e551ef2f..00000000 --- a/p__dashboard__workplace__index.0ce69ea2.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8123],{1442:function(_,b,t){"use strict";var o=t(33346),C=t(50959),D=t(63374),I=t(69164),R=function(d,M){return C.createElement(I.Z,(0,o.Z)((0,o.Z)({},d),{},{ref:M,icon:D.Z}))};R.displayName="PlusOutlined",b.Z=C.forwardRef(R)},83157:function(_,b,t){"use strict";t.r(b),t.d(b,{default:function(){return B}});var o=t(50959),C=t(38551),D=function(){return D=Object.assign||function(f){for(var r,n=1,l=arguments.length;n a":{display:"inline-block",width:"25%",marginBottom:"13px",color:r.colorText,fontSize:r.fontSize,"&:hover":{color:r.colorPrimary}}}}}),ne=te,e=t(11527),ee=function(r){var n=ne(),l=n.styles,g=r.links,F=r.linkElement,a=r.onAdd;return(0,e.jsxs)("div",{className:l.linkGroup,children:[g.map(function(W){return(0,o.createElement)(F,{key:"linkGroup-item-".concat(W.id||W.title),to:W.href,href:W.href},W.title)}),(0,e.jsxs)(K.ZP,{size:"small",type:"primary",ghost:!0,onClick:a,children:[(0,e.jsx)(O.Z,{})," \u6DFB\u52A0"]})]})};ee.defaultProps={links:[],onAdd:function(){},linkElement:"a"};var u=ee,s=t(13448),c=t.n(s),x=t(74815),y=t.n(x);function N(){return p.apply(this,arguments)}function p(){return p=y()(c()().mark(function f(){return c()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,d.request)("/api/project/notice"));case 1:case"end":return n.stop()}},f)})),p.apply(this,arguments)}function S(){return m.apply(this,arguments)}function m(){return m=y()(c()().mark(function f(){return c()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,d.request)("/api/activities"));case 1:case"end":return n.stop()}},f)})),m.apply(this,arguments)}function T(){return w.apply(this,arguments)}function w(){return w=y()(c()().mark(function f(){return c()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,d.request)("/api/fake_workplace_chart_data"));case 1:case"end":return n.stop()}},f)})),w.apply(this,arguments)}var h=t(21320),i=t.n(h),q=(0,G.kc)(function(f){var r,n,l,g,F,a=f.token;return{activitiesList:{padding:"0 24px 8px 24px"},username:{color:a.colorText},event:{fontWeight:"normal"},pageHeaderContent:i()({display:"flex"},"@media screen and (max-width: ".concat(a.screenSM,"px)"),{display:"block"}),avatar:{flex:"0 1 72px","& > span":{display:"block",width:"72px",height:"72px",borderRadius:"72px"}},content:i()({position:"relative",top:"4px",flex:"1 1 auto",marginLeft:"24px",color:a.colorTextSecondary,lineHeight:"22px"},"@media screen and (max-width: ".concat(a.screenSM,"px)"),{marginLeft:"0"}),contentTitle:{marginBottom:"12px",color:a.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},extraContent:(r={zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},float:"right",whiteSpace:"nowrap"},i()(r,"@media screen and (max-width: ".concat(a.screenXL,"px) and (min-width: @screen-lg)"),{marginLeft:"-44px"}),i()(r,"@media screen and (max-width: ".concat(a.screenLG,"px)"),{float:"none",marginRight:"0"}),i()(r,"@media screen and (max-width: ".concat(a.screenMD,"px)"),{marginLeft:"-16px"}),r),statItem:(n={position:"relative",display:"inline-block",padding:"0 32px","> p:first-child":{marginBottom:"4px",color:a.colorTextSecondary,fontSize:a.fontSize,lineHeight:"22px"},"> p":{margin:"0",color:a.colorTextHeading,fontSize:"30px",lineHeight:"38px","> span":{color:a.colorTextSecondary,fontSize:"20px"}},"&::after":{position:"absolute",top:"8px",right:"0",width:"1px",height:"40px",backgroundColor:a.colorSplit,content:"''"},"&:last-child":{paddingRight:"0","&::after":{display:"none"}}},i()(n,"@media screen and (max-width: ".concat(a.screenXL,"px) and (min-width: @screen-lg)"),{padding:"0 16px"}),i()(n,"@media screen and (max-width: ".concat(a.screenLG,"px)"),{padding:"0 16px",textAlign:"left","&::after":{display:"none"}}),i()(n,"@media screen and (max-width: ".concat(a.screenSM,"px)"),{float:"none"}),n),members:(l={a:{display:"block",height:"24px",margin:"12px 0",color:a.colorText,transition:"all 0.3s",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all","&:hover":{color:a.colorPrimary}}},i()(l,"@media screen and (max-width: ".concat(a.screenXL,"px) and (min-width: @screen-lg)"),{marginBottom:"0"}),i()(l,"@media screen and (max-width: ".concat(a.screenLG,"px)"),{marginBottom:"0"}),l),member:{marginLeft:"12px",fontSize:a.fontSize,lineHeight:"24px",verticalAlign:"top"},projectList:{".ant-card-meta-description":{height:"44px",overflow:"hidden",color:a.colorTextSecondary,lineHeight:"22px"}},cardTitle:{fontSize:"0",a:{display:"inline-block",height:"24px",marginLeft:"12px",color:a.colorTextHeading,fontSize:a.fontSize,lineHeight:"24px",verticalAlign:"top","&:hover":{color:a.colorPrimary}}},projectGrid:(g={width:"33.33%"},i()(g,"@media screen and (max-width: ".concat(a.screenMD,"px)"),{width:"50%"}),i()(g,"@media screen and (max-width: ".concat(a.screenXS,"px)"),{width:"100%"}),g),projectItemContent:{display:"flex",height:"20px",marginTop:"8px",overflow:"hidden",fontSize:"12px",lineHeight:"20px",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all",a:{display:"inline-block",flex:"1 1 0",color:a.colorTextSecondary,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all","&:hover":{color:a.colorPrimary}}},datetime:{flex:"0 0 auto",float:"right",color:a.colorTextDisabled},activeCard:(F={},i()(F,"@media screen and (max-width: ".concat(a.screenXL,"px) and (min-width: @screen-lg)"),{marginBottom:"24px"}),i()(F,"@media screen and (max-width: ".concat(a.screenLG,"px)"),{marginBottom:"24px"}),F)}}),V=q;J().extend(L());var ae=[{title:"\u64CD\u4F5C\u4E00",href:""},{title:"\u64CD\u4F5C\u4E8C",href:""},{title:"\u64CD\u4F5C\u4E09",href:""},{title:"\u64CD\u4F5C\u56DB",href:""},{title:"\u64CD\u4F5C\u4E94",href:""},{title:"\u64CD\u4F5C\u516D",href:""}],re=function(r){var n=r.currentUser,l=V(),g=l.styles,F=n&&Object.keys(n).length;return F?(0,e.jsxs)("div",{className:g.pageHeaderContent,children:[(0,e.jsx)("div",{className:g.avatar,children:(0,e.jsx)($.C,{size:"large",src:n.avatar})}),(0,e.jsxs)("div",{className:g.content,children:[(0,e.jsxs)("div",{className:g.contentTitle,children:["\u65E9\u5B89\uFF0C",n.name,"\uFF0C\u795D\u4F60\u5F00\u5FC3\u6BCF\u4E00\u5929\uFF01"]}),(0,e.jsxs)("div",{children:[n.title," |",n.group]})]})]}):(0,e.jsx)(M.Z,{avatar:!0,paragraph:{rows:1},active:!0})},ie=function(){var r=V(),n=r.styles;return(0,e.jsxs)("div",{className:n.extraContent,children:[(0,e.jsx)("div",{className:n.statItem,children:(0,e.jsx)(H.Z,{title:"\u9879\u76EE\u6570",value:56})}),(0,e.jsx)("div",{className:n.statItem,children:(0,e.jsx)(H.Z,{title:"\u56E2\u961F\u5185\u6392\u540D",value:8,suffix:"/ 24"})}),(0,e.jsx)("div",{className:n.statItem,children:(0,e.jsx)(H.Z,{title:"\u9879\u76EE\u8BBF\u95EE",value:2223})})]})},U=function(){var r,n=V(),l=n.styles,g=(0,d.useRequest)(N),F=g.loading,a=g.data,W=a===void 0?[]:a,oe=(0,d.useRequest)(S),le=oe.loading,ce=oe.data,de=ce===void 0?[]:ce,ue=(0,d.useRequest)(T),Q=ue.data,me=function(P){var pe=P.template.split(/@\{([^{}]*)\}/gi).map(function(se){if(P[se]){var Y=P[se];return(0,e.jsx)("a",{href:Y==null?void 0:Y.link,children:Y.name},Y==null?void 0:Y.name)}return se});return(0,e.jsx)(Z.Z.Item,{children:(0,e.jsx)(Z.Z.Item.Meta,{avatar:(0,e.jsx)($.C,{src:P.user.avatar}),title:(0,e.jsxs)("span",{children:[(0,e.jsx)("a",{className:l.username,children:P.user.name}),"\xA0",(0,e.jsx)("span",{className:l.event,children:pe})]}),description:(0,e.jsx)("span",{className:l.datetime,title:P.updatedAt,children:J()(P.updatedAt).fromNow()})})},P.id)};return(0,e.jsx)(v._z,{content:(0,e.jsx)(re,{currentUser:{avatar:"https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png",name:"\u5434\u5F66\u7956",userid:"00000001",email:"antdesign@alipay.com",signature:"\u6D77\u7EB3\u767E\u5DDD\uFF0C\u6709\u5BB9\u4E43\u5927",title:"\u4EA4\u4E92\u4E13\u5BB6",group:"\u8682\u8681\u91D1\u670D\uFF0D\u67D0\u67D0\u67D0\u4E8B\u4E1A\u7FA4\uFF0D\u67D0\u67D0\u5E73\u53F0\u90E8\uFF0D\u67D0\u67D0\u6280\u672F\u90E8\uFF0DUED"}}),extraContent:(0,e.jsx)(ie,{}),children:(0,e.jsxs)(k.Z,{gutter:24,children:[(0,e.jsxs)(A.Z,{xl:16,lg:24,md:24,sm:24,xs:24,children:[(0,e.jsx)(E.Z,{className:l.projectList,style:{marginBottom:24},title:"\u8FDB\u884C\u4E2D\u7684\u9879\u76EE",bordered:!1,extra:(0,e.jsx)(d.Link,{to:"/",children:"\u5168\u90E8\u9879\u76EE"}),loading:F,bodyStyle:{padding:0},children:W.map(function(j){return(0,e.jsx)(E.Z.Grid,{className:l.projectGrid,children:(0,e.jsxs)(E.Z,{bodyStyle:{padding:0},bordered:!1,children:[(0,e.jsx)(E.Z.Meta,{title:(0,e.jsxs)("div",{className:l.cardTitle,children:[(0,e.jsx)($.C,{size:"small",src:j.logo}),(0,e.jsx)(d.Link,{to:j.href||"/",children:j.title})]}),description:j.description}),(0,e.jsxs)("div",{className:l.projectItemContent,children:[(0,e.jsx)(d.Link,{to:j.memberLink||"/",children:j.member||""}),j.updatedAt&&(0,e.jsx)("span",{className:l.datetime,title:j.updatedAt,children:J()(j.updatedAt).fromNow()})]})]})},j.id)})}),(0,e.jsx)(E.Z,{bodyStyle:{padding:0},bordered:!1,className:l.activeCard,title:"\u52A8\u6001",loading:le,children:(0,e.jsx)(Z.Z,{loading:le,renderItem:function(P){return me(P)},dataSource:de,className:l.activitiesList,size:"large"})})]}),(0,e.jsxs)(A.Z,{xl:8,lg:24,md:24,sm:24,xs:24,children:[(0,e.jsx)(E.Z,{style:{marginBottom:24},title:"\u5FEB\u901F\u5F00\u59CB / \u4FBF\u6377\u5BFC\u822A",bordered:!1,bodyStyle:{padding:0},children:(0,e.jsx)(u,{onAdd:function(){},links:ae,linkElement:d.Link})}),(0,e.jsx)(E.Z,{style:{marginBottom:24},bordered:!1,title:"XX \u6307\u6570",loading:(Q==null||(r=Q.radarData)===null||r===void 0?void 0:r.length)===0,children:(0,e.jsx)("div",{children:(0,e.jsx)(R,{height:343,data:(Q==null?void 0:Q.radarData)||[],xField:"label",colorField:"name",yField:"value",shapeField:"smooth",area:{style:{fillOpacity:.4}},axis:{y:{gridStrokeOpacity:.5}},legend:{color:{position:"bottom",layout:{justifyContent:"center"}}}})})}),(0,e.jsx)(E.Z,{bodyStyle:{paddingTop:12,paddingBottom:12},bordered:!1,title:"\u56E2\u961F",loading:F,children:(0,e.jsx)("div",{className:l.members,children:(0,e.jsx)(k.Z,{gutter:48,children:W.map(function(j){return(0,e.jsx)(A.Z,{span:12,children:(0,e.jsxs)("a",{children:[(0,e.jsx)($.C,{src:j.logo,size:"small"}),(0,e.jsx)("span",{className:l.member,children:j.member.substring(0,3)})]})},"members-item-".concat(j.id))})})})})]})]})})},B=U},53295:function(_,b,t){"use strict";t.d(b,{Z:function(){return ee}});var o=t(50959),C=t(2116),D=t(94914),I=t(84875),R=t.n(I),v=t(31594),d=t(25670),$=u=>{const{value:s,formatter:c,precision:x,decimalSeparator:y,groupSeparator:N="",prefixCls:p}=u;let S;if(typeof c=="function")S=c(s);else{const m=String(s),T=m.match(/^(-?)(\d*)(\.(\d+))?$/);if(!T||m==="-")S=m;else{const w=T[1];let h=T[2]||"0",i=T[4]||"";h=h.replace(/\B(?=(\d{3})+(?!\d))/g,N),typeof x=="number"&&(i=i.padEnd(x,"0").slice(0,x>0?x:0)),i&&(i=`${y}${i}`),S=[o.createElement("span",{key:"int",className:`${p}-content-value-int`},w,h),i&&o.createElement("span",{key:"decimal",className:`${p}-content-value-decimal`},i)]}}return o.createElement("span",{className:`${p}-content-value`},S)},H=t(6301),Z=t(81501),k=t(90467);const A=u=>{const{componentCls:s,marginXXS:c,padding:x,colorTextDescription:y,titleFontSize:N,colorTextHeading:p,contentFontSize:S,fontFamily:m}=u;return{[`${s}`]:Object.assign(Object.assign({},(0,H.Wf)(u)),{[`${s}-title`]:{marginBottom:c,color:y,fontSize:N},[`${s}-skeleton`]:{paddingTop:x},[`${s}-content`]:{color:p,fontSize:S,fontFamily:m,[`${s}-content-value`]:{display:"inline-block",direction:"ltr"},[`${s}-content-prefix, ${s}-content-suffix`]:{display:"inline-block"},[`${s}-content-prefix`]:{marginInlineEnd:c},[`${s}-content-suffix`]:{marginInlineStart:c}}})}},E=u=>{const{fontSizeHeading3:s,fontSize:c}=u;return{titleFontSize:c,contentFontSize:s}};var X=(0,Z.I$)("Statistic",u=>{const s=(0,k.TS)(u,{});return[A(s)]},E),z=u=>{const{prefixCls:s,className:c,rootClassName:x,style:y,valueStyle:N,value:p=0,title:S,valueRender:m,prefix:T,suffix:w,loading:h=!1,onMouseEnter:i,onMouseLeave:q,decimalSeparator:V=".",groupSeparator:ae=","}=u,{getPrefixCls:re,direction:ie,statistic:U}=o.useContext(v.E_),B=re("statistic",s),[f,r]=X(B),n=o.createElement($,Object.assign({decimalSeparator:V,groupSeparator:ae,prefixCls:B},u,{value:p})),l=R()(B,{[`${B}-rtl`]:ie==="rtl"},U==null?void 0:U.className,c,x,r);return f(o.createElement("div",{className:l,style:Object.assign(Object.assign({},U==null?void 0:U.style),y),onMouseEnter:i,onMouseLeave:q},S&&o.createElement("div",{className:`${B}-title`},S),o.createElement(d.Z,{paragraph:!1,loading:h,className:`${B}-skeleton`},o.createElement("div",{style:N,className:`${B}-content`},T&&o.createElement("span",{className:`${B}-content-prefix`},T),m?m(n):n,w&&o.createElement("span",{className:`${B}-content-suffix`},w)))))};const L=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function O(u,s){let c=u;const x=/\[[^\]]*]/g,y=(s.match(x)||[]).map(m=>m.slice(1,-1)),N=s.replace(x,"[]"),p=L.reduce((m,T)=>{let[w,h]=T;if(m.includes(w)){const i=Math.floor(c/h);return c-=i*h,m.replace(new RegExp(`${w}+`,"g"),q=>{const V=q.length;return i.toString().padStart(V,"0")})}return m},N);let S=0;return p.replace(x,()=>{const m=y[S];return S+=1,m})}function K(u,s){const{format:c=""}=s,x=new Date(u).getTime(),y=Date.now(),N=Math.max(x-y,0);return O(N,c)}const G=1e3/30;function te(u){return new Date(u).getTime()}const ne=u=>{const{value:s,format:c="HH:mm:ss",onChange:x,onFinish:y}=u,N=(0,C.Z)(),p=o.useRef(null),S=()=>{y==null||y(),p.current&&(clearInterval(p.current),p.current=null)},m=()=>{const h=te(s);h>=Date.now()&&(p.current=setInterval(()=>{N(),x==null||x(h-Date.now()),h(m(),()=>{p.current&&(clearInterval(p.current),p.current=null)}),[s]);const T=(h,i)=>K(h,Object.assign(Object.assign({},i),{format:c})),w=h=>(0,D.Tm)(h,{title:void 0});return o.createElement(z,Object.assign({},u,{valueRender:w,formatter:T}))};var e=o.memo(ne);z.Countdown=e;var ee=z},92117:function(_){(function(b,t){_.exports=t()})(this,function(){"use strict";return function(b,t,o){b=b||{};var C=t.prototype,D={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function I(v,d,M,$){return C.fromToBase(v,d,M,$)}o.en.relativeTime=D,C.fromToBase=function(v,d,M,$,H){for(var Z,k,A,E=M.$locale().relativeTime||D,X=b.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],J=X.length,z=0;z0,O<=L.r||!L.r){O<=1&&z>0&&(L=X[z-1]);var K=E[L.l];H&&(O=H(""+O)),k=typeof K=="string"?K.replace("%d",O):K(O,d,L.l,A);break}}if(d)return k;var G=A?E.future:E.past;return typeof G=="function"?G(k):G.replace("%s",k)},C.to=function(v,d){return I(v,d,this,!0)},C.from=function(v,d){return I(v,d,this)};var R=function(v){return v.$u?o.utc():o()};C.toNow=function(v){return this.to(R(this),v)},C.fromNow=function(v){return this.from(R(this),v)}}})}}]); diff --git a/p__dashboard__workplace__index.b715f6d4.async.js b/p__dashboard__workplace__index.b715f6d4.async.js new file mode 100644 index 00000000..a7b58ee8 --- /dev/null +++ b/p__dashboard__workplace__index.b715f6d4.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8123],{17671:function(ce,B,n){n.r(B),n.d(B,{default:function(){return ie}});var H=n(19409),D=n(89336),u=n(8025),P=n(57196),g=n(61030),y=n(45161),j=n(21583),F=n(61728),S=n(43241),x=n(18283),R=n(50510),w=n.n(R),I=n(96300),M=n.n(I),O=n(19346),X=n(10951),$=n(79685),z=n(24507),U=(0,z.kc)(function(l){var r=l.token;return{linkGroup:{padding:"20px 0 8px 24px",fontSize:"0","& > a":{display:"inline-block",width:"25%",marginBottom:"13px",color:r.colorText,fontSize:r.fontSize,"&:hover":{color:r.colorPrimary}}}}}),W=U,e=n(63342),Z=function(r){var a=W(),i=a.styles,d=r.links,c=r.linkElement,t=r.onAdd;return(0,e.jsxs)("div",{className:i.linkGroup,children:[d.map(function(m){return(0,$.createElement)(c,{key:"linkGroup-item-".concat(m.id||m.title),to:m.href,href:m.href},m.title)}),(0,e.jsxs)(X.ZP,{size:"small",type:"primary",ghost:!0,onClick:t,children:[(0,e.jsx)(O.Z,{})," \u6DFB\u52A0"]})]})};Z.defaultProps={links:[],onAdd:function(){},linkElement:"a"};var V=Z,J=n(29195),v=n.n(J),K=n(56717),C=n.n(K);function Q(){return k.apply(this,arguments)}function k(){return k=C()(v()().mark(function l(){return v()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,u.request)("/api/project/notice"));case 1:case"end":return a.stop()}},l)})),k.apply(this,arguments)}function Y(){return E.apply(this,arguments)}function E(){return E=C()(v()().mark(function l(){return v()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,u.request)("/api/activities"));case 1:case"end":return a.stop()}},l)})),E.apply(this,arguments)}function q(){return L.apply(this,arguments)}function L(){return L=C()(v()().mark(function l(){return v()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,u.request)("/api/fake_workplace_chart_data"));case 1:case"end":return a.stop()}},l)})),L.apply(this,arguments)}var _=n(37482),o=n.n(_),ee=(0,z.kc)(function(l){var r,a,i,d,c,t=l.token;return{activitiesList:{padding:"0 24px 8px 24px"},username:{color:t.colorText},event:{fontWeight:"normal"},pageHeaderContent:o()({display:"flex"},"@media screen and (max-width: ".concat(t.screenSM,"px)"),{display:"block"}),avatar:{flex:"0 1 72px","& > span":{display:"block",width:"72px",height:"72px",borderRadius:"72px"}},content:o()({position:"relative",top:"4px",flex:"1 1 auto",marginLeft:"24px",color:t.colorTextSecondary,lineHeight:"22px"},"@media screen and (max-width: ".concat(t.screenSM,"px)"),{marginLeft:"0"}),contentTitle:{marginBottom:"12px",color:t.colorTextHeading,fontWeight:"500",fontSize:"20px",lineHeight:"28px"},extraContent:(r={zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},float:"right",whiteSpace:"nowrap"},o()(r,"@media screen and (max-width: ".concat(t.screenXL,"px) and (min-width: @screen-lg)"),{marginLeft:"-44px"}),o()(r,"@media screen and (max-width: ".concat(t.screenLG,"px)"),{float:"none",marginRight:"0"}),o()(r,"@media screen and (max-width: ".concat(t.screenMD,"px)"),{marginLeft:"-16px"}),r),statItem:(a={position:"relative",display:"inline-block",padding:"0 32px","> p:first-child":{marginBottom:"4px",color:t.colorTextSecondary,fontSize:t.fontSize,lineHeight:"22px"},"> p":{margin:"0",color:t.colorTextHeading,fontSize:"30px",lineHeight:"38px","> span":{color:t.colorTextSecondary,fontSize:"20px"}},"&::after":{position:"absolute",top:"8px",right:"0",width:"1px",height:"40px",backgroundColor:t.colorSplit,content:"''"},"&:last-child":{paddingRight:"0","&::after":{display:"none"}}},o()(a,"@media screen and (max-width: ".concat(t.screenXL,"px) and (min-width: @screen-lg)"),{padding:"0 16px"}),o()(a,"@media screen and (max-width: ".concat(t.screenLG,"px)"),{padding:"0 16px",textAlign:"left","&::after":{display:"none"}}),o()(a,"@media screen and (max-width: ".concat(t.screenSM,"px)"),{float:"none"}),a),members:(i={a:{display:"block",height:"24px",margin:"12px 0",color:t.colorText,transition:"all 0.3s",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all","&:hover":{color:t.colorPrimary}}},o()(i,"@media screen and (max-width: ".concat(t.screenXL,"px) and (min-width: @screen-lg)"),{marginBottom:"0"}),o()(i,"@media screen and (max-width: ".concat(t.screenLG,"px)"),{marginBottom:"0"}),i),member:{marginLeft:"12px",fontSize:t.fontSize,lineHeight:"24px",verticalAlign:"top"},projectList:{".ant-card-meta-description":{height:"44px",overflow:"hidden",color:t.colorTextSecondary,lineHeight:"22px"}},cardTitle:{fontSize:"0",a:{display:"inline-block",height:"24px",marginLeft:"12px",color:t.colorTextHeading,fontSize:t.fontSize,lineHeight:"24px",verticalAlign:"top","&:hover":{color:t.colorPrimary}}},projectGrid:(d={width:"33.33%"},o()(d,"@media screen and (max-width: ".concat(t.screenMD,"px)"),{width:"50%"}),o()(d,"@media screen and (max-width: ".concat(t.screenXS,"px)"),{width:"100%"}),d),projectItemContent:{display:"flex",height:"20px",marginTop:"8px",overflow:"hidden",fontSize:"12px",gap:"epx",lineHeight:"20px",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all",a:{display:"inline-block",flex:"1 1 0",color:t.colorTextSecondary,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all","&:hover":{color:t.colorPrimary}}},datetime:{flex:"0 0 auto",float:"right",color:t.colorTextDisabled},activeCard:(c={},o()(c,"@media screen and (max-width: ".concat(t.screenXL,"px) and (min-width: @screen-lg)"),{marginBottom:"24px"}),o()(c,"@media screen and (max-width: ".concat(t.screenLG,"px)"),{marginBottom:"24px"}),c)}}),N=ee;w().extend(M());var te=[{title:"\u64CD\u4F5C\u4E00",href:""},{title:"\u64CD\u4F5C\u4E8C",href:""},{title:"\u64CD\u4F5C\u4E09",href:""},{title:"\u64CD\u4F5C\u56DB",href:""},{title:"\u64CD\u4F5C\u4E94",href:""},{title:"\u64CD\u4F5C\u516D",href:""}],ae=function(r){var a=r.currentUser,i=N(),d=i.styles,c=a&&Object.keys(a).length;return c?(0,e.jsxs)("div",{className:d.pageHeaderContent,children:[(0,e.jsx)("div",{className:d.avatar,children:(0,e.jsx)(g.C,{size:"large",src:a.avatar})}),(0,e.jsxs)("div",{className:d.content,children:[(0,e.jsxs)("div",{className:d.contentTitle,children:["\u65E9\u5B89\uFF0C",a.name,"\uFF0C\u795D\u4F60\u5F00\u5FC3\u6BCF\u4E00\u5929\uFF01"]}),(0,e.jsxs)("div",{children:[a.title," |",a.group]})]})]}):(0,e.jsx)(P.Z,{avatar:!0,paragraph:{rows:1},active:!0})},ne=function(){var r=N(),a=r.styles;return(0,e.jsxs)("div",{className:a.extraContent,children:[(0,e.jsx)("div",{className:a.statItem,children:(0,e.jsx)(y.Z,{title:"\u9879\u76EE\u6570",value:56})}),(0,e.jsx)("div",{className:a.statItem,children:(0,e.jsx)(y.Z,{title:"\u56E2\u961F\u5185\u6392\u540D",value:8,suffix:"/ 24"})}),(0,e.jsx)("div",{className:a.statItem,children:(0,e.jsx)(y.Z,{title:"\u9879\u76EE\u8BBF\u95EE",value:2223})})]})},re=function(){var r,a=N(),i=a.styles,d=(0,u.useRequest)(Q),c=d.loading,t=d.data,m=t===void 0?[]:t,A=(0,u.useRequest)(Y),T=A.loading,G=A.data,se=G===void 0?[]:G,oe=(0,u.useRequest)(q),f=oe.data,le=function(p){var de=p.template.split(/@\{([^{}]*)\}/gi).map(function(b){if(p[b]){var h=p[b];return(0,e.jsx)("a",{href:h==null?void 0:h.link,children:h.name},h==null?void 0:h.name)}return b});return(0,e.jsx)(j.Z.Item,{children:(0,e.jsx)(j.Z.Item.Meta,{avatar:(0,e.jsx)(g.C,{src:p.user.avatar}),title:(0,e.jsxs)("span",{children:[(0,e.jsx)("a",{className:i.username,children:p.user.name}),"\xA0",(0,e.jsx)("span",{className:i.event,children:de})]}),description:(0,e.jsx)("span",{className:i.datetime,title:p.updatedAt,children:w()(p.updatedAt).fromNow()})})},p.id)};return(0,e.jsx)(D._z,{content:(0,e.jsx)(ae,{currentUser:{avatar:"https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png",name:"\u5434\u5F66\u7956",userid:"00000001",email:"antdesign@alipay.com",signature:"\u6D77\u7EB3\u767E\u5DDD\uFF0C\u6709\u5BB9\u4E43\u5927",title:"\u4EA4\u4E92\u4E13\u5BB6",group:"\u8682\u8681\u91D1\u670D\uFF0D\u67D0\u67D0\u67D0\u4E8B\u4E1A\u7FA4\uFF0D\u67D0\u67D0\u5E73\u53F0\u90E8\uFF0D\u67D0\u67D0\u6280\u672F\u90E8\uFF0DUED"}}),extraContent:(0,e.jsx)(ne,{}),children:(0,e.jsxs)(F.Z,{gutter:24,children:[(0,e.jsxs)(S.Z,{xl:16,lg:24,md:24,sm:24,xs:24,children:[(0,e.jsx)(x.Z,{className:i.projectList,style:{marginBottom:24},title:"\u8FDB\u884C\u4E2D\u7684\u9879\u76EE",bordered:!1,extra:(0,e.jsx)(u.Link,{to:"/",children:"\u5168\u90E8\u9879\u76EE"}),loading:c,bodyStyle:{padding:0},children:m.map(function(s){return(0,e.jsx)(x.Z.Grid,{className:i.projectGrid,children:(0,e.jsxs)(x.Z,{bodyStyle:{padding:0},bordered:!1,children:[(0,e.jsx)(x.Z.Meta,{title:(0,e.jsxs)("div",{className:i.cardTitle,children:[(0,e.jsx)(g.C,{size:"small",src:s.logo}),(0,e.jsx)(u.Link,{to:s.href||"/",children:s.title})]}),description:s.description}),(0,e.jsxs)("div",{className:i.projectItemContent,children:[(0,e.jsx)(u.Link,{to:s.memberLink||"/",children:s.member||""}),s.updatedAt&&(0,e.jsx)("span",{className:i.datetime,title:s.updatedAt,children:w()(s.updatedAt).fromNow()})]})]})},s.id)})}),(0,e.jsx)(x.Z,{bodyStyle:{padding:0},bordered:!1,className:i.activeCard,title:"\u52A8\u6001",loading:T,children:(0,e.jsx)(j.Z,{loading:T,renderItem:function(p){return le(p)},dataSource:se,className:i.activitiesList,size:"large"})})]}),(0,e.jsxs)(S.Z,{xl:8,lg:24,md:24,sm:24,xs:24,children:[(0,e.jsx)(x.Z,{style:{marginBottom:24},title:"\u5FEB\u901F\u5F00\u59CB / \u4FBF\u6377\u5BFC\u822A",bordered:!1,bodyStyle:{padding:0},children:(0,e.jsx)(V,{onAdd:function(){},links:te,linkElement:u.Link})}),(0,e.jsx)(x.Z,{style:{marginBottom:24},bordered:!1,title:"XX \u6307\u6570",loading:(f==null||(r=f.radarData)===null||r===void 0?void 0:r.length)===0,children:(0,e.jsx)("div",{children:(0,e.jsx)(H.Z,{height:343,data:(f==null?void 0:f.radarData)||[],xField:"label",colorField:"name",yField:"value",shapeField:"smooth",area:{style:{fillOpacity:.4}},axis:{y:{gridStrokeOpacity:.5}},legend:{color:{position:"bottom",layout:{justifyContent:"center"}}}})})}),(0,e.jsx)(x.Z,{bodyStyle:{paddingTop:12,paddingBottom:12},bordered:!1,title:"\u56E2\u961F",loading:c,children:(0,e.jsx)("div",{className:i.members,children:(0,e.jsx)(F.Z,{gutter:48,children:m.map(function(s){return(0,e.jsx)(S.Z,{span:12,children:(0,e.jsxs)("a",{children:[(0,e.jsx)(g.C,{src:s.logo,size:"small"}),(0,e.jsx)("span",{className:i.member,children:s.member.substring(0,3)})]})},"members-item-".concat(s.id))})})})})]})]})})},ie=re}}]); diff --git a/p__exception__403__index.e8582be4.async.js b/p__exception__403__index.24d0eb0f.async.js similarity index 68% rename from p__exception__403__index.e8582be4.async.js rename to p__exception__403__index.24d0eb0f.async.js index 403e4282..512a405a 100644 --- a/p__exception__403__index.e8582be4.async.js +++ b/p__exception__403__index.24d0eb0f.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5251],{93464:function(o,s,t){t.r(s);var a=t(27533),_=t(6053),u=t(47100),n=t(11527);s.default=function(){return(0,n.jsx)(_.ZP,{status:"403",title:"403",subTitle:"Sorry, you are not authorized to access this page.",extra:(0,n.jsx)(a.Link,{to:"/",children:(0,n.jsx)(u.ZP,{type:"primary",children:"Back to home"})})})}}}]); +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5251],{54587:function(o,s,t){t.r(s);var a=t(8025),_=t(94154),u=t(10951),n=t(63342);s.default=function(){return(0,n.jsx)(_.ZP,{status:"403",title:"403",subTitle:"Sorry, you are not authorized to access this page.",extra:(0,n.jsx)(a.Link,{to:"/",children:(0,n.jsx)(u.ZP,{type:"primary",children:"Back to home"})})})}}}]); diff --git a/p__exception__404__index.61330ecc.async.js b/p__exception__404__index.e8b5e5fb.async.js similarity index 68% rename from p__exception__404__index.61330ecc.async.js rename to p__exception__404__index.e8b5e5fb.async.js index b4f08fd1..7ea3aa15 100644 --- a/p__exception__404__index.61330ecc.async.js +++ b/p__exception__404__index.e8b5e5fb.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4826],{32912:function(i,s,t){t.r(s);var _=t(27533),a=t(6053),e=t(47100),n=t(11527);s.default=function(){return(0,n.jsx)(a.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,n.jsx)(_.Link,{to:"/",children:(0,n.jsx)(e.ZP,{type:"primary",children:"Back Home"})})})}}}]); +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4826],{50120:function(i,s,t){t.r(s);var _=t(8025),a=t(94154),e=t(10951),n=t(63342);s.default=function(){return(0,n.jsx)(a.ZP,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:(0,n.jsx)(_.Link,{to:"/",children:(0,n.jsx)(e.ZP,{type:"primary",children:"Back Home"})})})}}}]); diff --git a/p__exception__500__index.56242af2.async.js b/p__exception__500__index.f53cc9c5.async.js similarity index 66% rename from p__exception__500__index.56242af2.async.js rename to p__exception__500__index.f53cc9c5.async.js index e8e0def5..172b2c48 100644 --- a/p__exception__500__index.56242af2.async.js +++ b/p__exception__500__index.f53cc9c5.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[996],{26631:function(r,s,n){n.r(s);var _=n(27533),a=n(6053),E=n(47100),t=n(11527);s.default=function(){return(0,t.jsx)(a.ZP,{status:"500",title:"500",subTitle:"Sorry, something went wrong.",extra:(0,t.jsx)(_.Link,{to:"/",children:(0,t.jsx)(E.ZP,{type:"primary",children:"Back Home"})})})}}}]); +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[996],{21424:function(r,s,n){n.r(s);var _=n(8025),a=n(94154),E=n(10951),t=n(63342);s.default=function(){return(0,t.jsx)(a.ZP,{status:"500",title:"500",subTitle:"Sorry, something went wrong.",extra:(0,t.jsx)(_.Link,{to:"/",children:(0,t.jsx)(E.ZP,{type:"primary",children:"Back Home"})})})}}}]); diff --git a/p__form__advanced-form__index.67d0a6c7.async.js b/p__form__advanced-form__index.67d0a6c7.async.js new file mode 100644 index 00000000..9d15e649 --- /dev/null +++ b/p__form__advanced-form__index.67d0a6c7.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6234],{64943:function(ce,z,n){n.d(z,{Z:function(){return $}});var x=n(93264),h=n(79685),N={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},T=N,H=n(64507),U=function(A,Z){return h.createElement(H.Z,(0,x.Z)((0,x.Z)({},A),{},{ref:Z,icon:T}))};U.displayName="CloseCircleOutlined";var $=h.forwardRef(U)},37703:function(ce,z,n){var x=n(93264),h=n(98787),N=n(82481),T=n(79685),H=n(77204),U=n(81468),$=n(63342),Q=["fieldProps","proFieldProps"],A="dateRange",Z=T.forwardRef(function(I,L){var B=I.fieldProps,t=I.proFieldProps,g=(0,h.Z)(I,Q),C=(0,T.useContext)(H.Z);return(0,$.jsx)(U.Z,(0,x.Z)({ref:L,fieldProps:(0,x.Z)({getPopupContainer:C.getPopupContainer},B),valueType:A,proFieldProps:t,filedConfig:{valueType:A,customLightMode:!0,lightFilterLabelFormatter:function(w){return(0,N.c)(w,(B==null?void 0:B.format)||"YYYY-MM-DD")}}},g))});z.Z=Z},5754:function(ce,z,n){var x=n(93264),h=n(98787),N=n(92879),T=n(79685),H=n(77204),U=n(81468),$=n(63342),Q=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],A=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Z=function(C,u){var w=C.fieldProps,d=C.children,e=C.params,b=C.proFieldProps,R=C.mode,G=C.valueEnum,X=C.request,k=C.showSearch,j=C.options,q=(0,h.Z)(C,Q),te=(0,T.useContext)(H.Z);return(0,$.jsx)(U.Z,(0,x.Z)((0,x.Z)({valueEnum:(0,N.h)(G),request:X,params:e,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,x.Z)({options:j,mode:R,showSearch:k,getPopupContainer:te.getPopupContainer},w),ref:u,proFieldProps:b},q),{},{children:d}))},I=T.forwardRef(function(g,C){var u=g.fieldProps,w=g.children,d=g.params,e=g.proFieldProps,b=g.mode,R=g.valueEnum,G=g.request,X=g.options,k=(0,h.Z)(g,A),j=(0,x.Z)({options:X,mode:b||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},u),q=(0,T.useContext)(H.Z);return(0,$.jsx)(U.Z,(0,x.Z)((0,x.Z)({valueEnum:(0,N.h)(R),request:G,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,x.Z)({getPopupContainer:q.getPopupContainer},j),ref:C,proFieldProps:e},k),{},{children:w}))}),L=T.forwardRef(Z),B=I,t=L;t.SearchSelect=B,t.displayName="ProFormComponent",z.Z=t},30869:function(ce,z,n){var x=n(89342),h=n(93264),N=n(98787),T=n(46501),H=n(73952),U=n(8262),$=n(12869),Q=n(79685),A=n(81468),Z=n(63342),I=["fieldProps","proFieldProps"],L=["fieldProps","proFieldProps"],B="text",t=function(d){var e=d.fieldProps,b=d.proFieldProps,R=(0,N.Z)(d,I);return(0,Z.jsx)(A.Z,(0,h.Z)({valueType:B,fieldProps:e,filedConfig:{valueType:B},proFieldProps:b},R))},g=function(d){var e=(0,T.Z)(d.open||!1,{value:d.open,onChange:d.onOpenChange}),b=(0,x.Z)(e,2),R=b[0],G=b[1];return(0,Z.jsx)(H.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(k){var j,q=k.getFieldValue(d.name||[]);return(0,Z.jsx)(U.Z,(0,h.Z)((0,h.Z)({getPopupContainer:function(D){return D&&D.parentNode?D.parentNode:D},onOpenChange:G,content:(0,Z.jsxs)("div",{style:{padding:"4px 0"},children:[(j=d.statusRender)===null||j===void 0?void 0:j.call(d,q),d.strengthText?(0,Z.jsx)("div",{style:{marginTop:10},children:(0,Z.jsx)("span",{children:d.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},d.popoverProps),{},{open:R,children:d.children}))}})},C=function(d){var e=d.fieldProps,b=d.proFieldProps,R=(0,N.Z)(d,L),G=(0,Q.useState)(!1),X=(0,x.Z)(G,2),k=X[0],j=X[1];return e!=null&&e.statusRender&&R.name?(0,Z.jsx)(g,{name:R.name,statusRender:e==null?void 0:e.statusRender,popoverProps:e==null?void 0:e.popoverProps,strengthText:e==null?void 0:e.strengthText,open:k,onOpenChange:j,children:(0,Z.jsx)(A.Z,(0,h.Z)({valueType:"password",fieldProps:(0,h.Z)((0,h.Z)({},(0,$.Z)(e,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(te){var D;e==null||(D=e.onBlur)===null||D===void 0||D.call(e,te),j(!1)},onClick:function(te){var D;e==null||(D=e.onClick)===null||D===void 0||D.call(e,te),j(!0)}}),proFieldProps:b,filedConfig:{valueType:B}},R))}):(0,Z.jsx)(A.Z,(0,h.Z)({valueType:"password",fieldProps:e,proFieldProps:b,filedConfig:{valueType:B}},R))},u=t;u.Password=C,u.displayName="ProFormComponent",z.Z=u},56560:function(ce,z,n){n.r(z),n.d(z,{default:function(){return ke}});var x=n(29195),h=n.n(x),N=n(56717),T=n.n(N),H=n(97380),U=n.n(H),$=n(64943),Q=n(66197),A=n(20802),Z=n(89336),I=n(30869),L=n(5754),B=n(37703),t=n(93264),g=n(98787),C=n(82481),u=n(79685),w=n(77204),d=n(81468),e=n(63342),b=["fieldProps","proFieldProps"],R=["fieldProps","proFieldProps"],G="time",X=u.forwardRef(function(r,c){var P=r.fieldProps,F=r.proFieldProps,W=(0,g.Z)(r,b),O=(0,u.useContext)(w.Z);return(0,e.jsx)(d.Z,(0,t.Z)({ref:c,fieldProps:(0,t.Z)({getPopupContainer:O.getPopupContainer},P),valueType:"timeRange",proFieldProps:F,filedConfig:{valueType:"timeRange",customLightMode:!0,lightFilterLabelFormatter:function(ee){return(0,C.c)(ee,"HH:mm:ss")}}},W))}),k=function(c){var P=c.fieldProps,F=c.proFieldProps,W=(0,g.Z)(c,R),O=(0,u.useContext)(w.Z);return(0,e.jsx)(d.Z,(0,t.Z)({fieldProps:(0,t.Z)({getPopupContainer:O.getPopupContainer},P),valueType:G,proFieldProps:F,filedConfig:{customLightMode:!0,valueType:G}},W))},j=k;j.RangePicker=X;var q=j,te=n(6346),D=n(89342),xe=n(7623),De=n(64632),Oe=n(32678),Me=n(67823),Be=n(33636),be=n(56671),Ce=n(5745),Se=n(41998),Ze=n(92879),Ae=n(44711),Ie=n(10951),Le=n(73952),Ke=n(46501),me=n(85540),Ee=n(11601),We=n(90215),Ve=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],Ne=["record","position","creatorButtonText","newRecordType","parentKey","style"],Fe=u.createContext(void 0);function ye(r){var c=r.children,P=r.record,F=r.position,W=r.newRecordType,O=r.parentKey,_=(0,u.useContext)(Fe);return u.cloneElement(c,(0,t.Z)((0,t.Z)({},c.props),{},{onClick:function(){var ee=(0,De.Z)((0,xe.Z)().mark(function ie(ue){var J,y,E,Y;return(0,xe.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(J=(y=c.props).onClick)===null||J===void 0?void 0:J.call(y,ue);case 2:if(Y=o.sent,Y!==!1){o.next=5;break}return o.abrupt("return");case 5:_==null||(E=_.current)===null||E===void 0||E.addEditRecord(P,{position:F,newRecordType:W,parentKey:O});case 6:case"end":return o.stop()}},ie)}));function re(ie){return ee.apply(this,arguments)}return re}()}))}function Te(r){var c,P,F=(0,be.YB)(),W=r.onTableChange,O=r.maxLength,_=r.formItemProps,ee=r.recordCreatorProps,re=r.rowKey,ie=r.controlled,ue=r.defaultValue,J=r.onChange,y=r.editableFormRef,E=(0,g.Z)(r,Ve),Y=(0,u.useRef)(void 0),f=(0,u.useRef)(),o=(0,u.useRef)();(0,u.useImperativeHandle)(E.actionRef,function(){return f.current},[f.current]);var V=(0,Ke.Z)(function(){return r.value||ue||[]},{value:r.value,onChange:r.onChange}),oe=(0,D.Z)(V,2),v=oe[0],qe=oe[1],ae=u.useMemo(function(){return typeof re=="function"?re:function(a,p){return a[re]||p}},[re]),he=(0,Ce.J)(function(a){if(typeof a=="number"&&!r.name){if(a>=v.length)return a;var p=v&&v[a];return ae==null?void 0:ae(p,a)}if((typeof a=="string"||a>=v.length)&&r.name){var l=v.findIndex(function(i,s){var m;return(ae==null||(m=ae(i,s))===null||m===void 0?void 0:m.toString())===(a==null?void 0:a.toString())});if(l!==-1)return l}return a});(0,u.useImperativeHandle)(y,function(){var a=function(i){var s,m;if(i==null)throw new Error("rowIndex is required");var M=he(i),ne=[r.name,(s=M==null?void 0:M.toString())!==null&&s!==void 0?s:""].flat(1).filter(Boolean);return(m=o.current)===null||m===void 0?void 0:m.getFieldValue(ne)},p=function(){var i,s=[r.name].flat(1).filter(Boolean);if(Array.isArray(s)&&s.length===0){var m,M=(m=o.current)===null||m===void 0?void 0:m.getFieldsValue();return Array.isArray(M)?M:Object.keys(M).map(function(ne){return M[ne]})}return(i=o.current)===null||i===void 0?void 0:i.getFieldValue(s)};return(0,t.Z)((0,t.Z)({},o.current),{},{getRowData:a,getRowsData:p,setRowData:function(i,s){var m,M;if(i==null)throw new Error("rowIndex is required");var ne=he(i),de=[r.name,(m=ne==null?void 0:ne.toString())!==null&&m!==void 0?m:""].flat(1).filter(Boolean),ir=Object.assign({},(0,t.Z)((0,t.Z)({},a(i)),s||{})),ur=(0,Ee.Z)({},de,ir);return(M=o.current)===null||M===void 0||M.setFieldsValue(ur),!0}})},[he,r.name,o.current]),(0,u.useEffect)(function(){r.controlled&&(v||[]).forEach(function(a,p){var l;(l=o.current)===null||l===void 0||l.setFieldsValue((0,te.Z)({},"".concat(ae(a,p)),a))},{})},[(0,Se.ZP)(v),r.controlled]),(0,u.useEffect)(function(){if(r.name){var a;o.current=r==null||(a=r.editable)===null||a===void 0?void 0:a.form}},[(c=r.editable)===null||c===void 0?void 0:c.form,r.name]);var le=ee||{},_e=le.record,Pe=le.position,er=le.creatorButtonText,rr=le.newRecordType,nr=le.parentKey,tr=le.style,ar=(0,g.Z)(le,Ne),je=Pe==="top",se=(0,u.useMemo)(function(){return typeof O=="number"&&O<=(v==null?void 0:v.length)?!1:ee!==!1&&(0,e.jsx)(ye,{record:(0,Ze.h)(_e,v==null?void 0:v.length,v)||{},position:Pe,parentKey:(0,Ze.h)(nr,v==null?void 0:v.length,v),newRecordType:rr,children:(0,e.jsx)(Ie.ZP,(0,t.Z)((0,t.Z)({type:"dashed",style:(0,t.Z)({display:"block",margin:"10px 0",width:"100%"},tr),icon:(0,e.jsx)(Oe.Z,{})},ar),{},{children:er||F.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[ee==!1,O,v==null?void 0:v.length]),lr=(0,u.useMemo)(function(){return se?je?{components:{header:{wrapper:function(p){var l,i=p.className,s=p.children;return(0,e.jsxs)("thead",{className:i,children:[s,(0,e.jsxs)("tr",{style:{position:"relative"},children:[(0,e.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:se}),(0,e.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(l=E.columns)===null||l===void 0?void 0:l.length,children:se})]})]})}}}}:{tableViewRender:function(p,l){var i,s;return(0,e.jsxs)(e.Fragment,{children:[(i=(s=r.tableViewRender)===null||s===void 0?void 0:s.call(r,p,l))!==null&&i!==void 0?i:l,se]})}}:{}},[je,se]),ge=(0,t.Z)({},r.editable),or=(0,Ce.J)(function(a,p){var l,i,s;if((l=r.editable)===null||l===void 0||(i=l.onValuesChange)===null||i===void 0||i.call(l,a,p),(s=r.onValuesChange)===null||s===void 0||s.call(r,p,a),r.controlled){var m;r==null||(m=r.onChange)===null||m===void 0||m.call(r,p)}});return(r!=null&&r.onValuesChange||(P=r.editable)!==null&&P!==void 0&&P.onValuesChange||r.controlled&&r!==null&&r!==void 0&&r.onChange)&&(ge.onValuesChange=or),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Fe.Provider,{value:f,children:(0,e.jsx)(We.Z,(0,t.Z)((0,t.Z)((0,t.Z)({search:!1,options:!1,pagination:!1,rowKey:re,revalidateOnFocus:!1},E),lr),{},{tableLayout:"fixed",actionRef:f,onChange:W,editable:(0,t.Z)((0,t.Z)({},ge),{},{formProps:(0,t.Z)({formRef:o},ge.formProps)}),dataSource:v,onDataSourceChange:function(p){if(qe(p),r.name&&Pe==="top"){var l,i=(0,Ee.Z)({},[r.name].flat(1).filter(Boolean),p);(l=o.current)===null||l===void 0||l.setFieldsValue(i)}}}))}),r.name?(0,e.jsx)(Me.Z,{name:[r.name],children:function(p){var l,i;if(!Y.current)return Y.current=v,null;var s=(0,me.Z)(p,[r.name].flat(1)),m=s==null?void 0:s.find(function(M,ne){var de;return!(0,Ae.A)(M,(de=Y.current)===null||de===void 0?void 0:de[ne])});return Y.current=v,m&&(r==null||(l=r.editable)===null||l===void 0||(i=l.onValuesChange)===null||i===void 0||i.call(l,m,s)),null}}):null]})}function Re(r){var c=Be.ZP.useFormInstance();return r.name?(0,e.jsx)(Le.Z.Item,(0,t.Z)((0,t.Z)({style:{maxWidth:"100%"}},r==null?void 0:r.formItemProps),{},{name:r.name,shouldUpdate:function(F,W){var O=[r.name].flat(1);try{return JSON.stringify((0,me.Z)(F,O))!==JSON.stringify((0,me.Z)(W,O))}catch(_){return!0}},children:(0,e.jsx)(Te,(0,t.Z)((0,t.Z)({},r),{},{editable:(0,t.Z)((0,t.Z)({},r.editable),{},{form:c})}))})):(0,e.jsx)(Te,(0,t.Z)({},r))}Re.RecordCreator=ye;var Ue=Re,$e=n(8262),we=n(68852),fe=n(18283),ve=n(61728),K=n(43241),Je=n(8025);function Ye(r){return pe.apply(this,arguments)}function pe(){return pe=T()(h()().mark(function r(c){return h()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.abrupt("return",(0,Je.request)("/api/advancedForm",{method:"POST",data:c}));case 1:case"end":return F.stop()}},r)})),pe.apply(this,arguments)}var ze=n(24507),He=(0,ze.kc)(function(r){var c=r.token;return{card:{marginBottom:"24px",".ant-legacy-form-item .ant-legacy-form-item-control-wrapper":{width:"100%"}},errorIcon:{marginRight:"12px",color:c.colorError,cursor:"pointer","span.anticon":{marginRight:"4px"},float:"left",marginTop:"4px",paddingBottom:"22px"},errorPopover:{".ant-popover-inner-content":{minWidth:"256px",maxHeight:"290px",padding:"0",overflow:"auto"}},errorListItem:{padding:"8px 16px",listStyle:"none",borderBottom:"1px solid ".concat(c.colorSplit),cursor:"pointer",transition:"all 0.3s","&:hover":{background:c.colorBgTextActive},"&:last-child":{border:"0"}},errorField:{marginTop:"2px",color:c.colorTextSecondary,fontSize:"12px"},editable:{td:{paddingTop:"13px",paddingBottom:"12.5px"}}}}),Ge=He,S={name:"\u4ED3\u5E93\u540D",url:"\u4ED3\u5E93\u57DF\u540D",owner:"\u4ED3\u5E93\u7BA1\u7406\u5458",approver:"\u5BA1\u6279\u4EBA",dateRange:"\u751F\u6548\u65E5\u671F",type:"\u4ED3\u5E93\u7C7B\u578B",name2:"\u4EFB\u52A1\u540D",url2:"\u4EFB\u52A1\u63CF\u8FF0",owner2:"\u6267\u884C\u4EBA",approver2:"\u8D23\u4EFB\u4EBA",dateRange2:"\u751F\u6548\u65E5\u671F",type2:"\u4EFB\u52A1\u7C7B\u578B"},Qe=[{key:"1",workId:"00001",name:"John Brown",department:"New York No. 1 Lake Park"},{key:"2",workId:"00002",name:"Jim Green",department:"London No. 1 Lake Park"},{key:"3",workId:"00003",name:"Joe Black",department:"Sidney No. 1 Lake Park"}],Xe=function(){var c=Ge(),P=c.styles,F=(0,u.useState)([]),W=U()(F,2),O=W[0],_=W[1],ee=function(y){var E=y.filter(function(o){return o.errors.length>0}).length;if(!y||E===0)return null;var Y=function(V){var oe=document.querySelector('label[for="'.concat(V,'"]'));oe&&oe.scrollIntoView(!0)},f=y.map(function(o){if(!o||o.errors.length===0)return null;var V=o.name[0];return(0,e.jsxs)("li",{className:P.errorListItem,onClick:function(){return Y(V)},children:[(0,e.jsx)($.Z,{className:P.errorIcon}),(0,e.jsx)("div",{className:P.errorMessage,children:o.errors[0]}),(0,e.jsx)("div",{className:P.errorField,children:S[V]})]},V)});return(0,e.jsxs)("span",{className:P.errorIcon,children:[(0,e.jsx)($e.Z,{title:"\u8868\u5355\u6821\u9A8C\u4FE1\u606F",content:f,overlayClassName:P.errorPopover,trigger:"click",getPopupContainer:function(V){return V&&V.parentNode?V.parentNode:V},children:(0,e.jsx)($.Z,{})}),E]})},re=function(){var J=T()(h()().mark(function y(E){return h()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return _([]),f.prev=1,f.next=4,Ye(E);case 4:we.ZP.success("\u63D0\u4EA4\u6210\u529F"),f.next=9;break;case 7:f.prev=7,f.t0=f.catch(1);case 9:case"end":return f.stop()}},y,null,[[1,7]])}));return function(E){return J.apply(this,arguments)}}(),ie=function(y){_(y.errorFields)},ue=[{title:"\u6210\u5458\u59D3\u540D",dataIndex:"name",key:"name",width:"20%"},{title:"\u5DE5\u53F7",dataIndex:"workId",key:"workId",width:"20%"},{title:"\u6240\u5C5E\u90E8\u95E8",dataIndex:"department",key:"department",width:"40%"},{title:"\u64CD\u4F5C",key:"action",valueType:"option",render:function(y,E,Y,f){return[(0,e.jsx)("a",{onClick:function(){f==null||f.startEditable(E.key)},children:"\u7F16\u8F91"},"eidit")]}}];return(0,e.jsx)(Q.A,{layout:"vertical",hideRequiredMark:!0,submitter:{render:function(y,E){return(0,e.jsxs)(A.S,{children:[ee(O),E]})}},initialValues:{members:Qe},onFinish:re,onFinishFailed:ie,children:(0,e.jsxs)(Z._z,{content:"\u9AD8\u7EA7\u8868\u5355\u5E38\u89C1\u4E8E\u4E00\u6B21\u6027\u8F93\u5165\u548C\u63D0\u4EA4\u5927\u6279\u91CF\u6570\u636E\u7684\u573A\u666F\u3002",children:[(0,e.jsxs)(fe.Z,{title:"\u4ED3\u5E93\u7BA1\u7406",className:P.card,bordered:!1,children:[(0,e.jsxs)(ve.Z,{gutter:16,children:[(0,e.jsx)(K.Z,{lg:6,md:12,sm:24,children:(0,e.jsx)(I.Z,{label:S.name,name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0"}],placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0"})}),(0,e.jsx)(K.Z,{xl:{span:6,offset:2},lg:{span:8},md:{span:12},sm:24,children:(0,e.jsx)(I.Z,{label:S.url,name:"url",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],fieldProps:{style:{width:"100%"},addonBefore:"http://",addonAfter:".com"},placeholder:"\u8BF7\u8F93\u5165"})}),(0,e.jsx)(K.Z,{xl:{span:8,offset:2},lg:{span:10},md:{span:24},sm:24,children:(0,e.jsx)(L.Z,{label:S.owner,name:"owner",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}],placeholder:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458"})})]}),(0,e.jsxs)(ve.Z,{gutter:16,children:[(0,e.jsx)(K.Z,{lg:6,md:12,sm:24,children:(0,e.jsx)(L.Z,{label:S.approver,name:"approver",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u5458"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}],placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6279\u5458"})}),(0,e.jsx)(K.Z,{xl:{span:6,offset:2},lg:{span:8},md:{span:12},sm:24,children:(0,e.jsx)(B.Z,{label:S.dateRange,name:"dateRange",fieldProps:{style:{width:"100%"}},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u751F\u6548\u65E5\u671F"}]})}),(0,e.jsx)(K.Z,{xl:{span:8,offset:2},lg:{span:10},md:{span:24},sm:24,children:(0,e.jsx)(L.Z,{label:S.type,name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED3\u5E93\u7C7B\u578B"}],options:[{label:"\u79C1\u5BC6",value:"private"},{label:"\u516C\u5F00",value:"public"}],placeholder:"\u8BF7\u9009\u62E9\u4ED3\u5E93\u7C7B\u578B"})})]})]}),(0,e.jsxs)(fe.Z,{title:"\u4EFB\u52A1\u7BA1\u7406",className:P.card,bordered:!1,children:[(0,e.jsxs)(ve.Z,{gutter:16,children:[(0,e.jsx)(K.Z,{lg:6,md:12,sm:24,children:(0,e.jsx)(I.Z,{label:S.name2,name:"name2",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]})}),(0,e.jsx)(K.Z,{xl:{span:6,offset:2},lg:{span:8},md:{span:12},sm:24,children:(0,e.jsx)(I.Z,{label:S.url2,name:"url2",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]})}),(0,e.jsx)(K.Z,{xl:{span:8,offset:2},lg:{span:10},md:{span:24},sm:24,children:(0,e.jsx)(L.Z,{label:S.owner2,name:"owner2",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}]})})]}),(0,e.jsxs)(ve.Z,{gutter:16,children:[(0,e.jsx)(K.Z,{lg:6,md:12,sm:24,children:(0,e.jsx)(L.Z,{label:S.approver2,name:"approver2",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u5458"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}],placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6279\u5458"})}),(0,e.jsx)(K.Z,{xl:{span:6,offset:2},lg:{span:8},md:{span:12},sm:24,children:(0,e.jsx)(q,{label:S.dateRange2,name:"dateRange2",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],placeholder:"\u63D0\u9192\u65F6\u95F4",fieldProps:{style:{width:"100%"}}})}),(0,e.jsx)(K.Z,{xl:{span:8,offset:2},lg:{span:10},md:{span:24},sm:24,children:(0,e.jsx)(L.Z,{label:S.type2,name:"type2",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED3\u5E93\u7C7B\u578B"}],options:[{label:"\u79C1\u5BC6",value:"private"},{label:"\u516C\u5F00",value:"public"}],placeholder:"\u8BF7\u9009\u62E9\u4ED3\u5E93\u7C7B\u578B"})})]})]}),(0,e.jsx)(fe.Z,{title:"\u6210\u5458\u7BA1\u7406",bordered:!1,children:(0,e.jsx)(Q.A.Item,{name:"members",children:(0,e.jsx)(Ue,{recordCreatorProps:{record:function(){return{key:"0".concat(Date.now())}}},columns:ue,rowKey:"key"})})})]})})},ke=Xe}}]); diff --git a/p__form__advanced-form__index.bcee0675.async.js b/p__form__advanced-form__index.bcee0675.async.js deleted file mode 100644 index aa63cad7..00000000 --- a/p__form__advanced-form__index.bcee0675.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6234],{67641:function(ce,z,n){n.d(z,{Z:function(){return $}});var x=n(33346),h=n(50959),N={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},T=N,H=n(69164),U=function(A,Z){return h.createElement(H.Z,(0,x.Z)((0,x.Z)({},A),{},{ref:Z,icon:T}))};U.displayName="CloseCircleOutlined";var $=h.forwardRef(U)},96312:function(ce,z,n){var x=n(33346),h=n(10570),N=n(26299),T=n(50959),H=n(54970),U=n(82578),$=n(11527),Q=["fieldProps","proFieldProps"],A="dateRange",Z=T.forwardRef(function(I,L){var B=I.fieldProps,t=I.proFieldProps,g=(0,h.Z)(I,Q),C=(0,T.useContext)(H.Z);return(0,$.jsx)(U.Z,(0,x.Z)({ref:L,fieldProps:(0,x.Z)({getPopupContainer:C.getPopupContainer},B),valueType:A,proFieldProps:t,filedConfig:{valueType:A,customLightMode:!0,lightFilterLabelFormatter:function(w){return(0,N.c)(w,(B==null?void 0:B.format)||"YYYY-MM-DD")}}},g))});z.Z=Z},79712:function(ce,z,n){var x=n(33346),h=n(10570),N=n(44559),T=n(50959),H=n(54970),U=n(82578),$=n(11527),Q=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],A=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Z=function(C,u){var w=C.fieldProps,d=C.children,e=C.params,b=C.proFieldProps,R=C.mode,G=C.valueEnum,X=C.request,k=C.showSearch,j=C.options,q=(0,h.Z)(C,Q),te=(0,T.useContext)(H.Z);return(0,$.jsx)(U.Z,(0,x.Z)((0,x.Z)({valueEnum:(0,N.h)(G),request:X,params:e,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,x.Z)({options:j,mode:R,showSearch:k,getPopupContainer:te.getPopupContainer},w),ref:u,proFieldProps:b},q),{},{children:d}))},I=T.forwardRef(function(g,C){var u=g.fieldProps,w=g.children,d=g.params,e=g.proFieldProps,b=g.mode,R=g.valueEnum,G=g.request,X=g.options,k=(0,h.Z)(g,A),j=(0,x.Z)({options:X,mode:b||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},u),q=(0,T.useContext)(H.Z);return(0,$.jsx)(U.Z,(0,x.Z)((0,x.Z)({valueEnum:(0,N.h)(R),request:G,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,x.Z)({getPopupContainer:q.getPopupContainer},j),ref:C,proFieldProps:e},k),{},{children:w}))}),L=T.forwardRef(Z),B=I,t=L;t.SearchSelect=B,t.displayName="ProFormComponent",z.Z=t},60010:function(ce,z,n){var x=n(32682),h=n(33346),N=n(10570),T=n(65589),H=n(67190),U=n(82757),$=n(71770),Q=n(50959),A=n(82578),Z=n(11527),I=["fieldProps","proFieldProps"],L=["fieldProps","proFieldProps"],B="text",t=function(d){var e=d.fieldProps,b=d.proFieldProps,R=(0,N.Z)(d,I);return(0,Z.jsx)(A.Z,(0,h.Z)({valueType:B,fieldProps:e,filedConfig:{valueType:B},proFieldProps:b},R))},g=function(d){var e=(0,T.Z)(d.open||!1,{value:d.open,onChange:d.onOpenChange}),b=(0,x.Z)(e,2),R=b[0],G=b[1];return(0,Z.jsx)(H.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(k){var j,q=k.getFieldValue(d.name||[]);return(0,Z.jsx)(U.Z,(0,h.Z)((0,h.Z)({getPopupContainer:function(D){return D&&D.parentNode?D.parentNode:D},onOpenChange:G,content:(0,Z.jsxs)("div",{style:{padding:"4px 0"},children:[(j=d.statusRender)===null||j===void 0?void 0:j.call(d,q),d.strengthText?(0,Z.jsx)("div",{style:{marginTop:10},children:(0,Z.jsx)("span",{children:d.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},d.popoverProps),{},{open:R,children:d.children}))}})},C=function(d){var e=d.fieldProps,b=d.proFieldProps,R=(0,N.Z)(d,L),G=(0,Q.useState)(!1),X=(0,x.Z)(G,2),k=X[0],j=X[1];return e!=null&&e.statusRender&&R.name?(0,Z.jsx)(g,{name:R.name,statusRender:e==null?void 0:e.statusRender,popoverProps:e==null?void 0:e.popoverProps,strengthText:e==null?void 0:e.strengthText,open:k,onOpenChange:j,children:(0,Z.jsx)(A.Z,(0,h.Z)({valueType:"password",fieldProps:(0,h.Z)((0,h.Z)({},(0,$.Z)(e,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(te){var D;e==null||(D=e.onBlur)===null||D===void 0||D.call(e,te),j(!1)},onClick:function(te){var D;e==null||(D=e.onClick)===null||D===void 0||D.call(e,te),j(!0)}}),proFieldProps:b,filedConfig:{valueType:B}},R))}):(0,Z.jsx)(A.Z,(0,h.Z)({valueType:"password",fieldProps:e,proFieldProps:b,filedConfig:{valueType:B}},R))},u=t;u.Password=C,u.displayName="ProFormComponent",z.Z=u},94941:function(ce,z,n){n.r(z),n.d(z,{default:function(){return ke}});var x=n(13448),h=n.n(x),N=n(74815),T=n.n(N),H=n(28152),U=n.n(H),$=n(67641),Q=n(43997),A=n(60545),Z=n(95943),I=n(60010),L=n(79712),B=n(96312),t=n(33346),g=n(10570),C=n(26299),u=n(50959),w=n(54970),d=n(82578),e=n(11527),b=["fieldProps","proFieldProps"],R=["fieldProps","proFieldProps"],G="time",X=u.forwardRef(function(r,c){var P=r.fieldProps,F=r.proFieldProps,W=(0,g.Z)(r,b),O=(0,u.useContext)(w.Z);return(0,e.jsx)(d.Z,(0,t.Z)({ref:c,fieldProps:(0,t.Z)({getPopupContainer:O.getPopupContainer},P),valueType:"timeRange",proFieldProps:F,filedConfig:{valueType:"timeRange",customLightMode:!0,lightFilterLabelFormatter:function(ee){return(0,C.c)(ee,"HH:mm:ss")}}},W))}),k=function(c){var P=c.fieldProps,F=c.proFieldProps,W=(0,g.Z)(c,R),O=(0,u.useContext)(w.Z);return(0,e.jsx)(d.Z,(0,t.Z)({fieldProps:(0,t.Z)({getPopupContainer:O.getPopupContainer},P),valueType:G,proFieldProps:F,filedConfig:{customLightMode:!0,valueType:G}},W))},j=k;j.RangePicker=X;var q=j,te=n(73273),D=n(32682),xe=n(3224),De=n(47801),Oe=n(48491),Me=n(80288),Be=n(91805),be=n(17122),Ce=n(13165),Se=n(75565),Ze=n(44559),Ae=n(4978),Ie=n(47100),Le=n(67190),Ke=n(65589),me=n(85108),Ee=n(6169),We=n(26970),Ve=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],Ne=["record","position","creatorButtonText","newRecordType","parentKey","style"],Fe=u.createContext(void 0);function ye(r){var c=r.children,P=r.record,F=r.position,W=r.newRecordType,O=r.parentKey,_=(0,u.useContext)(Fe);return u.cloneElement(c,(0,t.Z)((0,t.Z)({},c.props),{},{onClick:function(){var ee=(0,De.Z)((0,xe.Z)().mark(function ie(ue){var J,y,E,Y;return(0,xe.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(J=(y=c.props).onClick)===null||J===void 0?void 0:J.call(y,ue);case 2:if(Y=o.sent,Y!==!1){o.next=5;break}return o.abrupt("return");case 5:_==null||(E=_.current)===null||E===void 0||E.addEditRecord(P,{position:F,newRecordType:W,parentKey:O});case 6:case"end":return o.stop()}},ie)}));function re(ie){return ee.apply(this,arguments)}return re}()}))}function Te(r){var c,P,F=(0,be.YB)(),W=r.onTableChange,O=r.maxLength,_=r.formItemProps,ee=r.recordCreatorProps,re=r.rowKey,ie=r.controlled,ue=r.defaultValue,J=r.onChange,y=r.editableFormRef,E=(0,g.Z)(r,Ve),Y=(0,u.useRef)(void 0),f=(0,u.useRef)(),o=(0,u.useRef)();(0,u.useImperativeHandle)(E.actionRef,function(){return f.current},[f.current]);var V=(0,Ke.Z)(function(){return r.value||ue||[]},{value:r.value,onChange:r.onChange}),oe=(0,D.Z)(V,2),v=oe[0],qe=oe[1],ae=u.useMemo(function(){return typeof re=="function"?re:function(a,p){return a[re]||p}},[re]),he=(0,Ce.J)(function(a){if(typeof a=="number"&&!r.name){if(a>=v.length)return a;var p=v&&v[a];return ae==null?void 0:ae(p,a)}if((typeof a=="string"||a>=v.length)&&r.name){var l=v.findIndex(function(i,s){var m;return(ae==null||(m=ae(i,s))===null||m===void 0?void 0:m.toString())===(a==null?void 0:a.toString())});if(l!==-1)return l}return a});(0,u.useImperativeHandle)(y,function(){var a=function(i){var s,m;if(i==null)throw new Error("rowIndex is required");var M=he(i),ne=[r.name,(s=M==null?void 0:M.toString())!==null&&s!==void 0?s:""].flat(1).filter(Boolean);return(m=o.current)===null||m===void 0?void 0:m.getFieldValue(ne)},p=function(){var i,s=[r.name].flat(1).filter(Boolean);if(Array.isArray(s)&&s.length===0){var m,M=(m=o.current)===null||m===void 0?void 0:m.getFieldsValue();return Array.isArray(M)?M:Object.keys(M).map(function(ne){return M[ne]})}return(i=o.current)===null||i===void 0?void 0:i.getFieldValue(s)};return(0,t.Z)((0,t.Z)({},o.current),{},{getRowData:a,getRowsData:p,setRowData:function(i,s){var m,M;if(i==null)throw new Error("rowIndex is required");var ne=he(i),de=[r.name,(m=ne==null?void 0:ne.toString())!==null&&m!==void 0?m:""].flat(1).filter(Boolean),ir=Object.assign({},(0,t.Z)((0,t.Z)({},a(i)),s||{})),ur=(0,Ee.Z)({},de,ir);return(M=o.current)===null||M===void 0||M.setFieldsValue(ur),!0}})},[he,r.name,o.current]),(0,u.useEffect)(function(){r.controlled&&(v||[]).forEach(function(a,p){var l;(l=o.current)===null||l===void 0||l.setFieldsValue((0,te.Z)({},"".concat(ae(a,p)),a))},{})},[(0,Se.ZP)(v),r.controlled]),(0,u.useEffect)(function(){if(r.name){var a;o.current=r==null||(a=r.editable)===null||a===void 0?void 0:a.form}},[(c=r.editable)===null||c===void 0?void 0:c.form,r.name]);var le=ee||{},_e=le.record,Pe=le.position,er=le.creatorButtonText,rr=le.newRecordType,nr=le.parentKey,tr=le.style,ar=(0,g.Z)(le,Ne),je=Pe==="top",se=(0,u.useMemo)(function(){return typeof O=="number"&&O<=(v==null?void 0:v.length)?!1:ee!==!1&&(0,e.jsx)(ye,{record:(0,Ze.h)(_e,v==null?void 0:v.length,v)||{},position:Pe,parentKey:(0,Ze.h)(nr,v==null?void 0:v.length,v),newRecordType:rr,children:(0,e.jsx)(Ie.ZP,(0,t.Z)((0,t.Z)({type:"dashed",style:(0,t.Z)({display:"block",margin:"10px 0",width:"100%"},tr),icon:(0,e.jsx)(Oe.Z,{})},ar),{},{children:er||F.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[ee==!1,O,v==null?void 0:v.length]),lr=(0,u.useMemo)(function(){return se?je?{components:{header:{wrapper:function(p){var l,i=p.className,s=p.children;return(0,e.jsxs)("thead",{className:i,children:[s,(0,e.jsxs)("tr",{style:{position:"relative"},children:[(0,e.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:se}),(0,e.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(l=E.columns)===null||l===void 0?void 0:l.length,children:se})]})]})}}}}:{tableViewRender:function(p,l){var i,s;return(0,e.jsxs)(e.Fragment,{children:[(i=(s=r.tableViewRender)===null||s===void 0?void 0:s.call(r,p,l))!==null&&i!==void 0?i:l,se]})}}:{}},[je,se]),ge=(0,t.Z)({},r.editable),or=(0,Ce.J)(function(a,p){var l,i,s;if((l=r.editable)===null||l===void 0||(i=l.onValuesChange)===null||i===void 0||i.call(l,a,p),(s=r.onValuesChange)===null||s===void 0||s.call(r,p,a),r.controlled){var m;r==null||(m=r.onChange)===null||m===void 0||m.call(r,p)}});return(r!=null&&r.onValuesChange||(P=r.editable)!==null&&P!==void 0&&P.onValuesChange||r.controlled&&r!==null&&r!==void 0&&r.onChange)&&(ge.onValuesChange=or),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Fe.Provider,{value:f,children:(0,e.jsx)(We.Z,(0,t.Z)((0,t.Z)((0,t.Z)({search:!1,options:!1,pagination:!1,rowKey:re,revalidateOnFocus:!1},E),lr),{},{tableLayout:"fixed",actionRef:f,onChange:W,editable:(0,t.Z)((0,t.Z)({},ge),{},{formProps:(0,t.Z)({formRef:o},ge.formProps)}),dataSource:v,onDataSourceChange:function(p){if(qe(p),r.name&&Pe==="top"){var l,i=(0,Ee.Z)({},[r.name].flat(1).filter(Boolean),p);(l=o.current)===null||l===void 0||l.setFieldsValue(i)}}}))}),r.name?(0,e.jsx)(Me.Z,{name:[r.name],children:function(p){var l,i;if(!Y.current)return Y.current=v,null;var s=(0,me.Z)(p,[r.name].flat(1)),m=s==null?void 0:s.find(function(M,ne){var de;return!(0,Ae.A)(M,(de=Y.current)===null||de===void 0?void 0:de[ne])});return Y.current=v,m&&(r==null||(l=r.editable)===null||l===void 0||(i=l.onValuesChange)===null||i===void 0||i.call(l,m,s)),null}}):null]})}function Re(r){var c=Be.ZP.useFormInstance();return r.name?(0,e.jsx)(Le.Z.Item,(0,t.Z)((0,t.Z)({style:{maxWidth:"100%"}},r==null?void 0:r.formItemProps),{},{name:r.name,shouldUpdate:function(F,W){var O=[r.name].flat(1);try{return JSON.stringify((0,me.Z)(F,O))!==JSON.stringify((0,me.Z)(W,O))}catch(_){return!0}},children:(0,e.jsx)(Te,(0,t.Z)((0,t.Z)({},r),{},{editable:(0,t.Z)((0,t.Z)({},r.editable),{},{form:c})}))})):(0,e.jsx)(Te,(0,t.Z)({},r))}Re.RecordCreator=ye;var Ue=Re,$e=n(82757),we=n(52497),fe=n(50304),ve=n(23870),K=n(82099),Je=n(27533);function Ye(r){return pe.apply(this,arguments)}function pe(){return pe=T()(h()().mark(function r(c){return h()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.abrupt("return",(0,Je.request)("/api/advancedForm",{method:"POST",data:c}));case 1:case"end":return F.stop()}},r)})),pe.apply(this,arguments)}var ze=n(8700),He=(0,ze.kc)(function(r){var c=r.token;return{card:{marginBottom:"24px",".ant-legacy-form-item .ant-legacy-form-item-control-wrapper":{width:"100%"}},errorIcon:{marginRight:"12px",color:c.colorError,cursor:"pointer","span.anticon":{marginRight:"4px"},float:"left",marginTop:"4px",paddingBottom:"22px"},errorPopover:{".ant-popover-inner-content":{minWidth:"256px",maxHeight:"290px",padding:"0",overflow:"auto"}},errorListItem:{padding:"8px 16px",listStyle:"none",borderBottom:"1px solid ".concat(c.colorSplit),cursor:"pointer",transition:"all 0.3s","&:hover":{background:c.colorBgTextActive},"&:last-child":{border:"0"}},errorField:{marginTop:"2px",color:c.colorTextSecondary,fontSize:"12px"},editable:{td:{paddingTop:"13px",paddingBottom:"12.5px"}}}}),Ge=He,S={name:"\u4ED3\u5E93\u540D",url:"\u4ED3\u5E93\u57DF\u540D",owner:"\u4ED3\u5E93\u7BA1\u7406\u5458",approver:"\u5BA1\u6279\u4EBA",dateRange:"\u751F\u6548\u65E5\u671F",type:"\u4ED3\u5E93\u7C7B\u578B",name2:"\u4EFB\u52A1\u540D",url2:"\u4EFB\u52A1\u63CF\u8FF0",owner2:"\u6267\u884C\u4EBA",approver2:"\u8D23\u4EFB\u4EBA",dateRange2:"\u751F\u6548\u65E5\u671F",type2:"\u4EFB\u52A1\u7C7B\u578B"},Qe=[{key:"1",workId:"00001",name:"John Brown",department:"New York No. 1 Lake Park"},{key:"2",workId:"00002",name:"Jim Green",department:"London No. 1 Lake Park"},{key:"3",workId:"00003",name:"Joe Black",department:"Sidney No. 1 Lake Park"}],Xe=function(){var c=Ge(),P=c.styles,F=(0,u.useState)([]),W=U()(F,2),O=W[0],_=W[1],ee=function(y){var E=y.filter(function(o){return o.errors.length>0}).length;if(!y||E===0)return null;var Y=function(V){var oe=document.querySelector('label[for="'.concat(V,'"]'));oe&&oe.scrollIntoView(!0)},f=y.map(function(o){if(!o||o.errors.length===0)return null;var V=o.name[0];return(0,e.jsxs)("li",{className:P.errorListItem,onClick:function(){return Y(V)},children:[(0,e.jsx)($.Z,{className:P.errorIcon}),(0,e.jsx)("div",{className:P.errorMessage,children:o.errors[0]}),(0,e.jsx)("div",{className:P.errorField,children:S[V]})]},V)});return(0,e.jsxs)("span",{className:P.errorIcon,children:[(0,e.jsx)($e.Z,{title:"\u8868\u5355\u6821\u9A8C\u4FE1\u606F",content:f,overlayClassName:P.errorPopover,trigger:"click",getPopupContainer:function(V){return V&&V.parentNode?V.parentNode:V},children:(0,e.jsx)($.Z,{})}),E]})},re=function(){var J=T()(h()().mark(function y(E){return h()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return _([]),f.prev=1,f.next=4,Ye(E);case 4:we.ZP.success("\u63D0\u4EA4\u6210\u529F"),f.next=9;break;case 7:f.prev=7,f.t0=f.catch(1);case 9:case"end":return f.stop()}},y,null,[[1,7]])}));return function(E){return J.apply(this,arguments)}}(),ie=function(y){_(y.errorFields)},ue=[{title:"\u6210\u5458\u59D3\u540D",dataIndex:"name",key:"name",width:"20%"},{title:"\u5DE5\u53F7",dataIndex:"workId",key:"workId",width:"20%"},{title:"\u6240\u5C5E\u90E8\u95E8",dataIndex:"department",key:"department",width:"40%"},{title:"\u64CD\u4F5C",key:"action",valueType:"option",render:function(y,E,Y,f){return[(0,e.jsx)("a",{onClick:function(){f==null||f.startEditable(E.key)},children:"\u7F16\u8F91"},"eidit")]}}];return(0,e.jsx)(Q.A,{layout:"vertical",hideRequiredMark:!0,submitter:{render:function(y,E){return(0,e.jsxs)(A.S,{children:[ee(O),E]})}},initialValues:{members:Qe},onFinish:re,onFinishFailed:ie,children:(0,e.jsxs)(Z._z,{content:"\u9AD8\u7EA7\u8868\u5355\u5E38\u89C1\u4E8E\u4E00\u6B21\u6027\u8F93\u5165\u548C\u63D0\u4EA4\u5927\u6279\u91CF\u6570\u636E\u7684\u573A\u666F\u3002",children:[(0,e.jsxs)(fe.Z,{title:"\u4ED3\u5E93\u7BA1\u7406",className:P.card,bordered:!1,children:[(0,e.jsxs)(ve.Z,{gutter:16,children:[(0,e.jsx)(K.Z,{lg:6,md:12,sm:24,children:(0,e.jsx)(I.Z,{label:S.name,name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0"}],placeholder:"\u8BF7\u8F93\u5165\u4ED3\u5E93\u540D\u79F0"})}),(0,e.jsx)(K.Z,{xl:{span:6,offset:2},lg:{span:8},md:{span:12},sm:24,children:(0,e.jsx)(I.Z,{label:S.url,name:"url",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}],fieldProps:{style:{width:"100%"},addonBefore:"http://",addonAfter:".com"},placeholder:"\u8BF7\u8F93\u5165"})}),(0,e.jsx)(K.Z,{xl:{span:8,offset:2},lg:{span:10},md:{span:24},sm:24,children:(0,e.jsx)(L.Z,{label:S.owner,name:"owner",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}],placeholder:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458"})})]}),(0,e.jsxs)(ve.Z,{gutter:16,children:[(0,e.jsx)(K.Z,{lg:6,md:12,sm:24,children:(0,e.jsx)(L.Z,{label:S.approver,name:"approver",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u5458"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}],placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6279\u5458"})}),(0,e.jsx)(K.Z,{xl:{span:6,offset:2},lg:{span:8},md:{span:12},sm:24,children:(0,e.jsx)(B.Z,{label:S.dateRange,name:"dateRange",fieldProps:{style:{width:"100%"}},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u751F\u6548\u65E5\u671F"}]})}),(0,e.jsx)(K.Z,{xl:{span:8,offset:2},lg:{span:10},md:{span:24},sm:24,children:(0,e.jsx)(L.Z,{label:S.type,name:"type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED3\u5E93\u7C7B\u578B"}],options:[{label:"\u79C1\u5BC6",value:"private"},{label:"\u516C\u5F00",value:"public"}],placeholder:"\u8BF7\u9009\u62E9\u4ED3\u5E93\u7C7B\u578B"})})]})]}),(0,e.jsxs)(fe.Z,{title:"\u4EFB\u52A1\u7BA1\u7406",className:P.card,bordered:!1,children:[(0,e.jsxs)(ve.Z,{gutter:16,children:[(0,e.jsx)(K.Z,{lg:6,md:12,sm:24,children:(0,e.jsx)(I.Z,{label:S.name2,name:"name2",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}]})}),(0,e.jsx)(K.Z,{xl:{span:6,offset:2},lg:{span:8},md:{span:12},sm:24,children:(0,e.jsx)(I.Z,{label:S.url2,name:"url2",rules:[{required:!0,message:"\u8BF7\u9009\u62E9"}]})}),(0,e.jsx)(K.Z,{xl:{span:8,offset:2},lg:{span:10},md:{span:24},sm:24,children:(0,e.jsx)(L.Z,{label:S.owner2,name:"owner2",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}]})})]}),(0,e.jsxs)(ve.Z,{gutter:16,children:[(0,e.jsx)(K.Z,{lg:6,md:12,sm:24,children:(0,e.jsx)(L.Z,{label:S.approver2,name:"approver2",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BA1\u6279\u5458"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}],placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6279\u5458"})}),(0,e.jsx)(K.Z,{xl:{span:6,offset:2},lg:{span:8},md:{span:12},sm:24,children:(0,e.jsx)(q,{label:S.dateRange2,name:"dateRange2",rules:[{required:!0,message:"\u8BF7\u8F93\u5165"}],placeholder:"\u63D0\u9192\u65F6\u95F4",fieldProps:{style:{width:"100%"}}})}),(0,e.jsx)(K.Z,{xl:{span:8,offset:2},lg:{span:10},md:{span:24},sm:24,children:(0,e.jsx)(L.Z,{label:S.type2,name:"type2",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED3\u5E93\u7C7B\u578B"}],options:[{label:"\u79C1\u5BC6",value:"private"},{label:"\u516C\u5F00",value:"public"}],placeholder:"\u8BF7\u9009\u62E9\u4ED3\u5E93\u7C7B\u578B"})})]})]}),(0,e.jsx)(fe.Z,{title:"\u6210\u5458\u7BA1\u7406",bordered:!1,children:(0,e.jsx)(Q.A.Item,{name:"members",children:(0,e.jsx)(Ue,{recordCreatorProps:{record:function(){return{key:"0".concat(Date.now())}}},columns:ue,rowKey:"key"})})})]})})},ke=Xe}}]); diff --git a/p__form__basic-form__index.5666ede1.async.js b/p__form__basic-form__index.5666ede1.async.js new file mode 100644 index 00000000..18de5bb8 --- /dev/null +++ b/p__form__basic-form__index.5666ede1.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[794],{37703:function(N,g,e){var n=e(93264),i=e(98787),d=e(82481),c=e(79685),Z=e(77204),m=e(81468),x=e(63342),j=["fieldProps","proFieldProps"],E="dateRange",M=c.forwardRef(function(C,D){var f=C.fieldProps,s=C.proFieldProps,B=(0,i.Z)(C,j),p=(0,c.useContext)(Z.Z);return(0,x.jsx)(m.Z,(0,n.Z)({ref:D,fieldProps:(0,n.Z)({getPopupContainer:p.getPopupContainer},f),valueType:E,proFieldProps:s,filedConfig:{valueType:E,customLightMode:!0,lightFilterLabelFormatter:function(v){return(0,d.c)(v,(f==null?void 0:f.format)||"YYYY-MM-DD")}}},B))});g.Z=M},92769:function(N,g,e){var n=e(93264),i=e(98787),d=e(92879),c=e(48829),Z=e(79685),m=e(46821),x=e(81468),j=e(63342),E=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],M=Z.forwardRef(function(s,B){var p=s.fieldProps,O=s.options,v=s.radioType,P=s.layout,t=s.proFieldProps,A=s.valueEnum,r=(0,i.Z)(s,E);return(0,j.jsx)(x.Z,(0,n.Z)((0,n.Z)({valueType:v==="button"?"radioButton":"radio",ref:B,valueEnum:(0,d.h)(A,void 0)},r),{},{fieldProps:(0,n.Z)({options:O,layout:P},p),proFieldProps:t,filedConfig:{customLightMode:!0}}))}),C=Z.forwardRef(function(s,B){var p=s.fieldProps,O=s.children;return(0,j.jsx)(c.ZP,(0,n.Z)((0,n.Z)({},p),{},{ref:B,children:O}))}),D=(0,m.G)(C,{valuePropName:"checked",ignoreWidth:!0}),f=D;f.Group=M,f.Button=c.ZP.Button,f.displayName="ProFormComponent",g.Z=f},43602:function(N,g,e){var n=e(93264),i=e(98787),d=e(79685),c=e(81468),Z=e(63342),m=["fieldProps","proFieldProps"],x=function(E,M){var C=E.fieldProps,D=E.proFieldProps,f=(0,i.Z)(E,m);return(0,Z.jsx)(c.Z,(0,n.Z)({ref:M,valueType:"textarea",fieldProps:C,proFieldProps:D},f))};g.Z=d.forwardRef(x)},66197:function(N,g,e){e.d(g,{A:function(){return y}});var n=e(93264),i=e(73952),d=e(79685),c=e(29927),Z=e(43901),m=e(6346),x=e(89342),j=e(60190),E=e(46501),M=e(89869),C=e(89543),D=e(27097),f=e(68591),s=e.n(f),B=e(77204),p=e(25393),O=e(33298),v=function(a){var u;return(0,m.Z)({},a.componentCls,{"&-title":{marginBlockEnd:a.marginXL,fontWeight:"bold"},"&-container":(0,m.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(a.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(u={display:"block",width:"100%"},(0,m.Z)(u,"".concat(a.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,m.Z)(u,"".concat(a.componentCls,"-container"),{paddingInlineStart:16}),(0,m.Z)(u,"".concat(a.antCls,"-space-item,").concat(a.antCls,"-form-item"),{width:"100%"}),(0,m.Z)(u,"".concat(a.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),u)})};function P(o){return(0,O.Xj)("ProFormGroup",function(a){var u=(0,n.Z)((0,n.Z)({},a),{},{componentCls:".".concat(o)});return[v(u)]})}var t=e(63342),A=d.forwardRef(function(o,a){var u=d.useContext(B.Z),h=u.groupProps,l=(0,n.Z)((0,n.Z)({},h),o),L=l.children,R=l.collapsible,F=l.defaultCollapsed,I=l.style,J=l.labelLayout,U=l.title,z=U===void 0?o.label:U,Q=l.tooltip,w=l.align,k=w===void 0?"start":w,q=l.direction,_=l.size,ee=_===void 0?32:_,ce=l.titleStyle,te=l.titleRender,S=l.spaceProps,V=l.extra,Y=l.autoFocus,pe=(0,E.Z)(function(){return F||!1},{value:o.collapsed,onChange:o.onCollapse}),ne=(0,x.Z)(pe,2),X=ne[0],ve=ne[1],me=(0,d.useContext)(C.ZP.ConfigContext),fe=me.getPrefixCls,re=(0,p.zx)(o),Pe=re.ColWrapper,oe=re.RowWrapper,K=fe("pro-form-group"),ae=P(K),he=ae.wrapSSR,$=ae.hashId,le=R&&(0,t.jsx)(j.Z,{style:{marginInlineEnd:8},rotate:X?void 0:90}),se=(0,t.jsx)(M.G,{label:le?(0,t.jsxs)("div",{children:[le,z]}):z,tooltip:Q}),ue=(0,d.useCallback)(function(W){var G=W.children;return(0,t.jsx)(D.Z,(0,n.Z)((0,n.Z)({},S),{},{className:s()("".concat(K,"-container ").concat($),S==null?void 0:S.className),size:ee,align:k,direction:q,style:(0,n.Z)({rowGap:0},S==null?void 0:S.style),children:G}))},[k,K,q,$,ee,S]),ie=te?te(se,o):se,Fe=(0,d.useMemo)(function(){var W=[],G=d.Children.toArray(L).map(function(T,Ce){var H;return d.isValidElement(T)&&T!==null&&T!==void 0&&(H=T.props)!==null&&H!==void 0&&H.hidden?(W.push(T),null):Ce===0&&d.isValidElement(T)&&Y?d.cloneElement(T,(0,n.Z)((0,n.Z)({},T.props),{},{autoFocus:Y})):T});return[(0,t.jsx)(oe,{Wrapper:ue,children:G},"children"),W.length>0?(0,t.jsx)("div",{style:{display:"none"},children:W}):null]},[L,oe,ue,Y]),de=(0,x.Z)(Fe,2),Ee=de[0],xe=de[1];return he((0,t.jsx)(Pe,{children:(0,t.jsxs)("div",{className:s()(K,$,(0,m.Z)({},"".concat(K,"-twoLine"),J==="twoLine")),style:I,ref:a,children:[xe,(z||Q||V)&&(0,t.jsx)("div",{className:"".concat(K,"-title ").concat($).trim(),style:ce,onClick:function(){ve(!X)},children:V?(0,t.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[ie,(0,t.jsx)("span",{onClick:function(G){return G.stopPropagation()},children:V})]}):ie}),(0,t.jsx)("div",{style:{display:R&&X?"none":void 0},children:Ee})]})}))});A.displayName="ProForm-Group";var r=A,b=e(30825);function y(o){return(0,t.jsx)(c.I,(0,n.Z)({layout:"vertical",submitter:{render:function(u,h){return h.reverse()}},contentRender:function(u,h){return(0,t.jsxs)(t.Fragment,{children:[u,h]})}},o))}y.Group=r,y.useForm=i.Z.useForm,y.Item=b.Z,y.useWatch=i.Z.useWatch,y.ErrorList=i.Z.ErrorList,y.Provider=i.Z.Provider,y.useFormInstance=i.Z.useFormInstance,y.EditOrReadOnlyContext=Z.A},89869:function(N,g,e){e.d(g,{G:function(){return O}});var n=e(93264),i=e(6346),d=e(21137),c=e(79685),Z=e(92933),m=e(83317),x=function(P,t){return c.createElement(m.Z,(0,d.Z)({},P,{ref:t,icon:Z.Z}))},j=c.forwardRef(x),E=e(89543),M=e(58898),C=e(68591),D=e.n(C),f=e(33298),s=function(P){return(0,i.Z)({},P.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:P.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:P.colorTextSecondary,fontWeight:"normal",fontSize:P.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function B(v){return(0,f.Xj)("LabelIconTip",function(P){var t=(0,n.Z)((0,n.Z)({},P),{},{componentCls:".".concat(v)});return[s(t)]})}var p=e(63342),O=c.memo(function(v){var P=v.label,t=v.tooltip,A=v.ellipsis,r=v.subTitle,b=(0,c.useContext)(E.ZP.ConfigContext),y=b.getPrefixCls,o=y("pro-core-label-tip"),a=B(o),u=a.wrapSSR,h=a.hashId;if(!t&&!r)return(0,p.jsx)(p.Fragment,{children:P});var l=typeof t=="string"||c.isValidElement(t)?{title:t}:t,L=(l==null?void 0:l.icon)||(0,p.jsx)(j,{});return u((0,p.jsxs)("div",{className:D()(o,h),onMouseDown:function(F){return F.stopPropagation()},onMouseLeave:function(F){return F.stopPropagation()},onMouseMove:function(F){return F.stopPropagation()},children:[(0,p.jsx)("div",{className:D()("".concat(o,"-title"),h,(0,i.Z)({},"".concat(o,"-title-ellipsis"),A)),children:P}),r&&(0,p.jsx)("div",{className:"".concat(o,"-subtitle ").concat(h).trim(),children:r}),t&&(0,p.jsx)(M.Z,(0,n.Z)((0,n.Z)({},l),{},{children:(0,p.jsx)("span",{className:"".concat(o,"-icon ").concat(h).trim(),children:L})}))]}))})},43467:function(N,g,e){e.r(g),e.d(g,{default:function(){return y}});var n=e(29195),i=e.n(n),d=e(56717),c=e.n(d),Z=e(89336),m=e(66197),x=e(30869),j=e(37703),E=e(43602),M=e(37123),C=e(92769),D=e(67823),f=e(5754),s=e(8025),B=e(68852),p=e(18283);function O(o){return v.apply(this,arguments)}function v(){return v=c()(i()().mark(function o(a){return i()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,s.request)("/api/basicForm",{method:"POST",data:a}));case 1:case"end":return h.stop()}},o)})),v.apply(this,arguments)}var P=e(24507),t=(0,P.kc)(function(o){var a=o.token;return{optional:{color:a.colorTextSecondary,fontStyle:"normal"}}}),A=t,r=e(63342),b=function(){var a=A(),u=a.styles,h=(0,s.useRequest)(O,{manual:!0,onSuccess:function(){B.ZP.success("\u63D0\u4EA4\u6210\u529F")}}),l=h.run,L=function(){var R=c()(i()().mark(function F(I){return i()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:l(I);case 1:case"end":return U.stop()}},F)}));return function(I){return R.apply(this,arguments)}}();return(0,r.jsx)(Z._z,{content:"\u8868\u5355\u9875\u7528\u4E8E\u5411\u7528\u6237\u6536\u96C6\u6216\u9A8C\u8BC1\u4FE1\u606F\uFF0C\u57FA\u7840\u8868\u5355\u5E38\u89C1\u4E8E\u6570\u636E\u9879\u8F83\u5C11\u7684\u8868\u5355\u573A\u666F\u3002",children:(0,r.jsx)(p.Z,{bordered:!1,children:(0,r.jsxs)(m.A,{hideRequiredMark:!0,style:{margin:"auto",marginTop:8,maxWidth:600},name:"basic",layout:"vertical",initialValues:{public:"1"},onFinish:L,children:[(0,r.jsx)(x.Z,{width:"md",label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}],placeholder:"\u7ED9\u76EE\u6807\u8D77\u4E2A\u540D\u5B57"}),(0,r.jsx)(j.Z,{label:"\u8D77\u6B62\u65E5\u671F",width:"md",name:"date",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D77\u6B62\u65E5\u671F"}],placeholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"]}),(0,r.jsx)(E.Z,{label:"\u76EE\u6807\u63CF\u8FF0",width:"xl",name:"goal",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u6807\u63CF\u8FF0"}],placeholder:"\u8BF7\u8F93\u5165\u4F60\u7684\u9636\u6BB5\u6027\u5DE5\u4F5C\u76EE\u6807"}),(0,r.jsx)(E.Z,{label:"\u8861\u91CF\u6807\u51C6",name:"standard",width:"xl",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8861\u91CF\u6807\u51C6"}],placeholder:"\u8BF7\u8F93\u5165\u8861\u91CF\u6807\u51C6"}),(0,r.jsx)(x.Z,{width:"md",label:(0,r.jsxs)("span",{children:["\u5BA2\u6237",(0,r.jsx)("em",{className:u.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),tooltip:"\u76EE\u6807\u7684\u670D\u52A1\u5BF9\u8C61",name:"client",placeholder:"\u8BF7\u63CF\u8FF0\u4F60\u670D\u52A1\u7684\u5BA2\u6237\uFF0C\u5185\u90E8\u5BA2\u6237\u76F4\u63A5 @\u59D3\u540D\uFF0F\u5DE5\u53F7"}),(0,r.jsx)(x.Z,{width:"md",label:(0,r.jsxs)("span",{children:["\u9080\u8BC4\u4EBA",(0,r.jsx)("em",{className:u.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),name:"invites",placeholder:"\u8BF7\u76F4\u63A5 @\u59D3\u540D\uFF0F\u5DE5\u53F7\uFF0C\u6700\u591A\u53EF\u9080\u8BF7 5 \u4EBA"}),(0,r.jsx)(M.Z,{label:(0,r.jsxs)("span",{children:["\u6743\u91CD",(0,r.jsx)("em",{className:u.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),name:"weight",placeholder:"\u8BF7\u8F93\u5165",min:0,max:100,width:"xs",fieldProps:{formatter:function(F){return"".concat(F||0,"%")},parser:function(F){return Number(F?F.replace("%",""):"0")}}}),(0,r.jsx)(C.Z.Group,{options:[{value:"1",label:"\u516C\u5F00"},{value:"2",label:"\u90E8\u5206\u516C\u5F00"},{value:"3",label:"\u4E0D\u516C\u5F00"}],label:"\u76EE\u6807\u516C\u5F00",help:"\u5BA2\u6237\u3001\u9080\u8BC4\u4EBA\u9ED8\u8BA4\u88AB\u5206\u4EAB",name:"publicType"}),(0,r.jsx)(D.Z,{name:["publicType"],children:function(F){var I=F.publicType;return(0,r.jsx)(f.Z,{width:"md",name:"publicUsers",fieldProps:{style:{margin:"8px 0",display:I&&I==="2"?"block":"none"}},options:[{value:"1",label:"\u540C\u4E8B\u7532"},{value:"2",label:"\u540C\u4E8B\u4E59"},{value:"3",label:"\u540C\u4E8B\u4E19"}]})}})]})})})},y=b}}]); diff --git a/p__form__basic-form__index.905d9a81.async.js b/p__form__basic-form__index.905d9a81.async.js deleted file mode 100644 index d285f82e..00000000 --- a/p__form__basic-form__index.905d9a81.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[794],{9455:function(A,D){var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};D.Z=e},96312:function(A,D,e){var o=e(33346),i=e(10570),v=e(26299),m=e(50959),Z=e(54970),E=e(82578),x=e(11527),j=["fieldProps","proFieldProps"],F="dateRange",d=m.forwardRef(function(y,O){var P=y.fieldProps,p=y.proFieldProps,f=(0,i.Z)(y,j),l=(0,m.useContext)(Z.Z);return(0,x.jsx)(E.Z,(0,o.Z)({ref:O,fieldProps:(0,o.Z)({getPopupContainer:l.getPopupContainer},P),valueType:F,proFieldProps:p,filedConfig:{valueType:F,customLightMode:!0,lightFilterLabelFormatter:function(h){return(0,v.c)(h,(P==null?void 0:P.format)||"YYYY-MM-DD")}}},f))});D.Z=d},96447:function(A,D,e){var o=e(33346),i=e(10570),v=e(50959),m=e(82578),Z=e(11527),E=["fieldProps","min","proFieldProps","max"],x=function(d,y){var O=d.fieldProps,P=d.min,p=d.proFieldProps,f=d.max,l=(0,i.Z)(d,E);return(0,Z.jsx)(m.Z,(0,o.Z)({valueType:"digit",fieldProps:(0,o.Z)({min:P,max:f},O),ref:y,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:p},l))},j=v.forwardRef(x);D.Z=j},66790:function(A,D,e){var o=e(33346),i=e(10570),v=e(44559),m=e(22900),Z=e(50959),E=e(81298),x=e(82578),j=e(11527),F=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],d=Z.forwardRef(function(p,f){var l=p.fieldProps,T=p.options,h=p.radioType,t=p.layout,r=p.proFieldProps,M=p.valueEnum,n=(0,i.Z)(p,F);return(0,j.jsx)(x.Z,(0,o.Z)((0,o.Z)({valueType:h==="button"?"radioButton":"radio",ref:f,valueEnum:(0,v.h)(M,void 0)},n),{},{fieldProps:(0,o.Z)({options:T,layout:t},l),proFieldProps:r,filedConfig:{customLightMode:!0}}))}),y=Z.forwardRef(function(p,f){var l=p.fieldProps,T=p.children;return(0,j.jsx)(m.ZP,(0,o.Z)((0,o.Z)({},l),{},{ref:f,children:T}))}),O=(0,E.G)(y,{valuePropName:"checked",ignoreWidth:!0}),P=O;P.Group=d,P.Button=m.ZP.Button,P.displayName="ProFormComponent",D.Z=P},79712:function(A,D,e){var o=e(33346),i=e(10570),v=e(44559),m=e(50959),Z=e(54970),E=e(82578),x=e(11527),j=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],F=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],d=function(l,T){var h=l.fieldProps,t=l.children,r=l.params,M=l.proFieldProps,n=l.mode,B=l.valueEnum,g=l.request,u=l.showSearch,a=l.options,c=(0,i.Z)(l,j),C=(0,m.useContext)(Z.Z);return(0,x.jsx)(E.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,v.h)(B),request:g,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({options:a,mode:n,showSearch:u,getPopupContainer:C.getPopupContainer},h),ref:T,proFieldProps:M},c),{},{children:t}))},y=m.forwardRef(function(f,l){var T=f.fieldProps,h=f.children,t=f.params,r=f.proFieldProps,M=f.mode,n=f.valueEnum,B=f.request,g=f.options,u=(0,i.Z)(f,F),a=(0,o.Z)({options:g,mode:M||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},T),c=(0,m.useContext)(Z.Z);return(0,x.jsx)(E.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,v.h)(n),request:B,params:t,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({getPopupContainer:c.getPopupContainer},a),ref:l,proFieldProps:r},u),{},{children:h}))}),O=m.forwardRef(d),P=y,p=O;p.SearchSelect=P,p.displayName="ProFormComponent",D.Z=p},59224:function(A,D,e){var o=e(33346),i=e(10570),v=e(50959),m=e(82578),Z=e(11527),E=["fieldProps","proFieldProps"],x=function(F,d){var y=F.fieldProps,O=F.proFieldProps,P=(0,i.Z)(F,E);return(0,Z.jsx)(m.Z,(0,o.Z)({ref:d,valueType:"textarea",fieldProps:y,proFieldProps:O},P))};D.Z=v.forwardRef(x)},60010:function(A,D,e){var o=e(32682),i=e(33346),v=e(10570),m=e(65589),Z=e(67190),E=e(82757),x=e(71770),j=e(50959),F=e(82578),d=e(11527),y=["fieldProps","proFieldProps"],O=["fieldProps","proFieldProps"],P="text",p=function(t){var r=t.fieldProps,M=t.proFieldProps,n=(0,v.Z)(t,y);return(0,d.jsx)(F.Z,(0,i.Z)({valueType:P,fieldProps:r,filedConfig:{valueType:P},proFieldProps:M},n))},f=function(t){var r=(0,m.Z)(t.open||!1,{value:t.open,onChange:t.onOpenChange}),M=(0,o.Z)(r,2),n=M[0],B=M[1];return(0,d.jsx)(Z.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(u){var a,c=u.getFieldValue(t.name||[]);return(0,d.jsx)(E.Z,(0,i.Z)((0,i.Z)({getPopupContainer:function(s){return s&&s.parentNode?s.parentNode:s},onOpenChange:B,content:(0,d.jsxs)("div",{style:{padding:"4px 0"},children:[(a=t.statusRender)===null||a===void 0?void 0:a.call(t,c),t.strengthText?(0,d.jsx)("div",{style:{marginTop:10},children:(0,d.jsx)("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},t.popoverProps),{},{open:n,children:t.children}))}})},l=function(t){var r=t.fieldProps,M=t.proFieldProps,n=(0,v.Z)(t,O),B=(0,j.useState)(!1),g=(0,o.Z)(B,2),u=g[0],a=g[1];return r!=null&&r.statusRender&&n.name?(0,d.jsx)(f,{name:n.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:u,onOpenChange:a,children:(0,d.jsx)(F.Z,(0,i.Z)({valueType:"password",fieldProps:(0,i.Z)((0,i.Z)({},(0,x.Z)(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(C){var s;r==null||(s=r.onBlur)===null||s===void 0||s.call(r,C),a(!1)},onClick:function(C){var s;r==null||(s=r.onClick)===null||s===void 0||s.call(r,C),a(!0)}}),proFieldProps:M,filedConfig:{valueType:P}},n))}):(0,d.jsx)(F.Z,(0,i.Z)({valueType:"password",fieldProps:r,proFieldProps:M,filedConfig:{valueType:P}},n))},T=p;T.Password=l,T.displayName="ProFormComponent",D.Z=T},43997:function(A,D,e){e.d(D,{A:function(){return g}});var o=e(33346),i=e(67190),v=e(50959),m=e(1704),Z=e(58922),E=e(73273),x=e(32682),j=e(25671),F=e(65589),d=e(21804),y=e(56197),O=e(75200),P=e(84875),p=e.n(P),f=e(54970),l=e(21510),T=e(26488),h=function(a){var c;return(0,E.Z)({},a.componentCls,{"&-title":{marginBlockEnd:a.marginXL,fontWeight:"bold"},"&-container":(0,E.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(a.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(c={display:"block",width:"100%"},(0,E.Z)(c,"".concat(a.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,E.Z)(c,"".concat(a.componentCls,"-container"),{paddingInlineStart:16}),(0,E.Z)(c,"".concat(a.antCls,"-space-item,").concat(a.antCls,"-form-item"),{width:"100%"}),(0,E.Z)(c,"".concat(a.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),c)})};function t(u){return(0,T.Xj)("ProFormGroup",function(a){var c=(0,o.Z)((0,o.Z)({},a),{},{componentCls:".".concat(u)});return[h(c)]})}var r=e(11527),M=v.forwardRef(function(u,a){var c=v.useContext(f.Z),C=c.groupProps,s=(0,o.Z)((0,o.Z)({},C),u),K=s.children,S=s.collapsible,R=s.defaultCollapsed,L=s.style,H=s.labelLayout,_=s.title,$=_===void 0?u.label:_,J=s.tooltip,Q=s.align,w=Q===void 0?"start":Q,k=s.direction,q=s.size,ee=q===void 0?32:q,pe=s.titleStyle,re=s.titleRender,W=s.spaceProps,z=s.extra,V=s.autoFocus,ce=(0,F.Z)(function(){return R||!1},{value:u.collapsed,onChange:u.onCollapse}),oe=(0,x.Z)(ce,2),Y=oe[0],ve=oe[1],me=(0,v.useContext)(y.ZP.ConfigContext),Pe=me.getPrefixCls,te=(0,l.zx)(u),fe=te.ColWrapper,ne=te.RowWrapper,b=Pe("pro-form-group"),le=t(b),he=le.wrapSSR,G=le.hashId,ae=S&&(0,r.jsx)(j.Z,{style:{marginInlineEnd:8},rotate:Y?void 0:90}),se=(0,r.jsx)(d.G,{label:ae?(0,r.jsxs)("div",{children:[ae,$]}):$,tooltip:J}),ie=(0,v.useCallback)(function(U){var N=U.children;return(0,r.jsx)(O.Z,(0,o.Z)((0,o.Z)({},W),{},{className:p()("".concat(b,"-container ").concat(G),W==null?void 0:W.className),size:ee,align:w,direction:k,style:(0,o.Z)({rowGap:0},W==null?void 0:W.style),children:N}))},[w,b,k,G,ee,W]),ue=re?re(se,u):se,Ee=(0,v.useMemo)(function(){var U=[],N=v.Children.toArray(K).map(function(I,xe){var X;return v.isValidElement(I)&&I!==null&&I!==void 0&&(X=I.props)!==null&&X!==void 0&&X.hidden?(U.push(I),null):xe===0&&v.isValidElement(I)&&V?v.cloneElement(I,(0,o.Z)((0,o.Z)({},I.props),{},{autoFocus:V})):I});return[(0,r.jsx)(ne,{Wrapper:ie,children:N},"children"),U.length>0?(0,r.jsx)("div",{style:{display:"none"},children:U}):null]},[K,ne,ie,V]),de=(0,x.Z)(Ee,2),Ce=de[0],Fe=de[1];return he((0,r.jsx)(fe,{children:(0,r.jsxs)("div",{className:p()(b,G,(0,E.Z)({},"".concat(b,"-twoLine"),H==="twoLine")),style:L,ref:a,children:[Fe,($||J||z)&&(0,r.jsx)("div",{className:"".concat(b,"-title ").concat(G).trim(),style:pe,onClick:function(){ve(!Y)},children:z?(0,r.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[ue,(0,r.jsx)("span",{onClick:function(N){return N.stopPropagation()},children:z})]}):ue}),(0,r.jsx)("div",{style:{display:S&&Y?"none":void 0},children:Ce})]})}))});M.displayName="ProForm-Group";var n=M,B=e(75693);function g(u){return(0,r.jsx)(m.I,(0,o.Z)({layout:"vertical",submitter:{render:function(c,C){return C.reverse()}},contentRender:function(c,C){return(0,r.jsxs)(r.Fragment,{children:[c,C]})}},u))}g.Group=n,g.useForm=i.Z.useForm,g.Item=B.Z,g.useWatch=i.Z.useWatch,g.ErrorList=i.Z.ErrorList,g.Provider=i.Z.Provider,g.useFormInstance=i.Z.useFormInstance,g.EditOrReadOnlyContext=Z.A},21804:function(A,D,e){e.d(D,{G:function(){return T}});var o=e(33346),i=e(73273),v=e(38126),m=e(50959),Z=e(9455),E=e(38782),x=function(t,r){return m.createElement(E.Z,(0,v.Z)({},t,{ref:r,icon:Z.Z}))},j=m.forwardRef(x),F=e(56197),d=e(32618),y=e(84875),O=e.n(y),P=e(26488),p=function(t){return(0,i.Z)({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function f(h){return(0,P.Xj)("LabelIconTip",function(t){var r=(0,o.Z)((0,o.Z)({},t),{},{componentCls:".".concat(h)});return[p(r)]})}var l=e(11527),T=m.memo(function(h){var t=h.label,r=h.tooltip,M=h.ellipsis,n=h.subTitle,B=(0,m.useContext)(F.ZP.ConfigContext),g=B.getPrefixCls,u=g("pro-core-label-tip"),a=f(u),c=a.wrapSSR,C=a.hashId;if(!r&&!n)return(0,l.jsx)(l.Fragment,{children:t});var s=typeof r=="string"||m.isValidElement(r)?{title:r}:r,K=(s==null?void 0:s.icon)||(0,l.jsx)(j,{});return c((0,l.jsxs)("div",{className:O()(u,C),onMouseDown:function(R){return R.stopPropagation()},onMouseLeave:function(R){return R.stopPropagation()},onMouseMove:function(R){return R.stopPropagation()},children:[(0,l.jsx)("div",{className:O()("".concat(u,"-title"),C,(0,i.Z)({},"".concat(u,"-title-ellipsis"),M)),children:t}),n&&(0,l.jsx)("div",{className:"".concat(u,"-subtitle ").concat(C).trim(),children:n}),r&&(0,l.jsx)(d.Z,(0,o.Z)((0,o.Z)({},s),{},{children:(0,l.jsx)("span",{className:"".concat(u,"-icon ").concat(C).trim(),children:K})}))]}))})},98773:function(A,D,e){e.r(D),e.d(D,{default:function(){return g}});var o=e(13448),i=e.n(o),v=e(74815),m=e.n(v),Z=e(95943),E=e(43997),x=e(60010),j=e(96312),F=e(59224),d=e(96447),y=e(66790),O=e(80288),P=e(79712),p=e(27533),f=e(52497),l=e(50304);function T(u){return h.apply(this,arguments)}function h(){return h=m()(i()().mark(function u(a){return i()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,p.request)("/api/basicForm",{method:"POST",data:a}));case 1:case"end":return C.stop()}},u)})),h.apply(this,arguments)}var t=e(8700),r=(0,t.kc)(function(u){var a=u.token;return{optional:{color:a.colorTextSecondary,fontStyle:"normal"}}}),M=r,n=e(11527),B=function(){var a=M(),c=a.styles,C=(0,p.useRequest)(T,{manual:!0,onSuccess:function(){f.ZP.success("\u63D0\u4EA4\u6210\u529F")}}),s=C.run,K=function(){var S=m()(i()().mark(function R(L){return i()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:s(L);case 1:case"end":return _.stop()}},R)}));return function(L){return S.apply(this,arguments)}}();return(0,n.jsx)(Z._z,{content:"\u8868\u5355\u9875\u7528\u4E8E\u5411\u7528\u6237\u6536\u96C6\u6216\u9A8C\u8BC1\u4FE1\u606F\uFF0C\u57FA\u7840\u8868\u5355\u5E38\u89C1\u4E8E\u6570\u636E\u9879\u8F83\u5C11\u7684\u8868\u5355\u573A\u666F\u3002",children:(0,n.jsx)(l.Z,{bordered:!1,children:(0,n.jsxs)(E.A,{hideRequiredMark:!0,style:{margin:"auto",marginTop:8,maxWidth:600},name:"basic",layout:"vertical",initialValues:{public:"1"},onFinish:K,children:[(0,n.jsx)(x.Z,{width:"md",label:"\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}],placeholder:"\u7ED9\u76EE\u6807\u8D77\u4E2A\u540D\u5B57"}),(0,n.jsx)(j.Z,{label:"\u8D77\u6B62\u65E5\u671F",width:"md",name:"date",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8D77\u6B62\u65E5\u671F"}],placeholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"]}),(0,n.jsx)(F.Z,{label:"\u76EE\u6807\u63CF\u8FF0",width:"xl",name:"goal",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u6807\u63CF\u8FF0"}],placeholder:"\u8BF7\u8F93\u5165\u4F60\u7684\u9636\u6BB5\u6027\u5DE5\u4F5C\u76EE\u6807"}),(0,n.jsx)(F.Z,{label:"\u8861\u91CF\u6807\u51C6",name:"standard",width:"xl",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8861\u91CF\u6807\u51C6"}],placeholder:"\u8BF7\u8F93\u5165\u8861\u91CF\u6807\u51C6"}),(0,n.jsx)(x.Z,{width:"md",label:(0,n.jsxs)("span",{children:["\u5BA2\u6237",(0,n.jsx)("em",{className:c.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),tooltip:"\u76EE\u6807\u7684\u670D\u52A1\u5BF9\u8C61",name:"client",placeholder:"\u8BF7\u63CF\u8FF0\u4F60\u670D\u52A1\u7684\u5BA2\u6237\uFF0C\u5185\u90E8\u5BA2\u6237\u76F4\u63A5 @\u59D3\u540D\uFF0F\u5DE5\u53F7"}),(0,n.jsx)(x.Z,{width:"md",label:(0,n.jsxs)("span",{children:["\u9080\u8BC4\u4EBA",(0,n.jsx)("em",{className:c.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),name:"invites",placeholder:"\u8BF7\u76F4\u63A5 @\u59D3\u540D\uFF0F\u5DE5\u53F7\uFF0C\u6700\u591A\u53EF\u9080\u8BF7 5 \u4EBA"}),(0,n.jsx)(d.Z,{label:(0,n.jsxs)("span",{children:["\u6743\u91CD",(0,n.jsx)("em",{className:c.optional,children:"\uFF08\u9009\u586B\uFF09"})]}),name:"weight",placeholder:"\u8BF7\u8F93\u5165",min:0,max:100,width:"xs",fieldProps:{formatter:function(R){return"".concat(R||0,"%")},parser:function(R){return Number(R?R.replace("%",""):"0")}}}),(0,n.jsx)(y.Z.Group,{options:[{value:"1",label:"\u516C\u5F00"},{value:"2",label:"\u90E8\u5206\u516C\u5F00"},{value:"3",label:"\u4E0D\u516C\u5F00"}],label:"\u76EE\u6807\u516C\u5F00",help:"\u5BA2\u6237\u3001\u9080\u8BC4\u4EBA\u9ED8\u8BA4\u88AB\u5206\u4EAB",name:"publicType"}),(0,n.jsx)(O.Z,{name:["publicType"],children:function(R){var L=R.publicType;return(0,n.jsx)(P.Z,{width:"md",name:"publicUsers",fieldProps:{style:{margin:"8px 0",display:L&&L==="2"?"block":"none"}},options:[{value:"1",label:"\u540C\u4E8B\u7532"},{value:"2",label:"\u540C\u4E8B\u4E59"},{value:"3",label:"\u540C\u4E8B\u4E19"}]})}})]})})})},g=B}}]); diff --git a/p__form__step-form__index.0f890e2e.async.js b/p__form__step-form__index.0f890e2e.async.js deleted file mode 100644 index 76cd490d..00000000 --- a/p__form__step-form__index.0f890e2e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2736],{96447:function($,j,e){var l=e(33346),o=e(10570),C=e(50959),c=e(82578),Z=e(11527),h=["fieldProps","min","proFieldProps","max"],A=function(s,x){var T=s.fieldProps,d=s.min,f=s.proFieldProps,a=s.max,n=(0,o.Z)(s,h);return(0,Z.jsx)(c.Z,(0,l.Z)({valueType:"digit",fieldProps:(0,l.Z)({min:d,max:a},T),ref:x,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:f},n))},v=C.forwardRef(A);j.Z=v},79712:function($,j,e){var l=e(33346),o=e(10570),C=e(44559),c=e(50959),Z=e(54970),h=e(82578),A=e(11527),v=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],D=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],s=function(n,B){var M=n.fieldProps,t=n.children,r=n.params,p=n.proFieldProps,E=n.mode,P=n.valueEnum,u=n.request,F=n.showSearch,m=n.options,g=(0,o.Z)(n,v),S=(0,c.useContext)(Z.Z);return(0,A.jsx)(h.Z,(0,l.Z)((0,l.Z)({valueEnum:(0,C.h)(P),request:u,params:r,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,l.Z)({options:m,mode:E,showSearch:F,getPopupContainer:S.getPopupContainer},M),ref:B,proFieldProps:p},g),{},{children:t}))},x=c.forwardRef(function(a,n){var B=a.fieldProps,M=a.children,t=a.params,r=a.proFieldProps,p=a.mode,E=a.valueEnum,P=a.request,u=a.options,F=(0,o.Z)(a,D),m=(0,l.Z)({options:u,mode:p||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},B),g=(0,c.useContext)(Z.Z);return(0,A.jsx)(h.Z,(0,l.Z)((0,l.Z)({valueEnum:(0,C.h)(E),request:P,params:t,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,l.Z)({getPopupContainer:g.getPopupContainer},m),ref:n,proFieldProps:r},F),{},{children:M}))}),T=c.forwardRef(s),d=x,f=T;f.SearchSelect=d,f.displayName="ProFormComponent",j.Z=f},60010:function($,j,e){var l=e(32682),o=e(33346),C=e(10570),c=e(65589),Z=e(67190),h=e(82757),A=e(71770),v=e(50959),D=e(82578),s=e(11527),x=["fieldProps","proFieldProps"],T=["fieldProps","proFieldProps"],d="text",f=function(t){var r=t.fieldProps,p=t.proFieldProps,E=(0,C.Z)(t,x);return(0,s.jsx)(D.Z,(0,o.Z)({valueType:d,fieldProps:r,filedConfig:{valueType:d},proFieldProps:p},E))},a=function(t){var r=(0,c.Z)(t.open||!1,{value:t.open,onChange:t.onOpenChange}),p=(0,l.Z)(r,2),E=p[0],P=p[1];return(0,s.jsx)(Z.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(F){var m,g=F.getFieldValue(t.name||[]);return(0,s.jsx)(h.Z,(0,o.Z)((0,o.Z)({getPopupContainer:function(i){return i&&i.parentNode?i.parentNode:i},onOpenChange:P,content:(0,s.jsxs)("div",{style:{padding:"4px 0"},children:[(m=t.statusRender)===null||m===void 0?void 0:m.call(t,g),t.strengthText?(0,s.jsx)("div",{style:{marginTop:10},children:(0,s.jsx)("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},t.popoverProps),{},{open:E,children:t.children}))}})},n=function(t){var r=t.fieldProps,p=t.proFieldProps,E=(0,C.Z)(t,T),P=(0,v.useState)(!1),u=(0,l.Z)(P,2),F=u[0],m=u[1];return r!=null&&r.statusRender&&E.name?(0,s.jsx)(a,{name:E.name,statusRender:r==null?void 0:r.statusRender,popoverProps:r==null?void 0:r.popoverProps,strengthText:r==null?void 0:r.strengthText,open:F,onOpenChange:m,children:(0,s.jsx)(D.Z,(0,o.Z)({valueType:"password",fieldProps:(0,o.Z)((0,o.Z)({},(0,A.Z)(r,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(S){var i;r==null||(i=r.onBlur)===null||i===void 0||i.call(r,S),m(!1)},onClick:function(S){var i;r==null||(i=r.onClick)===null||i===void 0||i.call(r,S),m(!0)}}),proFieldProps:p,filedConfig:{valueType:d}},E))}):(0,s.jsx)(D.Z,(0,o.Z)({valueType:"password",fieldProps:r,proFieldProps:p,filedConfig:{valueType:d}},E))},B=f;B.Password=n,B.displayName="ProFormComponent",j.Z=B},48978:function($,j,e){e.r(j),e.d(j,{default:function(){return S}});var l=e(13448),o=e.n(l),C=e(74815),c=e.n(C),Z=e(28152),h=e.n(Z),A=e(95943),v=e(76791),D=e(79712),s=e(43997),x=e(60010),T=e(96447),d=e(8303),f=e(53295),a=e(6053),n=e(47100),B=e(50304),M=e(38727),t=e(84922),r=e(50959),p=e(8700),E=(0,p.kc)(function(){return{card:{marginBottom:"24px"},result:{maxWidth:"560px",margin:"0 auto",padding:"24px 0 8px"}}}),P=E,u=e(11527),F=function(R){var O=R.stepData,I=R.bordered,L=O.payAccount,W=O.receiverAccount,b=O.receiverName,V=O.amount;return(0,u.jsxs)(d.Z,{column:1,bordered:I,children:[(0,u.jsxs)(d.Z.Item,{label:"\u4ED8\u6B3E\u8D26\u6237",children:[" ",L]}),(0,u.jsxs)(d.Z.Item,{label:"\u6536\u6B3E\u8D26\u6237",children:[" ",W]}),(0,u.jsxs)(d.Z.Item,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",children:[" ",b]}),(0,u.jsx)(d.Z.Item,{label:"\u8F6C\u8D26\u91D1\u989D",children:(0,u.jsx)(f.Z,{value:V,suffix:(0,u.jsx)("span",{style:{fontSize:14},children:"\u5143"}),precision:2})})]})},m=function(R){var O=P(),I=O.styles;return(0,u.jsx)(a.ZP,{status:"success",title:"\u64CD\u4F5C\u6210\u529F",subTitle:"\u9884\u8BA1\u4E24\u5C0F\u65F6\u5185\u5230\u8D26",extra:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(n.ZP,{type:"primary",onClick:R.onFinish,children:"\u518D\u8F6C\u4E00\u7B14"}),(0,u.jsx)(n.ZP,{children:"\u67E5\u770B\u8D26\u5355"})]}),className:I.result,children:R.children})},g=function(){var R=P(),O=R.styles,I=(0,r.useState)({payAccount:"ant-design@alipay.com",receiverAccount:"test@example.com",receiverName:"Alex",amount:"500",receiverMode:"alipay"}),L=h()(I,2),W=L[0],b=L[1],V=(0,r.useState)(0),z=h()(V,2),J=z[0],G=z[1],H=(0,r.useRef)();return(0,u.jsx)(A._z,{content:"\u5C06\u4E00\u4E2A\u5197\u957F\u6216\u7528\u6237\u4E0D\u719F\u6089\u7684\u8868\u5355\u4EFB\u52A1\u5206\u6210\u591A\u4E2A\u6B65\u9AA4\uFF0C\u6307\u5BFC\u7528\u6237\u5B8C\u6210\u3002",children:(0,u.jsxs)(B.Z,{bordered:!1,children:[(0,u.jsxs)(v.L0,{current:J,onCurrentChange:G,submitter:{render:function(y,K){return y.step===2?null:K}},children:[(0,u.jsxs)(v.L0.StepForm,{formRef:H,title:"\u586B\u5199\u8F6C\u8D26\u4FE1\u606F",initialValues:W,onFinish:function(){var U=c()(o()().mark(function y(K){return o()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return b(K),N.abrupt("return",!0);case 2:case"end":return N.stop()}},y)}));return function(y){return U.apply(this,arguments)}}(),children:[(0,u.jsx)(D.Z,{label:"\u4ED8\u6B3E\u8D26\u6237",width:"md",name:"payAccount",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u8D26\u6237"}],valueEnum:{"ant-design@alipay.com":"ant-design@alipay.com"}}),(0,u.jsxs)(s.A.Group,{title:"\u6536\u6B3E\u8D26\u6237",size:8,children:[(0,u.jsx)(D.Z,{name:"receiverMode",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u8D26\u6237"}],valueEnum:{alipay:"\u652F\u4ED8\u5B9D",bank:"\u94F6\u884C\u8D26\u6237"}}),(0,u.jsx)(x.Z,{name:"receiverAccount",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA\u8D26\u6237"},{type:"email",message:"\u8D26\u6237\u540D\u5E94\u4E3A\u90AE\u7BB1\u683C\u5F0F"}],placeholder:"test@example.com"})]}),(0,u.jsx)(x.Z,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",width:"md",name:"receiverName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA\u59D3\u540D"}],placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA\u59D3\u540D"}),(0,u.jsx)(T.Z,{label:"\u8F6C\u8D26\u91D1\u989D",name:"amount",width:"md",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F6C\u8D26\u91D1\u989D"},{pattern:/^(\d+)((?:\.\d+)?)$/,message:"\u8BF7\u8F93\u5165\u5408\u6CD5\u91D1\u989D\u6570\u5B57"}],placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D",fieldProps:{prefix:"\uFFE5"}})]}),(0,u.jsx)(v.L0.StepForm,{title:"\u786E\u8BA4\u8F6C\u8D26\u4FE1\u606F",children:(0,u.jsxs)("div",{className:O.result,children:[(0,u.jsx)(M.Z,{closable:!0,showIcon:!0,message:"\u786E\u8BA4\u8F6C\u8D26\u540E\uFF0C\u8D44\u91D1\u5C06\u76F4\u63A5\u6253\u5165\u5BF9\u65B9\u8D26\u6237\uFF0C\u65E0\u6CD5\u9000\u56DE\u3002",style:{marginBottom:24}}),(0,u.jsx)(F,{stepData:W,bordered:!0}),(0,u.jsx)(t.Z,{style:{margin:"24px 0"}}),(0,u.jsx)(x.Z.Password,{label:"\u652F\u4ED8\u5BC6\u7801",width:"md",name:"password",required:!1,rules:[{required:!0,message:"\u9700\u8981\u652F\u4ED8\u5BC6\u7801\u624D\u80FD\u8FDB\u884C\u652F\u4ED8"}]})]})}),(0,u.jsx)(v.L0.StepForm,{title:"\u5B8C\u6210",children:(0,u.jsx)(m,{onFinish:c()(o()().mark(function U(){var y;return o()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:G(0),(y=H.current)===null||y===void 0||y.resetFields();case 2:case"end":return _.stop()}},U)})),children:(0,u.jsx)(F,{stepData:W})})})]}),(0,u.jsx)(t.Z,{style:{margin:"40px 0 24px"}}),(0,u.jsxs)("div",{children:[(0,u.jsx)("h3",{children:"\u8BF4\u660E"}),(0,u.jsx)("h4",{children:"\u8F6C\u8D26\u5230\u652F\u4ED8\u5B9D\u8D26\u6237"}),(0,u.jsx)("p",{children:"\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002"}),(0,u.jsx)("h4",{children:"\u8F6C\u8D26\u5230\u94F6\u884C\u5361"}),(0,u.jsx)("p",{children:"\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002"})]})]})})},S=g}}]); diff --git a/p__form__step-form__index.2e9ac0c7.async.js b/p__form__step-form__index.2e9ac0c7.async.js new file mode 100644 index 00000000..f923bc97 --- /dev/null +++ b/p__form__step-form__index.2e9ac0c7.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2736],{75899:function(de,Z,s){s.r(Z),s.d(Z,{default:function(){return c}});var r=s(29195),T=s.n(r),O=s(56717),M=s.n(O),J=s(97380),L=s.n(J),K=s(89336),w=s(7676),H=s(5754),oe=s(66197),I=s(30869),Q=s(37123),N=s(65906),q=s(45161),k=s(94154),W=s(10951),P=s(18283),ue=s(93957),G=s(498),U=s(79685),_=s(24507),R=(0,_.kc)(function(){return{card:{marginBottom:"24px"},result:{maxWidth:"560px",margin:"0 auto",padding:"24px 0 8px"}}}),ee=R,a=s(63342),z=function(E){var v=E.stepData,f=E.bordered,C=v.payAccount,m=v.receiverAccount,h=v.receiverName,$=v.amount;return(0,a.jsxs)(N.Z,{column:1,bordered:f,children:[(0,a.jsxs)(N.Z.Item,{label:"\u4ED8\u6B3E\u8D26\u6237",children:[" ",C]}),(0,a.jsxs)(N.Z.Item,{label:"\u6536\u6B3E\u8D26\u6237",children:[" ",m]}),(0,a.jsxs)(N.Z.Item,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",children:[" ",h]}),(0,a.jsx)(N.Z.Item,{label:"\u8F6C\u8D26\u91D1\u989D",children:(0,a.jsx)(q.Z,{value:$,suffix:(0,a.jsx)("span",{style:{fontSize:14},children:"\u5143"}),precision:2})})]})},g=function(E){var v=ee(),f=v.styles;return(0,a.jsx)(k.ZP,{status:"success",title:"\u64CD\u4F5C\u6210\u529F",subTitle:"\u9884\u8BA1\u4E24\u5C0F\u65F6\u5185\u5230\u8D26",extra:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(W.ZP,{type:"primary",onClick:E.onFinish,children:"\u518D\u8F6C\u4E00\u7B14"}),(0,a.jsx)(W.ZP,{children:"\u67E5\u770B\u8D26\u5355"})]}),className:f.result,children:E.children})},d=function(){var E=ee(),v=E.styles,f=(0,U.useState)({payAccount:"ant-design@alipay.com",receiverAccount:"test@example.com",receiverName:"Alex",amount:"500",receiverMode:"alipay"}),C=L()(f,2),m=C[0],h=C[1],$=(0,U.useState)(0),y=L()($,2),x=y[0],e=y[1],t=(0,U.useRef)();return(0,a.jsx)(K._z,{content:"\u5C06\u4E00\u4E2A\u5197\u957F\u6216\u7528\u6237\u4E0D\u719F\u6089\u7684\u8868\u5355\u4EFB\u52A1\u5206\u6210\u591A\u4E2A\u6B65\u9AA4\uFF0C\u6307\u5BFC\u7528\u6237\u5B8C\u6210\u3002",children:(0,a.jsxs)(P.Z,{bordered:!1,children:[(0,a.jsxs)(w.L0,{current:x,onCurrentChange:e,submitter:{render:function(n,l){return n.step===2?null:l}},children:[(0,a.jsxs)(w.L0.StepForm,{formRef:t,title:"\u586B\u5199\u8F6C\u8D26\u4FE1\u606F",initialValues:m,onFinish:function(){var o=M()(T()().mark(function n(l){return T()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return h(l),u.abrupt("return",!0);case 2:case"end":return u.stop()}},n)}));return function(n){return o.apply(this,arguments)}}(),children:[(0,a.jsx)(H.Z,{label:"\u4ED8\u6B3E\u8D26\u6237",width:"md",name:"payAccount",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u8D26\u6237"}],valueEnum:{"ant-design@alipay.com":"ant-design@alipay.com"}}),(0,a.jsxs)(oe.A.Group,{title:"\u6536\u6B3E\u8D26\u6237",size:8,children:[(0,a.jsx)(H.Z,{name:"receiverMode",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u8D26\u6237"}],valueEnum:{alipay:"\u652F\u4ED8\u5B9D",bank:"\u94F6\u884C\u8D26\u6237"}}),(0,a.jsx)(I.Z,{name:"receiverAccount",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA\u8D26\u6237"},{type:"email",message:"\u8D26\u6237\u540D\u5E94\u4E3A\u90AE\u7BB1\u683C\u5F0F"}],placeholder:"test@example.com"})]}),(0,a.jsx)(I.Z,{label:"\u6536\u6B3E\u4EBA\u59D3\u540D",width:"md",name:"receiverName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA\u59D3\u540D"}],placeholder:"\u8BF7\u8F93\u5165\u6536\u6B3E\u4EBA\u59D3\u540D"}),(0,a.jsx)(Q.Z,{label:"\u8F6C\u8D26\u91D1\u989D",name:"amount",width:"md",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F6C\u8D26\u91D1\u989D"},{pattern:/^(\d+)((?:\.\d+)?)$/,message:"\u8BF7\u8F93\u5165\u5408\u6CD5\u91D1\u989D\u6570\u5B57"}],placeholder:"\u8BF7\u8F93\u5165\u91D1\u989D",fieldProps:{prefix:"\uFFE5"}})]}),(0,a.jsx)(w.L0.StepForm,{title:"\u786E\u8BA4\u8F6C\u8D26\u4FE1\u606F",children:(0,a.jsxs)("div",{className:v.result,children:[(0,a.jsx)(ue.Z,{closable:!0,showIcon:!0,message:"\u786E\u8BA4\u8F6C\u8D26\u540E\uFF0C\u8D44\u91D1\u5C06\u76F4\u63A5\u6253\u5165\u5BF9\u65B9\u8D26\u6237\uFF0C\u65E0\u6CD5\u9000\u56DE\u3002",style:{marginBottom:24}}),(0,a.jsx)(z,{stepData:m,bordered:!0}),(0,a.jsx)(G.Z,{style:{margin:"24px 0"}}),(0,a.jsx)(I.Z.Password,{label:"\u652F\u4ED8\u5BC6\u7801",width:"md",name:"password",required:!1,rules:[{required:!0,message:"\u9700\u8981\u652F\u4ED8\u5BC6\u7801\u624D\u80FD\u8FDB\u884C\u652F\u4ED8"}]})]})}),(0,a.jsx)(w.L0.StepForm,{title:"\u5B8C\u6210",children:(0,a.jsx)(g,{onFinish:M()(T()().mark(function o(){var n;return T()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e(0),(n=t.current)===null||n===void 0||n.resetFields();case 2:case"end":return i.stop()}},o)})),children:(0,a.jsx)(z,{stepData:m})})})]}),(0,a.jsx)(G.Z,{style:{margin:"40px 0 24px"}}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{children:"\u8BF4\u660E"}),(0,a.jsx)("h4",{children:"\u8F6C\u8D26\u5230\u652F\u4ED8\u5B9D\u8D26\u6237"}),(0,a.jsx)("p",{children:"\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002"}),(0,a.jsx)("h4",{children:"\u8F6C\u8D26\u5230\u94F6\u884C\u5361"}),(0,a.jsx)("p",{children:"\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002\u5982\u679C\u9700\u8981\uFF0C\u8FD9\u91CC\u53EF\u4EE5\u653E\u4E00\u4E9B\u5173\u4E8E\u4EA7\u54C1\u7684\u5E38\u89C1\u95EE\u9898\u8BF4\u660E\u3002"})]})]})})},c=d},65906:function(de,Z,s){s.d(Z,{Z:function(){return x}});var r=s(79685),T=s(68591),O=s.n(T),M=s(85817),J=s(99248),L=s(73064),K=s(79301),H={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},I=r.createContext({}),Q=s(89259),N=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l(0,Q.Z)(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function k(e,t,o){const n=r.useMemo(()=>t||q(o),[t,o]);return r.useMemo(()=>n.map(i=>{var{span:u}=i,j=N(i,["span"]);return Object.assign(Object.assign({},j),{span:typeof u=="number"?u:(0,M.m9)(e,u)})}),[n,e])}function W(e,t,o){let n=e,l=!1;return(o===void 0||o>t)&&(n=Object.assign(Object.assign({},e),{span:t}),l=o!==void 0),[n,l]}function P(e,t){const o=[];let n=[],l=t,i=!1;return e.filter(u=>u).forEach((u,j)=>{const D=u==null?void 0:u.span,S=D||1;if(j===e.length-1){const[b,B]=W(u,l,D);i=i||B,n.push(b),o.push(n);return}if(S{const[o,n]=(0,r.useMemo)(()=>P(t,e),[t,e]);return o},_=e=>{let{children:t}=e;return t};function R(e){return e!=null}var a=e=>{const{itemPrefixCls:t,component:o,span:n,className:l,style:i,labelStyle:u,contentStyle:j,bordered:D,label:S,content:b,colon:B}=e,X=o;return D?r.createElement(X,{className:O()({[`${t}-item-label`]:R(S),[`${t}-item-content`]:R(b)},l),style:i,colSpan:n},R(S)&&r.createElement("span",{style:u},S),R(b)&&r.createElement("span",{style:j},b)):r.createElement(X,{className:O()(`${t}-item`,l),style:i,colSpan:n},r.createElement("div",{className:`${t}-item-container`},(S||S===0)&&r.createElement("span",{className:O()(`${t}-item-label`,{[`${t}-item-no-colon`]:!B}),style:u},S),(b||b===0)&&r.createElement("span",{className:O()(`${t}-item-content`),style:j},b)))};function z(e,t,o){let{colon:n,prefixCls:l,bordered:i}=t,{component:u,type:j,showLabel:D,showContent:S,labelStyle:b,contentStyle:B}=o;return e.map((X,V)=>{let{label:te,children:ie,prefixCls:ne=l,className:se,style:re,labelStyle:A,contentStyle:F,span:Y=1,key:le}=X;return typeof u=="string"?r.createElement(a,{key:`${j}-${le||V}`,className:se,style:re,labelStyle:Object.assign(Object.assign({},b),A),contentStyle:Object.assign(Object.assign({},B),F),span:Y,colon:n,component:u,itemPrefixCls:ne,bordered:i,label:D?te:null,content:S?ie:null}):[r.createElement(a,{key:`label-${le||V}`,className:se,style:Object.assign(Object.assign(Object.assign({},b),re),A),span:1,colon:n,component:u[0],itemPrefixCls:ne,bordered:i,label:te}),r.createElement(a,{key:`content-${le||V}`,className:se,style:Object.assign(Object.assign(Object.assign({},B),re),F),span:Y*2-1,component:u[1],itemPrefixCls:ne,bordered:i,content:ie})]})}var d=e=>{const t=r.useContext(I),{prefixCls:o,vertical:n,row:l,index:i,bordered:u}=e;return n?r.createElement(r.Fragment,null,r.createElement("tr",{key:`label-${i}`,className:`${o}-row`},z(l,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),r.createElement("tr",{key:`content-${i}`,className:`${o}-row`},z(l,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):r.createElement("tr",{key:i,className:`${o}-row`},z(l,e,Object.assign({component:u?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},c=s(26477),p=s(4614),E=s(44244),v=s(25830);const f=e=>{const{componentCls:t,labelBg:o}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${t}-row`]:{borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,c.bf)(e.padding)} ${(0,c.bf)(e.paddingLG)}`,borderInlineEnd:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:o,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,c.bf)(e.paddingSM)} ${(0,c.bf)(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,c.bf)(e.paddingXS)} ${(0,c.bf)(e.padding)}`}}}}}},C=e=>{const{componentCls:t,extraColor:o,itemPaddingBottom:n,colonMarginRight:l,colonMarginLeft:i,titleMarginBottom:u}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,p.Wf)(e)),f(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:u},[`${t}-title`]:Object.assign(Object.assign({},p.vS),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:o,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,c.bf)(i)} ${(0,c.bf)(l)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},m=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText});var h=(0,E.I$)("Descriptions",e=>{const t=(0,v.TS)(e,{});return C(t)},m),$=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l{const{prefixCls:t,title:o,extra:n,column:l,colon:i=!0,bordered:u,layout:j,children:D,className:S,rootClassName:b,style:B,size:X,labelStyle:V,contentStyle:te,items:ie}=e,ne=$(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:se,direction:re,descriptions:A}=r.useContext(J.E_),F=se("descriptions",t),Y=(0,K.Z)(),le=r.useMemo(()=>{var ae;return typeof l=="number"?l:(ae=(0,M.m9)(Y,Object.assign(Object.assign({},H),l)))!==null&&ae!==void 0?ae:3},[Y,l]),fe=k(Y,ie,D),ce=(0,L.Z)(X),pe=G(le,fe),[ge,Ee]=h(F),ve=r.useMemo(()=>({labelStyle:V,contentStyle:te}),[V,te]);return ge(r.createElement(I.Provider,{value:ve},r.createElement("div",Object.assign({className:O()(F,A==null?void 0:A.className,{[`${F}-${ce}`]:ce&&ce!=="default",[`${F}-bordered`]:!!u,[`${F}-rtl`]:re==="rtl"},S,b,Ee),style:Object.assign(Object.assign({},A==null?void 0:A.style),B)},ne),(o||n)&&r.createElement("div",{className:`${F}-header`},o&&r.createElement("div",{className:`${F}-title`},o),n&&r.createElement("div",{className:`${F}-extra`},n)),r.createElement("div",{className:`${F}-view`},r.createElement("table",null,r.createElement("tbody",null,pe.map((ae,me)=>r.createElement(d,{key:me,index:me,colon:i,prefixCls:F,vertical:j==="vertical",bordered:u,row:ae}))))))))};y.Item=_;var x=y},45161:function(de,Z,s){s.d(Z,{Z:function(){return z}});var r=s(79685),T=s(28120),O=s(23196),M=s(68591),J=s.n(M),L=s(99248),K=s(57196),H=g=>{const{value:d,formatter:c,precision:p,decimalSeparator:E,groupSeparator:v="",prefixCls:f}=g;let C;if(typeof c=="function")C=c(d);else{const m=String(d),h=m.match(/^(-?)(\d*)(\.(\d+))?$/);if(!h||m==="-")C=m;else{const $=h[1];let y=h[2]||"0",x=h[4]||"";y=y.replace(/\B(?=(\d{3})+(?!\d))/g,v),typeof p=="number"&&(x=x.padEnd(p,"0").slice(0,p>0?p:0)),x&&(x=`${E}${x}`),C=[r.createElement("span",{key:"int",className:`${f}-content-value-int`},$,y),x&&r.createElement("span",{key:"decimal",className:`${f}-content-value-decimal`},x)]}}return r.createElement("span",{className:`${f}-content-value`},C)},oe=s(4614),I=s(44244),Q=s(25830);const N=g=>{const{componentCls:d,marginXXS:c,padding:p,colorTextDescription:E,titleFontSize:v,colorTextHeading:f,contentFontSize:C,fontFamily:m}=g;return{[`${d}`]:Object.assign(Object.assign({},(0,oe.Wf)(g)),{[`${d}-title`]:{marginBottom:c,color:E,fontSize:v},[`${d}-skeleton`]:{paddingTop:p},[`${d}-content`]:{color:f,fontSize:C,fontFamily:m,[`${d}-content-value`]:{display:"inline-block",direction:"ltr"},[`${d}-content-prefix, ${d}-content-suffix`]:{display:"inline-block"},[`${d}-content-prefix`]:{marginInlineEnd:c},[`${d}-content-suffix`]:{marginInlineStart:c}}})}},q=g=>{const{fontSizeHeading3:d,fontSize:c}=g;return{titleFontSize:c,contentFontSize:d}};var k=(0,I.I$)("Statistic",g=>{const d=(0,Q.TS)(g,{});return[N(d)]},q),P=g=>{const{prefixCls:d,className:c,rootClassName:p,style:E,valueStyle:v,value:f=0,title:C,valueRender:m,prefix:h,suffix:$,loading:y=!1,onMouseEnter:x,onMouseLeave:e,decimalSeparator:t=".",groupSeparator:o=","}=g,{getPrefixCls:n,direction:l,statistic:i}=r.useContext(L.E_),u=n("statistic",d),[j,D]=k(u),S=r.createElement(H,Object.assign({decimalSeparator:t,groupSeparator:o,prefixCls:u},g,{value:f})),b=J()(u,{[`${u}-rtl`]:l==="rtl"},i==null?void 0:i.className,c,p,D);return j(r.createElement("div",{className:b,style:Object.assign(Object.assign({},i==null?void 0:i.style),E),onMouseEnter:x,onMouseLeave:e},C&&r.createElement("div",{className:`${u}-title`},C),r.createElement(K.Z,{paragraph:!1,loading:y,className:`${u}-skeleton`},r.createElement("div",{style:v,className:`${u}-content`},h&&r.createElement("span",{className:`${u}-content-prefix`},h),m?m(S):S,$&&r.createElement("span",{className:`${u}-content-suffix`},$)))))};const ue=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function G(g,d){let c=g;const p=/\[[^\]]*]/g,E=(d.match(p)||[]).map(m=>m.slice(1,-1)),v=d.replace(p,"[]"),f=ue.reduce((m,h)=>{let[$,y]=h;if(m.includes($)){const x=Math.floor(c/y);return c-=x*y,m.replace(new RegExp(`${$}+`,"g"),e=>{const t=e.length;return x.toString().padStart(t,"0")})}return m},v);let C=0;return f.replace(p,()=>{const m=E[C];return C+=1,m})}function U(g,d){const{format:c=""}=d,p=new Date(g).getTime(),E=Date.now(),v=Math.max(p-E,0);return G(v,c)}const _=1e3/30;function R(g){return new Date(g).getTime()}const ee=g=>{const{value:d,format:c="HH:mm:ss",onChange:p,onFinish:E}=g,v=(0,T.Z)(),f=r.useRef(null),C=()=>{E==null||E(),f.current&&(clearInterval(f.current),f.current=null)},m=()=>{const y=R(d);y>=Date.now()&&(f.current=setInterval(()=>{v(),p==null||p(y-Date.now()),y(m(),()=>{f.current&&(clearInterval(f.current),f.current=null)}),[d]);const h=(y,x)=>U(y,Object.assign(Object.assign({},x),{format:c})),$=y=>(0,O.Tm)(y,{title:void 0});return r.createElement(P,Object.assign({},g,{valueRender:$,formatter:h}))};var a=r.memo(ee);P.Countdown=a;var z=P}}]); diff --git a/p__list__basic-list__index.9e1cbaea.async.js b/p__list__basic-list__index.9e1cbaea.async.js deleted file mode 100644 index 8b703012..00000000 --- a/p__list__basic-list__index.9e1cbaea.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6202],{24519:function(He,k,n){n.r(k),n.d(k,{BasicList:function(){return $},default:function(){return Ae}});var J=n(28152),B=n.n(J),K=n(82574),Q=n(1442),W=n(95943),v=n(27533),H=n(22900),U=n(33952),q=n(17519),_=n(45319),ee=n(10591),N=n(50304),te=n(23870),E=n(82099),A=n(90543),ne=n(21757),b=n(47100),ae=n(5726),re=n.n(ae),D=n(50959),se=n(13448),o=n.n(se),ie=n(74815),y=n.n(ie),ue=n(76022),le=n(60010),oe=n(98150),de=n(79712),ce=n(59224),me=n(6053),he=n(21320),d=n.n(he),pe=n(8700),xe=(0,pe.kc)(function(i){var a,s,t=i.token;return{standardList:d()({".ant-card-head":{borderBottom:"none"},".ant-card-head-title":{padding:"24px 0",lineHeight:"32px"},".ant-card-extra":{padding:"24px 0"},".ant-list-pagination":{marginTop:"24px",textAlign:"right"},".ant-avatar-lg":{width:"48px",height:"48px",lineHeight:"48px"}},"@media screen and (max-width: ".concat(t.screenXS,"px)"),{".ant-list-item-content":{display:"block",flex:"none",width:"100%"},".ant-list-item-action":{marginLeft:"0"}}),headerInfo:d()({position:"relative",textAlign:"center","& > span":{display:"inline-block",marginBottom:"4px",color:t.colorTextSecondary,fontSize:t.fontSize,lineHeight:"22px"},"& > p":{margin:"0",color:t.colorTextHeading,fontSize:"24px",lineHeight:"32px"},"& > em":{position:"absolute",top:"0",right:"0",width:"1px",height:"56px",backgroundColor:t.colorSplit}},"@media screen and (max-width: ".concat(t.screenSM,"px)"),{marginBottom:"16px","& > em":{display:"none"}}),listContent:(a={fontSize:"0"},d()(a,"@media screen and (max-width: ".concat(t.screenXS,"px)"),{marginLeft:"0","& > div":{marginLeft:"0"}}),d()(a,"@media screen and (max-width: ".concat(t.screenMD,"px)"),{"& > div":{display:"block"},"& > div:last-child":{top:"0",width:"100%"}}),d()(a,"@media screen and (max-width: ".concat(t.screenLG,"px) and (min-width: @screen-md)"),{"& > div":{display:"block"},"& > div:last-child":{top:"0",width:"100%"}}),d()(a,"@media screen and (max-width: ".concat(t.screenXL,"px)"),{"& > div":{marginLeft:"24px"},"& > div:last-child":{top:"0"}}),d()(a,"@media screen and (max-width: 1400px)",{textAlign:"right","& > div:last-child":{top:"0"}}),a),listContentItem:{display:"inline-block",marginLeft:"40px",color:t.colorTextSecondary,fontSize:t.fontSize,verticalAlign:"middle","> span":{lineHeight:"20px"},"> p":{marginTop:"4px",marginBottom:"0",lineHeight:"22px"}},extraContentSearch:d()({width:"272px",marginLeft:"16px"},"@media screen and (max-width: ".concat(t.screenSM,"px)"),{width:"100%",marginLeft:"0"}),listCard:(s={},d()(s,"@media screen and (max-width: ".concat(t.screenXS,"px)"),{".ant-card-head-title":{overflow:"open"}}),d()(s,"@media screen and (max-width: ".concat(t.screenMD,"px)"),{".ant-radio-group":{display:"block",marginBottom:"8px"}}),s),standardListForm:{".ant-form-item":{marginBottom:"12px","&:last-child":{marginBottom:"32px",paddingTop:"4px"}}},formResult:{width:"100%","[class^='title']":{marginBottom:"8px"}}}}),C=xe,e=n(11527),ve=function(a){var s=C(),t=s.styles,l=a.done,m=a.open,c=a.current,g=a.onDone,h=a.onSubmit,I=a.children;return m?(0,e.jsx)(ue.Y,{open:m,title:l?null:"\u4EFB\u52A1".concat(c?"\u7F16\u8F91":"\u6DFB\u52A0"),className:t.standardListForm,width:640,onFinish:function(){var p=y()(o()().mark(function S(F){return o()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:h(F);case 1:case"end":return j.stop()}},S)}));return function(S){return p.apply(this,arguments)}}(),initialValues:c,submitter:{render:function(S,F){return l?null:F}},trigger:(0,e.jsx)(e.Fragment,{children:I}),modalProps:{onCancel:function(){return g()},destroyOnClose:!0,bodyStyle:l?{padding:"72px 0"}:{}},children:l?(0,e.jsx)(me.ZP,{status:"success",title:"\u64CD\u4F5C\u6210\u529F",subTitle:"\u4E00\u7CFB\u5217\u7684\u4FE1\u606F\u63CF\u8FF0\uFF0C\u5F88\u77ED\u540C\u6837\u4E5F\u53EF\u4EE5\u5E26\u6807\u70B9\u3002",extra:(0,e.jsx)(b.ZP,{type:"primary",onClick:g,children:"\u77E5\u9053\u4E86"}),className:t.formResult}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(le.Z,{name:"title",label:"\u4EFB\u52A1\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}],placeholder:"\u8BF7\u8F93\u5165"}),(0,e.jsx)(oe.Z,{name:"createdAt",label:"\u5F00\u59CB\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}],fieldProps:{style:{width:"100%"}},placeholder:"\u8BF7\u9009\u62E9"}),(0,e.jsx)(de.Z,{name:"owner",label:"\u4EFB\u52A1\u8D1F\u8D23\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}],placeholder:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458"}),(0,e.jsx)(ce.Z,{name:"subDescription",label:"\u4EA7\u54C1\u63CF\u8FF0",rules:[{message:"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26\u7684\u4EA7\u54C1\u63CF\u8FF0\uFF01",min:5}],placeholder:"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26"})]})}):null},fe=ve,ge=n(77117),f=n.n(ge);function Fe(i){return L.apply(this,arguments)}function L(){return L=y()(o()().mark(function i(a){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/get_list",{params:a}));case 1:case"end":return t.stop()}},i)})),L.apply(this,arguments)}function je(i){return Z.apply(this,arguments)}function Z(){return Z=y()(o()().mark(function i(a){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},a),{},{method:"delete"})}));case 1:case"end":return t.stop()}},i)})),Z.apply(this,arguments)}function ye(i){return T.apply(this,arguments)}function T(){return T=y()(o()().mark(function i(a){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},a),{},{method:"post"})}));case 1:case"end":return t.stop()}},i)})),T.apply(this,arguments)}function Se(i){return w.apply(this,arguments)}function w(){return w=y()(o()().mark(function i(a){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},a),{},{method:"update"})}));case 1:case"end":return t.stop()}},i)})),w.apply(this,arguments)}var P=H.ZP.Button,Ce=H.ZP.Group,Be=U.Z.Search,M=function(a){var s=a.title,t=a.value,l=a.bordered,m=C(),c=m.styles;return(0,e.jsxs)("div",{className:c.headerInfo,children:[(0,e.jsx)("span",{children:s}),(0,e.jsx)("p",{children:t}),l&&(0,e.jsx)("em",{})]})},Ee=function(a){var s=a.data,t=s.owner,l=s.createdAt,m=s.percent,c=s.status,g=C(),h=g.styles;return(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:h.listContentItem,children:[(0,e.jsx)("span",{children:"Owner"}),(0,e.jsx)("p",{children:t})]}),(0,e.jsxs)("div",{className:h.listContentItem,children:[(0,e.jsx)("span",{children:"\u5F00\u59CB\u65F6\u95F4"}),(0,e.jsx)("p",{children:re()(l).format("YYYY-MM-DD HH:mm")})]}),(0,e.jsx)("div",{className:h.listContentItem,children:(0,e.jsx)(q.Z,{percent:m,status:c,strokeWidth:6,style:{width:180}})})]})},$=function(){var a=C(),s=a.styles,t=(0,D.useState)(!1),l=B()(t,2),m=l[0],c=l[1],g=(0,D.useState)(!1),h=B()(g,2),I=h[0],p=h[1],S=(0,D.useState)(void 0),F=B()(S,2),G=F[0],j=F[1],O=(0,v.useRequest)(function(){return Fe({count:50})}),z=O.data,De=O.loading,Le=O.mutate,Ze=(0,v.useRequest)(function(u,r){return u==="remove"?je(r):u==="update"?Se(r):ye(r)},{manual:!0,onSuccess:function(r){Le(r)}}),Y=Ze.run,X=(z==null?void 0:z.list)||[],Te={showSizeChanger:!0,showQuickJumper:!0,pageSize:5,total:X.length},V=function(r){p(!0),j(r)},we=function(r){Y("remove",{id:r})},Pe=function(r,x){r==="edit"?V(x):r==="delete"&&_.Z.confirm({title:"\u5220\u9664\u4EFB\u52A1",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u4EFB\u52A1\u5417\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){return we(x.id)}})},Me=(0,e.jsxs)("div",{children:[(0,e.jsxs)(Ce,{defaultValue:"all",children:[(0,e.jsx)(P,{value:"all",children:"\u5168\u90E8"}),(0,e.jsx)(P,{value:"progress",children:"\u8FDB\u884C\u4E2D"}),(0,e.jsx)(P,{value:"waiting",children:"\u7B49\u5F85\u4E2D"})]}),(0,e.jsx)(Be,{className:s.extraContentSearch,placeholder:"\u8BF7\u8F93\u5165",onSearch:function(){return{}}})]}),Ie=function(r){var x=r.item;return(0,e.jsx)(ee.Z,{menu:{onClick:function(Re){var ke=Re.key;return Pe(ke,x)},items:[{key:"edit",label:"\u7F16\u8F91"},{key:"delete",label:"\u5220\u9664"}]},children:(0,e.jsxs)("a",{children:["\u66F4\u591A ",(0,e.jsx)(K.Z,{})]})})},Oe=function(){c(!1),p(!1),j({})},ze=function(r){c(!0);var x=r!=null&&r.id?"update":"add";Y(x,r)};return(0,e.jsxs)("div",{children:[(0,e.jsx)(W._z,{children:(0,e.jsxs)("div",{className:s.standardList,children:[(0,e.jsx)(N.Z,{bordered:!1,children:(0,e.jsxs)(te.Z,{children:[(0,e.jsx)(E.Z,{sm:8,xs:24,children:(0,e.jsx)(M,{title:"\u6211\u7684\u5F85\u529E",value:"8\u4E2A\u4EFB\u52A1",bordered:!0})}),(0,e.jsx)(E.Z,{sm:8,xs:24,children:(0,e.jsx)(M,{title:"\u672C\u5468\u4EFB\u52A1\u5E73\u5747\u5904\u7406\u65F6\u95F4",value:"32\u5206\u949F",bordered:!0})}),(0,e.jsx)(E.Z,{sm:8,xs:24,children:(0,e.jsx)(M,{title:"\u672C\u5468\u5B8C\u6210\u4EFB\u52A1\u6570",value:"24\u4E2A\u4EFB\u52A1"})})]})}),(0,e.jsx)(N.Z,{className:s.listCard,bordered:!1,title:"\u57FA\u672C\u5217\u8868",style:{marginTop:24},bodyStyle:{padding:"0 32px 40px 32px"},extra:Me,children:(0,e.jsx)(A.Z,{size:"large",rowKey:"id",loading:De,pagination:Te,dataSource:X,renderItem:function(r){return(0,e.jsxs)(A.Z.Item,{actions:[(0,e.jsx)("a",{onClick:function(R){R.preventDefault(),V(r)},children:"\u7F16\u8F91"},"edit"),(0,e.jsx)(Ie,{item:r},"more")],children:[(0,e.jsx)(A.Z.Item.Meta,{avatar:(0,e.jsx)(ne.C,{src:r.logo,shape:"square",size:"large"}),title:(0,e.jsx)("a",{href:r.href,children:r.title}),description:r.subDescription}),(0,e.jsx)(Ee,{data:r})]})}})})]})}),(0,e.jsxs)(b.ZP,{type:"dashed",onClick:function(){p(!0)},style:{width:"100%",marginBottom:8},children:[(0,e.jsx)(Q.Z,{}),"\u6DFB\u52A0"]}),(0,e.jsx)(fe,{done:m,open:I,current:G,onDone:Oe,onSubmit:ze})]})},Ae=$}}]); diff --git a/p__list__basic-list__index.b7f4cabb.async.js b/p__list__basic-list__index.b7f4cabb.async.js new file mode 100644 index 00000000..82d48701 --- /dev/null +++ b/p__list__basic-list__index.b7f4cabb.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6202],{73301:function(He,k,n){n.r(k),n.d(k,{BasicList:function(){return $},default:function(){return Ae}});var J=n(97380),B=n.n(J),K=n(29514),Q=n(19346),W=n(89336),v=n(8025),H=n(48829),U=n(79714),q=n(40701),_=n(8910),ee=n(37741),N=n(18283),te=n(61728),E=n(43241),A=n(21583),ne=n(61030),b=n(10951),ae=n(50510),re=n.n(ae),D=n(79685),se=n(29195),o=n.n(se),ie=n(56717),y=n.n(ie),ue=n(47481),le=n(30869),oe=n(98347),de=n(5754),ce=n(43602),me=n(94154),he=n(37482),d=n.n(he),pe=n(24507),xe=(0,pe.kc)(function(i){var a,s,t=i.token;return{standardList:d()({".ant-card-head":{borderBottom:"none"},".ant-card-head-title":{padding:"24px 0",lineHeight:"32px"},".ant-card-extra":{padding:"24px 0"},".ant-list-pagination":{marginTop:"24px",textAlign:"right"},".ant-avatar-lg":{width:"48px",height:"48px",lineHeight:"48px"}},"@media screen and (max-width: ".concat(t.screenXS,"px)"),{".ant-list-item-content":{display:"block",flex:"none",width:"100%"},".ant-list-item-action":{marginLeft:"0"}}),headerInfo:d()({position:"relative",textAlign:"center","& > span":{display:"inline-block",marginBottom:"4px",color:t.colorTextSecondary,fontSize:t.fontSize,lineHeight:"22px"},"& > p":{margin:"0",color:t.colorTextHeading,fontSize:"24px",lineHeight:"32px"},"& > em":{position:"absolute",top:"0",right:"0",width:"1px",height:"56px",backgroundColor:t.colorSplit}},"@media screen and (max-width: ".concat(t.screenSM,"px)"),{marginBottom:"16px","& > em":{display:"none"}}),listContent:(a={fontSize:"0"},d()(a,"@media screen and (max-width: ".concat(t.screenXS,"px)"),{marginLeft:"0","& > div":{marginLeft:"0"}}),d()(a,"@media screen and (max-width: ".concat(t.screenMD,"px)"),{"& > div":{display:"block"},"& > div:last-child":{top:"0",width:"100%"}}),d()(a,"@media screen and (max-width: ".concat(t.screenLG,"px) and (min-width: @screen-md)"),{"& > div":{display:"block"},"& > div:last-child":{top:"0",width:"100%"}}),d()(a,"@media screen and (max-width: ".concat(t.screenXL,"px)"),{"& > div":{marginLeft:"24px"},"& > div:last-child":{top:"0"}}),d()(a,"@media screen and (max-width: 1400px)",{textAlign:"right","& > div:last-child":{top:"0"}}),a),listContentItem:{display:"inline-block",marginLeft:"40px",color:t.colorTextSecondary,fontSize:t.fontSize,verticalAlign:"middle","> span":{lineHeight:"20px"},"> p":{marginTop:"4px",marginBottom:"0",lineHeight:"22px"}},extraContentSearch:d()({width:"272px",marginLeft:"16px"},"@media screen and (max-width: ".concat(t.screenSM,"px)"),{width:"100%",marginLeft:"0"}),listCard:(s={},d()(s,"@media screen and (max-width: ".concat(t.screenXS,"px)"),{".ant-card-head-title":{overflow:"open"}}),d()(s,"@media screen and (max-width: ".concat(t.screenMD,"px)"),{".ant-radio-group":{display:"block",marginBottom:"8px"}}),s),standardListForm:{".ant-form-item":{marginBottom:"12px","&:last-child":{marginBottom:"32px",paddingTop:"4px"}}},formResult:{width:"100%","[class^='title']":{marginBottom:"8px"}}}}),C=xe,e=n(63342),ve=function(a){var s=C(),t=s.styles,l=a.done,m=a.open,c=a.current,g=a.onDone,h=a.onSubmit,I=a.children;return m?(0,e.jsx)(ue.Y,{open:m,title:l?null:"\u4EFB\u52A1".concat(c?"\u7F16\u8F91":"\u6DFB\u52A0"),className:t.standardListForm,width:640,onFinish:function(){var p=y()(o()().mark(function S(F){return o()().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:h(F);case 1:case"end":return j.stop()}},S)}));return function(S){return p.apply(this,arguments)}}(),initialValues:c,submitter:{render:function(S,F){return l?null:F}},trigger:(0,e.jsx)(e.Fragment,{children:I}),modalProps:{onCancel:function(){return g()},destroyOnClose:!0,bodyStyle:l?{padding:"72px 0"}:{}},children:l?(0,e.jsx)(me.ZP,{status:"success",title:"\u64CD\u4F5C\u6210\u529F",subTitle:"\u4E00\u7CFB\u5217\u7684\u4FE1\u606F\u63CF\u8FF0\uFF0C\u5F88\u77ED\u540C\u6837\u4E5F\u53EF\u4EE5\u5E26\u6807\u70B9\u3002",extra:(0,e.jsx)(b.ZP,{type:"primary",onClick:g,children:"\u77E5\u9053\u4E86"}),className:t.formResult}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(le.Z,{name:"title",label:"\u4EFB\u52A1\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}],placeholder:"\u8BF7\u8F93\u5165"}),(0,e.jsx)(oe.Z,{name:"createdAt",label:"\u5F00\u59CB\u65F6\u95F4",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"}],fieldProps:{style:{width:"100%"}},placeholder:"\u8BF7\u9009\u62E9"}),(0,e.jsx)(de.Z,{name:"owner",label:"\u4EFB\u52A1\u8D1F\u8D23\u4EBA",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u8D1F\u8D23\u4EBA"}],options:[{label:"\u4ED8\u6653\u6653",value:"xiao"},{label:"\u5468\u6BDB\u6BDB",value:"mao"}],placeholder:"\u8BF7\u9009\u62E9\u7BA1\u7406\u5458"}),(0,e.jsx)(ce.Z,{name:"subDescription",label:"\u4EA7\u54C1\u63CF\u8FF0",rules:[{message:"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26\u7684\u4EA7\u54C1\u63CF\u8FF0\uFF01",min:5}],placeholder:"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26"})]})}):null},fe=ve,ge=n(42329),f=n.n(ge);function Fe(i){return L.apply(this,arguments)}function L(){return L=y()(o()().mark(function i(a){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/get_list",{params:a}));case 1:case"end":return t.stop()}},i)})),L.apply(this,arguments)}function je(i){return Z.apply(this,arguments)}function Z(){return Z=y()(o()().mark(function i(a){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},a),{},{method:"delete"})}));case 1:case"end":return t.stop()}},i)})),Z.apply(this,arguments)}function ye(i){return T.apply(this,arguments)}function T(){return T=y()(o()().mark(function i(a){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},a),{},{method:"post"})}));case 1:case"end":return t.stop()}},i)})),T.apply(this,arguments)}function Se(i){return w.apply(this,arguments)}function w(){return w=y()(o()().mark(function i(a){return o()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},a),{},{method:"update"})}));case 1:case"end":return t.stop()}},i)})),w.apply(this,arguments)}var P=H.ZP.Button,Ce=H.ZP.Group,Be=U.Z.Search,M=function(a){var s=a.title,t=a.value,l=a.bordered,m=C(),c=m.styles;return(0,e.jsxs)("div",{className:c.headerInfo,children:[(0,e.jsx)("span",{children:s}),(0,e.jsx)("p",{children:t}),l&&(0,e.jsx)("em",{})]})},Ee=function(a){var s=a.data,t=s.owner,l=s.createdAt,m=s.percent,c=s.status,g=C(),h=g.styles;return(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:h.listContentItem,children:[(0,e.jsx)("span",{children:"Owner"}),(0,e.jsx)("p",{children:t})]}),(0,e.jsxs)("div",{className:h.listContentItem,children:[(0,e.jsx)("span",{children:"\u5F00\u59CB\u65F6\u95F4"}),(0,e.jsx)("p",{children:re()(l).format("YYYY-MM-DD HH:mm")})]}),(0,e.jsx)("div",{className:h.listContentItem,children:(0,e.jsx)(q.Z,{percent:m,status:c,strokeWidth:6,style:{width:180}})})]})},$=function(){var a=C(),s=a.styles,t=(0,D.useState)(!1),l=B()(t,2),m=l[0],c=l[1],g=(0,D.useState)(!1),h=B()(g,2),I=h[0],p=h[1],S=(0,D.useState)(void 0),F=B()(S,2),G=F[0],j=F[1],O=(0,v.useRequest)(function(){return Fe({count:50})}),z=O.data,De=O.loading,Le=O.mutate,Ze=(0,v.useRequest)(function(u,r){return u==="remove"?je(r):u==="update"?Se(r):ye(r)},{manual:!0,onSuccess:function(r){Le(r)}}),Y=Ze.run,X=(z==null?void 0:z.list)||[],Te={showSizeChanger:!0,showQuickJumper:!0,pageSize:5,total:X.length},V=function(r){p(!0),j(r)},we=function(r){Y("remove",{id:r})},Pe=function(r,x){r==="edit"?V(x):r==="delete"&&_.Z.confirm({title:"\u5220\u9664\u4EFB\u52A1",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u4EFB\u52A1\u5417\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:function(){return we(x.id)}})},Me=(0,e.jsxs)("div",{children:[(0,e.jsxs)(Ce,{defaultValue:"all",children:[(0,e.jsx)(P,{value:"all",children:"\u5168\u90E8"}),(0,e.jsx)(P,{value:"progress",children:"\u8FDB\u884C\u4E2D"}),(0,e.jsx)(P,{value:"waiting",children:"\u7B49\u5F85\u4E2D"})]}),(0,e.jsx)(Be,{className:s.extraContentSearch,placeholder:"\u8BF7\u8F93\u5165",onSearch:function(){return{}}})]}),Ie=function(r){var x=r.item;return(0,e.jsx)(ee.Z,{menu:{onClick:function(Re){var ke=Re.key;return Pe(ke,x)},items:[{key:"edit",label:"\u7F16\u8F91"},{key:"delete",label:"\u5220\u9664"}]},children:(0,e.jsxs)("a",{children:["\u66F4\u591A ",(0,e.jsx)(K.Z,{})]})})},Oe=function(){c(!1),p(!1),j({})},ze=function(r){c(!0);var x=r!=null&&r.id?"update":"add";Y(x,r)};return(0,e.jsxs)("div",{children:[(0,e.jsx)(W._z,{children:(0,e.jsxs)("div",{className:s.standardList,children:[(0,e.jsx)(N.Z,{bordered:!1,children:(0,e.jsxs)(te.Z,{children:[(0,e.jsx)(E.Z,{sm:8,xs:24,children:(0,e.jsx)(M,{title:"\u6211\u7684\u5F85\u529E",value:"8\u4E2A\u4EFB\u52A1",bordered:!0})}),(0,e.jsx)(E.Z,{sm:8,xs:24,children:(0,e.jsx)(M,{title:"\u672C\u5468\u4EFB\u52A1\u5E73\u5747\u5904\u7406\u65F6\u95F4",value:"32\u5206\u949F",bordered:!0})}),(0,e.jsx)(E.Z,{sm:8,xs:24,children:(0,e.jsx)(M,{title:"\u672C\u5468\u5B8C\u6210\u4EFB\u52A1\u6570",value:"24\u4E2A\u4EFB\u52A1"})})]})}),(0,e.jsx)(N.Z,{className:s.listCard,bordered:!1,title:"\u57FA\u672C\u5217\u8868",style:{marginTop:24},bodyStyle:{padding:"0 32px 40px 32px"},extra:Me,children:(0,e.jsx)(A.Z,{size:"large",rowKey:"id",loading:De,pagination:Te,dataSource:X,renderItem:function(r){return(0,e.jsxs)(A.Z.Item,{actions:[(0,e.jsx)("a",{onClick:function(R){R.preventDefault(),V(r)},children:"\u7F16\u8F91"},"edit"),(0,e.jsx)(Ie,{item:r},"more")],children:[(0,e.jsx)(A.Z.Item.Meta,{avatar:(0,e.jsx)(ne.C,{src:r.logo,shape:"square",size:"large"}),title:(0,e.jsx)("a",{href:r.href,children:r.title}),description:r.subDescription}),(0,e.jsx)(Ee,{data:r})]})}})})]})}),(0,e.jsxs)(b.ZP,{type:"dashed",onClick:function(){p(!0)},style:{width:"100%",marginBottom:8},children:[(0,e.jsx)(Q.Z,{}),"\u6DFB\u52A0"]}),(0,e.jsx)(fe,{done:m,open:I,current:G,onDone:Oe,onSubmit:ze})]})},Ae=$}}]); diff --git a/p__list__card-list__index.099d8041.async.js b/p__list__card-list__index.099d8041.async.js new file mode 100644 index 00000000..2938330f --- /dev/null +++ b/p__list__card-list__index.099d8041.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8497],{19346:function(y,l,a){var d=a(93264),c=a(79685),g=a(96818),p=a(64507),i=function(u,m){return c.createElement(p.Z,(0,d.Z)((0,d.Z)({},u),{},{ref:m,icon:g.Z}))};i.displayName="PlusOutlined",l.Z=c.forwardRef(i)},73475:function(y,l,a){a.r(l),a.d(l,{default:function(){return I}});var d=a(31013),c=a.n(d),g=a(19346),p=a(89336),i=a(8025),C=a(25480),u=a(21583),m=a(18283),f=a(10951),j=a(29195),E=a.n(j),D=a(56717),B=a.n(D);function F(o){return h.apply(this,arguments)}function h(){return h=B()(E()().mark(function o(r){return E()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.request)("/api/card_fake_list",{params:r}));case 1:case"end":return e.stop()}},o)})),h.apply(this,arguments)}var A=a(37482),x=a.n(A),P=a(24507),L=(0,P.kc)(function(o){var r,n=o.token;return{card:{".ant-card-meta-title":{marginBottom:"12px","& > a":{display:"inline-block",maxWidth:"100%",color:n.colorTextHeading}},".ant-card-body:hover":{".ant-card-meta-title > a":{color:n.colorPrimary}}},item:{height:"64px"},cardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},extraImg:x()({width:"155px",marginTop:"-20px",textAlign:"center",img:{width:"100%"}},"@media screen and (max-width: ".concat(n.screenMD,"px)"),{display:"none"}),newButton:{width:"100%",height:"201px",color:n.colorTextSecondary,backgroundColor:n.colorBgContainer,borderColor:n.colorBorder},cardAvatar:{width:"48px",height:"48px",borderRadius:"48px"},cardDescription:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all"},pageHeaderContent:x()({position:"relative"},"@media screen and (max-width: ".concat(n.screenSM,"px)"),{paddingBottom:"30px"}),contentLink:(r={marginTop:"16px",a:{marginRight:"32px",img:{width:"24px"}},img:{marginRight:"8px",verticalAlign:"middle"}},x()(r,"@media screen and (max-width: ".concat(n.screenLG,"px)"),{a:{marginRight:"16px"}}),x()(r,"@media screen and (max-width: ".concat(n.screenSM,"px)"),{position:"absolute",bottom:"-4px",left:"0",width:"1000px",a:{marginRight:"16px"},img:{marginRight:"4px"}}),r)}}),R=L,t=a(63342),O=C.Z.Paragraph,M=function(){var r=R(),n=r.styles,e=(0,i.useRequest)(function(){return F({count:8})}),v=e.data,T=e.loading,Z=(v==null?void 0:v.list)||[],N=(0,t.jsxs)("div",{className:n.pageHeaderContent,children:[(0,t.jsx)("p",{children:"\u6BB5\u843D\u793A\u610F\uFF1A\u8682\u8681\u91D1\u670D\u52A1\u8BBE\u8BA1\u5E73\u53F0 ant.design\uFF0C\u7528\u6700\u5C0F\u7684\u5DE5\u4F5C\u91CF\uFF0C\u65E0\u7F1D\u63A5\u5165\u8682\u8681\u91D1\u670D\u751F\u6001\uFF0C \u63D0\u4F9B\u8DE8\u8D8A\u8BBE\u8BA1\u4E0E\u5F00\u53D1\u7684\u4F53\u9A8C\u89E3\u51B3\u65B9\u6848\u3002"}),(0,t.jsxs)("div",{className:n.contentLink,children:[(0,t.jsxs)("a",{children:[(0,t.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/MjEImQtenlyueSmVEfUD.svg"})," ","\u5FEB\u901F\u5F00\u59CB"]}),(0,t.jsxs)("a",{children:[(0,t.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/NbuDUAuBlIApFuDvWiND.svg"})," ","\u4EA7\u54C1\u7B80\u4ECB"]}),(0,t.jsxs)("a",{children:[(0,t.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/ohOEPSYdDTNnyMbGuyLb.svg"})," ","\u4EA7\u54C1\u6587\u6863"]})]})]}),w=(0,t.jsx)("div",{className:n.extraImg,children:(0,t.jsx)("img",{alt:"\u8FD9\u662F\u4E00\u4E2A\u6807\u9898",src:"https://gw.alipayobjects.com/zos/rmsportal/RzwpdLnhmvDJToTdfDPe.png"})}),S={};return(0,t.jsx)(p._z,{content:N,extraContent:w,children:(0,t.jsx)("div",{className:n.cardList,children:(0,t.jsx)(u.Z,{rowKey:"id",loading:T,grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},dataSource:[S].concat(c()(Z)),renderItem:function(s){return s&&s.id?(0,t.jsx)(u.Z.Item,{children:(0,t.jsx)(m.Z,{hoverable:!0,className:n.card,actions:[(0,t.jsx)("a",{children:"\u64CD\u4F5C\u4E00"},"option1"),(0,t.jsx)("a",{children:"\u64CD\u4F5C\u4E8C"},"option2")],children:(0,t.jsx)(m.Z.Meta,{avatar:(0,t.jsx)("img",{alt:"",className:n.cardAvatar,src:s.avatar}),title:(0,t.jsx)("a",{children:s.title}),description:(0,t.jsx)(O,{className:n.item,ellipsis:{rows:3},children:s.description})})})},s.id):(0,t.jsx)(u.Z.Item,{children:(0,t.jsxs)(f.ZP,{type:"dashed",className:n.newButton,children:[(0,t.jsx)(g.Z,{})," \u65B0\u589E\u4EA7\u54C1"]})})}})})})},I=M}}]); diff --git a/p__list__card-list__index.cf2dd443.async.js b/p__list__card-list__index.cf2dd443.async.js deleted file mode 100644 index 0c842155..00000000 --- a/p__list__card-list__index.cf2dd443.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8497],{1442:function(ae,j,i){var s=i(33346),E=i(50959),y=i(63374),D=i(69164),p=function(x,O){return E.createElement(D.Z,(0,s.Z)((0,s.Z)({},x),{},{ref:O,icon:y.Z}))};p.displayName="PlusOutlined",j.Z=E.forwardRef(p)},43214:function(ae,j,i){i.r(j),i.d(j,{default:function(){return q}});var s=i(67855),E=i.n(s),y=i(1442),D=i(95943),p=i(27533),A=i(52058),x=i(90543),O=i(50304),Z=i(47100),re=i(13448),z=i.n(re),o=i(74815),h=i.n(o);function K($){return T.apply(this,arguments)}function T(){return T=h()(z()().mark(function $(m){return z()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,p.request)("/api/card_fake_list",{params:m}));case 1:case"end":return v.stop()}},$)})),T.apply(this,arguments)}var U=i(21320),B=i.n(U),X=i(8700),V=(0,X.kc)(function($){var m,l=$.token;return{card:{".ant-card-meta-title":{marginBottom:"12px","& > a":{display:"inline-block",maxWidth:"100%",color:l.colorTextHeading}},".ant-card-body:hover":{".ant-card-meta-title > a":{color:l.colorPrimary}}},item:{height:"64px"},cardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},extraImg:B()({width:"155px",marginTop:"-20px",textAlign:"center",img:{width:"100%"}},"@media screen and (max-width: ".concat(l.screenMD,"px)"),{display:"none"}),newButton:{width:"100%",height:"201px",color:l.colorTextSecondary,backgroundColor:l.colorBgContainer,borderColor:l.colorBorder},cardAvatar:{width:"48px",height:"48px",borderRadius:"48px"},cardDescription:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"break-all"},pageHeaderContent:B()({position:"relative"},"@media screen and (max-width: ".concat(l.screenSM,"px)"),{paddingBottom:"30px"}),contentLink:(m={marginTop:"16px",a:{marginRight:"32px",img:{width:"24px"}},img:{marginRight:"8px",verticalAlign:"middle"}},B()(m,"@media screen and (max-width: ".concat(l.screenLG,"px)"),{a:{marginRight:"16px"}}),B()(m,"@media screen and (max-width: ".concat(l.screenSM,"px)"),{position:"absolute",bottom:"-4px",left:"0",width:"1000px",a:{marginRight:"16px"},img:{marginRight:"4px"}}),m)}}),J=V,d=i(11527),Q=A.Z.Paragraph,Y=function(){var m=J(),l=m.styles,v=(0,p.useRequest)(function(){return K({count:8})}),M=v.data,_=v.loading,ne=(M==null?void 0:M.list)||[],k=(0,d.jsxs)("div",{className:l.pageHeaderContent,children:[(0,d.jsx)("p",{children:"\u6BB5\u843D\u793A\u610F\uFF1A\u8682\u8681\u91D1\u670D\u52A1\u8BBE\u8BA1\u5E73\u53F0 ant.design\uFF0C\u7528\u6700\u5C0F\u7684\u5DE5\u4F5C\u91CF\uFF0C\u65E0\u7F1D\u63A5\u5165\u8682\u8681\u91D1\u670D\u751F\u6001\uFF0C \u63D0\u4F9B\u8DE8\u8D8A\u8BBE\u8BA1\u4E0E\u5F00\u53D1\u7684\u4F53\u9A8C\u89E3\u51B3\u65B9\u6848\u3002"}),(0,d.jsxs)("div",{className:l.contentLink,children:[(0,d.jsxs)("a",{children:[(0,d.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/MjEImQtenlyueSmVEfUD.svg"})," ","\u5FEB\u901F\u5F00\u59CB"]}),(0,d.jsxs)("a",{children:[(0,d.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/NbuDUAuBlIApFuDvWiND.svg"})," ","\u4EA7\u54C1\u7B80\u4ECB"]}),(0,d.jsxs)("a",{children:[(0,d.jsx)("img",{alt:"",src:"https://gw.alipayobjects.com/zos/rmsportal/ohOEPSYdDTNnyMbGuyLb.svg"})," ","\u4EA7\u54C1\u6587\u6863"]})]})]}),F=(0,d.jsx)("div",{className:l.extraImg,children:(0,d.jsx)("img",{alt:"\u8FD9\u662F\u4E00\u4E2A\u6807\u9898",src:"https://gw.alipayobjects.com/zos/rmsportal/RzwpdLnhmvDJToTdfDPe.png"})}),ee={};return(0,d.jsx)(D._z,{content:k,extraContent:F,children:(0,d.jsx)("div",{className:l.cardList,children:(0,d.jsx)(x.Z,{rowKey:"id",loading:_,grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},dataSource:[ee].concat(E()(ne)),renderItem:function(r){return r&&r.id?(0,d.jsx)(x.Z.Item,{children:(0,d.jsx)(O.Z,{hoverable:!0,className:l.card,actions:[(0,d.jsx)("a",{children:"\u64CD\u4F5C\u4E00"},"option1"),(0,d.jsx)("a",{children:"\u64CD\u4F5C\u4E8C"},"option2")],children:(0,d.jsx)(O.Z.Meta,{avatar:(0,d.jsx)("img",{alt:"",className:l.cardAvatar,src:r.avatar}),title:(0,d.jsx)("a",{children:r.title}),description:(0,d.jsx)(Q,{className:l.item,ellipsis:{rows:3},children:r.description})})})},r.id):(0,d.jsx)(x.Z.Item,{children:(0,d.jsxs)(Z.ZP,{type:"dashed",className:l.newButton,children:[(0,d.jsx)(y.Z,{})," \u65B0\u589E\u4EA7\u54C1"]})})}})})})},q=Y},50304:function(ae,j,i){i.d(j,{Z:function(){return ee}});var s=i(50959),E=i(84875),y=i.n(E),D=i(87017),p=i(31594),A=i(17436),x=i(25670),O=i(66146),Z=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{var{prefixCls:r,className:t,hoverable:a=!0}=e,n=Z(e,["prefixCls","className","hoverable"]);const{getPrefixCls:u}=s.useContext(p.E_),g=u("card",r),S=y()(`${g}-grid`,t,{[`${g}-grid-hoverable`]:a});return s.createElement("div",Object.assign({},n,{className:S}))},o=i(60076),h=i(6301),K=i(81501),T=i(90467);const U=e=>{const{antCls:r,componentCls:t,headerHeight:a,cardPaddingBase:n,tabsMarginBottom:u}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,o.bf)(n)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)} 0 0`},(0,h.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},h.vS),{[` - > ${t}-typography, - > ${t}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${r}-tabs-top`]:{clear:"both",marginBottom:u,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},B=e=>{const{cardPaddingBase:r,colorBorderSecondary:t,cardShadow:a,lineWidth:n}=e;return{width:"33.33%",padding:r,border:0,borderRadius:0,boxShadow:` - ${(0,o.bf)(n)} 0 0 0 ${t}, - 0 ${(0,o.bf)(n)} 0 0 ${t}, - ${(0,o.bf)(n)} ${(0,o.bf)(n)} 0 0 ${t}, - ${(0,o.bf)(n)} 0 0 0 ${t} inset, - 0 ${(0,o.bf)(n)} 0 0 ${t} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},X=e=>{const{componentCls:r,iconCls:t,actionsLiMargin:a,cardActionsIconSize:n,colorBorderSecondary:u,actionsBg:g}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:g,borderTop:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${u}`,display:"flex",borderRadius:`0 0 ${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)}`},(0,h.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${r}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,o.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:n,lineHeight:(0,o.bf)(e.calc(n).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${u}`}}})},V=e=>Object.assign(Object.assign({margin:`${(0,o.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,h.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},h.vS),"&-description":{color:e.colorTextDescription}}),J=e=>{const{componentCls:r,cardPaddingBase:t,colorFillAlter:a}=e;return{[`${r}-head`]:{padding:`0 ${(0,o.bf)(t)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${r}-body`]:{padding:`${(0,o.bf)(e.padding)} ${(0,o.bf)(t)}`}}},d=e=>{const{componentCls:r}=e;return{overflow:"hidden",[`${r}-body`]:{userSelect:"none"}}},Q=e=>{const{antCls:r,componentCls:t,cardShadow:a,cardHeadPadding:n,colorBorderSecondary:u,boxShadowTertiary:g,cardPaddingBase:S,extraColor:f}=e;return{[t]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:g},[`${t}-head`]:U(e),[`${t}-extra`]:{marginInlineStart:"auto",color:f,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:S,borderRadius:` 0 0 ${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)}`},(0,h.dF)()),[`${t}-grid`]:B(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${r}-image-mask`]:{borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:X(e),[`${t}-meta`]:V(e)}),[`${t}-bordered`]:{border:`${(0,o.bf)(e.lineWidth)} ${e.lineType} ${u}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${t}-contain-grid`]:{borderRadius:`${(0,o.bf)(e.borderRadiusLG)} ${(0,o.bf)(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:J(e),[`${t}-loading`]:d(e),[`${t}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:r,cardPaddingSM:t,headerHeightSM:a,headerFontSizeSM:n}=e;return{[`${r}-small`]:{[`> ${r}-head`]:{minHeight:a,padding:`0 ${(0,o.bf)(t)}`,fontSize:n,[`> ${r}-head-wrapper`]:{[`> ${r}-extra`]:{fontSize:e.fontSize}}},[`> ${r}-body`]:{padding:t}},[`${r}-small${r}-contain-tabs`]:{[`> ${r}-head`]:{[`${r}-head-title, ${r}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},q=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var $=(0,K.I$)("Card",e=>{const r=(0,T.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Q(r),Y(r)]},q),m=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{const{prefixCls:r,actions:t=[]}=e;return s.createElement("ul",{className:`${r}-actions`},t.map((a,n)=>{const u=`action-${n}`;return s.createElement("li",{style:{width:`${100/t.length}%`},key:u},s.createElement("span",null,a))}))};var M=s.forwardRef((e,r)=>{const{prefixCls:t,className:a,rootClassName:n,style:u,extra:g,headStyle:S={},bodyStyle:f={},title:L,loading:R,bordered:w=!0,size:I,type:G,cover:ie,actions:te,tabList:W,children:H,activeTabKey:oe,defaultActiveTabKey:ce,tabBarExtraContent:ue,hoverable:ge,tabProps:me={}}=e,pe=m(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:he,direction:fe,card:P}=s.useContext(p.E_),be=C=>{var b;(b=e.onTabChange)===null||b===void 0||b.call(e,C)},ve=s.useMemo(()=>{let C=!1;return s.Children.forEach(H,b=>{b&&b.type&&b.type===z&&(C=!0)}),C},[H]),c=he("card",t),[ye,xe]=$(c),$e=s.createElement(x.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},H),se=oe!==void 0,Se=Object.assign(Object.assign({},me),{[se?"activeKey":"defaultActiveKey"]:se?oe:ce,tabBarExtraContent:ue});let de;const N=(0,A.Z)(I),Ce=!N||N==="default"?"large":N,le=W?s.createElement(O.Z,Object.assign({size:Ce},Se,{className:`${c}-head-tabs`,onChange:be,items:W.map(C=>{var{tab:b}=C,ze=m(C,["tab"]);return Object.assign({label:b},ze)})})):null;(L||g||le)&&(de=s.createElement("div",{className:`${c}-head`,style:S},s.createElement("div",{className:`${c}-head-wrapper`},L&&s.createElement("div",{className:`${c}-head-title`},L),g&&s.createElement("div",{className:`${c}-extra`},g)),le));const je=ie?s.createElement("div",{className:`${c}-cover`},ie):null,Ee=s.createElement("div",{className:`${c}-body`,style:f},R?$e:H),Oe=te&&te.length?s.createElement(l,{prefixCls:c,actions:te}):null,Be=(0,D.Z)(pe,["onTabChange"]),Pe=y()(c,P==null?void 0:P.className,{[`${c}-loading`]:R,[`${c}-bordered`]:w,[`${c}-hoverable`]:ge,[`${c}-contain-grid`]:ve,[`${c}-contain-tabs`]:W&&W.length,[`${c}-${N}`]:N,[`${c}-type-${G}`]:!!G,[`${c}-rtl`]:fe==="rtl"},a,n,xe),De=Object.assign(Object.assign({},P==null?void 0:P.style),u);return ye(s.createElement("div",Object.assign({ref:r},Be,{className:Pe,style:De}),de,je,Ee,Oe))}),_=function(e,r){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{const{prefixCls:r,className:t,avatar:a,title:n,description:u}=e,g=_(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:S}=s.useContext(p.E_),f=S("card",r),L=y()(`${f}-meta`,t),R=a?s.createElement("div",{className:`${f}-meta-avatar`},a):null,w=n?s.createElement("div",{className:`${f}-meta-title`},n):null,I=u?s.createElement("div",{className:`${f}-meta-description`},u):null,G=w||I?s.createElement("div",{className:`${f}-meta-detail`},w,I):null;return s.createElement("div",Object.assign({},g,{className:L}),R,G)};const F=M;F.Grid=z,F.Meta=k;var ee=F}}]); diff --git a/p__list__search__applications__index.1db0757b.async.js b/p__list__search__applications__index.1db0757b.async.js deleted file mode 100644 index ff42bc36..00000000 --- a/p__list__search__applications__index.1db0757b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9618],{19485:function(O,l){var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};l.Z=t},8941:function(O,l){var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};l.Z=t},73715:function(O,l){var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};l.Z=t},82574:function(O,l,t){var r=t(33346),a=t(50959),c=t(5590),f=t(69164),s=function(m,v){return a.createElement(f.Z,(0,r.Z)((0,r.Z)({},m),{},{ref:v,icon:c.Z}))};s.displayName="DownOutlined",l.Z=a.forwardRef(s)},94573:function(O,l,t){var r=t(33346),a=t(50959),c=t(19485),f=t(69164),s=function(m,v){return a.createElement(f.Z,(0,r.Z)((0,r.Z)({},m),{},{ref:v,icon:c.Z}))};s.displayName="DownloadOutlined",l.Z=a.forwardRef(s)},83011:function(O,l,t){var r=t(33346),a=t(50959),c=t(8941),f=t(69164),s=function(m,v){return a.createElement(f.Z,(0,r.Z)((0,r.Z)({},m),{},{ref:v,icon:c.Z}))};s.displayName="EditOutlined",l.Z=a.forwardRef(s)},27174:function(O,l,t){var r=t(33346),a=t(50959),c=t(44108),f=t(69164),s=function(m,v){return a.createElement(f.Z,(0,r.Z)((0,r.Z)({},m),{},{ref:v,icon:c.Z}))};s.displayName="EllipsisOutlined",l.Z=a.forwardRef(s)},25468:function(O,l,t){t.d(l,{Z:function(){return m}});var r=t(33346),a=t(50959),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M752 664c-28.5 0-54.8 10-75.4 26.7L469.4 540.8a160.68 160.68 0 000-57.6l207.2-149.9C697.2 350 723.5 360 752 360c66.2 0 120-53.8 120-120s-53.8-120-120-120-120 53.8-120 120c0 11.6 1.6 22.7 4.7 33.3L439.9 415.8C410.7 377.1 364.3 352 312 352c-88.4 0-160 71.6-160 160s71.6 160 160 160c52.3 0 98.7-25.1 127.9-63.8l196.8 142.5c-3.1 10.6-4.7 21.8-4.7 33.3 0 66.2 53.8 120 120 120s120-53.8 120-120-53.8-120-120-120zm0-476c28.7 0 52 23.3 52 52s-23.3 52-52 52-52-23.3-52-52 23.3-52 52-52zM312 600c-48.5 0-88-39.5-88-88s39.5-88 88-88 88 39.5 88 88-39.5 88-88 88zm440 236c-28.7 0-52-23.3-52-52s23.3-52 52-52 52 23.3 52 52-23.3 52-52 52z"}}]},name:"share-alt",theme:"outlined"},f=c,s=t(69164),T=function(D,B){return a.createElement(s.Z,(0,r.Z)((0,r.Z)({},D),{},{ref:B,icon:f}))};T.displayName="ShareAltOutlined";var m=a.forwardRef(T)},1861:function(O,l,t){var r=t(33346),a=t(50959),c=t(73715),f=t(69164),s=function(m,v){return a.createElement(f.Z,(0,r.Z)((0,r.Z)({},m),{},{ref:v,icon:c.Z}))};s.displayName="UpOutlined",l.Z=a.forwardRef(s)},83032:function(O,l,t){t.d(l,{O:function(){return r}});var r=Array.from({length:12}).map(function(a,c){return{value:"cat".concat(c+1),label:"\u7C7B\u76EE".concat(c+1)}})},34002:function(O,l,t){t.r(l),t.d(l,{Applications:function(){return q},default:function(){return Wt},formatWan:function(){return Y}});var r=t(77117),a=t.n(r),c=t(94573),f=t(83011),s=t(25468),T=t(27174),m=t(27533),v=t(50304),D=t(67190),B=t(23870),N=t(82099),b=t(32413),F=t(90543),L=t(32618),it=t(10591),dt=t(21757),ct=t(4587),ut=t.n(ct),R=t(50959),mt=t(21320),M=t.n(mt),vt=t(95530),ft=t.n(vt),ht=t(84875),H=t.n(ht),I=t(8700),gt=(0,I.kc)(function(i){var n=i.token;return{standardFormRow:{display:"flex",marginBottom:"16px",paddingBottom:"16px",borderBottom:"1px dashed ".concat(n.colorSplit),".ant-form-item, .ant-legacy-form-item":{marginRight:"24px"},".ant-form-item-label, .ant-legacy-form-item-label":{label:{marginRight:"0",color:n.colorText}},".ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control":{padding:"0",lineHeight:"32px"}},label:{flex:"0 0 auto",marginRight:"24px",color:n.colorTextHeading,fontSize:n.fontSize,textAlign:"right","& > span":{display:"inline-block",height:"32px",lineHeight:"32px","&::after":{content:"'\uFF1A'"}}},content:{flex:"1 1 0",".ant-form-item, .ant-legacy-form-item":{"&:last-child":{marginRight:"0"}}},standardFormRowLast:{marginBottom:"0",paddingBottom:"0",border:"none"},standardFormRowBlock:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"}},standardFormRowGrid:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"},".ant-form-item-label, .ant-legacy-form-item-label":{float:"left"}}}}),xt=gt,e=t(11527),pt=["title","children","last","block","grid"],Et=function(n){var o,d=n.title,u=n.children,h=n.last,S=n.block,A=n.grid,g=ft()(n,pt),y=xt(),x=y.styles,P=H()(x.standardFormRow,(o={},M()(o,x.standardFormRowBlock,S),M()(o,x.standardFormRowLast,h),M()(o,x.standardFormRowGrid,A),o));return(0,e.jsxs)("div",a()(a()({className:P},g),{},{children:[d&&(0,e.jsx)("div",{className:x.label,children:(0,e.jsx)("span",{children:d})}),(0,e.jsx)("div",{className:x.content,children:u})]}))},V=Et,Ot=t(67855),yt=t.n(Ot),Tt=t(28152),w=t.n(Tt),jt=t(1861),St=t(82574),At=t(28566),Ct=t(96771),Dt=(0,I.kc)(function(i){var n=i.token;return{tagSelect:{position:"relative",maxHeight:"32px",marginLeft:"-8px",overflow:"hidden",lineHeight:"32px",transition:"all 0.3s",userSelect:"none",".ant-tag":{marginRight:"24px",padding:"0 8px",fontSize:n.fontSize}},trigger:{position:"absolute",top:"0",right:"0","span.anticon":{fontSize:"12px"}},expanded:{maxHeight:"200px",transition:"all 0.3s"},hasExpandTag:{paddingRight:"50px"}}}),Zt=Dt,$=At.Z.CheckableTag,G=function(n){var o=n.children,d=n.checked,u=n.onChange,h=n.value;return(0,e.jsx)($,{checked:!!d,onChange:function(A){return u&&u(h,A)},children:o},h)};G.isTagSelectOption=!0;var _=function(n){var o,d=Zt(),u=d.styles,h=n.children,S=n.hideCheckAll,A=S===void 0?!1:S,g=n.className,y=n.style,x=n.expandable,P=n.actionsText,W=P===void 0?{}:P,zt=(0,R.useState)(!1),tt=w()(zt,2),z=tt[0],Kt=tt[1],Nt=(0,Ct.C8)(n.defaultValue||[],{value:n.value,defaultValue:n.defaultValue,onChange:n.onChange}),et=w()(Nt,2),Z=et[0],nt=et[1],at=function(E){return E&&E.type&&(E.type.isTagSelectOption||E.type.displayName==="TagSelectOption")},lt=function(){var E=R.Children.toArray(h),C=E.filter(function(j){return at(j)}).map(function(j){return j.props.value});return C||[]},bt=function(E){var C=[];E&&(C=lt()),nt(C)},Ft=function(E,C){var j=yt()(Z||[]),K=j.indexOf(E);C&&K===-1?j.push(E):!C&&K>-1&&j.splice(K,1),nt(j)},Ht=lt().length===(Z==null?void 0:Z.length),rt=W.expandText,Vt=rt===void 0?"\u5C55\u5F00":rt,ot=W.collapseText,wt=ot===void 0?"\u6536\u8D77":ot,st=W.selectAllText,$t=st===void 0?"\u5168\u90E8":st,Gt=H()(u.tagSelect,g,(o={},M()(o,u.hasExpandTag,x),M()(o,u.expanded,z),o));return(0,e.jsxs)("div",{className:Gt,style:y,children:[A?null:(0,e.jsx)($,{checked:Ht,onChange:bt,children:$t},"tag-select-__all__"),h&&R.Children.map(h,function(p){return at(p)?R.cloneElement(p,{key:"tag-select-".concat(p.props.value),value:p.props.value,checked:Z&&Z.indexOf(p.props.value)>-1,onChange:Ft}):p}),x&&(0,e.jsx)("a",{className:u.trigger,onClick:function(){Kt(!z)},children:z?(0,e.jsxs)(e.Fragment,{children:[wt," ",(0,e.jsx)(jt.Z,{})]}):(0,e.jsxs)(e.Fragment,{children:[Vt,(0,e.jsx)(St.Z,{})]})})]})};_.Option=G;var J=_,Mt=t(13448),Q=t.n(Mt),Rt=t(74815),Pt=t.n(Rt);function Bt(i){return U.apply(this,arguments)}function U(){return U=Pt()(Q()().mark(function i(n){return Q()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,m.request)("/api/fake_list",{params:n}));case 1:case"end":return d.stop()}},i)})),U.apply(this,arguments)}var Lt=(0,I.kc)(function(i){var n=i.token;return{filterCardList:{".ant-card-meta-content":{marginTop:"0"},".ant-card-meta-avatar":{fontSize:"0"},".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},cardInfo:{marginTop:"16px",marginLeft:"40px",zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},"& > div":{position:"relative",float:"left",width:"50%",textAlign:"left",p:{margin:"0",fontSize:"24px",lineHeight:"32px"},"p:first-child":{marginBottom:"4px",color:n.colorTextSecondary,fontSize:"12px",lineHeight:"20px"}}}}}),X=Lt,It=t(83032);function Y(i){var n=i*1;if(!n||Number.isNaN(n))return"";var o=i;return i>1e4&&(o=(0,e.jsxs)("span",{children:[Math.floor(i/1e4),(0,e.jsx)("span",{style:{position:"relative",top:-2,fontSize:14,fontStyle:"normal",marginLeft:2},children:"\u4E07"})]})),o}var k={wrapperCol:{xs:{span:24},sm:{span:16}}},Ut=function(n){var o=n.activeUser,d=n.newUser,u=X(),h=u.styles;return(0,e.jsxs)("div",{className:h.cardInfo,children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{children:"\u6D3B\u8DC3\u7528\u6237"}),(0,e.jsx)("p",{children:o})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{children:"\u65B0\u589E\u7528\u6237"}),(0,e.jsx)("p",{children:d})]})]})},q=function(){var n=X(),o=n.styles,d=(0,m.useRequest)(function(g){return console.log("form data",g),Bt({count:8})}),u=d.data,h=d.loading,S=d.run,A=(u==null?void 0:u.list)||[];return(0,e.jsxs)("div",{className:o.filterCardList,children:[(0,e.jsx)(v.Z,{bordered:!1,children:(0,e.jsxs)(D.Z,{onValuesChange:function(y,x){S(x)},children:[(0,e.jsx)(V,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,e.jsx)(D.Z.Item,{name:"category",children:(0,e.jsx)(J,{expandable:!0,children:It.O.map(function(g){return(0,e.jsx)(J.Option,{value:g.value,children:g.label},g.value)})})})}),(0,e.jsx)(V,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,e.jsxs)(B.Z,{gutter:16,children:[(0,e.jsx)(N.Z,{lg:8,md:10,sm:10,xs:24,children:(0,e.jsx)(D.Z.Item,a()(a()({},k),{},{name:"author",label:"\u4F5C\u8005",children:(0,e.jsx)(b.default,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u738B\u662D\u541B",value:"lisa"}]})}))}),(0,e.jsx)(N.Z,{lg:8,md:10,sm:10,xs:24,children:(0,e.jsx)(D.Z.Item,a()(a()({},k),{},{name:"rate",label:"\u597D\u8BC4\u5EA6",children:(0,e.jsx)(b.default,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u4F18\u79C0",value:"good"},{label:"\u666E\u901A",value:"normal"}]})}))})]})})]})}),(0,e.jsx)("br",{}),(0,e.jsx)(F.Z,{rowKey:"id",grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},loading:h,dataSource:A,renderItem:function(y){return(0,e.jsx)(F.Z.Item,{children:(0,e.jsxs)(v.Z,{hoverable:!0,bodyStyle:{paddingBottom:20},actions:[(0,e.jsx)(L.Z,{title:"\u4E0B\u8F7D",children:(0,e.jsx)(c.Z,{})},"download"),(0,e.jsx)(L.Z,{title:"\u7F16\u8F91",children:(0,e.jsx)(f.Z,{})},"edit"),(0,e.jsx)(L.Z,{title:"\u5206\u4EAB",children:(0,e.jsx)(s.Z,{})},"share"),(0,e.jsx)(it.Z,{menu:{items:[{key:"1",title:"1st menu item"},{key:"2",title:"2st menu item"}]},children:(0,e.jsx)(T.Z,{})},"ellipsis")],children:[(0,e.jsx)(v.Z.Meta,{avatar:(0,e.jsx)(dt.C,{size:"small",src:y.avatar}),title:y.title}),(0,e.jsx)("div",{children:(0,e.jsx)(Ut,{activeUser:Y(y.activeUser),newUser:ut()(y.newUser).format("0,0")})})]})},y.id)}})]})},Wt=q}}]); diff --git a/p__list__search__applications__index.ca9c1698.async.js b/p__list__search__applications__index.ca9c1698.async.js new file mode 100644 index 00000000..b64cd019 --- /dev/null +++ b/p__list__search__applications__index.ca9c1698.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9618],{37519:function(Z,v){var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};v.Z=t},29514:function(Z,v,t){var g=t(93264),s=t(79685),f=t(90462),E=t(64507),p=function(C,y){return s.createElement(E.Z,(0,g.Z)((0,g.Z)({},C),{},{ref:y,icon:f.Z}))};p.displayName="DownOutlined",v.Z=s.forwardRef(p)},77032:function(Z,v,t){var g=t(93264),s=t(79685),f=t(37519),E=t(64507),p=function(C,y){return s.createElement(E.Z,(0,g.Z)((0,g.Z)({},C),{},{ref:y,icon:f.Z}))};p.displayName="UpOutlined",v.Z=s.forwardRef(p)},33387:function(Z,v,t){t.d(v,{O:function(){return g}});var g=Array.from({length:12}).map(function(s,f){return{value:"cat".concat(f+1),label:"\u7C7B\u76EE".concat(f+1)}})},38725:function(Z,v,t){t.r(v),t.d(v,{Applications:function(){return q},default:function(){return Ft},formatWan:function(){return Y}});var g=t(42329),s=t.n(g),f=t(43588),E=t(69392),p=t(88133),U=t(12086),C=t(8025),y=t(18283),R=t(73952),st=t(61728),W=t(43241),b=t(76742),z=t(21583),I=t(58898),it=t(37741),dt=t(61030),ct=t(88178),ut=t.n(ct),D=t(79685),mt=t(33387),vt=t(37482),A=t.n(vt),ht=t(77128),gt=t.n(ht),ft=t(68591),K=t.n(ft),L=t(24507),xt=(0,L.kc)(function(l){var a=l.token;return{standardFormRow:{display:"flex",marginBottom:"16px",paddingBottom:"16px",borderBottom:"1px dashed ".concat(a.colorSplit),".ant-form-item, .ant-legacy-form-item":{marginRight:"24px"},".ant-form-item-label, .ant-legacy-form-item-label":{label:{marginRight:"0",color:a.colorText}},".ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control":{padding:"0",lineHeight:"32px"}},label:{flex:"0 0 auto",marginRight:"24px",color:a.colorTextHeading,fontSize:a.fontSize,textAlign:"right","& > span":{display:"inline-block",height:"32px",lineHeight:"32px","&::after":{content:"'\uFF1A'"}}},content:{flex:"1 1 0",".ant-form-item, .ant-legacy-form-item":{"&:last-child":{marginRight:"0"}}},standardFormRowLast:{marginBottom:"0",paddingBottom:"0",border:"none"},standardFormRowBlock:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"}},standardFormRowGrid:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"},".ant-form-item-label, .ant-legacy-form-item-label":{float:"left"}}}}),pt=xt,e=t(63342),yt=["title","children","last","block","grid"],jt=function(a){var n,r=a.title,o=a.children,i=a.last,j=a.block,T=a.grid,d=gt()(a,yt),h=pt(),c=h.styles,B=K()(c.standardFormRow,(n={},A()(n,c.standardFormRowBlock,j),A()(n,c.standardFormRowLast,i),A()(n,c.standardFormRowGrid,T),n));return(0,e.jsxs)("div",s()(s()({className:B},d),{},{children:[r&&(0,e.jsx)("div",{className:c.label,children:(0,e.jsx)("span",{children:r})}),(0,e.jsx)("div",{className:c.content,children:o})]}))},H=jt,Tt=t(31013),St=t.n(Tt),Ct=t(97380),V=t.n(Ct),Ot=t(77032),Et=t(29514),At=t(90936),Zt=t(85159),Rt=(0,L.kc)(function(l){var a=l.token;return{tagSelect:{position:"relative",maxHeight:"32px",marginLeft:"-8px",overflow:"hidden",lineHeight:"32px",transition:"all 0.3s",userSelect:"none",".ant-tag":{marginRight:"24px",padding:"0 8px",fontSize:a.fontSize}},trigger:{position:"absolute",top:"0",right:"0","span.anticon":{fontSize:"12px"}},expanded:{maxHeight:"200px",transition:"all 0.3s"},hasExpandTag:{paddingRight:"50px"}}}),Dt=Rt,$=At.Z.CheckableTag,G=function(a){var n=a.children,r=a.checked,o=a.onChange,i=a.value;return(0,e.jsx)($,{checked:!!r,onChange:function(T){return o&&o(i,T)},children:n},i)};G.isTagSelectOption=!0;var k=function(a){var n,r=Dt(),o=r.styles,i=a.children,j=a.hideCheckAll,T=j===void 0?!1:j,d=a.className,h=a.style,c=a.expandable,B=a.actionsText,P=B===void 0?{}:B,Nt=(0,D.useState)(!1),_=V()(Nt,2),F=_[0],Wt=_[1],bt=(0,Zt.C8)(a.defaultValue||[],{value:a.value,defaultValue:a.defaultValue,onChange:a.onChange}),tt=V()(bt,2),O=tt[0],et=tt[1],at=function(m){return m&&m.type&&(m.type.isTagSelectOption||m.type.displayName==="TagSelectOption")},nt=function(){var m=D.Children.toArray(i),S=m.filter(function(x){return at(x)}).map(function(x){return x.props.value});return S||[]},zt=function(m){var S=[];m&&(S=nt()),et(S)},Kt=function(m,S){var x=St()(O||[]),N=x.indexOf(m);S&&N===-1?x.push(m):!S&&N>-1&&x.splice(N,1),et(x)},Ht=nt().length===(O==null?void 0:O.length),lt=P.expandText,Vt=lt===void 0?"\u5C55\u5F00":lt,rt=P.collapseText,$t=rt===void 0?"\u6536\u8D77":rt,ot=P.selectAllText,Gt=ot===void 0?"\u5168\u90E8":ot,kt=K()(o.tagSelect,d,(n={},A()(n,o.hasExpandTag,c),A()(n,o.expanded,F),n));return(0,e.jsxs)("div",{className:kt,style:h,children:[T?null:(0,e.jsx)($,{checked:Ht,onChange:zt,children:Gt},"tag-select-__all__"),i&&D.Children.map(i,function(u){return at(u)?D.cloneElement(u,{key:"tag-select-".concat(u.props.value),value:u.props.value,checked:O&&O.indexOf(u.props.value)>-1,onChange:Kt}):u}),c&&(0,e.jsx)("a",{className:o.trigger,onClick:function(){Wt(!F)},children:F?(0,e.jsxs)(e.Fragment,{children:[$t," ",(0,e.jsx)(Ot.Z,{})]}):(0,e.jsxs)(e.Fragment,{children:[Vt,(0,e.jsx)(Et.Z,{})]})})]})};k.Option=G;var J=k,Bt=t(29195),Q=t.n(Bt),Ut=t(56717),It=t.n(Ut);function Lt(l){return M.apply(this,arguments)}function M(){return M=It()(Q()().mark(function l(a){return Q()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,C.request)("/api/fake_list",{params:a}));case 1:case"end":return r.stop()}},l)})),M.apply(this,arguments)}var Mt=(0,L.kc)(function(l){var a=l.token;return{filterCardList:{".ant-card-meta-content":{marginTop:"0"},".ant-card-meta-avatar":{fontSize:"0"},".ant-list .ant-list-item-content-single":{maxWidth:"100%"}},cardInfo:{marginTop:"16px",marginLeft:"40px",zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},"& > div":{position:"relative",float:"left",width:"50%",textAlign:"left",p:{margin:"0",fontSize:"24px",lineHeight:"32px"},"p:first-child":{marginBottom:"4px",color:a.colorTextSecondary,fontSize:"12px",lineHeight:"20px"}}}}}),X=Mt;function Y(l){var a=l*1;if(!a||Number.isNaN(a))return"";var n=l;return l>1e4&&(n=(0,e.jsxs)("span",{children:[Math.floor(l/1e4),(0,e.jsx)("span",{style:{position:"relative",top:-2,fontSize:14,fontStyle:"normal",marginLeft:2},children:"\u4E07"})]})),n}var w={wrapperCol:{xs:{span:24},sm:{span:16}}},Pt=function(a){var n=a.activeUser,r=a.newUser,o=X(),i=o.styles;return(0,e.jsxs)("div",{className:i.cardInfo,children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{children:"\u6D3B\u8DC3\u7528\u6237"}),(0,e.jsx)("p",{children:n})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{children:"\u65B0\u589E\u7528\u6237"}),(0,e.jsx)("p",{children:r})]})]})},q=function(){var a=X(),n=a.styles,r=(0,C.useRequest)(function(d){return console.log("form data",d),Lt({count:8})}),o=r.data,i=r.loading,j=r.run,T=(o==null?void 0:o.list)||[];return(0,e.jsxs)("div",{className:n.filterCardList,children:[(0,e.jsx)(y.Z,{bordered:!1,children:(0,e.jsxs)(R.Z,{onValuesChange:function(h,c){j(c)},children:[(0,e.jsx)(H,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,e.jsx)(R.Z.Item,{name:"category",children:(0,e.jsx)(J,{expandable:!0,children:mt.O.map(function(d){return(0,e.jsx)(J.Option,{value:d.value,children:d.label},d.value)})})})}),(0,e.jsx)(H,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,e.jsxs)(st.Z,{gutter:16,children:[(0,e.jsx)(W.Z,{lg:8,md:10,sm:10,xs:24,children:(0,e.jsx)(R.Z.Item,s()(s()({},w),{},{name:"author",label:"\u4F5C\u8005",children:(0,e.jsx)(b.Z,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u738B\u662D\u541B",value:"lisa"}]})}))}),(0,e.jsx)(W.Z,{lg:8,md:10,sm:10,xs:24,children:(0,e.jsx)(R.Z.Item,s()(s()({},w),{},{name:"rate",label:"\u597D\u8BC4\u5EA6",children:(0,e.jsx)(b.Z,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u4F18\u79C0",value:"good"},{label:"\u666E\u901A",value:"normal"}]})}))})]})})]})}),(0,e.jsx)("br",{}),(0,e.jsx)(z.Z,{rowKey:"id",grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},loading:i,dataSource:T,renderItem:function(h){return(0,e.jsx)(z.Z.Item,{children:(0,e.jsxs)(y.Z,{hoverable:!0,bodyStyle:{paddingBottom:20},actions:[(0,e.jsx)(I.Z,{title:"\u4E0B\u8F7D",children:(0,e.jsx)(f.Z,{})},"download"),(0,e.jsx)(I.Z,{title:"\u7F16\u8F91",children:(0,e.jsx)(E.Z,{})},"edit"),(0,e.jsx)(I.Z,{title:"\u5206\u4EAB",children:(0,e.jsx)(p.Z,{})},"share"),(0,e.jsx)(it.Z,{menu:{items:[{key:"1",title:"1st menu item"},{key:"2",title:"2st menu item"}]},children:(0,e.jsx)(U.Z,{})},"ellipsis")],children:[(0,e.jsx)(y.Z.Meta,{avatar:(0,e.jsx)(dt.C,{size:"small",src:h.avatar}),title:h.title}),(0,e.jsx)("div",{children:(0,e.jsx)(Pt,{activeUser:Y(h.activeUser),newUser:ut()(h.newUser).format("0,0")})})]})},h.id)}})]})},Ft=q}}]); diff --git a/p__list__search__articles__index.68bbbc8e.async.js b/p__list__search__articles__index.68bbbc8e.async.js deleted file mode 100644 index ac1e41b5..00000000 --- a/p__list__search__articles__index.68bbbc8e.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1963],{73715:function(F,h){var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};h.Z=t},82574:function(F,h,t){var x=t(33346),r=t(50959),j=t(5590),O=t(69164),d=function(A,Z){return r.createElement(O.Z,(0,x.Z)((0,x.Z)({},A),{},{ref:Z,icon:j.Z}))};d.displayName="DownOutlined",h.Z=r.forwardRef(d)},19791:function(F,h,t){t.d(h,{Z:function(){return A}});var x=t(33346),r=t(50959),j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},O=j,d=t(69164),s=function(I,k){return r.createElement(d.Z,(0,x.Z)((0,x.Z)({},I),{},{ref:k,icon:O}))};s.displayName="LikeOutlined";var A=r.forwardRef(s)},1861:function(F,h,t){var x=t(33346),r=t(50959),j=t(73715),O=t(69164),d=function(A,Z){return r.createElement(O.Z,(0,x.Z)((0,x.Z)({},A),{},{ref:Z,icon:j.Z}))};d.displayName="UpOutlined",h.Z=r.forwardRef(d)},83032:function(F,h,t){t.d(h,{O:function(){return x}});var x=Array.from({length:12}).map(function(r,j){return{value:"cat".concat(j+1),label:"\u7C7B\u76EE".concat(j+1)}})},89489:function(F,h,t){t.r(h),t.d(h,{default:function(){return Qe}});var x=t(77117),r=t.n(x),j=t(28152),O=t.n(j),d=t(33346),s=t(50959),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},Z=A,I=t(69164),k=function(a,n){return s.createElement(I.Z,(0,d.Z)((0,d.Z)({},a),{},{ref:n,icon:Z}))};k.displayName="StarOutlined";var ue=s.forwardRef(k),me=t(19791),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},ge=ve,Q=function(a,n){return s.createElement(I.Z,(0,d.Z)((0,d.Z)({},a),{},{ref:n,icon:ge}))};Q.displayName="MessageOutlined";var he=s.forwardRef(Q),xe=t(52225),q=function(a,n){return s.createElement(I.Z,(0,d.Z)((0,d.Z)({},a),{},{ref:n,icon:xe.Z}))};q.displayName="LoadingOutlined";var fe=s.forwardRef(q),_=t(27533),W=t(67190),pe=t(47100),ee=t(50304),V=t(32413),ye=t(23870),te=t(82099),K=t(90543),w=t(28566),je=t(21757),Oe=t(5726),Te=t.n(Oe),Se=t(21320),T=t.n(Se),N=t(8700),Ee=(0,N.kc)(function(l){var a=l.token;return{description:{maxWidth:"720px",lineHeight:"22px"},extra:T()({marginTop:"16px",color:a.colorTextSecondary,lineHeight:"22px","& > em":{marginLeft:"16px",color:a.colorTextDisabled,fontStyle:"normal"}},"@media screen and (max-width: ".concat(a.screenXS,"px)"),{"& > em":{display:"block",marginTop:"8px",marginLeft:"0"}})}}),Ae=Ee,e=t(11527),Ce=function(a){var n=a.data,i=n.content,u=n.updatedAt,c=n.avatar,m=n.owner,v=n.href,C=Ae(),S=C.styles;return(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:S.description,children:i}),(0,e.jsxs)("div",{className:S.extra,children:[(0,e.jsx)(je.C,{src:c,size:"small"}),(0,e.jsx)("a",{href:v,children:m})," \u53D1\u5E03\u5728 ",(0,e.jsx)("a",{href:v,children:v}),(0,e.jsx)("em",{children:Te()(u).format("YYYY-MM-DD HH:mm")})]})]})},Le=Ce,Me=t(95530),Ze=t.n(Me),Re=t(84875),ae=t.n(Re),De=(0,N.kc)(function(l){var a=l.token;return{standardFormRow:{display:"flex",width:"100%",marginBottom:"16px",paddingBottom:"16px",borderBottom:"1px dashed ".concat(a.colorSplit),".ant-form-item, .ant-legacy-form-item":{marginRight:"24px"},".ant-form-item-label, .ant-legacy-form-item-label":{label:{marginRight:"0",color:a.colorText}},".ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control":{padding:"0",lineHeight:"32px"}},label:{flex:"0 0 auto",marginRight:"24px",color:a.colorTextHeading,fontSize:a.fontSize,textAlign:"right","& > span":{display:"inline-block",height:"32px",lineHeight:"32px","&::after":{content:"'\uFF1A'"}}},content:{flex:"1 1 0",".ant-form-item, .ant-legacy-form-item":{"&:last-child":{display:"block",marginRight:"0"}}},standardFormRowLast:{marginBottom:"0",paddingBottom:"0",border:"none"},standardFormRowBlock:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"}},standardFormRowGrid:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"},".ant-form-item-label, .ant-legacy-form-item-label":{float:"left"}}}}),Be=De,Fe=["title","children","last","block","grid"],Ie=function(a){var n,i=a.title,u=a.children,c=a.last,m=a.block,v=a.grid,C=Ze()(a,Fe),S=Be(),f=S.styles,R=ae()(f.standardFormRow,(n={},T()(n,f.standardFormRowBlock,m),T()(n,f.standardFormRowLast,c),T()(n,f.standardFormRowGrid,v),n));return(0,e.jsxs)("div",r()(r()({className:R},C),{},{children:[i&&(0,e.jsx)("div",{className:f.label,children:(0,e.jsx)("span",{children:i})}),(0,e.jsx)("div",{className:f.content,children:u})]}))},$=Ie,ze=t(67855),ke=t.n(ze),we=t(1861),Ne=t(82574),Pe=t(96771),be=(0,N.kc)(function(l){var a=l.token;return{tagSelect:{position:"relative",maxHeight:"32px",marginLeft:"-8px",overflow:"hidden",lineHeight:"32px",transition:"all 0.3s",userSelect:"none",".ant-tag":{marginRight:"24px",padding:"0 8px",fontSize:a.fontSize}},trigger:{position:"absolute",top:"0",right:"0","span.anticon":{fontSize:"12px"}},expanded:{maxHeight:"200px",transition:"all 0.3s"},hasExpandTag:{paddingRight:"50px"}}}),He=be,ne=w.Z.CheckableTag,le=function(a){var n=a.children,i=a.checked,u=a.onChange,c=a.value;return(0,e.jsx)(ne,{checked:!!i,onChange:function(v){return u&&u(c,v)},children:n},c)};le.isTagSelectOption=!0;var re=function(a){var n,i=He(),u=i.styles,c=a.children,m=a.hideCheckAll,v=m===void 0?!1:m,C=a.className,S=a.style,f=a.expandable,R=a.actionsText,D=R===void 0?{}:R,Y=(0,s.useState)(!1),z=O()(Y,2),L=z[0],b=z[1],X=(0,Pe.C8)(a.defaultValue||[],{value:a.value,defaultValue:a.defaultValue,onChange:a.onChange}),H=O()(X,2),o=H[0],g=H[1],U=function(y){return y&&y.type&&(y.type.isTagSelectOption||y.type.displayName==="TagSelectOption")},B=function(){var y=s.Children.toArray(c),M=y.filter(function(E){return U(E)}).map(function(E){return E.props.value});return M||[]},qe=function(y){var M=[];y&&(M=B()),g(M)},_e=function(y,M){var E=ke()(o||[]),J=E.indexOf(y);M&&J===-1?E.push(y):!M&&J>-1&&E.splice(J,1),g(E)},et=B().length===(o==null?void 0:o.length),oe=D.expandText,tt=oe===void 0?"\u5C55\u5F00":oe,de=D.collapseText,at=de===void 0?"\u6536\u8D77":de,ce=D.selectAllText,nt=ce===void 0?"\u5168\u90E8":ce,lt=ae()(u.tagSelect,C,(n={},T()(n,u.hasExpandTag,f),T()(n,u.expanded,L),n));return(0,e.jsxs)("div",{className:lt,style:S,children:[v?null:(0,e.jsx)(ne,{checked:et,onChange:qe,children:nt},"tag-select-__all__"),c&&s.Children.map(c,function(p){return U(p)?s.cloneElement(p,{key:"tag-select-".concat(p.props.value),value:p.props.value,checked:o&&o.indexOf(p.props.value)>-1,onChange:_e}):p}),f&&(0,e.jsx)("a",{className:u.trigger,onClick:function(){b(!L)},children:L?(0,e.jsxs)(e.Fragment,{children:[at," ",(0,e.jsx)(we.Z,{})]}):(0,e.jsxs)(e.Fragment,{children:[tt,(0,e.jsx)(Ne.Z,{})]})})]})};re.Option=le;var se=re,Ue=t(13448),ie=t.n(Ue),We=t(74815),Ve=t.n(We);function Ke(l){return G.apply(this,arguments)}function G(){return G=Ve()(ie()().mark(function l(a){return ie()().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,_.request)("/api/fake_list",{params:a}));case 1:case"end":return i.stop()}},l)})),G.apply(this,arguments)}var $e=(0,N.kc)(function(l){var a,n=l.token;return{listItemMetaTitle:{color:n.colorTextHeading},listItemExtra:T()({width:"272px",height:"1px"},"@media screen and (max-width: ".concat(n.screenLG,"px)"),{width:"0",height:"1px"}),selfTrigger:(a={marginLeft:"12px"},T()(a,"@media screen and (max-width: ".concat(n.screenXS,"px)"),{display:"block",marginLeft:"0"}),T()(a,"@media screen and (max-width: ".concat(n.screenMD,"px)"),{display:"block",marginLeft:"0"}),a)}}),Ge=$e,Ye=t(83032),P=W.Z.Item,Xe=5,Je=function(){var a=W.Z.useForm(),n=O()(a,1),i=n[0],u=Ge(),c=u.styles,m=(0,_.useRequest)(function(){return Ke({count:Xe})},{loadMore:!0}),v=m.data,C=m.reload,S=m.loading,f=m.loadMore,R=m.loadingMore,D=(v==null?void 0:v.list)||[],Y=function(){i.setFieldsValue({owner:["wzj"]})},z=[{id:"wzj",name:"\u6211\u81EA\u5DF1"},{id:"wjh",name:"\u5434\u5BB6\u8C6A"},{id:"zxx",name:"\u5468\u661F\u661F"},{id:"zly",name:"\u8D75\u4E3D\u9896"},{id:"ym",name:"\u59DA\u660E"}],L=function(g){var U=g.type,B=g.text;switch(U){case"star-o":return(0,e.jsxs)("span",{children:[(0,e.jsx)(ue,{style:{marginRight:8}}),B]});case"like-o":return(0,e.jsxs)("span",{children:[(0,e.jsx)(me.Z,{style:{marginRight:8}}),B]});case"message":return(0,e.jsxs)("span",{children:[(0,e.jsx)(he,{style:{marginRight:8}}),B]});default:return null}},b={wrapperCol:{xs:{span:24},sm:{span:24},md:{span:12}}},X=D.length>0&&(0,e.jsx)("div",{style:{textAlign:"center",marginTop:16},children:(0,e.jsx)(pe.ZP,{onClick:f,style:{paddingLeft:48,paddingRight:48},children:R?(0,e.jsxs)("span",{children:[(0,e.jsx)(fe,{})," \u52A0\u8F7D\u4E2D..."]}):"\u52A0\u8F7D\u66F4\u591A"})}),H=(0,s.useMemo)(function(){return z.map(function(o){return{label:o.name,value:o.id}})},[z]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ee.Z,{bordered:!1,children:(0,e.jsxs)(W.Z,{layout:"inline",form:i,initialValues:{owner:["wjh","zxx"]},onValuesChange:C,children:[(0,e.jsx)($,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,e.jsx)(P,{name:"category",children:(0,e.jsx)(se,{expandable:!0,children:Ye.O.map(function(o){return(0,e.jsx)(se.Option,{value:o.value,children:o.label},o.value)})})})}),(0,e.jsxs)($,{title:"owner",grid:!0,children:[(0,e.jsx)(P,{name:"owner",noStyle:!0,children:(0,e.jsx)(V.default,{mode:"multiple",placeholder:"\u9009\u62E9 owner",style:{minWidth:"6rem"},options:H})}),(0,e.jsx)("a",{className:c.selfTrigger,onClick:Y,children:"\u53EA\u770B\u81EA\u5DF1\u7684"})]}),(0,e.jsx)($,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,e.jsxs)(ye.Z,{gutter:16,children:[(0,e.jsx)(te.Z,{xl:8,lg:10,md:12,sm:24,xs:24,children:(0,e.jsx)(P,r()(r()({},b),{},{label:"\u6D3B\u8DC3\u7528\u6237",name:"user",children:(0,e.jsx)(V.default,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u674E\u4E09",value:"lisa"}]})}))}),(0,e.jsx)(te.Z,{xl:8,lg:10,md:12,sm:24,xs:24,children:(0,e.jsx)(P,r()(r()({},b),{},{label:"\u597D\u8BC4\u5EA6",name:"rate",children:(0,e.jsx)(V.default,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u4F18\u79C0",value:"good"}]})}))})]})})]})}),(0,e.jsx)(ee.Z,{style:{marginTop:24},bordered:!1,bodyStyle:{padding:"8px 32px 32px 32px"},children:(0,e.jsx)(K.Z,{size:"large",loading:S,rowKey:"id",itemLayout:"vertical",loadMore:X,dataSource:D,renderItem:function(g){return(0,e.jsxs)(K.Z.Item,{actions:[(0,e.jsx)(L,{type:"star-o",text:g.star},"star"),(0,e.jsx)(L,{type:"like-o",text:g.like},"like"),(0,e.jsx)(L,{type:"message",text:g.message},"message")],extra:(0,e.jsx)("div",{className:c.listItemExtra}),children:[(0,e.jsx)(K.Z.Item.Meta,{title:(0,e.jsx)("a",{className:c.listItemMetaTitle,href:g.href,children:g.title}),description:(0,e.jsxs)("span",{children:[(0,e.jsx)(w.Z,{children:"Ant Design"}),(0,e.jsx)(w.Z,{children:"\u8BBE\u8BA1\u8BED\u8A00"}),(0,e.jsx)(w.Z,{children:"\u8682\u8681\u91D1\u670D"})]})}),(0,e.jsx)(Le,{data:g})]},g.id)}})})]})},Qe=Je}}]); diff --git a/p__list__search__articles__index.81f38a72.async.js b/p__list__search__articles__index.81f38a72.async.js new file mode 100644 index 00000000..6c0eb626 --- /dev/null +++ b/p__list__search__articles__index.81f38a72.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1963],{33387:function(ne,Z,a){a.d(Z,{O:function(){return N}});var N=Array.from({length:12}).map(function(f,O){return{value:"cat".concat(O+1),label:"\u7C7B\u76EE".concat(O+1)}})},80026:function(ne,Z,a){a.r(Z),a.d(Z,{default:function(){return $e}});var N=a(42329),f=a.n(N),O=a(97380),z=a.n(O),le=a(45524),re=a(14604),se=a(85473),oe=a(63197),P=a(8025),I=a(73952),ie=a(10951),Y=a(18283),w=a(76742),de=a(61728),X=a(43241),H=a(21583),E=a(90936),F=a(79685),ce=a(33387),ue=a(61030),me=a(50510),xe=a.n(me),ge=a(37482),h=a.n(ge),D=a(24507),he=(0,D.kc)(function(s){var t=s.token;return{description:{maxWidth:"720px",lineHeight:"22px"},extra:h()({marginTop:"16px",color:t.colorTextSecondary,lineHeight:"22px","& > em":{marginLeft:"16px",color:t.colorTextDisabled,fontStyle:"normal"}},"@media screen and (max-width: ".concat(t.screenXS,"px)"),{"& > em":{display:"block",marginTop:"8px",marginLeft:"0"}})}}),ve=he,e=a(63342),pe=function(t){var n=t.data,l=n.content,i=n.updatedAt,o=n.avatar,d=n.owner,c=n.href,y=ve(),v=y.styles;return(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:v.description,children:l}),(0,e.jsxs)("div",{className:v.extra,children:[(0,e.jsx)(ue.C,{src:o,size:"small"}),(0,e.jsx)("a",{href:c,children:d})," \u53D1\u5E03\u5728 ",(0,e.jsx)("a",{href:c,children:c}),(0,e.jsx)("em",{children:xe()(i).format("YYYY-MM-DD HH:mm")})]})]})},fe=pe,ye=a(77128),je=a.n(ye),Te=a(68591),K=a.n(Te),Se=(0,D.kc)(function(s){var t=s.token;return{standardFormRow:{display:"flex",width:"100%",marginBottom:"16px",paddingBottom:"16px",borderBottom:"1px dashed ".concat(t.colorSplit),".ant-form-item, .ant-legacy-form-item":{marginRight:"24px"},".ant-form-item-label, .ant-legacy-form-item-label":{label:{marginRight:"0",color:t.colorText}},".ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control":{padding:"0",lineHeight:"32px"}},label:{flex:"0 0 auto",marginRight:"24px",color:t.colorTextHeading,fontSize:t.fontSize,textAlign:"right","& > span":{display:"inline-block",height:"32px",lineHeight:"32px","&::after":{content:"'\uFF1A'"}}},content:{flex:"1 1 0",".ant-form-item, .ant-legacy-form-item":{"&:last-child":{display:"block",marginRight:"0"}}},standardFormRowLast:{marginBottom:"0",paddingBottom:"0",border:"none"},standardFormRowBlock:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"}},standardFormRowGrid:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"},".ant-form-item-label, .ant-legacy-form-item-label":{float:"left"}}}}),Ce=Se,Ae=["title","children","last","block","grid"],Fe=function(t){var n,l=t.title,i=t.children,o=t.last,d=t.block,c=t.grid,y=je()(t,Ae),v=Ce(),m=v.styles,S=K()(m.standardFormRow,(n={},h()(n,m.standardFormRowBlock,d),h()(n,m.standardFormRowLast,o),h()(n,m.standardFormRowGrid,c),n));return(0,e.jsxs)("div",f()(f()({className:S},y),{},{children:[l&&(0,e.jsx)("div",{className:m.label,children:(0,e.jsx)("span",{children:l})}),(0,e.jsx)("div",{className:m.content,children:i})]}))},b=Fe,Re=a(31013),Ze=a.n(Re),Oe=a(77032),Ee=a(29514),De=a(85159),Le=(0,D.kc)(function(s){var t=s.token;return{tagSelect:{position:"relative",maxHeight:"32px",marginLeft:"-8px",overflow:"hidden",lineHeight:"32px",transition:"all 0.3s",userSelect:"none",".ant-tag":{marginRight:"24px",padding:"0 8px",fontSize:t.fontSize}},trigger:{position:"absolute",top:"0",right:"0","span.anticon":{fontSize:"12px"}},expanded:{maxHeight:"200px",transition:"all 0.3s"},hasExpandTag:{paddingRight:"50px"}}}),ke=Le,U=E.Z.CheckableTag,J=function(t){var n=t.children,l=t.checked,i=t.onChange,o=t.value;return(0,e.jsx)(U,{checked:!!l,onChange:function(c){return i&&i(o,c)},children:n},o)};J.isTagSelectOption=!0;var Q=function(t){var n,l=ke(),i=l.styles,o=t.children,d=t.hideCheckAll,c=d===void 0?!1:d,y=t.className,v=t.style,m=t.expandable,S=t.actionsText,C=S===void 0?{}:S,V=(0,F.useState)(!1),R=z()(V,2),j=R[0],k=R[1],W=(0,De.C8)(t.defaultValue||[],{value:t.value,defaultValue:t.defaultValue,onChange:t.onChange}),B=z()(W,2),r=B[0],u=B[1],M=function(g){return g&&g.type&&(g.type.isTagSelectOption||g.type.displayName==="TagSelectOption")},A=function(){var g=F.Children.toArray(o),T=g.filter(function(p){return M(p)}).map(function(p){return p.props.value});return T||[]},Ve=function(g){var T=[];g&&(T=A()),u(T)},We=function(g,T){var p=Ze()(r||[]),G=p.indexOf(g);T&&G===-1?p.push(g):!T&&G>-1&&p.splice(G,1),u(p)},Ge=A().length===(r==null?void 0:r.length),ee=C.expandText,Pe=ee===void 0?"\u5C55\u5F00":ee,te=C.collapseText,Ye=te===void 0?"\u6536\u8D77":te,ae=C.selectAllText,Xe=ae===void 0?"\u5168\u90E8":ae,Ke=K()(i.tagSelect,y,(n={},h()(n,i.hasExpandTag,m),h()(n,i.expanded,j),n));return(0,e.jsxs)("div",{className:Ke,style:v,children:[c?null:(0,e.jsx)(U,{checked:Ge,onChange:Ve,children:Xe},"tag-select-__all__"),o&&F.Children.map(o,function(x){return M(x)?F.cloneElement(x,{key:"tag-select-".concat(x.props.value),value:x.props.value,checked:r&&r.indexOf(x.props.value)>-1,onChange:We}):x}),m&&(0,e.jsx)("a",{className:i.trigger,onClick:function(){k(!j)},children:j?(0,e.jsxs)(e.Fragment,{children:[Ye," ",(0,e.jsx)(Oe.Z,{})]}):(0,e.jsxs)(e.Fragment,{children:[Pe,(0,e.jsx)(Ee.Z,{})]})})]})};Q.Option=J;var q=Q,Be=a(29195),_=a.n(Be),Me=a(56717),Ne=a.n(Me);function ze(s){return $.apply(this,arguments)}function $(){return $=Ne()(_()().mark(function s(t){return _()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,P.request)("/api/fake_list",{params:t}));case 1:case"end":return l.stop()}},s)})),$.apply(this,arguments)}var Ie=(0,D.kc)(function(s){var t,n=s.token;return{listItemMetaTitle:{color:n.colorTextHeading},listItemExtra:h()({width:"272px",height:"1px"},"@media screen and (max-width: ".concat(n.screenLG,"px)"),{width:"0",height:"1px"}),selfTrigger:(t={marginLeft:"12px"},h()(t,"@media screen and (max-width: ".concat(n.screenXS,"px)"),{display:"block",marginLeft:"0"}),h()(t,"@media screen and (max-width: ".concat(n.screenMD,"px)"),{display:"block",marginLeft:"0"}),t)}}),we=Ie,L=I.Z.Item,He=5,be=function(){var t=I.Z.useForm(),n=z()(t,1),l=n[0],i=we(),o=i.styles,d=(0,P.useRequest)(function(){return ze({count:He})},{loadMore:!0}),c=d.data,y=d.reload,v=d.loading,m=d.loadMore,S=d.loadingMore,C=(c==null?void 0:c.list)||[],V=function(){l.setFieldsValue({owner:["wzj"]})},R=[{id:"wzj",name:"\u6211\u81EA\u5DF1"},{id:"wjh",name:"\u5434\u5BB6\u8C6A"},{id:"zxx",name:"\u5468\u661F\u661F"},{id:"zly",name:"\u8D75\u4E3D\u9896"},{id:"ym",name:"\u59DA\u660E"}],j=function(u){var M=u.type,A=u.text;switch(M){case"star-o":return(0,e.jsxs)("span",{children:[(0,e.jsx)(le.Z,{style:{marginRight:8}}),A]});case"like-o":return(0,e.jsxs)("span",{children:[(0,e.jsx)(re.Z,{style:{marginRight:8}}),A]});case"message":return(0,e.jsxs)("span",{children:[(0,e.jsx)(se.Z,{style:{marginRight:8}}),A]});default:return null}},k={wrapperCol:{xs:{span:24},sm:{span:24},md:{span:12}}},W=C.length>0&&(0,e.jsx)("div",{style:{textAlign:"center",marginTop:16},children:(0,e.jsx)(ie.ZP,{onClick:m,style:{paddingLeft:48,paddingRight:48},children:S?(0,e.jsxs)("span",{children:[(0,e.jsx)(oe.Z,{})," \u52A0\u8F7D\u4E2D..."]}):"\u52A0\u8F7D\u66F4\u591A"})}),B=(0,F.useMemo)(function(){return R.map(function(r){return{label:r.name,value:r.id}})},[R]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Y.Z,{bordered:!1,children:(0,e.jsxs)(I.Z,{layout:"inline",form:l,initialValues:{owner:["wjh","zxx"]},onValuesChange:y,children:[(0,e.jsx)(b,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,e.jsx)(L,{name:"category",children:(0,e.jsx)(q,{expandable:!0,children:ce.O.map(function(r){return(0,e.jsx)(q.Option,{value:r.value,children:r.label},r.value)})})})}),(0,e.jsxs)(b,{title:"owner",grid:!0,children:[(0,e.jsx)(L,{name:"owner",noStyle:!0,children:(0,e.jsx)(w.Z,{mode:"multiple",placeholder:"\u9009\u62E9 owner",style:{minWidth:"6rem"},options:B})}),(0,e.jsx)("a",{className:o.selfTrigger,onClick:V,children:"\u53EA\u770B\u81EA\u5DF1\u7684"})]}),(0,e.jsx)(b,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,e.jsxs)(de.Z,{gutter:16,children:[(0,e.jsx)(X.Z,{xl:8,lg:10,md:12,sm:24,xs:24,children:(0,e.jsx)(L,f()(f()({},k),{},{label:"\u6D3B\u8DC3\u7528\u6237",name:"user",children:(0,e.jsx)(w.Z,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u674E\u4E09",value:"lisa"}]})}))}),(0,e.jsx)(X.Z,{xl:8,lg:10,md:12,sm:24,xs:24,children:(0,e.jsx)(L,f()(f()({},k),{},{label:"\u597D\u8BC4\u5EA6",name:"rate",children:(0,e.jsx)(w.Z,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u4F18\u79C0",value:"good"}]})}))})]})})]})}),(0,e.jsx)(Y.Z,{style:{marginTop:24},bordered:!1,bodyStyle:{padding:"8px 32px 32px 32px"},children:(0,e.jsx)(H.Z,{size:"large",loading:v,rowKey:"id",itemLayout:"vertical",loadMore:W,dataSource:C,renderItem:function(u){return(0,e.jsxs)(H.Z.Item,{actions:[(0,e.jsx)(j,{type:"star-o",text:u.star},"star"),(0,e.jsx)(j,{type:"like-o",text:u.like},"like"),(0,e.jsx)(j,{type:"message",text:u.message},"message")],extra:(0,e.jsx)("div",{className:o.listItemExtra}),children:[(0,e.jsx)(H.Z.Item.Meta,{title:(0,e.jsx)("a",{className:o.listItemMetaTitle,href:u.href,children:u.title}),description:(0,e.jsxs)("span",{children:[(0,e.jsx)(E.Z,{children:"Ant Design"}),(0,e.jsx)(E.Z,{children:"\u8BBE\u8BA1\u8BED\u8A00"}),(0,e.jsx)(E.Z,{children:"\u8682\u8681\u91D1\u670D"})]})}),(0,e.jsx)(fe,{data:u})]},u.id)}})})]})},$e=be}}]); diff --git a/p__list__search__index.8a123516.async.js b/p__list__search__index.8a123516.async.js deleted file mode 100644 index f9a73c43..00000000 --- a/p__list__search__index.8a123516.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3733],{57249:function(X,y,t){t.d(y,{Z:function(){return N}});var n=t(38126),c=t(50959),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},u=v,g=t(38782),b=function(r,I){return c.createElement(g.Z,(0,n.Z)({},r,{ref:I,icon:u}))},N=c.forwardRef(b)},96527:function(X,y,t){t.d(y,{Z:function(){return N}});var n=t(38126),c=t(50959),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},u=v,g=t(38782),b=function(r,I){return c.createElement(g.Z,(0,n.Z)({},r,{ref:I,icon:u}))},N=c.forwardRef(b)},83881:function(X,y,t){t.r(y);var n=t(95943),c=t(27533),v=t(33952),u=t(11527),g=[{key:"articles",tab:"\u6587\u7AE0"},{key:"projects",tab:"\u9879\u76EE"},{key:"applications",tab:"\u5E94\u7528"}],b=function(){var P=(0,c.useLocation)(),r=(0,c.useMatch)(P.pathname),I=function(m){var L=(r==null?void 0:r.pathname)==="/"?"":r==null?void 0:r.pathname.substring(0,r.pathname.lastIndexOf("/"));switch(m){case"articles":c.history.push("".concat(L,"/articles"));break;case"applications":c.history.push("".concat(L,"/applications"));break;case"projects":c.history.push("".concat(L,"/projects"));break;default:break}},Y=function(m){console.log(m)},k=function(){var m=P.pathname.substring(P.pathname.lastIndexOf("/")+1);return m&&m!=="/"?m:"articles"};return(0,u.jsx)(n._z,{content:(0,u.jsx)("div",{style:{textAlign:"center"},children:(0,u.jsx)(v.Z.Search,{placeholder:"\u8BF7\u8F93\u5165",enterButton:"\u641C\u7D22",size:"large",onSearch:Y,style:{maxWidth:522,width:"100%"}})}),tabList:g,tabActiveKey:k(),onTabChange:I,children:(0,u.jsx)(c.Outlet,{})})};y.default=b},33952:function(X,y,t){t.d(y,{Z:function(){return de}});var n=t(50959),c=t(84875),v=t.n(c),u=t(31594),g=t(1415),b=t(55904),P=e=>{const{getPrefixCls:d,direction:s}=(0,n.useContext)(u.E_),{prefixCls:o,className:a}=e,f=d("input-group",o),j=d("input"),[p,T]=(0,b.ZP)(j),Z=v()(f,{[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:s==="rtl"},T,a),S=(0,n.useContext)(g.aM),x=(0,n.useMemo)(()=>Object.assign(Object.assign({},S),{isFormItemInput:!1}),[S]);return p(n.createElement("span",{className:Z,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},n.createElement(g.aM.Provider,{value:x},e.children)))},r=t(21626),I=t(57249),Y=t(96527),k=t(87017),D=t(12602),m=t(59647),L=function(e,d){var s={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&d.indexOf(o)<0&&(s[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);ae?n.createElement(Y.Z,null):n.createElement(I.Z,null),ne={click:"onClick",hover:"onMouseOver"};var oe=n.forwardRef((e,d)=>{const{visibilityToggle:s=!0}=e,o=typeof s=="object"&&s.visible!==void 0,[a,f]=(0,n.useState)(()=>o?s.visible:!1),j=(0,n.useRef)(null);n.useEffect(()=>{o&&f(s.visible)},[o,s]);const p=(0,m.Z)(j),T=()=>{const{disabled:w}=e;w||(a&&p(),f(C=>{var h;const R=!C;return typeof s=="object"&&((h=s.onVisibleChange)===null||h===void 0||h.call(s,R)),R}))},Z=w=>{const{action:C="click",iconRender:h=te}=e,R=ne[C]||"",B=h(a),U={[R]:T,className:`${w}-icon`,key:"passwordIcon",onMouseDown:Q=>{Q.preventDefault()},onMouseUp:Q=>{Q.preventDefault()}};return n.cloneElement(n.isValidElement(B)?B:n.createElement("span",null,B),U)},{className:S,prefixCls:x,inputPrefixCls:W,size:O}=e,F=L(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:G}=n.useContext(u.E_),H=G("input",W),A=G("input-password",x),K=s&&Z(A),E=v()(A,S,{[`${A}-${O}`]:!!O}),J=Object.assign(Object.assign({},(0,k.Z)(F,["suffix","iconRender","visibilityToggle"])),{type:a?"text":"password",className:E,prefixCls:H,suffix:K});return O&&(J.size=O),n.createElement(r.Z,Object.assign({ref:(0,D.sQ)(d,j)},J))}),se=t(61020),q=t(94914),ae=t(47100),ie=t(17436),le=t(21130),re=function(e,d){var s={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&d.indexOf(o)<0&&(s[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a{const{prefixCls:s,inputPrefixCls:o,className:a,size:f,suffix:j,enterButton:p=!1,addonAfter:T,loading:Z,disabled:S,onSearch:x,onChange:W,onCompositionStart:O,onCompositionEnd:F}=e,G=re(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:H,direction:A}=n.useContext(u.E_),K=n.useRef(!1),E=H("input-search",s),J=H("input",o),{compactSize:w}=(0,le.ri)(E,A),C=(0,ie.Z)(i=>{var l;return(l=f!=null?f:w)!==null&&l!==void 0?l:i}),h=n.useRef(null),R=i=>{i&&i.target&&i.type==="click"&&x&&x(i.target.value,i,{source:"clear"}),W&&W(i)},B=i=>{var l;document.activeElement===((l=h.current)===null||l===void 0?void 0:l.input)&&i.preventDefault()},U=i=>{var l,M;x&&x((M=(l=h.current)===null||l===void 0?void 0:l.input)===null||M===void 0?void 0:M.value,i,{source:"input"})},Q=i=>{K.current||Z||U(i)},fe=typeof p=="boolean"?n.createElement(se.Z,null):null,_=`${E}-button`;let V;const z=p||{},ee=z.type&&z.type.__ANT_BUTTON===!0;ee||z.type==="button"?V=(0,q.Tm)(z,Object.assign({onMouseDown:B,onClick:i=>{var l,M;(M=(l=z==null?void 0:z.props)===null||l===void 0?void 0:l.onClick)===null||M===void 0||M.call(l,i),U(i)},key:"enterButton"},ee?{className:_,size:C}:{})):V=n.createElement(ae.ZP,{className:_,type:p?"primary":void 0,size:C,disabled:S,key:"enterButton",onMouseDown:B,onClick:U,loading:Z,icon:fe},p),T&&(V=[V,(0,q.Tm)(T,{key:"addonAfter"})]);const ve=v()(E,{[`${E}-rtl`]:A==="rtl",[`${E}-${C}`]:!!C,[`${E}-with-button`]:!!p},a),me=i=>{K.current=!0,O==null||O(i)},pe=i=>{K.current=!1,F==null||F(i)};return n.createElement(r.Z,Object.assign({ref:(0,D.sQ)(h,d),onPressEnter:Q},G,{size:C,onCompositionStart:me,onCompositionEnd:pe,prefixCls:J,addonAfter:V,suffix:j,onChange:R,className:ve,disabled:S}))}),ue=t(15714);const $=r.Z;$.Group=P,$.Search=ce,$.TextArea=ue.Z,$.Password=oe;var de=$}}]); diff --git a/p__list__search__index.cadd0504.async.js b/p__list__search__index.cadd0504.async.js new file mode 100644 index 00000000..f49f3c91 --- /dev/null +++ b/p__list__search__index.cadd0504.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3733],{33974:function(X,y,t){t.d(y,{Z:function(){return N}});var n=t(21137),c=t(79685),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},u=v,g=t(83317),b=function(r,I){return c.createElement(g.Z,(0,n.Z)({},r,{ref:I,icon:u}))},N=c.forwardRef(b)},71449:function(X,y,t){t.d(y,{Z:function(){return N}});var n=t(21137),c=t(79685),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},u=v,g=t(83317),b=function(r,I){return c.createElement(g.Z,(0,n.Z)({},r,{ref:I,icon:u}))},N=c.forwardRef(b)},65185:function(X,y,t){t.r(y);var n=t(89336),c=t(8025),v=t(79714),u=t(63342),g=[{key:"articles",tab:"\u6587\u7AE0"},{key:"projects",tab:"\u9879\u76EE"},{key:"applications",tab:"\u5E94\u7528"}],b=function(){var P=(0,c.useLocation)(),r=(0,c.useMatch)(P.pathname),I=function(m){var L=(r==null?void 0:r.pathname)==="/"?"":r==null?void 0:r.pathname.substring(0,r.pathname.lastIndexOf("/"));switch(m){case"articles":c.history.push("".concat(L,"/articles"));break;case"applications":c.history.push("".concat(L,"/applications"));break;case"projects":c.history.push("".concat(L,"/projects"));break;default:break}},Y=function(m){console.log(m)},k=function(){var m=P.pathname.substring(P.pathname.lastIndexOf("/")+1);return m&&m!=="/"?m:"articles"};return(0,u.jsx)(n._z,{content:(0,u.jsx)("div",{style:{textAlign:"center"},children:(0,u.jsx)(v.Z.Search,{placeholder:"\u8BF7\u8F93\u5165",enterButton:"\u641C\u7D22",size:"large",onSearch:Y,style:{maxWidth:522,width:"100%"}})}),tabList:g,tabActiveKey:k(),onTabChange:I,children:(0,u.jsx)(c.Outlet,{})})};y.default=b},79714:function(X,y,t){t.d(y,{Z:function(){return de}});var n=t(79685),c=t(68591),v=t.n(c),u=t(99248),g=t(56107),b=t(57873),P=e=>{const{getPrefixCls:d,direction:s}=(0,n.useContext)(u.E_),{prefixCls:o,className:a}=e,f=d("input-group",o),j=d("input"),[p,T]=(0,b.ZP)(j),Z=v()(f,{[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:s==="rtl"},T,a),S=(0,n.useContext)(g.aM),x=(0,n.useMemo)(()=>Object.assign(Object.assign({},S),{isFormItemInput:!1}),[S]);return p(n.createElement("span",{className:Z,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},n.createElement(g.aM.Provider,{value:x},e.children)))},r=t(92006),I=t(33974),Y=t(71449),k=t(3139),D=t(52401),m=t(86054),L=function(e,d){var s={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&d.indexOf(o)<0&&(s[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);ae?n.createElement(Y.Z,null):n.createElement(I.Z,null),ne={click:"onClick",hover:"onMouseOver"};var oe=n.forwardRef((e,d)=>{const{visibilityToggle:s=!0}=e,o=typeof s=="object"&&s.visible!==void 0,[a,f]=(0,n.useState)(()=>o?s.visible:!1),j=(0,n.useRef)(null);n.useEffect(()=>{o&&f(s.visible)},[o,s]);const p=(0,m.Z)(j),T=()=>{const{disabled:w}=e;w||(a&&p(),f(C=>{var h;const R=!C;return typeof s=="object"&&((h=s.onVisibleChange)===null||h===void 0||h.call(s,R)),R}))},Z=w=>{const{action:C="click",iconRender:h=te}=e,R=ne[C]||"",B=h(a),U={[R]:T,className:`${w}-icon`,key:"passwordIcon",onMouseDown:Q=>{Q.preventDefault()},onMouseUp:Q=>{Q.preventDefault()}};return n.cloneElement(n.isValidElement(B)?B:n.createElement("span",null,B),U)},{className:S,prefixCls:x,inputPrefixCls:W,size:O}=e,F=L(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:G}=n.useContext(u.E_),H=G("input",W),A=G("input-password",x),K=s&&Z(A),E=v()(A,S,{[`${A}-${O}`]:!!O}),J=Object.assign(Object.assign({},(0,k.Z)(F,["suffix","iconRender","visibilityToggle"])),{type:a?"text":"password",className:E,prefixCls:H,suffix:K});return O&&(J.size=O),n.createElement(r.Z,Object.assign({ref:(0,D.sQ)(d,j)},J))}),se=t(66907),q=t(23196),ae=t(10951),ie=t(73064),le=t(26490),re=function(e,d){var s={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&d.indexOf(o)<0&&(s[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a{const{prefixCls:s,inputPrefixCls:o,className:a,size:f,suffix:j,enterButton:p=!1,addonAfter:T,loading:Z,disabled:S,onSearch:x,onChange:W,onCompositionStart:O,onCompositionEnd:F}=e,G=re(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:H,direction:A}=n.useContext(u.E_),K=n.useRef(!1),E=H("input-search",s),J=H("input",o),{compactSize:w}=(0,le.ri)(E,A),C=(0,ie.Z)(i=>{var l;return(l=f!=null?f:w)!==null&&l!==void 0?l:i}),h=n.useRef(null),R=i=>{i&&i.target&&i.type==="click"&&x&&x(i.target.value,i,{source:"clear"}),W&&W(i)},B=i=>{var l;document.activeElement===((l=h.current)===null||l===void 0?void 0:l.input)&&i.preventDefault()},U=i=>{var l,M;x&&x((M=(l=h.current)===null||l===void 0?void 0:l.input)===null||M===void 0?void 0:M.value,i,{source:"input"})},Q=i=>{K.current||Z||U(i)},fe=typeof p=="boolean"?n.createElement(se.Z,null):null,_=`${E}-button`;let V;const z=p||{},ee=z.type&&z.type.__ANT_BUTTON===!0;ee||z.type==="button"?V=(0,q.Tm)(z,Object.assign({onMouseDown:B,onClick:i=>{var l,M;(M=(l=z==null?void 0:z.props)===null||l===void 0?void 0:l.onClick)===null||M===void 0||M.call(l,i),U(i)},key:"enterButton"},ee?{className:_,size:C}:{})):V=n.createElement(ae.ZP,{className:_,type:p?"primary":void 0,size:C,disabled:S,key:"enterButton",onMouseDown:B,onClick:U,loading:Z,icon:fe},p),T&&(V=[V,(0,q.Tm)(T,{key:"addonAfter"})]);const ve=v()(E,{[`${E}-rtl`]:A==="rtl",[`${E}-${C}`]:!!C,[`${E}-with-button`]:!!p},a),me=i=>{K.current=!0,O==null||O(i)},pe=i=>{K.current=!1,F==null||F(i)};return n.createElement(r.Z,Object.assign({ref:(0,D.sQ)(h,d),onPressEnter:Q},G,{size:C,onCompositionStart:me,onCompositionEnd:pe,prefixCls:J,addonAfter:V,suffix:j,onChange:R,className:ve,disabled:S}))}),ue=t(51807);const $=r.Z;$.Group=P,$.Search=ce,$.TextArea=ue.Z,$.Password=oe;var de=$}}]); diff --git a/p__list__search__projects__index.6735ade2.async.js b/p__list__search__projects__index.6735ade2.async.js deleted file mode 100644 index f6939dbc..00000000 --- a/p__list__search__projects__index.6735ade2.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9987],{73715:function(Z,m){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};m.Z=e},82574:function(Z,m,e){"use strict";var g=e(33346),l=e(50959),x=e(5590),E=e(69164),C=function(v,p){return l.createElement(E.Z,(0,g.Z)((0,g.Z)({},v),{},{ref:p,icon:x.Z}))};C.displayName="DownOutlined",m.Z=l.forwardRef(C)},1861:function(Z,m,e){"use strict";var g=e(33346),l=e(50959),x=e(73715),E=e(69164),C=function(v,p){return l.createElement(E.Z,(0,g.Z)((0,g.Z)({},v),{},{ref:p,icon:x.Z}))};C.displayName="UpOutlined",m.Z=l.forwardRef(C)},83032:function(Z,m,e){"use strict";e.d(m,{O:function(){return g}});var g=Array.from({length:12}).map(function(l,x){return{value:"cat".concat(x+1),label:"\u7C7B\u76EE".concat(x+1)}})},52994:function(Z,m,e){"use strict";e.r(m),e.d(m,{default:function(){return Ut}});var g=e(77117),l=e.n(g),x=e(27533),E=e(67190),C=e(52058),i=e(90543),v=e(50304),p=e(23870),D=e(82099),b=e(32413),H=e(5726),M=e.n(H),k=e(92117),W=e.n(k),U=e(95530),w=e.n(U),R=e(21320),c=e.n(R),A=e(32618),B=e(21757),K=e(84875),J=e.n(K),N=e(50959),G=e(8700),xt=(0,G.kc)(function(d){var t=d.token;return{avatarList:{display:"inline-block",ul:{display:"inline-block",marginLeft:"8px",fontSize:"0"}},avatarItem:{display:"inline-block",width:t.controlHeight,height:t.controlHeight,marginLeft:"-8px",fontSize:t.fontSize,".ant-avatar":{border:"1px solid ".concat(t.colorBorder)}},avatarItemLarge:{width:t.controlHeightLG,height:t.controlHeightLG},avatarItemSmall:{width:t.controlHeightSM,height:t.controlHeightSM},avatarItemMini:{width:"20px",height:"20px",".ant-avatar":{width:"20px",height:"20px",lineHeight:"20px",".ant-avatar-string":{fontSize:"12px",lineHeight:"18px"}}}}}),q=xt,a=e(11527),ft=["children","size","maxLength","excessItemsStyle"],_=function(t,n){var r;return J()(n.avatarItem,(r={},c()(r,n.avatarItemLarge,t==="large"),c()(r,n.avatarItemSmall,t==="small"),c()(r,n.avatarItemMini,t==="mini"),r))},pt=function(t){var n=t.src,r=t.size,s=t.tips,u=t.onClick,y=u===void 0?function(){}:u,f=q(),L=f.styles,S=_(r,L);return(0,a.jsx)("li",{className:S,onClick:y,children:s?(0,a.jsx)(A.Z,{title:s,children:(0,a.jsx)(B.C,{src:n,size:r,style:{cursor:"pointer"}})}):(0,a.jsx)(B.C,{src:n,size:r})})},tt=function(t){var n=t.children,r=t.size,s=t.maxLength,u=s===void 0?5:s,y=t.excessItemsStyle,f=w()(t,ft),L=q(),S=L.styles,o=N.Children.count(n),h=u>=o?o:u,O=N.Children.toArray(n),z=O.slice(0,h).map(function($){return N.cloneElement($,{size:r})});if(h span":{display:"inline-block",height:"32px",lineHeight:"32px","&::after":{content:"'\uFF1A'"}}},content:{flex:"1 1 0",".ant-form-item, .ant-legacy-form-item":{"&:last-child":{display:"block",marginRight:"0"}}},standardFormRowLast:{marginBottom:"0",paddingBottom:"0",border:"none"},standardFormRowBlock:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"}},standardFormRowGrid:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"},".ant-form-item-label, .ant-legacy-form-item-label":{float:"left"}}}}),St=yt,Tt=["title","children","last","block","grid"],jt=function(t){var n,r=t.title,s=t.children,u=t.last,y=t.block,f=t.grid,L=w()(t,Tt),S=St(),o=S.styles,h=J()(o.standardFormRow,(n={},c()(n,o.standardFormRowBlock,y),c()(n,o.standardFormRowLast,u),c()(n,o.standardFormRowGrid,f),n));return(0,a.jsxs)("div",l()(l()({className:h},L),{},{children:[r&&(0,a.jsx)("div",{className:o.label,children:(0,a.jsx)("span",{children:r})}),(0,a.jsx)("div",{className:o.content,children:s})]}))},at=jt,Ct=e(67855),Ot=e.n(Ct),Et=e(28152),nt=e.n(Et),Lt=e(1861),At=e(82574),It=e(28566),Mt=e(96771),Rt=(0,G.kc)(function(d){var t=d.token;return{tagSelect:{position:"relative",maxHeight:"32px",marginLeft:"-8px",overflow:"hidden",lineHeight:"32px",transition:"all 0.3s",userSelect:"none",".ant-tag":{marginRight:"24px",padding:"0 8px",fontSize:t.fontSize}},trigger:{position:"absolute",top:"0",right:"0","span.anticon":{fontSize:"12px"}},expanded:{maxHeight:"200px",transition:"all 0.3s"},hasExpandTag:{paddingRight:"50px"}}}),Bt=Rt,rt=It.Z.CheckableTag,lt=function(t){var n=t.children,r=t.checked,s=t.onChange,u=t.value;return(0,a.jsx)(rt,{checked:!!r,onChange:function(f){return s&&s(u,f)},children:n},u)};lt.isTagSelectOption=!0;var ot=function(t){var n,r=Bt(),s=r.styles,u=t.children,y=t.hideCheckAll,f=y===void 0?!1:y,L=t.className,S=t.style,o=t.expandable,h=t.actionsText,O=h===void 0?{}:h,z=(0,N.useState)(!1),V=nt()(z,2),$=V[0],Kt=V[1],$t=(0,Mt.C8)(t.defaultValue||[],{value:t.value,defaultValue:t.defaultValue,onChange:t.onChange}),dt=nt()($t,2),F=dt[0],ct=dt[1],ut=function(j){return j&&j.type&&(j.type.isTagSelectOption||j.type.displayName==="TagSelectOption")},mt=function(){var j=N.Children.toArray(u),P=j.filter(function(I){return ut(I)}).map(function(I){return I.props.value});return P||[]},wt=function(j){var P=[];j&&(P=mt()),ct(P)},Gt=function(j,P){var I=Ot()(F||[]),Y=I.indexOf(j);P&&Y===-1?I.push(j):!P&&Y>-1&&I.splice(Y,1),ct(I)},Vt=mt().length===(F==null?void 0:F.length),vt=O.expandText,Jt=vt===void 0?"\u5C55\u5F00":vt,ht=O.collapseText,Qt=ht===void 0?"\u6536\u8D77":ht,gt=O.selectAllText,Xt=gt===void 0?"\u5168\u90E8":gt,Yt=J()(s.tagSelect,L,(n={},c()(n,s.hasExpandTag,o),c()(n,s.expanded,$),n));return(0,a.jsxs)("div",{className:Yt,style:S,children:[f?null:(0,a.jsx)(rt,{checked:Vt,onChange:wt,children:Xt},"tag-select-__all__"),u&&N.Children.map(u,function(T){return ut(T)?N.cloneElement(T,{key:"tag-select-".concat(T.props.value),value:T.props.value,checked:F&&F.indexOf(T.props.value)>-1,onChange:Gt}):T}),o&&(0,a.jsx)("a",{className:s.trigger,onClick:function(){Kt(!$)},children:$?(0,a.jsxs)(a.Fragment,{children:[Qt," ",(0,a.jsx)(Lt.Z,{})]}):(0,a.jsxs)(a.Fragment,{children:[Jt,(0,a.jsx)(At.Z,{})]})})]})};ot.Option=lt;var it=ot,Nt=e(13448),st=e.n(Nt),Pt=e(74815),Zt=e.n(Pt);function Dt(d){return Q.apply(this,arguments)}function Q(){return Q=Zt()(st()().mark(function d(t){return st()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,x.request)("/api/fake_list",{params:t}));case 1:case"end":return r.stop()}},d)})),Q.apply(this,arguments)}var zt=(0,G.kc)(function(d){var t=d.token;return{card:{".ant-card-meta-title":{marginBottom:"4px","& > a":{display:"inline-block",maxWidth:"100%",color:t.colorTextHeading}},".ant-card-meta-description":{height:"44px",overflow:"hidden",lineHeight:"22px"},"&:hover":{".ant-card-meta-title > a":{color:t.colorPrimary}}},cardItemContent:{display:"flex",height:"20px",marginTop:"16px",marginBottom:"-4px",lineHeight:"20px","& > span":{flex:"1",color:t.colorTextSecondary,fontSize:"12px"}},avatarList:{flex:"0 1 auto"},cardList:{marginTop:"24px"},coverCardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}}}}),Ft=zt,bt=e(83032);M().extend(W());var X=E.Z.Item,Ht=C.Z.Paragraph,kt=function(t,n){return"".concat(t,"-").concat(n)},Wt=function(){var t=Ft(),n=t.styles,r=(0,x.useRequest)(function(o){return console.log("form data",o),Dt({count:8})}),s=r.data,u=r.loading,y=r.run,f=(s==null?void 0:s.list)||[],L=f&&(0,a.jsx)(i.Z,{rowKey:"id",loading:u,grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},dataSource:f,renderItem:function(h){return(0,a.jsx)(i.Z.Item,{children:(0,a.jsxs)(v.Z,{className:n.card,hoverable:!0,cover:(0,a.jsx)("img",{alt:h.title,src:h.cover}),children:[(0,a.jsx)(v.Z.Meta,{title:(0,a.jsx)("a",{children:h.title}),description:(0,a.jsx)(Ht,{ellipsis:{rows:2},children:h.subDescription})}),(0,a.jsxs)("div",{className:n.cardItemContent,children:[(0,a.jsx)("span",{children:M()(h.updatedAt).fromNow()}),(0,a.jsx)("div",{className:n.avatarList,children:(0,a.jsx)(et,{size:"small",children:h.members.map(function(O,z){return(0,a.jsx)(et.Item,{src:O.avatar,tips:O.name},kt(h.id,z))})})})]})]})})}}),S={wrapperCol:{xs:{span:24},sm:{span:16}}};return(0,a.jsxs)("div",{className:n.coverCardList,children:[(0,a.jsx)(v.Z,{bordered:!1,children:(0,a.jsxs)(E.Z,{layout:"inline",onValuesChange:function(h,O){y(O)},children:[(0,a.jsx)(at,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,a.jsx)(X,{name:"category",children:(0,a.jsx)(it,{expandable:!0,children:bt.O.map(function(o){return(0,a.jsx)(it.Option,{value:o.value,children:o.label},o.value)})})})}),(0,a.jsx)(at,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,a.jsxs)(p.Z,{gutter:16,children:[(0,a.jsx)(D.Z,{lg:8,md:10,sm:10,xs:24,children:(0,a.jsx)(X,l()(l()({},S),{},{label:"\u4F5C\u8005",name:"author",children:(0,a.jsx)(b.default,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u738B\u662D\u541B",value:"lisa"}]})}))}),(0,a.jsx)(D.Z,{lg:8,md:10,sm:10,xs:24,children:(0,a.jsx)(X,l()(l()({},S),{},{label:"\u597D\u8BC4\u5EA6",name:"rate",children:(0,a.jsx)(b.default,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u4F18\u79C0",value:"good"},{label:"\u666E\u901A",value:"normal"}]})}))})]})})]})}),(0,a.jsx)("div",{className:n.cardList,children:L})]})},Ut=Wt},92117:function(Z){(function(m,e){Z.exports=e()})(this,function(){"use strict";return function(m,e,g){m=m||{};var l=e.prototype,x={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function E(i,v,p,D){return l.fromToBase(i,v,p,D)}g.en.relativeTime=x,l.fromToBase=function(i,v,p,D,b){for(var H,M,k,W=p.$locale().relativeTime||x,U=m.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],w=U.length,R=0;R0,A<=c.r||!c.r){A<=1&&R>0&&(c=U[R-1]);var B=W[c.l];b&&(A=b(""+A)),M=typeof B=="string"?B.replace("%d",A):B(A,v,c.l,k);break}}if(v)return M;var K=k?W.future:W.past;return typeof K=="function"?K(M):K.replace("%s",M)},l.to=function(i,v){return E(i,v,this,!0)},l.from=function(i,v){return E(i,v,this)};var C=function(i){return i.$u?g.utc():g()};l.toNow=function(i){return this.to(C(this),i)},l.fromNow=function(i){return this.from(C(this),i)}}})}}]); diff --git a/p__list__search__projects__index.76ebd307.async.js b/p__list__search__projects__index.76ebd307.async.js new file mode 100644 index 00000000..87ab22f9 --- /dev/null +++ b/p__list__search__projects__index.76ebd307.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9987],{37519:function(q,h){"use strict";var t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};h.Z=t},29514:function(q,h,t){"use strict";var l=t(93264),d=t(79685),T=t(90462),E=t(64507),O=function(f,b){return d.createElement(E.Z,(0,l.Z)((0,l.Z)({},f),{},{ref:b,icon:T.Z}))};O.displayName="DownOutlined",h.Z=d.forwardRef(O)},77032:function(q,h,t){"use strict";var l=t(93264),d=t(79685),T=t(37519),E=t(64507),O=function(f,b){return d.createElement(E.Z,(0,l.Z)((0,l.Z)({},f),{},{ref:b,icon:T.Z}))};O.displayName="UpOutlined",h.Z=d.forwardRef(O)},33387:function(q,h,t){"use strict";t.d(h,{O:function(){return l}});var l=Array.from({length:12}).map(function(d,T){return{value:"cat".concat(T+1),label:"\u7C7B\u76EE".concat(T+1)}})},99134:function(q,h,t){"use strict";t.r(h),t.d(h,{default:function(){return Ue}});var l=t(42329),d=t.n(l),T=t(8025),E=t(73952),O=t(25480),g=t(21583),f=t(18283),b=t(61728),F=t(43241),_=t(76742),ee=t(50510),W=t.n(ee),U=t(96300),te=t.n(U),k=t(33387),ae=t(77128),$=t.n(ae),I=t(37482),C=t.n(I),ne=t(58898),K=t(61030),je=t(68591),me=t.n(je),w=t(79685),V=t(24507),Oe=(0,V.kc)(function(p){var a=p.token;return{avatarList:{display:"inline-block",ul:{display:"inline-block",marginLeft:"8px",fontSize:"0"}},avatarItem:{display:"inline-block",width:a.controlHeight,height:a.controlHeight,marginLeft:"-8px",fontSize:a.fontSize,".ant-avatar":{border:"1px solid ".concat(a.colorBorder)}},avatarItemLarge:{width:a.controlHeightLG,height:a.controlHeightLG},avatarItemSmall:{width:a.controlHeightSM,height:a.controlHeightSM},avatarItemMini:{width:"20px",height:"20px",".ant-avatar":{width:"20px",height:"20px",lineHeight:"20px",".ant-avatar-string":{fontSize:"12px",lineHeight:"18px"}}}}}),ye=Oe,n=t(63342),Ce=["children","size","maxLength","excessItemsStyle"],Se=function(a,o){var c;return me()(o.avatarItem,(c={},C()(c,o.avatarItemLarge,a==="large"),C()(c,o.avatarItemSmall,a==="small"),C()(c,o.avatarItemMini,a==="mini"),c))},e=function(a){var o=a.src,c=a.size,v=a.tips,y=a.onClick,N=y===void 0?function(){}:y,L=ye(),X=L.styles,A=Se(c,X);return(0,n.jsx)("li",{className:A,onClick:N,children:v?(0,n.jsx)(ne.Z,{title:v,children:(0,n.jsx)(K.C,{src:o,size:c,style:{cursor:"pointer"}})}):(0,n.jsx)(K.C,{src:o,size:c})})},i=function(a){var o=a.children,c=a.size,v=a.maxLength,y=v===void 0?5:v,N=a.excessItemsStyle,L=$()(a,Ce),X=ye(),A=X.styles,m=w.Children.count(o),S=y>=m?m:y,H=w.Children.toArray(o),de=H.slice(0,S).map(function(xe){return w.cloneElement(xe,{size:c})});if(S span":{display:"inline-block",height:"32px",lineHeight:"32px","&::after":{content:"'\uFF1A'"}}},content:{flex:"1 1 0",".ant-form-item, .ant-legacy-form-item":{"&:last-child":{display:"block",marginRight:"0"}}},standardFormRowLast:{marginBottom:"0",paddingBottom:"0",border:"none"},standardFormRowBlock:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"}},standardFormRowGrid:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"},".ant-form-item-label, .ant-legacy-form-item-label":{float:"left"}}}}),s=r,P=["title","children","last","block","grid"],x=function(a){var o,c=a.title,v=a.children,y=a.last,N=a.block,L=a.grid,X=$()(a,P),A=s(),m=A.styles,S=me()(m.standardFormRow,(o={},C()(o,m.standardFormRowBlock,N),C()(o,m.standardFormRowLast,y),C()(o,m.standardFormRowGrid,L),o));return(0,n.jsxs)("div",d()(d()({className:S},X),{},{children:[c&&(0,n.jsx)("div",{className:m.label,children:(0,n.jsx)("span",{children:c})}),(0,n.jsx)("div",{className:m.content,children:v})]}))},R=x,z=t(31013),re=t.n(z),Z=t(97380),le=t.n(Z),Q=t(77032),G=t(29514),ge=t(90936),ve=t(85159),D=(0,V.kc)(function(p){var a=p.token;return{tagSelect:{position:"relative",maxHeight:"32px",marginLeft:"-8px",overflow:"hidden",lineHeight:"32px",transition:"all 0.3s",userSelect:"none",".ant-tag":{marginRight:"24px",padding:"0 8px",fontSize:a.fontSize}},trigger:{position:"absolute",top:"0",right:"0","span.anticon":{fontSize:"12px"}},expanded:{maxHeight:"200px",transition:"all 0.3s"},hasExpandTag:{paddingRight:"50px"}}}),Ee=D,he=ge.Z.CheckableTag,fe=function(a){var o=a.children,c=a.checked,v=a.onChange,y=a.value;return(0,n.jsx)(he,{checked:!!c,onChange:function(L){return v&&v(y,L)},children:o},y)};fe.isTagSelectOption=!0;var pe=function(a){var o,c=Ee(),v=c.styles,y=a.children,N=a.hideCheckAll,L=N===void 0?!1:N,X=a.className,A=a.style,m=a.expandable,S=a.actionsText,H=S===void 0?{}:S,de=(0,w.useState)(!1),be=le()(de,2),xe=be[0],ke=be[1],Ke=(0,ve.C8)(a.defaultValue||[],{value:a.value,defaultValue:a.defaultValue,onChange:a.onChange}),Re=le()(Ke,2),ue=Re[0],ze=Re[1],Ze=function(M){return M&&M.type&&(M.type.isTagSelectOption||M.type.displayName==="TagSelectOption")},De=function(){var M=w.Children.toArray(y),oe=M.filter(function(Y){return Ze(Y)}).map(function(Y){return Y.props.value});return oe||[]},we=function(M){var oe=[];M&&(oe=De()),ze(oe)},Ve=function(M,oe){var Y=re()(ue||[]),Me=Y.indexOf(M);oe&&Me===-1?Y.push(M):!oe&&Me>-1&&Y.splice(Me,1),ze(Y)},Ge=De().length===(ue==null?void 0:ue.length),He=H.expandText,Xe=He===void 0?"\u5C55\u5F00":He,Fe=H.collapseText,Qe=Fe===void 0?"\u6536\u8D77":Fe,We=H.selectAllText,Je=We===void 0?"\u5168\u90E8":We,Ye=me()(v.tagSelect,X,(o={},C()(o,v.hasExpandTag,m),C()(o,v.expanded,xe),o));return(0,n.jsxs)("div",{className:Ye,style:A,children:[L?null:(0,n.jsx)(he,{checked:Ge,onChange:we,children:Je},"tag-select-__all__"),y&&w.Children.map(y,function(B){return Ze(B)?w.cloneElement(B,{key:"tag-select-".concat(B.props.value),value:B.props.value,checked:ue&&ue.indexOf(B.props.value)>-1,onChange:Ve}):B}),m&&(0,n.jsx)("a",{className:v.trigger,onClick:function(){ke(!xe)},children:xe?(0,n.jsxs)(n.Fragment,{children:[Qe," ",(0,n.jsx)(Q.Z,{})]}):(0,n.jsxs)(n.Fragment,{children:[Xe,(0,n.jsx)(G.Z,{})]})})]})};pe.Option=fe;var se=pe,Ie=t(29195),j=t.n(Ie),Pe=t(56717),Le=t.n(Pe);function $e(p){return ie.apply(this,arguments)}function ie(){return ie=Le()(j()().mark(function p(a){return j()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,T.request)("/api/fake_list",{params:a}));case 1:case"end":return c.stop()}},p)})),ie.apply(this,arguments)}var Ne=(0,V.kc)(function(p){var a=p.token;return{card:{".ant-card-meta-title":{marginBottom:"4px","& > a":{display:"inline-block",maxWidth:"100%",color:a.colorTextHeading}},".ant-card-meta-description":{height:"44px",overflow:"hidden",lineHeight:"22px"},"&:hover":{".ant-card-meta-title > a":{color:a.colorPrimary}}},cardItemContent:{display:"flex",height:"20px",marginTop:"16px",marginBottom:"-4px",lineHeight:"20px","& > span":{flex:"1",color:a.colorTextSecondary,fontSize:"12px"}},avatarList:{flex:"0 1 auto"},cardList:{marginTop:"24px"},coverCardList:{".ant-list .ant-list-item-content-single":{maxWidth:"100%"}}}}),Ae=Ne;W().extend(te());var ce=E.Z.Item,Be=O.Z.Paragraph,Te=function(a,o){return"".concat(a,"-").concat(o)},J=function(){var a=Ae(),o=a.styles,c=(0,T.useRequest)(function(m){return console.log("form data",m),$e({count:8})}),v=c.data,y=c.loading,N=c.run,L=(v==null?void 0:v.list)||[],X=L&&(0,n.jsx)(g.Z,{rowKey:"id",loading:y,grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},dataSource:L,renderItem:function(S){return(0,n.jsx)(g.Z.Item,{children:(0,n.jsxs)(f.Z,{className:o.card,hoverable:!0,cover:(0,n.jsx)("img",{alt:S.title,src:S.cover}),children:[(0,n.jsx)(f.Z.Meta,{title:(0,n.jsx)("a",{children:S.title}),description:(0,n.jsx)(Be,{ellipsis:{rows:2},children:S.subDescription})}),(0,n.jsxs)("div",{className:o.cardItemContent,children:[(0,n.jsx)("span",{children:W()(S.updatedAt).fromNow()}),(0,n.jsx)("div",{className:o.avatarList,children:(0,n.jsx)(u,{size:"small",children:S.members.map(function(H,de){return(0,n.jsx)(u.Item,{src:H.avatar,tips:H.name},Te(S.id,de))})})})]})]})})}}),A={wrapperCol:{xs:{span:24},sm:{span:16}}};return(0,n.jsxs)("div",{className:o.coverCardList,children:[(0,n.jsx)(f.Z,{bordered:!1,children:(0,n.jsxs)(E.Z,{layout:"inline",onValuesChange:function(S,H){N(H)},children:[(0,n.jsx)(R,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,n.jsx)(ce,{name:"category",children:(0,n.jsx)(se,{expandable:!0,children:k.O.map(function(m){return(0,n.jsx)(se.Option,{value:m.value,children:m.label},m.value)})})})}),(0,n.jsx)(R,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,n.jsxs)(b.Z,{gutter:16,children:[(0,n.jsx)(F.Z,{lg:8,md:10,sm:10,xs:24,children:(0,n.jsx)(ce,d()(d()({},A),{},{label:"\u4F5C\u8005",name:"author",children:(0,n.jsx)(_.Z,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u738B\u662D\u541B",value:"lisa"}]})}))}),(0,n.jsx)(F.Z,{lg:8,md:10,sm:10,xs:24,children:(0,n.jsx)(ce,d()(d()({},A),{},{label:"\u597D\u8BC4\u5EA6",name:"rate",children:(0,n.jsx)(_.Z,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},options:[{label:"\u4F18\u79C0",value:"good"},{label:"\u666E\u901A",value:"normal"}]})}))})]})})]})}),(0,n.jsx)("div",{className:o.cardList,children:X})]})},Ue=J},90936:function(q,h,t){"use strict";t.d(h,{Z:function(){return Se}});var l=t(79685),d=t(99992),T=t(68591),E=t.n(T),O=t(28726),g=t(37770),f=t(42480),b=t(99248),F=t(26477),_=t(73838),ee=t(4614),W=t(25830),U=t(44244);const te=e=>{const{paddingXXS:i,lineWidth:u,tagPaddingHorizontal:r,componentCls:s,calc:P}=e,x=P(r).sub(u).equal(),R=P(i).sub(u).equal();return{[s]:Object.assign(Object.assign({},(0,ee.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:x,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,F.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${s}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${s}-close-icon`]:{marginInlineStart:R,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${s}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${s}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:x}}),[`${s}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},k=e=>{const{lineWidth:i,fontSizeIcon:u,calc:r}=e,s=e.fontSizeSM;return(0,W.TS)(e,{tagFontSize:s,tagLineHeight:(0,F.bf)(r(e.lineHeightSM).mul(s).equal()),tagIconSize:r(u).sub(r(i).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},ae=e=>({defaultBg:new _.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var $=(0,U.I$)("Tag",e=>{const i=k(e);return te(i)},ae),I=function(e,i){var u={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&i.indexOf(r)<0&&(u[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s{const{prefixCls:u,style:r,className:s,checked:P,onChange:x,onClick:R}=e,z=I(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:re,tag:Z}=l.useContext(b.E_),le=D=>{x==null||x(!P),R==null||R(D)},Q=re("tag",u),[G,ge]=$(Q),ve=E()(Q,`${Q}-checkable`,{[`${Q}-checkable-checked`]:P},Z==null?void 0:Z.className,s,ge);return G(l.createElement("span",Object.assign({},z,{ref:i,style:Object.assign(Object.assign({},r),Z==null?void 0:Z.style),className:ve,onClick:le})))}),K=t(57069);const je=e=>(0,K.Z)(e,(i,u)=>{let{textColor:r,lightBorderColor:s,lightColor:P,darkColor:x}=u;return{[`${e.componentCls}-${i}`]:{color:r,background:P,borderColor:s,"&-inverse":{color:e.colorTextLightSolid,background:x,borderColor:x},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var me=(0,U.bk)(["Tag","preset"],e=>{const i=k(e);return je(i)},ae);function w(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const V=(e,i,u)=>{const r=w(u);return{[`${e.componentCls}-${i}`]:{color:e[`color${u}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Oe=(0,U.bk)(["Tag","status"],e=>{const i=k(e);return[V(i,"success","Success"),V(i,"processing","Info"),V(i,"error","Error"),V(i,"warning","Warning")]},ae),ye=function(e,i){var u={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&i.indexOf(r)<0&&(u[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s{const{prefixCls:u,className:r,rootClassName:s,style:P,children:x,icon:R,color:z,onClose:re,closeIcon:Z,closable:le,bordered:Q=!0}=e,G=ye(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:ge,direction:ve,tag:D}=l.useContext(b.E_),[Ee,he]=l.useState(!0);l.useEffect(()=>{"visible"in G&&he(G.visible)},[G.visible]);const fe=(0,O.o2)(z),pe=(0,O.yT)(z),se=fe||pe,Ie=Object.assign(Object.assign({backgroundColor:z&&!se?z:void 0},D==null?void 0:D.style),P),j=ge("tag",u),[Pe,Le]=$(j),$e=E()(j,D==null?void 0:D.className,{[`${j}-${z}`]:se,[`${j}-has-color`]:z&&!se,[`${j}-hidden`]:!Ee,[`${j}-rtl`]:ve==="rtl",[`${j}-borderless`]:!Q},r,s,Le),ie=J=>{J.stopPropagation(),re==null||re(J),!J.defaultPrevented&&he(!1)},[,Ne]=(0,g.Z)(le,Z,J=>J===null?l.createElement(d.Z,{className:`${j}-close-icon`,onClick:ie}):l.createElement("span",{className:`${j}-close-icon`,onClick:ie},J),null,!1),Ae=typeof G.onClick=="function"||x&&x.type==="a",ce=R||null,Be=ce?l.createElement(l.Fragment,null,ce,x&&l.createElement("span",null,x)):x,Te=l.createElement("span",Object.assign({},G,{ref:i,className:$e,style:Ie}),Be,Ne,fe&&l.createElement(me,{key:"preset",prefixCls:j}),pe&&l.createElement(Oe,{key:"status",prefixCls:j}));return Pe(Ae?l.createElement(f.Z,{component:"Tag"},Te):Te)},Ce=l.forwardRef(n);Ce.CheckableTag=ne;var Se=Ce},96300:function(q){(function(h,t){q.exports=t()})(this,function(){"use strict";return function(h,t,l){h=h||{};var d=t.prototype,T={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function E(g,f,b,F){return d.fromToBase(g,f,b,F)}l.en.relativeTime=T,d.fromToBase=function(g,f,b,F,_){for(var ee,W,U,te=b.$locale().relativeTime||T,k=h.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],ae=k.length,$=0;$0,C<=I.r||!I.r){C<=1&&$>0&&(I=k[$-1]);var ne=te[I.l];_&&(C=_(""+C)),W=typeof ne=="string"?ne.replace("%d",C):ne(C,f,I.l,U);break}}if(f)return W;var K=U?te.future:te.past;return typeof K=="function"?K(W):K.replace("%s",W)},d.to=function(g,f){return E(g,f,this,!0)},d.from=function(g,f){return E(g,f,this)};var O=function(g){return g.$u?l.utc():l()};d.toNow=function(g){return this.to(O(this),g)},d.fromNow=function(g){return this.from(O(this),g)}}})}}]); diff --git a/p__profile__advanced__index.17060130.async.js b/p__profile__advanced__index.17060130.async.js deleted file mode 100644 index 47166959..00000000 --- a/p__profile__advanced__index.17060130.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9078],{9455:function(N,b){var n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};b.Z=n},10587:function(N,b,n){n.d(b,{Z:function(){return S}});var i=n(33346),u=n(50959),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},Z=F,f=n(69164),v=function(P,q){return u.createElement(f.Z,(0,i.Z)((0,i.Z)({},P),{},{ref:q,icon:Z}))};v.displayName="DingdingOutlined";var S=u.forwardRef(v)},82574:function(N,b,n){var i=n(33346),u=n(50959),F=n(5590),Z=n(69164),f=function(S,D){return u.createElement(Z.Z,(0,i.Z)((0,i.Z)({},S),{},{ref:D,icon:F.Z}))};f.displayName="DownOutlined",b.Z=u.forwardRef(f)},27174:function(N,b,n){var i=n(33346),u=n(50959),F=n(44108),Z=n(69164),f=function(S,D){return u.createElement(Z.Z,(0,i.Z)((0,i.Z)({},S),{},{ref:D,icon:F.Z}))};f.displayName="EllipsisOutlined",b.Z=u.forwardRef(f)},49997:function(N,b,n){var i=n(33346),u=n(50959),F=n(9455),Z=n(69164),f=function(S,D){return u.createElement(Z.Z,(0,i.Z)((0,i.Z)({},S),{},{ref:D,icon:F.Z}))};f.displayName="InfoCircleOutlined",b.Z=u.forwardRef(f)},12843:function(N,b,n){n.r(b),n.d(b,{default:function(){return X}});var i=n(77117),u=n.n(i),F=n(28152),Z=n.n(F),f=n(82574),v=n(27174),S=n(10587),D=n(49997),P=n(169),q=n(95943),k=n(19494),l=n(27533),L=n(27575),H=n(47100),_=n(10591),ce=n(75200),W=n(71656),ee=n(53295),d=n(8303),ie=n(82757),V=n(31796),G=n(50304),oe=n(32618),te=n(84922),se=n(55877),m=n(84875),c=n.n(m),p=n(50959),h=n(13448),$=n.n(h),A=n(74815),x=n.n(A);function y(){return g.apply(this,arguments)}function g(){return g=x()($()().mark(function T(){return $()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",(0,l.request)("/api/profile/advanced"));case 1:case"end":return O.stop()}},T)})),g.apply(this,arguments)}var e=n(21320),o=n.n(e),a=n(8700),r=(0,a.kc)(function(T){var M=T.token;return{main:{".ant-descriptions-row > td":{paddingBottom:"8px"},".ant-page-header-heading-extra":{flexDirection:"column"}},headerList:{marginBottom:"4px",".ant-descriptions-row > td":{paddingBottom:"8px"}},stepDescription:o()({position:"relative",left:"38px",paddingTop:"8px",fontSize:"14px",textAlign:"left","> div":{marginTop:"8px",marginBottom:"4px"}},"@media screen and (max-width: ".concat(M.screenSM,"px)"),{left:"8px"}),pageHeader:o()({".ant-page-header-heading-extra > * + *":{marginLeft:"8px"}},"@media screen and (max-width: ".concat(M.screenSM,"px)"),{".ant-pro-page-header-wrap-row":{flexDirection:"column"}}),moreInfo:{display:"flex",justifyContent:"space-between",width:"200px"}}}),s=r,t=n(11527),C=L.Z.Step,R=H.ZP.Group,z=(0,t.jsx)(P.X.Consumer,{children:function(M){var O=M.isMobile;return O?(0,t.jsx)(_.Z.Button,{type:"primary",icon:(0,t.jsx)(f.Z,{}),menu:{items:[{key:"1",label:"\u64CD\u4F5C\u4E00"},{key:"2",label:"\u64CD\u4F5C\u4E8C"},{key:"3",label:"\u64CD\u4F5C\u4E09"}]},placement:"bottomRight",children:"\u4E3B\u64CD\u4F5C"}):(0,t.jsxs)(ce.Z,{children:[(0,t.jsxs)(R,{children:[(0,t.jsx)(H.ZP,{children:"\u64CD\u4F5C\u4E00"}),(0,t.jsx)(H.ZP,{children:"\u64CD\u4F5C\u4E8C"}),(0,t.jsx)(_.Z,{menu:{items:[{key:"1",label:"\u9009\u9879\u4E00"},{key:"2",label:"\u9009\u9879\u4E8C"},{key:"3",label:"\u9009\u9879\u4E09"}]},placement:"bottomRight",children:(0,t.jsx)(H.ZP,{children:(0,t.jsx)(v.Z,{})})})]}),(0,t.jsx)(H.ZP,{type:"primary",children:"\u4E3B\u64CD\u4F5C"})]})}}),I=[{key:"tab1",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E00"},{key:"tab2",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E8C"},{key:"tab3",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E09"}],j=[{title:"\u64CD\u4F5C\u7C7B\u578B",dataIndex:"type",key:"type"},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",key:"name"},{title:"\u6267\u884C\u7ED3\u679C",dataIndex:"status",key:"status",render:function(M){return M==="agree"?(0,t.jsx)(W.Z,{status:"success",text:"\u6210\u529F"}):(0,t.jsx)(W.Z,{status:"error",text:"\u9A73\u56DE"})}},{title:"\u64CD\u4F5C\u65F6\u95F4",dataIndex:"updatedAt",key:"updatedAt"},{title:"\u5907\u6CE8",dataIndex:"memo",key:"memo"}],w=function(){var M=s(),O=M.styles,ne=(0,t.jsxs)("div",{className:O.moreInfo,children:[(0,t.jsx)(ee.Z,{title:"\u72B6\u6001",value:"\u5F85\u5BA1\u6279"}),(0,t.jsx)(ee.Z,{title:"\u8BA2\u5355\u91D1\u989D",value:568.08,prefix:"\xA5"})]}),ae=(0,t.jsx)(P.X.Consumer,{children:function(B){var J=B.isMobile;return(0,t.jsxs)(d.Z,{className:O.headerList,size:"small",column:J?1:2,children:[(0,t.jsx)(d.Z.Item,{label:"\u521B\u5EFA\u4EBA",children:"\u66F2\u4E3D\u4E3D"}),(0,t.jsx)(d.Z.Item,{label:"\u8BA2\u8D2D\u4EA7\u54C1",children:"XX \u670D\u52A1"}),(0,t.jsx)(d.Z.Item,{label:"\u521B\u5EFA\u65F6\u95F4",children:"2017-07-07"}),(0,t.jsx)(d.Z.Item,{label:"\u5173\u8054\u5355\u636E",children:(0,t.jsx)("a",{href:"",children:"12421"})}),(0,t.jsx)(d.Z.Item,{label:"\u751F\u6548\u65E5\u671F",children:"2017-07-07 ~ 2017-08-08"}),(0,t.jsx)(d.Z.Item,{label:"\u5907\u6CE8",children:"\u8BF7\u4E8E\u4E24\u4E2A\u5DE5\u4F5C\u65E5\u5185\u786E\u8BA4"})]})}}),ue=(0,t.jsxs)("div",{className:c()(O.stepDescription),children:[(0,t.jsxs)(p.Fragment,{children:["\u66F2\u4E3D\u4E3D",(0,t.jsx)(S.Z,{style:{marginLeft:8}})]}),(0,t.jsx)("div",{children:"2016-12-12 12:32"})]}),he=(0,t.jsxs)("div",{className:O.stepDescription,children:[(0,t.jsxs)(p.Fragment,{children:["\u5468\u6BDB\u6BDB",(0,t.jsx)(S.Z,{style:{color:"#00A0E9",marginLeft:8}})]}),(0,t.jsx)("div",{children:(0,t.jsx)("a",{href:"",children:"\u50AC\u4E00\u4E0B"})})]}),xe=(0,p.useState)({operationKey:"tab1",tabActiveKey:"detail"}),me=Z()(xe,2),re=me[0],fe=me[1],be=function(B,J){var pe=J.status,$e=(0,t.jsxs)("div",{style:{width:160},children:["\u5434\u52A0\u53F7",(0,t.jsx)("span",{style:{float:"right"},children:(0,t.jsx)(W.Z,{status:"default",text:(0,t.jsx)("span",{style:{color:"rgba(0, 0, 0, 0.45)"},children:"\u672A\u54CD\u5E94"})})}),(0,t.jsx)("div",{style:{marginTop:4},children:"\u8017\u65F6\uFF1A2\u5C0F\u65F625\u5206\u949F"})]});return pe==="process"?(0,t.jsx)(ie.Z,{placement:"topLeft",arrowPointAtCenter:!0,content:$e,children:(0,t.jsx)("span",{children:B})}):B},ge=(0,l.useRequest)(y),K=ge.data,le=K===void 0?{}:K,de=ge.loading,E=le.advancedOperation1,ye=le.advancedOperation2,Ee=le.advancedOperation3,Ce={tab1:(0,t.jsx)(V.Z,{pagination:!1,loading:de,dataSource:E,columns:j}),tab2:(0,t.jsx)(V.Z,{pagination:!1,loading:de,dataSource:ye,columns:j}),tab3:(0,t.jsx)(V.Z,{pagination:!1,loading:de,dataSource:Ee,columns:j})},ve=function(B){fe(u()(u()({},re),{},{tabActiveKey:B}))},Se=function(B){fe(u()(u()({},re),{},{operationKey:B}))};return(0,t.jsx)(q._z,{title:"\u5355\u53F7\uFF1A234231029431",extra:z,className:O.pageHeader,content:ae,extraContent:ne,tabActiveKey:re.tabActiveKey,onTabChange:ve,tabList:[{key:"detail",tab:"\u8BE6\u60C5"},{key:"rule",tab:"\u89C4\u5219"}],children:(0,t.jsx)("div",{className:O.main,children:(0,t.jsxs)(k.f,{children:[(0,t.jsx)(G.Z,{title:"\u6D41\u7A0B\u8FDB\u5EA6",style:{marginBottom:24},children:(0,t.jsx)(P.X.Consumer,{children:function(B){var J=B.isMobile;return(0,t.jsxs)(L.Z,{direction:J?"vertical":"horizontal",progressDot:be,current:1,children:[(0,t.jsx)(C,{title:"\u521B\u5EFA\u9879\u76EE",description:ue}),(0,t.jsx)(C,{title:"\u90E8\u95E8\u521D\u5BA1",description:he}),(0,t.jsx)(C,{title:"\u8D22\u52A1\u590D\u6838"}),(0,t.jsx)(C,{title:"\u5B8C\u6210"})]})}})}),(0,t.jsxs)(G.Z,{title:"\u7528\u6237\u4FE1\u606F",style:{marginBottom:24},bordered:!1,children:[(0,t.jsxs)(d.Z,{style:{marginBottom:24},children:[(0,t.jsx)(d.Z.Item,{label:"\u7528\u6237\u59D3\u540D",children:"\u4ED8\u5C0F\u5C0F"}),(0,t.jsx)(d.Z.Item,{label:"\u4F1A\u5458\u5361\u53F7",children:"32943898021309809423"}),(0,t.jsx)(d.Z.Item,{label:"\u8EAB\u4EFD\u8BC1",children:"3321944288191034921"}),(0,t.jsx)(d.Z.Item,{label:"\u8054\u7CFB\u65B9\u5F0F",children:"18112345678"}),(0,t.jsx)(d.Z.Item,{label:"\u8054\u7CFB\u5730\u5740",children:"\u66F2\u4E3D\u4E3D 18100000000 \u6D59\u6C5F\u7701\u676D\u5DDE\u5E02\u897F\u6E56\u533A\u9EC4\u59D1\u5C71\u8DEF\u5DE5\u4E13\u8DEF\u4EA4\u53C9\u8DEF\u53E3"})]}),(0,t.jsxs)(d.Z,{style:{marginBottom:24},title:"\u4FE1\u606F\u7EC4",children:[(0,t.jsx)(d.Z.Item,{label:"\u67D0\u67D0\u6570\u636E",children:"725"}),(0,t.jsx)(d.Z.Item,{label:"\u8BE5\u6570\u636E\u66F4\u65B0\u65F6\u95F4",children:"2017-08-08"}),(0,t.jsx)(d.Z.Item,{label:(0,t.jsxs)("span",{children:["\u67D0\u67D0\u6570\u636E",(0,t.jsx)(oe.Z,{title:"\u6570\u636E\u8BF4\u660E",children:(0,t.jsx)(D.Z,{style:{color:"rgba(0, 0, 0, 0.43)",marginLeft:4}})})]}),children:"725"}),(0,t.jsx)(d.Z.Item,{label:"\u8BE5\u6570\u636E\u66F4\u65B0\u65F6\u95F4",children:"2017-08-08"})]}),(0,t.jsx)("h4",{style:{marginBottom:16},children:"\u4FE1\u606F\u7EC4"}),(0,t.jsxs)(G.Z,{type:"inner",title:"\u591A\u5C42\u7EA7\u4FE1\u606F\u7EC4",children:[(0,t.jsxs)(d.Z,{style:{marginBottom:16},title:"\u7EC4\u540D\u79F0",children:[(0,t.jsx)(d.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u6797\u4E1C\u4E1C"}),(0,t.jsx)(d.Z.Item,{label:"\u89D2\u8272\u7801",children:"1234567"}),(0,t.jsx)(d.Z.Item,{label:"\u6240\u5C5E\u90E8\u95E8",children:"XX\u516C\u53F8 - YY\u90E8"}),(0,t.jsx)(d.Z.Item,{label:"\u8FC7\u671F\u65F6\u95F4",children:"2017-08-08"}),(0,t.jsx)(d.Z.Item,{label:"\u63CF\u8FF0",children:"\u8FD9\u6BB5\u63CF\u8FF0\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F..."})]}),(0,t.jsx)(te.Z,{style:{margin:"16px 0"}}),(0,t.jsx)(d.Z,{style:{marginBottom:16},title:"\u7EC4\u540D\u79F0",column:1,children:(0,t.jsx)(d.Z.Item,{label:"\u5B66\u540D",children:"Citrullus lanatus (Thunb.) Matsum. et Nakai\u4E00\u5E74\u751F\u8513\u751F\u85E4\u672C\uFF1B\u830E\u3001\u679D\u7C97\u58EE\uFF0C\u5177\u660E\u663E\u7684\u68F1\u3002\u5377\u987B\u8F83\u7C97.."})}),(0,t.jsx)(te.Z,{style:{margin:"16px 0"}}),(0,t.jsxs)(d.Z,{title:"\u7EC4\u540D\u79F0",children:[(0,t.jsx)(d.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u4ED8\u5C0F\u5C0F"}),(0,t.jsx)(d.Z.Item,{label:"\u89D2\u8272\u7801",children:"1234568"})]})]})]}),(0,t.jsx)(G.Z,{title:"\u7528\u6237\u8FD1\u534A\u5E74\u6765\u7535\u8BB0\u5F55",style:{marginBottom:24},bordered:!1,children:(0,t.jsx)(se.Z,{})}),(0,t.jsx)(G.Z,{bordered:!1,tabList:I,onTabChange:Se,children:Ce[re.operationKey]})]})})})},X=w},50304:function(N,b,n){n.d(b,{Z:function(){return g}});var i=n(50959),u=n(84875),F=n.n(u),Z=n(87017),f=n(31594),v=n(17436),S=n(25670),D=n(66146),P=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s{var{prefixCls:o,className:a,hoverable:r=!0}=e,s=P(e,["prefixCls","className","hoverable"]);const{getPrefixCls:t}=i.useContext(f.E_),C=t("card",o),R=F()(`${C}-grid`,a,{[`${C}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},s,{className:R}))},l=n(60076),L=n(6301),H=n(81501),_=n(90467);const ce=e=>{const{antCls:o,componentCls:a,headerHeight:r,cardPaddingBase:s,tabsMarginBottom:t}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,l.bf)(s)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`},(0,L.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},L.vS),{[` - > ${a}-typography, - > ${a}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${o}-tabs-top`]:{clear:"both",marginBottom:t,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},W=e=>{const{cardPaddingBase:o,colorBorderSecondary:a,cardShadow:r,lineWidth:s}=e;return{width:"33.33%",padding:o,border:0,borderRadius:0,boxShadow:` - ${(0,l.bf)(s)} 0 0 0 ${a}, - 0 ${(0,l.bf)(s)} 0 0 ${a}, - ${(0,l.bf)(s)} ${(0,l.bf)(s)} 0 0 ${a}, - ${(0,l.bf)(s)} 0 0 0 ${a} inset, - 0 ${(0,l.bf)(s)} 0 0 ${a} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},ee=e=>{const{componentCls:o,iconCls:a,actionsLiMargin:r,cardActionsIconSize:s,colorBorderSecondary:t,actionsBg:C}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:C,borderTop:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${t}`,display:"flex",borderRadius:`0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,L.dF)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${o}-btn), > ${a}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,l.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${a}`]:{fontSize:s,lineHeight:(0,l.bf)(e.calc(s).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${t}`}}})},d=e=>Object.assign(Object.assign({margin:`${(0,l.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,L.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},L.vS),"&-description":{color:e.colorTextDescription}}),ie=e=>{const{componentCls:o,cardPaddingBase:a,colorFillAlter:r}=e;return{[`${o}-head`]:{padding:`0 ${(0,l.bf)(a)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${o}-body`]:{padding:`${(0,l.bf)(e.padding)} ${(0,l.bf)(a)}`}}},V=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},G=e=>{const{antCls:o,componentCls:a,cardShadow:r,cardHeadPadding:s,colorBorderSecondary:t,boxShadowTertiary:C,cardPaddingBase:R,extraColor:z}=e;return{[a]:Object.assign(Object.assign({},(0,L.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:C},[`${a}-head`]:ce(e),[`${a}-extra`]:{marginInlineStart:"auto",color:z,fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:R,borderRadius:` 0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,L.dF)()),[`${a}-grid`]:W(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${o}-image-mask`]:{borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`}},[`${a}-actions`]:ee(e),[`${a}-meta`]:d(e)}),[`${a}-bordered`]:{border:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${t}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${a}-contain-grid`]:{borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0 `,[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{minHeight:0,[`${a}-head-title, ${a}-extra`]:{paddingTop:s}}},[`${a}-type-inner`]:ie(e),[`${a}-loading`]:V(e),[`${a}-rtl`]:{direction:"rtl"}}},oe=e=>{const{componentCls:o,cardPaddingSM:a,headerHeightSM:r,headerFontSizeSM:s}=e;return{[`${o}-small`]:{[`> ${o}-head`]:{minHeight:r,padding:`0 ${(0,l.bf)(a)}`,fontSize:s,[`> ${o}-head-wrapper`]:{[`> ${o}-extra`]:{fontSize:e.fontSize}}},[`> ${o}-body`]:{padding:a}},[`${o}-small${o}-contain-tabs`]:{[`> ${o}-head`]:{[`${o}-head-title, ${o}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},te=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var se=(0,H.I$)("Card",e=>{const o=(0,_.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[G(o),oe(o)]},te),m=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s{const{prefixCls:o,actions:a=[]}=e;return i.createElement("ul",{className:`${o}-actions`},a.map((r,s)=>{const t=`action-${s}`;return i.createElement("li",{style:{width:`${100/a.length}%`},key:t},i.createElement("span",null,r))}))};var h=i.forwardRef((e,o)=>{const{prefixCls:a,className:r,rootClassName:s,style:t,extra:C,headStyle:R={},bodyStyle:z={},title:I,loading:j,bordered:w=!0,size:X,type:T,cover:M,actions:O,tabList:ne,children:ae,activeTabKey:ue,defaultActiveTabKey:he,tabBarExtraContent:xe,hoverable:me,tabProps:re={}}=e,fe=m(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:be,direction:ge,card:K}=i.useContext(f.E_),le=Q=>{var U;(U=e.onTabChange)===null||U===void 0||U.call(e,Q)},de=i.useMemo(()=>{let Q=!1;return i.Children.forEach(ae,U=>{U&&U.type&&U.type===k&&(Q=!0)}),Q},[ae]),E=be("card",a),[ye,Ee]=se(E),Ce=i.createElement(S.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},ae),ve=ue!==void 0,Se=Object.assign(Object.assign({},re),{[ve?"activeKey":"defaultActiveKey"]:ve?ue:he,tabBarExtraContent:xe});let Y;const B=(0,v.Z)(X),J=!B||B==="default"?"large":B,pe=ne?i.createElement(D.Z,Object.assign({size:J},Se,{className:`${E}-head-tabs`,onChange:le,items:ne.map(Q=>{var{tab:U}=Q,Ze=m(Q,["tab"]);return Object.assign({label:U},Ze)})})):null;(I||C||pe)&&(Y=i.createElement("div",{className:`${E}-head`,style:R},i.createElement("div",{className:`${E}-head-wrapper`},I&&i.createElement("div",{className:`${E}-head-title`},I),C&&i.createElement("div",{className:`${E}-extra`},C)),pe));const $e=M?i.createElement("div",{className:`${E}-cover`},M):null,je=i.createElement("div",{className:`${E}-body`,style:z},j?Ce:ae),Fe=O&&O.length?i.createElement(c,{prefixCls:E,actions:O}):null,De=(0,Z.Z)(fe,["onTabChange"]),Oe=F()(E,K==null?void 0:K.className,{[`${E}-loading`]:j,[`${E}-bordered`]:w,[`${E}-hoverable`]:me,[`${E}-contain-grid`]:de,[`${E}-contain-tabs`]:ne&&ne.length,[`${E}-${B}`]:B,[`${E}-type-${T}`]:!!T,[`${E}-rtl`]:ge==="rtl"},r,s,Ee),Be=Object.assign(Object.assign({},K==null?void 0:K.style),t);return ye(i.createElement("div",Object.assign({ref:o},De,{className:Oe,style:Be}),Y,$e,je,Fe))}),$=function(e,o){var a={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(a[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s{const{prefixCls:o,className:a,avatar:r,title:s,description:t}=e,C=$(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:R}=i.useContext(f.E_),z=R("card",o),I=F()(`${z}-meta`,a),j=r?i.createElement("div",{className:`${z}-meta-avatar`},r):null,w=s?i.createElement("div",{className:`${z}-meta-title`},s):null,X=t?i.createElement("div",{className:`${z}-meta-description`},t):null,T=w||X?i.createElement("div",{className:`${z}-meta-detail`},w,X):null;return i.createElement("div",Object.assign({},C,{className:I}),j,T)};const y=h;y.Grid=k,y.Meta=x;var g=y},53295:function(N,b,n){n.d(b,{Z:function(){return se}});var i=n(50959),u=n(2116),F=n(94914),Z=n(84875),f=n.n(Z),v=n(31594),S=n(25670),P=m=>{const{value:c,formatter:p,precision:h,decimalSeparator:$,groupSeparator:A="",prefixCls:x}=m;let y;if(typeof p=="function")y=p(c);else{const g=String(c),e=g.match(/^(-?)(\d*)(\.(\d+))?$/);if(!e||g==="-")y=g;else{const o=e[1];let a=e[2]||"0",r=e[4]||"";a=a.replace(/\B(?=(\d{3})+(?!\d))/g,A),typeof h=="number"&&(r=r.padEnd(h,"0").slice(0,h>0?h:0)),r&&(r=`${$}${r}`),y=[i.createElement("span",{key:"int",className:`${x}-content-value-int`},o,a),r&&i.createElement("span",{key:"decimal",className:`${x}-content-value-decimal`},r)]}}return i.createElement("span",{className:`${x}-content-value`},y)},q=n(6301),k=n(81501),l=n(90467);const L=m=>{const{componentCls:c,marginXXS:p,padding:h,colorTextDescription:$,titleFontSize:A,colorTextHeading:x,contentFontSize:y,fontFamily:g}=m;return{[`${c}`]:Object.assign(Object.assign({},(0,q.Wf)(m)),{[`${c}-title`]:{marginBottom:p,color:$,fontSize:A},[`${c}-skeleton`]:{paddingTop:h},[`${c}-content`]:{color:x,fontSize:y,fontFamily:g,[`${c}-content-value`]:{display:"inline-block",direction:"ltr"},[`${c}-content-prefix, ${c}-content-suffix`]:{display:"inline-block"},[`${c}-content-prefix`]:{marginInlineEnd:p},[`${c}-content-suffix`]:{marginInlineStart:p}}})}},H=m=>{const{fontSizeHeading3:c,fontSize:p}=m;return{titleFontSize:p,contentFontSize:c}};var _=(0,k.I$)("Statistic",m=>{const c=(0,l.TS)(m,{});return[L(c)]},H),W=m=>{const{prefixCls:c,className:p,rootClassName:h,style:$,valueStyle:A,value:x=0,title:y,valueRender:g,prefix:e,suffix:o,loading:a=!1,onMouseEnter:r,onMouseLeave:s,decimalSeparator:t=".",groupSeparator:C=","}=m,{getPrefixCls:R,direction:z,statistic:I}=i.useContext(v.E_),j=R("statistic",c),[w,X]=_(j),T=i.createElement(P,Object.assign({decimalSeparator:t,groupSeparator:C,prefixCls:j},m,{value:x})),M=f()(j,{[`${j}-rtl`]:z==="rtl"},I==null?void 0:I.className,p,h,X);return w(i.createElement("div",{className:M,style:Object.assign(Object.assign({},I==null?void 0:I.style),$),onMouseEnter:r,onMouseLeave:s},y&&i.createElement("div",{className:`${j}-title`},y),i.createElement(S.Z,{paragraph:!1,loading:a,className:`${j}-skeleton`},i.createElement("div",{style:A,className:`${j}-content`},e&&i.createElement("span",{className:`${j}-content-prefix`},e),g?g(T):T,o&&i.createElement("span",{className:`${j}-content-suffix`},o)))))};const ee=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function d(m,c){let p=m;const h=/\[[^\]]*]/g,$=(c.match(h)||[]).map(g=>g.slice(1,-1)),A=c.replace(h,"[]"),x=ee.reduce((g,e)=>{let[o,a]=e;if(g.includes(o)){const r=Math.floor(p/a);return p-=r*a,g.replace(new RegExp(`${o}+`,"g"),s=>{const t=s.length;return r.toString().padStart(t,"0")})}return g},A);let y=0;return x.replace(h,()=>{const g=$[y];return y+=1,g})}function ie(m,c){const{format:p=""}=c,h=new Date(m).getTime(),$=Date.now(),A=Math.max(h-$,0);return d(A,p)}const V=1e3/30;function G(m){return new Date(m).getTime()}const oe=m=>{const{value:c,format:p="HH:mm:ss",onChange:h,onFinish:$}=m,A=(0,u.Z)(),x=i.useRef(null),y=()=>{$==null||$(),x.current&&(clearInterval(x.current),x.current=null)},g=()=>{const a=G(c);a>=Date.now()&&(x.current=setInterval(()=>{A(),h==null||h(a-Date.now()),a(g(),()=>{x.current&&(clearInterval(x.current),x.current=null)}),[c]);const e=(a,r)=>ie(a,Object.assign(Object.assign({},r),{format:p})),o=a=>(0,F.Tm)(a,{title:void 0});return i.createElement(W,Object.assign({},m,{valueRender:o,formatter:e}))};var te=i.memo(oe);W.Countdown=te;var se=W},3970:function(N,b,n){n.d(b,{N:function(){return i}});const i=u=>({color:u.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${u.motionDurationSlow}`,"&:focus, &:hover":{color:u.colorLinkHover},"&:active":{color:u.colorLinkActive}})},5449:function(N,b,n){n.d(b,{G:function(){return Z}});var i=n(63490),u=function(v){if((0,i.Z)()&&window.document.documentElement){var S=Array.isArray(v)?v:[v],D=window.document.documentElement;return S.some(function(P){return P in D.style})}return!1},F=function(v,S){if(!u(v))return!1;var D=document.createElement("div"),P=D.style[v];return D.style[v]=S,D.style[v]!==P};function Z(f,v){return!Array.isArray(f)&&v!==void 0?F(f,v):u(f)}}}]); diff --git a/p__profile__advanced__index.63c318e3.async.js b/p__profile__advanced__index.63c318e3.async.js new file mode 100644 index 00000000..d67dc175 --- /dev/null +++ b/p__profile__advanced__index.63c318e3.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9078],{49726:function(ne,Z,n){n.d(Z,{Z:function(){return I}});var a=n(93264),h=n(79685),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},B=F,D=n(64507),L=function(K,ae){return h.createElement(D.Z,(0,a.Z)((0,a.Z)({},K),{},{ref:ae,icon:B}))};L.displayName="DingdingOutlined";var I=h.forwardRef(L)},29514:function(ne,Z,n){var a=n(93264),h=n(79685),F=n(90462),B=n(64507),D=function(I,R){return h.createElement(B.Z,(0,a.Z)((0,a.Z)({},I),{},{ref:R,icon:F.Z}))};D.displayName="DownOutlined",Z.Z=h.forwardRef(D)},12086:function(ne,Z,n){var a=n(93264),h=n(79685),F=n(62415),B=n(64507),D=function(I,R){return h.createElement(B.Z,(0,a.Z)((0,a.Z)({},I),{},{ref:R,icon:F.Z}))};D.displayName="EllipsisOutlined",Z.Z=h.forwardRef(D)},63243:function(ne,Z,n){var a=n(93264),h=n(79685),F=n(92933),B=n(64507),D=function(I,R){return h.createElement(B.Z,(0,a.Z)((0,a.Z)({},I),{},{ref:R,icon:F.Z}))};D.displayName="InfoCircleOutlined",Z.Z=h.forwardRef(D)},9097:function(ne,Z,n){n.r(Z),n.d(Z,{default:function(){return P}});var a=n(42329),h=n.n(a),F=n(97380),B=n.n(F),D=n(29514),L=n(12086),I=n(49726),R=n(63243),K=n(34435),ae=n(89336),le=n(79586),se=n(8025),ie=n(36642),U=n(10951),re=n(37741),ue=n(27097),H=n(6774),ce=n(45161),o=n(65906),fe=n(8262),Q=n(73198),T=n(18283),pe=n(58898),w=n(498),k=n(32626),g=n(68591),d=n.n(g),u=n(79685),x=n(29195),b=n.n(x),O=n(56717),E=n.n(O);function C(){return f.apply(this,arguments)}function f(){return f=E()(b()().mark(function p(){return b()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,se.request)("/api/profile/advanced"));case 1:case"end":return v.stop()}},p)})),f.apply(this,arguments)}var S=n(37482),A=n.n(S),y=n(24507),j=(0,y.kc)(function(p){var m=p.token;return{main:{".ant-descriptions-row > td":{paddingBottom:"8px"},".ant-page-header-heading-extra":{flexDirection:"column"}},headerList:{marginBottom:"4px",".ant-descriptions-row > td":{paddingBottom:"8px"}},stepDescription:A()({position:"relative",left:"38px",paddingTop:"8px",fontSize:"14px",textAlign:"left","> div":{marginTop:"8px",marginBottom:"4px"}},"@media screen and (max-width: ".concat(m.screenSM,"px)"),{left:"8px"}),pageHeader:A()({".ant-page-header-heading-extra > * + *":{marginLeft:"8px"}},"@media screen and (max-width: ".concat(m.screenSM,"px)"),{".ant-pro-page-header-wrap-row":{flexDirection:"column"}}),moreInfo:{display:"flex",justifyContent:"space-between",width:"200px"}}}),t=j,e=n(63342),s=ie.Z.Step,l=U.ZP.Group,i=(0,e.jsx)(K.X.Consumer,{children:function(m){var v=m.isMobile;return v?(0,e.jsx)(re.Z.Button,{type:"primary",icon:(0,e.jsx)(D.Z,{}),menu:{items:[{key:"1",label:"\u64CD\u4F5C\u4E00"},{key:"2",label:"\u64CD\u4F5C\u4E8C"},{key:"3",label:"\u64CD\u4F5C\u4E09"}]},placement:"bottomRight",children:"\u4E3B\u64CD\u4F5C"}):(0,e.jsxs)(ue.Z,{children:[(0,e.jsxs)(l,{children:[(0,e.jsx)(U.ZP,{children:"\u64CD\u4F5C\u4E00"}),(0,e.jsx)(U.ZP,{children:"\u64CD\u4F5C\u4E8C"}),(0,e.jsx)(re.Z,{menu:{items:[{key:"1",label:"\u9009\u9879\u4E00"},{key:"2",label:"\u9009\u9879\u4E8C"},{key:"3",label:"\u9009\u9879\u4E09"}]},placement:"bottomRight",children:(0,e.jsx)(U.ZP,{children:(0,e.jsx)(L.Z,{})})})]}),(0,e.jsx)(U.ZP,{type:"primary",children:"\u4E3B\u64CD\u4F5C"})]})}}),c=[{key:"tab1",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E00"},{key:"tab2",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E8C"},{key:"tab3",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E09"}],r=[{title:"\u64CD\u4F5C\u7C7B\u578B",dataIndex:"type",key:"type"},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",key:"name"},{title:"\u6267\u884C\u7ED3\u679C",dataIndex:"status",key:"status",render:function(m){return m==="agree"?(0,e.jsx)(H.Z,{status:"success",text:"\u6210\u529F"}):(0,e.jsx)(H.Z,{status:"error",text:"\u9A73\u56DE"})}},{title:"\u64CD\u4F5C\u65F6\u95F4",dataIndex:"updatedAt",key:"updatedAt"},{title:"\u5907\u6CE8",dataIndex:"memo",key:"memo"}],M=function(){var m=t(),v=m.styles,G=(0,e.jsxs)("div",{className:v.moreInfo,children:[(0,e.jsx)(ce.Z,{title:"\u72B6\u6001",value:"\u5F85\u5BA1\u6279"}),(0,e.jsx)(ce.Z,{title:"\u8BA2\u5355\u91D1\u989D",value:568.08,prefix:"\xA5"})]}),V=(0,e.jsx)(K.X.Consumer,{children:function(W){var me=W.isMobile;return(0,e.jsxs)(o.Z,{className:v.headerList,size:"small",column:me?1:2,children:[(0,e.jsx)(o.Z.Item,{label:"\u521B\u5EFA\u4EBA",children:"\u66F2\u4E3D\u4E3D"}),(0,e.jsx)(o.Z.Item,{label:"\u8BA2\u8D2D\u4EA7\u54C1",children:"XX \u670D\u52A1"}),(0,e.jsx)(o.Z.Item,{label:"\u521B\u5EFA\u65F6\u95F4",children:"2017-07-07"}),(0,e.jsx)(o.Z.Item,{label:"\u5173\u8054\u5355\u636E",children:(0,e.jsx)("a",{href:"",children:"12421"})}),(0,e.jsx)(o.Z.Item,{label:"\u751F\u6548\u65E5\u671F",children:"2017-07-07 ~ 2017-08-08"}),(0,e.jsx)(o.Z.Item,{label:"\u5907\u6CE8",children:"\u8BF7\u4E8E\u4E24\u4E2A\u5DE5\u4F5C\u65E5\u5185\u786E\u8BA4"})]})}}),q=(0,e.jsxs)("div",{className:d()(v.stepDescription),children:[(0,e.jsxs)(u.Fragment,{children:["\u66F2\u4E3D\u4E3D",(0,e.jsx)(I.Z,{style:{marginLeft:8}})]}),(0,e.jsx)("div",{children:"2016-12-12 12:32"})]}),oe=(0,e.jsxs)("div",{className:v.stepDescription,children:[(0,e.jsxs)(u.Fragment,{children:["\u5468\u6BDB\u6BDB",(0,e.jsx)(I.Z,{style:{color:"#00A0E9",marginLeft:8}})]}),(0,e.jsx)("div",{children:(0,e.jsx)("a",{href:"",children:"\u50AC\u4E00\u4E0B"})})]}),_=(0,u.useState)({operationKey:"tab1",tabActiveKey:"detail"}),Y=B()(_,2),z=Y[0],N=Y[1],$=function(W,me){var be=me.status,Ce=(0,e.jsxs)("div",{style:{width:160},children:["\u5434\u52A0\u53F7",(0,e.jsx)("span",{style:{float:"right"},children:(0,e.jsx)(H.Z,{status:"default",text:(0,e.jsx)("span",{style:{color:"rgba(0, 0, 0, 0.45)"},children:"\u672A\u54CD\u5E94"})})}),(0,e.jsx)("div",{style:{marginTop:4},children:"\u8017\u65F6\uFF1A2\u5C0F\u65F625\u5206\u949F"})]});return be==="process"?(0,e.jsx)(fe.Z,{placement:"topLeft",arrowPointAtCenter:!0,content:Ce,children:(0,e.jsx)("span",{children:W})}):W},X=(0,se.useRequest)(C),J=X.data,de=J===void 0?{}:J,ee=X.loading,xe=de.advancedOperation1,Ee=de.advancedOperation2,ye=de.advancedOperation3,he={tab1:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:xe,columns:r}),tab2:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:Ee,columns:r}),tab3:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:ye,columns:r})},te=function(W){N(h()(h()({},z),{},{tabActiveKey:W}))},ve=function(W){N(h()(h()({},z),{},{operationKey:W}))};return(0,e.jsx)(ae._z,{title:"\u5355\u53F7\uFF1A234231029431",extra:i,className:v.pageHeader,content:V,extraContent:G,tabActiveKey:z.tabActiveKey,onTabChange:te,tabList:[{key:"detail",tab:"\u8BE6\u60C5"},{key:"rule",tab:"\u89C4\u5219"}],children:(0,e.jsx)("div",{className:v.main,children:(0,e.jsxs)(le.f,{children:[(0,e.jsx)(T.Z,{title:"\u6D41\u7A0B\u8FDB\u5EA6",style:{marginBottom:24},children:(0,e.jsx)(K.X.Consumer,{children:function(W){var me=W.isMobile;return(0,e.jsxs)(ie.Z,{direction:me?"vertical":"horizontal",progressDot:$,current:1,children:[(0,e.jsx)(s,{title:"\u521B\u5EFA\u9879\u76EE",description:q}),(0,e.jsx)(s,{title:"\u90E8\u95E8\u521D\u5BA1",description:oe}),(0,e.jsx)(s,{title:"\u8D22\u52A1\u590D\u6838"}),(0,e.jsx)(s,{title:"\u5B8C\u6210"})]})}})}),(0,e.jsxs)(T.Z,{title:"\u7528\u6237\u4FE1\u606F",style:{marginBottom:24},bordered:!1,children:[(0,e.jsxs)(o.Z,{style:{marginBottom:24},children:[(0,e.jsx)(o.Z.Item,{label:"\u7528\u6237\u59D3\u540D",children:"\u4ED8\u5C0F\u5C0F"}),(0,e.jsx)(o.Z.Item,{label:"\u4F1A\u5458\u5361\u53F7",children:"32943898021309809423"}),(0,e.jsx)(o.Z.Item,{label:"\u8EAB\u4EFD\u8BC1",children:"3321944288191034921"}),(0,e.jsx)(o.Z.Item,{label:"\u8054\u7CFB\u65B9\u5F0F",children:"18112345678"}),(0,e.jsx)(o.Z.Item,{label:"\u8054\u7CFB\u5730\u5740",children:"\u66F2\u4E3D\u4E3D 18100000000 \u6D59\u6C5F\u7701\u676D\u5DDE\u5E02\u897F\u6E56\u533A\u9EC4\u59D1\u5C71\u8DEF\u5DE5\u4E13\u8DEF\u4EA4\u53C9\u8DEF\u53E3"})]}),(0,e.jsxs)(o.Z,{style:{marginBottom:24},title:"\u4FE1\u606F\u7EC4",children:[(0,e.jsx)(o.Z.Item,{label:"\u67D0\u67D0\u6570\u636E",children:"725"}),(0,e.jsx)(o.Z.Item,{label:"\u8BE5\u6570\u636E\u66F4\u65B0\u65F6\u95F4",children:"2017-08-08"}),(0,e.jsx)(o.Z.Item,{label:(0,e.jsxs)("span",{children:["\u67D0\u67D0\u6570\u636E",(0,e.jsx)(pe.Z,{title:"\u6570\u636E\u8BF4\u660E",children:(0,e.jsx)(R.Z,{style:{color:"rgba(0, 0, 0, 0.43)",marginLeft:4}})})]}),children:"725"}),(0,e.jsx)(o.Z.Item,{label:"\u8BE5\u6570\u636E\u66F4\u65B0\u65F6\u95F4",children:"2017-08-08"})]}),(0,e.jsx)("h4",{style:{marginBottom:16},children:"\u4FE1\u606F\u7EC4"}),(0,e.jsxs)(T.Z,{type:"inner",title:"\u591A\u5C42\u7EA7\u4FE1\u606F\u7EC4",children:[(0,e.jsxs)(o.Z,{style:{marginBottom:16},title:"\u7EC4\u540D\u79F0",children:[(0,e.jsx)(o.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u6797\u4E1C\u4E1C"}),(0,e.jsx)(o.Z.Item,{label:"\u89D2\u8272\u7801",children:"1234567"}),(0,e.jsx)(o.Z.Item,{label:"\u6240\u5C5E\u90E8\u95E8",children:"XX\u516C\u53F8 - YY\u90E8"}),(0,e.jsx)(o.Z.Item,{label:"\u8FC7\u671F\u65F6\u95F4",children:"2017-08-08"}),(0,e.jsx)(o.Z.Item,{label:"\u63CF\u8FF0",children:"\u8FD9\u6BB5\u63CF\u8FF0\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F..."})]}),(0,e.jsx)(w.Z,{style:{margin:"16px 0"}}),(0,e.jsx)(o.Z,{style:{marginBottom:16},title:"\u7EC4\u540D\u79F0",column:1,children:(0,e.jsx)(o.Z.Item,{label:"\u5B66\u540D",children:"Citrullus lanatus (Thunb.) Matsum. et Nakai\u4E00\u5E74\u751F\u8513\u751F\u85E4\u672C\uFF1B\u830E\u3001\u679D\u7C97\u58EE\uFF0C\u5177\u660E\u663E\u7684\u68F1\u3002\u5377\u987B\u8F83\u7C97.."})}),(0,e.jsx)(w.Z,{style:{margin:"16px 0"}}),(0,e.jsxs)(o.Z,{title:"\u7EC4\u540D\u79F0",children:[(0,e.jsx)(o.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u4ED8\u5C0F\u5C0F"}),(0,e.jsx)(o.Z.Item,{label:"\u89D2\u8272\u7801",children:"1234568"})]})]})]}),(0,e.jsx)(T.Z,{title:"\u7528\u6237\u8FD1\u534A\u5E74\u6765\u7535\u8BB0\u5F55",style:{marginBottom:24},bordered:!1,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(T.Z,{bordered:!1,tabList:c,onTabChange:ve,children:he[z.operationKey]})]})})})},P=M},65906:function(ne,Z,n){n.d(Z,{Z:function(){return j}});var a=n(79685),h=n(68591),F=n.n(h),B=n(85817),D=n(99248),L=n(73064),I=n(79301),K={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},le=a.createContext({}),se=n(89259),ie=function(t,e){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,l=Object.getOwnPropertySymbols(t);i(0,se.Z)(t).map(e=>Object.assign(Object.assign({},e==null?void 0:e.props),{key:e.key}));function re(t,e,s){const l=a.useMemo(()=>e||U(s),[e,s]);return a.useMemo(()=>l.map(c=>{var{span:r}=c,M=ie(c,["span"]);return Object.assign(Object.assign({},M),{span:typeof r=="number"?r:(0,B.m9)(t,r)})}),[l,t])}function ue(t,e,s){let l=t,i=!1;return(s===void 0||s>e)&&(l=Object.assign(Object.assign({},t),{span:e}),i=s!==void 0),[l,i]}function H(t,e){const s=[];let l=[],i=e,c=!1;return t.filter(r=>r).forEach((r,M)=>{const P=r==null?void 0:r.span,p=P||1;if(M===t.length-1){const[m,v]=ue(r,i,P);c=c||v,l.push(m),s.push(l);return}if(p{const[s,l]=(0,a.useMemo)(()=>H(e,t),[e,t]);return s},Q=t=>{let{children:e}=t;return e};function T(t){return t!=null}var w=t=>{const{itemPrefixCls:e,component:s,span:l,className:i,style:c,labelStyle:r,contentStyle:M,bordered:P,label:p,content:m,colon:v}=t,G=s;return P?a.createElement(G,{className:F()({[`${e}-item-label`]:T(p),[`${e}-item-content`]:T(m)},i),style:c,colSpan:l},T(p)&&a.createElement("span",{style:r},p),T(m)&&a.createElement("span",{style:M},m)):a.createElement(G,{className:F()(`${e}-item`,i),style:c,colSpan:l},a.createElement("div",{className:`${e}-item-container`},(p||p===0)&&a.createElement("span",{className:F()(`${e}-item-label`,{[`${e}-item-no-colon`]:!v}),style:r},p),(m||m===0)&&a.createElement("span",{className:F()(`${e}-item-content`),style:M},m)))};function k(t,e,s){let{colon:l,prefixCls:i,bordered:c}=e,{component:r,type:M,showLabel:P,showContent:p,labelStyle:m,contentStyle:v}=s;return t.map((G,V)=>{let{label:q,children:oe,prefixCls:_=i,className:Y,style:z,labelStyle:N,contentStyle:$,span:X=1,key:J}=G;return typeof r=="string"?a.createElement(w,{key:`${M}-${J||V}`,className:Y,style:z,labelStyle:Object.assign(Object.assign({},m),N),contentStyle:Object.assign(Object.assign({},v),$),span:X,colon:l,component:r,itemPrefixCls:_,bordered:c,label:P?q:null,content:p?oe:null}):[a.createElement(w,{key:`label-${J||V}`,className:Y,style:Object.assign(Object.assign(Object.assign({},m),z),N),span:1,colon:l,component:r[0],itemPrefixCls:_,bordered:c,label:q}),a.createElement(w,{key:`content-${J||V}`,className:Y,style:Object.assign(Object.assign(Object.assign({},v),z),$),span:X*2-1,component:r[1],itemPrefixCls:_,bordered:c,content:oe})]})}var d=t=>{const e=a.useContext(le),{prefixCls:s,vertical:l,row:i,index:c,bordered:r}=t;return l?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${c}`,className:`${s}-row`},k(i,t,Object.assign({component:"th",type:"label",showLabel:!0},e))),a.createElement("tr",{key:`content-${c}`,className:`${s}-row`},k(i,t,Object.assign({component:"td",type:"content",showContent:!0},e)))):a.createElement("tr",{key:c,className:`${s}-row`},k(i,t,Object.assign({component:r?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},e)))},u=n(26477),x=n(4614),b=n(44244),O=n(25830);const E=t=>{const{componentCls:e,labelBg:s}=t;return{[`&${e}-bordered`]:{[`> ${e}-view`]:{border:`${(0,u.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${e}-row`]:{borderBottom:`${(0,u.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${e}-item-label, > ${e}-item-content`]:{padding:`${(0,u.bf)(t.padding)} ${(0,u.bf)(t.paddingLG)}`,borderInlineEnd:`${(0,u.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${e}-item-label`]:{color:t.colorTextSecondary,backgroundColor:s,"&::after":{display:"none"}}}},[`&${e}-middle`]:{[`${e}-row`]:{[`> ${e}-item-label, > ${e}-item-content`]:{padding:`${(0,u.bf)(t.paddingSM)} ${(0,u.bf)(t.paddingLG)}`}}},[`&${e}-small`]:{[`${e}-row`]:{[`> ${e}-item-label, > ${e}-item-content`]:{padding:`${(0,u.bf)(t.paddingXS)} ${(0,u.bf)(t.padding)}`}}}}}},C=t=>{const{componentCls:e,extraColor:s,itemPaddingBottom:l,colonMarginRight:i,colonMarginLeft:c,titleMarginBottom:r}=t;return{[e]:Object.assign(Object.assign(Object.assign({},(0,x.Wf)(t)),E(t)),{["&-rtl"]:{direction:"rtl"},[`${e}-header`]:{display:"flex",alignItems:"center",marginBottom:r},[`${e}-title`]:Object.assign(Object.assign({},x.vS),{flex:"auto",color:t.titleColor,fontWeight:t.fontWeightStrong,fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}),[`${e}-extra`]:{marginInlineStart:"auto",color:s,fontSize:t.fontSize},[`${e}-view`]:{width:"100%",borderRadius:t.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${e}-row`]:{"> th, > td":{paddingBottom:l},"&:last-child":{borderBottom:"none"}},[`${e}-item-label`]:{color:t.colorTextTertiary,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,u.bf)(c)} ${(0,u.bf)(i)}`},[`&${e}-item-no-colon::after`]:{content:'""'}},[`${e}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${e}-item-content`]:{display:"table-cell",flex:1,color:t.contentColor,fontSize:t.fontSize,lineHeight:t.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${e}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${e}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${e}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${e}-row`]:{"> th, > td":{paddingBottom:t.paddingSM}}},"&-small":{[`${e}-row`]:{"> th, > td":{paddingBottom:t.paddingXS}}}})}},f=t=>({labelBg:t.colorFillAlter,titleColor:t.colorText,titleMarginBottom:t.fontSizeSM*t.lineHeightSM,itemPaddingBottom:t.padding,colonMarginRight:t.marginXS,colonMarginLeft:t.marginXXS/2,contentColor:t.colorText,extraColor:t.colorText});var S=(0,b.I$)("Descriptions",t=>{const e=(0,O.TS)(t,{});return C(e)},f),A=function(t,e){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,l=Object.getOwnPropertySymbols(t);i{const{prefixCls:e,title:s,extra:l,column:i,colon:c=!0,bordered:r,layout:M,children:P,className:p,rootClassName:m,style:v,size:G,labelStyle:V,contentStyle:q,items:oe}=t,_=A(t,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Y,direction:z,descriptions:N}=a.useContext(D.E_),$=Y("descriptions",e),X=(0,I.Z)(),J=a.useMemo(()=>{var te;return typeof i=="number"?i:(te=(0,B.m9)(X,Object.assign(Object.assign({},K),i)))!==null&&te!==void 0?te:3},[X,i]),de=re(X,oe,P),ee=(0,L.Z)(G),xe=o(J,de),[Ee,ye]=S($),he=a.useMemo(()=>({labelStyle:V,contentStyle:q}),[V,q]);return Ee(a.createElement(le.Provider,{value:he},a.createElement("div",Object.assign({className:F()($,N==null?void 0:N.className,{[`${$}-${ee}`]:ee&&ee!=="default",[`${$}-bordered`]:!!r,[`${$}-rtl`]:z==="rtl"},p,m,ye),style:Object.assign(Object.assign({},N==null?void 0:N.style),v)},_),(s||l)&&a.createElement("div",{className:`${$}-header`},s&&a.createElement("div",{className:`${$}-title`},s),l&&a.createElement("div",{className:`${$}-extra`},l)),a.createElement("div",{className:`${$}-view`},a.createElement("table",null,a.createElement("tbody",null,xe.map((te,ve)=>a.createElement(d,{key:ve,index:ve,colon:c,prefixCls:$,vertical:M==="vertical",bordered:r,row:te}))))))))};y.Item=Q;var j=y},45161:function(ne,Z,n){n.d(Z,{Z:function(){return k}});var a=n(79685),h=n(28120),F=n(23196),B=n(68591),D=n.n(B),L=n(99248),I=n(57196),K=g=>{const{value:d,formatter:u,precision:x,decimalSeparator:b,groupSeparator:O="",prefixCls:E}=g;let C;if(typeof u=="function")C=u(d);else{const f=String(d),S=f.match(/^(-?)(\d*)(\.(\d+))?$/);if(!S||f==="-")C=f;else{const A=S[1];let y=S[2]||"0",j=S[4]||"";y=y.replace(/\B(?=(\d{3})+(?!\d))/g,O),typeof x=="number"&&(j=j.padEnd(x,"0").slice(0,x>0?x:0)),j&&(j=`${b}${j}`),C=[a.createElement("span",{key:"int",className:`${E}-content-value-int`},A,y),j&&a.createElement("span",{key:"decimal",className:`${E}-content-value-decimal`},j)]}}return a.createElement("span",{className:`${E}-content-value`},C)},ae=n(4614),le=n(44244),se=n(25830);const ie=g=>{const{componentCls:d,marginXXS:u,padding:x,colorTextDescription:b,titleFontSize:O,colorTextHeading:E,contentFontSize:C,fontFamily:f}=g;return{[`${d}`]:Object.assign(Object.assign({},(0,ae.Wf)(g)),{[`${d}-title`]:{marginBottom:u,color:b,fontSize:O},[`${d}-skeleton`]:{paddingTop:x},[`${d}-content`]:{color:E,fontSize:C,fontFamily:f,[`${d}-content-value`]:{display:"inline-block",direction:"ltr"},[`${d}-content-prefix, ${d}-content-suffix`]:{display:"inline-block"},[`${d}-content-prefix`]:{marginInlineEnd:u},[`${d}-content-suffix`]:{marginInlineStart:u}}})}},U=g=>{const{fontSizeHeading3:d,fontSize:u}=g;return{titleFontSize:u,contentFontSize:d}};var re=(0,le.I$)("Statistic",g=>{const d=(0,se.TS)(g,{});return[ie(d)]},U),H=g=>{const{prefixCls:d,className:u,rootClassName:x,style:b,valueStyle:O,value:E=0,title:C,valueRender:f,prefix:S,suffix:A,loading:y=!1,onMouseEnter:j,onMouseLeave:t,decimalSeparator:e=".",groupSeparator:s=","}=g,{getPrefixCls:l,direction:i,statistic:c}=a.useContext(L.E_),r=l("statistic",d),[M,P]=re(r),p=a.createElement(K,Object.assign({decimalSeparator:e,groupSeparator:s,prefixCls:r},g,{value:E})),m=D()(r,{[`${r}-rtl`]:i==="rtl"},c==null?void 0:c.className,u,x,P);return M(a.createElement("div",{className:m,style:Object.assign(Object.assign({},c==null?void 0:c.style),b),onMouseEnter:j,onMouseLeave:t},C&&a.createElement("div",{className:`${r}-title`},C),a.createElement(I.Z,{paragraph:!1,loading:y,className:`${r}-skeleton`},a.createElement("div",{style:O,className:`${r}-content`},S&&a.createElement("span",{className:`${r}-content-prefix`},S),f?f(p):p,A&&a.createElement("span",{className:`${r}-content-suffix`},A)))))};const ce=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function o(g,d){let u=g;const x=/\[[^\]]*]/g,b=(d.match(x)||[]).map(f=>f.slice(1,-1)),O=d.replace(x,"[]"),E=ce.reduce((f,S)=>{let[A,y]=S;if(f.includes(A)){const j=Math.floor(u/y);return u-=j*y,f.replace(new RegExp(`${A}+`,"g"),t=>{const e=t.length;return j.toString().padStart(e,"0")})}return f},O);let C=0;return E.replace(x,()=>{const f=b[C];return C+=1,f})}function fe(g,d){const{format:u=""}=d,x=new Date(g).getTime(),b=Date.now(),O=Math.max(x-b,0);return o(O,u)}const Q=1e3/30;function T(g){return new Date(g).getTime()}const pe=g=>{const{value:d,format:u="HH:mm:ss",onChange:x,onFinish:b}=g,O=(0,h.Z)(),E=a.useRef(null),C=()=>{b==null||b(),E.current&&(clearInterval(E.current),E.current=null)},f=()=>{const y=T(d);y>=Date.now()&&(E.current=setInterval(()=>{O(),x==null||x(y-Date.now()),y(f(),()=>{E.current&&(clearInterval(E.current),E.current=null)}),[d]);const S=(y,j)=>fe(y,Object.assign(Object.assign({},j),{format:u})),A=y=>(0,F.Tm)(y,{title:void 0});return a.createElement(H,Object.assign({},g,{valueRender:A,formatter:S}))};var w=a.memo(pe);H.Countdown=w;var k=H}}]); diff --git a/p__profile__basic__index.02c0f2f0.async.js b/p__profile__basic__index.02c0f2f0.async.js deleted file mode 100644 index 8c1349e2..00000000 --- a/p__profile__basic__index.02c0f2f0.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2286],{80842:function($,f,t){t.r(f),t.d(f,{default:function(){return W}});var Z=t(95943),g=t(26970),h=t(27533),x=t(71656),C=t(50304),n=t(8303),v=t(84922),J=t(50959),b=t(13448),y=t.n(b),S=t(74815),P=t.n(S);function R(){return d.apply(this,arguments)}function d(){return d=P()(y()().mark(function o(){return y()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,h.request)("/api/profile/basic"));case 1:case"end":return a.stop()}},o)})),d.apply(this,arguments)}var A=t(8700),G=(0,A.kc)(function(o){var l=o.token;return{title:{marginBottom:"16px",color:l.colorTextHeading,fontWeight:"500",fontSize:"16px"}}}),k=G,e=t(11527),N=[{title:"\u65F6\u95F4",dataIndex:"time",key:"time"},{title:"\u5F53\u524D\u8FDB\u5EA6",dataIndex:"rate",key:"rate"},{title:"\u72B6\u6001",dataIndex:"status",key:"status",render:function(l){return l==="success"?(0,e.jsx)(x.Z,{status:"success",text:"\u6210\u529F"}):(0,e.jsx)(x.Z,{status:"processing",text:"\u8FDB\u884C\u4E2D"})}},{title:"\u64CD\u4F5C\u5458ID",dataIndex:"operator",key:"operator"},{title:"\u8017\u65F6",dataIndex:"cost",key:"cost"}],T=function(){var l=k(),a=l.styles,j=(0,h.useRequest)(function(){return R()}),z=j.data,p=j.loading,D=z||{basicGoods:[],basicProgress:[]},s=D.basicGoods,H=D.basicProgress,B=[];if(s.length){var I=0,E=0;s.forEach(function(i){I+=Number(i.num),E+=Number(i.amount)}),B=s.concat({id:"\u603B\u8BA1",num:I,amount:E})}var c=function(r,m,u){var F={children:r,props:{}};return u===s.length&&(F.props.colSpan=0),F},K=[{title:"\u5546\u54C1\u7F16\u53F7",dataIndex:"id",key:"id",render:function(r,m,u){return u(0,_.Z)(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function te(e,t,r){const n=s.useMemo(()=>t||P(r),[t,r]);return s.useMemo(()=>n.map(c=>{var{span:o}=c,v=ee(c,["span"]);return Object.assign(Object.assign({},v),{span:typeof o=="number"?o:(0,N.m9)(e,o)})}),[n,e])}function X(e,t,r){let n=e,l=!1;return(r===void 0||r>t)&&(n=Object.assign(Object.assign({},e),{span:t}),l=r!==void 0),[n,l]}function ne(e,t){const r=[];let n=[],l=t,c=!1;return e.filter(o=>o).forEach((o,v)=>{const S=o==null?void 0:o.span,m=S||1;if(v===e.length-1){const[d,x]=X(o,l,S);c=c||x,n.push(d),r.push(n);return}if(m{const[r,n]=(0,s.useMemo)(()=>ne(t,e),[t,e]);return r},re=e=>{let{children:t}=e;return t};function b(e){return e!=null}var y=e=>{const{itemPrefixCls:t,component:r,span:n,className:l,style:c,labelStyle:o,contentStyle:v,bordered:S,label:m,content:d,colon:x}=e,B=r;return S?s.createElement(B,{className:j()({[`${t}-item-label`]:b(m),[`${t}-item-content`]:b(d)},l),style:c,colSpan:n},b(m)&&s.createElement("span",{style:o},m),b(d)&&s.createElement("span",{style:v},d)):s.createElement(B,{className:j()(`${t}-item`,l),style:c,colSpan:n},s.createElement("div",{className:`${t}-item-container`},(m||m===0)&&s.createElement("span",{className:j()(`${t}-item-label`,{[`${t}-item-no-colon`]:!x}),style:o},m),(d||d===0)&&s.createElement("span",{className:j()(`${t}-item-content`),style:v},d)))};function O(e,t,r){let{colon:n,prefixCls:l,bordered:c}=t,{component:o,type:v,showLabel:S,showContent:m,labelStyle:d,contentStyle:x}=r;return e.map((B,I)=>{let{label:M,children:Q,prefixCls:z=l,className:R,style:T,labelStyle:$,contentStyle:g,span:D=1,key:w}=B;return typeof o=="string"?s.createElement(y,{key:`${v}-${w||I}`,className:R,style:T,labelStyle:Object.assign(Object.assign({},d),$),contentStyle:Object.assign(Object.assign({},x),g),span:D,colon:n,component:o,itemPrefixCls:z,bordered:c,label:S?M:null,content:m?Q:null}):[s.createElement(y,{key:`label-${w||I}`,className:R,style:Object.assign(Object.assign(Object.assign({},d),T),$),span:1,colon:n,component:o[0],itemPrefixCls:z,bordered:c,label:M}),s.createElement(y,{key:`content-${w||I}`,className:R,style:Object.assign(Object.assign(Object.assign({},x),T),g),span:D*2-1,component:o[1],itemPrefixCls:z,bordered:c,content:Q})]})}var U=e=>{const t=s.useContext(H),{prefixCls:r,vertical:n,row:l,index:c,bordered:o}=e;return n?s.createElement(s.Fragment,null,s.createElement("tr",{key:`label-${c}`,className:`${r}-row`},O(l,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),s.createElement("tr",{key:`content-${c}`,className:`${r}-row`},O(l,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):s.createElement("tr",{key:c,className:`${r}-row`},O(l,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},u=a(26477),h=a(4614),se=a(44244),V=a(25830);const K=e=>{const{componentCls:t,labelBg:r}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,u.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${t}-row`]:{borderBottom:`${(0,u.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,u.bf)(e.padding)} ${(0,u.bf)(e.paddingLG)}`,borderInlineEnd:`${(0,u.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:r,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,u.bf)(e.paddingSM)} ${(0,u.bf)(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,u.bf)(e.paddingXS)} ${(0,u.bf)(e.padding)}`}}}}}},J=e=>{const{componentCls:t,extraColor:r,itemPaddingBottom:n,colonMarginRight:l,colonMarginLeft:c,titleMarginBottom:o}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,h.Wf)(e)),K(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:o},[`${t}-title`]:Object.assign(Object.assign({},h.vS),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:r,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorTextTertiary,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,u.bf)(c)} ${(0,u.bf)(l)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},F=e=>({labelBg:e.colorFillAlter,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText});var ae=(0,se.I$)("Descriptions",e=>{const t=(0,V.TS)(e,{});return J(t)},F),C=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l{const{prefixCls:t,title:r,extra:n,column:l,colon:c=!0,bordered:o,layout:v,children:S,className:m,rootClassName:d,style:x,size:B,labelStyle:I,contentStyle:M,items:Q}=e,z=C(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:R,direction:T,descriptions:$}=s.useContext(Y.E_),g=R("descriptions",t),D=(0,G.Z)(),w=s.useMemo(()=>{var L;return typeof l=="number"?l:(L=(0,N.m9)(D,Object.assign(Object.assign({},q),l)))!==null&&L!==void 0?L:3},[D,l]),fe=te(D,Q,S),oe=(0,f.Z)(B),ge=le(w,fe),[pe,ye]=ae(g),be=s.useMemo(()=>({labelStyle:I,contentStyle:M}),[I,M]);return pe(s.createElement(H.Provider,{value:be},s.createElement("div",Object.assign({className:j()(g,$==null?void 0:$.className,{[`${g}-${oe}`]:oe&&oe!=="default",[`${g}-bordered`]:!!o,[`${g}-rtl`]:T==="rtl"},m,d,ye),style:Object.assign(Object.assign({},$==null?void 0:$.style),x)},z),(r||n)&&s.createElement("div",{className:`${g}-header`},r&&s.createElement("div",{className:`${g}-title`},r),n&&s.createElement("div",{className:`${g}-extra`},n)),s.createElement("div",{className:`${g}-view`},s.createElement("table",null,s.createElement("tbody",null,ge.map((L,de)=>s.createElement(U,{key:de,index:de,colon:c,prefixCls:g,vertical:v==="vertical",bordered:o,row:L}))))))))};p.Item=re;var Z=p}}]); diff --git a/p__result__fail__index.64f87542.async.js b/p__result__fail__index.2c78d606.async.js similarity index 68% rename from p__result__fail__index.64f87542.async.js rename to p__result__fail__index.2c78d606.async.js index aa045687..f39ecfdd 100644 --- a/p__result__fail__index.64f87542.async.js +++ b/p__result__fail__index.2c78d606.async.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2140],{67641:function(A,b,n){n.d(b,{Z:function(){return $}});var o=n(33346),h=n(50959),v={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},O=v,y=n(69164),p=function(j,N){return h.createElement(y.Z,(0,o.Z)((0,o.Z)({},j),{},{ref:N,icon:O}))};p.displayName="CloseCircleOutlined";var $=h.forwardRef(p)},19494:function(A,b,n){n.d(b,{f:function(){return l}});var o=n(73273),h=n(56197),v=n(84875),O=n.n(v),y=n(50959),p=n(169),$=n(33346),T=n(26488),j=function(g){return(0,o.Z)({},g.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function N(u){return(0,T.Xj)("ProLayoutGridContent",function(g){var d=(0,$.Z)((0,$.Z)({},g),{},{componentCls:".".concat(u)});return[j(d)]})}var E=n(11527),l=function(g){var d=(0,y.useContext)(p.X),D=g.children,x=g.contentWidth,f=g.className,B=g.style,J=(0,y.useContext)(h.ZP.ConfigContext),Q=J.getPrefixCls,F=g.prefixCls||Q("pro"),Y=x||d.contentWidth,G="".concat(F,"-grid-content"),W=N(G),I=W.wrapSSR,Z=W.hashId,_=Y==="Fixed"&&d.layout==="top";return I((0,E.jsx)("div",{className:O()(G,Z,f,(0,o.Z)({},"".concat(G,"-wide"),_)),style:B,children:(0,E.jsx)("div",{className:"".concat(F,"-grid-content-children ").concat(Z).trim(),children:D})}))}},169:function(A,b,n){n.d(b,{X:function(){return h}});var o=n(50959),h=(0,o.createContext)({})},80812:function(A,b,n){n.r(b),n.d(b,{default:function(){return D}});var o=n(67641),h=n(33346),v=n(50959),O=n(61668),y=n(69164),p=function(f,B){return v.createElement(y.Z,(0,h.Z)((0,h.Z)({},f),{},{ref:B,icon:O.Z}))};p.displayName="RightOutlined";var $=v.forwardRef(p),T=n(19494),j=n(50304),N=n(6053),E=n(47100),l=n(8700),u=(0,l.kc)(function(x){var f=x.token;return{error_icon:{color:f.colorBgTextActive},title:{marginBottom:"16px",color:f.colorTextHeading,fontWeight:"500",fontSize:"16px"}}}),g=u,d=n(11527),D=function(){var x=g(),f=x.styles,B=(0,d.jsxs)(v.Fragment,{children:[(0,d.jsx)("div",{className:f.title,children:(0,d.jsx)("span",{children:"\u60A8\u63D0\u4EA4\u7684\u5185\u5BB9\u6709\u5982\u4E0B\u9519\u8BEF\uFF1A"})}),(0,d.jsxs)("div",{style:{marginBottom:16},children:[(0,d.jsx)(o.Z,{style:{marginRight:8},className:f.error_icon}),(0,d.jsx)("span",{children:"\u60A8\u7684\u8D26\u6237\u5DF2\u88AB\u51BB\u7ED3"}),(0,d.jsxs)("a",{style:{marginLeft:16},children:[(0,d.jsx)("span",{children:"\u7ACB\u5373\u89E3\u51BB"}),(0,d.jsx)($,{})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(o.Z,{style:{marginRight:8},className:f.error_icon}),(0,d.jsx)("span",{children:"\u60A8\u7684\u8D26\u6237\u8FD8\u4E0D\u5177\u5907\u7533\u8BF7\u8D44\u683C"}),(0,d.jsxs)("a",{style:{marginLeft:16},children:[(0,d.jsx)("span",{children:"\u7ACB\u5373\u5347\u7EA7"}),(0,d.jsx)($,{})]})]})]});return(0,d.jsx)(T.f,{children:(0,d.jsx)(j.Z,{bordered:!1,children:(0,d.jsx)(N.ZP,{status:"error",title:"\u63D0\u4EA4\u5931\u8D25",subTitle:"\u8BF7\u6838\u5BF9\u5E76\u4FEE\u6539\u4EE5\u4E0B\u4FE1\u606F\u540E\uFF0C\u518D\u91CD\u65B0\u63D0\u4EA4\u3002",extra:(0,d.jsx)(E.ZP,{type:"primary",children:(0,d.jsx)("span",{children:"\u8FD4\u56DE\u4FEE\u6539"})}),style:{marginTop:48,marginBottom:16},children:B})})})}},50304:function(A,b,n){n.d(b,{Z:function(){return de}});var o=n(50959),h=n(84875),v=n.n(h),O=n(87017),y=n(31594),p=n(17436),$=n(25670),T=n(66146),j=function(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var{prefixCls:i,className:t,hoverable:a=!0}=e,r=j(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=o.useContext(y.E_),m=c("card",i),z=v()(`${m}-grid`,t,{[`${m}-grid-hoverable`]:a});return o.createElement("div",Object.assign({},r,{className:z}))},l=n(60076),u=n(6301),g=n(81501),d=n(90467);const D=e=>{const{antCls:i,componentCls:t,headerHeight:a,cardPaddingBase:r,tabsMarginBottom:c}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,l.bf)(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`},(0,u.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},u.vS),{[` +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2140],{64943:function(A,b,n){n.d(b,{Z:function(){return $}});var o=n(93264),h=n(79685),v={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},O=v,y=n(64507),p=function(j,N){return h.createElement(y.Z,(0,o.Z)((0,o.Z)({},j),{},{ref:N,icon:O}))};p.displayName="CloseCircleOutlined";var $=h.forwardRef(p)},79586:function(A,b,n){n.d(b,{f:function(){return l}});var o=n(6346),h=n(89543),v=n(68591),O=n.n(v),y=n(79685),p=n(34435),$=n(93264),T=n(33298),j=function(g){return(0,o.Z)({},g.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function N(u){return(0,T.Xj)("ProLayoutGridContent",function(g){var d=(0,$.Z)((0,$.Z)({},g),{},{componentCls:".".concat(u)});return[j(d)]})}var E=n(63342),l=function(g){var d=(0,y.useContext)(p.X),D=g.children,x=g.contentWidth,f=g.className,B=g.style,J=(0,y.useContext)(h.ZP.ConfigContext),Q=J.getPrefixCls,F=g.prefixCls||Q("pro"),Y=x||d.contentWidth,G="".concat(F,"-grid-content"),W=N(G),I=W.wrapSSR,Z=W.hashId,_=Y==="Fixed"&&d.layout==="top";return I((0,E.jsx)("div",{className:O()(G,Z,f,(0,o.Z)({},"".concat(G,"-wide"),_)),style:B,children:(0,E.jsx)("div",{className:"".concat(F,"-grid-content-children ").concat(Z).trim(),children:D})}))}},34435:function(A,b,n){n.d(b,{X:function(){return h}});var o=n(79685),h=(0,o.createContext)({})},98942:function(A,b,n){n.r(b),n.d(b,{default:function(){return D}});var o=n(64943),h=n(93264),v=n(79685),O=n(20590),y=n(64507),p=function(f,B){return v.createElement(y.Z,(0,h.Z)((0,h.Z)({},f),{},{ref:B,icon:O.Z}))};p.displayName="RightOutlined";var $=v.forwardRef(p),T=n(79586),j=n(18283),N=n(94154),E=n(10951),l=n(24507),u=(0,l.kc)(function(x){var f=x.token;return{error_icon:{color:f.colorBgTextActive},title:{marginBottom:"16px",color:f.colorTextHeading,fontWeight:"500",fontSize:"16px"}}}),g=u,d=n(63342),D=function(){var x=g(),f=x.styles,B=(0,d.jsxs)(v.Fragment,{children:[(0,d.jsx)("div",{className:f.title,children:(0,d.jsx)("span",{children:"\u60A8\u63D0\u4EA4\u7684\u5185\u5BB9\u6709\u5982\u4E0B\u9519\u8BEF\uFF1A"})}),(0,d.jsxs)("div",{style:{marginBottom:16},children:[(0,d.jsx)(o.Z,{style:{marginRight:8},className:f.error_icon}),(0,d.jsx)("span",{children:"\u60A8\u7684\u8D26\u6237\u5DF2\u88AB\u51BB\u7ED3"}),(0,d.jsxs)("a",{style:{marginLeft:16},children:[(0,d.jsx)("span",{children:"\u7ACB\u5373\u89E3\u51BB"}),(0,d.jsx)($,{})]})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)(o.Z,{style:{marginRight:8},className:f.error_icon}),(0,d.jsx)("span",{children:"\u60A8\u7684\u8D26\u6237\u8FD8\u4E0D\u5177\u5907\u7533\u8BF7\u8D44\u683C"}),(0,d.jsxs)("a",{style:{marginLeft:16},children:[(0,d.jsx)("span",{children:"\u7ACB\u5373\u5347\u7EA7"}),(0,d.jsx)($,{})]})]})]});return(0,d.jsx)(T.f,{children:(0,d.jsx)(j.Z,{bordered:!1,children:(0,d.jsx)(N.ZP,{status:"error",title:"\u63D0\u4EA4\u5931\u8D25",subTitle:"\u8BF7\u6838\u5BF9\u5E76\u4FEE\u6539\u4EE5\u4E0B\u4FE1\u606F\u540E\uFF0C\u518D\u91CD\u65B0\u63D0\u4EA4\u3002",extra:(0,d.jsx)(E.ZP,{type:"primary",children:(0,d.jsx)("span",{children:"\u8FD4\u56DE\u4FEE\u6539"})}),style:{marginTop:48,marginBottom:16},children:B})})})}},18283:function(A,b,n){n.d(b,{Z:function(){return de}});var o=n(79685),h=n(68591),v=n.n(h),O=n(3139),y=n(99248),p=n(73064),$=n(57196),T=n(55095),j=function(e,i){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&i.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var{prefixCls:i,className:t,hoverable:a=!0}=e,r=j(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=o.useContext(y.E_),m=c("card",i),z=v()(`${m}-grid`,t,{[`${m}-grid-hoverable`]:a});return o.createElement("div",Object.assign({},r,{className:z}))},l=n(26477),u=n(4614),g=n(44244),d=n(25830);const D=e=>{const{antCls:i,componentCls:t,headerHeight:a,cardPaddingBase:r,tabsMarginBottom:c}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,l.bf)(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`},(0,u.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},u.vS),{[` > ${t}-typography, > ${t}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${i}-tabs-top`]:{clear:"both",marginBottom:c,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},x=e=>{const{cardPaddingBase:i,colorBorderSecondary:t,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:i,border:0,borderRadius:0,boxShadow:` diff --git a/p__result__success__index.0e68e42d.async.js b/p__result__success__index.0e68e42d.async.js new file mode 100644 index 00000000..26e4c974 --- /dev/null +++ b/p__result__success__index.0e68e42d.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4648],{49726:function(re,B,o){o.d(B,{Z:function(){return I}});var a=o(93264),D=o(79685),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},E=h,S=o(64507),L=function(R,V){return D.createElement(S.Z,(0,a.Z)((0,a.Z)({},R),{},{ref:V,icon:E}))};L.displayName="DingdingOutlined";var I=D.forwardRef(L)},79586:function(re,B,o){o.d(B,{f:function(){return r}});var a=o(6346),D=o(89543),h=o(68591),E=o.n(h),S=o(79685),L=o(34435),I=o(93264),U=o(33298),R=function(v){return(0,a.Z)({},v.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function V(p){return(0,U.Xj)("ProLayoutGridContent",function(v){var z=(0,I.Z)((0,I.Z)({},v),{},{componentCls:".".concat(p)});return[R(z)]})}var A=o(63342),r=function(v){var z=(0,S.useContext)(L.X),P=v.children,J=v.contentWidth,ee=v.className,Q=v.style,te=(0,S.useContext)(D.ZP.ConfigContext),ie=te.getPrefixCls,w=v.prefixCls||ie("pro"),de=J||z.contentWidth,G="".concat(w,"-grid-content"),H=V(G),oe=H.wrapSSR,ne=H.hashId,C=de==="Fixed"&&z.layout==="top";return oe((0,A.jsx)("div",{className:E()(G,ne,ee,(0,a.Z)({},"".concat(G,"-wide"),C)),style:Q,children:(0,A.jsx)("div",{className:"".concat(w,"-grid-content-children ").concat(ne).trim(),children:P})}))}},34435:function(re,B,o){o.d(B,{X:function(){return D}});var a=o(79685),D=(0,a.createContext)({})},3426:function(re,B,o){o.r(B),o.d(B,{default:function(){return v}});var a=o(49726),D=o(79586),h=o(36642),E=o(65906),S=o(10951),L=o(18283),I=o(94154),U=o(79685),R=o(24507),V=(0,R.kc)(function(z){var P=z.token;return{title:{position:"relative",color:P.colorText,fontSize:"12px",textAlign:"center"},"head-title":{marginBottom:"20px",color:P.colorTextHeading,fontWeight:"500px",fontSize:"16px"}}}),A=V,r=o(63342),p=h.Z.Step,v=function(){var z=A(),P=z.styles,J=(0,r.jsxs)("div",{className:P.title,children:[(0,r.jsxs)("div",{style:{margin:"8px 0 4px"},children:[(0,r.jsx)("span",{children:"\u66F2\u4E3D\u4E3D"}),(0,r.jsx)(a.Z,{style:{marginLeft:8,color:"#00A0E9"}})]}),(0,r.jsx)("div",{children:"2016-12-12 12:32"})]}),ee=(0,r.jsx)("div",{style:{fontSize:12},className:P.title,children:(0,r.jsxs)("div",{style:{margin:"8px 0 4px"},children:[(0,r.jsx)("span",{children:"\u5468\u6BDB\u6BDB"}),(0,r.jsxs)("a",{href:"",children:[(0,r.jsx)(a.Z,{style:{color:"#00A0E9",marginLeft:8}}),(0,r.jsx)("span",{children:"\u50AC\u4E00\u4E0B"})]})]})}),Q=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(E.Z,{title:"\u9879\u76EE\u540D\u79F0",children:[(0,r.jsx)(E.Z.Item,{label:"\u9879\u76EE ID",children:"23421"}),(0,r.jsx)(E.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u66F2\u4E3D\u4E3D"}),(0,r.jsx)(E.Z.Item,{label:"\u751F\u6548\u65F6\u95F4",children:"2016-12-12 ~ 2017-12-12"})]}),(0,r.jsx)("br",{}),(0,r.jsxs)(h.Z,{progressDot:!0,current:1,children:[(0,r.jsx)(p,{title:(0,r.jsx)("span",{style:{fontSize:14},children:"\u521B\u5EFA\u9879\u76EE"}),description:J}),(0,r.jsx)(p,{title:(0,r.jsx)("span",{style:{fontSize:14},children:"\u90E8\u95E8\u521D\u5BA1"}),description:ee}),(0,r.jsx)(p,{title:(0,r.jsx)("span",{style:{fontSize:14},children:"\u8D22\u52A1\u590D\u6838"})}),(0,r.jsx)(p,{title:(0,r.jsx)("span",{style:{fontSize:14},children:"\u5B8C\u6210"})})]})]}),te=(0,r.jsxs)(U.Fragment,{children:[(0,r.jsx)(S.ZP,{type:"primary",children:"\u8FD4\u56DE\u5217\u8868"}),(0,r.jsx)(S.ZP,{children:"\u67E5\u770B\u9879\u76EE"}),(0,r.jsx)(S.ZP,{children:"\u6253\u5370"})]});return(0,r.jsx)(D.f,{children:(0,r.jsx)(L.Z,{bordered:!1,children:(0,r.jsx)(I.ZP,{status:"success",title:"\u63D0\u4EA4\u6210\u529F",subTitle:"\u63D0\u4EA4\u7ED3\u679C\u9875\u7528\u4E8E\u53CD\u9988\u4E00\u7CFB\u5217\u64CD\u4F5C\u4EFB\u52A1\u7684\u5904\u7406\u7ED3\u679C\uFF0C \u5982\u679C\u4EC5\u662F\u7B80\u5355\u64CD\u4F5C\uFF0C\u4F7F\u7528 Message \u5168\u5C40\u63D0\u793A\u53CD\u9988\u5373\u53EF\u3002 \u672C\u6587\u5B57\u533A\u57DF\u53EF\u4EE5\u5C55\u793A\u7B80\u5355\u7684\u8865\u5145\u8BF4\u660E\uFF0C\u5982\u679C\u6709\u7C7B\u4F3C\u5C55\u793A \u201C\u5355\u636E\u201D\u7684\u9700\u6C42\uFF0C\u4E0B\u9762\u8FD9\u4E2A\u7070\u8272\u533A\u57DF\u53EF\u4EE5\u5448\u73B0\u6BD4\u8F83\u590D\u6742\u7684\u5185\u5BB9\u3002",extra:te,style:{marginBottom:16},children:Q})})})}},18283:function(re,B,o){o.d(B,{Z:function(){return be}});var a=o(79685),D=o(68591),h=o.n(D),E=o(3139),S=o(99248),L=o(73064),I=o(57196),U=o(55095),R=function(e,u){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&u.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,s=Object.getOwnPropertySymbols(e);t{var{prefixCls:u,className:i,hoverable:s=!0}=e,t=R(e,["prefixCls","className","hoverable"]);const{getPrefixCls:n}=a.useContext(S.E_),c=n("card",u),l=h()(`${c}-grid`,i,{[`${c}-grid-hoverable`]:s});return a.createElement("div",Object.assign({},t,{className:l}))},r=o(26477),p=o(4614),v=o(44244),z=o(25830);const P=e=>{const{antCls:u,componentCls:i,headerHeight:s,cardPaddingBase:t,tabsMarginBottom:n}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:s,marginBottom:-1,padding:`0 ${(0,r.bf)(t)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)} 0 0`},(0,p.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},p.vS),{[` + > ${i}-typography, + > ${i}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${u}-tabs-top`]:{clear:"both",marginBottom:n,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},J=e=>{const{cardPaddingBase:u,colorBorderSecondary:i,cardShadow:s,lineWidth:t}=e;return{width:"33.33%",padding:u,border:0,borderRadius:0,boxShadow:` + ${(0,r.bf)(t)} 0 0 0 ${i}, + 0 ${(0,r.bf)(t)} 0 0 ${i}, + ${(0,r.bf)(t)} ${(0,r.bf)(t)} 0 0 ${i}, + ${(0,r.bf)(t)} 0 0 0 ${i} inset, + 0 ${(0,r.bf)(t)} 0 0 ${i} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:s}}},ee=e=>{const{componentCls:u,iconCls:i,actionsLiMargin:s,cardActionsIconSize:t,colorBorderSecondary:n,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${n}`,display:"flex",borderRadius:`0 0 ${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)}`},(0,p.dF)()),{"& > li":{margin:s,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${u}-btn), > ${i}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,r.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${i}`]:{fontSize:t,lineHeight:(0,r.bf)(e.calc(t).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${n}`}}})},Q=e=>Object.assign(Object.assign({margin:`${(0,r.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,p.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},p.vS),"&-description":{color:e.colorTextDescription}}),te=e=>{const{componentCls:u,cardPaddingBase:i,colorFillAlter:s}=e;return{[`${u}-head`]:{padding:`0 ${(0,r.bf)(i)}`,background:s,"&-title":{fontSize:e.fontSize}},[`${u}-body`]:{padding:`${(0,r.bf)(e.padding)} ${(0,r.bf)(i)}`}}},ie=e=>{const{componentCls:u}=e;return{overflow:"hidden",[`${u}-body`]:{userSelect:"none"}}},w=e=>{const{antCls:u,componentCls:i,cardShadow:s,cardHeadPadding:t,colorBorderSecondary:n,boxShadowTertiary:c,cardPaddingBase:l,extraColor:d}=e;return{[i]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${i}-bordered)`]:{boxShadow:c},[`${i}-head`]:P(e),[`${i}-extra`]:{marginInlineStart:"auto",color:d,fontWeight:"normal",fontSize:e.fontSize},[`${i}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)}`},(0,p.dF)()),[`${i}-grid`]:J(e),[`${i}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${u}-image-mask`]:{borderRadius:`${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)} 0 0`}},[`${i}-actions`]:ee(e),[`${i}-meta`]:Q(e)}),[`${i}-bordered`]:{border:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${n}`,[`${i}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${i}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:s}},[`${i}-contain-grid`]:{borderRadius:`${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)} 0 0 `,[`${i}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${i}-loading) ${i}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${i}-contain-tabs`]:{[`> ${i}-head`]:{minHeight:0,[`${i}-head-title, ${i}-extra`]:{paddingTop:t}}},[`${i}-type-inner`]:te(e),[`${i}-loading`]:ie(e),[`${i}-rtl`]:{direction:"rtl"}}},de=e=>{const{componentCls:u,cardPaddingSM:i,headerHeightSM:s,headerFontSizeSM:t}=e;return{[`${u}-small`]:{[`> ${u}-head`]:{minHeight:s,padding:`0 ${(0,r.bf)(i)}`,fontSize:t,[`> ${u}-head-wrapper`]:{[`> ${u}-extra`]:{fontSize:e.fontSize}}},[`> ${u}-body`]:{padding:i}},[`${u}-small${u}-contain-tabs`]:{[`> ${u}-head`]:{[`${u}-head-title, ${u}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},G=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var H=(0,v.I$)("Card",e=>{const u=(0,z.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[w(u),de(u)]},G),oe=function(e,u){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&u.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,s=Object.getOwnPropertySymbols(e);t{const{prefixCls:u,actions:i=[]}=e;return a.createElement("ul",{className:`${u}-actions`},i.map((s,t)=>{const n=`action-${t}`;return a.createElement("li",{style:{width:`${100/i.length}%`},key:n},a.createElement("span",null,s))}))};var ue=a.forwardRef((e,u)=>{const{prefixCls:i,className:s,rootClassName:t,style:n,extra:c,headStyle:l={},bodyStyle:d={},title:g,loading:m,bordered:$=!0,size:O,type:b,cover:y,actions:j,tabList:F,children:T,activeTabKey:Z,defaultActiveTabKey:ae,tabBarExtraContent:Y,hoverable:q,tabProps:k={}}=e,M=oe(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:x,direction:X,card:N}=a.useContext(S.E_),pe=_=>{var W;(W=e.onTabChange)===null||W===void 0||W.call(e,_)},se=a.useMemo(()=>{let _=!1;return a.Children.forEach(T,W=>{W&&W.type&&W.type===A&&(_=!0)}),_},[T]),f=x("card",i),[ye,he]=H(f),ve=a.createElement(I.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),K=Z!==void 0,me=Object.assign(Object.assign({},k),{[K?"activeKey":"defaultActiveKey"]:K?Z:ae,tabBarExtraContent:Y});let xe;const ce=(0,L.Z)(O),Ce=!ce||ce==="default"?"large":ce,Se=F?a.createElement(U.Z,Object.assign({size:Ce},me,{className:`${f}-head-tabs`,onChange:pe,items:F.map(_=>{var{tab:W}=_,Pe=oe(_,["tab"]);return Object.assign({label:W},Pe)})})):null;(g||c||Se)&&(xe=a.createElement("div",{className:`${f}-head`,style:l},a.createElement("div",{className:`${f}-head-wrapper`},g&&a.createElement("div",{className:`${f}-head-title`},g),c&&a.createElement("div",{className:`${f}-extra`},c)),Se));const je=y?a.createElement("div",{className:`${f}-cover`},y):null,Ee=a.createElement("div",{className:`${f}-body`,style:d},m?ve:T),Oe=j&&j.length?a.createElement(ne,{prefixCls:f,actions:j}):null,Be=(0,E.Z)(M,["onTabChange"]),De=h()(f,N==null?void 0:N.className,{[`${f}-loading`]:m,[`${f}-bordered`]:$,[`${f}-hoverable`]:q,[`${f}-contain-grid`]:se,[`${f}-contain-tabs`]:F&&F.length,[`${f}-${ce}`]:ce,[`${f}-type-${b}`]:!!b,[`${f}-rtl`]:X==="rtl"},s,t,he),ze=Object.assign(Object.assign({},N==null?void 0:N.style),n);return ye(a.createElement("div",Object.assign({ref:u},Be,{className:De,style:ze}),xe,je,Ee,Oe))}),ge=function(e,u){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&u.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,s=Object.getOwnPropertySymbols(e);t{const{prefixCls:u,className:i,avatar:s,title:t,description:n}=e,c=ge(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=a.useContext(S.E_),d=l("card",u),g=h()(`${d}-meta`,i),m=s?a.createElement("div",{className:`${d}-meta-avatar`},s):null,$=t?a.createElement("div",{className:`${d}-meta-title`},t):null,O=n?a.createElement("div",{className:`${d}-meta-description`},n):null,b=$||O?a.createElement("div",{className:`${d}-meta-detail`},$,O):null;return a.createElement("div",Object.assign({},c,{className:g}),m,b)};const le=ue;le.Grid=A,le.Meta=fe;var be=le},65906:function(re,B,o){o.d(B,{Z:function(){return s}});var a=o(79685),D=o(68591),h=o.n(D),E=o(85817),S=o(99248),L=o(73064),I=o(79301),R={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},A=a.createContext({}),r=o(89259),p=function(t,n){var c={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.indexOf(l)<0&&(c[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(t);d(0,r.Z)(t).map(n=>Object.assign(Object.assign({},n==null?void 0:n.props),{key:n.key}));function z(t,n,c){const l=a.useMemo(()=>n||v(c),[n,c]);return a.useMemo(()=>l.map(g=>{var{span:m}=g,$=p(g,["span"]);return Object.assign(Object.assign({},$),{span:typeof m=="number"?m:(0,E.m9)(t,m)})}),[l,t])}function P(t,n,c){let l=t,d=!1;return(c===void 0||c>n)&&(l=Object.assign(Object.assign({},t),{span:n}),d=c!==void 0),[l,d]}function J(t,n){const c=[];let l=[],d=n,g=!1;return t.filter(m=>m).forEach((m,$)=>{const O=m==null?void 0:m.span,b=O||1;if($===t.length-1){const[y,j]=P(m,d,O);g=g||j,l.push(y),c.push(l);return}if(b{const[c,l]=(0,a.useMemo)(()=>J(n,t),[n,t]);return c},ie=t=>{let{children:n}=t;return n};function w(t){return t!=null}var G=t=>{const{itemPrefixCls:n,component:c,span:l,className:d,style:g,labelStyle:m,contentStyle:$,bordered:O,label:b,content:y,colon:j}=t,F=c;return O?a.createElement(F,{className:h()({[`${n}-item-label`]:w(b),[`${n}-item-content`]:w(y)},d),style:g,colSpan:l},w(b)&&a.createElement("span",{style:m},b),w(y)&&a.createElement("span",{style:$},y)):a.createElement(F,{className:h()(`${n}-item`,d),style:g,colSpan:l},a.createElement("div",{className:`${n}-item-container`},(b||b===0)&&a.createElement("span",{className:h()(`${n}-item-label`,{[`${n}-item-no-colon`]:!j}),style:m},b),(y||y===0)&&a.createElement("span",{className:h()(`${n}-item-content`),style:$},y)))};function H(t,n,c){let{colon:l,prefixCls:d,bordered:g}=n,{component:m,type:$,showLabel:O,showContent:b,labelStyle:y,contentStyle:j}=c;return t.map((F,T)=>{let{label:Z,children:ae,prefixCls:Y=d,className:q,style:k,labelStyle:M,contentStyle:x,span:X=1,key:N}=F;return typeof m=="string"?a.createElement(G,{key:`${$}-${N||T}`,className:q,style:k,labelStyle:Object.assign(Object.assign({},y),M),contentStyle:Object.assign(Object.assign({},j),x),span:X,colon:l,component:m,itemPrefixCls:Y,bordered:g,label:O?Z:null,content:b?ae:null}):[a.createElement(G,{key:`label-${N||T}`,className:q,style:Object.assign(Object.assign(Object.assign({},y),k),M),span:1,colon:l,component:m[0],itemPrefixCls:Y,bordered:g,label:Z}),a.createElement(G,{key:`content-${N||T}`,className:q,style:Object.assign(Object.assign(Object.assign({},j),k),x),span:X*2-1,component:m[1],itemPrefixCls:Y,bordered:g,content:ae})]})}var ne=t=>{const n=a.useContext(A),{prefixCls:c,vertical:l,row:d,index:g,bordered:m}=t;return l?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${g}`,className:`${c}-row`},H(d,t,Object.assign({component:"th",type:"label",showLabel:!0},n))),a.createElement("tr",{key:`content-${g}`,className:`${c}-row`},H(d,t,Object.assign({component:"td",type:"content",showContent:!0},n)))):a.createElement("tr",{key:g,className:`${c}-row`},H(d,t,Object.assign({component:m?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},n)))},C=o(26477),ue=o(4614),ge=o(44244),$e=o(25830);const fe=t=>{const{componentCls:n,labelBg:c}=t;return{[`&${n}-bordered`]:{[`> ${n}-view`]:{border:`${(0,C.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${n}-row`]:{borderBottom:`${(0,C.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,C.bf)(t.padding)} ${(0,C.bf)(t.paddingLG)}`,borderInlineEnd:`${(0,C.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${n}-item-label`]:{color:t.colorTextSecondary,backgroundColor:c,"&::after":{display:"none"}}}},[`&${n}-middle`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,C.bf)(t.paddingSM)} ${(0,C.bf)(t.paddingLG)}`}}},[`&${n}-small`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,C.bf)(t.paddingXS)} ${(0,C.bf)(t.padding)}`}}}}}},le=t=>{const{componentCls:n,extraColor:c,itemPaddingBottom:l,colonMarginRight:d,colonMarginLeft:g,titleMarginBottom:m}=t;return{[n]:Object.assign(Object.assign(Object.assign({},(0,ue.Wf)(t)),fe(t)),{["&-rtl"]:{direction:"rtl"},[`${n}-header`]:{display:"flex",alignItems:"center",marginBottom:m},[`${n}-title`]:Object.assign(Object.assign({},ue.vS),{flex:"auto",color:t.titleColor,fontWeight:t.fontWeightStrong,fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontSize:t.fontSize},[`${n}-view`]:{width:"100%",borderRadius:t.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${n}-row`]:{"> th, > td":{paddingBottom:l},"&:last-child":{borderBottom:"none"}},[`${n}-item-label`]:{color:t.colorTextTertiary,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,C.bf)(g)} ${(0,C.bf)(d)}`},[`&${n}-item-no-colon::after`]:{content:'""'}},[`${n}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${n}-item-content`]:{display:"table-cell",flex:1,color:t.contentColor,fontSize:t.fontSize,lineHeight:t.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${n}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${n}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${n}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${n}-row`]:{"> th, > td":{paddingBottom:t.paddingSM}}},"&-small":{[`${n}-row`]:{"> th, > td":{paddingBottom:t.paddingXS}}}})}},be=t=>({labelBg:t.colorFillAlter,titleColor:t.colorText,titleMarginBottom:t.fontSizeSM*t.lineHeightSM,itemPaddingBottom:t.padding,colonMarginRight:t.marginXS,colonMarginLeft:t.marginXXS/2,contentColor:t.colorText,extraColor:t.colorText});var e=(0,ge.I$)("Descriptions",t=>{const n=(0,$e.TS)(t,{});return le(n)},be),u=function(t,n){var c={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.indexOf(l)<0&&(c[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(t);d{const{prefixCls:n,title:c,extra:l,column:d,colon:g=!0,bordered:m,layout:$,children:O,className:b,rootClassName:y,style:j,size:F,labelStyle:T,contentStyle:Z,items:ae}=t,Y=u(t,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:q,direction:k,descriptions:M}=a.useContext(S.E_),x=q("descriptions",n),X=(0,I.Z)(),N=a.useMemo(()=>{var K;return typeof d=="number"?d:(K=(0,E.m9)(X,Object.assign(Object.assign({},R),d)))!==null&&K!==void 0?K:3},[X,d]),pe=z(X,ae,O),se=(0,L.Z)(F),f=Q(N,pe),[ye,he]=e(x),ve=a.useMemo(()=>({labelStyle:T,contentStyle:Z}),[T,Z]);return ye(a.createElement(A.Provider,{value:ve},a.createElement("div",Object.assign({className:h()(x,M==null?void 0:M.className,{[`${x}-${se}`]:se&&se!=="default",[`${x}-bordered`]:!!m,[`${x}-rtl`]:k==="rtl"},b,y,he),style:Object.assign(Object.assign({},M==null?void 0:M.style),j)},Y),(c||l)&&a.createElement("div",{className:`${x}-header`},c&&a.createElement("div",{className:`${x}-title`},c),l&&a.createElement("div",{className:`${x}-extra`},l)),a.createElement("div",{className:`${x}-view`},a.createElement("table",null,a.createElement("tbody",null,f.map((K,me)=>a.createElement(ne,{key:me,index:me,colon:g,prefixCls:x,vertical:$==="vertical",bordered:m,row:K}))))))))};i.Item=ie;var s=i}}]); diff --git a/p__result__success__index.10061242.async.js b/p__result__success__index.10061242.async.js deleted file mode 100644 index 21765976..00000000 --- a/p__result__success__index.10061242.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4648],{10587:function(L,m,r){r.d(m,{Z:function(){return C}});var s=r(33346),h=r(50959),v={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},b=v,g=r(69164),S=function(E,z){return h.createElement(g.Z,(0,s.Z)((0,s.Z)({},E),{},{ref:z,icon:b}))};S.displayName="DingdingOutlined";var C=h.forwardRef(S)},19494:function(L,m,r){r.d(m,{f:function(){return t}});var s=r(73273),h=r(56197),v=r(84875),b=r.n(v),g=r(50959),S=r(169),C=r(33346),B=r(26488),E=function(u){return(0,s.Z)({},u.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function z(d){return(0,B.Xj)("ProLayoutGridContent",function(u){var y=(0,C.Z)((0,C.Z)({},u),{},{componentCls:".".concat(d)});return[E(y)]})}var j=r(11527),t=function(u){var y=(0,g.useContext)(S.X),p=u.children,P=u.contentWidth,T=u.className,N=u.style,A=(0,g.useContext)(h.ZP.ConfigContext),Q=A.getPrefixCls,Z=u.prefixCls||Q("pro"),Y=P||y.contentWidth,G="".concat(Z,"-grid-content"),W=z(G),R=W.wrapSSR,H=W.hashId,_=Y==="Fixed"&&y.layout==="top";return R((0,j.jsx)("div",{className:b()(G,H,T,(0,s.Z)({},"".concat(G,"-wide"),_)),style:N,children:(0,j.jsx)("div",{className:"".concat(Z,"-grid-content-children ").concat(H).trim(),children:p})}))}},169:function(L,m,r){r.d(m,{X:function(){return h}});var s=r(50959),h=(0,s.createContext)({})},86064:function(L,m,r){r.r(m),r.d(m,{default:function(){return u}});var s=r(10587),h=r(19494),v=r(27575),b=r(8303),g=r(47100),S=r(50304),C=r(6053),B=r(50959),E=r(8700),z=(0,E.kc)(function(y){var p=y.token;return{title:{position:"relative",color:p.colorText,fontSize:"12px",textAlign:"center"},"head-title":{marginBottom:"20px",color:p.colorTextHeading,fontWeight:"500px",fontSize:"16px"}}}),j=z,t=r(11527),d=v.Z.Step,u=function(){var y=j(),p=y.styles,P=(0,t.jsxs)("div",{className:p.title,children:[(0,t.jsxs)("div",{style:{margin:"8px 0 4px"},children:[(0,t.jsx)("span",{children:"\u66F2\u4E3D\u4E3D"}),(0,t.jsx)(s.Z,{style:{marginLeft:8,color:"#00A0E9"}})]}),(0,t.jsx)("div",{children:"2016-12-12 12:32"})]}),T=(0,t.jsx)("div",{style:{fontSize:12},className:p.title,children:(0,t.jsxs)("div",{style:{margin:"8px 0 4px"},children:[(0,t.jsx)("span",{children:"\u5468\u6BDB\u6BDB"}),(0,t.jsxs)("a",{href:"",children:[(0,t.jsx)(s.Z,{style:{color:"#00A0E9",marginLeft:8}}),(0,t.jsx)("span",{children:"\u50AC\u4E00\u4E0B"})]})]})}),N=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(b.Z,{title:"\u9879\u76EE\u540D\u79F0",children:[(0,t.jsx)(b.Z.Item,{label:"\u9879\u76EE ID",children:"23421"}),(0,t.jsx)(b.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u66F2\u4E3D\u4E3D"}),(0,t.jsx)(b.Z.Item,{label:"\u751F\u6548\u65F6\u95F4",children:"2016-12-12 ~ 2017-12-12"})]}),(0,t.jsx)("br",{}),(0,t.jsxs)(v.Z,{progressDot:!0,current:1,children:[(0,t.jsx)(d,{title:(0,t.jsx)("span",{style:{fontSize:14},children:"\u521B\u5EFA\u9879\u76EE"}),description:P}),(0,t.jsx)(d,{title:(0,t.jsx)("span",{style:{fontSize:14},children:"\u90E8\u95E8\u521D\u5BA1"}),description:T}),(0,t.jsx)(d,{title:(0,t.jsx)("span",{style:{fontSize:14},children:"\u8D22\u52A1\u590D\u6838"})}),(0,t.jsx)(d,{title:(0,t.jsx)("span",{style:{fontSize:14},children:"\u5B8C\u6210"})})]})]}),A=(0,t.jsxs)(B.Fragment,{children:[(0,t.jsx)(g.ZP,{type:"primary",children:"\u8FD4\u56DE\u5217\u8868"}),(0,t.jsx)(g.ZP,{children:"\u67E5\u770B\u9879\u76EE"}),(0,t.jsx)(g.ZP,{children:"\u6253\u5370"})]});return(0,t.jsx)(h.f,{children:(0,t.jsx)(S.Z,{bordered:!1,children:(0,t.jsx)(C.ZP,{status:"success",title:"\u63D0\u4EA4\u6210\u529F",subTitle:"\u63D0\u4EA4\u7ED3\u679C\u9875\u7528\u4E8E\u53CD\u9988\u4E00\u7CFB\u5217\u64CD\u4F5C\u4EFB\u52A1\u7684\u5904\u7406\u7ED3\u679C\uFF0C \u5982\u679C\u4EC5\u662F\u7B80\u5355\u64CD\u4F5C\uFF0C\u4F7F\u7528 Message \u5168\u5C40\u63D0\u793A\u53CD\u9988\u5373\u53EF\u3002 \u672C\u6587\u5B57\u533A\u57DF\u53EF\u4EE5\u5C55\u793A\u7B80\u5355\u7684\u8865\u5145\u8BF4\u660E\uFF0C\u5982\u679C\u6709\u7C7B\u4F3C\u5C55\u793A \u201C\u5355\u636E\u201D\u7684\u9700\u6C42\uFF0C\u4E0B\u9762\u8FD9\u4E2A\u7070\u8272\u533A\u57DF\u53EF\u4EE5\u5448\u73B0\u6BD4\u8F83\u590D\u6742\u7684\u5185\u5BB9\u3002",extra:A,style:{marginBottom:16},children:N})})})}},50304:function(L,m,r){r.d(m,{Z:function(){return le}});var s=r(50959),h=r(84875),v=r.n(h),b=r(87017),g=r(31594),S=r(17436),C=r(25670),B=r(66146),E=function(e,o){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i{var{prefixCls:o,className:n,hoverable:a=!0}=e,i=E(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=s.useContext(g.E_),f=c("card",o),O=v()(`${f}-grid`,n,{[`${f}-grid-hoverable`]:a});return s.createElement("div",Object.assign({},i,{className:O}))},t=r(60076),d=r(6301),u=r(81501),y=r(90467);const p=e=>{const{antCls:o,componentCls:n,headerHeight:a,cardPaddingBase:i,tabsMarginBottom:c}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${(0,t.bf)(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,t.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,t.bf)(e.borderRadiusLG)} ${(0,t.bf)(e.borderRadiusLG)} 0 0`},(0,d.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},d.vS),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${o}-tabs-top`]:{clear:"both",marginBottom:c,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,t.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},P=e=>{const{cardPaddingBase:o,colorBorderSecondary:n,cardShadow:a,lineWidth:i}=e;return{width:"33.33%",padding:o,border:0,borderRadius:0,boxShadow:` - ${(0,t.bf)(i)} 0 0 0 ${n}, - 0 ${(0,t.bf)(i)} 0 0 ${n}, - ${(0,t.bf)(i)} ${(0,t.bf)(i)} 0 0 ${n}, - ${(0,t.bf)(i)} 0 0 0 ${n} inset, - 0 ${(0,t.bf)(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},T=e=>{const{componentCls:o,iconCls:n,actionsLiMargin:a,cardActionsIconSize:i,colorBorderSecondary:c,actionsBg:f}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:f,borderTop:`${(0,t.bf)(e.lineWidth)} ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${(0,t.bf)(e.borderRadiusLG)} ${(0,t.bf)(e.borderRadiusLG)}`},(0,d.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${o}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,t.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:(0,t.bf)(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,t.bf)(e.lineWidth)} ${e.lineType} ${c}`}}})},N=e=>Object.assign(Object.assign({margin:`${(0,t.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,d.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},d.vS),"&-description":{color:e.colorTextDescription}}),A=e=>{const{componentCls:o,cardPaddingBase:n,colorFillAlter:a}=e;return{[`${o}-head`]:{padding:`0 ${(0,t.bf)(n)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${o}-body`]:{padding:`${(0,t.bf)(e.padding)} ${(0,t.bf)(n)}`}}},Q=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},Z=e=>{const{antCls:o,componentCls:n,cardShadow:a,cardHeadPadding:i,colorBorderSecondary:c,boxShadowTertiary:f,cardPaddingBase:O,extraColor:x}=e;return{[n]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:f},[`${n}-head`]:p(e),[`${n}-extra`]:{marginInlineStart:"auto",color:x,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:O,borderRadius:` 0 0 ${(0,t.bf)(e.borderRadiusLG)} ${(0,t.bf)(e.borderRadiusLG)}`},(0,d.dF)()),[`${n}-grid`]:P(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${o}-image-mask`]:{borderRadius:`${(0,t.bf)(e.borderRadiusLG)} ${(0,t.bf)(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:T(e),[`${n}-meta`]:N(e)}),[`${n}-bordered`]:{border:`${(0,t.bf)(e.lineWidth)} ${e.lineType} ${c}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:a}},[`${n}-contain-grid`]:{borderRadius:`${(0,t.bf)(e.borderRadiusLG)} ${(0,t.bf)(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:A(e),[`${n}-loading`]:Q(e),[`${n}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:o,cardPaddingSM:n,headerHeightSM:a,headerFontSizeSM:i}=e;return{[`${o}-small`]:{[`> ${o}-head`]:{minHeight:a,padding:`0 ${(0,t.bf)(n)}`,fontSize:i,[`> ${o}-head-wrapper`]:{[`> ${o}-extra`]:{fontSize:e.fontSize}}},[`> ${o}-body`]:{padding:n}},[`${o}-small${o}-contain-tabs`]:{[`> ${o}-head`]:{[`${o}-head-title, ${o}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},G=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var W=(0,u.I$)("Card",e=>{const o=(0,y.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[Z(o),Y(o)]},G),R=function(e,o){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i{const{prefixCls:o,actions:n=[]}=e;return s.createElement("ul",{className:`${o}-actions`},n.map((a,i)=>{const c=`action-${i}`;return s.createElement("li",{style:{width:`${100/n.length}%`},key:c},s.createElement("span",null,a))}))};var ie=s.forwardRef((e,o)=>{const{prefixCls:n,className:a,rootClassName:i,style:c,extra:f,headStyle:O={},bodyStyle:x={},title:M,loading:w,bordered:K=!0,size:X,type:U,cover:ee,actions:k,tabList:V,children:J,activeTabKey:te,defaultActiveTabKey:de,tabBarExtraContent:ce,hoverable:ue,tabProps:ge={}}=e,fe=R(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:me,direction:he,card:F}=s.useContext(g.E_),ve=D=>{var $;($=e.onTabChange)===null||$===void 0||$.call(e,D)},be=s.useMemo(()=>{let D=!1;return s.Children.forEach(J,$=>{$&&$.type&&$.type===j&&(D=!0)}),D},[J]),l=me("card",n),[ye,pe]=W(l),xe=s.createElement(C.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},J),ne=te!==void 0,$e=Object.assign(Object.assign({},ge),{[ne?"activeKey":"defaultActiveKey"]:ne?te:de,tabBarExtraContent:ce});let ae;const I=(0,S.Z)(X),Se=!I||I==="default"?"large":I,re=V?s.createElement(B.Z,Object.assign({size:Se},$e,{className:`${l}-head-tabs`,onChange:ve,items:V.map(D=>{var{tab:$}=D,ze=R(D,["tab"]);return Object.assign({label:$},ze)})})):null;(M||f||re)&&(ae=s.createElement("div",{className:`${l}-head`,style:O},s.createElement("div",{className:`${l}-head-wrapper`},M&&s.createElement("div",{className:`${l}-head-title`},M),f&&s.createElement("div",{className:`${l}-extra`},f)),re));const Ce=ee?s.createElement("div",{className:`${l}-cover`},ee):null,Ee=s.createElement("div",{className:`${l}-body`,style:x},w?xe:J),je=k&&k.length?s.createElement(H,{prefixCls:l,actions:k}):null,Oe=(0,b.Z)(fe,["onTabChange"]),De=v()(l,F==null?void 0:F.className,{[`${l}-loading`]:w,[`${l}-bordered`]:K,[`${l}-hoverable`]:ue,[`${l}-contain-grid`]:be,[`${l}-contain-tabs`]:V&&V.length,[`${l}-${I}`]:I,[`${l}-type-${U}`]:!!U,[`${l}-rtl`]:he==="rtl"},a,i,pe),Be=Object.assign(Object.assign({},F==null?void 0:F.style),c);return ye(s.createElement("div",Object.assign({ref:o},Oe,{className:De,style:Be}),ae,Ce,Ee,je))}),oe=function(e,o){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&o.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i{const{prefixCls:o,className:n,avatar:a,title:i,description:c}=e,f=oe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:O}=s.useContext(g.E_),x=O("card",o),M=v()(`${x}-meta`,n),w=a?s.createElement("div",{className:`${x}-meta-avatar`},a):null,K=i?s.createElement("div",{className:`${x}-meta-title`},i):null,X=c?s.createElement("div",{className:`${x}-meta-description`},c):null,U=K||X?s.createElement("div",{className:`${x}-meta-detail`},K,X):null;return s.createElement("div",Object.assign({},f,{className:M}),w,U)};const q=ie;q.Grid=j,q.Meta=se;var le=q}}]); diff --git a/p__table-list__index.80e3a8ed.async.js b/p__table-list__index.80e3a8ed.async.js new file mode 100644 index 00000000..5a7a5eb0 --- /dev/null +++ b/p__table-list__index.80e3a8ed.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[942],{89292:function(ve,H,a){a.r(H),a.d(H,{default:function(){return pe}});var K=a(29195),f=a.n(K),J=a(56717),D=a.n(J),Q=a(42329),U=a.n(Q),X=a(77128),k=a.n(X),q=a(97380),p=a.n(q),$=a(72486),_=a(89336),ee=a(90215),ae=a(20802),se=a(91642),s=a(8025),L=a(68852),te=a(79714),B=a(10951),re=a(60708),d=a(79685),ne=a(19346),le=a(47481),W=a(30869),G=a(43602),e=a(63342),ue=function(i){var g=i.reload,b=L.ZP.useMessage(),v=p()(b,2),n=v[0],P=v[1],M=(0,s.useIntl)(),l=(0,s.useRequest)($.HP,{manual:!0,onSuccess:function(){n.success("Added successfully"),g==null||g()},onError:function(){n.error("Adding failed, please try again!")}}),x=l.run,Z=l.loading;return(0,e.jsxs)(e.Fragment,{children:[P,(0,e.jsxs)(le.Y,{title:M.formatMessage({id:"pages.searchTable.createForm.newRule",defaultMessage:"New rule"}),trigger:(0,e.jsx)(B.ZP,{type:"primary",icon:(0,e.jsx)(ne.Z,{}),children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.new",defaultMessage:"New"})}),width:"400px",modalProps:{okButtonProps:{loading:Z}},onFinish:function(){var m=D()(f()().mark(function o(S){return f()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,x({data:S});case 2:return c.abrupt("return",!0);case 3:case"end":return c.stop()}},o)}));return function(o){return m.apply(this,arguments)}}(),children:[(0,e.jsx)(W.Z,{rules:[{required:!0,message:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.ruleName",defaultMessage:"Rule name is required"})}],width:"md",name:"name"}),(0,e.jsx)(G.Z,{width:"md",name:"desc"})]})]})},oe=ue,I=a(7676),N=a(5754),de=a(92769),ie=a(98347),ce=a(8910),ge=function(i){var g=i.onOk,b=i.values,v=i.trigger,n=(0,s.useIntl)(),P=(0,d.useState)(!1),M=p()(P,2),l=M[0],x=M[1],Z=L.ZP.useMessage(),m=p()(Z,2),o=m[0],S=m[1],C=(0,s.useRequest)($.D7,{manual:!0,onSuccess:function(){o.success("Configuration is successful"),g==null||g()},onError:function(){o.error("Configuration failed, please try again!")}}),c=C.run,R=(0,d.useCallback)(function(){x(!1)},[]),A=(0,d.useCallback)(function(){x(!0)},[]),O=(0,d.useCallback)(function(){var F=D()(f()().mark(function j(E){return f()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,c({data:E});case 2:R();case 3:case"end":return y.stop()}},j)}));return function(j){return F.apply(this,arguments)}}(),[R,c]);return(0,e.jsxs)(e.Fragment,{children:[S,v?(0,d.cloneElement)(v,{onClick:A}):null,(0,e.jsxs)(I.L0,{stepsProps:{size:"small"},stepsFormRender:function(j,E){return(0,e.jsx)(ce.Z,{width:640,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:n.formatMessage({id:"pages.searchTable.updateForm.ruleConfig",defaultMessage:"\u89C4\u5219\u914D\u7F6E"}),open:l,footer:E,onCancel:R,children:j})},onFinish:O,children:[(0,e.jsxs)(I.L0.StepForm,{initialValues:b,title:n.formatMessage({id:"pages.searchTable.updateForm.basicConfig",defaultMessage:"\u57FA\u672C\u4FE1\u606F"}),children:[(0,e.jsx)(W.Z,{name:"name",label:n.formatMessage({id:"pages.searchTable.updateForm.ruleName.nameLabel",defaultMessage:"\u89C4\u5219\u540D\u79F0"}),width:"md",rules:[{required:!0,message:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.updateForm.ruleName.nameRules",defaultMessage:"\u8BF7\u8F93\u5165\u89C4\u5219\u540D\u79F0\uFF01"})}]}),(0,e.jsx)(G.Z,{name:"desc",width:"md",label:n.formatMessage({id:"pages.searchTable.updateForm.ruleDesc.descLabel",defaultMessage:"\u89C4\u5219\u63CF\u8FF0"}),placeholder:n.formatMessage({id:"pages.searchTable.updateForm.ruleDesc.descPlaceholder",defaultMessage:"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26"}),rules:[{required:!0,message:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.updateForm.ruleDesc.descRules",defaultMessage:"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26\u7684\u89C4\u5219\u63CF\u8FF0\uFF01"}),min:5}]})]}),(0,e.jsxs)(I.L0.StepForm,{initialValues:{target:"0",template:"0"},title:n.formatMessage({id:"pages.searchTable.updateForm.ruleProps.title",defaultMessage:"\u914D\u7F6E\u89C4\u5219\u5C5E\u6027"}),children:[(0,e.jsx)(N.Z,{name:"target",width:"md",label:n.formatMessage({id:"pages.searchTable.updateForm.object",defaultMessage:"\u76D1\u63A7\u5BF9\u8C61"}),valueEnum:{0:"\u8868\u4E00",1:"\u8868\u4E8C"}}),(0,e.jsx)(N.Z,{name:"template",width:"md",label:n.formatMessage({id:"pages.searchTable.updateForm.ruleProps.templateLabel",defaultMessage:"\u89C4\u5219\u6A21\u677F"}),valueEnum:{0:"\u89C4\u5219\u6A21\u677F\u4E00",1:"\u89C4\u5219\u6A21\u677F\u4E8C"}}),(0,e.jsx)(de.Z.Group,{name:"type",label:n.formatMessage({id:"pages.searchTable.updateForm.ruleProps.typeLabel",defaultMessage:"\u89C4\u5219\u7C7B\u578B"}),options:[{value:"0",label:"\u5F3A"},{value:"1",label:"\u5F31"}]})]}),(0,e.jsxs)(I.L0.StepForm,{initialValues:{type:"1",frequency:"month"},title:n.formatMessage({id:"pages.searchTable.updateForm.schedulingPeriod.title",defaultMessage:"\u8BBE\u5B9A\u8C03\u5EA6\u5468\u671F"}),children:[(0,e.jsx)(ie.Z,{name:"time",width:"md",label:n.formatMessage({id:"pages.searchTable.updateForm.schedulingPeriod.timeLabel",defaultMessage:"\u5F00\u59CB\u65F6\u95F4"}),rules:[{required:!0,message:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.updateForm.schedulingPeriod.timeRules",defaultMessage:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\uFF01"})}]}),(0,e.jsx)(N.Z,{name:"frequency",label:n.formatMessage({id:"pages.searchTable.updateForm.object",defaultMessage:"\u76D1\u63A7\u5BF9\u8C61"}),width:"md",valueEnum:{month:"\u6708",week:"\u5468"}})]})]})]})},me=ge,fe=["defaultRender"],he=function(){var i=(0,d.useRef)(),g=(0,d.useState)(!1),b=p()(g,2),v=b[0],n=b[1],P=(0,d.useState)(),M=p()(P,2),l=M[0],x=M[1],Z=(0,d.useState)([]),m=p()(Z,2),o=m[0],S=m[1],C=(0,s.useIntl)(),c=L.ZP.useMessage(),R=p()(c,2),A=R[0],O=R[1],F=(0,s.useRequest)($.DV,{manual:!0,onSuccess:function(){var t,r;S([]),(t=i.current)===null||t===void 0||(r=t.reloadAndRest)===null||r===void 0||r.call(t),A.success("Deleted successfully and will refresh soon")},onError:function(){A.error("Delete failed, please try again")}}),j=F.run,E=F.loading,w=[{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.updateForm.ruleName.nameLabel",defaultMessage:"Rule name"}),dataIndex:"name",tip:"The rule name is the unique key",render:function(t,r){return(0,e.jsx)("a",{onClick:function(){x(r),n(!0)},children:t})}},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleDesc",defaultMessage:"Description"}),dataIndex:"desc",valueType:"textarea"},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleCallNo",defaultMessage:"Number of service calls"}),dataIndex:"callNo",sorter:!0,hideInForm:!0,renderText:function(t){return"".concat(t).concat(C.formatMessage({id:"pages.searchTable.tenThousand",defaultMessage:" \u4E07 "}))}},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleStatus",defaultMessage:"Status"}),dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.nameStatus.default",defaultMessage:"Shut down"}),status:"Default"},1:{text:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.nameStatus.running",defaultMessage:"Running"}),status:"Processing"},2:{text:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.nameStatus.online",defaultMessage:"Online"}),status:"Success"},3:{text:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.nameStatus.abnormal",defaultMessage:"Abnormal"}),status:"Error"}}},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleUpdatedAt",defaultMessage:"Last scheduled time"}),sorter:!0,dataIndex:"updatedAt",valueType:"dateTime",renderFormItem:function(t,r,T){var h=r.defaultRender,V=k()(r,fe),Y=T.getFieldValue("status");return"".concat(Y)==="0"?!1:"".concat(Y)==="3"?(0,e.jsx)(te.Z,U()(U()({},V),{},{placeholder:C.formatMessage({id:"pages.searchTable.exception",defaultMessage:"Please enter the reason for the exception!"})})):h(t)}},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleOption",defaultMessage:"Operating"}),dataIndex:"option",valueType:"option",render:function(t,r){var T;return[(0,e.jsx)(me,{trigger:(0,e.jsx)("a",{children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.config",defaultMessage:"Configuration"})}),onOk:(T=i.current)===null||T===void 0?void 0:T.reload,values:r},"config"),(0,e.jsx)("a",{href:"https://procomponents.ant.design/",children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.subscribeAlert",defaultMessage:"Subscribe to alerts"})},"subscribeAlert")]}}],y=(0,d.useCallback)(function(){var u=D()(f()().mark(function t(r){return f()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(r!=null&&r.length){h.next=3;break}return A.warning("\u8BF7\u9009\u62E9\u5220\u9664\u9879"),h.abrupt("return");case 3:return h.next=5,j({data:{key:r.map(function(V){return V.key})}});case 5:case"end":return h.stop()}},t)}));return function(t){return u.apply(this,arguments)}}(),[j]);return(0,e.jsxs)(_._z,{children:[O,(0,e.jsx)(ee.Z,{headerTitle:C.formatMessage({id:"pages.searchTable.title",defaultMessage:"Enquiry form"}),actionRef:i,rowKey:"key",search:{labelWidth:120},toolBarRender:function(){var t;return[(0,e.jsx)(oe,{reload:(t=i.current)===null||t===void 0?void 0:t.reload},"create")]},request:$.jR,columns:w,rowSelection:{onChange:function(t,r){S(r)}}}),(o==null?void 0:o.length)>0&&(0,e.jsxs)(ae.S,{extra:(0,e.jsxs)("div",{children:[(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.chosen",defaultMessage:"Chosen"})," ",(0,e.jsx)("a",{style:{fontWeight:600},children:o.length})," ",(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.item",defaultMessage:"\u9879"}),"\xA0\xA0",(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.totalServiceCalls",defaultMessage:"Total number of service calls"})," ",o.reduce(function(u,t){return u+t.callNo},0)," ",(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.tenThousand",defaultMessage:"\u4E07"})]})]}),children:[(0,e.jsx)(B.ZP,{loading:E,onClick:function(){y(o)},children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.batchDeletion",defaultMessage:"Batch deletion"})}),(0,e.jsx)(B.ZP,{type:"primary",children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.batchApproval",defaultMessage:"Batch approval"})})]}),(0,e.jsx)(re.Z,{width:600,open:v,onClose:function(){x(void 0),n(!1)},closable:!1,children:(l==null?void 0:l.name)&&(0,e.jsx)(se.vY,{column:2,title:l==null?void 0:l.name,request:D()(f()().mark(function u(){return f()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",{data:l||{}});case 1:case"end":return r.stop()}},u)})),params:{id:l==null?void 0:l.name},columns:w})})]})},pe=he}}]); diff --git a/p__table-list__index.d2cdd4fd.async.js b/p__table-list__index.d2cdd4fd.async.js deleted file mode 100644 index 6b9c9dd6..00000000 --- a/p__table-list__index.d2cdd4fd.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[942],{65505:function(ve,H,a){a.r(H),a.d(H,{default:function(){return pe}});var K=a(13448),f=a.n(K),J=a(74815),D=a.n(J),Q=a(77117),U=a.n(Q),X=a(95530),k=a.n(X),q=a(28152),p=a.n(q),$=a(70514),_=a(95943),ee=a(26970),ae=a(60545),se=a(44585),s=a(27533),L=a(52497),te=a(33952),B=a(47100),re=a(19465),d=a(50959),ne=a(1442),le=a(76022),W=a(60010),G=a(59224),e=a(11527),ue=function(i){var g=i.reload,b=L.ZP.useMessage(),v=p()(b,2),n=v[0],P=v[1],M=(0,s.useIntl)(),l=(0,s.useRequest)($.HP,{manual:!0,onSuccess:function(){n.success("Added successfully"),g==null||g()},onError:function(){n.error("Adding failed, please try again!")}}),x=l.run,Z=l.loading;return(0,e.jsxs)(e.Fragment,{children:[P,(0,e.jsxs)(le.Y,{title:M.formatMessage({id:"pages.searchTable.createForm.newRule",defaultMessage:"New rule"}),trigger:(0,e.jsx)(B.ZP,{type:"primary",icon:(0,e.jsx)(ne.Z,{}),children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.new",defaultMessage:"New"})}),width:"400px",modalProps:{okButtonProps:{loading:Z}},onFinish:function(){var m=D()(f()().mark(function o(S){return f()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,x({data:S});case 2:return c.abrupt("return",!0);case 3:case"end":return c.stop()}},o)}));return function(o){return m.apply(this,arguments)}}(),children:[(0,e.jsx)(W.Z,{rules:[{required:!0,message:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.ruleName",defaultMessage:"Rule name is required"})}],width:"md",name:"name"}),(0,e.jsx)(G.Z,{width:"md",name:"desc"})]})]})},oe=ue,I=a(76791),N=a(79712),de=a(66790),ie=a(98150),ce=a(45319),ge=function(i){var g=i.onOk,b=i.values,v=i.trigger,n=(0,s.useIntl)(),P=(0,d.useState)(!1),M=p()(P,2),l=M[0],x=M[1],Z=L.ZP.useMessage(),m=p()(Z,2),o=m[0],S=m[1],C=(0,s.useRequest)($.D7,{manual:!0,onSuccess:function(){o.success("Configuration is successful"),g==null||g()},onError:function(){o.error("Configuration failed, please try again!")}}),c=C.run,R=(0,d.useCallback)(function(){x(!1)},[]),A=(0,d.useCallback)(function(){x(!0)},[]),O=(0,d.useCallback)(function(){var F=D()(f()().mark(function j(E){return f()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,c({data:E});case 2:R();case 3:case"end":return y.stop()}},j)}));return function(j){return F.apply(this,arguments)}}(),[R,c]);return(0,e.jsxs)(e.Fragment,{children:[S,v?(0,d.cloneElement)(v,{onClick:A}):null,(0,e.jsxs)(I.L0,{stepsProps:{size:"small"},stepsFormRender:function(j,E){return(0,e.jsx)(ce.Z,{width:640,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:n.formatMessage({id:"pages.searchTable.updateForm.ruleConfig",defaultMessage:"\u89C4\u5219\u914D\u7F6E"}),open:l,footer:E,onCancel:R,children:j})},onFinish:O,children:[(0,e.jsxs)(I.L0.StepForm,{initialValues:b,title:n.formatMessage({id:"pages.searchTable.updateForm.basicConfig",defaultMessage:"\u57FA\u672C\u4FE1\u606F"}),children:[(0,e.jsx)(W.Z,{name:"name",label:n.formatMessage({id:"pages.searchTable.updateForm.ruleName.nameLabel",defaultMessage:"\u89C4\u5219\u540D\u79F0"}),width:"md",rules:[{required:!0,message:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.updateForm.ruleName.nameRules",defaultMessage:"\u8BF7\u8F93\u5165\u89C4\u5219\u540D\u79F0\uFF01"})}]}),(0,e.jsx)(G.Z,{name:"desc",width:"md",label:n.formatMessage({id:"pages.searchTable.updateForm.ruleDesc.descLabel",defaultMessage:"\u89C4\u5219\u63CF\u8FF0"}),placeholder:n.formatMessage({id:"pages.searchTable.updateForm.ruleDesc.descPlaceholder",defaultMessage:"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26"}),rules:[{required:!0,message:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.updateForm.ruleDesc.descRules",defaultMessage:"\u8BF7\u8F93\u5165\u81F3\u5C11\u4E94\u4E2A\u5B57\u7B26\u7684\u89C4\u5219\u63CF\u8FF0\uFF01"}),min:5}]})]}),(0,e.jsxs)(I.L0.StepForm,{initialValues:{target:"0",template:"0"},title:n.formatMessage({id:"pages.searchTable.updateForm.ruleProps.title",defaultMessage:"\u914D\u7F6E\u89C4\u5219\u5C5E\u6027"}),children:[(0,e.jsx)(N.Z,{name:"target",width:"md",label:n.formatMessage({id:"pages.searchTable.updateForm.object",defaultMessage:"\u76D1\u63A7\u5BF9\u8C61"}),valueEnum:{0:"\u8868\u4E00",1:"\u8868\u4E8C"}}),(0,e.jsx)(N.Z,{name:"template",width:"md",label:n.formatMessage({id:"pages.searchTable.updateForm.ruleProps.templateLabel",defaultMessage:"\u89C4\u5219\u6A21\u677F"}),valueEnum:{0:"\u89C4\u5219\u6A21\u677F\u4E00",1:"\u89C4\u5219\u6A21\u677F\u4E8C"}}),(0,e.jsx)(de.Z.Group,{name:"type",label:n.formatMessage({id:"pages.searchTable.updateForm.ruleProps.typeLabel",defaultMessage:"\u89C4\u5219\u7C7B\u578B"}),options:[{value:"0",label:"\u5F3A"},{value:"1",label:"\u5F31"}]})]}),(0,e.jsxs)(I.L0.StepForm,{initialValues:{type:"1",frequency:"month"},title:n.formatMessage({id:"pages.searchTable.updateForm.schedulingPeriod.title",defaultMessage:"\u8BBE\u5B9A\u8C03\u5EA6\u5468\u671F"}),children:[(0,e.jsx)(ie.Z,{name:"time",width:"md",label:n.formatMessage({id:"pages.searchTable.updateForm.schedulingPeriod.timeLabel",defaultMessage:"\u5F00\u59CB\u65F6\u95F4"}),rules:[{required:!0,message:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.updateForm.schedulingPeriod.timeRules",defaultMessage:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4\uFF01"})}]}),(0,e.jsx)(N.Z,{name:"frequency",label:n.formatMessage({id:"pages.searchTable.updateForm.object",defaultMessage:"\u76D1\u63A7\u5BF9\u8C61"}),width:"md",valueEnum:{month:"\u6708",week:"\u5468"}})]})]})]})},me=ge,fe=["defaultRender"],he=function(){var i=(0,d.useRef)(),g=(0,d.useState)(!1),b=p()(g,2),v=b[0],n=b[1],P=(0,d.useState)(),M=p()(P,2),l=M[0],x=M[1],Z=(0,d.useState)([]),m=p()(Z,2),o=m[0],S=m[1],C=(0,s.useIntl)(),c=L.ZP.useMessage(),R=p()(c,2),A=R[0],O=R[1],F=(0,s.useRequest)($.DV,{manual:!0,onSuccess:function(){var t,r;S([]),(t=i.current)===null||t===void 0||(r=t.reloadAndRest)===null||r===void 0||r.call(t),A.success("Deleted successfully and will refresh soon")},onError:function(){A.error("Delete failed, please try again")}}),j=F.run,E=F.loading,w=[{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.updateForm.ruleName.nameLabel",defaultMessage:"Rule name"}),dataIndex:"name",tip:"The rule name is the unique key",render:function(t,r){return(0,e.jsx)("a",{onClick:function(){x(r),n(!0)},children:t})}},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleDesc",defaultMessage:"Description"}),dataIndex:"desc",valueType:"textarea"},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleCallNo",defaultMessage:"Number of service calls"}),dataIndex:"callNo",sorter:!0,hideInForm:!0,renderText:function(t){return"".concat(t).concat(C.formatMessage({id:"pages.searchTable.tenThousand",defaultMessage:" \u4E07 "}))}},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleStatus",defaultMessage:"Status"}),dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.nameStatus.default",defaultMessage:"Shut down"}),status:"Default"},1:{text:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.nameStatus.running",defaultMessage:"Running"}),status:"Processing"},2:{text:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.nameStatus.online",defaultMessage:"Online"}),status:"Success"},3:{text:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.nameStatus.abnormal",defaultMessage:"Abnormal"}),status:"Error"}}},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleUpdatedAt",defaultMessage:"Last scheduled time"}),sorter:!0,dataIndex:"updatedAt",valueType:"dateTime",renderFormItem:function(t,r,T){var h=r.defaultRender,V=k()(r,fe),Y=T.getFieldValue("status");return"".concat(Y)==="0"?!1:"".concat(Y)==="3"?(0,e.jsx)(te.Z,U()(U()({},V),{},{placeholder:C.formatMessage({id:"pages.searchTable.exception",defaultMessage:"Please enter the reason for the exception!"})})):h(t)}},{title:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.titleOption",defaultMessage:"Operating"}),dataIndex:"option",valueType:"option",render:function(t,r){var T;return[(0,e.jsx)(me,{trigger:(0,e.jsx)("a",{children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.config",defaultMessage:"Configuration"})}),onOk:(T=i.current)===null||T===void 0?void 0:T.reload,values:r},"config"),(0,e.jsx)("a",{href:"https://procomponents.ant.design/",children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.subscribeAlert",defaultMessage:"Subscribe to alerts"})},"subscribeAlert")]}}],y=(0,d.useCallback)(function(){var u=D()(f()().mark(function t(r){return f()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(r!=null&&r.length){h.next=3;break}return A.warning("\u8BF7\u9009\u62E9\u5220\u9664\u9879"),h.abrupt("return");case 3:return h.next=5,j({data:{key:r.map(function(V){return V.key})}});case 5:case"end":return h.stop()}},t)}));return function(t){return u.apply(this,arguments)}}(),[j]);return(0,e.jsxs)(_._z,{children:[O,(0,e.jsx)(ee.Z,{headerTitle:C.formatMessage({id:"pages.searchTable.title",defaultMessage:"Enquiry form"}),actionRef:i,rowKey:"key",search:{labelWidth:120},toolBarRender:function(){var t;return[(0,e.jsx)(oe,{reload:(t=i.current)===null||t===void 0?void 0:t.reload},"create")]},request:$.jR,columns:w,rowSelection:{onChange:function(t,r){S(r)}}}),(o==null?void 0:o.length)>0&&(0,e.jsxs)(ae.S,{extra:(0,e.jsxs)("div",{children:[(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.chosen",defaultMessage:"Chosen"})," ",(0,e.jsx)("a",{style:{fontWeight:600},children:o.length})," ",(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.item",defaultMessage:"\u9879"}),"\xA0\xA0",(0,e.jsxs)("span",{children:[(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.totalServiceCalls",defaultMessage:"Total number of service calls"})," ",o.reduce(function(u,t){return u+t.callNo},0)," ",(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.tenThousand",defaultMessage:"\u4E07"})]})]}),children:[(0,e.jsx)(B.ZP,{loading:E,onClick:function(){y(o)},children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.batchDeletion",defaultMessage:"Batch deletion"})}),(0,e.jsx)(B.ZP,{type:"primary",children:(0,e.jsx)(s.FormattedMessage,{id:"pages.searchTable.batchApproval",defaultMessage:"Batch approval"})})]}),(0,e.jsx)(re.Z,{width:600,open:v,onClose:function(){x(void 0),n(!1)},closable:!1,children:(l==null?void 0:l.name)&&(0,e.jsx)(se.vY,{column:2,title:l==null?void 0:l.name,request:D()(f()().mark(function u(){return f()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",{data:l||{}});case 1:case"end":return r.stop()}},u)})),params:{id:l==null?void 0:l.name},columns:w})})]})},pe=he}}]); diff --git a/p__user__login__index.27f606a1.async.js b/p__user__login__index.27f606a1.async.js deleted file mode 100644 index d091a770..00000000 --- a/p__user__login__index.27f606a1.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4037],{9455:function(Ee,K){var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};K.Z=e},60010:function(Ee,K,e){var h=e(32682),c=e(33346),T=e(10570),O=e(65589),ie=e(67190),M=e(82757),ne=e(71770),ae=e(50959),q=e(82578),b=e(11527),x=["fieldProps","proFieldProps"],re=["fieldProps","proFieldProps"],w="text",s=function(l){var n=l.fieldProps,R=l.proFieldProps,E=(0,T.Z)(l,x);return(0,b.jsx)(q.Z,(0,c.Z)({valueType:w,fieldProps:n,filedConfig:{valueType:w},proFieldProps:R},E))},u=function(l){var n=(0,O.Z)(l.open||!1,{value:l.open,onChange:l.onOpenChange}),R=(0,h.Z)(n,2),E=R[0],X=R[1];return(0,b.jsx)(ie.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(f){var d,m=f.getFieldValue(l.name||[]);return(0,b.jsx)(M.Z,(0,c.Z)((0,c.Z)({getPopupContainer:function(i){return i&&i.parentNode?i.parentNode:i},onOpenChange:X,content:(0,b.jsxs)("div",{style:{padding:"4px 0"},children:[(d=l.statusRender)===null||d===void 0?void 0:d.call(l,m),l.strengthText?(0,b.jsx)("div",{style:{marginTop:10},children:(0,b.jsx)("span",{children:l.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},l.popoverProps),{},{open:E,children:l.children}))}})},A=function(l){var n=l.fieldProps,R=l.proFieldProps,E=(0,T.Z)(l,re),X=(0,ae.useState)(!1),j=(0,h.Z)(X,2),f=j[0],d=j[1];return n!=null&&n.statusRender&&E.name?(0,b.jsx)(u,{name:E.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:f,onOpenChange:d,children:(0,b.jsx)(q.Z,(0,c.Z)({valueType:"password",fieldProps:(0,c.Z)((0,c.Z)({},(0,ne.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(F){var i;n==null||(i=n.onBlur)===null||i===void 0||i.call(n,F),d(!1)},onClick:function(F){var i;n==null||(i=n.onClick)===null||i===void 0||i.call(n,F),d(!0)}}),proFieldProps:R,filedConfig:{valueType:w}},E))}):(0,b.jsx)(q.Z,(0,c.Z)({valueType:"password",fieldProps:n,proFieldProps:R,filedConfig:{valueType:w}},E))},_=s;_.Password=A,_.displayName="ProFormComponent",K.Z=_},43997:function(Ee,K,e){e.d(K,{A:function(){return j}});var h=e(33346),c=e(67190),T=e(50959),O=e(1704),ie=e(58922),M=e(73273),ne=e(32682),ae=e(25671),q=e(65589),b=e(21804),x=e(56197),re=e(75200),w=e(84875),s=e.n(w),u=e(54970),A=e(21510),_=e(26488),C=function(d){var m;return(0,M.Z)({},d.componentCls,{"&-title":{marginBlockEnd:d.marginXL,fontWeight:"bold"},"&-container":(0,M.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(d.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(m={display:"block",width:"100%"},(0,M.Z)(m,"".concat(d.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,M.Z)(m,"".concat(d.componentCls,"-container"),{paddingInlineStart:16}),(0,M.Z)(m,"".concat(d.antCls,"-space-item,").concat(d.antCls,"-form-item"),{width:"100%"}),(0,M.Z)(m,"".concat(d.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),m)})};function l(f){return(0,_.Xj)("ProFormGroup",function(d){var m=(0,h.Z)((0,h.Z)({},d),{},{componentCls:".".concat(f)});return[C(m)]})}var n=e(11527),R=T.forwardRef(function(f,d){var m=T.useContext(u.Z),F=m.groupProps,i=(0,h.Z)((0,h.Z)({},F),f),de=i.children,ue=i.collapsible,Q=i.defaultCollapsed,Ie=i.style,He=i.labelLayout,be=i.title,ve=be===void 0?f.label:be,Be=i.tooltip,fe=i.align,Le=fe===void 0?"start":fe,Ae=i.direction,Re=i.size,We=Re===void 0?32:Re,Ke=i.titleStyle,ge=i.titleRender,Y=i.spaceProps,Ce=i.extra,Pe=i.autoFocus,t=(0,q.Z)(function(){return Q||!1},{value:f.collapsed,onChange:f.onCollapse}),ze=(0,ne.Z)(t,2),Ze=ze[0],Se=ze[1],me=(0,T.useContext)(x.ZP.ConfigContext),Ne=me.getPrefixCls,pe=(0,A.zx)(f),Xe=pe.ColWrapper,De=pe.RowWrapper,oe=Ne("pro-form-group"),Me=l(oe),Qe=Me.wrapSSR,he=Me.hashId,we=ue&&(0,n.jsx)(ae.Z,{style:{marginInlineEnd:8},rotate:Ze?void 0:90}),Ge=(0,n.jsx)(b.G,{label:we?(0,n.jsxs)("div",{children:[we,ve]}):ve,tooltip:Be}),je=(0,T.useCallback)(function(ee){var se=ee.children;return(0,n.jsx)(re.Z,(0,h.Z)((0,h.Z)({},Y),{},{className:s()("".concat(oe,"-container ").concat(he),Y==null?void 0:Y.className),size:We,align:Le,direction:Ae,style:(0,h.Z)({rowGap:0},Y==null?void 0:Y.style),children:se}))},[Le,oe,Ae,he,We,Y]),$e=ge?ge(Ge,f):Ge,Ue=(0,T.useMemo)(function(){var ee=[],se=T.Children.toArray(de).map(function(V,ke){var ce;return T.isValidElement(V)&&V!==null&&V!==void 0&&(ce=V.props)!==null&&ce!==void 0&&ce.hidden?(ee.push(V),null):ke===0&&T.isValidElement(V)&&Pe?T.cloneElement(V,(0,h.Z)((0,h.Z)({},V.props),{},{autoFocus:Pe})):V});return[(0,n.jsx)(De,{Wrapper:je,children:se},"children"),ee.length>0?(0,n.jsx)("div",{style:{display:"none"},children:ee}):null]},[de,De,je,Pe]),Ve=(0,ne.Z)(Ue,2),Ye=Ve[0],Je=Ve[1];return Qe((0,n.jsx)(Xe,{children:(0,n.jsxs)("div",{className:s()(oe,he,(0,M.Z)({},"".concat(oe,"-twoLine"),He==="twoLine")),style:Ie,ref:d,children:[Je,(ve||Be||Ce)&&(0,n.jsx)("div",{className:"".concat(oe,"-title ").concat(he).trim(),style:Ke,onClick:function(){Se(!Ze)},children:Ce?(0,n.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[$e,(0,n.jsx)("span",{onClick:function(se){return se.stopPropagation()},children:Ce})]}):$e}),(0,n.jsx)("div",{style:{display:ue&&Ze?"none":void 0},children:Ye})]})}))});R.displayName="ProForm-Group";var E=R,X=e(75693);function j(f){return(0,n.jsx)(O.I,(0,h.Z)({layout:"vertical",submitter:{render:function(m,F){return F.reverse()}},contentRender:function(m,F){return(0,n.jsxs)(n.Fragment,{children:[m,F]})}},f))}j.Group=E,j.useForm=c.Z.useForm,j.Item=X.Z,j.useWatch=c.Z.useWatch,j.ErrorList=c.Z.ErrorList,j.Provider=c.Z.Provider,j.useFormInstance=c.Z.useFormInstance,j.EditOrReadOnlyContext=ie.A},21804:function(Ee,K,e){e.d(K,{G:function(){return _}});var h=e(33346),c=e(73273),T=e(38126),O=e(50959),ie=e(9455),M=e(38782),ne=function(l,n){return O.createElement(M.Z,(0,T.Z)({},l,{ref:n,icon:ie.Z}))},ae=O.forwardRef(ne),q=e(56197),b=e(32618),x=e(84875),re=e.n(x),w=e(26488),s=function(l){return(0,c.Z)({},l.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:l.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:l.colorTextSecondary,fontWeight:"normal",fontSize:l.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function u(C){return(0,w.Xj)("LabelIconTip",function(l){var n=(0,h.Z)((0,h.Z)({},l),{},{componentCls:".".concat(C)});return[s(n)]})}var A=e(11527),_=O.memo(function(C){var l=C.label,n=C.tooltip,R=C.ellipsis,E=C.subTitle,X=(0,O.useContext)(q.ZP.ConfigContext),j=X.getPrefixCls,f=j("pro-core-label-tip"),d=u(f),m=d.wrapSSR,F=d.hashId;if(!n&&!E)return(0,A.jsx)(A.Fragment,{children:l});var i=typeof n=="string"||O.isValidElement(n)?{title:n}:n,de=(i==null?void 0:i.icon)||(0,A.jsx)(ae,{});return m((0,A.jsxs)("div",{className:re()(f,F),onMouseDown:function(Q){return Q.stopPropagation()},onMouseLeave:function(Q){return Q.stopPropagation()},onMouseMove:function(Q){return Q.stopPropagation()},children:[(0,A.jsx)("div",{className:re()("".concat(f,"-title"),F,(0,c.Z)({},"".concat(f,"-title-ellipsis"),R)),children:l}),E&&(0,A.jsx)("div",{className:"".concat(f,"-subtitle ").concat(F).trim(),children:E}),n&&(0,A.jsx)(b.Z,(0,h.Z)((0,h.Z)({},i),{},{children:(0,A.jsx)("span",{className:"".concat(f,"-icon ").concat(F).trim(),children:de})}))]}))})},93141:function(Ee,K,e){e.r(K),e.d(K,{default:function(){return lt}});var h=e(13448),c=e.n(h),T=e(77117),O=e.n(T),ie=e(74815),M=e.n(ie),ne=e(28152),ae=e.n(ne),q=e(59879),b=e(70514),x=e(27533);function re(a,r){return w.apply(this,arguments)}function w(){return w=M()(c()().mark(function a(r,o){return c()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(0,x.request)("/api/login/captcha",O()({method:"GET",params:O()({},r)},o||{})));case 1:case"end":return W.stop()}},a)})),w.apply(this,arguments)}var s=e(33346),u=e(50959),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 00960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z"}}]},name:"alipay-circle",theme:"outlined"},_=A,C=e(69164),l=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:_}))};l.displayName="AlipayCircleOutlined";var n=u.forwardRef(l),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"}}]},name:"taobao-circle",theme:"outlined"},E=R,X=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:E}))};X.displayName="TaobaoCircleOutlined";var j=u.forwardRef(X),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-circle",theme:"outlined"},d=f,m=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:d}))};m.displayName="WeiboCircleOutlined";var F=u.forwardRef(m),i=e(64980),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},ue=de,Q=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:ue}))};Q.displayName="LockOutlined";var Ie=u.forwardRef(Q),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},be=He,ve=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:be}))};ve.displayName="MobileOutlined";var Be=u.forwardRef(ve),fe=e(10570),Le=e(17122),Ae=e(56197),Re=e(84875),We=e.n(Re),Ke=e(43997),ge=e(73273),Y=e(26488),Ce=function(r){var o;return o={},(0,ge.Z)(o,r.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:r.colorTextSecondary,fontSize:r.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),(0,ge.Z)(o,"@media (min-width: @screen-md-min)",(0,ge.Z)({},"".concat(r.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"})),o};function Pe(a){return(0,Y.Xj)("LoginForm",function(r){var o=(0,s.Z)((0,s.Z)({},r),{},{componentCls:".".concat(a)});return[Ce(o)]})}var t=e(11527),ze=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function Ze(a){var r,o=a.logo,G=a.message,W=a.contentStyle,$=a.title,H=a.subTitle,J=a.actions,xe=a.children,te=a.containerStyle,U=a.otherStyle,z=(0,fe.Z)(a,ze),ye=(0,Le.YB)(),Fe=z.submitter===!1?!1:(0,s.Z)((0,s.Z)({searchConfig:{submitText:ye.getMessage("loginForm.submitText","\u767B\u5F55")}},z.submitter),{},{submitButtonProps:(0,s.Z)({size:"large",style:{width:"100%"}},(r=z.submitter)===null||r===void 0?void 0:r.submitButtonProps),render:function(Z,D){var g,S=D.pop();if(typeof(z==null||(g=z.submitter)===null||g===void 0?void 0:g.render)=="function"){var B,v;return z==null||(B=z.submitter)===null||B===void 0||(v=B.render)===null||v===void 0?void 0:v.call(B,Z,D)}return S}}),P=(0,u.useContext)(Ae.ZP.ConfigContext),Te=P.getPrefixCls("pro-form-login"),Oe=Pe(Te),le=Oe.wrapSSR,N=Oe.hashId,p=function(Z){return"".concat(Te,"-").concat(Z," ").concat(N)},y=(0,u.useMemo)(function(){return o?typeof o=="string"?(0,t.jsx)("img",{src:o}):o:null},[o]);return le((0,t.jsxs)("div",{className:We()(p("container"),N),style:te,children:[(0,t.jsxs)("div",{className:"".concat(p("top")," ").concat(N).trim(),children:[$||y?(0,t.jsxs)("div",{className:"".concat(p("header")),children:[y?(0,t.jsx)("span",{className:p("logo"),children:y}):null,$?(0,t.jsx)("span",{className:p("title"),children:$}):null]}):null,H?(0,t.jsx)("div",{className:p("desc"),children:H}):null]}),(0,t.jsxs)("div",{className:p("main"),style:(0,s.Z)({width:328},W),children:[(0,t.jsxs)(Ke.A,(0,s.Z)((0,s.Z)({isKeyPressSubmit:!0},z),{},{submitter:Fe,children:[G,xe]})),J?(0,t.jsx)("div",{className:p("main-other"),style:U,children:J}):null]})]}))}var Se=e(60010),me=e(3224),Ne=e(47801),pe=e(32682),Xe=e(67190),De=e(33952),oe=e(47100),Me=e(81298),Qe=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],he=u.forwardRef(function(a,r){var o=Xe.Z.useFormInstance(),G=(0,u.useState)(a.countDown||60),W=(0,pe.Z)(G,2),$=W[0],H=W[1],J=(0,u.useState)(!1),xe=(0,pe.Z)(J,2),te=xe[0],U=xe[1],z=(0,u.useState)(),ye=(0,pe.Z)(z,2),Fe=ye[0],P=ye[1],Te=a.rules,Oe=a.name,le=a.phoneName,N=a.fieldProps,p=a.onTiming,y=a.captchaTextRender,I=y===void 0?function(S,B){return S?"".concat(B," \u79D2\u540E\u91CD\u65B0\u83B7\u53D6"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"}:y,Z=a.captchaProps,D=(0,fe.Z)(a,Qe),g=function(){var S=(0,Ne.Z)((0,me.Z)().mark(function B(v){return(0,me.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.prev=0,P(!0),k.next=4,D.onGetCaptcha(v);case 4:P(!1),U(!0),k.next=13;break;case 8:k.prev=8,k.t0=k.catch(0),U(!1),P(!1),console.log(k.t0);case 13:case"end":return k.stop()}},B,null,[[0,8]])}));return function(v){return S.apply(this,arguments)}}();return(0,u.useImperativeHandle)(r,function(){return{startTiming:function(){return U(!0)},endTiming:function(){return U(!1)}}}),(0,u.useEffect)(function(){var S=0,B=a.countDown;return te&&(S=window.setInterval(function(){H(function(v){return v<=1?(U(!1),clearInterval(S),B||60):v-1})},1e3)),function(){return clearInterval(S)}},[te]),(0,u.useEffect)(function(){p&&p($)},[$,p]),(0,t.jsxs)("div",{style:(0,s.Z)((0,s.Z)({},N==null?void 0:N.style),{},{display:"flex",alignItems:"center"}),ref:r,children:[(0,t.jsx)(De.Z,(0,s.Z)((0,s.Z)({},N),{},{style:(0,s.Z)({flex:1,transition:"width .3s",marginRight:8},N==null?void 0:N.style)})),(0,t.jsx)(oe.ZP,(0,s.Z)((0,s.Z)({style:{display:"block"},disabled:te,loading:Fe},Z),{},{onClick:(0,Ne.Z)((0,me.Z)().mark(function S(){var B;return(0,me.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(L.prev=0,!le){L.next=9;break}return L.next=4,o.validateFields([le].flat(1));case 4:return B=o.getFieldValue([le].flat(1)),L.next=7,g(B);case 7:L.next=11;break;case 9:return L.next=11,g("");case 11:L.next=16;break;case 13:L.prev=13,L.t0=L.catch(0),console.log(L.t0);case 16:case"end":return L.stop()}},S,null,[[0,13]])})),children:I(te,$)}))]})}),we=(0,Me.G)(he),Ge=we,je=e(44559),$e=e(87894),Ue=e(82578),Ve=["options","fieldProps","proFieldProps","valueEnum"],Ye=u.forwardRef(function(a,r){var o=a.options,G=a.fieldProps,W=a.proFieldProps,$=a.valueEnum,H=(0,fe.Z)(a,Ve);return(0,t.jsx)(Ue.Z,(0,s.Z)({ref:r,valueType:"checkbox",valueEnum:(0,je.h)($,void 0),fieldProps:(0,s.Z)({options:o},G),lightProps:(0,s.Z)({labelFormatter:function(){return(0,t.jsx)(Ue.Z,(0,s.Z)({ref:r,valueType:"checkbox",mode:"read",valueEnum:(0,je.h)($,void 0),filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({options:o},G),proFieldProps:W},H))}},H.lightProps),proFieldProps:W},H))}),Je=u.forwardRef(function(a,r){var o=a.fieldProps,G=a.children;return(0,t.jsx)($e.Z,(0,s.Z)((0,s.Z)({ref:r},o),{},{children:G}))}),ee=(0,Me.G)(Je,{valuePropName:"checked"}),se=ee;se.Group=Ye;var V=se,ke=e(38727),ce=e(52497),et=e(66146),tt=e(10422),nt=e(82464),at=e(8700),qe=(0,at.kc)(function(a){var r=a.token;return{action:{marginLeft:"8px",color:"rgba(0, 0, 0, 0.2)",fontSize:"24px",verticalAlign:"middle",cursor:"pointer",transition:"color 0.3s","&:hover":{color:r.colorPrimaryActive}},lang:{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:r.borderRadius,":hover":{backgroundColor:r.colorBgTextHover}},container:{display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",backgroundImage:"url('https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/V-_oS6r-i7wAAAAAAAAAAAAAFl94AQBr')",backgroundSize:"100% 100%"}}}),rt=function(){var r=qe(),o=r.styles;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{className:o.action},"AlipayCircleOutlined"),(0,t.jsx)(j,{className:o.action},"TaobaoCircleOutlined"),(0,t.jsx)(F,{className:o.action},"WeiboCircleOutlined")]})},ot=function(){var r=qe(),o=r.styles;return(0,t.jsx)("div",{className:o.lang,"data-lang":!0,children:x.SelectLang&&(0,t.jsx)(x.SelectLang,{})})},_e=function(r){var o=r.content;return(0,t.jsx)(ke.Z,{style:{marginBottom:24},message:o,type:"error",showIcon:!0})},st=function(){var r=(0,u.useState)({}),o=ae()(r,2),G=o[0],W=o[1],$=(0,u.useState)("account"),H=ae()($,2),J=H[0],xe=H[1],te=(0,x.useModel)("@@initialState"),U=te.initialState,z=te.setInitialState,ye=qe(),Fe=ye.styles,P=(0,x.useIntl)(),Te=function(){var p=M()(c()().mark(function y(){var I,Z;return c()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,U==null||(I=U.fetchUserInfo)===null||I===void 0?void 0:I.call(U);case 2:Z=g.sent,Z&&(0,tt.flushSync)(function(){z(function(S){return O()(O()({},S),{},{currentUser:Z})})});case 4:case"end":return g.stop()}},y)}));return function(){return p.apply(this,arguments)}}(),Oe=function(){var p=M()(c()().mark(function y(I){var Z,D,g,S;return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,v.next=3,(0,b.x4)(O()(O()({},I),{},{type:J}));case 3:if(Z=v.sent,Z.status!=="ok"){v.next=12;break}return D=P.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"}),ce.ZP.success(D),v.next=9,Te();case 9:return g=new URL(window.location.href).searchParams,window.location.href=g.get("redirect")||"/",v.abrupt("return");case 12:console.log(Z),W(Z),v.next=21;break;case 16:v.prev=16,v.t0=v.catch(0),S=P.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(v.t0),ce.ZP.error(S);case 21:case"end":return v.stop()}},y,null,[[0,16]])}));return function(I){return p.apply(this,arguments)}}(),le=G.status,N=G.type;return(0,t.jsxs)("div",{className:Fe.container,children:[(0,t.jsx)(x.Helmet,{children:(0,t.jsxs)("title",{children:[P.formatMessage({id:"menu.login",defaultMessage:"\u767B\u5F55\u9875"}),"- ",nt.Z.title]})}),(0,t.jsx)(ot,{}),(0,t.jsx)("div",{style:{flex:"1",padding:"32px 0"},children:(0,t.jsxs)(Ze,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,t.jsx)("img",{alt:"logo",src:"/logo.svg"}),title:"Ant Design",subTitle:P.formatMessage({id:"pages.layouts.userLayout.title"}),initialValues:{autoLogin:!0},actions:[(0,t.jsx)(x.FormattedMessage,{id:"pages.login.loginWith",defaultMessage:"\u5176\u4ED6\u767B\u5F55\u65B9\u5F0F"},"loginWith"),(0,t.jsx)(rt,{},"icons")],onFinish:function(){var p=M()(c()().mark(function y(I){return c()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,Oe(I);case 2:case"end":return D.stop()}},y)}));return function(y){return p.apply(this,arguments)}}(),children:[(0,t.jsx)(et.Z,{activeKey:J,onChange:xe,centered:!0,items:[{key:"account",label:P.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"\u8D26\u6237\u5BC6\u7801\u767B\u5F55"})},{key:"mobile",label:P.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"\u624B\u673A\u53F7\u767B\u5F55"})}]}),le==="error"&&N==="account"&&(0,t.jsx)(_e,{content:P.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF(admin/ant.design)"})}),J==="account"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Se.Z,{name:"username",fieldProps:{size:"large",prefix:(0,t.jsx)(i.Z,{})},placeholder:P.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u7528\u6237\u540D: admin or user"}),rules:[{required:!0,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D!"})}]}),(0,t.jsx)(Se.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,t.jsx)(Ie,{})},placeholder:P.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801: ant.design"}),rules:[{required:!0,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]})]}),le==="error"&&N==="mobile"&&(0,t.jsx)(_e,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),J==="mobile"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Se.Z,{fieldProps:{size:"large",prefix:(0,t.jsx)(Be,{})},name:"mobile",placeholder:P.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,t.jsx)(Ge,{fieldProps:{size:"large",prefix:(0,t.jsx)(Ie,{})},captchaProps:{size:"large"},placeholder:P.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(y,I){return y?"".concat(I," ").concat(P.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):P.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},name:"captcha",rules:[{required:!0,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var p=M()(c()().mark(function y(I){var Z;return c()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,re({phone:I});case 2:if(Z=g.sent,Z){g.next=5;break}return g.abrupt("return");case 5:ce.ZP.success("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F\uFF01\u9A8C\u8BC1\u7801\u4E3A\uFF1A1234");case 6:case"end":return g.stop()}},y)}));return function(y){return p.apply(this,arguments)}}()})]}),(0,t.jsxs)("div",{style:{marginBottom:24},children:[(0,t.jsx)(V,{noStyle:!0,name:"autoLogin",children:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.rememberMe",defaultMessage:"\u81EA\u52A8\u767B\u5F55"})}),(0,t.jsx)("a",{style:{float:"right"},children:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.forgotPassword",defaultMessage:"\u5FD8\u8BB0\u5BC6\u7801"})})]})]})}),(0,t.jsx)(q.$_,{})]})},lt=st}}]); diff --git a/p__user__login__index.d660a102.async.js b/p__user__login__index.d660a102.async.js new file mode 100644 index 00000000..47b8d634 --- /dev/null +++ b/p__user__login__index.d660a102.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4037],{92933:function(Ee,K){var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};K.Z=e},30869:function(Ee,K,e){var h=e(89342),c=e(93264),T=e(98787),O=e(46501),ie=e(73952),M=e(8262),ne=e(12869),ae=e(79685),q=e(81468),b=e(63342),x=["fieldProps","proFieldProps"],re=["fieldProps","proFieldProps"],w="text",s=function(l){var n=l.fieldProps,R=l.proFieldProps,E=(0,T.Z)(l,x);return(0,b.jsx)(q.Z,(0,c.Z)({valueType:w,fieldProps:n,filedConfig:{valueType:w},proFieldProps:R},E))},u=function(l){var n=(0,O.Z)(l.open||!1,{value:l.open,onChange:l.onOpenChange}),R=(0,h.Z)(n,2),E=R[0],X=R[1];return(0,b.jsx)(ie.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(f){var d,m=f.getFieldValue(l.name||[]);return(0,b.jsx)(M.Z,(0,c.Z)((0,c.Z)({getPopupContainer:function(i){return i&&i.parentNode?i.parentNode:i},onOpenChange:X,content:(0,b.jsxs)("div",{style:{padding:"4px 0"},children:[(d=l.statusRender)===null||d===void 0?void 0:d.call(l,m),l.strengthText?(0,b.jsx)("div",{style:{marginTop:10},children:(0,b.jsx)("span",{children:l.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},l.popoverProps),{},{open:E,children:l.children}))}})},A=function(l){var n=l.fieldProps,R=l.proFieldProps,E=(0,T.Z)(l,re),X=(0,ae.useState)(!1),j=(0,h.Z)(X,2),f=j[0],d=j[1];return n!=null&&n.statusRender&&E.name?(0,b.jsx)(u,{name:E.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:f,onOpenChange:d,children:(0,b.jsx)(q.Z,(0,c.Z)({valueType:"password",fieldProps:(0,c.Z)((0,c.Z)({},(0,ne.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(F){var i;n==null||(i=n.onBlur)===null||i===void 0||i.call(n,F),d(!1)},onClick:function(F){var i;n==null||(i=n.onClick)===null||i===void 0||i.call(n,F),d(!0)}}),proFieldProps:R,filedConfig:{valueType:w}},E))}):(0,b.jsx)(q.Z,(0,c.Z)({valueType:"password",fieldProps:n,proFieldProps:R,filedConfig:{valueType:w}},E))},_=s;_.Password=A,_.displayName="ProFormComponent",K.Z=_},66197:function(Ee,K,e){e.d(K,{A:function(){return j}});var h=e(93264),c=e(73952),T=e(79685),O=e(29927),ie=e(43901),M=e(6346),ne=e(89342),ae=e(60190),q=e(46501),b=e(89869),x=e(89543),re=e(27097),w=e(68591),s=e.n(w),u=e(77204),A=e(25393),_=e(33298),C=function(d){var m;return(0,M.Z)({},d.componentCls,{"&-title":{marginBlockEnd:d.marginXL,fontWeight:"bold"},"&-container":(0,M.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(d.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(m={display:"block",width:"100%"},(0,M.Z)(m,"".concat(d.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,M.Z)(m,"".concat(d.componentCls,"-container"),{paddingInlineStart:16}),(0,M.Z)(m,"".concat(d.antCls,"-space-item,").concat(d.antCls,"-form-item"),{width:"100%"}),(0,M.Z)(m,"".concat(d.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}}),m)})};function l(f){return(0,_.Xj)("ProFormGroup",function(d){var m=(0,h.Z)((0,h.Z)({},d),{},{componentCls:".".concat(f)});return[C(m)]})}var n=e(63342),R=T.forwardRef(function(f,d){var m=T.useContext(u.Z),F=m.groupProps,i=(0,h.Z)((0,h.Z)({},F),f),de=i.children,ue=i.collapsible,Q=i.defaultCollapsed,Ie=i.style,He=i.labelLayout,be=i.title,ve=be===void 0?f.label:be,Be=i.tooltip,fe=i.align,Le=fe===void 0?"start":fe,Ae=i.direction,Re=i.size,We=Re===void 0?32:Re,Ke=i.titleStyle,ge=i.titleRender,Y=i.spaceProps,Ce=i.extra,Pe=i.autoFocus,t=(0,q.Z)(function(){return Q||!1},{value:f.collapsed,onChange:f.onCollapse}),ze=(0,ne.Z)(t,2),Ze=ze[0],Se=ze[1],me=(0,T.useContext)(x.ZP.ConfigContext),Ne=me.getPrefixCls,pe=(0,A.zx)(f),Xe=pe.ColWrapper,De=pe.RowWrapper,oe=Ne("pro-form-group"),Me=l(oe),Qe=Me.wrapSSR,he=Me.hashId,we=ue&&(0,n.jsx)(ae.Z,{style:{marginInlineEnd:8},rotate:Ze?void 0:90}),Ge=(0,n.jsx)(b.G,{label:we?(0,n.jsxs)("div",{children:[we,ve]}):ve,tooltip:Be}),je=(0,T.useCallback)(function(ee){var se=ee.children;return(0,n.jsx)(re.Z,(0,h.Z)((0,h.Z)({},Y),{},{className:s()("".concat(oe,"-container ").concat(he),Y==null?void 0:Y.className),size:We,align:Le,direction:Ae,style:(0,h.Z)({rowGap:0},Y==null?void 0:Y.style),children:se}))},[Le,oe,Ae,he,We,Y]),$e=ge?ge(Ge,f):Ge,Ue=(0,T.useMemo)(function(){var ee=[],se=T.Children.toArray(de).map(function(V,ke){var ce;return T.isValidElement(V)&&V!==null&&V!==void 0&&(ce=V.props)!==null&&ce!==void 0&&ce.hidden?(ee.push(V),null):ke===0&&T.isValidElement(V)&&Pe?T.cloneElement(V,(0,h.Z)((0,h.Z)({},V.props),{},{autoFocus:Pe})):V});return[(0,n.jsx)(De,{Wrapper:je,children:se},"children"),ee.length>0?(0,n.jsx)("div",{style:{display:"none"},children:ee}):null]},[de,De,je,Pe]),Ve=(0,ne.Z)(Ue,2),Ye=Ve[0],Je=Ve[1];return Qe((0,n.jsx)(Xe,{children:(0,n.jsxs)("div",{className:s()(oe,he,(0,M.Z)({},"".concat(oe,"-twoLine"),He==="twoLine")),style:Ie,ref:d,children:[Je,(ve||Be||Ce)&&(0,n.jsx)("div",{className:"".concat(oe,"-title ").concat(he).trim(),style:Ke,onClick:function(){Se(!Ze)},children:Ce?(0,n.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[$e,(0,n.jsx)("span",{onClick:function(se){return se.stopPropagation()},children:Ce})]}):$e}),(0,n.jsx)("div",{style:{display:ue&&Ze?"none":void 0},children:Ye})]})}))});R.displayName="ProForm-Group";var E=R,X=e(30825);function j(f){return(0,n.jsx)(O.I,(0,h.Z)({layout:"vertical",submitter:{render:function(m,F){return F.reverse()}},contentRender:function(m,F){return(0,n.jsxs)(n.Fragment,{children:[m,F]})}},f))}j.Group=E,j.useForm=c.Z.useForm,j.Item=X.Z,j.useWatch=c.Z.useWatch,j.ErrorList=c.Z.ErrorList,j.Provider=c.Z.Provider,j.useFormInstance=c.Z.useFormInstance,j.EditOrReadOnlyContext=ie.A},89869:function(Ee,K,e){e.d(K,{G:function(){return _}});var h=e(93264),c=e(6346),T=e(21137),O=e(79685),ie=e(92933),M=e(83317),ne=function(l,n){return O.createElement(M.Z,(0,T.Z)({},l,{ref:n,icon:ie.Z}))},ae=O.forwardRef(ne),q=e(89543),b=e(58898),x=e(68591),re=e.n(x),w=e(33298),s=function(l){return(0,c.Z)({},l.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:l.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:l.colorTextSecondary,fontWeight:"normal",fontSize:l.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function u(C){return(0,w.Xj)("LabelIconTip",function(l){var n=(0,h.Z)((0,h.Z)({},l),{},{componentCls:".".concat(C)});return[s(n)]})}var A=e(63342),_=O.memo(function(C){var l=C.label,n=C.tooltip,R=C.ellipsis,E=C.subTitle,X=(0,O.useContext)(q.ZP.ConfigContext),j=X.getPrefixCls,f=j("pro-core-label-tip"),d=u(f),m=d.wrapSSR,F=d.hashId;if(!n&&!E)return(0,A.jsx)(A.Fragment,{children:l});var i=typeof n=="string"||O.isValidElement(n)?{title:n}:n,de=(i==null?void 0:i.icon)||(0,A.jsx)(ae,{});return m((0,A.jsxs)("div",{className:re()(f,F),onMouseDown:function(Q){return Q.stopPropagation()},onMouseLeave:function(Q){return Q.stopPropagation()},onMouseMove:function(Q){return Q.stopPropagation()},children:[(0,A.jsx)("div",{className:re()("".concat(f,"-title"),F,(0,c.Z)({},"".concat(f,"-title-ellipsis"),R)),children:l}),E&&(0,A.jsx)("div",{className:"".concat(f,"-subtitle ").concat(F).trim(),children:E}),n&&(0,A.jsx)(b.Z,(0,h.Z)((0,h.Z)({},i),{},{children:(0,A.jsx)("span",{className:"".concat(f,"-icon ").concat(F).trim(),children:de})}))]}))})},3724:function(Ee,K,e){e.r(K),e.d(K,{default:function(){return lt}});var h=e(29195),c=e.n(h),T=e(42329),O=e.n(T),ie=e(56717),M=e.n(ie),ne=e(97380),ae=e.n(ne),q=e(70696),b=e(72486),x=e(8025);function re(a,r){return w.apply(this,arguments)}function w(){return w=M()(c()().mark(function a(r,o){return c()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.abrupt("return",(0,x.request)("/api/login/captcha",O()({method:"GET",params:O()({},r)},o||{})));case 1:case"end":return W.stop()}},a)})),w.apply(this,arguments)}var s=e(93264),u=e(79685),A={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M308.6 545.7c-19.8 2-57.1 10.7-77.4 28.6-61 53-24.5 150 99 150 71.8 0 143.5-45.7 199.8-119-80.2-38.9-148.1-66.8-221.4-59.6zm460.5 67c100.1 33.4 154.7 43 166.7 44.8A445.9 445.9 0 00960 512c0-247.4-200.6-448-448-448S64 264.6 64 512s200.6 448 448 448c155.9 0 293.2-79.7 373.5-200.5-75.6-29.8-213.6-85-286.8-120.1-69.9 85.7-160.1 137.8-253.7 137.8-158.4 0-212.1-138.1-137.2-229 16.3-19.8 44.2-38.7 87.3-49.4 67.5-16.5 175 10.3 275.7 43.4 18.1-33.3 33.4-69.9 44.7-108.9H305.1V402h160v-56.2H271.3v-31.3h193.8v-80.1s0-13.5 13.7-13.5H557v93.6h191.7v31.3H557.1V402h156.4c-15 61.1-37.7 117.4-66.2 166.8 47.5 17.1 90.1 33.3 121.8 43.9z"}}]},name:"alipay-circle",theme:"outlined"},_=A,C=e(64507),l=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:_}))};l.displayName="AlipayCircleOutlined";var n=u.forwardRef(l),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zM315.7 291.5c27.3 0 49.5 22.1 49.5 49.4s-22.1 49.4-49.5 49.4a49.4 49.4 0 110-98.8zM366.9 578c-13.6 42.3-10.2 26.7-64.4 144.5l-78.5-49s87.7-79.8 105.6-116.2c19.2-38.4-21.1-58.9-21.1-58.9l-60.2-37.5 32.7-50.2c45.4 33.7 48.7 36.6 79.2 67.2 23.8 23.9 20.7 56.8 6.7 100.1zm427.2 55c-15.3 143.8-202.4 90.3-202.4 90.3l10.2-41.1 43.3 9.3c80 5 72.3-64.9 72.3-64.9V423c.6-77.3-72.6-85.4-204.2-38.3l30.6 8.3c-2.5 9-12.5 23.2-25.2 38.6h176v35.6h-99.1v44.5h98.7v35.7h-98.7V622c14.9-4.8 28.6-11.5 40.5-20.5l-8.7-32.5 46.5-14.4 38.8 94.9-57.3 23.9-10.2-37.8c-25.6 19.5-78.8 48-171.8 45.4-99.2 2.6-73.7-112-73.7-112l2.5-1.3H472c-.5 14.7-6.6 38.7 1.7 51.8 6.8 10.8 24.2 12.6 35.3 13.1 1.3.1 2.6.1 3.9.1v-85.3h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"}}]},name:"taobao-circle",theme:"outlined"},E=R,X=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:E}))};X.displayName="TaobaoCircleOutlined";var j=u.forwardRef(X),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-44.4 672C353.1 736 236 680.4 236 588.9c0-47.8 30.2-103.1 82.3-155.3 69.5-69.6 150.6-101.4 181.1-70.8 13.5 13.5 14.8 36.8 6.1 64.6-4.5 14 13.1 6.3 13.1 6.3 56.2-23.6 105.2-25 123.1.7 9.6 13.7 8.6 32.8-.2 55.1-4.1 10.2 1.3 11.8 9 14.1 31.7 9.8 66.9 33.6 66.9 75.5.2 69.5-99.7 156.9-249.8 156.9zm207.3-290.8a34.9 34.9 0 00-7.2-34.1 34.68 34.68 0 00-33.1-10.7 18.24 18.24 0 01-7.6-35.7c24.1-5.1 50.1 2.3 67.7 21.9 17.7 19.6 22.4 46.3 14.9 69.8a18.13 18.13 0 01-22.9 11.7 18.18 18.18 0 01-11.8-22.9zm106 34.3s0 .1 0 0a21.1 21.1 0 01-26.6 13.7 21.19 21.19 0 01-13.6-26.7c11-34.2 4-73.2-21.7-101.8a104.04 104.04 0 00-98.9-32.1 21.14 21.14 0 01-25.1-16.3 21.07 21.07 0 0116.2-25.1c49.4-10.5 102.8 4.8 139.1 45.1 36.3 40.2 46.1 95.1 30.6 143.2zm-334.5 6.1c-91.4 9-160.7 65.1-154.7 125.2 5.9 60.1 84.8 101.5 176.2 92.5 91.4-9.1 160.7-65.1 154.7-125.3-5.9-60.1-84.8-101.5-176.2-92.4zm80.2 141.7c-18.7 42.3-72.3 64.8-117.8 50.1-43.9-14.2-62.5-57.7-43.3-96.8 18.9-38.4 68-60.1 111.5-48.8 45 11.7 68 54.2 49.6 95.5zm-93-32.2c-14.2-5.9-32.4.2-41.2 13.9-8.8 13.8-4.7 30.2 9.3 36.6 14.3 6.5 33.2.3 42-13.8 8.8-14.3 4.2-30.6-10.1-36.7zm34.9-14.5c-5.4-2.2-12.2.5-15.4 5.8-3.1 5.4-1.4 11.5 4.1 13.8 5.5 2.3 12.6-.3 15.8-5.8 3-5.6 1-11.8-4.5-13.8z"}}]},name:"weibo-circle",theme:"outlined"},d=f,m=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:d}))};m.displayName="WeiboCircleOutlined";var F=u.forwardRef(m),i=e(46766),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},ue=de,Q=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:ue}))};Q.displayName="LockOutlined";var Ie=u.forwardRef(Q),He={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},be=He,ve=function(r,o){return u.createElement(C.Z,(0,s.Z)((0,s.Z)({},r),{},{ref:o,icon:be}))};ve.displayName="MobileOutlined";var Be=u.forwardRef(ve),fe=e(98787),Le=e(56671),Ae=e(89543),Re=e(68591),We=e.n(Re),Ke=e(66197),ge=e(6346),Y=e(33298),Ce=function(r){var o;return o={},(0,ge.Z)(o,r.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:r.colorTextSecondary,fontSize:r.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),(0,ge.Z)(o,"@media (min-width: @screen-md-min)",(0,ge.Z)({},"".concat(r.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"})),o};function Pe(a){return(0,Y.Xj)("LoginForm",function(r){var o=(0,s.Z)((0,s.Z)({},r),{},{componentCls:".".concat(a)});return[Ce(o)]})}var t=e(63342),ze=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function Ze(a){var r,o=a.logo,G=a.message,W=a.contentStyle,$=a.title,H=a.subTitle,J=a.actions,xe=a.children,te=a.containerStyle,U=a.otherStyle,z=(0,fe.Z)(a,ze),ye=(0,Le.YB)(),Fe=z.submitter===!1?!1:(0,s.Z)((0,s.Z)({searchConfig:{submitText:ye.getMessage("loginForm.submitText","\u767B\u5F55")}},z.submitter),{},{submitButtonProps:(0,s.Z)({size:"large",style:{width:"100%"}},(r=z.submitter)===null||r===void 0?void 0:r.submitButtonProps),render:function(Z,D){var g,S=D.pop();if(typeof(z==null||(g=z.submitter)===null||g===void 0?void 0:g.render)=="function"){var B,v;return z==null||(B=z.submitter)===null||B===void 0||(v=B.render)===null||v===void 0?void 0:v.call(B,Z,D)}return S}}),P=(0,u.useContext)(Ae.ZP.ConfigContext),Te=P.getPrefixCls("pro-form-login"),Oe=Pe(Te),le=Oe.wrapSSR,N=Oe.hashId,p=function(Z){return"".concat(Te,"-").concat(Z," ").concat(N)},y=(0,u.useMemo)(function(){return o?typeof o=="string"?(0,t.jsx)("img",{src:o}):o:null},[o]);return le((0,t.jsxs)("div",{className:We()(p("container"),N),style:te,children:[(0,t.jsxs)("div",{className:"".concat(p("top")," ").concat(N).trim(),children:[$||y?(0,t.jsxs)("div",{className:"".concat(p("header")),children:[y?(0,t.jsx)("span",{className:p("logo"),children:y}):null,$?(0,t.jsx)("span",{className:p("title"),children:$}):null]}):null,H?(0,t.jsx)("div",{className:p("desc"),children:H}):null]}),(0,t.jsxs)("div",{className:p("main"),style:(0,s.Z)({width:328},W),children:[(0,t.jsxs)(Ke.A,(0,s.Z)((0,s.Z)({isKeyPressSubmit:!0},z),{},{submitter:Fe,children:[G,xe]})),J?(0,t.jsx)("div",{className:p("main-other"),style:U,children:J}):null]})]}))}var Se=e(30869),me=e(7623),Ne=e(64632),pe=e(89342),Xe=e(73952),De=e(79714),oe=e(10951),Me=e(46821),Qe=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],he=u.forwardRef(function(a,r){var o=Xe.Z.useFormInstance(),G=(0,u.useState)(a.countDown||60),W=(0,pe.Z)(G,2),$=W[0],H=W[1],J=(0,u.useState)(!1),xe=(0,pe.Z)(J,2),te=xe[0],U=xe[1],z=(0,u.useState)(),ye=(0,pe.Z)(z,2),Fe=ye[0],P=ye[1],Te=a.rules,Oe=a.name,le=a.phoneName,N=a.fieldProps,p=a.onTiming,y=a.captchaTextRender,I=y===void 0?function(S,B){return S?"".concat(B," \u79D2\u540E\u91CD\u65B0\u83B7\u53D6"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"}:y,Z=a.captchaProps,D=(0,fe.Z)(a,Qe),g=function(){var S=(0,Ne.Z)((0,me.Z)().mark(function B(v){return(0,me.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.prev=0,P(!0),k.next=4,D.onGetCaptcha(v);case 4:P(!1),U(!0),k.next=13;break;case 8:k.prev=8,k.t0=k.catch(0),U(!1),P(!1),console.log(k.t0);case 13:case"end":return k.stop()}},B,null,[[0,8]])}));return function(v){return S.apply(this,arguments)}}();return(0,u.useImperativeHandle)(r,function(){return{startTiming:function(){return U(!0)},endTiming:function(){return U(!1)}}}),(0,u.useEffect)(function(){var S=0,B=a.countDown;return te&&(S=window.setInterval(function(){H(function(v){return v<=1?(U(!1),clearInterval(S),B||60):v-1})},1e3)),function(){return clearInterval(S)}},[te]),(0,u.useEffect)(function(){p&&p($)},[$,p]),(0,t.jsxs)("div",{style:(0,s.Z)((0,s.Z)({},N==null?void 0:N.style),{},{display:"flex",alignItems:"center"}),ref:r,children:[(0,t.jsx)(De.Z,(0,s.Z)((0,s.Z)({},N),{},{style:(0,s.Z)({flex:1,transition:"width .3s",marginRight:8},N==null?void 0:N.style)})),(0,t.jsx)(oe.ZP,(0,s.Z)((0,s.Z)({style:{display:"block"},disabled:te,loading:Fe},Z),{},{onClick:(0,Ne.Z)((0,me.Z)().mark(function S(){var B;return(0,me.Z)().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(L.prev=0,!le){L.next=9;break}return L.next=4,o.validateFields([le].flat(1));case 4:return B=o.getFieldValue([le].flat(1)),L.next=7,g(B);case 7:L.next=11;break;case 9:return L.next=11,g("");case 11:L.next=16;break;case 13:L.prev=13,L.t0=L.catch(0),console.log(L.t0);case 16:case"end":return L.stop()}},S,null,[[0,13]])})),children:I(te,$)}))]})}),we=(0,Me.G)(he),Ge=we,je=e(92879),$e=e(42359),Ue=e(81468),Ve=["options","fieldProps","proFieldProps","valueEnum"],Ye=u.forwardRef(function(a,r){var o=a.options,G=a.fieldProps,W=a.proFieldProps,$=a.valueEnum,H=(0,fe.Z)(a,Ve);return(0,t.jsx)(Ue.Z,(0,s.Z)({ref:r,valueType:"checkbox",valueEnum:(0,je.h)($,void 0),fieldProps:(0,s.Z)({options:o},G),lightProps:(0,s.Z)({labelFormatter:function(){return(0,t.jsx)(Ue.Z,(0,s.Z)({ref:r,valueType:"checkbox",mode:"read",valueEnum:(0,je.h)($,void 0),filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({options:o},G),proFieldProps:W},H))}},H.lightProps),proFieldProps:W},H))}),Je=u.forwardRef(function(a,r){var o=a.fieldProps,G=a.children;return(0,t.jsx)($e.Z,(0,s.Z)((0,s.Z)({ref:r},o),{},{children:G}))}),ee=(0,Me.G)(Je,{valuePropName:"checked"}),se=ee;se.Group=Ye;var V=se,ke=e(93957),ce=e(68852),et=e(55095),tt=e(24507),nt=e(50374),at=e(59533),qe=(0,tt.kc)(function(a){var r=a.token;return{action:{marginLeft:"8px",color:"rgba(0, 0, 0, 0.2)",fontSize:"24px",verticalAlign:"middle",cursor:"pointer",transition:"color 0.3s","&:hover":{color:r.colorPrimaryActive}},lang:{width:42,height:42,lineHeight:"42px",position:"fixed",right:16,borderRadius:r.borderRadius,":hover":{backgroundColor:r.colorBgTextHover}},container:{display:"flex",flexDirection:"column",height:"100vh",overflow:"auto",backgroundImage:"url('https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/V-_oS6r-i7wAAAAAAAAAAAAAFl94AQBr')",backgroundSize:"100% 100%"}}}),rt=function(){var r=qe(),o=r.styles;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{className:o.action},"AlipayCircleOutlined"),(0,t.jsx)(j,{className:o.action},"TaobaoCircleOutlined"),(0,t.jsx)(F,{className:o.action},"WeiboCircleOutlined")]})},ot=function(){var r=qe(),o=r.styles;return(0,t.jsx)("div",{className:o.lang,"data-lang":!0,children:x.SelectLang&&(0,t.jsx)(x.SelectLang,{})})},_e=function(r){var o=r.content;return(0,t.jsx)(ke.Z,{style:{marginBottom:24},message:o,type:"error",showIcon:!0})},st=function(){var r=(0,u.useState)({}),o=ae()(r,2),G=o[0],W=o[1],$=(0,u.useState)("account"),H=ae()($,2),J=H[0],xe=H[1],te=(0,x.useModel)("@@initialState"),U=te.initialState,z=te.setInitialState,ye=qe(),Fe=ye.styles,P=(0,x.useIntl)(),Te=function(){var p=M()(c()().mark(function y(){var I,Z;return c()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,U==null||(I=U.fetchUserInfo)===null||I===void 0?void 0:I.call(U);case 2:Z=g.sent,Z&&(0,nt.flushSync)(function(){z(function(S){return O()(O()({},S),{},{currentUser:Z})})});case 4:case"end":return g.stop()}},y)}));return function(){return p.apply(this,arguments)}}(),Oe=function(){var p=M()(c()().mark(function y(I){var Z,D,g,S;return c()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,v.next=3,(0,b.x4)(O()(O()({},I),{},{type:J}));case 3:if(Z=v.sent,Z.status!=="ok"){v.next=12;break}return D=P.formatMessage({id:"pages.login.success",defaultMessage:"\u767B\u5F55\u6210\u529F\uFF01"}),ce.ZP.success(D),v.next=9,Te();case 9:return g=new URL(window.location.href).searchParams,window.location.href=g.get("redirect")||"/",v.abrupt("return");case 12:console.log(Z),W(Z),v.next=21;break;case 16:v.prev=16,v.t0=v.catch(0),S=P.formatMessage({id:"pages.login.failure",defaultMessage:"\u767B\u5F55\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\uFF01"}),console.log(v.t0),ce.ZP.error(S);case 21:case"end":return v.stop()}},y,null,[[0,16]])}));return function(I){return p.apply(this,arguments)}}(),le=G.status,N=G.type;return(0,t.jsxs)("div",{className:Fe.container,children:[(0,t.jsx)(x.Helmet,{children:(0,t.jsxs)("title",{children:[P.formatMessage({id:"menu.login",defaultMessage:"\u767B\u5F55\u9875"}),"- ",at.Z.title]})}),(0,t.jsx)(ot,{}),(0,t.jsx)("div",{style:{flex:"1",padding:"32px 0"},children:(0,t.jsxs)(Ze,{contentStyle:{minWidth:280,maxWidth:"75vw"},logo:(0,t.jsx)("img",{alt:"logo",src:"/logo.svg"}),title:"Ant Design",subTitle:P.formatMessage({id:"pages.layouts.userLayout.title"}),initialValues:{autoLogin:!0},actions:[(0,t.jsx)(x.FormattedMessage,{id:"pages.login.loginWith",defaultMessage:"\u5176\u4ED6\u767B\u5F55\u65B9\u5F0F"},"loginWith"),(0,t.jsx)(rt,{},"icons")],onFinish:function(){var p=M()(c()().mark(function y(I){return c()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.next=2,Oe(I);case 2:case"end":return D.stop()}},y)}));return function(y){return p.apply(this,arguments)}}(),children:[(0,t.jsx)(et.Z,{activeKey:J,onChange:xe,centered:!0,items:[{key:"account",label:P.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"\u8D26\u6237\u5BC6\u7801\u767B\u5F55"})},{key:"mobile",label:P.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"\u624B\u673A\u53F7\u767B\u5F55"})}]}),le==="error"&&N==="account"&&(0,t.jsx)(_e,{content:P.formatMessage({id:"pages.login.accountLogin.errorMessage",defaultMessage:"\u8D26\u6237\u6216\u5BC6\u7801\u9519\u8BEF(admin/ant.design)"})}),J==="account"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Se.Z,{name:"username",fieldProps:{size:"large",prefix:(0,t.jsx)(i.Z,{})},placeholder:P.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"\u7528\u6237\u540D: admin or user"}),rules:[{required:!0,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.username.required",defaultMessage:"\u8BF7\u8F93\u5165\u7528\u6237\u540D!"})}]}),(0,t.jsx)(Se.Z.Password,{name:"password",fieldProps:{size:"large",prefix:(0,t.jsx)(Ie,{})},placeholder:P.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"\u5BC6\u7801: ant.design"}),rules:[{required:!0,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.password.required",defaultMessage:"\u8BF7\u8F93\u5165\u5BC6\u7801\uFF01"})}]})]}),le==="error"&&N==="mobile"&&(0,t.jsx)(_e,{content:"\u9A8C\u8BC1\u7801\u9519\u8BEF"}),J==="mobile"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Se.Z,{fieldProps:{size:"large",prefix:(0,t.jsx)(Be,{})},name:"mobile",placeholder:P.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"\u624B\u673A\u53F7"}),rules:[{required:!0,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.phoneNumber.required",defaultMessage:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\uFF01"})},{pattern:/^1\d{10}$/,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.phoneNumber.invalid",defaultMessage:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF\uFF01"})}]}),(0,t.jsx)(Ge,{fieldProps:{size:"large",prefix:(0,t.jsx)(Ie,{})},captchaProps:{size:"large"},placeholder:P.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"}),captchaTextRender:function(y,I){return y?"".concat(I," ").concat(P.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})):P.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"\u83B7\u53D6\u9A8C\u8BC1\u7801"})},name:"captcha",rules:[{required:!0,message:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.captcha.required",defaultMessage:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\uFF01"})}],onGetCaptcha:function(){var p=M()(c()().mark(function y(I){var Z;return c()().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,re({phone:I});case 2:if(Z=g.sent,Z){g.next=5;break}return g.abrupt("return");case 5:ce.ZP.success("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F\uFF01\u9A8C\u8BC1\u7801\u4E3A\uFF1A1234");case 6:case"end":return g.stop()}},y)}));return function(y){return p.apply(this,arguments)}}()})]}),(0,t.jsxs)("div",{style:{marginBottom:24},children:[(0,t.jsx)(V,{noStyle:!0,name:"autoLogin",children:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.rememberMe",defaultMessage:"\u81EA\u52A8\u767B\u5F55"})}),(0,t.jsx)("a",{style:{float:"right"},children:(0,t.jsx)(x.FormattedMessage,{id:"pages.login.forgotPassword",defaultMessage:"\u5FD8\u8BB0\u5BC6\u7801"})})]})]})}),(0,t.jsx)(q.$_,{})]})},lt=st}}]); diff --git a/p__user__register-result__index.85636c36.async.js b/p__user__register-result__index.85636c36.async.js new file mode 100644 index 00000000..0dc5d25b --- /dev/null +++ b/p__user__register-result__index.85636c36.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2493],{82211:function(f,e,u){u.r(e),u.d(e,{default:function(){return v}});var i=u(97380),l=u.n(i),n=u(8025),r=u(10951),o=u(94154),A=u(79685),c=u(24507),d=(0,c.kc)(function(){return{registerResult:{width:"800px",minHeight:"400px",margin:"auto",padding:"80px",background:"none"},anticon:{fontSize:"64px"},title:{marginTop:"32px",fontSize:"20px",lineHeight:"28px"},actions:{marginTop:"40px","a + a":{marginLeft:"8px"}}}}),F=d,s=u(63342),x=function(){var g=F(),t=g.styles,m=(0,n.useSearchParams)(),h=l()(m,1),a=h[0],E=(0,s.jsxs)("div",{className:t.actions,children:[(0,s.jsx)("a",{href:"",children:(0,s.jsx)(r.ZP,{size:"large",type:"primary",children:(0,s.jsx)("span",{children:"\u67E5\u770B\u90AE\u7BB1"})})}),(0,s.jsx)(n.Link,{to:"/",children:(0,s.jsx)(r.ZP,{size:"large",children:"\u8FD4\u56DE\u9996\u9875"})})]}),p=(a==null?void 0:a.get("account"))||"AntDesign@example.com";return(0,s.jsx)(o.ZP,{className:t.registerResult,status:"success",title:(0,s.jsx)("div",{className:t.title,children:(0,s.jsxs)("span",{children:["\u4F60\u7684\u8D26\u6237\uFF1A",p," \u6CE8\u518C\u6210\u529F"]})}),subTitle:"\u6FC0\u6D3B\u90AE\u4EF6\u5DF2\u53D1\u9001\u5230\u4F60\u7684\u90AE\u7BB1\u4E2D\uFF0C\u90AE\u4EF6\u6709\u6548\u671F\u4E3A24\u5C0F\u65F6\u3002\u8BF7\u53CA\u65F6\u767B\u5F55\u90AE\u7BB1\uFF0C\u70B9\u51FB\u90AE\u4EF6\u4E2D\u7684\u94FE\u63A5\u6FC0\u6D3B\u5E10\u6237\u3002",extra:E})},v=x}}]); diff --git a/p__user__register-result__index.94db21d3.async.js b/p__user__register-result__index.94db21d3.async.js deleted file mode 100644 index 9289a018..00000000 --- a/p__user__register-result__index.94db21d3.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2493],{97691:function(f,e,u){u.r(e),u.d(e,{default:function(){return v}});var i=u(28152),l=u.n(i),n=u(27533),r=u(47100),o=u(6053),A=u(50959),c=u(8700),d=(0,c.kc)(function(){return{registerResult:{width:"800px",minHeight:"400px",margin:"auto",padding:"80px",background:"none"},anticon:{fontSize:"64px"},title:{marginTop:"32px",fontSize:"20px",lineHeight:"28px"},actions:{marginTop:"40px","a + a":{marginLeft:"8px"}}}}),F=d,s=u(11527),x=function(){var g=F(),t=g.styles,m=(0,n.useSearchParams)(),h=l()(m,1),a=h[0],E=(0,s.jsxs)("div",{className:t.actions,children:[(0,s.jsx)("a",{href:"",children:(0,s.jsx)(r.ZP,{size:"large",type:"primary",children:(0,s.jsx)("span",{children:"\u67E5\u770B\u90AE\u7BB1"})})}),(0,s.jsx)(n.Link,{to:"/",children:(0,s.jsx)(r.ZP,{size:"large",children:"\u8FD4\u56DE\u9996\u9875"})})]}),p=(a==null?void 0:a.get("account"))||"AntDesign@example.com";return(0,s.jsx)(o.ZP,{className:t.registerResult,status:"success",title:(0,s.jsx)("div",{className:t.title,children:(0,s.jsxs)("span",{children:["\u4F60\u7684\u8D26\u6237\uFF1A",p," \u6CE8\u518C\u6210\u529F"]})}),subTitle:"\u6FC0\u6D3B\u90AE\u4EF6\u5DF2\u53D1\u9001\u5230\u4F60\u7684\u90AE\u7BB1\u4E2D\uFF0C\u90AE\u4EF6\u6709\u6548\u671F\u4E3A24\u5C0F\u65F6\u3002\u8BF7\u53CA\u65F6\u767B\u5F55\u90AE\u7BB1\uFF0C\u70B9\u51FB\u90AE\u4EF6\u4E2D\u7684\u94FE\u63A5\u6FC0\u6D3B\u5E10\u6237\u3002",extra:E})},v=x}}]); diff --git a/p__user__register__index.a4115c6a.async.js b/p__user__register__index.a4115c6a.async.js new file mode 100644 index 00000000..dcb06cb6 --- /dev/null +++ b/p__user__register__index.a4115c6a.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9907],{33974:function(te,y,e){e.d(y,{Z:function(){return b}});var r=e(21137),p=e(79685),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},m=P,O=e(83317),D=function(M,I){return p.createElement(O.Z,(0,r.Z)({},M,{ref:I,icon:m}))},b=p.forwardRef(D)},71449:function(te,y,e){e.d(y,{Z:function(){return b}});var r=e(21137),p=e(79685),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},m=P,O=e(83317),D=function(M,I){return p.createElement(O.Z,(0,r.Z)({},M,{ref:I,icon:m}))},b=p.forwardRef(D)},39601:function(te,y,e){e.r(y),e.d(y,{default:function(){return G}});var r=e(97380),p=e.n(r),P=e(8025),m=e(73952),O=e(76742),D=e(68852),b=e(40701),j=e(79714),M=e(8262),I=e(27097),C=e(61728),o=e(43241),i=e(10951),s=e(79685),u=e(29195),a=e.n(u),E=e(56717),T=e.n(E);function z(Q){return A.apply(this,arguments)}function A(){return A=T()(a()().mark(function Q(n){return a()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.request)("/api/register",{method:"POST",data:n}));case 1:case"end":return f.stop()}},Q)})),A.apply(this,arguments)}var W=e(24507),V=(0,W.kc)(function(Q){var n=Q.token;return{main:{width:"368px",margin:"0 auto",h3:{marginBottom:"20px",fontSize:"16px"}},password:{marginBottom:"24px",".ant-form-item-explain":{display:"none"}},getCaptcha:{display:"block",width:"100%"},footer:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},submit:{width:"50%"},success:{transition:"color 0.3s",color:n.colorSuccess},warning:{transition:"color 0.3s",color:n.colorWarning},error:{transition:"color 0.3s",color:n.colorError},"progress-pass > .progress":{".ant-progress-bg":{backgroundColor:n.colorWarning}}}}),L=V,t=e(63342),S=m.Z.Item,Z=O.Z.Option,fe={ok:"success",pass:"normal",poor:"exception"},me=function(){var n=L(),g=n.styles,f=(0,s.useState)(0),c=p()(f,2),v=c[0],B=c[1],k=(0,s.useState)(!1),F=p()(k,2),w=F[0],H=F[1],X=(0,s.useState)("86"),$=p()(X,2),ce=$[0],U=$[1],ne=(0,s.useState)(!1),re=p()(ne,2),ue=re[0],_=re[1],oe=!1,R,de={ok:(0,t.jsx)("div",{className:g.success,children:(0,t.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u5F3A"})}),pass:(0,t.jsx)("div",{className:g.warning,children:(0,t.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u4E2D"})}),poor:(0,t.jsx)("div",{className:g.error,children:(0,t.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u592A\u77ED"})})},se=m.Z.useForm(),N=p()(se,1),x=N[0];(0,s.useEffect)(function(){return function(){clearInterval(R)}},[R]);var q=function(){var d=59;B(d),R=window.setInterval(function(){d-=1,B(d),d===0&&clearInterval(R)},1e3)},Y=function(){var d=x.getFieldValue("password");return d&&d.length>9?"ok":d&&d.length>5?"pass":"poor"},ee=(0,P.useRequest)(z,{manual:!0,onSuccess:function(d,l){d.status==="ok"&&(D.ZP.success("\u6CE8\u518C\u6210\u529F\uFF01"),P.history.push({pathname:"/user/register-result?account=".concat(l[0].email)}))}}),ae=ee.loading,ge=ee.run,ve=function(d){ge(d)},ie=function(d,l){var h=Promise;return l&&l!==x.getFieldValue("password")?h.reject("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u5339\u914D!"):h.resolve()},J=function(d,l){var h=Promise;return l?(w||H(!!l),_(!ue),l.length<6?h.reject(""):(l&&oe&&x.validateFields(["confirm"]),h.resolve())):(H(!!l),h.reject("\u8BF7\u8F93\u5165\u5BC6\u7801!"))},pe=function(d){U(d)},he=function(){var d=x.getFieldValue("password"),l=Y();return d&&d.length?(0,t.jsx)("div",{className:g["progress-".concat(l)],children:(0,t.jsx)(b.Z,{status:fe[l],strokeWidth:6,percent:d.length*10>100?100:d.length*10,showInfo:!1})}):null};return(0,t.jsxs)("div",{className:g.main,children:[(0,t.jsx)("h3",{children:"\u6CE8\u518C"}),(0,t.jsxs)(m.Z,{form:x,name:"UserRegister",onFinish:ve,children:[(0,t.jsx)(S,{name:"email",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740!"},{type:"email",message:"\u90AE\u7BB1\u5730\u5740\u683C\u5F0F\u9519\u8BEF!"}],children:(0,t.jsx)(j.Z,{size:"large",placeholder:"\u90AE\u7BB1"})}),(0,t.jsx)(M.Z,{getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},content:w&&(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[de[Y()],he(),(0,t.jsx)("div",{style:{marginTop:10},children:(0,t.jsx)("span",{children:"\u8BF7\u81F3\u5C11\u8F93\u5165 6 \u4E2A\u5B57\u7B26\u3002\u8BF7\u4E0D\u8981\u4F7F\u7528\u5BB9\u6613\u88AB\u731C\u5230\u7684\u5BC6\u7801\u3002"})})]}),overlayStyle:{width:240},placement:"right",open:w,children:(0,t.jsx)(S,{name:"password",className:x.getFieldValue("password")&&x.getFieldValue("password").length>0&&g.password,rules:[{validator:J}],children:(0,t.jsx)(j.Z,{size:"large",type:"password",placeholder:"\u81F3\u5C116\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"})})}),(0,t.jsx)(S,{name:"confirm",rules:[{required:!0,message:"\u786E\u8BA4\u5BC6\u7801"},{validator:ie}],children:(0,t.jsx)(j.Z,{size:"large",type:"password",placeholder:"\u786E\u8BA4\u5BC6\u7801"})}),(0,t.jsx)(S,{name:"mobile",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7!"},{pattern:/^\d{11}$/,message:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF!"}],children:(0,t.jsxs)(I.Z.Compact,{style:{width:"100%"},children:[(0,t.jsxs)(O.Z,{size:"large",value:ce,onChange:pe,style:{width:"30%"},children:[(0,t.jsx)(Z,{value:"86",children:"+86"}),(0,t.jsx)(Z,{value:"87",children:"+87"})]}),(0,t.jsx)(j.Z,{size:"large",placeholder:"\u624B\u673A\u53F7"})]})}),(0,t.jsxs)(C.Z,{gutter:8,children:[(0,t.jsx)(o.Z,{span:16,children:(0,t.jsx)(S,{name:"captcha",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801!"}],children:(0,t.jsx)(j.Z,{size:"large",placeholder:"\u9A8C\u8BC1\u7801"})})}),(0,t.jsx)(o.Z,{span:8,children:(0,t.jsx)(i.ZP,{size:"large",disabled:!!v,className:g.getCaptcha,onClick:q,children:v?"".concat(v," s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"})})]}),(0,t.jsx)(S,{children:(0,t.jsxs)("div",{className:g.footer,children:[(0,t.jsx)(i.ZP,{size:"large",loading:ae,className:g.submit,type:"primary",htmlType:"submit",children:(0,t.jsx)("span",{children:"\u6CE8\u518C"})}),(0,t.jsx)(P.Link,{to:"/user/login",children:(0,t.jsx)("span",{children:"\u4F7F\u7528\u5DF2\u6709\u8D26\u6237\u767B\u5F55"})})]})})]})]})},G=me},48120:function(te,y,e){e.d(y,{Z:function(){return r}});const r=p=>p?typeof p=="function"?p():p:null},79714:function(te,y,e){e.d(y,{Z:function(){return Q}});var r=e(79685),p=e(68591),P=e.n(p),m=e(99248),O=e(56107),D=e(57873),j=n=>{const{getPrefixCls:g,direction:f}=(0,r.useContext)(m.E_),{prefixCls:c,className:v}=n,B=g("input-group",c),k=g("input"),[F,w]=(0,D.ZP)(k),H=P()(B,{[`${B}-lg`]:n.size==="large",[`${B}-sm`]:n.size==="small",[`${B}-compact`]:n.compact,[`${B}-rtl`]:f==="rtl"},w,v),X=(0,r.useContext)(O.aM),$=(0,r.useMemo)(()=>Object.assign(Object.assign({},X),{isFormItemInput:!1}),[X]);return F(r.createElement("span",{className:H,style:n.style,onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onFocus:n.onFocus,onBlur:n.onBlur},r.createElement(O.aM.Provider,{value:$},n.children)))},M=e(92006),I=e(33974),C=e(71449),o=e(3139),i=e(52401),s=e(86054),u=function(n,g){var f={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&g.indexOf(c)<0&&(f[c]=n[c]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,c=Object.getOwnPropertySymbols(n);vn?r.createElement(C.Z,null):r.createElement(I.Z,null),E={click:"onClick",hover:"onMouseOver"};var z=r.forwardRef((n,g)=>{const{visibilityToggle:f=!0}=n,c=typeof f=="object"&&f.visible!==void 0,[v,B]=(0,r.useState)(()=>c?f.visible:!1),k=(0,r.useRef)(null);r.useEffect(()=>{c&&B(f.visible)},[c,f]);const F=(0,s.Z)(k),w=()=>{const{disabled:se}=n;se||(v&&F(),B(N=>{var x;const q=!N;return typeof f=="object"&&((x=f.onVisibleChange)===null||x===void 0||x.call(f,q)),q}))},H=se=>{const{action:N="click",iconRender:x=a}=n,q=E[N]||"",Y=x(v),ee={[q]:w,className:`${se}-icon`,key:"passwordIcon",onMouseDown:ae=>{ae.preventDefault()},onMouseUp:ae=>{ae.preventDefault()}};return r.cloneElement(r.isValidElement(Y)?Y:r.createElement("span",null,Y),ee)},{className:X,prefixCls:$,inputPrefixCls:ce,size:U}=n,ne=u(n,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:re}=r.useContext(m.E_),ue=re("input",ce),_=re("input-password",$),oe=f&&H(_),R=P()(_,X,{[`${_}-${U}`]:!!U}),de=Object.assign(Object.assign({},(0,o.Z)(ne,["suffix","iconRender","visibilityToggle"])),{type:v?"text":"password",className:R,prefixCls:ue,suffix:oe});return U&&(de.size=U),r.createElement(M.Z,Object.assign({ref:(0,i.sQ)(g,k)},de))}),A=e(66907),W=e(23196),V=e(10951),L=e(73064),t=e(26490),S=function(n,g){var f={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&g.indexOf(c)<0&&(f[c]=n[c]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,c=Object.getOwnPropertySymbols(n);v{const{prefixCls:f,inputPrefixCls:c,className:v,size:B,suffix:k,enterButton:F=!1,addonAfter:w,loading:H,disabled:X,onSearch:$,onChange:ce,onCompositionStart:U,onCompositionEnd:ne}=n,re=S(n,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ue,direction:_}=r.useContext(m.E_),oe=r.useRef(!1),R=ue("input-search",f),de=ue("input",c),{compactSize:se}=(0,t.ri)(R,_),N=(0,L.Z)(l=>{var h;return(h=B!=null?B:se)!==null&&h!==void 0?h:l}),x=r.useRef(null),q=l=>{l&&l.target&&l.type==="click"&&$&&$(l.target.value,l,{source:"clear"}),ce&&ce(l)},Y=l=>{var h;document.activeElement===((h=x.current)===null||h===void 0?void 0:h.input)&&l.preventDefault()},ee=l=>{var h,le;$&&$((le=(h=x.current)===null||h===void 0?void 0:h.input)===null||le===void 0?void 0:le.value,l,{source:"input"})},ae=l=>{oe.current||H||ee(l)},ge=typeof F=="boolean"?r.createElement(A.Z,null):null,ve=`${R}-button`;let ie;const J=F||{},pe=J.type&&J.type.__ANT_BUTTON===!0;pe||J.type==="button"?ie=(0,W.Tm)(J,Object.assign({onMouseDown:Y,onClick:l=>{var h,le;(le=(h=J==null?void 0:J.props)===null||h===void 0?void 0:h.onClick)===null||le===void 0||le.call(h,l),ee(l)},key:"enterButton"},pe?{className:ve,size:N}:{})):ie=r.createElement(V.ZP,{className:ve,type:F?"primary":void 0,size:N,disabled:X,key:"enterButton",onMouseDown:Y,onClick:ee,loading:H,icon:ge},F),w&&(ie=[ie,(0,W.Tm)(w,{key:"addonAfter"})]);const he=P()(R,{[`${R}-rtl`]:_==="rtl",[`${R}-${N}`]:!!N,[`${R}-with-button`]:!!F},v),K=l=>{oe.current=!0,U==null||U(l)},d=l=>{oe.current=!1,ne==null||ne(l)};return r.createElement(M.Z,Object.assign({ref:(0,i.sQ)(x,g),onPressEnter:ae},re,{size:N,onCompositionStart:K,onCompositionEnd:d,prefixCls:de,addonAfter:ie,suffix:k,onChange:q,className:he,disabled:X}))}),me=e(51807);const G=M.Z;G.Group=j,G.Search=fe,G.TextArea=me.Z,G.Password=z;var Q=G},27796:function(te,y,e){var r=e(68591),p=e.n(r),P=e(9832),m=e(79685),O=e(99248),D=e(48120),b=e(52060),j=function(o,i){var s={};for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&i.indexOf(u)<0&&(s[u]=o[u]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,u=Object.getOwnPropertySymbols(o);a{if(!(!i&&!s))return m.createElement(m.Fragment,null,i&&m.createElement("div",{className:`${o}-title`},(0,D.Z)(i)),m.createElement("div",{className:`${o}-inner-content`},(0,D.Z)(s)))},I=o=>{const{hashId:i,prefixCls:s,className:u,style:a,placement:E="top",title:T,content:z,children:A}=o;return m.createElement("div",{className:p()(i,s,`${s}-pure`,`${s}-placement-${E}`,u),style:a},m.createElement("div",{className:`${s}-arrow`}),m.createElement(P.G,Object.assign({},o,{className:i,prefixCls:s}),A||M(s,T,z)))},C=o=>{const{prefixCls:i}=o,s=j(o,["prefixCls"]),{getPrefixCls:u}=m.useContext(O.E_),a=u("popover",i),[E,T]=(0,b.Z)(a);return E(m.createElement(I,Object.assign({},s,{prefixCls:a,hashId:T})))};y.ZP=C},8262:function(te,y,e){var r=e(79685),p=e(68591),P=e.n(p),m=e(48120),O=e(4477),D=e(99248),b=e(58898),j=e(27796),M=e(52060),I=function(i,s){var u={};for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.indexOf(a)<0&&(u[a]=i[a]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,a=Object.getOwnPropertySymbols(i);E{let{title:s,content:u,prefixCls:a}=i;return r.createElement(r.Fragment,null,s&&r.createElement("div",{className:`${a}-title`},(0,m.Z)(s)),r.createElement("div",{className:`${a}-inner-content`},(0,m.Z)(u)))},o=r.forwardRef((i,s)=>{const{prefixCls:u,title:a,content:E,overlayClassName:T,placement:z="top",trigger:A="hover",mouseEnterDelay:W=.1,mouseLeaveDelay:V=.1,overlayStyle:L={}}=i,t=I(i,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:S}=r.useContext(D.E_),Z=S("popover",u),[fe,me]=(0,M.Z)(Z),G=S(),Q=P()(T,me);return fe(r.createElement(b.Z,Object.assign({placement:z,trigger:A,mouseEnterDelay:W,mouseLeaveDelay:V,overlayStyle:L},t,{prefixCls:Z,overlayClassName:Q,ref:s,overlay:a||E?r.createElement(C,{prefixCls:Z,title:a,content:E}):null,transitionName:(0,O.m)(G,"zoom-big",t.transitionName),"data-popover-inject":!0})))});o._InternalPanelDoNotUseOrYouWillBeFired=j.ZP,y.Z=o},52060:function(te,y,e){var r=e(4614),p=e(41606),P=e(97112),m=e(53060),O=e(44244),D=e(25830),b=e(99703);const j=C=>{const{componentCls:o,popoverColor:i,titleMinWidth:s,fontWeightStrong:u,innerPadding:a,boxShadowSecondary:E,colorTextHeading:T,borderRadiusLG:z,zIndexPopup:A,titleMarginBottom:W,colorBgElevated:V,popoverBg:L,titleBorderBottom:t,innerContentPadding:S,titlePadding:Z}=C;return[{[o]:Object.assign(Object.assign({},(0,r.Wf)(C)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:A,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":V,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${o}-content`]:{position:"relative"},[`${o}-inner`]:{backgroundColor:L,backgroundClip:"padding-box",borderRadius:z,boxShadow:E,padding:a},[`${o}-title`]:{minWidth:s,marginBottom:W,color:T,fontWeight:u,borderBottom:t,padding:Z},[`${o}-inner-content`]:{color:i,padding:S}})},(0,P.ZP)(C,"var(--antd-arrow-background-color)"),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:C.sizePopupArrow,display:"inline-block",[`${o}-content`]:{display:"inline-block"}}}]},M=C=>{const{componentCls:o}=C;return{[o]:m.i.map(i=>{const s=C[`${i}6`];return{[`&${o}-${i}`]:{"--antd-arrow-background-color":s,[`${o}-inner`]:{backgroundColor:s},[`${o}-arrow`]:{background:"transparent"}}}})}},I=C=>{const{lineWidth:o,controlHeight:i,fontHeight:s,padding:u,wireframe:a,zIndexPopupBase:E,borderRadiusLG:T,marginXS:z,lineType:A,colorSplit:W,paddingSM:V}=C,L=i-s,t=L/2,S=L/2-o,Z=u;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:E+30},(0,b.w)(C)),(0,P.wZ)({contentRadius:T,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:z,titlePadding:a?`${t}px ${Z}px ${S}px`:0,titleBorderBottom:a?`${o}px ${A} ${W}`:"none",innerContentPadding:a?`${V}px ${Z}px`:0})};y.Z=(0,O.I$)("Popover",C=>{const{colorBgElevated:o,colorText:i}=C,s=(0,D.TS)(C,{popoverBg:o,popoverColor:i});return[j(s),M(s),(0,p._y)(s,"zoom-big")]},I,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/p__user__register__index.e9b2c1b4.async.js b/p__user__register__index.e9b2c1b4.async.js deleted file mode 100644 index c2c880fe..00000000 --- a/p__user__register__index.e9b2c1b4.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9907],{57249:function(te,x,e){e.d(x,{Z:function(){return b}});var r=e(38126),p=e(50959),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},m=P,O=e(38782),D=function(M,I){return p.createElement(O.Z,(0,r.Z)({},M,{ref:I,icon:m}))},b=p.forwardRef(D)},96527:function(te,x,e){e.d(x,{Z:function(){return b}});var r=e(38126),p=e(50959),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},m=P,O=e(38782),D=function(M,I){return p.createElement(O.Z,(0,r.Z)({},M,{ref:I,icon:m}))},b=p.forwardRef(D)},95919:function(te,x,e){e.r(x),e.d(x,{default:function(){return G}});var r=e(28152),p=e.n(r),P=e(27533),m=e(67190),O=e(32413),D=e(52497),b=e(17519),j=e(33952),M=e(82757),I=e(75200),C=e(23870),o=e(82099),l=e(47100),s=e(50959),u=e(13448),a=e.n(u),E=e(74815),T=e.n(E);function z(Q){return A.apply(this,arguments)}function A(){return A=T()(a()().mark(function Q(n){return a()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.request)("/api/register",{method:"POST",data:n}));case 1:case"end":return f.stop()}},Q)})),A.apply(this,arguments)}var W=e(8700),V=(0,W.kc)(function(Q){var n=Q.token;return{main:{width:"368px",margin:"0 auto",h3:{marginBottom:"20px",fontSize:"16px"}},password:{marginBottom:"24px",".ant-form-item-explain":{display:"none"}},getCaptcha:{display:"block",width:"100%"},footer:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},submit:{width:"50%"},success:{transition:"color 0.3s",color:n.colorSuccess},warning:{transition:"color 0.3s",color:n.colorWarning},error:{transition:"color 0.3s",color:n.colorError},"progress-pass > .progress":{".ant-progress-bg":{backgroundColor:n.colorWarning}}}}),L=V,t=e(11527),S=m.Z.Item,Z=O.default.Option,fe={ok:"success",pass:"normal",poor:"exception"},me=function(){var n=L(),g=n.styles,f=(0,s.useState)(0),c=p()(f,2),v=c[0],B=c[1],k=(0,s.useState)(!1),F=p()(k,2),w=F[0],H=F[1],X=(0,s.useState)("86"),$=p()(X,2),ce=$[0],U=$[1],ne=(0,s.useState)(!1),re=p()(ne,2),ue=re[0],_=re[1],oe=!1,R,de={ok:(0,t.jsx)("div",{className:g.success,children:(0,t.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u5F3A"})}),pass:(0,t.jsx)("div",{className:g.warning,children:(0,t.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u4E2D"})}),poor:(0,t.jsx)("div",{className:g.error,children:(0,t.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u592A\u77ED"})})},se=m.Z.useForm(),N=p()(se,1),y=N[0];(0,s.useEffect)(function(){return function(){clearInterval(R)}},[R]);var q=function(){var d=59;B(d),R=window.setInterval(function(){d-=1,B(d),d===0&&clearInterval(R)},1e3)},Y=function(){var d=y.getFieldValue("password");return d&&d.length>9?"ok":d&&d.length>5?"pass":"poor"},ee=(0,P.useRequest)(z,{manual:!0,onSuccess:function(d,i){d.status==="ok"&&(D.ZP.success("\u6CE8\u518C\u6210\u529F\uFF01"),P.history.push({pathname:"/user/register-result?account=".concat(i[0].email)}))}}),ae=ee.loading,ge=ee.run,ve=function(d){ge(d)},le=function(d,i){var h=Promise;return i&&i!==y.getFieldValue("password")?h.reject("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u5339\u914D!"):h.resolve()},J=function(d,i){var h=Promise;return i?(w||H(!!i),_(!ue),i.length<6?h.reject(""):(i&&oe&&y.validateFields(["confirm"]),h.resolve())):(H(!!i),h.reject("\u8BF7\u8F93\u5165\u5BC6\u7801!"))},pe=function(d){U(d)},he=function(){var d=y.getFieldValue("password"),i=Y();return d&&d.length?(0,t.jsx)("div",{className:g["progress-".concat(i)],children:(0,t.jsx)(b.Z,{status:fe[i],strokeWidth:6,percent:d.length*10>100?100:d.length*10,showInfo:!1})}):null};return(0,t.jsxs)("div",{className:g.main,children:[(0,t.jsx)("h3",{children:"\u6CE8\u518C"}),(0,t.jsxs)(m.Z,{form:y,name:"UserRegister",onFinish:ve,children:[(0,t.jsx)(S,{name:"email",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740!"},{type:"email",message:"\u90AE\u7BB1\u5730\u5740\u683C\u5F0F\u9519\u8BEF!"}],children:(0,t.jsx)(j.Z,{size:"large",placeholder:"\u90AE\u7BB1"})}),(0,t.jsx)(M.Z,{getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},content:w&&(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[de[Y()],he(),(0,t.jsx)("div",{style:{marginTop:10},children:(0,t.jsx)("span",{children:"\u8BF7\u81F3\u5C11\u8F93\u5165 6 \u4E2A\u5B57\u7B26\u3002\u8BF7\u4E0D\u8981\u4F7F\u7528\u5BB9\u6613\u88AB\u731C\u5230\u7684\u5BC6\u7801\u3002"})})]}),overlayStyle:{width:240},placement:"right",open:w,children:(0,t.jsx)(S,{name:"password",className:y.getFieldValue("password")&&y.getFieldValue("password").length>0&&g.password,rules:[{validator:J}],children:(0,t.jsx)(j.Z,{size:"large",type:"password",placeholder:"\u81F3\u5C116\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"})})}),(0,t.jsx)(S,{name:"confirm",rules:[{required:!0,message:"\u786E\u8BA4\u5BC6\u7801"},{validator:le}],children:(0,t.jsx)(j.Z,{size:"large",type:"password",placeholder:"\u786E\u8BA4\u5BC6\u7801"})}),(0,t.jsx)(S,{name:"mobile",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7!"},{pattern:/^\d{11}$/,message:"\u624B\u673A\u53F7\u683C\u5F0F\u9519\u8BEF!"}],children:(0,t.jsxs)(I.Z.Compact,{style:{width:"100%"},children:[(0,t.jsxs)(O.default,{size:"large",value:ce,onChange:pe,style:{width:"30%"},children:[(0,t.jsx)(Z,{value:"86",children:"+86"}),(0,t.jsx)(Z,{value:"87",children:"+87"})]}),(0,t.jsx)(j.Z,{size:"large",placeholder:"\u624B\u673A\u53F7"})]})}),(0,t.jsxs)(C.Z,{gutter:8,children:[(0,t.jsx)(o.Z,{span:16,children:(0,t.jsx)(S,{name:"captcha",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801!"}],children:(0,t.jsx)(j.Z,{size:"large",placeholder:"\u9A8C\u8BC1\u7801"})})}),(0,t.jsx)(o.Z,{span:8,children:(0,t.jsx)(l.ZP,{size:"large",disabled:!!v,className:g.getCaptcha,onClick:q,children:v?"".concat(v," s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"})})]}),(0,t.jsx)(S,{children:(0,t.jsxs)("div",{className:g.footer,children:[(0,t.jsx)(l.ZP,{size:"large",loading:ae,className:g.submit,type:"primary",htmlType:"submit",children:(0,t.jsx)("span",{children:"\u6CE8\u518C"})}),(0,t.jsx)(P.Link,{to:"/user/login",children:(0,t.jsx)("span",{children:"\u4F7F\u7528\u5DF2\u6709\u8D26\u6237\u767B\u5F55"})})]})})]})]})},G=me},99513:function(te,x,e){e.d(x,{Z:function(){return r}});const r=p=>p?typeof p=="function"?p():p:null},33952:function(te,x,e){e.d(x,{Z:function(){return Q}});var r=e(50959),p=e(84875),P=e.n(p),m=e(31594),O=e(1415),D=e(55904),j=n=>{const{getPrefixCls:g,direction:f}=(0,r.useContext)(m.E_),{prefixCls:c,className:v}=n,B=g("input-group",c),k=g("input"),[F,w]=(0,D.ZP)(k),H=P()(B,{[`${B}-lg`]:n.size==="large",[`${B}-sm`]:n.size==="small",[`${B}-compact`]:n.compact,[`${B}-rtl`]:f==="rtl"},w,v),X=(0,r.useContext)(O.aM),$=(0,r.useMemo)(()=>Object.assign(Object.assign({},X),{isFormItemInput:!1}),[X]);return F(r.createElement("span",{className:H,style:n.style,onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onFocus:n.onFocus,onBlur:n.onBlur},r.createElement(O.aM.Provider,{value:$},n.children)))},M=e(21626),I=e(57249),C=e(96527),o=e(87017),l=e(12602),s=e(59647),u=function(n,g){var f={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&g.indexOf(c)<0&&(f[c]=n[c]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,c=Object.getOwnPropertySymbols(n);vn?r.createElement(C.Z,null):r.createElement(I.Z,null),E={click:"onClick",hover:"onMouseOver"};var z=r.forwardRef((n,g)=>{const{visibilityToggle:f=!0}=n,c=typeof f=="object"&&f.visible!==void 0,[v,B]=(0,r.useState)(()=>c?f.visible:!1),k=(0,r.useRef)(null);r.useEffect(()=>{c&&B(f.visible)},[c,f]);const F=(0,s.Z)(k),w=()=>{const{disabled:se}=n;se||(v&&F(),B(N=>{var y;const q=!N;return typeof f=="object"&&((y=f.onVisibleChange)===null||y===void 0||y.call(f,q)),q}))},H=se=>{const{action:N="click",iconRender:y=a}=n,q=E[N]||"",Y=y(v),ee={[q]:w,className:`${se}-icon`,key:"passwordIcon",onMouseDown:ae=>{ae.preventDefault()},onMouseUp:ae=>{ae.preventDefault()}};return r.cloneElement(r.isValidElement(Y)?Y:r.createElement("span",null,Y),ee)},{className:X,prefixCls:$,inputPrefixCls:ce,size:U}=n,ne=u(n,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:re}=r.useContext(m.E_),ue=re("input",ce),_=re("input-password",$),oe=f&&H(_),R=P()(_,X,{[`${_}-${U}`]:!!U}),de=Object.assign(Object.assign({},(0,o.Z)(ne,["suffix","iconRender","visibilityToggle"])),{type:v?"text":"password",className:R,prefixCls:ue,suffix:oe});return U&&(de.size=U),r.createElement(M.Z,Object.assign({ref:(0,l.sQ)(g,k)},de))}),A=e(61020),W=e(94914),V=e(47100),L=e(17436),t=e(21130),S=function(n,g){var f={};for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&g.indexOf(c)<0&&(f[c]=n[c]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,c=Object.getOwnPropertySymbols(n);v{const{prefixCls:f,inputPrefixCls:c,className:v,size:B,suffix:k,enterButton:F=!1,addonAfter:w,loading:H,disabled:X,onSearch:$,onChange:ce,onCompositionStart:U,onCompositionEnd:ne}=n,re=S(n,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ue,direction:_}=r.useContext(m.E_),oe=r.useRef(!1),R=ue("input-search",f),de=ue("input",c),{compactSize:se}=(0,t.ri)(R,_),N=(0,L.Z)(i=>{var h;return(h=B!=null?B:se)!==null&&h!==void 0?h:i}),y=r.useRef(null),q=i=>{i&&i.target&&i.type==="click"&&$&&$(i.target.value,i,{source:"clear"}),ce&&ce(i)},Y=i=>{var h;document.activeElement===((h=y.current)===null||h===void 0?void 0:h.input)&&i.preventDefault()},ee=i=>{var h,ie;$&&$((ie=(h=y.current)===null||h===void 0?void 0:h.input)===null||ie===void 0?void 0:ie.value,i,{source:"input"})},ae=i=>{oe.current||H||ee(i)},ge=typeof F=="boolean"?r.createElement(A.Z,null):null,ve=`${R}-button`;let le;const J=F||{},pe=J.type&&J.type.__ANT_BUTTON===!0;pe||J.type==="button"?le=(0,W.Tm)(J,Object.assign({onMouseDown:Y,onClick:i=>{var h,ie;(ie=(h=J==null?void 0:J.props)===null||h===void 0?void 0:h.onClick)===null||ie===void 0||ie.call(h,i),ee(i)},key:"enterButton"},pe?{className:ve,size:N}:{})):le=r.createElement(V.ZP,{className:ve,type:F?"primary":void 0,size:N,disabled:X,key:"enterButton",onMouseDown:Y,onClick:ee,loading:H,icon:ge},F),w&&(le=[le,(0,W.Tm)(w,{key:"addonAfter"})]);const he=P()(R,{[`${R}-rtl`]:_==="rtl",[`${R}-${N}`]:!!N,[`${R}-with-button`]:!!F},v),K=i=>{oe.current=!0,U==null||U(i)},d=i=>{oe.current=!1,ne==null||ne(i)};return r.createElement(M.Z,Object.assign({ref:(0,l.sQ)(y,g),onPressEnter:ae},re,{size:N,onCompositionStart:K,onCompositionEnd:d,prefixCls:de,addonAfter:le,suffix:k,onChange:q,className:he,disabled:X}))}),me=e(15714);const G=M.Z;G.Group=j,G.Search=fe,G.TextArea=me.Z,G.Password=z;var Q=G},58889:function(te,x,e){e.d(x,{t5:function(){return I}});var r=e(84875),p=e.n(r),P=e(78505),m=e(50959),O=e(31594),D=e(99513),b=e(10153),j=function(o,l){var s={};for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&l.indexOf(u)<0&&(s[u]=o[u]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,u=Object.getOwnPropertySymbols(o);a{if(!(!l&&!s))return m.createElement(m.Fragment,null,l&&m.createElement("div",{className:`${o}-title`},(0,D.Z)(l)),m.createElement("div",{className:`${o}-inner-content`},(0,D.Z)(s)))},I=o=>{const{hashId:l,prefixCls:s,className:u,style:a,placement:E="top",title:T,content:z,children:A}=o;return m.createElement("div",{className:p()(l,s,`${s}-pure`,`${s}-placement-${E}`,u),style:a},m.createElement("div",{className:`${s}-arrow`}),m.createElement(P.G,Object.assign({},o,{className:l,prefixCls:s}),A||M(s,T,z)))},C=o=>{const{prefixCls:l}=o,s=j(o,["prefixCls"]),{getPrefixCls:u}=m.useContext(O.E_),a=u("popover",l),[E,T]=(0,b.Z)(a);return E(m.createElement(I,Object.assign({},s,{prefixCls:a,hashId:T})))};x.ZP=C},82757:function(te,x,e){var r=e(50959),p=e(84875),P=e.n(p),m=e(99513),O=e(58351),D=e(31594),b=e(32618),j=e(58889),M=e(10153),I=function(l,s){var u={};for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&s.indexOf(a)<0&&(u[a]=l[a]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var E=0,a=Object.getOwnPropertySymbols(l);E{let{title:s,content:u,prefixCls:a}=l;return r.createElement(r.Fragment,null,s&&r.createElement("div",{className:`${a}-title`},(0,m.Z)(s)),r.createElement("div",{className:`${a}-inner-content`},(0,m.Z)(u)))},o=r.forwardRef((l,s)=>{const{prefixCls:u,title:a,content:E,overlayClassName:T,placement:z="top",trigger:A="hover",mouseEnterDelay:W=.1,mouseLeaveDelay:V=.1,overlayStyle:L={}}=l,t=I(l,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:S}=r.useContext(D.E_),Z=S("popover",u),[fe,me]=(0,M.Z)(Z),G=S(),Q=P()(T,me);return fe(r.createElement(b.Z,Object.assign({placement:z,trigger:A,mouseEnterDelay:W,mouseLeaveDelay:V,overlayStyle:L},t,{prefixCls:Z,overlayClassName:Q,ref:s,overlay:a||E?r.createElement(C,{prefixCls:Z,title:a,content:E}):null,transitionName:(0,O.m)(G,"zoom-big",t.transitionName),"data-popover-inject":!0})))});o._InternalPanelDoNotUseOrYouWillBeFired=j.ZP,x.Z=o},10153:function(te,x,e){var r=e(6301),p=e(37747),P=e(42268),m=e(72270),O=e(81501),D=e(90467),b=e(22297);const j=C=>{const{componentCls:o,popoverColor:l,titleMinWidth:s,fontWeightStrong:u,innerPadding:a,boxShadowSecondary:E,colorTextHeading:T,borderRadiusLG:z,zIndexPopup:A,titleMarginBottom:W,colorBgElevated:V,popoverBg:L,titleBorderBottom:t,innerContentPadding:S,titlePadding:Z}=C;return[{[o]:Object.assign(Object.assign({},(0,r.Wf)(C)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:A,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":V,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${o}-content`]:{position:"relative"},[`${o}-inner`]:{backgroundColor:L,backgroundClip:"padding-box",borderRadius:z,boxShadow:E,padding:a},[`${o}-title`]:{minWidth:s,marginBottom:W,color:T,fontWeight:u,borderBottom:t,padding:Z},[`${o}-inner-content`]:{color:l,padding:S}})},(0,P.ZP)(C,"var(--antd-arrow-background-color)"),{[`${o}-pure`]:{position:"relative",maxWidth:"none",margin:C.sizePopupArrow,display:"inline-block",[`${o}-content`]:{display:"inline-block"}}}]},M=C=>{const{componentCls:o}=C;return{[o]:m.i.map(l=>{const s=C[`${l}6`];return{[`&${o}-${l}`]:{"--antd-arrow-background-color":s,[`${o}-inner`]:{backgroundColor:s},[`${o}-arrow`]:{background:"transparent"}}}})}},I=C=>{const{lineWidth:o,controlHeight:l,fontHeight:s,padding:u,wireframe:a,zIndexPopupBase:E,borderRadiusLG:T,marginXS:z,lineType:A,colorSplit:W,paddingSM:V}=C,L=l-s,t=L/2,S=L/2-o,Z=u;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:E+30},(0,b.w)(C)),(0,P.wZ)({contentRadius:T,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:z,titlePadding:a?`${t}px ${Z}px ${S}px`:0,titleBorderBottom:a?`${o}px ${A} ${W}`:"none",innerContentPadding:a?`${V}px ${Z}px`:0})};x.Z=(0,O.I$)("Popover",C=>{const{colorBgElevated:o,colorText:l}=C,s=(0,D.TS)(C,{popoverBg:o,popoverColor:l});return[j(s),M(s),(0,p._y)(s,"zoom-big")]},I,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/t__plugin-layout__Layout.700a6c97.async.js b/t__plugin-layout__Layout.700a6c97.async.js new file mode 100644 index 00000000..ec5e1546 --- /dev/null +++ b/t__plugin-layout__Layout.700a6c97.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{35186:function(ot,A,i){i.r(A),i.d(A,{default:function(){return q}});var N=i(97380),Z=i.n(N),D=i(31013),I=i.n(D),z=i(42329),g=i.n(z),E=i(6419),W=i.n(E),f=i(8025),$=i(79685),H=i(32942),t=i(63342),P=function(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),(0,t.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),(0,t.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),(0,t.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),(0,t.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,t.jsx)("g",{transform:"translate(-20 -20)",children:(0,t.jsx)("g",{transform:"translate(20 20)",children:(0,t.jsxs)("g",{children:[(0,t.jsxs)("g",{fillRule:"nonzero",children:[(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{fill:"url(#linearGradient-1)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z"}),(0,t.jsx)("path",{fill:"url(#linearGradient-2)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z"})]}),(0,t.jsx)("path",{fill:"url(#linearGradient-3)",d:"M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z"})]}),(0,t.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},B=P,O=i(94154),T=i(10951),b=function(n){var l,o;return!n.route&&(n.noFound||n.notFound)||((l=n.route)===null||l===void 0?void 0:l.unaccessible)&&(n.unAccessible||n.noAccessible)||(!n.route||((o=n.route)===null||o===void 0?void 0:o.unaccessible))&&(0,t.jsx)(O.ZP,{status:n.route?"403":"404",title:n.route?"403":"404",subTitle:n.route?"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762":"\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",extra:(0,t.jsx)(T.ZP,{type:"primary",onClick:function(){return f.history.push("/")},children:"\u8FD4\u56DE\u9996\u9875"})})||n.children},K=b,k=i(61030),U=i(2219),y=i(91509),p=i(97034),V=i(37741),X=i(74825),R=i(20482);function Y(a){var n,l;if(a.runtimeConfig.rightRender)return a.runtimeConfig.rightRender(a.initialState,a.setInitialState,a.runtimeConfig);var o=(0,t.jsxs)("span",{className:"umi-plugin-layout-action",children:[(0,t.jsx)(k.C,{size:"small",className:"umi-plugin-layout-avatar",src:((n=a.initialState)===null||n===void 0?void 0:n.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,t.jsx)("span",{className:"umi-plugin-layout-name",children:(l=a.initialState)===null||l===void 0?void 0:l.name})]});if(a.loading)return(0,t.jsx)("div",{className:"umi-plugin-layout-right",children:(0,t.jsx)(U.Z,{size:"small",style:{marginLeft:8,marginRight:8}})});var c={className:"umi-plugin-layout-menu",selectedKeys:[],items:[{key:"logout",label:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X.Z,{}),"\u9000\u51FA\u767B\u5F55"]}),onClick:function(){var s,h;a==null||(s=a.runtimeConfig)===null||s===void 0||(h=s.logout)===null||h===void 0||h.call(s,a.initialState)}}]},v;return y.Z.startsWith("5.")||y.Z.startsWith("4.24.")?v={menu:c}:y.Z.startsWith("3.")?v={overlay:(0,t.jsx)(p.Z,{children:c.items.map(function(d){return(0,t.jsx)(p.Z.Item,{onClick:d.onClick,children:d.label},d.key)})})}:v={overlay:(0,t.jsx)(p.Z,g()({},c))},(0,t.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[a.runtimeConfig.logout?(0,t.jsx)(V.Z,g()(g()({},v),{},{overlayClassName:"umi-plugin-layout-container",children:o})):o,(0,t.jsx)(R.pD,{})]})}var F=i(38972),J=i(44607),Q=function a(n,l){if(n.length===0)return[];var o=[],c=W()(n),v;try{for(c.s();!(v=c.n()).done;){var d=v.value,s=g()({},d);l(d)?Array.isArray(s.routes)&&o.push.apply(o,I()(a(s.routes,l))):(Array.isArray(s.children)&&(s.children=a(s.children,l),s.routes=s.children),o.push(s))}}catch(h){c.e(h)}finally{c.f()}return o},w=function a(n){return n.length===0?[]:n.map(function(l){var o=g()({},l);return l.originPath&&(o.path=l.originPath),Array.isArray(l.routes)&&(o.routes=a(l.routes)),Array.isArray(l.children)&&(o.children=a(l.children)),o})},q=function(a){var n=(0,f.useLocation)(),l=(0,f.useNavigate)(),o=(0,f.useAppData)(),c=o.clientRoutes,v=o.pluginManager,d=F.t&&(0,F.t)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},s=d.initialState,h=d.loading,S=d.setInitialState,x={locale:!0,navTheme:"light",colorPrimary:"#1890ff",layout:"mix",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,colorWeak:!1,title:"Ant Design Pro",pwa:!0,logo:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg",iconfontUrl:"",token:{}},_=(0,R.YB)(),tt=_.formatMessage,r=v.applyPlugins({key:"layout",type:"modify",initialValue:g()({},d)}),nt=Q(c.filter(function(u){return u.id==="ant-design-pro-layout"}),function(u){return!!u.isLayout&&u.id!=="ant-design-pro-layout"||!!u.isWrapper}),it=(0,J.Mf)(w(nt)),at=Z()(it,1),M=at[0],et=(0,$.useMemo)(function(){var u,e;return(u=(0,f.matchRoutes)(M.children,n.pathname))===null||u===void 0||(e=u.pop)===null||e===void 0||(e=e.call(u))===null||e===void 0?void 0:e.route},[n.pathname]);return(0,t.jsx)(H.f,g()(g()({route:M,location:n,title:x.title||"plugin-layout",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(e){e.stopPropagation(),e.preventDefault(),l("/")},formatMessage:x.formatMessage||tt,menu:{locale:x.locale},logo:B,menuItemRender:function(e,m){return e.isUrl||e.children?m:e.path&&n.pathname!==e.path?(0,t.jsx)(f.Link,{to:e.path.replace("/*",""),target:e.target,children:m}):m},itemRender:function(e,m,L){var lt=e.breadcrumbName,rt=e.title,j=e.path,G=rt||lt,C=L[L.length-1];return C&&(C.path===j||C.linkPath===j)?(0,t.jsx)("span",{children:G}):(0,t.jsx)(f.Link,{to:j,children:G})},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},r),{},{rightContentRender:r.rightContentRender!==!1&&function(u){var e=Y({runtimeConfig:r,loading:h,initialState:s,setInitialState:S});return r.rightContentRender?r.rightContentRender(u,e,{userConfig:x,runtimeConfig:r,loading:h,initialState:s,setInitialState:S}):e},children:(0,t.jsx)(K,{route:et,noFound:r==null?void 0:r.noFound,notFound:r==null?void 0:r.notFound,unAccessible:r==null?void 0:r.unAccessible,noAccessible:r==null?void 0:r.noAccessible,children:r.childrenRender?r.childrenRender((0,t.jsx)(f.Outlet,{}),a):(0,t.jsx)(f.Outlet,{})})}))}}}]); diff --git a/t__plugin-layout__Layout.afeb489b.async.js b/t__plugin-layout__Layout.afeb489b.async.js deleted file mode 100644 index f2e7a222..00000000 --- a/t__plugin-layout__Layout.afeb489b.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{80486:function(ot,A,i){i.r(A),i.d(A,{default:function(){return q}});var N=i(28152),Z=i.n(N),D=i(67855),I=i.n(D),z=i(77117),g=i.n(z),E=i(38887),W=i.n(E),f=i(27533),$=i(50959),H=i(45730),t=i(11527),P=function(){return(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 200 200",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"linearGradient-1",x1:"62.102%",x2:"108.197%",y1:"0%",y2:"37.864%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#4285EB"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#2EC7FF"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-2",x1:"69.644%",x2:"54.043%",y1:"0%",y2:"108.457%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#29CDFF"}),(0,t.jsx)("stop",{offset:"37.86%",stopColor:"#148EFF"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#0A60FF"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-3",x1:"69.691%",x2:"16.723%",y1:"-12.974%",y2:"117.391%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FA816E"}),(0,t.jsx)("stop",{offset:"41.473%",stopColor:"#F74A5C"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]}),(0,t.jsxs)("linearGradient",{id:"linearGradient-4",x1:"68.128%",x2:"30.44%",y1:"-35.691%",y2:"114.943%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#FA8E7D"}),(0,t.jsx)("stop",{offset:"51.264%",stopColor:"#F74A5C"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#F51D2C"})]})]}),(0,t.jsx)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:(0,t.jsx)("g",{transform:"translate(-20 -20)",children:(0,t.jsx)("g",{transform:"translate(20 20)",children:(0,t.jsxs)("g",{children:[(0,t.jsxs)("g",{fillRule:"nonzero",children:[(0,t.jsxs)("g",{children:[(0,t.jsx)("path",{fill:"url(#linearGradient-1)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z"}),(0,t.jsx)("path",{fill:"url(#linearGradient-2)",d:"M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z"})]}),(0,t.jsx)("path",{fill:"url(#linearGradient-3)",d:"M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z"})]}),(0,t.jsx)("ellipse",{cx:"100.519",cy:"100.437",fill:"url(#linearGradient-4)",rx:"23.6",ry:"23.581"})]})})})})]})},B=P,O=i(6053),T=i(47100),b=function(n){var l,o;return!n.route&&(n.noFound||n.notFound)||((l=n.route)===null||l===void 0?void 0:l.unaccessible)&&(n.unAccessible||n.noAccessible)||(!n.route||((o=n.route)===null||o===void 0?void 0:o.unaccessible))&&(0,t.jsx)(O.ZP,{status:n.route?"403":"404",title:n.route?"403":"404",subTitle:n.route?"\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762":"\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",extra:(0,t.jsx)(T.ZP,{type:"primary",onClick:function(){return f.history.push("/")},children:"\u8FD4\u56DE\u9996\u9875"})})||n.children},K=b,k=i(21757),U=i(38705),y=i(63945),p=i(62737),V=i(10591),X=i(63369),R=i(73296);function Y(a){var n,l;if(a.runtimeConfig.rightRender)return a.runtimeConfig.rightRender(a.initialState,a.setInitialState,a.runtimeConfig);var o=(0,t.jsxs)("span",{className:"umi-plugin-layout-action",children:[(0,t.jsx)(k.C,{size:"small",className:"umi-plugin-layout-avatar",src:((n=a.initialState)===null||n===void 0?void 0:n.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,t.jsx)("span",{className:"umi-plugin-layout-name",children:(l=a.initialState)===null||l===void 0?void 0:l.name})]});if(a.loading)return(0,t.jsx)("div",{className:"umi-plugin-layout-right",children:(0,t.jsx)(U.Z,{size:"small",style:{marginLeft:8,marginRight:8}})});var c={className:"umi-plugin-layout-menu",selectedKeys:[],items:[{key:"logout",label:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X.Z,{}),"\u9000\u51FA\u767B\u5F55"]}),onClick:function(){var s,h;a==null||(s=a.runtimeConfig)===null||s===void 0||(h=s.logout)===null||h===void 0||h.call(s,a.initialState)}}]},v;return y.Z.startsWith("5.")||y.Z.startsWith("4.24.")?v={menu:c}:y.Z.startsWith("3.")?v={overlay:(0,t.jsx)(p.Z,{children:c.items.map(function(d){return(0,t.jsx)(p.Z.Item,{onClick:d.onClick,children:d.label},d.key)})})}:v={overlay:(0,t.jsx)(p.Z,g()({},c))},(0,t.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[a.runtimeConfig.logout?(0,t.jsx)(V.Z,g()(g()({},v),{},{overlayClassName:"umi-plugin-layout-container",children:o})):o,(0,t.jsx)(R.pD,{})]})}var F=i(13882),J=i(35265),Q=function a(n,l){if(n.length===0)return[];var o=[],c=W()(n),v;try{for(c.s();!(v=c.n()).done;){var d=v.value,s=g()({},d);l(d)?Array.isArray(s.routes)&&o.push.apply(o,I()(a(s.routes,l))):(Array.isArray(s.children)&&(s.children=a(s.children,l),s.routes=s.children),o.push(s))}}catch(h){c.e(h)}finally{c.f()}return o},w=function a(n){return n.length===0?[]:n.map(function(l){var o=g()({},l);return l.originPath&&(o.path=l.originPath),Array.isArray(l.routes)&&(o.routes=a(l.routes)),Array.isArray(l.children)&&(o.children=a(l.children)),o})},q=function(a){var n=(0,f.useLocation)(),l=(0,f.useNavigate)(),o=(0,f.useAppData)(),c=o.clientRoutes,v=o.pluginManager,d=F.t&&(0,F.t)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},s=d.initialState,h=d.loading,S=d.setInitialState,x={locale:!0,navTheme:"light",colorPrimary:"#1890ff",layout:"mix",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,colorWeak:!1,title:"Ant Design Pro",pwa:!0,logo:"https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg",iconfontUrl:"",token:{}},_=(0,R.YB)(),tt=_.formatMessage,r=v.applyPlugins({key:"layout",type:"modify",initialValue:g()({},d)}),nt=Q(c.filter(function(u){return u.id==="ant-design-pro-layout"}),function(u){return!!u.isLayout&&u.id!=="ant-design-pro-layout"||!!u.isWrapper}),it=(0,J.Mf)(w(nt)),at=Z()(it,1),M=at[0],et=(0,$.useMemo)(function(){var u,e;return(u=(0,f.matchRoutes)(M.children,n.pathname))===null||u===void 0||(e=u.pop)===null||e===void 0||(e=e.call(u))===null||e===void 0?void 0:e.route},[n.pathname]);return(0,t.jsx)(H.f,g()(g()({route:M,location:n,title:x.title||"plugin-layout",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(e){e.stopPropagation(),e.preventDefault(),l("/")},formatMessage:x.formatMessage||tt,menu:{locale:x.locale},logo:B,menuItemRender:function(e,m){return e.isUrl||e.children?m:e.path&&n.pathname!==e.path?(0,t.jsx)(f.Link,{to:e.path.replace("/*",""),target:e.target,children:m}):m},itemRender:function(e,m,L){var lt=e.breadcrumbName,rt=e.title,j=e.path,G=rt||lt,C=L[L.length-1];return C&&(C.path===j||C.linkPath===j)?(0,t.jsx)("span",{children:G}):(0,t.jsx)(f.Link,{to:j,children:G})},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},r),{},{rightContentRender:r.rightContentRender!==!1&&function(u){var e=Y({runtimeConfig:r,loading:h,initialState:s,setInitialState:S});return r.rightContentRender?r.rightContentRender(u,e,{userConfig:x,runtimeConfig:r,loading:h,initialState:s,setInitialState:S}):e},children:(0,t.jsx)(K,{route:et,noFound:r==null?void 0:r.noFound,notFound:r==null?void 0:r.notFound,unAccessible:r==null?void 0:r.unAccessible,noAccessible:r==null?void 0:r.noAccessible,children:r.childrenRender?r.childrenRender((0,t.jsx)(f.Outlet,{}),a):(0,t.jsx)(f.Outlet,{})})}))}}}]); diff --git a/umi.0cd9fb1a.js b/umi.0cd9fb1a.js new file mode 100644 index 00000000..7be46019 --- /dev/null +++ b/umi.0cd9fb1a.js @@ -0,0 +1,374 @@ +!(function(){var Sd=Object.defineProperty,Cd=Object.defineProperties;var Ed=Object.getOwnPropertyDescriptors;var Yc=Object.getOwnPropertySymbols;var Od=Object.prototype.hasOwnProperty,Pd=Object.prototype.propertyIsEnumerable;var Xc=(oi,Fo,J)=>Fo in oi?Sd(oi,Fo,{enumerable:!0,configurable:!0,writable:!0,value:J}):oi[Fo]=J,kl=(oi,Fo)=>{for(var J in Fo||(Fo={}))Od.call(Fo,J)&&Xc(oi,J,Fo[J]);if(Yc)for(var J of Yc(Fo))Pd.call(Fo,J)&&Xc(oi,J,Fo[J]);return oi},Qc=(oi,Fo)=>Cd(oi,Ed(Fo));var Au=(oi,Fo,J)=>new Promise((dc,v)=>{var g=r=>{try{t(J.next(r))}catch(o){v(o)}},e=r=>{try{t(J.throw(r))}catch(o){v(o)}},t=r=>r.done?dc(r.value):Promise.resolve(r.value).then(g,e);t((J=J.apply(oi,Fo)).next())});(function(){var oi={32145:function(v,g,e){"use strict";e.r(g),e.d(g,{blue:function(){return q},cyan:function(){return V},geekblue:function(){return ne},generate:function(){return O},gold:function(){return G},gray:function(){return B},green:function(){return z},grey:function(){return $},lime:function(){return F},magenta:function(){return ye},orange:function(){return U},presetDarkPalettes:function(){return Z},presetPalettes:function(){return R},presetPrimaryColors:function(){return P},purple:function(){return se},red:function(){return L},volcano:function(){return j},yellow:function(){return w}});var t=e(79356),r=e(69075),o=2,a=.16,s=.05,c=.05,l=.15,u=5,d=4,p=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function y(T){var x=T.r,A=T.g,_=T.b,ce=(0,t.py)(x,A,_);return{h:ce.h*360,s:ce.s,v:ce.v}}function h(T){var x=T.r,A=T.g,_=T.b;return"#".concat((0,t.vq)(x,A,_,!1))}function f(T,x,A){var _=A/100,ce={r:(x.r-T.r)*_+T.r,g:(x.g-T.g)*_+T.g,b:(x.b-T.b)*_+T.b};return ce}function b(T,x,A){var _;return Math.round(T.h)>=60&&Math.round(T.h)<=240?_=A?Math.round(T.h)-o*x:Math.round(T.h)+o*x:_=A?Math.round(T.h)+o*x:Math.round(T.h)-o*x,_<0?_+=360:_>=360&&(_-=360),_}function S(T,x,A){if(T.h===0&&T.s===0)return T.s;var _;return A?_=T.s-a*x:x===d?_=T.s+a:_=T.s+s*x,_>1&&(_=1),A&&x===u&&_>.1&&(_=.1),_<.06&&(_=.06),Number(_.toFixed(2))}function E(T,x,A){var _;return A?_=T.v+c*x:_=T.v-l*x,_>1&&(_=1),Number(_.toFixed(2))}function O(T){for(var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=[],_=(0,r.uA)(T),ce=u;ce>0;ce-=1){var Y=y(_),X=h((0,r.uA)({h:b(Y,ce,!0),s:S(Y,ce,!0),v:E(Y,ce,!0)}));A.push(X)}A.push(h(_));for(var he=1;he<=d;he+=1){var Ee=y(_),Ae=h((0,r.uA)({h:b(Ee,he),s:S(Ee,he),v:E(Ee,he)}));A.push(Ae)}return x.theme==="dark"?p.map(function(Ne){var Ve=Ne.index,lt=Ne.opacity,Pt=h(f((0,r.uA)(x.backgroundColor||"#141414"),(0,r.uA)(A[Ve]),lt*100));return Pt}):A}var P={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},R={},Z={};Object.keys(P).forEach(function(T){R[T]=O(P[T]),R[T].primary=R[T][5],Z[T]=O(P[T],{theme:"dark",backgroundColor:"#141414"}),Z[T].primary=Z[T][5]});var L=R.red,j=R.volcano,G=R.gold,U=R.orange,w=R.yellow,F=R.lime,z=R.green,V=R.cyan,q=R.blue,ne=R.geekblue,se=R.purple,ye=R.magenta,$=R.grey,B=R.grey},26477:function(v,g,e){"use strict";e.d(g,{E4:function(){return Ir},V9:function(){return w},jG:function(){return T},t2:function(){return It},ks:function(){return I},bf:function(){return je},CI:function(){return Za},fp:function(){return pn},xy:function(){return Vr}});var t=e(6346),r=e(89342),o=e(57963),a=e(93264);function s(Ye){for(var dt=0,ft,Rt=0,tn=Ye.length;tn>=4;++Rt,tn-=4)ft=Ye.charCodeAt(Rt)&255|(Ye.charCodeAt(++Rt)&255)<<8|(Ye.charCodeAt(++Rt)&255)<<16|(Ye.charCodeAt(++Rt)&255)<<24,ft=(ft&65535)*1540483477+((ft>>>16)*59797<<16),ft^=ft>>>24,dt=(ft&65535)*1540483477+((ft>>>16)*59797<<16)^(dt&65535)*1540483477+((dt>>>16)*59797<<16);switch(tn){case 3:dt^=(Ye.charCodeAt(Rt+2)&255)<<16;case 2:dt^=(Ye.charCodeAt(Rt+1)&255)<<8;case 1:dt^=Ye.charCodeAt(Rt)&255,dt=(dt&65535)*1540483477+((dt>>>16)*59797<<16)}return dt^=dt>>>13,dt=(dt&65535)*1540483477+((dt>>>16)*59797<<16),((dt^dt>>>15)>>>0).toString(36)}var c=s,l=e(13394),u=e(79685),d=e.t(u,2),p=e(98787),y=e(23398),h=e(18020),f=e(30114),b=e(51392),S="%",E=function(){function Ye(dt){(0,f.Z)(this,Ye),(0,t.Z)(this,"instanceId",void 0),(0,t.Z)(this,"cache",new Map),this.instanceId=dt}return(0,b.Z)(Ye,[{key:"get",value:function(ft){return this.cache.get(ft.join(S))||null}},{key:"update",value:function(ft,Rt){var tn=ft.join(S),jn=this.cache.get(tn),Gt=Rt(jn);Gt===null?this.cache.delete(tn):this.cache.set(tn,Gt)}}]),Ye}(),O=E,P=["children"],R="data-token-hash",Z="data-css-hash",L="data-cache-path",j="__cssinjs_instance__";function G(){var Ye=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var dt=document.body.querySelectorAll("style[".concat(Z,"]"))||[],ft=document.head.firstChild;Array.from(dt).forEach(function(tn){tn[j]=tn[j]||Ye,tn[j]===Ye&&document.head.insertBefore(tn,ft)});var Rt={};Array.from(document.querySelectorAll("style[".concat(Z,"]"))).forEach(function(tn){var jn=tn.getAttribute(Z);if(Rt[jn]){if(tn[j]===Ye){var Gt;(Gt=tn.parentNode)===null||Gt===void 0||Gt.removeChild(tn)}}else Rt[jn]=!0})}return new O(Ye)}var U=u.createContext({hashPriority:"low",cache:G(),defaultCache:!0}),w=function(dt){var ft=dt.children,Rt=(0,p.Z)(dt,P),tn=u.useContext(U),jn=(0,y.Z)(function(){var Gt=(0,a.Z)({},tn);Object.keys(Rt).forEach(function(In){var Ln=Rt[In];Rt[In]!==void 0&&(Gt[In]=Ln)});var Xn=Rt.cache;return Gt.cache=Gt.cache||G(),Gt.defaultCache=!Xn&&tn.defaultCache,Gt},[tn,Rt],function(Gt,Xn){return!(0,h.Z)(Gt[0],Xn[0],!0)||!(0,h.Z)(Gt[1],Xn[1],!0)});return u.createElement(U.Provider,{value:jn},ft)},F=U,z=e(63195),V=e(68450);function q(Ye,dt){if(Ye.length!==dt.length)return!1;for(var ft=0;ft1&&arguments[1]!==void 0?arguments[1]:!1,Gt={map:this.cache};return ft.forEach(function(Xn){if(!Gt)Gt=void 0;else{var In;Gt=(In=Gt)===null||In===void 0||(In=In.map)===null||In===void 0?void 0:In.get(Xn)}}),(Rt=Gt)!==null&&Rt!==void 0&&Rt.value&&jn&&(Gt.value[1]=this.cacheCallTimes++),(tn=Gt)===null||tn===void 0?void 0:tn.value}},{key:"get",value:function(ft){var Rt;return(Rt=this.internalGet(ft,!0))===null||Rt===void 0?void 0:Rt[0]}},{key:"has",value:function(ft){return!!this.internalGet(ft)}},{key:"set",value:function(ft,Rt){var tn=this;if(!this.has(ft)){if(this.size()+1>Ye.MAX_CACHE_SIZE+Ye.MAX_CACHE_OFFSET){var jn=this.keys.reduce(function(Ln,ur){var tr=(0,r.Z)(Ln,2),ar=tr[1];return tn.internalGet(ur)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ye+=1}return(0,b.Z)(Ye,[{key:"getDerivativeToken",value:function(ft){return this.derivatives.reduce(function(Rt,tn){return tn(ft,Rt)},void 0)}}]),Ye}(),B=new ne;function T(Ye){var dt=Array.isArray(Ye)?Ye:[Ye];return B.has(dt)||B.set(dt,new $(dt)),B.get(dt)}var x=new WeakMap,A={};function _(Ye,dt){for(var ft=x,Rt=0;Rt3&&arguments[3]!==void 0?arguments[3]:{},jn=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(jn)return Ye;var Gt=(0,a.Z)((0,a.Z)({},tn),{},(Rt={},(0,t.Z)(Rt,R,dt),(0,t.Z)(Rt,Z,ft),Rt)),Xn=Object.keys(Gt).map(function(In){var Ln=Gt[In];return Ln?"".concat(In,'="').concat(Ln,'"'):null}).filter(function(In){return In}).join(" ");return"")}var I=function(dt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(ft?"".concat(ft,"-"):"").concat(dt).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},M=function(dt,ft,Rt){return Object.keys(dt).length?".".concat(ft).concat(Rt!=null&&Rt.scope?".".concat(Rt.scope):"","{").concat(Object.entries(dt).map(function(tn){var jn=(0,r.Z)(tn,2),Gt=jn[0],Xn=jn[1];return"".concat(Gt,":").concat(Xn,";")}).join(""),"}"):""},ie=function(dt,ft,Rt){var tn={},jn={};return Object.entries(dt).forEach(function(Gt){var Xn,In,Ln=(0,r.Z)(Gt,2),ur=Ln[0],tr=Ln[1];if(Rt!=null&&(Xn=Rt.preserve)!==null&&Xn!==void 0&&Xn[ur])jn[ur]=tr;else if((typeof tr=="string"||typeof tr=="number")&&!(Rt!=null&&(In=Rt.ignore)!==null&&In!==void 0&&In[ur])){var ar,jr=I(ur,Rt==null?void 0:Rt.prefix);tn[jr]=typeof tr=="number"&&!(Rt!=null&&(ar=Rt.unitless)!==null&&ar!==void 0&&ar[ur])?"".concat(tr,"px"):String(tr),jn[ur]="var(".concat(jr,")")}}),[jn,M(tn,ft,{scope:Rt==null?void 0:Rt.scope})]},H=e(79269),te=(0,a.Z)({},d),k=te.useInsertionEffect,D=function(dt,ft,Rt){u.useMemo(dt,Rt),(0,H.Z)(function(){return ft(!0)},Rt)},ee=k?function(Ye,dt,ft){return k(function(){return Ye(),dt()},ft)}:D,de=ee,Se=(0,a.Z)({},d),Me=Se.useInsertionEffect,ue=function(dt){var ft=[],Rt=!1;function tn(jn){Rt||ft.push(jn)}return u.useEffect(function(){return Rt=!1,function(){Rt=!0,ft.length&&ft.forEach(function(jn){return jn()})}},dt),tn},be=function(){return function(dt){dt()}},Ke=typeof Me!="undefined"?ue:be,Q=Ke;function me(){return!1}var ke=!1;function Oe(){return ke}var Te=me;if(!1)var we,Be;function Le(Ye,dt,ft,Rt,tn){var jn=u.useContext(F),Gt=jn.cache,Xn=[Ye].concat((0,o.Z)(dt)),In=Xn.join("_"),Ln=Q([In]),ur=Te(),tr=function(Nr){Gt.update(Xn,function(Yr){var Jr=Yr||[void 0,void 0],Fr=(0,r.Z)(Jr,2),aa=Fr[0],fa=aa===void 0?0:aa,ja=Fr[1],Ia=ja,_r=Ia||ft(),Ya=[fa,_r];return Nr?Nr(Ya):Ya})};u.useMemo(function(){tr()},[In]);var ar=Gt.get(Xn),jr=ar[1];return de(function(){tn==null||tn(jr)},function(Hr){return tr(function(Nr){var Yr=(0,r.Z)(Nr,2),Jr=Yr[0],Fr=Yr[1];return Hr&&Jr===0&&(tn==null||tn(jr)),[Jr+1,Fr]}),function(){Gt.update(Xn,function(Nr){var Yr=Nr||[],Jr=(0,r.Z)(Yr,2),Fr=Jr[0],aa=Fr===void 0?0:Fr,fa=Jr[1],ja=aa-1;return ja===0?(Ln(function(){(Hr||!Gt.get(Xn))&&(Rt==null||Rt(fa,!1))}),null):[aa-1,fa]})}},[In]),jr}var ot={},rt="css",at=new Map;function wt(Ye){at.set(Ye,(at.get(Ye)||0)+1)}function St(Ye,dt){if(typeof document!="undefined"){var ft=document.querySelectorAll("style[".concat(R,'="').concat(Ye,'"]'));ft.forEach(function(Rt){if(Rt[j]===dt){var tn;(tn=Rt.parentNode)===null||tn===void 0||tn.removeChild(Rt)}})}}var Bt=0;function Vt(Ye,dt){at.set(Ye,(at.get(Ye)||0)-1);var ft=Array.from(at.keys()),Rt=ft.filter(function(tn){var jn=at.get(tn)||0;return jn<=0});ft.length-Rt.length>Bt&&Rt.forEach(function(tn){St(tn,dt),at.delete(tn)})}var It=function(dt,ft,Rt,tn){var jn=Rt.getDerivativeToken(dt),Gt=(0,a.Z)((0,a.Z)({},jn),ft);return tn&&(Gt=tn(Gt)),Gt},rn="token";function pn(Ye,dt){var ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Rt=(0,u.useContext)(F),tn=Rt.cache.instanceId,jn=Rt.container,Gt=ft.salt,Xn=Gt===void 0?"":Gt,In=ft.override,Ln=In===void 0?ot:In,ur=ft.formatToken,tr=ft.getComputedToken,ar=ft.cssVar,jr=_(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(dt)))},dt),Hr=Y(jr),Nr=Y(Ln),Yr=ar?Y(ar):"",Jr=Le(rn,[Xn,Ye.id,Hr,Nr,Yr],function(){var Fr,aa=tr?tr(jr,Ln,Ye):It(jr,Ln,Ye,ur),fa=(0,a.Z)({},aa),ja="";if(ar){var Ia=ie(aa,ar.key,{prefix:ar.prefix,ignore:ar.ignore,unitless:ar.unitless,preserve:ar.preserve}),_r=(0,r.Z)(Ia,2);aa=_r[0],ja=_r[1]}var Ya=X(aa,Xn);aa._tokenKey=Ya,fa._tokenKey=X(fa,Xn);var lo=(Fr=ar==null?void 0:ar.key)!==null&&Fr!==void 0?Fr:Ya;aa._themeKey=lo,wt(lo);var za="".concat(rt,"-").concat(c(Ya));return aa._hashId=za,[aa,za,fa,ja,(ar==null?void 0:ar.key)||""]},function(Fr){Vt(Fr[0]._themeKey,tn)},function(Fr){var aa=(0,r.Z)(Fr,4),fa=aa[0],ja=aa[3];if(ar&&ja){var Ia=(0,l.hq)(ja,c("css-variables-".concat(fa._themeKey)),{mark:Z,prepend:"queue",attachTo:jn,priority:-999});Ia[j]=tn,Ia.setAttribute(R,fa._themeKey)}});return Jr}var Tn=function(dt,ft,Rt){var tn=(0,r.Z)(dt,5),jn=tn[2],Gt=tn[3],Xn=tn[4],In=Rt||{},Ln=In.plain;if(!Gt)return null;var ur=jn._tokenKey,tr=-999,ar={"data-rc-order":"prependQueue","data-rc-priority":"".concat(tr)},jr=N(Gt,Xn,ur,ar,Ln);return[tr,ur,jr]},Ge=e(21137),Ct={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},zt=Ct,ht="-ms-",Tt="-moz-",Kt="-webkit-",sn="comm",bn="rule",_t="decl",en="@page",an="@media",Sn="@import",Kn="@charset",or="@viewport",tt="@supports",Je="@document",Nt="@namespace",Mt="@keyframes",on="@font-face",nn="@counter-style",hn="@font-feature-values",cn="@layer",Hn=Math.abs,Zn=String.fromCharCode,Rn=Object.assign;function gn(Ye,dt){return wr(Ye,0)^45?(((dt<<2^wr(Ye,0))<<2^wr(Ye,1))<<2^wr(Ye,2))<<2^wr(Ye,3):0}function Jn(Ye){return Ye.trim()}function Fn(Ye,dt){return(Ye=dt.exec(Ye))?Ye[0]:Ye}function Yn(Ye,dt,ft){return Ye.replace(dt,ft)}function wn(Ye,dt){return Ye.indexOf(dt)}function wr(Ye,dt){return Ye.charCodeAt(dt)|0}function Un(Ye,dt,ft){return Ye.slice(dt,ft)}function Cn(Ye){return Ye.length}function vt(Ye){return Ye.length}function pt(Ye,dt){return dt.push(Ye),Ye}function At(Ye,dt){return Ye.map(dt).join("")}function Zt(Ye,dt){return Ye.filter(function(ft){return!Fn(ft,dt)})}function bt(Ye,dt){for(var ft="",Rt=0;Rt0?wr(Re,--Pn):0,xn--,De===10&&(xn=1,qt--),De}function ge(){return De=Pn2||Xe(De)>3?"":" "}function Lt(Ye){for(;ge();)switch(Xe(De)){case 0:append(Wt(Pn-1),Ye);break;case 2:append(ct(De),Ye);break;default:append(from(De),Ye)}return Ye}function kt(Ye,dt){for(;--dt&&ge()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return ze(Ye,Fe()+(dt<6&&fe()==32&&ge()==32))}function Ot(Ye){for(;ge();)switch(De){case Ye:return Pn;case 34:case 39:Ye!==34&&Ye!==39&&Ot(De);break;case 40:Ye===41&&Ot(Ye);break;case 92:ge();break}return Pn}function Ft(Ye,dt){for(;ge()&&Ye+De!==57;)if(Ye+De===84&&fe()===47)break;return"/*"+ze(dt,Pn-1)+"*"+Zn(Ye===47?Ye:ge())}function Wt(Ye){for(;!Xe(fe());)ge();return ze(Ye,Pn)}function fn(Ye){return yt(dn("",null,null,null,[""],Ye=nt(Ye),0,[0],Ye))}function dn(Ye,dt,ft,Rt,tn,jn,Gt,Xn,In){for(var Ln=0,ur=0,tr=Gt,ar=0,jr=0,Hr=0,Nr=1,Yr=1,Jr=1,Fr=0,aa="",fa=tn,ja=jn,Ia=Rt,_r=aa;Yr;)switch(Hr=Fr,Fr=ge()){case 40:if(Hr!=108&&wr(_r,tr-1)==58){wn(_r+=Yn(ct(Fr),"&","&\f"),"&\f")!=-1&&(Jr=-1);break}case 34:case 39:case 91:_r+=ct(Fr);break;case 9:case 10:case 13:case 32:_r+=Et(Hr);break;case 92:_r+=kt(Fe()-1,7);continue;case 47:switch(fe()){case 42:case 47:pt(Dn(Ft(ge(),Fe()),dt,ft,In),In);break;default:_r+="/"}break;case 123*Nr:Xn[Ln++]=Cn(_r)*Jr;case 125*Nr:case 59:case 0:switch(Fr){case 0:case 125:Yr=0;case 59+ur:Jr==-1&&(_r=Yn(_r,/\f/g,"")),jr>0&&Cn(_r)-tr&&pt(jr>32?On(_r+";",Rt,ft,tr-1,In):On(Yn(_r," ","")+";",Rt,ft,tr-2,In),In);break;case 59:_r+=";";default:if(pt(Ia=En(_r,dt,ft,Ln,ur,tn,Xn,aa,fa=[],ja=[],tr,jn),jn),Fr===123)if(ur===0)dn(_r,dt,Ia,Ia,fa,jn,tr,Xn,ja);else switch(ar===99&&wr(_r,3)===110?100:ar){case 100:case 108:case 109:case 115:dn(Ye,Ia,Ia,Rt&&pt(En(Ye,Ia,Ia,0,0,tn,Xn,aa,tn,fa=[],tr,ja),ja),tn,ja,tr,Xn,Rt?fa:ja);break;default:dn(_r,Ia,Ia,Ia,[""],ja,0,Xn,ja)}}Ln=ur=jr=0,Nr=Jr=1,aa=_r="",tr=Gt;break;case 58:tr=1+Cn(_r),jr=Hr;default:if(Nr<1){if(Fr==123)--Nr;else if(Fr==125&&Nr++==0&&ae()==125)continue}switch(_r+=Zn(Fr),Fr*Nr){case 38:Jr=ur>0?1:(_r+="\f",-1);break;case 44:Xn[Ln++]=(Cn(_r)-1)*Jr,Jr=1;break;case 64:fe()===45&&(_r+=ct(ge())),ar=fe(),ur=tr=Cn(aa=_r+=Wt(Fe())),Fr++;break;case 45:Hr===45&&Cn(_r)==2&&(Nr=0)}}return jn}function En(Ye,dt,ft,Rt,tn,jn,Gt,Xn,In,Ln,ur,tr){for(var ar=tn-1,jr=tn===0?jn:[""],Hr=vt(jr),Nr=0,Yr=0,Jr=0;Nr0?jr[Fr]+" "+aa:Yn(aa,/&\f/g,jr[Fr])))&&(In[Jr++]=fa);return Ue(Ye,dt,ft,tn===0?bn:Xn,In,Ln,ur,tr)}function Dn(Ye,dt,ft,Rt){return Ue(Ye,dt,ft,sn,Zn(re()),Un(Ye,2,-2),0,Rt)}function On(Ye,dt,ft,Rt,tn){return Ue(Ye,dt,ft,_t,Un(Ye,0,Rt),Un(Ye,Rt+1,-1),Rt,tn)}function Vn(Ye,dt){var ft=dt.path,Rt=dt.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(ft?"Error in ".concat(ft,": "):"").concat(Ye).concat(Rt.length?" Selector: ".concat(Rt.join(" | ")):""))}var br=function(dt,ft,Rt){if(dt==="content"){var tn=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,jn=["normal","none","initial","inherit","unset"];(typeof ft!="string"||jn.indexOf(ft)===-1&&!tn.test(ft)&&(ft.charAt(0)!==ft.charAt(ft.length-1)||ft.charAt(0)!=='"'&&ft.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(ft,"\"'`."),Rt)}},Bn=null,qn=function(dt,ft,Rt){dt==="animation"&&Rt.hashId&&ft!=="none"&&lintWarning("You seem to be using hashed animation '".concat(ft,"', in which case 'animationName' with Keyframe as value is recommended."),Rt)},Mr=null;function Jt(Ye){var dt,ft=((dt=Ye.match(/:not\(([^)]*)\)/))===null||dt===void 0?void 0:dt[1])||"",Rt=ft.split(/(\[[^[]*])|(?=[.#])/).filter(function(tn){return tn});return Rt.length>1}function st(Ye){return Ye.parentSelectors.reduce(function(dt,ft){return dt?ft.includes("&")?ft.replace(/&/g,dt):"".concat(dt," ").concat(ft):ft},"")}var Qe=function(dt,ft,Rt){var tn=st(Rt),jn=tn.match(/:not\([^)]*\)/g)||[];jn.length>0&&jn.some(Jt)&&lintWarning("Concat ':not' selector not support in legacy browsers.",Rt)},jt=null,un=function(dt,ft,Rt){switch(dt){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(dt,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Rt);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof ft=="string"){var tn=ft.split(" ").map(function(Xn){return Xn.trim()});tn.length===4&&tn[1]!==tn[3]&&lintWarning("You seem to be using '".concat(dt,"' property with different left ").concat(dt," and right ").concat(dt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Rt)}return;case"clear":case"textAlign":(ft==="left"||ft==="right")&&lintWarning("You seem to be using non-logical value '".concat(ft,"' of ").concat(dt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Rt);return;case"borderRadius":if(typeof ft=="string"){var jn=ft.split("/").map(function(Xn){return Xn.trim()}),Gt=jn.reduce(function(Xn,In){if(Xn)return Xn;var Ln=In.split(" ").map(function(ur){return ur.trim()});return Ln.length>=2&&Ln[0]!==Ln[1]||Ln.length===3&&Ln[1]!==Ln[2]||Ln.length===4&&Ln[2]!==Ln[3]?!0:Xn},!1);Gt&&lintWarning("You seem to be using non-logical value '".concat(ft,"' of ").concat(dt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),Rt)}return;default:}},Qt=null,Wn=function(dt,ft,Rt){(typeof ft=="string"&&/NaN/g.test(ft)||Number.isNaN(ft))&&lintWarning("Unexpected 'NaN' in property '".concat(dt,": ").concat(ft,"'."),Rt)},er=null,cr=function(dt,ft,Rt){Rt.parentSelectors.some(function(tn){var jn=tn.split(",");return jn.some(function(Gt){return Gt.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",Rt)},vr=null,fr="data-ant-cssinjs-cache-path",xr="_FILE_STYLE__";function Rr(Ye){return Object.keys(Ye).map(function(dt){var ft=Ye[dt];return"".concat(dt,":").concat(ft)}).join(";")}var Ur,la=!0;function ha(Ye){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Ur=Ye,la=dt}function $r(){if(!Ur&&(Ur={},(0,V.Z)())){var Ye=document.createElement("div");Ye.className=fr,Ye.style.position="fixed",Ye.style.visibility="hidden",Ye.style.top="-9999px",document.body.appendChild(Ye);var dt=getComputedStyle(Ye).content||"";dt=dt.replace(/^"/,"").replace(/"$/,""),dt.split(";").forEach(function(tn){var jn=tn.split(":"),Gt=(0,r.Z)(jn,2),Xn=Gt[0],In=Gt[1];Ur[Xn]=In});var ft=document.querySelector("style[".concat(fr,"]"));if(ft){var Rt;la=!1,(Rt=ft.parentNode)===null||Rt===void 0||Rt.removeChild(ft)}document.body.removeChild(Ye)}}function Lr(Ye){return $r(),!!Ur[Ye]}function ea(Ye){var dt=Ur[Ye],ft=null;if(dt&&(0,V.Z)())if(la)ft=xr;else{var Rt=document.querySelector("style[".concat(Z,'="').concat(Ur[Ye],'"]'));Rt?ft=Rt.innerHTML:delete Ur[Ye]}return[ft,dt]}var xa="_skip_check_",Da="_multi_value_";function Ga(Ye){var dt=bt(fn(Ye),Xt);return dt.replace(/\{%%%\:[^;];}/g,";")}function ao(Ye){return(0,z.Z)(Ye)==="object"&&Ye&&(xa in Ye||Da in Ye)}function Sa(Ye,dt,ft){if(!dt)return Ye;var Rt=".".concat(dt),tn=ft==="low"?":where(".concat(Rt,")"):Rt,jn=Ye.split(",").map(function(Gt){var Xn,In=Gt.trim().split(/\s+/),Ln=In[0]||"",ur=((Xn=Ln.match(/^\w+/))===null||Xn===void 0?void 0:Xn[0])||"";return Ln="".concat(ur).concat(tn).concat(Ln.slice(ur.length)),[Ln].concat((0,o.Z)(In.slice(1))).join(" ")});return jn.join(",")}var Qn=function Ye(dt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},tn=Rt.root,jn=Rt.injectHash,Gt=Rt.parentSelectors,Xn=ft.hashId,In=ft.layer,Ln=ft.path,ur=ft.hashPriority,tr=ft.transformers,ar=tr===void 0?[]:tr,jr=ft.linters,Hr=jr===void 0?[]:jr,Nr="",Yr={};function Jr(Ia){var _r=Ia.getName(Xn);if(!Yr[_r]){var Ya=Ye(Ia.style,ft,{root:!1,parentSelectors:Gt}),lo=(0,r.Z)(Ya,1),za=lo[0];Yr[_r]="@keyframes ".concat(Ia.getName(Xn)).concat(za)}}function Fr(Ia){var _r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Ia.forEach(function(Ya){Array.isArray(Ya)?Fr(Ya,_r):Ya&&_r.push(Ya)}),_r}var aa=Fr(Array.isArray(dt)?dt:[dt]);if(aa.forEach(function(Ia){var _r=typeof Ia=="string"&&!tn?{}:Ia;if(typeof _r=="string")Nr+="".concat(_r,` +`);else if(_r._keyframe)Jr(_r);else{var Ya=ar.reduce(function(lo,za){var Qa;return(za==null||(Qa=za.visit)===null||Qa===void 0?void 0:Qa.call(za,lo))||lo},_r);Object.keys(Ya).forEach(function(lo){var za=Ya[lo];if((0,z.Z)(za)==="object"&&za&&(lo!=="animationName"||!za._keyframe)&&!ao(za)){var Qa=!1,Ja=lo.trim(),no=!1;(tn||jn)&&Xn?Ja.startsWith("@")?Qa=!0:Ja=Sa(lo,Xn,ur):tn&&!Xn&&(Ja==="&"||Ja==="")&&(Ja="",no=!0);var ua=Ye(za,ft,{root:no,injectHash:Qa,parentSelectors:[].concat((0,o.Z)(Gt),[Ja])}),zr=(0,r.Z)(ua,2),Ra=zr[0],Xa=zr[1];Yr=(0,a.Z)((0,a.Z)({},Yr),Xa),Nr+="".concat(Ja).concat(Ra)}else{let po=function(bo,uo){var Zo=bo.replace(/[A-Z]/g,function(ko){return"-".concat(ko.toLowerCase())}),xo=uo;!zt[bo]&&typeof xo=="number"&&xo!==0&&(xo="".concat(xo,"px")),bo==="animationName"&&uo!==null&&uo!==void 0&&uo._keyframe&&(Jr(uo),xo=uo.getName(Xn)),Nr+="".concat(Zo,":").concat(xo,";")};var Ka,ka=(Ka=za==null?void 0:za.value)!==null&&Ka!==void 0?Ka:za;(0,z.Z)(za)==="object"&&za!==null&&za!==void 0&&za[Da]&&Array.isArray(ka)?ka.forEach(function(bo){po(lo,bo)}):po(lo,ka)}})}}),!tn)Nr="{".concat(Nr,"}");else if(In&&Ve()){var fa=In.split(","),ja=fa[fa.length-1].trim();Nr="@layer ".concat(ja," {").concat(Nr,"}"),fa.length>1&&(Nr="@layer ".concat(In,"{%%%:%}").concat(Nr))}return[Nr,Yr]};function dr(Ye,dt){return c("".concat(Ye.join("%")).concat(dt))}function Er(){return null}var gr="style";function Vr(Ye,dt){var ft=Ye.token,Rt=Ye.path,tn=Ye.hashId,jn=Ye.layer,Gt=Ye.nonce,Xn=Ye.clientOnly,In=Ye.order,Ln=In===void 0?0:In,ur=u.useContext(F),tr=ur.autoClear,ar=ur.mock,jr=ur.defaultCache,Hr=ur.hashPriority,Nr=ur.container,Yr=ur.ssrInline,Jr=ur.transformers,Fr=ur.linters,aa=ur.cache,fa=ft._tokenKey,ja=[fa].concat((0,o.Z)(Rt)),Ia=et,_r=Le(gr,ja,function(){var Ja=ja.join("|");if(Lr(Ja)){var no=ea(Ja),ua=(0,r.Z)(no,2),zr=ua[0],Ra=ua[1];if(zr)return[zr,fa,Ra,{},Xn,Ln]}var Xa=dt(),Ka=Qn(Xa,{hashId:tn,hashPriority:Hr,layer:jn,path:Rt.join("-"),transformers:Jr,linters:Fr}),ka=(0,r.Z)(Ka,2),po=ka[0],bo=ka[1],uo=Ga(po),Zo=dr(ja,uo);return[uo,fa,Zo,bo,Xn,Ln]},function(Ja,no){var ua=(0,r.Z)(Ja,3),zr=ua[2];(no||tr)&&et&&(0,l.jL)(zr,{mark:Z})},function(Ja){var no=(0,r.Z)(Ja,4),ua=no[0],zr=no[1],Ra=no[2],Xa=no[3];if(Ia&&ua!==xr){var Ka={mark:Z,prepend:"queue",attachTo:Nr,priority:Ln},ka=typeof Gt=="function"?Gt():Gt;ka&&(Ka.csp={nonce:ka});var po=(0,l.hq)(ua,Ra,Ka);po[j]=aa.instanceId,po.setAttribute(R,fa),Object.keys(Xa).forEach(function(bo){(0,l.hq)(Ga(Xa[bo]),"_effect-".concat(bo),Ka)})}}),Ya=(0,r.Z)(_r,3),lo=Ya[0],za=Ya[1],Qa=Ya[2];return function(Ja){var no;if(!Yr||Ia||!jr)no=u.createElement(Er,null);else{var ua;no=u.createElement("style",(0,Ge.Z)({},(ua={},(0,t.Z)(ua,R,za),(0,t.Z)(ua,Z,Qa),ua),{dangerouslySetInnerHTML:{__html:lo}}))}return u.createElement(u.Fragment,null,no,Ja)}}var na=function(dt,ft,Rt){var tn=(0,r.Z)(dt,6),jn=tn[0],Gt=tn[1],Xn=tn[2],In=tn[3],Ln=tn[4],ur=tn[5],tr=Rt||{},ar=tr.plain;if(Ln)return null;var jr=jn,Hr={"data-rc-order":"prependQueue","data-rc-priority":"".concat(ur)};return jr=N(jn,Gt,Xn,Hr,ar),In&&Object.keys(In).forEach(function(Nr){if(!ft[Nr]){ft[Nr]=!0;var Yr=Ga(In[Nr]);jr+=N(Yr,Gt,"_effect-".concat(Nr),Hr,ar)}}),[ur,Xn,jr]},Oa="cssVar",Pa=function(dt,ft){var Rt=dt.key,tn=dt.prefix,jn=dt.unitless,Gt=dt.ignore,Xn=dt.token,In=dt.scope,Ln=In===void 0?"":In,ur=(0,u.useContext)(F),tr=ur.cache.instanceId,ar=ur.container,jr=Xn._tokenKey,Hr=[].concat((0,o.Z)(dt.path),[Rt,Ln,jr]),Nr=Le(Oa,Hr,function(){var Yr=ft(),Jr=ie(Yr,Rt,{prefix:tn,unitless:jn,ignore:Gt,scope:Ln}),Fr=(0,r.Z)(Jr,2),aa=Fr[0],fa=Fr[1],ja=dr(Hr,fa);return[aa,fa,ja,Rt]},function(Yr){var Jr=(0,r.Z)(Yr,3),Fr=Jr[2];et&&(0,l.jL)(Fr,{mark:Z})},function(Yr){var Jr=(0,r.Z)(Yr,3),Fr=Jr[1],aa=Jr[2];if(Fr){var fa=(0,l.hq)(Fr,aa,{mark:Z,prepend:"queue",attachTo:ar,priority:-999});fa[j]=tr,fa.setAttribute(R,Rt)}});return Nr},to=function(dt,ft,Rt){var tn=(0,r.Z)(dt,4),jn=tn[1],Gt=tn[2],Xn=tn[3],In=Rt||{},Ln=In.plain;if(!jn)return null;var ur=-999,tr={"data-rc-order":"prependQueue","data-rc-priority":"".concat(ur)},ar=N(jn,Xn,Gt,tr,Ln);return[ur,Gt,ar]},Za=Pa,Ea,co=(Ea={},(0,t.Z)(Ea,gr,na),(0,t.Z)(Ea,rn,Tn),(0,t.Z)(Ea,Oa,to),Ea);function La(Ye){return Ye!==null}function yo(Ye){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=new RegExp("^(".concat(Object.keys(co).join("|"),")%")),Rt=Array.from(Ye.cache.keys()).filter(function(Xn){return ft.test(Xn)}),tn={},jn={},Gt="";return Rt.map(function(Xn){var In=Xn.replace(ft,"").replace(/%/g,"|"),Ln=Xn.split("%"),ur=_slicedToArray(Ln,1),tr=ur[0],ar=co[tr],jr=ar(Ye.cache.get(Xn)[1],tn,{plain:dt});if(!jr)return null;var Hr=_slicedToArray(jr,3),Nr=Hr[0],Yr=Hr[1],Jr=Hr[2];return Xn.startsWith("style")&&(jn[In]=Yr),[Nr,Jr]}).filter(La).sort(function(Xn,In){var Ln=_slicedToArray(Xn,1),ur=Ln[0],tr=_slicedToArray(In,1),ar=tr[0];return ur-ar}).forEach(function(Xn){var In=_slicedToArray(Xn,2),Ln=In[1];Gt+=Ln}),Gt+=toStyleStr(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(jn),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP),dt),Gt}var Sr=function(){function Ye(dt,ft){(0,f.Z)(this,Ye),(0,t.Z)(this,"name",void 0),(0,t.Z)(this,"style",void 0),(0,t.Z)(this,"_keyframe",!0),this.name=dt,this.style=ft}return(0,b.Z)(Ye,[{key:"getName",value:function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ft?"".concat(ft,"-").concat(this.name):this.name}}]),Ye}(),Ir=Sr;function Ma(Ye){if(typeof Ye=="number")return[[Ye],!1];var dt=String(Ye).trim(),ft=dt.match(/(.*)(!important)/),Rt=(ft?ft[1]:dt).trim().split(/\s+/),tn="",jn=0;return[Rt.reduce(function(Gt,Xn){if(Xn.includes("(")||Xn.includes(")")){var In=Xn.split("(").length-1,Ln=Xn.split(")").length-1;jn+=In-Ln}return jn===0?(Gt.push(tn+Xn),tn=""):jn>0&&(tn+=Xn),Gt},[]),!!ft]}function ma(Ye){return Ye.notSplit=!0,Ye}var va={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:ma(["borderTop","borderBottom"]),borderBlockStart:ma(["borderTop"]),borderBlockEnd:ma(["borderBottom"]),borderInline:ma(["borderLeft","borderRight"]),borderInlineStart:ma(["borderLeft"]),borderInlineEnd:ma(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function vo(Ye,dt){var ft=Ye;return dt&&(ft="".concat(ft," !important")),{_skip_check_:!0,value:ft}}var fo={visit:function(dt){var ft={};return Object.keys(dt).forEach(function(Rt){var tn=dt[Rt],jn=va[Rt];if(jn&&(typeof tn=="number"||typeof tn=="string")){var Gt=Ma(tn),Xn=(0,r.Z)(Gt,2),In=Xn[0],Ln=Xn[1];jn.length&&jn.notSplit?jn.forEach(function(ur){ft[ur]=vo(tn,Ln)}):jn.length===1?ft[jn[0]]=vo(tn,Ln):jn.length===2?jn.forEach(function(ur,tr){var ar;ft[ur]=vo((ar=In[tr])!==null&&ar!==void 0?ar:In[0],Ln)}):jn.length===4?jn.forEach(function(ur,tr){var ar,jr;ft[ur]=vo((ar=(jr=In[tr])!==null&&jr!==void 0?jr:In[tr-2])!==null&&ar!==void 0?ar:In[0],Ln)}):ft[Rt]=tn}else ft[Rt]=tn}),ft}},Ca=null,Ta=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Oo(Ye,dt){var ft=Math.pow(10,dt+1),Rt=Math.floor(Ye*ft);return Math.round(Rt/10)*10/ft}var Bo=function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ft=dt.rootValue,Rt=ft===void 0?16:ft,tn=dt.precision,jn=tn===void 0?5:tn,Gt=dt.mediaQuery,Xn=Gt===void 0?!1:Gt,In=function(tr,ar){if(!ar)return tr;var jr=parseFloat(ar);if(jr<=1)return tr;var Hr=Oo(jr/Rt,jn);return"".concat(Hr,"rem")},Ln=function(tr){var ar=_objectSpread({},tr);return Object.entries(tr).forEach(function(jr){var Hr=_slicedToArray(jr,2),Nr=Hr[0],Yr=Hr[1];if(typeof Yr=="string"&&Yr.includes("px")){var Jr=Yr.replace(Ta,In);ar[Nr]=Jr}!unitless[Nr]&&typeof Yr=="number"&&Yr!==0&&(ar[Nr]="".concat(Yr,"px").replace(Ta,In));var Fr=Nr.trim();if(Fr.startsWith("@")&&Fr.includes("px")&&Xn){var aa=Nr.replace(Ta,In);ar[aa]=ar[Nr],delete ar[Nr]}}),ar};return{visit:Ln}},Na=null,Io={supportModernCSS:function(){return Pt()&&it()}}},61391:function(v,g){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};g.Z=e},72796:function(v,g){"use strict";var e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};g.Z=e},90462:function(v,g){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};g.Z=e},62415:function(v,g){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};g.Z=e},41009:function(v,g){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};g.Z=e},97343:function(v,g){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};g.Z=e},20590:function(v,g){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};g.Z=e},48167:function(v,g){"use strict";var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};g.Z=e},64507:function(v,g,e){"use strict";e.d(g,{Z:function(){return Ke}});var t=e(93264),r=e(89342),o=e(6346),a=e(98787),s=e(79685),c=e(68591),l=e.n(c),u=(0,s.createContext)({}),d=u,p=e(63195),y=e(79356),h=e(69075),f=2,b=.16,S=.05,E=.05,O=.15,P=5,R=4,Z=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function L(Q){var me=Q.r,ke=Q.g,Oe=Q.b,Te=(0,y.py)(me,ke,Oe);return{h:Te.h*360,s:Te.s,v:Te.v}}function j(Q){var me=Q.r,ke=Q.g,Oe=Q.b;return"#".concat((0,y.vq)(me,ke,Oe,!1))}function G(Q,me,ke){var Oe=ke/100,Te={r:(me.r-Q.r)*Oe+Q.r,g:(me.g-Q.g)*Oe+Q.g,b:(me.b-Q.b)*Oe+Q.b};return Te}function U(Q,me,ke){var Oe;return Math.round(Q.h)>=60&&Math.round(Q.h)<=240?Oe=ke?Math.round(Q.h)-f*me:Math.round(Q.h)+f*me:Oe=ke?Math.round(Q.h)+f*me:Math.round(Q.h)-f*me,Oe<0?Oe+=360:Oe>=360&&(Oe-=360),Oe}function w(Q,me,ke){if(Q.h===0&&Q.s===0)return Q.s;var Oe;return ke?Oe=Q.s-b*me:me===R?Oe=Q.s+b:Oe=Q.s+S*me,Oe>1&&(Oe=1),ke&&me===P&&Oe>.1&&(Oe=.1),Oe<.06&&(Oe=.06),Number(Oe.toFixed(2))}function F(Q,me,ke){var Oe;return ke?Oe=Q.v+E*me:Oe=Q.v-O*me,Oe>1&&(Oe=1),Number(Oe.toFixed(2))}function z(Q){for(var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=[],Oe=(0,h.uA)(Q),Te=P;Te>0;Te-=1){var we=L(Oe),Be=j((0,h.uA)({h:U(we,Te,!0),s:w(we,Te,!0),v:F(we,Te,!0)}));ke.push(Be)}ke.push(j(Oe));for(var Le=1;Le<=R;Le+=1){var ot=L(Oe),rt=j((0,h.uA)({h:U(ot,Le),s:w(ot,Le),v:F(ot,Le)}));ke.push(rt)}return me.theme==="dark"?Z.map(function(at){var wt=at.index,St=at.opacity,Bt=j(G((0,h.uA)(me.backgroundColor||"#141414"),(0,h.uA)(ke[wt]),St*100));return Bt}):ke}var V={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},q={},ne={};Object.keys(V).forEach(function(Q){q[Q]=z(V[Q]),q[Q].primary=q[Q][5],ne[Q]=z(V[Q],{theme:"dark",backgroundColor:"#141414"}),ne[Q].primary=ne[Q][5]});var se=q.red,ye=q.volcano,$=q.gold,B=q.orange,T=q.yellow,x=q.lime,A=q.green,_=q.cyan,ce=q.blue,Y=q.geekblue,X=q.purple,he=q.magenta,Ee=q.grey,Ae=e(30765),Ne=e(13394),Ve=e(1433),lt=e.n(Ve);function Pt(Q,me){(0,Ae.ZP)(Q,"[@ant-design/icons] ".concat(me))}function qe(Q){return(0,p.Z)(Q)==="object"&&typeof Q.name=="string"&&typeof Q.theme=="string"&&((0,p.Z)(Q.icon)==="object"||typeof Q.icon=="function")}function it(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(Q).reduce(function(me,ke){var Oe=Q[ke];switch(ke){case"class":me.className=Oe,delete me.class;break;default:delete me[ke],me[lt()(ke)]=Oe}return me},{})}function et(Q,me,ke){return ke?s.createElement(Q.tag,(0,t.Z)((0,t.Z)({key:me},it(Q.attrs)),ke),(Q.children||[]).map(function(Oe,Te){return et(Oe,"".concat(me,"-").concat(Q.tag,"-").concat(Te))})):s.createElement(Q.tag,(0,t.Z)({key:me},it(Q.attrs)),(Q.children||[]).map(function(Oe,Te){return et(Oe,"".concat(me,"-").concat(Q.tag,"-").concat(Te))}))}function je(Q){return z(Q)[0]}function N(Q){return Q?Array.isArray(Q)?Q:[Q]:[]}var I={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},M=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,ie=function(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M,ke=(0,s.useContext)(d),Oe=ke.csp;(0,s.useEffect)(function(){(0,Ne.hq)(me,"@ant-design-icons",{prepend:!0,csp:Oe})},[])},H=["icon","className","onClick","style","primaryColor","secondaryColor"],te={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function k(Q){var me=Q.primaryColor,ke=Q.secondaryColor;te.primaryColor=me,te.secondaryColor=ke||je(me),te.calculated=!!ke}function D(){return(0,t.Z)({},te)}var ee=function(me){var ke=me.icon,Oe=me.className,Te=me.onClick,we=me.style,Be=me.primaryColor,Le=me.secondaryColor,ot=(0,a.Z)(me,H),rt=te;if(Be&&(rt={primaryColor:Be,secondaryColor:Le||je(Be)}),ie(),Pt(qe(ke),"icon should be icon definiton, but got ".concat(ke)),!qe(ke))return null;var at=ke;return at&&typeof at.icon=="function"&&(at=(0,t.Z)((0,t.Z)({},at),{},{icon:at.icon(rt.primaryColor,rt.secondaryColor)})),et(at.icon,"svg-".concat(at.name),(0,t.Z)({className:Oe,onClick:Te,style:we,"data-icon":at.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},ot))};ee.displayName="IconReact",ee.getTwoToneColors=D,ee.setTwoToneColors=k;var de=ee;function Se(Q){var me=N(Q),ke=(0,r.Z)(me,2),Oe=ke[0],Te=ke[1];return de.setTwoToneColors({primaryColor:Oe,secondaryColor:Te})}function Me(){var Q=de.getTwoToneColors();return Q.calculated?[Q.primaryColor,Q.secondaryColor]:Q.primaryColor}var ue=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Se("#1890ff");var be=s.forwardRef(function(Q,me){var ke,Oe=Q.className,Te=Q.icon,we=Q.spin,Be=Q.rotate,Le=Q.tabIndex,ot=Q.onClick,rt=Q.twoToneColor,at=(0,a.Z)(Q,ue),wt=s.useContext(d),St=wt.prefixCls,Bt=St===void 0?"anticon":St,Vt=wt.rootClassName,It=l()(Vt,Bt,(ke={},(0,o.Z)(ke,"".concat(Bt,"-").concat(Te.name),!!Te.name),(0,o.Z)(ke,"".concat(Bt,"-spin"),!!we||Te.name==="loading"),ke),Oe),rn=Le;rn===void 0&&ot&&(rn=-1);var pn=Be?{msTransform:"rotate(".concat(Be,"deg)"),transform:"rotate(".concat(Be,"deg)")}:void 0,Tn=N(rt),Ge=(0,r.Z)(Tn,2),Ct=Ge[0],zt=Ge[1];return s.createElement("span",(0,t.Z)((0,t.Z)({role:"img","aria-label":Te.name},at),{},{ref:me,tabIndex:rn,onClick:ot,className:It}),s.createElement(de,{icon:Te,primaryColor:Ct,secondaryColor:zt,style:pn}))});be.displayName="AntdIcon",be.getTwoToneColor=Me,be.setTwoToneColor=Se;var Ke=be},74825:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(93264),r=e(79685),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},a=o,s=e(64507),c=function(d,p){return r.createElement(s.Z,(0,t.Z)((0,t.Z)({},d),{},{ref:p,icon:a}))};c.displayName="LogoutOutlined";var l=r.forwardRef(c)},46766:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(93264),r=e(79685),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},a=o,s=e(64507),c=function(d,p){return r.createElement(s.Z,(0,t.Z)((0,t.Z)({},d),{},{ref:p,icon:a}))};c.displayName="UserOutlined";var l=r.forwardRef(c)},83317:function(v,g,e){"use strict";e.d(g,{Z:function(){return j}});var t=e(21137),r=e(89342),o=e(6346),a=e(98787),s=e(79685),c=e(68591),l=e.n(c),u=e(32145),d=e(93370),p=e(93264),y=e(32296),h=["icon","className","onClick","style","primaryColor","secondaryColor"],f={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function b(G){var U=G.primaryColor,w=G.secondaryColor;f.primaryColor=U,f.secondaryColor=w||(0,y.pw)(U),f.calculated=!!w}function S(){return(0,p.Z)({},f)}var E=function(U){var w=U.icon,F=U.className,z=U.onClick,V=U.style,q=U.primaryColor,ne=U.secondaryColor,se=(0,a.Z)(U,h),ye=s.useRef(),$=f;if(q&&($={primaryColor:q,secondaryColor:ne||(0,y.pw)(q)}),(0,y.C3)(ye),(0,y.Kp)((0,y.r)(w),"icon should be icon definiton, but got ".concat(w)),!(0,y.r)(w))return null;var B=w;return B&&typeof B.icon=="function"&&(B=(0,p.Z)((0,p.Z)({},B),{},{icon:B.icon($.primaryColor,$.secondaryColor)})),(0,y.R_)(B.icon,"svg-".concat(B.name),(0,p.Z)((0,p.Z)({className:F,onClick:z,style:V,"data-icon":B.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},se),{},{ref:ye}))};E.displayName="IconReact",E.getTwoToneColors=S,E.setTwoToneColors=b;var O=E;function P(G){var U=(0,y.H9)(G),w=(0,r.Z)(U,2),F=w[0],z=w[1];return O.setTwoToneColors({primaryColor:F,secondaryColor:z})}function R(){var G=O.getTwoToneColors();return G.calculated?[G.primaryColor,G.secondaryColor]:G.primaryColor}var Z=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];P(u.blue.primary);var L=s.forwardRef(function(G,U){var w,F=G.className,z=G.icon,V=G.spin,q=G.rotate,ne=G.tabIndex,se=G.onClick,ye=G.twoToneColor,$=(0,a.Z)(G,Z),B=s.useContext(d.Z),T=B.prefixCls,x=T===void 0?"anticon":T,A=B.rootClassName,_=l()(A,x,(w={},(0,o.Z)(w,"".concat(x,"-").concat(z.name),!!z.name),(0,o.Z)(w,"".concat(x,"-spin"),!!V||z.name==="loading"),w),F),ce=ne;ce===void 0&&se&&(ce=-1);var Y=q?{msTransform:"rotate(".concat(q,"deg)"),transform:"rotate(".concat(q,"deg)")}:void 0,X=(0,y.H9)(ye),he=(0,r.Z)(X,2),Ee=he[0],Ae=he[1];return s.createElement("span",(0,t.Z)({role:"img","aria-label":z.name},$,{ref:U,tabIndex:ce,onClick:se,className:_}),s.createElement(O,{icon:z,primaryColor:Ee,secondaryColor:Ae,style:Y}))});L.displayName="AntdIcon",L.getTwoToneColor=R,L.setTwoToneColor=P;var j=L},93370:function(v,g,e){"use strict";var t=e(79685),r=(0,t.createContext)({});g.Z=r},40139:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(21137),r=e(79685),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=o,s=e(83317),c=function(d,p){return r.createElement(s.Z,(0,t.Z)({},d,{ref:p,icon:a}))},l=r.forwardRef(c)},89946:function(v,g,e){"use strict";var t=e(21137),r=e(79685),o=e(61391),a=e(83317),s=function(l,u){return r.createElement(a.Z,(0,t.Z)({},l,{ref:u,icon:o.Z}))};g.Z=r.forwardRef(s)},96032:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(21137),r=e(79685),o={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=o,s=e(83317),c=function(d,p){return r.createElement(s.Z,(0,t.Z)({},d,{ref:p,icon:a}))},l=r.forwardRef(c)},99992:function(v,g,e){"use strict";var t=e(21137),r=e(79685),o=e(72796),a=e(83317),s=function(l,u){return r.createElement(a.Z,(0,t.Z)({},l,{ref:u,icon:o.Z}))};g.Z=r.forwardRef(s)},65845:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(21137),r=e(79685),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=o,s=e(83317),c=function(d,p){return r.createElement(s.Z,(0,t.Z)({},d,{ref:p,icon:a}))},l=r.forwardRef(c)},13795:function(v,g,e){"use strict";var t=e(21137),r=e(79685),o=e(90462),a=e(83317),s=function(l,u){return r.createElement(a.Z,(0,t.Z)({},l,{ref:u,icon:o.Z}))};g.Z=r.forwardRef(s)},22901:function(v,g,e){"use strict";var t=e(21137),r=e(79685),o=e(62415),a=e(83317),s=function(l,u){return r.createElement(a.Z,(0,t.Z)({},l,{ref:u,icon:o.Z}))};g.Z=r.forwardRef(s)},83975:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(21137),r=e(79685),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=o,s=e(83317),c=function(d,p){return r.createElement(s.Z,(0,t.Z)({},d,{ref:p,icon:a}))},l=r.forwardRef(c)},64167:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(21137),r=e(79685),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=o,s=e(83317),c=function(d,p){return r.createElement(s.Z,(0,t.Z)({},d,{ref:p,icon:a}))},l=r.forwardRef(c)},35051:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(21137),r=e(79685),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=o,s=e(83317),c=function(d,p){return r.createElement(s.Z,(0,t.Z)({},d,{ref:p,icon:a}))},l=r.forwardRef(c)},75527:function(v,g,e){"use strict";var t=e(21137),r=e(79685),o=e(41009),a=e(83317),s=function(l,u){return r.createElement(a.Z,(0,t.Z)({},l,{ref:u,icon:o.Z}))};g.Z=r.forwardRef(s)},60190:function(v,g,e){"use strict";var t=e(21137),r=e(79685),o=e(20590),a=e(83317),s=function(l,u){return r.createElement(a.Z,(0,t.Z)({},l,{ref:u,icon:o.Z}))};g.Z=r.forwardRef(s)},66907:function(v,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(21137),r=e(79685),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=o,s=e(83317),c=function(d,p){return r.createElement(s.Z,(0,t.Z)({},d,{ref:p,icon:a}))},l=r.forwardRef(c)},78743:function(v,g,e){"use strict";var t=e(21137),r=e(79685),o=e(48167),a=e(83317),s=function(l,u){return r.createElement(a.Z,(0,t.Z)({},l,{ref:u,icon:o.Z}))};g.Z=r.forwardRef(s)},32296:function(v,g,e){"use strict";e.d(g,{C3:function(){return P},H9:function(){return S},Kp:function(){return p},R_:function(){return f},pw:function(){return b},r:function(){return y},vD:function(){return E}});var t=e(93264),r=e(63195),o=e(32145),a=e(13394),s=e(58451),c=e(30765),l=e(79685),u=e(93370);function d(R){return R.replace(/-(.)/g,function(Z,L){return L.toUpperCase()})}function p(R,Z){(0,c.ZP)(R,"[@ant-design/icons] ".concat(Z))}function y(R){return(0,r.Z)(R)==="object"&&typeof R.name=="string"&&typeof R.theme=="string"&&((0,r.Z)(R.icon)==="object"||typeof R.icon=="function")}function h(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(R).reduce(function(Z,L){var j=R[L];switch(L){case"class":Z.className=j,delete Z.class;break;default:delete Z[L],Z[d(L)]=j}return Z},{})}function f(R,Z,L){return L?l.createElement(R.tag,(0,t.Z)((0,t.Z)({key:Z},h(R.attrs)),L),(R.children||[]).map(function(j,G){return f(j,"".concat(Z,"-").concat(R.tag,"-").concat(G))})):l.createElement(R.tag,(0,t.Z)({key:Z},h(R.attrs)),(R.children||[]).map(function(j,G){return f(j,"".concat(Z,"-").concat(R.tag,"-").concat(G))}))}function b(R){return(0,o.generate)(R)[0]}function S(R){return R?Array.isArray(R)?R:[R]:[]}var E={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},O=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,P=function(Z){var L=(0,l.useContext)(u.Z),j=L.csp,G=L.prefixCls,U=O;G&&(U=U.replace(/anticon/g,G)),(0,l.useEffect)(function(){var w=Z.current,F=(0,s.A)(w);(0,a.hq)(U,"@ant-design-icons",{prepend:!0,csp:j,attachTo:F})},[])}},94353:function(v,g,e){"use strict";e.d(g,{q:function(){return Z}});var t=e(93264),r=e(21137),o=e(79685),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},s=a,c=e(83317),l=function(j,G){return o.createElement(c.Z,(0,r.Z)({},j,{ref:G,icon:s}))},u=o.forwardRef(l),d=e(8459),p=e(89543),y=e(68591),h=e.n(y),f=e(6346),b=e(33298),S=function(j){return(0,f.Z)({},j.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:j.colorTextSecondary,"&-link":{color:j.colorTextSecondary,textDecoration:j.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:j.colorPrimary}},"&-copyright":{fontSize:"14px",color:j.colorText}})};function E(L){return(0,b.Xj)("ProLayoutFooter",function(j){var G=(0,t.Z)((0,t.Z)({},j),{},{componentCls:".".concat(L)});return[S(G)]})}var O=e(63342),P=function(j){var G=j.className,U=j.prefixCls,w=j.links,F=j.copyright,z=j.style,V=(0,o.useContext)(p.ZP.ConfigContext),q=V.getPrefixCls(U||"pro-global-footer"),ne=E(q),se=ne.wrapSSR,ye=ne.hashId;return(w==null||w===!1||Array.isArray(w)&&w.length===0)&&(F==null||F===!1)?null:se((0,O.jsxs)("div",{className:h()(q,ye,G),style:z,children:[w&&(0,O.jsx)("div",{className:"".concat(q,"-list ").concat(ye).trim(),children:w.map(function($){return(0,O.jsx)("a",{className:"".concat(q,"-list-link ").concat(ye).trim(),title:$.key,target:$.blankTarget?"_blank":"_self",href:$.href,rel:"noreferrer",children:$.title},$.key)})}),F&&(0,O.jsx)("div",{className:"".concat(q,"-copyright ").concat(ye).trim(),children:F})]}))},R=d.Z.Footer,Z=function(j){var G=j.links,U=j.copyright,w=j.style,F=j.className,z=j.prefixCls;return(0,O.jsx)(R,{className:F,style:(0,t.Z)({padding:0},w),children:(0,O.jsx)(P,{links:G,prefixCls:z,copyright:U===!1?null:(0,O.jsxs)(o.Fragment,{children:[(0,O.jsx)(u,{})," ",U]})})})}},72026:function(v,g,e){"use strict";e.d(g,{h:function(){return t}});var t={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1}},92570:function(v,g,e){"use strict";e.d(g,{e:function(){return S},G:function(){return b}});var t=e(30650),r=e(93264),o={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success\uFF0Cplease replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},a=(0,r.Z)({},o),s={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalit\xE0 di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello \xE8 visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},c=(0,r.Z)({},s),l={"app.setting.pagestyle":"\uC2A4\uD0C0\uC77C \uC124\uC815","app.setting.pagestyle.dark":"\uB2E4\uD06C \uBAA8\uB4DC","app.setting.pagestyle.light":"\uB77C\uC774\uD2B8 \uBAA8\uB4DC","app.setting.content-width":"\uCEE8\uD150\uCE20 \uB108\uBE44","app.setting.content-width.fixed":"\uACE0\uC815","app.setting.content-width.fluid":"\uD750\uB984","app.setting.themecolor":"\uD14C\uB9C8 \uC0C9\uC0C1","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"\uB124\uBE44\uAC8C\uC774\uC158 \uBAA8\uB4DC","app.setting.regionalsettings":"\uC601\uC5ED\uBCC4 \uC124\uC815","app.setting.regionalsettings.header":"\uD5E4\uB354","app.setting.regionalsettings.menu":"\uBA54\uB274","app.setting.regionalsettings.footer":"\uBC14\uB2E5\uAE00","app.setting.regionalsettings.menuHeader":"\uBA54\uB274 \uD5E4\uB354","app.setting.sidemenu":"\uBA54\uB274 \uC0AC\uC774\uB4DC \uBC30\uCE58","app.setting.topmenu":"\uBA54\uB274 \uC0C1\uB2E8 \uBC30\uCE58","app.setting.mixmenu":"\uD63C\uD569\uD615 \uBC30\uCE58","app.setting.splitMenus":"\uBA54\uB274 \uBD84\uB9AC","app.setting.fixedheader":"\uD5E4\uB354 \uACE0\uC815","app.setting.fixedsidebar":"\uC0AC\uC774\uB4DC\uBC14 \uACE0\uC815","app.setting.fixedsidebar.hint":"'\uBA54\uB274 \uC0AC\uC774\uB4DC \uBC30\uCE58'\uB97C \uC120\uD0DD\uD588\uC744 \uB54C \uB3D9\uC791\uD568","app.setting.hideheader":"\uC2A4\uD06C\uB864 \uC911 \uD5E4\uB354 \uAC10\uCD94\uAE30","app.setting.hideheader.hint":"'\uD5E4\uB354 \uAC10\uCD94\uAE30 \uC635\uC158'\uC744 \uC120\uD0DD\uD588\uC744 \uB54C \uB3D9\uC791\uD568","app.setting.othersettings":"\uB2E4\uB978 \uC124\uC815","app.setting.weakmode":"\uACE0\uB300\uBE44 \uBAA8\uB4DC","app.setting.copy":"\uC124\uC815\uAC12 \uBCF5\uC0AC","app.setting.loading":"\uD14C\uB9C8 \uB85C\uB529 \uC911","app.setting.copyinfo":"\uBCF5\uC0AC \uC131\uACF5. src/models/settings.js\uC5D0 \uC788\uB294 defaultSettings\uB97C \uAD50\uCCB4\uD574 \uC8FC\uC138\uC694.","app.setting.production.hint":"\uC124\uC815 \uD310\uB12C\uC740 \uAC1C\uBC1C \uD658\uACBD\uC5D0\uC11C\uB9CC \uBCF4\uC5EC\uC9D1\uB2C8\uB2E4. \uC9C1\uC811 \uC218\uB3D9\uC73C\uB85C \uBCC0\uACBD\uBC14\uB78D\uB2C8\uB2E4."},u=(0,r.Z)({},l),d={"app.setting.pagestyle":"\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E","app.setting.pagestyle.dark":"\u6697\u8272\u83DC\u5355\u98CE\u683C","app.setting.pagestyle.light":"\u4EAE\u8272\u83DC\u5355\u98CE\u683C","app.setting.pagestyle.realdark":"\u6697\u8272\u98CE\u683C(\u5B9E\u9A8C\u529F\u80FD)","app.setting.content-width":"\u5185\u5BB9\u533A\u57DF\u5BBD\u5EA6","app.setting.content-width.fixed":"\u5B9A\u5BBD","app.setting.content-width.fluid":"\u6D41\u5F0F","app.setting.themecolor":"\u4E3B\u9898\u8272","app.setting.themecolor.dust":"\u8584\u66AE","app.setting.themecolor.volcano":"\u706B\u5C71","app.setting.themecolor.sunset":"\u65E5\u66AE","app.setting.themecolor.cyan":"\u660E\u9752","app.setting.themecolor.green":"\u6781\u5149\u7EFF","app.setting.themecolor.techBlue":"\u79D1\u6280\u84DD\uFF08\u9ED8\u8BA4\uFF09","app.setting.themecolor.daybreak":"\u62C2\u6653","app.setting.themecolor.geekblue":"\u6781\u5BA2\u84DD","app.setting.themecolor.purple":"\u9171\u7D2B","app.setting.navigationmode":"\u5BFC\u822A\u6A21\u5F0F","app.setting.sidermenutype":"\u4FA7\u8FB9\u83DC\u5355\u7C7B\u578B","app.setting.sidermenutype-sub":"\u7ECF\u5178\u6A21\u5F0F","app.setting.sidermenutype-group":"\u5206\u7EC4\u6A21\u5F0F","app.setting.regionalsettings":"\u5185\u5BB9\u533A\u57DF","app.setting.regionalsettings.header":"\u9876\u680F","app.setting.regionalsettings.menu":"\u83DC\u5355","app.setting.regionalsettings.footer":"\u9875\u811A","app.setting.regionalsettings.menuHeader":"\u83DC\u5355\u5934","app.setting.sidemenu":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40","app.setting.topmenu":"\u9876\u90E8\u83DC\u5355\u5E03\u5C40","app.setting.mixmenu":"\u6DF7\u5408\u83DC\u5355\u5E03\u5C40","app.setting.splitMenus":"\u81EA\u52A8\u5206\u5272\u83DC\u5355","app.setting.fixedheader":"\u56FA\u5B9A Header","app.setting.fixedsidebar":"\u56FA\u5B9A\u4FA7\u8FB9\u83DC\u5355","app.setting.fixedsidebar.hint":"\u4FA7\u8FB9\u83DC\u5355\u5E03\u5C40\u65F6\u53EF\u914D\u7F6E","app.setting.hideheader":"\u4E0B\u6ED1\u65F6\u9690\u85CF Header","app.setting.hideheader.hint":"\u56FA\u5B9A Header \u65F6\u53EF\u914D\u7F6E","app.setting.othersettings":"\u5176\u4ED6\u8BBE\u7F6E","app.setting.weakmode":"\u8272\u5F31\u6A21\u5F0F","app.setting.copy":"\u62F7\u8D1D\u8BBE\u7F6E","app.setting.loading":"\u6B63\u5728\u52A0\u8F7D\u4E3B\u9898","app.setting.copyinfo":"\u62F7\u8D1D\u6210\u529F\uFF0C\u8BF7\u5230 src/defaultSettings.js \u4E2D\u66FF\u6362\u9ED8\u8BA4\u914D\u7F6E","app.setting.production.hint":"\u914D\u7F6E\u680F\u53EA\u5728\u5F00\u53D1\u73AF\u5883\u7528\u4E8E\u9884\u89C8\uFF0C\u751F\u4EA7\u73AF\u5883\u4E0D\u4F1A\u5C55\u73B0\uFF0C\u8BF7\u62F7\u8D1D\u540E\u624B\u52A8\u4FEE\u6539\u914D\u7F6E\u6587\u4EF6"},p=(0,r.Z)({},d),y={"app.setting.pagestyle":"\u6574\u9AD4\u98A8\u683C\u8A2D\u7F6E","app.setting.pagestyle.dark":"\u6697\u8272\u83DC\u55AE\u98A8\u683C","app.setting.pagestyle.realdark":"\u6697\u8272\u98A8\u683C(\u5B9E\u9A8C\u529F\u80FD)","app.setting.pagestyle.light":"\u4EAE\u8272\u83DC\u55AE\u98A8\u683C","app.setting.content-width":"\u5167\u5BB9\u5340\u57DF\u5BEC\u5EA6","app.setting.content-width.fixed":"\u5B9A\u5BEC","app.setting.content-width.fluid":"\u6D41\u5F0F","app.setting.themecolor":"\u4E3B\u984C\u8272","app.setting.themecolor.dust":"\u8584\u66AE","app.setting.themecolor.volcano":"\u706B\u5C71","app.setting.themecolor.sunset":"\u65E5\u66AE","app.setting.themecolor.cyan":"\u660E\u9752","app.setting.themecolor.green":"\u6975\u5149\u7DA0","app.setting.themecolor.techBlue":"\u79D1\u6280\u84DD\uFF08\u9ED8\u8A8D\uFF09","app.setting.themecolor.daybreak":"\u62C2\u66C9\u85CD","app.setting.themecolor.geekblue":"\u6975\u5BA2\u85CD","app.setting.themecolor.purple":"\u91AC\u7D2B","app.setting.navigationmode":"\u5C0E\u822A\u6A21\u5F0F","app.setting.sidemenu":"\u5074\u908A\u83DC\u55AE\u5E03\u5C40","app.setting.topmenu":"\u9802\u90E8\u83DC\u55AE\u5E03\u5C40","app.setting.mixmenu":"\u6DF7\u5408\u83DC\u55AE\u5E03\u5C40","app.setting.splitMenus":"\u81EA\u52A8\u5206\u5272\u83DC\u5355","app.setting.fixedheader":"\u56FA\u5B9A Header","app.setting.fixedsidebar":"\u56FA\u5B9A\u5074\u908A\u83DC\u55AE","app.setting.fixedsidebar.hint":"\u5074\u908A\u83DC\u55AE\u5E03\u5C40\u6642\u53EF\u914D\u7F6E","app.setting.hideheader":"\u4E0B\u6ED1\u6642\u96B1\u85CF Header","app.setting.hideheader.hint":"\u56FA\u5B9A Header \u6642\u53EF\u914D\u7F6E","app.setting.othersettings":"\u5176\u4ED6\u8A2D\u7F6E","app.setting.weakmode":"\u8272\u5F31\u6A21\u5F0F","app.setting.copy":"\u62F7\u8C9D\u8A2D\u7F6E","app.setting.loading":"\u6B63\u5728\u52A0\u8F09\u4E3B\u984C","app.setting.copyinfo":"\u62F7\u8C9D\u6210\u529F\uFF0C\u8ACB\u5230 src/defaultSettings.js \u4E2D\u66FF\u63DB\u9ED8\u8A8D\u914D\u7F6E","app.setting.production.hint":"\u914D\u7F6E\u6B04\u53EA\u5728\u958B\u767C\u74B0\u5883\u7528\u65BC\u9810\u89BD\uFF0C\u751F\u7522\u74B0\u5883\u4E0D\u6703\u5C55\u73FE\uFF0C\u8ACB\u62F7\u8C9D\u5F8C\u624B\u52D5\u4FEE\u6539\u914D\u7F6E\u6587\u4EF6"},h=(0,r.Z)({},y),f={"zh-CN":p,"zh-TW":h,"en-US":a,"it-IT":c,"ko-KR":u},b=function(){if(!(0,t.j)())return"zh-CN";var O=window.localStorage.getItem("umi_locale");return O||window.g_locale||navigator.language},S=function(){var O=b();return f[O]||f["zh-CN"]}},69870:function(v,g,e){"use strict";e.d(g,{O7:function(){return r},QX:function(){return s},tV:function(){return a}});var t=e(93264),r=function c(l){return(l||[]).reduce(function(u,d){if(d.key&&u.push(d.key),d.children||d.routes){var p=u.concat(c(d.children||d.routes)||[]);return p}return u},[])},o={techBlue:"#1677FF",daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function a(c){return c&&o[c]?o[c]:c||""}function s(c){return c.map(function(l){var u=l.children||[],d=(0,t.Z)({},l);if(!d.children&&d.routes&&(d.children=d.routes),!d.name||d.hideInMenu)return null;if(d&&d!==null&&d!==void 0&&d.children){if(!d.hideChildrenInMenu&&u.some(function(p){return p&&p.name&&!p.hideInMenu}))return(0,t.Z)((0,t.Z)({},l),{},{children:s(u)});delete d.children}return delete d.routes,d}).filter(function(l){return l})}},56671:function(v,g,e){"use strict";e.d(g,{_Y:function(){return q},L_:function(){return se},ZP:function(){return ye},nu:function(){return U},YB:function(){return ne}});var t=e(57963),r=e(89342),o=e(98787),a=e(93264),s=e(26477),c=e(85865),l=e(89543),u=e(67737),d=e(79685),p=e(85123),y=e(4642),h=e(50510),f=e.n(h),b=e(33298),S=function(B,T){var x,A,_,ce,Y,X=(0,a.Z)({},B);return(0,a.Z)((0,a.Z)({bgLayout:"linear-gradient(".concat(T.colorBgContainer,", ").concat(T.colorBgLayout," 28%)"),colorTextAppListIcon:T.colorTextSecondary,appListIconHoverBgColor:X==null||(x=X.sider)===null||x===void 0?void 0:x.colorBgMenuItemSelected,colorBgAppListIconHover:(0,b.uK)(T.colorTextBase,.04),colorTextAppListIconHover:T.colorTextBase},X),{},{header:(0,a.Z)({colorBgHeader:(0,b.uK)(T.colorBgElevated,.6),colorBgScrollHeader:(0,b.uK)(T.colorBgElevated,.8),colorHeaderTitle:T.colorText,colorBgMenuItemHover:(0,b.uK)(T.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(X==null||(A=X.header)===null||A===void 0?void 0:A.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(_=X.header)===null||_===void 0?void 0:_.colorBgHeader:T.colorBgElevated,colorTextMenuSelected:(0,b.uK)(T.colorTextBase,.95),colorBgRightActionsItemHover:(0,b.uK)(T.colorTextBase,.03),colorTextRightActionsItem:T.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:T.colorTextSecondary,colorTextMenuSecondary:T.colorTextTertiary,colorTextMenuTitle:T.colorText,colorTextMenuActive:T.colorText},X.header),sider:(0,a.Z)({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:T.colorBgElevated,colorTextCollapsedButtonHover:T.colorTextSecondary,colorTextCollapsedButton:(0,b.uK)(T.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:(0,b.uK)(T.colorTextBase,.06),colorBgMenuItemHover:(0,b.uK)(T.colorTextBase,.03),colorBgMenuItemSelected:(0,b.uK)(T.colorTextBase,.04),colorTextMenuItemHover:T.colorText,colorTextMenuSelected:(0,b.uK)(T.colorTextBase,.95),colorTextMenuActive:T.colorText,colorTextMenu:T.colorTextSecondary,colorTextMenuSecondary:T.colorTextTertiary,colorTextMenuTitle:T.colorText,colorTextSubMenuSelected:(0,b.uK)(T.colorTextBase,.95)},X.sider),pageContainer:(0,a.Z)({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((ce=X.pageContainer)===null||ce===void 0?void 0:ce.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((Y=X.pageContainer)===null||Y===void 0?void 0:Y.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:T.colorBgElevated},X.pageContainer)})},E=e(39377),O=e(63195),P=function(){for(var B={},T=arguments.length,x=new Array(T),A=0;A1&&arguments[1]!==void 0?arguments[1]:1,f=3735928559^h,b=1103547991^h,S=0,E;S>>16,2246822507)^Math.imul(b^b>>>13,3266489909),b=Math.imul(b^b>>>16,2246822507)^Math.imul(f^f>>>13,3266489909),4294967296*(2097151&b)+(f>>>0)},l=(0,r.jG)(function(p){return p}),u={theme:l,token:(0,t.Z)((0,t.Z)({},s),o.Z===null||o.Z===void 0||(a=o.Z.defaultAlgorithm)===null||a===void 0?void 0:a.call(o.Z,o.Z===null||o.Z===void 0?void 0:o.Z.defaultSeed)),hashId:"pro-".concat(c(JSON.stringify(s)))},d=function(){return u}},97340:function(v,g,e){"use strict";e.d(g,{n:function(){return p}});var t=e(89342),r=e(63195),o=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,a=function(h){return h==="*"||h==="x"||h==="X"},s=function(h){var f=parseInt(h,10);return isNaN(f)?h:f},c=function(h,f){return(0,r.Z)(h)!==(0,r.Z)(f)?[String(h),String(f)]:[h,f]},l=function(h,f){if(a(h)||a(f))return 0;var b=c(s(h),s(f)),S=(0,t.Z)(b,2),E=S[0],O=S[1];return E>O?1:E-1?{open:u,onOpenChange:d}:{visible:u,onVisibleChange:d};return(0,r.Y)(p)}},30650:function(v,g,e){"use strict";e.d(g,{j:function(){return o}});var t=e(93738),r=typeof t!="undefined"&&t.versions!=null&&t.versions.node!=null,o=function(){return typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.matchMedia!="undefined"&&!r}},18750:function(v,g,e){"use strict";e.d(g,{T:function(){return o}});var t=e(93264),r=e(63195),o=function(){for(var s={},c=arguments.length,l=new Array(c),u=0;u.5?G/(2-P-R):G/(P+R),P){case S:Z=(E-O)/G+(E1&&(O-=1),O<.16666666666666666?S+(E-S)*(6*O):O<.5?E:O<.6666666666666666?S+(E-S)*(.6666666666666666-O)*6:S}function s(S,E,O){var P,R,Z;if(S=(0,t.sh)(S,360),E=(0,t.sh)(E,100),O=(0,t.sh)(O,100),E===0)R=O,Z=O,P=O;else{var L=O<.5?O*(1+E):O+E-O*E,j=2*O-L;P=a(j,L,S+.3333333333333333),R=a(j,L,S),Z=a(j,L,S-.3333333333333333)}return{r:P*255,g:R*255,b:Z*255}}function c(S,E,O){S=(0,t.sh)(S,255),E=(0,t.sh)(E,255),O=(0,t.sh)(O,255);var P=Math.max(S,E,O),R=Math.min(S,E,O),Z=0,L=P,j=P-R,G=P===0?0:j/P;if(P===R)Z=0;else{switch(P){case S:Z=(E-O)/j+(E>16,g:(S&65280)>>8,b:S&255}}},37805:function(v,g,e){"use strict";e.d(g,{R:function(){return t}});var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},69075:function(v,g,e){"use strict";e.d(g,{uA:function(){return a}});var t=e(79356),r=e(37805),o=e(59224);function a(f){var b={r:0,g:0,b:0},S=1,E=null,O=null,P=null,R=!1,Z=!1;return typeof f=="string"&&(f=y(f)),typeof f=="object"&&(h(f.r)&&h(f.g)&&h(f.b)?(b=(0,t.rW)(f.r,f.g,f.b),R=!0,Z=String(f.r).substr(-1)==="%"?"prgb":"rgb"):h(f.h)&&h(f.s)&&h(f.v)?(E=(0,o.JX)(f.s),O=(0,o.JX)(f.v),b=(0,t.WE)(f.h,E,O),R=!0,Z="hsv"):h(f.h)&&h(f.s)&&h(f.l)&&(E=(0,o.JX)(f.s),P=(0,o.JX)(f.l),b=(0,t.ve)(f.h,E,P),R=!0,Z="hsl"),Object.prototype.hasOwnProperty.call(f,"a")&&(S=f.a)),S=(0,o.Yq)(S),{ok:R,format:f.format||Z,r:Math.min(255,Math.max(b.r,0)),g:Math.min(255,Math.max(b.g,0)),b:Math.min(255,Math.max(b.b,0)),a:S}}var s="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",l="(?:".concat(c,")|(?:").concat(s,")"),u="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),d="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),p={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+u),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+u),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+u),hsva:new RegExp("hsva"+d),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function y(f){if(f=f.trim().toLowerCase(),f.length===0)return!1;var b=!1;if(r.R[f])f=r.R[f],b=!0;else if(f==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var S=p.rgb.exec(f);return S?{r:S[1],g:S[2],b:S[3]}:(S=p.rgba.exec(f),S?{r:S[1],g:S[2],b:S[3],a:S[4]}:(S=p.hsl.exec(f),S?{h:S[1],s:S[2],l:S[3]}:(S=p.hsla.exec(f),S?{h:S[1],s:S[2],l:S[3],a:S[4]}:(S=p.hsv.exec(f),S?{h:S[1],s:S[2],v:S[3]}:(S=p.hsva.exec(f),S?{h:S[1],s:S[2],v:S[3],a:S[4]}:(S=p.hex8.exec(f),S?{r:(0,t.VD)(S[1]),g:(0,t.VD)(S[2]),b:(0,t.VD)(S[3]),a:(0,t.T6)(S[4]),format:b?"name":"hex8"}:(S=p.hex6.exec(f),S?{r:(0,t.VD)(S[1]),g:(0,t.VD)(S[2]),b:(0,t.VD)(S[3]),format:b?"name":"hex"}:(S=p.hex4.exec(f),S?{r:(0,t.VD)(S[1]+S[1]),g:(0,t.VD)(S[2]+S[2]),b:(0,t.VD)(S[3]+S[3]),a:(0,t.T6)(S[4]+S[4]),format:b?"name":"hex8"}:(S=p.hex3.exec(f),S?{r:(0,t.VD)(S[1]+S[1]),g:(0,t.VD)(S[2]+S[2]),b:(0,t.VD)(S[3]+S[3]),format:b?"name":"hex"}:!1)))))))))}function h(f){return!!p.CSS_UNIT.exec(String(f))}},73838:function(v,g,e){"use strict";e.d(g,{C:function(){return s}});var t=e(79356),r=e(37805),o=e(69075),a=e(59224),s=function(){function l(u,d){u===void 0&&(u=""),d===void 0&&(d={});var p;if(u instanceof l)return u;typeof u=="number"&&(u=(0,t.Yt)(u)),this.originalInput=u;var y=(0,o.uA)(u);this.originalInput=u,this.r=y.r,this.g=y.g,this.b=y.b,this.a=y.a,this.roundA=Math.round(100*this.a)/100,this.format=(p=d.format)!==null&&p!==void 0?p:y.format,this.gradientType=d.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=y.ok}return l.prototype.isDark=function(){return this.getBrightness()<128},l.prototype.isLight=function(){return!this.isDark()},l.prototype.getBrightness=function(){var u=this.toRgb();return(u.r*299+u.g*587+u.b*114)/1e3},l.prototype.getLuminance=function(){var u=this.toRgb(),d,p,y,h=u.r/255,f=u.g/255,b=u.b/255;return h<=.03928?d=h/12.92:d=Math.pow((h+.055)/1.055,2.4),f<=.03928?p=f/12.92:p=Math.pow((f+.055)/1.055,2.4),b<=.03928?y=b/12.92:y=Math.pow((b+.055)/1.055,2.4),.2126*d+.7152*p+.0722*y},l.prototype.getAlpha=function(){return this.a},l.prototype.setAlpha=function(u){return this.a=(0,a.Yq)(u),this.roundA=Math.round(100*this.a)/100,this},l.prototype.isMonochrome=function(){var u=this.toHsl().s;return u===0},l.prototype.toHsv=function(){var u=(0,t.py)(this.r,this.g,this.b);return{h:u.h*360,s:u.s,v:u.v,a:this.a}},l.prototype.toHsvString=function(){var u=(0,t.py)(this.r,this.g,this.b),d=Math.round(u.h*360),p=Math.round(u.s*100),y=Math.round(u.v*100);return this.a===1?"hsv(".concat(d,", ").concat(p,"%, ").concat(y,"%)"):"hsva(".concat(d,", ").concat(p,"%, ").concat(y,"%, ").concat(this.roundA,")")},l.prototype.toHsl=function(){var u=(0,t.lC)(this.r,this.g,this.b);return{h:u.h*360,s:u.s,l:u.l,a:this.a}},l.prototype.toHslString=function(){var u=(0,t.lC)(this.r,this.g,this.b),d=Math.round(u.h*360),p=Math.round(u.s*100),y=Math.round(u.l*100);return this.a===1?"hsl(".concat(d,", ").concat(p,"%, ").concat(y,"%)"):"hsla(".concat(d,", ").concat(p,"%, ").concat(y,"%, ").concat(this.roundA,")")},l.prototype.toHex=function(u){return u===void 0&&(u=!1),(0,t.vq)(this.r,this.g,this.b,u)},l.prototype.toHexString=function(u){return u===void 0&&(u=!1),"#"+this.toHex(u)},l.prototype.toHex8=function(u){return u===void 0&&(u=!1),(0,t.s)(this.r,this.g,this.b,this.a,u)},l.prototype.toHex8String=function(u){return u===void 0&&(u=!1),"#"+this.toHex8(u)},l.prototype.toHexShortString=function(u){return u===void 0&&(u=!1),this.a===1?this.toHexString(u):this.toHex8String(u)},l.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},l.prototype.toRgbString=function(){var u=Math.round(this.r),d=Math.round(this.g),p=Math.round(this.b);return this.a===1?"rgb(".concat(u,", ").concat(d,", ").concat(p,")"):"rgba(".concat(u,", ").concat(d,", ").concat(p,", ").concat(this.roundA,")")},l.prototype.toPercentageRgb=function(){var u=function(d){return"".concat(Math.round((0,a.sh)(d,255)*100),"%")};return{r:u(this.r),g:u(this.g),b:u(this.b),a:this.a}},l.prototype.toPercentageRgbString=function(){var u=function(d){return Math.round((0,a.sh)(d,255)*100)};return this.a===1?"rgb(".concat(u(this.r),"%, ").concat(u(this.g),"%, ").concat(u(this.b),"%)"):"rgba(".concat(u(this.r),"%, ").concat(u(this.g),"%, ").concat(u(this.b),"%, ").concat(this.roundA,")")},l.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var u="#"+(0,t.vq)(this.r,this.g,this.b,!1),d=0,p=Object.entries(r.R);d=0,h=!d&&y&&(u.startsWith("hex")||u==="name");return h?u==="name"&&this.a===0?this.toName():this.toRgbString():(u==="rgb"&&(p=this.toRgbString()),u==="prgb"&&(p=this.toPercentageRgbString()),(u==="hex"||u==="hex6")&&(p=this.toHexString()),u==="hex3"&&(p=this.toHexString(!0)),u==="hex4"&&(p=this.toHex8String(!0)),u==="hex8"&&(p=this.toHex8String()),u==="name"&&(p=this.toName()),u==="hsl"&&(p=this.toHslString()),u==="hsv"&&(p=this.toHsvString()),p||this.toHexString())},l.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},l.prototype.clone=function(){return new l(this.toString())},l.prototype.lighten=function(u){u===void 0&&(u=10);var d=this.toHsl();return d.l+=u/100,d.l=(0,a.V2)(d.l),new l(d)},l.prototype.brighten=function(u){u===void 0&&(u=10);var d=this.toRgb();return d.r=Math.max(0,Math.min(255,d.r-Math.round(255*-(u/100)))),d.g=Math.max(0,Math.min(255,d.g-Math.round(255*-(u/100)))),d.b=Math.max(0,Math.min(255,d.b-Math.round(255*-(u/100)))),new l(d)},l.prototype.darken=function(u){u===void 0&&(u=10);var d=this.toHsl();return d.l-=u/100,d.l=(0,a.V2)(d.l),new l(d)},l.prototype.tint=function(u){return u===void 0&&(u=10),this.mix("white",u)},l.prototype.shade=function(u){return u===void 0&&(u=10),this.mix("black",u)},l.prototype.desaturate=function(u){u===void 0&&(u=10);var d=this.toHsl();return d.s-=u/100,d.s=(0,a.V2)(d.s),new l(d)},l.prototype.saturate=function(u){u===void 0&&(u=10);var d=this.toHsl();return d.s+=u/100,d.s=(0,a.V2)(d.s),new l(d)},l.prototype.greyscale=function(){return this.desaturate(100)},l.prototype.spin=function(u){var d=this.toHsl(),p=(d.h+u)%360;return d.h=p<0?360+p:p,new l(d)},l.prototype.mix=function(u,d){d===void 0&&(d=50);var p=this.toRgb(),y=new l(u).toRgb(),h=d/100,f={r:(y.r-p.r)*h+p.r,g:(y.g-p.g)*h+p.g,b:(y.b-p.b)*h+p.b,a:(y.a-p.a)*h+p.a};return new l(f)},l.prototype.analogous=function(u,d){u===void 0&&(u=6),d===void 0&&(d=30);var p=this.toHsl(),y=360/d,h=[this];for(p.h=(p.h-(y*u>>1)+720)%360;--u;)p.h=(p.h+y)%360,h.push(new l(p));return h},l.prototype.complement=function(){var u=this.toHsl();return u.h=(u.h+180)%360,new l(u)},l.prototype.monochromatic=function(u){u===void 0&&(u=6);for(var d=this.toHsv(),p=d.h,y=d.s,h=d.v,f=[],b=1/u;u--;)f.push(new l({h:p,s:y,v:h})),h=(h+b)%1;return f},l.prototype.splitcomplement=function(){var u=this.toHsl(),d=u.h;return[this,new l({h:(d+72)%360,s:u.s,l:u.l}),new l({h:(d+216)%360,s:u.s,l:u.l})]},l.prototype.onBackground=function(u){var d=this.toRgb(),p=new l(u).toRgb(),y=d.a+p.a*(1-d.a);return new l({r:(d.r*d.a+p.r*p.a*(1-d.a))/y,g:(d.g*d.a+p.g*p.a*(1-d.a))/y,b:(d.b*d.a+p.b*p.a*(1-d.a))/y,a:y})},l.prototype.triad=function(){return this.polyad(3)},l.prototype.tetrad=function(){return this.polyad(4)},l.prototype.polyad=function(u){for(var d=this.toHsl(),p=d.h,y=[this],h=360/u,f=1;f1)&&(u=1),u}function c(u){return u<=1?"".concat(Number(u)*100,"%"):u}function l(u){return u.length===1?"0"+u:String(u)}},70085:function(v,g,e){"use strict";e.d(g,{Z:function(){return U}});var t=e(89342),r=e(79685),o=e(50374),a=e(68450),s=e(30765),c=e(52401),l=r.createContext(null),u=l,d=e(57963),p=e(79269),y=[];function h(w,F){var z=r.useState(function(){if(!(0,a.Z)())return null;var ce=document.createElement("div");return ce}),V=(0,t.Z)(z,1),q=V[0],ne=r.useRef(!1),se=r.useContext(u),ye=r.useState(y),$=(0,t.Z)(ye,2),B=$[0],T=$[1],x=se||(ne.current?void 0:function(ce){T(function(Y){var X=[ce].concat((0,d.Z)(Y));return X})});function A(){q.parentElement||document.body.appendChild(q),ne.current=!0}function _(){var ce;(ce=q.parentElement)===null||ce===void 0||ce.removeChild(q),ne.current=!1}return(0,p.Z)(function(){return w?se?se(A):A():_(),_},[w]),(0,p.Z)(function(){B.length&&(B.forEach(function(ce){return ce()}),T(y))},[B]),[q,x]}var f=e(13394),b=e(27534);function S(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var E="rc-util-locker-".concat(Date.now()),O=0;function P(w){var F=!!w,z=r.useState(function(){return O+=1,"".concat(E,"_").concat(O)}),V=(0,t.Z)(z,1),q=V[0];(0,p.Z)(function(){if(F){var ne=(0,b.o)(document.body).width,se=S();(0,f.hq)(` +html body { + overflow-y: hidden; + `.concat(se?"width: calc(100% - ".concat(ne,"px);"):"",` +}`),q)}else(0,f.jL)(q);return function(){(0,f.jL)(q)}},[F,q])}var R=!1;function Z(w){return typeof w=="boolean"&&(R=w),R}var L=function(F){return F===!1?!1:!(0,a.Z)()||!F?null:typeof F=="string"?document.querySelector(F):typeof F=="function"?F():F},j=r.forwardRef(function(w,F){var z=w.open,V=w.autoLock,q=w.getContainer,ne=w.debug,se=w.autoDestroy,ye=se===void 0?!0:se,$=w.children,B=r.useState(z),T=(0,t.Z)(B,2),x=T[0],A=T[1],_=x||z;r.useEffect(function(){(ye||z)&&A(z)},[z,ye]);var ce=r.useState(function(){return L(q)}),Y=(0,t.Z)(ce,2),X=Y[0],he=Y[1];r.useEffect(function(){var N=L(q);he(N!=null?N:null)});var Ee=h(_&&!X,ne),Ae=(0,t.Z)(Ee,2),Ne=Ae[0],Ve=Ae[1],lt=X!=null?X:Ne;P(V&&z&&(0,a.Z)()&&(lt===Ne||lt===document.body));var Pt=null;if($&&(0,c.Yr)($)&&F){var qe=$;Pt=qe.ref}var it=(0,c.x1)(Pt,F);if(!_||!(0,a.Z)()||X===void 0)return null;var et=lt===!1||Z(),je=$;return F&&(je=r.cloneElement($,{ref:it})),r.createElement(u.Provider,{value:Ve},et?je:(0,o.createPortal)(je,lt))}),G=j,U=G},30833:function(v,g,e){"use strict";e.d(g,{Z:function(){return je}});var t=e(93264),r=e(89342),o=e(98787),a=e(70085),s=e(68591),c=e.n(s),l=e(58718),u=e(4463),d=e(58451),p=e(53327),y=e(10233),h=e(79269),f=e(88099),b=e(79685),S=e(21137),E=e(96990),O=e(52401);function P(N){var I=N.prefixCls,M=N.align,ie=N.arrow,H=N.arrowPos,te=ie||{},k=te.className,D=te.content,ee=H.x,de=ee===void 0?0:ee,Se=H.y,Me=Se===void 0?0:Se,ue=b.useRef();if(!M||!M.points)return null;var be={position:"absolute"};if(M.autoArrow!==!1){var Ke=M.points[0],Q=M.points[1],me=Ke[0],ke=Ke[1],Oe=Q[0],Te=Q[1];me===Oe||!["t","b"].includes(me)?be.top=Me:me==="t"?be.top=0:be.bottom=0,ke===Te||!["l","r"].includes(ke)?be.left=de:ke==="l"?be.left=0:be.right=0}return b.createElement("div",{ref:ue,className:c()("".concat(I,"-arrow"),k),style:be},D)}function R(N){var I=N.prefixCls,M=N.open,ie=N.zIndex,H=N.mask,te=N.motion;return H?b.createElement(E.ZP,(0,S.Z)({},te,{motionAppear:!0,visible:M,removeOnLeave:!0}),function(k){var D=k.className;return b.createElement("div",{style:{zIndex:ie},className:c()("".concat(I,"-mask"),D)})}):null}var Z=b.memo(function(N){var I=N.children;return I},function(N,I){return I.cache}),L=Z,j=b.forwardRef(function(N,I){var M=N.popup,ie=N.className,H=N.prefixCls,te=N.style,k=N.target,D=N.onVisibleChanged,ee=N.open,de=N.keepDom,Se=N.fresh,Me=N.onClick,ue=N.mask,be=N.arrow,Ke=N.arrowPos,Q=N.align,me=N.motion,ke=N.maskMotion,Oe=N.forceRender,Te=N.getPopupContainer,we=N.autoDestroy,Be=N.portal,Le=N.zIndex,ot=N.onMouseEnter,rt=N.onMouseLeave,at=N.onPointerEnter,wt=N.ready,St=N.offsetX,Bt=N.offsetY,Vt=N.offsetR,It=N.offsetB,rn=N.onAlign,pn=N.onPrepare,Tn=N.stretch,Ge=N.targetWidth,Ct=N.targetHeight,zt=typeof M=="function"?M():M,ht=ee||de,Tt=(Te==null?void 0:Te.length)>0,Kt=b.useState(!Te||!Tt),sn=(0,r.Z)(Kt,2),bn=sn[0],_t=sn[1];if((0,h.Z)(function(){!bn&&Tt&&k&&_t(!0)},[bn,Tt,k]),!bn)return null;var en="auto",an={left:"-1000vw",top:"-1000vh",right:en,bottom:en};if(wt||!ee){var Sn,Kn=Q.points,or=Q.dynamicInset||((Sn=Q._experimental)===null||Sn===void 0?void 0:Sn.dynamicInset),tt=or&&Kn[0][1]==="r",Je=or&&Kn[0][0]==="b";tt?(an.right=Vt,an.left=en):(an.left=St,an.right=en),Je?(an.bottom=It,an.top=en):(an.top=Bt,an.bottom=en)}var Nt={};return Tn&&(Tn.includes("height")&&Ct?Nt.height=Ct:Tn.includes("minHeight")&&Ct&&(Nt.minHeight=Ct),Tn.includes("width")&&Ge?Nt.width=Ge:Tn.includes("minWidth")&&Ge&&(Nt.minWidth=Ge)),ee||(Nt.pointerEvents="none"),b.createElement(Be,{open:Oe||ht,getContainer:Te&&function(){return Te(k)},autoDestroy:we},b.createElement(R,{prefixCls:H,open:ee,zIndex:Le,mask:ue,motion:ke}),b.createElement(l.Z,{onResize:rn,disabled:!ee},function(Mt){return b.createElement(E.ZP,(0,S.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Oe,leavedClassName:"".concat(H,"-hidden")},me,{onAppearPrepare:pn,onEnterPrepare:pn,visible:ee,onVisibleChanged:function(nn){var hn;me==null||(hn=me.onVisibleChanged)===null||hn===void 0||hn.call(me,nn),D(nn)}}),function(on,nn){var hn=on.className,cn=on.style,Hn=c()(H,hn,ie);return b.createElement("div",{ref:(0,O.sQ)(Mt,I,nn),className:Hn,style:(0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({"--arrow-x":"".concat(Ke.x||0,"px"),"--arrow-y":"".concat(Ke.y||0,"px")},an),Nt),cn),{},{boxSizing:"border-box",zIndex:Le},te),onMouseEnter:ot,onMouseLeave:rt,onPointerEnter:at,onClick:Me},be&&b.createElement(P,{prefixCls:H,arrow:be,arrowPos:Ke,align:Q}),b.createElement(L,{cache:!ee&&!Se},zt))})}))}),G=j,U=b.forwardRef(function(N,I){var M=N.children,ie=N.getTriggerDOMNode,H=(0,O.Yr)(M),te=b.useCallback(function(D){(0,O.mH)(I,ie?ie(D):D)},[ie]),k=(0,O.x1)(te,M.ref);return H?b.cloneElement(M,{ref:k}):M}),w=U,F=b.createContext(null),z=F;function V(N){return N?Array.isArray(N)?N:[N]:[]}function q(N,I,M,ie){return b.useMemo(function(){var H=V(M!=null?M:I),te=V(ie!=null?ie:I),k=new Set(H),D=new Set(te);return N&&(k.has("hover")&&(k.delete("hover"),k.add("click")),D.has("hover")&&(D.delete("hover"),D.add("click"))),[k,D]},[N,I,M,ie])}var ne=e(46222);function se(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2?arguments[2]:void 0;return M?N[0]===I[0]:N[0]===I[0]&&N[1]===I[1]}function ye(N,I,M,ie){for(var H=M.points,te=Object.keys(N),k=0;k1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(N)?I:N}function A(N){return x(parseFloat(N),0)}function _(N,I){var M=(0,t.Z)({},N);return(I||[]).forEach(function(ie){if(!(ie instanceof HTMLBodyElement||ie instanceof HTMLHtmlElement)){var H=B(ie).getComputedStyle(ie),te=H.overflow,k=H.overflowClipMargin,D=H.borderTopWidth,ee=H.borderBottomWidth,de=H.borderLeftWidth,Se=H.borderRightWidth,Me=ie.getBoundingClientRect(),ue=ie.offsetHeight,be=ie.clientHeight,Ke=ie.offsetWidth,Q=ie.clientWidth,me=A(D),ke=A(ee),Oe=A(de),Te=A(Se),we=x(Math.round(Me.width/Ke*1e3)/1e3),Be=x(Math.round(Me.height/ue*1e3)/1e3),Le=(Ke-Q-Oe-Te)*we,ot=(ue-be-me-ke)*Be,rt=me*Be,at=ke*Be,wt=Oe*we,St=Te*we,Bt=0,Vt=0;if(te==="clip"){var It=A(k);Bt=It*we,Vt=It*Be}var rn=Me.x+wt-Bt,pn=Me.y+rt-Vt,Tn=rn+Me.width+2*Bt-wt-St-Le,Ge=pn+Me.height+2*Vt-rt-at-ot;M.left=Math.max(M.left,rn),M.top=Math.max(M.top,pn),M.right=Math.min(M.right,Tn),M.bottom=Math.min(M.bottom,Ge)}}),M}function ce(N){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M="".concat(I),ie=M.match(/^(.*)\%$/);return ie?N*(parseFloat(ie[1])/100):parseFloat(M)}function Y(N,I){var M=I||[],ie=(0,r.Z)(M,2),H=ie[0],te=ie[1];return[ce(N.width,H),ce(N.height,te)]}function X(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[N[0],N[1]]}function he(N,I){var M=I[0],ie=I[1],H,te;return M==="t"?te=N.y:M==="b"?te=N.y+N.height:te=N.y+N.height/2,ie==="l"?H=N.x:ie==="r"?H=N.x+N.width:H=N.x+N.width/2,{x:H,y:te}}function Ee(N,I){var M={t:"b",b:"t",l:"r",r:"l"};return N.map(function(ie,H){return H===I?M[ie]||"c":ie}).join("")}function Ae(N,I,M,ie,H,te,k){var D=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:H[ie]||{}}),ee=(0,r.Z)(D,2),de=ee[0],Se=ee[1],Me=b.useRef(0),ue=b.useMemo(function(){return I?T(I):[]},[I]),be=b.useRef({}),Ke=function(){be.current={}};N||Ke();var Q=(0,p.Z)(function(){if(I&&M&&N){let dr=function(gr,Vr){var na=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn,Oa=zt.x+gr,Pa=zt.y+Vr,to=Oa+Sn,Za=Pa+an,Ea=Math.max(Oa,na.left),co=Math.max(Pa,na.top),La=Math.min(to,na.right),yo=Math.min(Za,na.bottom);return Math.max(0,(La-Ea)*(yo-co))},Er=function(){Lt=zt.y+le,kt=Lt+an,Ot=zt.x+We,Ft=Ot+Sn};var Oe,Te,we=I,Be=we.ownerDocument,Le=B(we),ot=Le.getComputedStyle(we),rt=ot.width,at=ot.height,wt=ot.position,St=we.style.left,Bt=we.style.top,Vt=we.style.right,It=we.style.bottom,rn=we.style.overflow,pn=(0,t.Z)((0,t.Z)({},H[ie]),te),Tn=Be.createElement("div");(Oe=we.parentElement)===null||Oe===void 0||Oe.appendChild(Tn),Tn.style.left="".concat(we.offsetLeft,"px"),Tn.style.top="".concat(we.offsetTop,"px"),Tn.style.position=wt,Tn.style.height="".concat(we.offsetHeight,"px"),Tn.style.width="".concat(we.offsetWidth,"px"),we.style.left="0",we.style.top="0",we.style.right="auto",we.style.bottom="auto",we.style.overflow="hidden";var Ge;if(Array.isArray(M))Ge={x:M[0],y:M[1],width:0,height:0};else{var Ct=M.getBoundingClientRect();Ge={x:Ct.x,y:Ct.y,width:Ct.width,height:Ct.height}}var zt=we.getBoundingClientRect(),ht=Be.documentElement,Tt=ht.clientWidth,Kt=ht.clientHeight,sn=ht.scrollWidth,bn=ht.scrollHeight,_t=ht.scrollTop,en=ht.scrollLeft,an=zt.height,Sn=zt.width,Kn=Ge.height,or=Ge.width,tt={left:0,top:0,right:Tt,bottom:Kt},Je={left:-en,top:-_t,right:sn-en,bottom:bn-_t},Nt=pn.htmlRegion,Mt="visible",on="visibleFirst";Nt!=="scroll"&&Nt!==on&&(Nt=Mt);var nn=Nt===on,hn=_(Je,ue),cn=_(tt,ue),Hn=Nt===Mt?cn:hn,Zn=nn?cn:Hn;we.style.left="auto",we.style.top="auto",we.style.right="0",we.style.bottom="0";var Rn=we.getBoundingClientRect();we.style.left=St,we.style.top=Bt,we.style.right=Vt,we.style.bottom=It,we.style.overflow=rn,(Te=we.parentElement)===null||Te===void 0||Te.removeChild(Tn);var gn=x(Math.round(Sn/parseFloat(rt)*1e3)/1e3),Jn=x(Math.round(an/parseFloat(at)*1e3)/1e3);if(gn===0||Jn===0||(0,u.S)(M)&&!(0,ne.Z)(M))return;var Fn=pn.offset,Yn=pn.targetOffset,wn=Y(zt,Fn),wr=(0,r.Z)(wn,2),Un=wr[0],Cn=wr[1],vt=Y(Ge,Yn),pt=(0,r.Z)(vt,2),At=pt[0],Zt=pt[1];Ge.x-=At,Ge.y-=Zt;var bt=pn.points||[],Xt=(0,r.Z)(bt,2),qt=Xt[0],xn=Xt[1],Nn=X(xn),Pn=X(qt),De=he(Ge,Nn),Re=he(zt,Pn),Ue=(0,t.Z)({},pn),We=De.x-Re.x+Un,le=De.y-Re.y+Cn,re=dr(We,le),ae=dr(We,le,cn),ge=he(Ge,["t","l"]),fe=he(zt,["t","l"]),Fe=he(Ge,["b","r"]),ze=he(zt,["b","r"]),Xe=pn.overflow||{},nt=Xe.adjustX,yt=Xe.adjustY,ct=Xe.shiftX,gt=Xe.shiftY,Et=function(Vr){return typeof Vr=="boolean"?Vr:Vr>=0},Lt,kt,Ot,Ft;Er();var Wt=Et(yt),fn=Pn[0]===Nn[0];if(Wt&&Pn[0]==="t"&&(kt>Zn.bottom||be.current.bt)){var dn=le;fn?dn-=an-Kn:dn=ge.y-ze.y-Cn;var En=dr(We,dn),Dn=dr(We,dn,cn);En>re||En===re&&(!nn||Dn>=ae)?(be.current.bt=!0,le=dn,Cn=-Cn,Ue.points=[Ee(Pn,0),Ee(Nn,0)]):be.current.bt=!1}if(Wt&&Pn[0]==="b"&&(Ltre||Vn===re&&(!nn||br>=ae)?(be.current.tb=!0,le=On,Cn=-Cn,Ue.points=[Ee(Pn,0),Ee(Nn,0)]):be.current.tb=!1}var Bn=Et(nt),qn=Pn[1]===Nn[1];if(Bn&&Pn[1]==="l"&&(Ft>Zn.right||be.current.rl)){var Mr=We;qn?Mr-=Sn-or:Mr=ge.x-ze.x-Un;var Jt=dr(Mr,le),st=dr(Mr,le,cn);Jt>re||Jt===re&&(!nn||st>=ae)?(be.current.rl=!0,We=Mr,Un=-Un,Ue.points=[Ee(Pn,1),Ee(Nn,1)]):be.current.rl=!1}if(Bn&&Pn[1]==="r"&&(Otre||jt===re&&(!nn||un>=ae)?(be.current.lr=!0,We=Qe,Un=-Un,Ue.points=[Ee(Pn,1),Ee(Nn,1)]):be.current.lr=!1}Er();var Qt=ct===!0?0:ct;typeof Qt=="number"&&(Otcn.right&&(We-=Ft-cn.right-Un,Ge.x>cn.right-Qt&&(We+=Ge.x-cn.right+Qt)));var Wn=gt===!0?0:gt;typeof Wn=="number"&&(Ltcn.bottom&&(le-=kt-cn.bottom-Cn,Ge.y>cn.bottom-Wn&&(le+=Ge.y-cn.bottom+Wn)));var er=zt.x+We,cr=er+Sn,vr=zt.y+le,fr=vr+an,xr=Ge.x,Rr=xr+or,Ur=Ge.y,la=Ur+Kn,ha=Math.max(er,xr),$r=Math.min(cr,Rr),Lr=(ha+$r)/2,ea=Lr-er,xa=Math.max(vr,Ur),Da=Math.min(fr,la),Ga=(xa+Da)/2,ao=Ga-vr;k==null||k(I,Ue);var Sa=Rn.right-zt.x-(We+zt.width),Qn=Rn.bottom-zt.y-(le+zt.height);Se({ready:!0,offsetX:We/gn,offsetY:le/Jn,offsetR:Sa/gn,offsetB:Qn/Jn,arrowX:ea/gn,arrowY:ao/Jn,scaleX:gn,scaleY:Jn,align:Ue})}}),me=function(){Me.current+=1;var Te=Me.current;Promise.resolve().then(function(){Me.current===Te&&Q()})},ke=function(){Se(function(Te){return(0,t.Z)((0,t.Z)({},Te),{},{ready:!1})})};return(0,h.Z)(ke,[ie]),(0,h.Z)(function(){N||ke()},[N]),[de.ready,de.offsetX,de.offsetY,de.offsetR,de.offsetB,de.arrowX,de.arrowY,de.scaleX,de.scaleY,de.align,me]}var Ne=e(57963);function Ve(N,I,M,ie,H){(0,h.Z)(function(){if(N&&I&&M){let Me=function(){ie(),H()};var te=I,k=M,D=T(te),ee=T(k),de=B(k),Se=new Set([de].concat((0,Ne.Z)(D),(0,Ne.Z)(ee)));return Se.forEach(function(ue){ue.addEventListener("scroll",Me,{passive:!0})}),de.addEventListener("resize",Me,{passive:!0}),ie(),function(){Se.forEach(function(ue){ue.removeEventListener("scroll",Me),de.removeEventListener("resize",Me)})}}},[N,I,M])}var lt=e(30765),Pt=e(54272);function qe(N,I,M,ie,H,te,k,D){var ee=b.useRef(N),de=b.useRef(!1);ee.current!==N&&(de.current=!0,ee.current=N),b.useEffect(function(){var Se=(0,Pt.Z)(function(){de.current=!1});return function(){Pt.Z.cancel(Se)}},[N]),b.useEffect(function(){if(I&&ie&&(!H||te)){var Se=function(){var wt=!1,St=function(It){var rn=It.target;wt=k(rn)},Bt=function(It){var rn=It.target;!de.current&&ee.current&&!wt&&!k(rn)&&D(!1)};return[St,Bt]},Me=Se(),ue=(0,r.Z)(Me,2),be=ue[0],Ke=ue[1],Q=Se(),me=(0,r.Z)(Q,2),ke=me[0],Oe=me[1],Te=B(ie);Te.addEventListener("mousedown",be,!0),Te.addEventListener("click",Ke,!0),Te.addEventListener("contextmenu",Ke,!0);var we=(0,d.A)(M);if(we&&(we.addEventListener("mousedown",ke,!0),we.addEventListener("click",Oe,!0),we.addEventListener("contextmenu",Oe,!0)),!1)var Be,Le,ot,rt;return function(){Te.removeEventListener("mousedown",be,!0),Te.removeEventListener("click",Ke,!0),Te.removeEventListener("contextmenu",Ke,!0),we&&(we.removeEventListener("mousedown",ke,!0),we.removeEventListener("click",Oe,!0),we.removeEventListener("contextmenu",Oe,!0))}}},[I,M,ie,H,te])}var it=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function et(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.Z,I=b.forwardRef(function(M,ie){var H=M.prefixCls,te=H===void 0?"rc-trigger-popup":H,k=M.children,D=M.action,ee=D===void 0?"hover":D,de=M.showAction,Se=M.hideAction,Me=M.popupVisible,ue=M.defaultPopupVisible,be=M.onPopupVisibleChange,Ke=M.afterPopupVisibleChange,Q=M.mouseEnterDelay,me=M.mouseLeaveDelay,ke=me===void 0?.1:me,Oe=M.focusDelay,Te=M.blurDelay,we=M.mask,Be=M.maskClosable,Le=Be===void 0?!0:Be,ot=M.getPopupContainer,rt=M.forceRender,at=M.autoDestroy,wt=M.destroyPopupOnHide,St=M.popup,Bt=M.popupClassName,Vt=M.popupStyle,It=M.popupPlacement,rn=M.builtinPlacements,pn=rn===void 0?{}:rn,Tn=M.popupAlign,Ge=M.zIndex,Ct=M.stretch,zt=M.getPopupClassNameFromAlign,ht=M.fresh,Tt=M.alignPoint,Kt=M.onPopupClick,sn=M.onPopupAlign,bn=M.arrow,_t=M.popupMotion,en=M.maskMotion,an=M.popupTransitionName,Sn=M.popupAnimation,Kn=M.maskTransitionName,or=M.maskAnimation,tt=M.className,Je=M.getTriggerDOMNode,Nt=(0,o.Z)(M,it),Mt=at||wt||!1,on=b.useState(!1),nn=(0,r.Z)(on,2),hn=nn[0],cn=nn[1];(0,h.Z)(function(){cn((0,f.Z)())},[]);var Hn=b.useRef({}),Zn=b.useContext(z),Rn=b.useMemo(function(){return{registerSubPopup:function(Ir,Ma){Hn.current[Ir]=Ma,Zn==null||Zn.registerSubPopup(Ir,Ma)}}},[Zn]),gn=(0,y.Z)(),Jn=b.useState(null),Fn=(0,r.Z)(Jn,2),Yn=Fn[0],wn=Fn[1],wr=(0,p.Z)(function(Sr){(0,u.S)(Sr)&&Yn!==Sr&&wn(Sr),Zn==null||Zn.registerSubPopup(gn,Sr)}),Un=b.useState(null),Cn=(0,r.Z)(Un,2),vt=Cn[0],pt=Cn[1],At=b.useRef(null),Zt=(0,p.Z)(function(Sr){(0,u.S)(Sr)&&vt!==Sr&&(pt(Sr),At.current=Sr)}),bt=b.Children.only(k),Xt=(bt==null?void 0:bt.props)||{},qt={},xn=(0,p.Z)(function(Sr){var Ir,Ma,ma=vt;return(ma==null?void 0:ma.contains(Sr))||((Ir=(0,d.A)(ma))===null||Ir===void 0?void 0:Ir.host)===Sr||Sr===ma||(Yn==null?void 0:Yn.contains(Sr))||((Ma=(0,d.A)(Yn))===null||Ma===void 0?void 0:Ma.host)===Sr||Sr===Yn||Object.values(Hn.current).some(function(va){return(va==null?void 0:va.contains(Sr))||Sr===va})}),Nn=$(te,_t,Sn,an),Pn=$(te,en,or,Kn),De=b.useState(ue||!1),Re=(0,r.Z)(De,2),Ue=Re[0],We=Re[1],le=Me!=null?Me:Ue,re=(0,p.Z)(function(Sr){Me===void 0&&We(Sr)});(0,h.Z)(function(){We(Me||!1)},[Me]);var ae=b.useRef(le);ae.current=le;var ge=b.useRef([]);ge.current=[];var fe=(0,p.Z)(function(Sr){var Ir;re(Sr),((Ir=ge.current[ge.current.length-1])!==null&&Ir!==void 0?Ir:le)!==Sr&&(ge.current.push(Sr),be==null||be(Sr))}),Fe=b.useRef(),ze=function(){clearTimeout(Fe.current)},Xe=function(Ir){var Ma=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ze(),Ma===0?fe(Ir):Fe.current=setTimeout(function(){fe(Ir)},Ma*1e3)};b.useEffect(function(){return ze},[]);var nt=b.useState(!1),yt=(0,r.Z)(nt,2),ct=yt[0],gt=yt[1];(0,h.Z)(function(Sr){(!Sr||le)&>(!0)},[le]);var Et=b.useState(null),Lt=(0,r.Z)(Et,2),kt=Lt[0],Ot=Lt[1],Ft=b.useState([0,0]),Wt=(0,r.Z)(Ft,2),fn=Wt[0],dn=Wt[1],En=function(Ir){dn([Ir.clientX,Ir.clientY])},Dn=Ae(le,Yn,Tt?fn:vt,It,pn,Tn,sn),On=(0,r.Z)(Dn,11),Vn=On[0],br=On[1],Bn=On[2],qn=On[3],Mr=On[4],Jt=On[5],st=On[6],Qe=On[7],jt=On[8],un=On[9],Qt=On[10],Wn=q(hn,ee,de,Se),er=(0,r.Z)(Wn,2),cr=er[0],vr=er[1],fr=cr.has("click"),xr=vr.has("click")||vr.has("contextMenu"),Rr=(0,p.Z)(function(){ct||Qt()}),Ur=function(){ae.current&&Tt&&xr&&Xe(!1)};Ve(le,vt,Yn,Rr,Ur),(0,h.Z)(function(){Rr()},[fn,It]),(0,h.Z)(function(){le&&!(pn!=null&&pn[It])&&Rr()},[JSON.stringify(Tn)]);var la=b.useMemo(function(){var Sr=ye(pn,te,un,Tt);return c()(Sr,zt==null?void 0:zt(un))},[un,zt,pn,te,Tt]);b.useImperativeHandle(ie,function(){return{nativeElement:At.current,forceAlign:Rr}});var ha=b.useState(0),$r=(0,r.Z)(ha,2),Lr=$r[0],ea=$r[1],xa=b.useState(0),Da=(0,r.Z)(xa,2),Ga=Da[0],ao=Da[1],Sa=function(){if(Ct&&vt){var Ir=vt.getBoundingClientRect();ea(Ir.width),ao(Ir.height)}},Qn=function(){Sa(),Rr()},dr=function(Ir){gt(!1),Qt(),Ke==null||Ke(Ir)},Er=function(){return new Promise(function(Ir){Sa(),Ot(function(){return Ir})})};(0,h.Z)(function(){kt&&(Qt(),kt(),Ot(null))},[kt]);function gr(Sr,Ir,Ma,ma){qt[Sr]=function(va){var vo;ma==null||ma(va),Xe(Ir,Ma);for(var fo=arguments.length,Ca=new Array(fo>1?fo-1:0),Ta=1;Ta1?Ma-1:0),va=1;va1?Ma-1:0),va=1;va-1&&(re=setTimeout(function(){R.delete(Re)},Ue)),R.set(Re,{data:We,timer:re,startTime:new Date().getTime()})},L=function(Re){var Ue=R.get(Re);return{data:Ue==null?void 0:Ue.data,startTime:Ue==null?void 0:Ue.startTime}},j=function(De,Re){var Ue=typeof Symbol=="function"&&De[Symbol.iterator];if(!Ue)return De;var We=Ue.call(De),le,re=[],ae;try{for(;(Re===void 0||Re-- >0)&&!(le=We.next()).done;)re.push(le.value)}catch(ge){ae={error:ge}}finally{try{le&&!le.done&&(Ue=We.return)&&Ue.call(We)}finally{if(ae)throw ae.error}}return re},G=function(){for(var De=[],Re=0;Re0)&&!(le=We.next()).done;)re.push(le.value)}catch(ge){ae={error:ge}}finally{try{le&&!le.done&&(Ue=We.return)&&Ue.call(We)}finally{if(ae)throw ae.error}}return re},F=function(){for(var De=[],Re=0;Re0)&&!(le=We.next()).done;)re.push(le.value)}catch(ge){ae={error:ge}}finally{try{le&&!le.done&&(Ue=We.return)&&Ue.call(We)}finally{if(ae)throw ae.error}}return re},Ee=function(){for(var De=[],Re=0;Re0){var dr=Dn&&((Qn=L(Dn))===null||Qn===void 0?void 0:Qn.startTime)||0;Bn===-1||new Date().getTime()-dr<=Bn||Object.values(ha).forEach(function(Er){Er.refresh()})}else Da.current.apply(Da,Ee(Ot))},[]);var ao=(0,h.useCallback)(function(){Object.values(Lr.current).forEach(function(Qn){Qn.unmount()}),Qt.current=Ae,$r({}),Lr.current={}},[$r]);ne(function(){ae||Object.values(Lr.current).forEach(function(Qn){Qn.refresh()})},Ee(le)),(0,h.useEffect)(function(){return function(){Object.values(Lr.current).forEach(function(Qn){Qn.unmount()})}},[]);var Sa=(0,h.useCallback)(function(Qn){return function(){console.warn("You should't call "+Qn+" when service not executed once.")}},[]);return X(X({loading:Qe&&!ae||nt,data:Jt,error:void 0,params:[],cancel:Sa("cancel"),refresh:Sa("refresh"),mutate:Sa("mutate")},ha[Qt.current]||{}),{run:xa,fetches:ha,reset:ao})}var lt=Ve,Pt=function(){return Pt=Object.assign||function(De){for(var Re,Ue=1,We=arguments.length;Ue0)&&!(le=We.next()).done;)re.push(le.value)}catch(ge){ae={error:ge}}finally{try{le&&!le.done&&(Ue=We.return)&&Ue.call(We)}finally{if(ae)throw ae.error}}return re},et=function(){for(var De=[],Re=0;Re0)&&!(le=We.next()).done;)re.push(le.value)}catch(ge){ae={error:ge}}finally{try{le&&!le.done&&(Ue=We.return)&&Ue.call(We)}finally{if(ae)throw ae.error}}return re},H=function(){for(var De=[],Re=0;Reun&&(Qe=Math.max(1,un)),En({current:Qe,pageSize:jt})},[Dn,En]),br=(0,h.useCallback)(function(Jt){Vn(Jt,Ot)},[Vn,Ot]),Bn=(0,h.useCallback)(function(Jt){Vn(Lt,Jt)},[Vn,Lt]),qn=(0,h.useRef)(br);qn.current=br,ne(function(){Re.manual||qn.current(1)},H(ae));var Mr=(0,h.useCallback)(function(Jt,st,Qe){En({current:Jt.current,pageSize:Jt.pageSize||le,filters:st,sorter:Qe})},[dn,Wt,En]);return I({loading:yt,data:ze,params:Xe,run:nt,pagination:{current:Lt,pageSize:Ot,total:Dn,totalPage:On,onChange:Vn,changeCurrent:br,changePageSize:Bn},tableProps:{dataSource:(ze==null?void 0:ze.list)||[],loading:yt,onChange:Mr,pagination:{current:Lt,pageSize:Ot,total:Dn}},sorter:Wt,filters:dn},ct)}var k=te,D=h.createContext({});D.displayName="UseRequestConfigContext";var ee=D,de=function(){return de=Object.assign||function(De){for(var Re,Ue=1,We=arguments.length;Ue0)&&!(le=We.next()).done;)re.push(le.value)}catch(ge){ae={error:ge}}finally{try{le&&!le.done&&(Ue=We.return)&&Ue.call(We)}finally{if(ae)throw ae.error}}return re},ue=function(){for(var De=[],Re=0;Re1&&arguments[1]!==void 0?arguments[1]:{};return me(De,d()({formatResult:function(We){return We==null?void 0:We.data},requestMethod:function(We){if(typeof We=="string")return rt(We);if(l()(We)==="object"){var le=We.url,re=s()(We,Oe);return rt(le,re)}throw new Error("request options error")}},Re))}var we,Be,Le=function(){return Be||(Be=(0,ke.We)().applyPlugins({key:"request",type:Cn.modify,initialValue:{}}),Be)},ot=function(){var Re,Ue;if(we)return we;var We=Le();return we=y().create(We),We==null||(Re=We.requestInterceptors)===null||Re===void 0||Re.forEach(function(le){le instanceof Array?we.interceptors.request.use(function(re){var ae=re.url;if(le[0].length===2){var ge=le[0](ae,re),fe=ge.url,Fe=ge.options;return d()(d()({},Fe),{},{url:fe})}return le[0](re)},le[1]):we.interceptors.request.use(function(re){var ae=re.url;if(le.length===2){var ge=le(ae,re),fe=ge.url,Fe=ge.options;return d()(d()({},Fe),{},{url:fe})}return le(re)})}),We==null||(Ue=We.responseInterceptors)===null||Ue===void 0||Ue.forEach(function(le){le instanceof Array?we.interceptors.response.use(le[0],le[1]):we.interceptors.response.use(le)}),we.interceptors.response.use(function(le){var re,ae=le.data;return(ae==null?void 0:ae.success)===!1&&We!==null&&We!==void 0&&(re=We.errorConfig)!==null&&re!==void 0&&re.errorThrower&&We.errorConfig.errorThrower(ae),le}),we},rt=function(Re){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},We=ot(),le=Le(),re=Ue.getResponse,ae=re===void 0?!1:re,ge=Ue.requestInterceptors,fe=Ue.responseInterceptors,Fe=ge==null?void 0:ge.map(function(Xe){return Xe instanceof Array?We.interceptors.request.use(function(nt){var yt=nt.url;if(Xe[0].length===2){var ct=Xe[0](yt,nt),gt=ct.url,Et=ct.options;return d()(d()({},Et),{},{url:gt})}return Xe[0](nt)},Xe[1]):We.interceptors.request.use(function(nt){var yt=nt.url;if(Xe.length===2){var ct=Xe(yt,nt),gt=ct.url,Et=ct.options;return d()(d()({},Et),{},{url:gt})}return Xe(nt)})}),ze=fe==null?void 0:fe.map(function(Xe){return Xe instanceof Array?We.interceptors.response.use(Xe[0],Xe[1]):We.interceptors.response.use(Xe)});return new Promise(function(Xe,nt){We.request(d()(d()({},Ue),{},{url:Re})).then(function(yt){Fe==null||Fe.forEach(function(ct){We.interceptors.request.eject(ct)}),ze==null||ze.forEach(function(ct){We.interceptors.response.eject(ct)}),Xe(ae?yt:yt.data)}).catch(function(yt){Fe==null||Fe.forEach(function(Et){We.interceptors.request.eject(Et)}),ze==null||ze.forEach(function(Et){We.interceptors.response.eject(Et)});try{var ct,gt=le==null||(ct=le.errorConfig)===null||ct===void 0?void 0:ct.errorHandler;gt&>(yt,Ue,le)}catch(Et){nt(Et)}nt(yt)})})},at=e(36277),wt=e(97736);function St(){return St=Object.assign||function(De){for(var Re=1;Re=0)&&(Ue[le]=De[le]);return Ue}const Vt=["onClick","reloadDocument","replace","state","target","to"],It=null;function rn(De,Re){if(!De){typeof console!="undefined"&&console.warn(Re);try{throw new Error(Re)}catch(Ue){}}}function pn(De){let{basename:Re,children:Ue,window:We}=De,le=useRef();le.current==null&&(le.current=createBrowserHistory({window:We}));let re=le.current,[ae,ge]=useState({action:re.action,location:re.location});return useLayoutEffect(()=>re.listen(ge),[re]),createElement(Router,{basename:Re,children:Ue,location:ae.location,navigationType:ae.action,navigator:re})}function Tn(De){let{basename:Re,children:Ue,window:We}=De,le=useRef();le.current==null&&(le.current=createHashHistory({window:We}));let re=le.current,[ae,ge]=useState({action:re.action,location:re.location});return useLayoutEffect(()=>re.listen(ge),[re]),createElement(Router,{basename:Re,children:Ue,location:ae.location,navigationType:ae.action,navigator:re})}function Ge(De){let{basename:Re,children:Ue,history:We}=De;const[le,re]=useState({action:We.action,location:We.location});return useLayoutEffect(()=>We.listen(re),[We]),createElement(Router,{basename:Re,children:Ue,location:le.location,navigationType:le.action,navigator:We})}function Ct(De){return!!(De.metaKey||De.altKey||De.ctrlKey||De.shiftKey)}const zt=(0,h.forwardRef)(function(Re,Ue){let{onClick:We,reloadDocument:le,replace:re=!1,state:ae,target:ge,to:fe}=Re,Fe=Bt(Re,Vt),ze=(0,at.oQ)(fe),Xe=Tt(fe,{replace:re,state:ae,target:ge});function nt(yt){We&&We(yt),!yt.defaultPrevented&&!le&&Xe(yt)}return(0,h.createElement)("a",St({},Fe,{href:ze,onClick:nt,ref:Ue,target:ge}))}),ht=null;function Tt(De,Re){let{target:Ue,replace:We,state:le}=Re===void 0?{}:Re,re=(0,at.s0)(),ae=(0,at.TH)(),ge=(0,at.WU)(De);return(0,h.useCallback)(fe=>{if(fe.button===0&&(!Ue||Ue==="_self")&&!Ct(fe)){fe.preventDefault();let Fe=!!We||(0,wt.Ep)(ae)===(0,wt.Ep)(ge);re(De,{replace:Fe,state:le})}},[ae,re,ge,We,le,Ue,De])}function Kt(De){let Re=(0,h.useRef)(sn(De)),Ue=(0,at.TH)(),We=(0,h.useMemo)(()=>{let ae=sn(Ue.search);for(let ge of Re.current.keys())ae.has(ge)||Re.current.getAll(ge).forEach(fe=>{ae.append(ge,fe)});return ae},[Ue.search]),le=(0,at.s0)(),re=(0,h.useCallback)((ae,ge)=>{le("?"+sn(ae),ge)},[le]);return[We,re]}function sn(De){return De===void 0&&(De=""),new URLSearchParams(typeof De=="string"||Array.isArray(De)||De instanceof URLSearchParams?De:Object.keys(De).reduce((Re,Ue)=>{let We=De[Ue];return Re.concat(Array.isArray(We)?We.map(le=>[Ue,le]):[[Ue,We]])},[]))}var bn=e(79963),_t=e(32372),en=e(37333),an=["prefetch"];function Sn(De){var Re,Ue=De.prefetch,We=(0,_t.Z)(De,an),le=(0,en.Ov)(),re=typeof De.to=="string"?De.to:(Re=De.to)===null||Re===void 0?void 0:Re.pathname;return re?h.createElement(zt,(0,bn.Z)({onMouseEnter:function(){var ge;return Ue&&re&&((ge=le.preloadRoute)===null||ge===void 0?void 0:ge.call(le,re))}},We),De.children):null}var Kn=e(76525),or=e(32410);function tt(){"use strict";tt=function(){return Re};var De,Re={},Ue=Object.prototype,We=Ue.hasOwnProperty,le=Object.defineProperty||function(Jt,st,Qe){Jt[st]=Qe.value},re=typeof Symbol=="function"?Symbol:{},ae=re.iterator||"@@iterator",ge=re.asyncIterator||"@@asyncIterator",fe=re.toStringTag||"@@toStringTag";function Fe(Jt,st,Qe){return Object.defineProperty(Jt,st,{value:Qe,enumerable:!0,configurable:!0,writable:!0}),Jt[st]}try{Fe({},"")}catch(Jt){Fe=function(Qe,jt,un){return Qe[jt]=un}}function ze(Jt,st,Qe,jt){var un=st&&st.prototype instanceof Lt?st:Lt,Qt=Object.create(un.prototype),Wn=new qn(jt||[]);return le(Qt,"_invoke",{value:On(Jt,Qe,Wn)}),Qt}function Xe(Jt,st,Qe){try{return{type:"normal",arg:Jt.call(st,Qe)}}catch(jt){return{type:"throw",arg:jt}}}Re.wrap=ze;var nt="suspendedStart",yt="suspendedYield",ct="executing",gt="completed",Et={};function Lt(){}function kt(){}function Ot(){}var Ft={};Fe(Ft,ae,function(){return this});var Wt=Object.getPrototypeOf,fn=Wt&&Wt(Wt(Mr([])));fn&&fn!==Ue&&We.call(fn,ae)&&(Ft=fn);var dn=Ot.prototype=Lt.prototype=Object.create(Ft);function En(Jt){["next","throw","return"].forEach(function(st){Fe(Jt,st,function(Qe){return this._invoke(st,Qe)})})}function Dn(Jt,st){function Qe(un,Qt,Wn,er){var cr=Xe(Jt[un],Jt,Qt);if(cr.type!=="throw"){var vr=cr.arg,fr=vr.value;return fr&&(0,or.Z)(fr)=="object"&&We.call(fr,"__await")?st.resolve(fr.__await).then(function(xr){Qe("next",xr,Wn,er)},function(xr){Qe("throw",xr,Wn,er)}):st.resolve(fr).then(function(xr){vr.value=xr,Wn(vr)},function(xr){return Qe("throw",xr,Wn,er)})}er(cr.arg)}var jt;le(this,"_invoke",{value:function(Qt,Wn){function er(){return new st(function(cr,vr){Qe(Qt,Wn,cr,vr)})}return jt=jt?jt.then(er,er):er()}})}function On(Jt,st,Qe){var jt=nt;return function(un,Qt){if(jt===ct)throw new Error("Generator is already running");if(jt===gt){if(un==="throw")throw Qt;return{value:De,done:!0}}for(Qe.method=un,Qe.arg=Qt;;){var Wn=Qe.delegate;if(Wn){var er=Vn(Wn,Qe);if(er){if(er===Et)continue;return er}}if(Qe.method==="next")Qe.sent=Qe._sent=Qe.arg;else if(Qe.method==="throw"){if(jt===nt)throw jt=gt,Qe.arg;Qe.dispatchException(Qe.arg)}else Qe.method==="return"&&Qe.abrupt("return",Qe.arg);jt=ct;var cr=Xe(Jt,st,Qe);if(cr.type==="normal"){if(jt=Qe.done?gt:yt,cr.arg===Et)continue;return{value:cr.arg,done:Qe.done}}cr.type==="throw"&&(jt=gt,Qe.method="throw",Qe.arg=cr.arg)}}}function Vn(Jt,st){var Qe=st.method,jt=Jt.iterator[Qe];if(jt===De)return st.delegate=null,Qe==="throw"&&Jt.iterator.return&&(st.method="return",st.arg=De,Vn(Jt,st),st.method==="throw")||Qe!=="return"&&(st.method="throw",st.arg=new TypeError("The iterator does not provide a '"+Qe+"' method")),Et;var un=Xe(jt,Jt.iterator,st.arg);if(un.type==="throw")return st.method="throw",st.arg=un.arg,st.delegate=null,Et;var Qt=un.arg;return Qt?Qt.done?(st[Jt.resultName]=Qt.value,st.next=Jt.nextLoc,st.method!=="return"&&(st.method="next",st.arg=De),st.delegate=null,Et):Qt:(st.method="throw",st.arg=new TypeError("iterator result is not an object"),st.delegate=null,Et)}function br(Jt){var st={tryLoc:Jt[0]};1 in Jt&&(st.catchLoc=Jt[1]),2 in Jt&&(st.finallyLoc=Jt[2],st.afterLoc=Jt[3]),this.tryEntries.push(st)}function Bn(Jt){var st=Jt.completion||{};st.type="normal",delete st.arg,Jt.completion=st}function qn(Jt){this.tryEntries=[{tryLoc:"root"}],Jt.forEach(br,this),this.reset(!0)}function Mr(Jt){if(Jt||Jt===""){var st=Jt[ae];if(st)return st.call(Jt);if(typeof Jt.next=="function")return Jt;if(!isNaN(Jt.length)){var Qe=-1,jt=function un(){for(;++Qe=0;--un){var Qt=this.tryEntries[un],Wn=Qt.completion;if(Qt.tryLoc==="root")return jt("end");if(Qt.tryLoc<=this.prev){var er=We.call(Qt,"catchLoc"),cr=We.call(Qt,"finallyLoc");if(er&&cr){if(this.prev=0;--jt){var un=this.tryEntries[jt];if(un.tryLoc<=this.prev&&We.call(un,"finallyLoc")&&this.prev=0;--Qe){var jt=this.tryEntries[Qe];if(jt.finallyLoc===st)return this.complete(jt.completion,jt.afterLoc),Bn(jt),Et}},catch:function(st){for(var Qe=this.tryEntries.length-1;Qe>=0;--Qe){var jt=this.tryEntries[Qe];if(jt.tryLoc===st){var un=jt.completion;if(un.type==="throw"){var Qt=un.arg;Bn(jt)}return Qt}}throw new Error("illegal catch attempt")},delegateYield:function(st,Qe,jt){return this.delegate={iterator:Mr(st),resultName:Qe,nextLoc:jt},this.method==="next"&&(this.arg=De),Et}},Re}var Je=e(21818);function Nt(De,Re,Ue,We,le,re,ae){try{var ge=De[re](ae),fe=ge.value}catch(Fe){Ue(Fe);return}ge.done?Re(fe):Promise.resolve(fe).then(We,le)}function Mt(De){return function(){var Re=this,Ue=arguments;return new Promise(function(We,le){var re=De.apply(Re,Ue);function ae(fe){Nt(re,We,le,ae,ge,"next",fe)}function ge(fe){Nt(re,We,le,ae,ge,"throw",fe)}ae(void 0)})}}var on=e(96028);function nn(De,Re){var Ue=typeof Symbol!="undefined"&&De[Symbol.iterator]||De["@@iterator"];if(!Ue){if(Array.isArray(De)||(Ue=(0,on.Z)(De))||Re&&De&&typeof De.length=="number"){Ue&&(De=Ue);var We=0,le=function(){};return{s:le,n:function(){return We>=De.length?{done:!0}:{done:!1,value:De[We++]}},e:function(Fe){throw Fe},f:le}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var re=!0,ae=!1,ge;return{s:function(){Ue=Ue.call(De)},n:function(){var Fe=Ue.next();return re=Fe.done,Fe},e:function(Fe){ae=!0,ge=Fe},f:function(){try{!re&&Ue.return!=null&&Ue.return()}finally{if(ae)throw ge}}}}var hn=e(86386);function cn(De){if(typeof Symbol!="undefined"&&De[Symbol.iterator]!=null||De["@@iterator"]!=null)return Array.from(De)}var Hn=e(21031);function Zn(De){return(0,hn.Z)(De)||cn(De)||(0,on.Z)(De)||(0,Hn.Z)()}function Rn(De,Re){if(!(De instanceof Re))throw new TypeError("Cannot call a class as a function")}var gn=e(78407);function Jn(De,Re){for(var Ue=0;Ue-1,"register failed, invalid key ".concat(le," ").concat(Ue.path?"from plugin ".concat(Ue.path):"",".")),We.hooks[le]=(We.hooks[le]||[]).concat(Ue.apply[le])})}},{key:"getHooks",value:function(Ue){var We=Ue.split("."),le=Zn(We),re=le[0],ae=le.slice(1),ge=this.hooks[re]||[];return ae.length&&(ge=ge.map(function(fe){try{var Fe=fe,ze=nn(ae),Xe;try{for(ze.s();!(Xe=ze.n()).done;){var nt=Xe.value;Fe=Fe[nt]}}catch(yt){ze.e(yt)}finally{ze.f()}return Fe}catch(yt){return null}}).filter(Boolean)),ge}},{key:"applyPlugins",value:function(Ue){var We=Ue.key,le=Ue.type,re=Ue.initialValue,ae=Ue.args,ge=Ue.async,fe=this.getHooks(We)||[];switch(ae&&wn((0,or.Z)(ae)==="object","applyPlugins failed, args must be plain object."),ge&&wn(le===Cn.modify||le===Cn.event,"async only works with modify and event type."),le){case Cn.modify:return ge?fe.reduce(function(){var Fe=Mt(tt().mark(function ze(Xe,nt){var yt;return tt().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if(wn(typeof nt=="function"||(0,or.Z)(nt)==="object"||Un(nt),"applyPlugins failed, all hooks for key ".concat(We," must be function, plain object or Promise.")),!Un(Xe)){gt.next=5;break}return gt.next=4,Xe;case 4:Xe=gt.sent;case 5:if(typeof nt!="function"){gt.next=16;break}if(yt=nt(Xe,ae),!Un(yt)){gt.next=13;break}return gt.next=10,yt;case 10:return gt.abrupt("return",gt.sent);case 13:return gt.abrupt("return",yt);case 14:gt.next=21;break;case 16:if(!Un(nt)){gt.next=20;break}return gt.next=19,nt;case 19:nt=gt.sent;case 20:return gt.abrupt("return",(0,Je.Z)((0,Je.Z)({},Xe),nt));case 21:case"end":return gt.stop()}},ze)}));return function(ze,Xe){return Fe.apply(this,arguments)}}(),Un(re)?re:Promise.resolve(re)):fe.reduce(function(Fe,ze){return wn(typeof ze=="function"||(0,or.Z)(ze)==="object","applyPlugins failed, all hooks for key ".concat(We," must be function or plain object.")),typeof ze=="function"?ze(Fe,ae):(0,Je.Z)((0,Je.Z)({},Fe),ze)},re);case Cn.event:return Mt(tt().mark(function Fe(){var ze,Xe,nt,yt;return tt().wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:ze=nn(fe),gt.prev=1,ze.s();case 3:if((Xe=ze.n()).done){gt.next=12;break}if(nt=Xe.value,wn(typeof nt=="function","applyPlugins failed, all hooks for key ".concat(We," must be function.")),yt=nt(ae),!(ge&&Un(yt))){gt.next=10;break}return gt.next=10,yt;case 10:gt.next=3;break;case 12:gt.next=17;break;case 14:gt.prev=14,gt.t0=gt.catch(1),ze.e(gt.t0);case 17:return gt.prev=17,ze.f(),gt.finish(17);case 20:case"end":return gt.stop()}},Fe,null,[[1,14,17,20]])}))();case Cn.compose:return function(){return wr({fns:fe.concat(re),args:ae})()}}}}],[{key:"create",value:function(Ue){var We=new De({validKeys:Ue.validKeys});return Ue.plugins.forEach(function(le){We.register(le)}),We}}]),De}(),pt=e(84370),At=0,Zt=0;function bt(De,Re){if(!1)var Ue}function Xt(De){return JSON.stringify(De,null,2)}function qt(De){var Re=De.length>1?De.map(xn).join(" "):De[0];return l()(Re)==="object"?"".concat(Xt(Re)):Re.toString()}function xn(De){return l()(De)==="object"?"".concat(JSON.stringify(De)):De.toString()}var Nn={log:function(){for(var Re=arguments.length,Ue=new Array(Re),We=0;We0){for(Ar=1,Zr=1;Arhi&&(hi=He,Es=[]),Es.push(xe))}function Lo(xe,_e){return new X(xe,[],"",_e)}function Qs(xe,_e,Yt){return new X(X.buildMessage(xe,_e),xe,_e,Yt)}function Js(){var xe;return xe=Ps(),xe}function Ps(){var xe,_e;for(xe=[],_e=yi();_e!==K;)xe.push(_e),_e=yi();return xe}function yi(){var xe;return xe=ws(),xe===K&&(xe=Ol(),xe===K&&(xe=qs(),xe===K&&(xe=lu(),xe===K&&(xe=Rl(),xe===K&&(xe=El()))))),xe}function Uo(){var xe,_e,Yt;if(xe=He,_e=[],Yt=ss(),Yt===K&&(Yt=Ll(),Yt===K&&(Yt=cu())),Yt!==K)for(;Yt!==K;)_e.push(Yt),Yt=ss(),Yt===K&&(Yt=Ll(),Yt===K&&(Yt=cu()));else _e=K;return _e!==K&&($a=xe,_e=$n(_e)),xe=_e,xe}function ws(){var xe,_e;return xe=He,_e=Uo(),_e!==K&&($a=xe,_e=kn(_e)),xe=_e,xe}function El(){var xe,_e;return xe=He,Pe.charCodeAt(He)===35?(_e=ir,He++):(_e=K,Mn===0&&Pr(Or)),_e!==K&&($a=xe,_e=da()),xe=_e,xe}function Ol(){var xe,_e,Yt,An,mr,ra;return Mn++,xe=He,Pe.charCodeAt(He)===123?(_e=Cr,He++):(_e=K,Mn===0&&Pr(Ar)),_e!==K?(Yt=Ba(),Yt!==K?(An=ls(),An!==K?(mr=Ba(),mr!==K?(Pe.charCodeAt(He)===125?(ra=Zr,He++):(ra=K,Mn===0&&Pr(Xr)),ra!==K?($a=xe,_e=Wo(An),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K),Mn--,xe===K&&(_e=K,Mn===0&&Pr(pr)),xe}function Pl(){var xe,_e,Yt,An,mr;if(Mn++,xe=He,_e=[],Yt=He,An=He,Mn++,mr=Yi(),mr===K&&(mo.test(Pe.charAt(He))?(mr=Pe.charAt(He),He++):(mr=K,Mn===0&&Pr(fi))),Mn--,mr===K?An=void 0:(He=An,An=K),An!==K?(Pe.length>He?(mr=Pe.charAt(He),He++):(mr=K,Mn===0&&Pr(Qo)),mr!==K?(An=[An,mr],Yt=An):(He=Yt,Yt=K)):(He=Yt,Yt=K),Yt!==K)for(;Yt!==K;)_e.push(Yt),Yt=He,An=He,Mn++,mr=Yi(),mr===K&&(mo.test(Pe.charAt(He))?(mr=Pe.charAt(He),He++):(mr=K,Mn===0&&Pr(fi))),Mn--,mr===K?An=void 0:(He=An,An=K),An!==K?(Pe.length>He?(mr=Pe.charAt(He),He++):(mr=K,Mn===0&&Pr(Qo)),mr!==K?(An=[An,mr],Yt=An):(He=Yt,Yt=K)):(He=Yt,Yt=K);else _e=K;return _e!==K?xe=Pe.substring(xe,He):xe=_e,Mn--,xe===K&&(_e=K,Mn===0&&Pr(go)),xe}function wl(){var xe,_e,Yt;return Mn++,xe=He,Pe.charCodeAt(He)===47?(_e=Ls,He++):(_e=K,Mn===0&&Pr(Wl)),_e!==K?(Yt=Pl(),Yt!==K?($a=xe,_e=Ul(Yt),xe=_e):(He=xe,xe=K)):(He=xe,xe=K),Mn--,xe===K&&(_e=K,Mn===0&&Pr(ho)),xe}function Tl(){var xe,_e,Yt,An,mr;if(Mn++,xe=He,_e=Ba(),_e!==K)if(Yt=Pl(),Yt!==K){for(An=[],mr=wl();mr!==K;)An.push(mr),mr=wl();An!==K?($a=xe,_e=Vl(Yt,An),xe=_e):(He=xe,xe=K)}else He=xe,xe=K;else He=xe,xe=K;return Mn--,xe===K&&(_e=K,Mn===0&&Pr(Ns)),xe}function au(){var xe,_e,Yt;if(xe=He,_e=[],Yt=Tl(),Yt!==K)for(;Yt!==K;)_e.push(Yt),Yt=Tl();else _e=K;return _e!==K&&($a=xe,_e=wi(_e)),xe=_e,xe}function ou(){var xe,_e,Yt;return xe=He,Pe.substr(He,2)===Vi?(_e=Vi,He+=2):(_e=K,Mn===0&&Pr(js)),_e!==K?(Yt=au(),Yt!==K?($a=xe,_e=sl(Yt),xe=_e):(He=xe,xe=K)):(He=xe,xe=K),xe===K&&(xe=He,$a=He,_e=Du(),_e?_e=void 0:_e=K,_e!==K?(Yt=Uo(),Yt!==K?($a=xe,_e=Ti(Yt),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)),xe}function iu(){var xe,_e,Yt,An,mr,ra,ro,Fa,Vo,Ha,Aa,pa,so;return xe=He,Pe.charCodeAt(He)===123?(_e=Cr,He++):(_e=K,Mn===0&&Pr(Ar)),_e!==K?(Yt=Ba(),Yt!==K?(An=ls(),An!==K?(mr=Ba(),mr!==K?(Pe.charCodeAt(He)===44?(ra=Jo,He++):(ra=K,Mn===0&&Pr(_o)),ra!==K?(ro=Ba(),ro!==K?(Pe.substr(He,6)===bs?(Fa=bs,He+=6):(Fa=K,Mn===0&&Pr(Fs)),Fa!==K?(Vo=Ba(),Vo!==K?(Ha=He,Pe.charCodeAt(He)===44?(Aa=Jo,He++):(Aa=K,Mn===0&&Pr(_o)),Aa!==K?(pa=Ba(),pa!==K?(so=ou(),so!==K?(Aa=[Aa,pa,so],Ha=Aa):(He=Ha,Ha=K)):(He=Ha,Ha=K)):(He=Ha,Ha=K),Ha===K&&(Ha=null),Ha!==K?(Aa=Ba(),Aa!==K?(Pe.charCodeAt(He)===125?(pa=Zr,He++):(pa=K,Mn===0&&Pr(Xr)),pa!==K?($a=xe,_e=qo(An,Fa,Ha),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K),xe}function Il(){var xe,_e,Yt,An;if(xe=He,Pe.charCodeAt(He)===39?(_e=Do,He++):(_e=K,Mn===0&&Pr(pi)),_e!==K){if(Yt=[],An=ss(),An===K&&(ii.test(Pe.charAt(He))?(An=Pe.charAt(He),He++):(An=K,Mn===0&&Pr(si))),An!==K)for(;An!==K;)Yt.push(An),An=ss(),An===K&&(ii.test(Pe.charAt(He))?(An=Pe.charAt(He),He++):(An=K,Mn===0&&Pr(si)));else Yt=K;Yt!==K?(Pe.charCodeAt(He)===39?(An=Do,He++):(An=K,Mn===0&&Pr(pi)),An!==K?(_e=[_e,Yt,An],xe=_e):(He=xe,xe=K)):(He=xe,xe=K)}else He=xe,xe=K;if(xe===K)if(xe=[],_e=ss(),_e===K&&(Fi.test(Pe.charAt(He))?(_e=Pe.charAt(He),He++):(_e=K,Mn===0&&Pr(ll))),_e!==K)for(;_e!==K;)xe.push(_e),_e=ss(),_e===K&&(Fi.test(Pe.charAt(He))?(_e=Pe.charAt(He),He++):(_e=K,Mn===0&&Pr(ll)));else xe=K;return xe}function Ml(){var xe,_e;if(xe=[],Bs.test(Pe.charAt(He))?(_e=Pe.charAt(He),He++):(_e=K,Mn===0&&Pr(Zs)),_e!==K)for(;_e!==K;)xe.push(_e),Bs.test(Pe.charAt(He))?(_e=Pe.charAt(He),He++):(_e=K,Mn===0&&Pr(Zs));else xe=K;return xe}function Ts(){var xe,_e,Yt,An;if(xe=He,_e=He,Yt=[],An=Il(),An===K&&(An=Ml()),An!==K)for(;An!==K;)Yt.push(An),An=Il(),An===K&&(An=Ml());else Yt=K;return Yt!==K?_e=Pe.substring(_e,He):_e=Yt,_e!==K&&($a=xe,_e=ei(_e)),xe=_e,xe}function su(){var xe,_e,Yt;return xe=He,Pe.substr(He,2)===Vi?(_e=Vi,He+=2):(_e=K,Mn===0&&Pr(js)),_e!==K?(Yt=Ts(),Yt!==K?($a=xe,_e=sl(Yt),xe=_e):(He=xe,xe=K)):(He=xe,xe=K),xe===K&&(xe=He,$a=He,_e=ti(),_e?_e=void 0:_e=K,_e!==K?(Yt=Uo(),Yt!==K?($a=xe,_e=Ti(Yt),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)),xe}function _s(){var xe,_e,Yt,An,mr,ra,ro,Fa,Vo,Ha,Aa,pa,so;return xe=He,Pe.charCodeAt(He)===123?(_e=Cr,He++):(_e=K,Mn===0&&Pr(Ar)),_e!==K?(Yt=Ba(),Yt!==K?(An=ls(),An!==K?(mr=Ba(),mr!==K?(Pe.charCodeAt(He)===44?(ra=Jo,He++):(ra=K,Mn===0&&Pr(_o)),ra!==K?(ro=Ba(),ro!==K?(Pe.substr(He,4)===oo?(Fa=oo,He+=4):(Fa=K,Mn===0&&Pr(mi)),Fa===K&&(Pe.substr(He,4)===ul?(Fa=ul,He+=4):(Fa=K,Mn===0&&Pr(Kl))),Fa!==K?(Vo=Ba(),Vo!==K?(Ha=He,Pe.charCodeAt(He)===44?(Aa=Jo,He++):(Aa=K,Mn===0&&Pr(_o)),Aa!==K?(pa=Ba(),pa!==K?(so=su(),so!==K?(Aa=[Aa,pa,so],Ha=Aa):(He=Ha,Ha=K)):(He=Ha,Ha=K)):(He=Ha,Ha=K),Ha===K&&(Ha=null),Ha!==K?(Aa=Ba(),Aa!==K?(Pe.charCodeAt(He)===125?(pa=Zr,He++):(pa=K,Mn===0&&Pr(Xr)),pa!==K?($a=xe,_e=qo(An,Fa,Ha),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K),xe}function qs(){var xe;return xe=iu(),xe===K&&(xe=_s()),xe}function lu(){var xe,_e,Yt,An,mr,ra,ro,Fa,Vo,Ha,Aa,pa,so,ri,bi,nl;if(xe=He,Pe.charCodeAt(He)===123?(_e=Cr,He++):(_e=K,Mn===0&&Pr(Ar)),_e!==K)if(Yt=Ba(),Yt!==K)if(An=ls(),An!==K)if(mr=Ba(),mr!==K)if(Pe.charCodeAt(He)===44?(ra=Jo,He++):(ra=K,Mn===0&&Pr(_o)),ra!==K)if(ro=Ba(),ro!==K)if(Pe.substr(He,6)===zs?(Fa=zs,He+=6):(Fa=K,Mn===0&&Pr(cl)),Fa===K&&(Pe.substr(He,13)===dl?(Fa=dl,He+=13):(Fa=K,Mn===0&&Pr(Hs))),Fa!==K)if(Vo=Ba(),Vo!==K)if(Pe.charCodeAt(He)===44?(Ha=Jo,He++):(Ha=K,Mn===0&&Pr(_o)),Ha!==K)if(Aa=Ba(),Aa!==K)if(pa=He,Pe.substr(He,7)===fl?(so=fl,He+=7):(so=K,Mn===0&&Pr(ts)),so!==K?(ri=Ba(),ri!==K?(bi=Dl(),bi!==K?(so=[so,ri,bi],pa=so):(He=pa,pa=K)):(He=pa,pa=K)):(He=pa,pa=K),pa===K&&(pa=null),pa!==K)if(so=Ba(),so!==K){if(ri=[],bi=Al(),bi!==K)for(;bi!==K;)ri.push(bi),bi=Al();else ri=K;ri!==K?(bi=Ba(),bi!==K?(Pe.charCodeAt(He)===125?(nl=Zr,He++):(nl=K,Mn===0&&Pr(Xr)),nl!==K?($a=xe,_e=pl(An,Fa,pa,ri),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)}else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;return xe}function Rl(){var xe,_e,Yt,An,mr,ra,ro,Fa,Vo,Ha,Aa,pa,so,ri;if(xe=He,Pe.charCodeAt(He)===123?(_e=Cr,He++):(_e=K,Mn===0&&Pr(Ar)),_e!==K)if(Yt=Ba(),Yt!==K)if(An=ls(),An!==K)if(mr=Ba(),mr!==K)if(Pe.charCodeAt(He)===44?(ra=Jo,He++):(ra=K,Mn===0&&Pr(_o)),ra!==K)if(ro=Ba(),ro!==K)if(Pe.substr(He,6)===Gl?(Fa=Gl,He+=6):(Fa=K,Mn===0&&Pr(vi)),Fa!==K)if(Vo=Ba(),Vo!==K)if(Pe.charCodeAt(He)===44?(Ha=Jo,He++):(Ha=K,Mn===0&&Pr(_o)),Ha!==K)if(Aa=Ba(),Aa!==K){if(pa=[],so=$l(),so!==K)for(;so!==K;)pa.push(so),so=$l();else pa=K;pa!==K?(so=Ba(),so!==K?(Pe.charCodeAt(He)===125?(ri=Zr,He++):(ri=K,Mn===0&&Pr(Xr)),ri!==K?($a=xe,_e=ks(An,pa),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)}else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;else He=xe,xe=K;return xe}function uu(){var xe,_e,Yt,An;return xe=He,_e=He,Pe.charCodeAt(He)===61?(Yt=Ws,He++):(Yt=K,Mn===0&&Pr(ns)),Yt!==K?(An=Dl(),An!==K?(Yt=[Yt,An],_e=Yt):(He=_e,_e=K)):(He=_e,_e=K),_e!==K?xe=Pe.substring(xe,He):xe=_e,xe===K&&(xe=tl()),xe}function $l(){var xe,_e,Yt,An,mr,ra,ro,Fa;return xe=He,_e=Ba(),_e!==K?(Yt=tl(),Yt!==K?(An=Ba(),An!==K?(Pe.charCodeAt(He)===123?(mr=Cr,He++):(mr=K,Mn===0&&Pr(Ar)),mr!==K?($a=He,ra=ml(Yt),ra?ra=void 0:ra=K,ra!==K?(ro=Ps(),ro!==K?(Pe.charCodeAt(He)===125?(Fa=Zr,He++):(Fa=K,Mn===0&&Pr(Xr)),Fa!==K?($a=xe,_e=vl(Yt,ro),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K),xe}function Al(){var xe,_e,Yt,An,mr,ra,ro,Fa;return xe=He,_e=Ba(),_e!==K?(Yt=uu(),Yt!==K?(An=Ba(),An!==K?(Pe.charCodeAt(He)===123?(mr=Cr,He++):(mr=K,Mn===0&&Pr(Ar)),mr!==K?($a=He,ra=gl(Yt),ra?ra=void 0:ra=K,ra!==K?(ro=Ps(),ro!==K?(Pe.charCodeAt(He)===125?(Fa=Zr,He++):(Fa=K,Mn===0&&Pr(Xr)),Fa!==K?($a=xe,_e=hl(Yt,ro),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K)):(He=xe,xe=K),xe}function Yi(){var xe,_e;return Mn++,li.test(Pe.charAt(He))?(xe=Pe.charAt(He),He++):(xe=K,Mn===0&&Pr(Ki)),Mn--,xe===K&&(_e=K,Mn===0&&Pr(rs)),xe}function el(){var xe,_e;return Mn++,Yl.test(Pe.charAt(He))?(xe=Pe.charAt(He),He++):(xe=K,Mn===0&&Pr(Ii)),Mn--,xe===K&&(_e=K,Mn===0&&Pr(yl)),xe}function Ba(){var xe,_e,Yt;for(Mn++,xe=He,_e=[],Yt=Yi();Yt!==K;)_e.push(Yt),Yt=Yi();return _e!==K?xe=Pe.substring(xe,He):xe=_e,Mn--,xe===K&&(_e=K,Mn===0&&Pr(Bi)),xe}function Dl(){var xe,_e,Yt;return Mn++,xe=He,Pe.charCodeAt(He)===45?(_e=Xl,He++):(_e=K,Mn===0&&Pr(Mi)),_e===K&&(_e=null),_e!==K?(Yt=Nl(),Yt!==K?($a=xe,_e=Zi(_e,Yt),xe=_e):(He=xe,xe=K)):(He=xe,xe=K),Mn--,xe===K&&(_e=K,Mn===0&&Pr(bl)),xe}function Lu(){var xe,_e;return Mn++,Pe.charCodeAt(He)===39?(xe=Do,He++):(xe=K,Mn===0&&Pr(pi)),Mn--,xe===K&&(_e=K,Mn===0&&Pr(Us)),xe}function ss(){var xe,_e;return Mn++,xe=He,Pe.substr(He,2)===Ri?(_e=Ri,He+=2):(_e=K,Mn===0&&Pr(Vs)),_e!==K&&($a=xe,_e=Jl()),xe=_e,Mn--,xe===K&&(_e=K,Mn===0&&Pr(Ql)),xe}function Ll(){var xe,_e,Yt,An,mr,ra;if(xe=He,Pe.charCodeAt(He)===39?(_e=Do,He++):(_e=K,Mn===0&&Pr(pi)),_e!==K)if(Yt=Nu(),Yt!==K){for(An=He,mr=[],Pe.substr(He,2)===Ri?(ra=Ri,He+=2):(ra=K,Mn===0&&Pr(Vs)),ra===K&&(ii.test(Pe.charAt(He))?(ra=Pe.charAt(He),He++):(ra=K,Mn===0&&Pr(si)));ra!==K;)mr.push(ra),Pe.substr(He,2)===Ri?(ra=Ri,He+=2):(ra=K,Mn===0&&Pr(Vs)),ra===K&&(ii.test(Pe.charAt(He))?(ra=Pe.charAt(He),He++):(ra=K,Mn===0&&Pr(si)));mr!==K?An=Pe.substring(An,He):An=mr,An!==K?(Pe.charCodeAt(He)===39?(mr=Do,He++):(mr=K,Mn===0&&Pr(pi)),mr===K&&(mr=null),mr!==K?($a=xe,_e=xl(Yt,An),xe=_e):(He=xe,xe=K)):(He=xe,xe=K)}else He=xe,xe=K;else He=xe,xe=K;return xe}function cu(){var xe,_e,Yt,An;return xe=He,_e=He,Pe.length>He?(Yt=Pe.charAt(He),He++):(Yt=K,Mn===0&&Pr(Qo)),Yt!==K?($a=He,An=Ks(Yt),An?An=void 0:An=K,An!==K?(Yt=[Yt,An],_e=Yt):(He=_e,_e=K)):(He=_e,_e=K),_e===K&&(Pe.charCodeAt(He)===10?(_e=_l,He++):(_e=K,Mn===0&&Pr(ql))),_e!==K?xe=Pe.substring(xe,He):xe=_e,xe}function Nu(){var xe,_e,Yt,An;return xe=He,_e=He,Pe.length>He?(Yt=Pe.charAt(He),He++):(Yt=K,Mn===0&&Pr(Qo)),Yt!==K?($a=He,An=eu(Yt),An?An=void 0:An=K,An!==K?(Yt=[Yt,An],_e=Yt):(He=_e,_e=K)):(He=_e,_e=K),_e!==K?xe=Pe.substring(xe,He):xe=_e,xe}function ls(){var xe,_e;return Mn++,xe=He,_e=Nl(),_e===K&&(_e=tl()),_e!==K?xe=Pe.substring(xe,He):xe=_e,Mn--,xe===K&&(_e=K,Mn===0&&Pr(Sl)),xe}function Nl(){var xe,_e,Yt,An,mr;if(Mn++,xe=He,Pe.charCodeAt(He)===48?(_e=Gs,He++):(_e=K,Mn===0&&Pr(tu)),_e!==K&&($a=xe,_e=nu()),xe=_e,xe===K){if(xe=He,_e=He,as.test(Pe.charAt(He))?(Yt=Pe.charAt(He),He++):(Yt=K,Mn===0&&Pr(ru)),Yt!==K){for(An=[],os.test(Pe.charAt(He))?(mr=Pe.charAt(He),He++):(mr=K,Mn===0&&Pr(gi));mr!==K;)An.push(mr),os.test(Pe.charAt(He))?(mr=Pe.charAt(He),He++):(mr=K,Mn===0&&Pr(gi));An!==K?(Yt=[Yt,An],_e=Yt):(He=_e,_e=K)}else He=_e,_e=K;_e!==K&&($a=xe,_e=Ss(_e)),xe=_e}return Mn--,xe===K&&(_e=K,Mn===0&&Pr(xs)),xe}function tl(){var xe,_e,Yt,An,mr;if(Mn++,xe=He,_e=[],Yt=He,An=He,Mn++,mr=Yi(),mr===K&&(mr=el()),Mn--,mr===K?An=void 0:(He=An,An=K),An!==K?(Pe.length>He?(mr=Pe.charAt(He),He++):(mr=K,Mn===0&&Pr(Qo)),mr!==K?(An=[An,mr],Yt=An):(He=Yt,Yt=K)):(He=Yt,Yt=K),Yt!==K)for(;Yt!==K;)_e.push(Yt),Yt=He,An=He,Mn++,mr=Yi(),mr===K&&(mr=el()),Mn--,mr===K?An=void 0:(He=An,An=K),An!==K?(Pe.length>He?(mr=Pe.charAt(He),He++):(mr=K,Mn===0&&Pr(Qo)),mr!==K?(An=[An,mr],Yt=An):(He=Yt,Yt=K)):(He=Yt,Yt=K);else _e=K;return _e!==K?xe=Pe.substring(xe,He):xe=_e,Mn--,xe===K&&(_e=K,Mn===0&&Pr(Cs)),xe}var ni=["root"];function ju(){return ni.length>1}function du(){return ni[ni.length-1]==="plural"}function Si(){return Ze&&Ze.captureLocation?{location:Os()}:{}}if(Gi=Ut(),Gi!==K&&He===Pe.length)return Gi;throw Gi!==K&&He1)throw new RangeError("Fraction-precision stems only accept a single optional option");Ut.stem.replace(H,function(kn,ir,Or){return kn==="."?Ze.maximumFractionDigits=0:Or==="+"?Ze.minimumFractionDigits=Or.length:ir[0]==="#"?Ze.maximumFractionDigits=ir.length:(Ze.minimumFractionDigits=ir.length,Ze.maximumFractionDigits=ir.length+(typeof Or=="string"?Or.length:0)),""}),Ut.options.length&&(Ze=N(N({},Ze),k(Ut.options[0])));continue}if(te.test(Ut.stem)){Ze=N(N({},Ze),k(Ut.stem));continue}var $n=D(Ut.stem);$n&&(Ze=N(N({},Ze),$n))}return Ze}var Se=function(){var Pe=function(Ze,K){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xt,Ut){xt.__proto__=Ut}||function(xt,Ut){for(var $n in Ut)Ut.hasOwnProperty($n)&&(xt[$n]=Ut[$n])},Pe(Ze,K)};return function(Ze,K){Pe(Ze,K);function xt(){this.constructor=Ze}Ze.prototype=K===null?Object.create(K):(xt.prototype=K.prototype,new xt)}}(),Me=function(){for(var Pe=0,Ze=0,K=arguments.length;Ze(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,ot=Date.now()+"@@",rt=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function at(Pe,Ze,K){var xt=Pe.tagName,Ut=Pe.outerHTML,$n=Pe.textContent,kn=Pe.childNodes;if(!xt)return Be($n||"",Ze);xt=xt.toLowerCase();var ir=~rt.indexOf(xt),Or=K[xt];if(Or&&ir)throw new ue(xt+" is a self-closing tag and can not be used, please use another tag name.");if(!kn.length)return[Ut];var da=Array.prototype.slice.call(kn).reduce(function(pr,Cr){return pr.concat(at(Cr,Ze,K))},[]);return Or?typeof Or=="function"?[Or.apply(void 0,da)]:[Or]:Me(["<"+xt+">"],da,[""])}function wt(Pe,Ze,K,xt,Ut,$n){var kn=Ke(Pe,Ze,K,xt,Ut,void 0,$n),ir={},Or=kn.reduce(function(Ar,Zr){if(Zr.type===0)return Ar+=Zr.value;var Xr=we();return ir[Xr]=Zr.value,Ar+=""+ke+Xr+ke},"");if(!Le.test(Or))return Be(Or,ir);if(!Ut)throw new ue("Message has placeholders but no values was given");if(typeof DOMParser=="undefined")throw new ue("Cannot format XML message without DOMParser");me||(me=new DOMParser);var da=me.parseFromString(''+Or+"","text/html").getElementById(ot);if(!da)throw new ue("Malformed HTML message "+Or);var pr=Object.keys(Ut).filter(function(Ar){return!!da.getElementsByTagName(Ar).length});if(!pr.length)return Be(Or,ir);var Cr=pr.filter(function(Ar){return Ar!==Ar.toLowerCase()});if(Cr.length)throw new ue("HTML tag must be lowercased but the following tags are not: "+Cr.join(", "));return Array.prototype.slice.call(da.childNodes).reduce(function(Ar,Zr){return Ar.concat(at(Zr,ir,Ut))},[])}var St=function(){return St=Object.assign||function(Pe){for(var Ze,K=1,xt=arguments.length;K<"']/g;function ht(Pe){return(""+Pe).replace(zt,function(Ze){return Ct[Ze.charCodeAt(0)]})}function Tt(Pe,Ze){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ze.reduce(function(xt,Ut){return Ut in Pe?xt[Ut]=Pe[Ut]:Ut in K&&(xt[Ut]=K[Ut]),xt},{})}function Kt(Pe){Ge(Pe,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function sn(Pe,Ze){var K=Ze?` +`.concat(Ze.stack):"";return"[React Intl] ".concat(Pe).concat(K)}function bn(Pe){}var _t={formats:{},messages:{},timeZone:void 0,textComponent:f.Fragment,defaultLocale:"en",defaultFormats:{},onError:bn};function en(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function an(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:en(),Ze=Intl.RelativeTimeFormat,K=Intl.ListFormat,xt=Intl.DisplayNames;return{getDateTimeFormat:je(Intl.DateTimeFormat,Pe.dateTime),getNumberFormat:je(Intl.NumberFormat,Pe.number),getMessageFormat:je(Tn,Pe.message),getRelativeTimeFormat:je(Ze,Pe.relativeTime),getPluralRules:je(Intl.PluralRules,Pe.pluralRules),getListFormat:je(K,Pe.list),getDisplayNames:je(xt,Pe.displayNames)}}function Sn(Pe,Ze,K,xt){var Ut=Pe&&Pe[Ze],$n;if(Ut&&($n=Ut[K]),$n)return $n;xt(sn("No ".concat(Ze," format named: ").concat(K)))}var Kn=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function or(Pe,Ze){var K=Pe.locale,xt=Pe.formats,Ut=Pe.onError,$n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},kn=$n.format,ir=kn&&Sn(xt,"number",kn,Ut)||{},Or=Tt($n,Kn,ir);return Ze(K,Or)}function tt(Pe,Ze,K){var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return or(Pe,Ze,xt).format(K)}catch(Ut){Pe.onError(sn("Error formatting number.",Ut))}return String(K)}function Je(Pe,Ze,K){var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return or(Pe,Ze,xt).formatToParts(K)}catch(Ut){Pe.onError(sn("Error formatting number.",Ut))}return[]}var Nt=["numeric","style"];function Mt(Pe,Ze){var K=Pe.locale,xt=Pe.formats,Ut=Pe.onError,$n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},kn=$n.format,ir=!!kn&&Sn(xt,"relative",kn,Ut)||{},Or=Tt($n,Nt,ir);return Ze(K,Or)}function on(Pe,Ze,K,xt){var Ut=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};xt||(xt="second");var $n=Intl.RelativeTimeFormat;$n||Pe.onError(sn(`Intl.RelativeTimeFormat is not available in this environment. +Try polyfilling it using "@formatjs/intl-relativetimeformat" +`));try{return Mt(Pe,Ze,Ut).format(K,xt)}catch(kn){Pe.onError(sn("Error formatting relative time.",kn))}return String(K)}var nn=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function hn(Pe,Ze,K){var xt=Pe.locale,Ut=Pe.formats,$n=Pe.onError,kn=Pe.timeZone,ir=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Or=ir.format,da=Object.assign(Object.assign({},kn&&{timeZone:kn}),Or&&Sn(Ut,Ze,Or,$n)),pr=Tt(ir,nn,da);return Ze==="time"&&!pr.hour&&!pr.minute&&!pr.second&&(pr=Object.assign(Object.assign({},pr),{hour:"numeric",minute:"numeric"})),K(xt,pr)}function cn(Pe,Ze,K){var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ut=typeof K=="string"?new Date(K||0):K;try{return hn(Pe,"date",Ze,xt).format(Ut)}catch($n){Pe.onError(sn("Error formatting date.",$n))}return String(Ut)}function Hn(Pe,Ze,K){var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ut=typeof K=="string"?new Date(K||0):K;try{return hn(Pe,"time",Ze,xt).format(Ut)}catch($n){Pe.onError(sn("Error formatting time.",$n))}return String(Ut)}function Zn(Pe,Ze,K){var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ut=typeof K=="string"?new Date(K||0):K;try{return hn(Pe,"date",Ze,xt).formatToParts(Ut)}catch($n){Pe.onError(sn("Error formatting date.",$n))}return[]}function Rn(Pe,Ze,K){var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ut=typeof K=="string"?new Date(K||0):K;try{return hn(Pe,"time",Ze,xt).formatToParts(Ut)}catch($n){Pe.onError(sn("Error formatting time.",$n))}return[]}var gn=["localeMatcher","type"];function Jn(Pe,Ze,K){var xt=Pe.locale,Ut=Pe.onError,$n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Intl.PluralRules||Ut(sn(`Intl.PluralRules is not available in this environment. +Try polyfilling it using "@formatjs/intl-pluralrules" +`));var kn=Tt($n,gn);try{return Ze(xt,kn).select(K)}catch(ir){Ut(sn("Error formatting plural.",ir))}return"other"}var Fn=e(31013),Yn=e.n(Fn);function wn(Pe,Ze){return Object.keys(Pe).reduce(function(K,xt){return K[xt]=Object.assign({timeZone:Ze},Pe[xt]),K},{})}function wr(Pe,Ze){var K=Object.keys(Object.assign(Object.assign({},Pe),Ze));return K.reduce(function(xt,Ut){return xt[Ut]=Object.assign(Object.assign({},Pe[Ut]||{}),Ze[Ut]||{}),xt},{})}function Un(Pe,Ze){if(!Ze)return Pe;var K=Tn.formats;return Object.assign(Object.assign(Object.assign({},K),Pe),{date:wr(wn(K.date,Ze),wn(Pe.date||{},Ze)),time:wr(wn(K.time,Ze),wn(Pe.time||{},Ze))})}var Cn=function(Ze){return f.createElement.apply(b,[f.Fragment,null].concat(Yn()(Ze)))};function vt(Pe,Ze){var K=Pe.locale,xt=Pe.formats,Ut=Pe.messages,$n=Pe.defaultLocale,kn=Pe.defaultFormats,ir=Pe.onError,Or=Pe.timeZone,da=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},pr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Cr=da.id,Ar=da.defaultMessage;Ge(!!Cr,"[React Intl] An `id` must be provided to format a message.");var Zr=Ut&&Ut[String(Cr)];xt=Un(xt,Or),kn=Un(kn,Or);var Xr=[];if(Zr)try{var Wo=Ze.getMessageFormat(Zr,K,xt,{formatters:Ze});Xr=Wo.formatHTMLMessage(pr)}catch(mo){ir(sn('Error formatting message: "'.concat(Cr,'" for locale: "').concat(K,'"')+(Ar?", using default message as fallback.":""),mo))}else(!Ar||K&&K.toLowerCase()!==$n.toLowerCase())&&ir(sn('Missing message: "'.concat(Cr,'" for locale: "').concat(K,'"')+(Ar?", using default message as fallback.":"")));if(!Xr.length&&Ar)try{var go=Ze.getMessageFormat(Ar,$n,kn);Xr=go.formatHTMLMessage(pr)}catch(mo){ir(sn('Error formatting the default message for: "'.concat(Cr,'"'),mo))}return Xr.length?Xr.length===1&&typeof Xr[0]=="string"?Xr[0]||Ar||String(Cr):Cn(Xr):(ir(sn('Cannot format message: "'.concat(Cr,'", ')+"using message ".concat(Zr||Ar?"source":"id"," as fallback."))),typeof Zr=="string"?Zr||Ar||String(Cr):Ar||String(Cr))}function pt(Pe,Ze){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ut=Object.keys(xt).reduce(function($n,kn){var ir=xt[kn];return $n[kn]=typeof ir=="string"?ht(ir):ir,$n},{});return vt(Pe,Ze,K,Ut)}var At=e(29700),Zt=e.n(At),bt=e(80445),Xt=e.n(bt),qt=["localeMatcher","type","style"],xn=Date.now();function Nn(Pe){return"".concat(xn,"_").concat(Pe,"_").concat(xn)}function Pn(Pe,Ze,K){var xt=Pe.locale,Ut=Pe.onError,$n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},kn=Intl.ListFormat;kn||Ut(sn(`Intl.ListFormat is not available in this environment. +Try polyfilling it using "@formatjs/intl-listformat" +`));var ir=Tt($n,qt);try{var Or={},da=K.map(function(Cr,Ar){if(Xt()(Cr)==="object"){var Zr=Nn(Ar);return Or[Zr]=Cr,Zr}return String(Cr)});if(!Object.keys(Or).length)return Ze(xt,ir).format(da);var pr=Ze(xt,ir).formatToParts(da);return pr.reduce(function(Cr,Ar){var Zr=Ar.value;return Or[Zr]?Cr.push(Or[Zr]):typeof Cr[Cr.length-1]=="string"?Cr[Cr.length-1]+=Zr:Cr.push(Zr),Cr},[])}catch(Cr){Ut(sn("Error formatting list.",Cr))}return K}var De=["localeMatcher","style","type","fallback"];function Re(Pe,Ze,K){var xt=Pe.locale,Ut=Pe.onError,$n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},kn=Intl.DisplayNames;kn||Ut(sn(`Intl.DisplayNames is not available in this environment. +Try polyfilling it using "@formatjs/intl-displaynames" +`));var ir=Tt($n,De);try{return Ze(xt,ir).of(K)}catch(Or){Ut(sn("Error formatting display name.",Or))}}var Ue=Zt()||At;function We(Pe){return{locale:Pe.locale,timeZone:Pe.timeZone,formats:Pe.formats,textComponent:Pe.textComponent,messages:Pe.messages,defaultLocale:Pe.defaultLocale,defaultFormats:Pe.defaultFormats,onError:Pe.onError}}function le(Pe,Ze){var K=an(Ze),xt=Object.assign(Object.assign({},_t),Pe),Ut=xt.locale,$n=xt.defaultLocale,kn=xt.onError;return Ut?!Intl.NumberFormat.supportedLocalesOf(Ut).length&&kn?kn(sn('Missing locale data for locale: "'.concat(Ut,'" in Intl.NumberFormat. Using default locale: "').concat($n,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(Ut).length&&kn&&kn(sn('Missing locale data for locale: "'.concat(Ut,'" in Intl.DateTimeFormat. Using default locale: "').concat($n,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(kn&&kn(sn('"locale" was not configured, using "'.concat($n,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),xt.locale=xt.defaultLocale||"en"),Object.assign(Object.assign({},xt),{formatters:K,formatNumber:tt.bind(null,xt,K.getNumberFormat),formatNumberToParts:Je.bind(null,xt,K.getNumberFormat),formatRelativeTime:on.bind(null,xt,K.getRelativeTimeFormat),formatDate:cn.bind(null,xt,K.getDateTimeFormat),formatDateToParts:Zn.bind(null,xt,K.getDateTimeFormat),formatTime:Hn.bind(null,xt,K.getDateTimeFormat),formatTimeToParts:Rn.bind(null,xt,K.getDateTimeFormat),formatPlural:Jn.bind(null,xt,K.getPluralRules),formatMessage:vt.bind(null,xt,K),formatHTMLMessage:pt.bind(null,xt,K),formatList:Pn.bind(null,xt,K.getListFormat),formatDisplayName:Re.bind(null,xt,K.getDisplayNames)})}var re=function(Pe){p()(K,Pe);var Ze=h()(K);function K(){var xt;return c()(this,K),xt=Ze.apply(this,arguments),xt.cache=en(),xt.state={cache:xt.cache,intl:le(We(xt.props),xt.cache),prevConfig:We(xt.props)},xt}return u()(K,[{key:"render",value:function(){return Kt(this.state.intl),f.createElement(G,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(Ut,$n){var kn=$n.prevConfig,ir=$n.cache,Or=We(Ut);return Ue(kn,Or)?null:{intl:le(Or,ir),prevConfig:Or}}}]),K}(f.PureComponent);re.displayName="IntlProvider",re.defaultProps=_t;var ae=e(1264),ge=e(27354),fe=e.n(ge),Fe=e(58846),ze=e.n(Fe),Xe=function(Pe,Ze){var K={};for(var xt in Pe)Object.prototype.hasOwnProperty.call(Pe,xt)&&Ze.indexOf(xt)<0&&(K[xt]=Pe[xt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,xt=Object.getOwnPropertySymbols(Pe);Ut